@hashrock/ono-visual-editor 0.1.0

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 ADDED
@@ -0,0 +1,574 @@
1
+ import { jsxs as g, jsx as e, Fragment as pe } from "react/jsx-runtime";
2
+ import { useRef as R, useState as q, useEffect as j, useReducer as he, useMemo as fe, useCallback as de } from "react";
3
+ import { i as me, I as A, G as ge, u as oe, v as be, x as ke, z as ye, q as ee, y as te, o as xe, w as ve, f as we, C as ne, g as _e, t as $e, n as Te, l as Ce, s as z, k as K } from "./uno-controls-CopUGd4g.js";
4
+ import { debounce as Se, injectHead as Ee } from "@hashrock/ono/browser/playground";
5
+ const Ie = "index.jsx", Ae = {
6
+ "components/Card.jsx": `export function Card(props) {
7
+ return (
8
+ <div class="rounded-xl border border-slate-200 bg-white p-6 shadow-sm">
9
+ <h2 class="text-lg font-semibold text-slate-900">{props.title}</h2>
10
+ <div class="mt-2 text-sm text-slate-600">{props.children}</div>
11
+ </div>
12
+ );
13
+ }
14
+ `,
15
+ "index.jsx": `import { Card } from './components/Card.jsx';
16
+
17
+ export default function App() {
18
+ return (
19
+ <div class="min-h-screen bg-slate-50 font-sans text-slate-800">
20
+ <header class="border-b border-slate-200 bg-white px-8 py-6">
21
+ <h1 class="text-3xl font-bold text-emerald-600">Hello, Ono!</h1>
22
+ <p class="mt-1 text-slate-500">Click any element to edit it.</p>
23
+ </header>
24
+ <main class="grid gap-6 p-8 sm:grid-cols-2">
25
+ <Card title="Edit classes">
26
+ <p>Change UnoCSS classes in the inspector and the preview updates.</p>
27
+ </Card>
28
+ <Card title="Edit text">
29
+ <p>Text-only elements can be rewritten directly.</p>
30
+ </Card>
31
+ <section class="rounded-xl bg-emerald-600 p-6 text-white sm:col-span-2">
32
+ <h2 class="text-xl font-semibold">Insert, duplicate, move, delete</h2>
33
+ <p class="mt-2 text-emerald-100">Every action rewrites the JSX on the left.</p>
34
+ <button class="mt-4 rounded-md bg-white px-4 py-2 font-medium text-emerald-700">Get started</button>
35
+ </section>
36
+ </main>
37
+ </div>
38
+ );
39
+ }
40
+ `
41
+ }, Ne = [
42
+ { label: "Heading", icon: "H", code: '<h2 class="text-xl font-semibold">Heading</h2>' },
43
+ { label: "Paragraph", icon: "¶", code: '<p class="text-slate-600">Paragraph text</p>' },
44
+ { label: "Button", icon: "⏺", code: '<button class="rounded-md bg-emerald-600 px-4 py-2 text-white">Button</button>' },
45
+ { label: "Link", icon: "⛓", code: '<a href="#" class="text-emerald-600 underline">Link</a>' },
46
+ { label: "Box", icon: "▢", code: '<div class="rounded-lg border border-slate-200 p-4">Box</div>' },
47
+ { label: "Row", icon: "⇔", code: '<div class="flex items-center gap-4"><span>One</span><span>Two</span></div>' },
48
+ { label: "Image", icon: "🖼", code: '<img class="rounded-lg" src="https://picsum.photos/400/200" alt="" />' },
49
+ { label: "List", icon: "≡", code: '<ul class="list-disc list-inside space-y-1"><li>First</li><li>Second</li></ul>' },
50
+ { label: "Input", icon: "⌨", code: '<input class="rounded-md border border-slate-300 px-3 py-2" placeholder="Type here" />' },
51
+ { label: "Divider", icon: "—", code: '<hr class="my-4 border-slate-200" />' }
52
+ ], se = '(function(){"use strict";const Tl=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Jo=Symbol.for("ono.fragment");function Zo(e){const t=[];for(const n of e)n==null||typeof n=="boolean"||(Array.isArray(n)?t.push(...Zo(n)):t.push(n));return t}function Al(e,t,...n){return{tag:e,props:t||{},children:Zo(n)}}const Cl=Al;function jn(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",\'"\':"&quot;","\'":"&#039;"};return String(e).replace(/[&<>"\']/g,n=>t[n])}function Pl(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Rl(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${Pl(t)}: ${n}`).join("; ")}function Nl(e){if(!e)return"";const t=[];for(const[n,s]of Object.entries(e))if(!(n==="children"||n==="dangerouslySetInnerHTML")){if(n==="className"){t.push(`class="${jn(s)}"`);continue}if(n==="style"){t.push(`style="${jn(Rl(s))}"`);continue}if(typeof s=="boolean"){s&&t.push(n);continue}s!=null&&t.push(`${n}="${jn(s)}"`)}return t.length>0?" "+t.join(" "):""}function Qo(e){return e&&e.length>0?e.map(Ar).join(""):""}function Ar(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return jn(e);const{tag:t,props:n,children:s}=e;if(t===Jo)return Qo(s);if(typeof t=="function"){const i={...n};return s&&s.length>0&&(i.children=s),Ar(t(i))}const o=Nl(n);return Tl.has(t)?`<${t}${o} />`:n?.dangerouslySetInnerHTML?.__html?`<${t}${o}>${n.dangerouslySetInnerHTML.__html}</${t}>`:`<${t}${o}>${Qo(s)}</${t}>`}var d;(function(e){e[e.NONE=0]="NONE";const n=1;e[e._abstract=n]="_abstract";const s=n+1;e[e._accessor=s]="_accessor";const o=s+1;e[e._as=o]="_as";const i=o+1;e[e._assert=i]="_assert";const c=i+1;e[e._asserts=c]="_asserts";const l=c+1;e[e._async=l]="_async";const u=l+1;e[e._await=u]="_await";const f=u+1;e[e._checks=f]="_checks";const h=f+1;e[e._constructor=h]="_constructor";const m=h+1;e[e._declare=m]="_declare";const k=m+1;e[e._enum=k]="_enum";const v=k+1;e[e._exports=v]="_exports";const $=v+1;e[e._from=$]="_from";const R=$+1;e[e._get=R]="_get";const D=R+1;e[e._global=D]="_global";const F=D+1;e[e._implements=F]="_implements";const I=F+1;e[e._infer=I]="_infer";const T=I+1;e[e._interface=T]="_interface";const S=T+1;e[e._is=S]="_is";const L=S+1;e[e._keyof=L]="_keyof";const Y=L+1;e[e._mixins=Y]="_mixins";const N=Y+1;e[e._module=N]="_module";const z=N+1;e[e._namespace=z]="_namespace";const X=z+1;e[e._of=X]="_of";const ne=X+1;e[e._opaque=ne]="_opaque";const ce=ne+1;e[e._out=ce]="_out";const Te=ce+1;e[e._override=Te]="_override";const ot=Te+1;e[e._private=ot]="_private";const Me=ot+1;e[e._protected=Me]="_protected";const it=Me+1;e[e._proto=it]="_proto";const Ue=it+1;e[e._public=Ue]="_public";const We=Ue+1;e[e._readonly=We]="_readonly";const K=We+1;e[e._require=K]="_require";const ye=K+1;e[e._satisfies=ye]="_satisfies";const Le=ye+1;e[e._set=Le]="_set";const Ve=Le+1;e[e._static=Ve]="_static";const Be=Ve+1;e[e._symbol=Be]="_symbol";const Se=Be+1;e[e._type=Se]="_type";const we=Se+1;e[e._unique=we]="_unique";const _=we+1;e[e._using=_]="_using"})(d||(d={}));var r;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;e[e.IS_KEYWORD=n]="IS_KEYWORD";const s=32;e[e.IS_ASSIGN=s]="IS_ASSIGN";const o=64;e[e.IS_RIGHT_ASSOCIATIVE=o]="IS_RIGHT_ASSOCIATIVE";const i=128;e[e.IS_PREFIX=i]="IS_PREFIX";const c=256;e[e.IS_POSTFIX=c]="IS_POSTFIX";const l=512;e[e.IS_EXPRESSION_START=l]="IS_EXPRESSION_START";const u=512;e[e.num=u]="num";const f=1536;e[e.bigint=f]="bigint";const h=2560;e[e.decimal=h]="decimal";const m=3584;e[e.regexp=m]="regexp";const k=4608;e[e.string=k]="string";const v=5632;e[e.name=v]="name";const $=6144;e[e.eof=$]="eof";const R=7680;e[e.bracketL=R]="bracketL";const D=8192;e[e.bracketR=D]="bracketR";const F=9728;e[e.braceL=F]="braceL";const I=10752;e[e.braceBarL=I]="braceBarL";const T=11264;e[e.braceR=T]="braceR";const S=12288;e[e.braceBarR=S]="braceBarR";const L=13824;e[e.parenL=L]="parenL";const Y=14336;e[e.parenR=Y]="parenR";const N=15360;e[e.comma=N]="comma";const z=16384;e[e.semi=z]="semi";const X=17408;e[e.colon=X]="colon";const ne=18432;e[e.doubleColon=ne]="doubleColon";const ce=19456;e[e.dot=ce]="dot";const Te=20480;e[e.question=Te]="question";const ot=21504;e[e.questionDot=ot]="questionDot";const Me=22528;e[e.arrow=Me]="arrow";const it=23552;e[e.template=it]="template";const Ue=24576;e[e.ellipsis=Ue]="ellipsis";const We=25600;e[e.backQuote=We]="backQuote";const K=27136;e[e.dollarBraceL=K]="dollarBraceL";const ye=27648;e[e.at=ye]="at";const Le=29184;e[e.hash=Le]="hash";const Ve=29728;e[e.eq=Ve]="eq";const Be=30752;e[e.assign=Be]="assign";const Se=32640;e[e.preIncDec=Se]="preIncDec";const we=33664;e[e.postIncDec=we]="postIncDec";const _=34432;e[e.bang=_]="bang";const E=35456;e[e.tilde=E]="tilde";const A=35841;e[e.pipeline=A]="pipeline";const P=36866;e[e.nullishCoalescing=P]="nullishCoalescing";const j=37890;e[e.logicalOR=j]="logicalOR";const q=38915;e[e.logicalAND=q]="logicalAND";const U=39940;e[e.bitwiseOR=U]="bitwiseOR";const ee=40965;e[e.bitwiseXOR=ee]="bitwiseXOR";const le=41990;e[e.bitwiseAND=le]="bitwiseAND";const ie=43015;e[e.equality=ie]="equality";const $e=44040;e[e.lessThan=$e]="lessThan";const Oe=45064;e[e.greaterThan=Oe]="greaterThan";const ge=46088;e[e.relationalOrEqual=ge]="relationalOrEqual";const Ae=47113;e[e.bitShiftL=Ae]="bitShiftL";const Ce=48137;e[e.bitShiftR=Ce]="bitShiftR";const Dt=49802;e[e.plus=Dt]="plus";const Yt=50826;e[e.minus=Yt]="minus";const Nn=51723;e[e.modulo=Nn]="modulo";const so=52235;e[e.star=so]="star";const oo=53259;e[e.slash=oo]="slash";const io=54348;e[e.exponent=io]="exponent";const ao=55296;e[e.jsxName=ao]="jsxName";const co=56320;e[e.jsxText=co]="jsxText";const lo=57344;e[e.jsxEmptyText=lo]="jsxEmptyText";const uo=58880;e[e.jsxTagStart=uo]="jsxTagStart";const fo=59392;e[e.jsxTagEnd=fo]="jsxTagEnd";const po=60928;e[e.typeParameterStart=po]="typeParameterStart";const ho=61440;e[e.nonNullAssertion=ho]="nonNullAssertion";const mo=62480;e[e._break=mo]="_break";const go=63504;e[e._case=go]="_case";const bo=64528;e[e._catch=bo]="_catch";const ko=65552;e[e._continue=ko]="_continue";const yo=66576;e[e._debugger=yo]="_debugger";const xo=67600;e[e._default=xo]="_default";const wo=68624;e[e._do=wo]="_do";const vo=69648;e[e._else=vo]="_else";const _o=70672;e[e._finally=_o]="_finally";const So=71696;e[e._for=So]="_for";const $o=73232;e[e._function=$o]="_function";const Io=73744;e[e._if=Io]="_if";const Eo=74768;e[e._return=Eo]="_return";const To=75792;e[e._switch=To]="_switch";const Ao=77456;e[e._throw=Ao]="_throw";const Co=77840;e[e._try=Co]="_try";const Po=78864;e[e._var=Po]="_var";const Ro=79888;e[e._let=Ro]="_let";const No=80912;e[e._const=No]="_const";const jo=81936;e[e._while=jo]="_while";const Lo=82960;e[e._with=Lo]="_with";const Oo=84496;e[e._new=Oo]="_new";const Fo=85520;e[e._this=Fo]="_this";const Do=86544;e[e._super=Do]="_super";const Mo=87568;e[e._class=Mo]="_class";const Bo=88080;e[e._extends=Bo]="_extends";const zo=89104;e[e._export=zo]="_export";const qo=90640;e[e._import=qo]="_import";const Uo=91664;e[e._yield=Uo]="_yield";const Wo=92688;e[e._null=Wo]="_null";const Vo=93712;e[e._true=Vo]="_true";const Ho=94736;e[e._false=Ho]="_false";const Go=95256;e[e._in=Go]="_in";const Xo=96280;e[e._instanceof=Xo]="_instanceof";const Yo=97936;e[e._typeof=Yo]="_typeof";const Ko=98960;e[e._void=Ko]="_void";const gk=99984;e[e._delete=gk]="_delete";const bk=100880;e[e._async=bk]="_async";const kk=101904;e[e._get=kk]="_get";const yk=102928;e[e._set=yk]="_set";const xk=103952;e[e._declare=xk]="_declare";const wk=104976;e[e._readonly=wk]="_readonly";const vk=106e3;e[e._abstract=vk]="_abstract";const _k=107024;e[e._static=_k]="_static";const Sk=107536;e[e._public=Sk]="_public";const $k=108560;e[e._private=$k]="_private";const Ik=109584;e[e._protected=Ik]="_protected";const Ek=110608;e[e._override=Ek]="_override";const Tk=112144;e[e._as=Tk]="_as";const Ak=113168;e[e._enum=Ak]="_enum";const Ck=114192;e[e._type=Ck]="_type";const Pk=115216;e[e._implements=Pk]="_implements"})(r||(r={}));function jl(e){switch(e){case r.num:return"num";case r.bigint:return"bigint";case r.decimal:return"decimal";case r.regexp:return"regexp";case r.string:return"string";case r.name:return"name";case r.eof:return"eof";case r.bracketL:return"[";case r.bracketR:return"]";case r.braceL:return"{";case r.braceBarL:return"{|";case r.braceR:return"}";case r.braceBarR:return"|}";case r.parenL:return"(";case r.parenR:return")";case r.comma:return",";case r.semi:return";";case r.colon:return":";case r.doubleColon:return"::";case r.dot:return".";case r.question:return"?";case r.questionDot:return"?.";case r.arrow:return"=>";case r.template:return"template";case r.ellipsis:return"...";case r.backQuote:return"`";case r.dollarBraceL:return"${";case r.at:return"@";case r.hash:return"#";case r.eq:return"=";case r.assign:return"_=";case r.preIncDec:return"++/--";case r.postIncDec:return"++/--";case r.bang:return"!";case r.tilde:return"~";case r.pipeline:return"|>";case r.nullishCoalescing:return"??";case r.logicalOR:return"||";case r.logicalAND:return"&&";case r.bitwiseOR:return"|";case r.bitwiseXOR:return"^";case r.bitwiseAND:return"&";case r.equality:return"==/!=";case r.lessThan:return"<";case r.greaterThan:return">";case r.relationalOrEqual:return"<=/>=";case r.bitShiftL:return"<<";case r.bitShiftR:return">>/>>>";case r.plus:return"+";case r.minus:return"-";case r.modulo:return"%";case r.star:return"*";case r.slash:return"/";case r.exponent:return"**";case r.jsxName:return"jsxName";case r.jsxText:return"jsxText";case r.jsxEmptyText:return"jsxEmptyText";case r.jsxTagStart:return"jsxTagStart";case r.jsxTagEnd:return"jsxTagEnd";case r.typeParameterStart:return"typeParameterStart";case r.nonNullAssertion:return"nonNullAssertion";case r._break:return"break";case r._case:return"case";case r._catch:return"catch";case r._continue:return"continue";case r._debugger:return"debugger";case r._default:return"default";case r._do:return"do";case r._else:return"else";case r._finally:return"finally";case r._for:return"for";case r._function:return"function";case r._if:return"if";case r._return:return"return";case r._switch:return"switch";case r._throw:return"throw";case r._try:return"try";case r._var:return"var";case r._let:return"let";case r._const:return"const";case r._while:return"while";case r._with:return"with";case r._new:return"new";case r._this:return"this";case r._super:return"super";case r._class:return"class";case r._extends:return"extends";case r._export:return"export";case r._import:return"import";case r._yield:return"yield";case r._null:return"null";case r._true:return"true";case r._false:return"false";case r._in:return"in";case r._instanceof:return"instanceof";case r._typeof:return"typeof";case r._void:return"void";case r._delete:return"delete";case r._async:return"async";case r._get:return"get";case r._set:return"set";case r._declare:return"declare";case r._readonly:return"readonly";case r._abstract:return"abstract";case r._static:return"static";case r._public:return"public";case r._private:return"private";case r._protected:return"protected";case r._override:return"override";case r._as:return"as";case r._enum:return"enum";case r._type:return"type";case r._implements:return"implements";default:return""}}class Qe{constructor(t,n,s){this.startTokenIndex=t,this.endTokenIndex=n,this.isFunctionScope=s}}class Ll{constructor(t,n,s,o,i,c,l,u,f,h,m,k,v){this.potentialArrowAt=t,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=s,this.tokensLength=o,this.scopesLength=i,this.pos=c,this.type=l,this.contextualKeyword=u,this.start=f,this.end=h,this.isType=m,this.scopeDepth=k,this.error=v}}class Pe{constructor(){Pe.prototype.__init.call(this),Pe.prototype.__init2.call(this),Pe.prototype.__init3.call(this),Pe.prototype.__init4.call(this),Pe.prototype.__init5.call(this),Pe.prototype.__init6.call(this),Pe.prototype.__init7.call(this),Pe.prototype.__init8.call(this),Pe.prototype.__init9.call(this),Pe.prototype.__init10.call(this),Pe.prototype.__init11.call(this),Pe.prototype.__init12.call(this),Pe.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=r.eof}__init8(){this.contextualKeyword=d.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Ll(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}var g;(function(e){e[e.backSpace=8]="backSpace";const n=10;e[e.lineFeed=n]="lineFeed";const s=9;e[e.tab=s]="tab";const o=13;e[e.carriageReturn=o]="carriageReturn";const i=14;e[e.shiftOut=i]="shiftOut";const c=32;e[e.space=c]="space";const l=33;e[e.exclamationMark=l]="exclamationMark";const u=34;e[e.quotationMark=u]="quotationMark";const f=35;e[e.numberSign=f]="numberSign";const h=36;e[e.dollarSign=h]="dollarSign";const m=37;e[e.percentSign=m]="percentSign";const k=38;e[e.ampersand=k]="ampersand";const v=39;e[e.apostrophe=v]="apostrophe";const $=40;e[e.leftParenthesis=$]="leftParenthesis";const R=41;e[e.rightParenthesis=R]="rightParenthesis";const D=42;e[e.asterisk=D]="asterisk";const F=43;e[e.plusSign=F]="plusSign";const I=44;e[e.comma=I]="comma";const T=45;e[e.dash=T]="dash";const S=46;e[e.dot=S]="dot";const L=47;e[e.slash=L]="slash";const Y=48;e[e.digit0=Y]="digit0";const N=49;e[e.digit1=N]="digit1";const z=50;e[e.digit2=z]="digit2";const X=51;e[e.digit3=X]="digit3";const ne=52;e[e.digit4=ne]="digit4";const ce=53;e[e.digit5=ce]="digit5";const Te=54;e[e.digit6=Te]="digit6";const ot=55;e[e.digit7=ot]="digit7";const Me=56;e[e.digit8=Me]="digit8";const it=57;e[e.digit9=it]="digit9";const Ue=58;e[e.colon=Ue]="colon";const We=59;e[e.semicolon=We]="semicolon";const K=60;e[e.lessThan=K]="lessThan";const ye=61;e[e.equalsTo=ye]="equalsTo";const Le=62;e[e.greaterThan=Le]="greaterThan";const Ve=63;e[e.questionMark=Ve]="questionMark";const Be=64;e[e.atSign=Be]="atSign";const Se=65;e[e.uppercaseA=Se]="uppercaseA";const we=66;e[e.uppercaseB=we]="uppercaseB";const _=67;e[e.uppercaseC=_]="uppercaseC";const E=68;e[e.uppercaseD=E]="uppercaseD";const A=69;e[e.uppercaseE=A]="uppercaseE";const P=70;e[e.uppercaseF=P]="uppercaseF";const j=71;e[e.uppercaseG=j]="uppercaseG";const q=72;e[e.uppercaseH=q]="uppercaseH";const U=73;e[e.uppercaseI=U]="uppercaseI";const ee=74;e[e.uppercaseJ=ee]="uppercaseJ";const le=75;e[e.uppercaseK=le]="uppercaseK";const ie=76;e[e.uppercaseL=ie]="uppercaseL";const $e=77;e[e.uppercaseM=$e]="uppercaseM";const Oe=78;e[e.uppercaseN=Oe]="uppercaseN";const ge=79;e[e.uppercaseO=ge]="uppercaseO";const Ae=80;e[e.uppercaseP=Ae]="uppercaseP";const Ce=81;e[e.uppercaseQ=Ce]="uppercaseQ";const Dt=82;e[e.uppercaseR=Dt]="uppercaseR";const Yt=83;e[e.uppercaseS=Yt]="uppercaseS";const Nn=84;e[e.uppercaseT=Nn]="uppercaseT";const so=85;e[e.uppercaseU=so]="uppercaseU";const oo=86;e[e.uppercaseV=oo]="uppercaseV";const io=87;e[e.uppercaseW=io]="uppercaseW";const ao=88;e[e.uppercaseX=ao]="uppercaseX";const co=89;e[e.uppercaseY=co]="uppercaseY";const lo=90;e[e.uppercaseZ=lo]="uppercaseZ";const uo=91;e[e.leftSquareBracket=uo]="leftSquareBracket";const fo=92;e[e.backslash=fo]="backslash";const po=93;e[e.rightSquareBracket=po]="rightSquareBracket";const ho=94;e[e.caret=ho]="caret";const mo=95;e[e.underscore=mo]="underscore";const go=96;e[e.graveAccent=go]="graveAccent";const bo=97;e[e.lowercaseA=bo]="lowercaseA";const ko=98;e[e.lowercaseB=ko]="lowercaseB";const yo=99;e[e.lowercaseC=yo]="lowercaseC";const xo=100;e[e.lowercaseD=xo]="lowercaseD";const wo=101;e[e.lowercaseE=wo]="lowercaseE";const vo=102;e[e.lowercaseF=vo]="lowercaseF";const _o=103;e[e.lowercaseG=_o]="lowercaseG";const So=104;e[e.lowercaseH=So]="lowercaseH";const $o=105;e[e.lowercaseI=$o]="lowercaseI";const Io=106;e[e.lowercaseJ=Io]="lowercaseJ";const Eo=107;e[e.lowercaseK=Eo]="lowercaseK";const To=108;e[e.lowercaseL=To]="lowercaseL";const Ao=109;e[e.lowercaseM=Ao]="lowercaseM";const Co=110;e[e.lowercaseN=Co]="lowercaseN";const Po=111;e[e.lowercaseO=Po]="lowercaseO";const Ro=112;e[e.lowercaseP=Ro]="lowercaseP";const No=113;e[e.lowercaseQ=No]="lowercaseQ";const jo=114;e[e.lowercaseR=jo]="lowercaseR";const Lo=115;e[e.lowercaseS=Lo]="lowercaseS";const Oo=116;e[e.lowercaseT=Oo]="lowercaseT";const Fo=117;e[e.lowercaseU=Fo]="lowercaseU";const Do=118;e[e.lowercaseV=Do]="lowercaseV";const Mo=119;e[e.lowercaseW=Mo]="lowercaseW";const Bo=120;e[e.lowercaseX=Bo]="lowercaseX";const zo=121;e[e.lowercaseY=zo]="lowercaseY";const qo=122;e[e.lowercaseZ=qo]="lowercaseZ";const Uo=123;e[e.leftCurlyBrace=Uo]="leftCurlyBrace";const Wo=124;e[e.verticalBar=Wo]="verticalBar";const Vo=125;e[e.rightCurlyBrace=Vo]="rightCurlyBrace";const Ho=126;e[e.tilde=Ho]="tilde";const Go=160;e[e.nonBreakingSpace=Go]="nonBreakingSpace";const Xo=5760;e[e.oghamSpaceMark=Xo]="oghamSpaceMark";const Yo=8232;e[e.lineSeparator=Yo]="lineSeparator";const Ko=8233;e[e.paragraphSeparator=Ko]="paragraphSeparator"})(g||(g={}));let Ln,Z,Q,a,C,ei;function Kt(){return ei++}function Ol(e){if("pos"in e){const t=Dl(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}class Fl{constructor(t,n){this.line=t,this.column=n}}function Dl(e){let t=1,n=1;for(let s=0;s<e;s++)C.charCodeAt(s)===g.lineFeed?(t++,n=1):n++;return new Fl(t,n)}function Ml(e,t,n,s){C=e,a=new Pe,ei=1,Ln=t,Z=n,Q=s}function O(e){return a.contextualKeyword===e}function Cr(e){const t=Zt();return t.type===r.name&&t.contextualKeyword===e}function be(e){return a.contextualKeyword===e&&y(r.name)}function me(e){be(e)||W()}function Fe(){return p(r.eof)||p(r.braceR)||Re()}function Re(){const e=a.tokens[a.tokens.length-1],t=e?e.end:0;for(let n=t;n<a.start;n++){const s=C.charCodeAt(n);if(s===g.lineFeed||s===g.carriageReturn||s===8232||s===8233)return!0}return!1}function ti(){const e=Pr();for(let t=a.end;t<e;t++){const n=C.charCodeAt(t);if(n===g.lineFeed||n===g.carriageReturn||n===8232||n===8233)return!0}return!1}function et(){return y(r.semi)||Fe()}function ae(){et()||W(\'Unexpected token, expected ";"\')}function x(e){y(e)||W(`Unexpected token, expected "${jl(e)}"`)}function W(e="Unexpected token",t=a.start){if(a.error)return;const n=new SyntaxError(e);n.pos=t,a.error=n,a.pos=C.length,V(r.eof)}const ni=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],ri=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g,si=new Uint8Array(65536);for(const e of ni)si[e]=1;function Bl(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const He=new Uint8Array(65536);for(let e=0;e<128;e++)He[e]=Bl(e)?1:0;for(let e=128;e<65536;e++)He[e]=1;for(const e of ni)He[e]=0;He[8232]=0,He[8233]=0;const Jt=He.slice();for(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1,-1,-1,-1,-1,-1,-1,-1,(r._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(r._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(r._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function zl(){let e=0,t=0,n=a.pos;for(;n<C.length&&(t=C.charCodeAt(n),!(t<g.lowercaseA||t>g.lowercaseZ));){const o=oi[e+(t-g.lowercaseA)+1];if(o===-1)break;e=o,n++}const s=oi[e];if(s>-1&&!He[t]){a.pos=n,s&1?V(s>>>1):V(r.name,s>>>1);return}for(;n<C.length;){const o=C.charCodeAt(n);if(He[o])n++;else if(o===g.backslash){if(n+=2,C.charCodeAt(n)===g.leftCurlyBrace){for(;n<C.length&&C.charCodeAt(n)!==g.rightCurlyBrace;)n++;n++}}else if(o===g.atSign&&C.charCodeAt(n+1)===g.atSign)n+=2;else break}a.pos=n,V(r.name)}var M;(function(e){e[e.Access=0]="Access";const n=1;e[e.ExportAccess=n]="ExportAccess";const s=n+1;e[e.TopLevelDeclaration=s]="TopLevelDeclaration";const o=s+1;e[e.FunctionScopedDeclaration=o]="FunctionScopedDeclaration";const i=o+1;e[e.BlockScopedDeclaration=i]="BlockScopedDeclaration";const c=i+1;e[e.ObjectShorthandTopLevelDeclaration=c]="ObjectShorthandTopLevelDeclaration";const l=c+1;e[e.ObjectShorthandFunctionScopedDeclaration=l]="ObjectShorthandFunctionScopedDeclaration";const u=l+1;e[e.ObjectShorthandBlockScopedDeclaration=u]="ObjectShorthandBlockScopedDeclaration";const f=u+1;e[e.ObjectShorthand=f]="ObjectShorthand";const h=f+1;e[e.ImportDeclaration=h]="ImportDeclaration";const m=h+1;e[e.ObjectKey=m]="ObjectKey";const k=m+1;e[e.ImportAccess=k]="ImportAccess"})(M||(M={}));var Ge;(function(e){e[e.NoChildren=0]="NoChildren";const n=1;e[e.OneChild=n]="OneChild";const s=n+1;e[e.StaticChildren=s]="StaticChildren";const o=s+1;e[e.KeyAfterPropSpread=o]="KeyAfterPropSpread"})(Ge||(Ge={}));function ii(e){const t=e.identifierRole;return t===M.TopLevelDeclaration||t===M.FunctionScopedDeclaration||t===M.BlockScopedDeclaration||t===M.ObjectShorthandTopLevelDeclaration||t===M.ObjectShorthandFunctionScopedDeclaration||t===M.ObjectShorthandBlockScopedDeclaration}function ql(e){const t=e.identifierRole;return t===M.FunctionScopedDeclaration||t===M.BlockScopedDeclaration||t===M.ObjectShorthandFunctionScopedDeclaration||t===M.ObjectShorthandBlockScopedDeclaration}function ai(e){const t=e.identifierRole;return t===M.TopLevelDeclaration||t===M.ObjectShorthandTopLevelDeclaration||t===M.ImportDeclaration}function Ul(e){const t=e.identifierRole;return t===M.TopLevelDeclaration||t===M.BlockScopedDeclaration||t===M.ObjectShorthandTopLevelDeclaration||t===M.ObjectShorthandBlockScopedDeclaration}function Wl(e){const t=e.identifierRole;return t===M.FunctionScopedDeclaration||t===M.ObjectShorthandFunctionScopedDeclaration}function Vl(e){return e.identifierRole===M.ObjectShorthandTopLevelDeclaration||e.identifierRole===M.ObjectShorthandBlockScopedDeclaration||e.identifierRole===M.ObjectShorthandFunctionScopedDeclaration}class On{constructor(){this.type=a.type,this.contextualKeyword=a.contextualKeyword,this.start=a.start,this.end=a.end,this.scopeDepth=a.scopeDepth,this.isType=a.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function w(){a.tokens.push(new On),fi()}function mt(){a.tokens.push(new On),a.start=a.pos,cu()}function Hl(){a.type===r.assign&&--a.pos,ou()}function G(e){for(let n=a.tokens.length-e;n<a.tokens.length;n++)a.tokens[n].isType=!0;const t=a.isType;return a.isType=!0,t}function H(e){a.isType=e}function y(e){return p(e)?(w(),!0):!1}function ci(e){const t=a.isType;a.isType=!0,y(e),a.isType=t}function p(e){return a.type===e}function ue(){const e=a.snapshot();w();const t=a.type;return a.restoreFromSnapshot(e),t}class Gl{constructor(t,n){this.type=t,this.contextualKeyword=n}}function Zt(){const e=a.snapshot();w();const t=a.type,n=a.contextualKeyword;return a.restoreFromSnapshot(e),new Gl(t,n)}function Pr(){return li(a.pos)}function li(e){ri.lastIndex=e;const t=ri.exec(C);return e+t[0].length}function ui(){return C.charCodeAt(Pr())}function fi(){if(hi(),a.start=a.pos,a.pos>=C.length){const e=a.tokens;e.length>=2&&e[e.length-1].start>=C.length&&e[e.length-2].start>=C.length&&W("Unexpectedly reached the end of input."),V(r.eof);return}Xl(C.charCodeAt(a.pos))}function Xl(e){Jt[e]||e===g.backslash||e===g.atSign&&C.charCodeAt(a.pos+1)===g.atSign?zl():gi(e)}function Yl(){for(;C.charCodeAt(a.pos)!==g.asterisk||C.charCodeAt(a.pos+1)!==g.slash;)if(a.pos++,a.pos>C.length){W("Unterminated comment",a.pos-2);return}a.pos+=2}function pi(e){let t=C.charCodeAt(a.pos+=e);if(a.pos<C.length)for(;t!==g.lineFeed&&t!==g.carriageReturn&&t!==g.lineSeparator&&t!==g.paragraphSeparator&&++a.pos<C.length;)t=C.charCodeAt(a.pos)}function hi(){for(;a.pos<C.length;){const e=C.charCodeAt(a.pos);switch(e){case g.carriageReturn:C.charCodeAt(a.pos+1)===g.lineFeed&&++a.pos;case g.lineFeed:case g.lineSeparator:case g.paragraphSeparator:++a.pos;break;case g.slash:switch(C.charCodeAt(a.pos+1)){case g.asterisk:a.pos+=2,Yl();break;case g.slash:pi(2);break;default:return}break;default:if(si[e])++a.pos;else return}}}function V(e,t=d.NONE){a.end=a.pos,a.type=e,a.contextualKeyword=t}function Kl(){const e=C.charCodeAt(a.pos+1);if(e>=g.digit0&&e<=g.digit9){bi(!0);return}e===g.dot&&C.charCodeAt(a.pos+2)===g.dot?(a.pos+=3,V(r.ellipsis)):(++a.pos,V(r.dot))}function Jl(){C.charCodeAt(a.pos+1)===g.equalsTo?te(r.assign,2):te(r.slash,1)}function Zl(e){let t=e===g.asterisk?r.star:r.modulo,n=1,s=C.charCodeAt(a.pos+1);e===g.asterisk&&s===g.asterisk&&(n++,s=C.charCodeAt(a.pos+2),t=r.exponent),s===g.equalsTo&&C.charCodeAt(a.pos+2)!==g.greaterThan&&(n++,t=r.assign),te(t,n)}function Ql(e){const t=C.charCodeAt(a.pos+1);if(t===e){C.charCodeAt(a.pos+2)===g.equalsTo?te(r.assign,3):te(e===g.verticalBar?r.logicalOR:r.logicalAND,2);return}if(e===g.verticalBar){if(t===g.greaterThan){te(r.pipeline,2);return}else if(t===g.rightCurlyBrace&&Q){te(r.braceBarR,2);return}}if(t===g.equalsTo){te(r.assign,2);return}te(e===g.verticalBar?r.bitwiseOR:r.bitwiseAND,1)}function eu(){C.charCodeAt(a.pos+1)===g.equalsTo?te(r.assign,2):te(r.bitwiseXOR,1)}function tu(e){const t=C.charCodeAt(a.pos+1);if(t===e){te(r.preIncDec,2);return}t===g.equalsTo?te(r.assign,2):e===g.plusSign?te(r.plus,1):te(r.minus,1)}function nu(){const e=C.charCodeAt(a.pos+1);if(e===g.lessThan){if(C.charCodeAt(a.pos+2)===g.equalsTo){te(r.assign,3);return}a.isType?te(r.lessThan,1):te(r.bitShiftL,2);return}e===g.equalsTo?te(r.relationalOrEqual,2):te(r.lessThan,1)}function di(){if(a.isType){te(r.greaterThan,1);return}const e=C.charCodeAt(a.pos+1);if(e===g.greaterThan){const t=C.charCodeAt(a.pos+2)===g.greaterThan?3:2;if(C.charCodeAt(a.pos+t)===g.equalsTo){te(r.assign,t+1);return}te(r.bitShiftR,t);return}e===g.equalsTo?te(r.relationalOrEqual,2):te(r.greaterThan,1)}function mi(){a.type===r.greaterThan&&(a.pos-=1,di())}function ru(e){const t=C.charCodeAt(a.pos+1);if(t===g.equalsTo){te(r.equality,C.charCodeAt(a.pos+2)===g.equalsTo?3:2);return}if(e===g.equalsTo&&t===g.greaterThan){a.pos+=2,V(r.arrow);return}te(e===g.equalsTo?r.eq:r.bang,1)}function su(){const e=C.charCodeAt(a.pos+1),t=C.charCodeAt(a.pos+2);e===g.questionMark&&!(Q&&a.isType)?t===g.equalsTo?te(r.assign,3):te(r.nullishCoalescing,2):e===g.dot&&!(t>=g.digit0&&t<=g.digit9)?(a.pos+=2,V(r.questionDot)):(++a.pos,V(r.question))}function gi(e){switch(e){case g.numberSign:++a.pos,V(r.hash);return;case g.dot:Kl();return;case g.leftParenthesis:++a.pos,V(r.parenL);return;case g.rightParenthesis:++a.pos,V(r.parenR);return;case g.semicolon:++a.pos,V(r.semi);return;case g.comma:++a.pos,V(r.comma);return;case g.leftSquareBracket:++a.pos,V(r.bracketL);return;case g.rightSquareBracket:++a.pos,V(r.bracketR);return;case g.leftCurlyBrace:Q&&C.charCodeAt(a.pos+1)===g.verticalBar?te(r.braceBarL,2):(++a.pos,V(r.braceL));return;case g.rightCurlyBrace:++a.pos,V(r.braceR);return;case g.colon:C.charCodeAt(a.pos+1)===g.colon?te(r.doubleColon,2):(++a.pos,V(r.colon));return;case g.questionMark:su();return;case g.atSign:++a.pos,V(r.at);return;case g.graveAccent:++a.pos,V(r.backQuote);return;case g.digit0:{const t=C.charCodeAt(a.pos+1);if(t===g.lowercaseX||t===g.uppercaseX||t===g.lowercaseO||t===g.uppercaseO||t===g.lowercaseB||t===g.uppercaseB){iu();return}}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:bi(!1);return;case g.quotationMark:case g.apostrophe:au(e);return;case g.slash:Jl();return;case g.percentSign:case g.asterisk:Zl(e);return;case g.verticalBar:case g.ampersand:Ql(e);return;case g.caret:eu();return;case g.plusSign:case g.dash:tu(e);return;case g.lessThan:nu();return;case g.greaterThan:di();return;case g.equalsTo:case g.exclamationMark:ru(e);return;case g.tilde:te(r.tilde,1);return}W(`Unexpected character \'${String.fromCharCode(e)}\'`,a.pos)}function te(e,t){a.pos+=t,V(e)}function ou(){const e=a.pos;let t=!1,n=!1;for(;;){if(a.pos>=C.length){W("Unterminated regular expression",e);return}const s=C.charCodeAt(a.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)n=!0;else if(s===g.rightSquareBracket&&n)n=!1;else if(s===g.slash&&!n)break;t=s===g.backslash}++a.pos}++a.pos,lu(),V(r.regexp)}function Rr(){for(;;){const e=C.charCodeAt(a.pos);if(e>=g.digit0&&e<=g.digit9||e===g.underscore)a.pos++;else break}}function iu(){for(a.pos+=2;;){const t=C.charCodeAt(a.pos);if(t>=g.digit0&&t<=g.digit9||t>=g.lowercaseA&&t<=g.lowercaseF||t>=g.uppercaseA&&t<=g.uppercaseF||t===g.underscore)a.pos++;else break}C.charCodeAt(a.pos)===g.lowercaseN?(++a.pos,V(r.bigint)):V(r.num)}function bi(e){let t=!1,n=!1;e||Rr();let s=C.charCodeAt(a.pos);if(s===g.dot&&(++a.pos,Rr(),s=C.charCodeAt(a.pos)),(s===g.uppercaseE||s===g.lowercaseE)&&(s=C.charCodeAt(++a.pos),(s===g.plusSign||s===g.dash)&&++a.pos,Rr(),s=C.charCodeAt(a.pos)),s===g.lowercaseN?(++a.pos,t=!0):s===g.lowercaseM&&(++a.pos,n=!0),t){V(r.bigint);return}if(n){V(r.decimal);return}V(r.num)}function au(e){for(a.pos++;;){if(a.pos>=C.length){W("Unterminated string constant");return}const t=C.charCodeAt(a.pos);if(t===g.backslash)a.pos++;else if(t===e)break;a.pos++}a.pos++,V(r.string)}function cu(){for(;;){if(a.pos>=C.length){W("Unterminated template");return}const e=C.charCodeAt(a.pos);if(e===g.graveAccent||e===g.dollarSign&&C.charCodeAt(a.pos+1)===g.leftCurlyBrace){if(a.pos===a.start&&p(r.template))if(e===g.dollarSign){a.pos+=2,V(r.dollarBraceL);return}else{++a.pos,V(r.backQuote);return}V(r.template);return}e===g.backslash&&a.pos++,a.pos++}}function lu(){for(;a.pos<C.length;){const e=C.charCodeAt(a.pos);if(He[e])a.pos++;else if(e===g.backslash){if(a.pos+=2,C.charCodeAt(a.pos)===g.leftCurlyBrace){for(;a.pos<C.length&&C.charCodeAt(a.pos)!==g.rightCurlyBrace;)a.pos++;a.pos++}}else break}}function Qt(e,t=e.currentIndex()){let n=t+1;if(Fn(e,n)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,Fn(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,Fn(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,Fn(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function Fn(e,t){const n=e.tokens[t];return n.type===r.braceR||n.type===r.comma}var uu=new Map([["quot",\'"\'],["amp","&"],["apos","\'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj","‌"],["zwj","‍"],["lrm","‎"],["rlm","‏"],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function ki(e){const[t,n]=yi(e.jsxPragma||"React.createElement"),[s,o]=yi(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:s,fragmentSuffix:o}}function yi(e){let t=e.indexOf(".");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}class Xe{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class It extends Xe{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,n,s,o,i){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=s,this.nameManager=o,this.options=i,It.prototype.__init.call(this),It.prototype.__init2.call(this),It.prototype.__init3.call(this),It.prototype.__init4.call(this),It.prototype.__init5.call(this),this.jsxPragmaInfo=ki(i),this.isAutomaticRuntime=i.jsxRuntime==="automatic",this.jsxImportSource=i.jsxImportSource||"react"}process(){return this.tokens.matches1(r.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${s} = require("${n}");`;else{const{createElement:n,...s}=this.esmAutomaticImportNameResolutions;n&&(t+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const o=Object.entries(s).map(([i,c])=>`${i} as ${c}`).join(", ");if(o){const i=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${o}} from "${i}";`}}return t}processJSXTag(){const{jsxRole:t,start:n}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&t!==Ge.KeyAfterPropSpread?this.transformTagToJSXFunc(s,t):this.transformTagToCreateElement(s)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const n=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<n.length;)n[this.lastIndex]===`\n`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,n){const s=n===Ge.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let o=null;if(this.tokens.matches1(r.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),o=this.processProps(!0),this.tokens.matches2(r.slash,r.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(r.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");o&&this.tokens.appendCode(`, ${o}`)}for(this.options.production||(o===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(r.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(r.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(r.slash,r.jsxTagEnd))if(this.tokens.matches1(r.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(r.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,n){const s=this.claimAutoImportedName(t,n);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(t,n){if(this.importProcessor){const s=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,r.jsxName,r.jsxName)&&!this.tokens.matches2AtIndex(t-1,r.greaterThan,r.jsxName)&&!this.tokens.matches1AtIndex(t,r.braceL)&&!this.tokens.matches1AtIndex(t,r.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,r.slash,r.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();xi(n)&&this.tokens.replaceToken(`\'${n}\'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(r.jsxName)&&!this.tokens.matches1(r.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(t){let n=null;for(;;){if(this.tokens.matches2(r.jsxName,r.eq)){const s=this.tokens.identifierName();if(t&&s==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const o=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(o);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(r.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(r.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(t){t.includes("-")?this.tokens.replaceToken(`\'${t}\'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(r.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(r.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start+1,t.end-1),s=wi(n),o=pu(n);this.tokens.replaceToken(o+s)}processAutomaticChildrenAndEndProps(t){t===Ge.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===Ge.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let n=t;for(;;){if(this.tokens.matches2(r.jsxTagStart,r.slash))return;let s=!1;if(this.tokens.matches1(r.braceL))this.tokens.matches2(r.braceL,r.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(r.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(r.jsxText)||this.tokens.matches1(r.jsxEmptyText))s=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");s&&(n=!0)}}processChildTextElement(t){const n=this.tokens.currentToken(),s=this.tokens.code.slice(n.start,n.end),o=wi(s),i=fu(s);return i===\'""\'?(this.tokens.replaceToken(o),!1):(this.tokens.replaceToken(`${t?", ":""}${i}${o}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function xi(e){const t=e.charCodeAt(0);return t>=g.lowercaseA&&t<=g.lowercaseZ}function fu(e){let t="",n="",s=!1,o=!1;for(let i=0;i<e.length;i++){const c=e[i];if(c===" "||c===" "||c==="\\r")s||(n+=c);else if(c===`\n`)n="",s=!0;else{if(o&&s&&(t+=" "),t+=n,n="",c==="&"){const{entity:l,newI:u}=vi(e,i+1);i=u-1,t+=l}else t+=c;o=!0,s=!1}}return s||(t+=n),JSON.stringify(t)}function wi(e){let t=0,n=0;for(const s of e)s===`\n`?(t++,n=0):s===" "&&n++;return`\n`.repeat(t)+" ".repeat(n)}function pu(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];if(s===`\n`)if(/\\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\\s/.test(e[n+1]);)n++;else t+=`\n`;else if(s==="&"){const{entity:o,newI:i}=vi(e,n+1);t+=o,n=i-1}else t+=s}return JSON.stringify(t)}function vi(e,t){let n="",s=0,o,i=t;if(e[i]==="#"){let c=10;i++;let l;if(e[i]==="x")for(c=16,i++,l=i;i<e.length&&du(e.charCodeAt(i));)i++;else for(l=i;i<e.length&&hu(e.charCodeAt(i));)i++;if(e[i]===";"){const u=e.slice(l,i);u&&(i++,o=String.fromCodePoint(parseInt(u,c)))}}else for(;i<e.length&&s++<10;){const c=e[i];if(i++,c===";"){o=uu.get(n);break}n+=c}return o?{entity:o,newI:i}:{entity:"&",newI:t}}function hu(e){return e>=g.digit0&&e<=g.digit9}function du(e){return e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF}function _i(e,t){const n=ki(t),s=new Set;for(let o=0;o<e.tokens.length;o++){const i=e.tokens[o];if(i.type===r.name&&!i.isType&&(i.identifierRole===M.Access||i.identifierRole===M.ObjectShorthand||i.identifierRole===M.ExportAccess)&&!i.shadowsGlobal&&s.add(e.identifierNameForToken(i)),i.type===r.jsxTagStart&&s.add(n.base),i.type===r.jsxTagStart&&o+1<e.tokens.length&&e.tokens[o+1].type===r.jsxTagEnd&&(s.add(n.base),s.add(n.fragmentBase)),i.type===r.jsxName&&i.identifierRole===M.Access){const c=e.identifierNameForToken(i);(!xi(c)||e.tokens[o+1].type===r.dot)&&s.add(e.identifierNameForToken(i))}}return s}class Et{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,n,s,o,i,c,l){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=s,this.options=o,this.isTypeScriptTransformEnabled=i,this.keepUnusedImports=c,this.helperManager=l,Et.prototype.__init.call(this),Et.prototype.__init2.call(this),Et.prototype.__init3.call(this),Et.prototype.__init4.call(this),Et.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,r._import)&&!this.tokens.matches3AtIndex(t,r._import,r.name,r.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,r._export)&&!this.tokens.matches2AtIndex(t,r._export,r.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=_i(this.tokens,this.options);for(const[t,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:o})=>o)].every(o=>this.shouldAutomaticallyElideImportedName(o))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,n]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:o,namedImports:i,namedExports:c,exportStarNames:l,hasStarExport:u}=n;if(s.length===0&&o.length===0&&i.length===0&&c.length===0&&l.length===0&&!u){this.importsToReplace.set(t,`require(\'${t}\');`);continue}const f=this.getFreeIdentifierForPath(t);let h;this.enableLegacyTypeScriptModuleInterop?h=f:h=o.length>0?o[0]:this.getFreeIdentifierForPath(t);let m=`var ${f} = require(\'${t}\');`;if(o.length>0)for(const k of o){const v=this.enableLegacyTypeScriptModuleInterop?f:`${this.helperManager.getHelperName("interopRequireWildcard")}(${f})`;m+=` var ${k} = ${v};`}else l.length>0&&h!==f?m+=` var ${h} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${f});`:s.length>0&&h!==f&&(m+=` var ${h} = ${this.helperManager.getHelperName("interopRequireDefault")}(${f});`);for(const{importedName:k,localName:v}of c)m+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${f}, \'${v}\', \'${k}\');`;for(const k of l)m+=` exports.${k} = ${h};`;u&&(m+=` ${this.helperManager.getHelperName("createStarExport")}(${f});`),this.importsToReplace.set(t,m);for(const k of s)this.identifierReplacements.set(k,`${h}.default`);for(const{importedName:k,localName:v}of i)this.identifierReplacements.set(v,`${f}.${k}`)}}getFreeIdentifierForPath(t){const n=t.split("/"),o=n[n.length-1].replace(/\\W/g,"");return this.nameManager.claimFreeName(`_${o}`)}preprocessImportAtIndex(t){const n=[],s=[],o=[];if(t++,(this.tokens.matchesContextualAtIndex(t,d._type)||this.tokens.matches1AtIndex(t,r._typeof))&&!this.tokens.matches1AtIndex(t+1,r.comma)&&!this.tokens.matchesContextualAtIndex(t+1,d._from)||this.tokens.matches1AtIndex(t,r.parenL))return;if(this.tokens.matches1AtIndex(t,r.name)&&(n.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,r.comma)&&t++),this.tokens.matches1AtIndex(t,r.star)&&(t+=2,s.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,r.braceL)){const l=this.getNamedImports(t+1);t=l.newIndex;for(const u of l.namedImports)u.importedName==="default"?n.push(u.localName):o.push(u)}if(this.tokens.matchesContextualAtIndex(t,d._from)&&t++,!this.tokens.matches1AtIndex(t,r.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t),c=this.getImportInfo(i);c.defaultNames.push(...n),c.wildcardNames.push(...s),c.namedImports.push(...o),n.length===0&&s.length===0&&o.length===0&&(c.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,r._export,r._var)||this.tokens.matches2AtIndex(t,r._export,r._let)||this.tokens.matches2AtIndex(t,r._export,r._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,r._export,r._function)||this.tokens.matches2AtIndex(t,r._export,r._class)){const n=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(t,r._export,r.name,r._function)){const n=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(t,r._export,r.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,r._export,r.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let n=0;for(let s=t+2;;s++)if(this.tokens.matches1AtIndex(s,r.braceL)||this.tokens.matches1AtIndex(s,r.dollarBraceL)||this.tokens.matches1AtIndex(s,r.bracketL))n++;else if(this.tokens.matches1AtIndex(s,r.braceR)||this.tokens.matches1AtIndex(s,r.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(s,r.name))break;if(this.tokens.matches1AtIndex(1,r.eq)){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");s=o-1}else{const o=this.tokens.tokens[s];if(ii(o)){const i=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(i,`exports.${i}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:n,namedImports:s}=this.getNamedImports(t);if(t=n,this.tokens.matchesContextualAtIndex(t,d._from))t++;else{for(const{importedName:c,localName:l}of s)this.addExportBinding(c,l);return}if(!this.tokens.matches1AtIndex(t,r.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(t);this.getImportInfo(o).namedExports.push(...s)}preprocessExportStarAtIndex(t){let n=null;if(this.tokens.matches3AtIndex(t,r._export,r.star,r._as)?(t+=3,n=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,r.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(t),o=this.getImportInfo(s);n!==null?o.exportStarNames.push(n):o.hasStarExport=!0}getNamedImports(t){const n=[];for(;;){if(this.tokens.matches1AtIndex(t,r.braceR)){t++;break}const s=Qt(this.tokens,t);if(t=s.endIndex,s.isType||n.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(t,r.comma,r.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,r.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,r.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:n}}getImportInfo(t){const n=this.importInfoByPath.get(t);if(n)return n;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,s),s}addExportBinding(t,n){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(n)}claimImportCode(t){const n=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),n||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const n=this.exportBindingsByLocalName.get(t);return!n||n.length===0?null:n.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var mu=44,gu=59,Si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$i=new Uint8Array(64),bu=new Uint8Array(128);for(let e=0;e<Si.length;e++){const t=Si.charCodeAt(e);$i[e]=t,bu[t]=e}function en(e,t,n){let s=t-n;s=s<0?-s<<1|1:s<<1;do{let o=s&31;s>>>=5,s>0&&(o|=32),e.write($i[o])}while(s>0);return t}var Ii=1024*16,Ei=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},ku=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Ii)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===Ii&&(this.out+=Ei.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+Ei.decode(e.subarray(0,n)):t}};function Ti(e){const t=new ku;let n=0,s=0,o=0,i=0;for(let c=0;c<e.length;c++){const l=e[c];if(c>0&&t.write(gu),l.length===0)continue;let u=0;for(let f=0;f<l.length;f++){const h=l[f];f>0&&t.write(mu),u=en(t,h[0],u),h.length!==1&&(n=en(t,h[1],n),s=en(t,h[2],s),o=en(t,h[3],o),h.length!==4&&(i=en(t,h[4],i)))}}return t.flush()}var Dn={exports:{}},yu=Dn.exports,Ai;function xu(){return Ai||(Ai=1,(function(e,t){(function(n,s){e.exports=s()})(yu,(function(){const n=/^[\\w+.-]+:\\/\\//,s=/^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/,o=/^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;function i(I){return n.test(I)}function c(I){return I.startsWith("//")}function l(I){return I.startsWith("/")}function u(I){return I.startsWith("file:")}function f(I){return/^[.?#]/.test(I)}function h(I){const T=s.exec(I);return k(T[1],T[2]||"",T[3],T[4]||"",T[5]||"/",T[6]||"",T[7]||"")}function m(I){const T=o.exec(I),S=T[2];return k("file:","",T[1]||"","",l(S)?S:"/"+S,T[3]||"",T[4]||"")}function k(I,T,S,L,Y,N,z){return{scheme:I,user:T,host:S,port:L,path:Y,query:N,hash:z,type:7}}function v(I){if(c(I)){const S=h("http:"+I);return S.scheme="",S.type=6,S}if(l(I)){const S=h("http://foo.com"+I);return S.scheme="",S.host="",S.type=5,S}if(u(I))return m(I);if(i(I))return h(I);const T=h("http://foo.com/"+I);return T.scheme="",T.host="",T.type=I?I.startsWith("?")?3:I.startsWith("#")?2:4:1,T}function $(I){if(I.endsWith("/.."))return I;const T=I.lastIndexOf("/");return I.slice(0,T+1)}function R(I,T){D(T,T.type),I.path==="/"?I.path=T.path:I.path=$(T.path)+I.path}function D(I,T){const S=T<=4,L=I.path.split("/");let Y=1,N=0,z=!1;for(let ne=1;ne<L.length;ne++){const ce=L[ne];if(!ce){z=!0;continue}if(z=!1,ce!=="."){if(ce===".."){N?(z=!0,N--,Y--):S&&(L[Y++]=ce);continue}L[Y++]=ce,N++}}let X="";for(let ne=1;ne<Y;ne++)X+="/"+L[ne];(!X||z&&!X.endsWith("/.."))&&(X+="/"),I.path=X}function F(I,T){if(!I&&!T)return"";const S=v(I);let L=S.type;if(T&&L!==7){const N=v(T),z=N.type;switch(L){case 1:S.hash=N.hash;case 2:S.query=N.query;case 3:case 4:R(S,N);case 5:S.user=N.user,S.host=N.host,S.port=N.port;case 6:S.scheme=N.scheme}z>L&&(L=z)}D(S,L);const Y=S.query+S.hash;switch(L){case 2:case 3:return Y;case 4:{const N=S.path.slice(1);return N?f(T||I)&&!f(N)?"./"+N+Y:N+Y:Y||"."}case 5:return S.path+Y;default:return S.scheme+"//"+S.user+S.host+S.port+S.path+Y}}return F}))})(Dn)),Dn.exports}xu();var Nr=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Rk(e){return e}function wu(e,t){return e._indexes[t]}function vu(e,t){const n=wu(e,t);if(n!==void 0)return n;const{array:s,_indexes:o}=e,i=s.push(t);return o[t]=i-1}var _u=0,Su=1,$u=2,Iu=3,Eu=4,Ci=-1,Tu=class{constructor({file:e,sourceRoot:t}={}){this._names=new Nr,this._sources=new Nr,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new Nr}};function Nk(e){return e}var jr=(e,t,n,s,o,i,c,l)=>Pu(!0,e,t,n,s,o,i);function Au(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:o,_ignoreList:i}=e;return ju(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:i.array}}function Cu(e){const t=Au(e);return Object.assign({},t,{mappings:Ti(t.mappings)})}function Pu(e,t,n,s,o,i,c,l,u){const{_mappings:f,_sources:h,_sourcesContent:m,_names:k}=t,v=Ru(f,n),$=Nu(v,s);if(!o)return Lu(v,$)?void 0:Pi(v,$,[s]);const R=vu(h,o),D=Ci;if(R===m.length&&(m[R]=null),!Ou(v,$,R,i,c,D))return Pi(v,$,[s,R,i,c])}function Ru(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function Nu(e,t){let n=e.length;for(let s=n-1;s>=0;n=s--){const o=e[s];if(t>=o[_u])break}return n}function Pi(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function ju(e){const{length:t}=e;let n=t;for(let s=n-1;s>=0&&!(e[s].length>0);n=s,s--);n<t&&(e.length=n)}function Lu(e,t){return t===0?!0:e[t-1].length===1}function Ou(e,t,n,s,o,i){if(t===0)return!1;const c=e[t-1];return c.length===1?!1:n===c[Su]&&s===c[$u]&&o===c[Iu]&&i===(c.length===5?c[Eu]:Ci)}function Fu({code:e,mappings:t},n,s,o,i){const c=Du(o,i),l=new Tu({file:s.compiledFilename});let u=0,f=t[0];for(;f===void 0&&u<t.length-1;)u++,f=t[u];let h=0,m=0;f!==m&&jr(l,h,0,n,h,0);for(let R=0;R<e.length;R++){if(R===f){const D=f-m,F=c[u];for(jr(l,h,D,n,h,F);(f===R||f===void 0)&&u<t.length-1;)u++,f=t[u]}e.charCodeAt(R)===g.lineFeed&&(h++,m=R+1,f!==m&&jr(l,h,0,n,h,0))}const{sourceRoot:k,sourcesContent:v,...$}=Cu(l);return $}function Du(e,t){const n=new Array(t.length);let s=0,o=t[s].start,i=0;for(let c=0;c<e.length;c++)c===o&&(n[s]=o-i,s++,o=t[s].start),e.charCodeAt(c)===g.lineFeed&&(i=c+1);return n}const Mu={require:`\n import {createRequire as CREATE_REQUIRE_NAME} from "module";\n const require = CREATE_REQUIRE_NAME(import.meta.url);\n `,interopRequireWildcard:`\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n `,interopRequireDefault:`\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n `,createNamedExportFrom:`\n function createNamedExportFrom(obj, localName, importedName) {\n Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n }\n `,createStarExport:`\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n `,nullishCoalesce:`\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n `,asyncNullishCoalesce:`\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n `,optionalChain:`\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === \'optionalAccess\' || op === \'optionalCall\') && value == null) {\n return undefined;\n }\n if (op === \'access\' || op === \'optionalAccess\') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === \'call\' || op === \'optionalCall\') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n `,asyncOptionalChain:`\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === \'optionalAccess\' || op === \'optionalCall\') && value == null) {\n return undefined;\n }\n if (op === \'access\' || op === \'optionalAccess\') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === \'call\' || op === \'optionalCall\') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n `,optionalChainDelete:`\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n `,asyncOptionalChainDelete:`\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n `};class Mn{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,Mn.prototype.__init.call(this),Mn.prototype.__init2.call(this)}getHelperName(t){let n=this.helperNames[t];return n||(n=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=n,n)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,s]of Object.entries(Mu)){const o=this.helperNames[n];let i=s;n==="optionalChainDelete"?i=i.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?i=i.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),i=i.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),o&&(t+=" ",t+=i.replace(n,o).replace(/\\s+/g," ").trim())}return t}}function Ri(e,t,n){Bu(e,n)&&zu(e,t,n)}function Bu(e,t){for(const n of e.tokens)if(n.type===r.name&&!n.isType&&ql(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1}function zu(e,t,n){const s=[];let o=t.length-1;for(let i=e.tokens.length-1;;i--){for(;s.length>0&&s[s.length-1].startTokenIndex===i+1;)s.pop();for(;o>=0&&t[o].endTokenIndex===i+1;)s.push(t[o]),o--;if(i<0)break;const c=e.tokens[i],l=e.identifierNameForToken(c);if(s.length>1&&!c.isType&&c.type===r.name&&n.has(l)){if(Ul(c))Ni(s[s.length-1],e,l);else if(Wl(c)){let u=s.length-1;for(;u>0&&!s[u].isFunctionScope;)u--;if(u<0)throw new Error("Did not find parent function scope.");Ni(s[u],e,l)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function Ni(e,t,n){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const o=t.tokens[s];(o.type===r.name||o.type===r.jsxName)&&t.identifierNameForToken(o)===n&&(o.shadowsGlobal=!0)}}function qu(e,t){const n=[];for(const s of t)s.type===r.name&&n.push(e.slice(s.start,s.end));return n}class Lr{__init(){this.usedNames=new Set}constructor(t,n){Lr.prototype.__init.call(this),this.usedNames=new Set(qu(t,n))}claimFreeName(t){const n=this.findFreeName(t);return this.usedNames.add(n),n}findFreeName(t){if(!this.usedNames.has(t))return t;let n=2;for(;this.usedNames.has(t+String(n));)n++;return t+String(n)}}var tn={},nn={},Ye={},ji;function Or(){if(ji)return Ye;ji=1;var e=Ye&&Ye.__extends||(function(){var i=function(c,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var h in f)f.hasOwnProperty(h)&&(u[h]=f[h])},i(c,l)};return function(c,l){i(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.DetailContext=Ye.NoopContext=Ye.VError=void 0;var t=(function(i){e(c,i);function c(l,u){var f=i.call(this,u)||this;return f.path=l,Object.setPrototypeOf(f,c.prototype),f}return c})(Error);Ye.VError=t;var n=(function(){function i(){}return i.prototype.fail=function(c,l,u){return!1},i.prototype.unionResolver=function(){return this},i.prototype.createContext=function(){return this},i.prototype.resolveUnion=function(c){},i})();Ye.NoopContext=n;var s=(function(){function i(){this._propNames=[""],this._messages=[null],this._score=0}return i.prototype.fail=function(c,l,u){return this._propNames.push(c),this._messages.push(l),this._score+=u,!1},i.prototype.unionResolver=function(){return new o},i.prototype.resolveUnion=function(c){for(var l,u,f=c,h=null,m=0,k=f.contexts;m<k.length;m++){var v=k[m];(!h||v._score>=h._score)&&(h=v)}h&&h._score>0&&((l=this._propNames).push.apply(l,h._propNames),(u=this._messages).push.apply(u,h._messages))},i.prototype.getError=function(c){for(var l=[],u=this._propNames.length-1;u>=0;u--){var f=this._propNames[u];c+=typeof f=="number"?"["+f+"]":f?"."+f:"";var h=this._messages[u];h&&l.push(c+" "+h)}return new t(c,l.join("; "))},i.prototype.getErrorDetail=function(c){for(var l=[],u=this._propNames.length-1;u>=0;u--){var f=this._propNames[u];c+=typeof f=="number"?"["+f+"]":f?"."+f:"";var h=this._messages[u];h&&l.push({path:c,message:h})}for(var m=null,u=l.length-1;u>=0;u--)m&&(l[u].nested=[m]),m=l[u];return m},i})();Ye.DetailContext=s;var o=(function(){function i(){this.contexts=[]}return i.prototype.createContext=function(){var c=new s;return this.contexts.push(c),c},i})();return Ye}var Li;function Oi(){return Li||(Li=1,(function(e){var t=nn&&nn.__extends||(function(){var _=function(E,A){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,j){P.__proto__=j}||function(P,j){for(var q in j)j.hasOwnProperty(q)&&(P[q]=j[q])},_(E,A)};return function(E,A){_(E,A);function P(){this.constructor=E}E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var n=Or(),s=(function(){function _(){}return _})();e.TType=s;function o(_){return typeof _=="string"?c(_):_}function i(_,E){var A=_[E];if(!A)throw new Error("Unknown type "+E);return A}function c(_){return new l(_)}e.name=c;var l=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.name=A,P._failMsg="is not a "+A,P}return E.prototype.getChecker=function(A,P,j){var q=this,U=i(A,this.name),ee=U.getChecker(A,P,j);return U instanceof K||U instanceof E?ee:function(le,ie){return ee(le,ie)?!0:ie.fail(null,q._failMsg,0)}},E})(s);e.TName=l;function u(_){return new f(_)}e.lit=u;var f=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.value=A,P.name=JSON.stringify(A),P._failMsg="is not "+P.name,P}return E.prototype.getChecker=function(A,P){var j=this;return function(q,U){return q===j.value?!0:U.fail(null,j._failMsg,-1)}},E})(s);e.TLiteral=f;function h(_){return new m(o(_))}e.array=h;var m=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.ttype=A,P}return E.prototype.getChecker=function(A,P){var j=this.ttype.getChecker(A,P);return function(q,U){if(!Array.isArray(q))return U.fail(null,"is not an array",0);for(var ee=0;ee<q.length;ee++){var le=j(q[ee],U);if(!le)return U.fail(ee,null,1)}return!0}},E})(s);e.TArray=m;function k(){for(var _=[],E=0;E<arguments.length;E++)_[E]=arguments[E];return new v(_.map(function(A){return o(A)}))}e.tuple=k;var v=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.ttypes=A,P}return E.prototype.getChecker=function(A,P){var j=this.ttypes.map(function(U){return U.getChecker(A,P)}),q=function(U,ee){if(!Array.isArray(U))return ee.fail(null,"is not an array",0);for(var le=0;le<j.length;le++){var ie=j[le](U[le],ee);if(!ie)return ee.fail(le,null,1)}return!0};return P?function(U,ee){return q(U,ee)?U.length<=j.length?!0:ee.fail(j.length,"is extraneous",2):!1}:q},E})(s);e.TTuple=v;function $(){for(var _=[],E=0;E<arguments.length;E++)_[E]=arguments[E];return new R(_.map(function(A){return o(A)}))}e.union=$;var R=(function(_){t(E,_);function E(A){var P=_.call(this)||this;P.ttypes=A;var j=A.map(function(U){return U instanceof l||U instanceof f?U.name:null}).filter(function(U){return U}),q=A.length-j.length;return j.length?(q>0&&j.push(q+" more"),P._failMsg="is none of "+j.join(", ")):P._failMsg="is none of "+q+" types",P}return E.prototype.getChecker=function(A,P){var j=this,q=this.ttypes.map(function(U){return U.getChecker(A,P)});return function(U,ee){for(var le=ee.unionResolver(),ie=0;ie<q.length;ie++){var $e=q[ie](U,le.createContext());if($e)return!0}return ee.resolveUnion(le),ee.fail(null,j._failMsg,0)}},E})(s);e.TUnion=R;function D(){for(var _=[],E=0;E<arguments.length;E++)_[E]=arguments[E];return new F(_.map(function(A){return o(A)}))}e.intersection=D;var F=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.ttypes=A,P}return E.prototype.getChecker=function(A,P){var j=new Set,q=this.ttypes.map(function(U){return U.getChecker(A,P,j)});return function(U,ee){var le=q.every(function(ie){return ie(U,ee)});return le?!0:ee.fail(null,null,0)}},E})(s);e.TIntersection=F;function I(_){return new T(_)}e.enumtype=I;var T=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.members=A,P.validValues=new Set,P._failMsg="is not a valid enum value",P.validValues=new Set(Object.keys(A).map(function(j){return A[j]})),P}return E.prototype.getChecker=function(A,P){var j=this;return function(q,U){return j.validValues.has(q)?!0:U.fail(null,j._failMsg,0)}},E})(s);e.TEnumType=T;function S(_,E){return new L(_,E)}e.enumlit=S;var L=(function(_){t(E,_);function E(A,P){var j=_.call(this)||this;return j.enumName=A,j.prop=P,j._failMsg="is not "+A+"."+P,j}return E.prototype.getChecker=function(A,P){var j=this,q=i(A,this.enumName);if(!(q instanceof T))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var U=q.members[this.prop];if(!q.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(ee,le){return ee===U?!0:le.fail(null,j._failMsg,-1)}},E})(s);e.TEnumLiteral=L;function Y(_){return Object.keys(_).map(function(E){return N(E,_[E])})}function N(_,E){return E instanceof ce?new Te(_,E.ttype,!0):new Te(_,o(E),!1)}function z(_,E){return new X(_,Y(E))}e.iface=z;var X=(function(_){t(E,_);function E(A,P){var j=_.call(this)||this;return j.bases=A,j.props=P,j.propSet=new Set(P.map(function(q){return q.name})),j}return E.prototype.getChecker=function(A,P,j){var q=this,U=this.bases.map(function(ge){return i(A,ge).getChecker(A,P)}),ee=this.props.map(function(ge){return ge.ttype.getChecker(A,P)}),le=new n.NoopContext,ie=this.props.map(function(ge,Ae){return!ge.isOpt&&!ee[Ae](void 0,le)}),$e=function(ge,Ae){if(typeof ge!="object"||ge===null)return Ae.fail(null,"is not an object",0);for(var Ce=0;Ce<U.length;Ce++)if(!U[Ce](ge,Ae))return!1;for(var Ce=0;Ce<ee.length;Ce++){var Dt=q.props[Ce].name,Yt=ge[Dt];if(Yt===void 0){if(ie[Ce])return Ae.fail(Dt,"is missing",1)}else{var Nn=ee[Ce](Yt,Ae);if(!Nn)return Ae.fail(Dt,null,1)}}return!0};if(!P)return $e;var Oe=this.propSet;return j&&(this.propSet.forEach(function(ge){return j.add(ge)}),Oe=j),function(ge,Ae){if(!$e(ge,Ae))return!1;for(var Ce in ge)if(!Oe.has(Ce))return Ae.fail(Ce,"is extraneous",2);return!0}},E})(s);e.TIface=X;function ne(_){return new ce(o(_))}e.opt=ne;var ce=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.ttype=A,P}return E.prototype.getChecker=function(A,P){var j=this.ttype.getChecker(A,P);return function(q,U){return q===void 0||j(q,U)}},E})(s);e.TOptional=ce;var Te=(function(){function _(E,A,P){this.name=E,this.ttype=A,this.isOpt=P}return _})();e.TProp=Te;function ot(_){for(var E=[],A=1;A<arguments.length;A++)E[A-1]=arguments[A];return new Me(new We(E),o(_))}e.func=ot;var Me=(function(_){t(E,_);function E(A,P){var j=_.call(this)||this;return j.paramList=A,j.result=P,j}return E.prototype.getChecker=function(A,P){return function(j,q){return typeof j=="function"?!0:q.fail(null,"is not a function",0)}},E})(s);e.TFunc=Me;function it(_,E,A){return new Ue(_,o(E),!!A)}e.param=it;var Ue=(function(){function _(E,A,P){this.name=E,this.ttype=A,this.isOpt=P}return _})();e.TParam=Ue;var We=(function(_){t(E,_);function E(A){var P=_.call(this)||this;return P.params=A,P}return E.prototype.getChecker=function(A,P){var j=this,q=this.params.map(function(ie){return ie.ttype.getChecker(A,P)}),U=new n.NoopContext,ee=this.params.map(function(ie,$e){return!ie.isOpt&&!q[$e](void 0,U)}),le=function(ie,$e){if(!Array.isArray(ie))return $e.fail(null,"is not an array",0);for(var Oe=0;Oe<q.length;Oe++){var ge=j.params[Oe];if(ie[Oe]===void 0){if(ee[Oe])return $e.fail(ge.name,"is missing",1)}else{var Ae=q[Oe](ie[Oe],$e);if(!Ae)return $e.fail(ge.name,null,1)}}return!0};return P?function(ie,$e){return le(ie,$e)?ie.length<=q.length?!0:$e.fail(q.length,"is extraneous",2):!1}:le},E})(s);e.TParamList=We;var K=(function(_){t(E,_);function E(A,P){var j=_.call(this)||this;return j.validator=A,j.message=P,j}return E.prototype.getChecker=function(A,P){var j=this;return function(q,U){return j.validator(q)?!0:U.fail(null,j.message,0)}},E})(s);e.BasicType=K,e.basicTypes={any:new K(function(_){return!0},"is invalid"),number:new K(function(_){return typeof _=="number"},"is not a number"),object:new K(function(_){return typeof _=="object"&&_},"is not an object"),boolean:new K(function(_){return typeof _=="boolean"},"is not a boolean"),string:new K(function(_){return typeof _=="string"},"is not a string"),symbol:new K(function(_){return typeof _=="symbol"},"is not a symbol"),void:new K(function(_){return _==null},"is not void"),undefined:new K(function(_){return _===void 0},"is not undefined"),null:new K(function(_){return _===null},"is not null"),never:new K(function(_){return!1},"is unexpected"),Date:new K(Le("[object Date]"),"is not a Date"),RegExp:new K(Le("[object RegExp]"),"is not a RegExp")};var ye=Object.prototype.toString;function Le(_){return function(E){return typeof E=="object"&&E&&ye.call(E)===_}}typeof Buffer<"u"&&(e.basicTypes.Buffer=new K(function(_){return Buffer.isBuffer(_)},"is not a Buffer"));for(var Ve=function(_){e.basicTypes[_.name]=new K(function(E){return E instanceof _},"is not a "+_.name)},Be=0,Se=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Be<Se.length;Be++){var we=Se[Be];Ve(we)}})(nn)),nn}var Fi;function Uu(){return Fi||(Fi=1,(function(e){var t=tn&&tn.__spreadArrays||function(){for(var u=0,f=0,h=arguments.length;f<h;f++)u+=arguments[f].length;for(var m=Array(u),k=0,f=0;f<h;f++)for(var v=arguments[f],$=0,R=v.length;$<R;$++,k++)m[k]=v[$];return m};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var n=Oi(),s=Or(),o=Oi();Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return o.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return o.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return o.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return o.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return o.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return o.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return o.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return o.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return o.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return o.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return o.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return o.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return o.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return o.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return o.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return o.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return o.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return o.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return o.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return o.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return o.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return o.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return o.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return o.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return o.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return o.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return o.BasicType}});var i=Or();Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return i.VError}});function c(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=Object.assign.apply(Object,t([{},n.basicTypes],u)),m={},k=0,v=u;k<v.length;k++)for(var $=v[k],R=0,D=Object.keys($);R<D.length;R++){var F=D[R];m[F]=new l(h,$[F])}return m}e.createCheckers=c;var l=(function(){function u(f,h,m){if(m===void 0&&(m="value"),this.suite=f,this.ttype=h,this._path=m,this.props=new Map,h instanceof n.TIface)for(var k=0,v=h.props;k<v.length;k++){var $=v[k];this.props.set($.name,$.ttype)}this.checkerPlain=this.ttype.getChecker(f,!1),this.checkerStrict=this.ttype.getChecker(f,!0)}return u.prototype.setReportedPath=function(f){this._path=f},u.prototype.check=function(f){return this._doCheck(this.checkerPlain,f)},u.prototype.test=function(f){return this.checkerPlain(f,new s.NoopContext)},u.prototype.validate=function(f){return this._doValidate(this.checkerPlain,f)},u.prototype.strictCheck=function(f){return this._doCheck(this.checkerStrict,f)},u.prototype.strictTest=function(f){return this.checkerStrict(f,new s.NoopContext)},u.prototype.strictValidate=function(f){return this._doValidate(this.checkerStrict,f)},u.prototype.getProp=function(f){var h=this.props.get(f);if(!h)throw new Error("Type has no property "+f);return new u(this.suite,h,this._path+"."+f)},u.prototype.methodArgs=function(f){var h=this._getMethod(f);return new u(this.suite,h.paramList)},u.prototype.methodResult=function(f){var h=this._getMethod(f);return new u(this.suite,h.result)},u.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new u(this.suite,this.ttype.paramList)},u.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new u(this.suite,this.ttype.result)},u.prototype.getType=function(){return this.ttype},u.prototype._doCheck=function(f,h){var m=new s.NoopContext;if(!f(h,m)){var k=new s.DetailContext;throw f(h,k),k.getError(this._path)}},u.prototype._doValidate=function(f,h){var m=new s.NoopContext;if(f(h,m))return null;var k=new s.DetailContext;return f(h,k),k.getErrorDetail(this._path)},u.prototype._getMethod=function(f){var h=this.props.get(f);if(!h)throw new Error("Type has no property "+f);if(!(h instanceof n.TFunc))throw new Error("Property "+f+" is not a method");return h},u})();e.Checker=l})(tn)),tn}var re=Uu();const Wu=re.union(re.lit("jsx"),re.lit("typescript"),re.lit("flow"),re.lit("imports"),re.lit("react-hot-loader"),re.lit("jest")),Vu=re.iface([],{compiledFilename:"string"}),Hu=re.iface([],{transforms:re.array("Transform"),disableESTransforms:re.opt("boolean"),jsxRuntime:re.opt(re.union(re.lit("classic"),re.lit("automatic"),re.lit("preserve"))),production:re.opt("boolean"),jsxImportSource:re.opt("string"),jsxPragma:re.opt("string"),jsxFragmentPragma:re.opt("string"),keepUnusedImports:re.opt("boolean"),preserveDynamicImport:re.opt("boolean"),injectCreateRequireForImportRequire:re.opt("boolean"),enableLegacyTypeScriptModuleInterop:re.opt("boolean"),enableLegacyBabel5ModuleInterop:re.opt("boolean"),sourceMapOptions:re.opt("SourceMapOptions"),filePath:re.opt("string")}),Gu={Transform:Wu,SourceMapOptions:Vu,Options:Hu},{Options:Xu}=re.createCheckers(Gu);function Yu(e){Xu.strictCheck(e)}function Di(){w(),_e(!1)}function Mi(e){w(),zn(e)}function gt(e){B(),Fr(e)}function Bn(){B(),a.tokens[a.tokens.length-1].identifierRole=M.ImportDeclaration}function Fr(e){let t;a.scopeDepth===0?t=M.TopLevelDeclaration:e?t=M.BlockScopedDeclaration:t=M.FunctionScopedDeclaration,a.tokens[a.tokens.length-1].identifierRole=t}function zn(e){switch(a.type){case r._this:{const t=G(0);w(),H(t);return}case r._yield:case r.name:{a.type=r.name,gt(e);return}case r.bracketL:{w(),Dr(r.bracketR,e,!0);return}case r.braceL:ns(!0,e);return;default:W()}}function Dr(e,t,n=!1,s=!1,o=0){let i=!0,c=!1;const l=a.tokens.length;for(;!y(e)&&!a.error;)if(i?i=!1:(x(r.comma),a.tokens[a.tokens.length-1].contextId=o,!c&&a.tokens[l].isType&&(a.tokens[a.tokens.length-1].isType=!0,c=!0)),!(n&&p(r.comma))){if(y(e))break;if(p(r.ellipsis)){Mi(t),Bi(),y(r.comma),x(e);break}else Ku(s,t)}}function Ku(e,t){e&&Br([d._public,d._protected,d._private,d._readonly,d._override]),qn(t),Bi(),qn(t,!0)}function Bi(){Q?mh():Z&&op()}function qn(e,t=!1){if(t||zn(e),!y(r.eq))return;const n=a.tokens.length-1;_e(),a.tokens[n].rhsEndIndex=a.tokens.length}function Mr(){return p(r.name)}function Ju(){return p(r.name)||!!(a.type&r.IS_KEYWORD)||p(r.string)||p(r.num)||p(r.bigint)||p(r.decimal)}function zi(){const e=a.snapshot();return w(),(p(r.bracketL)||p(r.braceL)||p(r.star)||p(r.ellipsis)||p(r.hash)||Ju())&&!Re()?!0:(a.restoreFromSnapshot(e),!1)}function Br(e){for(;qi(e)!==null;);}function qi(e){if(!p(r.name))return null;const t=a.contextualKeyword;if(e.indexOf(t)!==-1&&zi()){switch(t){case d._readonly:a.tokens[a.tokens.length-1].type=r._readonly;break;case d._abstract:a.tokens[a.tokens.length-1].type=r._abstract;break;case d._static:a.tokens[a.tokens.length-1].type=r._static;break;case d._public:a.tokens[a.tokens.length-1].type=r._public;break;case d._private:a.tokens[a.tokens.length-1].type=r._private;break;case d._protected:a.tokens[a.tokens.length-1].type=r._protected;break;case d._override:a.tokens[a.tokens.length-1].type=r._override;break;case d._declare:a.tokens[a.tokens.length-1].type=r._declare;break}return t}return null}function rn(){for(B();y(r.dot);)B()}function Zu(){rn(),!Re()&&p(r.lessThan)&&zt()}function Qu(){w(),on()}function ef(){w()}function tf(){x(r._typeof),p(r._import)?Ui():rn(),!Re()&&p(r.lessThan)&&zt()}function Ui(){x(r._import),x(r.parenL),x(r.string),x(r.parenR),y(r.dot)&&rn(),p(r.lessThan)&&zt()}function nf(){y(r._const);const e=y(r._in),t=be(d._out);y(r._const),(e||t)&&!p(r.name)?a.tokens[a.tokens.length-1].type=r.name:B(),y(r._extends)&&fe(),y(r.eq)&&fe()}function Tt(){p(r.lessThan)&&Un()}function Un(){const e=G(0);for(p(r.lessThan)||p(r.typeParameterStart)?w():W();!y(r.greaterThan)&&!a.error;)nf(),y(r.comma);H(e)}function zr(e){const t=e===r.arrow;Tt(),x(r.parenL),a.scopeDepth++,rf(!1),a.scopeDepth--,(t||p(e))&&sn(e)}function rf(e){Dr(r.parenR,e)}function Wn(){y(r.comma)||ae()}function Wi(){zr(r.colon),Wn()}function sf(){const e=a.snapshot();w();const t=y(r.name)&&p(r.colon);return a.restoreFromSnapshot(e),t}function Vi(){if(!(p(r.bracketL)&&sf()))return!1;const e=G(0);return x(r.bracketL),B(),on(),x(r.bracketR),Mt(),Wn(),H(e),!0}function Hi(e){y(r.question),!e&&(p(r.parenL)||p(r.lessThan))?(zr(r.colon),Wn()):(Mt(),Wn())}function of(){if(p(r.parenL)||p(r.lessThan)){Wi();return}if(p(r._new)){w(),p(r.parenL)||p(r.lessThan)?Wi():Hi(!1);return}const e=!!qi([d._readonly]);Vi()||((O(d._get)||O(d._set))&&zi(),cn(-1),Hi(e))}function af(){Gi()}function Gi(){for(x(r.braceL);!y(r.braceR)&&!a.error;)of()}function cf(){const e=a.snapshot(),t=lf();return a.restoreFromSnapshot(e),t}function lf(){return w(),y(r.plus)||y(r.minus)?O(d._readonly):(O(d._readonly)&&w(),!p(r.bracketL)||(w(),!Mr())?!1:(w(),p(r._in)))}function uf(){B(),x(r._in),fe()}function ff(){x(r.braceL),p(r.plus)||p(r.minus)?(w(),me(d._readonly)):be(d._readonly),x(r.bracketL),uf(),be(d._as)&&fe(),x(r.bracketR),p(r.plus)||p(r.minus)?(w(),x(r.question)):y(r.question),$f(),ae(),x(r.braceR)}function pf(){for(x(r.bracketL);!y(r.bracketR)&&!a.error;)hf(),y(r.comma)}function hf(){y(r.ellipsis)?fe():(fe(),y(r.question)),y(r.colon)&&fe()}function df(){x(r.parenL),fe(),x(r.parenR)}function mf(){for(mt(),mt();!p(r.backQuote)&&!a.error;)x(r.dollarBraceL),fe(),mt(),mt();w()}var bt;(function(e){e[e.TSFunctionType=0]="TSFunctionType";const n=1;e[e.TSConstructorType=n]="TSConstructorType";const s=n+1;e[e.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(bt||(bt={}));function qr(e){e===bt.TSAbstractConstructorType&&me(d._abstract),(e===bt.TSConstructorType||e===bt.TSAbstractConstructorType)&&x(r._new);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,zr(r.arrow),a.inDisallowConditionalTypesContext=t}function gf(){switch(a.type){case r.name:Zu();return;case r._void:case r._null:w();return;case r.string:case r.num:case r.bigint:case r.decimal:case r._true:case r._false:Ut();return;case r.minus:w(),Ut();return;case r._this:{ef(),O(d._is)&&!Re()&&Qu();return}case r._typeof:tf();return;case r._import:Ui();return;case r.braceL:cf()?ff():af();return;case r.bracketL:pf();return;case r.parenL:df();return;case r.backQuote:mf();return;default:if(a.type&r.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=r.name;return}break}W()}function bf(){for(gf();!Re()&&y(r.bracketL);)y(r.bracketR)||(fe(),x(r.bracketR))}function kf(){if(me(d._infer),B(),p(r._extends)){const e=a.snapshot();x(r._extends);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,fe(),a.inDisallowConditionalTypesContext=t,(a.error||!a.inDisallowConditionalTypesContext&&p(r.question))&&a.restoreFromSnapshot(e)}}function Ur(){if(O(d._keyof)||O(d._unique)||O(d._readonly))w(),Ur();else if(O(d._infer))kf();else{const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,bf(),a.inDisallowConditionalTypesContext=e}}function Xi(){if(y(r.bitwiseAND),Ur(),p(r.bitwiseAND))for(;y(r.bitwiseAND);)Ur()}function yf(){if(y(r.bitwiseOR),Xi(),p(r.bitwiseOR))for(;y(r.bitwiseOR);)Xi()}function xf(){return p(r.lessThan)?!0:p(r.parenL)&&vf()}function wf(){if(p(r.name)||p(r._this))return w(),!0;if(p(r.braceL)||p(r.bracketL)){let e=1;for(w();e>0&&!a.error;)p(r.braceL)||p(r.bracketL)?e++:(p(r.braceR)||p(r.bracketR))&&e--,w();return!0}return!1}function vf(){const e=a.snapshot(),t=_f();return a.restoreFromSnapshot(e),t}function _f(){return w(),!!(p(r.parenR)||p(r.ellipsis)||wf()&&(p(r.colon)||p(r.comma)||p(r.question)||p(r.eq)||p(r.parenR)&&(w(),p(r.arrow))))}function sn(e){const t=G(0);x(e),If()||fe(),H(t)}function Sf(){p(r.colon)&&sn(r.colon)}function Mt(){p(r.colon)&&on()}function $f(){y(r.colon)&&fe()}function If(){const e=a.snapshot();return O(d._asserts)?(w(),be(d._is)?(fe(),!0):Mr()||p(r._this)?(w(),be(d._is)&&fe(),!0):(a.restoreFromSnapshot(e),!1)):Mr()||p(r._this)?(w(),O(d._is)&&!Re()?(w(),fe(),!0):(a.restoreFromSnapshot(e),!1)):!1}function on(){const e=G(0);x(r.colon),fe(),H(e)}function fe(){if(Yi(),a.inDisallowConditionalTypesContext||Re()||!y(r._extends))return;const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Yi(),a.inDisallowConditionalTypesContext=e,x(r.question),fe(),x(r.colon),fe()}function Ef(){return O(d._abstract)&&ue()===r._new}function Yi(){if(xf()){qr(bt.TSFunctionType);return}if(p(r._new)){qr(bt.TSConstructorType);return}else if(Ef()){qr(bt.TSAbstractConstructorType);return}yf()}function Tf(){const e=G(1);fe(),x(r.greaterThan),H(e),an()}function Af(){if(y(r.jsxTagStart)){a.tokens[a.tokens.length-1].type=r.typeParameterStart;const e=G(1);for(;!p(r.greaterThan)&&!a.error;)fe(),y(r.comma);ze(),H(e)}}function Ki(){for(;!p(r.braceL)&&!a.error;)Cf(),y(r.comma)}function Cf(){rn(),p(r.lessThan)&&zt()}function Pf(){gt(!1),Tt(),y(r._extends)&&Ki(),Gi()}function Rf(){gt(!1),Tt(),x(r.eq),fe(),ae()}function Nf(){if(p(r.string)?Ut():B(),y(r.eq)){const e=a.tokens.length-1;_e(),a.tokens[e].rhsEndIndex=a.tokens.length}}function Wr(){for(gt(!1),x(r.braceL);!y(r.braceR)&&!a.error;)Nf(),y(r.comma)}function Vr(){x(r.braceL),er(r.braceR)}function Hr(){gt(!1),y(r.dot)?Hr():Vr()}function Ji(){O(d._global)?B():p(r.string)?at():W(),p(r.braceL)?Vr():ae()}function Gr(){Bn(),x(r.eq),Lf(),ae()}function jf(){return O(d._require)&&ue()===r.parenL}function Lf(){jf()?Of():rn()}function Of(){me(d._require),x(r.parenL),p(r.string)||W(),Ut(),x(r.parenR)}function Ff(){if(et())return!1;switch(a.type){case r._function:{const e=G(1);w();const t=a.start;return Pt(t,!0),H(e),!0}case r._class:{const e=G(1);return Rt(!0,!1),H(e),!0}case r._const:if(p(r._const)&&Cr(d._enum)){const e=G(1);return x(r._const),me(d._enum),a.tokens[a.tokens.length-1].type=r._enum,Wr(),H(e),!0}case r._var:case r._let:{const e=G(1);return Qn(a.type!==r._var),H(e),!0}case r.name:{const e=G(1),t=a.contextualKeyword;let n=!1;return t===d._global?(Ji(),n=!0):n=Vn(t,!0),H(e),n}default:return!1}}function Zi(){return Vn(a.contextualKeyword,!0)}function Df(e){switch(e){case d._declare:{const t=a.tokens.length-1;if(Ff())return a.tokens[t].type=r._declare,!0;break}case d._global:if(p(r.braceL))return Vr(),!0;break;default:return Vn(e,!1)}return!1}function Vn(e,t){switch(e){case d._abstract:if(Bt(t)&&p(r._class))return a.tokens[a.tokens.length-1].type=r._abstract,Rt(!0,!1),!0;break;case d._enum:if(Bt(t)&&p(r.name))return a.tokens[a.tokens.length-1].type=r._enum,Wr(),!0;break;case d._interface:if(Bt(t)&&p(r.name)){const n=G(t?2:1);return Pf(),H(n),!0}break;case d._module:if(Bt(t)){if(p(r.string)){const n=G(t?2:1);return Ji(),H(n),!0}else if(p(r.name)){const n=G(t?2:1);return Hr(),H(n),!0}}break;case d._namespace:if(Bt(t)&&p(r.name)){const n=G(t?2:1);return Hr(),H(n),!0}break;case d._type:if(Bt(t)&&p(r.name)){const n=G(t?2:1);return Rf(),H(n),!0}break}return!1}function Bt(e){return e?(w(),!0):!et()}function Mf(){const e=a.snapshot();return Un(),Wt(),Sf(),x(r.arrow),a.error?(a.restoreFromSnapshot(e),!1):(un(!0),!0)}function Xr(){a.type===r.bitShiftL&&(a.pos-=1,V(r.lessThan)),zt()}function zt(){const e=G(0);for(x(r.lessThan);!p(r.greaterThan)&&!a.error;)fe(),y(r.comma);e?(x(r.greaterThan),H(e)):(H(e),mi(),x(r.greaterThan),a.tokens[a.tokens.length-1].isType=!0)}function Qi(){if(p(r.name))switch(a.contextualKeyword){case d._abstract:case d._declare:case d._enum:case d._interface:case d._module:case d._namespace:case d._type:return!0}return!1}function Bf(e,t){if(p(r.colon)&&sn(r.colon),!p(r.braceL)&&et()){let n=a.tokens.length-1;for(;n>=0&&(a.tokens[n].start>=e||a.tokens[n].type===r._default||a.tokens[n].type===r._export);)a.tokens[n].isType=!0,n--;return}un(!1,t)}function zf(e,t,n){if(!Re()&&y(r.bang)){a.tokens[a.tokens.length-1].type=r.nonNullAssertion;return}if(p(r.lessThan)||p(r.bitShiftL)){const s=a.snapshot();if(!t&&aa()&&Mf())return;if(Xr(),!t&&y(r.parenL)?(a.tokens[a.tokens.length-1].subscriptStartIndex=e,kt()):p(r.backQuote)?ts():(a.type===r.greaterThan||a.type!==r.parenL&&a.type&r.IS_EXPRESSION_START&&!Re())&&W(),a.error)a.restoreFromSnapshot(s);else return}else!t&&p(r.questionDot)&&ue()===r.lessThan&&(w(),a.tokens[e].isOptionalChainStart=!0,a.tokens[a.tokens.length-1].subscriptStartIndex=e,zt(),x(r.parenL),kt());Jr(e,t,n)}function qf(){if(y(r._import))return O(d._type)&&ue()!==r.eq&&me(d._type),Gr(),!0;if(y(r.eq))return ve(),ae(),!0;if(be(d._as))return me(d._namespace),B(),ae(),!0;if(O(d._type)){const e=ue();(e===r.braceL||e===r.star)&&w()}return!1}function Uf(){if(B(),p(r.comma)||p(r.braceR)){a.tokens[a.tokens.length-1].identifierRole=M.ImportDeclaration;return}if(B(),p(r.comma)||p(r.braceR)){a.tokens[a.tokens.length-1].identifierRole=M.ImportDeclaration,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(B(),p(r.comma)||p(r.braceR)){a.tokens[a.tokens.length-3].identifierRole=M.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=M.ImportDeclaration;return}B(),a.tokens[a.tokens.length-3].identifierRole=M.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=M.ImportDeclaration,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function Wf(){if(B(),p(r.comma)||p(r.braceR)){a.tokens[a.tokens.length-1].identifierRole=M.ExportAccess;return}if(B(),p(r.comma)||p(r.braceR)){a.tokens[a.tokens.length-1].identifierRole=M.ExportAccess,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(B(),p(r.comma)||p(r.braceR)){a.tokens[a.tokens.length-3].identifierRole=M.ExportAccess;return}B(),a.tokens[a.tokens.length-3].identifierRole=M.ExportAccess,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function Vf(){if(O(d._abstract)&&ue()===r._class)return a.type=r._abstract,w(),Rt(!0,!0),!0;if(O(d._interface)){const e=G(2);return Vn(d._interface,!0),H(e),!0}return!1}function Hf(){if(a.type===r._const){const e=Zt();if(e.type===r.name&&e.contextualKeyword===d._enum)return x(r._const),me(d._enum),a.tokens[a.tokens.length-1].type=r._enum,Wr(),!0}return!1}function Gf(e){const t=a.tokens.length;Br([d._abstract,d._readonly,d._declare,d._static,d._override]);const n=a.tokens.length;if(Vi()){const o=e?t-1:t;for(let i=o;i<n;i++)a.tokens[i].isType=!0;return!0}return!1}function Xf(e){Df(e)||ae()}function Yf(){const e=be(d._declare);e&&(a.tokens[a.tokens.length-1].type=r._declare);let t=!1;if(p(r.name))if(e){const n=G(2);t=Zi(),H(n)}else t=Zi();if(!t)if(e){const n=G(2);De(!0),H(n)}else De(!0)}function Kf(e){if(e&&(p(r.lessThan)||p(r.bitShiftL))&&Xr(),be(d._implements)){a.tokens[a.tokens.length-1].type=r._implements;const t=G(1);Ki(),H(t)}}function Jf(){Tt()}function Zf(){Tt()}function Qf(){const e=G(0);Re()||y(r.bang),Mt(),H(e)}function ep(){p(r.colon)&&on()}function tp(e,t){return Ln?np(e,t):rp(e,t)}function np(e,t){if(!p(r.lessThan))return tt(e,t);const n=a.snapshot();let s=tt(e,t);if(a.error)a.restoreFromSnapshot(n);else return s;return a.type=r.typeParameterStart,Un(),s=tt(e,t),s||W(),s}function rp(e,t){if(!p(r.lessThan))return tt(e,t);const n=a.snapshot();Un();const s=tt(e,t);if(s||W(),a.error)a.restoreFromSnapshot(n);else return s;return tt(e,t)}function sp(){if(p(r.colon)){const e=a.snapshot();sn(r.colon),Fe()&&W(),p(r.arrow)||W(),a.error&&a.restoreFromSnapshot(e)}return y(r.arrow)}function op(){const e=G(0);y(r.question),Mt(),H(e)}function ip(){(p(r.lessThan)||p(r.bitShiftL))&&Xr(),va()}function ap(){let e=!1,t=!1;for(;;){if(a.pos>=C.length){W("Unterminated JSX contents");return}const n=C.charCodeAt(a.pos);if(n===g.lessThan||n===g.leftCurlyBrace){if(a.pos===a.start){if(n===g.lessThan){a.pos++,V(r.jsxTagStart);return}gi(n);return}V(e&&!t?r.jsxEmptyText:r.jsxText);return}n===g.lineFeed?e=!0:n!==g.space&&n!==g.carriageReturn&&n!==g.tab&&(t=!0),a.pos++}}function cp(e){for(a.pos++;;){if(a.pos>=C.length){W("Unterminated string constant");return}if(C.charCodeAt(a.pos)===e){a.pos++;break}a.pos++}V(r.string)}function lp(){let e;do{if(a.pos>C.length){W("Unexpectedly reached the end of input.");return}e=C.charCodeAt(++a.pos)}while(He[e]||e===g.dash);V(r.jsxName)}function Yr(){ze()}function ea(e){if(Yr(),!y(r.colon)){a.tokens[a.tokens.length-1].identifierRole=e;return}Yr()}function ta(){const e=a.tokens.length;ea(M.Access);let t=!1;for(;p(r.dot);)t=!0,ze(),Yr();if(!t){const n=a.tokens[e],s=C.charCodeAt(n.start);s>=g.lowercaseA&&s<=g.lowercaseZ&&(n.identifierRole=null)}}function up(){switch(a.type){case r.braceL:w(),ve(),ze();return;case r.jsxTagStart:ra(),ze();return;case r.string:ze();return;default:W("JSX value should be either an expression or a quoted JSX text")}}function fp(){x(r.ellipsis),ve()}function pp(e){if(p(r.jsxTagEnd))return!1;ta(),Z&&Af();let t=!1;for(;!p(r.slash)&&!p(r.jsxTagEnd)&&!a.error;){if(y(r.braceL)){t=!0,x(r.ellipsis),_e(),ze();continue}t&&a.end-a.start===3&&C.charCodeAt(a.start)===g.lowercaseK&&C.charCodeAt(a.start+1)===g.lowercaseE&&C.charCodeAt(a.start+2)===g.lowercaseY&&(a.tokens[e].jsxRole=Ge.KeyAfterPropSpread),ea(M.ObjectKey),p(r.eq)&&(ze(),up())}const n=p(r.slash);return n&&ze(),n}function hp(){p(r.jsxTagEnd)||ta()}function na(){const e=a.tokens.length-1;a.tokens[e].jsxRole=Ge.NoChildren;let t=0;if(!pp(e))for(qt();;)switch(a.type){case r.jsxTagStart:if(ze(),p(r.slash)){ze(),hp(),a.tokens[e].jsxRole!==Ge.KeyAfterPropSpread&&(t===1?a.tokens[e].jsxRole=Ge.OneChild:t>1&&(a.tokens[e].jsxRole=Ge.StaticChildren));return}t++,na(),qt();break;case r.jsxText:t++,qt();break;case r.jsxEmptyText:qt();break;case r.braceL:w(),p(r.ellipsis)?(fp(),qt(),t+=2):(p(r.braceR)||(t++,ve()),qt());break;default:W();return}}function ra(){ze(),na()}function ze(){a.tokens.push(new On),hi(),a.start=a.pos;const e=C.charCodeAt(a.pos);if(Jt[e])lp();else if(e===g.quotationMark||e===g.apostrophe)cp(e);else switch(++a.pos,e){case g.greaterThan:V(r.jsxTagEnd);break;case g.lessThan:V(r.jsxTagStart);break;case g.slash:V(r.slash);break;case g.equalsTo:V(r.eq);break;case g.leftCurlyBrace:V(r.braceL);break;case g.dot:V(r.dot);break;case g.colon:V(r.colon);break;default:W()}}function qt(){a.tokens.push(new On),a.start=a.pos,ap()}function dp(e){if(p(r.question)){const t=ue();if(t===r.colon||t===r.comma||t===r.parenR)return}sa(e)}function mp(){ci(r.question),p(r.colon)&&(Z?on():Q&&Ct())}class gp{constructor(t){this.stop=t}}function ve(e=!1){if(_e(e),p(r.comma))for(;y(r.comma);)_e(e)}function _e(e=!1,t=!1){return Z?tp(e,t):Q?wh(e,t):tt(e,t)}function tt(e,t){if(p(r._yield))return Rp(),!1;(p(r.parenL)||p(r.name)||p(r._yield))&&(a.potentialArrowAt=a.start);const n=bp(e);return t&&es(),a.type&r.IS_ASSIGN?(w(),_e(e),!1):n}function bp(e){return yp(e)?!0:(kp(e),!1)}function kp(e){Z||Q?dp(e):sa(e)}function sa(e){y(r.question)&&(_e(),x(r.colon),_e(e))}function yp(e){const t=a.tokens.length;return an()?!0:(Hn(t,-1,e),!1)}function Hn(e,t,n){if(Z&&(r._in&r.PRECEDENCE_MASK)>t&&!Re()&&(be(d._as)||be(d._satisfies))){const o=G(1);fe(),H(o),mi(),Hn(e,t,n);return}const s=a.type&r.PRECEDENCE_MASK;if(s>0&&(!n||!p(r._in))&&s>t){const o=a.type;w(),o===r.nullishCoalescing&&(a.tokens[a.tokens.length-1].nullishStartIndex=e);const i=a.tokens.length;an(),Hn(i,o&r.IS_RIGHT_ASSOCIATIVE?s-1:s,n),o===r.nullishCoalescing&&(a.tokens[e].numNullishCoalesceStarts++,a.tokens[a.tokens.length-1].numNullishCoalesceEnds++),Hn(e,t,n)}}function an(){if(Z&&!Ln&&y(r.lessThan))return Tf(),!1;if(O(d._module)&&ui()===g.leftCurlyBrace&&!ti())return Np(),!1;if(a.type&r.IS_PREFIX)return w(),an(),!1;if(oa())return!0;for(;a.type&r.IS_POSTFIX&&!Fe();)a.type===r.preIncDec&&(a.type=r.postIncDec),w();return!1}function oa(){const e=a.tokens.length;return at()?!0:(Kr(e),a.tokens.length>e&&a.tokens[e].isOptionalChainStart&&(a.tokens[a.tokens.length-1].isOptionalChainEnd=!0),!1)}function Kr(e,t=!1){Q?_h(e,t):ia(e,t)}function ia(e,t=!1){const n=new gp(!1);do xp(e,t,n);while(!n.stop&&!a.error)}function xp(e,t,n){Z?zf(e,t,n):Q?rh(e,t,n):Jr(e,t,n)}function Jr(e,t,n){if(!t&&y(r.doubleColon))Zr(),n.stop=!0,Kr(e,t);else if(p(r.questionDot)){if(a.tokens[e].isOptionalChainStart=!0,t&&ue()===r.parenL){n.stop=!0;return}w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e,y(r.bracketL)?(ve(),x(r.bracketR)):y(r.parenL)?kt():Gn()}else if(y(r.dot))a.tokens[a.tokens.length-1].subscriptStartIndex=e,Gn();else if(y(r.bracketL))a.tokens[a.tokens.length-1].subscriptStartIndex=e,ve(),x(r.bracketR);else if(!t&&p(r.parenL))if(aa()){const s=a.snapshot(),o=a.tokens.length;w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const i=Kt();a.tokens[a.tokens.length-1].contextId=i,kt(),a.tokens[a.tokens.length-1].contextId=i,wp()&&(a.restoreFromSnapshot(s),n.stop=!0,a.scopeDepth++,Wt(),vp(o))}else{w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const s=Kt();a.tokens[a.tokens.length-1].contextId=s,kt(),a.tokens[a.tokens.length-1].contextId=s}else p(r.backQuote)?ts():n.stop=!0}function aa(){return a.tokens[a.tokens.length-1].contextualKeyword===d._async&&!Fe()}function kt(){let e=!0;for(;!y(r.parenR)&&!a.error;){if(e)e=!1;else if(x(r.comma),y(r.parenR))break;fa(!1)}}function wp(){return p(r.colon)||p(r.arrow)}function vp(e){Z?ep():Q&&xh(),x(r.arrow),ln(e)}function Zr(){const e=a.tokens.length;at(),Kr(e,!0)}function at(){if(y(r.modulo))return B(),!1;if(p(r.jsxText)||p(r.jsxEmptyText))return Ut(),!1;if(p(r.lessThan)&&Ln)return a.type=r.jsxTagStart,ra(),w(),!1;const e=a.potentialArrowAt===a.start;switch(a.type){case r.slash:case r.assign:Hl();case r._super:case r._this:case r.regexp:case r.num:case r.bigint:case r.decimal:case r.string:case r._null:case r._true:case r._false:return w(),!1;case r._import:return w(),p(r.dot)&&(a.tokens[a.tokens.length-1].type=r.name,w(),B()),!1;case r.name:{const t=a.tokens.length,n=a.start,s=a.contextualKeyword;return B(),s===d._await?(Pp(),!1):s===d._async&&p(r._function)&&!Fe()?(w(),Pt(n,!1),!1):e&&s===d._async&&!Fe()&&p(r.name)?(a.scopeDepth++,gt(!1),x(r.arrow),ln(t),!0):p(r._do)&&!Fe()?(w(),yt(),!1):e&&!Fe()&&p(r.arrow)?(a.scopeDepth++,Fr(!1),x(r.arrow),ln(t),!0):(a.tokens[a.tokens.length-1].identifierRole=M.Access,!1)}case r._do:return w(),yt(),!1;case r.parenL:return ca(e);case r.bracketL:return w(),ua(r.bracketR,!0),!1;case r.braceL:return ns(!1,!1),!1;case r._function:return _p(),!1;case r.at:ds();case r._class:return Rt(!1),!1;case r._new:return $p(),!1;case r.backQuote:return ts(),!1;case r.doubleColon:return w(),Zr(),!1;case r.hash:{const t=ui();return Jt[t]||t===g.backslash?Gn():w(),!1}default:return W(),!1}}function Gn(){y(r.hash),B()}function _p(){const e=a.start;B(),y(r.dot)&&B(),Pt(e,!1)}function Ut(){w()}function Xn(){x(r.parenL),ve(),x(r.parenR)}function ca(e){const t=a.snapshot(),n=a.tokens.length;x(r.parenL);let s=!0;for(;!p(r.parenR)&&!a.error;){if(s)s=!1;else if(x(r.comma),p(r.parenR))break;if(p(r.ellipsis)){Mi(!1),es();break}else _e(!1,!0)}return x(r.parenR),e&&Sp()&&Qr()?(a.restoreFromSnapshot(t),a.scopeDepth++,Wt(),Qr(),ln(n),a.error?(a.restoreFromSnapshot(t),ca(!1),!1):!0):!1}function Sp(){return p(r.colon)||!Fe()}function Qr(){return Z?sp():Q?vh():y(r.arrow)}function es(){(Z||Q)&&mp()}function $p(){if(x(r._new),y(r.dot)){B();return}Ip(),Q&&sh(),y(r.parenL)&&ua(r.parenR)}function Ip(){Zr(),y(r.questionDot)}function ts(){for(mt(),mt();!p(r.backQuote)&&!a.error;)x(r.dollarBraceL),ve(),mt(),mt();w()}function ns(e,t){const n=Kt();let s=!0;for(w(),a.tokens[a.tokens.length-1].contextId=n;!y(r.braceR)&&!a.error;){if(s)s=!1;else if(x(r.comma),y(r.braceR))break;let o=!1;if(p(r.ellipsis)){const i=a.tokens.length;if(Di(),e&&(a.tokens.length===i+2&&Fr(t),y(r.braceR)))break;continue}e||(o=y(r.star)),!e&&O(d._async)?(o&&W(),B(),p(r.colon)||p(r.parenL)||p(r.braceR)||p(r.eq)||p(r.comma)||(p(r.star)&&(w(),o=!0),cn(n))):cn(n),Cp(e,t,n)}a.tokens[a.tokens.length-1].contextId=n}function Ep(e){return!e&&(p(r.string)||p(r.num)||p(r.bracketL)||p(r.name)||!!(a.type&r.IS_KEYWORD))}function Tp(e,t){const n=a.start;return p(r.parenL)?(e&&W(),rs(n,!1),!0):Ep(e)?(cn(t),rs(n,!1),!0):!1}function Ap(e,t){if(y(r.colon)){e?qn(t):_e(!1);return}let n;e?a.scopeDepth===0?n=M.ObjectShorthandTopLevelDeclaration:t?n=M.ObjectShorthandBlockScopedDeclaration:n=M.ObjectShorthandFunctionScopedDeclaration:n=M.ObjectShorthand,a.tokens[a.tokens.length-1].identifierRole=n,qn(t,!0)}function Cp(e,t,n){Z?Jf():Q&&dh(),Tp(e,n)||Ap(e,t)}function cn(e){Q&&hs(),y(r.bracketL)?(a.tokens[a.tokens.length-1].contextId=e,_e(),x(r.bracketR),a.tokens[a.tokens.length-1].contextId=e):(p(r.num)||p(r.string)||p(r.bigint)||p(r.decimal)?at():Gn(),a.tokens[a.tokens.length-1].identifierRole=M.ObjectKey,a.tokens[a.tokens.length-1].contextId=e)}function rs(e,t){const n=Kt();a.scopeDepth++;const s=a.tokens.length;Wt(t,n),la(e,n);const i=a.tokens.length;a.scopes.push(new Qe(s,i,!0)),a.scopeDepth--}function ln(e){un(!0);const t=a.tokens.length;a.scopes.push(new Qe(e,t,!0)),a.scopeDepth--}function la(e,t=0){Z?Bf(e,t):Q?nh(t):un(!1,t)}function un(e,t=0){e&&!p(r.braceL)?_e():yt(!0,t)}function ua(e,t=!1){let n=!0;for(;!y(e)&&!a.error;){if(n)n=!1;else if(x(r.comma),y(e))break;fa(t)}}function fa(e){e&&p(r.comma)||(p(r.ellipsis)?(Di(),es()):p(r.question)?w():_e(!1,!0))}function B(){w(),a.tokens[a.tokens.length-1].type=r.name}function Pp(){an()}function Rp(){w(),!p(r.semi)&&!Fe()&&(y(r.star),_e())}function Np(){me(d._module),x(r.braceL),er(r.braceR)}function jp(e){return(e.type===r.name||!!(e.type&r.IS_KEYWORD))&&e.contextualKeyword!==d._from}function nt(e){const t=G(0);x(e||r.colon),je(),H(t)}function pa(){x(r.modulo),me(d._checks),y(r.parenL)&&(ve(),x(r.parenR))}function ss(){const e=G(0);x(r.colon),p(r.modulo)?pa():(je(),p(r.modulo)&&pa()),H(e)}function Lp(){w(),is(!0)}function Op(){w(),B(),p(r.lessThan)&&Ke(),x(r.parenL),ps(),x(r.parenR),ss(),ae()}function os(){p(r._class)?Lp():p(r._function)?Op():p(r._var)?Fp():be(d._module)?y(r.dot)?Bp():Dp():O(d._type)?zp():O(d._opaque)?qp():O(d._interface)?Up():p(r._export)?Mp():W()}function Fp(){w(),ka(),ae()}function Dp(){for(p(r.string)?at():B(),x(r.braceL);!p(r.braceR)&&!a.error;)p(r._import)?(w(),Ca()):W();x(r.braceR)}function Mp(){x(r._export),y(r._default)?p(r._function)||p(r._class)?os():(je(),ae()):p(r._var)||p(r._function)||p(r._class)||O(d._opaque)?os():p(r.star)||p(r.braceL)||O(d._interface)||O(d._type)||O(d._opaque)?Ta():W()}function Bp(){me(d._exports),Ct(),ae()}function zp(){w(),cs()}function qp(){w(),ls(!0)}function Up(){w(),is()}function is(e=!1){if(Kn(),p(r.lessThan)&&Ke(),y(r._extends))do Yn();while(!e&&y(r.comma));if(O(d._mixins)){w();do Yn();while(y(r.comma))}if(O(d._implements)){w();do Yn();while(y(r.comma))}Jn(e,!1,e)}function Yn(){ha(!1),p(r.lessThan)&&At()}function as(){is()}function Kn(){B()}function cs(){Kn(),p(r.lessThan)&&Ke(),nt(r.eq),ae()}function ls(e){me(d._type),Kn(),p(r.lessThan)&&Ke(),p(r.colon)&&nt(r.colon),e||nt(r.eq),ae()}function Wp(){hs(),ka(),y(r.eq)&&je()}function Ke(){const e=G(0);p(r.lessThan)||p(r.typeParameterStart)?w():W();do Wp(),p(r.greaterThan)||x(r.comma);while(!p(r.greaterThan)&&!a.error);x(r.greaterThan),H(e)}function At(){const e=G(0);for(x(r.lessThan);!p(r.greaterThan)&&!a.error;)je(),p(r.greaterThan)||x(r.comma);x(r.greaterThan),H(e)}function Vp(){if(me(d._interface),y(r._extends))do Yn();while(y(r.comma));Jn(!1,!1,!1)}function us(){p(r.num)||p(r.string)?at():B()}function Hp(){ue()===r.colon?(us(),nt()):je(),x(r.bracketR),nt()}function Gp(){us(),x(r.bracketR),x(r.bracketR),p(r.lessThan)||p(r.parenL)?fs():(y(r.question),nt())}function fs(){for(p(r.lessThan)&&Ke(),x(r.parenL);!p(r.parenR)&&!p(r.ellipsis)&&!a.error;)Zn(),p(r.parenR)||x(r.comma);y(r.ellipsis)&&Zn(),x(r.parenR),nt()}function Xp(){fs()}function Jn(e,t,n){let s;for(t&&p(r.braceBarL)?(x(r.braceBarL),s=r.braceBarR):(x(r.braceL),s=r.braceR);!p(s)&&!a.error;){if(n&&O(d._proto)){const o=ue();o!==r.colon&&o!==r.question&&(w(),e=!1)}if(e&&O(d._static)){const o=ue();o!==r.colon&&o!==r.question&&w()}if(hs(),y(r.bracketL))y(r.bracketL)?Gp():Hp();else if(p(r.parenL)||p(r.lessThan))Xp();else{if(O(d._get)||O(d._set)){const o=ue();(o===r.name||o===r.string||o===r.num)&&w()}Yp()}Kp()}x(s)}function Yp(){if(p(r.ellipsis)){if(x(r.ellipsis),y(r.comma)||y(r.semi),p(r.braceR))return;je()}else us(),p(r.lessThan)||p(r.parenL)?fs():(y(r.question),nt())}function Kp(){!y(r.semi)&&!y(r.comma)&&!p(r.braceR)&&!p(r.braceBarR)&&W()}function ha(e){for(e||B();y(r.dot);)B()}function Jp(){ha(!0),p(r.lessThan)&&At()}function Zp(){x(r._typeof),da()}function Qp(){for(x(r.bracketL);a.pos<C.length&&!p(r.bracketR)&&(je(),!p(r.bracketR));)x(r.comma);x(r.bracketR)}function Zn(){const e=ue();e===r.colon||e===r.question?(B(),y(r.question),nt()):je()}function ps(){for(;!p(r.parenR)&&!p(r.ellipsis)&&!a.error;)Zn(),p(r.parenR)||x(r.comma);y(r.ellipsis)&&Zn()}function da(){let e=!1;const t=a.noAnonFunctionType;switch(a.type){case r.name:{if(O(d._interface)){Vp();return}B(),Jp();return}case r.braceL:Jn(!1,!1,!1);return;case r.braceBarL:Jn(!1,!0,!1);return;case r.bracketL:Qp();return;case r.lessThan:Ke(),x(r.parenL),ps(),x(r.parenR),x(r.arrow),je();return;case r.parenL:if(w(),!p(r.parenR)&&!p(r.ellipsis))if(p(r.name)){const n=ue();e=n!==r.question&&n!==r.colon}else e=!0;if(e)if(a.noAnonFunctionType=!1,je(),a.noAnonFunctionType=t,a.noAnonFunctionType||!(p(r.comma)||p(r.parenR)&&ue()===r.arrow)){x(r.parenR);return}else y(r.comma);ps(),x(r.parenR),x(r.arrow),je();return;case r.minus:w(),Ut();return;case r.string:case r.num:case r._true:case r._false:case r._null:case r._this:case r._void:case r.star:w();return;default:if(a.type===r._typeof){Zp();return}else if(a.type&r.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=r.name;return}}W()}function eh(){for(da();!Fe()&&(p(r.bracketL)||p(r.questionDot));)y(r.questionDot),x(r.bracketL),y(r.bracketR)||(je(),x(r.bracketR))}function ma(){y(r.question)?ma():eh()}function ga(){ma(),!a.noAnonFunctionType&&y(r.arrow)&&je()}function ba(){for(y(r.bitwiseAND),ga();y(r.bitwiseAND);)ga()}function th(){for(y(r.bitwiseOR),ba();y(r.bitwiseOR);)ba()}function je(){th()}function Ct(){nt()}function ka(){B(),p(r.colon)&&Ct()}function hs(){(p(r.plus)||p(r.minus))&&(w(),a.tokens[a.tokens.length-1].isType=!0)}function nh(e){p(r.colon)&&ss(),un(!1,e)}function rh(e,t,n){if(p(r.questionDot)&&ue()===r.lessThan){if(t){n.stop=!0;return}w(),At(),x(r.parenL),kt();return}else if(!t&&p(r.lessThan)){const s=a.snapshot();if(At(),x(r.parenL),kt(),a.error)a.restoreFromSnapshot(s);else return}Jr(e,t,n)}function sh(){if(p(r.lessThan)){const e=a.snapshot();At(),a.error&&a.restoreFromSnapshot(e)}}function oh(){if(p(r.name)&&a.contextualKeyword===d._interface){const e=G(0);return w(),as(),H(e),!0}else if(O(d._enum))return ya(),!0;return!1}function ih(){return O(d._enum)?(ya(),!0):!1}function ah(e){if(e===d._declare){if(p(r._class)||p(r.name)||p(r._function)||p(r._var)||p(r._export)){const t=G(1);os(),H(t)}}else if(p(r.name)){if(e===d._interface){const t=G(1);as(),H(t)}else if(e===d._type){const t=G(1);cs(),H(t)}else if(e===d._opaque){const t=G(1);ls(!1),H(t)}}ae()}function ch(){return O(d._type)||O(d._interface)||O(d._opaque)||O(d._enum)}function lh(){return p(r.name)&&(a.contextualKeyword===d._type||a.contextualKeyword===d._interface||a.contextualKeyword===d._opaque||a.contextualKeyword===d._enum)}function uh(){if(O(d._type)){const e=G(1);w(),p(r.braceL)?(bs(),hn()):cs(),H(e)}else if(O(d._opaque)){const e=G(1);w(),ls(!1),H(e)}else if(O(d._interface)){const e=G(1);w(),as(),H(e)}else De(!0)}function fh(){return p(r.star)||O(d._type)&&ue()===r.star}function ph(){if(be(d._type)){const e=G(2);gs(),H(e)}else gs()}function hh(e){if(e&&p(r.lessThan)&&At(),O(d._implements)){const t=G(0);w(),a.tokens[a.tokens.length-1].type=r._implements;do Kn(),p(r.lessThan)&&At();while(y(r.comma));H(t)}}function dh(){p(r.lessThan)&&(Ke(),p(r.parenL)||W())}function mh(){const e=G(0);y(r.question),p(r.colon)&&Ct(),H(e)}function gh(){if(p(r._typeof)||O(d._type)){const e=Zt();(jp(e)||e.type===r.braceL||e.type===r.star)&&w()}}function bh(){const e=a.contextualKeyword===d._type||a.type===r._typeof;e?w():B(),O(d._as)&&!Cr(d._as)?(B(),e&&!p(r.name)&&!(a.type&r.IS_KEYWORD)||B()):(e&&(p(r.name)||a.type&r.IS_KEYWORD)&&B(),be(d._as)&&B())}function kh(){if(p(r.lessThan)){const e=G(0);Ke(),H(e)}}function yh(){p(r.colon)&&Ct()}function xh(){if(p(r.colon)){const e=a.noAnonFunctionType;a.noAnonFunctionType=!0,Ct(),a.noAnonFunctionType=e}}function wh(e,t){if(p(r.lessThan)){const n=a.snapshot();let s=tt(e,t);if(a.error)a.restoreFromSnapshot(n),a.type=r.typeParameterStart;else return s;const o=G(0);if(Ke(),H(o),s=tt(e,t),s)return!0;W()}return tt(e,t)}function vh(){if(p(r.colon)){const e=G(0),t=a.snapshot(),n=a.noAnonFunctionType;a.noAnonFunctionType=!0,ss(),a.noAnonFunctionType=n,Fe()&&W(),p(r.arrow)||W(),a.error&&a.restoreFromSnapshot(t),H(e)}return y(r.arrow)}function _h(e,t=!1){if(a.tokens[a.tokens.length-1].contextualKeyword===d._async&&p(r.lessThan)){const n=a.snapshot();if(Sh()&&!a.error)return;a.restoreFromSnapshot(n)}ia(e,t)}function Sh(){a.scopeDepth++;const e=a.tokens.length;return Wt(),Qr()?(ln(e),!0):!1}function ya(){me(d._enum),a.tokens[a.tokens.length-1].type=r._enum,B(),$h()}function $h(){be(d._of)&&w(),x(r.braceL),Ih(),x(r.braceR)}function Ih(){for(;!p(r.braceR)&&!a.error&&!y(r.ellipsis);)Eh(),p(r.braceR)||x(r.comma)}function Eh(){B(),y(r.eq)&&w()}function Th(){if(er(r.eof),a.scopes.push(new Qe(0,a.tokens.length,!0)),a.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${a.scopeDepth}`);return new dd(a.tokens,a.scopes)}function De(e){Q&&oh()||(p(r.at)&&ds(),Ah(e))}function Ah(e){if(Z&&Hf())return;const t=a.type;switch(t){case r._break:case r._continue:Ph();return;case r._debugger:Rh();return;case r._do:Nh();return;case r._for:jh();return;case r._function:if(ue()===r.dot)break;e||W(),Fh();return;case r._class:e||W(),Rt(!0);return;case r._if:Dh();return;case r._return:Mh();return;case r._switch:Bh();return;case r._throw:zh();return;case r._try:Uh();return;case r._let:case r._const:e||W();case r._var:Qn(t!==r._var);return;case r._while:Wh();return;case r.braceL:yt();return;case r.semi:Vh();return;case r._export:case r._import:{const o=ue();if(o===r.parenL||o===r.dot)break;w(),t===r._import?Ca():Ta();return}case r.name:if(a.contextualKeyword===d._async){const o=a.start,i=a.snapshot();if(w(),p(r._function)&&!Fe()){x(r._function),Pt(o,!0);return}else a.restoreFromSnapshot(i)}else if(a.contextualKeyword===d._using&&!ti()&&ue()===r.name){Qn(!0);return}else if(xa()){me(d._await),Qn(!0);return}}const n=a.tokens.length;ve();let s=null;if(a.tokens.length===n+1){const o=a.tokens[a.tokens.length-1];o.type===r.name&&(s=o.contextualKeyword)}if(s==null){ae();return}y(r.colon)?Hh():Gh(s)}function xa(){if(!O(d._await))return!1;const e=a.snapshot();return w(),!O(d._using)||Re()||(w(),!p(r.name)||Re())?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function ds(){for(;p(r.at);)wa()}function wa(){if(w(),y(r.parenL))ve(),x(r.parenR);else{for(B();y(r.dot);)B();Ch()}}function Ch(){Z?ip():va()}function va(){y(r.parenL)&&kt()}function Ph(){w(),et()||(B(),ae())}function Rh(){w(),ae()}function Nh(){w(),De(!1),x(r._while),Xn(),y(r.semi)}function jh(){a.scopeDepth++;const e=a.tokens.length;Oh();const t=a.tokens.length;a.scopes.push(new Qe(e,t,!1)),a.scopeDepth--}function Lh(){return!(!O(d._using)||Cr(d._of))}function Oh(){w();let e=!1;if(O(d._await)&&(e=!0,w()),x(r.parenL),p(r.semi)){e&&W(),ms();return}const t=xa();if(t||p(r._var)||p(r._let)||p(r._const)||Lh()){if(t&&me(d._await),w(),Sa(!0,a.type!==r._var),p(r._in)||O(d._of)){_a(e);return}ms();return}if(ve(!0),p(r._in)||O(d._of)){_a(e);return}e&&W(),ms()}function Fh(){const e=a.start;w(),Pt(e,!0)}function Dh(){w(),Xn(),De(!1),y(r._else)&&De(!1)}function Mh(){w(),et()||(ve(),ae())}function Bh(){w(),Xn(),a.scopeDepth++;const e=a.tokens.length;for(x(r.braceL);!p(r.braceR)&&!a.error;)if(p(r._case)||p(r._default)){const n=p(r._case);w(),n&&ve(),x(r.colon)}else De(!0);w();const t=a.tokens.length;a.scopes.push(new Qe(e,t,!1)),a.scopeDepth--}function zh(){w(),ve(),ae()}function qh(){zn(!0),Z&&Mt()}function Uh(){if(w(),yt(),p(r._catch)){w();let e=null;if(p(r.parenL)&&(a.scopeDepth++,e=a.tokens.length,x(r.parenL),qh(),x(r.parenR)),yt(),e!=null){const t=a.tokens.length;a.scopes.push(new Qe(e,t,!1)),a.scopeDepth--}}y(r._finally)&&yt()}function Qn(e){w(),Sa(!1,e),ae()}function Wh(){w(),Xn(),De(!1)}function Vh(){w()}function Hh(){De(!0)}function Gh(e){Z?Xf(e):Q?ah(e):ae()}function yt(e=!1,t=0){const n=a.tokens.length;a.scopeDepth++,x(r.braceL),t&&(a.tokens[a.tokens.length-1].contextId=t),er(r.braceR),t&&(a.tokens[a.tokens.length-1].contextId=t);const s=a.tokens.length;a.scopes.push(new Qe(n,s,e)),a.scopeDepth--}function er(e){for(;!y(e)&&!a.error;)De(!0)}function ms(){x(r.semi),p(r.semi)||ve(),x(r.semi),p(r.parenR)||ve(),x(r.parenR),De(!1)}function _a(e){e?be(d._of):w(),ve(),x(r.parenR),De(!1)}function Sa(e,t){for(;;){if(Xh(t),y(r.eq)){const n=a.tokens.length-1;_e(e),a.tokens[n].rhsEndIndex=a.tokens.length}if(!y(r.comma))break}}function Xh(e){zn(e),Z?Qf():Q&&yh()}function Pt(e,t,n=!1){p(r.star)&&w(),t&&!n&&!p(r.name)&&!p(r._yield)&&W();let s=null;p(r.name)&&(t||(s=a.tokens.length,a.scopeDepth++),gt(!1));const o=a.tokens.length;a.scopeDepth++,Wt(),la(e);const i=a.tokens.length;a.scopes.push(new Qe(o,i,!0)),a.scopeDepth--,s!==null&&(a.scopes.push(new Qe(s,i,!0)),a.scopeDepth--)}function Wt(e=!1,t=0){Z?Zf():Q&&kh(),x(r.parenL),t&&(a.tokens[a.tokens.length-1].contextId=t),Dr(r.parenR,!1,!1,e,t),t&&(a.tokens[a.tokens.length-1].contextId=t)}function Rt(e,t=!1){const n=Kt();w(),a.tokens[a.tokens.length-1].contextId=n,a.tokens[a.tokens.length-1].isExpression=!e;let s=null;e||(s=a.tokens.length,a.scopeDepth++),Zh(e,t),Qh();const o=a.tokens.length;if(Yh(n),!a.error&&(a.tokens[o].contextId=n,a.tokens[a.tokens.length-1].contextId=n,s!==null)){const i=a.tokens.length;a.scopes.push(new Qe(s,i,!1)),a.scopeDepth--}}function $a(){return p(r.eq)||p(r.semi)||p(r.braceR)||p(r.bang)||p(r.colon)}function Ia(){return p(r.parenL)||p(r.lessThan)}function Yh(e){for(x(r.braceL);!y(r.braceR)&&!a.error;){if(y(r.semi))continue;if(p(r.at)){wa();continue}const t=a.start;Kh(t,e)}}function Kh(e,t){Z&&Br([d._declare,d._public,d._protected,d._private,d._override]);let n=!1;if(p(r.name)&&a.contextualKeyword===d._static){if(B(),Ia()){fn(e,!1);return}else if($a()){tr();return}if(a.tokens[a.tokens.length-1].type=r._static,n=!0,p(r.braceL)){a.tokens[a.tokens.length-1].contextId=t,yt();return}}Jh(e,n,t)}function Jh(e,t,n){if(Z&&Gf(t))return;if(y(r.star)){pn(n),fn(e,!1);return}pn(n);let s=!1;const o=a.tokens[a.tokens.length-1];o.contextualKeyword===d._constructor&&(s=!0),Ea(),Ia()?fn(e,s):$a()?tr():o.contextualKeyword===d._async&&!et()?(a.tokens[a.tokens.length-1].type=r._async,p(r.star)&&w(),pn(n),Ea(),fn(e,!1)):(o.contextualKeyword===d._get||o.contextualKeyword===d._set)&&!(et()&&p(r.star))?(o.contextualKeyword===d._get?a.tokens[a.tokens.length-1].type=r._get:a.tokens[a.tokens.length-1].type=r._set,pn(n),fn(e,!1)):o.contextualKeyword===d._accessor&&!et()?(pn(n),tr()):et()?tr():W()}function fn(e,t){Z?Tt():Q&&p(r.lessThan)&&Ke(),rs(e,t)}function pn(e){cn(e)}function Ea(){if(Z){const e=G(0);y(r.question),H(e)}}function tr(){if(Z?(ci(r.bang),Mt()):Q&&p(r.colon)&&Ct(),p(r.eq)){const e=a.tokens.length;w(),_e(),a.tokens[e].rhsEndIndex=a.tokens.length}ae()}function Zh(e,t=!1){Z&&(!e||t)&&O(d._implements)||(p(r.name)&&gt(!0),Z?Tt():Q&&p(r.lessThan)&&Ke())}function Qh(){let e=!1;y(r._extends)?(oa(),e=!0):e=!1,Z?Kf(e):Q&&hh(e)}function Ta(){const e=a.tokens.length-1;Z&&qf()||(rd()?sd():nd()?(B(),p(r.comma)&&ue()===r.star?(x(r.comma),x(r.star),me(d._as),B()):Aa(),hn()):y(r._default)?ed():id()?td():(bs(),hn()),a.tokens[e].rhsEndIndex=a.tokens.length)}function ed(){if(Z&&Vf()||Q&&ih())return;const e=a.start;y(r._function)?Pt(e,!0,!0):O(d._async)&&ue()===r._function?(be(d._async),y(r._function),Pt(e,!0,!0)):p(r._class)?Rt(!0,!0):p(r.at)?(ds(),Rt(!0,!0)):(_e(),ae())}function td(){Z?Yf():Q?uh():De(!0)}function nd(){if(Z&&Qi())return!1;if(Q&&lh())return!1;if(p(r.name))return a.contextualKeyword!==d._async;if(!p(r._default))return!1;const e=Pr(),t=Zt(),n=t.type===r.name&&t.contextualKeyword===d._from;if(t.type===r.comma)return!0;if(n){const s=C.charCodeAt(li(e+4));return s===g.quotationMark||s===g.apostrophe}return!1}function Aa(){y(r.comma)&&bs()}function hn(){be(d._from)&&(at(),Ra()),ae()}function rd(){return Q?fh():p(r.star)}function sd(){Q?ph():gs()}function gs(){x(r.star),O(d._as)?od():hn()}function od(){w(),a.tokens[a.tokens.length-1].type=r._as,B(),Aa(),hn()}function id(){return Z&&Qi()||Q&&ch()||a.type===r._var||a.type===r._const||a.type===r._let||a.type===r._function||a.type===r._class||O(d._async)||p(r.at)}function bs(){let e=!0;for(x(r.braceL);!y(r.braceR)&&!a.error;){if(e)e=!1;else if(x(r.comma),y(r.braceR))break;ad()}}function ad(){if(Z){Wf();return}B(),a.tokens[a.tokens.length-1].identifierRole=M.ExportAccess,be(d._as)&&B()}function cd(){const e=a.snapshot();return me(d._module),be(d._from)?O(d._from)?(a.restoreFromSnapshot(e),!0):(a.restoreFromSnapshot(e),!1):p(r.comma)?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function ld(){O(d._module)&&cd()&&w()}function Ca(){if(Z&&p(r.name)&&ue()===r.eq){Gr();return}if(Z&&O(d._type)){const e=Zt();if(e.type===r.name&&e.contextualKeyword!==d._from){if(me(d._type),ue()===r.eq){Gr();return}}else(e.type===r.star||e.type===r.braceL)&&me(d._type)}p(r.string)||(ld(),fd(),me(d._from)),at(),Ra(),ae()}function ud(){return p(r.name)}function Pa(){Bn()}function fd(){Q&&gh();let e=!0;if(!(ud()&&(Pa(),!y(r.comma)))){if(p(r.star)){w(),me(d._as),Pa();return}for(x(r.braceL);!y(r.braceR)&&!a.error;){if(e)e=!1;else if(y(r.colon)&&W("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),x(r.comma),y(r.braceR))break;pd()}}}function pd(){if(Z){Uf();return}if(Q){bh();return}Bn(),O(d._as)&&(a.tokens[a.tokens.length-1].identifierRole=M.ImportAccess,w(),Bn())}function Ra(){(p(r._with)||O(d._assert)&&!Re())&&(w(),ns(!1,!1))}function hd(){return a.pos===0&&C.charCodeAt(0)===g.numberSign&&C.charCodeAt(1)===g.exclamationMark&&pi(2),fi(),Th()}class dd{constructor(t,n){this.tokens=t,this.scopes=n}}function md(e,t,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");Ml(e,t,n,s);const o=hd();if(a.error)throw Ol(a.error);return o}function gd(e){let t=e.currentIndex(),n=0;const s=e.currentToken();do{const o=e.tokens[t];if(o.isOptionalChainStart&&n++,o.isOptionalChainEnd&&n--,n+=o.numNullishCoalesceStarts,n-=o.numNullishCoalesceEnds,o.contextualKeyword===d._await&&o.identifierRole==null&&o.scopeDepth===s.scopeDepth)return!0;t+=1}while(n>0&&t<e.tokens.length);return!1}class dn{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,n,s,o,i){this.code=t,this.tokens=n,this.isFlowEnabled=s,this.disableESTransforms=o,this.helperManager=i,dn.prototype.__init.call(this),dn.prototype.__init2.call(this),dn.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const n=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,n){return this.matches1AtIndex(t,r.name)&&this.tokens[t].contextualKeyword===n}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,n){return this.tokens[t].type===n}matches2AtIndex(t,n,s){return this.tokens[t].type===n&&this.tokens[t+1].type===s}matches3AtIndex(t,n,s,o){return this.tokens[t].type===n&&this.tokens[t+1].type===s&&this.tokens[t+2].type===o}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,n){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n}matches3(t,n,s){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s}matches4(t,n,s,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===o}matches5(t,n,s,o,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===o&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,n){return this.matches1(t)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\\r\\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(r.braceL))t++;else if(this.matches1(r.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=gd(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let n=0;n<t.numNullishCoalesceStarts;n++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===r._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<t.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function bd(e,t,n,s){const o=t.snapshot(),i=kd(t);let c=[];const l=[],u=[];let f=null;const h=[],m=[],k=t.currentToken().contextId;if(k==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(r.braceR,k);)if(t.matchesContextual(d._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:f}=Na(t));else if(t.matches1(r.semi))s||m.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const v=t.currentIndex();let $=!1,R=!1,D=!1;for(;nr(t.currentToken());)t.matches1(r._static)&&($=!0),t.matches1(r.hash)&&(R=!0),(t.matches1(r._declare)||t.matches1(r._abstract))&&(D=!0),t.nextToken();if($&&t.matches1(r.braceL)){ks(t,k);continue}if(R){ks(t,k);continue}if(t.matchesContextual(d._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:f}=Na(t));continue}const F=t.currentIndex();if(yd(t),t.matches1(r.lessThan)||t.matches1(r.parenL)){ks(t,k);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(r.eq)){const I=t.currentIndex(),T=t.currentToken().rhsEndIndex;if(T==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<T;)e.processToken();let S;$?(S=n.claimFreeName("__initStatic"),u.push(S)):(S=n.claimFreeName("__init"),l.push(S)),h.push({initializerName:S,equalsIndex:I,start:F,end:t.currentIndex()})}else(!s||D)&&m.push({start:v,end:t.currentIndex()})}return t.restoreToSnapshot(o),s?{headerInfo:i,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:f,fields:[],rangesToRemove:m}:{headerInfo:i,constructorInitializerStatements:c,instanceInitializerNames:l,staticInitializerNames:u,constructorInsertPos:f,fields:h,rangesToRemove:m}}function ks(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;nr(e.tokenAtRelativeIndex(-1));)e.previousToken()}function kd(e){const t=e.currentToken(),n=t.contextId;if(n==null)throw new Error("Expected context ID on class token.");const s=t.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let o=null,i=!1;for(e.nextToken(),e.matches1(r.name)&&(o=e.identifierName());!e.matchesContextIdAndLabel(r.braceL,n);)e.matches1(r._extends)&&!e.currentToken().isType&&(i=!0),e.nextToken();return{isExpression:s,className:o,hasSuperclass:i}}function Na(e){const t=[];e.nextToken();const n=e.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(r.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),nr(e.currentToken())){for(e.nextToken();nr(e.currentToken());)e.nextToken();const i=e.currentToken();if(i.type!==r.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const c=e.identifierNameForToken(i);t.push(`this.${c} = ${c}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let s=e.currentIndex(),o=!1;for(;!e.matchesContextIdAndLabel(r.braceR,n);){if(!o&&e.matches2(r._super,r.parenL)){e.nextToken();const i=e.currentToken().contextId;if(i==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(r.parenR,i);)e.nextToken();s=e.currentIndex(),o=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:s}}function nr(e){return[r._async,r._get,r._set,r.plus,r.minus,r._readonly,r._static,r._public,r._private,r._protected,r._override,r._abstract,r.star,r._declare,r.hash].includes(e.type)}function yd(e){if(e.matches1(r.bracketL)){const n=e.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(r.bracketR,n);)e.nextToken();e.nextToken()}else e.nextToken()}function ja(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(r.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(r.dot);)e.removeToken(),e.removeToken()}const La={typeDeclarations:new Set,valueDeclarations:new Set};function Oa(e){const t=new Set,n=new Set;for(let s=0;s<e.tokens.length;s++){const o=e.tokens[s];o.type===r.name&&ai(o)&&(o.isType?t.add(e.identifierNameForToken(o)):n.add(e.identifierNameForToken(o)))}return{typeDeclarations:t,valueDeclarations:n}}function Fa(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,r.braceR);)t++;return e.matchesContextualAtIndex(t+1,d._from)&&e.matches1AtIndex(t+2,r.string)}function Nt(e){(e.matches2(r._with,r.braceL)||e.matches2(r.name,r.braceL)&&e.matchesContextual(d._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Da(e,t,n,s){if(!e||t)return!1;const o=n.currentToken();if(o.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const i=o.rhsEndIndex-n.currentIndex();if(i!==3&&!(i===4&&n.matches1AtIndex(o.rhsEndIndex-1,r.semi)))return!1;const c=n.tokenAtRelativeIndex(2);if(c.type!==r.name)return!1;const l=n.identifierNameForToken(c);return s.typeDeclarations.has(l)&&!s.valueDeclarations.has(l)}class mn extends Xe{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,n,s,o,i,c,l,u,f,h,m,k){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=s,this.nameManager=o,this.helperManager=i,this.reactHotLoaderTransformer=c,this.enableLegacyBabel5ModuleInterop=l,this.enableLegacyTypeScriptModuleInterop=u,this.isTypeScriptTransformEnabled=f,this.isFlowTransformEnabled=h,this.preserveDynamicImport=m,this.keepUnusedImports=k,mn.prototype.__init.call(this),mn.prototype.__init2.call(this),mn.prototype.__init3.call(this),this.declarationInfo=f?Oa(n):La}getPrefixCode(){let t="";return this.hadExport&&(t+=\'Object.defineProperty(exports, "__esModule", {value: true});\'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`\nmodule.exports = exports.default;\n`:""}process(){return this.tokens.matches3(r._import,r.name,r.eq)?this.processImportEquals():this.tokens.matches1(r._import)?(this.processImport(),!0):this.tokens.matches2(r._export,r.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(r._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(r.name,r.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(r.name)||this.tokens.matches1(r.jsxName)?this.processIdentifier():this.tokens.matches1(r.eq)?this.processAssignment():this.tokens.matches1(r.assign)?this.processComplexAssignment():this.tokens.matches1(r.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?ja(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(r._import,r.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(r.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}Nt(this.tokens),this.tokens.matches1(r.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(d._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,r.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(r.name)||this.tokens.matches1(r.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(r.string))return!1;let t=!1,n=!1;for(;!this.tokens.matches1(r.string);)(!t&&this.tokens.matches1(r.braceL)||this.tokens.matches1(r.comma))&&(this.tokens.removeToken(),this.tokens.matches1(r.braceR)||(n=!0),(this.tokens.matches2(r.name,r.comma)||this.tokens.matches2(r.name,r.braceR)||this.tokens.matches4(r.name,r.name,r.name,r.comma)||this.tokens.matches4(r.name,r.name,r.name,r.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?n&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(r.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===M.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==M.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!n)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===r.parenR;)s++;return this.tokens.tokens[s].type===r.parenL?this.tokens.tokenAtRelativeIndex(1).type===r.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==r._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const t=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(t);return n?(this.tokens.replaceToken(`${t}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(r._export,r._enum)||this.tokens.matches3(r._export,r._const,r._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(r._export,r._default))return this.tokens.matches3(r._export,r._default,r._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(r._export,r.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(r._export,r.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(r.braceL)){for(;!this.tokens.matches1(r.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(r._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(d._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,r.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Nt(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(r._export,r._var)||this.tokens.matches2(r._export,r._let)||this.tokens.matches2(r._export,r._const))return this.processExportVar(),!0;if(this.tokens.matches2(r._export,r._function)||this.tokens.matches3(r._export,r.name,r._function))return this.processExportFunction(),!0;if(this.tokens.matches2(r._export,r._class)||this.tokens.matches3(r._export,r._abstract,r._class)||this.tokens.matches2(r._export,r.at))return this.processExportClass(),!0;if(this.tokens.matches2(r._export,r.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t-1];if(n.isType||n.type!==r.name||n.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,r.dot)||t>=2&&[r._var,r._let,r._const].includes(this.tokens.tokens[t-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t-1];if(n.type!==r.name||n.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,r.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t+1];if(n.type!==r.name||n.shadowsGlobal||t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,r.dot)||this.tokens.matches1AtIndex(t+2,r.bracketL)||this.tokens.matches1AtIndex(t+2,r.parenL)))return!1;const s=this.tokens.identifierNameForToken(n),o=this.importProcessor.resolveExportBinding(s);return o?(this.tokens.appendCode(`${o} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t],s=this.tokens.tokens[t+1];if(n.type!==r.name||n.shadowsGlobal||t>=1&&this.tokens.matches1AtIndex(t-1,r.dot))return!1;const o=this.tokens.identifierNameForToken(n),i=this.importProcessor.resolveExportBinding(o);if(!i)return!1;const c=this.tokens.rawCodeForToken(s),l=this.importProcessor.getIdentifierReplacement(o)||o;if(c==="++")this.tokens.replaceToken(`(${l} = ${i} = ${l} + 1, ${l} - 1)`);else if(c==="--")this.tokens.replaceToken(`(${l} = ${i} = ${l} - 1, ${l} + 1)`);else throw new Error(`Unexpected operator: ${c}`);return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(r._export,r._default,r._function,r.name)||this.tokens.matches5(r._export,r._default,r.name,r._function,r.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(r._export,r._default,r._class,r.name)||this.tokens.matches5(r._export,r._default,r._abstract,r._class,r.name)||this.tokens.matches3(r._export,r._default,r.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(r._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if(Da(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(r.at);)if(this.tokens.copyToken(),this.tokens.matches1(r.parenL))this.tokens.copyExpectedToken(r.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.parenR);else{for(this.tokens.copyExpectedToken(r.name);this.tokens.matches1(r.dot);)this.tokens.copyExpectedToken(r.dot),this.tokens.copyExpectedToken(r.name);this.tokens.matches1(r.parenL)&&(this.tokens.copyExpectedToken(r.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,r.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,r.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const t=this.tokens.identifierName();for(;!this.tokens.matches1(r.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.matches1(r.braceL);t&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(r.braceL)||this.tokens.matches1(r.dollarBraceL)||this.tokens.matches1(r.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(r.braceR)||this.tokens.matches1(r.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(r.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(r.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(ii(s)){const o=this.tokens.identifierName();let i=this.importProcessor.getIdentifierReplacement(o);if(i===null)throw new Error(`Expected a replacement for ${o} in \\`export var\\` syntax.`);Vl(s)&&(i=`${o}: ${i}`),this.tokens.replaceToken(i)}else this.rootTransformer.processToken()}}if(t){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(r._function))this.tokens.copyToken();else if(this.tokens.matches2(r.name,r._function)){if(!this.tokens.matchesContextual(d._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(r.star)&&this.tokens.copyToken(),!this.tokens.matches1(r.name))throw new Error("Expected identifier for exported function name.");const t=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(r.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(r.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(r._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=Fa(this.tokens),n=[];for(;;){if(this.tokens.matches1(r.braceR)){this.tokens.removeToken();break}const s=Qt(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!t&&this.shouldElideExportedIdentifier(s.leftName))){const i=s.rightName;i==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const c=s.leftName,l=this.importProcessor.getIdentifierReplacement(c);n.push(`exports.${i} = ${l||c};`)}if(this.tokens.matches1(r.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(r.comma,r.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(r.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(d._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),Nt(this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(r.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(r.string);)this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),Nt(this.tokens),this.tokens.matches1(r.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(t)}}class xd extends Xe{constructor(t,n,s,o,i,c,l,u){super(),this.tokens=t,this.nameManager=n,this.helperManager=s,this.reactHotLoaderTransformer=o,this.isTypeScriptTransformEnabled=i,this.isFlowTransformEnabled=c,this.keepUnusedImports=l,this.nonTypeIdentifiers=i&&!l?_i(t,u):new Set,this.declarationInfo=i&&!l?Oa(t):La,this.injectCreateRequireForImportRequire=!!u.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(r._import,r.name,r.eq))return this.processImportEquals();if(this.tokens.matches4(r._import,r.name,r.name,r.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(r._export,r.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(r._export,r._import,r.name,r.name,r.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(r._import))return this.processImport();if(this.tokens.matches2(r._export,r._default))return this.processExportDefault();if(this.tokens.matches2(r._export,r.braceL))return this.processNamedExports();if(this.tokens.matches2(r._export,r.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(r.braceL)){for(;!this.tokens.matches1(r.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(r._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(d._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,r.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Nt(this.tokens)),!0}return!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(t)?ja(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(r._import,r.parenL))return!1;const t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(r.string);)this.tokens.removeToken();this.tokens.removeToken(),Nt(this.tokens),this.tokens.matches1(r.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(r._import),this.tokens.matchesContextual(d._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,r.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._from))return!0;if(this.tokens.matches1(r.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(d._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._from)&&this.tokens.copyToken();let t=!1,n=!1,s=!1;if(this.tokens.matches1(r.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(r.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(r.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(r.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(r.star),this.tokens.copyExpectedToken(r.name),this.tokens.copyExpectedToken(r.name));else if(this.tokens.matches1(r.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(r.braceR);){n=!0;const o=Qt(this.tokens);if(o.isType||this.shouldAutomaticallyElideImportedName(o.rightName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(r.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(r.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(r.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?n&&!t:!1}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(Da(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(r._export,r._default,r._function,r.name)||this.tokens.matches5(r._export,r._default,r.name,r._function,r.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._async)||this.tokens.matches4(r._export,r._default,r._class,r.name)||this.tokens.matches5(r._export,r._default,r._abstract,r._class,r.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(r._export),this.tokens.copyExpectedToken(r.braceL);const t=Fa(this.tokens);let n=!1;for(;!this.tokens.matches1(r.braceR);){const s=Qt(this.tokens);if(s.isType||!t&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(r.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(r.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(r.braceR),!this.keepUnusedImports&&t&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),Nt(this.tokens)),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}}class wd extends Xe{constructor(t,n,s){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(r._enum)?(this.processEnum(),!0):this.tokens.matches2(r._export,r._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(r._export,r._default,r._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(r.name);let t=!1;this.tokens.matchesContextual(d._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(d._symbol),this.tokens.removeToken());const n=this.tokens.matches3(r.braceL,r.name,r.eq);this.tokens.appendCode(\' = require("flow-enums-runtime")\');const s=!t&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(r.braceR);){if(this.tokens.matches1(r.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,n),this.tokens.matches1(r.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(t,n){if(t){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function vd(e){let t,n=e[0],s=1;for(;s<e.length;){const o=e[s],i=e[s+1];if(s+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...c)=>n.call(t,...c)),t=void 0)}return n}const rr="jest",_d=["mock","unmock","enableAutomock","disableAutomock"];class ys extends Xe{__init(){this.hoistedFunctionNames=[]}constructor(t,n,s,o){super(),this.rootTransformer=t,this.tokens=n,this.nameManager=s,this.importProcessor=o,ys.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(r.name,r.dot,r.name,r.parenL)&&this.tokens.identifierName()===rr?vd([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(rr)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(r.dot,r.name,r.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(_d.includes(n)){const o=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(o),this.tokens.replaceToken(`function ${o}(){${rr}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${rr}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.parenR),t=!0}return!0}}class Sd extends Xe{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(r.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class $d extends Xe{constructor(t,n){super(),this.tokens=t,this.nameManager=n}process(){return this.tokens.matches2(r._catch,r.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Id extends Xe{constructor(t,n){super(),this.tokens=t,this.nameManager=n}process(){if(this.tokens.matches1(r.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(r._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==r._super){const s=this.nameManager.claimFreeName("_");let o;if(n>0&&this.tokens.matches1AtIndex(n-1,r._delete)&&this.isLastSubscriptInChain()?o=`${s} => delete ${s}`:o=`${s} => ${s}`,this.tokens.tokens[n].isAsyncOperation&&(o=`async ${o}`),this.tokens.matches2(r.questionDot,r.parenL)||this.tokens.matches2(r.questionDot,r.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'optionalCall\', ${o}`);else if(this.tokens.matches2(r.questionDot,r.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'optionalAccess\', ${o}`);else if(this.tokens.matches1(r.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'optionalAccess\', ${o}.`);else if(this.tokens.matches1(r.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'access\', ${o}.`);else if(this.tokens.matches1(r.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'access\', ${o}[`);else if(this.tokens.matches1(r.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'call\', ${o}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?t++:this.tokens.tokens[n].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?t--:this.tokens.tokens[n].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===r._super;n--}}}class Ed extends Xe{constructor(t,n,s,o){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=s,this.options=o}process(){const t=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(r.name,r.dot,r.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const n=this.findDisplayName(t);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(r.parenL),this.tokens.copyExpectedToken(r.braceL),this.tokens.appendCode(`displayName: \'${n}\',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(r.braceR),this.tokens.copyExpectedToken(r.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,r.name,r.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===M.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,r._export,r._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),s=n[n.length-1],o=s.lastIndexOf("."),i=o===-1?s:s.slice(0,o);return i==="index"&&n[n.length-2]?n[n.length-2]:i}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(r.parenL,r.braceL))return!1;const n=t+1,s=this.tokens.tokens[n].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){const o=this.tokens.tokens[t];if(o.type===r.braceR&&o.contextId===s){t++;break}if(this.tokens.identifierNameAtIndex(t)==="displayName"&&this.tokens.tokens[t].identifierRole===M.ObjectKey&&o.contextId===s)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,r.parenR)||this.tokens.matches2AtIndex(t,r.comma,r.parenR)}}class xs extends Xe{__init(){this.extractedDefaultExportName=null}constructor(t,n){super(),this.tokens=t,this.filePath=n,xs.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`\n (function () {\n var enterModule = require(\'react-hot-loader\').enterModule;\n enterModule && enterModule(module);\n })();`.replace(/\\s+/g," ").trim()}getSuffixCode(){const t=new Set;for(const s of this.tokens.tokens)!s.isType&&ai(s)&&s.identifierRole!==M.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(s));const n=Array.from(t).map(s=>({variableName:s,uniqueLocalName:s}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require(\'react-hot-loader\').default;\n var leaveModule = require(\'react-hot-loader\').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${n.map(({variableName:s,uniqueLocalName:o})=>` reactHotLoader.register(${s}, "${o}", ${JSON.stringify(this.filePath||"")});`).join(`\n`)}\n leaveModule(module);\n})();`}process(){return!1}}const Td=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function Ma(e){if(e.length===0||!Jt[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!He[e.charCodeAt(t)])return!1;return!Td.has(e)}class Ad extends Xe{constructor(t,n,s){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(r._public)||this.tokens.matches1(r._protected)||this.tokens.matches1(r._private)||this.tokens.matches1(r._abstract)||this.tokens.matches1(r._readonly)||this.tokens.matches1(r._override)||this.tokens.matches1(r.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(r._enum)||this.tokens.matches2(r._const,r._enum)?(this.processEnum(),!0):this.tokens.matches2(r._export,r._enum)||this.tokens.matches3(r._export,r._const,r._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(r._const)||this.tokens.matches1(r._enum);)this.tokens.removeToken();const n=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(r.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(r.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(t){let n=null;for(;!this.tokens.matches1(r.braceR);){const{nameStringCode:s,variableName:o}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(r.eq,r.string,r.comma)||this.tokens.matches3(r.eq,r.string,r.braceR)?this.processStringLiteralEnumMember(t,s,o):this.tokens.matches1(r.eq)?this.processExplicitValueEnumMember(t,s,o):this.processImplicitValueEnumMember(t,s,o,n),this.tokens.matches1(r.comma)&&this.tokens.removeToken(),o!=null?n=o:n=`${t}[${s}]`}}extractEnumKeyInfo(t){if(t.type===r.name){const n=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${n}"`,variableName:Ma(n)?n:null}}else if(t.type===r.string){const n=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:Ma(n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,n,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${n}] = ${s};`)):(this.tokens.appendCode(`${t}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,n,s){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<o;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${n}] = ${s}] = ${n};`)}else{for(this.tokens.appendCode(`${t}[${t}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<o;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(t,n,s,o){let i=o!=null?`${o} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${i}; `),i=s),this.tokens.appendCode(`${t}[${t}[${n}] = ${i}] = ${n};`)}}class sr{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,n,s,o){sr.prototype.__init.call(this),sr.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;const{tokenProcessor:i,importProcessor:c}=t;this.tokens=i,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!o.disableESTransforms,o.disableESTransforms||(this.transformers.push(new Id(i,this.nameManager)),this.transformers.push(new Sd(i)),this.transformers.push(new $d(i,this.nameManager))),n.includes("jsx")&&(o.jsxRuntime!=="preserve"&&this.transformers.push(new It(this,i,c,this.nameManager,o)),this.transformers.push(new Ed(this,i,c,o)));let l=null;if(n.includes("react-hot-loader")){if(!o.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");l=new xs(i,o.filePath),this.transformers.push(l)}if(n.includes("imports")){if(c===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new mn(this,i,c,this.nameManager,this.helperManager,l,s,!!o.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),n.includes("flow"),!!o.preserveDynamicImport,!!o.keepUnusedImports))}else this.transformers.push(new xd(i,this.nameManager,this.helperManager,l,n.includes("typescript"),n.includes("flow"),!!o.keepUnusedImports,o));n.includes("flow")&&this.transformers.push(new wd(this,i,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new Ad(this,i,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new ys(this,i,this.nameManager,c))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?\'"use strict";\':"";for(const c of this.transformers)n+=c.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(c=>` var ${c};`).join("");for(const c of this.transformers)n+=c.getHoistedCode();let s="";for(const c of this.transformers)s+=c.getSuffixCode();const o=this.tokens.finish();let{code:i}=o;if(i.startsWith("#!")){let c=i.indexOf(`\n`);return c===-1&&(c=i.length,i+=`\n`),{code:i.slice(0,c+1)+n+i.slice(c+1)+s,mappings:this.shiftMappings(o.mappings,n.length)}}else return{code:n+i+s,mappings:this.shiftMappings(o.mappings,n.length)}}processBalancedCode(){let t=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(r.braceL)||this.tokens.matches1(r.dollarBraceL))t++;else if(this.tokens.matches1(r.braceR)){if(t===0)return;t--}if(this.tokens.matches1(r.parenL))n++;else if(this.tokens.matches1(r.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(r._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(r._class,r.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=bd(this,this.tokens,this.nameManager,this.disableESTransforms),n=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let s=t.headerInfo.className;n&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const i=this.tokens.currentToken().contextId;if(i==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(r._class);!this.tokens.matchesContextIdAndLabel(r.braceL,i);)this.processToken();this.processClassBody(t,s);const c=t.staticInitializerNames.map(l=>`${s}.${l}()`);n?this.tokens.appendCode(`, ${c.map(l=>`${l}, `).join("")}${s})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${c.map(l=>`${l};`).join(" ")}`)}processClassBody(t,n){const{headerInfo:s,constructorInsertPos:o,constructorInitializerStatements:i,fields:c,instanceInitializerNames:l,rangesToRemove:u}=t;let f=0,h=0;const m=this.tokens.currentToken().contextId;if(m==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(r.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const k=i.length+l.length>0;if(o===null&&k){const v=this.makeConstructorInitCode(i,l,n);if(s.hasSuperclass){const $=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${$}) { super(...${$}); ${v}; }`)}else this.tokens.appendCode(`constructor() { ${v}; }`)}for(;!this.tokens.matchesContextIdAndLabel(r.braceR,m);)if(f<c.length&&this.tokens.currentIndex()===c[f].start){let v=!1;for(this.tokens.matches1(r.bracketL)?this.tokens.copyTokenWithPrefix(`${c[f].initializerName}() {this`):this.tokens.matches1(r.string)||this.tokens.matches1(r.num)?(this.tokens.copyTokenWithPrefix(`${c[f].initializerName}() {this[`),v=!0):this.tokens.copyTokenWithPrefix(`${c[f].initializerName}() {this.`);this.tokens.currentIndex()<c[f].end;)v&&this.tokens.currentIndex()===c[f].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),f++}else if(h<u.length&&this.tokens.currentIndex()>=u[h].start){for(this.tokens.currentIndex()<u[h].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<u[h].end;)this.tokens.removeToken();h++}else this.tokens.currentIndex()===o?(this.tokens.copyToken(),k&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,l,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(r.braceR)}makeConstructorInitCode(t,n,s){return[...t,...n.map(o=>`${s}.prototype.${o}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(r.parenR,r.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,r.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(d._async)&&!this.tokens.matches1(r._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==r.lessThan||!t.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,r.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,n){for(let s=0;s<t.length;s++){const o=t[s];o!==void 0&&(t[s]=o+n)}return t}}var ws={},Ba;function Cd(){return Ba||(Ba=1,(function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t=`\n`,n="\\r",s=(function(){function o(i){this.string=i;for(var c=[0],l=0;l<i.length;)switch(i[l]){case t:l+=t.length,c.push(l);break;case n:l+=n.length,i[l]===t&&(l+=t.length),c.push(l);break;default:l++;break}this.offsets=c}return o.prototype.locationForIndex=function(i){if(i<0||i>this.string.length)return null;for(var c=0,l=this.offsets;l[c+1]<=i;)c++;var u=i-l[c];return{line:c,column:u}},o.prototype.indexForLocation=function(i){var c=i.line,l=i.column;return c<0||c>=this.offsets.length||l<0||l>this.lengthOfLine(c)?null:this.offsets[c]+l},o.prototype.lengthOfLine=function(i){var c=this.offsets[i],l=i===this.offsets.length-1?this.string.length:this.offsets[i+1];return l-c},o})();e.LinesAndColumns=s,e.default=s})(ws)),ws}Cd();function Pd(e){const t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,r._import)&&!e.matches3AtIndex(n,r._import,r.name,r.eq)&&Rd(e,n,t);return t}function Rd(e,t,n){t++,!e.matches1AtIndex(t,r.parenL)&&(e.matches1AtIndex(t,r.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,r.comma)&&t++),e.matches1AtIndex(t,r.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,r.braceL)&&(t++,Nd(e,t,n)))}function Nd(e,t,n){for(;;){if(e.matches1AtIndex(t,r.braceR))return;const s=Qt(e,t);if(t=s.endIndex,s.isType||n.add(s.rightName),e.matches2AtIndex(t,r.comma,r.braceR))return;if(e.matches1AtIndex(t,r.braceR))return;if(e.matches1AtIndex(t,r.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function jd(e,t){Yu(t);try{const n=Ld(e,t),o=new sr(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let i={code:o.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");i={...i,sourceMap:Fu(o,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return i}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}function Ld(e,t){const n=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),o=t.transforms.includes("flow"),i=t.disableESTransforms===!0,c=md(e,n,s,o),l=c.tokens,u=c.scopes,f=new Lr(e,l),h=new Mn(f),m=new dn(e,l,o,i,h),k=!!t.enableLegacyTypeScriptModuleInterop;let v=null;return t.transforms.includes("imports")?(v=new Et(f,m,k,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,h),v.preprocessTokens(),Ri(m,u,v.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&v.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Ri(m,u,Pd(m)),{tokenProcessor:m,scopes:u,nameManager:f,importProcessor:v,helperManager:h}}function Od(e){return e.endsWith(".ts")?["typescript"]:e.endsWith(".tsx")?["typescript","jsx"]:["jsx"]}function Fd(e,t,n){return jd(e,{transforms:[...Od(t),...n],jsxRuntime:"classic",jsxPragma:"h",jsxFragmentPragma:"Fragment",production:!0,disableESTransforms:!0,preserveDynamicImport:!0,filePath:t}).code}function Dd(e,t="input.jsx"){return Fd(e,t,["imports"])}const Md=e=>e.startsWith("./")||e.startsWith("../")||e.startsWith("/"),Bd=/\\brequire\\((["\'])([^"\'\\\\\\n]+)\\1\\)/g;function zd(e){if(/^\\s*export\\b/m.test(e))return e;const t=[...e.matchAll(/^(?:async\\s+)?function\\s+([A-Za-z_$][\\w$]*)/gm)].map(n=>n[1]);return t.length===0?e:`${e}\nexport { ${[...new Set(t)].join(", ")} };`}const qd=`const __ono_cache = new Map();\nfunction __ono_require(id) {\n let record = __ono_cache.get(id);\n if (!record) {\n record = { exports: {} };\n __ono_cache.set(id, record);\n const { deps, factory } = __ono_modules[id];\n factory(record.exports, (specifier) =>\n specifier in deps ? __ono_require(deps[specifier]) : __ono_externals[specifier]);\n }\n return record.exports;\n}`;async function Ud(e){const{entry:t,load:n,resolve:s,onExternal:o="hoist",exposeEntryFunctions:i=!1}=e,c=new Map,l=[],u=[t];for(;u.length>0;){const h=u.shift();if(c.has(h))continue;let m=await n(h);i&&h===t&&(m=zd(m));const k=Dd(m,h),v={};for(const[,,$]of k.matchAll(Bd))if(Md($))v[$]=s($,h),u.push(v[$]);else if(o==="hoist")l.includes($)||l.push($);else throw new Error(`Cannot bundle package import "${$}" (in ${h})`);c.set(h,{code:k,deps:v})}const f=[];l.length>0?(f.push(l.map((h,m)=>`import * as __ono_ext${m} from ${JSON.stringify(h)};`).join(`\n`)),f.push(`const __ono_externals = {\n${l.map((h,m)=>` ${JSON.stringify(h)}: { __esModule: true, ...__ono_ext${m} }`).join(`,\n`)}\n};`)):f.push("const __ono_externals = {};"),f.push("const __ono_modules = {};");for(const[h,{code:m,deps:k}]of c)f.push(`__ono_modules[${JSON.stringify(h)}] = { deps: ${JSON.stringify(k)}, factory: function (exports, require) {\n${m}\n} };`);return f.push(qd),f.push(`const __ono_entry = __ono_require(${JSON.stringify(t)});`),{code:f.join(`\n\n`),entryId:t,externals:l}}const or="default",vs="preflights",Wd="shortcuts",Vd={imports:-200,[vs]:-100,[Wd]:-10,[or]:0},za=/[\\\\:]?[\\s\'"`;{}]+/g;function Hd(e){return e.split(za)}const Gd={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Hd(e)}};function pe(e=[]){return Array.isArray(e)?e:[e]}function ct(e){return Array.from(new Set(e))}function qa(e,t){return e.reduce((n,s)=>(n.findIndex(o=>t(s,o))===-1&&n.push(s),n),[])}function ke(e){return typeof e=="string"}var Ua=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(const t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function _s(e){return e instanceof Ua}function lt(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function xt(e){const t=e.length;let n=-1,s,o="";const i=e.charCodeAt(0);for(;++n<t;){if(s=e.charCodeAt(n),s===0){o+="�";continue}if(s===37){o+="\\\\%";continue}if(s===44){o+="\\\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){o+=`\\\\${s.toString(16)} `;continue}if(n===0&&t===1&&s===45){o+=`\\\\${e.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){o+=e.charAt(n);continue}o+=`\\\\${e.charAt(n)}`}return o}const Ss=xt;function Xd(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}const Yd=/[\\w\\u00A0-\\uFFFF%-?]/;function Kd(e=""){return Yd.test(e)}function Jd(e){return typeof e=="function"?{match:e}:e}function Wa(e){return e.length===3}function ir(e){return e!=null}function Zd(){}var Qd=class{constructor(){this._map=new Map}get(e,t){const n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,n),s.get(t)}set(e,t,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([s,o])=>e(o,t,s)))}},em=class extends Map{getFallback(e,t){const n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){const t=[];return this.forEach((n,s)=>{t.push(e(n,s))}),t}flatMap(e){const t=[];return this.forEach((n,s)=>{t.push(...e(n,s))}),t}};function ar(e){return ke(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function tm(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ar(t)):[e]:[ar(e)]}function nm(e){return e.filter(([t,n],s)=>{if(t.startsWith("$$"))return!1;for(let o=s-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===n)return!1;return!0})}const Va="__virtual_key__";function cr(e){return e==null?"":nm(e).map(([t,n])=>n!=null&&typeof n!="function"?t!==Va?`${t}:${n};`:n:void 0).filter(Boolean).join("")}function lr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ha(e,t,n=!1){const s=e,o=t;if(Array.isArray(o))return n&&Array.isArray(o)?[...s,...o]:[...o];const i={...s};return lr(s)&&lr(o)&&Object.keys(o).forEach(c=>{lr(s[c])&&lr(o[c])||Array.isArray(s[c])&&Array.isArray(o[c])?i[c]=Ha(s[c],o[c],n):Object.assign(i,{[c]:o[c]})}),i}function ur(e){let t,n,s;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(s=e[t])&&typeof s=="object"?ur(s):s;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:ur(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(s=e[t])&&typeof s=="object"?ur(s):s;return n}return e}function rm(e){return ke(e[0])}function sm(e){return ke(e[0])}const fr={};function om(e=["-",":"]){const t=e.join("|");return fr[t]||(fr[t]=new RegExp(`((?:[!@<~\\\\w+:_-]|\\\\[&?>?:?\\\\S*\\\\])+?)(${t})\\\\(((?:[~!<>\\\\w\\\\s:/\\\\\\\\,%#.$?-]|\\\\[[^\\\\]]*?\\\\])+?)\\\\)(?!\\\\s*?=>)`,"gm")),fr[t].lastIndex=0,fr[t]}function im(e,t=["-",":"],n=5){const s=om(t);let o,i=e.toString();const c=new Set,l=new Map;do o=!1,i=i.replace(s,(f,h,m,k,v)=>{if(!t.includes(m))return f;o=!0,c.add(h+m);const $=v+h.length+m.length+1,R={length:f.length,items:[]};l.set(v,R);for(const D of[...k.matchAll(/\\S+/g)]){const F=$+D.index;let I=l.get(F)?.items;I?l.delete(F):I=[{offset:F,length:D[0].length,className:D[0]}];for(const T of I)T.className=T.className==="~"?h:T.className.replace(/^(!?)(.*)/,`$1${h}${m}$2`),R.items.push(T)}return"$".repeat(f.length)}),n-=1;while(o&&n);let u;if(typeof e=="string"){u="";let f=0;for(const[h,m]of l)u+=e.slice(f,h),u+=m.items.map(k=>k.className).join(" "),f=h+m.length;u+=e.slice(f)}else{u=e;for(const[f,h]of l)u.overwrite(f,f+h.length,h.items.map(m=>m.className).join(" "))}return{prefixes:Array.from(c),hasChanged:o,groupsByOffset:l,get expanded(){return u.toString()}}}function am(e,t=["-",":"],n=5){const s=im(e,t,n);return typeof e=="string"?s.expanded:e}const Ga=new Set;function cm(e){Ga.has(e)||(console.warn("[unocss]",e),Ga.add(e))}function Xa(e){return pe(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const Ya="_uno_resolved";async function lm(e){let t=typeof e=="function"?await e():await e;if(Ya in t)return t;t={...t},Object.defineProperty(t,Ya,{value:!0,enumerable:!1});const n=t.shortcuts?Xa(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){const s=o=>{o[2]||(o[2]={});const i=o[2];i.prefix==null&&t.prefix&&(i.prefix=pe(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(s),t.rules?.forEach(s)}return t}async function Ka(e){const t=await lm(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(pe).flatMap(Ka))).flat()]:[t]}function um(e){if(e.length===0)return{};const t=[],n=[];let s=!1;const o=[],i=[];for(const l of e){if(l.pipeline===!1){s=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&n.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline)}const c={pipeline:s?!1:{include:ct(Za(...t)),exclude:ct(Za(...n))}};return o.length&&(c.filesystem=ct(o.flat())),i.length&&(c.inline=ct(i.flat())),c}async function Ja(e={},t={}){const n=Object.assign({},t,e),s=qa((await Promise.all((n.presets||[]).flatMap(pe).flatMap(Ka))).flat(),(S,L)=>S.name===L.name),o=[...s.filter(S=>S.enforce==="pre"),...s.filter(S=>!S.enforce),...s.filter(S=>S.enforce==="post")],i=[...o,n],c=[...i].reverse(),l=Object.assign({},Vd,...i.map(S=>S.layers));function u(S){return ct(i.flatMap(L=>pe(L[S]||[])))}const f=u("extractors");let h=c.find(S=>S.extractorDefault!==void 0)?.extractorDefault;h===void 0&&(h=Gd),h&&!f.includes(h)&&f.unshift(h),f.sort((S,L)=>(S.order||0)-(L.order||0));const m=u("rules"),k=m.length,v={},$=[];for(const[S,L]of m.entries()){const Y=L[2]??(L[2]={});Y.__index=S,rm(L)?pe(Y.prefix??"").forEach(N=>{v[N+L[0]]=L}):$.unshift(L)}const R={templates:ct(i.flatMap(S=>pe(S.autocomplete?.templates))),extractors:i.flatMap(S=>pe(S.autocomplete?.extractors)).sort((S,L)=>(S.order||0)-(L.order||0)),shorthands:pm(i.map(S=>S.autocomplete?.shorthands||{}))};let D=u("separators");D.length||(D=[":","-"]);const F=um(u("content")),I={mergeSelectors:!0,warn:!0,sortLayers:S=>S,...n,blocklist:u("blocklist"),presets:o,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:l,theme:fm(i.map(S=>S.theme)),rules:m,rulesSize:k,rulesDynamic:$,rulesStaticMap:v,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:R,variants:u("variants").map(Jd).sort((S,L)=>(S.order||0)-(L.order||0)),shortcuts:Xa(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:D,details:n.details??n.envMode==="dev",content:F,transformers:qa(u("transformers"),(S,L)=>S.name===L.name)},T=u("extendTheme");for(const S of T)I.theme=S(I.theme,I)||I.theme;for(const S of i)S?.configResolved?.(I);return I}function fm(e){return e.map(t=>t?ur(t):{}).reduce((t,n)=>Ha(t,n),{})}function pm(e){return e.reduce((t,n)=>{const s={};for(const o in n){const i=n[o];Array.isArray(i)?s[o]=`(${i.join("|")})`:s[o]=i}return{...t,...s}},{})}function Za(...e){return e.flatMap(hm)}function hm(e){return Array.isArray(e)?e:e?[e]:[]}function Lk(e){return e}var dm="66.5.12";const Je={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"};var mm=class El{constructor(t={},n={}){this.userConfig=t,this.defaults=n,this.version=dm,this.events=Xd(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(s,o,i,c)=>{const l=tm(o).filter(u=>u.length);if(l.length){this.config.details&&c.rules.push(i),c.generator.activatedRules.add(i);const u=i[2];return l.map(f=>{if(ke(f))return[u.__index,f,u];let h=c.variantHandlers,m=u;for(const k of f)k[0]===Je.variants?typeof k[1]=="function"?h=k[1](h)||h:h=[...pe(k[1]),...h]:k[0]===Je.parent?h=[{parent:k[1]},...h]:k[0]===Je.selector?h=[{selector:k[1]},...h]:k[0]===Je.layer?h=[{layer:k[1]},...h]:k[0]===Je.sort?m={...m,sort:k[1]}:k[0]===Je.noMerge?m={...m,noMerge:k[1]}:k[0]===Je.body&&(k[0]=Va);return[u.__index,s,f,m,h]})}}}static async create(t={},n={}){const s=new El(t,n);return s.config=await Ja(s.userConfig,s.defaults),s.events.emit("config",s.config),s}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Ja(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,s=new Set){const o={original:t,code:t,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const c=await i.extract?.(o);if(c)if(_s(c)&&_s(s))for(const l of c)s.setCount(l,s.getCount(l)+c.getCount(l));else for(const l of c)s.add(l)}return s}makeContext(t,n){const s={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:Je,variantHandlers:n[2],constructCSS:(...o)=>this.constructCustomCSS(s,...o),variantMatch:n};return s}async parseToken(t,n){if(this.blocked.has(t))return;const s=`${t}${n?` ${n}`:""}`;if(this.cache.has(s))return this.cache.get(s);const o=this.config.preprocess.reduce((u,f)=>f(u)??u,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(s,null);return}const i=await this.matchVariants(t,o);if(i.every(u=>!u||this.isBlocked(u[1]))){this.blocked.add(t),this.cache.set(s,null);return}const c=async u=>{const f=this.makeContext(t,[n||u[0],u[1],u[2],u[3]]);this.config.details&&(f.variants=[...u[3]]);const h=await this.expandShortcut(f.currentSelector,f);return h?await this.stringifyShortcuts(f.variantMatch,f,h[0],h[1]):(await this.parseUtil(f.variantMatch,f))?.flatMap(m=>this.stringifyUtil(m,f)).filter(ir)},l=(await Promise.all(i.map(u=>c(u)))).flat().filter(u=>!!u);if(l?.length)return this.cache.set(s,l),l;this.cache.set(s,null)}async generate(t,n={}){const{id:s,scope:o,preflights:i=!0,safelist:c=!0,minify:l=!1,extendedInfo:u=!1}=n,f=ke(t)?await this.applyExtractors(t,s,u?new Ua:new Set):Array.isArray(t)?new Set(t):t;if(c){const N={generator:this,theme:this.config.theme};this.config.safelist.flatMap(z=>typeof z=="function"?z(N):z).forEach(z=>{const X=z.trim();X&&!f.has(X)&&f.add(X)})}const h=l?"":`\n`,m=new Set([or]),k=u?new Map:new Set,v=new Map;let $={};const R=Array.from(f).map(async N=>{if(k.has(N))return;const z=await this.parseToken(N);if(z!=null){k instanceof Map?k.set(N,{data:z,count:_s(f)?f.getCount(N):-1}):k.add(N);for(const X of z){const ne=X[3]||"",ce=X[4]?.layer;v.has(ne)||v.set(ne,[]),v.get(ne).push(X),ce&&m.add(ce)}}});await Promise.all(R),await(async()=>{if(!i)return;const N={generator:this,theme:this.config.theme},z=new Set([]);this.config.preflights.forEach(({layer:X=vs})=>{m.add(X),z.add(X)}),$=Object.fromEntries(await Promise.all(Array.from(z).map(async X=>[X,(await Promise.all(this.config.preflights.filter(ne=>(ne.layer||vs)===X).map(async ne=>await ne.getCSS(N)))).filter(Boolean).join(h)])))})();const D=this.config.sortLayers(Array.from(m).sort((N,z)=>(this.config.layers[N]??0)-(this.config.layers[z]??0)||N.localeCompare(z))),F={},I=this.config.outputToCssLayers,T=N=>{let z=N;return typeof I=="object"&&(z=I.cssLayerName?.(N)),z===null?null:z??N},S=(N=or)=>{if(F[N])return F[N];let z=Array.from(v).sort((ce,Te)=>(this.parentOrders.get(ce[0])??0)-(this.parentOrders.get(Te[0])??0)||ce[0]?.localeCompare(Te[0]||"")||0).map(([ce,Te])=>{const ot=Te.length,Me=Te.filter(K=>(K[4]?.layer||or)===N).sort((K,ye)=>K[0]-ye[0]||(K[4]?.sort||0)-(ye[4]?.sort||0)||K[5]?.currentSelector?.localeCompare(ye[5]?.currentSelector??"")||K[1]?.localeCompare(ye[1]||"")||K[2]?.localeCompare(ye[2]||"")||0).map(([,K,ye,,Le,,Ve])=>[[[(K&&km(K,o))??"",Le?.sort??0]],ye,!!(Ve??Le?.noMerge)]);if(!Me.length)return;const it=Me.reverse().map(([K,ye,Le],Ve)=>{if(!Le&&this.config.mergeSelectors)for(let Se=Ve+1;Se<ot;Se++){const we=Me[Se];if(we&&!we[2]&&(K&&we[0]||K==null&&we[0]==null)&&we[1]===ye)return K&&we[0]&&we[0].push(...K),null}const Be=K?ct(K.sort((Se,we)=>Se[1]-we[1]||Se[0]?.localeCompare(we[0]||"")||0).map(Se=>Se[0]).filter(Boolean)):[];return Be.length?`${Be.join(`,${h}`)}{${ye}}`:ye}).filter(Boolean),Ue=Array.from(new Set(it)).reverse().join(h);if(!ce)return Ue;const We=ce.split(" $$ ");return`${We.join("{")}{${h}${Ue}${h}${"}".repeat(We.length)}`}).filter(Boolean).join(h);i&&(z=[$[N],z].filter(Boolean).join(h));let X;I&&z&&(X=T(N),X!==null&&(z=`@layer ${X}{${h}${z}${h}}`));const ne=l?"":`/* layer: ${N}${X&&X!==N?`, alias: ${X}`:""} */${h}`;return F[N]=z?ne+z:""},L=(N=D,z)=>{const X=N.filter(ne=>!z?.includes(ne));return[I&&X.length>0?`@layer ${X.map(T).filter(ir).join(", ")};`:void 0,...X.map(ne=>S(ne)||"")].filter(Boolean).join(h)};return{get css(){return L()},layers:D,matched:k,getLayers:L,getLayer:S,setLayer:async(N,z)=>{const X=await z(S(N));return F[N]=X,X}}}async matchVariants(t,n){const s={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let c=!0;const[,,l,u]=i;for(;c;){c=!1;const f=i[1];for(const h of this.config.variants){if(!h.multiPass&&u.has(h))continue;let m=await h.match(f,s);if(m){if(ke(m)){if(m===f)continue;m={matcher:m}}if(Array.isArray(m)){if(!m.length)continue;if(m.length===1)m=m[0];else{if(h.multiPass)throw new Error("multiPass can not be used together with array return variants");const k=m.map(v=>{const $=v.matcher??f,R=[v,...l],D=new Set(u);return D.add(h),[i[0],$,R,D]});return(await Promise.all(k.map(v=>o(v)))).flat()}}i[1]=m.matcher??f,l.unshift(m),u.add(h),c=!0;break}}if(!c)break;if(l.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,n||t,[],new Set])}applyVariants(t,n=t[4],s=t[1]){const o=n.slice().sort((u,f)=>(u.order||0)-(f.order||0)).reduceRight((u,f)=>h=>{const m=f.body?.(h.entries)||h.entries,k=Array.isArray(f.parent)?f.parent:[f.parent,void 0],v=f.selector?.(h.selector,m);return(f.handle??xm)({...h,entries:m,selector:v||h.selector,parent:k[0]||h.parent,parentOrder:k[1]||h.parentOrder,layer:f.layer||h.layer,sort:f.sort||h.sort},u)},u=>u)({prefix:"",selector:ym(s),pseudo:"",entries:t[2]}),{parent:i,parentOrder:c}=o;i!=null&&c!=null&&this.parentOrders.set(i,c);const l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:i,layer:o.layer,sort:o.sort,noMerge:o.noMerge};return this.config.postprocess.reduce((u,f)=>{const h=[];for(const m of u){const k=f(m);Array.isArray(k)?h.push(...k.filter(ir)):h.push(k||m)}return h},[l])}constructCustomCSS(t,n,s){const o=ar(n);return ke(o)?o:this.applyVariants([0,s||t.rawSelector,o,void 0,t.variantHandlers]).map(({selector:i,entries:c,parent:l})=>{const u=`${i}{${cr(c)}}`;return l?`${l}{${u}}`:u}).join("")}async parseUtil(t,n,s=!1,o){const i=ke(t)?await this.matchVariants(t):[t],c=async([u,f,h])=>{this.config.details&&(n.rules=n.rules??[]);const m={...n,variantHandlers:h},k=this.config.rulesStaticMap[f];if(k&&k[1]&&(s||!k[2]?.internal))return this.resolveCSSResult(u,k[1],k,m);for(const v of this.config.rulesDynamic){const[$,R,D]=v;if(D?.internal&&!s)continue;let F=f;if(D?.prefix){const L=pe(D.prefix);if(o){const Y=pe(o);if(!L.some(N=>Y.includes(N)))continue}else{const Y=L.find(N=>f.startsWith(N));if(Y==null)continue;F=f.slice(Y.length)}}const I=F.match($);if(!I)continue;let T=await R(I,m);if(!T)continue;if(typeof T!="string")if(Symbol.asyncIterator in T){const L=[];for await(const Y of T)Y&&L.push(Y);T=L}else Symbol.iterator in T&&!Array.isArray(T)&&(T=Array.from(T).filter(ir));const S=this.resolveCSSResult(u,T,v,m);if(S)return S}},l=(await Promise.all(i.map(u=>c(u)))).flat().filter(u=>!!u);if(l.length)return l}stringifyUtil(t,n){if(!t)return;if(Wa(t))return[[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0]];const s=this.applyVariants(t),o=[];for(const i of s){const{selector:c,entries:l,parent:u,layer:f,sort:h,noMerge:m}=i,k=cr(l);if(!k)continue;const{layer:v,sort:$,...R}=t[3]??{},D={...R,layer:f??v,sort:h??$};o.push([t[0],c,k,u,D,this.config.details?n:void 0,m])}return o}async expandShortcut(t,n,s=5){if(s===0)return;const o=this.config.details?f=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(f)}:Zd;let i,c,l,u;for(const f of this.config.shortcuts){let h=t;if(f[2]?.prefix){const m=pe(f[2].prefix).find(k=>t.startsWith(k));if(m==null)continue;h=t.slice(m.length)}if(sm(f)){if(f[0]===h){i=i||f[2],c=f[1],o(f);break}}else{const m=h.match(f[0]);if(m&&(c=f[1](m,n)),c){i=i||f[2],o(f);break}}}if(c&&(l=ct(pe(c).filter(ke).map(f=>am(f.trim()).split(/\\s+/g)).flat()),u=pe(c).filter(f=>!ke(f)).map(f=>({handles:[],value:f}))),!c){const f=ke(t)?await this.matchVariants(t):[t];for(const h of f){const[m,k,v]=h;if(m!==k){const $=await this.expandShortcut(k,n,s-1);$&&(l=$[0].filter(ke).map(R=>m.replace(k,R)),u=$[0].filter(R=>!ke(R)).map(R=>({handles:[...R.handles,...v],value:R.value})))}}}if(!(!l?.length&&!u?.length))return[[await Promise.all(pe(l).map(async f=>(await this.expandShortcut(f,n,s-1))?.[0]||[f])),u].flat(2).filter(f=>!!f),i]}async stringifyShortcuts(t,n,s,o={layer:this.config.shortcutsLayer}){const i=new em,c=(await Promise.all(ct(s).map(async h=>{const m=ke(h)?await this.parseUtil(h,n,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ar(h.value),void 0,h.handles]];return!m&&this.config.warn&&cm(`unmatched utility "${h}" in shortcut "${t[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((h,m)=>h[0]-m[0]),[l,,u]=t,f=[];for(const h of c){if(Wa(h)){f.push([h[0],void 0,h[1],void 0,h[2],n,void 0]);continue}const m=Object.fromEntries(h[2])[Je.shortcutsNoMerge],k=[...h[4],...m?[]:u];for(const{selector:v,entries:$,parent:R,sort:D,noMerge:F,layer:I}of this.applyVariants(h,k,l))i.getFallback(I??o.layer,new Qd).getFallback(v,R,[[],h[0]])[0].push([$,!!(F??h[3]?.noMerge),D??0])}return f.concat(i.flatMap((h,m)=>h.map(([k,v],$,R)=>{const D=(F,I,T)=>{const S=Math.max(...T.map(Y=>Y[1])),L=T.map(Y=>Y[0]);return(F?[L.flat(1)]:L).map(Y=>{const N=cr(Y);if(N)return[v,$,N,R,{...o,noMerge:I,sort:S,layer:m},n,void 0]})};return[[k.filter(([,F])=>F).map(([F,,I])=>[F,I]),!0],[k.filter(([,F])=>!F).map(([F,,I])=>[F,I]),!1]].map(([F,I])=>[...D(!1,I,F.filter(([T])=>T.some(S=>S[0]===Je.shortcutsNoMerge))),...D(!0,I,F.filter(([T])=>T.every(S=>S[0]!==Je.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(t):ke(n)?n===t:n.test(t))}getBlocked(t){const n=this.config.blocklist.find(s=>{const o=Array.isArray(s)?s[0]:s;return typeof o=="function"?o(t):ke(o)?o===t:o.test(t)});return n?Array.isArray(n)?n:[n,void 0]:void 0}};async function gm(e,t){return await mm.create(e,t)}const Qa=/\\s\\$\\$\\s+/g;function bm(e){return Qa.test(e)}function km(e,t){return bm(e)?e.replace(Qa,t?` ${t} `:" "):t?`${t} ${e}`:e}const ec=/^\\[(.+?)(~?=)"(.*)"\\]$/;function ym(e){return ec.test(e)?e.replace(ec,(t,n,s,o)=>`[${Ss(n)}${s}"${Ss(o)}"]`):`.${Ss(e)}`}function xm(e,t){return t(e)}var tc=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,vm=Object.getOwnPropertyNames,_m=Object.prototype.hasOwnProperty,$s=(e,t)=>{let n={};for(var s in e)tc(n,s,{get:e[s],enumerable:!0});return n},Sm=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=vm(t),i=0,c=o.length,l;i<c;i++)l=o[i],!_m.call(e,l)&&l!==n&&tc(e,l,{get:(u=>t[u]).bind(null,l),enumerable:!(s=wm(t,l))||s.enumerable});return e},nc=(e,t,n)=>(Sm(e,t,"default"),n);class pr{constructor(t){this.bits=t instanceof pr?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class gn{constructor(t,n,s){this.start=t,this.end=n,this.original=s,this.intro="",this.outro="",this.content=s,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new gn(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous}edit(t,n,s){return this.content=t,s||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const n=t-this.start,s=this.original.slice(0,n),o=this.original.slice(n);this.original=s;const i=new gn(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=s,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const n=this.content.replace(t,"");if(n.length){if(n!==this.content){const s=this.split(this.end-n.length);this.edited&&s.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}function $m(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const Im=$m();class Em{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Ti(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Im(this.toString())}}function Tm(e){const t=e.split(`\n`),n=t.filter(i=>/^\\t+/.test(i)),s=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&s.length===0)return null;if(n.length>=s.length)return" ";const o=s.reduce((i,c)=>{const l=/^ +/.exec(c)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function Am(e,t){const n=e.split(/[/\\\\]/),s=t.split(/[/\\\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let o=n.length;for(;o--;)n[o]=".."}return n.concat(s).join("/")}const Cm=Object.prototype.toString;function Pm(e){return Cm.call(e)==="[object Object]"}function rc(e){const t=e.split(`\n`),n=[];for(let s=0,o=0;s<t.length;s++)n.push(o),o+=t[s].length+1;return function(o){let i=0,c=n.length;for(;i<c;){const f=i+c>>1;o<n[f]?c=f:i=f+1}const l=i-1,u=o-n[l];return{line:l,column:u}}}const Rm=/\\w/;class Nm{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,n,s,o){if(n.length){const i=n.length-1;let c=n.indexOf(`\n`,0),l=-1;for(;c>=0&&i>c;){const f=[this.generatedCodeColumn,t,s.line,s.column];o>=0&&f.push(o),this.rawSegments.push(f),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=c,c=n.indexOf(`\n`,c+1)}const u=[this.generatedCodeColumn,t,s.line,s.column];o>=0&&u.push(o),this.rawSegments.push(u),this.advance(n.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(t,n,s,o,i){let c=n.start,l=!0,u=!1;for(;c<n.end;){if(s[c]===`\n`)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,u=!1;else{if(this.hires||l||i.has(c)){const f=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?Rm.test(s[c])?u||(this.rawSegments.push(f),u=!0):(this.rawSegments.push(f),u=!1):this.rawSegments.push(f)}o.column+=1,this.generatedCodeColumn+=1,l=!1}c+=1}this.pending=null}advance(t){if(!t)return;const n=t.split(`\n`);if(n.length>1){for(let s=0;s<n.length-1;s++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const bn=`\n`,Vt={insertLeft:!1,insertRight:!1,storeName:!1};class Is{constructor(t,n={}){const s=new gn(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:s},lastChunk:{writable:!0,value:s},lastSearchedChunk:{writable:!0,value:s},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new pr},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=s,this.byEnd[t.length]=s}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byEnd[t];return s?s.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byStart[t];return s?s.appendRight(n):this.outro+=n,this}clone(){const t=new Is(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,s=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[s.start]=s,t.byEnd[s.end]=s;const o=n.next,i=o&&o.clone();i&&(s.next=i,i.previous=s,s=i),n=o}return t.lastChunk=s,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new pr(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const n=0,s=Object.keys(this.storedNames),o=new Nm(t.hires),i=rc(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(c=>{const l=i(c.start);c.intro.length&&o.advance(c.intro),c.edited?o.addEdit(n,c.content,l,c.storeName?s.indexOf(c.original):-1):o.addUneditedChunk(n,c,this.original,l,this.sourcemapLocations),c.outro.length&&o.advance(c.outro)}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\\\]/).pop():void 0,sources:[t.source?Am(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:s,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new Em(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Tm(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){const s=/^[^\\r\\n]/gm;if(Pm(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};const o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(h=>{for(let m=h[0];m<h[1];m+=1)o[m]=!0});let i=n.indentStart!==!1;const c=f=>i?`${t}${f}`:(i=!0,f);this.intro=this.intro.replace(s,c);let l=0,u=this.firstChunk;for(;u;){const f=u.end;if(u.edited)o[l]||(u.content=u.content.replace(s,c),u.content.length&&(i=u.content[u.content.length-1]===`\n`));else for(l=u.start;l<f;){if(!o[l]){const h=this.original[l];h===`\n`?i=!0:h!=="\\r"&&i&&(i=!1,l===u.start||(this._splitChunk(u,l),u=u.next),u.prependRight(t))}l+=1}l=u.end,u=u.next}return this.outro=this.outro.replace(s,c),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return Vt.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Vt.insertLeft=!0),this.appendLeft(t,n)}insertRight(t,n){return Vt.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Vt.insertRight=!0),this.prependRight(t,n)}move(t,n,s){if(t=t+this.offset,n=n+this.offset,s=s+this.offset,s>=t&&s<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(s);const o=this.byStart[t],i=this.byEnd[n],c=o.previous,l=i.next,u=this.byStart[s];if(!u&&i===this.lastChunk)return this;const f=u?u.previous:this.lastChunk;return c&&(c.next=l),l&&(l.previous=c),f&&(f.next=o),u&&(u.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=f,i.next=u||null,f||(this.firstChunk=o),u||(this.lastChunk=i),this}overwrite(t,n,s,o){return o=o||{},this.update(t,n,s,{...o,overwrite:!o.contentOnly})}update(t,n,s,o){if(t=t+this.offset,n=n+this.offset,typeof s!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(n),o===!0&&(Vt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Vt.storeName=!0),o={storeName:!0});const i=o!==void 0?o.storeName:!1,c=o!==void 0?o.overwrite:!1;if(i){const f=this.original.slice(t,n);Object.defineProperty(this.storedNames,f,{writable:!0,value:!0,enumerable:!0})}const l=this.byStart[t],u=this.byEnd[n];if(l){let f=l;for(;f!==u;){if(f.next!==this.byStart[f.end])throw new Error("Cannot overwrite across a split point");f=f.next,f.edit("",!1)}l.edit(s,i,!c)}else{const f=new gn(t,n,"").edit(s,i);u.next=f,f.previous=u}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byEnd[t];return s?s.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byStart[t];return s?s.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let s=this.byStart[t];for(;s;)s.intro="",s.outro="",s.edit(""),s=n>s.end?this.byStart[s.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let s=this.byStart[t];for(;s;)s.reset(),s=n>s.end?this.byStart[s.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(bn);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,s=this.lastChunk;do{if(s.outro.length>0){if(t=s.outro.lastIndexOf(bn),t!==-1)return s.outro.substr(t+1)+n;n=s.outro+n}if(s.content.length>0){if(t=s.content.lastIndexOf(bn),t!==-1)return s.content.substr(t+1)+n;n=s.content+n}if(s.intro.length>0){if(t=s.intro.lastIndexOf(bn),t!==-1)return s.intro.substr(t+1)+n;n=s.intro+n}}while(s=s.previous);return t=this.intro.lastIndexOf(bn),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}let s="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return s;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(s+=o.intro);const c=o.start<n&&o.end>=n;if(c&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const l=i===o?t-o.start:0,u=c?o.content.length+n-o.end:o.content.length;if(s+=o.content.slice(l,u),o.outro&&(!c||o.end===n)&&(s+=o.outro),c)break;o=o.next}return s}snip(t,n){const s=this.clone();return s.remove(0,t),s.remove(n,s.original.length),s}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,s=n;const o=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===s)return;s=n}}_splitChunk(t,n){if(t.edited&&t.content.length){const o=rc(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} – "${t.original}")`)}const s=t.split(n);return this.byEnd[n]=t,this.byStart[n]=s,this.byEnd[s.end]=s,t===this.lastChunk&&(this.lastChunk=s),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\\\r\\\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const n=new RegExp((t||"\\\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let s=this.lastChunk;do{const o=s.end,i=s.trimEnd(n);if(s.end!==o&&(this.lastChunk===s&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),i)return!0;s=s.previous}while(s);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const n=new RegExp("^"+(t||"\\\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let s=this.firstChunk;do{const o=s.end,i=s.trimStart(n);if(s.end!==o&&(s===this.lastChunk&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),i)return!0;s=s.next}while(s);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function s(i,c){return typeof n=="string"?n.replace(/\\$(\\$|&|\\d+)/g,(l,u)=>u==="$"?"$":u==="&"?i[0]:+u<i.length?i[+u]:`$${u}`):n(...i,i.index,c,i.groups)}function o(i,c){let l;const u=[];for(;l=i.exec(c);)u.push(l);return u}if(t.global)o(t,this.original).forEach(c=>{if(c.index!=null){const l=s(c,this.original);l!==c[0]&&this.overwrite(c.index,c.index+c[0].length,l)}});else{const i=this.original.match(t);if(i&&i.index!=null){const c=s(i,this.original);c!==i[0]&&this.overwrite(i.index,i.index+i[0].length,c)}}return this}_replaceString(t,n){const{original:s}=this,o=s.indexOf(t);return o!==-1&&(typeof n=="function"&&(n=n(t,o,s)),t!==n&&this.overwrite(o,o+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){const{original:s}=this,o=t.length;for(let i=s.indexOf(t);i!==-1;i=s.indexOf(t,i+o)){const c=s.slice(i,i+o);let l=n;typeof n=="function"&&(l=n(c,i,s)),c!==l&&this.overwrite(i,i+o,l)}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}}function sc(e,t,n){if(e==="")return;const s=e.length;let o=0,i=!1,c=0;for(let l=0;l<s;l++)switch(e[l]){case t:i||(i=!0,c=l),o++;break;case n:if(--o,o<0)return;if(o===0)return[e.slice(c,l+1),e.slice(l+1),e.slice(0,c)];break}}function kn(e,t,n,s){if(e===""||(ke(s)&&(s=[s]),s.length===0))return;const o=e.length;let i=0;for(let c=0;c<o;c++)switch(e[c]){case t:i++;break;case n:if(--i<0)return;break;default:for(const l of s){const u=l.length;if(u&&l===e.slice(c,c+u)&&i===0)return c===0||c===o-u?void 0:[e.slice(0,c),e.slice(c+u)]}}return[e,""]}function yn(e,t,n,s="(",o=")"){n=n??10;const i=[];let c=0;for(;e!=="";){if(++c>n)return;const l=kn(e,s,o,t);if(!l)return;const[u,f]=l;i.push(u),e=f}if(i.length>0)return i}const hr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],oc=["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","lab","oklab","xyz","xyz-d50","xyz-d65"],ic=["hsl","hwb","lch","oklch"],ac=["shorter","longer","increasing","decreasing"],Es=["%alpha","<alpha-value>"],cc=new RegExp(Es.map(e=>lt(e)).join("|"),"g");function jm(e){return e?oc.some(t=>e.includes(t))||ic.some(t=>e.includes(t))||ac.some(t=>e.includes(t)):!1}function Lm(e=""){const t=lc(e);if(t!=null){const{components:n,alpha:s}=t;return s==null?n:[...n,s]}}function ut(e=""){const t=Om(e);if(t==null||t===!1)return;const{type:n,components:s,alpha:o}=t,i=n.toLowerCase();if(s.length!==0&&!(hr.includes(i)&&![1,3].includes(s.length)))return{type:i,components:s.map(c=>typeof c=="string"?c.trim():c),alpha:typeof o=="string"?o.trim():o}}function xn(e){const t=e.alpha??1;return typeof t=="string"&&Es.includes(t)?1:t}function Ee(e,t){if(typeof e=="string")return e.replace(cc,`${t??1}`);const{components:n}=e;let{alpha:s,type:o}=e;return s=t??s,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${n.join(", ")}${s==null?"":`, ${s}`})`:(s=s==null?"":` / ${s}`,hr.includes(o)?`${o}(${n.join(" ")}${s})`:`color(${o} ${n.join(" ")}${s})`)}function Om(e){if(!e)return;let t=lc(e);if(t!=null||(t=Fm(e),t!=null)||(t=Dm(e),t!=null)||(t=Bm(e),t!=null)||(t=zm(e),t!=null))return t}function lc(e){const[,t]=e.match(/^#([\\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{const n=Array.from(t,s=>Number.parseInt(s,16)).map(s=>s<<4|s);return{type:"rgb",components:n.slice(0,3),alpha:t.length===3?void 0:Math.round(n[3]/255*100)/100}}case 6:case 8:{const n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}}function Fm(e){const t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Dm(e){const t=e.match(/^(rgb|rgba|hsl|hsla)\\((.+)\\)$/i);if(!t)return;const[,n,s]=t,o=yn(s,",",5);if(o){if([3,4].includes(o.length))return{type:n,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}const Mm=new RegExp(`^(${hr.join("|")})\\\\((.+)\\\\)$`,"i");function Bm(e){const t=e.match(Mm);if(!t)return;const[,n,s]=t,o=uc(`${n} ${s}`);if(o){const{alpha:i,components:[c,...l]}=o;return{type:c,components:l,alpha:i}}}function zm(e){const t=e.match(/^color\\((.+)\\)$/);if(!t)return;const n=uc(t[1]);if(n){const{alpha:s,components:[o,...i]}=n;return{type:o,components:i,alpha:s}}}function uc(e){const t=yn(e," ");if(!t)return;let n=t.length;if(t[n-2]==="/")return{components:t.slice(0,n-2),alpha:t[n-1]};if(t[n-2]!=null&&(t[n-2].endsWith("/")||t[n-1].startsWith("/"))){const i=t.splice(n-2);t.push(i.join(" ")),--n}const s=yn(t[n-1],"/",2);if(!s)return;if(s.length===1||s[s.length-1]==="")return{components:t};const o=s.pop();return t[n-1]=s.join("/"),{components:t,alpha:o}}const fc=/theme\\(\\s*([\'"])?(.*?)\\1?\\s*\\)/g;function qm(e){return e.includes("theme(")&&e.includes(")")}function Um(e,t,n=!0){const s=Array.from(e.toString().matchAll(fc));if(!s.length)return e;const o=new Is(e);for(const i of s){const c=i[2];if(!c)throw new Error("theme() expect exact one argument, but got 0");const l=pc(c,t,n);l&&o.overwrite(i.index,i.index+i[0].length,l)}return o.toString()}function pc(e,t,n=!0){const[s,o]=e.split("/");let i=s.trim().split(".").reduce((c,l)=>c?.[l],t);if(typeof i=="object"&&(i=i.DEFAULT),typeof i=="string"){if(o){const c=ut(i);c&&(i=Ee(c,o))}return i}else if(n)throw new Error(`theme of "${e}" did not found`)}function Wm(e){var t;const n=((t=e.match(/^-?\\d+\\.?\\d*/))===null||t===void 0?void 0:t[0])||"",s=e.slice(n.length);if(s==="px"){const o=Number.parseFloat(n)-.1;return Number.isNaN(o)?e:`${o}${s}`}return`calc(${e} - 0.1px)`}function hc(e){const t=function(s,o){var i;const c=((i=this.__options)===null||i===void 0?void 0:i.sequence)||[];this.__options.sequence=[];for(const l of c){const u=e[l](s,o);if(u!=null)return u}};function n(s,o){return s.__options||(s.__options={sequence:[]}),s.__options.sequence.push(o),s}for(const s of Object.keys(e))Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get(){return n(this,s)}});return t}const Vm=/icon\\(\\s*([\'"])?(.*?)\\1?\\s*\\)/g;function Hm(e){return e.includes("icon(")&&e.includes(")")}const wn="__pseudo_placeholder__",jt=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${wn})`],["nth-last",`:nth-last-child(${wn})`],["nth-last-of-type",`:nth-last-of-type(${wn})`],["nth-of-type",`:nth-of-type(${wn})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Ts=Object.keys(jt),Lt=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),As=Object.keys(Lt),dc=["not","is","where","has"],Cs=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),dr=Object.entries(jt).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),mr=Object.entries(Lt).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),wt=dc.join("|"),Ps=Object.keys(Cs).sort((e,t)=>t.length-e.length).join("|"),mc=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Rs=Object.entries(jt).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Ns=Object.entries(Lt).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function gc(e,t,n,s){const{h:o,variantGetBracket:i}=s,c=new RegExp(`^(${lt(t)}:)(\\\\S+)${lt(n)}\\\\1`);let l,u,f,h;const m=$=>{var R;const D=i(`${e}-`,$,[]);if(!D)return;const[F,I]=D,T=o.bracket(F);if(T==null)return;const S=((R=I.split(l,1))===null||R===void 0?void 0:R[0])??"",L=`${t}${xt(S)}`;return[S,$.slice($.length-(I.length-S.length-1)),T.includes("&")?T.replace(/&/g,L):`${L}${T}`]},k=$=>{const R=$.match(u)||$.match(f);if(!R)return;const[D,F,I]=R,T=R[3]??"";let S=jt[I]||Lt[I]||`:${I}`;return F&&(S=`:${F}(${S})`),[T,$.slice(D.length),`${t}${xt(T)}${S}`,I]},v=$=>{const R=$.match(h);if(!R)return;const[D,F,I]=R,T=R[3]??"",S=`:${F}(${I})`;return[T,$.slice(D.length),`${t}${xt(T)}${S}`]};return{name:`pseudo:${e}`,match($,R){if(l&&u&&f||(l=new RegExp(`(?:${R.generator.config.separators.join("|")})`),u=new RegExp(`^${e}-(?:(?:(${wt})-)?(${dr}))(?:(/[\\\\w-]+))?(?:${R.generator.config.separators.join("|")})`),f=new RegExp(`^${e}-(?:(?:(${wt})-)?(${mr}))(?:(/[\\\\w-]+))?(?:${R.generator.config.separators.filter(L=>L!=="-").join("|")})`),h=new RegExp(`^${e}-(?:(${wt})-)?\\\\[(.+)\\\\](?:(/[\\\\w-]+))?(?:${R.generator.config.separators.filter(L=>L!=="-").join("|")})`)),!$.startsWith(e))return;const D=m($)||k($)||v($);if(!D)return;const[F,I,T,S=""]=D;return{matcher:I,handle:(L,Y)=>Y({...L,prefix:`${T}${n}${L.prefix}`.replace(c,"$1$2:"),sort:Ts.indexOf(S)??As.indexOf(S)})}},multiPass:!0}}function bc(e){const{h:t}=e;let n,s,o;return[{name:"pseudo",match(i,c){n&&s||(n=new RegExp(`^(${Rs})(?:-(\\\\d+|\\\\[(\\\\w|[+-.])+\\\\]))?(?:${c.generator.config.separators.join("|")})`),s=new RegExp(`^(${Ns})(?:${c.generator.config.separators.filter(u=>u!=="-").join("|")})`));const l=i.match(n)||i.match(s);if(l){let u=jt[l[1]]||Lt[l[1]]||`:${l[1]}`;if(l[2]){let h;l[2].startsWith("[")&&l[2].endsWith("]")?h=t.bracket(l[2]):h=l[2],h&&(u=u.replace(wn,h))}let f=Ts.indexOf(l[1]);return f===-1&&(f=As.indexOf(l[1])),f===-1&&(f=void 0),{matcher:i.slice(l[0].length),handle:(h,m)=>{const k=u.includes("::")&&!mc.includes(u)?{pseudo:`${h.pseudo}${u}`}:{selector:`${h.selector}${u}`};return m({...h,...k,sort:f,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Rs}|${Ns}):`},{name:"pseudo:multi",match(i,c){o||(o=new RegExp(`^(${Ps})(?:${c.generator.config.separators.join("|")})`));const l=i.match(o);if(l)return Cs[l[1]].map(u=>({matcher:i.slice(l[0].length),handle:(f,h)=>h({...f,pseudo:`${f.pseudo}${u}`})}))},multiPass:!1,autocomplete:`(${Ps}):`}]}function kc(e){const{getBracket:t,h:n}=e;let s,o,i;return{match(c,l){s&&o||(s=new RegExp(`^(${wt})-(${dr})(?:${l.generator.config.separators.join("|")})`),o=new RegExp(`^(${wt})-(${mr})(?:${l.generator.config.separators.filter(f=>f!=="-").join("|")})`),i=new RegExp(`^(${wt})-(\\\\[.+\\\\])(?:${l.generator.config.separators.filter(f=>f!=="-").join("|")})`));const u=c.match(s)||c.match(o)||c.match(i);if(u){const f=u[1],h=t(u[2],"[","]")?n.bracket(u[2]):jt[u[2]]||Lt[u[2]]||`:${u[2]}`;return{matcher:c.slice(u[0].length),selector:m=>`${m}:${f}(${h})`}}},multiPass:!0,autocomplete:`(${wt})-(${dr}|${mr}):`}}function yc(e,t){const n=!!e?.attributifyPseudo;let s=e?.prefix??"";s=xt((Array.isArray(s)?s:[s]).filter(Boolean)[0]??"");const o=(i,c)=>gc(i,n?`[${s}${i}=""]`:`.${s}${i}`,c,t);return[o("group"," "),o("peer","~"),o("parent",">"),o("previous","+")]}const Gm=/(part-\\[(.+)\\]:)(.+)/;function xc(){return{match(e){const t=e.match(Gm);if(t){const n=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:s=>`${s}::${n}`}}},multiPass:!0}}function vn(e,t,n={}){let s;return{name:e,match(o,i){s||(s=new RegExp(`^${lt(e)}(?:${i.generator.config.separators.join("|")})`));const c=o.match(s);if(c){const l=o.slice(c[0].length),u=pe(t).map(f=>({matcher:l,handle:(h,m)=>m({...h,...f(h)}),...n}));return u.length===1?u[0]:u}},autocomplete:`${e}:`}}function ft(e,t){let n;return{name:e,match(s,o){n||(n=new RegExp(`^${lt(e)}(?:${o.generator.config.separators.join("|")})`));const i=s.match(n);if(i)return{matcher:s.slice(i[0].length),handle:(c,l)=>l({...c,parent:`${c.parent?`${c.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function wc(e,t,n){if(t.startsWith(`${e}[`)){const[s,o]=sc(t.slice(e.length),"[","]")??[];if(s&&o){for(const i of n)if(o.startsWith(i))return[s,o.slice(i.length),i];return[s,o,""]}}}function vc(e,t,n){for(const s of pe(e))if(t.startsWith(s)){const o=wc(s,t,n);if(o){const[i="",c=o[1]]=vc("/",o[1],n)??[];return[o[0],c,i]}for(const i of n.filter(c=>c!=="/")){const c=t.indexOf(i,s.length);if(c!==-1){const l=t.indexOf("/",s.length),u=l===-1||c<=l;return[t.slice(s.length,u?c:l),t.slice(c+i.length),u?"":t.slice(l+1,c)]}}}}var Xm=Object.freeze({__proto__:null,PseudoClassFunctions:dc,PseudoClassFunctionsStr:wt,PseudoClasses:jt,PseudoClassesAndElementsColonStr:Ns,PseudoClassesAndElementsStr:Rs,PseudoClassesColon:Lt,PseudoClassesColonKeys:As,PseudoClassesColonStr:mr,PseudoClassesKeys:Ts,PseudoClassesMulti:Cs,PseudoClassesMultiStr:Ps,PseudoClassesStr:dr,alphaPlaceholders:Es,alphaPlaceholdersRE:cc,calcMaxWidthBySize:Wm,colorOpacityToString:xn,colorToString:Ee,createPartClasses:xc,createPseudoClassFunctions:kc,createPseudoClassesAndElements:bc,createTaggedPseudoClassMatcher:gc,createTaggedPseudoClasses:yc,createValueHandler:hc,cssColorFunctions:hr,excludedPseudo:mc,getBracket:sc,getStringComponent:kn,getStringComponents:yn,hasIconFn:Hm,hasThemeFn:qm,hex2rgba:Lm,hueInterpolationMethods:ac,iconFnRE:Vm,isInterpolatedMethod:jm,parseCssColor:ut,polarColorSpace:ic,rectangularColorSpace:oc,themeFnRE:fc,transformThemeFn:Um,transformThemeString:pc,variantGetBracket:wc,variantGetParameter:vc,variantMatcher:vn,variantParentMatcher:ft});const Ne={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},gr={...Ne,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},br={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},js={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ls=["x","y","z"],_c=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],Ie=Object.assign({},..._c.map(e=>({[e.replace(/ /,"-")]:e})),..._c.map(e=>({[e.replace(/\\b(\\w)\\w+/g,"$1").replace(/ /,"")]:e}))),he=["inherit","initial","revert","revert-layer","unset"],_n=/^(calc|clamp|min|max)\\s*\\((.+)\\)(.*)/,Os=/^(var)\\s*\\((.+)\\)(.*)/,kr=/^(-?\\d*(?:\\.\\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Sc=/^(-?\\d*(?:\\.\\d+)?)$/,$c=/^(px|[sld]?v[wh])$/i,Ic={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Ec=/^\\[(color|image|length|size|position|quoted|string):/i,Ym=/,(?![^()]*\\))/g;var Fs=$s({auto:()=>Zm,bracket:()=>sg,bracketOfColor:()=>og,bracketOfLength:()=>ig,bracketOfPosition:()=>ag,cssvar:()=>cg,degree:()=>ug,fraction:()=>rg,global:()=>fg,number:()=>tg,numberWithUnit:()=>Jm,percent:()=>ng,position:()=>hg,properties:()=>pg,px:()=>eg,rem:()=>Qm,time:()=>lg});const Km=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function qe(e){return+e.toFixed(10)}function Jm(e){const t=e.match(kr);if(!t)return;const[,n,s]=t,o=Number.parseFloat(n);if(s&&!Number.isNaN(o))return`${qe(o)}${s}`}function Zm(e){if(e==="auto"||e==="a")return"auto"}function Qm(e){if(!e)return;if($c.test(e))return`${Ic[e]}${e}`;const t=e.match(kr);if(!t)return;const[,n,s]=t,o=Number.parseFloat(n);if(!Number.isNaN(o))return o===0?"0":s?`${qe(o)}${s}`:`${qe(o/4)}rem`}function eg(e){if($c.test(e))return`${Ic[e]}${e}`;const t=e.match(kr);if(!t)return;const[,n,s]=t,o=Number.parseFloat(n);if(!Number.isNaN(o))return s?`${qe(o)}${s}`:`${qe(o)}px`}function tg(e){if(!Sc.test(e))return;const t=Number.parseFloat(e);if(!Number.isNaN(t))return qe(t)}function ng(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Sc.test(e))return;const t=Number.parseFloat(e);if(!Number.isNaN(t))return`${qe(t/100)}`}function rg(e){if(!e)return;if(e==="full")return"100%";const[t,n]=e.split("/"),s=Number.parseFloat(t)/Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0":`${qe(s*100)}%`}function yr(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let n,s;const o=e.match(Ec);if(o?(t||(s=o[1]),n=e.slice(o[0].length,-1)):n=e.slice(1,-1),!n||n===\'=""\')return;n.startsWith("--")&&(n=`var(${n})`);let i=0;for(const c of n)if(c==="[")i+=1;else if(c==="]"&&(i-=1,i<0))return;if(i)return;switch(s){case"string":return n.replace(/(^|[^\\\\])_/g,"$1 ").replace(/\\\\_/g,"_");case"quoted":return n.replace(/(^|[^\\\\])_/g,"$1 ").replace(/\\\\_/g,"_").replace(/(["\\\\])/g,"\\\\$1").replace(/^(.+)$/,\'"$1"\')}return n.replace(/(url\\(.*?\\))/g,c=>c.replace(/_/g,"\\\\_")).replace(/(^|[^\\\\])_/g,"$1 ").replace(/\\\\_/g,"_").replace(/(?:calc|clamp|max|min)\\((.*)/g,c=>{const l=[];return c.replace(/var\\((--.+?)[,)]/g,(u,f)=>(l.push(f),u.replace(f,"--un-calc"))).replace(/(-?\\d*\\.?\\d(?!-\\d.+[,)](?![^+\\-/*])\\D)(?:%|[a-z]+)?|\\))([+\\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function sg(e){return yr(e)}function og(e){return yr(e,"color")}function ig(e){return yr(e,"length")}function ag(e){return yr(e,"position")}function cg(e){if(/^\\$[^\\s\'"`;{}]/.test(e)){const[t,n]=e.slice(1).split(",");return`var(--${xt(t)}${n?`, ${n}`:""})`}}function lg(e){const t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;const[,n,s]=t,o=Number.parseFloat(n);if(!Number.isNaN(o))return o===0&&!s?"0s":s?`${qe(o)}${s}`:`${qe(o)}ms`}function ug(e){const t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;const[,n,s]=t,o=Number.parseFloat(n);if(!Number.isNaN(o))return o===0?"0deg":s?`${qe(o)}${s}`:`${qe(o)}deg`}function fg(e){if(he.includes(e))return e}function pg(e){if(e.split(",").every(t=>Km.includes(t)))return e}function hg(e){if(["top","left","right","bottom","center"].includes(e))return e}const Ds=hc(Fs),b=Ds,Ms="$$mini-no-negative";function de(e){return([t,n,s],{theme:o})=>{const i=o.spacing?.[s||"DEFAULT"]??b.bracket.cssvar.global.auto.fraction.rem(s);if(i!=null)return Ne[n].map(c=>[`${e}${c}`,i]);if(s?.startsWith("-")){const c=o.spacing?.[s.slice(1)];if(c!=null)return Ne[n].map(l=>[`${e}${l}`,`calc(${c} * -1)`])}}}function Tc(e,t,n="colors"){const s=e[n];function o(i,c){if(c.length===0)return i;if(!(!i||typeof i!="object"))for(let l=c.length;l>0;l--){const u=c.slice(0,l).join("-"),f=i[u.replace(/(-[a-z])/g,h=>h.slice(1).toUpperCase())]??i[u];if(f!=null)return l===c.length?f:o(f,c.slice(l))}}return o(s,t)}function Ac(e,t,n){return Tc(e,t,n)||Tc(e,t,"colors")}function xr(e,t){const[n,s]=kn(e,"[","]",["/",":"])??[];if(n!=null){const o=(n.match(Ec)??[])[1];if(o==null||o===t)return[n,s]}}function Ht(e,t,n){const s=xr(e,"color");if(!s)return;const[o,i]=s,c=o.replace(/([a-z])(\\d)/g,"$1-$2").split(/-/g),[l]=c;if(!l)return;let u;const f=b.bracketOfColor(o),h=f||o;if(b.numberWithUnit(h))return;if(/^#[\\da-f]+$/i.test(h)?u=h:/^hex-[\\da-fA-F]+$/.test(h)?u=`#${h.slice(4)}`:o.startsWith("$")&&(u=b.cssvar(o)),u=u||f,!u){const k=Ac(t,[o],n);typeof k=="string"&&(u=k)}let m="DEFAULT";if(!u){let k=c,v;const[$]=c.slice(-1);/^\\d+$/.test($)&&(m=v=$,k=c.slice(0,-1));const R=Ac(t,k,n);typeof R=="object"?u=R[v??m]:typeof R=="string"&&!v&&(u=R)}return{opacity:i,name:l,no:m,color:u,cssColor:ut(u),alpha:b.bracket.cssvar.percent(i??"")}}function xe(e,t,n,s){return([,o],{theme:i,generator:c})=>{const l=Ht(o??"",i,n);if(!l)return;const{alpha:u,color:f,cssColor:h}=l,m=c.config.envMode==="dev"&&f?` /* ${f} */`:"",k={};if(h)if(u!=null)k[e]=Ee(h,u)+m;else{const v=`--un-${t}-opacity`,$=Ee(h,`var(${v})`);$.includes(v)&&(k[v]=xn(h)),k[e]=$+m}else if(f)if(u!=null)k[e]=Ee(f,u)+m;else{const v=`--un-${t}-opacity`,$=Ee(f,`var(${v})`);$.includes(v)&&(k[v]=1),k[e]=$+m}if(s?.(k)!==!1)return k}}function Sn(e,t){const n=[];e=pe(e);for(let s=0;s<e.length;s++){const o=yn(e[s]," ",6);if(!o||o.length<3)return e;let i=!1;const c=o.indexOf("inset");c!==-1&&(o.splice(c,1),i=!0);let l="";const u=o.at(-1);if(ut(o.at(0))){const f=ut(o.shift());f&&(l=`, ${Ee(f)}`)}else if(ut(u)){const f=ut(o.pop());f&&(l=`, ${Ee(f)}`)}else u&&u.startsWith("var(")&&(l=`, ${o.pop()}`);n.push(`${i?"inset ":""}${o.join(" ")} var(${t}${l})`)}return n}function $n(e,t,n){return e!=null&&!!Ht(e,t,n)?.color}const Cc=/[a-z]+/gi,Bs=new WeakMap;function Ot({theme:e,generator:t},n="breakpoints"){const s=t?.userConfig?.theme?.[n]||e[n];if(!s)return;if(Bs.has(e))return Bs.get(e);const o=Object.entries(s).sort((i,c)=>Number.parseInt(i[1].replace(Cc,""))-Number.parseInt(c[1].replace(Cc,""))).map(([i,c])=>({point:i,size:c}));return Bs.set(e,o),o}function Pc(e){return Ot(e,"verticalBreakpoints")}function J(e,t){return he.map(n=>[`${e}-${n}`,{[t??e]:n}])}function vt(e){return e!=null&&_n.test(e)}function zs(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),_n.test(e)||kr.test(e)}function In(e,t,n){const s=t.split(Ym);return e||!e&&s.length===1?js[e].map(o=>[`--un-${n}${o}`,t]):s.map((o,i)=>[`--un-${n}-${Ls[i]}`,o])}var _t=$s({CONTROL_MINI_NO_NEGATIVE:()=>Ms,colorResolver:()=>xe,colorableShadows:()=>Sn,cornerMap:()=>br,cssMathFnRE:()=>_n,cssVarFnRE:()=>Os,directionMap:()=>Ne,directionSize:()=>de,globalKeywords:()=>he,h:()=>b,handler:()=>Ds,hasParseableColor:()=>$n,insetMap:()=>gr,isCSSMathFn:()=>vt,isSize:()=>zs,makeGlobalStaticRules:()=>J,parseColor:()=>Ht,positionMap:()=>Ie,resolveBreakpoints:()=>Ot,resolveVerticalBreakpoints:()=>Pc,splitShorthand:()=>xr,transformXYZ:()=>In,valueHandlers:()=>Fs,xyzArray:()=>Ls,xyzMap:()=>js});nc(_t,Xm);var se=$s({CONTROL_MINI_NO_NEGATIVE:()=>Ms,colorResolver:()=>xe,colorableShadows:()=>Sn,cornerMap:()=>br,cssMathFnRE:()=>_n,cssVarFnRE:()=>Os,directionMap:()=>Ne,directionSize:()=>de,globalKeywords:()=>he,h:()=>b,handler:()=>Ds,hasParseableColor:()=>$n,insetMap:()=>gr,isCSSMathFn:()=>vt,isSize:()=>zs,makeGlobalStaticRules:()=>J,parseColor:()=>Ht,positionMap:()=>Ie,resolveBreakpoints:()=>Ot,resolveVerticalBreakpoints:()=>Pc,splitShorthand:()=>xr,transformXYZ:()=>In,valueHandlers:()=>Fs,xyzArray:()=>Ls,xyzMap:()=>js});nc(se,_t);const dg=/@media \\(min-width: (.+)\\)/,mg=[[/^__container$/,(e,t)=>{const{theme:n,variantHandlers:s}=t,o=n.container?.padding;let i;ke(o)?i=o:i=o?.DEFAULT;const c=n.container?.maxWidth;let l;for(const f of s){const h=f.handle?.({},m=>m)?.parent;if(ke(h)){const m=h.match(dg)?.[1];if(m){const k=(Ot(t)??[]).find(v=>v.size===m)?.point;c?k&&(l=c?.[k]):l=m,k&&!ke(o)&&(i=o?.[k]??i)}}}const u={"max-width":l};return s.length||(u.width="100%"),n.container?.center&&(u["margin-left"]="auto",u["margin-right"]="auto"),o&&(u["padding-left"]=i,u["padding-right"]=i),u},{internal:!0}]],gg=[[/^(?:(\\w+)[:-])?container$/,([,e],t)=>{let n=(Ot(t)??[]).map(o=>o.point);if(e){if(!n.includes(e))return;n=n.slice(n.indexOf(e))}const s=n.map(o=>`${o}:__container`);return e||s.unshift("__container"),s}]],Rc={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(he.map(e=>[e,e]))},Nc=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Rc[e]??b.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Rc).join("|")})`,"(vertical|align|v)-<percentage>"]}]],jc=["center","left","right","justify","start","end"],Lc=[...jc.map(e=>[`text-${e}`,{"text-align":e}]),...[...he,...jc].map(e=>[`text-align-${e}`,{"text-align":e}])],Oc=[[/^outline-(?:width-|size-)?(.+)$/,Fc,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,bg,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??b.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...he].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Fc([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??b.bracket.cssvar.global.px(e)}}function bg(e,t){return vt(b.bracket(e[1]))?Fc(e,t):xe("outline-color","outline-color","borderColor")(e,t)}const Dc=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function kg(e){return b.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}const Mc=[[/^will-change-(.+)/,([,e])=>({"will-change":kg(e)})]],Gt=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...he],Bc=[[/^(?:border|b)()(?:-(.+))?$/,Ze,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Ze],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Ze],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Ze],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Ze],[/^(?:border|b)-()(?:width|size)-(.+)$/,Ze,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Ze],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Ze],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Ze],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Ze],[/^(?:border|b)-()(?:color-)?(.+)$/,En,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,En],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,En],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,En],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,En],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,Tn,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,Tn],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,Tn],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,Tn],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,Tn],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,An,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,An],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,An],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,An],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,An],[/^(?:border|b)-(?:style-)?()(.+)$/,Cn,{autocomplete:["(border|b)-style",`(border|b)-(${Gt.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Gt.join("|")})`,`(border|b)-<directions>-style-(${Gt.join("|")})`,`(border|b)-style-(${Gt.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Cn],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Cn],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Cn],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Cn]];function zc(e,t,n){if(t!=null)return{[`border${n}-color`]:Ee(e,t)};if(n===""){const s={},o="--un-border-opacity",i=Ee(e,`var(${o})`);return i.includes(o)&&(s[o]=typeof e=="string"?1:xn(e)),s["border-color"]=i,s}else{const s={},o="--un-border-opacity",i=`--un-border${n}-opacity`,c=Ee(e,`var(${i})`);return c.includes(i)&&(s[o]=typeof e=="string"?1:xn(e),s[i]=`var(${o})`),s[`border${n}-color`]=c,s}}function yg(e){return([,t],n)=>{const s=Ht(t,n,"borderColor");if(!s)return;const{alpha:o,color:i,cssColor:c}=s;if(c)return zc(c,o,e);if(i)return zc(i,o,e)}}function Ze([,e="",t],{theme:n}){const s=n.lineWidth?.[t||"DEFAULT"]??b.bracket.cssvar.global.px(t||"1");if(e in Ne&&s!=null)return Ne[e].map(o=>[`border${o}-width`,s])}function En([,e="",t],n){if(e in Ne){if(vt(b.bracket(t)))return Ze(["",e,t],n);if($n(t,n.theme,"borderColor"))return Object.assign({},...Ne[e].map(s=>yg(s)(["",t],n.theme)))}}function Tn([,e="",t]){const n=b.bracket.percent.cssvar(t);if(e in Ne&&n!=null)return Ne[e].map(s=>[`--un-border${s}-opacity`,n])}function An([,e="",t],{theme:n}){const s=n.borderRadius?.[t||"DEFAULT"]||b.bracket.cssvar.global.fraction.rem(t||"1");if(e in br&&s!=null)return br[e].map(o=>[`border${o}-radius`,s])}function Cn([,e="",t]){if(Gt.includes(t)&&e in Ne)return Ne[e].map(n=>[`border${n}-style`,t])}const qc=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:b.bracket.percent.cssvar(e)})]],xg=/^\\[url\\(.+\\)\\]$/,wg=/^\\[(?:length|size):.+\\]$/,vg=/^\\[position:.+\\]$/,_g=/^\\[(?:linear|conic|radial)-gradient\\(.+\\)\\]$/,Sg=/^\\[image:.+\\]$/,Uc=[[/^bg-(.+)$/,(...e)=>{const t=e[0][1];if(xg.test(t))return{"--un-url":b.bracket(t),"background-image":"var(--un-url)"};if(wg.test(t)&&b.bracketOfLength(t)!=null)return{"background-size":b.bracketOfLength(t).split(" ").map(n=>b.fraction.auto.px.cssvar(n)??n).join(" ")};if((zs(t)||vg.test(t))&&b.bracketOfPosition(t)!=null)return{"background-position":b.bracketOfPosition(t).split(" ").map(n=>b.position.fraction.auto.px.cssvar(n)??n).join(" ")};if(_g.test(t)||Sg.test(t)){const n=b.bracket(t);if(n)return{"background-image":(n.startsWith("http")?`url(${n})`:b.cssvar(n))??n}}return xe("background-color","bg","backgroundColor")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Wc=[[/^color-scheme-(\\w+)$/,([,e])=>({"color-scheme":e})]],Vc=[[/^@container(?:\\/(\\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]],Hc=["solid","double","dotted","dashed","wavy",...he],Gc=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,Xc,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,$g,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??b.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Hc.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Hc.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function Xc([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??b.bracket.cssvar.global.px(e)}}function $g(e,t){if(vt(b.bracket(e[1])))return Xc(e,t);const n=xe("text-decoration-color","line","borderColor")(e,t);if(n)return{"-webkit-text-decoration-color":n["text-decoration-color"],...n}}const Yc=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:b.bracket(e)!=null?b.bracket(e).split(" ").map(t=>b.cssvar.fraction(t)??t).join(" "):b.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":b.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":b.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??b.bracket.cssvar.auto.fraction.rem(e)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]],Ig={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function qs([,e="",t],{theme:n}){const s=n.spacing?.[t]??b.bracket.cssvar.global.rem(t);if(s!=null)return{[`${Ig[e]}gap`]:s}}const Kc=[[/^(?:flex-|grid-)?gap-?()(.+)$/,qs,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,qs,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,qs,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function rt(e){return e.replace("col","column")}function Us(e){return e[0]==="r"?"Row":"Column"}function Eg(e,t,n){const s=t[`gridAuto${Us(e)}`]?.[n];if(s!=null)return s;switch(n){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return b.bracket.cssvar.auto.rem(n)}const Jc=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:n})=>({[`grid-${rt(e)}`]:n[`grid${Us(e)}`]?.[t]??b.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${rt(e)}`]:"1/-1"};const n=b.bracket.number(t);if(n!=null)return{[`grid-${rt(e)}`]:`span ${n}/span ${n}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${rt(e)}-start`]:b.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${rt(e)}-end`]:b.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-auto-${rt(e)}`]:Eg(e,n,t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":b.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":rt(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-template-${rt(e)}`]:n[`gridTemplate${Us(e)}`]?.[t]??b.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\\w.-]+)$/,([,e,t])=>({[`grid-template-${rt(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\\d+)$/,([,e,t])=>({[`grid-template-${rt(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":b.cssvar(t)??t.split("-").map(n=>`"${b.bracket(n)}"`).join(" ")}:{"grid-area":b.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]],wr=["auto","hidden","clip","visible","scroll","overlay",...he],Zc=[[/^(?:overflow|of)-(.+)$/,([,e])=>wr.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${wr.join("|")})`,`(overflow|of)-(x|y)-(${wr.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>wr.includes(t)?{[`overflow-${e}`]:t}:void 0]],Qc=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\\w]+)$/,([,e])=>he.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Ws=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...J("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...J("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...J("justify-self")],e1=[[/^order-(.+)$/,([,e])=>({order:b.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Vs=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...J("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...J("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...J("self","align-self")],Hs=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...J("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...J("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...J("place-self")],t1=[...Ws,...Vs,...Hs].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function Gs(e,{theme:t}){return t.spacing?.[e]??b.bracket.cssvar.global.auto.fraction.rem(e)}function Pn([,e,t],n){const s=Gs(t,n);if(s!=null&&e in gr)return gr[e].map(o=>[o.slice(1),s])}const n1=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Gs(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,Pn],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Pn],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Pn],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Pn],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Pn],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],n)=>({[e]:Gs(t,n)})]],r1=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...J("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...J("clear")],s1=[[/^(?:position-|pos-)?z([\\d.]+)$/,([,e])=>({"z-index":b.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??b.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],o1=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...J("box","box-sizing")],i1=[[/^(where|\\?)$/,(e,{constructCSS:t,generator:n})=>{if(n.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]],Tg=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Ag=["none","strict","content","size","inline-size","layout","style","paint"],oe=" ",a1=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:b.bracket.cssvar.global(e)})]],c1=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...J("backface","backface-visibility")],l1=[[/^cursor-(.+)$/,([,e])=>({cursor:b.bracket.cssvar.global(e)})],...Tg.map(e=>[`cursor-${e}`,{cursor:e}])],u1=[[/^contain-(.*)$/,([,e])=>b.bracket(e)!=null?{contain:b.bracket(e).split(" ").map(t=>b.cssvar.fraction(t)??t).join(" ")}:Ag.includes(e)?{contain:e}:void 0]],f1=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...J("pointer-events")],p1=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...J("resize")],h1=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...J("select","user-select")],d1=[[/^(?:whitespace-|ws-)([-\\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...he].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],m1=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":b.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...J("content-visibility")],g1=[[/^content-(.+)$/,([,e])=>({content:b.bracket.cssvar(e)})],["content-empty",{content:\'""\'}],["content-none",{content:"none"}]],b1=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],k1=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],y1=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],x1=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...J("case","text-transform")],w1=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],v1=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],_1=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]],Xs={"--un-ring-inset":oe,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},Cg=Object.keys(Xs),S1=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{const n=t.ringWidth?.[e||"DEFAULT"]??b.px(e||"1");if(n)return{"--un-ring-width":n,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{custom:{preflightKeys:Cg},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,$1,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??b.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,Pg,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,xe("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function $1([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??b.bracket.cssvar.px(e)}}function Pg(e,t){return vt(b.bracket(e[1]))?$1(e,t):xe("--un-ring-color","ring","borderColor")(e,t)}const Ys={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":oe,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},Rg=Object.keys(Ys),I1=[[/^shadow(?:-(.+))?$/,(e,t)=>{const[,n]=e,{theme:s}=t,o=s.boxShadow?.[n||"DEFAULT"],i=n?b.bracket.cssvar(n):void 0;return(o!=null||i!=null)&&!$n(i,s,"shadowColor")?{"--un-shadow":Sn(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:xe("--un-shadow-color","shadow","shadowColor")(e,t)},{custom:{preflightKeys:Rg},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]],Ng={h:"height",w:"width",inline:"inline-size",block:"block-size"};function Ft(e,t){return`${e||""}${Ng[t]}`}function vr(e,t,n,s){const o=n[Ft(e,t).replace(/-(\\w)/g,(i,c)=>c.toUpperCase())]?.[s];if(o!=null)return o;switch(s){case"fit":case"max":case"min":return`${s}-content`}return b.bracket.cssvar.global.auto.fraction.rem(s)}const E1=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:n})=>({[Ft(e,"w")]:vr(e,"w",n,t),[Ft(e,"h")]:vr(e,"h",n,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,n],{theme:s})=>({[Ft(e,t)]:vr(e,t,s,n)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,n],{theme:s})=>({[Ft(e,t)]:vr(e,t,s,n)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,n],s)=>({[Ft(e,t)]:T1(s,n,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,n],s)=>({[Ft(e,t)]:T1(s,n)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function T1(e,t,n="breakpoints"){const s=Ot(e,n);if(s)return s.find(o=>o.point===t)?.size}function jg(e){if(/^\\d+\\/\\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return b.bracket.cssvar.global.auto.number(e)}const A1=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":jg(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]],C1=[[/^pa?()-?(.+)$/,de("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,de("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,de("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,de("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,de("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,de("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],P1=[[/^ma?()-?(.+)$/,de("margin")],[/^m-?xy()()$/,de("margin")],[/^m-?([xy])(?:-?(.+))?$/,de("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,de("margin")],[/^m-(block|inline)(?:-(.+))?$/,de("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,de("margin")]],R1=[[/^fill-(.+)$/,xe("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,N1,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":b.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??b.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,Lg,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function N1([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??b.bracket.cssvar.fraction.px.number(e)}}function Lg(e,t){return vt(b.bracket(e[1]))?N1(e,t):xe("stroke","stroke","borderColor")(e,t)}const _r=["translate","rotate","scale"],Og=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))"].join(" "),Xt=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Fg=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Ks={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},st=Object.keys(Ks),j1=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":Ie[e]??b.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(Ie).join("|")})`,`origin-(${Object.keys(Ie).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{const t=b.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{const t=b.bracket.cssvar(e)??(e.length>=3?Ie[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,L1,{custom:{preflightKeys:st}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,L1,{custom:{preflightKeys:st}}],[/^(?:transform-)?rotate-()(.+)$/,F1,{custom:{preflightKeys:st}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,F1,{custom:{preflightKeys:st}}],[/^(?:transform-)?skew-()(.+)$/,D1,{custom:{preflightKeys:st}}],[/^(?:transform-)?skew-([xy])-(.+)$/,D1,{custom:{preflightKeys:st},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,O1,{custom:{preflightKeys:st}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,O1,{custom:{preflightKeys:st},autocomplete:[`transform-(${_r.join("|")})-<percent>`,`transform-(${_r.join("|")})-(x|y|z)-<percent>`,`(${_r.join("|")})-<percent>`,`(${_r.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Xt},{custom:{preflightKeys:st}}],["transform-cpu",{transform:Og},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:Fg},{custom:{preflightKeys:st}}],["transform-none",{transform:"none"}],...J("transform")];function L1([,e,t],{theme:n}){const s=n.spacing?.[t]??b.bracket.cssvar.fraction.rem(t);if(s!=null)return[...In(e,s,"translate"),["transform",Xt]]}function O1([,e,t]){const n=b.bracket.cssvar.fraction.percent(t);if(n!=null)return[...In(e,n,"scale"),["transform",Xt]]}function F1([,e="",t]){const n=b.bracket.cssvar.degree(t);if(n!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:n,transform:Xt}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":n,transform:Xt}}function D1([,e,t]){const n=b.bracket.cssvar.degree(t);if(n!=null)return[...In(e,n,"skew"),["transform",Xt]]}function M1(e,t){let n;if(b.cssvar(e)!=null)n=b.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));const s=e.split(",").map(o=>t.transitionProperty?.[o]??b.properties(o));s.every(Boolean)&&(n=s.join(","))}return n}const B1=[[/^transition(?:-(\\D+?))?(?:-(\\d+))?$/,([,e,t],{theme:n})=>{if(!e&&!t)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.DEFAULT??b.time("150")};if(e!=null){const s=M1(e,n),o=n.duration?.[t||"DEFAULT"]??b.time(t||"150");if(s)return{"transition-property":s,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":o}}else if(t!=null)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.[t]??b.time(t)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??b.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??b.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??b.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{const n=b.global(e)||M1(e,t);if(n)return{"transition-property":n}},{autocomplete:[`transition-property-(${[...he].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...J("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]],z1=[[/^text-(.+)$/,Mg,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,H1,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Dg,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,xe("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>he.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${he.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||b.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":Js(e,t,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":b.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||b.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||b.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":b.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||b.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],q1=[[/^tab(?:-(.+))?$/,([,e])=>{const t=b.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],U1=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||b.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],W1=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||b.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,xe("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],V1=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{const n=t.textShadow?.[e||"DEFAULT"];return n!=null?{"--un-text-shadow":Sn(n,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":b.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,xe("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":b.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Js(e,t,n){return t[n]?.[e]||b.bracket.cssvar.global.rem(e)}function H1([,e],{theme:t}){const n=pe(t.fontSize?.[e])?.[0]??b.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function Dg(e,t){return vt(b.bracket(e[1]))?H1(e,t):xe("color","text","textColor")(e,t)}function Mg([,e="base"],{theme:t}){const n=xr(e,"length");if(!n)return;const[s,o]=n,i=pe(t.fontSize?.[s]),c=o?Js(o,t,"lineHeight"):void 0;if(i?.[0]){const[u,f,h]=i;return typeof f=="object"?{"font-size":u,...f}:{"font-size":u,"line-height":c??f??"1","letter-spacing":h?Js(h,t,"letterSpacing"):void 0}}const l=b.bracketOfLength.rem(s);return c&&l?{"font-size":l,"line-height":c}:{"font-size":b.bracketOfLength.rem(e)}}const Bg={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},G1=[[/^(.+?)-(\\$.+)$/,([,e,t])=>{const n=Bg[e];if(n)return{[n]:b.cssvar(t)}}]],X1=[[/^\\[(.*)\\]$/,([e,t])=>{if(!t.includes(":"))return;const[n,...s]=t.split(":"),o=s.join(":");if(!qg(t)&&/^[\\w-]+$/.test(n)&&zg(o)){const i=b.bracket(`[${o}]`);if(i)return{[n]:i}}}]];function zg(e){let t=0;function n(s){for(;t<e.length;)if(t+=1,e[t]===s)return!0;return!1}for(t=0;t<e.length;t++){const s=e[t];if("\\"`\'".includes(s)){if(!n(s))return!1}else if(s==="("){if(!n(")"))return!1}else if("[]{}:".includes(s))return!1}return!0}function qg(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}const Ug=[G1,X1,u1,f1,c1,Qc,n1,s1,e1,Jc,r1,P1,o1,a1,A1,E1,Yc,j1,l1,h1,p1,Dc,Hs,Vs,Ws,Kc,t1,Zc,y1,d1,b1,Bc,Uc,Wc,R1,C1,Lc,U1,k1,Nc,z1,x1,w1,Gc,v1,q1,W1,V1,qc,I1,Oc,S1,B1,Mc,m1,g1,Vc,_1,i1].flat(1),Wg=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t})=>{const n=t.animation?.keyframes?.[e];if(n)return[`@keyframes ${e}${n}`,{animation:e}]},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t})=>{const n=t.animation?.keyframes?.[e];if(n){const s=t.animation?.durations?.[e]??"1s",o=t.animation?.timingFns?.[e]??"linear",i=t.animation?.counts?.[e]??1,c=t.animation?.properties?.[e];return[`@keyframes ${e}${n}`,{animation:`${e} ${s} ${o} ${i}`,...c}]}return{animation:b.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>({"animation-name":b.bracket.cssvar(e)??e})],[/^animate-duration-(.+)$/,([,e],{theme:t})=>({"animation-duration":t.duration?.[e||"DEFAULT"]??b.bracket.cssvar.time(e)}),{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>({"animation-delay":t.duration?.[e||"DEFAULT"]??b.bracket.cssvar.time(e)}),{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>({"animation-timing-function":t.easing?.[e||"DEFAULT"]??b.bracket.cssvar(e)}),{autocomplete:["animate-ease","animate-ease-$easing"]}],[/^animate-(fill-mode-|fill-|mode-)?(.+)$/,([,e,t])=>["none","forwards","backwards","both",e?he:[]].includes(t)?{"animation-fill-mode":t}:void 0,{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(direction-)?(.+)$/,([,e,t])=>["normal","reverse","alternate","alternate-reverse",e?he:[]].includes(t)?{"animation-direction":t}:void 0,{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/,([,e])=>({"animation-iteration-count":b.bracket.cssvar(e)??e.replace(/-/g,",")}),{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(play-state-|play-|state-)?(.+)$/,([,e,t])=>["paused","running",e?he:[]].includes(t)?{"animation-play-state":t}:void 0,{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)","animate-(paused|running|inherit|initial|revert|revert-layer|unset)"]}],["animate-none",{animation:"none"}],...J("animate","animation")];function Y1(e){return e?Ee(e,0):"rgb(255 255 255 / 0)"}function Vg(e,t,n,s){return t?s!=null?Ee(t,s):Ee(t,`var(--un-${e}-opacity, ${xn(t)})`):Ee(n,s)}function Zs(){return([,e,t],{theme:n})=>{const s=Ht(t,n,"backgroundColor");if(!s)return;const{alpha:o,color:i,cssColor:c}=s;if(!i)return;const l=Vg(e,c,i,o);switch(e){case"from":return{"--un-gradient-from-position":"0%","--un-gradient-from":`${l} var(--un-gradient-from-position)`,"--un-gradient-to-position":"100%","--un-gradient-to":`${Y1(c)} var(--un-gradient-to-position)`,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to)"};case"via":return{"--un-gradient-via-position":"50%","--un-gradient-to":Y1(c),"--un-gradient-stops":`var(--un-gradient-from), ${l} var(--un-gradient-via-position), var(--un-gradient-to)`};case"to":return{"--un-gradient-to-position":"100%","--un-gradient-to":`${l} var(--un-gradient-to-position)`}}}}function Hg(){return([,e,t])=>({[`--un-gradient-${e}-position`]:`${Number(b.bracket.cssvar.percent(t))*100}%`})}const Gg=[[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":b.bracket(e)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\\[.+\\])$/,([,e])=>({"--un-gradient-stops":b.bracket(e)})],[/^(?:bg-gradient-)?(from)-(.+)$/,Zs()],[/^(?:bg-gradient-)?(via)-(.+)$/,Zs()],[/^(?:bg-gradient-)?(to)-(.+)$/,Zs()],[/^(?:bg-gradient-)?(from|via|to)-op(?:acity)?-?(.+)$/,([,e,t])=>({[`--un-${e}-opacity`]:b.bracket.percent(t)})],[/^(from|via|to)-([\\d.]+)%$/,Hg()],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in Ie)return{"--un-gradient-shape":`to ${Ie[e]} in oklch`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(Ie).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{const t=e in Ie?`to ${Ie[e]}`:b.bracket(e);if(t!=null)return{"--un-gradient-shape":`${t} in oklch`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(Ie).join("|")})`,`shape-(${Object.keys(Ie).join("|")})`]}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],...J("box-decoration","box-decoration-break"),["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-clip":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-clip":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-clip":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-clip":"text"}],...he.map(e=>[`bg-clip-${e}`,{"-webkit-background-clip":e,"background-clip":e}]),[/^bg-([-\\w]{3,})$/,([,e])=>({"background-position":Ie[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],...J("bg-repeat","background-repeat"),["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}],...J("bg-origin","background-origin")],Qs={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Xg=[[/^list-(.+?)(?:-(outside|inside))?$/,([,e,t])=>{const n=Qs[e];if(n)return t?{"list-style-position":t,"list-style-type":n}:{"list-style-type":n}},{autocomplete:[`list-(${Object.keys(Qs).join("|")})`,`list-(${Object.keys(Qs).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}],[/^list-image-(.+)$/,([,e])=>{if(/^\\[url\\(.+\\)\\]$/.test(e))return{"list-style-image":b.bracket(e)}}],["list-image-none",{"list-style-image":"none"}],...J("list","list-style-type")],Yg=[[/^accent-(.+)$/,xe("accent-color","accent","accentColor"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":b.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],Kg=[[/^caret-(.+)$/,xe("caret-color","caret","textColor"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":b.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],Jg=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Zg=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],...J("overscroll","overscroll-behavior"),["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],...J("overscroll-x","overscroll-behavior-x"),["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}],...J("overscroll-y","overscroll-behavior-y")],Qg=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}],...J("scroll","scroll-behavior")],e0=[[/^columns-(.+)$/,([,e],{theme:t})=>t.containers&&e in t.containers?{columns:t.containers[e]}:{columns:b.bracket.numberWithUnit.number.cssvar(e)},{autocomplete:["columns-<num>","columns-$containers"]}],["columns-auto",{columns:"auto"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],...J("break-before"),["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],...J("break-inside"),["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}],...J("break-after")],t0=[[/^divide-?([xy])$/,Sr,{autocomplete:["divide-(x|y|block|inline)","divide-(x|y|block|inline)-reverse","divide-(x|y|block|inline)-$lineWidth"]}],[/^divide-?([xy])-?(.+)$/,Sr],[/^divide-?([xy])-reverse$/,([,e])=>({[`--un-divide-${e}-reverse`]:1})],[/^divide-(block|inline)$/,Sr],[/^divide-(block|inline)-(.+)$/,Sr],[/^divide-(block|inline)-reverse$/,([,e])=>({[`--un-divide-${e}-reverse`]:1})],[/^divide-(.+)$/,xe("border-color","divide","borderColor"),{autocomplete:"divide-$colors"}],[/^divide-op(?:acity)?-?(.+)$/,([,e])=>({"--un-divide-opacity":b.bracket.percent(e)}),{autocomplete:["divide-(op|opacity)","divide-(op|opacity)-<percent>"]}],...Gt.map(e=>[`divide-${e}`,{"border-style":e}])];function Sr([,e,t],{theme:n}){let s=n.lineWidth?.[t||"DEFAULT"]??b.bracket.cssvar.px(t||"1");if(s!=null){s==="0"&&(s="0px");const o=Ne[e].map(i=>[`border${i}-width`,i.endsWith("right")||i.endsWith("bottom")?`calc(${s} * var(--un-divide-${e}-reverse))`:`calc(${s} * calc(1 - var(--un-divide-${e}-reverse)))`]);if(o)return[[`--un-divide-${e}-reverse`,0],...o]}}const K1={"--un-blur":oe,"--un-brightness":oe,"--un-contrast":oe,"--un-drop-shadow":oe,"--un-grayscale":oe,"--un-hue-rotate":oe,"--un-invert":oe,"--un-saturate":oe,"--un-sepia":oe},J1=Object.keys(K1),Z1={preflightKeys:J1},$r="var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)",Q1={"--un-backdrop-blur":oe,"--un-backdrop-brightness":oe,"--un-backdrop-contrast":oe,"--un-backdrop-grayscale":oe,"--un-backdrop-hue-rotate":oe,"--un-backdrop-invert":oe,"--un-backdrop-opacity":oe,"--un-backdrop-saturate":oe,"--un-backdrop-sepia":oe},el=Object.keys(Q1),n0={preflightKeys:el},Ir="var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)",pt={preflightKeys:[...J1,...el]};function eo(e){let t=b.bracket.cssvar(e||"");if(t!=null||(t=e?b.percent(e):"1",t!=null&&Number.parseFloat(t)<=1))return t}function ht(e,t){return([,n,s],{theme:o})=>{const i=t(s,o)??(s==="none"?"0":"");if(i!=="")return n?{[`--un-${n}${e}`]:`${e}(${i})`,"-webkit-backdrop-filter":Ir,"backdrop-filter":Ir}:{[`--un-${e}`]:`${e}(${i})`,filter:$r}}}function r0([,e],{theme:t}){let n=t.dropShadow?.[e||"DEFAULT"];if(n!=null)return{"--un-drop-shadow":`drop-shadow(${Sn(n,"--un-drop-shadow-color").join(") drop-shadow(")})`,filter:$r};if(n=b.bracket.cssvar(e),n!=null)return{"--un-drop-shadow":`drop-shadow(${n})`,filter:$r}}const s0=[[/^(?:(backdrop-)|filter-)?blur(?:-(.+))?$/,ht("blur",(e,t)=>t.blur?.[e||"DEFAULT"]||b.bracket.cssvar.px(e)),{custom:pt,autocomplete:["(backdrop|filter)-blur-$blur","blur-$blur","filter-blur"]}],[/^(?:(backdrop-)|filter-)?brightness-(.+)$/,ht("brightness",e=>b.bracket.cssvar.percent(e)),{custom:pt,autocomplete:["(backdrop|filter)-brightness-<percent>","brightness-<percent>"]}],[/^(?:(backdrop-)|filter-)?contrast-(.+)$/,ht("contrast",e=>b.bracket.cssvar.percent(e)),{custom:pt,autocomplete:["(backdrop|filter)-contrast-<percent>","contrast-<percent>"]}],[/^(?:filter-)?drop-shadow(?:-(.+))?$/,r0,{custom:Z1,autocomplete:["filter-drop","filter-drop-shadow","filter-drop-shadow-color","drop-shadow","drop-shadow-color","filter-drop-shadow-$dropShadow","drop-shadow-$dropShadow","filter-drop-shadow-color-$colors","drop-shadow-color-$colors","filter-drop-shadow-color-(op|opacity)","drop-shadow-color-(op|opacity)","filter-drop-shadow-color-(op|opacity)-<percent>","drop-shadow-color-(op|opacity)-<percent>"]}],[/^(?:filter-)?drop-shadow-color-(.+)$/,xe("--un-drop-shadow-color","drop-shadow","shadowColor")],[/^(?:filter-)?drop-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-drop-shadow-opacity":b.bracket.percent(e)})],[/^(?:(backdrop-)|filter-)?grayscale(?:-(.+))?$/,ht("grayscale",eo),{custom:pt,autocomplete:["(backdrop|filter)-grayscale","(backdrop|filter)-grayscale-<percent>","grayscale-<percent>"]}],[/^(?:(backdrop-)|filter-)?hue-rotate-(.+)$/,ht("hue-rotate",e=>b.bracket.cssvar.degree(e)),{custom:pt}],[/^(?:(backdrop-)|filter-)?invert(?:-(.+))?$/,ht("invert",eo),{custom:pt,autocomplete:["(backdrop|filter)-invert","(backdrop|filter)-invert-<percent>","invert-<percent>"]}],[/^(backdrop-)op(?:acity)?-(.+)$/,ht("opacity",e=>b.bracket.cssvar.percent(e)),{custom:pt,autocomplete:["backdrop-(op|opacity)","backdrop-(op|opacity)-<percent>"]}],[/^(?:(backdrop-)|filter-)?saturate-(.+)$/,ht("saturate",e=>b.bracket.cssvar.percent(e)),{custom:pt,autocomplete:["(backdrop|filter)-saturate","(backdrop|filter)-saturate-<percent>","saturate-<percent>"]}],[/^(?:(backdrop-)|filter-)?sepia(?:-(.+))?$/,ht("sepia",eo),{custom:pt,autocomplete:["(backdrop|filter)-sepia","(backdrop|filter)-sepia-<percent>","sepia-<percent>"]}],["filter",{filter:$r},{custom:Z1}],["backdrop-filter",{"-webkit-backdrop-filter":Ir,"backdrop-filter":Ir},{custom:n0}],["filter-none",{filter:"none"}],["backdrop-filter-none",{"-webkit-backdrop-filter":"none","backdrop-filter":"none"}],...he.map(e=>[`filter-${e}`,{filter:e}]),...he.map(e=>[`backdrop-filter-${e}`,{"-webkit-backdrop-filter":e,"backdrop-filter":e}])],o0=[[/^line-clamp-(\\d+)$/,([,e])=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,"line-clamp":e}),{autocomplete:["line-clamp","line-clamp-<num>"]}],...["none",...he].map(e=>[`line-clamp-${e}`,{overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":e,"line-clamp":e}])],i0=[[/^\\$ placeholder-(.+)$/,xe("color","placeholder","accentColor"),{autocomplete:"placeholder-$colors"}],[/^\\$ placeholder-op(?:acity)?-?(.+)$/,([,e])=>({"--un-placeholder-opacity":b.bracket.percent(e)}),{autocomplete:["placeholder-(op|opacity)","placeholder-(op|opacity)-<percent>"]}]],tl={"--un-scroll-snap-strictness":"proximity"},nl={preflightKeys:Object.keys(tl)},a0=[[/^snap-(x|y)$/,([,e])=>({"scroll-snap-type":`${e} var(--un-scroll-snap-strictness)`}),{custom:nl,autocomplete:"snap-(x|y|both)"}],[/^snap-both$/,()=>({"scroll-snap-type":"both var(--un-scroll-snap-strictness)"}),{custom:nl}],["snap-mandatory",{"--un-scroll-snap-strictness":"mandatory"}],["snap-proximity",{"--un-scroll-snap-strictness":"proximity"}],["snap-none",{"scroll-snap-type":"none"}],["snap-start",{"scroll-snap-align":"start"}],["snap-end",{"scroll-snap-align":"end"}],["snap-center",{"scroll-snap-align":"center"}],["snap-align-none",{"scroll-snap-align":"none"}],["snap-normal",{"scroll-snap-stop":"normal"}],["snap-always",{"scroll-snap-stop":"always"}],[/^scroll-ma?()-?(.+)$/,de("scroll-margin"),{autocomplete:["scroll-(m|p|ma|pa|block|inline)","scroll-(m|p|ma|pa|block|inline)-$spacing","scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)","scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)-$spacing"]}],[/^scroll-m-?([xy])-?(.+)$/,de("scroll-margin")],[/^scroll-m-?([rltb])-?(.+)$/,de("scroll-margin")],[/^scroll-m-(block|inline)-(.+)$/,de("scroll-margin")],[/^scroll-m-?([bi][se])-?(.+)$/,de("scroll-margin")],[/^scroll-pa?()-?(.+)$/,de("scroll-padding")],[/^scroll-p-?([xy])-?(.+)$/,de("scroll-padding")],[/^scroll-p-?([rltb])-?(.+)$/,de("scroll-padding")],[/^scroll-p-(block|inline)-(.+)$/,de("scroll-padding")],[/^scroll-p-?([bi][se])-?(.+)$/,de("scroll-padding")]],c0=[[/^space-([xy])-(.+)$/,rl,{autocomplete:["space-(x|y|block|inline)","space-(x|y|block|inline)-reverse","space-(x|y|block|inline)-$spacing"]}],[/^space-([xy])-reverse$/,([,e])=>({[`--un-space-${e}-reverse`]:1})],[/^space-(block|inline)-(.+)$/,rl],[/^space-(block|inline)-reverse$/,([,e])=>({[`--un-space-${e}-reverse`]:1})]];function rl([,e,t],{theme:n}){let s=n.spacing?.[t||"DEFAULT"]??b.bracket.cssvar.auto.fraction.rem(t||"1");if(s!=null){s==="0"&&(s="0px");const o=Ne[e].map(i=>[`margin${i}`,i.endsWith("right")||i.endsWith("bottom")?`calc(${s} * var(--un-space-${e}-reverse))`:`calc(${s} * calc(1 - var(--un-space-${e}-reverse)))`]);if(o)return[[`--un-space-${e}-reverse`,0],...o]}}const l0=[["uppercase",{"text-transform":"uppercase"}],["lowercase",{"text-transform":"lowercase"}],["capitalize",{"text-transform":"capitalize"}],["normal-case",{"text-transform":"none"}]],u0=[...["manual","auto","none",...he].map(e=>[`hyphens-${e}`,{"-webkit-hyphens":e,"-ms-hyphens":e,hyphens:e}])],f0=[["write-vertical-right",{"writing-mode":"vertical-rl"}],["write-vertical-left",{"writing-mode":"vertical-lr"}],["write-normal",{"writing-mode":"horizontal-tb"}],...J("write","writing-mode")],p0=[["write-orient-mixed",{"text-orientation":"mixed"}],["write-orient-sideways",{"text-orientation":"sideways"}],["write-orient-upright",{"text-orientation":"upright"}],...J("write-orient","text-orientation")],h0=[["sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":0}],["not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"}]],d0=[["isolate",{isolation:"isolate"}],["isolate-auto",{isolation:"auto"}],["isolation-auto",{isolation:"auto"}]],m0=[["object-cover",{"object-fit":"cover"}],["object-contain",{"object-fit":"contain"}],["object-fill",{"object-fit":"fill"}],["object-scale-down",{"object-fit":"scale-down"}],["object-none",{"object-fit":"none"}],[/^object-(.+)$/,([,e])=>{if(Ie[e])return{"object-position":Ie[e]};if(b.bracketOfPosition(e)!=null)return{"object-position":b.bracketOfPosition(e).split(" ").map(t=>b.position.fraction.auto.px.cssvar(t)??t).join(" ")}},{autocomplete:`object-(${Object.keys(Ie).join("|")})`}]],g0=[["bg-blend-multiply",{"background-blend-mode":"multiply"}],["bg-blend-screen",{"background-blend-mode":"screen"}],["bg-blend-overlay",{"background-blend-mode":"overlay"}],["bg-blend-darken",{"background-blend-mode":"darken"}],["bg-blend-lighten",{"background-blend-mode":"lighten"}],["bg-blend-color-dodge",{"background-blend-mode":"color-dodge"}],["bg-blend-color-burn",{"background-blend-mode":"color-burn"}],["bg-blend-hard-light",{"background-blend-mode":"hard-light"}],["bg-blend-soft-light",{"background-blend-mode":"soft-light"}],["bg-blend-difference",{"background-blend-mode":"difference"}],["bg-blend-exclusion",{"background-blend-mode":"exclusion"}],["bg-blend-hue",{"background-blend-mode":"hue"}],["bg-blend-saturation",{"background-blend-mode":"saturation"}],["bg-blend-color",{"background-blend-mode":"color"}],["bg-blend-luminosity",{"background-blend-mode":"luminosity"}],["bg-blend-normal",{"background-blend-mode":"normal"}],...J("bg-blend","background-blend")],b0=[["mix-blend-multiply",{"mix-blend-mode":"multiply"}],["mix-blend-screen",{"mix-blend-mode":"screen"}],["mix-blend-overlay",{"mix-blend-mode":"overlay"}],["mix-blend-darken",{"mix-blend-mode":"darken"}],["mix-blend-lighten",{"mix-blend-mode":"lighten"}],["mix-blend-color-dodge",{"mix-blend-mode":"color-dodge"}],["mix-blend-color-burn",{"mix-blend-mode":"color-burn"}],["mix-blend-hard-light",{"mix-blend-mode":"hard-light"}],["mix-blend-soft-light",{"mix-blend-mode":"soft-light"}],["mix-blend-difference",{"mix-blend-mode":"difference"}],["mix-blend-exclusion",{"mix-blend-mode":"exclusion"}],["mix-blend-hue",{"mix-blend-mode":"hue"}],["mix-blend-saturation",{"mix-blend-mode":"saturation"}],["mix-blend-color",{"mix-blend-mode":"color"}],["mix-blend-luminosity",{"mix-blend-mode":"luminosity"}],["mix-blend-plus-lighter",{"mix-blend-mode":"plus-lighter"}],["mix-blend-normal",{"mix-blend-mode":"normal"}],...J("mix-blend")],k0=[["min-h-dvh",{"min-height":"100dvh"}],["min-h-svh",{"min-height":"100svh"}],["min-h-lvh",{"min-height":"100lvh"}],["h-dvh",{height:"100dvh"}],["h-svh",{height:"100svh"}],["h-lvh",{height:"100lvh"}],["max-h-dvh",{"max-height":"100dvh"}],["max-h-svh",{"max-height":"100svh"}],["max-h-lvh",{"max-height":"100lvh"}]],sl={"--un-border-spacing-x":0,"--un-border-spacing-y":0},ol={preflightKeys:Object.keys(sl)},il="var(--un-border-spacing-x) var(--un-border-spacing-y)",y0=[["inline-table",{display:"inline-table"}],["table",{display:"table"}],["table-caption",{display:"table-caption"}],["table-cell",{display:"table-cell"}],["table-column",{display:"table-column"}],["table-column-group",{display:"table-column-group"}],["table-footer-group",{display:"table-footer-group"}],["table-header-group",{display:"table-header-group"}],["table-row",{display:"table-row"}],["table-row-group",{display:"table-row-group"}],["border-collapse",{"border-collapse":"collapse"}],["border-separate",{"border-collapse":"separate"}],[/^border-spacing-(.+)$/,([,e],{theme:t})=>{const n=t.spacing?.[e]??b.bracket.cssvar.global.auto.fraction.rem(e);if(n!=null)return{"--un-border-spacing-x":n,"--un-border-spacing-y":n,"border-spacing":il}},{custom:ol,autocomplete:["border-spacing","border-spacing-$spacing"]}],[/^border-spacing-([xy])-(.+)$/,([,e,t],{theme:n})=>{const s=n.spacing?.[t]??b.bracket.cssvar.global.auto.fraction.rem(t);if(s!=null)return{[`--un-border-spacing-${e}`]:s,"border-spacing":il}},{custom:ol,autocomplete:["border-spacing-(x|y)","border-spacing-(x|y)-$spacing"]}],["caption-top",{"caption-side":"top"}],["caption-bottom",{"caption-side":"bottom"}],["table-auto",{"table-layout":"auto"}],["table-fixed",{"table-layout":"fixed"}],["table-empty-cells-visible",{"empty-cells":"show"}],["table-empty-cells-hidden",{"empty-cells":"hide"}]],al={"--un-pan-x":oe,"--un-pan-y":oe,"--un-pinch-zoom":oe},to={preflightKeys:Object.keys(al)},no="var(--un-pan-x) var(--un-pan-y) var(--un-pinch-zoom)",x0=[[/^touch-pan-(x|left|right)$/,([,e])=>({"--un-pan-x":`pan-${e}`,"touch-action":no}),{custom:to,autocomplete:["touch-pan","touch-pan-(x|left|right|y|up|down)"]}],[/^touch-pan-(y|up|down)$/,([,e])=>({"--un-pan-y":`pan-${e}`,"touch-action":no}),{custom:to}],["touch-pinch-zoom",{"--un-pinch-zoom":"pinch-zoom","touch-action":no},{custom:to}],["touch-auto",{"touch-action":"auto"}],["touch-manipulation",{"touch-action":"manipulation"}],["touch-none",{"touch-action":"none"}],...J("touch","touch-action")],cl={"--un-ordinal":oe,"--un-slashed-zero":oe,"--un-numeric-figure":oe,"--un-numeric-spacing":oe,"--un-numeric-fraction":oe},St={preflightKeys:Object.keys(cl)};function $t(e){return{...e,"font-variant-numeric":"var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)"}}const w0=[[/^ordinal$/,()=>$t({"--un-ordinal":"ordinal"}),{custom:St,autocomplete:"ordinal"}],[/^slashed-zero$/,()=>$t({"--un-slashed-zero":"slashed-zero"}),{custom:St,autocomplete:"slashed-zero"}],[/^lining-nums$/,()=>$t({"--un-numeric-figure":"lining-nums"}),{custom:St,autocomplete:"lining-nums"}],[/^oldstyle-nums$/,()=>$t({"--un-numeric-figure":"oldstyle-nums"}),{custom:St,autocomplete:"oldstyle-nums"}],[/^proportional-nums$/,()=>$t({"--un-numeric-spacing":"proportional-nums"}),{custom:St,autocomplete:"proportional-nums"}],[/^tabular-nums$/,()=>$t({"--un-numeric-spacing":"tabular-nums"}),{custom:St,autocomplete:"tabular-nums"}],[/^diagonal-fractions$/,()=>$t({"--un-numeric-fraction":"diagonal-fractions"}),{custom:St,autocomplete:"diagonal-fractions"}],[/^stacked-fractions$/,()=>$t({"--un-numeric-fraction":"stacked-fractions"}),{custom:St,autocomplete:"stacked-fractions"}],["normal-nums",{"font-variant-numeric":"normal"}]],v0={"bg-blend":"background-blend-mode","bg-clip":"-webkit-background-clip","bg-gradient":"linear-gradient","bg-image":"background-image","bg-origin":"background-origin","bg-position":"background-position","bg-repeat":"background-repeat","bg-size":"background-size","mix-blend":"mix-blend-mode",object:"object-fit","object-position":"object-position",write:"writing-mode","write-orient":"text-orientation"},_0=[G1,[[/^(.+?)-(\\$.+)$/,([,e,t])=>{const n=v0[e];if(n)return{[n]:b.cssvar(t)}}]],X1,mg,u1,h0,f1,c1,Qc,n1,o0,d0,s1,e1,Jc,r1,P1,o1,a1,A1,E1,Yc,y0,j1,Wg,l1,x0,h1,p1,a0,Xg,Dc,e0,Hs,Vs,Ws,Kc,t1,c0,t0,Zc,Zg,Qg,y1,d1,b1,Bc,Uc,Gg,Wc,R1,m0,C1,Lc,U1,k1,Nc,z1,x1,l0,w1,w0,Gc,v1,q1,W1,V1,u0,f0,p0,Kg,Yg,qc,g0,b0,I1,Oc,S1,Jg,s0,B1,Mc,m1,g1,i0,Vc,[[/^view-transition-([\\w-]+)$/,([,e])=>({"view-transition-name":e})]],k0,_1,i1].flat(1),S0=[...gg],ll={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(ll).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{const n=+t/100;n===Math.round(n)&&(e[n]=e[t])}))});const $0={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},I0={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"},E0={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",\'"Segoe UI"\',"Roboto",\'"Helvetica Neue"\',"Arial",\'"Noto Sans"\',"sans-serif",\'"Apple Color Emoji"\',\'"Segoe UI Emoji"\',\'"Segoe UI Symbol"\',\'"Noto Color Emoji"\'].join(","),serif:["ui-serif","Georgia","Cambria",\'"Times New Roman"\',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",\'"Liberation Mono"\',\'"Courier New"\',"monospace"].join(",")},T0={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},A0={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},C0={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},P0={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},R0={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},ul={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},N0={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},j0=ul,fl={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},L0={...fl},O0={DEFAULT:"1px",none:"0"},F0={DEFAULT:"1rem",none:"0",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},D0={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},M0={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},B0={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},z0={DEFAULT:"3px",none:"0"},q0={auto:"auto"},U0={mouse:"(hover) and (pointer: fine)"},W0={...Ks,...Ys,...Xs},dt={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},V0={auto:"auto",...dt,screen:"100vw"},pl={none:"none",...dt,screen:"100vw"},H0={auto:"auto",...dt,screen:"100vb"},G0={auto:"auto",...dt,screen:"100vi"},X0={auto:"auto",...dt,screen:"100vh"},hl={none:"none",...dt,screen:"100vh"},dl={none:"none",...dt,screen:"100vb"},ml={none:"none",...dt,screen:"100vi"},Y0={...dt},K0={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},J0={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}},gl={width:V0,height:X0,maxWidth:pl,maxHeight:hl,minWidth:pl,minHeight:hl,inlineSize:G0,blockSize:H0,maxInlineSize:ml,maxBlockSize:dl,minInlineSize:ml,minBlockSize:dl,colors:ll,fontFamily:E0,fontSize:T0,fontWeight:N0,breakpoints:fl,verticalBreakpoints:L0,borderRadius:M0,lineHeight:R0,letterSpacing:ul,wordSpacing:j0,boxShadow:B0,textIndent:A0,textShadow:P0,textStrokeWidth:C0,blur:$0,dropShadow:I0,easing:K0,transitionProperty:J0,lineWidth:O0,spacing:F0,duration:D0,ringWidth:z0,preflightBase:W0,containers:Y0,zIndex:q0,media:U0},Z0={...gl,aria:{busy:\'busy="true"\',checked:\'checked="true"\',disabled:\'disabled="true"\',expanded:\'expanded="true"\',hidden:\'hidden="true"\',pressed:\'pressed="true"\',readonly:\'readonly="true"\',required:\'required="true"\',selected:\'selected="true"\'},animation:{keyframes:{pulse:"{0%, 100% {opacity:1} 50% {opacity:.5}}",bounce:"{0%, 100% {transform:translateY(-25%);animation-timing-function:cubic-bezier(0.8,0,1,1)} 50% {transform:translateY(0);animation-timing-function:cubic-bezier(0,0,0.2,1)}}",spin:"{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}",ping:"{0%{transform:scale(1);opacity:1}75%,100%{transform:scale(2);opacity:0}}","bounce-alt":"{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}",flash:"{from,50%,to{opacity:1}25%,75%{opacity:0}}","pulse-alt":"{from{transform:scale3d(1,1,1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scale3d(1,1,1)}}","rubber-band":"{from{transform:scale3d(1,1,1)}30%{transform:scale3d(1.25,0.75,1)}40%{transform:scale3d(0.75,1.25,1)}50%{transform:scale3d(1.15,0.85,1)}65%{transform:scale3d(0.95,1.05,1)}75%{transform:scale3d(1.05,0.95,1)}to{transform:scale3d(1,1,1)}}","shake-x":"{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}","shake-y":"{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}","head-shake":"{0%{transform:translateX(0)}6.5%{transform:translateX(-6px) rotateY(-9deg)}18.5%{transform:translateX(5px) rotateY(7deg)}31.5%{transform:translateX(-3px) rotateY(-5deg)}43.5%{transform:translateX(2px) rotateY(3deg)}50%{transform:translateX(0)}}",swing:"{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0deg)}}",tada:"{from{transform:scale3d(1,1,1)}10%,20%{transform:scale3d(0.9,0.9,0.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scale3d(1,1,1)}}",wobble:"{from{transform:translate3d(0,0,0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translate3d(0,0,0)}}",jello:"{from,11.1%,to{transform:translate3d(0,0,0)}22.2%{transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{transform:skewX(6.25deg) skewY(6.25deg)}44.4%{transform:skewX(-3.125deg)skewY(-3.125deg)}55.5%{transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{transform:skewX(-0.78125deg) skewY(-0.78125deg)}77.7%{transform:skewX(0.390625deg) skewY(0.390625deg)}88.8%{transform:skewX(-0.1953125deg) skewY(-0.1953125deg)}}","heart-beat":"{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}",hinge:"{0%{transform-origin:top left;animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);transform-origin:top left;animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);transform-origin:top left;animation-timing-function:ease-in-out}to{transform:translate3d(0,700px,0);opacity:0}}","jack-in-the-box":"{from{opacity:0;transform-origin:center bottom;transform:scale(0.1) rotate(30deg)}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{transform:scale(1)}}","light-speed-in-left":"{from{opacity:0;transform:translate3d(-100%,0,0) skewX(-30deg)}60%{opacity:1;transform:skewX(20deg)}80%{transform:skewX(-5deg)}to{transform:translate3d(0,0,0)}}","light-speed-in-right":"{from{opacity:0;transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;transform:skewX(20deg)}80%{transform:skewX(-5deg)}to{transform:translate3d(0,0,0)}}","light-speed-out-left":"{from{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0) skewX(30deg)}}","light-speed-out-right":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) skewX(30deg)}}",flip:"{from{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(0.95,0.95,0.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}to{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}}","flip-in-x":"{from{transform:perspective(400px) rotate3d(1,0,0,90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotate3d(1,0,0,-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{transform:perspective(400px)}}","flip-in-y":"{from{transform:perspective(400px) rotate3d(0,1,0,90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotate3d(0,1,0,-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{transform:perspective(400px)}}","flip-out-x":"{from{transform:perspective(400px)}30%{transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}","flip-out-y":"{from{transform:perspective(400px)}30%{transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}","rotate-in":"{from{transform-origin:center;transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform-origin:center;transform:translate3d(0,0,0);opacity:1}}","rotate-in-down-left":"{from{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform-origin:left bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-in-down-right":"{from{transform-origin:right bottom;transform:rotate3d(0,0,1,45deg);opacity:0}to{transform-origin:right bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-in-up-left":"{from{transform-origin:left top;transform:rotate3d(0,0,1,45deg);opacity:0}to{transform-origin:left top;transform:translate3d(0,0,0);opacity:1}}","rotate-in-up-right":"{from{transform-origin:right bottom;transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform-origin:right bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-out":"{from{transform-origin:center;opacity:1}to{transform-origin:center;transform:rotate3d(0,0,1,200deg);opacity:0}}","rotate-out-down-left":"{from{transform-origin:left bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,45deg);opacity:0}}","rotate-out-down-right":"{from{transform-origin:right bottom;opacity:1}to{transform-origin:right bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}}","rotate-out-up-left":"{from{transform-origin:left bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}}","rotate-out-up-right":"{from{transform-origin:right bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,90deg);opacity:0}}","roll-in":"{from{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translate3d(0,0,0)}}","roll-out":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}","zoom-in":"{from{opacity:0;transform:scale3d(0.3,0.3,0.3)}50%{opacity:1}}","zoom-in-down":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-left":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-right":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-up":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-out":"{from{opacity:1}50%{opacity:0;transform:scale3d(0.3,0.3,0.3)}to{opacity:0}}","zoom-out-down":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,2000px,0);transform-origin:center bottom;animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-out-left":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(0.1) translate3d(-2000px,0,0);transform-origin:left center}}","zoom-out-right":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(0.1) translate3d(2000px,0,0);transform-origin:right center}}","zoom-out-up":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-2000px,0);transform-origin:center bottom;animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","bounce-in":"{from,20%,40%,60%,80%,to{animation-timing-function:ease-in-out}0%{opacity:0;transform:scale3d(0.3,0.3,0.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(0.9,0.9,0.9)}60%{transform:scale3d(1.03,1.03,1.03);opacity:1}80%{transform:scale3d(0.97,0.97,0.97)}to{opacity:1;transform:scale3d(1,1,1)}}","bounce-in-down":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:translate3d(0,0,0)}}","bounce-in-left":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:translate3d(0,0,0)}}","bounce-in-right":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:translate3d(0,0,0)}}","bounce-in-up":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translate3d(0,0,0)}}","bounce-out":"{20%{transform:scale3d(0.9,0.9,0.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(0.3,0.3,0.3)}}","bounce-out-down":"{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}","bounce-out-left":"{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}","bounce-out-right":"{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}","bounce-out-up":"{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}","slide-in-down":"{from{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-left":"{from{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-right":"{from{transform:translate3d(100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-up":"{from{transform:translate3d(0,100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-out-down":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}","slide-out-left":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}","slide-out-right":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}","slide-out-up":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}","fade-in":"{from{opacity:0}to{opacity:1}}","fade-in-down":"{from{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-down-big":"{from{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-left":"{from{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-left-big":"{from{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-right":"{from{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-right-big":"{from{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-up":"{from{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-up-big":"{from{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-top-left":"{from{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-top-right":"{from{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-bottom-left":"{from{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-bottom-right":"{from{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-out":"{from{opacity:1}to{opacity:0}}","fade-out-down":"{from{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}","fade-out-down-big":"{from{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}","fade-out-left":"{from{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}","fade-out-left-big":"{from{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}","fade-out-right":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}","fade-out-right-big":"{from{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}","fade-out-up":"{from{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}","fade-out-up-big":"{from{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}","fade-out-top-left":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}","fade-out-top-right":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}","fade-out-bottom-left":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}","fade-out-bottom-right":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(100%,100%,0)}}","back-in-up":"{0%{opacity:0.7;transform:translateY(1200px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-down":"{0%{opacity:0.7;transform:translateY(-1200px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-right":"{0%{opacity:0.7;transform:translateX(2000px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-left":"{0%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}80%{opacity:0.7;transform:translateX(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-out-up":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}","back-out-down":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateY(700px) scale(0.7)}}","back-out-right":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}","back-out-left":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"},durations:{pulse:"2s","heart-beat":"1.3s","bounce-in":"0.75s","bounce-out":"0.75s","flip-out-x":"0.75s","flip-out-y":"0.75s",hinge:"2s"},timingFns:{pulse:"cubic-bezier(0.4,0,.6,1)",ping:"cubic-bezier(0,0,.2,1)","head-shake":"ease-in-out","heart-beat":"ease-in-out","pulse-alt":"ease-in-out","light-speed-in-left":"ease-out","light-speed-in-right":"ease-out","light-speed-out-left":"ease-in","light-speed-out-right":"ease-in"},properties:{"bounce-alt":{"transform-origin":"center bottom"},jello:{"transform-origin":"center"},swing:{"transform-origin":"top center"},flip:{"backface-visibility":"visible"},"flip-in-x":{"backface-visibility":"visible !important"},"flip-in-y":{"backface-visibility":"visible !important"},"flip-out-x":{"backface-visibility":"visible !important"},"flip-out-y":{"backface-visibility":"visible !important"},"rotate-in":{"transform-origin":"center"},"rotate-in-down-left":{"transform-origin":"left bottom"},"rotate-in-down-right":{"transform-origin":"right bottom"},"rotate-in-up-left":{"transform-origin":"left bottom"},"rotate-in-up-right":{"transform-origin":"right bottom"},"rotate-out":{"transform-origin":"center"},"rotate-out-down-left":{"transform-origin":"left bottom"},"rotate-out-down-right":{"transform-origin":"right bottom"},"rotate-out-up-left":{"transform-origin":"left bottom"},"rotate-out-up-right":{"transform-origin":"right bottom"},hinge:{"transform-origin":"top left"},"zoom-out-down":{"transform-origin":"center bottom"},"zoom-out-left":{"transform-origin":"left center"},"zoom-out-right":{"transform-origin":"right center"},"zoom-out-up":{"transform-origin":"center bottom"}},counts:{spin:"infinite",ping:"infinite",pulse:"infinite","pulse-alt":"infinite",bounce:"infinite","bounce-alt":"infinite"},category:{pulse:"Attention Seekers",bounce:"Attention Seekers",spin:"Attention Seekers",ping:"Attention Seekers","bounce-alt":"Attention Seekers",flash:"Attention Seekers","pulse-alt":"Attention Seekers","rubber-band":"Attention Seekers","shake-x":"Attention Seekers","shake-y":"Attention Seekers","head-shake":"Attention Seekers",swing:"Attention Seekers",tada:"Attention Seekers",wobble:"Attention Seekers",jello:"Attention Seekers","heart-beat":"Attention Seekers",hinge:"Specials","jack-in-the-box":"Specials","light-speed-in-left":"Lightspeed","light-speed-in-right":"Lightspeed","light-speed-out-left":"Lightspeed","light-speed-out-right":"Lightspeed",flip:"Flippers","flip-in-x":"Flippers","flip-in-y":"Flippers","flip-out-x":"Flippers","flip-out-y":"Flippers","rotate-in":"Rotating Entrances","rotate-in-down-left":"Rotating Entrances","rotate-in-down-right":"Rotating Entrances","rotate-in-up-left":"Rotating Entrances","rotate-in-up-right":"Rotating Entrances","rotate-out":"Rotating Exits","rotate-out-down-left":"Rotating Exits","rotate-out-down-right":"Rotating Exits","rotate-out-up-left":"Rotating Exits","rotate-out-up-right":"Rotating Exits","roll-in":"Specials","roll-out":"Specials","zoom-in":"Zooming Entrances","zoom-in-down":"Zooming Entrances","zoom-in-left":"Zooming Entrances","zoom-in-right":"Zooming Entrances","zoom-in-up":"Zooming Entrances","zoom-out":"Zooming Exits","zoom-out-down":"Zooming Exits","zoom-out-left":"Zooming Exits","zoom-out-right":"Zooming Exits","zoom-out-up":"Zooming Exits","bounce-in":"Bouncing Entrances","bounce-in-down":"Bouncing Entrances","bounce-in-left":"Bouncing Entrances","bounce-in-right":"Bouncing Entrances","bounce-in-up":"Bouncing Entrances","bounce-out":"Bouncing Exits","bounce-out-down":"Bouncing Exits","bounce-out-left":"Bouncing Exits","bounce-out-right":"Bouncing Exits","bounce-out-up":"Bouncing Exits","slide-in-down":"Sliding Entrances","slide-in-left":"Sliding Entrances","slide-in-right":"Sliding Entrances","slide-in-up":"Sliding Entrances","slide-out-down":"Sliding Exits","slide-out-left":"Sliding Exits","slide-out-right":"Sliding Exits","slide-out-up":"Sliding Exits","fade-in":"Fading Entrances","fade-in-down":"Fading Entrances","fade-in-down-big":"Fading Entrances","fade-in-left":"Fading Entrances","fade-in-left-big":"Fading Entrances","fade-in-right":"Fading Entrances","fade-in-right-big":"Fading Entrances","fade-in-up":"Fading Entrances","fade-in-up-big":"Fading Entrances","fade-in-top-left":"Fading Entrances","fade-in-top-right":"Fading Entrances","fade-in-bottom-left":"Fading Entrances","fade-in-bottom-right":"Fading Entrances","fade-out":"Fading Exits","fade-out-down":"Fading Exits","fade-out-down-big":"Fading Exits","fade-out-left":"Fading Exits","fade-out-left-big":"Fading Exits","fade-out-right":"Fading Exits","fade-out-right-big":"Fading Exits","fade-out-up":"Fading Exits","fade-out-up-big":"Fading Exits","fade-out-top-left":"Fading Exits","fade-out-top-right":"Fading Exits","fade-out-bottom-left":"Fading Exits","fade-out-bottom-right":"Fading Exits","back-in-up":"Back Entrances","back-in-down":"Back Entrances","back-in-right":"Back Entrances","back-in-left":"Back Entrances","back-out-up":"Back Exits","back-out-down":"Back Exits","back-out-right":"Back Exits","back-out-left":"Back Exits"}},media:{portrait:"(orientation: portrait)",landscape:"(orientation: landscape)",os_dark:"(prefers-color-scheme: dark)",os_light:"(prefers-color-scheme: light)",motion_ok:"(prefers-reduced-motion: no-preference)",motion_not_ok:"(prefers-reduced-motion: reduce)",high_contrast:"(prefers-contrast: high)",low_contrast:"(prefers-contrast: low)",opacity_ok:"(prefers-reduced-transparency: no-preference)",opacity_not_ok:"(prefers-reduced-transparency: reduce)",use_data_ok:"(prefers-reduced-data: no-preference)",use_data_not_ok:"(prefers-reduced-data: reduce)",touch:"(hover: none) and (pointer: coarse)",stylus:"(hover: none) and (pointer: fine)",pointer:"(hover) and (pointer: coarse)",mouse:"(hover) and (pointer: fine)",hd_color:"(dynamic-range: high)"},supports:{grid:"(display: grid)"},preflightBase:{...Ks,...al,...tl,...cl,...sl,...Ys,...Xs,...K1,...Q1}},Q0={name:"aria",match(e,t){const n=(0,se.variantGetParameter)("aria-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s)??t.theme.aria?.[s]??"";if(i)return{matcher:o,selector:c=>`${c}[aria-${i}]`}}},multiPass:!0};function Er(e,t,n={}){return{name:`${e}-aria`,match(s,o){const i=(0,se.variantGetParameter)(`${e}-aria-`,s,o.generator.config.separators);if(i){const[c,l,u]=i,f=b.bracket(c)??o.theme.aria?.[c]??"";if(f){const h=!!n?.attributifyPseudo;let m=n?.prefix??"";m=(Array.isArray(m)?m:[m]).filter(Boolean)[0]??"";const k=`${h?`[${m}${e}=""]`:`.${m}${e}`}`,v=xt(u?`/${u}`:"");return{matcher:l,handle:($,R)=>{const D=new RegExp(`${lt(k)}${lt(v)}(?:\\\\[.+?\\\\])+`),F=$.prefix.match(D);let I;if(F){const T=(F.index??0)+k.length+v.length;I=[$.prefix.slice(0,T),`[aria-${f}]`,$.prefix.slice(T)].join("")}else{const T=Math.max($.prefix.indexOf(k),0);I=[$.prefix.slice(0,T),k,v,`[aria-${f}]`,t,$.prefix.slice(T)].join("")}return R({...$,prefix:I})}}}}},multiPass:!0}}function eb(){return{name:"has-aria",match(e,t){const n=(0,se.variantGetParameter)("has-aria-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s)??t.theme.aria?.[s]??"";if(i)return{matcher:o,handle:(c,l)=>l({...c,pseudo:`${c.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function tb(e={}){return[Er("group"," ",e),Er("peer","~",e),Er("parent",">",e),Er("previous","+",e),eb()]}const bl=/(max|min)-\\[([^\\]]*)\\]:/;function nb(){const e={};return{name:"breakpoints",match(t,n){if(bl.test(t)){const o=t.match(bl);return{matcher:t.replace(o[0],""),handle:(i,c)=>c({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}const s=(Ot(n)??[]).map(({point:o,size:i},c)=>[o,i,c]);for(const[o,i,c]of s){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${n.generator.config.separators.join("|")}))`));const l=t.match(e[o]);if(!l)continue;const[,u]=l,f=t.slice(u.length);if(f==="container")continue;const h=u.startsWith("lt-")||u.startsWith("<")||u.startsWith("max-"),m=u.startsWith("at-")||u.startsWith("~");let k=3e3;return h?(k-=c+1,{matcher:f,handle:(v,$)=>$({...v,parent:`${v.parent?`${v.parent} $$ `:""}@media (max-width: ${(0,se.calcMaxWidthBySize)(i)})`,parentOrder:k})}):(k+=c+1,m&&c<s.length-1?{matcher:f,handle:(v,$)=>$({...v,parent:`${v.parent?`${v.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${(0,se.calcMaxWidthBySize)(s[c+1][1])})`,parentOrder:k})}:{matcher:f,handle:(v,$)=>$({...v,parent:`${v.parent?`${v.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:k})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}const rb=[(0,se.variantMatcher)("*",e=>({selector:`${e.selector} > *`}),{order:-1})];function Rn(e,t){return{name:`combinator:${e}`,match(n,s){if(!n.startsWith(e))return;const o=s.generator.config.separators;let i=(0,se.variantGetBracket)(`${e}-`,n,o);if(!i){for(const l of o)if(n.startsWith(`${e}${l}`)){i=["",n.slice(e.length+l.length)];break}if(!i)return}let c=b.bracket(i[0])??"";return c===""&&(c="*"),{matcher:i[1],selector:l=>`${l}${t}${c}`}},multiPass:!0}}const sb=[Rn("all"," "),Rn("children",">"),Rn("next","+"),Rn("sibling","+"),Rn("siblings","~")],ob={name:"@",match(e,t){if(e.startsWith("@container"))return;const n=(0,se.variantGetParameter)("@",e,t.generator.config.separators);if(n){const[s,o,i]=n,c=b.bracket(s);let l;if(c?l=b.numberWithUnit(c):l=t.theme.containers?.[s]??"",l){let u=1e3+Object.keys(t.theme.containers??{}).indexOf(s);return i&&(u+=1e3),{matcher:o,handle:(f,h)=>h({...f,parent:`${f.parent?`${f.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${l})`,parentOrder:u})}}}},multiPass:!0};function ib(e={}){if(e?.dark==="class"||typeof e.dark=="object"){const{dark:t=".dark",light:n=".light"}=typeof e.dark=="string"?{}:e.dark;return[(0,se.variantMatcher)("dark",pe(t).map(s=>o=>({prefix:`${s} $$ ${o.prefix}`}))),(0,se.variantMatcher)("light",pe(n).map(s=>o=>({prefix:`${s} $$ ${o.prefix}`})))]}return[(0,se.variantParentMatcher)("dark","@media (prefers-color-scheme: dark)"),(0,se.variantParentMatcher)("light","@media (prefers-color-scheme: light)")]}const ab={name:"data",match(e,t){const n=(0,se.variantGetParameter)("data-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s)??t.theme.data?.[s]??"";if(i)return{matcher:o,selector:c=>`${c}[data-${i}]`}}},multiPass:!0};function Tr(e,t,n={}){return{name:`${e}-data`,match(s,o){const i=(0,se.variantGetParameter)(`${e}-data-`,s,o.generator.config.separators);if(i){const[c,l,u]=i,f=b.bracket(c)??o.theme.data?.[c]??"";if(f){const h=!!n?.attributifyPseudo;let m=n?.prefix??"";m=(Array.isArray(m)?m:[m]).filter(Boolean)[0]??"";const k=`${h?`[${m}${e}=""]`:`.${m}${e}`}`,v=xt(u?`/${u}`:"");return{matcher:l,handle:($,R)=>{const D=new RegExp(`${lt(k)}${lt(v)}(?:\\\\[.+?\\\\])+`),F=$.prefix.match(D);let I;if(F){const T=(F.index??0)+k.length+v.length;I=[$.prefix.slice(0,T),`[data-${f}]`,$.prefix.slice(T)].join("")}else{const T=Math.max($.prefix.indexOf(k),0);I=[$.prefix.slice(0,T),k,v,`[data-${f}]`,t,$.prefix.slice(T)].join("")}return R({...$,prefix:I})}}}}},multiPass:!0}}function cb(){return{name:"has-data",match(e,t){const n=(0,se.variantGetParameter)("has-data-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s)??t.theme.data?.[s]??"";if(i)return{matcher:o,handle:(c,l)=>l({...c,pseudo:`${c.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function lb(e={}){return[Tr("group"," ",e),Tr("peer","~",e),Tr("parent",">",e),Tr("previous","+",e),cb()]}const ub=[(0,se.variantMatcher)("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),(0,se.variantMatcher)("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function fb(){let e;return{name:"important",match(t,n){e||(e=new RegExp(`^(important(?:${n.generator.config.separators.join("|")})|!)`));let s;const o=t.match(e);if(o?s=t.slice(o[0].length):t.endsWith("!")&&(s=t.slice(0,-1)),s)return{matcher:s,body:i=>(i.forEach(c=>{c[1]!=null&&(c[1]+=" !important")}),i)}}}}const pb=(0,se.variantParentMatcher)("print","@media print"),hb={name:"media",match(e,t){const n=(0,se.variantGetParameter)("media-",e,t.generator.config.separators);if(n){const[s,o]=n;let i=b.bracket(s)??"";if(i===""&&(i=t.theme.media?.[s]??""),i)return{matcher:o,handle:(c,l)=>l({...c,parent:`${c.parent?`${c.parent} $$ `:""}@media ${i}`})}}},multiPass:!0},db={name:"selector",match(e,t){const n=(0,se.variantGetBracket)("selector-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s);if(i)return{matcher:o,selector:()=>i}}}},mb={name:"layer",match(e,t){const n=(0,se.variantGetParameter)("layer-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s)??s;if(i)return{matcher:o,handle:(c,l)=>l({...c,parent:`${c.parent?`${c.parent} $$ `:""}@layer ${i}`})}}}},gb={name:"uno-layer",match(e,t){const n=(0,se.variantGetParameter)("uno-layer-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s)??s;if(i)return{matcher:o,layer:i}}}},bb={name:"scope",match(e,t){const n=(0,se.variantGetBracket)("scope-",e,t.generator.config.separators);if(n){const[s,o]=n,i=b.bracket(s);if(i)return{matcher:o,selector:c=>`${i} $$ ${c}`}}}},kb={name:"variables",match(e,t){if(!e.startsWith("["))return;const[n,s]=(0,se.getBracket)(e,"[","]")??[];if(!(n&&s))return;let o;for(const l of t.generator.config.separators)if(s.startsWith(l)){o=s.slice(l.length);break}if(o==null)return;const i=b.bracket(n)??"",c=i.startsWith("@");if(c||i.includes("&"))return{matcher:o,handle(l,u){const f=c?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return u({...l,...f})}}},multiPass:!0},yb={name:"theme-variables",match(e,t){if((0,se.hasThemeFn)(e))return{matcher:e,handle(n,s){return s({...n,entries:JSON.parse((0,se.transformThemeFn)(JSON.stringify(n.entries),t.theme))})}}}},kl=/^-?[0-9.]+(?:[a-z]+|%)?$/,yl=/-?[0-9.]+(?:[a-z]+|%)?/,xb=[/\\b(opacity|color|flex|backdrop-filter|^filter|transform)\\b/];function wb(e){const t=e.match(_n)||e.match(Os);if(t){const[n,s]=kn(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(n)return`calc(${t[1]}${n} * -1)${s?` ${s}`:""}`}}const vb=/\\b(hue-rotate)\\s*(\\(.*)/;function _b(e){const t=e.match(vb);if(t){const[n,s]=kn(t[2],"(",")"," ")??[];if(n){const o=kl.test(n.slice(1,-1))?n.replace(yl,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${n} * -1))`;return`${t[1]}${o}${s?` ${s}`:""}`}}}const Sb={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(s=>s[0]===Ms))return;let n=!1;return t.forEach(s=>{const o=s[1]?.toString();if(!o||o==="0"||xb.some(l=>l.test(s[0])))return;const i=wb(o);if(i){s[1]=i,n=!0;return}const c=_b(o);if(c){s[1]=c,n=!0;return}kl.test(o)&&(s[1]=o.replace(yl,l=>l.startsWith("-")?l.slice(1):`-${l}`),n=!0)}),n?t:[]}}}};function $b(){return bc({getBracket:_t.getBracket,h:b,variantGetBracket:_t.variantGetBracket})}function Ib(){return kc({getBracket:_t.getBracket,h:b,variantGetBracket:_t.variantGetBracket})}function Eb(e={}){return yc(e,{getBracket:_t.getBracket,h:b,variantGetBracket:_t.variantGetBracket})}const Tb=xc(),Ab={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,n)=>n({...t,parent:"@starting-style"})}}},Cb={name:"supports",match(e,t){const n=(0,se.variantGetParameter)("supports-",e,t.generator.config.separators);if(n){const[s,o]=n;let i=b.bracket(s)??"";if(i===""&&(i=t.theme.supports?.[s]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:o,handle:(c,l)=>l({...c,parent:`${c.parent?`${c.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function xl(e){return[Q0,ab,mb,db,gb,Sb,Ab,fb(),Cb,pb,hb,nb(),...sb,...$b(),Ib(),...Eb(e),Tb,...ib(e),...ub,bb,...rb,ob,kb,...lb(e),...tb(e),yb]}const Pb=[vn("svg",e=>({selector:`${e.selector} svg`}))],Rb=[vn(".dark",e=>({prefix:`.dark $$ ${e.prefix}`})),vn(".light",e=>({prefix:`.light $$ ${e.prefix}`})),ft("@dark","@media (prefers-color-scheme: dark)"),ft("@light","@media (prefers-color-scheme: light)")],Nb=[ft("contrast-more","@media (prefers-contrast: more)"),ft("contrast-less","@media (prefers-contrast: less)")],jb=[ft("motion-reduce","@media (prefers-reduced-motion: reduce)"),ft("motion-safe","@media (prefers-reduced-motion: no-preference)")],Lb=[ft("landscape","@media (orientation: landscape)"),ft("portrait","@media (orientation: portrait)")],Ob=e=>{if(!e.startsWith("_")&&(/space-[xy]-.+$/.test(e)||/divide-/.test(e)))return{matcher:e,selector:t=>{const n=">:not([hidden])~:not([hidden])";return t.includes(n)?t:`${t}${n}`}}},Fb=[vn("@hover",e=>({parent:`${e.parent?`${e.parent} $$ `:""}@media (hover: hover) and (pointer: fine)`,selector:`${e.selector||""}:hover`}))];function wl(e,t,n){return`calc(${t} + (${e} - ${t}) * ${n} / 100)`}function vl(e,t,n){const s=[e,t],o=[];for(let c=0;c<2;c++){const l=typeof s[c]=="string"?ut(s[c]):s[c];if(!l||!["rgb","rgba"].includes(l.type))return;o.push(l)}const i=[];for(let c=0;c<3;c++)i.push(wl(o[0].components[c],o[1].components[c],n));return{type:"rgb",components:i,alpha:wl(o[0].alpha??1,o[1].alpha??1,n)}}function _l(e,t){return vl("#fff",e,t)}function Sl(e,t){return vl("#000",e,t)}function Db(e,t){const n=Number.parseFloat(`${t}`);if(!Number.isNaN(n))return n>0?Sl(e,t):_l(e,-n)}const Mb={tint:_l,shade:Sl,shift:Db};function Bb(){let e;return{name:"mix",match(t,n){e||(e=new RegExp(`^mix-(tint|shade|shift)-(-?\\\\d{1,3})(?:${n.generator.config.separators.join("|")})`));const s=t.match(e);if(s)return{matcher:t.slice(s[0].length),body:o=>(o.forEach(i=>{if(i[1]){const c=ut(`${i[1]}`);if(c){const l=Mb[s[1]](c,s[2]);l&&(i[1]=Ee(l))}}}),o)}}}}const zb=(e,{theme:t})=>{const n=e.match(/^(.*)\\b(placeholder-)(.+)$/);if(n){const[,s="",o,i]=n;if($n(i,t,"accentColor")||qb(i))return{matcher:`${s}placeholder-$ ${o}${i}`}}};function qb(e){const t=e.match(/^op(?:acity)?-?(.+)$/);return t&&t[1]!=null?b.bracket.percent(t[1])!=null:!1}function Ub(e){return[zb,Ob,...xl(e),...Nb,...Lb,...jb,...Pb,...Rb,...Fb,Bb()]}function Wb(e){let t,n,s=2166136261;for(t=0,n=e.length;t<n;t++)s^=e.charCodeAt(t),s+=(s<<1)+(s<<4)+(s<<7)+(s<<8)+(s<<24);return`00000${(s>>>0).toString(36)}`.slice(-6)}function Vb(e,t,n,s){for(const o of Array.from(e.matchAll(n)))if(o!=null){const i=o[0],c=`${s}${Wb(i)}`;t.set(c,i),e=e.replace(i,c)}return e}function Hb(e,t){for(const[n,s]of t.entries())e=e.replaceAll(n,s);return e}const Gb=/\\/\\/#\\s*sourceMappingURL=.*\\n?/g;function Xb(e){return e.includes("sourceMappingURL=")?e.replace(Gb,""):e}const Yb=/(?:[\\w&:[\\]-]|\\[\\S{1,64}=\\S{1,64}\\]){1,64}\\[\\\\?[\'"]?\\S{1,64}?[\'"]\\]\\]?[\\w:-]{0,64}/g,Kb=/\\[(\\\\\\W|[\\w-]){1,64}:[^\\s:]{0,64}?("\\S{1,64}?"|\'\\S{1,64}?\'|`\\S{1,64}?`|[^\\s:]{1,64}?)[^\\s:]{0,64}?\\)?\\]/g,Jb=/^\\[(?:\\\\\\W|[\\w-]){1,64}:[\'"]?\\S{1,64}?[\'"]?\\]$/;function Zb(e){const t=[];for(const o of e.matchAll(Kb))o.index!==0&&!/^[\\s\'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(const o of e.matchAll(Yb))t.push(o[0]);const n=new Map,s="@unocss-skip-arbitrary-brackets";return e=Vb(e,n,/-\\[(?!&.+?;)[^\\]]*\\]/g,s),e&&e.split(za).forEach(o=>{o.includes(s)&&(o=Hb(o,n)),Kd(o)&&!Jb.test(o)&&t.push(o)}),t}function Qb(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Zb(Xb(e))}}}function ek(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:n}){if(t.preflightBase){let s=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){const o=new Set(Array.from(n.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());s=s.filter(([i])=>o.has(i))}if(s.length>0){let o=cr(s);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),pe(t.preflightRoot??["*,::before,::after","::backdrop"]).map(i=>`${i}{${o}}`).join("")}}}}]}const tk={position:["relative","absolute","fixed","sticky","static"],globalKeyword:he},$l=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:gl,rules:Ug,variants:xl(e),options:e,prefix:e.prefix,postprocess:rk(e.variablePrefix),preflights:ek(e),extractorDefault:e.arbitraryVariants===!1?void 0:Qb(),autocomplete:{shorthands:tk}});var nk=$l;function rk(e){if(e!=="un-")return t=>{t.entries.forEach(n=>{n[0]=n[0].replace(/^--un-/,`--${e}`),typeof n[1]=="string"&&(n[1]=n[1].replace(/var\\(--un-/g,`var(--${e}`))})}}function sk(e){if(e==null||e===!1)return[];const t=n=>n.startsWith(":is(")&&n.endsWith(")")?n:n.includes("::")?n.replace(/(.*?)((?:\\s\\*)?::.*)/,":is($1)$2"):`:is(${n})`;return[e===!0?n=>{n.entries.forEach(s=>{s[1]!=null&&!String(s[1]).endsWith("!important")&&(s[1]+=" !important")})}:n=>{n.selector.startsWith(e)||(n.selector=`${e} ${t(n.selector)}`)}]}function ok(e){return[...pe(nk(e).postprocess),...sk(e.important)]}const ik=(e={})=>(e.important=e.important??!1,{...$l(e),name:"@unocss/preset-wind3",theme:Z0,rules:_0,shortcuts:S0,variants:Ub(e),postprocess:ok(e)}),ak=(e={})=>({...ik(e),name:"@unocss/preset-uno"});let Il=null,ro=null;function ck(e={}){try{return JSON.stringify(e)}catch{return"__dynamic__"}}async function lk(e={}){const t=ck(e);return(!ro||Il!==t)&&(Il=t,ro=gm({presets:[ak()],...e})),ro}function uk(e,t){const n=e.split("/").slice(0,-1),s=t.split("/"),o=[...n];for(const i of s)!i||i==="."||(i===".."?o.pop():o.push(i));return o.join("/")}async function fk(e,t){if(!(t in e))throw new Error(`Entry point \'${t}\' not found`);const{code:n}=await Ud({entry:t,resolve:(s,o)=>{const i=uk(o,s);if(!(i in e))throw new Error(`Cannot find module \'${s}\' imported from \'${o}\'`);return i},load:s=>e[s],onExternal:"error",exposeEntryFunctions:!0});return n}function pk(e){return new Function("h","Fragment",`\n ${e}\n return __ono_entry;\n `)(Cl,Jo)}function hk(e){if(!e||typeof e!="object")return null;const t=e.default;if(typeof t=="function")return t;if(t!==void 0)return()=>t;const n=Object.values(e).filter(o=>typeof o=="function");if(n.length>0)return n[n.length-1];const s=Object.values(e)[0];return s!==void 0?()=>s:null}async function dk(e,t="index.jsx",n={}){const s=await fk(e,t),o=pk(s),i=hk(o);if(!i)throw new Error("Unable to determine a render function in the entry module.");const c=i(),l=Ar(c);let u="";return n.enableUno!==!1&&(u=(await(await lk(n.unoConfig)).generate(l,{preflights:!0})).css),{html:l,css:u}}var mk=`/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n2. [UnoCSS]: allow to override the default border color with css var \\`--un-default-border-color\\`\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: var(--un-default-border-color, #e5e7eb); /* 2 */\n}\n\n::before,\n::after {\n --un-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured \\`sans\\` font-family by default.\n5. Use the user\'s configured \\`sans\\` font-feature-settings by default.\n6. Use the user\'s configured \\`sans\\` font-variation-settings by default.\n7. Disable tap highlights on iOS.\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from \\`html\\` so users can set them as a class directly on the \\`html\\` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured \\`mono\\` font-family by default.\n2. Use the user\'s configured \\`mono\\` font-feature-settings by default.\n3. Use the user\'s configured \\`mono\\` font-variation-settings by default.\n4. Correct the odd \\`em\\` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent \\`sub\\` and \\`sup\\` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type=\'button\'],\n[type=\'reset\'],\n[type=\'submit\'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional \\`:invalid\\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to \\`inherit\\` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements \\`display: block\\` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add \\`vertical-align: middle\\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/*\nMake elements with the HTML hidden attribute stay hidden by default.\n*/\n\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n`;self.onmessage=async e=>{const{type:t,files:n,entryPoint:s,id:o}=e.data;if(t==="compile")try{const{html:i,css:c}=await dk(n,s);self.postMessage({type:"success",html:i,css:`${mk}\n${c}`,id:o,fileCount:Object.keys(n).length})}catch(i){self.postMessage({type:"error",error:i.message,stack:i.stack,id:o})}}})();\n', re = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", se], { type: "text/javascript;charset=utf-8" });
53
+ function je(t) {
54
+ let o;
55
+ try {
56
+ if (o = re && (self.URL || self.webkitURL).createObjectURL(re), !o) throw "";
57
+ const p = new Worker(o, {
58
+ name: t?.name
59
+ });
60
+ return p.addEventListener("error", () => {
61
+ (self.URL || self.webkitURL).revokeObjectURL(o);
62
+ }), p;
63
+ } catch {
64
+ return new Worker(
65
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(se),
66
+ {
67
+ name: t?.name
68
+ }
69
+ );
70
+ }
71
+ }
72
+ function Re(t, o) {
73
+ const p = R(null), c = R(0), [u, a] = q({ text: "Ready", kind: "" }), [h, f] = q(null), n = R(o);
74
+ n.current = o, j(() => {
75
+ const m = n.current ? n.current() : new je();
76
+ return m.onmessage = (b) => {
77
+ const { type: l, html: y, css: v, error: d, stack: $, id: N, fileCount: T } = b.data;
78
+ N === c.current && (l === "success" ? (f({ html: y, css: v }), a({ text: `Compiled ${T} file(s)`, kind: "" })) : (a({ text: "Error: " + d, kind: "error" }), console.error(d, $)));
79
+ }, m.onerror = (b) => a({ text: "Worker Error: " + b.message, kind: "error" }), p.current = m, () => m.terminate();
80
+ }, []);
81
+ const i = R(null);
82
+ if (!i.current) {
83
+ const m = (l) => {
84
+ a({ text: "Compiling...", kind: "processing" });
85
+ const y = ++c.current, v = {};
86
+ try {
87
+ for (const d of Object.keys(l)) v[d] = me(l[d], d);
88
+ } catch (d) {
89
+ a({ text: "Parse error: " + d.message, kind: "error" });
90
+ return;
91
+ }
92
+ p.current?.postMessage({ type: "compile", files: v, entryPoint: t, id: y });
93
+ }, b = Se(m, 400);
94
+ i.current = {
95
+ compileNow: (l) => {
96
+ b.cancel(), m(l);
97
+ },
98
+ compileSoon: b
99
+ };
100
+ }
101
+ return { ...i.current, status: u, output: h };
102
+ }
103
+ function Le({ files: t, currentFile: o, onSwitch: p, onChange: c, onRun: u, editorRef: a }) {
104
+ const h = Object.keys(t).sort(), f = (n, i) => {
105
+ if ((n.metaKey || n.ctrlKey) && n.key === "Enter" && (n.preventDefault(), u()), n.key === "Tab") {
106
+ n.preventDefault();
107
+ const m = n.currentTarget, { selectionStart: b, selectionEnd: l, value: y } = m;
108
+ c(i, y.slice(0, b) + " " + y.slice(l)), requestAnimationFrame(() => m.setSelectionRange(b + 2, b + 2));
109
+ }
110
+ };
111
+ return /* @__PURE__ */ g("div", { className: "panel", children: [
112
+ /* @__PURE__ */ e("div", { className: "panel-header", children: "JSX" }),
113
+ /* @__PURE__ */ e("div", { className: "tabs", children: h.map((n) => /* @__PURE__ */ e("button", { className: "tab" + (n === o ? " active" : ""), onClick: () => p(n), children: n }, n)) }),
114
+ /* @__PURE__ */ e("div", { className: "fill", children: h.map((n) => /* @__PURE__ */ e(
115
+ "textarea",
116
+ {
117
+ ref: n === o ? a : void 0,
118
+ className: "editor" + (n === o ? " active" : ""),
119
+ value: t[n],
120
+ spellCheck: !1,
121
+ onChange: (i) => c(n, i.target.value),
122
+ onKeyDown: (i) => f(i, n)
123
+ },
124
+ n
125
+ )) })
126
+ ] });
127
+ }
128
+ const V = "application/x-ono-snippet";
129
+ function Oe({ snippets: t, canClick: o, onInsert: p }) {
130
+ return /* @__PURE__ */ e("div", { className: "palette", children: t.map(({ label: c, icon: u, code: a }) => /* @__PURE__ */ g(
131
+ "button",
132
+ {
133
+ className: "tile",
134
+ draggable: !0,
135
+ disabled: !o,
136
+ title: o ? "Click: insert after selection · Drag: drop anywhere" : "Drag into the preview (or select an element to click-insert)",
137
+ onDragStart: (h) => {
138
+ h.dataTransfer.setData(V, a), h.dataTransfer.effectAllowed = "copy";
139
+ },
140
+ onClick: () => p(a),
141
+ children: [
142
+ /* @__PURE__ */ e("span", { className: "tile-icon", children: u }),
143
+ c
144
+ ]
145
+ },
146
+ c
147
+ )) });
148
+ }
149
+ const Pe = `
150
+ [${A}] { cursor: default; }
151
+ [data-ono-hover] { outline: 1px dashed #0e639c !important; outline-offset: -1px; }
152
+ [data-ono-selected] { outline: 2px solid #0e639c !important; outline-offset: -2px; }
153
+ body[data-ono-dragging], body[data-ono-dragging] * { cursor: grabbing !important; user-select: none; }
154
+ [data-ono-dragged] { opacity: 0.4; }
155
+ #ono-drop-line { position: absolute; background: #0e639c; pointer-events: none; z-index: 2147483647; border-radius: 2px; }
156
+ `, Fe = 5;
157
+ function B(t, o) {
158
+ return t ? t.querySelectorAll(`[${A}="${CSS.escape(o)}"]`) : [];
159
+ }
160
+ function De(t, o) {
161
+ const p = o.getAttribute(A);
162
+ return { id: p, nth: [...B(t, p)].indexOf(o) };
163
+ }
164
+ function Me(t, o, p) {
165
+ const c = t.getBoundingClientRect(), u = [...t.parentElement.children].some((h) => {
166
+ if (h === t) return !1;
167
+ const f = h.getBoundingClientRect();
168
+ return f.top < c.bottom && f.bottom > c.top && (f.right <= c.left || f.left >= c.right);
169
+ });
170
+ return { position: (u ? o < c.left + c.width / 2 : p < c.top + c.height / 2) ? "before" : "after", horizontal: u, rect: c };
171
+ }
172
+ function ze({ output: t, selection: o, selectMode: p, onSelect: c, onShortcut: u, onMove: a, onDropSnippet: h, iframeRef: f }) {
173
+ const n = R({});
174
+ return n.current = { selectMode: p, onSelect: c, onShortcut: u, onMove: a, onDropSnippet: h }, j(() => {
175
+ if (!t) return;
176
+ const i = f.current.contentDocument;
177
+ i.open(), i.write(Ee(t.html, `<style id="uno-css">${t.css}</style><style id="ono-overlay">${Pe}</style>`)), i.close();
178
+ const m = (s) => s.target.closest?.(`[${A}]`) ?? null, b = (s) => {
179
+ i.querySelector("[data-ono-hover]")?.removeAttribute("data-ono-hover"), s?.setAttribute("data-ono-hover", "");
180
+ };
181
+ let l = null;
182
+ const y = i.createElement("div");
183
+ y.id = "ono-drop-line";
184
+ const v = (s, x, C) => {
185
+ const { scrollX: S, scrollY: L } = i.defaultView;
186
+ C ? Object.assign(y.style, {
187
+ left: `${S + (x === "before" ? s.left : s.right) - 2}px`,
188
+ top: `${L + s.top}px`,
189
+ width: "4px",
190
+ height: `${s.height}px`
191
+ }) : Object.assign(y.style, {
192
+ left: `${S + s.left}px`,
193
+ top: `${L + (x === "before" ? s.top : s.bottom) - 2}px`,
194
+ width: `${s.width}px`,
195
+ height: "4px"
196
+ }), y.isConnected || i.body.append(y);
197
+ }, d = () => {
198
+ if (!l) return;
199
+ const { active: s, source: x, drop: C } = l;
200
+ return l = null, i.body.removeAttribute("data-ono-dragging"), x.removeAttribute("data-ono-dragged"), y.remove(), s && C && n.current.onMove(x, C.target, C.position), s;
201
+ };
202
+ i.addEventListener("mousedown", (s) => {
203
+ if (!n.current.selectMode || s.button !== 0) return;
204
+ const x = m(s);
205
+ x && (l = { source: x, startX: s.clientX, startY: s.clientY, active: !1, drop: null });
206
+ }), i.addEventListener("mousemove", (s) => {
207
+ if (l) {
208
+ if (!l.active) {
209
+ if (Math.hypot(s.clientX - l.startX, s.clientY - l.startY) < Fe) return;
210
+ l.active = !0, i.body.setAttribute("data-ono-dragging", ""), l.source.setAttribute("data-ono-dragged", ""), b(null);
211
+ }
212
+ l.drop = $(s.clientX, s.clientY, l.source);
213
+ }
214
+ });
215
+ const $ = (s, x, C = null) => {
216
+ let S = i.elementFromPoint(s, x)?.closest(`[${A}]`) ?? null;
217
+ for (; S && C && (S === C || C.contains(S)); ) S = S.parentElement?.closest(`[${A}]`) ?? null;
218
+ if (!S)
219
+ return y.remove(), null;
220
+ const { position: L, horizontal: F, rect: D } = Me(S, s, x);
221
+ return v(D, L, F), { target: S, position: L };
222
+ };
223
+ let N = null;
224
+ i.addEventListener("dragover", (s) => {
225
+ [...s.dataTransfer.types].includes(V) && (s.preventDefault(), s.dataTransfer.dropEffect = "copy", N = $(s.clientX, s.clientY));
226
+ }), i.addEventListener("dragleave", (s) => {
227
+ s.relatedTarget === null && (y.remove(), N = null);
228
+ }), i.addEventListener("drop", (s) => {
229
+ const x = s.dataTransfer.getData(V);
230
+ x && (s.preventDefault(), y.remove(), N && n.current.onDropSnippet(N.target, N.position, x), N = null);
231
+ }), i.addEventListener("mouseup", () => {
232
+ d() && (T = !0);
233
+ }), i.addEventListener("mouseleave", () => {
234
+ d(), b(null);
235
+ });
236
+ let T = !1;
237
+ i.addEventListener("click", (s) => {
238
+ if (!n.current.selectMode) return;
239
+ if (s.preventDefault(), T) {
240
+ T = !1;
241
+ return;
242
+ }
243
+ const x = m(s);
244
+ n.current.onSelect(x ? De(i, x) : null);
245
+ }), i.addEventListener("mouseover", (s) => n.current.selectMode && !l?.active && b(m(s))), i.addEventListener("keydown", (s) => n.current.onShortcut(s));
246
+ }, [t]), j(() => {
247
+ const i = f.current?.contentDocument;
248
+ if (!i || (i.querySelectorAll("[data-ono-selected]").forEach((b) => b.removeAttribute("data-ono-selected")), !o)) return;
249
+ const m = B(i, o.id);
250
+ m.length !== 0 && m[Math.min(o.nth, m.length - 1)].setAttribute("data-ono-selected", "");
251
+ }, [t, o]), /* @__PURE__ */ e("iframe", { className: "preview", ref: f, title: "preview" });
252
+ }
253
+ function X({ value: t, onCommit: o, multiline: p = !1, ...c }) {
254
+ const [u, a] = q(t);
255
+ j(() => a(t), [t]);
256
+ const f = {
257
+ ...c,
258
+ value: u,
259
+ onChange: (n) => a(n.target.value),
260
+ onBlur: () => {
261
+ u !== t && o(u);
262
+ },
263
+ onKeyDown: (n) => {
264
+ n.key === "Enter" && !n.shiftKey && (n.preventDefault(), n.currentTarget.blur());
265
+ }
266
+ };
267
+ return p ? /* @__PURE__ */ e("textarea", { ...f }) : /* @__PURE__ */ e("input", { ...f });
268
+ }
269
+ function qe({ classes: t, onChange: o }) {
270
+ const [p, c] = q(() => /* @__PURE__ */ new Set(["Spacing", "Typography"])), u = (a, h) => c((f) => {
271
+ const n = new Set(f);
272
+ return h ? n.add(a) : n.delete(a), n;
273
+ });
274
+ return /* @__PURE__ */ g("div", { className: "field", children: [
275
+ /* @__PURE__ */ e("label", { children: "class" }),
276
+ /* @__PURE__ */ g("div", { className: "chips", children: [
277
+ t.map((a) => /* @__PURE__ */ g("span", { className: "chip", title: "Click to remove", onClick: () => o(t.filter((h) => h !== a)), children: [
278
+ a,
279
+ /* @__PURE__ */ e("b", { children: "×" })
280
+ ] }, a)),
281
+ /* @__PURE__ */ e(
282
+ X,
283
+ {
284
+ className: "chip-input",
285
+ value: "",
286
+ placeholder: t.length ? "+ add class" : "add class…",
287
+ onCommit: (a) => {
288
+ const h = oe(a).filter((f) => !t.includes(f));
289
+ h.length && o([...t, ...h]);
290
+ }
291
+ }
292
+ )
293
+ ] }),
294
+ ge.map((a) => /* @__PURE__ */ g("details", { className: "group", open: p.has(a.title), onToggle: (h) => u(a.title, h.currentTarget.open), children: [
295
+ /* @__PURE__ */ e("summary", { children: a.title }),
296
+ a.controls.map((h) => {
297
+ const f = be(h, t), n = (i) => o(ve(h, t, i));
298
+ return /* @__PURE__ */ g("div", { className: "control", children: [
299
+ /* @__PURE__ */ e("span", { className: "control-label", children: h.label }),
300
+ h.kind === "color" ? /* @__PURE__ */ e(Be, { control: h, current: f, onSet: n }) : /* @__PURE__ */ g("select", { value: f, onChange: (i) => n(i.target.value), children: [
301
+ /* @__PURE__ */ e("option", { value: "", children: "—" }),
302
+ h.options.map((i) => /* @__PURE__ */ e("option", { value: i, children: i }, i))
303
+ ] })
304
+ ] }, h.label);
305
+ })
306
+ ] }, a.title))
307
+ ] });
308
+ }
309
+ function Be({ control: t, current: o, onSet: p }) {
310
+ const c = ke(t, o);
311
+ return /* @__PURE__ */ g("div", { className: "color", children: [
312
+ /* @__PURE__ */ g("div", { className: "swatches", children: [
313
+ /* @__PURE__ */ e("button", { className: "swatch none" + (c ? "" : " on"), title: "none", onClick: () => p("") }),
314
+ ye.map((u) => /* @__PURE__ */ e(
315
+ "button",
316
+ {
317
+ className: "swatch" + (c?.hue === u ? " on" : ""),
318
+ title: u,
319
+ style: { background: ee(u) },
320
+ onClick: () => p(te(t.prefix, u, c?.shade))
321
+ },
322
+ u
323
+ ))
324
+ ] }),
325
+ c?.shade && /* @__PURE__ */ e("div", { className: "swatches", children: xe.map((u) => /* @__PURE__ */ e(
326
+ "button",
327
+ {
328
+ className: "swatch" + (u === c.shade ? " on" : ""),
329
+ title: `${c.hue}-${u}`,
330
+ style: { background: ee(c.hue, u) },
331
+ onClick: () => p(te(t.prefix, c.hue, u))
332
+ },
333
+ u
334
+ )) }),
335
+ o && /* @__PURE__ */ e("div", { className: "hint", children: o })
336
+ ] });
337
+ }
338
+ function H({ label: t, hint: o, children: p }) {
339
+ return /* @__PURE__ */ g("div", { className: "field", children: [
340
+ /* @__PURE__ */ e("label", { children: t }),
341
+ p,
342
+ o && /* @__PURE__ */ e("div", { className: "hint", children: o })
343
+ ] });
344
+ }
345
+ function Ue({ title: t, buttons: o }) {
346
+ return /* @__PURE__ */ g("div", { children: [
347
+ /* @__PURE__ */ e("div", { className: "section-title", children: t }),
348
+ /* @__PURE__ */ e("div", { className: "row", children: o.map(({ label: p, onClick: c, disabled: u = !1, className: a = "" }) => /* @__PURE__ */ e("button", { className: a, disabled: u, onClick: c, children: p }, p)) })
349
+ ] });
350
+ }
351
+ function We({ selected: t, dispatch: o }) {
352
+ if (!t)
353
+ return /* @__PURE__ */ g("p", { className: "empty", children: [
354
+ "Nothing selected.",
355
+ /* @__PURE__ */ e("br", {}),
356
+ "Click an element in the preview to inspect it.",
357
+ /* @__PURE__ */ e("br", {}),
358
+ /* @__PURE__ */ e("br", {}),
359
+ "Drag an element to move it. Drag a palette tile into the preview to insert it.",
360
+ /* @__PURE__ */ e("br", {}),
361
+ /* @__PURE__ */ e("br", {}),
362
+ "Shortcuts: ",
363
+ /* @__PURE__ */ e("b", { children: "⌘/Ctrl+Z" }),
364
+ " undo, ",
365
+ /* @__PURE__ */ e("b", { children: "⌘/Ctrl+Shift+Z" }),
366
+ " / ",
367
+ /* @__PURE__ */ e("b", { children: "⌘/Ctrl+Y" }),
368
+ " redo, ",
369
+ /* @__PURE__ */ e("b", { children: "Delete" }),
370
+ " remove, ",
371
+ /* @__PURE__ */ e("b", { children: "⌘/Ctrl+D" }),
372
+ " duplicate, ",
373
+ /* @__PURE__ */ e("b", { children: "Esc" }),
374
+ " deselect (not while typing in a text field)."
375
+ ] });
376
+ const { target: p, filename: c, source: u, element: a, nth: h, instanceCount: f } = t, n = (l) => o({ ...l, target: p }), i = u.slice(0, a.start).split(`
377
+ `).length, m = we(a, ne), b = _e(u, a);
378
+ return /* @__PURE__ */ g(pe, { children: [
379
+ /* @__PURE__ */ g("div", { children: [
380
+ /* @__PURE__ */ e("div", { className: "selected-tag", children: `<${a.tag}>` }),
381
+ /* @__PURE__ */ g("div", { className: "selected-file", children: [
382
+ c,
383
+ ":",
384
+ i
385
+ ] })
386
+ ] }),
387
+ f > 1 && /* @__PURE__ */ g("div", { className: "hint", children: [
388
+ "Instance ",
389
+ h + 1,
390
+ " of ",
391
+ f,
392
+ " — this component is used ",
393
+ f,
394
+ " times; edits apply to all of them."
395
+ ] }),
396
+ m && m.value === null ? /* @__PURE__ */ e(H, { label: "class", hint: "Expression value — edit it in the source.", children: /* @__PURE__ */ e("input", { disabled: !0, value: "{…}", readOnly: !0 }) }) : /* @__PURE__ */ e(
397
+ qe,
398
+ {
399
+ classes: oe(m?.value ?? ""),
400
+ onChange: (l) => n({ type: "setAttr", name: m?.name ?? "class", value: l.join(" ") })
401
+ }
402
+ ),
403
+ /* @__PURE__ */ e(H, { label: "text", hint: b === null ? "Only elements whose sole child is text can be edited here." : void 0, children: /* @__PURE__ */ e(X, { multiline: !0, value: b ?? "", disabled: b === null, placeholder: "Text content", onCommit: (l) => n({ type: "setText", text: l }) }) }),
404
+ a.attrs.filter((l) => !ne.includes(l.name) && l.value !== null).map((l) => /* @__PURE__ */ e(H, { label: l.name, children: /* @__PURE__ */ e(X, { value: l.value, onCommit: (y) => n({ type: "setAttr", name: l.name, value: y }) }) }, l.name)),
405
+ /* @__PURE__ */ e(
406
+ Ue,
407
+ {
408
+ title: "Actions",
409
+ buttons: [
410
+ { label: "Duplicate", onClick: () => n({ type: "duplicate" }) },
411
+ {
412
+ label: "Select parent",
413
+ onClick: () => o({ type: "select", selection: { id: $e({ filename: c, index: a.parent.index }), nth: 0 } }),
414
+ disabled: !a.parent?.host
415
+ },
416
+ { label: "Delete", onClick: () => n({ type: "remove" }), className: "danger" }
417
+ ]
418
+ }
419
+ )
420
+ ] });
421
+ }
422
+ function Ge({
423
+ files: t,
424
+ entry: o = Ie,
425
+ onChange: p,
426
+ onSelect: c,
427
+ snippets: u = Ne,
428
+ createWorker: a,
429
+ header: h = !0,
430
+ title: f = "Ono Visual Editor",
431
+ tagline: n = "Click an element to edit it, drag it to move it — the JSX follows.",
432
+ actions: i,
433
+ statusBar: m = !0,
434
+ globalShortcuts: b = !0,
435
+ className: l = "",
436
+ style: y
437
+ }) {
438
+ const [v, d] = he(Te, null, () => Ce({ ...t ?? Ae }, o)), { files: $, currentFile: N, selection: T, past: s, future: x } = v, { compileNow: C, compileSoon: S, status: L, output: F } = Re(o, a), D = R(null), Y = R(null);
439
+ j(() => {
440
+ v.compile === "now" ? C($) : v.compile === "soon" && S($);
441
+ }, [v.version]);
442
+ const M = R(v.files);
443
+ j(() => {
444
+ v.files !== M.current && (M.current = v.files, p?.(v.files));
445
+ }, [v.files]), j(() => {
446
+ !t || t === M.current || (M.current = t, d({ type: "load", files: { ...t }, currentFile: o }));
447
+ }, [t]);
448
+ const E = fe(() => {
449
+ if (!T) return null;
450
+ const { filename: r, index: k } = z(T.id), _ = $[r];
451
+ if (_ === void 0) return null;
452
+ let w;
453
+ try {
454
+ w = K(r, _)[k];
455
+ } catch {
456
+ return null;
457
+ }
458
+ if (!w) return null;
459
+ const I = B(D.current?.contentDocument, T.id).length;
460
+ return {
461
+ target: { filename: r, index: k },
462
+ filename: r,
463
+ source: _,
464
+ element: w,
465
+ nth: Math.min(T.nth, Math.max(0, I - 1)),
466
+ instanceCount: I
467
+ };
468
+ }, [T, $, F]), G = de((r) => {
469
+ d({ type: "select", selection: typeof r == "string" ? { id: r, nth: 0 } : r });
470
+ }, []), J = R(c);
471
+ J.current = c, j(() => {
472
+ J.current?.(E && { filename: E.filename, index: E.target.index, tag: E.element.tag });
473
+ }, [T]), j(() => {
474
+ E && (d({ type: "switchFile", filename: E.filename }), requestAnimationFrame(() => {
475
+ const r = Y.current;
476
+ if (!r) return;
477
+ const { start: k, end: _ } = E.element;
478
+ r.focus({ preventScroll: !0 }), r.setSelectionRange(k, _);
479
+ const w = r.value.slice(0, k).split(`
480
+ `).length - 1;
481
+ r.scrollTop = Math.max(0, w * parseFloat(getComputedStyle(r).lineHeight) - r.clientHeight / 3), r.blur();
482
+ }));
483
+ }, [T]);
484
+ const U = (r) => {
485
+ const { filename: k, index: _ } = z(r.getAttribute(A));
486
+ if (K(k, $[k])[_].parent) return { filename: k, index: _ };
487
+ const I = r.parentElement?.closest(`[${A}]`);
488
+ if (!I) return null;
489
+ const O = z(I.getAttribute(A)), le = K(O.filename, $[O.filename])[O.index], ue = [...I.children].filter((P) => P.hasAttribute(A) && z(P.getAttribute(A)).filename !== O.filename), Q = le.children.filter((P) => P.type === "element" && !P.element.host).map((P) => P.element)[ue.indexOf(r)];
490
+ return Q ? { filename: O.filename, index: Q.index } : null;
491
+ }, ie = (r, k, _) => {
492
+ const w = U(r), I = U(k);
493
+ if (!w || !I || w.filename !== I.filename) return;
494
+ const O = [...B(r.ownerDocument, r.getAttribute(A))].indexOf(r);
495
+ d({ type: "move", target: w, to: I, position: _, nth: O });
496
+ }, ae = (r, k, _) => {
497
+ const w = U(r);
498
+ w && d({ type: "insert", target: w, position: k, code: _ });
499
+ }, ce = (r) => {
500
+ E && d({ type: "insert", target: E.target, position: "after", code: r });
501
+ }, W = (r) => {
502
+ const k = r.target;
503
+ if (k && (k.tagName === "INPUT" || k.tagName === "TEXTAREA" || k.tagName === "SELECT" || k.isContentEditable)) return;
504
+ const _ = r.metaKey || r.ctrlKey, w = r.key.toLowerCase();
505
+ if (_ && (w === "z" || w === "y"))
506
+ return r.preventDefault(), d({ type: w === "y" || r.shiftKey ? "redo" : "undo" });
507
+ if (r.key === "Escape") return G(null);
508
+ const I = r.key === "Delete" || r.key === "Backspace";
509
+ !(I || _ && w === "d") || !E || (r.preventDefault(), d({ type: I ? "remove" : "duplicate", target: E.target }));
510
+ }, Z = R(W);
511
+ return Z.current = W, j(() => {
512
+ if (!b) return;
513
+ const r = (k) => Z.current(k);
514
+ return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
515
+ }, [b]), /* @__PURE__ */ g("div", { className: ("ono-ve " + l).trim(), style: y, children: [
516
+ h && /* @__PURE__ */ g("header", { children: [
517
+ f && /* @__PURE__ */ e("h1", { children: f }),
518
+ n && /* @__PURE__ */ e("span", { className: "tagline", children: n }),
519
+ /* @__PURE__ */ e("span", { className: "spacer" }),
520
+ i,
521
+ /* @__PURE__ */ e("button", { onClick: () => d({ type: "undo" }), disabled: s.length === 0, title: "Undo (⌘/Ctrl+Z)", children: "Undo" }),
522
+ /* @__PURE__ */ e("button", { onClick: () => d({ type: "redo" }), disabled: x.length === 0, title: "Redo (⌘/Ctrl+Shift+Z or ⌘/Ctrl+Y)", children: "Redo" }),
523
+ /* @__PURE__ */ e("button", { className: "primary", onClick: () => C($), children: "Run (⌘/Ctrl+Enter)" })
524
+ ] }),
525
+ /* @__PURE__ */ g("div", { className: "container", children: [
526
+ /* @__PURE__ */ e(
527
+ Le,
528
+ {
529
+ files: $,
530
+ currentFile: N,
531
+ onSwitch: (r) => d({ type: "switchFile", filename: r }),
532
+ onChange: (r, k) => d({ type: "setSource", filename: r, source: k }),
533
+ onRun: () => C($),
534
+ editorRef: Y
535
+ }
536
+ ),
537
+ /* @__PURE__ */ g("div", { className: "panel", children: [
538
+ /* @__PURE__ */ g("div", { className: "panel-header", children: [
539
+ "Preview",
540
+ /* @__PURE__ */ e("span", { className: "spacer" }),
541
+ /* @__PURE__ */ g("label", { className: "checkbox", children: [
542
+ /* @__PURE__ */ e("input", { type: "checkbox", checked: v.selectMode, onChange: (r) => d({ type: "setSelectMode", on: r.target.checked }) }),
543
+ "select mode"
544
+ ] })
545
+ ] }),
546
+ /* @__PURE__ */ e(Oe, { snippets: u, canClick: !!E, onInsert: ce }),
547
+ /* @__PURE__ */ e("div", { className: "fill", children: /* @__PURE__ */ e(
548
+ ze,
549
+ {
550
+ output: F,
551
+ selection: T,
552
+ selectMode: v.selectMode,
553
+ onSelect: G,
554
+ onShortcut: W,
555
+ onMove: ie,
556
+ onDropSnippet: ae,
557
+ iframeRef: D
558
+ }
559
+ ) })
560
+ ] }),
561
+ /* @__PURE__ */ g("div", { className: "panel", children: [
562
+ /* @__PURE__ */ e("div", { className: "panel-header", children: "Inspector" }),
563
+ /* @__PURE__ */ e("div", { className: "inspector", children: /* @__PURE__ */ e(We, { selected: E, dispatch: d }) })
564
+ ] })
565
+ ] }),
566
+ m && /* @__PURE__ */ e("div", { className: "status" + (L.kind ? ` ${L.kind}` : ""), children: L.text })
567
+ ] });
568
+ }
569
+ export {
570
+ Ne as DEFAULT_SNIPPETS,
571
+ Ie as EXAMPLE_ENTRY,
572
+ Ae as EXAMPLE_FILES,
573
+ Ge as VisualEditor
574
+ };