diff --git "a/_next/static/chunks/107-24dc2a03cc950c79.js" "b/_next/static/chunks/107-24dc2a03cc950c79.js" new file mode 100644--- /dev/null +++ "b/_next/static/chunks/107-24dc2a03cc950c79.js" @@ -0,0 +1,16 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[107],{44:function(e){"use strict";let t;function r(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function n(e,t,n){let o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;return Math.round(255*r(l,o,e+1/3))<<24|Math.round(255*r(l,o,e))<<16|Math.round(255*r(l,o,e-1/3))<<8}let o="[-+]?\\d*\\.?\\d+",l=o+"%";function i(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}function u(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function f(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){let h;if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;let m=(void 0===t&&(t={rgb:RegExp("rgb"+i(o,o,o)),rgba:RegExp("rgba("+a(o,o,o,o)+"|"+s(o,o,o,o)+")"),hsl:RegExp("hsl"+i(o,l,l)),hsla:RegExp("hsla("+a(o,l,l,o)+"|"+s(o,l,l,o)+")"),hwb:RegExp("hwb"+i(o,l,l)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(h=m.hex6.exec(e))return parseInt(h[1]+"ff",16)>>>0;let p=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=p?p:(h=m.rgb.exec(e))?(u(h[1])<<24|u(h[2])<<16|u(h[3])<<8|255)>>>0:(h=m.rgba.exec(e))?void 0!==h[6]?(u(h[6])<<24|u(h[7])<<16|u(h[8])<<8|d(h[9]))>>>0:(u(h[2])<<24|u(h[3])<<16|u(h[4])<<8|d(h[5]))>>>0:(h=m.hex3.exec(e))?parseInt(h[1]+h[1]+h[2]+h[2]+h[3]+h[3]+"ff",16)>>>0:(h=m.hex8.exec(e))?parseInt(h[1],16)>>>0:(h=m.hex4.exec(e))?parseInt(h[1]+h[1]+h[2]+h[2]+h[3]+h[3]+h[4]+h[4],16)>>>0:(h=m.hsl.exec(e))?(255|n(c(h[1]),f(h[2]),f(h[3])))>>>0:(h=m.hsla.exec(e))?void 0!==h[6]?(n(c(h[6]),f(h[7]),f(h[8]))|d(h[9]))>>>0:(n(c(h[2]),f(h[3]),f(h[4]))|d(h[5]))>>>0:(h=m.hwb.exec(e))?(255|function(e,t,n){if(t+n>=1){let e=Math.round(255*t/(t+n));return e<<24|e<<16|e<<8}return Math.round(255*(r(0,1,e+1/3)*(1-t-n)+t))<<24|Math.round(255*(r(0,1,e)*(1-t-n)+t))<<16|Math.round(255*(r(0,1,e-1/3)*(1-t-n)+t))<<8}(c(h[1]),f(h[2]),f(h[3])))>>>0:null}},542:function(e,t,r){"use strict";r.d(t,{G:function(){return m}});var n=r(281),o=r(9087),l=r(7449),i=r.n(l),s=r(2265);let a=["light","dark"],u="(prefers-color-scheme: dark)",c=(e,t)=>{let r;if(!(typeof window>"u")){try{r=localStorage.getItem(e)||void 0}catch{}return r||t}},d=e=>(e||(e=window.matchMedia(u)),e.matches?"dark":"light");var f=r(1636),h=r(2281);let m=(0,s.memo)(({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:l=!0,storageKey:i="theme",themes:m=a,defaultTheme:g=r?"system":"light",attribute:b="class",skipNextHead:y,onChangeTheme:v,value:w={dark:"t_dark",light:"t_light"},children:S})=>{let[k,$]=(0,s.useState)(()=>c(i,g)),[C,x]=(0,s.useState)(()=>c(i)),T=w?Object.values(w):m,E=(0,o.z)(r=>{let n=d(r),o=()=>x(n);t?o():s.startTransition(()=>o()),"system"!==k||e||_(n,!1)}),_=(0,o.z)((e,t=!0,n=!0)=>{let o=w?.[e]||e;if(t)try{localStorage.setItem(i,e)}catch{}if("system"===e&&r){let e=d();o=w?.[e]||e}if(v?.(o.replace("t_","")),n){let e=document.documentElement;"class"===b?(e.classList.remove(...T),e.classList.add(o)):e.setAttribute(b,o)}});(0,n.LI)(()=>{let e=window.matchMedia(u);return e.addListener(E),E(e),()=>{e.removeListener(E)}},[]);let P=(0,o.z)(t=>{e?_(t,!0,!1):_(t),$(t)});(0,s.useEffect)(()=>{let e=e=>{e.key===i&&P(e.newValue||g)};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[g,P,i]),(0,n.LI)(()=>{if(!l)return;let t=e&&a.includes(e)?e:k&&a.includes(k)?k:"system"===k&&C||null;("u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")!==(t||"light")&&document.documentElement.style.setProperty("color-scheme",t)},[l,k,C,e]);let O=(0,o.z)(()=>{let e="dark"===C?["system","light","dark"]:["system","dark","light"];P(e[(e.indexOf(k)+1)%e.length])}),R=r?C:void 0,L=(0,s.useMemo)(()=>({theme:k,current:k,set:P,toggle:O,forcedTheme:e,resolvedTheme:"system"===k?C:k,themes:r?[...m,"system"]:m,systemTheme:R}),[k,P,O,e,C,r,m,R]);return(0,h.jsxs)(f.m.Provider,{value:L,children:[(0,h.jsx)(p,{forcedTheme:e,storageKey:i,systemTheme:C,attribute:b,value:w,enableSystem:r,defaultTheme:g,attrs:T,skipNextHead:y}),(0,s.useMemo)(()=>S,[S])]})}),p=(0,s.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,defaultTheme:o,value:l,attrs:s,skipNextHead:a})=>{let c="class"===r?`var d=document.documentElement.classList;${s.map(e=>`d.remove('${e}')`).join(";")};`:"var d=document.documentElement;",d=(e,t)=>{e=l?.[e]||e;let n=t?e:`'${e}'`;return"class"===r?`d.add(${n})`:`d.setAttribute('${r}', ${n})`},f="system"===o,m=(0,h.jsx)(h.Fragment,{children:e?(0,h.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){${c}${d(e)}}()`}},"next-themes-script"):n?(0,h.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try {${c}var e=localStorage.getItem('${t}');${f?"":d(o)+";"}if("system"===e||(!e&&${f})){var t="${u}",m=window.matchMedia(t);m.media!==t||m.matches?${d("dark")}:${d("light")}}else if(e) ${l?`var x=${JSON.stringify(l)};`:""}${d(l?"x[e]":"e",!0)}}catch(e){}}()`}},"next-themes-script"):(0,h.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try{${c}var e=localStorage.getItem("${t}");if(e){${l?`var x=${JSON.stringify(l)};`:""}${d(l?"x[e]":"e",!0)}}else{${d(o)};}}catch(t){}}();`}},"next-themes-script")});return a?m:(0,h.jsx)(i(),{children:m})},(e,t)=>e.forcedTheme===t.forcedTheme)},1636:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});let n=(0,r(2265).createContext)({toggle:()=>{},set:e=>{},themes:[]})},9010:function(e,t,r){"use strict";r.d(t,{U:function(){return l}});var n=r(281),o=r(2265);let l=({fallback:e="light"}={})=>{let t=e;if(n.C5){let r=[...document.documentElement.classList];t=r.includes("t_dark")?"dark":r.includes("t_light")?"light":e}return(0,o.useState)(t)}},1542:function(e,t,r){"use strict";r.d(t,{P:function(){return l}});var n=r(2265),o=r(1636);let l=()=>(0,n.useContext)(o.m)},7961:function(){void 0===globalThis.__DEV__&&(globalThis.__DEV__=!1)},6463:function(e,t,r){"use strict";var n=r(1169);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},357:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(8081)},7449:function(e,t){"use strict";function r(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8081:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function l(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===l||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:l}catch(e){t=l}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?a=n.concat(a):c=-1,a.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=a.length;t;){for(n=a,a=[];++c1)for(var r=1;re.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}function l(...e){return n.useCallback(o(...e),e)}},7376:function(e,t,r){"use strict";r.d(t,{vc:function(){return ev}});let n={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",bc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};function o(e){return Object.entries(e)}function l(e){return Object.fromEntries(e)}n.bls="borderLeftStyle",n.brs="borderRightStyle",n.bts="borderTopStyle",n.bbs="borderBottomStyle",n.bxs="boxSizing",n.bxsh="boxShadow",n.ox="overflowX",n.oy="overflowY";let i=e=>"function"==typeof e?{name:e.name||"unnamed",mask:e}:e,s=(e,t)=>{let{skip:r}=t;return Object.fromEntries(Object.entries(e).filter(([e])=>!r||!(e in r)).map(([e,r])=>[e,function(e,t,r){let n,o=r.overrideStrategy,l=r.overrideSwap?.[e];if("u">typeof l)n=l,o="swap";else{let t=r.overrideShift?.[e];if("u">typeof t)n=t,o="shift";else{let t=r.override?.[e];"u">typeof t&&(n=t,o=r.overrideStrategy)}}return typeof n>"u"||"string"==typeof n?t:"swap"===o?n:t}(e,r,t)]))},a=()=>({name:"inverse-mask",mask:(e,t)=>s(l(o(e).map(([e,t])=>[e,-t])),t)}),u=({inverse:e}={},t)=>({name:"shift-mask",mask:(r,n)=>{let{override:o,overrideStrategy:l="shift",max:i,palette:a,min:u=0,strength:c=1}={...t,...n},d=Object.entries(r),f=i??(a?Object.values(a).length-1:1/0),h={};for(let[t,r]of d){if("string"==typeof r)continue;if("number"==typeof o?.[t]){let e=o[t];h[t]="shift"===l?r+e:e;continue}if("string"==typeof o?.[t]){h[t]=o[t];continue}let n=0===r?1/r!=-1/0:r>=0,i=r+c*(n?1:-1)*(e?-1:1),s=n?Math.max(u,Math.min(f,i)):Math.min(-u,Math.max(-f,i));h[t]=s}return s(h,n)}}),c=e=>({name:"soften-mask",mask:u({},e).mask}),d=e=>({name:"strengthen-mask",mask:u({inverse:!0},e).mask}),f=new Map,h=(e,t)=>f.get(t||JSON.stringify(e)),m=(e,t)=>{let r={...t,cache:new Map};f.set(t.name||JSON.stringify(e),r),f.set(JSON.stringify(t.definition),r)},p=new Map;function g(e,t,r,n,o=!1){let l=o?"":JSON.stringify([n,e,t,r]);if(!o&&p.has(l))return p.get(l);let i={...Object.fromEntries(Object.entries(t).map(([t,r])=>[t,b(e,r)])),...r?.nonInheritedValues};return m(i,{palette:e,definition:t,options:r,name:n}),l&&p.set(l,i),i}let b=(e,t)=>{if(!e)throw Error("No palette!");if("string"==typeof t)return t;let r=e.length-1;return e[Math.min(Math.max(0,(0===t?1/t!=-1/0:t>=0)?t:r+t),r)]};function y(e,t,r={},n){let o={...r.skip};if(e.options?.nonInheritedValues)for(let t in e.options.nonInheritedValues)o[t]=1;let l={parentName:n,palette:e.palette,...r,skip:o},i=t.mask(e.definition,l),s=g(e.palette,i);return{...e,cache:new Map,definition:i,theme:s}}class v{constructor(e){this.state=e}addPalettes(e){return this.state.palettes={...this.state.palettes,...e},this}addTemplates(e){return this.state.templates={...this.state.templates,...e},this}addMasks(e){return this.state.masks={...this.state.masks,...l(o(e).map(([e,t])=>[e,i(t)]))},this}_addedThemes=[];addThemes(e){return this._addedThemes.push({type:"themes",args:[e]}),this.state.themes={...this.state.themes,...e},this}addComponentThemes(e,t){return this.addChildThemes(e,t),this}addChildThemes(e,t){let r=this.state.themes;if(!r)throw Error("No themes defined yet, use addThemes first to set your base themes");this._addedThemes.push({type:"childThemes",args:[e,t]});let n=Object.keys(r),o=Object.keys(e),l=Object.fromEntries(n.flatMap(r=>{let n=t?.avoidNestingWithin;return n&&n.some(e=>r.startsWith(e)||r.endsWith(e))?[]:o.map(t=>{let n=`${r}_${t}`,o=e[t];return"avoidNestingWithin"in o&&o.avoidNestingWithin.some(e=>r.startsWith(e)||r.endsWith(e))?null:[n,o]}).filter(Boolean)})),i={...this.state.themes,...l};return this.state.themes=i,this}build(){if(!this.state.themes)return{};let e={},t=[];for(let r in this.state.themes){let n=r.split("_"),o=n.slice(0,n.length-1).join("_"),l=this.state.themes[r],i=Array.isArray(l)?l.find(e=>!e.parent||o.endsWith(e.parent)||o.startsWith(e.parent))||null:l;if(i){if("theme"in i)e[r]=i.theme;else if("mask"in i)t.push({parentName:o,themeName:r,mask:i});else{let{palette:t="",template:l,...s}=i;if(this.state.themes[o],!this.state.palettes)throw Error(`No palettes defined for theme with palette expected: ${r}`);let a=this.state.palettes[t||""],u=`${o}_${t}`;for(;!a&&u;)u in this.state.palettes?(a=this.state.palettes[u],t=u):u=u.split("_").slice(0,-1).join("_");if(!a)throw Error("No palette for theme");let c=this.state.templates?.[l]??this.state.templates?.[`${n[0]}_${l}`];if(!c)throw Error(`No template for theme ${r}: ${l}`);e[r]=function(e,t,r,n,o,l=!1){if(!e[t])throw Error(`No pallete: ${t}`);let i={...r};for(let n in r){let o=r[n];if("string"==typeof o&&"$"===o[0]){let[r,l]=o.split("."),s=r.slice(1),a=t.split("_")[0],u=e[s]||e[`${a}_${s}`];if(u){let e=b(u,+l);"u">typeof e&&(i[n]=e)}}}return g(e[t],i,n,o,l)}(this.state.palettes,t,c,s,r,!0)}}}for(let{mask:r,themeName:n,parentName:o}of t){let t=e[o];if(!t)continue;let{mask:l,...i}=r,s=this.state.masks?.[l];if(!s)throw Error(`No mask ${l}`);let a=this.state.themes[o];if(a&&"childOptions"in a){let{mask:e,...t}=a.childOptions;e&&(s=this.state.masks?.[e]),Object.assign(i,t)}e[n]=function(e,t,r={},n,o){let l=h(e,n);if(!l)throw Error("❌ Err2");let i=y(l,t,r,n);return m(i.theme,{definition:i.definition,palette:l.palette,name:o}),i.theme}(t,s,i,o,n)}return e}}let w=(...e)=>({name:"combine-mask",mask:(t,r)=>{let n=h(t,r.parentName),o;for(let l of e){if(!n)throw Error(`Nothing returned from mask: ${n}, for template: ${t} and mask: ${l.toString()}, given opts ${JSON.stringify(r,null,2)}`);let e=y(n,l,r);n=e,o=e.theme}return o}});c(),c({strength:2}),c({strength:3}),d(),a(),w(a(),c({strength:2})),w(a(),c({strength:3})),w(a(),c({strength:4})),w(a(),d({strength:2})),i((e,t)=>{let r=d().mask(e,t),n=c().mask(e,t);return{...r,borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus}}),i((e,t)=>{let r=c({strength:2}).mask(e,t),n=c({strength:1}).mask(e,t);return{...r,borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus}}),i((e,t)=>{let r=c({strength:2}).mask(e,t);return{...c({strength:3}).mask(e,t),borderColor:r.borderColor,borderColorHover:r.borderColorHover,borderColorPress:r.borderColorPress,borderColorFocus:r.borderColorFocus}}),i((e,t)=>{let r=s(e,t),n=c().mask(e,t);return{...r,borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus}}),i((e,t)=>{let r=s(e,t),n=c({strength:2}).mask(e,t);return{...r,borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus}});var S,k,$=r(7104);let C={blue:{blue1:"hsl(206, 100%, 99.2%)",blue2:"hsl(210, 100%, 98.0%)",blue3:"hsl(209, 100%, 96.5%)",blue4:"hsl(210, 98.8%, 94.0%)",blue5:"hsl(209, 95.0%, 90.1%)",blue6:"hsl(209, 81.2%, 84.5%)",blue7:"hsl(208, 77.5%, 76.9%)",blue8:"hsl(206, 81.9%, 65.3%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(208, 100%, 47.3%)",blue11:"hsl(211, 100%, 43.2%)",blue12:"hsl(211, 100%, 15.0%)"},gray:{gray1:"hsl(0, 0%, 99.0%)",gray2:"hsl(0, 0%, 97.3%)",gray3:"hsl(0, 0%, 95.1%)",gray4:"hsl(0, 0%, 93.0%)",gray5:"hsl(0, 0%, 90.9%)",gray6:"hsl(0, 0%, 88.7%)",gray7:"hsl(0, 0%, 85.8%)",gray8:"hsl(0, 0%, 78.0%)",gray9:"hsl(0, 0%, 56.1%)",gray10:"hsl(0, 0%, 52.3%)",gray11:"hsl(0, 0%, 43.5%)",gray12:"hsl(0, 0%, 9.0%)"},green:{green1:"hsl(136, 50.0%, 98.9%)",green2:"hsl(138, 62.5%, 96.9%)",green3:"hsl(139, 55.2%, 94.5%)",green4:"hsl(140, 48.7%, 91.0%)",green5:"hsl(141, 43.7%, 86.0%)",green6:"hsl(143, 40.3%, 79.0%)",green7:"hsl(146, 38.5%, 69.0%)",green8:"hsl(151, 40.2%, 54.1%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(152, 57.5%, 37.6%)",green11:"hsl(153, 67.0%, 28.5%)",green12:"hsl(155, 40.0%, 14.0%)"},orange:{orange1:"hsl(24, 70.0%, 99.0%)",orange2:"hsl(24, 83.3%, 97.6%)",orange3:"hsl(24, 100%, 95.3%)",orange4:"hsl(25, 100%, 92.2%)",orange5:"hsl(25, 100%, 88.2%)",orange6:"hsl(25, 100%, 82.8%)",orange7:"hsl(24, 100%, 75.3%)",orange8:"hsl(24, 94.5%, 64.3%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 46.5%)",orange11:"hsl(24, 100%, 37.0%)",orange12:"hsl(15, 60.0%, 17.0%)"},pink:{pink1:"hsl(322, 100%, 99.4%)",pink2:"hsl(323, 100%, 98.4%)",pink3:"hsl(323, 86.3%, 96.5%)",pink4:"hsl(323, 78.7%, 94.2%)",pink5:"hsl(323, 72.2%, 91.1%)",pink6:"hsl(323, 66.3%, 86.6%)",pink7:"hsl(323, 62.0%, 80.1%)",pink8:"hsl(323, 60.3%, 72.4%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(322, 63.9%, 50.7%)",pink11:"hsl(322, 75.0%, 46.0%)",pink12:"hsl(320, 70.0%, 13.5%)"},purple:{purple1:"hsl(280, 65.0%, 99.4%)",purple2:"hsl(276, 100%, 99.0%)",purple3:"hsl(276, 83.1%, 97.0%)",purple4:"hsl(275, 76.4%, 94.7%)",purple5:"hsl(275, 70.8%, 91.8%)",purple6:"hsl(274, 65.4%, 87.8%)",purple7:"hsl(273, 61.0%, 81.7%)",purple8:"hsl(272, 60.0%, 73.5%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(272, 46.8%, 50.3%)",purple11:"hsl(272, 50.0%, 45.8%)",purple12:"hsl(272, 66.0%, 16.0%)"},red:{red1:"hsl(359, 100%, 99.4%)",red2:"hsl(359, 100%, 98.6%)",red3:"hsl(360, 100%, 96.8%)",red4:"hsl(360, 97.9%, 94.8%)",red5:"hsl(360, 90.2%, 91.9%)",red6:"hsl(360, 81.7%, 87.8%)",red7:"hsl(359, 74.2%, 81.7%)",red8:"hsl(359, 69.5%, 74.3%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 69.4%, 55.2%)",red11:"hsl(358, 65.0%, 48.7%)",red12:"hsl(354, 50.0%, 14.6%)"},yellow:{yellow1:"hsl(60, 54.0%, 98.5%)",yellow2:"hsl(52, 100%, 95.5%)",yellow3:"hsl(55, 100%, 90.9%)",yellow4:"hsl(54, 100%, 86.6%)",yellow5:"hsl(52, 97.9%, 82.0%)",yellow6:"hsl(50, 89.4%, 76.1%)",yellow7:"hsl(47, 80.4%, 68.0%)",yellow8:"hsl(48, 100%, 46.1%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(50, 100%, 48.5%)",yellow11:"hsl(42, 100%, 29.0%)",yellow12:"hsl(40, 55.0%, 13.5%)"}},x={blue:{blue1:"hsl(212, 35.0%, 9.2%)",blue2:"hsl(216, 50.0%, 11.8%)",blue3:"hsl(214, 59.4%, 15.3%)",blue4:"hsl(214, 65.8%, 17.9%)",blue5:"hsl(213, 71.2%, 20.2%)",blue6:"hsl(212, 77.4%, 23.1%)",blue7:"hsl(211, 85.1%, 27.4%)",blue8:"hsl(211, 89.7%, 34.1%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(209, 100%, 60.6%)",blue11:"hsl(210, 100%, 66.1%)",blue12:"hsl(206, 98.0%, 95.8%)"},gray:{gray1:"hsl(0, 0%, 8.5%)",gray2:"hsl(0, 0%, 11.0%)",gray3:"hsl(0, 0%, 13.6%)",gray4:"hsl(0, 0%, 15.8%)",gray5:"hsl(0, 0%, 17.9%)",gray6:"hsl(0, 0%, 20.5%)",gray7:"hsl(0, 0%, 24.3%)",gray8:"hsl(0, 0%, 31.2%)",gray9:"hsl(0, 0%, 43.9%)",gray10:"hsl(0, 0%, 49.4%)",gray11:"hsl(0, 0%, 62.8%)",gray12:"hsl(0, 0%, 93.0%)"},green:{green1:"hsl(146, 30.0%, 7.4%)",green2:"hsl(155, 44.2%, 8.4%)",green3:"hsl(155, 46.7%, 10.9%)",green4:"hsl(154, 48.4%, 12.9%)",green5:"hsl(154, 49.7%, 14.9%)",green6:"hsl(154, 50.9%, 17.6%)",green7:"hsl(153, 51.8%, 21.8%)",green8:"hsl(151, 51.7%, 28.4%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(151, 49.3%, 46.5%)",green11:"hsl(151, 50.0%, 53.2%)",green12:"hsl(137, 72.0%, 94.0%)"},orange:{orange1:"hsl(30, 70.0%, 7.2%)",orange2:"hsl(28, 100%, 8.4%)",orange3:"hsl(26, 91.1%, 11.6%)",orange4:"hsl(25, 88.3%, 14.1%)",orange5:"hsl(24, 87.6%, 16.6%)",orange6:"hsl(24, 88.6%, 19.8%)",orange7:"hsl(24, 92.4%, 24.0%)",orange8:"hsl(25, 100%, 29.0%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 58.5%)",orange11:"hsl(24, 100%, 62.2%)",orange12:"hsl(24, 97.0%, 93.2%)"},pink:{pink1:"hsl(318, 25.0%, 9.6%)",pink2:"hsl(319, 32.2%, 11.6%)",pink3:"hsl(319, 41.0%, 16.0%)",pink4:"hsl(320, 45.4%, 18.7%)",pink5:"hsl(320, 49.0%, 21.1%)",pink6:"hsl(321, 53.6%, 24.4%)",pink7:"hsl(321, 61.1%, 29.7%)",pink8:"hsl(322, 74.9%, 37.5%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(323, 72.8%, 59.2%)",pink11:"hsl(325, 90.0%, 66.4%)",pink12:"hsl(322, 90.0%, 95.8%)"},purple:{purple1:"hsl(284, 20.0%, 9.6%)",purple2:"hsl(283, 30.0%, 11.8%)",purple3:"hsl(281, 37.5%, 16.5%)",purple4:"hsl(280, 41.2%, 20.0%)",purple5:"hsl(279, 43.8%, 23.3%)",purple6:"hsl(277, 46.4%, 27.5%)",purple7:"hsl(275, 49.3%, 34.6%)",purple8:"hsl(272, 52.1%, 45.9%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(273, 57.3%, 59.1%)",purple11:"hsl(275, 80.0%, 71.0%)",purple12:"hsl(279, 75.0%, 95.7%)"},red:{red1:"hsl(353, 23.0%, 9.8%)",red2:"hsl(357, 34.4%, 12.0%)",red3:"hsl(356, 43.4%, 16.4%)",red4:"hsl(356, 47.6%, 19.2%)",red5:"hsl(356, 51.1%, 21.9%)",red6:"hsl(356, 55.2%, 25.9%)",red7:"hsl(357, 60.2%, 31.8%)",red8:"hsl(358, 65.0%, 40.4%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 85.3%, 64.0%)",red11:"hsl(358, 100%, 69.5%)",red12:"hsl(351, 89.0%, 96.0%)"},yellow:{yellow1:"hsl(45, 100%, 5.5%)",yellow2:"hsl(46, 100%, 6.7%)",yellow3:"hsl(45, 100%, 8.7%)",yellow4:"hsl(45, 100%, 10.4%)",yellow5:"hsl(47, 100%, 12.1%)",yellow6:"hsl(49, 100%, 14.3%)",yellow7:"hsl(49, 90.3%, 18.4%)",yellow8:"hsl(50, 100%, 22.0%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(54, 100%, 68.0%)",yellow11:"hsl(48, 100%, 47.0%)",yellow12:"hsl(53, 100%, 91.0%)"}},T="rgba(0,0,0,0.04)",E="rgba(0,0,0,0.085)",_="rgba(0,0,0,0.2)",P="rgba(0,0,0,0.3)",O={...x.blue,...x.gray,...x.green,...x.orange,...x.pink,...x.purple,...x.red,...x.yellow},R={...C.blue,...C.gray,...C.green,...C.orange,...C.pink,...C.purple,...C.red,...C.yellow},L={white0:"rgba(255,255,255,0)",white075:"rgba(255,255,255,0.75)",white05:"rgba(255,255,255,0.5)",white025:"rgba(255,255,255,0.25)",black0:"rgba(10,10,10,0)",black075:"rgba(10,10,10,0.75)",black05:"rgba(10,10,10,0.5)",black025:"rgba(10,10,10,0.25)",white1:"#fff",white2:"#f8f8f8",white3:"hsl(0, 0%, 96.3%)",white4:"hsl(0, 0%, 94.1%)",white5:"hsl(0, 0%, 92.0%)",white6:"hsl(0, 0%, 90.0%)",white7:"hsl(0, 0%, 88.5%)",white8:"hsl(0, 0%, 81.0%)",white9:"hsl(0, 0%, 56.1%)",white10:"hsl(0, 0%, 50.3%)",white11:"hsl(0, 0%, 42.5%)",white12:"hsl(0, 0%, 9.0%)",black1:"#050505",black2:"#151515",black3:"#191919",black4:"#232323",black5:"#282828",black6:"#323232",black7:"#424242",black8:"#494949",black9:"#545454",black10:"#626262",black11:"#a5a5a5",black12:"#fff",...U(R,"Light"),...U(O,"Dark")},j=(()=>{let e=(e,t=0)=>e.replace("%)",`%, ${t})`).replace("hsl(","hsla("),t=(t,r)=>{let n=Object.values(t),o=n.length-4,l=Object.values(r),i=l[0],s=l[l.length-1];return[i,e(n[0],0),e(n[0],.25),e(n[0],.5),e(n[0],.75),...n,e(n[o],.75),e(n[o],.5),e(n[o],.25),e(n[o],0),s]},r={light:L.blue4Light,dark:L.blue4Dark},n=[r.light,L.white0,L.white025,L.white05,L.white075,L.white1,L.white2,L.white3,L.white4,L.white5,L.white6,L.white7,L.white8,L.white9,L.white10,L.white11,L.white12,L.black075,L.black05,L.black025,L.black0,r.dark],o=[r.dark,L.black0,L.black025,L.black05,L.black075,L.black1,L.black2,L.black3,L.black4,L.black5,L.black6,L.black7,L.black8,L.black9,L.black10,L.black11,L.black12,L.white075,L.white05,L.white025,L.white0,r.light],l=Q(C),i=K(l.map((e,r)=>[`light_${e}`,t(C[e],C[l[(r+1)%l.length]])])),s=Q(x),a=K(s.map((e,r)=>[`dark_${e}`,t(x[e],C[s[(r+1)%s.length]])]));return{light:n,dark:o,...{...i,...a}}})(),M=e=>{let t="light"===e?-1:1,r=-t,n={accentBackground:0,accentColor:-0,background0:1,background025:2,background05:3,background075:4,color1:5,color2:6,color3:7,color4:8,color5:9,color6:10,color7:11,color8:12,color9:13,color10:14,color11:15,color12:16,color0:-1,color025:-2,color05:-3,color075:-4,background:5,backgroundHover:5+t,backgroundPress:5+r,backgroundFocus:5+r,borderColor:8,borderColorHover:8+t,borderColorPress:8+r,borderColorFocus:8,color:-5,colorHover:-6,colorPress:-5,colorFocus:-6,colorTransparent:-1,placeholderColor:-8,outlineColor:-2},o={background:n.background+1,backgroundHover:n.backgroundHover+1,backgroundPress:n.backgroundPress+1,backgroundFocus:n.backgroundFocus+1,borderColor:n.borderColor+1,borderColorHover:n.borderColorHover+1,borderColorFocus:n.borderColorFocus+1,borderColorPress:n.borderColorPress+1},l={background:n.background+2,backgroundHover:n.backgroundHover+2,backgroundPress:n.backgroundPress+2,backgroundFocus:n.backgroundFocus+2,borderColor:n.borderColor+2,borderColorHover:n.borderColorHover+2,borderColorFocus:n.borderColorFocus+2,borderColorPress:n.borderColorPress+2},i={background:n.background+3,backgroundHover:n.backgroundHover+3,backgroundPress:n.backgroundPress+3,backgroundFocus:n.backgroundFocus+3,borderColor:n.borderColor+3,borderColorHover:n.borderColorHover+3,borderColorFocus:n.borderColorFocus+3,borderColorPress:n.borderColorPress+3},s={background:n.background+5,backgroundHover:n.background+5,backgroundPress:n.backgroundPress+5,backgroundFocus:n.backgroundFocus+5},a={...s,borderColor:s.background,borderColorHover:s.backgroundHover,borderColorFocus:s.backgroundFocus,borderColorPress:s.backgroundPress},u={color:o.background,colorHover:o.backgroundHover,colorPress:o.backgroundPress,colorFocus:o.backgroundFocus,background:n.color,backgroundHover:n.colorHover,backgroundPress:n.colorPress,backgroundFocus:n.colorFocus,borderColor:n.color-2,borderColorHover:n.color-3,borderColorFocus:n.color-4,borderColorPress:n.color-5},c={...u,background:n.color-2,backgroundHover:n.colorHover-2,backgroundPress:n.colorPress-2,backgroundFocus:n.colorFocus-2,borderColor:n.color-2-2,borderColorHover:n.color-3-2,borderColorFocus:n.color-4-2,borderColorPress:n.color-5-2},d={color:n.color-1,colorHover:n.colorHover-1,colorPress:n.colorPress-1,colorFocus:n.colorFocus-1},f={color:n.color-2,colorHover:n.colorHover-2,colorPress:n.colorPress-2,colorFocus:n.colorFocus-2};return{base:n,alt1:d,alt2:f,surface1:o,surface2:l,surface3:i,inverseSurface1:u,inverseActive:c,surfaceActive:a}},N=M("light"),A=M("dark"),I={...K(Q(N).map(e=>[`light_${e}`,N[e]])),...K(Q(A).map(e=>[`dark_${e}`,A[e]]))},W={light:{...R,shadowColor:E,shadowColorHover:E,shadowColorPress:T,shadowColorFocus:T},dark:{...O,shadowColor:P,shadowColorHover:P,shadowColorPress:_,shadowColorFocus:_}},F=[{parent:"light",theme:{background:"rgba(0,0,0,0.5)"}},{parent:"dark",theme:{background:"rgba(0,0,0,0.8)"}}],H=[{parent:"active",template:"inverseActive"},{parent:"",template:"inverseSurface1"}],z=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface1"}],B=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface2"}],D=new v({}).addPalettes(j).addTemplates(I).addThemes({light:{template:"base",palette:"light",nonInheritedValues:W.light},dark:{template:"base",palette:"dark",nonInheritedValues:W.dark}}).addChildThemes({orange:{palette:"orange",template:"base"},yellow:{palette:"yellow",template:"base"},green:{palette:"green",template:"base"},blue:{palette:"blue",template:"base"},purple:{palette:"purple",template:"base"},pink:{palette:"pink",template:"base"},red:{palette:"red",template:"base"},gray:{palette:"gray",template:"base"}}).addChildThemes({alt1:{template:"alt1"},alt2:{template:"alt2"},active:{template:"surface3"},surface1:{template:"surface1"},surface2:{template:"surface2"},surface3:{template:"surface3"},surface4:{template:"surfaceActive"}}).addComponentThemes({ListItem:{template:"surface1"},SelectTrigger:z,Card:z,Button:[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface3"}],Checkbox:B,Switch:B,SwitchThumb:H,TooltipContent:B,Progress:{template:"surface1"},RadioGroupItem:B,TooltipArrow:{template:"surface1"},SliderTrackActive:{template:"surface3"},SliderTrack:{template:"surface1"},SliderThumb:H,Tooltip:H,ProgressIndicator:H,SheetOverlay:F,DialogOverlay:F,ModalOverlay:F,Input:z,TextArea:z},{avoidNestingWithin:["alt1","alt2","surface1","surface2","surface3","surface4"]}).build(),V={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},Y=Object.entries(V).map(([e,t])=>[e,0===t?0:2===t?.5:4===t?1:8===t?1.5:t<=16?Math.round(.333*t):Math.floor(.7*t-12)]),X=Y.slice(1).map(([e,t])=>[`-${e.slice(1)}`,-t]),G=(S={color:L,radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:{...Object.fromEntries(Y),...Object.fromEntries(X)},size:V},(0,$.D)(S));function U(e,t){return Object.fromEntries(Object.entries(e).map(([e,r])=>[`${e}${t}`,r]))}function K(e){return Object.fromEntries(e)}function Q(e){return Object.keys(e)}var q=r(281),J=r(1333),Z=r(5390),ee=r(2265);let et="cubic-bezier(0.215, 0.610, 0.355, 1.000)",er=function(e){let t=new WeakMap;return{animations:e,usePresence:Z.oO,ResetPresence:Z.il,supportsCSSVars:!0,useAnimatedNumber(e){let[r,n]=(0,ee.useState)(e);return{getInstance:()=>n,getValue:()=>r,setValue(e){n(e);let r=t.get(n);r&&r.forEach(t=>t(e))},stop(){}}},useAnimatedNumberReaction({value:e},r){(0,ee.useEffect)(()=>{let n=e.getInstance(),o=t.get(n);if(!o){let e=new Set;t.set(n,e),o=e}return o.add(r),()=>{o?.delete(r)}},[])},useAnimatedNumberStyle:(e,t)=>t(e.getValue()),useAnimations:({props:t,presence:r,style:n,componentState:o,stateRef:l})=>{o.unmounted;let i=r?.[0]===!1,s=r?.[1],[a,u]=[].concat(t.animation),c=e[a],d=t.animateOnly??["all"];return(0,q.LI)(()=>{let e=l.current.host;if(!s||!i||!e)return;let t=()=>{s?.()};return e.addEventListener("transitionend",t),e.addEventListener("transitioncancel",t),()=>{e.removeEventListener("transitionend",t),e.removeEventListener("transitioncancel",t)}},[s,i]),c?(Array.isArray(n.transform)&&(n.transform=(0,J.m)(n.transform)),n.transition=d.map(t=>{let r=e[u?.[t]]??c;return`${t} ${r}`}).join(", "),{style:n}):null}}}({"75ms":"ease-in 75ms","100ms":"ease-in 100ms","200ms":"ease-in 200ms",bouncy:"ease-in 200ms",superBouncy:"ease-in 500ms",lazy:"ease-in 1000ms",medium:"ease-in 300ms",slow:"ease-in 500ms",quick:`${et} 400ms`,quicker:`${et} 300ms`,quickest:`${et} 200ms`,tooltip:"ease-in 400ms"}),en=["100","200","300","400","500","600","700","800","900"],eo=(e,t,r)=>{if("string"==typeof e)return e;let n=Object.keys(e),o=e[n[0]];return Object.fromEntries([...new Set([...t,...n])].map(t=>{let n=e[t]??r??o;return o=n,r=n,[t,n]}))},el=e=>{let t=Object.keys(e.size);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,n])=>[r,eo(n,"face"===r?en:t,"face"===r?{normal:e.family}:void 0)])))};var ei=r(2202);let es=(e={},{sizeLineHeight:t=e=>e+10,sizeSize:r=e=>1*e}={})=>{let n=Object.fromEntries(Object.entries({...ea,...e.size}).map(([e,t])=>[e,r(+t)]));return el({family:q.$L?'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"Inter",lineHeight:Object.fromEntries(Object.entries(n).map(([e,r])=>[e,t((0,ei.Ve)(r))])),weight:{4:"300"},letterSpacing:{4:0},...e,size:n})},ea={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},eu={1:11,2:12,3:13,4:14,5:15,6:16,7:18,8:21,9:28,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ec={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ed=((e={})=>el({family:q.$L?"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace":"Silkscreen",size:eu,lineHeight:Object.fromEntries(Object.entries(e.size||eu).map(([e,t])=>[e,"number"==typeof t?Math.round(1.2*t+6):t])),weight:{4:"300"},letterSpacing:{4:1,5:3,6:3,9:-2,10:-3,12:-4},...e}))(),ef=es({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:e=>Math.round(1.1*e+(e<30?10:5))}),eh=es({weight:{1:"400",7:"600"}},{sizeSize:e=>Math.round(e),sizeLineHeight:e=>Math.round(1.1*e+(e>=12?8:4))}),em=function(e,t={},{sizeLineHeight:r=e=>1.35*e}={}){let n=t.size||ec;return el({family:e,size:n,lineHeight:Object.fromEntries(Object.entries(n).map(([e,t])=>[e,r(+t)])),weight:{0:"300"},letterSpacing:{4:0},...t})}('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:e=>1.5*e});var ep=r(9533);let eg=globalThis.matchMedia,eb=(k={xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:661},gtSm:{minWidth:801},gtMd:{minWidth:1021},gtLg:{minWidth:1281},gtXl:{minWidth:1651}},(0,ep.D)(eg),k);var ey=r(357);globalThis.global||=globalThis;let ev={animations:er,defaultFont:"body",shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,themes:"true"===ey.env.TAMAGUI_OPTIMIZE_THEMES?{}:D,media:eb,shorthands:n,tokens:G,fonts:{heading:ef,body:eh,mono:em,silkscreen:ed},mediaQueryDefaultActive:{xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1},selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null}},281:function(e,t,r){"use strict";r.d(t,{ob:function(){return h},Dt:function(){return d},C5:function(){return s},s:function(){return f},sk:function(){return i},wT:function(){return c},$L:function(){return o},LI:function(){return a}});var n=r(2265);let o=!0,l="u">typeof window,i=!l,s=l,a=i?n.useEffect:n.useLayoutEffect,u=("u">typeof navigator&&/Chrome/.test(navigator.userAgent||""),s&&("ontouchstart"in window||navigator.maxTouchPoints>0)),c=!o||u,d=!1,f=!1,h="web"},2166:function(e,t,r){"use strict";r.d(t,{Kq:function(){return eo},xv:function(){return el},G7:function(){return en}});var n=r(2265);let o="__reactResponderId",l=!!("u">typeof window&&window.document&&window.document.createElement),i=e=>{if(e&&1===e.nodeType&&e.getBoundingClientRect)return e.getBoundingClientRect()};function s(e){let t=[];for(;null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}let a=()=>{},u={},c=[];function d(e){return e>20?e%20:e}function f(e,t){let r,n=!1,o,l,s=e.changedTouches,f=e.type,h=!0===e.metaKey,m=!0===e.shiftKey,p=s?.[0].force||0,g=d(s?.[0].identifier||0),b=s?.[0].clientX||e.clientX,y=s?.[0].clientY||e.clientY,v=s?.[0].pageX||e.pageX,w=s?.[0].pageY||e.pageY,S="function"==typeof e.preventDefault?e.preventDefault.bind(e):a,k=e.timeStamp;function $(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:d(e.identifier),get locationX(){return x(e.clientX)},get locationY(){return T(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:k}))}if(null!=s)o=$(s),l=$(e.touches);else{let t=[{force:p,identifier:g,get locationX(){return x(b)},get locationY(){return T(y)},pageX:v,pageY:w,target:e.target,timestamp:k}];o=t,l="mouseup"===f||"dragstart"===f?c:t}let C={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:u,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>n,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:h,shiftKey:m,changedTouches:o,force:p,identifier:g,get locationX(){return x(b)},get locationY(){return T(y)},pageX:v,pageY:w,target:e.target,timestamp:k,touches:l,type:f},persist:a,preventDefault:S,stopPropagation(){n=!0},target:e.target,timeStamp:k,touchHistory:t.touchHistory};function x(e){if(r=r||i(C.currentTarget))return e-r.left}function T(e){if(r=r||i(C.currentTarget))return e-r.top}return C}function h(e){return"touchstart"===e||"mousedown"===e}function m(e){return"touchmove"===e||"mousemove"===e}function p(e){return"touchend"===e||"mouseup"===e||g(e)}function g(e){return"touchcancel"===e||"dragstart"===e}class b{_touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};recordTouchTrack(e,t){let r=this._touchHistory;if(m(e))t.changedTouches.forEach(e=>(function(e,t){let r=t.touchBank[v(e)];r?(r.touchActive=!0,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=e.pageX,r.currentPageY=e.pageY,r.currentTimeStamp=y(e),t.mostRecentTimeStamp=y(e)):console.warn(`Cannot record touch move without a touch start. +`,`Touch Move: ${w(e)} +`,`Touch Bank: ${S(t)}`)})(e,r));else if(h(e))t.changedTouches.forEach(e=>(function(e,t){let r=v(e),n=t.touchBank[r];n?(n.touchActive=!0,n.startPageX=e.pageX,n.startPageY=e.pageY,n.startTimeStamp=y(e),n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=y(e),n.previousPageX=e.pageX,n.previousPageY=e.pageY,n.previousTimeStamp=y(e)):t.touchBank[r]={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:y(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:y(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:y(e)},t.mostRecentTimeStamp=y(e)})(e,r)),r.numberActiveTouches=t.touches.length,1===r.numberActiveTouches&&(r.indexOfSingleActiveTouch=t.touches[0].identifier);else if(p(e)&&(t.changedTouches.forEach(e=>(function(e,t){let r=t.touchBank[v(e)];r?(r.touchActive=!1,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=e.pageX,r.currentPageY=e.pageY,r.currentTimeStamp=y(e),t.mostRecentTimeStamp=y(e)):console.warn(`Cannot record touch end without a touch start. +`,`Touch End: ${w(e)} +`,`Touch Bank: ${S(t)}`)})(e,r)),r.numberActiveTouches=t.touches.length,1===r.numberActiveTouches)){let{touchBank:e}=r;for(let t=0;t20&&(r+=` (original size: ${t.length})`),r}let k={},$=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],C=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],x={touchstart:$,mousedown:$,touchmove:C,mousemove:C,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},T={id:null,idPath:null,node:null},E=new Map,_=!1,P=0,O={id:null,node:null,idPath:null},R=new b;function L(e){return E.get(e)??k}function j(e){let t=e.type,r=e.target;if("touchstart"===t&&(_=!0),("touchmove"===t||P>1)&&(_=!1),"mousedown"===t&&_||"mousemove"===t&&_||"mousemove"===t&&P<1)return;if(_&&"mouseup"===t){0===P&&(_=!1);return}let n=h(t)&&function(e){let{altKey:t,button:r,buttons:n,ctrlKey:o,type:l}=e,i=!1===t&&!1===o;return!!("touchstart"===l||"touchmove"===l||"mousedown"===l&&(0===r||1===n)&&i||"mousemove"===l&&1===n&&i)}(e),l=m(t),i=p(t),a="scroll"===t,u="select"===t||"selectionchange"===t,c=f(e,R);(n||l||i)&&(e.touches?P=e.touches.length:n?P=1:i&&(P=0),R.recordTouchTrack(t,c.nativeEvent));let d=function(e){let t=[],r=[],n="selectionchange"===e.type?s(window.getSelection()?.anchorNode):null!=e.composedPath?e.composedPath():s(e.target);for(let e=0;e0){let t=O.idPath,r=d.idPath;if(null!=t&&null!=r){let e=function(e,t){let r=e.length,n=t.length;if(0===r||0===n||e[r-1]!==t[n-1])return null;let o=e[0],l=0,i=t[0],s=0;r-n>0&&(o=e[l=r-n],r=n),n-r>0&&(i=t[s=n-r],n=r);let a=r;for(;a--;){if(o===i)return o;o=e[l++],i=t[s++]}return null}(t,r);if(null!=e){let t=r.indexOf(e)+(e===O.id?1:0);d={idPath:r.slice(t),nodePath:d.nodePath.slice(t)}}else d=null}null!=d&&null!=(y=function(e,t,r){let n=x[t.type];if(null!=n){let{idPath:o,nodePath:l}=e,i=n[0],s=n[1],{bubbles:a}=n[2],u=(e,t,n)=>{let l=L(e)[n];if(null!=l&&(r.currentTarget=t,!0===l(r))){let r=o.slice(o.indexOf(e));return{id:e,node:t,idPath:r}}};for(let e=o.length-1;e>=0;e--){let t=u(o[e],l[e],i);if(null!=t)return t;if(!0===r.isPropagationStopped())return}if(a)for(let e=0;e=1&&t!==` +`&&!!o}():"select"===e.type),o=i&&!n&&!function(e,t){if(!t||0===t.length)return!1;for(let r=0;r{if(!(!e||1!==e.nodeType))return e.getBoundingClientRect?.()},U=new WeakMap,K=new Set,Q=null;if("u">typeof window&&"ResizeObserver"in window&&(Q=new ResizeObserver(e=>{for(let{target:t}of e){let e=U.get(t);if("function"!=typeof e)return;q(t).then(t=>{e(t)})}}),"function"==typeof window.addEventListener)){let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{K.forEach(e=>e())},4)})}let q=async e=>new Promise(t=>{Z(e,null,(r,n,o,l,i,s)=>{t({nativeEvent:{layout:{x:r,y:n,width:o,height:l,left:i,top:s},target:e},timeStamp:Date.now()})})}),J=new WeakMap,Z=(e,t,r)=>{let n=t||e?.parentNode;if(n instanceof HTMLElement){let t=Date.now();J.set(e,t),Promise.all([et(e),et(n)]).then(([n,o])=>{if(o&&n&&J.get(e)===t){let{x:e,y:t,width:l,height:i,left:s,top:a}=ee(n,o);r(e,t,l,i,s,a)}})}},ee=(e,t)=>{let{height:r,left:n,top:o,width:l}=e;return{x:n-t.left,y:o-t.top,width:l,height:r,left:n,top:o}},et=e=>new Promise(t=>{let r=setTimeout(function(){t(G(e))},10);new IntersectionObserver((e,n)=>{clearTimeout(r),n.disconnect(),t(e[0]?.boundingClientRect)},{threshold:1e-4}).observe(e)}),er=e=>{let t=G(e);if(!t)return;let{x:r,y:n,top:o,left:l}=t;return{x:r,y:n,width:e.offsetWidth,height:e.offsetHeight,top:o,left:l}};Y(),(0,F.b)({getBaseViews:Y,usePropsTransform(e,t,r,i){{let a="string"==typeof e,{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:d,onResponderGrant:f,onResponderMove:h,onResponderReject:m,onResponderRelease:p,onResponderStart:g,onResponderTerminate:b,onResponderTerminationRequest:y,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:w,onSelectionChangeShouldSetResponder:S,onSelectionChangeShouldSetResponderCapture:k,onStartShouldSetResponder:$,onStartShouldSetResponderCapture:C,collapsable:x,focusable:T,accessible:_,accessibilityDisabled:P,onLayout:O,hrefAttrs:R,...L}=t;if(i||a){var s;let e=(0,n.useMemo)(()=>({get current(){return r.current.host}}),[r]);(0,X.LI)(()=>{let t=e.current;t&&(t.measure||=e=>Z(t,null,e),t.measureLayout||=(e,r)=>Z(t,e,r),t.measureInWindow||=e=>{t&&setTimeout(()=>{let{height:r,left:n,top:o,width:l}=er(t);e(n,o,l,r)},0)})},[e]),s=a?O:void 0,(0,X.LI)(()=>{if(!s)return;let t=e.current;t&&U.set(t,s)},[e,s]),(0,X.LI)(()=>{if(!Q)return;let t=e.current;if(!t||!U.has(t))return;let r=()=>{q(t).then(s)};return K.add(r),Q.observe(t),()=>{K.delete(r),Q?.unobserve(t)}},[e]),function(e,t=W){let r=n.useId(),i=n.useRef(!1);n.useEffect(()=>(l&&!window[A]&&(window.addEventListener("blur",j),N.forEach(e=>{document.addEventListener(e,j)}),M.forEach(e=>{document.addEventListener(e,j,!0)}),window[A]=!0),()=>{I(r)}),[r]),n.useEffect(()=>{let{onMoveShouldSetResponder:n,onMoveShouldSetResponderCapture:l,onScrollShouldSetResponder:s,onScrollShouldSetResponderCapture:a,onSelectionChangeShouldSetResponder:u,onSelectionChangeShouldSetResponderCapture:c,onStartShouldSetResponder:d,onStartShouldSetResponderCapture:f}=t,h=e.current;null!=n||null!=l||null!=s||null!=a||null!=u||null!=c||null!=d||null!=f?(null!=h&&(h[o]=r),E.set(r,t),i.current=!0):i.current&&(I(r),i.current=!1)},[t,e,r])}(e,a?{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:d,onResponderGrant:f,onResponderMove:h,onResponderReject:m,onResponderRelease:p,onResponderStart:g,onResponderTerminate:b,onResponderTerminationRequest:y,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:w,onSelectionChangeShouldSetResponder:S,onSelectionChangeShouldSetResponderCapture:k,onStartShouldSetResponder:$,onStartShouldSetResponderCapture:C}:void 0)}if(a){if(L.href&&R){let{download:e,rel:t,target:r}=R;null!=e&&(L.download=e),t&&(L.rel=t),"string"==typeof r&&(L.target="_"!==r.charAt(0)?`_${r}`:r)}return L}}},useEvents(e,t,{pseudos:r},n,o){}});let en=B,eo=D.K,el=V.x},8338:function(e,t,r){"use strict";r.d(t,{Mj:function(){return i},M:function(){return o},cC:function(){return p},FB:function(){return m},hT:function(){return h},Dc:function(){return d},O0:function(){return c},CV:function(){return u},M6:function(){return g},Qn:function(){return b},$e:function(){return w}});let n=new Map,o=(e,t=10)=>{if(n.has(e))return n.get(e);let r=0,o="",i=e.length;for(let n=0;n=65&&s<=90||s>=97&&s<=122||95===s||45===s||s>=48&&s<=57)&&i<=t)){o+=e[n];continue}r=l(r,e[n])}let s=o+(r?Math.abs(r):"");return n.size>1e4&&n.clear(),n.set(e,s),s},l=(e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0;function i(e,t,{checkDefaultPrevented:r=!0}={}){return e&&t?n=>{if(e?.(n),!n||!(r&&"defaultPrevented"in n)||"defaultPrevented"in n&&!n.defaultPrevented)return t?.(n)}:t||e||void 0}var s=r(281);let a={color:!0,textDecorationColor:!0,textShadowColor:!0},u={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,...a,outlineColor:!0}},c={WebkitLineClamp:!0,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},d={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},f={backfaceVisibility:!0,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStyle:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,alignContent:!0,alignItems:!0,alignSelf:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,display:!0,end:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,gap:!0,columnGap:!0,rowGap:!0,justifyContent:!0,left:!0,margin:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInlineEnd:!0,marginInline:!0,marginInlineStart:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,direction:!0,shadowOffset:!0,shadowRadius:!0,...u.color,...u.radius,...u.size,...u.radius,...d,...c,borderBottomStyle:!0,borderTopStyle:!0,borderLeftStyle:!0,borderRightStyle:!0,overflowX:!0,overflowY:!0,userSelect:!0,cursor:!0,contain:!0,pointerEvents:!0,boxSizing:!0,boxShadow:!0,outlineStyle:!0,outlineOffset:!0,outlineWidth:!0,touchAction:!0,...s.Dt?{elevationAndroid:!0}:{}},h={fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,letterSpacing:!0,lineHeight:!0,textTransform:!0,textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0,...a,textShadowOffset:!0,textShadowRadius:!0,whiteSpace:!0,wordWrap:!0,textOverflow:!0,textDecorationDistance:!0,userSelect:!0,selectable:!0,cursor:!0,WebkitLineClamp:!0,WebkitBoxOrient:!0},m={...f,...h},p=m,g={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusVisibleStyle:!0},b={...g,...f};var y=r(2265);let v=Symbol(),w=(e,t)=>{let r=(()=>{if(e[v]){let t=(0,y.forwardRef)((t,r)=>(0,y.createElement)(e,{...t,ref:r}));for(let r in e){let n=e[r];t[r]=n&&"object"==typeof n?{...n}:n}}return e})();return Object.assign(r,t),r[v]=!0,r}},4624:function(e,t,r){"use strict";let n;r.d(t,{h_:function(){return u},$2:function(){return x},b5:function(){return T},Xp:function(){return $}}),r(7961);var o=r(281),l=r(5377),i=r(2265),s=r(4887),a=r(2281);let u=i.memo(({host:e=globalThis.document?.body,...t})=>{let r=(0,a.jsx)(l.FA,{contain:"strict",fullscreen:!0,position:o.$L?"fixed":"absolute",maxWidth:o.$L?"100vw":"100%",maxHeight:o.$L?"100vh":"100%",pointerEvents:"none",...t}),[n,u]=i.useState(null);return(0,o.LI)(()=>{u(e)},[e]),n&&t.children?(0,s.createPortal)(r,n):null});var c=r(9087),d=r(6616),f=((n=f||{})[n.REGISTER_HOST=0]="REGISTER_HOST",n[n.DEREGISTER_HOST=1]="DEREGISTER_HOST",n[n.ADD_UPDATE_PORTAL=2]="ADD_UPDATE_PORTAL",n[n.REMOVE_PORTAL=3]="REMOVE_PORTAL",n);let h={},m=(e,t)=>(t in e||(e[t]=[]),e),p=(e,t)=>(delete e[t],e),g=(e,t,r,n)=>{t in e||(e=m(e,t));let o=e[t].findIndex(e=>e.name===r);return -1!==o?e[t][o].node=n:e[t].push({name:r,node:n}),e},b=(e,t,r)=>{if(!(t in e))return console.info(`Failed to remove portal '${r}', '${t}' was not registered!`),e;let n=e[t].findIndex(e=>e.name===r);return -1!==n&&e[t].splice(n,1),e},y=(e,t)=>{let{type:r}=t;switch(r){case 0:return m({...e},t.hostName);case 1:return p({...e},t.hostName);case 2:return g({...e},t.hostName,t.portalName,t.node);case 3:return b({...e},t.hostName,t.portalName);default:return e}},v=(0,i.createContext)(null),w=(0,i.createContext)(null),S=e=>{let t=(0,i.useContext)(v);if(null===t)throw Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");return t[e]||[]},k=(e="root")=>{let t=(0,i.useContext)(w);if(null===t)throw Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");let r=(0,i.useCallback)(()=>{t({type:0,hostName:e})},[]),n=(0,i.useCallback)(()=>{t({type:1,hostName:e})},[]),o=(0,i.useCallback)((r,n)=>{t({type:2,hostName:e,portalName:r,node:n})},[]);return{registerHost:r,deregisterHost:n,addPortal:o,updatePortal:o,removePortal:(0,i.useCallback)(r=>{t({type:3,hostName:e,portalName:r})},[])}},$=(0,i.memo)(({rootHostName:e="root",shouldAddRootHost:t=!0,children:r})=>{let[n,o]=(0,i.useReducer)(y,h),l=(0,i.useMemo)(()=>e=>{(0,i.startTransition)(()=>{o(e)})},[o]);return(0,a.jsx)(w.Provider,{value:l,children:(0,a.jsxs)(v.Provider,{value:n,children:[r,t&&(0,a.jsx)(x,{name:e})]})})});$.displayName="PortalProvider";let C=e=>(0,a.jsx)(a.Fragment,{children:e}),x=(0,i.memo)(e=>{let{name:t,forwardProps:r,render:n=C}=e,o=!(0,d.S)(),l=S(t),{registerHost:s,deregisterHost:a}=k(e.name);return(0,i.useEffect)(()=>{if(!o)return s(),()=>{a()}},[o]),n(r?l.map(e=>{let t=e.node;return r?i.Children.map(t,e=>i.isValidElement(e)?i.cloneElement(e,{key:e.key,...r}):e):t}):l.map(e=>e.node))});x.displayName="PortalHost";let T=(0,i.memo)(e=>{let{name:t,hostName:r,handleOnMount:n,handleOnUnmount:l,handleOnUpdate:s,children:a}=e,{addPortal:u,removePortal:d}=k(r),f=(0,i.useId)(),h=t||f,m=(0,c.z)(()=>{n?n(()=>u(h,a)):u(h,a)}),p=(0,c.z)(()=>{l?l(()=>d(h)):d(h)}),g=(0,c.z)(()=>{s?s(()=>u(h,a)):u(h,a)});return(0,o.LI)(()=>(m(),()=>{p()}),[]),(0,i.useEffect)(()=>{g()},[a]),null});T.displayName="Portal"},5377:function(e,t,r){"use strict";r.d(t,{FA:function(){return a},Xu:function(){return i},sL:function(){return u}});var n=r(4975),o=r(2166),l=r(8587);let i={position:"absolute",top:0,left:0,right:0,bottom:0},s={fullscreen:{true:i},elevation:{"...size":l.y,":number":l.y},inset:e=>e&&"object"==typeof e?e:{top:e,left:e,bottom:e,right:e}},a=(0,n.z)(o.G7,{flexDirection:"column",variants:s});a.displayName="YStack";let u=(0,n.z)(o.G7,{flexDirection:"row",variants:s});u.displayName="XStack",(0,n.z)(a,{position:"relative"},{neverFlatten:!0,isZStack:!0}).displayName="ZStack"},8587:function(e,t,r){"use strict";r.d(t,{y:function(){return l}});var n=r(2202),o=r(281);let l=(e,t)=>{if(!e)return;let{tokens:r}=t,o=r.size[e];return i((0,n.cG)(o)?+o.val:e,t)},i=(e,{theme:t,tokens:r})=>{let l=0;if(!0===e){let e=(0,n.Ve)(r.size.true);l="number"==typeof e?e:10}else l=+e;if(0===l)return;let[i,s]=[Math.round(l/4+1),Math.round(l/2+2)];return{shadowColor:t.shadowColor,shadowRadius:s,shadowOffset:{height:i,width:0},...o.Dt?{elevationAndroid:2*i}:{}}}},6616:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(2265);let o=()=>{},l=()=>o;function i(e){return(0,n.useSyncExternalStore)(l,()=>e??!0,()=>!1)}},9087:function(e,t,r){"use strict";r.d(t,{z:function(){return i},X:function(){return l}});var n=r(281),o=r(2265);function l(e,t,r){let l=(0,o.useRef)(t??e);return(0,n.LI)(()=>{l.current=e}),(0,o.useCallback)(r?(...e)=>l.current?.apply(null,e):()=>l.current,[])}function i(e){return l(e,s,!0)}let s=()=>{throw Error("Cannot call an event handler while rendering.")}},5390:function(e,t,r){"use strict";r.d(t,{Oy:function(){return l},il:function(){return i},oO:function(){return s}});var n=r(2265),o=r(2281);let l=(0,n.createContext)(null),i=e=>(0,o.jsx)(l.Provider,{value:null,children:e.children});function s(){let e=(0,n.useContext)(l);if(!e)return[!0,null,e];let{id:t,isPresent:r,onExitComplete:o,register:i}=e;return(0,n.useEffect)(()=>i(t),[]),!r&&o?[!1,()=>o?.(t),e]:[!0,void 0,e]}},5986:function(e,t,r){"use strict";let n,o;r.d(t,{RC:function(){return h},Wi:function(){return f},d0:function(){return a},iE:function(){return s},lz:function(){return u},p_:function(){return c},v6:function(){return i},xC:function(){return p},zG:function(){return m}});var l=r(281);let i=e=>{n=e},s=()=>{if(!n)throw Error("Err0");return n};function a(e){o=e}let u=({prefixed:e}={})=>{let{tokens:t,tokensParsed:r}=n;return!1===e?t:!0===e?r:o},c=(e,t)=>n.specificTokens[e]??(t?o[t]?.[e]:o[Object.keys(o).find(t=>o[t][e])||""]?.[e]),d=(e,t,r=l.$L)=>{let n=c(e,t);return r?n?.variable:n?.val},f=(e,t)=>{if(!("unset"===e||"auto"===e))return d(e,t,!1)},h=()=>n.themes,m=new Set,p=e=>{n?e(n):m.add(e)}},9242:function(e,t,r){"use strict";r.d(t,{L2:function(){return n},nx:function(){return o},tn:function(){return l},zm:function(){return i}});let n="_",o="t_",l={},i={display:"flex",alignItems:"stretch",flexDirection:"column",flexBasis:"auto",boxSizing:"border-box",position:"relative",minHeight:0,minWidth:0,flexShrink:0};Object.assign(l,i)},7562:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});let n=(0,r(925).i)({disableSSR:void 0,inText:!1,language:null,animationDriver:null,groups:{emit:null,subscribe:null,state:{}}})},9100:function(e,t,r){"use strict";let n,o;r.d(t,{LZ:function(){return W},LM:function(){return A},P9:function(){return F},En:function(){return Y},Ee:function(){return M}});var l=r(9046),i=r(281),s=r(8338),a=r(6616),u=r(2265),c=r(5986),d=r(9242),f=r(7562),h=r(2202);let m={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,unmounted:!0,disabled:!1},p={...m,unmounted:!1},g={...m,unmounted:"should-enter"};var b=r(3820),y=r(8075),v=r(1616),w=r(9097),S=r(7440);let k=(e,t,r)=>{let n={};for(let o in e)$(n,e,t,o,r);if(t)for(let e in t)$(n,t,void 0,e,r);return n};function $(e,t,r,n,o){let l=o?.[n]||null,i=t[n];if(n in S.Qy||w.Lk.has(n)){e[n]={...e[n],...i};return}r&&(n in r||l&&l in r)||(e[l||n]=i)}var C=r(9235),x=r(8411),T=r(4283),E=r(2281);let _=(0,u.forwardRef)(function(e,t){let{children:r,...n}=e;if((0,u.isValidElement)(r)){let e=function(e,t){let r=e.props,n={...r},o="string"==typeof e.type;if(o)for(let e in P)e in t&&(t[P[e]]=t[e],delete t[e]);for(let e in r){let l=t[e],i=r[e];o&&e in P&&(e=P[e],delete n[e]),O.test(e)?n[e]=(0,s.Mj)(i,l):"style"===e?n[e]={...l,...i}:"className"===e&&(n[e]=[l,i].filter(Boolean).join(" "))}return{...t,...n}}(r,n);return(0,u.cloneElement)(r,r.type.avoidForwardRef?e:{...e,ref:(0,l.FE)(t,r.ref)})}return u.Children.count(r)>1?u.Children.only(null):null});_.displayName="Slot";let P=i.$L?{onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"}:{},O=/^on[A-Z]/;var R=r(1130),L=r(357);let j=new Set;if("u">typeof document){let e=()=>{j.forEach(e=>e()),j.clear()};addEventListener("mouseup",e),addEventListener("touchend",e),addEventListener("touchcancel",e)}let M=(e,{animationDriver:t,groups:r},n,o)=>{var l;let s=t?.useAnimations,c=(0,u.useRef)({}),d=!!("animation"in e||e.style&&Object.keys(l=e.style).some(e=>{let t=l[e];return t&&"object"==typeof t&&"_animation"in t})),f=t?.supportsCSSVars,h=c.current,y=!!(d&&!n.isHOC&&s||h.hasAnimated),w=!i.sk&&y;w&&!h.hasAnimated&&(h.hasAnimated=!0);let S=!!o?.disableSSR||(0,a.S)(),k=w&&!1!==e.animatePresence&&t?.usePresence?.()||null,$=k?.[2],C=$?.isPresent===!1,x=$?.isPresent===!0&&!1!==$.initial,T=!!e.enterStyle,E=d&&t?.isReactNative,_=n.isReactNative,P=w;_||!E||n.isHOC||S||(P=!1,h.willHydrate=!0);let O=!S||!h.host,R=T||x?O?g:m:p,L=V(e);null!=L&&(R.disabled=L);let j=(0,u.useState)(R),M=e.forceStyle?{...j[0],[e.forceStyle]:!0}:j[0],N=j[1];L!==M.disabled&&(M.disabled=L,L&&Object.assign(M,p),N({...M}));let A=(0,b.JL)(N,L,e.debug);if(S&&"should-enter"===M.unmounted&&(M.unmounted=!0),$&&P&&S&&n.variants){let{enterVariant:t,exitVariant:r,enterExitVariant:o,custom:l}=$;(0,v.B)(l)&&Object.assign(e,l);let i=r??o,s=t??o;M.unmounted&&s&&n.variants[s]?e[s]=!0:C&&i&&(e[i]=r!==o)}let I=!!(!i.$L||P&&!f||!n.acceptsClassName||e.disableClassName&&S),W=e.group;if(W&&!h.group){let e=new Set;h.group={listeners:e,emit(t,r){e.forEach(e=>e(t,r))},subscribe:t=>(e.add(t),()=>{e.delete(t)})}}if(W){let e=r.state,t=A;A=r=>{t(r),h.group.emit(W,{pseudo:r});let n={...e[W],...r};e[W]=n}}return{curStateRef:h,disabled:L,groupName:W,hasAnimationProp:d,hasEnterStyle:T,isAnimated:P,isExiting:C,isHydrated:S,presence:k,presenceState:$,setState:N,setStateShallow:A,shouldAvoidClasses:I,state:M,stateRef:c,supportsCSSVars:f,willBeAnimated:w,willBeAnimatedClient:y}},N={value:!1};function A(e){let{componentName:t}=e,r=null,a=e.defaultProps;(0,c.xC)(e=>{if(r=e,t){let r=e.defaultProps?.[t];r&&(a={...r,...a})}});let{Component:d,isText:m,isZStack:g,isHOC:b,validStyles:v={},variants:S={}}=e,$=(0,u.forwardRef)((t,$)=>{let C,P,O,A,W;let H=(0,u.useContext)(f.s),{context:z,isReactNative:B}=e;if(z){O=(0,u.useContext)(z);let{inverseShorthands:e}=(0,c.iE)();for(let r in z.props){let n=t[r]??t[e[r]]??a?.[r]??a?.[e[r]];void 0===n?O&&(r in v||r in S)&&((C||={})[r]=O[r]):(P||={})[r]=n}}let V=C?{...a,...C}:a,X=t;V&&(X=k(V,t));let G=X.debug,U=X.componentName||e.componentName;L.env.TAMAGUI_IS_CORE_NODE;let K=H.animationDriver,Q=K?.useAnimations,{curStateRef:q,disabled:J,groupName:Z,hasAnimationProp:ee,hasEnterStyle:et,isAnimated:er,isExiting:en,isHydrated:eo,presence:el,presenceState:ei,setState:es,setStateShallow:ea,shouldAvoidClasses:eu,state:ec,stateRef:ed,supportsCSSVars:ef,willBeAnimated:eh,willBeAnimatedClient:em}=M(X,H,e,r),ep=!!t.forceStyle,eg=eu||ep,eb=!!(i.$L&&m&&H.inText),ey=!d||"string"==typeof d,ev=X.tag,ew=i.$L&&ey&&ev||d,eS=m?n||ew||"span":o||ew||(eb?"span":"div");K&&er&&(eS=K[m?"Text":"View"]||eS);let ek=X["data-disable-theme"]||b;X.themeShallow&&(q.themeShallow=!0);let e$={name:X.theme,componentName:U,disable:ek,shallow:q.themeShallow,inverse:X.themeInverse,debug:G};"boolean"==typeof q.isListeningToTheme&&(e$.shouldUpdate=()=>ed.current.isListeningToTheme);let[eC,ex]=(0,x.WU)(e$);eS=d||eS;let eT=(0,w.GS)(ed,H);(0,h.zY)(!1);let eE={mediaState:eT,noClassNames:eg,resolveValues:er&&!ef||b&&!1==ec.unmounted&&ee?"value":"auto",isExiting:en,isAnimated:er},e_=(0,y.DP)(X,e,ex,eC?.state?.name||"",ec,eE,null,H,eS,G);X.group&&"hide"===X.untilMeasured&&!q.hasMeasured&&(e_.style||={},e_.style.opacity=0),q.isListeningToTheme=e_.dynamicThemeAccess;let eP=e_.hasMedia&&Array.isArray(e_.hasMedia),eO=(0,h.yx)()||eP||eg&&!0===e_.hasMedia,eR=eP?e_.hasMedia:null;(0,w.Zv)(ed,{enabled:eO,keys:eR});let{viewProps:eL,pseudos:ej,style:eM,classNames:eN,space:eA}=e_,eI=X,{asChild:eW,children:eF,themeShallow:eH,spaceDirection:ez,onPress:eB,onLongPress:eD,onPressIn:eV,onPressOut:eY,onHoverIn:eX,onHoverOut:eG,onMouseUp:eU,onMouseDown:eK,onMouseEnter:eQ,onMouseLeave:eq,onFocus:eJ,onBlur:eZ,separator:e0,forceStyle:e1,onClick:e2,theme:e5,defaultVariants:e3,...e4}=eL,e9=e4;if(!ey&&X.forceStyle&&(e9.forceStyle=X.forceStyle),b&&e5&&(e9.theme=e5),eS.acceptTagProp&&(e9.tag=ev),(ef?em:eh)&&Q&&!b){let t=Q({props:eI,style:eM||{},presence:el,componentState:ec,styleProps:eE,theme:eC.state?.theme,pseudos:ej||null,staticConfig:e,stateRef:ed});(er||ef)&&t&&(A=t.style,e9.style=A)}Z&&(e4.onLayout=(0,s.Mj)(e4.onLayout,e=>{ed.current.group.emit(Z,{layout:e.nativeEvent.layout}),ed.current.hasMeasured||"hide"!==X.untilMeasured||es(e=>({...e})),ed.current.hasMeasured=!0})),e9=T.P.usePropsTransform?.(eS,e4,ed,q.willHydrate)||e4,q.composedRef||(q.composedRef=(0,l.FE)(e=>ed.current.host=e,$)),e9.ref=q.composedRef;let{pseudoGroups:e8,mediaGroups:e6}=e_;q.unPress||(q.unPress=()=>ea({press:!1,pressIn:!1}));let e7=q.unPress;(0,u.useEffect)(()=>{if(J)return;if(ec.unmounted){ea({unmounted:!1});return}let e=Y({disabled:J,componentContext:H,setStateShallow:ea,state:ec,mediaGroups:e6,pseudoGroups:e8});return()=>{e?.(),j.delete(e7)}},[J,e8?Object.keys([...e8]).join(""):0,e6?Object.keys([...e6]).join(""):0]);let te=!J&&eg&&ej?.pressStyle,tt=!J&&eg&&ej?.focusStyle,tr=!J&&eg&&ej?.focusVisibleStyle,tn=!!(te||tt||tr||eJ||eZ),to=!!(Z||te||eB||eY||eV||eK||eU||eD||e2||ej?.focusVisibleStyle),tl=!J&&eg&&ej?.hoverStyle,ti=!!(Z||tl||eX||eG),ts=i.$L&&!!(Z||ti||eQ||eq),ta=!J&&!X.asChild&&!!(tn||to||ts||te||tl||tt),tu=!!(Z||te),tc=ta?{onPressOut:to?e=>{e7(),eY?.(e),eU?.(e)}:void 0,...(ts||to)&&{onMouseEnter:e=>{let t={};ti&&(t.hover=!0),tu&&ec.pressIn&&(t.press=!0),ea(t),eX?.(e),eQ?.(e)},onMouseLeave:e=>{let t={};j.add(e7),ti&&(t.hover=!1),tu&&ec.pressIn&&(t.press=!1,t.pressIn=!1),ea(t),eG?.(e),eq?.(e)}},onPressIn:to?e=>{(te||Z)&&ea({press:!0,pressIn:!0}),eV?.(e),eK?.(e),i.$L&&j.add(e7)}:void 0,onPress:to?e=>{e7(),i.$L&&e2?.(e),eB?.(e),eD?.(e)}:void 0,...tn&&{onFocus:e=>{ej?.focusVisibleStyle?setTimeout(()=>{ea({focus:!0,focusVisible:!!N.value})},0):ea({focus:!0,focusVisible:!1}),eJ?.(e)},onBlur:e=>{ea({focus:!1,focusVisible:!1}),eZ?.(e)}}}:null;tc&&!B&&Object.assign(e9,I(tc)),T.P.useEvents?.(e9,tc,e_,ea,e);let td=X.spaceDirection||"both",tf=!eF||eW?eF:F({separator:e0,children:eF,space:eA,direction:td,isZStack:g,debug:G});eW&&(eS=_,Object.assign(e9,I({onPress:eB,onLongPress:eD,onPressIn:eV,onPressOut:eY,onMouseUp:eU,onMouseDown:eK,onMouseEnter:eQ,onMouseLeave:eq},"web"===eW||"except-style-web"===eW))),T.P.useChildren&&(W=T.P.useChildren(eS,tf,e9,tc,e)),tf=W||(0,u.createElement)(eS,e9,tf);let th=r?.animations?.ResetPresence;th&&eh&&(et||ei)&&tf&&"string"!=typeof tf&&(tf=(0,E.jsx)(th,{children:tf}));let tm=q.group,tp=(0,u.useMemo)(()=>{if(!(!tm||!Z))return tm.listeners.clear(),{...H.groups,state:{...H.groups.state,[Z]:{pseudo:p,layout:{width:D(e_.style?.width),height:D(e_.style?.height)}}},emit:tm.emit,subscribe:tm.subscribe}},[Z]);if(Z&&tp&&(tf=(0,E.jsx)(f.s.Provider,{...H,groups:tp,children:tf})),tf=ek?tf:(0,R.u)(eC,tf,e$,!1),B&&!eW&&(tf=(0,E.jsx)("span",{className:"_dsp_contents",...eo&&tc&&I(tc),children:tf})),e.context){let t=e.context.props;for(let e in t)(e9.style&&e in e9.style||e in e9)&&((P||={})[e]=e9.style?.[e]??e9[e])}if(P){let t=e.context.Provider;tf=(0,E.jsx)(t,{...O,...P,children:tf})}return tf});e.componentName&&($.displayName=e.componentName);let P=$;function O(t){return{...e,...t,neverFlatten:!0,isHOC:!0,isStyledHOC:!1}}function A(e,t){let r=e.render?.length===2?e:(0,u.forwardRef)(e),n=O(t?.staticConfig);return r=t?.disableTheme?r:(0,C.Y)(r,n),L.env.TAMAGUI_MEMOIZE_STYLEABLE&&(r=(0,u.memo)(r)),r.staticConfig=n,r.styleable=A,r}return(L.env.TAMAGUI_FORCE_MEMO||e.memo)&&(P=(0,u.memo)(P)),P.staticConfig=e,P.extractable=function(e,t){return e.staticConfig=O(t),e.styleable=A,e},P.styleable=A,P}function I(e,t=!0){return{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,[t?"onClick":"onPress"]:e.onPress,onMouseDown:e.onPressIn,onMouseUp:e.onPressOut,onTouchStart:e.onPressIn,onTouchEnd:e.onPressOut,onFocus:e.onFocus,onBlur:e.onBlur}}i.$L&&globalThis.document&&(document.addEventListener("keydown",()=>{N.value=!0}),document.addEventListener("mousedown",()=>{N.value=!1}),document.addEventListener("mousemove",()=>{N.value=!1}));let W=A({acceptsClassName:!0,memo:!0,componentName:"Spacer",validStyles:s.Qn,defaultProps:{...d.tn,tag:"span",size:!0,pointerEvents:"none"},variants:{size:{"...":(e,{tokens:t})=>{e=!0===e?"$true":e;let r=t.space[e]??e;return{width:r,height:r,minWidth:r,minHeight:r}}},flex:{true:{flexGrow:1}},direction:{horizontal:{height:0,minHeight:0},vertical:{width:0,minWidth:0},both:{}}}});function F(e){let{isZStack:t,children:r,space:n,direction:o,spaceFlex:l,separator:i}=e,s=!!(n||l),a=null!=i;if(!(s||a||t))return r;let c=u.Children.toArray(r);if(c.length<=1&&!t&&!c[0]?.type?.shouldForwardSpace)return c;let d=[];for(let[e,r]of c.entries()){let a=null==r||Array.isArray(r)&&0===r.length;if(!a&&u.isValidElement(r)&&r.type?.shouldForwardSpace&&(r=u.cloneElement(r,{space:n,spaceFlex:l,separator:i,key:r.key})),a||!r||r.key&&!t?d.push(r):d.push((0,E.jsx)(u.Fragment,{children:t?(0,E.jsx)(B,{children:r}):r},e)),z(r)&&0===e||t)continue;let f=c[e+1];f&&!z(f)&&(i?(s&&d.push(H({key:`_${e}_00tmgui`,direction:o,space:n,spaceFlex:l})),d.push(u.isValidElement(i)?u.cloneElement(i,{key:`sep_${e}`}):i),s&&d.push(H({key:`_${e}01tmgui`,direction:o,space:n,spaceFlex:l}))):d.push(H({key:`_${e}02tmgui`,direction:o,space:n,spaceFlex:l})))}return d}function H({key:e,direction:t,space:r,spaceFlex:n}){return(0,E.jsx)(W,{size:r,direction:t,..."u">typeof n&&{flex:!0===n?1:!1===n?0:n}},e)}function z(e){let t=e?.type;return t?.isVisuallyHidden||t?.isUnspaced}let B=A({defaultProps:{...d.tn,flexDirection:"column",position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"box-none"}}),D=e=>"string"!=typeof e?e:+e.replace("px",""),V=e=>e.disabled||e.accessibilityState?.disabled||e["aria-disabled"]||e.accessibilityDisabled||!1,Y=({disabled:e=!1,setStateShallow:t,pseudoGroups:r,mediaGroups:n,componentContext:o,state:l})=>{if(r||n){let e={pseudo:{},media:{}};return o.groups?.subscribe((o,{layout:i,pseudo:s})=>{if(s&&r?.has(String(o)))Object.assign(e.pseudo,s),a();else if(i&&n){let t=Object.fromEntries([...n].map(e=>[e,(0,w.yj)(e,i)])),r=b.xK(e.media,t);r!==e.media&&(Object.assign(e.media,r),a())}function a(){t({group:{...l.group,[o]:e}})}})}}},2202:function(e,t,r){"use strict";r.d(t,{E0:function(){return f},Os:function(){return u},Ve:function(){return g},bK:function(){return b},cG:function(){return d},lk:function(){return c},yx:function(){return p},zY:function(){return m}});var n=r(281),o=r(8338),l=r(5986),i=r(357);let s="isVar";function a(e){return`var(--${i.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${e})`}let u=(e,t=!1)=>{if(!t&&d(e))return e;let{key:r,name:l,val:i}=e;return{[s]:!0,key:r,name:t?"":(0,o.M)(l,40),val:i,variable:n.$L?t?a(l):b(l):""}};function c(e,t=!1){return d(e)?!t&&n.$L&&e.variable?e.variable:`${e.val}`:`${e||""}`}function d(e){return e&&"object"==typeof e&&s in e}function f(e){return(m(!0),d(e))?c(e):c((0,l.iE)().tokensParsed[e]??e)}let h=!1,m=e=>h=e,p=()=>h;function g(e){return d(e)?(m(!0),e.val):e}let b=(e,t=!0)=>{let r=(0,o.M)(e,60);return t?a(r):r}},7104:function(e,t,r){"use strict";r.d(t,{D:function(){return i}});var n=r(8338),o=r(2202);let l=new WeakMap,i=(e,t="",r=!1)=>{if(l.has(e))return e;let s={},a=0;for(let l in e){a++;let u=e[l],c="$"===l[0],d=c?l:`$${l}`,f=c?d.slice(1):l;if((0,o.cG)(u)){s[f]=u;continue}let h=(0,n.M)(f),m=r?h.slice(0,2):a;if(m=t?`${t}-${m}`:h,u&&"object"==typeof u){s[f]=i(e[f],m,!1);continue}let p=(0,o.cG)(u)?u:(0,o.Os)({val:u,name:m,key:d});s[f]=p}return l.set(s,!0),s}},9033:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});let n=(0,r(2265).createContext)(1)},3820:function(e,t,r){"use strict";function n(e,t,r){return n=>e(e=>o(e,n,t,r))}function o(e,t,r,n){return r||!e||!t||l(e,t)?e||t:{...e,...t}}function l(e,t){for(let r in t)if(e[r]!==t[r])return!1;return!0}r.d(t,{JL:function(){return n},N2:function(){return l},xK:function(){return o}})},925:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(2265);let o=new WeakMap;var l=r(2281);function i(e){let t=(0,n.createContext)(e),r=t.Provider,i=new Map;return t.Provider=({children:t,scope:s,...a})=>{let u=(0,n.useMemo)(()=>({...e,...a}),[function(e){let t="";for(let r in e){t+=r;let n=e[r],l=typeof n;if(n&&("object"===l||"function"===l)){if(o.has(n))t+=o.get(n);else{let e=Math.random();o.set(n,e),t+=e}}else t+=l+n}return t}(a)]),c=r;if(s){let t=i.get(s);t||(t=(0,n.createContext)(e),i.set(s,t)),c=t.Provider}return(0,l.jsx)(c,{value:u,children:t})},t.props=e,t.context=t,t.useStyledContext=e=>{let r=e?i.get(e):t;return(0,n.useContext)(r)},t}},8075:function(e,t,r){"use strict";let n,o;r.d(t,{DP:function(){return eh}});var l=r(281),i=r(8338),s=r(2265),a=r(5986);let u={};{let e={Hidden:!0,ActiveDescendant:!0,Atomic:!0,AutoComplete:!0,Busy:!0,Checked:!0,ColumnCount:"colcount",ColumnIndex:"colindex",ColumnSpan:"colspan",Current:!0,Details:!0,ErrorMessage:!0,Expanded:!0,HasPopup:!0,Invalid:!0,Label:!0,Level:!0,Modal:!0,Multiline:!0,MultiSelectable:!0,Orientation:!0,Owns:!0,Placeholder:!0,PosInSet:!0,Pressed:!0,RoleDescription:!0,RowCount:!0,RowIndex:!0,RowSpan:!0,Selected:!0,SetSize:!0,Sort:!0,ValueMax:!0,ValueMin:!0,ValueNow:!0,ValueText:!0};for(let t in e){let r=e[t];!0===r&&(r=t.toLowerCase()),u[`accessibility${t}`]=`aria-${r}`}}var c=r(9242),d=r(9097);function f(e){let t=(0,d.om)(),[r,n,o,l]=e.split("-"),i=o in t?o:void 0;return{name:n,pseudo:i?l:o,media:i}}let h=null,m=null,p={press:"active"},g=(e,t,r,n,o,l)=>{let{property:i,identifier:s,rules:u}=e,c=(0,a.iE)(),g=c.settings.mediaPropOrder,b="theme"===n,y="group"===n,v=b||"platform"===n||y,w=s.slice(0,s.indexOf("-")+1),S=`${w}_${t.replace("-","")}${o?"0":""}_`,k="",$,C,x=s.replace(w,S),T=u.map(e=>e.replace(s,x)).join(";");if(v){let e=Array((l||0)+(y?1:0)).fill(":root").join("");if(b||y){let r=f(t),n=r?.name;$=r?.media,y&&(C=n);let o=T.indexOf(":root"),l=T.lastIndexOf("{"),i=T.slice(o,l),s=c.themeClassNameOnRoot&&b?"":" ",a=r.pseudo?p[r.pseudo]||r.pseudo:void 0,u=a?`:${a}`:"",d=`:root${e}${s}`,h=`.t_${(y?"group_":"")+n}${u}`,m=`${d}${h} ${i.replace(":root","")}`;k=T.replace(i,m)}else k=`${e}${T}`}if(!v||$){if(!m){let e=Object.keys(r);m=Object.fromEntries(e.map(e=>[e,(0,d.yS)(r[e])])),g||(h=Object.fromEntries(e.map((e,t)=>[e,Array(t+1).fill(":root").join("")])))}let e=$||t,n=m[e],i=`${o?"not all and ":""}${n}`,s=$?"":g?Array(l).fill(":root").join(""):h[e],a=$?`@container ${C}`:"@media";$&&(T=k),k=T.includes(a)?T.replace("{",` and ${i} {`).replace("and screen and","and"):`${a} ${i}{${s}${T}}`,$&&(k=`@supports (contain: ${c.settings.webContainerType||"inline-size"}) {${k}}`)}return{property:i,rules:[k],identifier:x}},b={height:0,width:0};var y=r(2117);function v(e){for(let t in(null!=e.shadowRadius||e.shadowColor||null!=e.shadowOpacity||e.shadowOffset)&&Object.assign(e,function({shadowColor:e,shadowOffset:t,shadowOpacity:r,shadowRadius:n}){let{height:o,width:l}=t||b;return{shadowOffset:{width:l||0,height:o||0},shadowRadius:n||0,shadowColor:(0,y.ut)(e,1),shadowOpacity:r??(e?y.HY(e)?.a:1)}}(e)),S)t in e&&(e[S[t]]||="solid")}let w=l.$L?null:"borderStyle",S={borderWidth:"borderStyle",borderBottomWidth:w||"borderBottomStyle",borderTopWidth:w||"borderTopStyle",borderLeftWidth:w||"borderLeftStyle",borderRightWidth:w||"borderRightStyle"};var k=r(8829),$=r(7440),C=r(1333);function x(e){_(e);let t=[];for(let r in e){let n=e[r];if(r in $.Qy)n&&t.push(...T(n,$.Qy[r]));else{let n=E(e,r);n&&t.push(n)}}return t}let T=(e,t)=>{_(e);let r=[];for(let n in e){let o=E(e,n,t);o&&r.push(o)}return r},E=(e,t,r)=>{let o=e[t];if(null==o)return;"transform"===t&&Array.isArray(e.transform)&&(o=(0,C.m)(o));let l=(0,k.Y)(o,t),s=(0,i.M)(`${l}`),u=r?`0${r.name}-`:"";n||=(0,a.iE)();let c=`_${n.inverseShorthands[t]||t}-${u}${s}`,d=function(e,t,r,n){let o=n?"disabled"===n.name?"[aria-disabled]":`:${n.name}`:"",l=n?n?.selector?`${n?.selector} .${e}`:`${j[n.name]} .${e}${o}`:`:root .${e}`,i=!!n,s=[];switch(t){case"placeholderTextColor":{let e=P([["color",r],["opacity",1]],i);s.push(`${l}::placeholder${e}`);break}case"backgroundClip":case"userSelect":{let e=`Webkit${t[0].toUpperCase()}${t.slice(1)}`,n=P([[t,r],[e,r]],i);s.push(`${l}${n}`);break}case"pointerEvents":{let e=r;"auto"===r||"box-only"===r?(e="auto","box-only"===r&&s.push(`${l}>*${N}`)):("none"===r||"box-none"===r)&&(e="none","box-none"===r&&s.push(`${l}>*${M}`));let t=P([["pointerEvents",e]],!0);s.push(`${l}${t}`);break}default:{let e=P([[t,r]],i);s.push(`${l}${e}`)}}return n?.name==="hover"&&(s=s.map(e=>`@media (hover) {${e}}`)),s}(c,t,l,r);return{property:t,pseudo:r?.name,identifier:c,rules:d,value:l}};function _(e){let{shadowOffset:t,shadowRadius:r,shadowColor:n,shadowOpacity:o}=e;if(r||n){let l=t||b,i=(0,k.Y)(l.width),s=(0,k.Y)(l.height),a=(0,k.Y)(r),u=(0,y.ut)(n,o),c=`${i} ${s} ${a} ${u}`;e.boxShadow=e.boxShadow?`${e.boxShadow}, ${c}`:c,delete e.shadowOffset,delete e.shadowRadius,delete e.shadowColor,delete e.shadowOpacity}let{textShadowColor:l,textShadowOffset:i,textShadowRadius:s}=e;if(l||i||s){let{height:t,width:r}=i||b,n=s||0,o=(0,k.Y)(l,"textShadowColor");if(o&&(0!==t||0!==r||0!==n)){let l=(0,k.Y)(n),i=(0,k.Y)(r),s=(0,k.Y)(t);e.textShadow=`${i} ${s} ${l} ${o}`}delete e.textShadowColor,delete e.textShadowOffset,delete e.textShadowRadius}}function P(e,t=!1){let r="";for(let[n,o]of e)r+=`${L(n)}:${o}${t?" !important":""};`;return`{${r}}`}let O={},R=e=>`-${e.toLowerCase()}`,L=e=>{if(e in O)return O[e];let t=e.replace(/[A-Z]/g,R);return O[e]=t,t},j=(()=>{let e={};for(let t in $.Qy){let r=$.Qy[t];e[r.name]=`${[...Array(r.priority)].map(()=>":root").join("")} `}return e})(),M=P([["pointerEvents","auto"]],!0),N=P([["pointerEvents","none"]],!0);var A=r(7393),I=r(2202);function W(e,t){if("flex"===e)return[["flexGrow",t],["flexShrink",1],["flexBasis","auto"]];switch(e){case"textAlignVertical":return[["verticalAlign","center"===t?"middle":t]];case"writingDirection":return[["direction",t]]}if(e in D)return D[e].map(e=>[e,t])}let F=["Top","Right","Bottom","Left"],H=["Right","Left"],z=["Top","Bottom"],B=["X","Y"],D={borderColor:["TopColor","RightColor","BottomColor","LeftColor"],borderRadius:["TopLeftRadius","TopRightRadius","BottomRightRadius","BottomLeftRadius"],borderWidth:["TopWidth","RightWidth","BottomWidth","LeftWidth"],margin:F,marginHorizontal:H,marginVertical:z,overscrollBehavior:B,padding:F,paddingHorizontal:H,paddingVertical:z,...l.$L&&{borderStyle:["TopStyle","RightStyle","BottomStyle","LeftStyle"],overflow:B}};for(let e in D){let t=e.slice(0,/[A-Z]/.exec(e)?.index??e.length);D[e]=D[e].map(e=>`${t}${e}`)}var V=r(1616);let Y=new WeakMap;function X(e,t){if(Y.has(t))return Y.get(t);let r={...e,...Object.fromEntries(Object.entries(t).map(([t,r])=>{if("default"===r)return[];let n=`$${t}_${r}`;return[`$${t}`,e[n]]}))};return Y.set(t,r),r}let G={untilMeasured:1,animation:1,space:1,animateOnly:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,tag:1,style:1,group:1,themeInverse:1,animatePresence:1};var U=r(357);let K=(e,t,r,n)=>{if(en=null,"elevationAndroid"===e)return;if("unset"===t){let n=r.conf.unset?.[e];if(null==n)return;t=n}let o=r.styleProps.fallbackProps||n,l=o?new Proxy(r,{get:(e,t)=>"curProps"===t?o:Reflect.get(e,t)}):r,{conf:i,styleProps:s,fontFamily:a,staticConfig:u,skipThemeTokenResolution:c}=l,{variants:d}=u;if(!s.noExpand&&d&&e in d){l.curProps[e]=t;let r=Q(e,t,s,l,"");if(r)return r}if(s.disableExpandShorthands||e in i.shorthands&&(e=i.shorthands[e]),t&&("$"===t[0]?t=eo(e,t,s.resolveValues,l):(0,I.cG)(t)&&(t=el(e,t,s.resolveValues))),null!=t){let r=(s.noExpand?null:W(e,t))||[[e,t]];return"fontFamily"===e&&en&&J.set(r,en),r}},Q=(e,t,r,n,o)=>{let l;let{staticConfig:i,conf:s,debug:a}=n,{variants:u}=i;if(!u)return;let c=function(e,t,r){if("function"==typeof e)return e;let n=e[t];if(n)return n;if(null!=t){let{tokensParsed:n}=r;for(let{name:r,spreadName:o}of et)if(o in e&&t in n[r])return e[o];let o=e["...fontSize"];if(o&&r.fontSizeTokens.has(t))return o}return e[`:${typeof t}`]||e["..."]}(u[e],t,s);if(!c){if("1"===U.env.TAMAGUI_WARN_ON_MISSING_VARIANT&&"boolean"!=typeof t){let r=i.componentName||"[UnnamedComponent]";console.warn(`No variant found: ${r} has variant "${e}", but no matching value "${t}"`)}return}if("function"==typeof c&&(c=c(t,function(e){let{curProps:t,props:r,conf:n,context:o,theme:l}=e,i=n.fontsParsed;o?.language&&(i=X(n.fontsParsed,o.language));let s=(0,I.Ve)(e.fontFamily||e.curProps.fontFamily||e.conf.defaultFont),a=i[s]||i[e.conf.defaultFont];return{fonts:i,tokens:n.tokensParsed,theme:l,fontFamily:s,font:a,props:new Proxy(r,{get(e,r){for(let o of[r,n.inverseShorthands[r]])if(o)return Reflect.has(t,o)?Reflect.get(t,o):Reflect.get(e,o)}})}}(n))),(0,V.B)(c)){let t=c.fontFamily||c[s.inverseShorthands.fontFamily];t&&(l=function(e,t){if((0,I.cG)(e)){let r=q.get(e);if(r)return r;for(let r in t.fontsParsed){let n=t.fontsParsed[r].family;if((0,I.cG)(n)&&(q.set(n,r),n===e))return r}}else if("string"==typeof e&&"$"===e[0])return e}(t,s),n.fontFamily=l),c=ee(e,c,r,n,o)}if(c){let e=Object.entries(function e(t,r=!1){let n={};for(let o in t){let l=t[o];if(null==l)continue;if(o in $.Qy||"$"===o[0]&&(0,V.B)(l)){n[o]=e(l,r);continue}let i=r?l:(0,k.Y)(l,o),s=W(o,i);s?Object.assign(n,Object.fromEntries(s)):n[o]=i}return v(n),n}(c,!!r.noNormalize));return l&&"$"===l[0]&&J.set(e,(0,I.Ve)(l)),e}},q=new WeakMap,J=new WeakMap,Z=e=>e&&J.get(e),ee=(e,t,r,n,o)=>{let{conf:l,staticConfig:i,debug:s,theme:a}=n,{variants:u}=i,c={};for(let i in t){let s=l.shorthands[i]||i,a=t[i];if(!(!r.noSkip&&s in G)){if(r.noExpand)c[s]=a;else if(u&&s in u){if(n.curProps[s]=a,o&&o===e)c[s]="$"===a[0]?eo(s,a,r.resolveValues,n):a;else{let t=Q(s,a,r,n,e);if(t)for(let[e,r]of t)null!=r&&(e in $.Qy?(c[e]??={},Object.assign(c[e],r)):c[e]=r)}continue}if((0,I.cG)(a)){c[s]=el(s,a,r.resolveValues);continue}if("string"==typeof a){let e="$"===a[0]?eo(s,a,r.resolveValues,n):a;c[s]=e;continue}if((0,V.B)(a)){let t=ee(s,a,r,n,e);c[s]??={},Object.assign(c[s],t)}else c[s]=a}}return c},et=["size","color","radius","space","zIndex"].map(e=>({name:e,spreadName:`...${e}`})),er={fontSize:"size",fontWeight:"weight"},en=null,eo=(e,t,r="none",n)=>{if("none"===r)return t;let{theme:o,conf:l=(0,a.iE)(),context:s,fontFamily:u,staticConfig:c}=n,d=l.tokensParsed,f,h=!1,m=c?.accept?.[e];if(m){let e=o?.[t]??d[m][t];null!=e&&(r="value",f=e,h=!0)}if(o&&t in o){if(f=o[t],n.skipThemeTokenResolution&&f?.val)return t;h=!0}else{if(t in l.specificTokens)h=!0,f=l.specificTokens[t];else{switch(e){case"fontFamily":f=(s?.language?X(l.fontsParsed,s.language):l.fontsParsed)[t]?.family||t,en=t,h=!0;break;case"fontSize":case"lineHeight":case"letterSpacing":case"fontWeight":{let r=l.defaultFont||"$body",n=u||r;if(n){let o=s?.language?X(l.fontsParsed,s.language):l.fontsParsed;f=(o[n]||o[r])?.[er[e]||e]?.[t]||t,h=!0}}}for(let r in i.CV)if(e in i.CV[r]){let e=d[r][t];null!=e&&(f=e,h=!0)}}if(!h){let e=d.space[t];null!=e&&(f=e,h=!0)}}if(h)return el(e,f,r)};function el(e,t,r){if("none"===r)return t;if((0,I.cG)(t)){if("value"===r)return t.val;let e=t?.get;return"function"==typeof e?e("web"===r?"web":void 0):t.variable}return t}var ei=r(357);function es(e,t){return(t.validStyles||(t.isText||t.isInput?i.FB:i.Qn))[e]||t.accept?.[e]}let ea=(e,t,r,n,s,h,m,p,b,y,w)=>{o=o||(0,a.iE)(),l.$L&&h.isAnimated&&o.animations.isReactNative&&!h.noNormalize&&(h.noNormalize="values");let{shorthands:S}=o,{isHOC:E,isText:P,isInput:O,variants:R,isReactNative:L,inlineProps:j,inlineWhenUnflattened:M,parentStaticConfig:N,acceptsClassName:I}=t,W={},F=h.mediaState||d.nA,H={},z=I&&l.$L&&!h.noClassNames,B=[],D={},V={},Y=null,X=e.space,U=!1,Q,q,J,ee=(e.className,0),et={curProps:{},classNames:D,conf:o,props:e,styleProps:h,componentState:s,staticConfig:t,style:null,theme:r,usedKeys:H,viewProps:W,context:p,debug:y,skipThemeTokenResolution:w};for(let r in e){let a=r,m=e[r];if(t.accept&&("style"===t.accept[a]||"textStyle"===t.accept[a])&&"object"==typeof m){let e=ed(et,a,m,h.noClassNames);W[a]=e;continue}if(h.disableExpandShorthands||a in S&&(a=S[a]),"className"===a||a in H||e.asChild&&c.zm[a]===m)continue;if(a in G&&!h.noSkip&&!E){if("group"===a){let e=`t_group_${m}`,t=o.settings.webContainerType||"inline-size";em(B,{identifier:e,property:"container",rules:[`.${e} { container-name: ${m}; container-type: ${t}; }`]})}continue}let y=typeof m,v=es(a,t);if(v&&"string"===y&&"_"===m[0]){let e=a in i.Qn,t=!e&&a.includes("-")&&i.Qn[a.split("-")[0]];if(e||t){z?(eu(V,D,a,m,t),et.style&&delete et.style[a]):(et.style||={},et.style[a]=(0,k.R)(a,m),delete D[a]);continue}}if(m!==e[a]&&(et.curProps[a]=m),"dataSet"===a){for(let e in m)W[`data-${ey(e)}`]=m[e];continue}if(!h.noExpand){if("disabled"===a&&!0===m&&(W["aria-disabled"]=!0,("button"===b||"form"===b||"input"===b||"select"===b||"textarea"===b)&&(W.disabled=!0),!R?.disabled))continue;if("testID"===a){W[L?a:"data-testid"]=m;continue}if("id"===a||"nativeID"===a){W.id=m;continue}let e=!1;if(L){if(a in u||a.startsWith("accessibility")){W[a]=m;continue}}else{if(e=!0,a in u){W[u[a]]=m;continue}switch(a){case"accessibilityRole":"none"===m?W.role="presentation":W.role=eS[m]||m;continue;case"accessibilityLabelledBy":case"accessibilityFlowTo":case"accessibilityControls":case"accessibilityDescribedBy":W[`aria-${a.replace("accessibility","").toLowerCase()}`]=Array.isArray(m)?m.join(" "):m;continue;case"accessibilityKeyShortcuts":Array.isArray(m)&&(W["aria-keyshortcuts"]=m.join(" "));continue;case"accessibilityLiveRegion":W["aria-live"]="none"===m?"off":m;continue;case"accessibilityReadOnly":W["aria-readonly"]=m,("input"===b||"select"===b||"textarea"===b)&&(W.readOnly=!0);continue;case"accessibilityRequired":W["aria-required"]=m,("input"===b||"select"===b||"textarea"===b)&&(W.required=m);continue;default:e=!1}}if(e)continue}let w=a in S,C=!v&&R&&a in R,_=w||v||C,M=a in i.M6,A=!_&&!M&&(0,d._z)(a),I=!!(A||M);if(I&&a.startsWith("$group-")){let e=a.split("-")[1];p?.groups.subscribe&&!p?.groups.state[e]&&(a=a.replace("$group-","$group-true-"))}let er=v||I||C&&!h.noExpand||w;if(er&&("except-style"===e.asChild||"except-style-web"===e.asChild))continue;let en=!er||E&&N?.variants&&a in N.variants||j?.has(a),eo=N?.variants?.[a],el=!!(E&&(w||v||I||eo||a in G));if((en||el)&&(ek(W,a,m,I),!C)||!h.noSkip&&a in G)continue;(P||O)&&m&&("fontFamily"===a||a===S.fontFamily)&&m in o.fontsParsed&&(et.fontFamily=m);let ei=I||!C&&!v,ea=ei?null:K(a,m,et);if(!ei){if(!ea)continue;let e=Z(ea);e&&(et.fontFamily=e)}let ef=a,eh=m,ep=ea?ea.length:1;for(let r=0;r=(H[t]||0)&&(Y||={},Y[ef]||={},Y[ef][t]=r,ec(et,t,r))}if(!o)for(let e in eh){let t=S[e]||e;H[t]=Math.max(l,H[t]||0)}}continue}if(A){if(!eh)continue;if("platform"===A){let e=ef.slice(10);if(e!==l.ob&&"web"!==e)continue}U||=!0;let e=ef.slice(1),t=eh.space;if((t||!z)&&(Array.isArray(U)||(U=[]),U.push(e)),z){let r=ed(et,ef,eh,!1);if(t&&(delete r.space,F[e])){let t=(0,d.ae)(e,"space",H,!0);t&&(X=eh.space,H.space=t)}let n=x(r),o=ee;for(let t of(ee+=1,n)){let r=g(t,e,d.aN,A,!1,o),n=`${t.property}-${e}${t.pseudo||""}`;n in H||(em(B,r),eu(V,D,n,r.identifier,!0,!0))}}else{let t=ed(et,ef,eh,!0),r="theme"===A,o="group"===A;if(!r&&"platform"!==A&&!o&&!F[e])continue;let l=0;if(r){Q=!0;let t=e.slice(6);if(!(n===t||n.startsWith(t)))continue}else if(o){let t=f(e),r=t.name,n=p?.groups.state[r];if(!n)continue;let o=t.pseudo,i=t.media,a=s.group?.[r];if(i){(J||=new Set).add(i);let e=a?.media,t=e?.[i];if(!e&&n.layout&&(t=(0,d.yj)(i,n.layout)),!t)continue;l=2}if(o){if((q||=new Set).add(r),!(a||p.groups.state[r]).pseudo?.[o])continue;l=$.MX[o]}}for(let r in t){if("space"===r){X=m.space;continue}et.style||={},function(e,t,r,n,o,l,i){let s=(0,d.ae)(t,r,o,l);i&&(s=(s||0)+i),null!==s&&(o[r]=s,ec(e,r,n))}(et,e,r,t[r],H,F[e],l),"fontFamily"===ef&&(et.fontFamily=t.fontFamily)}}continue}if(!E&&es(ef,t)){ec(et,ef,eh);continue}C||(W[ef]=eh)}}}if(!1!==h.noNormalize&&(et.style&&(v(et.style),l.$L&&!t.isReactNative&&_(et.style)),et.flatTransforms&&(et.style||={},Object.entries(et.flatTransforms).sort(([e],[t])=>e.localeCompare(t)).forEach(([e,t])=>{ev(et.style,e,t,!0)})),m)){if(z)for(let e in m.classNames){let t=m.classNames[e];et.style&&e in et.style||e in D||(D[e]=t)}if(!z)for(let e in m.style)e in D||et.style&&e in et.style||(et.style||={},et.style[e]=m.style[e])}if(!h.noNormalize&&!t.isReactNative&&!t.isHOC&&(!h.isAnimated||o.animations.supportsCSSVars)&&Array.isArray(et.style?.transform)&&(et.style.transform=(0,C.m)(et.style.transform)),et.style&&z){let t;if(!et.style.$$css){for(let r of x(et.style)){let n=r.property,o=h.isAnimated&&h.noClassNames&&(!e.animateOnly||e.animateOnly.includes(n)),l=!o&&!h.isAnimated&&e.animateOnly?.includes(n);o?(t||={})[n]=et.style[n]:l?(t||={})[n]=r.value:(em(B,r),eu(V,D,n,r.identifier,!1,!0))}et.style=t||{}}if(V)for(let e in V){if(!V[e])continue;let[t,r]=V[e],n=`_transform${t}`;if(l.C5&&!A.MD[n]){let t=`.${n} { transform: ${r}; }`;em(B,{identifier:n,rules:[t],property:e})}D[e]=n}}if(!L&&null==W.tabIndex){let t=W.focusable??W.accessible;W.focusable&&delete W.focusable;let r=W.role;!1===t&&(W.tabIndex="-1"),"a"===b||"button"===b||"input"===b||"select"===b||"textarea"===b?(!1===t||!0===e.accessibilityDisabled)&&(W.tabIndex="-1"):("button"===r||"checkbox"===r||"link"===r||"radio"===r||"textbox"===r||"switch"===r)&&!1!==t&&(W.tabIndex="0"),t&&(W.tabIndex="0",delete W.focusable)}let er=e.style;if(er){if(E)W.style=e$(er);else{let e=Array.isArray(er),t=e?er.length:1;for(let r=0;r{let{staticConfig:o,props:l,conf:s,styleProps:a}=e,u={};for(let c in r){let d=r[c],f=K(c=s.shorthands[c]||c,d,e,{...l,...l[t]});if(!(!f||!o.isHOC&&c in G&&!a.noSkip))for(let[e,t]of f)!n&&e in i.Dc?ev(u,e,t):u[e]=a.noNormalize?t:(0,k.Y)(t,c)}return a.noNormalize||v(u),u},ef=l.$L?s.useInsertionEffect||l.LI:()=>{},eh=(e,t,r,n,o,l,i,s,a,u)=>{let c=ea(e,t,r,n,o,l,i,s,a,u);return ef(()=>{(0,A._N)(c.rulesToInsert)},[c.rulesToInsert]),c};function em(e,t){(0,A.Jt)(t.identifier)&&((0,A.GU)(t.identifier,t.rules),e.push(t))}let ep=ei.env.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",eg={...Object.fromEntries(Object.entries(i.CV.color).map(([e,t])=>[e,ep])),opacity:1,scale:1,rotate:"0deg",rotateY:"0deg",rotateX:"0deg",x:0,y:0,borderRadius:0},eb=e=>`-${e.toLowerCase()}`,ey=e=>e.replace(/[A-Z]/g,eb),ev=(e,t,r,n=!1)=>{"string"!=typeof e.transform&&(e.transform||=[],e.transform[n?"unshift":"push"]({[ew[t]||t]:r}))},ew={x:"translateX",y:"translateY"},eS={adjustable:"slider",header:"heading",image:"img",link:"link",none:"presentation",summary:"region"};function ek(e,t,r,n=!1){if(n){let n={...e[t],...r};delete e[t],e[t]=n}else e[t]=r}function e$(e){let t={};for(let r in e){let n=e[r];r in i.Dc?ev(t,r,n):t[r]=(0,k.Y)(n,r)}return l.$L&&Array.isArray(t.transform)&&(t.transform=(0,C.m)(t.transform)),v(t),t}},7393:function(e,t,r){"use strict";r.d(t,{GU:function(){return T},Jt:function(){return P},MD:function(){return c},OJ:function(){return m},UY:function(){return f},_N:function(){return E},jc:function(){return g},tN:function(){return d}});var n=r(281),o=r(2202),l=r(357);let i=new WeakMap,s=new Map,a={},u={},c={},d=()=>a,f=()=>Object.values(u);function h(e,t,r){let n=t.indexOf("transform:");if(-1===n)return;let o=t.indexOf(";"),l=t.slice(n+10,o);if(!c[e])return c[e]=l,!0}function m(){n.C5&&new MutationObserver(e=>{for(let t of e)if(t instanceof HTMLStyleElement&&t.sheet||t instanceof HTMLLinkElement&&t.href.endsWith(".css")){g();break}}).observe(document.head,{childList:!0})}let p=null;function g(e=!1,t){let r;if(!n.C5)return;let o=document.styleSheets||[],l=p,i=new Set(o);if(document.styleSheets){for(let n of i)if(n){let o=w(n,!1,e,t);o&&(r=o)}p=i}if(l)for(let e of l)e&&!i.has(e)&&w(e,!0);return r}function b(e,t=!1){let r=(s.get(e)||0)+(t?-1:1);return s.set(e,r),r}let y=l.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,v=y?+y:250;function w(e,t=!1,r=!1,n){let s;try{if(!(s=e.cssRules))return}catch{return}let u=$(s[0],r)?.[0],c=$(s[s.length-1],r)?.[0],d=`${s.length}${u}${c}`,f=i.get(e);if(!t&&f===d)return;let m=s.length,p=0,g;for(let e=0;ev)return;continue}let[c,d,f]=u;if(f){let e=function(e,t){let r=e.selectorText.split(",");if(!r.length)return;if(t&&!S)for(let e in S={},t.color){let r=t.color[e];S[r.name]=r.val}let n=(e.cssText||"").slice(e.selectorText.length+2,-1).trim().split(";"),i={};for(let e of n){let t;let r=e.indexOf(":");if(-1===r)continue;let n=e.indexOf("--"),s=e.slice(-1===n?0:n+2,r);l.env.TAMAGUI_CSS_VARIABLE_PREFIX&&(s=s.replace(l.env.TAMAGUI_CSS_VARIABLE_PREFIX,""));let a=e.slice(r+2);if(a.startsWith("var(")){let e=a.slice(6,-1),r=S[e];r?t=r:(k||=getComputedStyle(document.body),t=k.getPropertyValue("--"+e))}else t=a;i[s]=(0,o.Os)({key:s,name:s,val:t},!0)}let s={names:[],theme:i};for(let e of r){let[t,r,n,o,l]=e.match(/(.t_(light|dark))?[\s]?(.t_([a-z0-9_]+))[\s]*$/i)||[],i=l&&n&&n!==l?`${n}_${l}`:l||n;!i||s.names.includes(i)||"light_dark"===i||"dark_light"===i||s.names.push(i)}return s}(d,n);e&&(g||=[]).push(e);continue}let m=b(c,t);t?0===m&&delete a[c]:c in a||(!c.startsWith("_transform-")||h(c,d.cssText,d))&&(a[c]=d.cssText)}return i.set(e,d),g}let S,k=null;function $(e,t=!1){if(e instanceof CSSStyleRule){let r=e.selectorText;if(":"===r[0]&&"r"===r[1]){if(r.startsWith(":root ._"))return[C(r),e];if(t&&(r.startsWith(":root.t_")||r.startsWith(":root .t_")))return[r.slice(0,20),e,!0]}}else if(e instanceof CSSMediaRule)return e.cssRules.length>1?void 0:$(e.cssRules[0])}let C=e=>{let t=e.slice(7);return e.includes(":")?t.replace(/:[a-z]+$/,""):t},x=n.C5?document.head.appendChild(document.createElement("style")).sheet:null;function T(e,t){return!(e in u)&&(u[e]=t.join(" "),!e.startsWith("_transform-")||h(e,t[0]))}function E(e){if(!(!e.length||!x)){for(let{identifier:t,rules:r}of e)if(P(t))for(let e of(a[t]=r.join(` +`),b(t),T(t,r),r))x.insertRule(e,x.cssRules.length)}}let _=l.env.TAMAGUI_INSERT_SELECTOR_TRIES?+l.env.TAMAGUI_INSERT_SELECTOR_TRIES:2;function P(e){let t=s.get(e);return void 0===t||t<_}},1616:function(e,t,r){"use strict";r.d(t,{B:function(){return n}});let n=e=>e&&!Array.isArray(e)&&"object"==typeof e},9533:function(e,t,r){"use strict";r.d(t,{D:function(){return o},L:function(){return n}});let n="u">typeof window&&window.matchMedia||function(e){return{match:(e,t)=>!1,addListener(){},removeListener(){},matches:!1}};function o(e){}},2117:function(e,t,r){"use strict";r.d(t,{HY:function(){return s},ut:function(){return i}});var n=r(44),o=r.t(n,2);let l=n||o,i=(e,t)=>{if(e){if("$"===e[0])return e;if(e.startsWith("var(")){if("number"==typeof t&&t<1)return`color-mix(in srgb, ${e} ${100*t}%, transparent)`}else{let r=s(e);if(r){let e=`${r.r},${r.g},${r.b}`;return 1===t?`rgb(${e})`:`rgba(${e},${t??r.a??1})`}}return e}},s=e=>{let t=l(e);if(null!=t)return{r:Math.round((4278190080&t)>>>24),g:Math.round((16711680&t)>>>16),b:Math.round((65280&t)>>>8),a:((255&t)>>>0)/255}}},8829:function(e,t,r){"use strict";r.d(t,{R:function(){return u},Y:function(){return s}});var n=r(281),o=r(8338),l=r(7393);let i={...o.cC,translateX:!0,translateY:!0};function s(e,t=""){if(!n.$L||o.O0[t]||t&&!i[t]||"boolean"==typeof e)return e;let r=e;return e&&"object"==typeof e?e:("number"==typeof e?r=`${e}px`:t&&(r=`${r}`),r)}let a={};function u(e,t){let r;let n=(0,l.tN)()[t];if(a[n])return a[n];if(!n)return;let i=n.replace(/.*:/,"").replace(/;.*/,"").trim();return r=i.startsWith("var(")?i:o.O0[e]?+i:i.endsWith("px")?+i.replace("px",""):i,a[n]=r,r}},7440:function(e,t,r){"use strict";r.d(t,{MX:function(){return n},Qy:function(){return o}});let n={hover:1,press:2,focus:3,focusVisible:3,disabled:4},o={hoverStyle:{name:"hover",priority:1},pressStyle:{name:"active",stateKey:"press",priority:2},focusVisibleStyle:{name:"focus-visible",priority:3,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:3},disabledStyle:{name:"disabled",priority:4,stateKey:"disabled"},enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}}},9235:function(e,t,r){"use strict";r.d(t,{Y:function(){return i}});var n=r(2265),o=r(1130),l=r(2281);function i(e,t){let r=(0,n.forwardRef)(function(r,n){let{themeInverse:i,theme:s,componentName:a,themeReset:u,...c}=r,d=(0,l.jsx)(e,{ref:n,...c,"data-disable-theme":!0});return(0,l.jsx)(o.Q,{componentName:a||t?.componentName,name:s,"disable-child-theme":!0,debug:r.debug,inverse:i,reset:u,children:d})});return r.displayName=`Themed(${e?.displayName||e?.name||"Anonymous"})`,r}},1333:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(8829);function o(e){return e.map(e=>{let t=Object.keys(e)[0],r=e[t];return"matrix"===t||"matrix3d"===t?`${t}(${r.join(",")})`:`${t}(${(0,n.Y)(r,t)})`}).join(" ")}},9097:function(e,t,r){"use strict";let n,o;r.d(t,{jl:function(){return v},om:function(){return f},ae:function(){return O},_z:function(){return m},yj:function(){return M},Lk:function(){return h},yS:function(){return j},aN:function(){return d},nA:function(){return c},Zv:function(){return E},yL:function(){return S},GS:function(){return P}});var l=r(281),i=r(2265),s=r(5986),a=r(9533),u=r(7440);let c={},d={},f=()=>c,h=new Set,m=e=>{if(h.has(e))return!0;if("$"===e[0]){if(e.startsWith("$platform-"))return"platform";if(e.startsWith("$theme-"))return"theme";if(e.startsWith("$group-"))return"group"}return!1},p=Object.keys(u.Qy).length,g=e=>(0,s.iE)().settings.mediaPropOrder?p:o.indexOf(e)+100,b=new Set,y=0,v=e=>{let{media:t,mediaQueryDefaultActive:r}=e;if(t){for(let e in y++,t)c[e]=r?.[e]||!1,h.add(`$${e}`);Object.assign(d,t),n={...c},o=Object.keys(t),e.disableSSR?S():x()}},w=-1;function S(){if(!(l.$L&&l.sk)&&w!==y)for(let e in w=y,b.forEach(e=>e()),b.clear(),d){let t=function(){let t=!!n().matches;t!==c[e]&&(c={...c,[e]:t},x())},r=j(d[e],e),n=()=>(0,a.L)(r),o=n();if(!o)throw Error("⚠️ No match");o.addListener(t),b.add(()=>{o.removeListener(t)}),t()}}let k=new Set,$=!1,C=-1;function x(){$&&C===y||(C=y,$=!0,Promise.resolve().then(()=>{$=!1,k.forEach(e=>e(c))}))}let T=new WeakMap;function E(e,t){return T.set(e,t)}function _(e){return k.add(e),()=>k.delete(e)}function P(e,t){let r=(0,i.useRef)(),o=((t?.disableSSR??(0,s.iE)().disableSSR)||!l.$L?c:n)||{},a=(0,i.useSyncExternalStore)(_,()=>{if(!r.current)return o;let{touched:t,prev:n}=r.current,l=e?T.get(e):void 0;if(l&&!1===l.enabled)return n;let i=l?.keys??((!l||l.enabled)&&t?[...t]:null);return!i||i?.every(e=>c[e]===n[e])?n:(r.current.prev=c,c)},()=>o);return new Proxy(a,{get:(e,t)=>("string"==typeof t&&(r.current||={prev:o},r.current.touched||=new Set,r.current.touched.add(t)),Reflect.get(a,t))})}let O=(e,t,r,n)=>{let o=(0,s.iE)(),l=n&&!o.settings.mediaPropOrder?g(e):p;return!r[t]||l>r[t]?l:null},R=new WeakMap,L={};function j(e,t){if("string"==typeof e)return e;if(R.has(e))return R.get(e);let r=Object.entries(e).map(([e,t])=>(e=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).toLowerCase(),"string"==typeof t||"number"==typeof t&&/[height|width]$/.test(e)&&(t=`${t}px`),`(${e}: ${t})`)).join(" and ");return t&&(L[t]=r),R.set(e,r),r}function M(e,t){let r=d[e];return Object.keys(r).every(e=>{let n=+r[e],o=e.startsWith("max"),l=t[e.endsWith("Width")?"width":"height"];return o?ln})}},8411:function(e,t,r){"use strict";let n;r.d(t,{q4:function(){return C},fe:function(){return T},Fg:function(){return b},WU:function(){return y}});var o=r(281),l=r(2265),i=r(5986),s=r(2202),a=r(9242);let u={name:""};function c(e){return!!(e.name||e.componentName||e.inverse||e.reset)}let d=0;class f{constructor(e={},t){if(this.props=e,d=(d+1)%Number.MAX_VALUE,this.id=d,"root"===t){this.updateStateFromProps(e,!1);return}if(!t)throw"❌ 000";if(this.parentManager=t,!this.updateStateFromProps(e,!1))return t}id=0;themeListeners=new Set;parentManager=null;state=u;updateStateFromProps(e=this.props||{},t=!0){if(this.props=e,e.forceTheme)return this.state.theme=e.forceTheme,this.state.name=e.name||"",this.updateState(this.state,!0),this.state;let r=this.getStateIfChanged(e);if(r)return this.updateState(r,t),r}updateState(e,t=!0){this.state=e,this._allKeys=null,t&&queueMicrotask(()=>{this.notify()})}getStateIfChanged(e=this.props,t=this.state,r=this.parentManager){let n=this.getState(e,r);return t&&t!==u&&!n?r?.state:this.getStateShouldChange(n,t)?n:void 0}getStateShouldChange(e,t=this.state){return!(!e?.theme||e.theme===t?.theme)}getState(e=this.props,t=this.parentManager){return function(e,t){if(e.name&&e.reset)throw Error("❌004");if(!c(e))return null;let r=(0,i.RC)(),[n,l]=function(e){let t=[],r=[],n=e;for(;n;)r.push(n),n.state.isComponent&&t.push(n),n=n.parentManager;return[r,t]}(t),s=!!t?.state.isComponent,u=e.reset&&!s?1:0,d=n[u],f=n[u+1];if(!d&&e.reset)return null;let{componentName:m}=e,p=null,g=d?.state.name||"";d?.state.isComponent&&(g=g.replace(/_[A-Z][A-Za-z]+/,""));let b=e.reset?g:e.name||"",y=l.map(e=>e?.state.name||"");s&&y.shift();let v=g.split(a.L2),w=v.length,S=e.componentName&&!b?w:0;for(let t=w;t>=S;t--){let n=v.slice(0,t).join(a.L2);e.inverse&&(n=h(n));let l=[];if(n&&n!==g&&n.includes(b)&&l.push(n),b&&l.unshift(n?`${n}_${b}`:b),1===t){let e=l.findIndex(e=>!e.includes("_"));e>0&&l.splice(e,0,b)}if(m&&!e.reset){let e=v.length,r=[];if(b&&e>1){let e=v[0];r.push(`${e}_${b}_${m}`)}if(r.push(`${n}_${m}`),b){if(t>e){let e=v.slice(0,t-1).join(a.L2);if(e){let t=`${e}_${b}_${m}`;r.unshift(t)}}let o=`${n}_${b}_${m}`;r.unshift(o)}l=[...r,...l,...y]}let i=l.find(e=>e in r);if(i){let e=i.split("_"),[t,...n]=e,l=e[e.length-1],s=l[0]===l[0].toUpperCase(),u="light"===t?"light":"dark"===t?"dark":void 0,c=a.nx,h=o.$L?`${c}sub_theme ${c}${u&&n.length?n.join("_"):t}`:"";p={name:i,parentName:(d||f)?.state?.name,theme:r[i],className:h,isComponent:s,scheme:u};break}}return p}(e,t)||null}_allKeys=null;get allKeys(){return this._allKeys||=new Set([...this.parentManager?.allKeys||[],...Object.keys(this.state.theme||{})]),this._allKeys}notify(e=!1){this.themeListeners.forEach(t=>t(this.state.name,this,e))}onChangeTheme(e,t){return this.themeListeners.add(e),()=>{this.themeListeners.delete(e)}}}let h=e=>e.startsWith("light")?e.replace(/^light/,"dark"):e.replace(/^dark/,"light");var m=r(9033),p=r(3820);let g={name:null},b=(e=g)=>{let[t,r]=y(e);return r||function(){if(n)return n;let e=(0,i.iE)(),t=e.themes.light?"light":Object.keys(e.themes)[0];return n=v({theme:e.themes[t],name:t})}()},y=e=>{let t=(0,l.useRef)([]),r=T(e,!1,t.current,o.sk?void 0:()=>e.shouldUpdate?.()??(t.current.length>0||void 0)),{themeManager:n,state:i}=r;return[r,(0,l.useMemo)(()=>n&&i?.theme?v(i,e.deopt,n,t.current,e.debug):{},[i?.theme,n,e.deopt,e.debug])]};function v({theme:e,name:t,scheme:r},n=!1,o,l,a){return e?((0,i.iE)(),new Proxy(e,{has:(t,r)=>!!Reflect.has(e,r)||("string"==typeof r?("$"===r[0]&&(r=r.slice(1)),o?.allKeys.has(r)):void 0),get(t,r){if("undefined"!==r&&"string"==typeof r){let t="$"===r[0]?r.slice(1):r,n=e[t];if(n&&"object"==typeof n)return new Proxy(n,{get(e,r){if("val"===r)l&&!l.includes(t)&&l.push(t);else if("get"===r)return e=>(0,s.E0)(n);return Reflect.get(n,r)}})}return Reflect.get(t,r)}})):{}}let w=new Set,S=new WeakMap,k={},$=e=>k[e],C=e=>S.get($(e)),x=e=>{if(!k[e.id]){let t=k[e.id]={};S.set(t,e)}},T=(e,t=!1,r,n)=>{let{disable:s}=e,a=C((0,l.useContext)(m.s));if(!t&&!a||s)return{isNewTheme:!1,state:a?.state,themeManager:a};let[u,d]=(0,l.useState)($),{state:h,mounted:g,isNewTheme:b,themeManager:y,inversed:v}=u,S=!!(!u.mounted&&e.inverse);function k(t=y,r,o=h,l=!1){let i=n?.();if(!t||!l&&!1===i)return;let s=r||t.getState(e,a);if(l||s&&!(!0!==i&&!t.getStateShouldChange(s,o)))return s}if(o.sk||(0,l.useEffect)(()=>{if(!y)return;if(e.inverse&&!g){d(e=>$({...e,mounted:!0}));return}(b||k(y))&&(w.add(y),d($));let t=y.onChangeTheme((e,t,r)=>{r&&d(e=>$(e,!0))}),o=a?.onChangeTheme((t,o,l)=>{let i=l||n?.()||e.deopt||void 0;(i??!!(r?.length||b))&&d(e=>$(e,i))},y.id);return()=>{t(),o?.(),b&&w.delete(y)}},[y,a,b,e.componentName,e.inverse,e.name,e.reset,g]),o.$L&&S)return{isNewTheme:!1,inversed:!1,themeManager:a,state:{name:"",...a?.state,className:""}};return{state:h,isNewTheme:b,inversed:v,themeManager:y};function $(l,s=!1){if(l&&n?.()===!1&&!s)return l;let u=a,d;if(c(e)){let n=()=>new f(e,t?"root":a);if(l?.themeManager){u=l.themeManager;let o=s||!!r?.length,i=u.getState(e,a),c=k(u,i,l.state,o);c?(d=c,l.isNewTheme||t?u.updateState(c):u=n()):l.isNewTheme&&a&&!i&&(u=a)}else d={...(u=n()).state}}let h=!!(u!==a||e.inverse);h&&x(u);let m=!!o.$L&&!(0,i.iE)().disableSSR,g=!m||t||l?.mounted;d||(h?d=u.state:(d=a.state,u=a));let b=l?.inversed,y=!!h&&d.scheme!==a?.state.scheme||(m?null==b&&null:e.inverse),v={themeManager:u,isNewTheme:h,mounted:g,inversed:y},w=l&&!s&&(0,p.N2)(l,v)&&(0,p.N2)(l.state,d);return l&&w?l:(v.state=d,v)}}},4283:function(e,t,r){"use strict";r.d(t,{P:function(){return n},b:function(){return o}});let n={};function o(e){Object.assign(n,e)}},4975:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(9100);let o=(e,t,r=0)=>{let n={};for(let l in t){let i=e?.[l],s=t[l];i&&"function"!=typeof s?i&&!s?n[l]=i[l]:0===r?n[l]=o(i,s,r+1):n[l]={...i,...s}:n[l]=s}return{...e,...n}},l=new WeakMap,i={Image:{isReactNative:!0,inlineProps:new Set(["src","width","height"])},Text:{isReactNative:!0,isText:!0},TextInput:{isReactNative:!0,isInput:!0,isText:!0},default:{isReactNative:!0}};function s(e,t,r){let s=e.staticConfig,a=!!s&&!(s.isReactNative||s.isHOC),u=s?.isHOC&&!s?.isStyledHOC||a?e:s?.Component||e,c=s?void 0:function(e){if(e)return e.getSize&&e.prefetch?i.Image:"Text"===e.displayName&&e.render?i.Text:e.render&&("ScrollView"===e.displayName||"View"===e.displayName)?i.default:e.State?.blurTextInput?i.TextInput:l.get(e)}(u),d=!!(c||r?.isReactNative||s?.isReactNative),f=(()=>{if(t){let{variants:e,name:n,defaultVariants:l,acceptsClassName:i,context:f,...h}=t;l&&(h={...l,...h}),s&&(s.isHOC&&!s.isStyledHOC||(h={...s.defaultProps,...h},s.variants&&(e=o(s.variants,e)))),s?.isHOC&&n&&(h.componentName=n);let m=!!(r?.isText||s?.isText),p=i??(a||d||s?.isHOC&&s?.acceptsClassName),g={...s,...r,...!a&&{Component:u},variants:e,defaultProps:h,defaultVariants:l,componentName:n||s?.componentName,isReactNative:d,isText:m,acceptsClassName:p,context:f,...c,isStyledHOC:!!s?.isHOC,parentStaticConfig:s};return(h.children||!p||f)&&(g.neverFlatten=!0),g}})(),h=(0,n.LM)(f||{});for(let t in e)"propTypes"!==t&&(t in h||(h[t]=e[t]));return h}},5566:function(e,t,r){"use strict";r.d(t,{K:function(){return l}});var n=r(8338),o=r(9242);let l=(0,r(9100).LM)({acceptsClassName:!0,defaultProps:o.tn,validStyles:n.Qn});l.displayName="Stack"},8475:function(e,t,r){"use strict";r.d(t,{x:function(){return i}});var n=r(8338),o=r(9100);let l={maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=(0,o.LM)({acceptsClassName:!0,isText:!0,defaultProps:{fontFamily:"unset",display:"inline",boxSizing:"border-box",wordWrap:"break-word",whiteSpace:"pre-wrap",margin:0},inlineWhenUnflattened:new Set(["fontFamily"]),variants:{numberOfLines:{1:l,":number":e=>e>=1?{WebkitLineClamp:e,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden"}:null},selectable:{true:{userSelect:"text",cursor:"text"},false:{userSelect:"none",cursor:"default"}},ellipse:{true:l},ellipsis:{true:l}},validStyles:{...n.Qn,...n.hT}});i.displayName="Text"},1130:function(e,t,r){"use strict";r.d(t,{Q:function(){return u},u:function(){return c}});var n=r(281),o=r(2265),l=r(2202),i=r(9033),s=r(8411),a=r(2281);let u=(0,o.forwardRef)(function({children:e,...t},r){if(t.disable)return e;let n=!!t._isRoot,l=(0,s.fe)(t,n),i=t["disable-child-theme"]?o.Children.map(e,e=>(0,o.cloneElement)(e,{"data-disable-theme":!0})):e;if(r)try{o.Children.only(i),i=(0,o.cloneElement)(i,{ref:r})}catch{}return c(l,i,t,n)});function c(e,t,r,s=!1){let{themeManager:c,isNewTheme:f}=e;if(!c)throw Error("❌ 005");let{shallow:h,forceClassName:m}=r,p=(0,o.useRef)(!1),g=f||r.inverse||p.current||m||s;if(g&&(p.current=!0),!g)return t;let b=t;h&&(b=o.Children.toArray(t).map(e=>(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,(0,a.jsx)(u,{name:c.state.parentName,children:e.props.children})):e));let y=(0,a.jsx)(i.s.Provider,{value:c.id,children:b});return!1===m?y:n.$L?function({children:e,themeState:t,forceClassName:r,isRoot:n}){if(n&&!1===r)return e;let o=t.inversed,{className:i,style:s}=function(e,t=!1){if(!e.isNewTheme)return{className:"",style:d};let r=e.state?.theme&&e.isNewTheme?(0,l.lk)(e.state.theme.color):"",n=e.state?.className||"";return t&&(n=n.replace("t_sub_theme","")),{style:r?{color:r}:void 0,className:n}}(t,n),u=(0,a.jsx)("span",{className:`${i} _dsp_contents is_Theme`,style:s,children:e});if(null!=o||r){let e=t.state?.name||"",r=e.startsWith("light")?"t_light is_inversed":e.startsWith("dark")?"t_dark is_inversed":"";u=(0,a.jsx)("span",{className:`${o?r:""} _dsp_contents`,children:u})}return u}({children:y,themeState:e,forceClassName:m,isRoot:s}):y}u.displayName="Theme",u.avoidForwardRef=!0;let d={}},3742:function(e,t,r){"use strict";r.d(t,{KO:function(){return u}});var n=r(2265),o=r(9910);let l=(0,n.createContext)(void 0),i=e=>{let t=(0,n.useContext)(l);return(null==e?void 0:e.store)||t||(0,o.K7)()},s=e=>"function"==typeof(null==e?void 0:e.then),a=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function u(e,t){return[function(e,t){let r=i(t),[[o,l,u],c]=(0,n.useReducer)(t=>{let n=r.get(e);return Object.is(t[0],n)&&t[1]===r&&t[2]===e?t:[n,r,e]},void 0,()=>[r.get(e),r,e]),d=o;(l!==r||u!==e)&&(c(),d=r.get(e));let f=null==t?void 0:t.delay;return(0,n.useEffect)(()=>{let t=r.sub(e,()=>{if("number"==typeof f){setTimeout(c,f);return}c()});return c(),t},[r,e,f]),(0,n.useDebugValue)(d),s(d)?a(d):d}(e,t),function(e,t){let r=i(t);return(0,n.useCallback)(function(){for(var t=arguments.length,n=Array(t),o=0;or};return"function"==typeof e?n.read=e:(n.init=e,n.read=i,n.write=s),t&&(n.write=t),n}function i(e){return e(this)}function s(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}let a=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,u=e=>"init"in e,c=e=>!!e.write,d=new WeakMap,f=(e,t)=>{d.set(e,t),e.catch(()=>{}).finally(()=>d.delete(e))},h=(e,t)=>{let r=d.get(e);r&&(d.delete(e),r(t))},m=(e,t)=>{e.status="fulfilled",e.value=t},p=(e,t)=>{e.status="rejected",e.reason=t},g=e=>"function"==typeof(null==e?void 0:e.then),b=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),y=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),v=e=>!!e&&"v"in e&&e.v instanceof Promise,w=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,S=e=>{if("e"in e)throw e.e;return e.v},k=()=>{let e,t;let r=new WeakMap,n=new WeakMap,o=[],l=new WeakMap;e=new Set,t=new Set;let i=e=>r.get(e),s=(e,t)=>{t.d.forEach((t,r)=>{var n;if(!l.has(r)){let e=i(r);null==(n=o[o.length-1])||n.add(r),l.set(r,[e,new Set]),e&&s(r,e)}l.get(r)[1].add(e)})},d=(e,t)=>{var n;Object.freeze(t);let a=i(e);if(r.set(e,t),l.has(e)||(null==(n=o[o.length-1])||n.add(e),l.set(e,[a,new Set]),s(e,t)),v(a)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);a.v!==e&&h(a.v,e)}},k=(e,t,r,n)=>{let o=new Map(n?t.d:null),l=!1;r.forEach((r,n)=>{!r&&a(e,n)&&(r=t),r?(o.set(n,r),t.d.get(n)!==r&&(l=!0)):console.warn("[Bug] atom state not found")}),(l||t.d.size!==o.size)&&(t.d=o)},$=(e,t,r,n)=>{let o=i(e),l={d:(null==o?void 0:o.d)||new Map,v:t};if(r&&k(e,l,r,n),b(o,l)&&o.d===l.d)return o;if(v(o)&&v(l)&&w(o,l)){if(o.d===l.d)return o;l.v=o.v}return d(e,l),l},C=(e,t,r,o)=>{if(g(t)){let l;let s=()=>{let t=i(e);if(!v(t)||t.v!==a)return;let o=$(e,a,r);n.has(e)&&t.d!==o.d&&j(e,o,t.d)},a=new Promise((e,r)=>{let n=!1;t.then(t=>{n||(n=!0,m(a,t),e(t),s())},e=>{n||(n=!0,p(a,e),r(e),s())}),l=t=>{n||(n=!0,t.then(e=>m(a,e),e=>p(a,e)),e(t))}});return a.orig=t,a.status="pending",f(a,e=>{e&&l(e),null==o||o()}),$(e,a,r,!0)}return $(e,t,r)},x=(e,t,r)=>{let n=i(e),o={d:(null==n?void 0:n.d)||new Map,e:t};return(r&&k(e,o,r),y(n,o)&&n.d===o.d)?n:(d(e,o),o)},T=(e,t)=>{let r,o;let l=i(e);if(!t&&l&&(n.has(e)||Array.from(l.d).every(([t,r])=>{if(t===e)return!0;let n=T(t);return n===r||b(n,r)})))return l;let s=new Map,d=!0;try{let t=e.read(t=>{if(a(e,t)){let e=i(t);if(e)return s.set(t,e),S(e);if(u(t))return s.set(t,void 0),t.init;throw Error("no atom init")}let r=T(t);return s.set(t,r),S(r)},{get signal(){return r||(r=new AbortController),r.signal},get setSelf(){return c(e)||console.warn("setSelf function cannot be used with read-only atom"),!o&&c(e)&&(o=(...t)=>{if(d&&console.warn("setSelf function cannot be called in sync"),!d)return P(e,...t)}),o}});return C(e,t,s,()=>null==r?void 0:r.abort())}catch(t){return x(e,t,s)}finally{d=!1}},E=e=>{let t=e=>{var t,r;let o=new Set(null==(t=n.get(e))?void 0:t.t);return null==(r=l.get(e))||r[1].forEach(e=>{o.add(e)}),o},r=[],o=new Set,s=e=>{if(!o.has(e)){for(let r of(o.add(e),t(e)))e!==r&&s(r);r.push(e)}};s(e);let a=new Set([e]);for(let e=r.length-1;e>=0;--e){let t=r[e],n=i(t);if(!n)continue;let o=!1;for(let e of n.d.keys())if(e!==t&&a.has(e)){o=!0;break}o&&!b(n,T(t,!0))&&a.add(t)}},_=(t,...r)=>t.write(e=>S(T(e)),(r,...n)=>{let l;let s=o.length>0;if(s||o.push(new Set([r])),a(t,r)){if(!u(r))throw Error("atom not writable");b(i(r),C(r,n[0]))||E(r)}else l=_(r,...n);if(!s){let t=M(o.pop());e.forEach(e=>e({type:"async-write",flushed:t}))}return l},...r),P=(t,...r)=>{o.push(new Set([t]));let n=_(t,...r),l=M(o.pop());return e.forEach(e=>e({type:"write",flushed:l})),n},O=(e,r,o)=>{var l;let s=n.get(e);if(s)return r&&s.t.add(r),s;let a=o||[];null==(l=i(e))||l.d.forEach((t,r)=>{r!==e&&O(r,e,a)}),T(e);let u={t:new Set(r&&[r]),l:new Set};if(n.set(e,u),t.add(e),c(e)&&e.onMount){let{onMount:t}=e;a.push(()=>{let r=t((...t)=>P(e,...t));r&&(u.u=r)})}return o||a.forEach(e=>e()),u},R=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),L=(e,r)=>{if(!R(e,r))return;let o=r.u;o&&o(),n.delete(e),t.delete(e);let l=i(e);l?(v(l)&&h(l.v),l.d.forEach((t,r)=>{if(r!==e){let t=n.get(r);t&&(t.t.delete(e),L(r,t))}})):console.warn("[Bug] could not find atom state to unmount",e)},j=(e,t,r)=>{let o=new Set(t.d.keys()),l=new Set;null==r||r.forEach((t,r)=>{if(o.has(r)){o.delete(r);return}l.add(r);let i=n.get(r);i&&i.t.delete(e)}),o.forEach(t=>{O(t,e)}),l.forEach(e=>{let t=n.get(e);t&&L(e,t)})},M=e=>{let t;t=new Set;let r=[],o=e=>{var t;if(!l.has(e))return;let[n,s]=l.get(e);l.delete(e),r.push([e,n]),s.forEach(o),null==(t=i(e))||t.d.forEach((e,t)=>o(t))};return e.forEach(o),r.forEach(([e,r])=>{let o=i(e);if(!o){console.warn("[Bug] no atom state to flush");return}if(o!==r){let l=n.get(e);l&&o.d!==(null==r?void 0:r.d)&&j(e,o,null==r?void 0:r.d),l&&!(!v(r)&&(b(r,o)||y(r,o)))&&(l.l.forEach(e=>e()),t.add(e))}}),t};return{get:e=>S(T(e)),set:P,sub:(t,r)=>{let n=O(t),o=M([t]),l=n.l;return l.add(r),e.forEach(e=>e({type:"sub",flushed:o})),()=>{l.delete(r),L(t,n),e.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:t=>(e.add(t),()=>{e.delete(t)}),dev_get_mounted_atoms:()=>t.values(),dev_get_atom_state:e=>r.get(e),dev_get_mounted:e=>n.get(e),dev_restore_atoms:t=>{for(let[e,r]of(o.push(new Set),t))u(e)&&(C(e,r),E(e));let r=M(o.pop());e.forEach(e=>e({type:"restore",flushed:r}))}}};Symbol("CONTINUE_PROMISE");let $=()=>(n||(n=k(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=n),globalThis.__JOTAI_DEFAULT_STORE__!==n&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),n)},1564:function(e,t,r){"use strict";r.d(t,{_:function(){return S}});var n=r(281),o=r(5986),l=r(7104),i=r(8338),s=r(9242),a=r(2202),u=r(357);let c=e=>{f.set((0,a.Ve)(e),e)},d=(e,t=!1)=>`--${u.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,a.bK)(e.name,!1)}:${t||"number"!=typeof e.val?e.val:`${e.val}px`}`,f=new Map;var h=r(357);let m=".t_dark",p=".t_light",g=e=>e===m||e===p||e.startsWith(".t_dark ")||e.startsWith(".t_light ");var b=r(7393);let y={};var v=r(9097);let w=new WeakMap,S=function(e){let t;if(w.has(e))return e;let r={},u=(0,l.D)(e.tokens||{});if(e.tokens){let e={};for(let t in u){r[t]={},e[t]={};let n=u[t];for(let o in n){let l=n[o],i=`$${o}`;r[t][i]=l,e[t][i]=l,e[t][o]=l}}(0,o.d0)(e)}if(e.themes){let n=0===Object.keys(e.themes).length;t=(0,b.jc)(n,r)}(0,b.OJ)();let S=null,k;if(e.fonts){let t=Object.fromEntries(Object.entries(e.fonts).map(([e,t])=>[e,(0,l.D)(t,"f",!0)]));k=(()=>{let e={};for(let r in t){let n=function(e){let t={};for(let r in e){let n=e[r];if("family"===r||"face"===r)t[r]=n;else for(let e in t[r]={},n){let o=n[e];o.val?.[0]==="$"&&(o=o.val),t[r][`$${e}`]=o}}return t}(t[r]);e[`$${r}`]=n,!S&&n.size&&(S=new Set(Object.keys(n.size)))}return e})()}let $={},C=(()=>{let r=[],l=[],b={};for(let e in u)for(let t in u[e]){let r=u[e][t];$[`$${e}.${t}`]=r,n.$L&&(c(r),l.push(d(r,"zIndex"===e)))}if(n.$L){let t=function(e,t=""){return`:root${t} {${n}${[...e].join(`;${n}`)}${n}}`};for(let e in k){let t=k[e],[r,n]=e.includes("_")?e.split("_"):[e],o=function(e){let t=[];for(let r in e)if("face"!==r){if("family"===r){let n=e[r];c(n),t.push(d(n))}else for(let n in e[r])if("string"!=typeof e[r][n]){let o=e[r][n];c(o),t.push(d(o))}}return t}(t);b[e]={name:r.slice(1),declarations:o,language:n}}let n=e.cssStyleSeparator||"";if(r.push(t(l)),b)for(let e in b){let{name:n,declarations:o,language:l="default"}=b[e],i=`.font_${n}`,s=`:root .t_lang-${n}-${l} ${i}`,a=t(o,"default"===l?` ${i}, ${s}`:s);r.push(a)}}let v={...e.themes},w=t??function(e){let t=[],r=new Map;for(let n in e){let o=n.startsWith("dark")?"dark":n.startsWith("light")?"light":"",l=e[n],i=o+JSON.stringify(l);if(r.has(i)){r.get(i).names.push(n);continue}let s={...l};for(let e in s)!function(e,t){let r=e[t];(0,a.cG)(r)?r.name!==t&&(e[t]=(0,a.Os)({key:r.name,name:t,val:r.val})):e[t]=(0,a.Os)({key:t,name:t,val:r})}(s,e);let u={names:[n],theme:s};t.push(u),r.set(i,u)}return t}(v);return{themes:function(e){for(let{names:t,theme:r}of e)for(let e of t)y[e]=r;let t={};for(let{names:r,theme:n}of e)for(let e of r){let r=function(e,t){let r=[],n=e.split("_").slice(0,-1).map(e=>(r.push(e),r.join("_"))),l=n.length;return new Proxy(t,{get(e,t){if(!t||"undefined"==t||Reflect.has(e,t))return Reflect.get(e,t);for(let e=l-1;e>=0;e--){let r=y[n[e]];if(r&&Reflect.has(r,t))return Reflect.get(r,t)}return(0,o.p_)(t)}})}(e,n);t[e]=r}return t}(w),cssRuleSets:r,getThemeRulesSets(){let t=[];if(n.$L)for(let{names:r,theme:n}of w)t=[...t,...function(e){let t=[];if(!h.env.TAMAGUI_DOES_SSR_CSS||"mutates-themes"===h.env.TAMAGUI_DOES_SSR_CSS||"false"===h.env.TAMAGUI_DOES_SSR_CSS){let{config:r,themeName:n,theme:o,names:l}=e,u=e.hasDarkLight??(r.themes&&("light"in r.themes||"dark"in r.themes)),c=`.${s.nx}`,d="";for(let e in o){let t=o[e],r=null;r=f.has(t.val)?f.get(t.val).variable:t.val,d+=`--${h.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,i.M)(e,40)}:${r};`}let b="dark"===n,y="light"===n,v=l.map(e=>`${c}${e}`),w=new Set(b||y?v:[]);if(u){let e=r.maxDarkLightNesting??3;for(let t of l){let r=b||t.startsWith("dark_"),n=!r&&(y||t.startsWith("light_"));if(!(r||n)){w.add(`${c}${t}`);continue}let o=`${c}${t.replace(/^(dark|light)_/,"")}`,[l,i]=r?["dark","light"]:["light","dark"],s=Math.round(1.5*e);for(let e=0;e`${c}${t%2==0?l:i}`),n=r.length>1?r.slice(1):r;if(t){let[e,t,...r]=n;n=[t,...r,t]}let s=o===n[n.length-1]?"":o;w.add(`${n.join(" ")} ${s}`.trim())}}}let S=[...w].sort((e,t)=>e.localeCompare(t)),k=`${S.map(e=>`:root${g(e)&&r.themeClassNameOnRoot?"":" "}${e}`).join(", ")} {${d}}`;if(t.push(k),r.shouldAddPrefersColorThemes){let e=o.background?`background:${(0,a.lk)(o.background)};`:"",r=o.color?`color:${(0,a.lk)(o.color)}`:"",l=`body{${e}${r}}`,i=n.startsWith("dark"),s=`${S.map(e=>e==m||e===p?":root":i&&e.startsWith(p)||!i&&e.startsWith(m)?void 0:e.replace(/^\.t_(dark|light) /,"").trim()).filter(Boolean).join(", ")} {${d}}`,u=`@media(prefers-color-scheme:${i?"dark":"light"}){ + ${l} + ${s} + }`;t.push(u)}if(r.selectionStyles){let e=r.selectionStyles(o);if(e){let r=v.map(e=>`${e} ::selection`).join(", "),n=Object.entries(e).flatMap(([e,t])=>t?`${"backgroundColor"===e?"background":e}:${(0,a.lk)(t)}`:[]).join(";");if(n){let e=`${r}{${n}}`;t.push(e)}}}}return t}({config:e,themeName:r[0],names:r,theme:n})];return t}}})(),x=e.shorthands||{},T=-1,E=(e={})=>{let{separator:t=` +`,sinceLastCall:r,exclude:n}=e;if(r&&T>=0){let e=(0,b.UY)();return T=e.length,e.slice(T).join(t)}T=0;let o=(0,b.UY)().join(t);return"design-system"===n?o:`._ovs-contain {overscroll-behavior:contain;} +.is_Text .is_Text {display:inline-flex;} +._dsp_contents {display:contents;} +${C.cssRuleSets.join(t)} +${n?"":C.getThemeRulesSets().join(t)} +${o}`},_=e.defaultFont||e.fonts&&("body"in e.fonts?"body":"");!_&&e.fonts&&(_=Object.keys(e.fonts)[0]),_?.[0]==="$"&&(_=_.slice(1));let P=`$${_}`,O={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:{},media:{},...e,unset:{fontFamily:e.defaultFont?P:void 0,...e.unset},settings:{webContainerType:"inline-size",...e.settings},tokens:u,shorthands:x,inverseShorthands:x?Object.fromEntries(Object.entries(x).map(([e,t])=>[t,e])):{},themes:C.themes,fontsParsed:k||{},themeConfig:C,tokensParsed:r,parsed:!0,getNewCSS:e=>E({...e,sinceLastCall:!0}),getCSS:E,defaultFont:P,fontSizeTokens:S||new Set,specificTokens:$};return(0,v.jl)(O),(0,o.v6)(O),w.set(O,!0),o.zG.size&&(o.zG.forEach(e=>e(O)),o.zG.clear()),O}},6608:function(e,t,r){"use strict";r.d(t,{r:function(){return h}});var n=r(281),o=r(2265),l=r(7562),i=r(9097),s=r(9242),a=r(1130),u=r(2281);let c=e=>(n.C5&&(0,o.useLayoutEffect)(()=>{if(e.disableRootThemeClass)return;let t=`${s.nx}${e.defaultTheme}`,r=e.themeClassNameOnRoot?document.documentElement:document.body;return r.classList.add(t),()=>{r.classList.remove(t)}},[e.defaultTheme,e.disableRootThemeClass,e.themeClassNameOnRoot]),(0,u.jsx)(a.Q,{className:e.className,name:e.defaultTheme,forceClassName:!e.disableRootThemeClass,_isRoot:!0,children:e.children}));function d({children:e,disableInjectCSS:t,config:r,...s}){return(0,i.yL)(),n.C5&&o.useLayoutEffect(()=>{if(r&&(r.disableSSR||document.documentElement.classList.contains("t_unmounted")&&document.documentElement.classList.remove("t_unmounted"),!t)){let e=document.createElement("style");return e.appendChild(document.createTextNode(r.getCSS())),document.head.appendChild(e),()=>{document.head.removeChild(e)}}},[r,t]),(0,u.jsx)(l.s.Provider,{animationDriver:r?.animations,children:(0,u.jsx)(c,{themeClassNameOnRoot:r?.themeClassNameOnRoot,disableRootThemeClass:r?.disableRootThemeClass,...s,defaultTheme:s.defaultTheme??(r?Object.keys(r.themes)[0]:""),children:e})})}d.displayName="TamaguiProvider";var f=r(4624);let h=({children:e,...t})=>(0,u.jsx)(d,{...t,children:(0,u.jsx)(f.Xp,{shouldAddRootHost:!0,children:e})})}}]); \ No newline at end of file