burne-ui 1.7.2 → 1.7.3
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/components/core/Text/textStyles.d.ts +4 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +3126 -3136
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/themeRuntimeContext-C87sCqcm.cjs +14 -0
- package/dist/{themeRuntimeContext-Bvsrm3yI.js → themeRuntimeContext-DlRajdAC.js} +1 -0
- package/dist/tokens/config.d.ts +1 -1
- package/dist/ui.css +16 -116
- package/package.json +1 -1
- package/dist/themeRuntimeContext-DEEtVAx5.cjs +0 -14
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";const Ie=require("react/jsx-runtime"),g=require("react"),z=require("gsap"),oo=require("gsap/CustomEase");function Xo(e){var o,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(o=0;o<i;o++)e[o]&&(r=Xo(e[o]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function on(){for(var e,o,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(o=Xo(e))&&(n&&(n+=" "),n+=o);return n}const rn=(e,o)=>{const r=new Array(e.length+o.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<o.length;n++)r[e.length+n]=o[n];return r},nn=(e,o)=>({classGroupId:e,validator:o}),Yo=(e=new Map,o=null,r)=>({nextPart:e,validators:o,classGroupId:r}),Ae="-",Ao=[],tn="arbitrary..",sn=e=>{const o=ln(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return an(s);const a=s.split(Ae),d=a[0]===""&&a.length>1?1:0;return Zo(a,d,o)},getConflictingClassGroupIds:(s,a)=>{if(a){const d=n[s],c=r[s];return d?c?rn(c,d):d:c||Ao}return r[s]||Ao}}},Zo=(e,o,r)=>{if(e.length-o===0)return r.classGroupId;const i=e[o],t=r.nextPart.get(i);if(t){const c=Zo(e,o+1,t);if(c)return c}const s=r.validators;if(s===null)return;const a=o===0?e.join(Ae):e.slice(o).join(Ae),d=s.length;for(let c=0;c<d;c++){const b=s[c];if(b.validator(a))return b.classGroupId}},an=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=e.slice(1,-1),r=o.indexOf(":"),n=o.slice(0,r);return n?tn+n:void 0})(),ln=e=>{const{theme:o,classGroups:r}=e;return cn(r,o)},cn=(e,o)=>{const r=Yo();for(const n in e){const i=e[n];so(i,r,n,o)}return r},so=(e,o,r,n)=>{const i=e.length;for(let t=0;t<i;t++){const s=e[t];un(s,o,r,n)}},un=(e,o,r,n)=>{if(typeof e=="string"){dn(e,o,r);return}if(typeof e=="function"){fn(e,o,r,n);return}gn(e,o,r,n)},dn=(e,o,r)=>{const n=e===""?o:Ko(o,e);n.classGroupId=r},fn=(e,o,r,n)=>{if(mn(e)){so(e(n),o,r,n);return}o.validators===null&&(o.validators=[]),o.validators.push(nn(r,e))},gn=(e,o,r,n)=>{const i=Object.entries(e),t=i.length;for(let s=0;s<t;s++){const[a,d]=i[s];so(d,Ko(o,a),r,n)}},Ko=(e,o)=>{let r=e;const n=o.split(Ae),i=n.length;for(let t=0;t<i;t++){const s=n[t];let a=r.nextPart.get(s);a||(a=Yo(),r.nextPart.set(s,a)),r=a}return r},mn=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),n=Object.create(null);const i=(t,s)=>{r[t]=s,o++,o>e&&(o=0,n=r,r=Object.create(null))};return{get(t){let s=r[t];if(s!==void 0)return s;if((s=n[t])!==void 0)return i(t,s),s},set(t,s){t in r?r[t]=s:i(t,s)}}},ro="!",Po=":",bn=[],zo=(e,o,r,n,i)=>({modifiers:e,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),hn=e=>{const{prefix:o,experimentalParseClassName:r}=e;let n=i=>{const t=[];let s=0,a=0,d=0,c;const b=i.length;for(let k=0;k<b;k++){const O=i[k];if(s===0&&a===0){if(O===Po){t.push(i.slice(d,k)),d=k+1;continue}if(O==="/"){c=k;continue}}O==="["?s++:O==="]"?s--:O==="("?a++:O===")"&&a--}const p=t.length===0?i:i.slice(d);let w=p,v=!1;p.endsWith(ro)?(w=p.slice(0,-1),v=!0):p.startsWith(ro)&&(w=p.slice(1),v=!0);const y=c&&c>d?c-d:void 0;return zo(t,v,w,y)};if(o){const i=o+Po,t=n;n=s=>s.startsWith(i)?t(s.slice(i.length)):zo(bn,!1,s,void 0,!0)}if(r){const i=n;n=t=>r({className:t,parseClassName:i})}return n},vn=e=>{const o=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{o.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let t=0;t<r.length;t++){const s=r[t],a=s[0]==="[",d=o.has(s);a||d?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(s)):i.push(s)}return i.length>0&&(i.sort(),n.push(...i)),n}},Sn=e=>({cache:pn(e.cacheSize),parseClassName:hn(e),sortModifiers:vn(e),postfixLookupClassGroupIds:xn(e),...sn(e)}),xn=e=>{const o=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)o[r[n]]=!0;return o},yn=/\s+/,wn=(e,o)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:t,postfixLookupClassGroupIds:s}=o,a=[],d=e.trim().split(yn);let c="";for(let b=d.length-1;b>=0;b-=1){const p=d[b],{isExternal:w,modifiers:v,hasImportantModifier:y,baseClassName:k,maybePostfixModifierPosition:O}=r(p);if(w){c=p+(c.length>0?" "+c:c);continue}let q=!!O,L;if(q){const B=k.substring(0,O);L=n(B);const f=L&&s[L]?n(k):void 0;f&&f!==L&&(L=f,q=!1)}else L=n(k);if(!L){if(!q){c=p+(c.length>0?" "+c:c);continue}if(L=n(k),!L){c=p+(c.length>0?" "+c:c);continue}q=!1}const ue=v.length===0?"":v.length===1?v[0]:t(v).join(":"),re=y?ue+ro:ue,ne=re+L;if(a.indexOf(ne)>-1)continue;a.push(ne);const te=i(L,q);for(let B=0;B<te.length;++B){const f=te[B];a.push(re+f)}c=p+(c.length>0?" "+c:c)}return c},Tn=(...e)=>{let o=0,r,n,i="";for(;o<e.length;)(r=e[o++])&&(n=Qo(r))&&(i&&(i+=" "),i+=n);return i},Qo=e=>{if(typeof e=="string")return e;let o,r="";for(let n=0;n<e.length;n++)e[n]&&(o=Qo(e[n]))&&(r&&(r+=" "),r+=o);return r},Mo=(e,...o)=>{let r,n,i,t;const s=d=>{const c=o.reduce((b,p)=>p(b),e());return r=Sn(c),n=r.cache.get,i=r.cache.set,t=a,a(d)},a=d=>{const c=n(d);if(c)return c;const b=wn(d,r);return i(d,b),b};return t=s,(...d)=>t(Tn(...d))},En=[],E=e=>{const o=r=>r[e]||En;return o.isThemeGetter=!0,o},Jo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,er=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Cn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_n=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,On=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ln=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>kn.test(e),h=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),Qe=e=>e.endsWith("%")&&h(e.slice(0,-1)),G=e=>Cn.test(e),or=()=>!0,Fn=e=>Dn.test(e)&&!_n.test(e),ao=()=>!1,In=e=>On.test(e),Rn=e=>Ln.test(e),An=e=>!l(e)&&!u(e),Pn=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),zn=e=>V(e,tr,ao),l=e=>Jo.test(e),X=e=>V(e,ir,Fn),No=e=>V(e,$n,h),Mn=e=>V(e,ar,or),Nn=e=>V(e,sr,ao),Bo=e=>V(e,rr,ao),Bn=e=>V(e,nr,Rn),ke=e=>V(e,lr,In),u=e=>er.test(e),de=e=>oe(e,ir),Gn=e=>oe(e,sr),Go=e=>oe(e,rr),Hn=e=>oe(e,tr),Un=e=>oe(e,nr),Ce=e=>oe(e,lr,!0),Wn=e=>oe(e,ar,!0),V=(e,o,r)=>{const n=Jo.exec(e);return n?n[1]?o(n[1]):r(n[2]):!1},oe=(e,o,r=!1)=>{const n=er.exec(e);return n?n[1]?o(n[1]):r:!1},rr=e=>e==="position"||e==="percentage",nr=e=>e==="image"||e==="url",tr=e=>e==="length"||e==="size"||e==="bg-size",ir=e=>e==="length",$n=e=>e==="number",sr=e=>e==="family-name",ar=e=>e==="number"||e==="weight",lr=e=>e==="shadow",Ho=()=>{const e=E("color"),o=E("font"),r=E("text"),n=E("font-weight"),i=E("tracking"),t=E("leading"),s=E("breakpoint"),a=E("container"),d=E("spacing"),c=E("radius"),b=E("shadow"),p=E("inset-shadow"),w=E("text-shadow"),v=E("drop-shadow"),y=E("blur"),k=E("perspective"),O=E("aspect"),q=E("ease"),L=E("animate"),ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ne=()=>[...re(),u,l],te=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],f=()=>[u,l,d],F=()=>[U,"full","auto",...f()],Co=()=>[M,"none","subgrid",u,l],Do=()=>["auto",{span:["full",M,u,l]},M,u,l],xe=()=>[M,"auto",u,l],_o=()=>["auto","min","max","fr",u,l],je=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...f()],j=()=>[U,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],Xe=()=>[U,"screen","full","dvw","lvw","svw","min","max","fit",...f()],Ye=()=>[U,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],m=()=>[e,u,l],Oo=()=>[...re(),Go,Bo,{position:[u,l]}],Lo=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fo=()=>["auto","cover","contain",Hn,zn,{size:[u,l]}],Ze=()=>[Qe,de,X],D=()=>["","none","full",c,u,l],_=()=>["",h,de,X],ye=()=>["solid","dashed","dotted","double"],Io=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[h,Qe,Go,Bo],Ro=()=>["","none",y,u,l],we=()=>["none",h,u,l],Te=()=>["none",h,u,l],Ke=()=>[h,u,l],Ee=()=>[U,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[G],breakpoint:[G],color:[or],container:[G],"drop-shadow":[G],ease:["in","out","in-out"],font:[An],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[G],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[G],shadow:[G],spacing:["px",h],text:[G],"text-shadow":[G],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",U,l,u,O]}],container:["container"],"container-type":[{"@container":["","normal","size",u,l]}],"container-named":[Pn],columns:[{columns:[h,l,u,a]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ne()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",u,l]}],basis:[{basis:[U,"full","auto",a,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[h,U,"auto","initial","none",l]}],grow:[{grow:["",h,u,l]}],shrink:[{shrink:["",h,u,l]}],order:[{order:[M,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":Co()}],"col-start-end":[{col:Do()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":Co()}],"row-start-end":[{row:Do()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_o()}],"auto-rows":[{"auto-rows":_o()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...je(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...je()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":je()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...Xe()]}],"min-inline-size":[{"min-inline":["auto",...Xe()]}],"max-inline-size":[{"max-inline":["none",...Xe()]}],"block-size":[{block:["auto",...Ye()]}],"min-block-size":[{"min-block":["auto",...Ye()]}],"max-block-size":[{"max-block":["none",...Ye()]}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",r,de,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Wn,Mn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qe,l]}],"font-family":[{font:[Gn,Nn,o]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,u,l]}],"line-clamp":[{"line-clamp":[h,"none",u,No]}],leading:[{leading:[t,...f()]}],"list-image":[{"list-image":["none",u,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:m()}],"text-color":[{text:m()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[h,"from-font","auto",u,X]}],"text-decoration-color":[{decoration:m()}],"underline-offset":[{"underline-offset":[h,"auto",u,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"tab-size":[{tab:[M,u,l]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oo()}],"bg-repeat":[{bg:Lo()}],"bg-size":[{bg:Fo()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,u,l],radial:["",u,l],conic:[M,u,l]},Un,Bn]}],"bg-color":[{bg:m()}],"gradient-from-pos":[{from:Ze()}],"gradient-via-pos":[{via:Ze()}],"gradient-to-pos":[{to:Ze()}],"gradient-from":[{from:m()}],"gradient-via":[{via:m()}],"gradient-to":[{to:m()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-bs":[{"border-bs":_()}],"border-w-be":[{"border-be":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ye(),"hidden","none"]}],"divide-style":[{divide:[...ye(),"hidden","none"]}],"border-color":[{border:m()}],"border-color-x":[{"border-x":m()}],"border-color-y":[{"border-y":m()}],"border-color-s":[{"border-s":m()}],"border-color-e":[{"border-e":m()}],"border-color-bs":[{"border-bs":m()}],"border-color-be":[{"border-be":m()}],"border-color-t":[{"border-t":m()}],"border-color-r":[{"border-r":m()}],"border-color-b":[{"border-b":m()}],"border-color-l":[{"border-l":m()}],"divide-color":[{divide:m()}],"outline-style":[{outline:[...ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[h,u,l]}],"outline-w":[{outline:["",h,de,X]}],"outline-color":[{outline:m()}],shadow:[{shadow:["","none",b,Ce,ke]}],"shadow-color":[{shadow:m()}],"inset-shadow":[{"inset-shadow":["none",p,Ce,ke]}],"inset-shadow-color":[{"inset-shadow":m()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:m()}],"ring-offset-w":[{"ring-offset":[h,X]}],"ring-offset-color":[{"ring-offset":m()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":m()}],"text-shadow":[{"text-shadow":["none",w,Ce,ke]}],"text-shadow-color":[{"text-shadow":m()}],opacity:[{opacity:[h,u,l]}],"mix-blend":[{"mix-blend":[...Io(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Io()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[h]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":m()}],"mask-image-linear-to-color":[{"mask-linear-to":m()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":m()}],"mask-image-t-to-color":[{"mask-t-to":m()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":m()}],"mask-image-r-to-color":[{"mask-r-to":m()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":m()}],"mask-image-b-to-color":[{"mask-b-to":m()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":m()}],"mask-image-l-to-color":[{"mask-l-to":m()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":m()}],"mask-image-x-to-color":[{"mask-x-to":m()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":m()}],"mask-image-y-to-color":[{"mask-y-to":m()}],"mask-image-radial":[{"mask-radial":[u,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":m()}],"mask-image-radial-to-color":[{"mask-radial-to":m()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[h]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":m()}],"mask-image-conic-to-color":[{"mask-conic-to":m()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oo()}],"mask-repeat":[{mask:Lo()}],"mask-size":[{mask:Fo()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:Ro()}],brightness:[{brightness:[h,u,l]}],contrast:[{contrast:[h,u,l]}],"drop-shadow":[{"drop-shadow":["","none",v,Ce,ke]}],"drop-shadow-color":[{"drop-shadow":m()}],grayscale:[{grayscale:["",h,u,l]}],"hue-rotate":[{"hue-rotate":[h,u,l]}],invert:[{invert:["",h,u,l]}],saturate:[{saturate:[h,u,l]}],sepia:[{sepia:["",h,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":Ro()}],"backdrop-brightness":[{"backdrop-brightness":[h,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[h,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",h,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h,u,l]}],"backdrop-invert":[{"backdrop-invert":["",h,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[h,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[h,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",h,u,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[h,"initial",u,l]}],ease:[{ease:["linear","initial",q,u,l]}],delay:[{delay:[h,u,l]}],animate:[{animate:["none",L,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,u,l]}],"perspective-origin":[{"perspective-origin":ne()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:Ke()}],"skew-x":[{"skew-x":Ke()}],"skew-y":[{"skew-y":Ke()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:ne()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],zoom:[{zoom:[M,u,l]}],accent:[{accent:m()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:m()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","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",u,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":m()}],"scrollbar-track-color":[{"scrollbar-track":m()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,l]}],fill:[{fill:["none",...m()]}],"stroke-w":[{stroke:[h,de,X,No]}],stroke:[{stroke:["none",...m()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Vn=(e,{cacheSize:o,prefix:r,experimentalParseClassName:n,extend:i={},override:t={}})=>(se(e,"cacheSize",o),se(e,"prefix",r),se(e,"experimentalParseClassName",n),De(e.theme,t.theme),De(e.classGroups,t.classGroups),De(e.conflictingClassGroups,t.conflictingClassGroups),De(e.conflictingClassGroupModifiers,t.conflictingClassGroupModifiers),se(e,"postfixLookupClassGroups",t.postfixLookupClassGroups),se(e,"orderSensitiveModifiers",t.orderSensitiveModifiers),_e(e.theme,i.theme),_e(e.classGroups,i.classGroups),_e(e.conflictingClassGroups,i.conflictingClassGroups),_e(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),no(e,i,"postfixLookupClassGroups"),no(e,i,"orderSensitiveModifiers"),e),se=(e,o,r)=>{r!==void 0&&(e[o]=r)},De=(e,o)=>{if(o)for(const r in o)se(e,r,o[r])},_e=(e,o)=>{if(o)for(const r in o)no(e,o,r)},no=(e,o,r)=>{const n=o[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},qn=(e,...o)=>typeof e=="function"?Mo(Ho,e,...o):Mo(()=>Vn(Ho(),e),...o),jn='ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',Xn="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",Yn=.5,Zn={xsmall:{size:.6875,line:.875},small:{size:.75,line:1},base:{size:.875,line:1.25},mid:{size:1,line:1.5},large:{size:1.15,line:1.75},xlarge:{size:1.5,line:2},"2xlarge":{size:1.875,line:2.25},"3xlarge":{size:2.25,line:2.5}},Kn={dark:{base:.15,mid:.2,large:.24},light:{base:.08,mid:.12,large:.16}},Qn={base:[0,2,4,-2],mid:[0,4,10,-6],large:[0,8,20,-12]},$={fontFamilySans:jn,fontFamilyMono:Xn,shadowSize:Yn,textScale:Zn,shadowOpacity:Kn,shadowGeom:Qn},Jn=["none","base","mid","large"],lo={base:"--shadow-base",mid:"--shadow-mid",large:"--shadow-large"},et=$.shadowSize,cr=$.shadowOpacity,ur={base:[$.shadowGeom.base],mid:[$.shadowGeom.mid],large:[$.shadowGeom.large]};function ot(e){return`var(--shadow-${e})`}const rt={namespace:"burne",tailwindBridge:{"font-sans":"font-family-sans","font-mono":"font-family-mono","spacing-xsmall":"space-xsmall","spacing-small":"space-small","spacing-base":"space-base","spacing-mid":"space-mid","spacing-large":"space-large","spacing-xlarge":"space-xlarge","spacing-2xlarge":"space-2xlarge","spacing-3xlarge":"space-3xlarge","radius-xsmall":"radius-xsmall","radius-small":"radius-small","radius-base":"radius-base","radius-mid":"radius-mid","radius-large":"radius-large","color-background":"color-background","color-foreground":"color-foreground","color-muted":"color-muted","color-surface":"color-surface","color-border":"color-border","border-token":"color-border","color-primary":"color-primary","color-primary-foreground":"color-primary-foreground","color-primary-hover":"color-primary-hover","color-default-hover":"color-default-hover","color-transparent-hover":"color-transparent-hover","color-primary-tint":"color-primary-tint","color-primary-tint-strong":"color-primary-tint-strong","color-indicator":"color-indicator","color-indicator-foreground":"color-indicator-foreground","color-secondary":"color-secondary","color-secondary-foreground":"color-secondary-foreground","color-secondary-hover":"color-secondary-hover","color-tertiary":"color-tertiary","color-tertiary-foreground":"color-tertiary-foreground","color-tertiary-hover":"color-tertiary-hover","color-focus-ring":"color-focus-ring","color-focus-ring-danger":"color-focus-ring-danger","color-focus-ring-success":"color-focus-ring-success","color-focus-ring-info":"color-focus-ring-info","color-focus-ring-warning":"color-focus-ring-warning","color-converge-ripple-primary-fill":"color-converge-ripple-primary-fill","color-converge-ripple-neutral":"color-converge-ripple-neutral","color-converge-ripple-neutral-muted":"color-converge-ripple-neutral-muted","color-converge-ripple-danger":"color-converge-ripple-danger","color-converge-ripple-info":"color-converge-ripple-info","color-converge-ripple-success":"color-converge-ripple-success","color-converge-ripple-warning":"color-converge-ripple-warning","color-danger":"color-danger","color-danger-foreground":"color-danger-foreground","color-danger-fill-hover":"color-danger-fill-hover","color-success":"color-success","color-success-foreground":"color-success-foreground","color-success-fill-hover":"color-success-fill-hover","color-info":"color-info","color-info-foreground":"color-info-foreground","color-info-fill-hover":"color-info-fill-hover","color-warning":"color-warning","color-warning-foreground":"color-warning-foreground","color-warning-fill-hover":"color-warning-fill-hover","color-surface-tint-danger":"color-surface-tint-danger","color-surface-tint-success":"color-surface-tint-success","color-surface-tint-info":"color-surface-tint-info","color-surface-tint-warning":"color-surface-tint-warning","color-surface-tint-danger-hover":"color-surface-tint-danger-hover","color-surface-tint-success-hover":"color-surface-tint-success-hover","color-surface-tint-info-hover":"color-surface-tint-info-hover","color-surface-tint-warning-hover":"color-surface-tint-warning-hover","icon-xsmall":"icon-size-xsmall","icon-small":"icon-size-small","icon-base":"icon-size-base","icon-mid":"icon-size-mid","icon-large":"icon-size-large","icon-xlarge":"icon-size-xlarge","icon-2xlarge":"icon-size-2xlarge","icon-3xlarge":"icon-size-3xlarge"}},nt=["xsmall","small","base","mid","large","xlarge","2xlarge","3xlarge"],tt=["xsmall","small","base","mid","large"],it=["small","mid","xsmall","accent-header","header-1","header-2","large"],st=qn({extend:{theme:{spacing:[...nt],radius:[...tt],text:[...it]}}});function x(...e){return st(on(e))}const J={small:{minWButton:"min-w-button-small",padX:"px-base",padY:"py-xsmall",affixPadX:"px-base",affixText:"text-base",controlPad:"px-base py-xsmall text-small",controlText:"small",icon:"icon-small",chevronIcon:"icon-small",spinnerIcon:"icon-small",spinnerBorder:"border-2",rounded:"rounded-small"},base:{minWButton:"min-w-button-base",padX:"px-mid",padY:"py-small",affixPadX:"px-mid",affixText:"text-base",controlPad:"px-mid py-small text-base",controlText:"base",icon:"icon-base",chevronIcon:"icon-base",spinnerIcon:"icon-base",spinnerBorder:"border-2",rounded:"rounded-base"},mid:{minWButton:"min-w-button-mid",padX:"px-large",padY:"py-base",affixPadX:"px-large",affixText:"text-mid",controlPad:"px-large py-base text-mid",controlText:"mid",icon:"icon-mid",chevronIcon:"icon-mid",spinnerIcon:"icon-mid",spinnerBorder:"border-2",rounded:"rounded-mid"},large:{minWButton:"min-w-button-large",padX:"px-xlarge",padY:"py-mid",affixPadX:"px-xlarge",affixText:"text-large",controlPad:"px-xlarge py-mid text-large",controlText:"large",icon:"icon-large",chevronIcon:"icon-large",spinnerIcon:"icon-large",spinnerBorder:"border-[2.5px]",rounded:"rounded-large"}},at="(prefers-reduced-motion: reduce)";function dr(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia(at)}function he(){var e;return((e=dr())==null?void 0:e.matches)??!1}function lt(e){const o=dr();if(!o)return()=>{};const r=()=>e();return o.addEventListener("change",r),()=>o.removeEventListener("change",r)}function ct(){return he()}function ut(){return!1}function dt(){return g.useSyncExternalStore(lt,ct,ut)}const fr={surfaceDuration:"--motion-surface-duration"},Ge={interactiveDuration:280,interactiveEase:"power2.out",hoverLiftEase:"sine.inOut",tooltipDuration:200,modalDuration:280,switchThumbDuration:340,switchThumbEase:"back.out(1.4)",selectionFillEase:"back.out(1.25)",selectionFillDuration:280,hoverLiftScale:1.025,badgeAnchorHoverLiftScale:1.052,pressSqueezeScale:[1,.98,1],pressSqueezeDurationFactor:1.15,rippleDefaultDuration:700,rippleDefaultOpacityFrom:.42,rippleExpandableDuration:700,rippleExpandableOpacityFrom:.34,rippleEaseCss:"cubic-bezier(0.25, 0.55, 0.35, 0.95)",feedbackExpandDuration:720,expandDuration:200,expandOpenEase:"sine.inOut",surfaceTransitionDuration:600,toastDismissDuration:220,toastDismissEase:"power2.in",enableAnimations:!0,enableHoverLift:!0,enablePressSqueeze:!0,enableToggleButtonFill:!0,enableRipple:!0,enableExpandable:!0,enableToastStack:!0,enableAsyncButtonCrossfade:!0,enableContentFade:!0,enableFeedbackExpand:!0,progressFillDuration:600,progressFillEase:"power2.out",enableProgressFill:!0,progressIndeterminateDuration:1500,progressIndeterminateEase:"expo.inOut",loadingDotsDuration:900,loadingDotsEaseUp:"power2.out",loadingDotsEaseDown:"power2.in",enableLoadingDots:!0,enableModalMotion:!0,enableSwitchThumb:!0,enableTabsIndicator:!0,enablePaginationFlip:!0,enableSelectionFill:!0};let S={...Ge},gr=0;const to=new Set;function ft(e){return to.add(e),()=>{to.delete(e)}}function gt(){return gr}function co(e,o=S){if(typeof document>"u")return;const r=e??document.documentElement,n=fr.surfaceDuration;o.surfaceTransitionDuration===Ge.surfaceTransitionDuration?r.style.removeProperty(n):r.style.setProperty(n,`${o.surfaceTransitionDuration}ms`)}function mr(e){S={...S,...e},gr+=1,co(document.documentElement,S);for(const o of to)o()}function N(){return S}function mt(){return S.enableAnimations}function ve(e){return S.enableAnimations&&S[e]}function pt(){return{duration:S.interactiveDuration/1e3,ease:S.interactiveEase}}function bt(){return{duration:S.modalDuration/1e3,ease:S.interactiveEase}}function pr(){return S.interactiveDuration*S.pressSqueezeDurationFactor/1e3}function ht(){return{duration:S.selectionFillDuration/1e3,ease:S.selectionFillEase}}function vt(){return{duration:S.tooltipDuration/1e3,ease:S.interactiveEase}}function St(){return{duration:S.switchThumbDuration/1e3,ease:S.switchThumbEase}}function xt(){return{duration:S.expandDuration/1e3,ease:S.expandOpenEase}}function yt(){return{duration:S.tooltipDuration/1e3,ease:S.interactiveEase}}function wt(){return{duration:S.feedbackExpandDuration/1e3}}function Tt(){return{duration:S.progressFillDuration/1e3,ease:S.progressFillEase}}function Et(){return{duration:S.progressIndeterminateDuration/1e3,ease:S.progressIndeterminateEase}}function kt(){return{duration:S.toastDismissDuration/1e3,ease:S.toastDismissEase}}const Ct=3;function Dt(){const e=S.loadingDotsDuration/1e3;return{cycleSec:e,staggerSec:e/Ct,halfCycleSec:e/2,easeUp:S.loadingDotsEaseUp,easeDown:S.loadingDotsEaseDown,enabled:ve("enableLoadingDots")}}const _t="pointer-events-none absolute z-0 rounded-full",Je="brn-ripple";let Uo=!1,Wo="";function Ot(){Uo||(z.registerPlugin(oo.CustomEase),Uo=!0)}function br(){Ot();const e=N().rippleEaseCss;if(Wo!==e){const o=/cubic-bezier\(\s*([\d.]+),\s*([\d.]+),\s*([\d.]+),\s*([\d.]+)\s*\)/.exec(e);o?oo.CustomEase.create(Je,`${o[1]},${o[2]},${o[3]},${o[4]}`):oo.CustomEase.create(Je,"0.25,0.55,0.35,0.95"),Wo=e}return Je}function R(...e){z.killTweensOf(e);for(const o of e)hr(o)}function H(e,o){e.style.willChange=o?"transform":""}function hr(e){if(e instanceof HTMLElement){H(e,!1);return}if(Array.isArray(e))for(const o of e)hr(o)}function uo(e,o){return function(){if(H(e,!1),typeof o=="function")return o.call(this)}}const eo=.12;function Lt({id:e,x:o,y:r,size:n,durationMs:i,opacityFrom:t,background:s,direction:a,onDone:d}){const c=g.useRef(null),b=g.useRef(d);return b.current=d,g.useLayoutEffect(()=>{const p=c.current;if(!p)return;let w=!1;R(p);const v=a==="out"?eo:1,y=a==="out"?1:eo,k=z.fromTo(p,{scale:v,autoAlpha:t},{scale:y,autoAlpha:0,duration:i/1e3,ease:br(),onComplete:()=>{w||b.current(e)}});return()=>{w=!0,k.kill(),R(p)}},[e,o,r,n,i,t,s,a]),Ie.jsx("span",{ref:c,className:_t,style:{left:o-n/2,top:r-n/2,width:n,height:n,background:s,transformOrigin:"center center",transform:`scale(${a==="out"?eo:1})`},"aria-hidden":!0})}const Ft=g.memo(function({ripples:o,tone:r,onDone:n,durationMs:i=N().rippleDefaultDuration,opacityFrom:t=N().rippleDefaultOpacityFrom,direction:s="in"}){return Ie.jsx(Ie.Fragment,{children:o.map(a=>Ie.jsx(Lt,{...a,background:r,durationMs:i,opacityFrom:t,direction:s,onDone:n},a.id))})});function It(e,o,r,n){return Math.max(...[[0,0],[r,0],[0,n],[r,n]].map(([t,s])=>Math.hypot(t-e,s-o)))}function fo(e,o,r,n){const i=e.getBoundingClientRect(),t=o-i.left,s=r-i.top,a=It(t,s,i.width,i.height)*2;return{id:n,x:t,y:s,size:a}}function Rt(e,o){const r=e.currentTarget;return r?fo(r,e.clientX,e.clientY,o):null}function At(){const e=g.useRef(0),[o,r]=g.useState([]),n=g.useCallback(s=>{r(a=>a.filter(d=>d.id!==s))},[]),i=g.useCallback((s,a,d)=>{const c=++e.current,b=fo(s,a,d,c);r(p=>[...p,b])},[]),t=g.useCallback(s=>{const a=s.currentTarget;a&&i(a,s.clientX,s.clientY)},[i]);return{ripples:o,pushFromPointer:t,pushAtClientCoords:i,dismiss:n}}const Pt=["small","base","mid","strong","bold"],He={small:"--font-w-small",base:"--font-w-base",mid:"--font-w-mid",strong:"--font-w-strong",bold:"--font-w-bold"},vr={small:400,base:500,mid:600,strong:700,bold:800};function zt(e){return`var(--font-w-${e})`}const ee=$.textScale,Sr=1024,go=`(max-width: ${Sr}px), (hover: none), (pointer: coarse)`,Mt=`${go}, (any-pointer: coarse)`,Nt=["--border-width","--focus-ring-width","--focus-ring-offset","--motion-surface-duration","--motion-surface-ease","--motion-shadow-ease","--overlay-backdrop-color","--overlay-backdrop-blur","--overlay-backdrop-saturate","--overlay-backdrop-scrim","--z-dialog","--z-dropdown","--z-dropdown-sub","--z-popover","--z-toast","--z-tooltip","--color-background","--color-surface","--color-border","--color-foreground","--color-muted","--color-muted-foreground","--color-primary","--color-primary-foreground","--color-primary-hover","--color-default-hover","--color-transparent-hover","--color-primary-tint","--color-primary-tint-strong","--color-indicator","--color-indicator-foreground","--color-secondary","--color-secondary-foreground","--color-secondary-hover","--color-tertiary","--color-tertiary-foreground","--color-tertiary-hover","--color-focus-ring","--color-focus-ring-danger","--color-focus-ring-success","--color-focus-ring-info","--color-focus-ring-warning","--color-converge-ripple-primary-fill","--color-converge-ripple-neutral","--color-converge-ripple-neutral-muted","--color-converge-ripple-danger","--color-converge-ripple-info","--color-converge-ripple-success","--color-converge-ripple-warning","--color-danger","--color-danger-fill-hover","--color-danger-foreground","--color-success","--color-success-foreground","--color-success-fill-hover","--color-info","--color-info-foreground","--color-info-fill-hover","--color-warning","--color-warning-foreground","--color-warning-fill-hover","--color-surface-tint-danger","--color-surface-tint-success","--color-surface-tint-info","--color-surface-tint-warning","--color-surface-tint-danger-hover","--color-surface-tint-success-hover","--color-surface-tint-info-hover","--color-surface-tint-warning-hover","--font-family-sans","--font-family-mono","--font-w-small","--font-w-base","--font-w-mid","--font-w-strong","--font-w-bold","--space","--space-xsmall","--space-small","--space-base","--space-mid","--space-large","--space-xlarge","--space-2xlarge","--space-3xlarge","--size","--size-scale-xsmall","--size-scale-small","--size-scale-base","--size-scale-mid","--size-scale-large","--size-scale-xlarge","--size-scale-2xlarge","--size-scale-3xlarge","--selection-indicator-xsmall","--selection-indicator-small","--selection-indicator-base","--selection-indicator-mid","--selection-indicator-large","--selection-indicator-radius-xsmall","--selection-indicator-radius-small","--selection-indicator-radius-base","--selection-indicator-radius-mid","--selection-indicator-radius-large","--radius","--radius-xsmall","--radius-small","--radius-base","--radius-mid","--radius-large","--text-scale-xsmall","--text-scale-xsmall--line-height","--text-scale-small","--text-scale-small--line-height","--text-scale-base","--text-scale-base--line-height","--text-scale-mid","--text-scale-mid--line-height","--text-scale-large","--text-scale-large--line-height","--text-scale-xlarge","--text-scale-xlarge--line-height","--text-scale-2xlarge","--text-scale-2xlarge--line-height","--text-scale-3xlarge","--text-scale-3xlarge--line-height","--text-accent-header-size","--text-accent-header-line-height","--text-accent-header-weight","--text-header-1-size","--text-header-1-line-height","--text-header-1-weight","--text-header-2-size","--text-header-2-line-height","--text-header-2-weight","--text-large-size","--text-large-line-height","--text-large-weight","--text-base-size","--text-base-line-height","--text-base-weight","--text-small-size","--text-small-line-height","--text-small-weight","--text-mid-size","--text-mid-line-height","--text-mid-weight","--text-xsmall-size","--text-xsmall-line-height","--text-xsmall-weight","--max-component-xsmall","--max-component-small","--max-component-base","--max-component-mid","--max-component-large","--max-component-xlarge","--max-component-2xlarge","--button-min-width-small","--button-min-width-base","--button-min-width-mid","--button-min-width-large","--control-height-xsmall","--control-height-small","--control-height-base","--control-height-mid","--control-height-large","--control-size-xsmall","--control-size-small","--control-size-base","--control-size-mid","--control-size-large","--avatar-size-small","--avatar-size-base","--avatar-size-mid","--avatar-size-large","--icon-size-xsmall","--icon-size-small","--icon-size-base","--icon-size-mid","--icon-size-large","--icon-size-xlarge","--icon-size-2xlarge","--icon-size-3xlarge","--shadow-size","--shadow-none","--shadow-base","--shadow-mid","--shadow-large","--toast-scrim-size","--toast-scrim-density"];function T(e){return`var(--color-${e})`}function Bt(e,o){return o==null||!(o instanceof Node)?!0:!e.contains(o)}function mo({enabled:e,targetRef:o,pointerInsideRef:r,skipHover:n,killMotionOnUnmount:i=!0,onEnter:t,onLeave:s}){return g.useEffect(()=>{if(!i)return;const a=o.current;return()=>{a&&R(a)}},[i,o]),g.useMemo(()=>({onPointerOver:c=>{if(!e||c.defaultPrevented)return;const b=c.currentTarget;if(!(c.target instanceof Node)||!b.contains(c.target)||!Bt(b,c.relatedTarget)||n!=null&&n())return;const p=o.current;p&&(r&&(r.current=!0),t(p,c))},onPointerOut:c=>{const b=c.currentTarget,p=c.relatedTarget;if(p instanceof Node&&b.contains(p)||(r&&(r.current=!1),!e)||n!=null&&n())return;const w=o.current;w&&s(w,c)}}),[e,t,s,r,n,o])}function Gt(e){return e||document.documentElement}function io(e,o){return typeof window>"u"?"none":getComputedStyle(Gt(o)).getPropertyValue(e).trim()||"none"}function Se(e){return e==="none"?"var(--shadow-none)":`var(${lo[e]})`}const Pe=()=>Se("none"),le=()=>Se("base"),xr=()=>Se("mid"),Ht=()=>Se("large");function Ut(e,o){return io(e==="none"?"--shadow-none":lo[e],o)}function Ue(e,o){e&&e.style.setProperty("--el-shadow",o)}function Wt(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia(go).matches}function A(){return he()||Wt()||!ve("enableHoverLift")}const $t=2.4,Vt=.003,qt=1.8,jt=.002;function yr(e){const{width:o,height:r}=e.getBoundingClientRect(),n=Math.max(o,r,1),i=1-N().pressSqueezeScale[1];return 1-Math.min(Math.max($t/n,Vt),i)}function po(e){return bo(e)}function Xt(e){return yr(e)}function bo(e){const{width:o,height:r}=e.getBoundingClientRect(),n=Math.max(o,r,1);return 1+Math.min(Math.max(qt/n,jt),N().hoverLiftScale-1)}function me(e,o,r,n){if(A()){o||(R(e),z.set(e,{scale:1}),n&&e.style.setProperty("--el-shadow",n.idle??Pe()));return}R(e);const i=o?r!==void 0?r:bo(e):1,t=N();if(H(e,!0),z.to(e,{scale:i,duration:t.interactiveDuration/1e3,ease:t.hoverLiftEase,overwrite:"auto",onComplete:uo(e)}),n){const s=n.idle??Pe();e.style.setProperty("--el-shadow",o?n.hover:s)}}function Yt(e,o){var w;if(!ve("enablePressSqueeze"))return(w=o==null?void 0:o.onReleaseStart)==null||w.call(o),Promise.resolve();R(e);const r=yr(e),n=N(),i=pr(),t=i*.3,s=!A(),a=!!(o!=null&&o.pointerInside&&s),d=a?(o==null?void 0:o.liftScale)!==void 0?o.liftScale:bo(e):1,c=a?i:i*.5,b=a?n.hoverLiftEase:"sine.inOut",p=o==null?void 0:o.shadow;if(p){const v=p.idle??Pe();e.style.setProperty("--el-shadow",a?p.hover:v)}return new Promise(v=>{H(e,!0),z.timeline({onComplete:()=>{H(e,!1),v()}}).to(e,{scale:r,duration:t,ease:"power1.out",overwrite:"auto"}).add(()=>{var y;(y=o==null?void 0:o.onReleaseStart)==null||y.call(o)}).to(e,{scale:d,duration:c,ease:b,overwrite:"auto"})})}function wr(e,o,r,n,i){const t=g.useCallback(a=>{me(a,!0,n,i)},[n,i]),s=g.useCallback(a=>{me(a,!1,n,i)},[n,i]);return mo({enabled:o,targetRef:e,pointerInsideRef:r,skipHover:A,onEnter:t,onLeave:s})}const pe="data-gloss-motion-init",ho="origin-center",$o={rest:{angle1:-75,angle2:-45,shineX:0,shineY:50},hover:{angle1:-80,angle2:-45,shineX:10,shineY:50},press:{angle1:-75,angle2:-15,shineX:15,shineY:15}},Zt=120,Kt=.35;function Qt(e){const{width:o,height:r}=e.getBoundingClientRect(),n=Math.max(o,r,1);return Math.min(1,Math.max(Kt,Zt/n))}function Jt(e,o){const r=$o.rest,n=$o[o];if(o==="rest")return n;const i=Qt(e);return{angle1:r.angle1+(n.angle1-r.angle1)*i,angle2:r.angle2+(n.angle2-r.angle2)*i,shineX:r.shineX+(n.shineX-r.shineX)*i,shineY:r.shineY+(n.shineY-r.shineY)*i}}function Y(e,o){const r=getComputedStyle(e).getPropertyValue(o).trim();return r||(typeof document>"u"?"":getComputedStyle(document.documentElement).getPropertyValue(o).trim())}function ei(e,o){const r=Jt(e,o);return{"--gloss-angle-1":`${r.angle1}deg`,"--gloss-angle-2":`${r.angle2}deg`,"--gloss-shine-x":r.shineX,"--gloss-shine-y":r.shineY}}function oi(e,o){const r=Y(e,"--gloss-inset-top"),n=Y(e,"--gloss-inset-bottom"),i=Y(e,"--gloss-elevation"),t=Y(e,"--gloss-elevation-hover")||i,s=Y(e,"--gloss-inner-glow"),a=Y(e,"--gloss-glow-hover"),d=Y(e,"--gloss-press-inset"),c=`inset 0 0.425em 0.425em ${r}, inset 0 -0.225em 0.225em ${n}`,b=o==="hover"?`0 0.125em 0.3125em -0.1875em ${t}`:o==="press"?`0 0.04em 0.08em -0.0625em ${i}`:`0 0.0625em 0.125em -0.0625em ${i}`,p=o==="hover"?`inset 0 0 0.1em 0.25em ${a}`:`inset 0 0 0.05em 0.1em ${s}`,w=o==="press"?`inset 0 0.25em 0.06em 0 ${d}`:"inset 0 0.25em 0.06em 0 rgb(0 0 0 / 0)";return`${c}, ${b}, ${p}, ${w}`}function ae(e,o){return{...ei(e,o),boxShadow:oi(e,o)}}function ze(e){R(e),z.set(e,{scale:1,...ae(e,"rest")})}let K=null,Re=0;function Tr(e){if(A()){ze(e);return}const o=e.matches(":hover")||e.matches(":focus-within");if(R(e),o){z.set(e,{scale:po(e),...ae(e,"hover")});return}ze(e)}function ri(e){if(typeof document>"u")return;document.querySelectorAll(`[${pe}]`).forEach(Tr)}function ni(){K||typeof document>"u"||(K=new MutationObserver(e=>{for(const o of e)if(o.type==="attributes"&&o.attributeName==="data-theme"){ri();return}}),K.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))}function ti(){K==null||K.disconnect(),K=null}function ii(e){e.hasAttribute(pe)||(e.setAttribute(pe,""),Re+=1,ni(),ze(e))}function Vo(e){e.hasAttribute(pe)&&(e.removeAttribute(pe),Re=Math.max(0,Re-1),Re===0&&ti())}function vo(e,o=!0){let r=null;return n=>{if(r&&r!==n&&(Vo(r),r=null),e.current=n,n&&o){ii(n),r=n;return}r&&(Vo(r),r=null)}}function si(e,o=!0){const r=g.useRef(null),n=g.useMemo(()=>vo(r,o),[o]);return g.useCallback(i=>{n(i),r.current=i,typeof e=="function"?e(i):e&&(e.current=i)},[n,e])}function be(e,o,r){if(A()){o||(R(e),z.set(e,{scale:1,...ae(e,"rest")}));return}R(e);const n=N(),i=o?"hover":"rest",t=o?r!==void 0?r:po(e):1;H(e,!0),z.to(e,{scale:t,...ae(e,i),duration:n.interactiveDuration/1e3,ease:n.hoverLiftEase,overwrite:"auto",onComplete:uo(e)})}function Er(e,o=!1,r,n){if(he())return Promise.resolve();const i=N();if(!ve("enablePressSqueeze"))return n==null||n(),A()||be(e,o,r),Promise.resolve();R(e);const t=Xt(e),s=pr(),a=s*.3,d=s*1,c=!A(),b=o&&c,p=b?"hover":"rest",w=b?po(e):1;return new Promise(v=>{H(e,!0),z.timeline({onComplete:()=>{H(e,!1),v()}}).to(e,{...ae(e,"press"),scale:t,duration:a,ease:"power1.out",overwrite:"auto"}).add(()=>{n==null||n()}).to(e,{...ae(e,p),scale:w,duration:d,ease:i.hoverLiftEase,overwrite:"auto"})})}function kr(e,o,r){const n=r==null?void 0:r.liftScale,i=r==null?void 0:r.pointerInsideRef;g.useLayoutEffect(()=>{if(!o)return;const a=e.current;a&&ze(a)},[o,e]);const t=g.useCallback(a=>{be(a,!0,n)},[n]),s=g.useCallback(a=>{be(a,!1,n)},[n]);return mo({enabled:o,targetRef:e,pointerInsideRef:i,skipHover:A,onEnter:t,onLeave:s})}function ai(e,o){const r=g.useRef(!1),n=g.useRef(!1),i=g.useRef(!1),t=g.useMemo(()=>vo(e,o),[e,o]),s=g.useCallback(()=>{const v=e.current;if(!v||!o||A())return;const y=r.current||n.current;be(v,y)},[o,e]),a=kr(e,o,{pointerInsideRef:r});g.useLayoutEffect(()=>{if(!o)return;const v=e.current;if(!v||typeof ResizeObserver>"u")return;const y=new ResizeObserver(()=>{Tr(v)});return y.observe(v),()=>y.disconnect()},[o,e]);const d=g.useCallback(v=>{a.onPointerOver(v),n.current&&s()},[a,s]),c=g.useCallback(v=>{a.onPointerOut(v),n.current&&s()},[a,s]),b=g.useCallback(()=>{o&&(n.current=!0,!(i.current||r.current)&&s())},[o,s]),p=g.useCallback(v=>{if(!o)return;const y=e.current;y&&v.relatedTarget instanceof Node&&y.contains(v.relatedTarget)||(n.current=!1,s())},[o,e,s]),w=g.useCallback(()=>{if(!o)return;const v=e.current;!v||he()||(r.current=!0,i.current=!0,Er(v,!0).finally(()=>{i.current=!1}))},[o,e]);return{bindShellRef:t,shellHoverMotionClass:o?ho:"",onShellPointerEnter:d,onShellPointerLeave:c,onShellFocusIn:b,onShellFocusOut:p,onShellPointerDown:w}}const We="animate-shadow origin-center";function li(){return{hover:le()}}function So(){return{idle:le(),hover:xr()}}function ci(e,o,r=le,n){g.useLayoutEffect(()=>{o&&Ue(e.current,r())},[o,e,r,n])}function Cr(e,o,r){const n=g.useMemo(()=>So(),[]),i=(r==null?void 0:r.resolveIdle)??le;g.useLayoutEffect(()=>{o&&Ue(e.current,i())},[o,e,i,r==null?void 0:r.idleSyncKey]);const t=g.useCallback(a=>{if(!o||a.defaultPrevented)return;const d=e.current;!d||A()||me(d,!0,r==null?void 0:r.liftScale,n)},[o,r==null?void 0:r.liftScale,n,e]),s=g.useCallback(a=>{if(!o)return;const d=e.current;!d||A()||me(d,!1,r==null?void 0:r.liftScale,n)},[o,r==null?void 0:r.liftScale,n,e]);return{motionClass:o?We:"",shadow:n,onPointerEnter:t,onPointerLeave:s}}function ui(e,o,r){const n=g.useMemo(()=>So(),[]),i=(r==null?void 0:r.resolveIdle)??le;g.useLayoutEffect(()=>{o&&Ue(e.current,i())},[o,e,i,r==null?void 0:r.idleSyncKey]);const t=wr(e,o,r==null?void 0:r.pointerInsideRef,r==null?void 0:r.liftScale,n);return{motionClass:o?We:"",shadow:n,...t}}const fe={danger:"text-danger",success:"text-success",info:"text-info",warning:"text-warning"},Dr={danger:"bg-surface-tint-danger border-token",success:"bg-surface-tint-success border-token",info:"bg-surface-tint-info border-token",warning:"bg-surface-tint-warning border-token"},_r={danger:"bg-danger border border-transparent text-danger-foreground",success:"bg-success border border-transparent text-success-foreground",info:"bg-info border border-transparent text-info-foreground",warning:"bg-warning border border-transparent text-warning-foreground"},di={danger:"text-danger-foreground",success:"text-success-foreground",info:"text-info-foreground",warning:"text-warning-foreground"},Or={danger:"border-token-danger",success:"border-token-success",info:"border-token-info",warning:"border-token-warning"},Lr="surface-color-transition motion-reduce:transition-none",fi="text-color-transition motion-reduce:transition-none",gi={default:{"focus-visible":"hover:bg-default-hover focus-visible:bg-default-hover","focus-within":"hover:bg-default-hover focus-within:bg-default-hover"},"transparent-hover":{"focus-visible":"hover:bg-transparent-hover focus-visible:bg-transparent-hover","focus-within":"hover:bg-transparent-hover focus-within:bg-transparent-hover"},primary:{"focus-visible":"hover:bg-primary-hover focus-visible:bg-primary-hover","focus-within":"hover:bg-primary-hover focus-within:bg-primary-hover"},secondary:{"focus-visible":"hover:bg-secondary-hover focus-visible:bg-secondary-hover","focus-within":"hover:bg-secondary-hover focus-within:bg-secondary-hover"},danger:{"focus-visible":"hover:bg-surface-tint-danger focus-visible:bg-surface-tint-danger","focus-within":"hover:bg-surface-tint-danger focus-within:bg-surface-tint-danger"},warning:{"focus-visible":"hover:bg-surface-tint-warning focus-visible:bg-surface-tint-warning","focus-within":"hover:bg-surface-tint-warning focus-within:bg-surface-tint-warning"},info:{"focus-visible":"hover:bg-surface-tint-info focus-visible:bg-surface-tint-info","focus-within":"hover:bg-surface-tint-info focus-within:bg-surface-tint-info"},success:{"focus-visible":"hover:bg-surface-tint-success focus-visible:bg-surface-tint-success","focus-within":"hover:bg-surface-tint-success focus-within:bg-surface-tint-success"},"danger-tint-hover":{"focus-visible":"hover:bg-surface-tint-danger-hover focus-visible:bg-surface-tint-danger-hover","focus-within":"hover:bg-surface-tint-danger-hover focus-within:bg-surface-tint-danger-hover"},"warning-tint-hover":{"focus-visible":"hover:bg-surface-tint-warning-hover focus-visible:bg-surface-tint-warning-hover","focus-within":"hover:bg-surface-tint-warning-hover focus-within:bg-surface-tint-warning-hover"},"info-tint-hover":{"focus-visible":"hover:bg-surface-tint-info-hover focus-visible:bg-surface-tint-info-hover","focus-within":"hover:bg-surface-tint-info-hover focus-within:bg-surface-tint-info-hover"},"success-tint-hover":{"focus-visible":"hover:bg-surface-tint-success-hover focus-visible:bg-surface-tint-success-hover","focus-within":"hover:bg-surface-tint-success-hover focus-within:bg-surface-tint-success-hover"},"danger-fill":{"focus-visible":"hover:bg-danger-fill-hover focus-visible:bg-danger-fill-hover","focus-within":"hover:bg-danger-fill-hover focus-within:bg-danger-fill-hover"},"warning-fill":{"focus-visible":"hover:bg-warning-fill-hover focus-visible:bg-warning-fill-hover","focus-within":"hover:bg-warning-fill-hover focus-within:bg-warning-fill-hover"},"info-fill":{"focus-visible":"hover:bg-info-fill-hover focus-visible:bg-info-fill-hover","focus-within":"hover:bg-info-fill-hover focus-within:bg-info-fill-hover"},"success-fill":{"focus-visible":"hover:bg-success-fill-hover focus-visible:bg-success-fill-hover","focus-within":"hover:bg-success-fill-hover focus-within:bg-success-fill-hover"}};function Fr(e="default",o="focus-visible"){return gi[e][o]}function Ir(e="default"){return x(Lr,Fr(e,"focus-visible"))}const Z={default:"bg-surface text-foreground border-token",primary:"bg-primary text-primary-foreground border border-transparent",outline:"bg-transparent border-token text-foreground",secondary:"bg-secondary text-secondary-foreground border border-token",ghost:"bg-transparent text-foreground border border-transparent",gloss:""},mi=new Set(["default","primary","outline","secondary","ghost"]),Rr={default:{root:Z.default,loaderText:"text-foreground"},primary:{root:Z.primary,loaderText:"text-primary-foreground"},outline:{root:Z.outline,loaderText:"text-foreground"},secondary:{root:Z.secondary,loaderText:"text-secondary-foreground"},ghost:{root:Z.ghost,loaderText:"text-foreground"},gloss:{root:Z.gloss,loaderText:"text-foreground"}},pi={default:"",danger:"gloss-btn-danger",success:"gloss-btn-success",info:"gloss-btn-info",warning:"gloss-btn-warning"},bi={default:"",danger:"[--color-focus-ring:var(--color-focus-ring-danger)]",success:"[--color-focus-ring:var(--color-focus-ring-success)]",info:"[--color-focus-ring:var(--color-focus-ring-info)]",warning:"[--color-focus-ring:var(--color-focus-ring-warning)]"},hi={default:T("converge-ripple-neutral"),danger:T("converge-ripple-danger"),success:T("converge-ripple-success"),info:T("converge-ripple-info"),warning:T("converge-ripple-warning")},vi={danger:T("converge-ripple-danger"),success:T("converge-ripple-success"),info:T("converge-ripple-info"),warning:T("converge-ripple-warning")},Si={small:"[&_svg]:icon-small",base:"[&_svg]:icon-base",mid:"[&_svg]:icon-mid",large:"[&_svg]:icon-large"},xi={small:"small",base:"base",mid:"mid",large:"large"},yi="relative overflow-hidden inline-flex items-center justify-center outline-none focus-ring disabled:pointer-events-none",wi="pointer-events-none absolute inset-0 z-0 overflow-hidden",Ti="relative z-[1] grid w-full min-w-0 place-items-center",Ei="origin-center",ki="col-start-1 row-start-1 inline-flex w-full min-w-0 items-center justify-center gap-xsmall",Ci="inline-flex shrink-0 items-center justify-center",Di="min-w-0 shrink",xo="col-start-1 row-start-1 flex items-center justify-center",_i="text-success",Oi="text-danger",Li="animate-spin motion-reduce:animate-none",Fi="cursor-pointer",Ii="opacity-50";function Ri(e,o){const{root:r}=Rr[e];return e==="outline"&&o!=="default"?"bg-transparent text-foreground":r}function Ai(e){return Rr[e].loaderText}function Pi(e,o){if(o==="default")switch(e){case"default":return"default";case"primary":return"primary";case"outline":return"transparent-hover";case"secondary":return"secondary";case"ghost":return"transparent-hover";case"gloss":return"default"}switch(e){case"default":return`${o}-tint-hover`;case"primary":return`${o}-fill`;case"outline":case"ghost":return o;case"secondary":return"secondary";case"gloss":return"default"}}function zi(e,o){if(o==="default")return"";switch(e){case"default":return x(Dr[o],fe[o]);case"primary":return _r[o];case"outline":return x(Or[o],fe[o]);case"secondary":return fe[o];case"ghost":return fe[o];case"gloss":return""}}function Mi(e,o,r){return r?"":Ir(Pi(e,o))}function Ni(e,o){return e==="primary"&&o!=="default"?di[o]:Ai(e)}function Bi(e,o){return e==="primary"?o==="default"?T("converge-ripple-primary-fill"):vi[o]:hi[o]}const Gi={small:"h-control-small",base:"h-control-base",mid:"h-control-mid",large:"h-control-large"};function Hi(e,o=J[e].minWButton){const r=J[e];return x(o,r.padX,r.padY)}function Ui(e,o=!1){const r=J[e];return x(Gi[e],o?"min-w-fit":r.minWButton,r.padX,r.padY)}function Wi(e){const o=J[e];return x(o.spinnerIcon,o.spinnerBorder)}function $i(){return"pointer-events-none absolute left-1/2 top-1/2 z-0 rounded-full"}function Vi(){return"box-border inline-block rounded-full border-current border-t-transparent"}function qi({groupSegment:e,slotClass:o,className:r}){return x(Ti,e&&Ei,o,r)}function ji({slotClass:e,className:o,layoutClass:r}){return x(ki,e,r,o)}function Xi(e,o){return x(Ci,Si[e],o)}function Yi(e,o){return x(Di,e,o)}function Zi(e,o){return x(xo,e,o)}function Ki(e){return x(xo,_i,e)}function Qi(e){return x(xo,Oi,e)}function Ji(){return"shrink-0"}const es={default:T("converge-ripple-neutral"),primary:T("converge-ripple-primary-fill"),outline:T("converge-ripple-neutral"),secondary:T("converge-ripple-neutral"),ghost:T("converge-ripple-neutral"),gloss:T("converge-ripple-neutral")},os={danger:T("converge-ripple-danger"),success:T("converge-ripple-success"),info:T("converge-ripple-info"),warning:T("converge-ripple-warning")};function rs(e,o="default"){return o!=="default"?os[o]:es[e]}function ns(e,o,r,n,i){return e?x("gloss-btn",ho,pi[o]):x(Ri(r,o),zi(r,o),!n&&We,Mi(r,o,i))}const ts={small:"small",base:"base",mid:"mid",large:"large"},is={small:"h-control-small",base:"h-control-base",mid:"h-control-mid",large:"h-control-large"};function Ar(e){const{padX:o,padY:r}=J[e];return x(is[e],o,r)}function Pr(e){if(e==null)return"";const{orientation:o,position:r}=e;return r==="only"?"rounded-[inherit]":o==="horizontal"?r==="first"?"rounded-l-[inherit] rounded-r-none":r==="middle"?"rounded-none":"rounded-r-[inherit] rounded-l-none":r==="first"?"rounded-t-[inherit] rounded-b-none":r==="middle"?"rounded-none":"rounded-b-[inherit] rounded-t-none"}function ss(e){if(e==null||e.position==="only")return"";const{orientation:o,position:r}=e;return o==="horizontal"?r==="first"?"":"border-l-0":r==="first"?"":"border-t-0"}function zr(e){return e==null?"":x("!border-0 [border:0!important] !shadow-none [box-shadow:none!important]","z-0 focus-visible:z-[2]")}function Mr(e){return x("relative inline-flex shrink-0 select-none items-center justify-center border-token bg-surface text-muted",Pr(e),e!=null&&zr(e),"z-0")}function as({orientation:e,segmented:o,variant:r,className:n}){return x("inline-flex text-left w-fit",!o&&x("relative rounded-base border-border",r==="gloss"?"gloss-panel gloss-deep border-0 text-foreground":"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border-solid after:[border-width:var(--border-width,1px)] after:border-inherit after:content-['']"),x(e==="horizontal"?"flex-row flex-nowrap items-stretch":"flex-col flex-nowrap items-stretch",o&&"gap-xsmall"),n)}function ls(e,o){return x("pointer-events-none shrink-0",e==="horizontal"?"my-[var(--border-width)] self-stretch border-r-token":"mx-[var(--border-width)] self-stretch border-b-token",o)}function cs({groupSegment:e,groupVariant:o,buttonSize:r,className:n}){return x(Mr(e),o==="gloss"&&"bg-transparent text-foreground","inline-flex items-center",Ar(r),n)}const us="max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max-w-component-base",Nr={default:"bg-surface",outline:"bg-transparent",secondary:"bg-secondary"};function ds(e){return e==="secondary"?"secondary":"default"}function fs(e){return e==="gloss"?"gloss":e==="outline"?"outline":e==="secondary"?"secondary":"default"}function gs({variant:e}){return e==="gloss"?"gloss-control":e==="outline"?"bg-transparent border-token":x(Nr[e],"border-token")}function ms(e,o="default",r="default"){return e?Fr(ds(r),"focus-within"):""}const ps="field-shell-transition motion-reduce:transition-none",Br="focus-within-ring",Oe="outline-solid outline-[length:var(--focus-ring-width,2px)] outline-offset-[length:var(--focus-ring-offset,0px)]",Le={danger:"outline-[var(--color-focus-ring-danger)] focus-within:outline-[var(--color-focus-ring-danger)]",success:"outline-[var(--color-focus-ring-success)] focus-within:outline-[var(--color-focus-ring-success)]",info:"outline-[var(--color-focus-ring-info)] focus-within:outline-[var(--color-focus-ring-info)]",warning:"outline-[var(--color-focus-ring-warning)] focus-within:outline-[var(--color-focus-ring-warning)]"},bs={danger:x(Oe,Le.danger),success:x(Oe,Le.success),info:x(Oe,Le.info),warning:x(Oe,Le.warning)};function hs(e="default"){return e==="default"?Br:bs[e]}function vs(e,o){const r=Cr(e,o);return{shellHoverMotionClass:r.motionClass,onShellPointerEnter:r.onPointerEnter,onShellPointerLeave:r.onPointerLeave}}function Ss(e){const o=J[e];return x("flex self-stretch shrink-0 items-center text-muted",o.affixPadX,o.affixText)}const xs={small:"min-w-control-small",base:"min-w-control-base",mid:"min-w-control-mid",large:"min-w-control-large"};function ys(e){return xs[e]}const ws={small:"--control-height-small",base:"--control-height-base",mid:"--control-height-mid",large:"--control-height-large"},Ts={small:1.75,base:2.2,mid:2.5,large:3},qo=new Map;function Es(e){if(typeof document>"u")return null;const o=qo.get(e);if(o!=null)return o;try{const r=document.createElement("div");r.style.position="absolute",r.style.visibility="hidden",r.style.height=`var(${ws[e]})`,document.body.appendChild(r);const n=r.getBoundingClientRect().height;if(document.body.removeChild(r),n>0)return qo.set(e,n),n}catch{}return null}function ks(e,o=16){return Es(e)??o*Ts[e]}const Cs={convergeRipplePrimaryFill:"color-mix(in oklab, var(--color-primary-foreground) 38%, transparent)",convergeRippleNeutral:"var(--color-primary-tint-strong)",convergeRippleNeutralMuted:"color-mix(in oklab, var(--color-primary) 14%, transparent)",convergeRippleDanger:"color-mix(in oklab, var(--color-danger-foreground) 38%, transparent)",convergeRippleSuccess:"color-mix(in oklab, var(--color-success-foreground) 38%, transparent)",convergeRippleInfo:"color-mix(in oklab, var(--color-info-foreground) 38%, transparent)",convergeRippleWarning:"color-mix(in oklab, var(--color-warning-foreground) 38%, transparent)"},Ds={convergeRipplePrimaryFill:"color-mix(in oklab, var(--color-primary-foreground) 52%, var(--color-primary))",convergeRippleNeutral:"var(--color-primary-tint-strong)",convergeRippleNeutralMuted:"color-mix(in oklab, var(--color-primary) 14%, transparent)",convergeRippleDanger:"color-mix(in oklab, var(--color-danger-foreground) 38%, transparent)",convergeRippleSuccess:"color-mix(in oklab, var(--color-success-foreground) 38%, transparent)",convergeRippleInfo:"color-mix(in oklab, var(--color-info-foreground) 38%, transparent)",convergeRippleWarning:"color-mix(in oklab, var(--color-warning-foreground) 38%, transparent)"},Gr={background:"#0c0d10",surface:"#171717",secondary:"color-mix(in oklab, var(--color-foreground) 12%, var(--color-surface))",secondaryForeground:"var(--color-foreground)",tertiary:"color-mix(in oklab, var(--color-foreground) 24%, var(--color-surface))",tertiaryForeground:"var(--color-foreground)",border:"color-mix(in oklab, var(--color-foreground) 12%, transparent)",foreground:"#f4f5f7",muted:"color-mix(in oklab, var(--color-foreground) 6%, var(--color-surface))",mutedForeground:"#858994",primary:"#ebebef",primaryForeground:"#0c0c0e",primaryTint:"color-mix(in oklab, var(--color-primary) 20%, transparent)",primaryTintStrong:"color-mix(in oklab, var(--color-primary) 25%, transparent)",focusRing:"color-mix(in oklab, var(--color-primary) 60%, transparent)",focusRingDanger:"color-mix(in oklab, var(--color-danger) 60%, transparent)",focusRingSuccess:"color-mix(in oklab, var(--color-success) 60%, transparent)",focusRingInfo:"color-mix(in oklab, var(--color-info) 60%, transparent)",focusRingWarning:"color-mix(in oklab, var(--color-warning) 60%, transparent)",indicator:"#ebebef",indicatorForeground:"#0c0c0e",danger:"#d73737",success:"#35b664",info:"#389dcc",warning:"#daa13e",dangerForeground:"#fafafa",successForeground:"#fafafa",infoForeground:"#fafafa",warningForeground:"#0c0c0e",primaryHover:"color-mix(in oklab, var(--color-primary) 80%, var(--color-surface))",defaultHover:"color-mix(in oklab, var(--color-foreground) 8%, var(--color-surface))",transparentHover:"color-mix(in oklab, var(--color-muted) 70%, transparent)",secondaryHover:"color-mix(in oklab, var(--color-foreground) 6%, var(--color-secondary))",tertiaryHover:"color-mix(in oklab, var(--color-foreground) 6%, var(--color-tertiary))",surfaceTintDanger:"color-mix(in oklab, var(--color-danger) 15%, transparent)",surfaceTintDangerHover:"color-mix(in oklab, var(--color-danger) 25%, transparent)",dangerFillHover:"color-mix(in oklab, var(--color-danger) 80%, transparent)",surfaceTintSuccess:"color-mix(in oklab, var(--color-success) 15%, transparent)",surfaceTintSuccessHover:"color-mix(in oklab, var(--color-success) 25%, transparent)",successFillHover:"color-mix(in oklab, var(--color-success) 80%, transparent)",surfaceTintInfo:"color-mix(in oklab, var(--color-info) 15%, transparent)",surfaceTintInfoHover:"color-mix(in oklab, var(--color-info) 25%, transparent)",infoFillHover:"color-mix(in oklab, var(--color-info) 80%, transparent)",surfaceTintWarning:"color-mix(in oklab, var(--color-warning) 15%, transparent)",surfaceTintWarningHover:"color-mix(in oklab, var(--color-warning) 25%, transparent)",warningFillHover:"color-mix(in oklab, var(--color-warning) 80%, transparent)",...Cs},Hr={background:"#f5f5f5",surface:"#ffffff",secondary:"color-mix(in oklab, var(--color-foreground) 12%, var(--color-surface))",secondaryForeground:"var(--color-foreground)",tertiary:"color-mix(in oklab, var(--color-foreground) 24%, var(--color-surface))",tertiaryForeground:"var(--color-foreground)",border:"color-mix(in oklab, var(--color-foreground) 12%, transparent)",foreground:"#18181b",muted:"color-mix(in oklab, var(--color-foreground) 12%, var(--color-surface))",mutedForeground:"#646467",primary:"#18181b",primaryForeground:"#fafafa",primaryTint:"color-mix(in oklab, var(--color-primary) 20%, transparent)",primaryTintStrong:"color-mix(in oklab, var(--color-primary) 25%, transparent)",focusRing:"color-mix(in oklab, var(--color-primary) 60%, transparent)",focusRingDanger:"color-mix(in oklab, var(--color-danger) 60%, transparent)",focusRingSuccess:"color-mix(in oklab, var(--color-success) 60%, transparent)",focusRingInfo:"color-mix(in oklab, var(--color-info) 60%, transparent)",focusRingWarning:"color-mix(in oklab, var(--color-warning) 60%, transparent)",indicator:"#18181b",indicatorForeground:"#fafafa",danger:"#df4e4e",success:"#2ebd62",info:"#31a0d3",warning:"#e1a53d",dangerForeground:"#ffffff",successForeground:"#ffffff",infoForeground:"#ffffff",warningForeground:"#0c0c0e",primaryHover:"color-mix(in oklab, var(--color-primary) 90%, var(--color-surface))",defaultHover:"color-mix(in oklab, var(--color-foreground) 8%, var(--color-surface))",transparentHover:"color-mix(in oklab, var(--color-muted) 70%, transparent)",secondaryHover:"color-mix(in oklab, var(--color-foreground) 6%, var(--color-secondary))",tertiaryHover:"color-mix(in oklab, var(--color-foreground) 6%, var(--color-tertiary))",surfaceTintDanger:"color-mix(in oklab, var(--color-danger) 15%, transparent)",surfaceTintDangerHover:"color-mix(in oklab, var(--color-danger) 25%, transparent)",dangerFillHover:"color-mix(in oklab, var(--color-danger) 80%, transparent)",surfaceTintSuccess:"color-mix(in oklab, var(--color-success) 15%, transparent)",surfaceTintSuccessHover:"color-mix(in oklab, var(--color-success) 25%, transparent)",successFillHover:"color-mix(in oklab, var(--color-success) 80%, transparent)",surfaceTintInfo:"color-mix(in oklab, var(--color-info) 15%, transparent)",surfaceTintInfoHover:"color-mix(in oklab, var(--color-info) 25%, transparent)",infoFillHover:"color-mix(in oklab, var(--color-info) 80%, transparent)",surfaceTintWarning:"color-mix(in oklab, var(--color-warning) 15%, transparent)",surfaceTintWarningHover:"color-mix(in oklab, var(--color-warning) 25%, transparent)",warningFillHover:"color-mix(in oklab, var(--color-warning) 80%, transparent)",...Ds},$e={background:"--color-background",surface:"--color-surface",secondary:"--color-secondary",secondaryForeground:"--color-secondary-foreground",tertiary:"--color-tertiary",tertiaryForeground:"--color-tertiary-foreground",border:"--color-border",foreground:"--color-foreground",muted:"--color-muted",mutedForeground:"--color-muted-foreground",primary:"--color-primary",primaryForeground:"--color-primary-foreground",primaryTint:"--color-primary-tint",primaryTintStrong:"--color-primary-tint-strong",focusRing:"--color-focus-ring",focusRingDanger:"--color-focus-ring-danger",focusRingSuccess:"--color-focus-ring-success",focusRingInfo:"--color-focus-ring-info",focusRingWarning:"--color-focus-ring-warning",indicator:"--color-indicator",indicatorForeground:"--color-indicator-foreground",danger:"--color-danger",success:"--color-success",info:"--color-info",warning:"--color-warning",dangerForeground:"--color-danger-foreground",successForeground:"--color-success-foreground",infoForeground:"--color-info-foreground",warningForeground:"--color-warning-foreground",primaryHover:"--color-primary-hover",defaultHover:"--color-default-hover",transparentHover:"--color-transparent-hover",secondaryHover:"--color-secondary-hover",tertiaryHover:"--color-tertiary-hover",surfaceTintDanger:"--color-surface-tint-danger",surfaceTintDangerHover:"--color-surface-tint-danger-hover",dangerFillHover:"--color-danger-fill-hover",surfaceTintSuccess:"--color-surface-tint-success",surfaceTintSuccessHover:"--color-surface-tint-success-hover",successFillHover:"--color-success-fill-hover",surfaceTintInfo:"--color-surface-tint-info",surfaceTintInfoHover:"--color-surface-tint-info-hover",infoFillHover:"--color-info-fill-hover",surfaceTintWarning:"--color-surface-tint-warning",surfaceTintWarningHover:"--color-surface-tint-warning-hover",warningFillHover:"--color-warning-fill-hover",convergeRipplePrimaryFill:"--color-converge-ripple-primary-fill",convergeRippleNeutral:"--color-converge-ripple-neutral",convergeRippleNeutralMuted:"--color-converge-ripple-neutral-muted",convergeRippleDanger:"--color-converge-ripple-danger",convergeRippleSuccess:"--color-converge-ripple-success",convergeRippleInfo:"--color-converge-ripple-info",convergeRippleWarning:"--color-converge-ripple-warning"},Ur={space:.5,size:1,radius:.5,borderWidth:1,focusRingWidth:2,focusRingOffset:0,textScale:1,shadowStrength:1,shadowSize:1,toastScrimSize:1,toastScrimDensity:1},Wr=(()=>{const{pressSqueezeScale:e,...o}=Ge;return{...o,pressSqueezeMid:e[1]}})(),$r=$.fontFamilySans,Vr=$.fontFamilyMono,_s=.9375,Os=.875,Ls=.25;function ge(e){const o=Math.round(e*1e8)/1e8;return String(o)}function Q(e){if(e===0)return"0rem";const o=ge(e*_s),r=ge(e*Os),n=ge(e*Ls),i=ge(e);return`clamp(${o}rem, ${r}rem + ${n}vw, ${i}rem)`}function Fe(e){return e===0?"0":`calc(${e}px * var(--shadow-size))`}function Fs(e,o,r,n,i){return`${Fe(e)} ${Fe(o)} ${Fe(r)} ${Fe(n)} rgb(0 0 0 / ${ge(i)})`}function W(e,o,r){const n=cr[o][e]*r,[i,t,s,a]=ur[e][0];return Fs(i,t,s,a,n)}function Is(e,o,r,n){e.style.setProperty("--shadow-size",String(n)),e.style.setProperty("--shadow-none",W("base",o,0)),e.style.setProperty("--shadow-base",W("base",o,r)),e.style.setProperty("--shadow-mid",W("mid",o,r)),e.style.setProperty("--shadow-large",W("large",o,r))}function Rs(e){e.style.removeProperty("--shadow-size"),e.style.removeProperty("--shadow-none"),e.style.removeProperty("--shadow-base"),e.style.removeProperty("--shadow-mid"),e.style.removeProperty("--shadow-large")}function As(e,o){for(const r of Object.keys(ee)){const{size:n,line:i}=ee[r],t=n*o,s=i*o;e.style.setProperty(`--text-scale-${r}`,`${t}rem`),e.style.setProperty(`--text-scale-${r}--line-height`,`calc(${s}rem / ${t}rem)`)}}function Ps(e){for(const o of Object.keys(ee))e.style.removeProperty(`--text-scale-${o}`),e.style.removeProperty(`--text-scale-${o}--line-height`)}function zs(e,o,r){for(const[n,i]of Object.entries(He))I(e,i,o[n]!==r[n]?String(o[n]):null)}function I(e,o,r){r===null?e.style.removeProperty(o):e.style.setProperty(o,r)}function Me(e){return e===0?"0px":`${e}px`}function qr(){return{dark:{...Gr},light:{...Hr}}}function Ve(e){var n,i;if((n=e.modePalettes)!=null&&n.dark&&((i=e.modePalettes)!=null&&i.light))return e;const o=qr(),r={...e.colors};return{...e,modePalettes:{dark:e.theme==="dark"?r:o.dark,light:e.theme==="light"?r:o.light}}}function Ms(e,o){const r=Ve(e),n=r.modePalettes[o];return{...r,theme:o,colors:{...n}}}function Ns(e,o,r){const n=Ve(e),i={...n.colors,[o]:r};return{...n,colors:i,modePalettes:{...n.modePalettes,[n.theme]:i}}}function ce(e="dark"){const o=qr(),r=o[e];return{theme:e,...Ur,...Wr,fontFamily:$r,fontFamilyMono:Vr,fontWeights:{...vr},colors:{...r},modePalettes:o}}const Bs=["--space","--size","--radius","--border-width","--focus-ring-width","--focus-ring-offset","--motion-surface-duration","--font-family-sans","--font-family-mono",...Object.values(He),"--shadow-size","--shadow-none","--shadow-base","--shadow-mid","--shadow-large","--toast-scrim-size","--toast-scrim-density",...Object.keys(ee).flatMap(e=>[`--text-scale-${e}`,`--text-scale-${e}--line-height`]),...Object.values($e)];function Gs(e){if(typeof document>"u")return;const o=e??document.documentElement;for(const r of Bs)o.style.removeProperty(r);delete o.dataset.theme}let jo="";function Hs(e,o){const r=JSON.stringify({interactiveDuration:e.interactiveDuration,interactiveEase:e.interactiveEase,hoverLiftEase:e.hoverLiftEase,tooltipDuration:e.tooltipDuration,modalDuration:e.modalDuration,switchThumbDuration:e.switchThumbDuration,switchThumbEase:e.switchThumbEase,selectionFillDuration:e.selectionFillDuration,selectionFillEase:e.selectionFillEase,hoverLiftScale:e.hoverLiftScale,badgeAnchorHoverLiftScale:e.badgeAnchorHoverLiftScale,pressSqueezeMid:e.pressSqueezeMid,pressSqueezeDurationFactor:e.pressSqueezeDurationFactor,rippleDefaultDuration:e.rippleDefaultDuration,rippleDefaultOpacityFrom:e.rippleDefaultOpacityFrom,rippleExpandableDuration:e.rippleExpandableDuration,rippleExpandableOpacityFrom:e.rippleExpandableOpacityFrom,rippleEaseCss:e.rippleEaseCss,feedbackExpandDuration:e.feedbackExpandDuration,expandDuration:e.expandDuration,expandOpenEase:e.expandOpenEase,surfaceTransitionDuration:e.surfaceTransitionDuration,toastDismissDuration:e.toastDismissDuration,toastDismissEase:e.toastDismissEase,progressFillDuration:e.progressFillDuration,progressFillEase:e.progressFillEase,progressIndeterminateDuration:e.progressIndeterminateDuration,progressIndeterminateEase:e.progressIndeterminateEase,loadingDotsDuration:e.loadingDotsDuration,loadingDotsEaseUp:e.loadingDotsEaseUp,loadingDotsEaseDown:e.loadingDotsEaseDown,enableAnimations:e.enableAnimations,enableHoverLift:e.enableHoverLift,enablePressSqueeze:e.enablePressSqueeze,enableToggleButtonFill:e.enableToggleButtonFill,enableRipple:e.enableRipple,enableExpandable:e.enableExpandable,enableToastStack:e.enableToastStack,enableAsyncButtonCrossfade:e.enableAsyncButtonCrossfade,enableContentFade:e.enableContentFade,enableFeedbackExpand:e.enableFeedbackExpand,enableProgressFill:e.enableProgressFill,enableLoadingDots:e.enableLoadingDots,enableModalMotion:e.enableModalMotion,enableSwitchThumb:e.enableSwitchThumb,enableTabsIndicator:e.enableTabsIndicator,enablePaginationFlip:e.enablePaginationFlip,enableSelectionFill:e.enableSelectionFill});r!==jo&&(jo=r,mr({interactiveDuration:e.interactiveDuration,interactiveEase:e.interactiveEase,hoverLiftEase:e.hoverLiftEase,tooltipDuration:e.tooltipDuration,modalDuration:e.modalDuration,switchThumbDuration:e.switchThumbDuration,switchThumbEase:e.switchThumbEase,selectionFillDuration:e.selectionFillDuration,selectionFillEase:e.selectionFillEase,hoverLiftScale:e.hoverLiftScale,badgeAnchorHoverLiftScale:e.badgeAnchorHoverLiftScale,pressSqueezeScale:[1,e.pressSqueezeMid,1],pressSqueezeDurationFactor:e.pressSqueezeDurationFactor,rippleDefaultDuration:e.rippleDefaultDuration,rippleDefaultOpacityFrom:e.rippleDefaultOpacityFrom,rippleExpandableDuration:e.rippleExpandableDuration,rippleExpandableOpacityFrom:e.rippleExpandableOpacityFrom,rippleEaseCss:e.rippleEaseCss,feedbackExpandDuration:e.feedbackExpandDuration,expandDuration:e.expandDuration,expandOpenEase:e.expandOpenEase,surfaceTransitionDuration:e.surfaceTransitionDuration,toastDismissDuration:e.toastDismissDuration,toastDismissEase:e.toastDismissEase,progressFillDuration:e.progressFillDuration,progressFillEase:e.progressFillEase,progressIndeterminateDuration:e.progressIndeterminateDuration,progressIndeterminateEase:e.progressIndeterminateEase,loadingDotsDuration:e.loadingDotsDuration,loadingDotsEaseUp:e.loadingDotsEaseUp,loadingDotsEaseDown:e.loadingDotsEaseDown,enableAnimations:e.enableAnimations,enableHoverLift:e.enableHoverLift,enablePressSqueeze:e.enablePressSqueeze,enableToggleButtonFill:e.enableToggleButtonFill,enableRipple:e.enableRipple,enableExpandable:e.enableExpandable,enableToastStack:e.enableToastStack,enableAsyncButtonCrossfade:e.enableAsyncButtonCrossfade,enableContentFade:e.enableContentFade,enableFeedbackExpand:e.enableFeedbackExpand,enableProgressFill:e.enableProgressFill,enableLoadingDots:e.enableLoadingDots,enableModalMotion:e.enableModalMotion,enableSwitchThumb:e.enableSwitchThumb,enableTabsIndicator:e.enableTabsIndicator,enablePaginationFlip:e.enablePaginationFlip,enableSelectionFill:e.enableSelectionFill}),co(o,{surfaceTransitionDuration:e.surfaceTransitionDuration}))}function jr(e,o){if(typeof document>"u")return;const r=o??document.documentElement,n=ce(e.theme);e.theme==="light"?r.dataset.theme="light":delete r.dataset.theme,I(r,"--space",e.space!==n.space?Q(e.space):null),I(r,"--size",e.size!==n.size?Q(e.size):null),I(r,"--radius",e.radius!==n.radius?Q(e.radius):null),I(r,"--border-width",e.borderWidth!==n.borderWidth?Me(e.borderWidth):null),I(r,"--focus-ring-width",e.focusRingWidth!==n.focusRingWidth?Me(e.focusRingWidth):null),I(r,"--focus-ring-offset",e.focusRingOffset!==n.focusRingOffset?`${e.focusRingOffset}px`:null),I(r,"--font-family-sans",e.fontFamily!==n.fontFamily?e.fontFamily:null),I(r,"--font-family-mono",e.fontFamilyMono!==n.fontFamilyMono?e.fontFamilyMono:null),zs(r,e.fontWeights,n.fontWeights),Hs(e,r),e.textScale!==n.textScale?As(r,e.textScale):Ps(r),e.shadowStrength!==n.shadowStrength||e.shadowSize!==n.shadowSize?Is(r,e.theme,e.shadowStrength,e.shadowSize):Rs(r),I(r,"--toast-scrim-size",e.toastScrimSize!==n.toastScrimSize?String(e.toastScrimSize):null),I(r,"--toast-scrim-density",e.toastScrimDensity!==n.toastScrimDensity?String(e.toastScrimDensity):null);for(const[i,t]of Object.entries($e))I(r,t,e.colors[i]!==n.colors[i]?e.colors[i]:null)}function Xr(e){const o=ce(e.theme),r=[":root {"];e.space!==o.space&&r.push(` --space: ${Q(e.space)};`),e.size!==o.size&&r.push(` --size: ${Q(e.size)};`),e.radius!==o.radius&&r.push(` --radius: ${Q(e.radius)};`),e.borderWidth!==o.borderWidth&&r.push(` --border-width: ${Me(e.borderWidth)};`),e.focusRingWidth!==o.focusRingWidth&&r.push(` --focus-ring-width: ${Me(e.focusRingWidth)};`),e.focusRingOffset!==o.focusRingOffset&&r.push(` --focus-ring-offset: ${e.focusRingOffset}px;`),e.fontFamily!==o.fontFamily&&r.push(` --font-family-sans: ${e.fontFamily};`),e.fontFamilyMono!==o.fontFamilyMono&&r.push(` --font-family-mono: ${e.fontFamilyMono};`);for(const[n,i]of Object.entries(He))e.fontWeights[n]!==o.fontWeights[n]&&r.push(` ${i}: ${e.fontWeights[n]};`);if((e.shadowStrength!==o.shadowStrength||e.shadowSize!==o.shadowSize)&&(r.push(` --shadow-size: ${e.shadowSize};`),r.push(` --shadow-none: ${W("base",e.theme,0)};`),r.push(` --shadow-base: ${W("base",e.theme,e.shadowStrength)};`),r.push(` --shadow-mid: ${W("mid",e.theme,e.shadowStrength)};`),r.push(` --shadow-large: ${W("large",e.theme,e.shadowStrength)};`)),e.toastScrimSize!==o.toastScrimSize&&r.push(` --toast-scrim-size: ${e.toastScrimSize};`),e.toastScrimDensity!==o.toastScrimDensity&&r.push(` --toast-scrim-density: ${e.toastScrimDensity};`),e.surfaceTransitionDuration!==o.surfaceTransitionDuration&&r.push(` --motion-surface-duration: ${e.surfaceTransitionDuration}ms;`),e.textScale!==o.textScale)for(const n of Object.keys(ee)){const{size:i,line:t}=ee[n],s=i*e.textScale,a=t*e.textScale;r.push(` --text-scale-${n}: ${s}rem;`),r.push(` --text-scale-${n}--line-height: calc(${a}rem / ${s}rem);`)}for(const[n,i]of Object.entries($e))e.colors[n]!==o.colors[n]&&r.push(` ${i}: ${e.colors[n]};`);return r.length===1&&r.push(" /* (no overrides vs kit defaults) */"),r.push("}"),e.theme==="light"&&(r.push("","/* Optional: light theme via data-attribute */"),r.push('/* <html data-theme="light"> */')),r.join(`
|
|
2
|
-
`)}const yo="burne-ui-theme";function wo(e,o){var a;const r=ce(o),n=e.tokens??{},i=(a=e.colors)==null?void 0:a[o],t=i?{...r.colors,...i}:r.colors,s=n.shadowStrength??r.shadowStrength;return{...r,...Qr({space:n.space,size:n.size,radius:n.radius,borderWidth:n.borderWidth,focusRingWidth:n.focusRingWidth,focusRingOffset:n.focusRingOffset,textScale:n.textScale,fontFamily:n.fontFamily,fontFamilyMono:n.fontFamilyMono,shadowSize:n.shadowSize,toastScrimSize:n.toastScrimSize,toastScrimDensity:n.toastScrimDensity}),shadowStrength:s,fontWeights:n.fontWeights?{...r.fontWeights,...n.fontWeights}:r.fontWeights,colors:t,modePalettes:{...r.modePalettes,[o]:{...t}}}}function Yr(e){const o=Ve(e),r={interactiveDuration:o.interactiveDuration,interactiveEase:o.interactiveEase,hoverLiftEase:o.hoverLiftEase,tooltipDuration:o.tooltipDuration,modalDuration:o.modalDuration,switchThumbDuration:o.switchThumbDuration,switchThumbEase:o.switchThumbEase,selectionFillDuration:o.selectionFillDuration,selectionFillEase:o.selectionFillEase,hoverLiftScale:o.hoverLiftScale,badgeAnchorHoverLiftScale:o.badgeAnchorHoverLiftScale,pressSqueezeScale:[1,o.pressSqueezeMid,1],pressSqueezeDurationFactor:o.pressSqueezeDurationFactor,rippleDefaultDuration:o.rippleDefaultDuration,rippleDefaultOpacityFrom:o.rippleDefaultOpacityFrom,rippleExpandableDuration:o.rippleExpandableDuration,rippleExpandableOpacityFrom:o.rippleExpandableOpacityFrom,rippleEaseCss:o.rippleEaseCss,feedbackExpandDuration:o.feedbackExpandDuration,expandDuration:o.expandDuration,expandOpenEase:o.expandOpenEase,surfaceTransitionDuration:o.surfaceTransitionDuration,toastDismissDuration:o.toastDismissDuration,toastDismissEase:o.toastDismissEase,progressFillDuration:o.progressFillDuration,progressFillEase:o.progressFillEase,progressIndeterminateDuration:o.progressIndeterminateDuration,progressIndeterminateEase:o.progressIndeterminateEase,loadingDotsDuration:o.loadingDotsDuration,loadingDotsEaseUp:o.loadingDotsEaseUp,loadingDotsEaseDown:o.loadingDotsEaseDown,enableAnimations:o.enableAnimations,enableHoverLift:o.enableHoverLift,enablePressSqueeze:o.enablePressSqueeze,enableToggleButtonFill:o.enableToggleButtonFill,enableRipple:o.enableRipple,enableExpandable:o.enableExpandable,enableToastStack:o.enableToastStack,enableAsyncButtonCrossfade:o.enableAsyncButtonCrossfade,enableContentFade:o.enableContentFade,enableFeedbackExpand:o.enableFeedbackExpand,enableProgressFill:o.enableProgressFill,enableLoadingDots:o.enableLoadingDots,enableModalMotion:o.enableModalMotion,enableSwitchThumb:o.enableSwitchThumb,enableTabsIndicator:o.enableTabsIndicator,enablePaginationFlip:o.enablePaginationFlip,enableSelectionFill:o.enableSelectionFill},n={space:o.space,size:o.size,radius:o.radius,borderWidth:o.borderWidth,focusRingWidth:o.focusRingWidth,focusRingOffset:o.focusRingOffset,textScale:o.textScale,fontFamily:o.fontFamily,fontFamilyMono:o.fontFamilyMono,fontWeights:{...o.fontWeights},shadowStrength:o.shadowStrength,shadowSize:o.shadowSize,toastScrimSize:o.toastScrimSize,toastScrimDensity:o.toastScrimDensity};return{theme:o.theme,tokens:n,colors:{dark:{...o.modePalettes.dark},light:{...o.modePalettes.light}},motion:r,toast:!0}}function Us(e,o){var n;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return{value:e};const r=((n=e.values)==null?void 0:n[o])??e.value;return r===void 0?null:{value:r,unit:e.unit}}function To(e,o){const r={};if(!e)return r;for(const[n,i]of Object.entries(e)){const t=Us(i,o);t&&(r[n]=typeof t.value=="number"&&t.unit?`${t.value}${t.unit}`:String(t.value))}return r}const Ne=new WeakMap;function Zr(e,o,r){const n=To(e,r),i=new Set(Object.keys(n)),t=Ne.get(o)??new Map;t.forEach((s,a)=>{i.has(a)||(s.value?o.style.setProperty(a,s.value,s.priority):o.style.removeProperty(a),t.delete(a))});for(const[s,a]of Object.entries(n))t.has(s)||t.set(s,{value:o.style.getPropertyValue(s),priority:o.style.getPropertyPriority(s)}),o.style.setProperty(s,a);Ne.set(o,t)}function Ws(e){var r;if(typeof document>"u")return;const o=e??document.documentElement;(r=Ne.get(o))==null||r.forEach((n,i)=>{n.value?o.style.setProperty(i,n.value,n.priority):o.style.removeProperty(i)}),Ne.delete(o)}function Kr(e){return{...Yr(ce((e==null?void 0:e.theme)??"dark")),storageKey:(e==null?void 0:e.storageKey)===void 0?yo:e.storageKey}}function $s(e){const o=(e==null?void 0:e.exportName)??"burneTheme",r=Be(Kr(),0);return["/**"," * Burne UI theme config (starter snapshot)."," *"," * - Edit `tokens` / `motion` (shared), `colors.light` / `colors.dark`,"," * and optional `customTokens` for project-specific CSS variables."," * - Or replace this file with docs site → Copy config."," *",' * import { BurneUIProvider } from "burne-ui";',` * import ${o} from "./burne-theme";`,` * <BurneUIProvider config={${o}}>{children}</BurneUIProvider>`," */",'import type { BurneThemeConfig } from "burne-ui";',"",`const ${o} = ${r} satisfies BurneThemeConfig;`,"",`export default ${o};`,""].join(`
|
|
3
|
-
`)}function Vs(e,o="dark"){const r=ce(o);return e?{...r,...Qr({space:e.space,size:e.size,radius:e.radius,borderWidth:e.borderWidth,focusRingWidth:e.focusRingWidth,focusRingOffset:e.focusRingOffset,textScale:e.textScale,fontFamily:e.fontFamily,fontFamilyMono:e.fontFamilyMono,shadowStrength:e.shadowStrength,shadowSize:e.shadowSize,toastScrimSize:e.toastScrimSize,toastScrimDensity:e.toastScrimDensity}),fontWeights:e.fontWeights?{...r.fontWeights,...e.fontWeights}:r.fontWeights}:r}function Qr(e){const o={};for(const[r,n]of Object.entries(e))n!==void 0&&(o[r]=n);return o}function Jr(e,o,r=qe(e.theme)){if(typeof document>"u")return;const n=o??document.documentElement,i=wo(e,r);if(e.motion){const t=e.motion;t.interactiveDuration!==void 0&&(i.interactiveDuration=t.interactiveDuration),t.interactiveEase!==void 0&&(i.interactiveEase=t.interactiveEase),t.hoverLiftEase!==void 0&&(i.hoverLiftEase=t.hoverLiftEase),t.tooltipDuration!==void 0&&(i.tooltipDuration=t.tooltipDuration),t.modalDuration!==void 0&&(i.modalDuration=t.modalDuration),t.switchThumbDuration!==void 0&&(i.switchThumbDuration=t.switchThumbDuration),t.switchThumbEase!==void 0&&(i.switchThumbEase=t.switchThumbEase),t.selectionFillDuration!==void 0&&(i.selectionFillDuration=t.selectionFillDuration),t.selectionFillEase!==void 0&&(i.selectionFillEase=t.selectionFillEase),t.hoverLiftScale!==void 0&&(i.hoverLiftScale=t.hoverLiftScale),t.badgeAnchorHoverLiftScale!==void 0&&(i.badgeAnchorHoverLiftScale=t.badgeAnchorHoverLiftScale),t.pressSqueezeScale!==void 0&&(i.pressSqueezeMid=t.pressSqueezeScale[1]),t.pressSqueezeDurationFactor!==void 0&&(i.pressSqueezeDurationFactor=t.pressSqueezeDurationFactor),t.rippleDefaultDuration!==void 0&&(i.rippleDefaultDuration=t.rippleDefaultDuration),t.rippleDefaultOpacityFrom!==void 0&&(i.rippleDefaultOpacityFrom=t.rippleDefaultOpacityFrom),t.rippleExpandableDuration!==void 0&&(i.rippleExpandableDuration=t.rippleExpandableDuration),t.rippleExpandableOpacityFrom!==void 0&&(i.rippleExpandableOpacityFrom=t.rippleExpandableOpacityFrom),t.rippleEaseCss!==void 0&&(i.rippleEaseCss=t.rippleEaseCss),t.feedbackExpandDuration!==void 0&&(i.feedbackExpandDuration=t.feedbackExpandDuration),t.expandDuration!==void 0&&(i.expandDuration=t.expandDuration),t.expandOpenEase!==void 0&&(i.expandOpenEase=t.expandOpenEase),t.surfaceTransitionDuration!==void 0&&(i.surfaceTransitionDuration=t.surfaceTransitionDuration),t.toastDismissDuration!==void 0&&(i.toastDismissDuration=t.toastDismissDuration),t.toastDismissEase!==void 0&&(i.toastDismissEase=t.toastDismissEase),t.progressFillDuration!==void 0&&(i.progressFillDuration=t.progressFillDuration),t.progressFillEase!==void 0&&(i.progressFillEase=t.progressFillEase),t.progressIndeterminateDuration!==void 0&&(i.progressIndeterminateDuration=t.progressIndeterminateDuration),t.progressIndeterminateEase!==void 0&&(i.progressIndeterminateEase=t.progressIndeterminateEase),t.loadingDotsDuration!==void 0&&(i.loadingDotsDuration=t.loadingDotsDuration),t.loadingDotsEaseUp!==void 0&&(i.loadingDotsEaseUp=t.loadingDotsEaseUp),t.loadingDotsEaseDown!==void 0&&(i.loadingDotsEaseDown=t.loadingDotsEaseDown),t.enableAnimations!==void 0&&(i.enableAnimations=t.enableAnimations),t.enableHoverLift!==void 0&&(i.enableHoverLift=t.enableHoverLift),t.enablePressSqueeze!==void 0&&(i.enablePressSqueeze=t.enablePressSqueeze),t.enableToggleButtonFill!==void 0&&(i.enableToggleButtonFill=t.enableToggleButtonFill),t.enableRipple!==void 0&&(i.enableRipple=t.enableRipple),t.enableExpandable!==void 0&&(i.enableExpandable=t.enableExpandable),t.enableToastStack!==void 0&&(i.enableToastStack=t.enableToastStack),t.enableAsyncButtonCrossfade!==void 0&&(i.enableAsyncButtonCrossfade=t.enableAsyncButtonCrossfade),t.enableContentFade!==void 0&&(i.enableContentFade=t.enableContentFade),t.enableFeedbackExpand!==void 0&&(i.enableFeedbackExpand=t.enableFeedbackExpand),t.enableProgressFill!==void 0&&(i.enableProgressFill=t.enableProgressFill),t.enableLoadingDots!==void 0&&(i.enableLoadingDots=t.enableLoadingDots),t.enableModalMotion!==void 0&&(i.enableModalMotion=t.enableModalMotion),t.enableSwitchThumb!==void 0&&(i.enableSwitchThumb=t.enableSwitchThumb),t.enableTabsIndicator!==void 0&&(i.enableTabsIndicator=t.enableTabsIndicator),t.enablePaginationFlip!==void 0&&(i.enablePaginationFlip=t.enablePaginationFlip),t.enableSelectionFill!==void 0&&(i.enableSelectionFill=t.enableSelectionFill)}jr(i,n),Zr(e.customTokens,n,r)}function qe(e="system"){return e==="light"||e==="dark"?e:typeof window<"u"&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}function qs(e,o,r="dark"){Jr({theme:r,tokens:e},o,r)}function js(e){const o=qe(e.theme),r=wo(e,o),n=Xr(r),i=To(e.customTokens,o),t=Object.entries(i);if(t.length===0)return n;const s=t.map(([a,d])=>` ${a}: ${d};`).join(`
|
|
4
|
-
`);return n.replace(/\n}(\n|$)/,`
|
|
5
|
-
/* Custom project tokens */
|
|
6
|
-
${s}
|
|
7
|
-
}$1`)}function Be(e,o){const r=" ".repeat(o),n=" ".repeat(o+1);if(e==null)return"undefined";if(typeof e=="boolean"||typeof e=="number")return String(e);if(typeof e=="string")return JSON.stringify(e);if(Array.isArray(e))return e.length===0?"[]":`[
|
|
8
|
-
${e.map(t=>`${n}${Be(t,o+1)}`).join(`,
|
|
9
|
-
`)},
|
|
10
|
-
${r}]`;if(typeof e=="object"){const i=Object.entries(e).filter(([,s])=>s!==void 0);return i.length===0?"{}":`{
|
|
11
|
-
${i.map(([s,a])=>`${n}${Xs(s)}: ${Be(a,o+1)}`).join(`,
|
|
12
|
-
`)},
|
|
13
|
-
${r}}`}return JSON.stringify(e)}function Xs(e){return/^[A-Za-z_$][\w$]*$/.test(e)?e:JSON.stringify(e)}function Ys(e,o){const r=(o==null?void 0:o.exportName)??"burneTheme",n=Be(e,0);return["/**"," * Generated from the Burne UI theme playground."," * Save as `burne-theme.ts` and pass to BurneUIProvider:"," *",' * import { BurneUIProvider } from "burne-ui";',` * import ${r} from "./burne-theme";`," *",` * <BurneUIProvider config={${r}}>{children}</BurneUIProvider>`," *"," * `tokens` / `motion` are shared; `colors.light` / `colors.dark` hold palettes."," * Project-specific CSS variables and editor metadata live in `customTokens`."," */",'import type { BurneThemeConfig } from "burne-ui";',"",`const ${r} = ${n} satisfies BurneThemeConfig;`,"",`export default ${r};`,""].join(`
|
|
14
|
-
`)}const Eo=g.createContext(null);function Zs(e){if(!e||typeof window>"u")return null;try{const o=window.localStorage.getItem(e);if(o==="light"||o==="dark"||o==="system")return o}catch{}return null}function Ks(e,o){if(!(!e||typeof window>"u"))try{window.localStorage.setItem(e,o)}catch{}}function en(e,o){if(typeof document>"u")return;const r=o??document.documentElement;e==="light"?r.dataset.theme="light":delete r.dataset.theme}function Qs({children:e,theme:o,defaultTheme:r="dark",storageKey:n=yo,root:i=null,onThemeChange:t}){const[s,a]=g.useState(()=>Zs(n)??r),[d,c]=g.useState(0),b=o??s,p=g.useMemo(()=>qe(b),[b,d]),w=g.useCallback(y=>{o===void 0&&a(y),Ks(n,y),t==null||t(y)},[o,n,t]);g.useLayoutEffect(()=>{const y=i??(typeof document<"u"?document.documentElement:null);y&&en(p,y)},[p,i]),g.useEffect(()=>{if(b!=="system"||typeof window>"u")return;const y=window.matchMedia("(prefers-color-scheme: light)"),k=()=>{c(O=>O+1)};return y.addEventListener("change",k),()=>y.removeEventListener("change",k)},[b]);const v=g.useMemo(()=>({theme:b,resolvedTheme:p,setTheme:w}),[b,p,w]);return g.createElement(Eo.Provider,{value:v},e)}function Js(){const e=g.useContext(Eo);if(!e)throw new Error("useBurneTheme must be used within ThemeProvider or BurneUIProvider.");return e}function ea(){return g.useContext(Eo)}const ko=g.createContext(null);function oa({children:e,value:o}){return g.createElement(ko.Provider,{value:o},e)}function ra(){const e=g.useContext(ko);if(!e)throw new Error("useBurneThemeRuntime must be used within BurneUIProvider.");return e}function na(){return g.useContext(ko)}exports.BUTTON_BASE_INTERACTIVE_CLASS=yi;exports.BUTTON_CLIP_LAYER_CLASS=wi;exports.BUTTON_CURSOR_CLASS=Fi;exports.BUTTON_DISABLED_OPACITY_CLASS=Ii;exports.BUTTON_GROUP_TEXT_LABEL_CLASS=us;exports.BUTTON_GROUP_TEXT_VARIANT=ts;exports.BUTTON_SIZE_TEXT_VARIANT=xi;exports.BUTTON_SPINNER_MOTION_CLASS=Li;exports.BUTTON_STATUS_FOCUS_OUTLINE=bi;exports.BUTTON_VARIANT_HAS_HOVER_SHADOW=mi;exports.BurneThemeRuntimeContextProvider=oa;exports.COLOR_CSS_VAR=$e;exports.CONTROL_SIZE_LAYOUT=J;exports.ConvergeRippleLayer=Ft;exports.DARK_COLORS=Gr;exports.DEFAULT_FONT=$r;exports.DEFAULT_FONT_MONO=Vr;exports.DEFAULT_THEME_STORAGE_KEY=yo;exports.FIELD_SHELL_FOCUS_CLASS=Br;exports.FIELD_SHELL_TRANSITION_CLASS=ps;exports.FIELD_SHELL_VARIANT_BG_CLASS=Nr;exports.FONT_WEIGHT_CSS_VAR=He;exports.FONT_WEIGHT_DEFAULTS=vr;exports.GLOSS_INTERACTIVE_MOTION_CLASS=ho;exports.INTERACTIVE_VARIANT_ROOT=Z;exports.LIGHT_COLORS=Hr;exports.MOTION_CONFIG_DEFAULTS=Ge;exports.MOTION_CSS_VAR=fr;exports.MOTION_DEFAULTS=Wr;exports.NARROW_VIEWPORT_MAX_PX=Sr;exports.SCALE_DEFAULTS=Ur;exports.SEMANTIC_STATUS_FILL=_r;exports.SEMANTIC_STATUS_OUTLINE_BORDER=Or;exports.SEMANTIC_STATUS_SURFACE_TINT=Dr;exports.SEMANTIC_STATUS_TEXT=fe;exports.SHADOW_CSS_VAR=lo;exports.SHADOW_LAYER_GEOM=ur;exports.SHADOW_LIFT_MOTION_CLASS=We;exports.SHADOW_OPACITY_BASE=cr;exports.SHADOW_SIZE_CSS_DEFAULT=et;exports.SURFACE_COLOR_TRANSITION=Lr;exports.TEXT_COLOR_TRANSITION=fi;exports.TEXT_SCALE_BASES=ee;exports.TOUCH_OR_NARROW_VIEWPORT_MQL=go;exports.TOUCH_OR_NARROW_VIEWPORT_MQL_ANY_POINTER=Mt;exports.ThemeProvider=Qs;exports.activateThemeModePalette=Ms;exports.affixSlotClass=Ss;exports.affixToggleMinWClass=ys;exports.animateGlossInteractiveHoverLift=be;exports.animateGlossInteractivePressSqueeze=Er;exports.animateInteractiveHoverLift=me;exports.animateInteractivePressSqueeze=Yt;exports.applyBurneThemeConfig=Jr;exports.applyCustomThemeTokens=Zr;exports.applyMotionCssTokens=co;exports.applyThemeMode=en;exports.applyThemeTokens=jr;exports.applyTokens=qs;exports.burneFontWeightScale=Pt;exports.burneShadowScale=Jn;exports.buttonContentClass=qi;exports.buttonConvergeRippleColor=Bi;exports.buttonErrorLayerClass=Qi;exports.buttonFeedbackExpandRippleClass=$i;exports.buttonGroupOverlapBorderClasses=ss;exports.buttonGroupRootClass=as;exports.buttonGroupRoundingClasses=Pr;exports.buttonGroupSegmentSurfaceClasses=zr;exports.buttonGroupSeparatorClass=ls;exports.buttonGroupTextClass=cs;exports.buttonGroupTextFrameClass=Ar;exports.buttonGroupTextSurfaceClasses=Mr;exports.buttonIconClass=Xi;exports.buttonIconSvgClass=Ji;exports.buttonLabelClass=ji;exports.buttonLoaderLayerClass=Zi;exports.buttonLoaderTextClass=Ni;exports.buttonRippleTone=rs;exports.buttonRootClass=Ui;exports.buttonSpinnerClass=Wi;exports.buttonSpinnerInnerClass=Vi;exports.buttonSuccessLayerClass=Ki;exports.buttonSurfaceMotionClass=ns;exports.buttonTextClass=Yi;exports.clearCustomThemeTokens=Ws;exports.clearThemeInlineTokens=Gs;exports.clearWillChangeOnComplete=uo;exports.cn=x;exports.colorToken=T;exports.configureMotion=mr;exports.controlShellClass=Hi;exports.createConvergeRippleAtPointer=fo;exports.createConvergeRippleFromPointer=Rt;exports.createDefaultBurneThemeConfig=Kr;exports.createDefaultThemeState=ce;exports.createGlossInteractiveRefCallback=vo;exports.designTokenNames=Nt;exports.ensureModePalettes=Ve;exports.ensureRippleEase=br;exports.exportBurneThemeConfigSource=Ys;exports.exportBurneThemeCss=js;exports.exportDefaultBurneThemeConfigSource=$s;exports.exportThemeCss=Xr;exports.fieldShellFocusRingClass=hs;exports.fieldShellHoverClass=ms;exports.fieldShellVariantFromButtonGroup=fs;exports.firstLevelHoverShadow=li;exports.fluidScaleRem=Q;exports.fontWeightToken=zt;exports.getMotionConfig=N;exports.getMotionConfigRevision=gt;exports.hoverVariant=Ir;exports.initElementShadow=Ue;exports.isMotionEnabled=mt;exports.isMotionFeatureEnabled=ve;exports.killMotion=R;exports.mergeThemeTokenOverrides=Vs;exports.motionContentFade=yt;exports.motionExpand=xt;exports.motionFeedbackExpand=wt;exports.motionInteractive=pt;exports.motionLoadingDots=Dt;exports.motionModal=bt;exports.motionProgressFill=Tt;exports.motionProgressIndeterminate=Et;exports.motionSelectionFill=ht;exports.motionSwitchThumb=St;exports.motionToastDismiss=kt;exports.motionTooltip=vt;exports.patchThemeColor=Ns;exports.prefersReducedMotion=he;exports.readControlHeightPx=ks;exports.readShadowSize=Ut;exports.readShadowVar=io;exports.resolveCustomThemeTokens=To;exports.resolveFieldShellSurfaceClass=gs;exports.resolveTheme=qe;exports.resolveThemeTokenState=wo;exports.secondLevelShadow=So;exports.setWillChangeTransform=H;exports.shadowBase=le;exports.shadowCssVar=Se;exports.shadowLarge=Ht;exports.shadowMid=xr;exports.shadowNone=Pe;exports.shadowToken=ot;exports.shouldSkipInteractiveHoverLift=A;exports.subscribeMotionConfig=ft;exports.themeTokenStateToConfig=Yr;exports.tokensConfig=rt;exports.useBurneTheme=Js;exports.useBurneThemeOptional=ea;exports.useBurneThemeRuntime=ra;exports.useBurneThemeRuntimeOptional=na;exports.useContainerPointerHoverHandlers=mo;exports.useConvergeRipples=At;exports.useFieldShellHoverLift=vs;exports.useGlossFieldShellMotion=ai;exports.useGlossInteractiveHandlers=kr;exports.useInteractiveHoverLiftContainerHandlers=wr;exports.useMergedGlossPanelRef=si;exports.usePersistentElShadow=ci;exports.usePrefersReducedMotion=dt;exports.useSecondLevelShadow=Cr;exports.useSecondLevelShadowContainer=ui;
|