@app-studio/components 0.10.28 → 0.10.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(I,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("react/jsx-runtime"),require("react"),require("app-studio"),require("react-dom"),require("zustand"),require("react-router-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","app-studio","react-dom","zustand","react-router-dom","formik"],r):(I=typeof globalThis<"u"?globalThis:I||self,r(I.AppStudioWeb={},I.jsxRuntime,I.React,I.appStudio,I.ReactDOM,I.zustand,I.ReactRouterDOM,I.Formik))})(this,function(I,r,h,l,zc,Co,rt,De){"use strict";var cb=Object.defineProperty;var sb=(I,r,h)=>r in I?cb(I,r,{enumerable:!0,configurable:!0,writable:!0,value:h}):I[r]=h;var Qe=(I,r,h)=>sb(I,typeof r!="symbol"?r+"":r,h);var xo,Fn;const tt=(e="id")=>`${e}-${Math.random().toString(36).substring(2,9)}`,Mc=({type:e="single",value:o,defaultValue:t,onValueChange:n,collapsible:a=!1})=>{const i=o!==void 0,c=o??t,s=()=>e==="multiple"?Array.isArray(c)?c:c?[c]:[]:Array.isArray(c)?c[0]:c,[d,g]=h.useState(s()),f=h.useMemo(()=>tt("accordion"),[]),m=i?o:d,p=h.useMemo(()=>m===void 0?[]:Array.isArray(m)?m:[m],[m]);h.useEffect(()=>{i&&(e==="multiple"&&!Array.isArray(o)?(console.warn('Accordion with type="multiple" received non-array value:',o),g(o?[String(o)]:[])):e==="single"&&Array.isArray(o)?(console.warn('Accordion with type="single" received array value:',o),g(o.length>0?o[0]:void 0)):g(o))},[o,i,e]);const u=h.useCallback(k=>{let x;if(e==="single")m===k&&a?x=void 0:m!==k?x=k:x=m;else{const C=Array.isArray(m)?m:[];C.includes(k)?x=C.filter(w=>w!==k):x=[...C,k],Array.isArray(x)&&x.length===0&&(x=[])}i||g(x),n&&n(x)},[e,m,a,i,n]),y=h.useCallback(k=>p.includes(k),[p]);return{expandedItems:p,toggleItem:u,isItemExpanded:y,type:e,collapsible:a,baseId:f}},Wc={square:{borderRadius:0},rounded:{borderRadius:8}},Hc={default:{borderWidth:0,style:{backgroundColor:"transparent"},transition:"background-color 0.15s ease"},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",transition:"border-color 0.15s ease, background-color 0.15s ease",_hover:{borderColor:"color-gray-300"}},filled:{backgroundColor:"color-gray-50",transition:"background-color 0.15s ease",_hover:{backgroundColor:"color-gray-100"}}},jc={metadata:{id:"default",label:"Default",sourcePath:"",sourceTitle:"Default adaptive design system (light + dark)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"]},theme:{primary:"#2563eb",secondary:"#7c3aed",success:"#16a34a",warning:"#d97706",error:"#dc2626",onPrimary:"#ffffff",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200"},tokens:{rawCssVars:{primary:"#2563eb",secondary:"#7c3aed",success:"#16a34a",warning:"#d97706",error:"#dc2626"},colors:[{name:"primary",value:"#2563eb",role:"primary"},{name:"secondary",value:"#7c3aed",role:"secondary"},{name:"success",value:"#16a34a",role:"success"},{name:"warning",value:"#d97706",role:"warning"},{name:"error",value:"#dc2626",role:"error"}],typography:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",monoFamily:"ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace",fontSizes:["12px","13px","14px","16px","18px","22px","28px","36px","48px","64px"],fontWeights:["400","500","600","700","800"],lineHeights:["1.0","1.1","1.2","1.4","1.5","1.6"]},spacing:["2px","4px","8px","12px","16px","24px","32px","48px","64px"],radii:["2px","4px","6px","8px","12px","16px","9999px"],shadows:["0 1px 2px rgba(0,0,0,0.04)","0 4px 12px rgba(0,0,0,0.08)","0 12px 32px rgba(0,0,0,0.12)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:8,fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:null,color:null,borderColor:null,borderRadius:6,fontFamily:"'Inter', system-ui, -apple-system, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:600,fontStyle:"normal"},text:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},header:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid"},field:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid"},field:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid"},field:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"12px"},trigger:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"9999px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"regular",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"neutral-clear"}},nt={airbnb:{metadata:{id:"airbnb",label:"Airbnb",sourcePath:"design.md/html/airbnb.html",sourceTitle:"Design System Inspiration of Airbnb",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"]},theme:{primary:"#ff385c",secondary:"#222222",success:"#428bff",warning:"#460479",error:"#c13515",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#ff385c","primary-active":"#e00b41","primary-disabled":"#ffd1da",error:"#c13515",luxe:"#460479",plus:"#92174d",ink:"#222222",body:"#3f3f3f",muted:"#6a6a6a","muted-soft":"#929292",hairline:"#dddddd","hairline-soft":"#ebebeb","border-strong":"#c1c1c1",canvas:"#ffffff","surface-soft":"#f7f7f7","surface-strong":"#f2f2f2","on-primary":"#ffffff","legal-link":"#428bff",shadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0",display:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",text:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, sans-serif"},colors:[{name:"primary",value:"#ff385c",role:"primary"},{name:"primary-active",value:"#e00b41",role:"primary active"},{name:"primary-disabled",value:"#ffd1da",role:"primary disabled"},{name:"error",value:"#c13515",role:"error"},{name:"luxe",value:"#460479",role:"luxe"},{name:"plus",value:"#92174d",role:"plus"},{name:"ink",value:"#222222",role:"ink"},{name:"body",value:"#3f3f3f",role:"body"},{name:"muted",value:"#6a6a6a",role:"muted"},{name:"muted-soft",value:"#929292",role:"muted soft"},{name:"hairline",value:"#dddddd",role:"hairline"},{name:"hairline-soft",value:"#ebebeb",role:"hairline soft"},{name:"border-strong",value:"#c1c1c1",role:"border strong"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"surface-soft",value:"#f7f7f7",role:"surface soft"},{name:"surface-strong",value:"#f2f2f2",role:"surface strong"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"legal-link",value:"#428bff",role:"legal link"},{name:"shadow",value:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0",role:"shadow"}],typography:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","14px","48px","18px","20px","11px","28px","13px","12px","8px","64px","21px","10px","24px","36px","15px"],fontWeights:["400","600","700","500"],lineHeights:["1.5","1.1","1.43","1.25","2","1","1.2","1.35","1.4"]},spacing:["2px","4px","5px","6px","7px","8px","10px","11px","12px","13px","14px","16px","20px","23px","24px","28px","32px","40px","48px","56px"],radii:["9999px","8px","14px","4px","6px","3px"],shadows:["rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0","var(--shadow)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:null,color:null,borderColor:null,borderRadius:6,fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},header:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},field:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},field:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},field:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"14px"},trigger:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:16},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:16},title:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"14px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"14px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:16,pillRadius:9999,badgeRadius:6,voice:"warm-welcoming"}},apple:{metadata:{id:"apple",label:"Apple",sourcePath:"design.md/html/apple.html",sourceTitle:"Design System Inspiration of Apple",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"]},theme:{primary:"#0071E3",secondary:"#1d1d1f",success:"#0071e3",warning:"#272729",error:"#2997ff",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#0066cc","primary-focus":"#0071e3","primary-on-dark":"#2997ff",ink:"#1d1d1f",body:"#1d1d1f","body-on-dark":"#ffffff","body-muted":"#cccccc","ink-muted-80":"#333333","ink-muted-48":"#7a7a7a","divider-soft":"#f0f0f0",hairline:"#e0e0e0",canvas:"#ffffff","canvas-parchment":"#f5f5f7","surface-pearl":"#fafafc","surface-tile-1":"#272729","surface-tile-2":"#2a2a2c","surface-tile-3":"#252527","surface-black":"#000000","surface-chip-translucent":"rgba(210, 210, 215, 0.64)","on-primary":"#ffffff","on-dark":"#ffffff",display:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",text:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},colors:[{name:"primary",value:"#0071E3",role:"primary"},{name:"primary-focus",value:"#0071e3",role:"primary focus"},{name:"primary-on-dark",value:"#2997ff",role:"primary on dark"},{name:"ink",value:"#1d1d1f",role:"ink"},{name:"body",value:"#1d1d1f",role:"body"},{name:"body-on-dark",value:"#ffffff",role:"body on dark"},{name:"body-muted",value:"#cccccc",role:"body muted"},{name:"ink-muted-80",value:"#333333",role:"ink muted 80"},{name:"ink-muted-48",value:"#7a7a7a",role:"ink muted 48"},{name:"divider-soft",value:"#f0f0f0",role:"divider soft"},{name:"hairline",value:"#e0e0e0",role:"hairline"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"canvas-parchment",value:"#f5f5f7",role:"canvas parchment"},{name:"surface-pearl",value:"#fafafc",role:"surface pearl"},{name:"surface-tile-1",value:"#272729",role:"surface tile 1"},{name:"surface-tile-2",value:"#2a2a2c",role:"surface tile 2"},{name:"surface-tile-3",value:"#252527",role:"surface tile 3"},{name:"surface-black",value:"#000000",role:"surface black"},{name:"surface-chip-translucent",value:"rgba(210, 210, 215, 0.64)",role:"surface chip translucent"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"on-dark",value:"#ffffff",role:"on dark"}],typography:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["17px","14px","56px","21px","12px","40px","24px","13px","18px","28px","11px","34px","44px","32px","19px"],fontWeights:["400","600","300","700"],lineHeights:["1.47","1.07","1.19","1.1","1.43","1.5","1","1.14","2.0","2.41","1.2","1.35"]},spacing:["5px","6px","7px","8px","10px","11px","12px","14px","15px","16px","18px","20px","21px","22px","24px","28px","32px","44px","48px","50px"],radii:["9999px","18px","28px","24px","8px","11px","50%","12px","4px","6px","3px"],shadows:["0 5px 30px rgba(0, 0, 0, 0.22)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,borderColor:"theme-primary",letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:8,fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",letterSpacing:"-0.022em",textTransform:"none",fontWeight:300,fontStyle:"normal"},text:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:18,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 5px 30px rgba(0, 0, 0, 0.22)"},header:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.022em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"18px"},trigger:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:18},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.022em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.022em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:18},title:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"18px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"18px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"light",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.022em",accentTreatment:"flat",signatureMotif:"◯",density:"spacious",surfaceTone:"paper",cardRadius:18,pillRadius:9999,badgeRadius:8,voice:"minimal-precise"}},coinbase:{metadata:{id:"coinbase",label:"Coinbase",sourcePath:"design.md/html/coinbase.html",sourceTitle:"Design System Inspiration of Coinbase",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap"]},theme:{primary:"#0052ff",secondary:"#0a0b0d",success:"#16a34a",warning:"#003ecc",error:"#dc2626",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#0052ff","primary-active":"#003ecc","primary-disabled":"#a8b8cc",ink:"#0a0b0d",body:"#5b616e",muted:"#7c828a","muted-soft":"#a8acb3",hairline:"#dee1e6","hairline-soft":"#eef0f3",canvas:"#ffffff","surface-soft":"#f7f7f7","surface-strong":"#eef0f3","surface-dark":"#0a0b0d","surface-dark-elevated":"#16181c","on-primary":"#ffffff","on-dark":"#ffffff","on-dark-soft":"#a8acb3","semantic-up":"#05b169","semantic-down":"#cf202f","accent-yellow":"#f4b000",display:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",text:"'Inter', 'Coinbase Sans', sans-serif",mono:"'JetBrains Mono', 'Coinbase Mono', monospace"},colors:[{name:"primary",value:"#0052ff",role:"primary"},{name:"primary-active",value:"#003ecc",role:"primary active"},{name:"primary-disabled",value:"#a8b8cc",role:"primary disabled"},{name:"ink",value:"#0a0b0d",role:"ink"},{name:"body",value:"#5b616e",role:"body"},{name:"muted",value:"#7c828a",role:"muted"},{name:"muted-soft",value:"#a8acb3",role:"muted soft"},{name:"hairline",value:"#dee1e6",role:"hairline"},{name:"hairline-soft",value:"#eef0f3",role:"hairline soft"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"surface-soft",value:"#f7f7f7",role:"surface soft"},{name:"surface-strong",value:"#eef0f3",role:"surface strong"},{name:"surface-dark",value:"#0a0b0d",role:"surface dark"},{name:"surface-dark-elevated",value:"#16181c",role:"surface dark elevated"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"on-dark",value:"#ffffff",role:"on dark"},{name:"on-dark-soft",value:"#a8acb3",role:"on dark soft"},{name:"semantic-up",value:"#05b169",role:"semantic up"},{name:"semantic-down",value:"#cf202f",role:"semantic down"},{name:"accent-yellow",value:"#f4b000",role:"accent yellow"}],typography:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",monoFamily:"'JetBrains Mono', 'Coinbase Mono', monospace",fontSizes:["16px","14px","72px","18px","13px","36px","12px","44px","11px","52px","28px","40px","32px","48px","26px"],fontWeights:["500","600","400","700"],lineHeights:["1.5","1.2","1.05","1.15","1.0","1.09","1","1.35","1.4"]},spacing:["4px","5px","6px","8px","10px","11px","12px","13px","14px","15px","16px","19px","20px","24px","28px","32px","40px","44px","48px","56px"],radii:["100px","24px","20px","16px","9999px","14px","12px","8px","6px","3px"],shadows:["0 16px 40px rgba(0,0,0,0.5)","0 16px 40px rgba(0,0,0,0.4)","0 4px 12px rgba(0,0,0,0.04)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:6,fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 16px 40px rgba(0,0,0,0.5)"},header:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"16px"},trigger:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'JetBrains Mono', 'Coinbase Mono', monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"16px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"16px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"◆",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"trustworthy-financial"}},figma:{metadata:{id:"figma",label:"Figma",sourcePath:"design.md/html/figma.html",sourceTitle:"Design System Inspiration of Figma",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap"]},theme:{primary:"#F24E1E",secondary:"#A259FF",success:"#0ACF83",warning:"#FFC700",error:"#FF7262",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#000000","on-primary":"#ffffff",ink:"#000000",canvas:"#ffffff","inverse-canvas":"#000000","inverse-ink":"#ffffff",hairline:"#e6e6e6","hairline-soft":"#f1f1f1","surface-soft":"#f7f7f5","block-lime":"#dceeb1","block-lilac":"#c5b0f4","block-cream":"#f4ecd6","block-pink":"#efd4d4","block-mint":"#c8e6cd","block-coral":"#f3c9b6","block-navy":"#1f1d3d","accent-magenta":"#ff3d8b","semantic-success":"#1ea64a",sans:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",mono:"'JetBrains Mono', 'SF Mono', Menlo, monospace"},colors:[{name:"primary",value:"#F24E1E",role:"primary"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"ink",value:"#000000",role:"ink"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"inverse-canvas",value:"#000000",role:"inverse canvas"},{name:"inverse-ink",value:"#ffffff",role:"inverse ink"},{name:"hairline",value:"#e6e6e6",role:"hairline"},{name:"hairline-soft",value:"#f1f1f1",role:"hairline soft"},{name:"surface-soft",value:"#f7f7f5",role:"surface soft"},{name:"block-lime",value:"#dceeb1",role:"block lime"},{name:"block-lilac",value:"#c5b0f4",role:"block lilac"},{name:"block-cream",value:"#f4ecd6",role:"block cream"},{name:"block-pink",value:"#efd4d4",role:"block pink"},{name:"block-mint",value:"#c8e6cd",role:"block mint"},{name:"block-coral",value:"#f3c9b6",role:"block coral"},{name:"block-navy",value:"#1f1d3d",role:"block navy"},{name:"accent-magenta",value:"#ff3d8b",role:"accent magenta"},{name:"semantic-success",value:"#1ea64a",role:"semantic success"}],typography:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",monoFamily:"'JetBrains Mono', 'SF Mono', Menlo, monospace",fontSizes:["18px","16px","80px","20px","12px","40px","14px","11px","26px","24px","32px","13px","10px","56px","36px"],fontWeights:["320","330","480","600","500","700"],lineHeights:["1.45","1.0","1.4","1.1","1.6","1.35","1","1.2"]},spacing:["5px","6px","8px","10px","12px","14px","16px","20px","22px","24px","28px","32px","36px","40px","44px","48px","56px","64px","96px","100px"],radii:["50px","8px","9999px","24px","6px","2px","3px"],shadows:["0 0 0 2px rgba(0,0,0,0.08)","none","0 4px 16px rgba(0,0,0,0.06)","0 12px 32px rgba(0,0,0,0.18)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:4,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:8,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 2px rgba(0,0,0,0.08)"},header:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},activeText:{color:"theme-primary"},content:{color:"theme-primary"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"theme-primary",borderRadius:"12px"},trigger:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:8},thead:{backgroundColor:"color-gray-50",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'JetBrains Mono', 'SF Mono', Menlo, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:8},title:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"8px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"✦",density:"comfortable",surfaceTone:"paper",cardRadius:8,pillRadius:9999,badgeRadius:4,voice:"playful-creative"}},linear:{metadata:{id:"linear",label:"Linear",sourcePath:"design.md/html/linear.html",sourceTitle:"Design System Inspiration of Linear",defaultAppearance:"dark",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap"]},theme:{primary:"#5e6ad2",secondary:"#828fff",success:"#27a644",warning:"#5e69d1",error:"#828fff",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#5e6ad2","primary-hover":"#828fff","primary-focus":"#5e69d1","on-primary":"#ffffff",ink:"#f7f8f8","ink-muted":"#d0d6e0","ink-subtle":"#8a8f98","ink-tertiary":"#62666d",canvas:"#010102","surface-1":"#0f1011","surface-2":"#141516","surface-3":"#18191a","surface-4":"#191a1b",hairline:"#23252a","hairline-strong":"#34343a","hairline-tertiary":"#3e3e44","semantic-success":"#27a644",sans:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",mono:"'JetBrains Mono', ui-monospace, 'SF Mono', menlo, monospace"},colors:[{name:"primary",value:"#5e6ad2",role:"primary"},{name:"primary-hover",value:"#828fff",role:"primary hover"},{name:"primary-focus",value:"#5e69d1",role:"primary focus"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"ink",value:"#f7f8f8",role:"ink"},{name:"ink-muted",value:"#d0d6e0",role:"ink muted"},{name:"ink-subtle",value:"#8a8f98",role:"ink subtle"},{name:"ink-tertiary",value:"#62666d",role:"ink tertiary"},{name:"canvas",value:"#08090A",role:"canvas"},{name:"surface-1",value:"#0f1011",role:"surface 1"},{name:"surface-2",value:"#141516",role:"surface 2"},{name:"surface-3",value:"#18191a",role:"surface 3"},{name:"surface-4",value:"#191a1b",role:"surface 4"},{name:"hairline",value:"#23252a",role:"hairline"},{name:"hairline-strong",value:"#34343a",role:"hairline strong"},{name:"hairline-tertiary",value:"#3e3e44",role:"hairline tertiary"},{name:"semantic-success",value:"#27a644",role:"semantic success"}],typography:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",monoFamily:"'JetBrains Mono', ui-monospace, 'SF Mono', menlo, monospace",fontSizes:["16px","14px","80px","18px","13px","56px","15px","12px","11px","28px","40px","22px","10px","36px"],fontWeights:["400","500","600","700"],lineHeights:["1.50","1.05","1.20","1.10","1.5","1.6","1.25","1","1.2","1.35","1.4"]},spacing:["2px","5px","6px","8px","10px","12px","14px","16px","20px","24px","28px","32px","36px","40px","48px","56px","64px","80px","96px","120px"],radii:["8px","12px","9999px","16px","4px","2px","6px","3px"],shadows:["rgba(255,255,255,0.05) 0 0.5px 0 0.5px","0 0 0 2px rgba(94,105,209,0.25)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-on-primary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"theme-on-primary",borderColor:"theme-secondary",borderRadius:6,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",letterSpacing:"-0.025em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(255,255,255,0.05) 0 0.5px 0 0.5px"},header:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.025em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.025em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.025em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"12px"},trigger:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'JetBrains Mono', ui-monospace, 'SF Mono', menlo, monospace",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.025em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.025em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"8px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.025em",accentTreatment:"gradient",signatureMotif:"↗",density:"tight",surfaceTone:"glass",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"speed-clarity"}},nike:{metadata:{id:"nike",label:"Nike",sourcePath:"design.md/html/nike.html",sourceTitle:"Design System Inspiration of Nike",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"]},theme:{primary:"color-black",secondary:"#FA5400",success:"#76E0B5",warning:"#1151ff",error:"#d30005",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{ink:"#111111","on-primary":"#ffffff",canvas:"#ffffff","soft-cloud":"#f5f5f5",charcoal:"#39393b",ash:"#4b4b4d",mute:"#707072",stone:"#9e9ea0",hairline:"#cacacb","hairline-soft":"#e5e5e5",sale:"#d30005","sale-deep":"#780700",success:"#007d48","success-bright":"#1eaa52",info:"#1151ff","info-deep":"#0034e3","accent-pink":"#ed1aa0","accent-pink-soft":"#ffb0dd","accent-purple-soft":"#beaffd","accent-purple-pale":"#d6d1ff","accent-teal":"#0a7281","accent-pink-deep":"#4c012d","font-display":"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif","font-ui":"'Inter', 'Helvetica Now Text Medium', Helvetica, Arial, sans-serif","font-body":"'Inter', 'Helvetica Now Text', Helvetica, Arial, sans-serif"},colors:[{name:"ink",value:"#111111",role:"ink"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"soft-cloud",value:"#f5f5f5",role:"soft cloud"},{name:"charcoal",value:"#39393b",role:"charcoal"},{name:"ash",value:"#4b4b4d",role:"ash"},{name:"mute",value:"#707072",role:"mute"},{name:"stone",value:"#9e9ea0",role:"stone"},{name:"hairline",value:"#cacacb",role:"hairline"},{name:"hairline-soft",value:"#e5e5e5",role:"hairline soft"},{name:"sale",value:"#d30005",role:"sale"},{name:"sale-deep",value:"#780700",role:"sale deep"},{name:"success",value:"#76E0B5",role:"success"},{name:"success-bright",value:"#1eaa52",role:"success bright"},{name:"info",value:"#1151ff",role:"info"},{name:"info-deep",value:"#0034e3",role:"info deep"},{name:"accent-pink",value:"#ed1aa0",role:"accent pink"},{name:"accent-pink-soft",value:"#ffb0dd",role:"accent pink soft"},{name:"accent-purple-soft",value:"#beaffd",role:"accent purple soft"},{name:"accent-purple-pale",value:"#d6d1ff",role:"accent purple pale"},{name:"accent-teal",value:"#0a7281",role:"accent teal"},{name:"accent-pink-deep",value:"#4c012d",role:"accent pink deep"}],typography:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","15px","14px","96px","18px","12px","56px","13px","11px","24px","40px","64px","48px","32px"],fontWeights:["700","500","600"],lineHeights:["1.5","0.92","1","1.4","1.6","0.9","1.2","1.75","1.7","1.35"]},spacing:["2px","4px","5px","6px","8px","10px","12px","14px","16px","18px","20px","24px","28px","30px","32px","36px","40px","44px","48px","56px"],radii:["9999px","24px","14px","6px","3px"],shadows:["0 0 0 12px var(--soft-cloud)","0 20px 30px -10px rgba(0,0,0,0.18)","0 0 0 2px var(--canvas), 0 0 0 4px var(--ink)","inset 0 -1px 0 var(--hairline-soft)"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:0,fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,borderColor:"theme-primary",letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"italic",backgroundColor:null},content:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"italic"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:0,fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:800,fontStyle:"italic"},text:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",color:"theme-primary",borderRadius:4,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 12px var(--soft-cloud)"},header:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontStyle:"italic",letterSpacing:"0.02em"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontStyle:"italic",letterSpacing:"0.02em"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},helperText:{},text:{letterSpacing:"0.02em",fontStyle:"italic"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},infoText:{color:"color-gray-500"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"theme-primary"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"theme-secondary",color:"theme-primary",borderRadius:0},trigger:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:4},thead:{backgroundColor:"theme-secondary",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"0.02em",fontStyle:"italic"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"0.02em"}}},avatar:{views:{container:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",borderRadius:4},title:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},description:{color:"color-gray-500",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:0,views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:0},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"black",typeCase:"uppercase",typeStyle:"italic",letterSpacing:"0.02em",accentTreatment:"flat",signatureMotif:"▶",density:"tight",surfaceTone:"mono",cardRadius:4,pillRadius:0,badgeRadius:0,voice:"athletic-bold"}},notion:{metadata:{id:"notion",label:"Notion",sourcePath:"design.md/html/notion.html",sourceTitle:"Design System Inspiration of Notion",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"]},theme:{primary:"#5645d4",secondary:"#ff64c8",success:"#1aae39",warning:"#dd5b00",error:"#ff64c8",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#5645d4","primary-pressed":"#4534b3","primary-deep":"#3a2a99","on-primary":"#ffffff","brand-navy":"#0a1530","brand-navy-deep":"#070f24","link-blue":"#0075de","brand-pink":"#ff64c8","brand-orange":"#dd5b00","brand-purple":"#7b3ff2","brand-purple-800":"#391c57","brand-orange-deep":"#793400","brand-green":"#1aae39","brand-yellow":"#f5d75e","brand-teal":"#2a9d99","tint-peach":"#ffe8d4","tint-rose":"#fde0ec","tint-mint":"#d9f3e1","tint-lavender":"#e6e0f5","tint-sky":"#dcecfa","tint-yellow":"#fef7d6","tint-yellow-bold":"#f9e79f","tint-cream":"#f8f5e8",canvas:"#ffffff",surface:"#f6f5f4","surface-soft":"#fafaf9",hairline:"#e5e3df","hairline-soft":"#ede9e4","hairline-strong":"#c8c4be","hairline-dark":"rgba(255,255,255,0.16)","ink-deep":"#000000",ink:"#1a1a1a",charcoal:"#37352f",slate:"#5d5b54",steel:"#787671",stone:"#a4a097",muted:"#bbb8b1","on-dark":"#ffffff","on-dark-muted":"#a4a097"},colors:[{name:"primary",value:"#5645d4",role:"primary"},{name:"primary-pressed",value:"#4534b3",role:"primary pressed"},{name:"primary-deep",value:"#3a2a99",role:"primary deep"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"brand-navy",value:"#0a1530",role:"brand navy"},{name:"brand-navy-deep",value:"#070f24",role:"brand navy deep"},{name:"link-blue",value:"#0075de",role:"link blue"},{name:"brand-pink",value:"#ff64c8",role:"brand pink"},{name:"brand-orange",value:"#dd5b00",role:"brand orange"},{name:"brand-purple",value:"#7b3ff2",role:"brand purple"},{name:"brand-purple-800",value:"#391c57",role:"brand purple 800"},{name:"brand-orange-deep",value:"#793400",role:"brand orange deep"},{name:"brand-green",value:"#1aae39",role:"brand green"},{name:"brand-yellow",value:"#f5d75e",role:"brand yellow"},{name:"brand-teal",value:"#2a9d99",role:"brand teal"},{name:"tint-peach",value:"#ffe8d4",role:"tint peach"},{name:"tint-rose",value:"#fde0ec",role:"tint rose"},{name:"tint-mint",value:"#d9f3e1",role:"tint mint"},{name:"tint-lavender",value:"#e6e0f5",role:"tint lavender"},{name:"tint-sky",value:"#dcecfa",role:"tint sky"},{name:"tint-yellow",value:"#fef7d6",role:"tint yellow"},{name:"tint-yellow-bold",value:"#f9e79f",role:"tint yellow bold"},{name:"tint-cream",value:"#f8f5e8",role:"tint cream"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"surface",value:"#f6f5f4",role:"surface"},{name:"surface-soft",value:"#fafaf9",role:"surface soft"},{name:"hairline",value:"#e5e3df",role:"hairline"},{name:"hairline-soft",value:"#ede9e4",role:"hairline soft"},{name:"hairline-strong",value:"#c8c4be",role:"hairline strong"},{name:"hairline-dark",value:"rgba(255,255,255,0.16)",role:"hairline dark"},{name:"ink-deep",value:"#000000",role:"ink deep"},{name:"ink",value:"#1a1a1a",role:"ink"},{name:"charcoal",value:"#37352f",role:"charcoal"},{name:"slate",value:"#5d5b54",role:"slate"},{name:"steel",value:"#787671",role:"steel"},{name:"stone",value:"#a4a097",role:"stone"},{name:"muted",value:"#bbb8b1",role:"muted"},{name:"on-dark",value:"#ffffff",role:"on dark"},{name:"on-dark-muted",value:"#a4a097",role:"on dark muted"}],typography:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["14px","15px","12px","80px","18px","48px","16px","13px","22px","11px","56px","36px","10px","20px","28px"],fontWeights:["500","600","400","700"],lineHeights:["1.55","1","1.05","1.15","1.4","1.3","1.5","1.1","1.2","1.35"]},spacing:["2px","4px","5px","6px","8px","10px","11px","12px","14px","15px","16px","18px","20px","24px","31px","32px","40px","44px","48px","56px"],radii:["6px","8px","16px","50%","12px","9999px","4px","3px"],shadows:["rgba(15, 15, 15, 0.20) 0px 24px 48px -8px","rgba(15,15,15,0.04) 0px 1px 2px 0px","rgba(15,15,15,0.08) 0px 4px 12px 0px","rgba(15,15,15,0.20) 0px 24px 48px -8px","rgba(15,15,15,0.16) 0px 16px 48px -8px"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,borderColor:"theme-primary",letterSpacing:"0em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:4,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",letterSpacing:"0em",textTransform:"none",fontWeight:400,fontStyle:"normal"},text:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(15, 15, 15, 0.20) 0px 24px 48px -8px"},header:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontStyle:"normal",letterSpacing:"0em"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontStyle:"normal",letterSpacing:"0em"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"0em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"12px"},trigger:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:10},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"0em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"0em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:10},title:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"8px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"regular",typeCase:"normal",typeStyle:"normal",letterSpacing:"0em",accentTreatment:"flat",signatureMotif:"◇",density:"comfortable",surfaceTone:"paper",cardRadius:10,pillRadius:9999,badgeRadius:4,voice:"thoughtful-quiet"}},revolut:{metadata:{id:"revolut",label:"Revolut",sourcePath:"design.md/html/revolut.html",sourceTitle:"Design System Inspiration of Revolut",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"]},theme:{primary:"#1361F0",secondary:"#101D31",success:"#16a34a",warning:"#d97706",error:"#e61e49",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#494fdf","primary-bright":"#4f55f1","primary-deep":"#3a40c4","on-primary":"#ffffff",ink:"#191c1f",body:"#1f2226",charcoal:"#3a3d40",mute:"#505a63",ash:"#5c5e60",stone:"#8d969e",faint:"#c9c9cd","on-dark":"#ffffff","on-dark-mute":"rgba(255,255,255,0.72)","canvas-light":"#ffffff","canvas-dark":"#000000","surface-soft":"#f4f4f4","surface-card":"#ffffff","surface-deep":"#0a0a0a","surface-elevated":"#16181a","hairline-light":"#e2e2e7","hairline-dark":"rgba(255,255,255,0.12)","hairline-strong":"#191c1f","divider-soft":"rgba(255,255,255,0.06)",teal:"#00a87e","light-blue":"#007bc2","blue-link":"#376cd5","light-green":"#428619","green-text":"#006400",yellow:"#b09000",warning:"#ec7e00",pink:"#e61e49",danger:"#e23b4a","deep-red":"#8b0000",brown:"#936d62","font-display":"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif","font-ui":"'Inter', system-ui, sans-serif"},colors:[{name:"primary",value:"#1361F0",role:"primary"},{name:"primary-bright",value:"#4f55f1",role:"primary bright"},{name:"primary-deep",value:"#3a40c4",role:"primary deep"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"ink",value:"#191c1f",role:"ink"},{name:"body",value:"#1f2226",role:"body"},{name:"charcoal",value:"#3a3d40",role:"charcoal"},{name:"mute",value:"#505a63",role:"mute"},{name:"ash",value:"#5c5e60",role:"ash"},{name:"stone",value:"#8d969e",role:"stone"},{name:"faint",value:"#c9c9cd",role:"faint"},{name:"on-dark",value:"#ffffff",role:"on dark"},{name:"on-dark-mute",value:"rgba(255,255,255,0.72)",role:"on dark mute"},{name:"canvas-light",value:"#ffffff",role:"canvas light"},{name:"canvas-dark",value:"#000000",role:"canvas dark"},{name:"surface-soft",value:"#f4f4f4",role:"surface soft"},{name:"surface-card",value:"#ffffff",role:"surface card"},{name:"surface-deep",value:"#0a0a0a",role:"surface deep"},{name:"surface-elevated",value:"#16181a",role:"surface elevated"},{name:"hairline-light",value:"#e2e2e7",role:"hairline light"},{name:"hairline-dark",value:"rgba(255,255,255,0.12)",role:"hairline dark"},{name:"hairline-strong",value:"#191c1f",role:"hairline strong"},{name:"divider-soft",value:"rgba(255,255,255,0.06)",role:"divider soft"},{name:"teal",value:"#00a87e",role:"teal"},{name:"light-blue",value:"#007bc2",role:"light blue"},{name:"blue-link",value:"#376cd5",role:"blue link"},{name:"light-green",value:"#428619",role:"light green"},{name:"green-text",value:"#006400",role:"green text"},{name:"yellow",value:"#b09000",role:"yellow"},{name:"warning",value:"#d97706",role:"warning"},{name:"pink",value:"#e61e49",role:"pink"},{name:"danger",value:"#e23b4a",role:"danger"},{name:"deep-red",value:"#8b0000",role:"deep red"},{name:"brown",value:"#936d62",role:"brown"}],typography:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","14px","18px","12px","96px","56px","24px","13px","32px","11px","64px","44px"],fontWeights:["600","500","700"],lineHeights:["1.5","1.0","1.56","1.4","1.33","1.19","1.6","1.2","1.35"]},spacing:["4px","6px","8px","10px","12px","13px","14px","16px","20px","24px","27px","28px","32px","36px","40px","48px","56px","64px","80px","88px"],radii:["9999px","20px","28px","36px","24px","12px","3px"],shadows:[]},components:{button:{variant:"filled",size:"md",shape:"pill",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:9999,fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",letterSpacing:"-0.02em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:20,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.08)"},header:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.02em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:9999},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:9999}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"24px"},trigger:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:20},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.02em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.02em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:20},title:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"24px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"24px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"pill",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.02em",accentTreatment:"gradient",signatureMotif:"★",density:"comfortable",surfaceTone:"glass",cardRadius:20,pillRadius:9999,badgeRadius:9999,voice:"bold-fintech"}},shopify:{metadata:{id:"shopify",label:"Shopify",sourcePath:"design.md/html/shopify.html",sourceTitle:"Design System Inspired by Shopify",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"]},theme:{primary:"#008060",secondary:"#202223",success:"#008060",warning:"#FFC453",error:"#D72C0D",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#FFFFFF"},tokens:{rawCssVars:{white:"#FFFFFF",black:"#000000","neon-green":"#36F4A4",aloe:"#C1FBD4",pistachio:"#D4F9E0","deep-teal":"#02090A","dark-forest":"#061A1C",forest:"#102620","card-border":"#1E2C31","shade-30":"#D4D4D8",muted:"#A1A1AA","shade-50":"#71717A","shade-60":"#52525B","shade-70":"#3F3F46","light-border":"#E4E4E7","link-muted":"#9797A2","shadow-card":"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},colors:[{name:"white",value:"#FFFFFF",role:"white"},{name:"black",value:"#000000",role:"black"},{name:"neon-green",value:"#36F4A4",role:"neon green"},{name:"aloe",value:"#C1FBD4",role:"aloe"},{name:"pistachio",value:"#D4F9E0",role:"pistachio"},{name:"deep-teal",value:"#02090A",role:"deep teal"},{name:"dark-forest",value:"#061A1C",role:"dark forest"},{name:"forest",value:"#102620",role:"forest"},{name:"card-border",value:"#1E2C31",role:"card border"},{name:"shade-30",value:"#D4D4D8",role:"shade 30"},{name:"muted",value:"#A1A1AA",role:"muted"},{name:"shade-50",value:"#71717A",role:"shade 50"},{name:"shade-60",value:"#52525B",role:"shade 60"},{name:"shade-70",value:"#3F3F46",role:"shade 70"},{name:"light-border",value:"#E4E4E7",role:"light border"},{name:"link-muted",value:"#9797A2",role:"link muted"},{name:"shadow-card",value:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset",role:"shadow card"}],typography:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["20px","16px","14px","80px","48px","18px","12px","13px","11px","55px","32px","28px","24px","36px"],fontWeights:["400","600","500","330","360","550","700"],lineHeights:["1.5","0.96","1.14","1.56","1.16","1.28","1.4","1.49","1.2","1.35"]},spacing:["4px","8px","10px","12px","14px","16px","20px","24px","28px","32px","40px","48px","64px","72px","80px","100px"],radii:["9999px","8px","4px","12px","2px","3px"],shadows:["rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset","0 0 0 2px var(--neon-green)","var(--shadow-card)","rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"color-aloe",color:"color-white",borderColor:"color-aloe",borderRadius:6,fontFamily:"'Inter', Helvetica, Arial, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},header:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-muted",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-muted"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-muted"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-muted"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-muted",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Inter', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-white",color:"color-black",borderRadius:"24px"},trigger:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},content:{color:"color-muted"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-white",color:"color-black"},th:{color:"color-muted",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-muted",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-muted",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"16px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-muted",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"24px"},item:{color:"color-muted"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-muted"},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},description:{color:"color-muted"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"commerce-friendly"}},spacex:{metadata:{id:"spacex",label:"SpaceX",sourcePath:"design.md/html/spaceX.html",sourceTitle:"Design System Preview: SpaceX (Light)",defaultAppearance:"dark",googleFontLinks:["https://fonts.googleapis.com/css2?family=Share+Tech&display=swap"]},theme:{primary:"color-black",secondary:"#a3a3a3",success:"#4ade80",warning:"#fbbf24",error:"#ef4444",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{black:"#000000",spectral:"#f0f0fa","ghost-bg":"rgba(240,240,250,0.1)","ghost-border":"rgba(240,240,250,0.35)",overlay:"rgba(0,0,0,0.5)",font:"'Share Tech', Arial, Verdana, sans-serif"},colors:[{name:"black",value:"#000000",role:"black"},{name:"spectral",value:"#f0f0fa",role:"spectral"},{name:"ghost-bg",value:"rgba(240,240,250,0.1)",role:"ghost bg"},{name:"ghost-border",value:"rgba(240,240,250,0.35)",role:"ghost border"},{name:"overlay",value:"rgba(0,0,0,0.5)",role:"overlay"}],typography:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","13px","12px","48px","10px","32px","11px","9px","14px"],fontWeights:["700","400","600"],lineHeights:["1.50","1.00","1.70","1.2","1.35","1.4"]},spacing:["8px","10px","12px","14px","16px","18px","20px","24px","28px","32px","48px","60px","64px","72px","80px","120px"],radii:["32px","4px","2px","3px"],shadows:[]},components:{button:{variant:"ghost",size:"md",shape:"square",color:"theme-primary",textColor:"theme-primary",views:{container:{borderRadius:0,fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,borderColor:"color-gray-200",backgroundColor:"color-gray-50",letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal"},content:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",color:"color-white",borderColor:"color-gray-50",borderRadius:0,fontFamily:"'Share Tech', Arial, Verdana, sans-serif",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:800,fontStyle:"normal"},text:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.08)"},header:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-200",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontStyle:"normal",letterSpacing:"0.06em"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontStyle:"normal",letterSpacing:"0.06em"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},helperText:{},text:{letterSpacing:"0.06em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"color-gray-200"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"color-gray-200"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-200"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-200",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},activeText:{color:"theme-primary"},content:{color:"theme-primary"},container:{borderRadius:"32px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"theme-primary",borderRadius:0},trigger:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},content:{color:"color-gray-200"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:2},thead:{backgroundColor:"color-gray-50",color:"theme-primary"},th:{color:"color-gray-200",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"0.06em",fontStyle:"normal"},caption:{color:"color-gray-200",fontStyle:"italic",letterSpacing:"0.06em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:2},title:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},description:{color:"color-gray-200",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:0,views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-200",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:0},item:{color:"color-gray-200"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},eyebrow:{color:"color-gray-200"},title:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},description:{color:"color-gray-200"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"black",typeCase:"uppercase",typeStyle:"normal",letterSpacing:"0.06em",accentTreatment:"glow",signatureMotif:"⚡",density:"tight",surfaceTone:"mono",cardRadius:2,pillRadius:0,badgeRadius:0,voice:"technical-mission"}},spotify:{metadata:{id:"spotify",label:"Spotify",sourcePath:"design.md/html/spotify.html",sourceTitle:"Design System Inspired by Shopify",defaultAppearance:"dark",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"]},theme:{primary:"#1DB954",secondary:"#C1FBD4",success:"#1DB954",warning:"#D4F9E0",error:"#D4D4D8",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#000000"},tokens:{rawCssVars:{white:"#FFFFFF",black:"#000000","spotify-green":"#1DB954",aloe:"#C1FBD4",pistachio:"#D4F9E0","deep-teal":"#02090A","dark-forest":"#061A1C",forest:"#102620","card-border":"#1E2C31","shade-30":"#D4D4D8",muted:"#A1A1AA","shade-50":"#71717A","shade-60":"#52525B","shade-70":"#3F3F46","light-border":"#E4E4E7","link-muted":"#9797A2","shadow-card":"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},colors:[{name:"white",value:"#FFFFFF",role:"white"},{name:"black",value:"#000000",role:"black"},{name:"spotify-green",value:"#1DB954",role:"neon green"},{name:"aloe",value:"#C1FBD4",role:"aloe"},{name:"pistachio",value:"#D4F9E0",role:"pistachio"},{name:"deep-teal",value:"#02090A",role:"deep teal"},{name:"dark-forest",value:"#061A1C",role:"dark forest"},{name:"forest",value:"#102620",role:"forest"},{name:"card-border",value:"#1E2C31",role:"card border"},{name:"shade-30",value:"#D4D4D8",role:"shade 30"},{name:"muted",value:"#A1A1AA",role:"muted"},{name:"shade-50",value:"#71717A",role:"shade 50"},{name:"shade-60",value:"#52525B",role:"shade 60"},{name:"shade-70",value:"#3F3F46",role:"shade 70"},{name:"light-border",value:"#E4E4E7",role:"light border"},{name:"link-muted",value:"#9797A2",role:"link muted"},{name:"shadow-card",value:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset",role:"shadow card"}],typography:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["20px","16px","14px","80px","48px","18px","12px","13px","11px","55px","32px","28px","24px","36px"],fontWeights:["400","600","500","330","360","550","700"],lineHeights:["1.5","0.96","1.14","1.56","1.16","1.28","1.4","1.49","1.2","1.35"]},spacing:["4px","8px","10px","12px","14px","16px","20px","24px","28px","32px","40px","48px","64px","72px","80px","100px"],radii:["9999px","8px","4px","12px","2px","3px"],shadows:["rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset","0 0 0 2px var(--neon-green)","var(--shadow-card)","rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"]},components:{button:{variant:"filled",size:"md",shape:"pill",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,borderColor:"theme-primary",letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:9999,fontFamily:"'Inter', Helvetica, Arial, sans-serif",letterSpacing:"-0.02em",textTransform:"none",fontWeight:800,fontStyle:"normal"},text:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},header:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.02em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:9999},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:9999}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Inter', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"24px"},trigger:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:8},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.02em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.02em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:8},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"16px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"24px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"pill",typeWeight:"black",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.02em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"matte",cardRadius:8,pillRadius:9999,badgeRadius:9999,voice:"rhythmic-vibrant"}},stripe:{metadata:{id:"stripe",label:"Stripe",sourcePath:"design.md/html/stripe.html",sourceTitle:"Design System Preview: Stripe (Light)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;700&display=swap"]},theme:{primary:"#635BFF",secondary:"#f96bee",success:"#15be53",warning:"#9b6829",error:"#ea2261",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{purple:"#533afd","purple-hover":"#4434d4","purple-deep":"#2e2b8c","purple-light":"#b9b9f9","purple-mid":"#665efd",navy:"#061b31","dark-navy":"#0d253d","brand-dark":"#1c1e54",white:"#ffffff",ruby:"#ea2261",magenta:"#f96bee","magenta-light":"#ffd7ef",success:"#15be53","success-text":"#108c3d",lemon:"#9b6829",slate:"#64748d","dark-slate":"#273951",border:"#e5edf5","border-purple":"#b9b9f9","border-soft":"#d6d9fc","shadow-blue":"rgba(50,50,93,0.25)","shadow-dark-blue":"rgba(3,3,39,0.25)","shadow-black":"rgba(0,0,0,0.1)","shadow-ambient":"rgba(23,23,23,0.08)","shadow-soft":"rgba(23,23,23,0.06)","shadow-card":"rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px","shadow-ambient-card":"rgba(23,23,23,0.08) 0px 15px 35px 0px","shadow-subtle":"rgba(23,23,23,0.06) 0px 3px 6px 0px","font-primary":"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif","font-mono":"'Source Code Pro', SFMono-Regular, ui-monospace, Menlo, monospace"},colors:[{name:"purple",value:"#533afd",role:"purple"},{name:"purple-hover",value:"#4434d4",role:"purple hover"},{name:"purple-deep",value:"#2e2b8c",role:"purple deep"},{name:"purple-light",value:"#b9b9f9",role:"purple light"},{name:"purple-mid",value:"#665efd",role:"purple mid"},{name:"navy",value:"#061b31",role:"navy"},{name:"dark-navy",value:"#0d253d",role:"dark navy"},{name:"brand-dark",value:"#1c1e54",role:"brand dark"},{name:"white",value:"#ffffff",role:"white"},{name:"ruby",value:"#ea2261",role:"ruby"},{name:"magenta",value:"#f96bee",role:"magenta"},{name:"magenta-light",value:"#ffd7ef",role:"magenta light"},{name:"success",value:"#15be53",role:"success"},{name:"success-text",value:"#108c3d",role:"success text"},{name:"lemon",value:"#9b6829",role:"lemon"},{name:"slate",value:"#64748d",role:"slate"},{name:"dark-slate",value:"#273951",role:"dark slate"},{name:"border",value:"#e5edf5",role:"border"},{name:"border-purple",value:"#b9b9f9",role:"border purple"},{name:"border-soft",value:"#d6d9fc",role:"border soft"},{name:"shadow-blue",value:"rgba(50,50,93,0.25)",role:"shadow blue"},{name:"shadow-dark-blue",value:"rgba(3,3,39,0.25)",role:"shadow dark blue"},{name:"shadow-black",value:"rgba(0,0,0,0.1)",role:"shadow black"},{name:"shadow-ambient",value:"rgba(23,23,23,0.08)",role:"shadow ambient"},{name:"shadow-soft",value:"rgba(23,23,23,0.06)",role:"shadow soft"},{name:"shadow-card",value:"rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px",role:"shadow card"},{name:"shadow-ambient-card",value:"rgba(23,23,23,0.08) 0px 15px 35px 0px",role:"shadow ambient card"},{name:"shadow-subtle",value:"rgba(23,23,23,0.06) 0px 3px 6px 0px",role:"shadow subtle"}],typography:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",monoFamily:"'Source Code Pro', SFMono-Regular, ui-monospace, Menlo, monospace",fontSizes:["16px","14px","48px","18px","12px","32px","13px","11px","10px","22px"],fontWeights:["100 900","300","400","500","700","600"],lineHeights:["1.40","1.15","1.10","1.50","1.2","1.35","1.4"]},spacing:["1px","6px","8px","10px","12px","14px","16px","20px","24px","28px","32px","48px","64px","72px","80px","96px"],radii:["0 0 6px 6px","4px","6px","2px","3px"],shadows:["rgba(50,50,93,0.25)","rgba(3,3,39,0.25)","rgba(0,0,0,0.1)","rgba(23,23,23,0.08)","rgba(23,23,23,0.06)","rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px","rgba(23,23,23,0.08) 0px 15px 35px 0px","rgba(23,23,23,0.06) 0px 3px 6px 0px","var(--shadow-subtle)","var(--shadow-card)","0 0 0 1px theme-primary","0 0 0 1px var(--ruby)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:6,fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",letterSpacing:"-0.022em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(23,23,23,0.06) 0px 3px 6px 0px"},header:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px theme-primary"},field:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px theme-primary"},field:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px theme-primary"},field:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.022em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"4px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-white",color:"color-black",borderRadius:"6px"},trigger:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-white",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'Source Code Pro', SFMono-Regular, ui-monospace, Menlo, monospace",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.022em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.022em"}}},avatar:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"6px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"6px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.022em",accentTreatment:"gradient",signatureMotif:"↗",density:"comfortable",surfaceTone:"glass",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"refined-fintech"}},tesla:{metadata:{id:"tesla",label:"Tesla",sourcePath:"design.md/html/tesla.html",sourceTitle:"Design System Inspired by Tesla",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap"]},theme:{primary:"#3E6AE1",secondary:"#171A20",success:"#3E6AE1",warning:"#5C5E62",error:"#171A20",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#FFFFFF"},tokens:{rawCssVars:{"electric-blue":"#3E6AE1","pure-white":"#FFFFFF","carbon-dark":"#171A20",graphite:"#393C41",pewter:"#5C5E62","silver-fog":"#8E8E8E","cloud-gray":"#EEEEEE","pale-silver":"#D0D1D2","light-ash":"#F4F4F4","frosted-glass":"rgba(255,255,255,0.75)",overlay:"rgba(128,128,128,0.65)","subtle-shadow":"rgba(0,0,0,0.05)","font-display":"'Inter', -apple-system, Arial, sans-serif","font-text":"'Inter', -apple-system, Arial, sans-serif"},colors:[{name:"electric-blue",value:"#3E6AE1",role:"electric blue"},{name:"pure-white",value:"#FFFFFF",role:"pure white"},{name:"carbon-dark",value:"#171A20",role:"carbon dark"},{name:"graphite",value:"#393C41",role:"graphite"},{name:"pewter",value:"#5C5E62",role:"pewter"},{name:"silver-fog",value:"#8E8E8E",role:"silver fog"},{name:"cloud-gray",value:"#EEEEEE",role:"cloud gray"},{name:"pale-silver",value:"#D0D1D2",role:"pale silver"},{name:"light-ash",value:"#F4F4F4",role:"light ash"},{name:"frosted-glass",value:"rgba(255,255,255,0.75)",role:"frosted glass"},{name:"overlay",value:"rgba(128,128,128,0.65)",role:"overlay"},{name:"subtle-shadow",value:"rgba(0,0,0,0.05)",role:"subtle shadow"}],typography:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["14px","40px","28px","13px","12px","11px","17px","16px"],fontWeights:["400","500","700","600"],lineHeights:["1.43","48px","20px","1.2","1.3","36px","1.35","1.4"]},spacing:["4px","6px","8px","10px","12px","14px","16px","20px","24px","32px","40px","48px","56px","60px","64px","80px","100px"],radii:["4px","4px 4px 0 0","0 0 4px 4px","12px","3px"],shadows:["rgba(0,0,0,0.05)","0 1px 0 var(--pewter)"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:0,fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,borderColor:"theme-primary",letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:0,fontFamily:"'Inter', -apple-system, Arial, sans-serif",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:300,fontStyle:"normal"},text:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:0,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.05)"},header:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"theme-warning",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontStyle:"normal",letterSpacing:"0.02em"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontStyle:"normal",letterSpacing:"0.02em"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},helperText:{},text:{letterSpacing:"0.02em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"theme-warning"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"theme-warning"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"theme-warning"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"theme-warning",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', -apple-system, Arial, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"4px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:0},trigger:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},content:{color:"theme-warning"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:0},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"theme-warning",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"0.02em",fontStyle:"normal"},caption:{color:"theme-warning",fontStyle:"italic",letterSpacing:"0.02em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:0},title:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},description:{color:"theme-warning",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"4px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"theme-warning",fontFamily:"'Inter', -apple-system, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:0},item:{color:"theme-warning"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},eyebrow:{color:"theme-warning"},title:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},description:{color:"theme-warning"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"sharp",typeWeight:"light",typeCase:"uppercase",typeStyle:"normal",letterSpacing:"0.02em",accentTreatment:"flat",signatureMotif:"▲",density:"spacious",surfaceTone:"mono",cardRadius:0,pillRadius:0,badgeRadius:0,voice:"futurist-clean"}},uber:{metadata:{id:"uber",label:"Uber",sourcePath:"design.md/html/uber.html",sourceTitle:"Design System Preview: Uber (Light)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700&display=swap"]},theme:{primary:"color-black",secondary:"#efefef",success:"#06C167",warning:"#e2e2e2",error:"#000000",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{"color-black":"#000000","color-white":"#ffffff","color-hover-gray":"#e2e2e2","color-hover-light":"#f3f3f3","color-chip-gray":"#efefef","color-body-gray":"#4b4b4b","color-muted-gray":"#afafaf","shadow-card":"rgba(0, 0, 0, 0.12) 0px 4px 16px 0px","shadow-medium":"rgba(0, 0, 0, 0.16) 0px 4px 16px 0px","shadow-float":"rgba(0, 0, 0, 0.16) 0px 2px 8px 0px","shadow-press":"rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset","font-display":"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif","font-body":"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif","bg-page":"#ffffff","bg-card":"#ffffff","bg-nav":"rgba(255,255,255,0.92)","text-primary":"#000000","text-secondary":"#4b4b4b","text-tertiary":"#afafaf","border-color":"#efefef","section-label-color":"#000000"},colors:[{name:"color-black",value:"#000000",role:"color black"},{name:"color-white",value:"#ffffff",role:"color white"},{name:"color-hover-gray",value:"#e2e2e2",role:"color hover gray"},{name:"color-hover-light",value:"#f3f3f3",role:"color hover light"},{name:"color-chip-gray",value:"#efefef",role:"color chip gray"},{name:"color-body-gray",value:"#4b4b4b",role:"color body gray"},{name:"color-muted-gray",value:"#afafaf",role:"color muted gray"},{name:"shadow-card",value:"rgba(0, 0, 0, 0.12) 0px 4px 16px 0px",role:"shadow card"},{name:"shadow-medium",value:"rgba(0, 0, 0, 0.16) 0px 4px 16px 0px",role:"shadow medium"},{name:"shadow-float",value:"rgba(0, 0, 0, 0.16) 0px 2px 8px 0px",role:"shadow float"},{name:"shadow-press",value:"rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset",role:"shadow press"},{name:"bg-page",value:"#ffffff",role:"bg page"},{name:"bg-card",value:"#ffffff",role:"bg card"},{name:"bg-nav",value:"rgba(255,255,255,0.92)",role:"bg nav"},{name:"text-primary",value:"#000000",role:"text primary"},{name:"text-secondary",value:"#4b4b4b",role:"text secondary"},{name:"text-tertiary",value:"#afafaf",role:"text tertiary"},{name:"border-color",value:"#efefef",role:"border color"},{name:"section-label-color",value:"#000000",role:"section label color"}],typography:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","18px","14px","64px","20px","12px","36px","13px","24px","28px"],fontWeights:["700","500","400","600"],lineHeights:["1.50","1.10","1.22","1.33","2.0","1.2","1.35","1.4"]},spacing:["8px","10px","12px","14px","16px","20px","24px","28px","32px","36px","40px","50px","60px","64px","80px","100px","120px","140px"],radii:["8px","999px","12px","16px","4px","3px"],shadows:["rgba(0, 0, 0, 0.12) 0px 4px 16px 0px","rgba(0, 0, 0, 0.16) 0px 4px 16px 0px","rgba(0, 0, 0, 0.16) 0px 2px 8px 0px","rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset","var(--shadow-card)","var(--shadow-float)","var(--shadow-medium)","0 0 0 1px color-black","rgba(0,0,0,0.12) 0px 4px 16px 0px","rgba(0,0,0,0.16) 0px 4px 16px 0px","rgba(0,0,0,0.16) 0px 2px 8px 0px","rgba(0,0,0,0.08) 0px 0px 0px 999px inset"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:0,fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:0,fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:4,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.12) 0px 4px 16px 0px"},header:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"theme-warning"},content:{color:"color-gray-500",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},footer:{borderColor:"theme-warning"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px color-black"},field:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px color-black"},field:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px color-black"},field:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"theme-warning",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"theme-warning",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"theme-warning"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"theme-warning"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"theme-warning"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"theme-primary"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"theme-warning",backgroundColor:"color-white",color:"theme-primary",borderRadius:0},trigger:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"theme-warning",borderRadius:4},thead:{backgroundColor:"color-white",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"theme-warning",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"theme-warning"},td:{color:"theme-primary",borderColor:"theme-warning",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",borderRadius:4},title:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"theme-warning",radius:"8px",views:{container:{backgroundColor:"theme-warning",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"theme-warning",views:{container:{borderColor:"theme-warning"},label:{color:"color-gray-500",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:0},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"theme-warning"},surface:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"▶",density:"tight",surfaceTone:"mono",cardRadius:4,pillRadius:0,badgeRadius:0,voice:"motion-utility"}},vercel:{metadata:{id:"vercel",label:"Vercel",sourcePath:"design.md/html/vercel.html",sourceTitle:"Design System Preview: Vercel (Light)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap"]},theme:{primary:"color-black",secondary:"#0072f5",success:"#0a72ef",warning:"#de1d8d",error:"#ff5b4f",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{black:"#171717",white:"#ffffff","gray-50":"#fafafa","gray-100":"#ebebeb","gray-400":"#808080","gray-500":"#666666","gray-600":"#4d4d4d","link-blue":"#0072f5","focus-blue":"hsl(212,100%,48%)","ship-red":"#ff5b4f","preview-pink":"#de1d8d","develop-blue":"#0a72ef","console-blue":"#0070f3","console-purple":"#7928ca","console-pink":"#eb367f","badge-bg":"#ebf5ff","badge-text":"#0068d6","shadow-ring":"rgba(0,0,0,0.08) 0px 0px 0px 1px","shadow-ring-light":"rgb(235,235,235) 0px 0px 0px 1px","shadow-subtle":"rgba(0,0,0,0.04) 0px 2px 2px 0px","shadow-card":"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgb(250,250,250) 0px 0px 0px 1px","shadow-card-full":"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, rgb(250,250,250) 0px 0px 0px 1px","font-sans":"'Geist', system-ui, -apple-system, Arial, sans-serif","font-mono":"'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, monospace"},colors:[{name:"black",value:"#171717",role:"black"},{name:"white",value:"#ffffff",role:"white"},{name:"gray-50",value:"#fafafa",role:"gray 50"},{name:"gray-100",value:"#ebebeb",role:"gray 100"},{name:"gray-400",value:"#808080",role:"gray 400"},{name:"gray-500",value:"#666666",role:"gray 500"},{name:"gray-600",value:"#4d4d4d",role:"gray 600"},{name:"link-blue",value:"#0072f5",role:"link blue"},{name:"focus-blue",value:"hsl(212,100%,48%)",role:"focus blue"},{name:"ship-red",value:"#ff5b4f",role:"ship red"},{name:"preview-pink",value:"#de1d8d",role:"preview pink"},{name:"develop-blue",value:"#0a72ef",role:"develop blue"},{name:"console-blue",value:"#0070f3",role:"console blue"},{name:"console-purple",value:"#7928ca",role:"console purple"},{name:"console-pink",value:"#eb367f",role:"console pink"},{name:"badge-bg",value:"#ebf5ff",role:"badge bg"},{name:"badge-text",value:"#0068d6",role:"badge text"},{name:"shadow-ring",value:"rgba(0,0,0,0.08) 0px 0px 0px 1px",role:"shadow ring"},{name:"shadow-ring-light",value:"rgb(235,235,235) 0px 0px 0px 1px",role:"shadow ring light"},{name:"shadow-subtle",value:"rgba(0,0,0,0.04) 0px 2px 2px 0px",role:"shadow subtle"},{name:"shadow-card",value:"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgb(250,250,250) 0px 0px 0px 1px",role:"shadow card"},{name:"shadow-card-full",value:"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, rgb(250,250,250) 0px 0px 0px 1px",role:"shadow card full"}],typography:{fontFamily:"var(--font-sans)",monoFamily:"'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, monospace",fontSizes:["16px","14px","48px","20px","12px","32px","13px","11px","10px","36px"],fontWeights:["400","600","500","700"],lineHeights:["1.50","1.00","1.80","1.25","1.2","1.35","1.4"]},spacing:["2px","4px","8px","10px","12px","14px","16px","20px","24px","28px","32px","48px","64px","72px","80px","96px"],radii:["6px","8px","9999px","3px"],shadows:["rgba(0,0,0,0.08) 0px 0px 0px 1px","rgb(235,235,235) 0px 0px 0px 1px","rgba(0,0,0,0.04) 0px 2px 2px 0px","rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgb(250,250,250) 0px 0px 0px 1px","rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, rgb(250,250,250) 0px 0px 0px 1px","var(--shadow-ring)","var(--shadow-ring-light)","var(--shadow-card)","var(--shadow-card-full)","0 0 0 2px var(--focus-blue)","0 0 0 2px var(--ship-red)"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:4,fontFamily:"var(--font-sans)",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:4,fontFamily:"var(--font-sans)",letterSpacing:"-0.04em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"var(--font-sans)",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:4,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},header:{color:"theme-primary",fontFamily:"var(--font-sans)",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"var(--font-sans)"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},field:{color:"theme-primary",fontFamily:"var(--font-sans)",fontStyle:"normal",letterSpacing:"-0.04em"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},field:{color:"theme-primary",fontFamily:"var(--font-sans)",fontStyle:"normal",letterSpacing:"-0.04em"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},field:{color:"theme-primary",fontFamily:"var(--font-sans)"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.04em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"var(--font-sans)"},activeText:{color:"theme-primary"},content:{color:"theme-primary"},container:{borderRadius:"6px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"theme-primary",borderRadius:"6px"},trigger:{color:"theme-primary",fontFamily:"var(--font-sans)"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:4},thead:{backgroundColor:"color-gray-50",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, monospace",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"-0.04em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.04em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"var(--font-sans)"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:4},title:{color:"theme-primary",fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"var(--font-sans)"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"theme-primary",fontFamily:"var(--font-sans)"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"6px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"var(--font-sans)"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"6px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"var(--font-sans)"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"var(--font-sans)"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"var(--font-sans)"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.04em",accentTreatment:"flat",signatureMotif:"▲",density:"comfortable",surfaceTone:"mono",cardRadius:4,pillRadius:4,badgeRadius:4,voice:"deploy-geometric"}}},Pc=Object.values(nt),Mn=jc,Uo=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.prototype.toString.call(e)==="[object Object]",at=e=>e,Ne=(...e)=>{const o={};return e.forEach(t=>{Uo(t)&&Object.entries(t).forEach(([n,a])=>{if(a!=null){if(Uo(a)&&Uo(o[n])){o[n]=Ne(o[n],a);return}o[n]=a}})}),o},Wn=e=>{if(Array.isArray(e)||!Uo(e))return e;const o={};for(const[t,n]of Object.entries(e))n!==null&&(o[t]=Uo(n)?Wn(n):n);return o},lt=(e,o)=>{if(!o)return{};const t=o.components[e]||{};return at(Wn(t))},Hn=(e,o,t)=>{const{config:n,...a}=o,i=lt(e,t),c=Ne(i,n||{});return at(Ne(c,a))},jn=h.createContext({isEnabled:!1}),it=({children:e,config:o,configId:t,mode:n})=>{const a=o||(t?nt[t]:null)||Mn,{themeMode:i}=l.useTheme(),c=n??i??a.metadata.defaultAppearance,s=h.useMemo(()=>({config:a,configId:a.metadata.id,isEnabled:!0}),[a]);return r.jsx(jn.Provider,{value:s,children:r.jsx(l.ThemeProvider,{theme:a.theme,mode:c,transparentWrapper:!0,children:r.jsx("div",{"data-design-system":a.metadata.id,"data-appearance":c,style:{display:"contents"},children:e})})})},ur=()=>h.useContext(jn),wo=e=>{const{config:o}=ur();return lt(e,o)},pe=(e,o)=>{const{config:t}=ur();return Hn(e,o,t)},Pn=h.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),Ac=({children:e,value:o})=>r.jsx(Pn.Provider,{value:o,children:e}),An=()=>{const e=h.useContext(Pn);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},Vc=({value:e,children:o,isDisabled:t=!1,views:n,...a})=>{var p;const{isItemExpanded:i,baseId:c}=An(),s=wo("accordion"),d=Ne({item:(p=s.views)==null?void 0:p.container},n),g=i(e),f=`${c}-trigger-${e}`,m=`${c}-content-${e}`;return r.jsx(l.View,{borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",overflow:"hidden",opacity:t?.5:1,pointerEvents:t?"none":"auto","data-state":g?"open":"closed","data-disabled":t?"":void 0,...d==null?void 0:d.item,...a,children:h.Children.map(o,u=>h.isValidElement(u)?h.cloneElement(u,{...u.props,value:e,isExpanded:g,isDisabled:t,triggerId:f,contentId:m}):u)})},Ec=({children:e,value:o,isExpanded:t,isDisabled:n,triggerId:a,contentId:i,views:c,asChild:s=!1,...d})=>{var y;const{toggleItem:g}=An(),f=wo("accordion"),m=Ne({container:(y=f.views)==null?void 0:y.trigger},c),u={id:a,"aria-expanded":t,"aria-controls":i,"aria-disabled":n,"data-state":t?"open":"closed","data-disabled":n?"":void 0,onClick:()=>{o&&!n&&g(o)},padding:16,cursor:n?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",width:"100%",style:{backgroundColor:"transparent"},...m==null?void 0:m.container,...d};if(s&&h.isValidElement(e)){const k=h.Children.only(e);return h.cloneElement(k,{...u,...k.props})}return r.jsxs(l.Horizontal,{...u,children:[e,r.jsx(l.View,{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:t?"rotate(180deg)":"rotate(0deg)",...m==null?void 0:m.icon,children:r.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"})})})]})},Dc=({children:e,isExpanded:o,isDisabled:t,triggerId:n,contentId:a,views:i,...c})=>{var w;const s=wo("accordion"),d=Ne({container:(w=s.views)==null?void 0:w.content},i),g=260,f=h.useRef(null),m=h.useRef(null),[p,u]=h.useState(!!o),[y,k]=h.useState(o?"none":"0px"),[x,C]=h.useState(o?1:0);return h.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]),h.useEffect(()=>{var S;if(m.current&&(clearTimeout(m.current),m.current=null),o){u(!0),requestAnimationFrame(()=>{var T;const b=((T=f.current)==null?void 0:T.scrollHeight)??0;k(`${b}px`),C(1)});return}const v=((S=f.current)==null?void 0:S.scrollHeight)??0;k(`${v}px`),C(1),requestAnimationFrame(()=>{k("0px"),C(0)}),m.current=setTimeout(()=>{u(!1)},g)},[o,e]),h.useEffect(()=>{var S;if(!o||!p)return;const v=((S=f.current)==null?void 0:S.scrollHeight)??0;k(`${v}px`)},[e,o,p]),p?r.jsx(l.View,{id:a,role:"region","aria-labelledby":n,overflow:"hidden",maxHeight:y,opacity:x,transition:`max-height ${g}ms cubic-bezier(0.22, 1, 0.36, 1), opacity ${g}ms ease`,"data-state":o?"open":"closed","data-disabled":t?"":void 0,style:{backgroundColor:"transparent"},...d==null?void 0:d.container,...c,children:r.jsx(l.View,{ref:f,padding:16,children:e})}):null},$c=({children:e,shape:o="rounded",variant:t="default",views:n,baseId:a,type:i,collapsible:c,themeMode:s,...d})=>r.jsx(l.Vertical,{width:"100%","data-orientation":"vertical",...Wc[o],...Hc[t],...n==null?void 0:n.container,...d,children:e}),$e=e=>{const o=pe("accordion",e),{children:t,type:n="single",value:a,defaultValue:i,onValueChange:c,collapsible:s=!1,shape:d="rounded",variant:g="default",views:f,...m}=o,p=Array.isArray(i)?i:i?[i]:void 0,u=Mc({type:n,value:a,defaultValue:i??p,onValueChange:c,collapsible:s});return r.jsx(Ac,{value:{expandedItems:u.expandedItems,toggleItem:u.toggleItem,isItemExpanded:u.isItemExpanded,type:u.type,collapsible:u.collapsible,baseId:u.baseId},children:r.jsx($c,{shape:d,variant:g,views:f,baseId:u.baseId,type:u.type,collapsible:u.collapsible,...m,children:t})})};$e.Item=Vc,$e.Trigger=Ec,$e.Content=Dc;const Lc=({isOpen:e,defaultOpen:o=!1,value:t,defaultValue:n,isMulti:a=!1,onOpenChange:i,onClose:c})=>{const s=typeof e=="boolean",d=t!==void 0,g=n??(a?[]:""),[f,m]=h.useState(o),[p,u]=h.useState(g),y=s?!!e:f,k=d?t:p,x=h.useCallback(v=>{s||m(v),i==null||i(v),v||c==null||c()},[s,c,i]),C=h.useCallback(()=>{x(!1)},[x]),w=h.useCallback(v=>{d||u(v)},[d]);return{isSheetOpen:y,selectedValue:k,setSelectedValue:w,closeSheet:C}},ct=({children:e,containerId:o="portal-root"})=>{const[t,n]=h.useState(null);return h.useEffect(()=>{let a=document.getElementById(o),i=!1;return a||(i=!0,a=document.createElement("div"),a.setAttribute("id",o),document.body.appendChild(a)),n(a),()=>{i&&a&&a.parentNode&&a.childNodes.length===0&&a.parentNode.removeChild(a)}},[o]),t?zc.createPortal(e,t):null},st=new Map,_c=(e,o,t)=>(st.has(e)||st.set(e,h.lazy(()=>import("lucide-react/dynamicIconImports").then(n=>{const a=n.default[e];return a?a():{default:()=>r.jsx(r.Fragment,{children:o||t})}}))),st.get(e)),Vn=h.memo(({widthHeight:e,color:o="currentColor",transform:t,orientation:n="up",children:a,...i})=>r.jsx(l.View,{widthHeight:e,color:o,display:"flex",alignItems:"center",justifyContent:"center",transform:t||(n==="left"?"rotate(-90deg)":n==="right"?"rotate(90deg)":n==="up"?"rotate(0deg)":n==="down"?"rotate(180deg)":"none"),...i,children:a})),yr=h.memo(({name:e="circle",widthHeight:o=24,color:t="currentColor",filled:n=!1,strokeWidth:a=1,size:i,children:c,fallback:s,...d})=>{const{getColor:g}=l.useTheme(),f=i||o,m=h.useMemo(()=>{const y=g(t);return{fill:n?y:"none",stroke:y,strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round"}},[n,t,a,g]);if(!e)return r.jsx(Vn,{widthHeight:o,color:t,...d,children:c});const p=e.toLowerCase().replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=_c(p,s,c);return r.jsx(Vn,{widthHeight:f,color:t,...d,children:r.jsx(h.Suspense,{fallback:s||null,children:r.jsx(u,{size:f,...m})})})}),G=(e,o={})=>{const t=n=>r.jsx(yr,{name:e,...o,...n});return t.displayName=`${e}Icon`,t},Bc=G("user",{filled:!1}),Oc=G("circle-help",{filled:!1}),Nc=G("folder",{filled:!1}),ge=G("chevron-up",{filled:!1}),qc=G("grip-vertical",{filled:!1}),io=G("file",{filled:!1}),Uc=G("video",{filled:!1}),Gc=G("image",{filled:!1}),So=G("volume",{filled:!1}),Yc=G("twitter",{filled:!1}),Kc=G("x",{filled:!1}),Xc=G("twitch",{filled:!1}),Me=G("x",{filled:!1,strokeWidth:2}),Jc=G("instagram",{filled:!1}),Qc=G("youtube",{filled:!1}),Zc=G("facebook",{filled:!1}),Rc=G("linkedin",{filled:!1}),es=G("at-sign",{filled:!1}),En=G("minus",{filled:!1}),Ze=G("info",{filled:!1}),Dn=G("play",{filled:!1}),os=G("pause",{filled:!1}),rs=G("heart",{filled:!1}),ts=G("star",{filled:!1}),ns=G("save",{filled:!1}),dt=G("triangle-alert",{filled:!1}),as=G("battery",{filled:!1}),ls=G("bookmark",{filled:!1}),is=G("cloud",{filled:!1}),cs=G("copy",{filled:!1}),br=G("trash",{filled:!1}),ss=br,ds=G("edit",{filled:!1}),gt=G("mic",{filled:!1}),xr=G("square",{filled:!1}),ht=G("send",{filled:!1}),ft=G("loader",{filled:!1}),Go=G("paperclip",{filled:!1}),kr=G("search",{filled:!1}),gs=G("home",{filled:!1}),$n=G("settings",{filled:!1}),hs=G("download",{filled:!1}),Ln=G("share",{filled:!1}),Yo=G("check",{filled:!1}),fs=G("plus",{filled:!1}),mt=G("eye-off",{filled:!1}),pt=G("eye",{filled:!1}),ms=G("lock",{filled:!1}),ps=G("user",{filled:!1}),_n=G("external-link",{filled:!1}),ut=G("check-circle",{filled:!1}),Cr=G("alert-circle",{filled:!1}),us=G("bell",{filled:!1}),ys=G("file-text",{filled:!1}),bs=G("bar-chart",{filled:!1}),xs=G("moon",{filled:!1}),Bn=G("panel-left",{filled:!1}),yt=G("upload",{filled:!1}),ks=Yo,Cs=e=>r.jsx(ge,{orientation:"left",...e}),ws=G("zoom-out",{filled:!1}),Ss=G("type",{filled:!1}),vs=G("shapes",{filled:!1}),Ts=G("rotate-cw",{filled:!1}),Is=G("gift",{filled:!1}),Fs=G("shield",{filled:!1}),zs=G("log-out",{filled:!1}),Ms=G("power",{filled:!1}),Ws=G("link",{filled:!1}),Hs=G("layout",{filled:!1}),js=G("zap",{filled:!1}),Ps=G("credit-card",{filled:!1}),As=G("more-horizontal",{filled:!1}),Vs=br,Es=G("filter",{filled:!1}),Ds=G("calendar",{filled:!1}),$s=G("clock",{filled:!1}),Ls=G("map-pin",{filled:!1}),_s=G("menu",{filled:!1}),Bs=G("refresh-cw",{filled:!1}),Os=G("printer",{filled:!1}),Ns=G("wand",{filled:!1}),qs=G("thumbs-down",{filled:!1}),Us=G("thumbs-up",{filled:!1}),Gs=G("camera",{filled:!1}),Ys=G("bluetooth",{filled:!1}),Ks=G("unlock",{filled:!1}),Xs=G("wifi",{filled:!1}),Js=G("arrow-right",{filled:!1}),Qs=G("arrow-up",{filled:!1}),Zs=G("loader",{filled:!1}),Rs=G("sliders-horizontal",{filled:!1}),ed=G("crop",{filled:!1}),od=G("zoom-in",{filled:!1}),rd=G("grip-horizontal",{filled:!1}),On=G("mouse-pointer-2",{filled:!1}),td={sm:{minHeight:44,paddingVertical:10,paddingHorizontal:16},md:{minHeight:52,paddingVertical:12,paddingHorizontal:18},lg:{minHeight:60,paddingVertical:14,paddingHorizontal:20}},vo={sm:{label:14,description:12},md:{label:16,description:13},lg:{label:18,description:14}},Nn=(e,o)=>e.id??e.value??`action-sheet-item-${o}`,qn=e=>e.value??e.id,Un=e=>e.disabled||e.isDisabled||e.divider,nd=(e,o)=>{if(typeof e.selected=="boolean")return e.selected;const t=qn(e);return t?Array.isArray(o)?o.includes(t):o===t:!1},ad=({isSheetOpen:e,closeSheet:o,selectedValue:t,setSelectedValue:n,isClosePrevented:a=!1,dismissOnBackdropPress:i=!0,title:c,description:s,header:d,children:g,items:f=[],isMulti:m=!1,closeOnSelect:p,onSelect:u,onChange:y,showCancel:k=!1,cancelLabel:x="Cancel",onCancel:C,showHandle:w=!0,size:v="md",maxHeight:S="88vh",views:b,animationType:T,...F})=>{if(!e)return null;const W=()=>{a||o()},j=()=>{i&&W()},$=()=>{C==null||C(),W()},z=E=>{var M;if(Un(E))return;const A=qn(E);let H=t;if(A){if(m){const V=Array.isArray(t)?t:t?[t]:[];H=V.includes(A)?V.filter(L=>L!==A):[...V,A]}else H=A;n(H),u==null||u(A,E),y==null||y(H,E)}(M=E.onPress)==null||M.call(E,E),(E.closeOnSelect??p??!m)&&W()};return r.jsx(ct,{children:r.jsx(l.View,{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999,backgroundColor:"color-dark-50-360",display:"flex",justifyContent:"flex-end",onClick:j,...b==null?void 0:b.overlay,children:r.jsxs(l.Vertical,{width:"100%",maxWidth:520,maxHeight:S,marginHorizontal:"auto",backgroundColor:"color-white",borderTopLeftRadius:24,borderTopRightRadius:24,paddingTop:8,paddingBottom:12,overflow:"hidden",boxShadow:"0 -18px 48px rgba(15, 23, 42, 0.18)",onClick:E=>E.stopPropagation(),...b==null?void 0:b.container,...b==null?void 0:b.sheet,...F,children:[w&&r.jsx(l.View,{width:36,height:4,borderRadius:999,backgroundColor:"color-gray-300",alignSelf:"center",marginTop:4,marginBottom:8,...b==null?void 0:b.handle}),(c||s)&&r.jsxs(l.Vertical,{paddingHorizontal:20,paddingTop:6,paddingBottom:12,gap:4,...b==null?void 0:b.header,children:[c&&r.jsx(l.Text,{fontSize:18,lineHeight:24,fontWeight:"600",color:"color-gray-900",...b==null?void 0:b.title,children:c}),s&&r.jsx(l.Text,{fontSize:13,lineHeight:18,color:"color-gray-500",...b==null?void 0:b.description,children:s})]}),d,r.jsxs(l.Vertical,{overflowY:"auto",paddingBottom:4,...b==null?void 0:b.content,children:[f.map((E,A)=>{if(E.divider)return r.jsx(l.View,{height:1,backgroundColor:"color-gray-200",marginVertical:6,...b==null?void 0:b.divider},Nn(E,A));const H=nd(E,t),P=Un(E),M=P?"color-gray-400":E.destructive?"color-red-600":H?"theme-primary":"color-gray-900";return r.jsxs(l.Horizontal,{alignItems:"center",gap:12,opacity:P?.5:1,cursor:P?"not-allowed":"pointer",onClick:()=>z(E),...td[v],...b==null?void 0:b.item,children:[E.icon&&r.jsx(l.View,{flexShrink:0,...b==null?void 0:b.itemIcon,children:E.icon}),r.jsxs(l.Vertical,{flex:1,gap:2,children:[typeof E.label=="string"?r.jsx(l.Text,{fontSize:vo[v].label,lineHeight:vo[v].label+6,fontWeight:H?"600":"400",color:M,...b==null?void 0:b.itemLabel,children:E.label}):E.label,E.description&&r.jsx(l.Text,{fontSize:vo[v].description,lineHeight:vo[v].description+5,color:"color-gray-500",...b==null?void 0:b.itemDescription,children:E.description})]}),H&&r.jsx(Yo,{widthHeight:18,color:"theme-primary",...b==null?void 0:b.itemIndicator})]},Nn(E,A))}),g]}),k&&r.jsx(l.View,{marginTop:8,paddingHorizontal:12,paddingTop:8,borderTopWidth:1,borderTopColor:"color-gray-200",children:r.jsx(l.Horizontal,{minHeight:52,alignItems:"center",justifyContent:"center",borderRadius:14,backgroundColor:"color-gray-100",cursor:"pointer",onClick:$,...b==null?void 0:b.cancelButton,children:r.jsx(l.Text,{fontSize:vo[v].label,lineHeight:vo[v].label+6,fontWeight:"600",color:"color-gray-900",...b==null?void 0:b.cancelLabel,children:x})})})]})})})},ld=e=>{const o=Lc(e);return r.jsx(ad,{...e,...o})},id=e=>{const o=e==="dark";return{default:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",boxShadow:o?"0 1px 3px rgba(0, 0, 0, 0.3)":"0 1px 2px rgba(0, 0, 0, 0.05)"},content:{color:"color-gray-700"},icon:{color:"color-gray-500"}},info:{container:{backgroundColor:"color-blue-50",borderColor:"color-blue-200",boxShadow:o?"0 1px 3px rgba(29, 78, 216, 0.25)":"0 1px 2px rgba(59, 130, 246, 0.05)"},content:{color:"color-blue-700"},icon:{color:"color-blue-500"}},success:{container:{backgroundColor:"color-green-50",borderColor:"color-green-200",boxShadow:o?"0 1px 3px rgba(34, 197, 94, 0.2)":"0 1px 2px rgba(34, 197, 94, 0.05)"},content:{color:"color-green-700"},icon:{color:"color-green-500"}},error:{container:{backgroundColor:"color-red-50",borderColor:"color-red-200",boxShadow:o?"0 1px 3px rgba(239, 68, 68, 0.2)":"0 1px 2px rgba(239, 68, 68, 0.05)"},content:{color:"color-red-700"},icon:{color:"color-red-500"}},warning:{container:{backgroundColor:"color-orange-50",borderColor:"color-orange-200",boxShadow:o?"0 1px 3px rgba(249, 115, 22, 0.2)":"0 1px 2px rgba(249, 115, 22, 0.05)"},content:{color:"color-orange-700"},icon:{color:"color-orange-500"}}}},cd=h.memo(({icon:e,title:o="",views:t,description:n="",variant:a="default",themeMode:i,children:c,...s})=>{const{themeMode:d}=l.useTheme(),g=i||d,f=h.useMemo(()=>id(g),[g]),m=()=>{var y;if(e)return e;const u={size:20,color:((y=t==null?void 0:t.icon)==null?void 0:y.color)??f[a].icon.color};switch(a){case"info":return r.jsx(Ze,{...u});case"success":return r.jsx(ut,{...u});case"error":return r.jsx(Cr,{...u});case"warning":default:return r.jsx(dt,{...u})}};return r.jsxs(l.Horizontal,{gap:12,padding:"12px 16px",flexWrap:"nowrap",alignItems:"flex-start",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:f[a].container.borderColor,backgroundColor:f[a].container.backgroundColor,boxShadow:f[a].container.boxShadow,transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",...t==null?void 0:t.container,...s,children:[r.jsx(l.View,{alignSelf:"flex-start",marginTop:"2px",...t==null?void 0:t.icon,children:m()}),r.jsxs(l.Vertical,{gap:4,children:[o?r.jsx(l.Text,{fontSize:"14px",fontWeight:"600",lineHeight:"20px",color:f[a].content.color,...t==null?void 0:t.title,children:o}):null,r.jsx(l.Text,{fontSize:"12px",fontWeight:"400",lineHeight:"16px",color:f[a].content.color,...t==null?void 0:t.description,children:n||c})]})]})}),bt=e=>{const o=pe("alert",e);return r.jsx(cd,{...o})},sd=({ratio:e=16/9,children:o,views:t,...n})=>r.jsx(l.View,{width:"100%",position:"relative",overflow:"hidden",paddingTop:`${1/e*100}%`,borderRadius:8,...n,...t==null?void 0:t.center,children:r.jsx(l.View,{position:"absolute",top:0,right:0,bottom:0,left:0,...t==null?void 0:t.view,children:o})}),Gn=({ratio:e,children:o,...t})=>r.jsx(sd,{ratio:e,...t,children:o});function dd(e,o,t){return Math.min(Math.max(e,o),t)}const gd=({bars:e,isPaused:o,...t})=>{const a=[6,16,23,24,18,9,14,22,24,20,11,12,20,24,21,13,9,19,24,23,16,7,17,23,23,18,8,15,22,24,20,10];return r.jsx(l.Horizontal,{alignItems:"center",minWidth:120,gap:2,height:24,width:"100%",maxWidth:"100%",...t,children:e.map((i,c)=>r.jsx(l.View,{width:3,borderRadius:2,backgroundColor:o?"color-gray-300":i>=0?"theme-primary":"color-gray-300",style:{height:`${i>=0?dd(i*300,6,24):a[c%a.length]}px`}},c))})},xt=({analyserNode:e,isPaused:o,...t})=>{const n=h.useRef(null),a=60,i=32,[c,s]=h.useState([]);return h.useEffect(()=>{if(!e){s(Array(a).fill(-1));return}const d=e.frequencyBinCount,g=new Uint8Array(d),f=()=>{e.getByteTimeDomainData(g);let m=0;for(let u=0;u<d;u++){const y=(g[u]-128)/128;m+=y*y}const p=Math.sqrt(m/d);h.startTransition(()=>{s(u=>{const k=[...u,p].slice(-a);return k.length<a?[...Array(a-k.length).fill(-1),...k]:k})})};return n.current=setInterval(f,i),()=>{n.current&&clearInterval(n.current)}},[e]),r.jsx(gd,{bars:c,isPaused:o,...t})},wr=Co.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:(o,t="",n="",a,i,c,s,d,g)=>e({visible:!0,variant:o,title:t,subtitle:n,isClosable:a,views:i,action:c,actionText:s,showIcon:d,timeout:g}),hide:()=>e({visible:!1})})),Yn=(e,o,t,n)=>{wr.getState().show(e,o,t,n==null?void 0:n.isClosable,n==null?void 0:n.views,n==null?void 0:n.action,n==null?void 0:n.actionText,n==null?void 0:n.showIcon,n==null?void 0:n.timeout)},Kn=()=>{wr.getState().hide()},hd={info:{container:{backgroundColor:"color-white",border:"rgba(191, 219, 254, 0.95)"},icon:{color:"theme-primary",name:"InformationIcon"},content:{color:"color-gray-900"},close:{color:"color-gray-500",name:"CloseIcon"}},success:{container:{backgroundColor:"#F0FDF4",border:"#BBF7D0"},icon:{color:"#16A34A",name:"SuccessIcon"},content:{color:"#14532D"},close:{color:"#15803D",name:"CloseIcon"}},error:{container:{backgroundColor:"#FEF2F2",border:"#FECACA"},icon:{color:"#DC2626",name:"ErrorIcon"},content:{color:"#7F1D1D"},close:{color:"#B91C1C",name:"CloseIcon"}},warning:{container:{backgroundColor:"#FFF7ED",border:"#FED7AA"},icon:{color:"#EA580C",name:"WarningIcon"},content:{color:"#9A3412"},close:{color:"#C2410C",name:"CloseIcon"}}},Xn=({variant:e,hide:o,title:t,subtitle:n,theme:a,action:i,actionText:c,showIcon:s=!1,isClosable:d=!1,timeout:g=3e3,views:f})=>{var C,w;h.useEffect(()=>{if(g&&!d){const v=setTimeout(()=>{o()},g);return()=>{clearTimeout(v)}}},[]);const m=a??hd,p=!!(i&&c),u={borderWidth:1,borderStyle:"solid",borderRadius:12,borderColor:`${m[e].container.border}`,boxShadow:"0 8px 24px rgba(15, 23, 42, 0.06)"},y={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[e],k={info:r.jsx(Ze,{widthHeight:24,color:y,...f==null?void 0:f.icon}),success:r.jsx(ut,{widthHeight:24,color:y,...f==null?void 0:f.icon}),warning:r.jsx(dt,{widthHeight:24,color:y,...f==null?void 0:f.icon}),error:r.jsx(Cr,{widthHeight:24,color:y,...f==null?void 0:f.icon})}[e],x=s&&k;return r.jsxs(l.Horizontal,{role:"messageContent",gap:12,width:"100%",maxWidth:520,flexWrap:"nowrap",position:"relative",alignItems:"flex-start",padding:"12px 14px",color:`${m[e].content.color}`,backgroundColor:`${m[e].container.backgroundColor}`,onClick:d?()=>{}:()=>{o()},...u,transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",...f==null?void 0:f.container,children:[x&&k,r.jsxs(l.Vertical,{gap:4,width:"100%",children:[r.jsx(l.Text,{size:"md",weight:"semiBold",...f==null?void 0:f.title,children:t}),n&&r.jsx(l.Text,{size:"sm",lineHeight:"20px",color:m[e].content.color,...f==null?void 0:f.subtitle,children:n})]}),p&&r.jsx(l.View,{as:"button",type:"button",onClick:i,backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:m[e].container.border,borderRadius:"9999px",padding:"6px 12px",cursor:"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",...f==null?void 0:f.actionText,children:r.jsx(l.Text,{whiteSpace:"nowrap",size:"sm",weight:"semiBold",color:m[e].content.color,children:c})}),d&&r.jsx(l.View,{position:"absolute",zIndex:1e4,right:8,top:8,onClick:()=>{o()},cursor:"pointer",padding:"4px",borderRadius:"9999px",transition:"background-color 0.2s ease",...(C=f==null?void 0:f.closingIcon)==null?void 0:C.container,children:r.jsx(Me,{widthHeight:16,color:m[e].close.color,...(w=f==null?void 0:f.closingIcon)==null?void 0:w.icon})})]})},fd=({container:e,theme:o,position:t="topRight"})=>{const{visible:n,title:a,variant:i,subtitle:c,isClosable:s,views:d,action:g,actionText:f,showIcon:m,timeout:p}=wr(),u={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[t],y=()=>r.jsx(Xn,{variant:i,subtitle:c,show:n,title:a,theme:o,isClosable:s,views:d,action:g,actionText:f,showIcon:m,timeout:p,hide:()=>Kn()}),k=e?h.cloneElement(e,{},y()):r.jsx(l.View,{position:"absolute",zIndex:1e4,...u,children:y()});return n?k:null},md=(e,o)=>{const t=document.createElement("video");t.preload="metadata",t.onloadedmetadata=()=>{t.currentTime=1},t.oncanplay=()=>{const n=document.createElement("canvas");n.width=t.videoWidth,n.height=t.videoHeight;const a=n.getContext("2d");if(a){a.drawImage(t,0,0,n.width,n.height);const i=n.toDataURL("image/jpeg");o(i)}URL.revokeObjectURL(t.src)},t.src=URL.createObjectURL(e)},pd=({maxSize:e=100*1024*1024,onFileSelect:o,onMultipleFileSelect:t,validateFile:n,thumbnail:a,multiple:i=!1,onError:c=s=>{Yn("error","Error",s)}})=>{const s=h.useRef(null),d=h.useRef(null),[g,f]=h.useState(null),[m,p]=h.useState([]),[u,y]=h.useState(null),[k,x]=h.useState(null),[C,w]=h.useState(a||null),v=h.useCallback(b=>{const T=b.target.files;if(y(null),!T||T.length===0){c("No file selected"),y("No file selected");return}if(i){const F=Array.from(T),W=[];for(const j of F){if(j.size>e){c(`File ${j.name} exceeds ${Math.round(e/(1024*1024))}MB.`),y(`File ${j.name} exceeds ${Math.round(e/(1024*1024))}MB.`);continue}if(n){const $=n(j);if($){c(`${j.name}: ${$}`),y(`${j.name}: ${$}`);continue}}W.push(j)}W.length>0&&(p(W),t&&t(W))}else{const F=T[0];if(F.size>e){c(`File exceeds ${Math.round(e/(1024*1024))}MB.`),y(`File exceeds ${Math.round(e/(1024*1024))}MB.`);return}if(n){const W=n(F);if(W){c(W),y(W);return}}x(URL.createObjectURL(F)),F.type.startsWith("video/")&&md(F,w),o&&(f(F),o(F))}},[e,o,t,n,i]),S=()=>{const b=s.current;b&&typeof b.click=="function"&&b.click()};return h.useEffect(()=>()=>{typeof URL<"u"&&typeof URL.revokeObjectURL=="function"&&(k&&URL.revokeObjectURL(k),C&&URL.revokeObjectURL(C))},[k,C]),{previewUrl:k,thumbnailUrl:C,errorMessage:u,fileInputRef:s,videoRef:d,selectedFile:g,selectedFiles:m,handleFileChange:v,handleClick:S}},ud=({accept:e,isLoading:o=!1,progress:t=0,icon:n,text:a,previewUrl:i,thumbnailUrl:c,errorMessage:s,fileInputRef:d,videoRef:g,selectedFile:f,selectedFiles:m,handleFileChange:p,handleClick:u,multiple:y=!1,containerProps:k,errorMessageProps:x,progressProps:C,videoProps:w,imageProps:v,iconProps:S,textProps:b,fileType:T,previewUrl:F,renderError:W=({errorMessage:P,errorMessageProps:M,themeMode:V})=>r.jsx(l.Text,{color:"red",fontSize:12,marginTop:8,...M,...H==null?void 0:H.text,children:P}),renderText:j=({text:P,textProps:M})=>r.jsx(l.Text,{marginTop:8,...M,...H==null?void 0:H.text,children:P}),renderFile:$=({selectedFile:P,textProps:M})=>P?r.jsxs(l.Center,{marginTop:8,gap:10,flexDirection:"column",...H==null?void 0:H.container,children:[r.jsx(l.Text,{maxLines:2,...M,...H==null?void 0:H.text,children:P.name}),r.jsxs(l.Text,{...M,...H==null?void 0:H.text,children:["(",Math.round(P.size/1024)," KB)"]})]}):null,renderVideo:z=({selectedFile:P,videoRef:M,videoProps:V})=>r.jsx(l.View,{width:"100%",height:"100%",position:"relative",...H==null?void 0:H.view,children:r.jsx(l.View,{as:"video",width:"100%",height:"100%",src:P?URL.createObjectURL(P):void 0,style:{objectFit:"cover"},ref:M,...V,...H==null?void 0:H.view})}),renderImage:E=({previewUrl:P,imageProps:M})=>(console.log("Rendering image with URL:",P),r.jsx(l.View,{width:"100%",height:"100%",position:"relative",...H==null?void 0:H.view,children:r.jsx(l.Image,{src:P,alt:"Preview",width:"100%",height:"100%",objectFit:"cover",style:{maxHeight:"100%",maxWidth:"100%"},...M,...H==null?void 0:H.image})})),renderProgress:A=({progress:P,progressProps:M})=>r.jsxs(l.Horizontal,{gap:8,alignItems:"center",...M,...H==null?void 0:H.horizontal,children:[r.jsx(l.View,{height:4,backgroundColor:"color-black-100",width:"100%",borderRadius:2,...H==null?void 0:H.view,children:r.jsx(l.View,{height:4,width:`${P}%`,borderRadius:2,backgroundColor:"color-dark-50",...H==null?void 0:H.view})}),r.jsxs(l.Text,{fontSize:12,...H==null?void 0:H.text,children:[P,"%"]})]}),views:H={}})=>{const P=F||i;return r.jsxs(l.Center,{onClick:u,cursor:"pointer",border:"1px solid color-black-100",borderRadius:8,padding:16,flexDirection:"column",overflow:"hidden",position:"relative",height:f&&t===100?"200px":"auto",...k,...H==null?void 0:H.container,children:[t===100&&T==="image"&&P&&E({previewUrl:P,imageProps:v}),t===100&&T==="video"&&c&&z({selectedFile:f,thumbnailUrl:c,videoRef:g,videoProps:w,imageProps:v}),t===100&&T==="file"&&f&&$({selectedFile:f,textProps:b}),t<100&&(n||r.jsx(yt,{widthHeight:32,...S})),!o&&!f&&a&&j({text:a,textProps:b}),o&&A({progress:t,progressProps:C}),!o&&s&&W({errorMessage:s,errorMessageProps:x}),r.jsx(l.Input,{type:"file",ref:d,onChange:p,accept:e,multiple:y,style:{display:"none"},...H==null?void 0:H.view})]})},Sr=({accept:e="*/*",icon:o,text:t,maxSize:n,onFileSelect:a,onMultipleFileSelect:i,validateFile:c,isLoading:s=!1,progress:d=0,fileType:g,multiple:f=!1,...m})=>{const{previewUrl:p,thumbnailUrl:u,errorMessage:y,videoRef:k,fileInputRef:x,selectedFile:C,selectedFiles:w,handleFileChange:v,handleClick:S}=pd({maxSize:n,onFileSelect:a,onMultipleFileSelect:i,validateFile:c,multiple:f}),T=(()=>{if(g)return g;if(C)return C.type.startsWith("image/")?"image":C.type.startsWith("video/")?"video":"file"})();return r.jsx(ud,{handleClick:S,accept:e,isLoading:s,progress:d,icon:o,text:t,maxSize:n,onFileSelect:a,validateFile:c,errorMessage:y,handleFileChange:v,selectedFile:C,selectedFiles:w,videoRef:k,fileInputRef:x,previewUrl:p,thumbnailUrl:u,fileType:T,multiple:f,...m})};function yd(e){const o=Math.floor(e/60),t=e%60;return`${o}:${t.toString().padStart(2,"0")}`}function bd({onAudio:e,recording:o,paused:t,audioBlob:n,analyserNode:a,duration:i,error:c,startRecording:s,stopRecording:d,pauseRecording:g,resumeRecording:f,resetRecording:m,handleFileChange:p,...u}){const[y,k]=h.useState(null);h.useEffect(()=>{if(n){const w=URL.createObjectURL(n);return k({url:w,label:`recording-${Date.now()}.webm`}),()=>{URL.revokeObjectURL(w)}}return()=>{}},[n]);const x=()=>{y!=null&&y.url&&URL.revokeObjectURL(y.url),k(null),m()},C=w=>{e(w),y!=null&&y.url&&URL.revokeObjectURL(y.url),k({url:URL.createObjectURL(w),label:w.name})};return r.jsxs(l.Vertical,{gap:"10px",width:"100%",...u,children:[r.jsxs(l.Horizontal,{gap:12,alignItems:"center",padding:"12px 14px",border:"1px solid color-gray-200",borderRadius:"12px",backgroundColor:"color-white",children:[r.jsx(Sr,{accept:"audio/*",icon:r.jsx(Go,{widthHeight:16}),maxSize:100*1024*1024,onFileSelect:C,fileType:"file",multiple:!1,renderError:({errorMessage:w})=>null,views:{container:{width:"36px",height:"36px",cursor:"pointer",border:"1px solid color-gray-200",borderRadius:"10px",backgroundColor:"color-white",transition:"background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease",_hover:{backgroundColor:"color-gray-50",borderColor:"color-gray-300"}}},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"10px",width:"36px",height:"36px"},validateFile:w=>w.size>100*1024*1024?"File size exceeds 100MB limit":w.type.startsWith("audio/")?null:"Only audio files are allowed"}),r.jsx(l.View,{as:"button",type:"button",onClick:o?d:s,width:"36px",height:"36px",minWidth:"36px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"theme-primary",color:"color-white",borderRadius:"999px",border:"0",cursor:"pointer",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{opacity:.92},children:o?r.jsx(xr,{widthHeight:14,color:"color-white",filled:!1}):r.jsx(gt,{widthHeight:18,color:"color-white",filled:!1})}),r.jsx(l.View,{flex:1,minWidth:120,children:r.jsx(xt,{analyserNode:o?a:null,isPaused:!o||t})}),r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-500",whiteSpace:"nowrap",children:yd(i)})]}),y&&!o&&r.jsxs(l.Vertical,{gap:"8px",padding:"12px 14px",border:"1px solid color-gray-200",borderRadius:"12px",backgroundColor:"color-white",children:[r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:8,children:[r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-500",children:y.label}),r.jsx(l.View,{as:"button",type:"button",onClick:x,width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",border:"0",backgroundColor:"transparent",color:"color-gray-500",cursor:"pointer",children:r.jsx(Me,{widthHeight:14,color:"currentColor"})})]}),r.jsx(l.View,{as:"audio",controls:!0,src:y.url,width:"100%"})]}),c&&r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",color:"color-red-500",children:c})]})}function Jn(){const[e,o]=h.useState(!1),[t,n]=h.useState(!1),[a,i]=h.useState(0),[c,s]=h.useState(null),[d,g]=h.useState(null),[f,m]=h.useState(null),p=h.useRef(null),u=h.useRef(null),y=h.useRef(null),k=h.useRef(null),x=h.useRef([]),C=h.useRef(null),w=typeof MediaRecorder<"u"&&MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":"audio/webm",v=h.useCallback(()=>{p.current&&(p.current.state!=="inactive"&&p.current.stop(),p.current=null),k.current&&(k.current.getTracks().forEach(j=>j.stop()),k.current=null),u.current&&(u.current.close(),u.current=null),y.current&&(y.current.disconnect(),y.current=null),g(null),C.current&&(clearInterval(C.current),C.current=null)},[]),S=h.useCallback(async()=>{v(),s(null),i(0),x.current=[];try{const j=await navigator.mediaDevices.getUserMedia({audio:!0});k.current=j;const $=MediaRecorder.isTypeSupported(w)?w:void 0,z=new MediaRecorder(j,$?{mimeType:$}:void 0);p.current=z;const E=new(window.AudioContext||window.webkitAudioContext);u.current=E;const A=E.createMediaStreamSource(j),H=E.createAnalyser();H.fftSize=256,H.smoothingTimeConstant=.8,A.connect(H),y.current=H,g(H),z.ondataavailable=P=>{P.data.size>0&&x.current.push(P.data)},z.onstop=()=>{const P=new Blob(x.current,{type:z.mimeType||w});m(P),v()},z.start(),o(!0),n(!1),C.current=setInterval(()=>{i(P=>P+1)},1e3)}catch{s("Microphone access denied or unavailable."),v()}},[v]),b=h.useCallback(()=>{p.current&&p.current.state!=="inactive"&&p.current.stop(),o(!1),n(!1),C.current&&(clearInterval(C.current),C.current=null)},[]),T=h.useCallback(()=>{p.current&&p.current.state==="recording"&&(p.current.pause(),n(!0),C.current&&(clearInterval(C.current),C.current=null))},[]),F=h.useCallback(()=>{p.current&&p.current.state==="paused"&&(p.current.resume(),n(!1),C.current||(C.current=setInterval(()=>{i(j=>j+1)},1e3)))},[]),W=h.useCallback(()=>{v(),o(!1),n(!1),m(null),i(0),s(null),x.current=[]},[v]);return h.useEffect(()=>()=>v(),[v]),{recording:e,paused:t,audioBlob:f,analyserNode:d,duration:a,error:c,startRecording:S,stopRecording:b,pauseRecording:T,resumeRecording:F,resetRecording:W}}function xd(e){const{onAudio:o}=e,{recording:t,paused:n,audioBlob:a,analyserNode:i,duration:c,error:s,startRecording:d,stopRecording:g,pauseRecording:f,resumeRecording:m,resetRecording:p}=Jn();return h.useEffect(()=>{if(a&&o){const y=new File([a],"recording.webm",{type:a.type||"audio/webm;codecs=opus"});o(y)}},[a,o]),{recording:t,paused:n,audioBlob:a,analyserNode:i,duration:c,error:s,startRecording:d,stopRecording:g,pauseRecording:f,resumeRecording:m,resetRecording:p,handleFileChange:y=>{var x;const k=(x=y.target.files)==null?void 0:x[0];k&&o&&o(k)}}}function kd(e){const o=xd(e);return r.jsx(bd,{...e,...o})}const Cd=()=>{const[e,o]=h.useState(!1);return{imageError:e,setImageError:o}},wd={xs:24,sm:32,md:44,lg:56,xl:72},kt={container:{borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",backgroundColor:"theme-primary",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},fallback:{fontWeight:"600",color:"color-white",letterSpacing:"-0.02em"},image:{objectFit:"cover",transition:"opacity 0.2s ease"}},Sd=({src:e,size:o="md",fallback:t="IM",views:n,imageError:a,setImageError:i,onClick:c=()=>{},children:s})=>{const d=wd[o],g={...kt.image,...(n==null?void 0:n.image)||{}};return r.jsxs(l.Center,{role:"avatar",width:d,height:d,...kt.container,borderColor:a?"color-gray-400":"transparent",onClick:c,...n==null?void 0:n.container,children:[!a&&e?r.jsx(l.Image,{alt:"IM",src:e,style:g,width:d,height:d,onError:()=>i(!0)}):r.jsx(l.Text,{size:o,...kt.fallback,...n==null?void 0:n.fallback,children:t}),s]})},Qn=e=>{const o=pe("avatar",e),{src:t,size:n,views:a,fallback:i,onClick:c,children:s}=o,{imageError:d,setImageError:g}=Cd();return r.jsx(Sd,{src:t,size:n,views:a,fallback:i,imageError:d,setImageError:g,onClick:c,children:s})},vd={xs:{minWidth:"16px",height:"16px",padding:"0 4px",fontSize:"9px",fontWeight:"600",lineHeight:"12px",letterSpacing:"-0.01em"},sm:{minWidth:"20px",height:"20px",padding:"0 6px",fontSize:"10px",fontWeight:"600",lineHeight:"14px",letterSpacing:"-0.01em"},md:{minWidth:"24px",height:"24px",padding:"0 8px",fontSize:"12px",fontWeight:"600",lineHeight:"16px",letterSpacing:"-0.01em"},lg:{minWidth:"28px",height:"28px",padding:"0 10px",fontSize:"14px",fontWeight:"600",lineHeight:"20px",letterSpacing:"-0.01em"},xl:{minWidth:"32px",height:"32px",padding:"0 12px",fontSize:"16px",fontWeight:"600",lineHeight:"24px",letterSpacing:"-0.01em"}},Td={xs:{gap:"6px",padding:"3px 8px 3px 3px"},sm:{gap:"8px",padding:"4px 10px 4px 4px"},md:{gap:"12px",padding:"6px 16px 6px 6px"},lg:{gap:"12px",padding:"7px 18px 7px 7px"},xl:{gap:"14px",padding:"8px 20px 8px 8px"}},Id={xs:{padding:"2px 6px",fontSize:"9px",lineHeight:"12px"},sm:{padding:"3px 8px",fontSize:"10px",lineHeight:"14px"},md:{padding:"6px 12px",fontSize:"11px",lineHeight:"14px"},lg:{padding:"7px 14px",fontSize:"12px",lineHeight:"16px"},xl:{padding:"8px 16px",fontSize:"13px",lineHeight:"18px"}},Zn={xs:{fontSize:"11px",lineHeight:"14px"},sm:{fontSize:"12px",lineHeight:"16px"},md:{fontSize:"13px",lineHeight:"18px"},lg:{fontSize:"14px",lineHeight:"20px"},xl:{fontSize:"15px",lineHeight:"22px"}},Fd={square:0,rounded:"8px",pill:"9999px"},zd={"top-right":{top:"4px",right:"4px",position:"absolute"},"top-left":{top:"4px",left:"4px",position:"absolute"},"bottom-right":{bottom:"4px",right:"4px",position:"absolute"},"bottom-left":{bottom:"4px",left:"4px",position:"absolute"}},Md=e=>({display:"inline-flex",height:"auto",minWidth:"auto",backgroundColor:"color-white-600",color:"color-gray-900",borderWidth:"1px",borderStyle:"solid",borderColor:"color-white",backdropFilter:"blur(12px)",boxShadow:"0 1px 2px rgba(15, 23, 42, 0.08)",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",_hover:{backgroundColor:"color-white-800",boxShadow:"0 2px 8px rgba(15, 23, 42, 0.1)"}}),Wd=e=>({filled:{backgroundColor:"theme-primary",color:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{opacity:.9},_active:{opacity:.95}},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary",color:"theme-primary",style:{backgroundColor:"transparent"},transition:"border-color 0.2s ease, opacity 0.2s ease",_hover:{opacity:.9},_active:{opacity:.95}},link:{borderWidth:0,borderStyle:"none",borderColor:"theme-primary",color:"theme-primary",textDecoration:"underline",style:{backgroundColor:"transparent",textUnderlineOffset:"2px",textDecorationThickness:"1px"},transition:"opacity 0.2s ease",_hover:{opacity:.8}},ghost:{color:"color-gray-500",borderWidth:0,borderStyle:"solid",borderColor:"color-gray-500",style:{backgroundColor:"transparent"},transition:"background-color 0.2s ease, color 0.2s ease",_hover:{backgroundColor:"color-gray-100"}}}),Rn=e=>({default:{indicator:{backgroundColor:"color-gray-400"},label:{color:"inherit"}},info:{indicator:{backgroundColor:"color-blue-500"},label:{color:"inherit"}},success:{indicator:{backgroundColor:"color-green-500"},label:{color:"inherit"}},warning:{indicator:{backgroundColor:"color-orange-500"},label:{color:"inherit"}},error:{indicator:{backgroundColor:"color-red-500"},label:{color:"inherit"}}}),Hd=h.memo(({content:e,children:o,icon:t,pastil:n,pastilContent:a,action:i,position:c,shape:s="pill",variant:d="filled",size:g="md",views:f,themeMode:m,...p})=>{const{themeMode:u}=l.useTheme(),y=m||u,k=h.useMemo(()=>Wd()[d],[y,d]),x=h.useMemo(()=>Md(),[y]),C=h.useMemo(()=>Rn(),[y]),w=a!=null,v=i!=null,S=w||v,b=o??e,T=b!=null,F=h.useMemo(()=>{const j={width:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"6px",borderRadius:Fd[s],...vd[g],...k,...S?Td[g]:{},...S?x:{},...c?zd[c]:{},...f==null?void 0:f.container};return d!=="filled"&&!S&&(k.color!==void 0&&(j.color=k.color),k.borderColor!==void 0&&(j.borderColor=k.borderColor),k.backgroundColor!==void 0&&(j.backgroundColor=k.backgroundColor),k&&k.style&&(j.style={...j.style||{},...k.style})),j},[s,g,d,k,S,x,c,f==null?void 0:f.container]);let W="currentColor";return typeof n=="string"?n in C?W=C[n].indicator.backgroundColor:W=n:n===!0&&(W="color-green-500",d==="filled"&&(W="color-white")),r.jsxs(l.Center,{role:"badge",...F,...p,children:[t&&r.jsx(l.View,{role:"badge-icon",...f==null?void 0:f.icon,children:t}),w&&r.jsx(l.Text,{role:"badge-pastil-content",backgroundColor:"color-gray-900",borderRadius:"9999px",color:"color-white",fontWeight:"700",letterSpacing:0,textTransform:"uppercase",whiteSpace:"nowrap",...Id[g],...f==null?void 0:f.pastilContent,children:a}),n&&r.jsx(l.View,{role:"badge-pastil",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:W,...f==null?void 0:f.pastil}),T&&r.jsx(l.Text,{role:"badgeText",color:S?"color-gray-900":F.color,fontWeight:S?"700":"600",textAlign:"center",letterSpacing:S?0:"0.02em",whiteSpace:S?"nowrap":void 0,...S?Zn[g]:{},...f==null?void 0:f.text,children:b}),v&&r.jsx(l.Text,{role:"badge-action",color:"color-gray-400",fontWeight:"500",letterSpacing:0,whiteSpace:"nowrap",...Zn[g],...f==null?void 0:f.action,children:i})]})}),Te=e=>{const o=pe("badge",e);return r.jsx(Hd,{...o})},jd={xs:12,sm:14,md:16,lg:18,xl:20},Pd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=h.forwardRef(({children:e,href:o,iconSize:t="sm",underline:n="default",isExternal:a=!1,views:i={},to:c,isHovered:s,setIsHovered:d,_hover:g,...f},m)=>r.jsxs(l.Element,{as:"a",ref:m,href:o,display:"inline-flex",gap:3,alignItems:"center",flexWrap:"nowrap",color:"inherit",textDecoration:n==="underline"?"underline":"none",_hover:n==="hover"?{textDecoration:"underline",...g}:g,...a?{target:"_blank",rel:"noopener noreferrer"}:{},...i.text,...f,children:[e,a&&r.jsx(_n,{widthHeight:jd[t]})]}));Ct.displayName="LinkAnchor";const ea=h.forwardRef(({to:e="/",onClick:o,...t},n)=>{const a=rt.useHref(e),i=rt.useNavigate(),c=s=>{o==null||o(s),!(s.defaultPrevented||s.button!==0||t.target&&t.target!=="_self"||s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)&&(s.preventDefault(),i(e))};return r.jsx(Ct,{...t,to:e,href:a,onClick:c,ref:n})});ea.displayName="RouterLinkAnchor";const oa=h.forwardRef((e,o)=>{const t=rt.useInRouterContext(),{href:n,to:a="/",isExternal:i}=e;return t&&!i&&n==null&&!Pd.test(a)?r.jsx(ea,{...e,ref:o}):r.jsx(Ct,{...e,href:n??a,ref:o})});oa.displayName="LinkView";const ra=h.forwardRef((e,o)=>r.jsx(oa,{ref:o,...e}));ra.displayName="Link";const wt=ra,St={xs:14,sm:18,md:22,lg:26,xl:30},vt={fast:50,normal:100,slow:300},Ad=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),Vd=({size:e="md",speed:o="normal",color:t="theme-loading",themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=i(t,{themeMode:n||c}),d=typeof e=="number"?e:St[e],[g,f]=h.useState(0);return h.useEffect(()=>{const m=setInterval(()=>{f(p=>p+45)},vt[o]);return()=>clearInterval(m)},[o]),r.jsxs(l.View,{as:"svg",xmlns:"http://www.w3.org/2000/svg",width:`${d}px`,height:`${d}px`,viewBox:"0 0 24 24",fill:"none",stroke:s,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:`rotate(${g}deg)`},...a,children:[r.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),r.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("g",{id:"SVGRepo_iconCarrier",children:r.jsx("path",{d:"M21 12a9 9 0 11-6.219-8.56"})})]})},Ed=({size:e="md",speed:o="normal",color:t="theme-loading",themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=i(t,{themeMode:n||c}),d=typeof e=="number"?e:St[e],[g,f]=h.useState(0);return h.useEffect(()=>{const m=setInterval(()=>{f(p=>p+45)},vt[o]);return()=>clearInterval(m)},[o]),r.jsxs(l.View,{as:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:`${d}px`,height:`${d}px`,style:{transform:`rotate(${g}deg)`},...a,children:[r.jsx("circle",{cx:"10",cy:"25",r:"4",fill:s}),r.jsx("circle",{cx:"25",cy:"25",r:"4",fill:s}),r.jsx("circle",{cx:"40",cy:"25",r:"4",fill:s})]})},Dd=({size:e="md",speed:o="normal",color:t="theme-loading",themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=i(t,{themeMode:n||c}),d=typeof e=="number"?e:St[e],[g,f]=h.useState(0);return h.useEffect(()=>{const m=setInterval(()=>{f(p=>p+45)},vt[o]);return()=>clearInterval(m)},[o]),r.jsx(l.View,{as:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:`${d}px`,height:`${d}px`,style:{transform:`rotate(${g}deg)`},...a,children:r.jsx("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:s,strokeWidth:"5",strokeDasharray:"1,10"})})},$d=({size:e,children:o,textColor:t,loaderColor:n,type:a="default",speed:i="normal",textPosition:c="right",views:s,...d})=>{const{getColor:g}=l.useTheme(),f=u=>Ad(u)?u:g(u||"theme-loading");n=f(n||d.color||"theme-loading"),t=f(t||d.color||"theme-loading");const m={size:e,speed:i,color:n},p={default:r.jsx(Vd,{...m}),dotted:r.jsx(Ed,{...m}),quarter:r.jsx(Dd,{...m})};return r.jsxs(l.Center,{gap:10,flexDirection:c==="top"||c==="bottom"?"column":"row",...d,...s==null?void 0:s.container,children:[(c==="left"||c==="top")&&o&&r.jsx(l.View,{color:t,...s==null?void 0:s.text,children:o}),p[a],(c==="right"||c==="bottom")&&o&&r.jsx(l.View,{color:t,...s==null?void 0:s.text,children:o})]})},Re=e=>{const o=pe("loader",e);return r.jsx($d,{...o})},ta={xs:{minHeight:24,paddingHorizontal:12,paddingVertical:5,fontSize:10,fontWeight:500,lineHeight:12,letterSpacing:"-0.01em"},sm:{minHeight:32,paddingHorizontal:16,paddingVertical:7,fontSize:12,fontWeight:500,lineHeight:16,letterSpacing:"-0.01em"},md:{minHeight:40,paddingHorizontal:20,paddingVertical:9,fontSize:14,fontWeight:500,lineHeight:20,letterSpacing:"-0.01em"},lg:{minHeight:48,paddingHorizontal:24,paddingVertical:11,fontSize:16,fontWeight:500,lineHeight:24,letterSpacing:"-0.01em"},xl:{minHeight:56,paddingHorizontal:28,paddingVertical:13,fontSize:20,fontWeight:500,lineHeight:28,letterSpacing:"-0.01em"}},Ko={square:0,rounded:8,pill:999},Ld={xs:{width:16,height:16,padding:6},sm:{width:20,height:20,padding:6},md:{width:24,height:24,padding:8},lg:{width:24,height:24,padding:12},xl:{width:28,height:28,padding:14}},qe=e=>/^(color|theme|light|dark)-/.test(e)?`var(--${e})`:e,_d=(e,o,t=!1,n)=>{const a=t?o:e,i=t?e:o,c=t?o:e,d=(e==="theme-primary"||n&&e===n.primary)&&(n!=null&&n.onPrimary)?n.onPrimary:i,g=`0 0 0 2px ${qe("color-white")}, 0 0 0 4px ${qe(c)}`;return{filled:{backgroundColor:a,color:d,borderWidth:1,borderStyle:"solid",borderColor:a,_hover:{opacity:.92},_active:{opacity:.96},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},empty:{color:c,borderWidth:1,borderStyle:"solid",borderColor:c,backgroundColor:"transparent",_hover:{opacity:.9},_active:{opacity:.95},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, opacity 0.2s ease"},outline:{color:c,borderWidth:1,borderStyle:"solid",borderColor:c,backgroundColor:"transparent",_hover:{opacity:.9},_active:{opacity:.95},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},ghost:{color:c,borderWidth:0,borderStyle:"solid",borderColor:c,backgroundColor:"transparent",_hover:{opacity:.86},_active:{opacity:.94},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, color 0.2s ease"},link:{color:c,borderWidth:0,borderStyle:"none",borderColor:c,minHeight:"auto",paddingHorizontal:"4px",paddingVertical:"10px",textDecoration:"underline",backgroundColor:"transparent",style:{textUnderlineOffset:"2px",textDecorationThickness:"1px",textDecorationColor:qe(c)},_hover:{opacity:.8},_active:{opacity:.9},_focusVisible:{outline:"none",boxShadow:g},transition:"opacity 0.2s ease"},subtle:{backgroundColor:`${c}-${t?200:100}`,color:c,borderWidth:1,borderStyle:"solid",borderColor:`${c}-${t?400:250}`,_hover:{backgroundColor:`${c}-${t?300:180}`},_active:{backgroundColor:`${c}-${t?380:240}`},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}}},Bd=h.memo(({children:e,icon:o,isLoading:t,iconPosition:n="left",loaderPosition:a="left",size:i="md",resolvedTextColor:c,isIconRounded:s,views:d})=>{const g=["left","right"].includes(n)?l.Horizontal:l.Vertical,f=ta[i];return r.jsxs(g,{gap:8,alignItems:"center",justifyContent:"center",fontSize:f.fontSize,fontWeight:f.fontWeight,lineHeight:f.lineHeight,letterSpacing:f.letterSpacing,whiteSpace:"nowrap",color:c,...d==null?void 0:d.content,children:[t&&a==="left"&&r.jsx(Re,{size:i==="xs"||i==="sm"?"sm":"md",color:c,...d==null?void 0:d.loader}),o&&["left","top"].includes(n)&&!t&&r.jsx(l.View,{color:c,...d==null?void 0:d.icon,children:o}),e,o&&["right","bottom"].includes(n)&&!t&&r.jsx(l.View,{color:c,...d==null?void 0:d.icon,children:o}),t&&a==="right"&&r.jsx(Re,{size:i==="xs"||i==="sm"?"sm":"md",color:c,...d==null?void 0:d.loader})]})}),Od=e=>{const o=Ko[e];return typeof o=="number"?o:typeof o=="string"&&parseInt(o,10)||0},Nd=({asComponent:e,isDisabled:o,isLoading:t,isWrapped:n=!1,borderRadius:a,width:i,height:c,baseStyles:s,sizeStyles:d,iconPad:g,mainTone:f,resolvedTextColor:m,children:p,borderWidth:u=0,...y})=>r.jsx(l.Element,{as:e,disabled:!!(o||t),display:n?"flex":"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:a,width:i,height:c,...s,...d,...g,backgroundColor:(s==null?void 0:s.backgroundColor)||(n?f:void 0),color:m,borderWidth:n?0:void 0,cursor:o?"default":"pointer",...y,children:p}),qd=({shape:e,isDisabled:o,onClick:t,shadow:n,borderWidth:a,isAuto:i,isFilled:c,views:s,children:d,...g})=>r.jsx(l.Element,{as:"div",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:Ko[e],cursor:o?"default":"pointer",onClick:t,boxShadow:n,padding:a,width:c?"100%":i?"fit-content":void 0,...s==null?void 0:s.container,...g,children:d}),Ud=({variant:e,animation:o,to:t,isDisabled:n,isLoading:a,isAuto:i,isFilled:c,isExternal:s,shape:d="rounded",shadow:g,onClick:f,views:m,baseStyles:p,sizeStyles:u,iconPad:y,containerRef:k,resolvedTextColor:x,content:C,size:w,mainTone:v,borderMovingDuration:S=2,borderMovingGradientColors:b=["#705CFF","#FF5C97","#FFC75C"],animatedStrokeAccentColor:T="#705CFF",animatedStrokeTextColor:F="color-gray-900",...W})=>{var E;const j=Od(d),$=t?r.jsx(wt,{to:t,isExternal:s,color:"currentColor",textDecoration:"inherit",_hover:{color:"currentColor"},...m==null?void 0:m.link,children:C}):C,z={isDisabled:n,isLoading:a,baseStyles:p,sizeStyles:u,iconPad:y,resolvedTextColor:x,mainTone:v,children:$};if(o==="borderMoving"&&b){const H={from:{backgroundPosition:"0% 50%"},to:{backgroundPosition:"200% 50%"},duration:`${S}s`,timingFunction:"linear",iterationCount:"infinite"};return r.jsx(qd,{shape:d,isDisabled:n,onClick:f,shadow:g,borderWidth:3,isAuto:i,isFilled:c,views:m,background:`linear-gradient(90deg, ${qe(b[0])}, ${qe(b[1])}, ${qe(b[2])}, ${qe(b[0])})`,backgroundSize:"200% 100%",animate:H,...W,children:r.jsx(Nd,{asComponent:t?"div":"button",isWrapped:!0,borderRadius:Math.max(0,j-3),width:"100%",height:"100%",...z})})}if(o==="animatedStroke"){const A=qe(T),H=qe(F),P=1e3,M={from:{strokeWidth:"8px",strokeDasharray:`0 ${P}`,strokeDashoffset:-Math.round(P*.63)},to:{strokeWidth:"3px",strokeDasharray:`${P}`,strokeDashoffset:0},duration:"0.9s",timingFunction:"ease-in",fillMode:"forwards"},V=["group",(E=m==null?void 0:m.container)==null?void 0:E.className,W==null?void 0:W.className].filter(Boolean).join(" ");return r.jsxs(l.Element,{ref:k,as:t?"div":"button",type:t?void 0:"button",disabled:!!(!t&&(n||a)),onClick:f,position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c?"100%":i?"fit-content":void 0,borderRadius:Ko[d],boxShadow:g,transition:"background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",cursor:n?"default":"pointer",color:H,backgroundColor:"transparent",borderWidth:0,...m==null?void 0:m.container,...W,className:V,children:[r.jsx(l.View,{as:"svg",position:"absolute",top:0,right:0,bottom:0,left:0,width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",pointerEvents:"none",zIndex:1,"aria-hidden":"true",children:r.jsx(l.View,{as:"rect",x:"0",y:"0",height:"100%",width:"100%",rx:j,ry:j,fill:"transparent",stroke:A,strokeWidth:"8px",strokeDasharray:`0 ${P}`,strokeDashoffset:-Math.round(P*.63),pathLength:P,on:{groupHover:{animate:M}}})}),r.jsx(l.View,{position:"relative",zIndex:0,children:$})]})}if(o==="borderReveal"){const H=qe((b==null?void 0:b[0])||v||"#000000"),M=S*.75/4,V=`linear-gradient(90deg, ${H} 50%, transparent 50%)`,L=`linear-gradient(180deg, ${H} 50%, transparent 50%)`,B=`linear-gradient(270deg, ${H} 50%, transparent 50%)`,q=`linear-gradient(0deg, ${H} 50%, transparent 50%)`,_="100% 0, 100% 100%, 0 100%, 0 0",O="0 0, 100% 0, 100% 100%, 0 100%",U=`0s, ${M}s, ${M*2}s, ${M*2}s`,K=`${M*2}s, ${M*2}s, ${M}s, 0s`,N=4;return r.jsx(l.Element,{ref:k,as:"div",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:Ko[d],cursor:n?"default":"pointer",onClick:f,boxShadow:g,padding:3,background:`
2
- ${V} no-repeat,
1
+ (function(I,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("react/jsx-runtime"),require("react"),require("app-studio"),require("react-dom"),require("zustand"),require("react-router-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","app-studio","react-dom","zustand","react-router-dom","formik"],r):(I=typeof globalThis<"u"?globalThis:I||self,r(I.AppStudioWeb={},I.jsxRuntime,I.React,I.appStudio,I.ReactDOM,I.zustand,I.ReactRouterDOM,I.Formik))})(this,function(I,r,h,l,zc,Co,rt,De){"use strict";var cb=Object.defineProperty;var sb=(I,r,h)=>r in I?cb(I,r,{enumerable:!0,configurable:!0,writable:!0,value:h}):I[r]=h;var Qe=(I,r,h)=>sb(I,typeof r!="symbol"?r+"":r,h);var xo,Fn;const tt=(e="id")=>`${e}-${Math.random().toString(36).substring(2,9)}`,Mc=({type:e="single",value:o,defaultValue:t,onValueChange:n,collapsible:a=!1})=>{const i=o!==void 0,c=o??t,s=()=>e==="multiple"?Array.isArray(c)?c:c?[c]:[]:Array.isArray(c)?c[0]:c,[d,g]=h.useState(s()),f=h.useMemo(()=>tt("accordion"),[]),m=i?o:d,p=h.useMemo(()=>m===void 0?[]:Array.isArray(m)?m:[m],[m]);h.useEffect(()=>{i&&(e==="multiple"&&!Array.isArray(o)?(console.warn('Accordion with type="multiple" received non-array value:',o),g(o?[String(o)]:[])):e==="single"&&Array.isArray(o)?(console.warn('Accordion with type="single" received array value:',o),g(o.length>0?o[0]:void 0)):g(o))},[o,i,e]);const u=h.useCallback(k=>{let x;if(e==="single")m===k&&a?x=void 0:m!==k?x=k:x=m;else{const C=Array.isArray(m)?m:[];C.includes(k)?x=C.filter(w=>w!==k):x=[...C,k],Array.isArray(x)&&x.length===0&&(x=[])}i||g(x),n&&n(x)},[e,m,a,i,n]),y=h.useCallback(k=>p.includes(k),[p]);return{expandedItems:p,toggleItem:u,isItemExpanded:y,type:e,collapsible:a,baseId:f}},Wc={square:{borderRadius:0},rounded:{borderRadius:8}},Hc={default:{borderWidth:0,style:{backgroundColor:"transparent"},transition:"background-color 0.15s ease"},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",transition:"border-color 0.15s ease, background-color 0.15s ease",_hover:{borderColor:"color-gray-300"}},filled:{backgroundColor:"color-gray-50",transition:"background-color 0.15s ease",_hover:{backgroundColor:"color-gray-100"}}},jc={metadata:{id:"default",label:"Default",sourcePath:"",sourceTitle:"Default adaptive design system (light + dark)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"]},theme:{primary:"#2563eb",secondary:"#7c3aed",success:"#16a34a",warning:"#d97706",error:"#dc2626",onPrimary:"#ffffff",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200"},tokens:{rawCssVars:{primary:"#2563eb",secondary:"#7c3aed",success:"#16a34a",warning:"#d97706",error:"#dc2626"},colors:[{name:"primary",value:"#2563eb",role:"primary"},{name:"secondary",value:"#7c3aed",role:"secondary"},{name:"success",value:"#16a34a",role:"success"},{name:"warning",value:"#d97706",role:"warning"},{name:"error",value:"#dc2626",role:"error"}],typography:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",monoFamily:"ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace",fontSizes:["12px","13px","14px","16px","18px","22px","28px","36px","48px","64px"],fontWeights:["400","500","600","700","800"],lineHeights:["1.0","1.1","1.2","1.4","1.5","1.6"]},spacing:["2px","4px","8px","12px","16px","24px","32px","48px","64px"],radii:["2px","4px","6px","8px","12px","16px","9999px"],shadows:["0 1px 2px rgba(0,0,0,0.04)","0 4px 12px rgba(0,0,0,0.08)","0 12px 32px rgba(0,0,0,0.12)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:8,fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:null,color:null,borderColor:null,borderRadius:6,fontFamily:"'Inter', system-ui, -apple-system, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:600,fontStyle:"normal"},text:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},header:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid"},field:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid"},field:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid"},field:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"12px"},trigger:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"9999px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', system-ui, -apple-system, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"regular",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"neutral-clear"}},nt={airbnb:{metadata:{id:"airbnb",label:"Airbnb",sourcePath:"design.md/html/airbnb.html",sourceTitle:"Design System Inspiration of Airbnb",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"]},theme:{primary:"#ff385c",secondary:"#222222",success:"#428bff",warning:"#460479",error:"#c13515",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#ff385c","primary-active":"#e00b41","primary-disabled":"#ffd1da",error:"#c13515",luxe:"#460479",plus:"#92174d",ink:"#222222",body:"#3f3f3f",muted:"#6a6a6a","muted-soft":"#929292",hairline:"#dddddd","hairline-soft":"#ebebeb","border-strong":"#c1c1c1",canvas:"#ffffff","surface-soft":"#f7f7f7","surface-strong":"#f2f2f2","on-primary":"#ffffff","legal-link":"#428bff",shadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0",display:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",text:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, sans-serif"},colors:[{name:"primary",value:"#ff385c",role:"primary"},{name:"primary-active",value:"#e00b41",role:"primary active"},{name:"primary-disabled",value:"#ffd1da",role:"primary disabled"},{name:"error",value:"#c13515",role:"error"},{name:"luxe",value:"#460479",role:"luxe"},{name:"plus",value:"#92174d",role:"plus"},{name:"ink",value:"#222222",role:"ink"},{name:"body",value:"#3f3f3f",role:"body"},{name:"muted",value:"#6a6a6a",role:"muted"},{name:"muted-soft",value:"#929292",role:"muted soft"},{name:"hairline",value:"#dddddd",role:"hairline"},{name:"hairline-soft",value:"#ebebeb",role:"hairline soft"},{name:"border-strong",value:"#c1c1c1",role:"border strong"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"surface-soft",value:"#f7f7f7",role:"surface soft"},{name:"surface-strong",value:"#f2f2f2",role:"surface strong"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"legal-link",value:"#428bff",role:"legal link"},{name:"shadow",value:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0",role:"shadow"}],typography:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","14px","48px","18px","20px","11px","28px","13px","12px","8px","64px","21px","10px","24px","36px","15px"],fontWeights:["400","600","700","500"],lineHeights:["1.5","1.1","1.43","1.25","2","1","1.2","1.35","1.4"]},spacing:["2px","4px","5px","6px","7px","8px","10px","11px","12px","13px","14px","16px","20px","23px","24px","28px","32px","40px","48px","56px"],radii:["9999px","8px","14px","4px","6px","3px"],shadows:["rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0","var(--shadow)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:null,color:null,borderColor:null,borderRadius:6,fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},header:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},field:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},field:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0"},field:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"14px"},trigger:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:16},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:16},title:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"14px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"14px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:16,pillRadius:9999,badgeRadius:6,voice:"warm-welcoming"}},apple:{metadata:{id:"apple",label:"Apple",sourcePath:"design.md/html/apple.html",sourceTitle:"Design System Inspiration of Apple",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"]},theme:{primary:"#0071E3",secondary:"#1d1d1f",success:"#0071e3",warning:"#272729",error:"#2997ff",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#0066cc","primary-focus":"#0071e3","primary-on-dark":"#2997ff",ink:"#1d1d1f",body:"#1d1d1f","body-on-dark":"#ffffff","body-muted":"#cccccc","ink-muted-80":"#333333","ink-muted-48":"#7a7a7a","divider-soft":"#f0f0f0",hairline:"#e0e0e0",canvas:"#ffffff","canvas-parchment":"#f5f5f7","surface-pearl":"#fafafc","surface-tile-1":"#272729","surface-tile-2":"#2a2a2c","surface-tile-3":"#252527","surface-black":"#000000","surface-chip-translucent":"rgba(210, 210, 215, 0.64)","on-primary":"#ffffff","on-dark":"#ffffff",display:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",text:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},colors:[{name:"primary",value:"#0071E3",role:"primary"},{name:"primary-focus",value:"#0071e3",role:"primary focus"},{name:"primary-on-dark",value:"#2997ff",role:"primary on dark"},{name:"ink",value:"#1d1d1f",role:"ink"},{name:"body",value:"#1d1d1f",role:"body"},{name:"body-on-dark",value:"#ffffff",role:"body on dark"},{name:"body-muted",value:"#cccccc",role:"body muted"},{name:"ink-muted-80",value:"#333333",role:"ink muted 80"},{name:"ink-muted-48",value:"#7a7a7a",role:"ink muted 48"},{name:"divider-soft",value:"#f0f0f0",role:"divider soft"},{name:"hairline",value:"#e0e0e0",role:"hairline"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"canvas-parchment",value:"#f5f5f7",role:"canvas parchment"},{name:"surface-pearl",value:"#fafafc",role:"surface pearl"},{name:"surface-tile-1",value:"#272729",role:"surface tile 1"},{name:"surface-tile-2",value:"#2a2a2c",role:"surface tile 2"},{name:"surface-tile-3",value:"#252527",role:"surface tile 3"},{name:"surface-black",value:"#000000",role:"surface black"},{name:"surface-chip-translucent",value:"rgba(210, 210, 215, 0.64)",role:"surface chip translucent"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"on-dark",value:"#ffffff",role:"on dark"}],typography:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["17px","14px","56px","21px","12px","40px","24px","13px","18px","28px","11px","34px","44px","32px","19px"],fontWeights:["400","600","300","700"],lineHeights:["1.47","1.07","1.19","1.1","1.43","1.5","1","1.14","2.0","2.41","1.2","1.35"]},spacing:["5px","6px","7px","8px","10px","11px","12px","14px","15px","16px","18px","20px","21px","22px","24px","28px","32px","44px","48px","50px"],radii:["9999px","18px","28px","24px","8px","11px","50%","12px","4px","6px","3px"],shadows:["0 5px 30px rgba(0, 0, 0, 0.22)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,borderColor:"theme-primary",letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:8,fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",letterSpacing:"-0.022em",textTransform:"none",fontWeight:300,fontStyle:"normal"},text:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:18,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 5px 30px rgba(0, 0, 0, 0.22)"},header:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.022em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"18px"},trigger:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:18},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.022em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.022em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:18},title:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif",fontWeight:300,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"18px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"18px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"light",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.022em",accentTreatment:"flat",signatureMotif:"◯",density:"spacious",surfaceTone:"paper",cardRadius:18,pillRadius:9999,badgeRadius:8,voice:"minimal-precise"}},coinbase:{metadata:{id:"coinbase",label:"Coinbase",sourcePath:"design.md/html/coinbase.html",sourceTitle:"Design System Inspiration of Coinbase",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap"]},theme:{primary:"#0052ff",secondary:"#0a0b0d",success:"#16a34a",warning:"#003ecc",error:"#dc2626",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#0052ff","primary-active":"#003ecc","primary-disabled":"#a8b8cc",ink:"#0a0b0d",body:"#5b616e",muted:"#7c828a","muted-soft":"#a8acb3",hairline:"#dee1e6","hairline-soft":"#eef0f3",canvas:"#ffffff","surface-soft":"#f7f7f7","surface-strong":"#eef0f3","surface-dark":"#0a0b0d","surface-dark-elevated":"#16181c","on-primary":"#ffffff","on-dark":"#ffffff","on-dark-soft":"#a8acb3","semantic-up":"#05b169","semantic-down":"#cf202f","accent-yellow":"#f4b000",display:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",text:"'Inter', 'Coinbase Sans', sans-serif",mono:"'JetBrains Mono', 'Coinbase Mono', monospace"},colors:[{name:"primary",value:"#0052ff",role:"primary"},{name:"primary-active",value:"#003ecc",role:"primary active"},{name:"primary-disabled",value:"#a8b8cc",role:"primary disabled"},{name:"ink",value:"#0a0b0d",role:"ink"},{name:"body",value:"#5b616e",role:"body"},{name:"muted",value:"#7c828a",role:"muted"},{name:"muted-soft",value:"#a8acb3",role:"muted soft"},{name:"hairline",value:"#dee1e6",role:"hairline"},{name:"hairline-soft",value:"#eef0f3",role:"hairline soft"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"surface-soft",value:"#f7f7f7",role:"surface soft"},{name:"surface-strong",value:"#eef0f3",role:"surface strong"},{name:"surface-dark",value:"#0a0b0d",role:"surface dark"},{name:"surface-dark-elevated",value:"#16181c",role:"surface dark elevated"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"on-dark",value:"#ffffff",role:"on dark"},{name:"on-dark-soft",value:"#a8acb3",role:"on dark soft"},{name:"semantic-up",value:"#05b169",role:"semantic up"},{name:"semantic-down",value:"#cf202f",role:"semantic down"},{name:"accent-yellow",value:"#f4b000",role:"accent yellow"}],typography:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",monoFamily:"'JetBrains Mono', 'Coinbase Mono', monospace",fontSizes:["16px","14px","72px","18px","13px","36px","12px","44px","11px","52px","28px","40px","32px","48px","26px"],fontWeights:["500","600","400","700"],lineHeights:["1.5","1.2","1.05","1.15","1.0","1.09","1","1.35","1.4"]},spacing:["4px","5px","6px","8px","10px","11px","12px","13px","14px","15px","16px","19px","20px","24px","28px","32px","40px","44px","48px","56px"],radii:["100px","24px","20px","16px","9999px","14px","12px","8px","6px","3px"],shadows:["0 16px 40px rgba(0,0,0,0.5)","0 16px 40px rgba(0,0,0,0.4)","0 4px 12px rgba(0,0,0,0.04)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:6,fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 16px 40px rgba(0,0,0,0.5)"},header:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"16px"},trigger:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'JetBrains Mono', 'Coinbase Mono', monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"16px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"16px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'Coinbase Display', -apple-system, system-ui, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"◆",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"trustworthy-financial"}},figma:{metadata:{id:"figma",label:"Figma",sourcePath:"design.md/html/figma.html",sourceTitle:"Design System Inspiration of Figma",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap"]},theme:{primary:"#F24E1E",secondary:"#A259FF",success:"#0ACF83",warning:"#FFC700",error:"#FF7262",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#000000","on-primary":"#ffffff",ink:"#000000",canvas:"#ffffff","inverse-canvas":"#000000","inverse-ink":"#ffffff",hairline:"#e6e6e6","hairline-soft":"#f1f1f1","surface-soft":"#f7f7f5","block-lime":"#dceeb1","block-lilac":"#c5b0f4","block-cream":"#f4ecd6","block-pink":"#efd4d4","block-mint":"#c8e6cd","block-coral":"#f3c9b6","block-navy":"#1f1d3d","accent-magenta":"#ff3d8b","semantic-success":"#1ea64a",sans:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",mono:"'JetBrains Mono', 'SF Mono', Menlo, monospace"},colors:[{name:"primary",value:"#F24E1E",role:"primary"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"ink",value:"#000000",role:"ink"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"inverse-canvas",value:"#000000",role:"inverse canvas"},{name:"inverse-ink",value:"#ffffff",role:"inverse ink"},{name:"hairline",value:"#e6e6e6",role:"hairline"},{name:"hairline-soft",value:"#f1f1f1",role:"hairline soft"},{name:"surface-soft",value:"#f7f7f5",role:"surface soft"},{name:"block-lime",value:"#dceeb1",role:"block lime"},{name:"block-lilac",value:"#c5b0f4",role:"block lilac"},{name:"block-cream",value:"#f4ecd6",role:"block cream"},{name:"block-pink",value:"#efd4d4",role:"block pink"},{name:"block-mint",value:"#c8e6cd",role:"block mint"},{name:"block-coral",value:"#f3c9b6",role:"block coral"},{name:"block-navy",value:"#1f1d3d",role:"block navy"},{name:"accent-magenta",value:"#ff3d8b",role:"accent magenta"},{name:"semantic-success",value:"#1ea64a",role:"semantic success"}],typography:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",monoFamily:"'JetBrains Mono', 'SF Mono', Menlo, monospace",fontSizes:["18px","16px","80px","20px","12px","40px","14px","11px","26px","24px","32px","13px","10px","56px","36px"],fontWeights:["320","330","480","600","500","700"],lineHeights:["1.45","1.0","1.4","1.1","1.6","1.35","1","1.2"]},spacing:["5px","6px","8px","10px","12px","14px","16px","20px","22px","24px","28px","32px","36px","40px","44px","48px","56px","64px","96px","100px"],radii:["50px","8px","9999px","24px","6px","2px","3px"],shadows:["0 0 0 2px rgba(0,0,0,0.08)","none","0 4px 16px rgba(0,0,0,0.06)","0 12px 32px rgba(0,0,0,0.18)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:4,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:8,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 2px rgba(0,0,0,0.08)"},header:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},activeText:{color:"theme-primary"},content:{color:"theme-primary"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"theme-primary",borderRadius:"12px"},trigger:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:8},thead:{backgroundColor:"color-gray-50",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'JetBrains Mono', 'SF Mono', Menlo, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:8},title:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"8px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, Helvetica, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"✦",density:"comfortable",surfaceTone:"paper",cardRadius:8,pillRadius:9999,badgeRadius:4,voice:"playful-creative"}},linear:{metadata:{id:"linear",label:"Linear",sourcePath:"design.md/html/linear.html",sourceTitle:"Design System Inspiration of Linear",defaultAppearance:"dark",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap"]},theme:{primary:"#5e6ad2",secondary:"#828fff",success:"#27a644",warning:"#5e69d1",error:"#828fff",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#5e6ad2","primary-hover":"#828fff","primary-focus":"#5e69d1","on-primary":"#ffffff",ink:"#f7f8f8","ink-muted":"#d0d6e0","ink-subtle":"#8a8f98","ink-tertiary":"#62666d",canvas:"#010102","surface-1":"#0f1011","surface-2":"#141516","surface-3":"#18191a","surface-4":"#191a1b",hairline:"#23252a","hairline-strong":"#34343a","hairline-tertiary":"#3e3e44","semantic-success":"#27a644",sans:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",mono:"'JetBrains Mono', ui-monospace, 'SF Mono', menlo, monospace"},colors:[{name:"primary",value:"#5e6ad2",role:"primary"},{name:"primary-hover",value:"#828fff",role:"primary hover"},{name:"primary-focus",value:"#5e69d1",role:"primary focus"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"ink",value:"#f7f8f8",role:"ink"},{name:"ink-muted",value:"#d0d6e0",role:"ink muted"},{name:"ink-subtle",value:"#8a8f98",role:"ink subtle"},{name:"ink-tertiary",value:"#62666d",role:"ink tertiary"},{name:"canvas",value:"#08090A",role:"canvas"},{name:"surface-1",value:"#0f1011",role:"surface 1"},{name:"surface-2",value:"#141516",role:"surface 2"},{name:"surface-3",value:"#18191a",role:"surface 3"},{name:"surface-4",value:"#191a1b",role:"surface 4"},{name:"hairline",value:"#23252a",role:"hairline"},{name:"hairline-strong",value:"#34343a",role:"hairline strong"},{name:"hairline-tertiary",value:"#3e3e44",role:"hairline tertiary"},{name:"semantic-success",value:"#27a644",role:"semantic success"}],typography:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",monoFamily:"'JetBrains Mono', ui-monospace, 'SF Mono', menlo, monospace",fontSizes:["16px","14px","80px","18px","13px","56px","15px","12px","11px","28px","40px","22px","10px","36px"],fontWeights:["400","500","600","700"],lineHeights:["1.50","1.05","1.20","1.10","1.5","1.6","1.25","1","1.2","1.35","1.4"]},spacing:["2px","5px","6px","8px","10px","12px","14px","16px","20px","24px","28px","32px","36px","40px","48px","56px","64px","80px","96px","120px"],radii:["8px","12px","9999px","16px","4px","2px","6px","3px"],shadows:["rgba(255,255,255,0.05) 0 0.5px 0 0.5px","0 0 0 2px rgba(94,105,209,0.25)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-on-primary",views:{container:{borderRadius:9999,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"theme-on-primary",borderColor:"theme-secondary",borderRadius:6,fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",letterSpacing:"-0.025em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(255,255,255,0.05) 0 0.5px 0 0.5px"},header:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.025em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.025em"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.025em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"12px"},trigger:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'JetBrains Mono', ui-monospace, 'SF Mono', menlo, monospace",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.025em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.025em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.025em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"8px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.025em",accentTreatment:"gradient",signatureMotif:"↗",density:"tight",surfaceTone:"glass",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"speed-clarity"}},nike:{metadata:{id:"nike",label:"Nike",sourcePath:"design.md/html/nike.html",sourceTitle:"Design System Inspiration of Nike",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"]},theme:{primary:"color-black",secondary:"#FA5400",success:"#76E0B5",warning:"#1151ff",error:"#d30005",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{ink:"#111111","on-primary":"#ffffff",canvas:"#ffffff","soft-cloud":"#f5f5f5",charcoal:"#39393b",ash:"#4b4b4d",mute:"#707072",stone:"#9e9ea0",hairline:"#cacacb","hairline-soft":"#e5e5e5",sale:"#d30005","sale-deep":"#780700",success:"#007d48","success-bright":"#1eaa52",info:"#1151ff","info-deep":"#0034e3","accent-pink":"#ed1aa0","accent-pink-soft":"#ffb0dd","accent-purple-soft":"#beaffd","accent-purple-pale":"#d6d1ff","accent-teal":"#0a7281","accent-pink-deep":"#4c012d","font-display":"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif","font-ui":"'Inter', 'Helvetica Now Text Medium', Helvetica, Arial, sans-serif","font-body":"'Inter', 'Helvetica Now Text', Helvetica, Arial, sans-serif"},colors:[{name:"ink",value:"#111111",role:"ink"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"soft-cloud",value:"#f5f5f5",role:"soft cloud"},{name:"charcoal",value:"#39393b",role:"charcoal"},{name:"ash",value:"#4b4b4d",role:"ash"},{name:"mute",value:"#707072",role:"mute"},{name:"stone",value:"#9e9ea0",role:"stone"},{name:"hairline",value:"#cacacb",role:"hairline"},{name:"hairline-soft",value:"#e5e5e5",role:"hairline soft"},{name:"sale",value:"#d30005",role:"sale"},{name:"sale-deep",value:"#780700",role:"sale deep"},{name:"success",value:"#76E0B5",role:"success"},{name:"success-bright",value:"#1eaa52",role:"success bright"},{name:"info",value:"#1151ff",role:"info"},{name:"info-deep",value:"#0034e3",role:"info deep"},{name:"accent-pink",value:"#ed1aa0",role:"accent pink"},{name:"accent-pink-soft",value:"#ffb0dd",role:"accent pink soft"},{name:"accent-purple-soft",value:"#beaffd",role:"accent purple soft"},{name:"accent-purple-pale",value:"#d6d1ff",role:"accent purple pale"},{name:"accent-teal",value:"#0a7281",role:"accent teal"},{name:"accent-pink-deep",value:"#4c012d",role:"accent pink deep"}],typography:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","15px","14px","96px","18px","12px","56px","13px","11px","24px","40px","64px","48px","32px"],fontWeights:["700","500","600"],lineHeights:["1.5","0.92","1","1.4","1.6","0.9","1.2","1.75","1.7","1.35"]},spacing:["2px","4px","5px","6px","8px","10px","12px","14px","16px","18px","20px","24px","28px","30px","32px","36px","40px","44px","48px","56px"],radii:["9999px","24px","14px","6px","3px"],shadows:["0 0 0 12px var(--soft-cloud)","0 20px 30px -10px rgba(0,0,0,0.18)","0 0 0 2px var(--canvas), 0 0 0 4px var(--ink)","inset 0 -1px 0 var(--hairline-soft)"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:0,fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,borderColor:"theme-primary",letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"italic",backgroundColor:null},content:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"italic"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:0,fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:800,fontStyle:"italic"},text:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",color:"theme-primary",borderRadius:4,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 12px var(--soft-cloud)"},header:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontStyle:"italic",letterSpacing:"0.02em"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontStyle:"italic",letterSpacing:"0.02em"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},helperText:{},text:{letterSpacing:"0.02em",fontStyle:"italic"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},infoText:{color:"color-gray-500"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"theme-primary"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"theme-secondary",color:"theme-primary",borderRadius:0},trigger:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:4},thead:{backgroundColor:"theme-secondary",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"0.02em",fontStyle:"italic"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"0.02em"}}},avatar:{views:{container:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",borderRadius:4},title:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"italic"},description:{color:"color-gray-500",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:0,views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:0},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Helvetica Now Display', 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"theme-secondary",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"black",typeCase:"uppercase",typeStyle:"italic",letterSpacing:"0.02em",accentTreatment:"flat",signatureMotif:"▶",density:"tight",surfaceTone:"mono",cardRadius:4,pillRadius:0,badgeRadius:0,voice:"athletic-bold"}},notion:{metadata:{id:"notion",label:"Notion",sourcePath:"design.md/html/notion.html",sourceTitle:"Design System Inspiration of Notion",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"]},theme:{primary:"#5645d4",secondary:"#ff64c8",success:"#1aae39",warning:"#dd5b00",error:"#ff64c8",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#5645d4","primary-pressed":"#4534b3","primary-deep":"#3a2a99","on-primary":"#ffffff","brand-navy":"#0a1530","brand-navy-deep":"#070f24","link-blue":"#0075de","brand-pink":"#ff64c8","brand-orange":"#dd5b00","brand-purple":"#7b3ff2","brand-purple-800":"#391c57","brand-orange-deep":"#793400","brand-green":"#1aae39","brand-yellow":"#f5d75e","brand-teal":"#2a9d99","tint-peach":"#ffe8d4","tint-rose":"#fde0ec","tint-mint":"#d9f3e1","tint-lavender":"#e6e0f5","tint-sky":"#dcecfa","tint-yellow":"#fef7d6","tint-yellow-bold":"#f9e79f","tint-cream":"#f8f5e8",canvas:"#ffffff",surface:"#f6f5f4","surface-soft":"#fafaf9",hairline:"#e5e3df","hairline-soft":"#ede9e4","hairline-strong":"#c8c4be","hairline-dark":"rgba(255,255,255,0.16)","ink-deep":"#000000",ink:"#1a1a1a",charcoal:"#37352f",slate:"#5d5b54",steel:"#787671",stone:"#a4a097",muted:"#bbb8b1","on-dark":"#ffffff","on-dark-muted":"#a4a097"},colors:[{name:"primary",value:"#5645d4",role:"primary"},{name:"primary-pressed",value:"#4534b3",role:"primary pressed"},{name:"primary-deep",value:"#3a2a99",role:"primary deep"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"brand-navy",value:"#0a1530",role:"brand navy"},{name:"brand-navy-deep",value:"#070f24",role:"brand navy deep"},{name:"link-blue",value:"#0075de",role:"link blue"},{name:"brand-pink",value:"#ff64c8",role:"brand pink"},{name:"brand-orange",value:"#dd5b00",role:"brand orange"},{name:"brand-purple",value:"#7b3ff2",role:"brand purple"},{name:"brand-purple-800",value:"#391c57",role:"brand purple 800"},{name:"brand-orange-deep",value:"#793400",role:"brand orange deep"},{name:"brand-green",value:"#1aae39",role:"brand green"},{name:"brand-yellow",value:"#f5d75e",role:"brand yellow"},{name:"brand-teal",value:"#2a9d99",role:"brand teal"},{name:"tint-peach",value:"#ffe8d4",role:"tint peach"},{name:"tint-rose",value:"#fde0ec",role:"tint rose"},{name:"tint-mint",value:"#d9f3e1",role:"tint mint"},{name:"tint-lavender",value:"#e6e0f5",role:"tint lavender"},{name:"tint-sky",value:"#dcecfa",role:"tint sky"},{name:"tint-yellow",value:"#fef7d6",role:"tint yellow"},{name:"tint-yellow-bold",value:"#f9e79f",role:"tint yellow bold"},{name:"tint-cream",value:"#f8f5e8",role:"tint cream"},{name:"canvas",value:"#ffffff",role:"canvas"},{name:"surface",value:"#f6f5f4",role:"surface"},{name:"surface-soft",value:"#fafaf9",role:"surface soft"},{name:"hairline",value:"#e5e3df",role:"hairline"},{name:"hairline-soft",value:"#ede9e4",role:"hairline soft"},{name:"hairline-strong",value:"#c8c4be",role:"hairline strong"},{name:"hairline-dark",value:"rgba(255,255,255,0.16)",role:"hairline dark"},{name:"ink-deep",value:"#000000",role:"ink deep"},{name:"ink",value:"#1a1a1a",role:"ink"},{name:"charcoal",value:"#37352f",role:"charcoal"},{name:"slate",value:"#5d5b54",role:"slate"},{name:"steel",value:"#787671",role:"steel"},{name:"stone",value:"#a4a097",role:"stone"},{name:"muted",value:"#bbb8b1",role:"muted"},{name:"on-dark",value:"#ffffff",role:"on dark"},{name:"on-dark-muted",value:"#a4a097",role:"on dark muted"}],typography:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["14px","15px","12px","80px","18px","48px","16px","13px","22px","11px","56px","36px","10px","20px","28px"],fontWeights:["500","600","400","700"],lineHeights:["1.55","1","1.05","1.15","1.4","1.3","1.5","1.1","1.2","1.35"]},spacing:["2px","4px","5px","6px","8px","10px","11px","12px","14px","15px","16px","18px","20px","24px","31px","32px","40px","44px","48px","56px"],radii:["6px","8px","16px","50%","12px","9999px","4px","3px"],shadows:["rgba(15, 15, 15, 0.20) 0px 24px 48px -8px","rgba(15,15,15,0.04) 0px 1px 2px 0px","rgba(15,15,15,0.08) 0px 4px 12px 0px","rgba(15,15,15,0.20) 0px 24px 48px -8px","rgba(15,15,15,0.16) 0px 16px 48px -8px"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,borderColor:"theme-primary",letterSpacing:"0em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:4,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",letterSpacing:"0em",textTransform:"none",fontWeight:400,fontStyle:"normal"},text:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(15, 15, 15, 0.20) 0px 24px 48px -8px"},header:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontStyle:"normal",letterSpacing:"0em"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontStyle:"normal",letterSpacing:"0em"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"0em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"8px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"12px"},trigger:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:10},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"0em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"0em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:10},title:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:400,letterSpacing:"0em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"8px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"12px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"regular",typeCase:"normal",typeStyle:"normal",letterSpacing:"0em",accentTreatment:"flat",signatureMotif:"◇",density:"comfortable",surfaceTone:"paper",cardRadius:10,pillRadius:9999,badgeRadius:4,voice:"thoughtful-quiet"}},revolut:{metadata:{id:"revolut",label:"Revolut",sourcePath:"design.md/html/revolut.html",sourceTitle:"Design System Inspiration of Revolut",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"]},theme:{primary:"#1361F0",secondary:"#101D31",success:"#16a34a",warning:"#d97706",error:"#e61e49",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{primary:"#494fdf","primary-bright":"#4f55f1","primary-deep":"#3a40c4","on-primary":"#ffffff",ink:"#191c1f",body:"#1f2226",charcoal:"#3a3d40",mute:"#505a63",ash:"#5c5e60",stone:"#8d969e",faint:"#c9c9cd","on-dark":"#ffffff","on-dark-mute":"rgba(255,255,255,0.72)","canvas-light":"#ffffff","canvas-dark":"#000000","surface-soft":"#f4f4f4","surface-card":"#ffffff","surface-deep":"#0a0a0a","surface-elevated":"#16181a","hairline-light":"#e2e2e7","hairline-dark":"rgba(255,255,255,0.12)","hairline-strong":"#191c1f","divider-soft":"rgba(255,255,255,0.06)",teal:"#00a87e","light-blue":"#007bc2","blue-link":"#376cd5","light-green":"#428619","green-text":"#006400",yellow:"#b09000",warning:"#ec7e00",pink:"#e61e49",danger:"#e23b4a","deep-red":"#8b0000",brown:"#936d62","font-display":"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif","font-ui":"'Inter', system-ui, sans-serif"},colors:[{name:"primary",value:"#1361F0",role:"primary"},{name:"primary-bright",value:"#4f55f1",role:"primary bright"},{name:"primary-deep",value:"#3a40c4",role:"primary deep"},{name:"on-primary",value:"#ffffff",role:"on primary"},{name:"ink",value:"#191c1f",role:"ink"},{name:"body",value:"#1f2226",role:"body"},{name:"charcoal",value:"#3a3d40",role:"charcoal"},{name:"mute",value:"#505a63",role:"mute"},{name:"ash",value:"#5c5e60",role:"ash"},{name:"stone",value:"#8d969e",role:"stone"},{name:"faint",value:"#c9c9cd",role:"faint"},{name:"on-dark",value:"#ffffff",role:"on dark"},{name:"on-dark-mute",value:"rgba(255,255,255,0.72)",role:"on dark mute"},{name:"canvas-light",value:"#ffffff",role:"canvas light"},{name:"canvas-dark",value:"#000000",role:"canvas dark"},{name:"surface-soft",value:"#f4f4f4",role:"surface soft"},{name:"surface-card",value:"#ffffff",role:"surface card"},{name:"surface-deep",value:"#0a0a0a",role:"surface deep"},{name:"surface-elevated",value:"#16181a",role:"surface elevated"},{name:"hairline-light",value:"#e2e2e7",role:"hairline light"},{name:"hairline-dark",value:"rgba(255,255,255,0.12)",role:"hairline dark"},{name:"hairline-strong",value:"#191c1f",role:"hairline strong"},{name:"divider-soft",value:"rgba(255,255,255,0.06)",role:"divider soft"},{name:"teal",value:"#00a87e",role:"teal"},{name:"light-blue",value:"#007bc2",role:"light blue"},{name:"blue-link",value:"#376cd5",role:"blue link"},{name:"light-green",value:"#428619",role:"light green"},{name:"green-text",value:"#006400",role:"green text"},{name:"yellow",value:"#b09000",role:"yellow"},{name:"warning",value:"#d97706",role:"warning"},{name:"pink",value:"#e61e49",role:"pink"},{name:"danger",value:"#e23b4a",role:"danger"},{name:"deep-red",value:"#8b0000",role:"deep red"},{name:"brown",value:"#936d62",role:"brown"}],typography:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","14px","18px","12px","96px","56px","24px","13px","32px","11px","64px","44px"],fontWeights:["600","500","700"],lineHeights:["1.5","1.0","1.56","1.4","1.33","1.19","1.6","1.2","1.35"]},spacing:["4px","6px","8px","10px","12px","13px","14px","16px","20px","24px","27px","28px","32px","36px","40px","48px","56px","64px","80px","88px"],radii:["9999px","20px","28px","36px","24px","12px","3px"],shadows:[]},components:{button:{variant:"filled",size:"md",shape:"pill",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:9999,fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",letterSpacing:"-0.02em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:20,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.08)"},header:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.02em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:9999},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:9999}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"24px"},trigger:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:20},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.02em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.02em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:20},title:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif",fontWeight:700,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"24px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"24px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Aeonik Pro', 'Inter', system-ui, -apple-system, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"pill",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.02em",accentTreatment:"gradient",signatureMotif:"★",density:"comfortable",surfaceTone:"glass",cardRadius:20,pillRadius:9999,badgeRadius:9999,voice:"bold-fintech"}},shopify:{metadata:{id:"shopify",label:"Shopify",sourcePath:"design.md/html/shopify.html",sourceTitle:"Design System Inspired by Shopify",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"]},theme:{primary:"#008060",secondary:"#202223",success:"#008060",warning:"#FFC453",error:"#D72C0D",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#FFFFFF"},tokens:{rawCssVars:{white:"#FFFFFF",black:"#000000","neon-green":"#36F4A4",aloe:"#C1FBD4",pistachio:"#D4F9E0","deep-teal":"#02090A","dark-forest":"#061A1C",forest:"#102620","card-border":"#1E2C31","shade-30":"#D4D4D8",muted:"#A1A1AA","shade-50":"#71717A","shade-60":"#52525B","shade-70":"#3F3F46","light-border":"#E4E4E7","link-muted":"#9797A2","shadow-card":"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},colors:[{name:"white",value:"#FFFFFF",role:"white"},{name:"black",value:"#000000",role:"black"},{name:"neon-green",value:"#36F4A4",role:"neon green"},{name:"aloe",value:"#C1FBD4",role:"aloe"},{name:"pistachio",value:"#D4F9E0",role:"pistachio"},{name:"deep-teal",value:"#02090A",role:"deep teal"},{name:"dark-forest",value:"#061A1C",role:"dark forest"},{name:"forest",value:"#102620",role:"forest"},{name:"card-border",value:"#1E2C31",role:"card border"},{name:"shade-30",value:"#D4D4D8",role:"shade 30"},{name:"muted",value:"#A1A1AA",role:"muted"},{name:"shade-50",value:"#71717A",role:"shade 50"},{name:"shade-60",value:"#52525B",role:"shade 60"},{name:"shade-70",value:"#3F3F46",role:"shade 70"},{name:"light-border",value:"#E4E4E7",role:"light border"},{name:"link-muted",value:"#9797A2",role:"link muted"},{name:"shadow-card",value:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset",role:"shadow card"}],typography:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["20px","16px","14px","80px","48px","18px","12px","13px","11px","55px","32px","28px","24px","36px"],fontWeights:["400","600","500","330","360","550","700"],lineHeights:["1.5","0.96","1.14","1.56","1.16","1.28","1.4","1.49","1.2","1.35"]},spacing:["4px","8px","10px","12px","14px","16px","20px","24px","28px","32px","40px","48px","64px","72px","80px","100px"],radii:["9999px","8px","4px","12px","2px","3px"],shadows:["rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset","0 0 0 2px var(--neon-green)","var(--shadow-card)","rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"color-aloe",color:"color-white",borderColor:"color-aloe",borderRadius:6,fontFamily:"'Inter', Helvetica, Arial, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},header:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-muted",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-muted"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-muted"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-muted"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-muted",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Inter', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-white",color:"color-black",borderRadius:"24px"},trigger:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},content:{color:"color-muted"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-white",color:"color-black"},th:{color:"color-muted",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-muted",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-muted",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"16px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-muted",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"24px"},item:{color:"color-muted"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-muted"},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},description:{color:"color-muted"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"commerce-friendly"}},spacex:{metadata:{id:"spacex",label:"SpaceX",sourcePath:"design.md/html/spaceX.html",sourceTitle:"Design System Preview: SpaceX (Light)",defaultAppearance:"dark",googleFontLinks:["https://fonts.googleapis.com/css2?family=Share+Tech&display=swap"]},theme:{primary:"color-black",secondary:"#a3a3a3",success:"#4ade80",warning:"#fbbf24",error:"#ef4444",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{black:"#000000",spectral:"#f0f0fa","ghost-bg":"rgba(240,240,250,0.1)","ghost-border":"rgba(240,240,250,0.35)",overlay:"rgba(0,0,0,0.5)",font:"'Share Tech', Arial, Verdana, sans-serif"},colors:[{name:"black",value:"#000000",role:"black"},{name:"spectral",value:"#f0f0fa",role:"spectral"},{name:"ghost-bg",value:"rgba(240,240,250,0.1)",role:"ghost bg"},{name:"ghost-border",value:"rgba(240,240,250,0.35)",role:"ghost border"},{name:"overlay",value:"rgba(0,0,0,0.5)",role:"overlay"}],typography:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","13px","12px","48px","10px","32px","11px","9px","14px"],fontWeights:["700","400","600"],lineHeights:["1.50","1.00","1.70","1.2","1.35","1.4"]},spacing:["8px","10px","12px","14px","16px","18px","20px","24px","28px","32px","48px","60px","64px","72px","80px","120px"],radii:["32px","4px","2px","3px"],shadows:[]},components:{button:{variant:"ghost",size:"md",shape:"square",color:"theme-primary",textColor:"theme-primary",views:{container:{borderRadius:0,fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,borderColor:"color-gray-200",backgroundColor:"color-gray-50",letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal"},content:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",color:"color-white",borderColor:"color-gray-50",borderRadius:0,fontFamily:"'Share Tech', Arial, Verdana, sans-serif",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:800,fontStyle:"normal"},text:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.08)"},header:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-200",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontStyle:"normal",letterSpacing:"0.06em"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontStyle:"normal",letterSpacing:"0.06em"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},helperText:{},text:{letterSpacing:"0.06em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"color-gray-200"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"color-gray-200"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-200"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-200",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},activeText:{color:"theme-primary"},content:{color:"theme-primary"},container:{borderRadius:"32px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"theme-primary",borderRadius:0},trigger:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},content:{color:"color-gray-200"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:2},thead:{backgroundColor:"color-gray-50",color:"theme-primary"},th:{color:"color-gray-200",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"0.06em",fontStyle:"normal"},caption:{color:"color-gray-200",fontStyle:"italic",letterSpacing:"0.06em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:2},title:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase",fontStyle:"normal"},description:{color:"color-gray-200",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:0,views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-200",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:0},item:{color:"color-gray-200"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},eyebrow:{color:"color-gray-200"},title:{color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},description:{color:"color-gray-200"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'Share Tech', Arial, Verdana, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"black",typeCase:"uppercase",typeStyle:"normal",letterSpacing:"0.06em",accentTreatment:"glow",signatureMotif:"⚡",density:"tight",surfaceTone:"mono",cardRadius:2,pillRadius:0,badgeRadius:0,voice:"technical-mission"}},spotify:{metadata:{id:"spotify",label:"Spotify",sourcePath:"design.md/html/spotify.html",sourceTitle:"Design System Inspired by Shopify",defaultAppearance:"dark",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"]},theme:{primary:"#1DB954",secondary:"#C1FBD4",success:"#1DB954",warning:"#D4F9E0",error:"#D4D4D8",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#000000"},tokens:{rawCssVars:{white:"#FFFFFF",black:"#000000","spotify-green":"#1DB954",aloe:"#C1FBD4",pistachio:"#D4F9E0","deep-teal":"#02090A","dark-forest":"#061A1C",forest:"#102620","card-border":"#1E2C31","shade-30":"#D4D4D8",muted:"#A1A1AA","shade-50":"#71717A","shade-60":"#52525B","shade-70":"#3F3F46","light-border":"#E4E4E7","link-muted":"#9797A2","shadow-card":"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},colors:[{name:"white",value:"#FFFFFF",role:"white"},{name:"black",value:"#000000",role:"black"},{name:"spotify-green",value:"#1DB954",role:"neon green"},{name:"aloe",value:"#C1FBD4",role:"aloe"},{name:"pistachio",value:"#D4F9E0",role:"pistachio"},{name:"deep-teal",value:"#02090A",role:"deep teal"},{name:"dark-forest",value:"#061A1C",role:"dark forest"},{name:"forest",value:"#102620",role:"forest"},{name:"card-border",value:"#1E2C31",role:"card border"},{name:"shade-30",value:"#D4D4D8",role:"shade 30"},{name:"muted",value:"#A1A1AA",role:"muted"},{name:"shade-50",value:"#71717A",role:"shade 50"},{name:"shade-60",value:"#52525B",role:"shade 60"},{name:"shade-70",value:"#3F3F46",role:"shade 70"},{name:"light-border",value:"#E4E4E7",role:"light border"},{name:"link-muted",value:"#9797A2",role:"link muted"},{name:"shadow-card",value:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset",role:"shadow card"}],typography:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["20px","16px","14px","80px","48px","18px","12px","13px","11px","55px","32px","28px","24px","36px"],fontWeights:["400","600","500","330","360","550","700"],lineHeights:["1.5","0.96","1.14","1.56","1.16","1.28","1.4","1.49","1.2","1.35"]},spacing:["4px","8px","10px","12px","14px","16px","20px","24px","28px","32px","40px","48px","64px","72px","80px","100px"],radii:["9999px","8px","4px","12px","2px","3px"],shadows:["rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset","0 0 0 2px var(--neon-green)","var(--shadow-card)","rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"]},components:{button:{variant:"filled",size:"md",shape:"pill",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,borderColor:"theme-primary",letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:9999,fontFamily:"'Inter', Helvetica, Arial, sans-serif",letterSpacing:"-0.02em",textTransform:"none",fontWeight:800,fontStyle:"normal"},text:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:8,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},header:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.02em"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:16,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.1) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 2px 2px 0px, rgba(0,0,0,0.1) 0px 4px 4px 0px, rgba(0,0,0,0.1) 0px 8px 8px 0px, rgba(255,255,255,0.03) 0px 1px 0px 0px inset"},field:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.02em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:9999},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:9999}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'Inter', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"color-black"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:"24px"},trigger:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:8},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.02em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.02em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:8},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif",fontWeight:800,letterSpacing:"-0.02em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"16px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'Inter', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"24px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"pill",typeWeight:"black",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.02em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"matte",cardRadius:8,pillRadius:9999,badgeRadius:9999,voice:"rhythmic-vibrant"}},stripe:{metadata:{id:"stripe",label:"Stripe",sourcePath:"design.md/html/stripe.html",sourceTitle:"Design System Preview: Stripe (Light)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;700&display=swap"]},theme:{primary:"#635BFF",secondary:"#f96bee",success:"#15be53",warning:"#9b6829",error:"#ea2261",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#ffffff"},tokens:{rawCssVars:{purple:"#533afd","purple-hover":"#4434d4","purple-deep":"#2e2b8c","purple-light":"#b9b9f9","purple-mid":"#665efd",navy:"#061b31","dark-navy":"#0d253d","brand-dark":"#1c1e54",white:"#ffffff",ruby:"#ea2261",magenta:"#f96bee","magenta-light":"#ffd7ef",success:"#15be53","success-text":"#108c3d",lemon:"#9b6829",slate:"#64748d","dark-slate":"#273951",border:"#e5edf5","border-purple":"#b9b9f9","border-soft":"#d6d9fc","shadow-blue":"rgba(50,50,93,0.25)","shadow-dark-blue":"rgba(3,3,39,0.25)","shadow-black":"rgba(0,0,0,0.1)","shadow-ambient":"rgba(23,23,23,0.08)","shadow-soft":"rgba(23,23,23,0.06)","shadow-card":"rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px","shadow-ambient-card":"rgba(23,23,23,0.08) 0px 15px 35px 0px","shadow-subtle":"rgba(23,23,23,0.06) 0px 3px 6px 0px","font-primary":"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif","font-mono":"'Source Code Pro', SFMono-Regular, ui-monospace, Menlo, monospace"},colors:[{name:"purple",value:"#533afd",role:"purple"},{name:"purple-hover",value:"#4434d4",role:"purple hover"},{name:"purple-deep",value:"#2e2b8c",role:"purple deep"},{name:"purple-light",value:"#b9b9f9",role:"purple light"},{name:"purple-mid",value:"#665efd",role:"purple mid"},{name:"navy",value:"#061b31",role:"navy"},{name:"dark-navy",value:"#0d253d",role:"dark navy"},{name:"brand-dark",value:"#1c1e54",role:"brand dark"},{name:"white",value:"#ffffff",role:"white"},{name:"ruby",value:"#ea2261",role:"ruby"},{name:"magenta",value:"#f96bee",role:"magenta"},{name:"magenta-light",value:"#ffd7ef",role:"magenta light"},{name:"success",value:"#15be53",role:"success"},{name:"success-text",value:"#108c3d",role:"success text"},{name:"lemon",value:"#9b6829",role:"lemon"},{name:"slate",value:"#64748d",role:"slate"},{name:"dark-slate",value:"#273951",role:"dark slate"},{name:"border",value:"#e5edf5",role:"border"},{name:"border-purple",value:"#b9b9f9",role:"border purple"},{name:"border-soft",value:"#d6d9fc",role:"border soft"},{name:"shadow-blue",value:"rgba(50,50,93,0.25)",role:"shadow blue"},{name:"shadow-dark-blue",value:"rgba(3,3,39,0.25)",role:"shadow dark blue"},{name:"shadow-black",value:"rgba(0,0,0,0.1)",role:"shadow black"},{name:"shadow-ambient",value:"rgba(23,23,23,0.08)",role:"shadow ambient"},{name:"shadow-soft",value:"rgba(23,23,23,0.06)",role:"shadow soft"},{name:"shadow-card",value:"rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px",role:"shadow card"},{name:"shadow-ambient-card",value:"rgba(23,23,23,0.08) 0px 15px 35px 0px",role:"shadow ambient card"},{name:"shadow-subtle",value:"rgba(23,23,23,0.06) 0px 3px 6px 0px",role:"shadow subtle"}],typography:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",monoFamily:"'Source Code Pro', SFMono-Regular, ui-monospace, Menlo, monospace",fontSizes:["16px","14px","48px","18px","12px","32px","13px","11px","10px","22px"],fontWeights:["100 900","300","400","500","700","600"],lineHeights:["1.40","1.15","1.10","1.50","1.2","1.35","1.4"]},spacing:["1px","6px","8px","10px","12px","14px","16px","20px","24px","28px","32px","48px","64px","72px","80px","96px"],radii:["0 0 6px 6px","4px","6px","2px","3px"],shadows:["rgba(50,50,93,0.25)","rgba(3,3,39,0.25)","rgba(0,0,0,0.1)","rgba(23,23,23,0.08)","rgba(23,23,23,0.06)","rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px","rgba(23,23,23,0.08) 0px 15px 35px 0px","rgba(23,23,23,0.06) 0px 3px 6px 0px","var(--shadow-subtle)","var(--shadow-card)","0 0 0 1px theme-primary","0 0 0 1px var(--ruby)"]},components:{button:{variant:"filled",size:"md",shape:"rounded",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:9999,fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:6,fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",letterSpacing:"-0.022em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:12,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(23,23,23,0.06) 0px 3px 6px 0px"},header:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px theme-primary"},field:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px theme-primary"},field:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontStyle:"normal",letterSpacing:"-0.022em"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:10,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px theme-primary"},field:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.022em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:4},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:4}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"4px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-white",color:"color-black",borderRadius:"6px"},trigger:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:12},thead:{backgroundColor:"color-white",color:"color-black"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'Source Code Pro', SFMono-Regular, ui-monospace, Menlo, monospace",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"-0.022em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.022em"}}},avatar:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",borderRadius:12},title:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif",fontWeight:700,letterSpacing:"-0.022em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"6px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:"6px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'sohne-var', 'SF Pro Display', -apple-system, system-ui, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.022em",accentTreatment:"gradient",signatureMotif:"↗",density:"comfortable",surfaceTone:"glass",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"refined-fintech"}},tesla:{metadata:{id:"tesla",label:"Tesla",sourcePath:"design.md/html/tesla.html",sourceTitle:"Design System Inspired by Tesla",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap"]},theme:{primary:"#3E6AE1",secondary:"#171A20",success:"#3E6AE1",warning:"#5C5E62",error:"#171A20",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"#FFFFFF"},tokens:{rawCssVars:{"electric-blue":"#3E6AE1","pure-white":"#FFFFFF","carbon-dark":"#171A20",graphite:"#393C41",pewter:"#5C5E62","silver-fog":"#8E8E8E","cloud-gray":"#EEEEEE","pale-silver":"#D0D1D2","light-ash":"#F4F4F4","frosted-glass":"rgba(255,255,255,0.75)",overlay:"rgba(128,128,128,0.65)","subtle-shadow":"rgba(0,0,0,0.05)","font-display":"'Inter', -apple-system, Arial, sans-serif","font-text":"'Inter', -apple-system, Arial, sans-serif"},colors:[{name:"electric-blue",value:"#3E6AE1",role:"electric blue"},{name:"pure-white",value:"#FFFFFF",role:"pure white"},{name:"carbon-dark",value:"#171A20",role:"carbon dark"},{name:"graphite",value:"#393C41",role:"graphite"},{name:"pewter",value:"#5C5E62",role:"pewter"},{name:"silver-fog",value:"#8E8E8E",role:"silver fog"},{name:"cloud-gray",value:"#EEEEEE",role:"cloud gray"},{name:"pale-silver",value:"#D0D1D2",role:"pale silver"},{name:"light-ash",value:"#F4F4F4",role:"light ash"},{name:"frosted-glass",value:"rgba(255,255,255,0.75)",role:"frosted glass"},{name:"overlay",value:"rgba(128,128,128,0.65)",role:"overlay"},{name:"subtle-shadow",value:"rgba(0,0,0,0.05)",role:"subtle shadow"}],typography:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["14px","40px","28px","13px","12px","11px","17px","16px"],fontWeights:["400","500","700","600"],lineHeights:["1.43","48px","20px","1.2","1.3","36px","1.35","1.4"]},spacing:["4px","6px","8px","10px","12px","14px","16px","20px","24px","32px","40px","48px","56px","60px","64px","80px","100px"],radii:["4px","4px 4px 0 0","0 0 4px 4px","12px","3px"],shadows:["rgba(0,0,0,0.05)","0 1px 0 var(--pewter)"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:0,fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,borderColor:"theme-primary",letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.08em",textTransform:"uppercase",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:0,fontFamily:"'Inter', -apple-system, Arial, sans-serif",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:300,fontStyle:"normal"},text:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:0,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.05)"},header:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:600,borderColor:"color-gray-200"},content:{color:"theme-warning",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontStyle:"normal",letterSpacing:"0.02em"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontStyle:"normal",letterSpacing:"0.02em"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"none"},field:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},helperText:{},text:{letterSpacing:"0.02em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"theme-warning"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},infoText:{color:"theme-warning"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"color-black"},valueLabel:{color:"theme-warning"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"theme-warning",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"'Inter', -apple-system, Arial, sans-serif"},activeText:{color:"theme-primary"},content:{color:"color-black"},container:{borderRadius:"4px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"color-black",borderRadius:0},trigger:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},content:{color:"theme-warning"}}},table:{views:{table:{backgroundColor:"color-white",color:"color-black",borderColor:"color-gray-200",borderRadius:0},thead:{backgroundColor:"color-gray-50",color:"color-black"},th:{color:"theme-warning",borderColor:"color-gray-200",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"color-black",borderColor:"color-gray-200",letterSpacing:"0.02em",fontStyle:"normal"},caption:{color:"theme-warning",fontStyle:"italic",letterSpacing:"0.02em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black",borderRadius:"50%"},fallback:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:0},title:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif",fontWeight:300,letterSpacing:"0.02em",textTransform:"uppercase",fontStyle:"normal"},description:{color:"theme-warning",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"4px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"color-black"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"theme-warning",fontFamily:"'Inter', -apple-system, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",borderRadius:0},item:{color:"theme-warning"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},eyebrow:{color:"theme-warning"},title:{color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},description:{color:"theme-warning"}}},page:{views:{container:{backgroundColor:"color-white",color:"color-black",fontFamily:"'Inter', -apple-system, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"color-black"}}}},personality:{cornerStyle:"sharp",typeWeight:"light",typeCase:"uppercase",typeStyle:"normal",letterSpacing:"0.02em",accentTreatment:"flat",signatureMotif:"▲",density:"spacious",surfaceTone:"mono",cardRadius:0,pillRadius:0,badgeRadius:0,voice:"futurist-clean"}},uber:{metadata:{id:"uber",label:"Uber",sourcePath:"design.md/html/uber.html",sourceTitle:"Design System Preview: Uber (Light)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700&display=swap"]},theme:{primary:"color-black",secondary:"#efefef",success:"#06C167",warning:"#e2e2e2",error:"#000000",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{"color-black":"#000000","color-white":"#ffffff","color-hover-gray":"#e2e2e2","color-hover-light":"#f3f3f3","color-chip-gray":"#efefef","color-body-gray":"#4b4b4b","color-muted-gray":"#afafaf","shadow-card":"rgba(0, 0, 0, 0.12) 0px 4px 16px 0px","shadow-medium":"rgba(0, 0, 0, 0.16) 0px 4px 16px 0px","shadow-float":"rgba(0, 0, 0, 0.16) 0px 2px 8px 0px","shadow-press":"rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset","font-display":"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif","font-body":"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif","bg-page":"#ffffff","bg-card":"#ffffff","bg-nav":"rgba(255,255,255,0.92)","text-primary":"#000000","text-secondary":"#4b4b4b","text-tertiary":"#afafaf","border-color":"#efefef","section-label-color":"#000000"},colors:[{name:"color-black",value:"#000000",role:"color black"},{name:"color-white",value:"#ffffff",role:"color white"},{name:"color-hover-gray",value:"#e2e2e2",role:"color hover gray"},{name:"color-hover-light",value:"#f3f3f3",role:"color hover light"},{name:"color-chip-gray",value:"#efefef",role:"color chip gray"},{name:"color-body-gray",value:"#4b4b4b",role:"color body gray"},{name:"color-muted-gray",value:"#afafaf",role:"color muted gray"},{name:"shadow-card",value:"rgba(0, 0, 0, 0.12) 0px 4px 16px 0px",role:"shadow card"},{name:"shadow-medium",value:"rgba(0, 0, 0, 0.16) 0px 4px 16px 0px",role:"shadow medium"},{name:"shadow-float",value:"rgba(0, 0, 0, 0.16) 0px 2px 8px 0px",role:"shadow float"},{name:"shadow-press",value:"rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset",role:"shadow press"},{name:"bg-page",value:"#ffffff",role:"bg page"},{name:"bg-card",value:"#ffffff",role:"bg card"},{name:"bg-nav",value:"rgba(255,255,255,0.92)",role:"bg nav"},{name:"text-primary",value:"#000000",role:"text primary"},{name:"text-secondary",value:"#4b4b4b",role:"text secondary"},{name:"text-tertiary",value:"#afafaf",role:"text tertiary"},{name:"border-color",value:"#efefef",role:"border color"},{name:"section-label-color",value:"#000000",role:"section label color"}],typography:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",monoFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSizes:["16px","18px","14px","64px","20px","12px","36px","13px","24px","28px"],fontWeights:["700","500","400","600"],lineHeights:["1.50","1.10","1.22","1.33","2.0","1.2","1.35","1.4"]},spacing:["8px","10px","12px","14px","16px","20px","24px","28px","32px","36px","40px","50px","60px","64px","80px","100px","120px","140px"],radii:["8px","999px","12px","16px","4px","3px"],shadows:["rgba(0, 0, 0, 0.12) 0px 4px 16px 0px","rgba(0, 0, 0, 0.16) 0px 4px 16px 0px","rgba(0, 0, 0, 0.16) 0px 2px 8px 0px","rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset","var(--shadow-card)","var(--shadow-float)","var(--shadow-medium)","0 0 0 1px color-black","rgba(0,0,0,0.12) 0px 4px 16px 0px","rgba(0,0,0,0.16) 0px 4px 16px 0px","rgba(0,0,0,0.16) 0px 2px 8px 0px","rgba(0,0,0,0.08) 0px 0px 0px 999px inset"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:0,fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"pill",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:0,fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",letterSpacing:"-0.01em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"square",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:4,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.12) 0px 4px 16px 0px"},header:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600,borderColor:"theme-warning"},content:{color:"color-gray-500",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},footer:{borderColor:"theme-warning"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px color-black"},field:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px color-black"},field:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontStyle:"normal",letterSpacing:"-0.01em"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"0 0 0 1px color-black"},field:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.01em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"theme-warning",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"theme-warning",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"theme-warning"},circle:{backgroundColor:"color-white"},label:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"theme-warning"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"pill",views:{headerTabs:{borderColor:"theme-warning"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"theme-primary"},title:{fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},activeText:{color:"color-white"},content:{color:"theme-primary"},container:{borderRadius:"9999px"}}},accordion:{views:{container:{borderColor:"theme-warning",backgroundColor:"color-white",color:"theme-primary",borderRadius:0},trigger:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"theme-warning",borderRadius:4},thead:{backgroundColor:"color-white",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"theme-warning",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"theme-warning"},td:{color:"theme-primary",borderColor:"theme-warning",letterSpacing:"-0.01em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.01em"}}},avatar:{views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"}}},alert:{views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",borderRadius:4},title:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:700,letterSpacing:"-0.01em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-primary"},label:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"}}},progress:{color:"theme-primary",backgroundColor:"theme-warning",radius:"8px",views:{container:{backgroundColor:"theme-warning",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"theme-warning",views:{container:{borderColor:"theme-warning"},label:{color:"color-gray-500",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary",borderRadius:0},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"},section:{backgroundColor:"color-white",borderColor:"theme-warning"},surface:{backgroundColor:"color-white",borderColor:"theme-warning",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"▶",density:"tight",surfaceTone:"mono",cardRadius:4,pillRadius:0,badgeRadius:0,voice:"motion-utility"}},vercel:{metadata:{id:"vercel",label:"Vercel",sourcePath:"design.md/html/vercel.html",sourceTitle:"Design System Preview: Vercel (Light)",defaultAppearance:"light",googleFontLinks:["https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap"]},theme:{primary:"color-black",secondary:"#0072f5",success:"#0a72ef",warning:"#de1d8d",error:"#ff5b4f",canvas:"color-white",surface:"color-gray-50",text:"color-black",muted:"color-gray-500",border:"color-gray-200",onPrimary:"color-white"},tokens:{rawCssVars:{black:"#171717",white:"#ffffff","gray-50":"#fafafa","gray-100":"#ebebeb","gray-400":"#808080","gray-500":"#666666","gray-600":"#4d4d4d","link-blue":"#0072f5","focus-blue":"hsl(212,100%,48%)","ship-red":"#ff5b4f","preview-pink":"#de1d8d","develop-blue":"#0a72ef","console-blue":"#0070f3","console-purple":"#7928ca","console-pink":"#eb367f","badge-bg":"#ebf5ff","badge-text":"#0068d6","shadow-ring":"rgba(0,0,0,0.08) 0px 0px 0px 1px","shadow-ring-light":"rgb(235,235,235) 0px 0px 0px 1px","shadow-subtle":"rgba(0,0,0,0.04) 0px 2px 2px 0px","shadow-card":"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgb(250,250,250) 0px 0px 0px 1px","shadow-card-full":"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, rgb(250,250,250) 0px 0px 0px 1px","font-sans":"'Geist', system-ui, -apple-system, Arial, sans-serif","font-mono":"'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, monospace"},colors:[{name:"black",value:"#171717",role:"black"},{name:"white",value:"#ffffff",role:"white"},{name:"gray-50",value:"#fafafa",role:"gray 50"},{name:"gray-100",value:"#ebebeb",role:"gray 100"},{name:"gray-400",value:"#808080",role:"gray 400"},{name:"gray-500",value:"#666666",role:"gray 500"},{name:"gray-600",value:"#4d4d4d",role:"gray 600"},{name:"link-blue",value:"#0072f5",role:"link blue"},{name:"focus-blue",value:"hsl(212,100%,48%)",role:"focus blue"},{name:"ship-red",value:"#ff5b4f",role:"ship red"},{name:"preview-pink",value:"#de1d8d",role:"preview pink"},{name:"develop-blue",value:"#0a72ef",role:"develop blue"},{name:"console-blue",value:"#0070f3",role:"console blue"},{name:"console-purple",value:"#7928ca",role:"console purple"},{name:"console-pink",value:"#eb367f",role:"console pink"},{name:"badge-bg",value:"#ebf5ff",role:"badge bg"},{name:"badge-text",value:"#0068d6",role:"badge text"},{name:"shadow-ring",value:"rgba(0,0,0,0.08) 0px 0px 0px 1px",role:"shadow ring"},{name:"shadow-ring-light",value:"rgb(235,235,235) 0px 0px 0px 1px",role:"shadow ring light"},{name:"shadow-subtle",value:"rgba(0,0,0,0.04) 0px 2px 2px 0px",role:"shadow subtle"},{name:"shadow-card",value:"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgb(250,250,250) 0px 0px 0px 1px",role:"shadow card"},{name:"shadow-card-full",value:"rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, rgb(250,250,250) 0px 0px 0px 1px",role:"shadow card full"}],typography:{fontFamily:"var(--font-sans)",monoFamily:"'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, monospace",fontSizes:["16px","14px","48px","20px","12px","32px","13px","11px","10px","36px"],fontWeights:["400","600","500","700"],lineHeights:["1.50","1.00","1.80","1.25","1.2","1.35","1.4"]},spacing:["2px","4px","8px","10px","12px","14px","16px","20px","24px","28px","32px","48px","64px","72px","80px","96px"],radii:["6px","8px","9999px","3px"],shadows:["rgba(0,0,0,0.08) 0px 0px 0px 1px","rgb(235,235,235) 0px 0px 0px 1px","rgba(0,0,0,0.04) 0px 2px 2px 0px","rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgb(250,250,250) 0px 0px 0px 1px","rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, rgb(250,250,250) 0px 0px 0px 1px","var(--shadow-ring)","var(--shadow-ring-light)","var(--shadow-card)","var(--shadow-card-full)","0 0 0 2px var(--focus-blue)","0 0 0 2px var(--ship-red)"]},components:{button:{variant:"filled",size:"md",shape:"square",color:"theme-primary",textColor:"theme-onPrimary",views:{container:{borderRadius:4,fontFamily:"var(--font-sans)",fontWeight:700,borderColor:"theme-primary",letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal",backgroundColor:null},content:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"}}},badge:{variant:"filled",size:"sm",shape:"rounded",views:{container:{backgroundColor:"theme-secondary",color:"color-white",borderColor:"theme-secondary",borderRadius:4,fontFamily:"var(--font-sans)",letterSpacing:"-0.04em",textTransform:"none",fontWeight:700,fontStyle:"normal"},text:{fontFamily:"var(--font-sans)",fontWeight:600}}},card:{variant:"outlined",size:"md",shape:"rounded",views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:4,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},header:{color:"theme-primary",fontFamily:"var(--font-sans)",fontWeight:600,borderColor:"color-gray-200"},content:{color:"color-gray-500",fontFamily:"var(--font-sans)"},footer:{borderColor:"color-gray-200"}}},input:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},field:{color:"theme-primary",fontFamily:"var(--font-sans)",fontStyle:"normal",letterSpacing:"-0.04em"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},helperText:{}}},textarea:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},field:{color:"theme-primary",fontFamily:"var(--font-sans)",fontStyle:"normal",letterSpacing:"-0.04em"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},helperText:{}}},select:{size:"md",shape:"default",variant:"default",views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:2,borderWidth:"1px",borderStyle:"solid",boxShadow:"rgba(0,0,0,0.08) 0px 0px 0px 1px"},field:{color:"theme-primary",fontFamily:"var(--font-sans)"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},helperText:{},text:{letterSpacing:"-0.04em",fontStyle:"normal"}}},checkbox:{size:"md",views:{checkbox:{borderColor:"color-gray-200",backgroundColor:"color-white",_checked:{backgroundColor:"theme-primary",borderColor:"theme-primary"},borderRadius:0},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:0}}},radio:{size:"md",views:{radio:{borderColor:"color-gray-200",backgroundColor:"color-white"},dot:{backgroundColor:"theme-primary"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},infoText:{color:"color-gray-500"},container:{borderRadius:"50%"}}},switch:{size:"sm",views:{slider:{backgroundColor:"color-gray-200"},circle:{backgroundColor:"color-white"},label:{fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},container:{borderRadius:"9999px"}}},slider:{backgroundColor:"theme-primary",views:{track:{backgroundColor:"color-gray-200"},progress:{backgroundColor:"theme-primary"},filledTrack:{backgroundColor:"theme-primary"},thumb:{borderColor:"theme-primary",backgroundColor:"color-white"},label:{color:"theme-primary"},valueLabel:{color:"color-gray-500"}}},tabs:{variant:"underline",views:{headerTabs:{borderColor:"color-gray-200"},tab:{color:"color-gray-500",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},activeTab:{color:"theme-primary",borderColor:"theme-primary",backgroundColor:"transparent"},title:{fontFamily:"var(--font-sans)"},activeText:{color:"theme-primary"},content:{color:"theme-primary"},container:{borderRadius:"6px"}}},accordion:{views:{container:{borderColor:"color-gray-200",backgroundColor:"color-gray-50",color:"theme-primary",borderRadius:"6px"},trigger:{color:"theme-primary",fontFamily:"var(--font-sans)"},content:{color:"color-gray-500"}}},table:{views:{table:{backgroundColor:"color-white",color:"theme-primary",borderColor:"color-gray-200",borderRadius:4},thead:{backgroundColor:"color-gray-50",color:"theme-primary"},th:{color:"color-gray-500",borderColor:"color-gray-200",fontFamily:"'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, monospace",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},tr:{borderColor:"color-gray-200"},td:{color:"theme-primary",borderColor:"color-gray-200",letterSpacing:"-0.04em",fontStyle:"normal"},caption:{color:"color-gray-500",fontStyle:"italic",letterSpacing:"-0.04em"}}},avatar:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"50%"},fallback:{color:"theme-primary",fontFamily:"var(--font-sans)"}}},alert:{views:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",borderRadius:4},title:{color:"theme-primary",fontFamily:"var(--font-sans)",fontWeight:700,letterSpacing:"-0.04em",textTransform:"none",fontStyle:"normal"},description:{color:"color-gray-500",fontFamily:"var(--font-sans)"},icon:{color:"theme-primary"}}},status:{views:{indicator:{backgroundColor:"theme-success"},label:{color:"theme-primary",fontFamily:"var(--font-sans)"}}},progress:{color:"theme-primary",backgroundColor:"color-gray-200",radius:"6px",views:{container:{backgroundColor:"color-gray-200",borderRadius:"9999px"},bar:{backgroundColor:"theme-primary"},text:{color:"theme-primary"}}},loader:{color:"theme-primary"},separator:{color:"color-gray-200",views:{container:{borderColor:"color-gray-200"},label:{color:"color-gray-500",fontFamily:"var(--font-sans)"}}},navigation:{views:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",color:"theme-primary",borderRadius:"6px"},item:{color:"color-gray-500"},activeItem:{color:"theme-primary",borderColor:"theme-primary"}}},hero:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"var(--font-sans)"},eyebrow:{color:"color-gray-500"},title:{color:"theme-primary",fontFamily:"var(--font-sans)"},description:{color:"color-gray-500"}}},page:{views:{container:{backgroundColor:"color-white",color:"theme-primary",fontFamily:"var(--font-sans)"},section:{backgroundColor:"color-white",borderColor:"color-gray-200"},surface:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",color:"theme-primary"}}}},personality:{cornerStyle:"sharp",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.04em",accentTreatment:"flat",signatureMotif:"▲",density:"comfortable",surfaceTone:"mono",cardRadius:4,pillRadius:4,badgeRadius:4,voice:"deploy-geometric"}}},Pc=Object.values(nt),Mn=jc,Uo=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.prototype.toString.call(e)==="[object Object]",at=e=>e,Ne=(...e)=>{const o={};return e.forEach(t=>{Uo(t)&&Object.entries(t).forEach(([n,a])=>{if(a!=null){if(Uo(a)&&Uo(o[n])){o[n]=Ne(o[n],a);return}o[n]=a}})}),o},Wn=e=>{if(Array.isArray(e)||!Uo(e))return e;const o={};for(const[t,n]of Object.entries(e))n!==null&&(o[t]=Uo(n)?Wn(n):n);return o},lt=(e,o)=>{if(!o)return{};const t=o.components[e]||{};return at(Wn(t))},Hn=(e,o,t)=>{const{config:n,...a}=o,i=lt(e,t),c=Ne(i,n||{});return at(Ne(c,a))},jn=h.createContext({isEnabled:!1}),it=({children:e,config:o,configId:t,mode:n})=>{const a=o||(t?nt[t]:null)||Mn,{themeMode:i}=l.useTheme(),c=n??i??a.metadata.defaultAppearance,s=h.useMemo(()=>({config:a,configId:a.metadata.id,isEnabled:!0}),[a]);return r.jsx(jn.Provider,{value:s,children:r.jsx(l.ThemeProvider,{theme:a.theme,mode:c,transparentWrapper:!0,children:r.jsx("div",{"data-design-system":a.metadata.id,"data-appearance":c,style:{display:"contents"},children:e})})})},ur=()=>h.useContext(jn),wo=e=>{const{config:o}=ur();return lt(e,o)},pe=(e,o)=>{const{config:t}=ur();return Hn(e,o,t)},Pn=h.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),Ac=({children:e,value:o})=>r.jsx(Pn.Provider,{value:o,children:e}),An=()=>{const e=h.useContext(Pn);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},Vc=({value:e,children:o,isDisabled:t=!1,views:n,...a})=>{var p;const{isItemExpanded:i,baseId:c}=An(),s=wo("accordion"),d=Ne({item:(p=s.views)==null?void 0:p.container},n),g=i(e),f=`${c}-trigger-${e}`,m=`${c}-content-${e}`;return r.jsx(l.View,{borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",overflow:"hidden",opacity:t?.5:1,pointerEvents:t?"none":"auto","data-state":g?"open":"closed","data-disabled":t?"":void 0,...d==null?void 0:d.item,...a,children:h.Children.map(o,u=>h.isValidElement(u)?h.cloneElement(u,{...u.props,value:e,isExpanded:g,isDisabled:t,triggerId:f,contentId:m}):u)})},Ec=({children:e,value:o,isExpanded:t,isDisabled:n,triggerId:a,contentId:i,views:c,asChild:s=!1,...d})=>{var y;const{toggleItem:g}=An(),f=wo("accordion"),m=Ne({container:(y=f.views)==null?void 0:y.trigger},c),u={id:a,"aria-expanded":t,"aria-controls":i,"aria-disabled":n,"data-state":t?"open":"closed","data-disabled":n?"":void 0,onClick:()=>{o&&!n&&g(o)},padding:16,cursor:n?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",width:"100%",style:{backgroundColor:"transparent"},...m==null?void 0:m.container,...d};if(s&&h.isValidElement(e)){const k=h.Children.only(e);return h.cloneElement(k,{...u,...k.props})}return r.jsxs(l.Horizontal,{...u,children:[e,r.jsx(l.View,{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:t?"rotate(180deg)":"rotate(0deg)",...m==null?void 0:m.icon,children:r.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"})})})]})},Dc=({children:e,isExpanded:o,isDisabled:t,triggerId:n,contentId:a,views:i,...c})=>{var w;const s=wo("accordion"),d=Ne({container:(w=s.views)==null?void 0:w.content},i),g=260,f=h.useRef(null),m=h.useRef(null),[p,u]=h.useState(!!o),[y,k]=h.useState(o?"none":"0px"),[x,C]=h.useState(o?1:0);return h.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]),h.useEffect(()=>{var S;if(m.current&&(clearTimeout(m.current),m.current=null),o){u(!0),requestAnimationFrame(()=>{var T;const b=((T=f.current)==null?void 0:T.scrollHeight)??0;k(`${b}px`),C(1)});return}const v=((S=f.current)==null?void 0:S.scrollHeight)??0;k(`${v}px`),C(1),requestAnimationFrame(()=>{k("0px"),C(0)}),m.current=setTimeout(()=>{u(!1)},g)},[o,e]),h.useEffect(()=>{var S;if(!o||!p)return;const v=((S=f.current)==null?void 0:S.scrollHeight)??0;k(`${v}px`)},[e,o,p]),p?r.jsx(l.View,{id:a,role:"region","aria-labelledby":n,overflow:"hidden",maxHeight:y,opacity:x,transition:`max-height ${g}ms cubic-bezier(0.22, 1, 0.36, 1), opacity ${g}ms ease`,"data-state":o?"open":"closed","data-disabled":t?"":void 0,style:{backgroundColor:"transparent"},...d==null?void 0:d.container,...c,children:r.jsx(l.View,{ref:f,padding:16,children:e})}):null},$c=({children:e,shape:o="rounded",variant:t="default",views:n,baseId:a,type:i,collapsible:c,themeMode:s,...d})=>r.jsx(l.Vertical,{width:"100%","data-orientation":"vertical",...Wc[o],...Hc[t],...n==null?void 0:n.container,...d,children:e}),$e=e=>{const o=pe("accordion",e),{children:t,type:n="single",value:a,defaultValue:i,onValueChange:c,collapsible:s=!1,shape:d="rounded",variant:g="default",views:f,...m}=o,p=Array.isArray(i)?i:i?[i]:void 0,u=Mc({type:n,value:a,defaultValue:i??p,onValueChange:c,collapsible:s});return r.jsx(Ac,{value:{expandedItems:u.expandedItems,toggleItem:u.toggleItem,isItemExpanded:u.isItemExpanded,type:u.type,collapsible:u.collapsible,baseId:u.baseId},children:r.jsx($c,{shape:d,variant:g,views:f,baseId:u.baseId,type:u.type,collapsible:u.collapsible,...m,children:t})})};$e.Item=Vc,$e.Trigger=Ec,$e.Content=Dc;const Lc=({isOpen:e,defaultOpen:o=!1,value:t,defaultValue:n,isMulti:a=!1,onOpenChange:i,onClose:c})=>{const s=typeof e=="boolean",d=t!==void 0,g=n??(a?[]:""),[f,m]=h.useState(o),[p,u]=h.useState(g),y=s?!!e:f,k=d?t:p,x=h.useCallback(v=>{s||m(v),i==null||i(v),v||c==null||c()},[s,c,i]),C=h.useCallback(()=>{x(!1)},[x]),w=h.useCallback(v=>{d||u(v)},[d]);return{isSheetOpen:y,selectedValue:k,setSelectedValue:w,closeSheet:C}},ct=({children:e,containerId:o="portal-root"})=>{const[t,n]=h.useState(null);return h.useEffect(()=>{let a=document.getElementById(o),i=!1;return a||(i=!0,a=document.createElement("div"),a.setAttribute("id",o),document.body.appendChild(a)),n(a),()=>{i&&a&&a.parentNode&&a.childNodes.length===0&&a.parentNode.removeChild(a)}},[o]),t?zc.createPortal(e,t):null},st=new Map,_c=(e,o,t)=>(st.has(e)||st.set(e,h.lazy(()=>import("lucide-react/dynamicIconImports").then(n=>{const a=n.default[e];return a?a():{default:()=>r.jsx(r.Fragment,{children:o||t})}}))),st.get(e)),Vn=h.memo(({widthHeight:e,color:o="currentColor",transform:t,orientation:n="up",children:a,...i})=>r.jsx(l.View,{widthHeight:e,color:o,display:"flex",alignItems:"center",justifyContent:"center",transform:t||(n==="left"?"rotate(-90deg)":n==="right"?"rotate(90deg)":n==="up"?"rotate(0deg)":n==="down"?"rotate(180deg)":"none"),...i,children:a})),yr=h.memo(({name:e="circle",widthHeight:o=24,color:t="currentColor",filled:n=!1,strokeWidth:a=1,size:i,children:c,fallback:s,...d})=>{const{getColor:g}=l.useTheme(),f=i||o,m=h.useMemo(()=>{const y=g(t);return{fill:n?y:"none",stroke:y,strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round"}},[n,t,a,g]);if(!e)return r.jsx(Vn,{widthHeight:o,color:t,...d,children:c});const p=e.toLowerCase().replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=_c(p,s,c);return r.jsx(Vn,{widthHeight:f,color:t,...d,children:r.jsx(h.Suspense,{fallback:s||null,children:r.jsx(u,{size:f,...m})})})}),G=(e,o={})=>{const t=n=>r.jsx(yr,{name:e,...o,...n});return t.displayName=`${e}Icon`,t},Bc=G("user",{filled:!1}),Oc=G("circle-help",{filled:!1}),Nc=G("folder",{filled:!1}),ge=G("chevron-up",{filled:!1}),qc=G("grip-vertical",{filled:!1}),io=G("file",{filled:!1}),Uc=G("video",{filled:!1}),Gc=G("image",{filled:!1}),So=G("volume",{filled:!1}),Yc=G("twitter",{filled:!1}),Kc=G("x",{filled:!1}),Xc=G("twitch",{filled:!1}),Me=G("x",{filled:!1,strokeWidth:2}),Jc=G("instagram",{filled:!1}),Qc=G("youtube",{filled:!1}),Zc=G("facebook",{filled:!1}),Rc=G("linkedin",{filled:!1}),es=G("at-sign",{filled:!1}),En=G("minus",{filled:!1}),Ze=G("info",{filled:!1}),Dn=G("play",{filled:!1}),os=G("pause",{filled:!1}),rs=G("heart",{filled:!1}),ts=G("star",{filled:!1}),ns=G("save",{filled:!1}),dt=G("triangle-alert",{filled:!1}),as=G("battery",{filled:!1}),ls=G("bookmark",{filled:!1}),is=G("cloud",{filled:!1}),cs=G("copy",{filled:!1}),br=G("trash",{filled:!1}),ss=br,ds=G("edit",{filled:!1}),gt=G("mic",{filled:!1}),xr=G("square",{filled:!1}),ht=G("send",{filled:!1}),ft=G("loader",{filled:!1}),Go=G("paperclip",{filled:!1}),kr=G("search",{filled:!1}),gs=G("home",{filled:!1}),$n=G("settings",{filled:!1}),hs=G("download",{filled:!1}),Ln=G("share",{filled:!1}),Yo=G("check",{filled:!1}),fs=G("plus",{filled:!1}),mt=G("eye-off",{filled:!1}),pt=G("eye",{filled:!1}),ms=G("lock",{filled:!1}),ps=G("user",{filled:!1}),_n=G("external-link",{filled:!1}),ut=G("check-circle",{filled:!1}),Cr=G("alert-circle",{filled:!1}),us=G("bell",{filled:!1}),ys=G("file-text",{filled:!1}),bs=G("bar-chart",{filled:!1}),xs=G("moon",{filled:!1}),Bn=G("panel-left",{filled:!1}),yt=G("upload",{filled:!1}),ks=Yo,Cs=e=>r.jsx(ge,{orientation:"left",...e}),ws=G("zoom-out",{filled:!1}),Ss=G("type",{filled:!1}),vs=G("shapes",{filled:!1}),Ts=G("rotate-cw",{filled:!1}),Is=G("gift",{filled:!1}),Fs=G("shield",{filled:!1}),zs=G("log-out",{filled:!1}),Ms=G("power",{filled:!1}),Ws=G("link",{filled:!1}),Hs=G("layout",{filled:!1}),js=G("zap",{filled:!1}),Ps=G("credit-card",{filled:!1}),As=G("more-horizontal",{filled:!1}),Vs=br,Es=G("filter",{filled:!1}),Ds=G("calendar",{filled:!1}),$s=G("clock",{filled:!1}),Ls=G("map-pin",{filled:!1}),_s=G("menu",{filled:!1}),Bs=G("refresh-cw",{filled:!1}),Os=G("printer",{filled:!1}),Ns=G("wand",{filled:!1}),qs=G("thumbs-down",{filled:!1}),Us=G("thumbs-up",{filled:!1}),Gs=G("camera",{filled:!1}),Ys=G("bluetooth",{filled:!1}),Ks=G("unlock",{filled:!1}),Xs=G("wifi",{filled:!1}),Js=G("arrow-right",{filled:!1}),Qs=G("arrow-up",{filled:!1}),Zs=G("loader",{filled:!1}),Rs=G("sliders-horizontal",{filled:!1}),ed=G("crop",{filled:!1}),od=G("zoom-in",{filled:!1}),rd=G("grip-horizontal",{filled:!1}),On=G("mouse-pointer-2",{filled:!1}),td={sm:{minHeight:44,paddingVertical:10,paddingHorizontal:16},md:{minHeight:52,paddingVertical:12,paddingHorizontal:18},lg:{minHeight:60,paddingVertical:14,paddingHorizontal:20}},vo={sm:{label:14,description:12},md:{label:16,description:13},lg:{label:18,description:14}},Nn=(e,o)=>e.id??e.value??`action-sheet-item-${o}`,qn=e=>e.value??e.id,Un=e=>e.disabled||e.isDisabled||e.divider,nd=(e,o)=>{if(typeof e.selected=="boolean")return e.selected;const t=qn(e);return t?Array.isArray(o)?o.includes(t):o===t:!1},ad=({isSheetOpen:e,closeSheet:o,selectedValue:t,setSelectedValue:n,isClosePrevented:a=!1,dismissOnBackdropPress:i=!0,title:c,description:s,header:d,children:g,items:f=[],isMulti:m=!1,closeOnSelect:p,onSelect:u,onChange:y,showCancel:k=!1,cancelLabel:x="Cancel",onCancel:C,showHandle:w=!0,size:v="md",maxHeight:S="88vh",views:b,animationType:T,...F})=>{if(!e)return null;const W=()=>{a||o()},P=()=>{i&&W()},$=()=>{C==null||C(),W()},z=E=>{var H;if(Un(E))return;const V=qn(E);let M=t;if(V){if(m){const j=Array.isArray(t)?t:t?[t]:[];M=j.includes(V)?j.filter(L=>L!==V):[...j,V]}else M=V;n(M),u==null||u(V,E),y==null||y(M,E)}(H=E.onPress)==null||H.call(E,E),(E.closeOnSelect??p??!m)&&W()};return r.jsx(ct,{children:r.jsx(l.View,{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999,backgroundColor:"color-dark-50-360",display:"flex",justifyContent:"flex-end",onClick:P,...b==null?void 0:b.overlay,children:r.jsxs(l.Vertical,{width:"100%",maxWidth:520,maxHeight:S,marginHorizontal:"auto",backgroundColor:"color-white",borderTopLeftRadius:24,borderTopRightRadius:24,paddingTop:8,paddingBottom:12,overflow:"hidden",boxShadow:"0 -18px 48px rgba(15, 23, 42, 0.18)",onClick:E=>E.stopPropagation(),...b==null?void 0:b.container,...b==null?void 0:b.sheet,...F,children:[w&&r.jsx(l.View,{width:36,height:4,borderRadius:999,backgroundColor:"color-gray-300",alignSelf:"center",marginTop:4,marginBottom:8,...b==null?void 0:b.handle}),(c||s)&&r.jsxs(l.Vertical,{paddingHorizontal:20,paddingTop:6,paddingBottom:12,gap:4,...b==null?void 0:b.header,children:[c&&r.jsx(l.Text,{fontSize:18,lineHeight:24,fontWeight:"600",color:"color-gray-900",...b==null?void 0:b.title,children:c}),s&&r.jsx(l.Text,{fontSize:13,lineHeight:18,color:"color-gray-500",...b==null?void 0:b.description,children:s})]}),d,r.jsxs(l.Vertical,{overflowY:"auto",paddingBottom:4,...b==null?void 0:b.content,children:[f.map((E,V)=>{if(E.divider)return r.jsx(l.View,{height:1,backgroundColor:"color-gray-200",marginVertical:6,...b==null?void 0:b.divider},Nn(E,V));const M=nd(E,t),A=Un(E),H=A?"color-gray-400":E.destructive?"color-red-600":M?"theme-primary":"color-gray-900";return r.jsxs(l.Horizontal,{alignItems:"center",gap:12,opacity:A?.5:1,cursor:A?"not-allowed":"pointer",onClick:()=>z(E),...td[v],...b==null?void 0:b.item,children:[E.icon&&r.jsx(l.View,{flexShrink:0,...b==null?void 0:b.itemIcon,children:E.icon}),r.jsxs(l.Vertical,{flex:1,gap:2,children:[typeof E.label=="string"?r.jsx(l.Text,{fontSize:vo[v].label,lineHeight:vo[v].label+6,fontWeight:M?"600":"400",color:H,...b==null?void 0:b.itemLabel,children:E.label}):E.label,E.description&&r.jsx(l.Text,{fontSize:vo[v].description,lineHeight:vo[v].description+5,color:"color-gray-500",...b==null?void 0:b.itemDescription,children:E.description})]}),M&&r.jsx(Yo,{widthHeight:18,color:"theme-primary",...b==null?void 0:b.itemIndicator})]},Nn(E,V))}),g]}),k&&r.jsx(l.View,{marginTop:8,paddingHorizontal:12,paddingTop:8,borderTopWidth:1,borderTopColor:"color-gray-200",children:r.jsx(l.Horizontal,{minHeight:52,alignItems:"center",justifyContent:"center",borderRadius:14,backgroundColor:"color-gray-100",cursor:"pointer",onClick:$,...b==null?void 0:b.cancelButton,children:r.jsx(l.Text,{fontSize:vo[v].label,lineHeight:vo[v].label+6,fontWeight:"600",color:"color-gray-900",...b==null?void 0:b.cancelLabel,children:x})})})]})})})},ld=e=>{const o=Lc(e);return r.jsx(ad,{...e,...o})},id=e=>{const o=e==="dark";return{default:{container:{backgroundColor:"color-gray-50",borderColor:"color-gray-200",boxShadow:o?"0 1px 3px rgba(0, 0, 0, 0.3)":"0 1px 2px rgba(0, 0, 0, 0.05)"},content:{color:"color-gray-700"},icon:{color:"color-gray-500"}},info:{container:{backgroundColor:"color-blue-50",borderColor:"color-blue-200",boxShadow:o?"0 1px 3px rgba(29, 78, 216, 0.25)":"0 1px 2px rgba(59, 130, 246, 0.05)"},content:{color:"color-blue-700"},icon:{color:"color-blue-500"}},success:{container:{backgroundColor:"color-green-50",borderColor:"color-green-200",boxShadow:o?"0 1px 3px rgba(34, 197, 94, 0.2)":"0 1px 2px rgba(34, 197, 94, 0.05)"},content:{color:"color-green-700"},icon:{color:"color-green-500"}},error:{container:{backgroundColor:"color-red-50",borderColor:"color-red-200",boxShadow:o?"0 1px 3px rgba(239, 68, 68, 0.2)":"0 1px 2px rgba(239, 68, 68, 0.05)"},content:{color:"color-red-700"},icon:{color:"color-red-500"}},warning:{container:{backgroundColor:"color-orange-50",borderColor:"color-orange-200",boxShadow:o?"0 1px 3px rgba(249, 115, 22, 0.2)":"0 1px 2px rgba(249, 115, 22, 0.05)"},content:{color:"color-orange-700"},icon:{color:"color-orange-500"}}}},cd=h.memo(({icon:e,title:o="",views:t,description:n="",variant:a="default",themeMode:i,children:c,...s})=>{const{themeMode:d}=l.useTheme(),g=i||d,f=h.useMemo(()=>id(g),[g]),m=()=>{var y;if(e)return e;const u={size:20,color:((y=t==null?void 0:t.icon)==null?void 0:y.color)??f[a].icon.color};switch(a){case"info":return r.jsx(Ze,{...u});case"success":return r.jsx(ut,{...u});case"error":return r.jsx(Cr,{...u});case"warning":default:return r.jsx(dt,{...u})}};return r.jsxs(l.Horizontal,{gap:12,padding:"12px 16px",flexWrap:"nowrap",alignItems:"flex-start",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:f[a].container.borderColor,backgroundColor:f[a].container.backgroundColor,boxShadow:f[a].container.boxShadow,transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",...t==null?void 0:t.container,...s,children:[r.jsx(l.View,{alignSelf:"flex-start",marginTop:"2px",...t==null?void 0:t.icon,children:m()}),r.jsxs(l.Vertical,{gap:4,children:[o?r.jsx(l.Text,{fontSize:"14px",fontWeight:"600",lineHeight:"20px",color:f[a].content.color,...t==null?void 0:t.title,children:o}):null,r.jsx(l.Text,{fontSize:"12px",fontWeight:"400",lineHeight:"16px",color:f[a].content.color,...t==null?void 0:t.description,children:n||c})]})]})}),bt=e=>{const o=pe("alert",e);return r.jsx(cd,{...o})},sd=({ratio:e=16/9,children:o,views:t,...n})=>r.jsx(l.View,{width:"100%",position:"relative",overflow:"hidden",paddingTop:`${1/e*100}%`,borderRadius:8,...n,...t==null?void 0:t.center,children:r.jsx(l.View,{position:"absolute",top:0,right:0,bottom:0,left:0,...t==null?void 0:t.view,children:o})}),Gn=({ratio:e,children:o,...t})=>r.jsx(sd,{ratio:e,...t,children:o});function dd(e,o,t){return Math.min(Math.max(e,o),t)}const gd=({bars:e,isPaused:o,...t})=>{const a=[6,16,23,24,18,9,14,22,24,20,11,12,20,24,21,13,9,19,24,23,16,7,17,23,23,18,8,15,22,24,20,10];return r.jsx(l.Horizontal,{alignItems:"center",minWidth:120,gap:2,height:24,width:"100%",maxWidth:"100%",...t,children:e.map((i,c)=>r.jsx(l.View,{width:3,borderRadius:2,backgroundColor:o?"color-gray-300":i>=0?"theme-primary":"color-gray-300",style:{height:`${i>=0?dd(i*300,6,24):a[c%a.length]}px`}},c))})},xt=({analyserNode:e,isPaused:o,...t})=>{const n=h.useRef(null),a=60,i=32,[c,s]=h.useState([]);return h.useEffect(()=>{if(!e){s(Array(a).fill(-1));return}const d=e.frequencyBinCount,g=new Uint8Array(d),f=()=>{e.getByteTimeDomainData(g);let m=0;for(let u=0;u<d;u++){const y=(g[u]-128)/128;m+=y*y}const p=Math.sqrt(m/d);h.startTransition(()=>{s(u=>{const k=[...u,p].slice(-a);return k.length<a?[...Array(a-k.length).fill(-1),...k]:k})})};return n.current=setInterval(f,i),()=>{n.current&&clearInterval(n.current)}},[e]),r.jsx(gd,{bars:c,isPaused:o,...t})},wr=Co.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:(o,t="",n="",a,i,c,s,d,g)=>e({visible:!0,variant:o,title:t,subtitle:n,isClosable:a,views:i,action:c,actionText:s,showIcon:d,timeout:g}),hide:()=>e({visible:!1})})),Yn=(e,o,t,n)=>{wr.getState().show(e,o,t,n==null?void 0:n.isClosable,n==null?void 0:n.views,n==null?void 0:n.action,n==null?void 0:n.actionText,n==null?void 0:n.showIcon,n==null?void 0:n.timeout)},Kn=()=>{wr.getState().hide()},hd={info:{container:{backgroundColor:"color-white",border:"rgba(191, 219, 254, 0.95)"},icon:{color:"theme-primary",name:"InformationIcon"},content:{color:"color-gray-900"},close:{color:"color-gray-500",name:"CloseIcon"}},success:{container:{backgroundColor:"#F0FDF4",border:"#BBF7D0"},icon:{color:"#16A34A",name:"SuccessIcon"},content:{color:"#14532D"},close:{color:"#15803D",name:"CloseIcon"}},error:{container:{backgroundColor:"#FEF2F2",border:"#FECACA"},icon:{color:"#DC2626",name:"ErrorIcon"},content:{color:"#7F1D1D"},close:{color:"#B91C1C",name:"CloseIcon"}},warning:{container:{backgroundColor:"#FFF7ED",border:"#FED7AA"},icon:{color:"#EA580C",name:"WarningIcon"},content:{color:"#9A3412"},close:{color:"#C2410C",name:"CloseIcon"}}},Xn=({variant:e,hide:o,title:t,subtitle:n,theme:a,action:i,actionText:c,showIcon:s=!1,isClosable:d=!1,timeout:g=3e3,views:f})=>{var C,w;h.useEffect(()=>{if(g&&!d){const v=setTimeout(()=>{o()},g);return()=>{clearTimeout(v)}}},[]);const m=a??hd,p=!!(i&&c),u={borderWidth:1,borderStyle:"solid",borderRadius:12,borderColor:`${m[e].container.border}`,boxShadow:"0 8px 24px rgba(15, 23, 42, 0.06)"},y={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[e],k={info:r.jsx(Ze,{widthHeight:24,color:y,...f==null?void 0:f.icon}),success:r.jsx(ut,{widthHeight:24,color:y,...f==null?void 0:f.icon}),warning:r.jsx(dt,{widthHeight:24,color:y,...f==null?void 0:f.icon}),error:r.jsx(Cr,{widthHeight:24,color:y,...f==null?void 0:f.icon})}[e],x=s&&k;return r.jsxs(l.Horizontal,{role:"messageContent",gap:12,width:"100%",maxWidth:520,flexWrap:"nowrap",position:"relative",alignItems:"flex-start",padding:"12px 14px",color:`${m[e].content.color}`,backgroundColor:`${m[e].container.backgroundColor}`,onClick:d?()=>{}:()=>{o()},...u,transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",...f==null?void 0:f.container,children:[x&&k,r.jsxs(l.Vertical,{gap:4,width:"100%",children:[r.jsx(l.Text,{size:"md",weight:"semiBold",...f==null?void 0:f.title,children:t}),n&&r.jsx(l.Text,{size:"sm",lineHeight:"20px",color:m[e].content.color,...f==null?void 0:f.subtitle,children:n})]}),p&&r.jsx(l.View,{as:"button",type:"button",onClick:i,backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:m[e].container.border,borderRadius:"9999px",padding:"6px 12px",cursor:"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",...f==null?void 0:f.actionText,children:r.jsx(l.Text,{whiteSpace:"nowrap",size:"sm",weight:"semiBold",color:m[e].content.color,children:c})}),d&&r.jsx(l.View,{position:"absolute",zIndex:1e4,right:8,top:8,onClick:()=>{o()},cursor:"pointer",padding:"4px",borderRadius:"9999px",transition:"background-color 0.2s ease",...(C=f==null?void 0:f.closingIcon)==null?void 0:C.container,children:r.jsx(Me,{widthHeight:16,color:m[e].close.color,...(w=f==null?void 0:f.closingIcon)==null?void 0:w.icon})})]})},fd=({container:e,theme:o,position:t="topRight"})=>{const{visible:n,title:a,variant:i,subtitle:c,isClosable:s,views:d,action:g,actionText:f,showIcon:m,timeout:p}=wr(),u={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[t],y=()=>r.jsx(Xn,{variant:i,subtitle:c,show:n,title:a,theme:o,isClosable:s,views:d,action:g,actionText:f,showIcon:m,timeout:p,hide:()=>Kn()}),k=e?h.cloneElement(e,{},y()):r.jsx(l.View,{position:"absolute",zIndex:1e4,...u,children:y()});return n?k:null},md=(e,o)=>{const t=document.createElement("video");t.preload="metadata",t.onloadedmetadata=()=>{t.currentTime=1},t.oncanplay=()=>{const n=document.createElement("canvas");n.width=t.videoWidth,n.height=t.videoHeight;const a=n.getContext("2d");if(a){a.drawImage(t,0,0,n.width,n.height);const i=n.toDataURL("image/jpeg");o(i)}URL.revokeObjectURL(t.src)},t.src=URL.createObjectURL(e)},pd=({maxSize:e=100*1024*1024,onFileSelect:o,onMultipleFileSelect:t,validateFile:n,thumbnail:a,multiple:i=!1,onError:c=s=>{Yn("error","Error",s)}})=>{const s=h.useRef(null),d=h.useRef(null),[g,f]=h.useState(null),[m,p]=h.useState([]),[u,y]=h.useState(null),[k,x]=h.useState(null),[C,w]=h.useState(a||null),v=h.useCallback(b=>{const T=b.target.files;if(y(null),!T||T.length===0){c("No file selected"),y("No file selected");return}if(i){const F=Array.from(T),W=[];for(const P of F){if(P.size>e){c(`File ${P.name} exceeds ${Math.round(e/(1024*1024))}MB.`),y(`File ${P.name} exceeds ${Math.round(e/(1024*1024))}MB.`);continue}if(n){const $=n(P);if($){c(`${P.name}: ${$}`),y(`${P.name}: ${$}`);continue}}W.push(P)}W.length>0&&(p(W),t&&t(W))}else{const F=T[0];if(F.size>e){c(`File exceeds ${Math.round(e/(1024*1024))}MB.`),y(`File exceeds ${Math.round(e/(1024*1024))}MB.`);return}if(n){const W=n(F);if(W){c(W),y(W);return}}x(URL.createObjectURL(F)),F.type.startsWith("video/")&&md(F,w),o&&(f(F),o(F))}},[e,o,t,n,i]),S=()=>{const b=s.current;b&&typeof b.click=="function"&&b.click()};return h.useEffect(()=>()=>{typeof URL<"u"&&typeof URL.revokeObjectURL=="function"&&(k&&URL.revokeObjectURL(k),C&&URL.revokeObjectURL(C))},[k,C]),{previewUrl:k,thumbnailUrl:C,errorMessage:u,fileInputRef:s,videoRef:d,selectedFile:g,selectedFiles:m,handleFileChange:v,handleClick:S}},ud=({accept:e,isLoading:o=!1,progress:t=0,icon:n,text:a,previewUrl:i,thumbnailUrl:c,errorMessage:s,fileInputRef:d,videoRef:g,selectedFile:f,selectedFiles:m,handleFileChange:p,handleClick:u,multiple:y=!1,containerProps:k,errorMessageProps:x,progressProps:C,videoProps:w,imageProps:v,iconProps:S,textProps:b,fileType:T,previewUrl:F,renderError:W=({errorMessage:A,errorMessageProps:H,themeMode:j})=>r.jsx(l.Text,{color:"red",fontSize:12,marginTop:8,...H,...M==null?void 0:M.text,children:A}),renderText:P=({text:A,textProps:H})=>r.jsx(l.Text,{marginTop:8,...H,...M==null?void 0:M.text,children:A}),renderFile:$=({selectedFile:A,textProps:H})=>A?r.jsxs(l.Center,{marginTop:8,gap:10,flexDirection:"column",...M==null?void 0:M.container,children:[r.jsx(l.Text,{maxLines:2,...H,...M==null?void 0:M.text,children:A.name}),r.jsxs(l.Text,{...H,...M==null?void 0:M.text,children:["(",Math.round(A.size/1024)," KB)"]})]}):null,renderVideo:z=({selectedFile:A,videoRef:H,videoProps:j})=>r.jsx(l.View,{width:"100%",height:"100%",position:"relative",...M==null?void 0:M.view,children:r.jsx(l.View,{as:"video",width:"100%",height:"100%",src:A?URL.createObjectURL(A):void 0,style:{objectFit:"cover"},ref:H,...j,...M==null?void 0:M.view})}),renderImage:E=({previewUrl:A,imageProps:H})=>(console.log("Rendering image with URL:",A),r.jsx(l.View,{width:"100%",height:"100%",position:"relative",...M==null?void 0:M.view,children:r.jsx(l.Image,{src:A,alt:"Preview",width:"100%",height:"100%",objectFit:"cover",style:{maxHeight:"100%",maxWidth:"100%"},...H,...M==null?void 0:M.image})})),renderProgress:V=({progress:A,progressProps:H})=>r.jsxs(l.Horizontal,{gap:8,alignItems:"center",...H,...M==null?void 0:M.horizontal,children:[r.jsx(l.View,{height:4,backgroundColor:"color-black-100",width:"100%",borderRadius:2,...M==null?void 0:M.view,children:r.jsx(l.View,{height:4,width:`${A}%`,borderRadius:2,backgroundColor:"color-dark-50",...M==null?void 0:M.view})}),r.jsxs(l.Text,{fontSize:12,...M==null?void 0:M.text,children:[A,"%"]})]}),views:M={}})=>{const A=F||i;return r.jsxs(l.Center,{onClick:u,cursor:"pointer",border:"1px solid color-black-100",borderRadius:8,padding:16,flexDirection:"column",overflow:"hidden",position:"relative",height:f&&t===100?"200px":"auto",...k,...M==null?void 0:M.container,children:[t===100&&T==="image"&&A&&E({previewUrl:A,imageProps:v}),t===100&&T==="video"&&c&&z({selectedFile:f,thumbnailUrl:c,videoRef:g,videoProps:w,imageProps:v}),t===100&&T==="file"&&f&&$({selectedFile:f,textProps:b}),t<100&&(n||r.jsx(yt,{widthHeight:32,...S})),!o&&!f&&a&&P({text:a,textProps:b}),o&&V({progress:t,progressProps:C}),!o&&s&&W({errorMessage:s,errorMessageProps:x}),r.jsx(l.Input,{type:"file",ref:d,onChange:p,accept:e,multiple:y,style:{display:"none"},...M==null?void 0:M.view})]})},Sr=({accept:e="*/*",icon:o,text:t,maxSize:n,onFileSelect:a,onMultipleFileSelect:i,validateFile:c,isLoading:s=!1,progress:d=0,fileType:g,multiple:f=!1,...m})=>{const{previewUrl:p,thumbnailUrl:u,errorMessage:y,videoRef:k,fileInputRef:x,selectedFile:C,selectedFiles:w,handleFileChange:v,handleClick:S}=pd({maxSize:n,onFileSelect:a,onMultipleFileSelect:i,validateFile:c,multiple:f}),T=(()=>{if(g)return g;if(C)return C.type.startsWith("image/")?"image":C.type.startsWith("video/")?"video":"file"})();return r.jsx(ud,{handleClick:S,accept:e,isLoading:s,progress:d,icon:o,text:t,maxSize:n,onFileSelect:a,validateFile:c,errorMessage:y,handleFileChange:v,selectedFile:C,selectedFiles:w,videoRef:k,fileInputRef:x,previewUrl:p,thumbnailUrl:u,fileType:T,multiple:f,...m})};function yd(e){const o=Math.floor(e/60),t=e%60;return`${o}:${t.toString().padStart(2,"0")}`}function bd({onAudio:e,recording:o,paused:t,audioBlob:n,analyserNode:a,duration:i,error:c,startRecording:s,stopRecording:d,pauseRecording:g,resumeRecording:f,resetRecording:m,handleFileChange:p,...u}){const[y,k]=h.useState(null);h.useEffect(()=>{if(n){const w=URL.createObjectURL(n);return k({url:w,label:`recording-${Date.now()}.webm`}),()=>{URL.revokeObjectURL(w)}}return()=>{}},[n]);const x=()=>{y!=null&&y.url&&URL.revokeObjectURL(y.url),k(null),m()},C=w=>{e(w),y!=null&&y.url&&URL.revokeObjectURL(y.url),k({url:URL.createObjectURL(w),label:w.name})};return r.jsxs(l.Vertical,{gap:"10px",width:"100%",...u,children:[r.jsxs(l.Horizontal,{gap:12,alignItems:"center",padding:"12px 14px",border:"1px solid color-gray-200",borderRadius:"12px",backgroundColor:"color-white",children:[r.jsx(Sr,{accept:"audio/*",icon:r.jsx(Go,{widthHeight:16}),maxSize:100*1024*1024,onFileSelect:C,fileType:"file",multiple:!1,renderError:({errorMessage:w})=>null,views:{container:{width:"36px",height:"36px",cursor:"pointer",border:"1px solid color-gray-200",borderRadius:"10px",backgroundColor:"color-white",transition:"background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease",_hover:{backgroundColor:"color-gray-50",borderColor:"color-gray-300"}}},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"10px",width:"36px",height:"36px"},validateFile:w=>w.size>100*1024*1024?"File size exceeds 100MB limit":w.type.startsWith("audio/")?null:"Only audio files are allowed"}),r.jsx(l.View,{as:"button",type:"button",onClick:o?d:s,width:"36px",height:"36px",minWidth:"36px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"theme-primary",color:"color-white",borderRadius:"999px",border:"0",cursor:"pointer",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{opacity:.92},children:o?r.jsx(xr,{widthHeight:14,color:"color-white",filled:!1}):r.jsx(gt,{widthHeight:18,color:"color-white",filled:!1})}),r.jsx(l.View,{flex:1,minWidth:120,children:r.jsx(xt,{analyserNode:o?a:null,isPaused:!o||t})}),r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-500",whiteSpace:"nowrap",children:yd(i)})]}),y&&!o&&r.jsxs(l.Vertical,{gap:"8px",padding:"12px 14px",border:"1px solid color-gray-200",borderRadius:"12px",backgroundColor:"color-white",children:[r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:8,children:[r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-500",children:y.label}),r.jsx(l.View,{as:"button",type:"button",onClick:x,width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",border:"0",backgroundColor:"transparent",color:"color-gray-500",cursor:"pointer",children:r.jsx(Me,{widthHeight:14,color:"currentColor"})})]}),r.jsx(l.View,{as:"audio",controls:!0,src:y.url,width:"100%"})]}),c&&r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",color:"color-red-500",children:c})]})}function Jn(){const[e,o]=h.useState(!1),[t,n]=h.useState(!1),[a,i]=h.useState(0),[c,s]=h.useState(null),[d,g]=h.useState(null),[f,m]=h.useState(null),p=h.useRef(null),u=h.useRef(null),y=h.useRef(null),k=h.useRef(null),x=h.useRef([]),C=h.useRef(null),w=typeof MediaRecorder<"u"&&MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":"audio/webm",v=h.useCallback(()=>{p.current&&(p.current.state!=="inactive"&&p.current.stop(),p.current=null),k.current&&(k.current.getTracks().forEach(P=>P.stop()),k.current=null),u.current&&(u.current.close(),u.current=null),y.current&&(y.current.disconnect(),y.current=null),g(null),C.current&&(clearInterval(C.current),C.current=null)},[]),S=h.useCallback(async()=>{v(),s(null),i(0),x.current=[];try{const P=await navigator.mediaDevices.getUserMedia({audio:!0});k.current=P;const $=MediaRecorder.isTypeSupported(w)?w:void 0,z=new MediaRecorder(P,$?{mimeType:$}:void 0);p.current=z;const E=new(window.AudioContext||window.webkitAudioContext);u.current=E;const V=E.createMediaStreamSource(P),M=E.createAnalyser();M.fftSize=256,M.smoothingTimeConstant=.8,V.connect(M),y.current=M,g(M),z.ondataavailable=A=>{A.data.size>0&&x.current.push(A.data)},z.onstop=()=>{const A=new Blob(x.current,{type:z.mimeType||w});m(A),v()},z.start(),o(!0),n(!1),C.current=setInterval(()=>{i(A=>A+1)},1e3)}catch{s("Microphone access denied or unavailable."),v()}},[v]),b=h.useCallback(()=>{p.current&&p.current.state!=="inactive"&&p.current.stop(),o(!1),n(!1),C.current&&(clearInterval(C.current),C.current=null)},[]),T=h.useCallback(()=>{p.current&&p.current.state==="recording"&&(p.current.pause(),n(!0),C.current&&(clearInterval(C.current),C.current=null))},[]),F=h.useCallback(()=>{p.current&&p.current.state==="paused"&&(p.current.resume(),n(!1),C.current||(C.current=setInterval(()=>{i(P=>P+1)},1e3)))},[]),W=h.useCallback(()=>{v(),o(!1),n(!1),m(null),i(0),s(null),x.current=[]},[v]);return h.useEffect(()=>()=>v(),[v]),{recording:e,paused:t,audioBlob:f,analyserNode:d,duration:a,error:c,startRecording:S,stopRecording:b,pauseRecording:T,resumeRecording:F,resetRecording:W}}function xd(e){const{onAudio:o}=e,{recording:t,paused:n,audioBlob:a,analyserNode:i,duration:c,error:s,startRecording:d,stopRecording:g,pauseRecording:f,resumeRecording:m,resetRecording:p}=Jn();return h.useEffect(()=>{if(a&&o){const y=new File([a],"recording.webm",{type:a.type||"audio/webm;codecs=opus"});o(y)}},[a,o]),{recording:t,paused:n,audioBlob:a,analyserNode:i,duration:c,error:s,startRecording:d,stopRecording:g,pauseRecording:f,resumeRecording:m,resetRecording:p,handleFileChange:y=>{var x;const k=(x=y.target.files)==null?void 0:x[0];k&&o&&o(k)}}}function kd(e){const o=xd(e);return r.jsx(bd,{...e,...o})}const Cd=()=>{const[e,o]=h.useState(!1);return{imageError:e,setImageError:o}},wd={xs:24,sm:32,md:44,lg:56,xl:72},kt={container:{borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",backgroundColor:"theme-primary",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},fallback:{fontWeight:"600",color:"color-white",letterSpacing:"-0.02em"},image:{objectFit:"cover",transition:"opacity 0.2s ease"}},Sd=({src:e,size:o="md",fallback:t="IM",views:n,imageError:a,setImageError:i,onClick:c=()=>{},children:s})=>{const d=wd[o],g={...kt.image,...(n==null?void 0:n.image)||{}};return r.jsxs(l.Center,{role:"avatar",width:d,height:d,...kt.container,borderColor:a?"color-gray-400":"transparent",onClick:c,...n==null?void 0:n.container,children:[!a&&e?r.jsx(l.Image,{alt:"IM",src:e,style:g,width:d,height:d,onError:()=>i(!0)}):r.jsx(l.Text,{size:o,...kt.fallback,...n==null?void 0:n.fallback,children:t}),s]})},Qn=e=>{const o=pe("avatar",e),{src:t,size:n,views:a,fallback:i,onClick:c,children:s}=o,{imageError:d,setImageError:g}=Cd();return r.jsx(Sd,{src:t,size:n,views:a,fallback:i,imageError:d,setImageError:g,onClick:c,children:s})},vd={xs:{minWidth:"16px",height:"16px",padding:"0 4px",fontSize:"9px",fontWeight:"600",lineHeight:"12px",letterSpacing:"-0.01em"},sm:{minWidth:"20px",height:"20px",padding:"0 6px",fontSize:"10px",fontWeight:"600",lineHeight:"14px",letterSpacing:"-0.01em"},md:{minWidth:"24px",height:"24px",padding:"0 8px",fontSize:"12px",fontWeight:"600",lineHeight:"16px",letterSpacing:"-0.01em"},lg:{minWidth:"28px",height:"28px",padding:"0 10px",fontSize:"14px",fontWeight:"600",lineHeight:"20px",letterSpacing:"-0.01em"},xl:{minWidth:"32px",height:"32px",padding:"0 12px",fontSize:"16px",fontWeight:"600",lineHeight:"24px",letterSpacing:"-0.01em"}},Td={xs:{gap:"6px",padding:"3px 8px 3px 3px"},sm:{gap:"8px",padding:"4px 10px 4px 4px"},md:{gap:"12px",padding:"6px 16px 6px 6px"},lg:{gap:"12px",padding:"7px 18px 7px 7px"},xl:{gap:"14px",padding:"8px 20px 8px 8px"}},Id={xs:{padding:"2px 6px",fontSize:"9px",lineHeight:"12px"},sm:{padding:"3px 8px",fontSize:"10px",lineHeight:"14px"},md:{padding:"6px 12px",fontSize:"11px",lineHeight:"14px"},lg:{padding:"7px 14px",fontSize:"12px",lineHeight:"16px"},xl:{padding:"8px 16px",fontSize:"13px",lineHeight:"18px"}},Zn={xs:{fontSize:"11px",lineHeight:"14px"},sm:{fontSize:"12px",lineHeight:"16px"},md:{fontSize:"13px",lineHeight:"18px"},lg:{fontSize:"14px",lineHeight:"20px"},xl:{fontSize:"15px",lineHeight:"22px"}},Fd={square:0,rounded:"8px",pill:"9999px"},zd={"top-right":{top:"4px",right:"4px",position:"absolute"},"top-left":{top:"4px",left:"4px",position:"absolute"},"bottom-right":{bottom:"4px",right:"4px",position:"absolute"},"bottom-left":{bottom:"4px",left:"4px",position:"absolute"}},Md=e=>({display:"inline-flex",height:"auto",minWidth:"auto",backgroundColor:"color-white-600",color:"color-gray-900",borderWidth:"1px",borderStyle:"solid",borderColor:"color-white",backdropFilter:"blur(12px)",boxShadow:"0 1px 2px rgba(15, 23, 42, 0.08)",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",_hover:{backgroundColor:"color-white-800",boxShadow:"0 2px 8px rgba(15, 23, 42, 0.1)"}}),Wd=e=>({filled:{backgroundColor:"theme-primary",color:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{opacity:.9},_active:{opacity:.95}},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary",color:"theme-primary",style:{backgroundColor:"transparent"},transition:"border-color 0.2s ease, opacity 0.2s ease",_hover:{opacity:.9},_active:{opacity:.95}},link:{borderWidth:0,borderStyle:"none",borderColor:"theme-primary",color:"theme-primary",textDecoration:"underline",style:{backgroundColor:"transparent",textUnderlineOffset:"2px",textDecorationThickness:"1px"},transition:"opacity 0.2s ease",_hover:{opacity:.8}},ghost:{color:"color-gray-500",borderWidth:0,borderStyle:"solid",borderColor:"color-gray-500",style:{backgroundColor:"transparent"},transition:"background-color 0.2s ease, color 0.2s ease",_hover:{backgroundColor:"color-gray-100"}}}),Rn=e=>({default:{indicator:{backgroundColor:"color-gray-400"},label:{color:"inherit"}},info:{indicator:{backgroundColor:"color-blue-500"},label:{color:"inherit"}},success:{indicator:{backgroundColor:"color-green-500"},label:{color:"inherit"}},warning:{indicator:{backgroundColor:"color-orange-500"},label:{color:"inherit"}},error:{indicator:{backgroundColor:"color-red-500"},label:{color:"inherit"}}}),Hd=h.memo(({content:e,children:o,icon:t,pastil:n,pastilContent:a,action:i,position:c,shape:s="pill",variant:d="filled",size:g="md",views:f,themeMode:m,...p})=>{const{themeMode:u}=l.useTheme(),y=m||u,k=h.useMemo(()=>Wd()[d],[y,d]),x=h.useMemo(()=>Md(),[y]),C=h.useMemo(()=>Rn(),[y]),w=a!=null,v=i!=null,S=w||v,b=o??e,T=b!=null,F=h.useMemo(()=>{const P={width:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"6px",borderRadius:Fd[s],...vd[g],...k,...S?Td[g]:{},...S?x:{},...c?zd[c]:{},...f==null?void 0:f.container};return d!=="filled"&&!S&&(k.color!==void 0&&(P.color=k.color),k.borderColor!==void 0&&(P.borderColor=k.borderColor),k.backgroundColor!==void 0&&(P.backgroundColor=k.backgroundColor),k&&k.style&&(P.style={...P.style||{},...k.style})),P},[s,g,d,k,S,x,c,f==null?void 0:f.container]);let W="currentColor";return typeof n=="string"?n in C?W=C[n].indicator.backgroundColor:W=n:n===!0&&(W="color-green-500",d==="filled"&&(W="color-white")),r.jsxs(l.Center,{role:"badge",...F,...p,children:[t&&r.jsx(l.View,{role:"badge-icon",...f==null?void 0:f.icon,children:t}),w&&r.jsx(l.Text,{role:"badge-pastil-content",backgroundColor:"color-gray-900",borderRadius:"9999px",color:"color-white",fontWeight:"700",letterSpacing:0,textTransform:"uppercase",whiteSpace:"nowrap",...Id[g],...f==null?void 0:f.pastilContent,children:a}),n&&r.jsx(l.View,{role:"badge-pastil",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:W,...f==null?void 0:f.pastil}),T&&r.jsx(l.Text,{role:"badgeText",color:S?"color-gray-900":F.color,fontWeight:S?"700":"600",textAlign:"center",letterSpacing:S?0:"0.02em",whiteSpace:S?"nowrap":void 0,...S?Zn[g]:{},...f==null?void 0:f.text,children:b}),v&&r.jsx(l.Text,{role:"badge-action",color:"color-gray-400",fontWeight:"500",letterSpacing:0,whiteSpace:"nowrap",...Zn[g],...f==null?void 0:f.action,children:i})]})}),Te=e=>{const o=pe("badge",e);return r.jsx(Hd,{...o})},jd={xs:12,sm:14,md:16,lg:18,xl:20},Pd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=h.forwardRef(({children:e,href:o,iconSize:t="sm",underline:n="default",isExternal:a=!1,views:i={},to:c,isHovered:s,setIsHovered:d,_hover:g,...f},m)=>r.jsxs(l.Element,{as:"a",ref:m,href:o,display:"inline-flex",gap:3,alignItems:"center",flexWrap:"nowrap",color:"inherit",textDecoration:n==="underline"?"underline":"none",_hover:n==="hover"?{textDecoration:"underline",...g}:g,...a?{target:"_blank",rel:"noopener noreferrer"}:{},...i.text,...f,children:[e,a&&r.jsx(_n,{widthHeight:jd[t]})]}));Ct.displayName="LinkAnchor";const ea=h.forwardRef(({to:e="/",onClick:o,...t},n)=>{const a=rt.useHref(e),i=rt.useNavigate(),c=s=>{o==null||o(s),!(s.defaultPrevented||s.button!==0||t.target&&t.target!=="_self"||s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)&&(s.preventDefault(),i(e))};return r.jsx(Ct,{...t,to:e,href:a,onClick:c,ref:n})});ea.displayName="RouterLinkAnchor";const oa=h.forwardRef((e,o)=>{const t=rt.useInRouterContext(),{href:n,to:a="/",isExternal:i}=e;return t&&!i&&n==null&&!Pd.test(a)?r.jsx(ea,{...e,ref:o}):r.jsx(Ct,{...e,href:n??a,ref:o})});oa.displayName="LinkView";const ra=h.forwardRef((e,o)=>r.jsx(oa,{ref:o,...e}));ra.displayName="Link";const wt=ra,St={xs:14,sm:18,md:22,lg:26,xl:30},vt={fast:50,normal:100,slow:300},Ad=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),Vd=({size:e="md",speed:o="normal",color:t="theme-loading",themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=i(t,{themeMode:n||c}),d=typeof e=="number"?e:St[e],[g,f]=h.useState(0);return h.useEffect(()=>{const m=setInterval(()=>{f(p=>p+45)},vt[o]);return()=>clearInterval(m)},[o]),r.jsxs(l.View,{as:"svg",xmlns:"http://www.w3.org/2000/svg",width:`${d}px`,height:`${d}px`,viewBox:"0 0 24 24",fill:"none",stroke:s,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:`rotate(${g}deg)`},...a,children:[r.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),r.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("g",{id:"SVGRepo_iconCarrier",children:r.jsx("path",{d:"M21 12a9 9 0 11-6.219-8.56"})})]})},Ed=({size:e="md",speed:o="normal",color:t="theme-loading",themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=i(t,{themeMode:n||c}),d=typeof e=="number"?e:St[e],[g,f]=h.useState(0);return h.useEffect(()=>{const m=setInterval(()=>{f(p=>p+45)},vt[o]);return()=>clearInterval(m)},[o]),r.jsxs(l.View,{as:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:`${d}px`,height:`${d}px`,style:{transform:`rotate(${g}deg)`},...a,children:[r.jsx("circle",{cx:"10",cy:"25",r:"4",fill:s}),r.jsx("circle",{cx:"25",cy:"25",r:"4",fill:s}),r.jsx("circle",{cx:"40",cy:"25",r:"4",fill:s})]})},Dd=({size:e="md",speed:o="normal",color:t="theme-loading",themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=i(t,{themeMode:n||c}),d=typeof e=="number"?e:St[e],[g,f]=h.useState(0);return h.useEffect(()=>{const m=setInterval(()=>{f(p=>p+45)},vt[o]);return()=>clearInterval(m)},[o]),r.jsx(l.View,{as:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:`${d}px`,height:`${d}px`,style:{transform:`rotate(${g}deg)`},...a,children:r.jsx("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:s,strokeWidth:"5",strokeDasharray:"1,10"})})},$d=({size:e,children:o,textColor:t,loaderColor:n,type:a="default",speed:i="normal",textPosition:c="right",views:s,...d})=>{const{getColor:g}=l.useTheme(),f=u=>Ad(u)?u:g(u||"theme-loading");n=f(n||d.color||"theme-loading"),t=f(t||d.color||"theme-loading");const m={size:e,speed:i,color:n},p={default:r.jsx(Vd,{...m}),dotted:r.jsx(Ed,{...m}),quarter:r.jsx(Dd,{...m})};return r.jsxs(l.Center,{gap:10,flexDirection:c==="top"||c==="bottom"?"column":"row",...d,...s==null?void 0:s.container,children:[(c==="left"||c==="top")&&o&&r.jsx(l.View,{color:t,...s==null?void 0:s.text,children:o}),p[a],(c==="right"||c==="bottom")&&o&&r.jsx(l.View,{color:t,...s==null?void 0:s.text,children:o})]})},Re=e=>{const o=pe("loader",e);return r.jsx($d,{...o})},ta={xs:{minHeight:24,paddingHorizontal:12,paddingVertical:5,fontSize:10,fontWeight:500,lineHeight:12,letterSpacing:"-0.01em"},sm:{minHeight:32,paddingHorizontal:16,paddingVertical:7,fontSize:12,fontWeight:500,lineHeight:16,letterSpacing:"-0.01em"},md:{minHeight:40,paddingHorizontal:20,paddingVertical:9,fontSize:14,fontWeight:500,lineHeight:20,letterSpacing:"-0.01em"},lg:{minHeight:48,paddingHorizontal:24,paddingVertical:11,fontSize:16,fontWeight:500,lineHeight:24,letterSpacing:"-0.01em"},xl:{minHeight:56,paddingHorizontal:28,paddingVertical:13,fontSize:20,fontWeight:500,lineHeight:28,letterSpacing:"-0.01em"}},Ko={square:0,rounded:8,pill:999},Ld={xs:{width:16,height:16,padding:6},sm:{width:20,height:20,padding:6},md:{width:24,height:24,padding:8},lg:{width:24,height:24,padding:12},xl:{width:28,height:28,padding:14}},qe=e=>/^(color|theme|light|dark)-/.test(e)?`var(--${e})`:e,_d=(e,o,t=!1,n)=>{const a=t?o:e,i=t?e:o,c=t?o:e,d=(e==="theme-primary"||n&&e===n.primary)&&(n!=null&&n.onPrimary)?n.onPrimary:i,g=`0 0 0 2px ${qe("color-white")}, 0 0 0 4px ${qe(c)}`;return{filled:{backgroundColor:a,color:d,borderWidth:1,borderStyle:"solid",borderColor:a,_hover:{opacity:.92},_active:{opacity:.96},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},empty:{color:c,borderWidth:1,borderStyle:"solid",borderColor:c,backgroundColor:"transparent",_hover:{opacity:.9},_active:{opacity:.95},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, opacity 0.2s ease"},outline:{color:c,borderWidth:1,borderStyle:"solid",borderColor:c,backgroundColor:"transparent",_hover:{opacity:.9},_active:{opacity:.95},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},ghost:{color:c,borderWidth:0,borderStyle:"solid",borderColor:c,backgroundColor:"transparent",_hover:{opacity:.86},_active:{opacity:.94},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, color 0.2s ease"},link:{color:c,borderWidth:0,borderStyle:"none",borderColor:c,minHeight:"auto",paddingHorizontal:"4px",paddingVertical:"10px",textDecoration:"underline",backgroundColor:"transparent",style:{textUnderlineOffset:"2px",textDecorationThickness:"1px",textDecorationColor:qe(c)},_hover:{opacity:.8},_active:{opacity:.9},_focusVisible:{outline:"none",boxShadow:g},transition:"opacity 0.2s ease"},subtle:{backgroundColor:`${c}-${t?200:100}`,color:c,borderWidth:1,borderStyle:"solid",borderColor:`${c}-${t?400:250}`,_hover:{backgroundColor:`${c}-${t?300:180}`},_active:{backgroundColor:`${c}-${t?380:240}`},_focusVisible:{outline:"none",boxShadow:g},transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}}},Bd=h.memo(({children:e,icon:o,isLoading:t,iconPosition:n="left",loaderPosition:a="left",size:i="md",resolvedTextColor:c,isIconRounded:s,views:d})=>{const g=["left","right"].includes(n)?l.Horizontal:l.Vertical,f=ta[i];return r.jsxs(g,{gap:8,alignItems:"center",justifyContent:"center",fontSize:f.fontSize,fontWeight:f.fontWeight,lineHeight:f.lineHeight,letterSpacing:f.letterSpacing,whiteSpace:"nowrap",color:c,...d==null?void 0:d.content,children:[t&&a==="left"&&r.jsx(Re,{size:i==="xs"||i==="sm"?"sm":"md",color:c,...d==null?void 0:d.loader}),o&&["left","top"].includes(n)&&!t&&r.jsx(l.View,{color:c,...d==null?void 0:d.icon,children:o}),e,o&&["right","bottom"].includes(n)&&!t&&r.jsx(l.View,{color:c,...d==null?void 0:d.icon,children:o}),t&&a==="right"&&r.jsx(Re,{size:i==="xs"||i==="sm"?"sm":"md",color:c,...d==null?void 0:d.loader})]})}),Od=e=>{const o=Ko[e];return typeof o=="number"?o:typeof o=="string"&&parseInt(o,10)||0},Nd=({asComponent:e,isDisabled:o,isLoading:t,isWrapped:n=!1,borderRadius:a,width:i,height:c,baseStyles:s,sizeStyles:d,iconPad:g,mainTone:f,resolvedTextColor:m,children:p,borderWidth:u=0,...y})=>r.jsx(l.Element,{as:e,disabled:!!(o||t),display:n?"flex":"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:a,width:i,height:c,...s,...d,...g,backgroundColor:(s==null?void 0:s.backgroundColor)||(n?f:void 0),color:m,borderWidth:n?0:void 0,cursor:o?"default":"pointer",...y,children:p}),qd=({shape:e,isDisabled:o,onClick:t,shadow:n,borderWidth:a,isAuto:i,isFilled:c,views:s,children:d,...g})=>r.jsx(l.Element,{as:"div",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:Ko[e],cursor:o?"default":"pointer",onClick:t,boxShadow:n,padding:a,width:c?"100%":i?"fit-content":void 0,...s==null?void 0:s.container,...g,children:d}),Ud=({variant:e,animation:o,to:t,isDisabled:n,isLoading:a,isAuto:i,isFilled:c,isExternal:s,shape:d="rounded",shadow:g,onClick:f,views:m,baseStyles:p,sizeStyles:u,iconPad:y,containerRef:k,resolvedTextColor:x,content:C,size:w,mainTone:v,borderMovingDuration:S=2,borderMovingGradientColors:b=["#705CFF","#FF5C97","#FFC75C"],animatedStrokeAccentColor:T="#705CFF",animatedStrokeTextColor:F="color-gray-900",...W})=>{var E;const P=Od(d),$=t?r.jsx(wt,{to:t,isExternal:s,color:"currentColor",textDecoration:"inherit",_hover:{color:"currentColor"},...m==null?void 0:m.link,children:C}):C,z={isDisabled:n,isLoading:a,baseStyles:p,sizeStyles:u,iconPad:y,resolvedTextColor:x,mainTone:v,children:$};if(o==="borderMoving"&&b){const M={from:{backgroundPosition:"0% 50%"},to:{backgroundPosition:"200% 50%"},duration:`${S}s`,timingFunction:"linear",iterationCount:"infinite"};return r.jsx(qd,{shape:d,isDisabled:n,onClick:f,shadow:g,borderWidth:3,isAuto:i,isFilled:c,views:m,background:`linear-gradient(90deg, ${qe(b[0])}, ${qe(b[1])}, ${qe(b[2])}, ${qe(b[0])})`,backgroundSize:"200% 100%",animate:M,...W,children:r.jsx(Nd,{asComponent:t?"div":"button",isWrapped:!0,borderRadius:Math.max(0,P-3),width:"100%",height:"100%",...z})})}if(o==="animatedStroke"){const V=qe(T),M=qe(F),A=1e3,H={from:{strokeWidth:"8px",strokeDasharray:`0 ${A}`,strokeDashoffset:-Math.round(A*.63)},to:{strokeWidth:"3px",strokeDasharray:`${A}`,strokeDashoffset:0},duration:"0.9s",timingFunction:"ease-in",fillMode:"forwards"},j=["group",(E=m==null?void 0:m.container)==null?void 0:E.className,W==null?void 0:W.className].filter(Boolean).join(" ");return r.jsxs(l.Element,{ref:k,as:t?"div":"button",type:t?void 0:"button",disabled:!!(!t&&(n||a)),onClick:f,position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c?"100%":i?"fit-content":void 0,borderRadius:Ko[d],boxShadow:g,transition:"background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",cursor:n?"default":"pointer",color:M,backgroundColor:"transparent",borderWidth:0,...m==null?void 0:m.container,...W,className:j,children:[r.jsx(l.View,{as:"svg",position:"absolute",top:0,right:0,bottom:0,left:0,width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",pointerEvents:"none",zIndex:1,"aria-hidden":"true",children:r.jsx(l.View,{as:"rect",x:"0",y:"0",height:"100%",width:"100%",rx:P,ry:P,fill:"transparent",stroke:V,strokeWidth:"8px",strokeDasharray:`0 ${A}`,strokeDashoffset:-Math.round(A*.63),pathLength:A,on:{groupHover:{animate:H}}})}),r.jsx(l.View,{position:"relative",zIndex:0,children:$})]})}if(o==="borderReveal"){const M=qe((b==null?void 0:b[0])||v||"#000000"),H=S*.75/4,j=`linear-gradient(90deg, ${M} 50%, transparent 50%)`,L=`linear-gradient(180deg, ${M} 50%, transparent 50%)`,O=`linear-gradient(270deg, ${M} 50%, transparent 50%)`,q=`linear-gradient(0deg, ${M} 50%, transparent 50%)`,_="100% 0, 100% 100%, 0 100%, 0 0",B="0 0, 100% 0, 100% 100%, 0 100%",U=`0s, ${H}s, ${H*2}s, ${H*2}s`,X=`${H*2}s, ${H*2}s, ${H}s, 0s`,N=4;return r.jsx(l.Element,{ref:k,as:"div",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:Ko[d],cursor:n?"default":"pointer",onClick:f,boxShadow:g,padding:3,background:`
2
+ ${j} no-repeat,
3
3
  ${L} no-repeat,
4
- ${B} no-repeat,
4
+ ${O} no-repeat,
5
5
  ${q} no-repeat
6
- `,backgroundSize:`200% ${N}px, ${N}px 200%, 200% ${N}px, ${N}px 200%`,backgroundPosition:_,transitionProperty:"background-position",transitionDuration:`${M}s`,transitionTimingFunction:"linear",transitionDelay:K,_hover:{backgroundPosition:O,transitionDelay:U},width:c?"100%":i?"fit-content":void 0,...m==null?void 0:m.container,...W,children:r.jsx(l.View,{as:t?"div":"button",disabled:!!(n||a),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:Math.max(0,j-3),width:"100%",height:"100%",...p,...u,...y,backgroundColor:(p==null?void 0:p.backgroundColor)||v,color:x,borderWidth:0,cursor:n?"default":"pointer",children:$})})}return r.jsx(l.Element,{ref:k,as:e==="link"&&t?"div":"button",type:e==="link"&&t?void 0:"button",disabled:!!(n||a),...u,...y,display:"inline-flex",alignItems:"center",justifyContent:"center",width:c?"100%":i?"fit-content":void 0,borderRadius:Ko[d],boxShadow:g,transition:"background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",cursor:n?"default":"pointer",onClick:f,...p,...m==null?void 0:m.container,...W,children:$})},Gd=h.memo(h.forwardRef(({variant:e="filled",size:o="md",shape:t="rounded",iconPosition:n="left",loaderPosition:a="left",backgroundColor:i,color:c,textColor:s,explicitTextColor:d,reversed:g=!1,isAuto:f=!0,isFilled:m,isDisabled:p,isLoading:u,isIconRounded:y,isHovered:k,icon:x,children:C,to:w,isExternal:v,shadow:S,onClick:b,views:T={},animation:F,loaderProps:W,config:j,ariaLabel:$,borderMovingDuration:z=2,borderMovingGradientColors:E=["#705CFF","#FF5C97","#FFC75C"],animatedStrokeAccentColor:A="#705CFF",animatedStrokeTextColor:H="color-gray-900",...P},M)=>{const L=p?"theme-disabled":u?"theme-loading":i??c??"theme-primary",B=d??s??"color-white",{config:q}=ur(),_=q==null?void 0:q.theme,O=h.useMemo(()=>{const J=_d(L,B,g,_);return j!=null&&j.variants&&Object.keys(j.variants).forEach(Q=>{J[Q]&&(J[Q]=Ne(J[Q],j.variants[Q]))}),J},[L,B,g,_,j==null?void 0:j.variants]),U=O[e]??O.filled,K=d?{...U,color:d}:U,N=(K==null?void 0:K.color)??B,D=r.jsx(Bd,{icon:x,isLoading:u,iconPosition:n,loaderPosition:a,size:o,resolvedTextColor:N,isIconRounded:y,views:T,children:C}),X=ta[o],Z=y?Ld[o]:{};return r.jsx(Ud,{variant:e,animation:F,to:w,isDisabled:p,isLoading:u,isAuto:f,isFilled:m,isExternal:v,shape:t,shadow:S,onClick:b,views:T,baseStyles:K,sizeStyles:X,iconPad:Z,resolvedTextColor:N,content:D,size:o,mainTone:L,borderMovingDuration:z,borderMovingGradientColors:E,animatedStrokeAccentColor:A,animatedStrokeTextColor:H,containerRef:M,...P})})),ce=e=>{const[o,t]=l.useHover(),n=pe("button",e),a=e.textColor??(e.backgroundColor!=null&&e.color!=null?e.color:void 0);return r.jsx(Gd,{isHovered:t,...n,explicitTextColor:a})},Yd={sm:{padding:"12px"},md:{padding:"16px"},lg:{padding:"24px"}},Kd={square:0,rounded:"8px",pill:"24px"},Xd=e=>{const o=e==="dark";return{default:{backgroundColor:"color-white",border:"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"},outlined:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",transition:"border-color 0.2s ease, box-shadow 0.2s ease",_hover:{borderColor:"color-gray-300",boxShadow:o?"0px 1px 3px rgba(0, 0, 0, 0.3)":"0px 1px 3px rgba(0, 0, 0, 0.05)"}},elevated:{backgroundColor:"color-white",boxShadow:o?"0px 1px 3px rgba(0, 0, 0, 0.35), 0px 1px 2px rgba(0, 0, 0, 0.3)":"0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px rgba(0, 0, 0, 0.06)",border:"none",transition:"box-shadow 0.2s ease",_hover:{boxShadow:o?"0px 4px 6px rgba(0, 0, 0, 0.4), 0px 2px 4px rgba(0, 0, 0, 0.35)":"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.06)"}}}},vr=e=>(e.themeMode,{container:{backgroundColor:"color-white",color:"color-gray-900",borderRadius:"8px",overflow:"hidden",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease"},header:{padding:"16px",borderBottom:"1px solid",borderColor:"color-gray-100",color:"theme-primary",fontWeight:600,fontSize:14},content:{padding:"16px",color:"color-gray-600",fontSize:12,lineHeight:"18px"},footer:{padding:"16px",borderTop:"1px solid",borderColor:"color-gray-100",justifyContent:"flex-end",gap:8}}),na=h.createContext({}),Tt=()=>h.useContext(na),It=({children:e,views:o,style:t,themeMode:n,...a})=>{var g;const i=l.useTheme(),{styles:c}=Tt(),s=vr(i).header,d={...s,...c==null?void 0:c.header,...a,style:{...s==null?void 0:s.style,...(g=c==null?void 0:c.header)==null?void 0:g.style,...t}};return r.jsx(l.Vertical,{gap:8,...d,children:e})},Ft=({children:e,views:o,style:t,themeMode:n,...a})=>{var g;const i=l.useTheme(),{styles:c}=Tt(),s=vr(i).content,d={...s,...c==null?void 0:c.content,...a,style:{...s==null?void 0:s.style,...(g=c==null?void 0:c.content)==null?void 0:g.style,...t}};return r.jsx(l.Vertical,{gap:12,...d,children:e})},zt=({children:e,views:o,style:t,themeMode:n,...a})=>{var g;const i=l.useTheme(),{styles:c}=Tt(),s=vr(i).footer,d={...s,...c==null?void 0:c.footer,...a,style:{...s==null?void 0:s.style,...(g=c==null?void 0:c.footer)==null?void 0:g.style,...t}};return r.jsx(l.Vertical,{gap:8,...d,children:e})},Jd=({variant:e="default",size:o="md",shape:t="rounded",children:n,header:a,footer:i,isFullWidth:c=!1,views:s,style:d,themeMode:g,config:f,...m})=>{var b,T;const p=l.useTheme(),u=vr(p),y=((b=Yd[o])==null?void 0:b.padding)||"16px",k=h.useMemo(()=>({styles:{container:{...u.container,borderRadius:Kd[t],...s==null?void 0:s.container},header:{...u.header,padding:y,...s==null?void 0:s.header},content:{...u.content,padding:y,...s==null?void 0:s.content},footer:{...u.footer,padding:y,...s==null?void 0:s.footer}}}),[u,s,y,t]),x=h.Children.toArray(n).some(F=>h.isValidElement(F)&&(F.type===It||F.type===Ft||F.type===zt)),{themeMode:C}=p,v=Xd(g||C)[e],S={width:c?"100%":"auto",overflow:"hidden",...v,...k.styles.container,...m,style:{...(T=k.styles.container)==null?void 0:T.style,...d}};return r.jsx(na.Provider,{value:k,children:r.jsx(l.View,{...S,children:x?n:r.jsxs(l.Vertical,{width:"100%",children:[a&&r.jsx(It,{children:a}),r.jsx(Ft,{children:n}),i&&r.jsx(zt,{children:i})]})})})},ke=e=>{const o=pe("card",e);return r.jsx(Jd,{...o})};ke.Header=It,ke.Content=Ft,ke.Footer=zt;const Qd=({defaultActiveIndex:e=0,activeIndex:o,onChange:t,autoPlay:n=!1,autoPlayInterval:a=3e3,pauseOnHover:i=!0,infinite:c=!0,totalSlides:s,stepIndices:d})=>{const g=h.useRef(s||0),[f,m]=h.useState(s||0),p=h.useRef(new Set),u=h.useRef(0),y=h.useMemo(()=>tt("carousel-content"),[]),[k,x]=h.useState(o!==void 0?o:e),[C,w]=h.useState(!1),[v,S]=h.useState(!1),[b,T]=h.useState(0),[F,W]=h.useState(0),j=h.useRef(null);h.useEffect(()=>{o!==void 0&&x(o)},[o]);const $=h.useCallback(O=>{let U=O;c?O<0?U=f-1:O>=f&&(U=0):U=Math.max(0,Math.min(O,f-1)),d&&d.length>0&&(d.includes(U)||(U=d.reduce((N,D)=>Math.abs(D-U)<Math.abs(N-U)?D:N))),o===void 0&&x(U),t&&t(U)},[o,c,t,f]),z=h.useCallback(()=>{$(k+1)},[k,$]),E=h.useCallback(()=>{$(k-1)},[k,$]);h.useEffect(()=>(n&&!C&&!v&&(j.current=setInterval(()=>{z()},a)),()=>{j.current&&clearInterval(j.current)}),[n,a,C,v,z,i]);const A=h.useCallback(()=>{i&&w(!0)},[i]),H=h.useCallback(()=>{w(!1)},[]),P=h.useCallback(O=>{S(!0),"touches"in O?(T(O.touches[0].clientX),W(O.touches[0].clientY)):(T(O.clientX),W(O.clientY))},[]),M=h.useCallback(O=>{if(!v)return;let U,K;"touches"in O?(U=O.touches[0].clientX,K=O.touches[0].clientY):(U=O.clientX,K=O.clientY);const N=U-b,D=K-F;Math.abs(N)>Math.abs(D)&&Math.abs(N)>50&&(N>0?E():z(),S(!1))},[v,b,F,z,E]),V=h.useCallback(()=>{S(!1)},[]),L=h.useCallback(()=>{const O=u.current++;p.current.add(O);const U=p.current.size;return g.current=U,m(U),O},[]),B=h.useCallback(O=>{p.current.delete(O);const U=p.current.size;if(g.current=U,m(U),U>0&&k>=U){const K=Math.max(0,U-1);o===void 0&&x(K),t&&t(K)}},[k,o,t]),q=c||k>0,_=c||k<f-1;return{activeIndex:k,totalSlides:f,goToSlide:$,nextSlide:z,prevSlide:E,canGoNext:_,canGoPrevious:q,handleMouseEnter:A,handleMouseLeave:H,handleDragStart:P,handleDragMove:M,handleDragEnd:V,registerSlide:L,unregisterSlide:B,contentId:y,infinite:c}},Zd={dot:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"color-gray-300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},line:{width:"20px",height:"4px",borderRadius:"2px",backgroundColor:"color-gray-300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},number:{minWidth:"24px",height:"24px",borderRadius:"50%",backgroundColor:"color-gray-300",margin:"0 4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",transition:"background-color 0.3s ease"}},Rd={dot:{backgroundColor:"theme-primary"},line:{backgroundColor:"theme-primary"},number:{backgroundColor:"theme-primary",color:"color-white"}},Tr={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"color-white",color:"color-gray-800",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",zIndex:1,transition:"background-color 0.3s ease",_hover:{backgroundColor:"color-gray-100"}},Xo=()=>({container:{position:"relative",overflow:"hidden"},content:{overflow:"hidden",width:"100%",height:"100%"},innerContainer:{display:"flex",transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",height:"100%"},item:{flex:"0 0 100%",minWidth:0,position:"relative",height:"100%"},prevButton:{position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)",zIndex:10,...Tr},nextButton:{position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10,...Tr}}),aa=h.createContext(null),Ir=()=>{const e=h.useContext(aa);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},la=({children:e,isActive:o,index:t,views:n,...a})=>r.jsx(l.View,{flexShrink:0,width:"100%",height:"100%",display:o?"block":"none",...n,...a,children:e}),ia=({views:e,children:o,...t})=>{const{goToPrevious:n,canGoPrevious:a,styles:i}=Ir(),s={...Xo().prevButton,...i==null?void 0:i.prevButton,...e==null?void 0:e.prevButton};return r.jsx(ce,{"aria-label":"Previous slide",onClick:()=>n(),isDisabled:!a,...s,...t,children:o??r.jsx(ge,{orientation:"left",widthHeight:16})})},ca=({views:e,children:o,...t})=>{const{goToNext:n,canGoNext:a,styles:i}=Ir(),s={...Xo().nextButton,...i==null?void 0:i.nextButton,...e==null?void 0:e.nextButton};return r.jsx(ce,{"aria-label":"Next slide",onClick:()=>n(),isDisabled:!a,...s,...t,children:o??r.jsx(ge,{orientation:"right",widthHeight:16})})},sa=({children:e,views:o,...t})=>{const{registerSlide:n,unregisterSlide:a,styles:i}=Ir(),c=h.useRef(null);h.useEffect(()=>{const g=n();return c.current=g,()=>{c.current!==null&&a(c.current)}},[n,a]);const d={...Xo().item,...i==null?void 0:i.item,...o==null?void 0:o.item};return r.jsx(l.View,{role:"group","aria-roledescription":"slide",...d,...t,children:e})},da=({children:e,views:o,style:t,...n})=>{const{currentIndex:a,styles:i,contentId:c}=Ir(),s=Xo(),d={...s.content,...i==null?void 0:i.content,...o==null?void 0:o.content},g={...s.innerContainer,...i==null?void 0:i.innerContainer,...o==null?void 0:o.innerContainer},f=`-${a*100}%`;return r.jsx(l.View,{...d,...n,style:{...d==null?void 0:d.style,...t},id:c,"aria-live":"polite",children:r.jsx(l.View,{...g,style:{...g==null?void 0:g.style,transform:`translateX(${f})`},children:e})})},e0=({children:e,defaultActiveIndex:o=0,activeIndex:t,onChange:n,showNavigation:a=!0,navigationPosition:i="inside",prevButton:c,nextButton:s,showIndicators:d=!0,indicatorPosition:g="bottom",indicatorVariant:f="dot",autoPlay:m=!1,autoPlayInterval:p=3e3,pauseOnHover:u=!0,infinite:y=!0,direction:k="horizontal",transitionDuration:x=300,views:C,stepIndices:w,themeMode:v,...S})=>{const b=h.useMemo(()=>h.Children.toArray(e),[e]),T=Qd({defaultActiveIndex:o,activeIndex:t,onChange:n,autoPlay:m,autoPlayInterval:p,pauseOnHover:u,infinite:y,totalSlides:b.length}),{activeIndex:F,totalSlides:W,goToSlide:j,nextSlide:$,prevSlide:z,handleMouseEnter:E,handleMouseLeave:A,handleDragStart:H,handleDragMove:P,handleDragEnd:M}=T,V=()=>{if(!a)return null;const q=c||r.jsx(l.View,{as:"button","aria-label":"Previous slide",...Tr,...C==null?void 0:C.prevButton,children:"❮"}),_=s||r.jsx(l.View,{as:"button","aria-label":"Next slide",...Tr,...C==null?void 0:C.nextButton,children:"❯"});return r.jsxs(r.Fragment,{children:[r.jsx(l.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",left:i==="inside"?"10px":"-40px",onClick:z,cursor:!y&&F===0?"not-allowed":"pointer",opacity:!y&&F===0?.5:1,children:q}),r.jsx(l.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:i==="inside"?"10px":"-40px",onClick:$,cursor:!y&&F===b.length-1?"not-allowed":"pointer",opacity:!y&&F===b.length-1?.5:1,children:_})]})},L=()=>d?r.jsx(l.Horizontal,{position:"absolute",left:"0",right:"0",justifyContent:"center",...g==="top"?{top:"10px"}:{bottom:"10px"},...C==null?void 0:C.indicators,children:b.map((q,_)=>r.jsx(l.View,{onClick:()=>j(_),cursor:"pointer",...Zd[f],..._===F?{...Rd[f]}:{},...C==null?void 0:C.indicator,..._===F?C==null?void 0:C.activeIndicator:{},children:f==="number"&&_+1},_))}):null;return h.useMemo(()=>h.Children.toArray(e).some(q=>h.isValidElement(q)&&(q.type===da||q.type===sa||q.type===ia||q.type===ca)),[e])?r.jsx(aa.Provider,{value:{currentIndex:F,totalSlides:W,goToSlide:j,goToNext:$,goToPrevious:z,canGoNext:T.canGoNext,canGoPrevious:T.canGoPrevious,registerSlide:T.registerSlide,unregisterSlide:T.unregisterSlide,styles:{...Xo(),...C},contentId:T.contentId,infinite:y},children:r.jsx(l.View,{role:"region","aria-roledescription":"carousel","aria-label":"Carousel",position:"relative",width:"100%",height:"100%",overflow:"hidden",...C==null?void 0:C.container,...S,children:e})}):r.jsxs(l.View,{position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:E,onMouseLeave:A,onTouchStart:H,onTouchMove:P,onTouchEnd:M,onMouseDown:H,onMouseMove:P,onMouseUp:M,...C==null?void 0:C.container,...S,children:[r.jsx(l.View,{width:"100%",height:"100%",position:"relative",...C==null?void 0:C.slideWrapper,children:b.map((q,_)=>r.jsx(la,{isActive:_===F,index:_,views:C==null?void 0:C.slide,children:q},_))}),V(),L()]})},Le=e=>r.jsx(e0,{...e});Le.Slide=la,Le.Content=da,Le.Item=sa,Le.Previous=ia,Le.Next=ca;const _e={blue:"color-blue-500",green:"color-green-500",purple:"color-purple-500",orange:"color-orange-500",red:"color-red-500",teal:"color-teal-500",pink:"color-pink-500",indigo:"color-indigo-500",yellow:"color-yellow-500",cyan:"color-cyan-500"},ga=[_e.blue,_e.green,_e.purple,_e.orange,_e.red,_e.teal,_e.pink,_e.indigo,_e.yellow,_e.cyan],To=ga,o0={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},r0={fontSize:"18px",fontWeight:"700",marginBottom:"24px",textAlign:"center",color:"color-gray-900"},t0={display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginTop:"16px",gap:"12px"},n0={display:"flex",alignItems:"center",padding:"4px 8px",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s ease",_hover:{backgroundColor:"color-gray-50"}},a0={width:"10px",height:"10px",borderRadius:"50%",marginRight:"8px"},l0={fontSize:"13px",fontWeight:"500",color:"color-gray-600"},Fr={position:"absolute",backgroundColor:"color-white",padding:"12px 16px",borderRadius:"8px",boxShadow:"0px 12px 24px rgba(15, 23, 42, 0.18)",border:"1px solid color-gray-200",fontSize:"14px",display:"flex",flexDirection:"column",pointerEvents:"none",zIndex:100},ha={stroke:"color-gray-100",strokeWidth:"1px",strokeDasharray:"4 4"},zr={stroke:"color-gray-200",strokeWidth:"1px"},Mr={fontSize:"12px",fill:"color-gray-500",fontWeight:"500"},i0={rx:"4px",ry:"4px",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",_hover:{filter:"brightness(1.1)"}},c0={strokeWidth:"3px",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",transition:"stroke-width 0.2s ease"},s0={r:"5px",strokeWidth:"2.5px",stroke:"color-white",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",_hover:{r:"7px"}},Wr={strokeWidth:"2px",stroke:"color-white",cursor:"pointer",transition:"all 0.3s ease",_hover:{transform:"scale(1.02)"}},Mt={position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color-white-800",borderRadius:"4px",zIndex:10,padding:"24px",textAlign:"center"},d0={...Mt},g0={...Mt,backgroundColor:"rgba(254, 242, 242, 0.8)",color:"color-red-600"},h0={...Mt,backgroundColor:"rgba(249, 250, 251, 0.8)",color:"color-gray-500"},f0=({data:e,dataPoints:o,animated:t=!0,animationDuration:n=500,showTooltips:a=!0})=>{const[i,c]=h.useState(t?0:1),[s,d]=h.useState({visible:!1,x:0,y:0,content:null}),g=h.useRef(null),f=h.useRef(null);h.useEffect(()=>{if(!t){c(1);return}const w=Date.now(),v=()=>{const S=Date.now()-w,b=Math.min(S/n,1);c(b),b<1&&(g.current=requestAnimationFrame(v))};return g.current=requestAnimationFrame(v),()=>{g.current&&cancelAnimationFrame(g.current)}},[t,n]);const[m,p]=h.useState(new Set),u=h.useCallback(w=>{p(v=>{const S=new Set(v);return S.has(w)?S.delete(w):S.add(w),S})},[]),y=h.useCallback(()=>e?{...e,series:e.series.map((w,v)=>({...w,color:w.color||To[v%To.length],hidden:m.has(w.name)}))}:o?o.map((w,v)=>({...w,color:w.color||To[v%To.length],hidden:m.has(w.label)})):null,[e,o,m]),k=h.useCallback((w,v,S)=>{a&&d({visible:!0,x:w,y:v,content:S})},[a]),x=h.useCallback(()=>{d(w=>({...w,visible:!1}))},[]),C=h.useCallback(()=>{if(!f.current)return{width:0,height:0};const{width:w,height:v}=f.current.getBoundingClientRect();return{width:w,height:v}},[]);return{animationProgress:i,tooltip:s,containerRef:f,processedData:y,showTooltip:k,hideTooltip:x,getChartDimensions:C,toggleSeries:u}},m0=({data:e,width:o,height:t,animationProgress:n,showGrid:a=!0,onBarClick:i,showTooltip:c,hideTooltip:s,views:d})=>{const{getColor:g}=l.useTheme(),f={top:20,right:20,bottom:40,left:50},m=o-f.left-f.right,p=t-f.top-f.bottom,u=h.useMemo(()=>{let b=0;return e.series.forEach(T=>{T.data.forEach(F=>{b=Math.max(b,F)})}),b},[e]),y=e.labels.length,k=e.series.length,x=m/y,C=x*.8/k,w=x*.2/(k+1),v=u||10,S=h.useMemo(()=>{const T=[];for(let F=0;F<=5;F++){const W=v/5*F;T.push(W)}return T},[u]);return r.jsxs("svg",{width:o,height:t,children:[r.jsx("defs",{children:e.series.map((b,T)=>{const F=b.color?g(b.color):"black";return r.jsxs("linearGradient",{id:`bar-gradient-${T}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[r.jsx("stop",{offset:"0%",stopColor:F,stopOpacity:1}),r.jsx("stop",{offset:"100%",stopColor:F,stopOpacity:.7})]},`bar-gradient-${T}`)})}),r.jsx("line",{x1:f.left,y1:t-f.bottom,x2:o-f.right,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),r.jsx("line",{x1:f.left,y1:f.top,x2:f.left,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),e.labels.map((b,T)=>{const F=f.left+(T+.5)*x,W=t-f.bottom+20;return r.jsx("text",{x:F,y:W,textAnchor:"middle",...Mr,...d==null?void 0:d.axisLabel,children:b},`x-label-${T}`)}),S.map((b,T)=>{const F=t-f.bottom-b/v*p;return r.jsxs(h.Fragment,{children:[r.jsx("text",{x:f.left-10,y:F,textAnchor:"end",dominantBaseline:"middle",...Mr,...d==null?void 0:d.axisLabel,children:b.toFixed(0)}),a&&r.jsx("line",{x1:f.left,y1:F,x2:o-f.right,y2:F,...ha,...d==null?void 0:d.grid})]},`y-tick-${T}`)}),e.series.map((b,T)=>b.hidden?null:r.jsx(h.Fragment,{children:b.data.map((F,W)=>{const j=F/v*p*n,$=f.left+W*x+w*(T+1)+C*T,z=t-f.bottom-j,E=e.labels[W],A=e.series.reduce((L,B)=>{const q=B.data[W];return L+(typeof q=="number"?q:0)},0),H=A>0?(F/A*100).toFixed(1):null,P=b.color?g(b.color):"black",M=L=>{const B=r.jsxs(l.View,{display:"flex",flexDirection:"column",minWidth:"180px",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"semibold",children:b.name}),r.jsx(l.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:P})]}),r.jsx(l.Text,{marginTop:"4px",color:"color-gray-500",fontSize:"12px",children:E}),r.jsxs(l.View,{marginTop:"8px",display:"flex",flexDirection:"column",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Value"}),r.jsx(l.Text,{fontWeight:"medium",children:F.toLocaleString()})]}),H!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Share"}),r.jsx(l.Text,{fontWeight:"medium",children:`${H}%`})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Category total"}),r.jsx(l.Text,{fontWeight:"medium",children:A.toLocaleString()})]})]})]}),q=L.currentTarget.getBoundingClientRect(),_=q.left+q.width/2,O=q.top;c(_,O,B)},V=()=>{i&&i(b.name,W)};return r.jsx("rect",{x:$,y:z,width:C,height:j,fill:`url(#bar-gradient-${T})`,onMouseEnter:M,onMouseMove:M,onMouseLeave:s,onClick:V,...i0,...d==null?void 0:d.bar},`bar-${T}-${W}`)})},`series-${T}`))]})},p0=({data:e,width:o,height:t,animationProgress:n,showGrid:a=!0,onPointClick:i,showTooltip:c,hideTooltip:s,views:d})=>{const{getColor:g}=l.useTheme(),f={top:20,right:20,bottom:40,left:40},m=o-f.left-f.right,p=t-f.top-f.bottom,u=h.useMemo(()=>{let w=0;return e.series.forEach(v=>{v.data.forEach(S=>{w=Math.max(w,S)})}),w},[e]),y=u||10,k=h.useMemo(()=>{const v=[];for(let S=0;S<=5;S++){const b=y/5*S;v.push(b)}return v},[u]),x=w=>{if(w.length<2)return"";const v=w.map((b,T)=>({x:f.left+T/(e.labels.length-1)*m,y:t-f.bottom-b/y*p*n}));let S=`M ${v[0].x},${v[0].y}`;for(let b=0;b<v.length-1;b++){const T=v[b===0?b:b-1],F=v[b],W=v[b+1],j=v[b+2===v.length?b+1:b+2],$=F.x+(W.x-T.x)/6,z=F.y+(W.y-T.y)/6,E=W.x-(j.x-F.x)/6,A=W.y-(j.y-F.y)/6;S+=` C ${$},${z} ${E},${A} ${W.x},${W.y}`}return S},C=w=>{if(w.length<2)return"";const v=x(w),S=f.left,b=f.left+m,T=t-f.bottom;return`${v} L ${b},${T} L ${S},${T} Z`};return r.jsxs("svg",{width:o,height:t,children:[r.jsx("defs",{children:e.series.map((w,v)=>{const S=w.color?g(w.color):"black";return r.jsxs("linearGradient",{id:`gradient-${v}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[r.jsx("stop",{offset:"0%",stopColor:S,stopOpacity:.3}),r.jsx("stop",{offset:"100%",stopColor:S,stopOpacity:0})]},`gradient-${v}`)})}),r.jsx("line",{x1:f.left,y1:t-f.bottom,x2:o-f.right,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),r.jsx("line",{x1:f.left,y1:f.top,x2:f.left,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),e.labels.map((w,v)=>{const S=f.left+v/(e.labels.length-1)*m,b=t-f.bottom+20;return r.jsx("text",{x:S,y:b,textAnchor:"middle",...Mr,...d==null?void 0:d.axisLabel,children:w},`x-label-${v}`)}),k.map((w,v)=>{const S=t-f.bottom-w/y*p;return r.jsxs(h.Fragment,{children:[r.jsx("text",{x:f.left-10,y:S,textAnchor:"end",dominantBaseline:"middle",...Mr,...d==null?void 0:d.axisLabel,children:w.toFixed(0)}),a&&r.jsx("line",{x1:f.left,y1:S,x2:o-f.right,y2:S,...ha,...d==null?void 0:d.grid})]},`y-tick-${v}`)}),e.series.map((w,v)=>{if(w.hidden)return null;const S=w.color?g(w.color):"black";return r.jsxs(h.Fragment,{children:[r.jsx("path",{d:C(w.data),fill:`url(#gradient-${v})`,...d==null?void 0:d.area}),r.jsx("path",{d:x(w.data),stroke:S,...c0,...d==null?void 0:d.line}),w.data.map((b,T)=>{const F=f.left+T/(e.labels.length-1)*m,W=t-f.bottom-b/y*p*n,j=e.labels[T],$=e.series.reduce((V,L)=>{const B=L.data[T];return V+(typeof B=="number"?B:0)},0),z=$>0?(b/$*100).toFixed(1):null,E=T>0&&typeof w.data[T-1]=="number"?w.data[T-1]:null,A=typeof E=="number"?b-E:null,H=typeof A=="number"?`${A>=0?"+":""}${A.toLocaleString()}`:null,P=V=>{const L=r.jsxs(l.View,{display:"flex",flexDirection:"column",minWidth:"200px",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"semibold",children:w.name}),r.jsx(l.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:S})]}),r.jsx(l.Text,{marginTop:"4px",color:"color-gray-500",fontSize:"12px",children:j}),r.jsxs(l.View,{marginTop:"8px",display:"flex",flexDirection:"column",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Value"}),r.jsx(l.Text,{fontWeight:"medium",children:b.toLocaleString()})]}),H!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Change"}),r.jsx(l.Text,{fontWeight:"medium",children:H})]}),z!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Share"}),r.jsx(l.Text,{fontWeight:"medium",children:`${z}%`})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Category total"}),r.jsx(l.Text,{fontWeight:"medium",children:$.toLocaleString()})]})]})]}),B=V.currentTarget.getBoundingClientRect(),q=B.left+B.width/2,_=B.top+B.height/2;c(q,_,L)},M=()=>{i&&i(w.name,T)};return r.jsx("circle",{cx:F,cy:W,fill:S,onMouseEnter:P,onMouseMove:P,onMouseLeave:s,onClick:M,...s0,...d==null?void 0:d.point},`point-${v}-${T}`)})]},`series-${v}`)})]})},u0=({dataPoints:e,width:o,height:t,animationProgress:n,isDonut:a=!1,onSliceClick:i,showTooltip:c,hideTooltip:s,views:d})=>{const{getColor:g}=l.useTheme(),{ref:f,relation:m}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),p=h.useRef(null);h.useEffect(()=>{p.current&&f&&(f.current=p.current)},[p,f]);const y=Math.min(o,t)/2*.8,k=o/2,x=t/2,C=a?y*.6:0,w=h.useMemo(()=>e.filter(b=>!b.hidden),[e]),v=h.useMemo(()=>w.reduce((b,T)=>b+T.value,0),[w]),S=h.useMemo(()=>{if(v===0)return[{path:a?[`M ${k} ${x-y}`,`A ${y} ${y} 0 1 1 ${k} ${x+y}`,`A ${y} ${y} 0 1 1 ${k} ${x-y}`,`M ${k} ${x-C}`,`A ${C} ${C} 0 1 0 ${k} ${x+C}`,`A ${C} ${C} 0 1 0 ${k} ${x-C}`,"Z"].join(" "):[`M ${k} ${x}`,`M ${k} ${x-y}`,`A ${y} ${y} 0 1 1 ${k} ${x+y}`,`A ${y} ${y} 0 1 1 ${k} ${x-y}`,"Z"].join(" "),color:"#E2E8F0",label:"Total",value:0,percentage:"0%",labelX:k,labelY:x,startAngle:0,endAngle:Math.PI*2,index:-1}];const b=[];let T=-Math.PI/2;for(let F=0;F<w.length;F++){const j=w[F].value/v,$=j*2*Math.PI*n,E=Math.max(0,$-.02),A=T+E,H=k+Math.cos(T)*y,P=x+Math.sin(T)*y,M=k+Math.cos(A)*y,V=x+Math.sin(A)*y,L=k+Math.cos(T)*C,B=x+Math.sin(T)*C,q=k+Math.cos(A)*C,_=x+Math.sin(A)*C,O=E>Math.PI?1:0;let U;a?U=[`M ${H} ${P}`,`A ${y} ${y} 0 ${O} 1 ${M} ${V}`,`L ${q} ${_}`,`A ${C} ${C} 0 ${O} 0 ${L} ${B}`,"Z"].join(" "):U=[`M ${k} ${x}`,`L ${H} ${P}`,`A ${y} ${y} 0 ${O} 1 ${M} ${V}`,"Z"].join(" ");const K=T+E/2,N=a?(y+C)/2:y*.7,D=k+Math.cos(K)*N,X=x+Math.sin(K)*N,Z=`${(j*100).toFixed(1)}%`,J=w[F].color||To[F%To.length],Q=g(J);b.push({path:U,color:Q,label:w[F].label,value:w[F].value,percentage:Z,labelX:D,labelY:X,startAngle:T,endAngle:A,index:F,originalIndex:e.findIndex(oe=>oe.label===w[F].label)}),T=A}return b},[w,v,y,k,x,C,n,a,e]);return r.jsxs("svg",{ref:p,width:o,height:t,style:{overflow:"visible"},children:[a&&r.jsxs("g",{pointerEvents:"none",children:[r.jsx("circle",{cx:k,cy:x,r:C,fill:"white"}),r.jsx("text",{x:k,y:x-8,textAnchor:"middle",dominantBaseline:"middle",fontSize:"14px",fontWeight:"500",fill:"color-gray-500",children:"Total"}),r.jsx("text",{x:k,y:x+12,textAnchor:"middle",dominantBaseline:"middle",fontSize:"20px",fontWeight:"800",fill:"color-gray-900",children:v.toLocaleString()})]}),S.map((b,T)=>{const F=$=>{const z=v>0?b.value/v*100:0,E=v>0?Math.max(0,100-z):null,A=r.jsxs(l.View,{display:"flex",flexDirection:"column",minWidth:"200px",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"semibold",children:b.label}),r.jsx(l.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:b.color})]}),r.jsxs(l.Text,{marginTop:"4px",color:"color-gray-500",fontSize:"12px",children:["Slice ",b.index+1," of ",w.length]}),r.jsxs(l.View,{marginTop:"8px",display:"flex",flexDirection:"column",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Value"}),r.jsx(l.Text,{fontWeight:"medium",children:b.value.toLocaleString()})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Share"}),r.jsx(l.Text,{fontWeight:"medium",children:b.percentage})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Total"}),r.jsx(l.Text,{fontWeight:"medium",children:v.toLocaleString()})]}),E!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Remaining"}),r.jsx(l.Text,{fontWeight:"medium",children:`${E.toFixed(1)}%`})]})]})]});let H=$.clientX,P=$.clientY;if(p.current){const M=p.current.getBoundingClientRect();H=M.left+b.labelX,P=M.top+b.labelY}c(H,P,A)},W=()=>{b.index!==-1&&i&&i(e[b.index],b.index)},j=b.index===-1;return r.jsxs("g",{children:[r.jsx("path",{d:b.path,fill:b.color,onMouseEnter:j?void 0:F,onMouseMove:j?void 0:F,onMouseLeave:j?void 0:s,onClick:W,...Wr,style:{...Wr==null?void 0:Wr.style,cursor:j?"default":"pointer"},...d==null?void 0:d.pie}),!j&&b.endAngle-b.startAngle>.25&&r.jsx("text",{x:b.labelX,y:b.labelY,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"11px",fontWeight:"800",pointerEvents:"none",paintOrder:"stroke",stroke:"rgba(0,0,0,0.2)",strokeWidth:"2px",children:b.percentage})]},`slice-${T}`)})]})},y0=({visible:e,x:o,y:t,content:n,maxDistance:a=100,views:i})=>{const c=h.useRef(null),[s,d]=h.useState({left:0,top:0});return h.useEffect(()=>{if(!e||!c.current||typeof window>"u"||typeof c.current.getBoundingClientRect!="function")return;const f=c.current.getBoundingClientRect(),m=f.width||200,p=f.height||100,u=20,y=16;let k=o-m/2,x=t-p-u;x<y&&(x=t+u),k+m>window.innerWidth-y?k=window.innerWidth-m-y:k<y&&(k=y),x=Math.max(y,Math.min(x,window.innerHeight-p-y)),d({left:k,top:x})},[e,o,t]),e?r.jsx(l.View,{ref:c,position:"fixed",left:`${s.left}px`,top:`${s.top}px`,...Fr,...i==null?void 0:i.tooltip,style:{...Fr==null?void 0:Fr.style,pointerEvents:"none",transition:"all 0.1s ease-out"},children:n}):null},b0=({type:e,data:o,dataPoints:t,title:n,showLegend:a=!0,legendPosition:i="bottom",showGrid:c=!0,showTooltips:s=!0,animated:d=!0,animationDuration:g=500,responsive:f=!0,aspectRatio:m=16/9,width:p=200,height:u=200,views:y,onDataPointClick:k,onSeriesClick:x,isLoading:C=!1,error:w,noData:v,loadingIndicator:S,errorIndicator:b,noDataIndicator:T,"aria-label":F,themeMode:W,...j})=>{const{animationProgress:$,tooltip:z,containerRef:E,processedData:A,showTooltip:H,hideTooltip:P,getChartDimensions:M,toggleSeries:V}=f0({data:o,dataPoints:t,animated:d,animationDuration:g,showTooltips:s}),L=A(),{width:B,height:q}=M(),_=p||B,O=u||(f?B/m:q),U=()=>{if(!a||!L)return null;let Q=[];return e==="pie"||e==="donut"?Array.isArray(L)&&(Q=L):L&&L.series&&(Q=L.series),!Q||Q.length===0?null:r.jsx(l.Horizontal,{flexWrap:"wrap",justifyContent:"flex-start",marginTop:i==="bottom"?"16px":0,marginBottom:i==="top"?"16px":0,...t0,...y==null?void 0:y.legend,children:Q.map((oe,re)=>{const ae=oe.hidden,te=oe.name||oe.label;return r.jsxs(l.View,{...n0,onClick:()=>V(te),opacity:ae?.4:1,...y==null?void 0:y.legendItem,children:[r.jsx(l.View,{backgroundColor:oe.color,...a0,opacity:ae?.3:1}),r.jsx(l.Text,{...l0,textDecoration:ae?"line-through":"none",children:te})]},`legend-${re}`)})})},K=()=>{if(!L)return null;switch(e){case"bar":return r.jsx(m0,{data:L,width:_,height:O,animationProgress:$,showGrid:c,onBarClick:x,showTooltip:H,hideTooltip:P,views:y});case"line":case"area":return r.jsx(p0,{data:L,width:_,height:O,animationProgress:$,showGrid:c,onPointClick:x,showTooltip:H,hideTooltip:P,views:y});case"pie":case"donut":return r.jsx(u0,{dataPoints:L,width:_,height:O,animationProgress:$,isDonut:e==="donut",onSliceClick:k,showTooltip:H,hideTooltip:P,views:y});default:return null}},N=()=>C?r.jsx(l.View,{...d0,...y==null?void 0:y.loadingOverlay,children:S||r.jsx(l.Center,{children:r.jsx(Re,{size:"lg"})})}):null,D=()=>w?r.jsx(l.View,{...g0,...y==null?void 0:y.errorOverlay,children:b||r.jsx(l.Text,{fontWeight:"medium",children:typeof w=="string"?w:"An error occurred"})}):null,X=()=>v?r.jsx(l.View,{...h0,...y==null?void 0:y.noDataOverlay,children:T||r.jsx(l.Text,{children:typeof v=="string"?v:"No data available"})}):null,Z=F??(typeof n=="string"?n:"Chart"),J=!w&&!C&&!v;return r.jsxs(l.View,{ref:E,role:"region","aria-label":Z,"aria-busy":C,...o0,...y==null?void 0:y.container,...j,children:[n&&r.jsx(l.Text,{...r0,children:n}),J&&i==="top"&&U(),r.jsxs(l.View,{flex:1,width:"100%",position:"relative",...y==null?void 0:y.chart,children:[J&&K(),N(),D(),X(),r.jsx(y0,{visible:s&&z.visible,x:z.x,y:z.y,content:z.content,maxDistance:100,views:y})]}),J&&i==="bottom"&&U()]})},x0=e=>r.jsx(b0,{...e}),k0=(e=365)=>{const[o,t]=h.useState(!1),[n,a]=h.useState(null),i="app-studio-cookie-consent";h.useEffect(()=>{if(typeof localStorage>"u")return;const g=localStorage.getItem(i);a(g!==null?g==="true":!1)},[]);const c=g=>{if(typeof localStorage<"u"){localStorage.setItem(i,String(g));const f=new Date;f.setDate(f.getDate()+e),localStorage.setItem(`${i}-expires`,f.toISOString())}a(g)};return{isHovered:o,setIsHovered:t,hasConsent:n,acceptCookies:()=>{c(!0)},resetConsent:()=>{typeof localStorage<"u"&&(localStorage.removeItem(i),localStorage.removeItem(`${i}-expires`)),a(!1)}}},C0=e=>({default:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:"color-gray-800"},acceptButton:{backgroundColor:"color-blue-500",color:"color-white",hoverBackgroundColor:"color-blue-600"},customizeButton:{backgroundColor:"transparent",color:"color-gray-600",borderColor:"color-gray-300",hoverBackgroundColor:"color-gray-100"}},info:{container:{backgroundColor:"color-blue-50",borderColor:"color-blue-200",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:"color-blue-800"},acceptButton:{backgroundColor:"color-blue-500",color:"color-white",hoverBackgroundColor:"color-blue-600"},customizeButton:{backgroundColor:"transparent",color:"color-blue-800",borderColor:"color-blue-300",hoverBackgroundColor:"color-blue-100"}},primary:{container:{backgroundColor:"color-blue-50",borderColor:"color-blue-200",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:"color-blue-700"},acceptButton:{backgroundColor:"color-blue-500",color:"color-white",hoverBackgroundColor:"color-blue-600"},customizeButton:{backgroundColor:"transparent",color:"color-blue-700",borderColor:"color-blue-300",hoverBackgroundColor:"color-blue-100"}}}),w0=({title:e="Nous utilisons des cookies",description:o="Ce site utilise des cookies pour améliorer votre expérience. En continuant à naviguer sur ce site, vous acceptez notre utilisation des cookies conformément à notre politique de confidentialité.",acceptButtonText:t="Accepter",customizeButtonText:n="Personnaliser",position:a="bottom",variant:i="default",onAccept:c,onCustomize:s,views:d,showCustomizeButton:g=!0,cookieExpiration:f=365,themeMode:m,...p})=>{const{themeMode:u}=l.useTheme(),{hasConsent:y,acceptCookies:k}=k0(f),C=C0()[i];if(y)return null;const w=()=>{k(),c&&c()},v=()=>{s&&s()};return r.jsx(l.View,{style:{position:"fixed",left:16,right:16,zIndex:1e3,...a==="bottom"?{bottom:16}:{top:16}},padding:16,borderWidth:"1px",borderStyle:"solid",borderRadius:8,maxWidth:"800px",marginLeft:"auto",marginRight:"auto",transition:"opacity 0.3s ease, transform 0.3s ease",...C.container,...d==null?void 0:d.container,...p,children:r.jsxs(l.Vertical,{gap:12,maxWidth:1200,marginLeft:"auto",marginRight:"auto",children:[e&&r.jsx(l.Text,{fontWeight:"bold",fontSize:18,color:"color-black",...d==null?void 0:d.title,children:e}),o&&r.jsx(l.Text,{fontSize:14,color:"color-black",...d==null?void 0:d.description,children:o}),r.jsxs(l.Horizontal,{gap:12,justifyContent:"flex-end",marginTop:8,...d==null?void 0:d.buttonGroup,children:[g&&r.jsx(ce,{variant:"outline",onClick:v,size:"sm",...d==null?void 0:d.customizeButton,children:n}),r.jsx(ce,{variant:"filled",onClick:w,size:"sm",...d==null?void 0:d.acceptButton,children:t})]})]})})},S0=e=>r.jsx(w0,{...e}),v0=e=>{const{size:o,variant:t,onOpenChange:n}=e||{},[a,i]=h.useState(!1),[c,s]=h.useState({x:0,y:0}),[d,g]=h.useState(null),f=h.useRef(null),m=h.useRef(null),p=h.useMemo(()=>tt("contextmenu-content"),[]),u=h.useCallback(k=>{s({x:k.clientX,y:k.clientY}),i(!0),n==null||n(!0)},[n]),y=h.useCallback(()=>{i(!1),g(null),n==null||n(!1)},[n]);return h.useEffect(()=>{const k=w=>{m.current&&!m.current.contains(w.target)&&y()},x=()=>{a&&y()},C=w=>{w.key==="Escape"&&a&&y()};if(!(typeof(document==null?void 0:document.addEventListener)!="function"||typeof(window==null?void 0:window.addEventListener)!="function"))return document.addEventListener("mousedown",k),window.addEventListener("resize",x),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",k),window.removeEventListener("resize",x),document.removeEventListener("keydown",C)}},[a,y]),{isOpen:a,setIsOpen:i,position:c,setPosition:s,activeSubmenuId:d,setActiveSubmenuId:g,size:o,variant:t,triggerRef:f,contentRef:m,contentId:p,openMenu:u,closeMenu:y}},fa={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},T0={default:{backgroundColor:"color-white",color:"color-gray-800"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},ma={hover:{backgroundColor:"color-gray-100"}},pa=h.createContext({isOpen:!1,setIsOpen:()=>{},position:{x:0,y:0},setPosition:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null},contentRef:{current:null},contentId:"contextmenu-content",closeMenu:()=>{},openMenu:()=>{}}),I0=({children:e,value:o})=>r.jsx(pa.Provider,{value:o,children:e}),Hr=()=>{const e=h.useContext(pa);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},ua=({children:e,disableNativeContextMenu:o=!0,asChild:t=!1,isDisabled:n=!1,views:a,...i})=>{const{triggerRef:c,contentId:s,openMenu:d}=Hr(),f={ref:c,onContextMenu:m=>{if(!n)if(o&&m.preventDefault(),d)d(m);else{const{setIsOpen:p,setPosition:u}=Hr();u({x:m.clientX,y:m.clientY}),p(!0)}},"aria-controls":s,"aria-haspopup":"menu","data-disabled":n?"":void 0,...t&&h.isValidElement(e)&&e.props.isDisabled===void 0&&{isDisabled:n},...a==null?void 0:a.container,...i};if(t&&h.isValidElement(e)){const m=h.Children.only(e);return h.cloneElement(m,{...f,...m.props})}return r.jsx(l.View,{...f,children:e})},Wt=({items:e,children:o,position:t,side:n="right",align:a="start",views:i,style:c,...s})=>{const{isOpen:d,position:g,contentRef:f,contentId:m,variant:p}=Hr(),u=h.useRef(null),y=f||u,{ref:k,relation:x}=l.useElementPosition({}),[C,w]=h.useState({x:0,y:0});if(h.useEffect(()=>{if(d&&y.current){const S=t||g,b=y.current.offsetWidth,T=y.current.offsetHeight,F=window.innerWidth,W=window.innerHeight;let j=S.x,$=S.y;x&&(x.space.horizontal==="left"?j=S.x-b:j=S.x,x.space.vertical==="top"?$=S.y-T:$=S.y),j+b>F&&(j=F-b-8),j<8&&(j=8),$+T>W&&($=W-T-8),$<8&&($=8),w({x:j,y:$})}},[d,g,t,n,a,y,x]),!d)return null;const v={position:"fixed",top:`${C.y}px`,left:`${C.x}px`,zIndex:1e3,transformOrigin:"top left"};return r.jsxs(l.View,{id:m||"context-menu",ref:y,role:"menu",tabIndex:-1,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:{...v,...c},...T0[p],...i==null?void 0:i.menu,...i==null?void 0:i.content,...s,children:[e&&e.map((S,b)=>S.divider?r.jsx(ba,{views:i},`divider-${b}`):r.jsx(ya,{item:S,views:i},S.id)),o]})},ya=({item:e,children:o,onSelect:t,isDisabled:n=!1,views:a,variant:i,shape:c,isLoading:s,loaderProps:d,loaderPosition:g,icon:f,iconPosition:m,isFilled:p,isAuto:u,isIconRounded:y,isHovered:k,shadow:x,ariaLabel:C,animation:w,textColor:v,reversed:S,borderMovingDuration:b,borderMovingGradientColors:T,animatedStrokeAccentColor:F,animatedStrokeTextColor:W,to:j,isExternal:$,config:z,...E})=>{const{activeSubmenuId:A,setActiveSubmenuId:H,size:P,closeMenu:M}=Hr();if(e){const[L,B]=h.useState(!1),q=e.items&&e.items.length>0,_=A===e.id,[O,U]=h.useState({x:0,y:0}),K=e.disabled||n,N=()=>{B(!0),q&&H(e.id)},D=()=>{B(!1)},X=()=>{K||!q&&e.onClick&&(e.onClick(),M&&M())},{ref:Z,relation:J}=l.useElementPosition({});return h.useEffect(()=>{if(_&&Z.current){const Q=Z.current.getBoundingClientRect(),oe=window.innerWidth,re=200;let ae=!1;if(J)ae=J.space.horizontal==="left";else{const te=oe-Q.right,se=Q.left;ae=te<re&&se>te}U({x:ae?Q.left-re:Q.right,y:Q.top})}},[_,e.items,J]),r.jsxs(l.View,{ref:Z,role:"menuitem",display:"flex",alignItems:"center",cursor:K?"not-allowed":"pointer",opacity:K?.5:1,position:"relative","aria-disabled":K,"data-disabled":K?"":void 0,...fa[P],_hover:K?{}:ma.hover,backgroundColor:L&&!K?"color-gray-100":"transparent",onMouseEnter:N,onMouseLeave:D,onClick:X,...a==null?void 0:a.item,...E,children:[e.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:e.icon}),r.jsx(l.View,{flexGrow:1,children:e.label}),q&&r.jsx(l.View,{marginLeft:8,...a==null?void 0:a.submenuIndicator,children:r.jsx(ge,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})}),_&&q&&r.jsx(Wt,{items:e.items||[],position:O,side:"right",align:"start",views:a})]})}const V=L=>{n||(t==null||t(L),M&&M())};return r.jsx(l.View,{role:"menuitem",onClick:V,cursor:n?"not-allowed":"pointer",opacity:n?.5:1,"aria-disabled":n,"data-disabled":n?"":void 0,...fa[P],_hover:n?{}:ma.hover,...a==null?void 0:a.item,...E,children:o})},ba=({views:e,...o})=>r.jsx(l.View,{height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",role:"separator","aria-orientation":"horizontal",...e==null?void 0:e.divider,...o}),F0=({views:e,...o})=>r.jsx(l.View,{height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",role:"separator","aria-orientation":"horizontal",...e==null?void 0:e.separator,...o}),z0=({children:e,items:o,size:t="md",variant:n="default",disableNativeContextMenu:a=!0,views:i,themeMode:c,onOpenChange:s,...d})=>!o||o.length===0?r.jsx(r.Fragment,{children:e}):r.jsxs(r.Fragment,{children:[r.jsx(ua,{disableNativeContextMenu:a,views:i,...d,children:e}),r.jsx(Wt,{items:o,views:i})]}),Io=({children:e,items:o,size:t="md",variant:n="default",disableNativeContextMenu:a=!0,onOpenChange:i,views:c,...s})=>{const d=v0({size:t,variant:n,onOpenChange:i}),{isOpen:g,setIsOpen:f,position:m,setPosition:p,activeSubmenuId:u,setActiveSubmenuId:y,triggerRef:k,contentRef:x,contentId:C,openMenu:w,closeMenu:v}=d;return r.jsx(I0,{value:{isOpen:g,setIsOpen:f,position:m,setPosition:p,activeSubmenuId:u,setActiveSubmenuId:y,size:t,variant:n,triggerRef:k,contentRef:x,contentId:C,openMenu:w,closeMenu:v,styles:c},children:r.jsx(z0,{items:o,size:t,variant:n,disableNativeContextMenu:a,views:c,...s,children:e})})};Io.Trigger=ua,Io.Content=Wt,Io.Item=ya,Io.Divider=ba,Io.Separator=F0;const M0=({src:e,color:o,views:t,themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=o?{fill:i(o,{themeMode:c}),stroke:i(o,{themeMode:c})}:{};return r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",...a,...t==null?void 0:t.container,children:r.jsx(l.Image,{...s,content:'url("'+e+'")',width:"100%",height:"100%",...t==null?void 0:t.image})})},W0=({path:e,...o})=>r.jsx(l.Image,{src:e,...o}),xa=(e,o)=>o?Array.isArray(e)?e:e===""?[]:[e]:Array.isArray(e)?e[0]??"":e,ka=({placeholder:e,isMulti:o,options:t,value:n,defaultValue:a,id:i=`select-${Math.random().toString(36).substr(2,9)}`})=>{const c=n!==void 0,[s,d]=h.useState(!1),[g,f]=h.useState(!1),[m,p]=h.useState(()=>a!==void 0?xa(a,o):o?[]:e?"":Array.isArray(t)&&t.length>0?t[0].value:""),u=c?xa(n,o):m,y=h.useCallback(v=>{c||p(v)},[c]),[k,x]=h.useState(0),[C,w]=h.useState(!0);return{id:i,value:u,setValue:y,hide:C,setHide:w,isHovered:s,setIsHovered:d,isFocused:g,setIsFocused:f,highlightedIndex:k,setHighlightedIndex:x}},Ht=({children:e,views:o={helperText:{}},...t})=>r.jsx(l.Text,{fontSize:"11px",fontWeight:"400",letterSpacing:"-0.01em",lineHeight:"16px",marginVertical:0,marginHorizontal:0,color:"color-gray-500",transition:"color 0.2s ease, opacity 0.2s ease",...o.helperText,...t,children:e}),Ye=h.forwardRef(({children:e,helperText:o,error:t=!1,views:n,...a},i)=>r.jsxs(l.Vertical,{ref:i,gap:4,position:"relative",width:"100%",boxSizing:"border-box",marginVertical:0,...a,...n==null?void 0:n.container,children:[e,!t&&o&&r.jsx(Ht,{marginTop:0,...n==null?void 0:n.helperText,children:o}),t&&r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",marginTop:0,marginHorizontal:0,fontWeight:"500",color:"color-red-500",transition:"color 0.2s ease, opacity 0.2s ease",...n==null?void 0:n.error,children:t})]}));Ye.displayName="FieldContainer";const H0={default:{borderRadius:"8px"},square:{borderRadius:0},rounded:{borderRadius:"8px"},pill:{borderRadius:"9999px"}},j0={xs:"10px",sm:"11px",md:"11px",lg:"12px",xl:"12px"},P0={outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",backgroundColor:"transparent",color:"inherit",transition:"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease",_hover:{borderColor:"color-gray-300"},_focus:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"},_focusVisible:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"}},default:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"8px",backgroundColor:"transparent",color:"inherit",transition:"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease",_hover:{borderColor:"color-gray-300"},_focus:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"},_focusVisible:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"}},none:{border:"none",style:{backgroundColor:"transparent"},color:"inherit",transition:"background-color 0.2s ease"}},A0={xs:{minHeight:24,paddingVertical:4,paddingHorizontal:10},sm:{minHeight:32,paddingVertical:7,paddingHorizontal:10},md:{minHeight:40,paddingVertical:9,paddingHorizontal:12},lg:{minHeight:48,paddingVertical:11,paddingHorizontal:14},xl:{minHeight:56,paddingVertical:13,paddingHorizontal:16}},V0=e=>{const{minHeight:o,paddingVertical:t,paddingHorizontal:n}=A0[e];return{minHeight:`${o}px`,paddingTop:`${t}px`,paddingBottom:`${t}px`,paddingLeft:`${n}px`,paddingRight:`${n}px`}},eo=({label:e,shadow:o,children:t,value:n,size:a="md",shape:i="default",variant:c="default",error:s=!1,showLabel:d=!1,isFocused:g=!1,isHovered:f=!1,isDisabled:m=!1,isReadOnly:p=!1,views:u={pickerBox:{}},...y})=>{const{themeMode:k}=l.useTheme(),x=k==="dark",w=s?"color-red-500":(f||g)&&!m?"theme-primary":"color-gray-200";return r.jsx(l.Horizontal,{gap:8,width:"100%",boxSizing:"border-box",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",borderStyle:"solid",borderColor:w,backgroundColor:x?"color-gray-900":"color-white",fontSize:l.Typography.fontSizes[a],cursor:m?"not-allowed":p?"auto":"text",opacity:m?.7:1,transition:"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease",...V0(a),...typeof o=="object"&&o!==null?o:{},...H0[i],...P0[c],...u==null?void 0:u.container,...y,children:t})},jt=({children:e,...o})=>r.jsx(l.Horizontal,{gap:10,right:10,zIndex:500,flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-end",...o,children:e}),E0={h1:{fontSize:96,letterSpacing:-1.5},h2:{fontSize:60,letterSpacing:-.5},h3:{fontSize:48,letterSpacing:0},h4:{fontSize:34,letterSpacing:.25},h5:{fontSize:24,letterSpacing:0},h6:{fontSize:20,letterSpacing:.15}},D0=({children:e,heading:o,isItalic:t=!1,isUnderlined:n=!1,isStriked:a=!1,weight:i="normal",size:c="sm",dropDown:s,error:d,isDisabled:g,helperText:f,views:m,...p})=>{const u=o?E0[o]:{};return r.jsx(l.Element,{as:"label",width:"100%",fontSize:c,fontStyle:t?"italic":"normal",fontWeight:l.Typography.fontWeights[i],textDecoration:a?"line-through":n?"underline":"none",...u,...p,children:e})},Jo=e=>r.jsx(D0,{...e}),co=({children:e,size:o="md",error:t=!1,color:n="theme-primary",views:a={label:{}},helperText:i,...c})=>r.jsx(Jo,{position:"static",fontSize:j0[o],letterSpacing:"-0.01em",whiteSpace:"nowrap",fontWeight:500,opacity:t?1:.72,color:t?"color-red-500":"inherit",transition:"color 0.2s ease",...a.label,...c,children:e}),Fo=({children:e,...o})=>r.jsx(l.Vertical,{display:"flex",flexDirection:"column",gap:4,flex:1,width:"100%",maxWidth:"100%",boxSizing:"border-box",...o,children:e}),Ca={xs:12,sm:14,md:16,lg:18,xl:20},$0={maxHeight:"280px",overflowY:"auto",zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},L0={enter:{opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.2s ease-in-out"}},_0={padding:"10px 12px",cursor:"pointer",borderRadius:8,margin:"2px 4px",transition:"all 0.15s ease-in-out"},jr={default:{},highlighted:{backgroundColor:"color-gray-100"},selected:{backgroundColor:"color-gray-100"},selectedHighlighted:{backgroundColor:"color-gray-200"}},wa={open:{transform:"rotate(180deg)",transition:"all 0.2s ease-in-out"},closed:{transform:"rotate(0deg)",transition:"all 0.2s ease-in-out"}},B0={padding:"4px 8px",borderRadius:8,backgroundColor:"color-gray-100",fontSize:"12px",fontWeight:"500",color:"color-gray-700",transition:"all 0.15s ease-in-out"},O0={scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.15) transparent"},N0=e=>{if(!e)return{};const{container:o,content:t,...n}=e;return n},q0=({isHovered:e,setIsHovered:o=()=>{},option:t,size:n="md",callback:a=()=>{},style:i,isSelected:c=!1,...s})=>{const d=(m,p)=>{m.stopPropagation(),m.preventDefault(),typeof a=="function"&&a(p)},g=()=>o(!e),f=()=>c&&e?jr.selectedHighlighted:c?jr.selected:e?jr.highlighted:jr.default;return r.jsxs(l.Element,{as:"li",role:"option","aria-selected":c,display:"flex",alignItems:"center",justifyContent:"space-between",listStyleType:"none",..._0,...f(),onMouseEnter:g,onMouseLeave:g,onClick:m=>d(m,t.value),...s,children:[r.jsx(l.Text,{fontSize:l.Typography.fontSizes[n],fontWeight:c?"500":"400",lineHeight:"14px",color:c?"color-gray-900":"color-gray-700",...i,children:t.label}),c&&r.jsx(l.Element,{as:"span",color:"theme-primary",fontSize:"14px",marginLeft:8,display:"flex",alignItems:"center",children:"✓"})]})},U0=({size:e="md",views:o={field:{},text:{}},value:t,isDisabled:n,placeholder:a,removeOption:i=()=>{},options:c})=>{const s=(o==null?void 0:o.field)||{},d=(o==null?void 0:o.text)||{},g=Array.isArray(t)&&t.length>0,f={margin:0,width:"95%",height:"100%",border:"none",paddingVertical:0,paddingHorizontal:0,fontSize:l.Typography.fontSizes[e],fontWeight:"400",letterSpacing:"-0.01em",color:n?"color-gray-400":"color-gray-900",cursor:n?"not-allowed":"pointer",transition:"all 0.2s ease-in-out",...g?{}:{maxLines:1,minWidth:0},...s,...d,style:{backgroundColor:"transparent",...s.style,...d.style}},m=c.length>0&&c.find(p=>p.value===t);return r.jsx(l.Text,{...f,children:(t===""||Array.isArray(t)&&t.length===0)&&a?a:r.jsx(r.Fragment,{children:typeof t=="string"?(m&&m.label)??t:Array.isArray(t)&&t.length>0?r.jsx(l.Horizontal,{gap:6,children:t.map(p=>r.jsx(K0,{option:p,removeOption:i},p))}):r.jsx("span",{children:t})})})},G0=({id:e,name:o,value:t,onChange:n,isMulti:a=!1,isDisabled:i=!1,isReadOnly:c=!1,options:s=[],defaultValue:d,...g})=>{const f=m=>{n&&n(a?Array.from(m.target.selectedOptions,p=>p.value):m.target.value)};return r.jsx(l.Element,{id:e,name:o,as:"select",opacity:0,width:1,height:1,overflow:"hidden",position:"absolute",pointerEvents:"none",tabIndex:-1,"aria-hidden":"true",value:t,disabled:i,readOnly:c,onChange:f,multiple:a,...g,children:s.length>0&&s.map(m=>r.jsx("option",{value:m.value,children:m.label},m.value))})},Y0=({size:e,views:o={},options:t,callback:n=()=>{},highlightedIndex:a,setHighlightedIndex:i=()=>{},selectedValue:c})=>{const s=g=>n(g),d=g=>Array.isArray(c)?c.includes(g):c===g;return r.jsx(l.Element,{as:"ul",role:"listbox",display:"flex",flexDirection:"column",margin:0,padding:"4px",...$0,style:O0,...o==null?void 0:o.dropDown,children:t&&t.length>0&&t.map((g,f)=>r.jsx(q0,{size:e,style:o.text,option:g,callback:s,isSelected:d(g.value),isHovered:f===a,setIsHovered:()=>{},onMouseEnter:()=>i(f)},g.value))})},K0=({option:e,size:o="md",removeOption:t=()=>{},...n})=>{const a=()=>t(e);return r.jsxs(l.Horizontal,{gap:6,alignItems:"center",onClick:i=>i.stopPropagation(),...B0,_hover:{backgroundColor:"color-gray-200"},...n,children:[r.jsx(l.Text,{fontSize:l.Typography.fontSizes[o],fontWeight:"500",color:"color-gray-700",children:e}),r.jsx(Me,{role:"close-button",color:"color-gray-500",widthHeight:Ca[o],onClick:a,cursor:"pointer",transition:"all 0.2s ease-in-out",_hover:{color:"color-gray-700"}})]})},Sa=({id:e,name:o,label:t,value:n,placeholder:a,helperText:i,hide:c=!1,error:s=!1,isMulti:d=!1,isFocused:g=!1,isHovered:f=!1,isDisabled:m=!1,isReadOnly:p=!1,options:u=[],shadow:y={},size:k="md",shape:x="default",variant:C="default",views:w={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:v=()=>{},setHide:S=()=>{},setValue:b=()=>{},setIsHovered:T=()=>{},setIsFocused:F=()=>{},setHighlightedIndex:W,highlightedIndex:j,isScrollable:$,"aria-label":z,...E})=>{const{ref:A,relation:H,updateRelation:P}=l.useElementPosition({trackChanges:!0,trackOnScroll:!0,trackOnResize:!0,throttleMs:10}),M=h.useRef(null),V=()=>{var Z;if(!A.current)return{};const N=A.current.getBoundingClientRect(),D={position:"fixed",left:N.left,width:N.width,zIndex:1e4};return((Z=H==null?void 0:H.space)==null?void 0:Z.vertical)==="top"?{...D,bottom:window.innerHeight-N.top+8}:{...D,top:N.bottom+8}};h.useEffect(()=>{const N=()=>S(!0);return document.addEventListener("closeAllSelects",N),()=>document.removeEventListener("closeAllSelects",N)},[S]),h.useEffect(()=>{const N=D=>{!D.target.closest(`#${e}`)&&!c&&S(!0)};return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[e,c,S]);const L=()=>T(!f),B=()=>F(!0),q=N=>{document.dispatchEvent(new Event("closeAllSelects")),N&&N.stopPropagation&&N.stopPropagation();const D=!c;S(D),F(!D)},_=h.useCallback(N=>{if(S(!0),document.dispatchEvent(new Event("closeAllSelects")),d&&Array.isArray(n)){if(!n.includes(N)){const D=[...n,N];b(D),v&&v(D)}}else b(N),v&&v(N);F(!0)},[d,n,S,b,v,F]),O=N=>{if(Array.isArray(n)&&n.includes(N)){const D=n.filter(X=>X!==N);b(D),v&&v(D)}},U=!!t,K=N0(w);return r.jsx(Ye,{ref:A,position:"relative",width:"100%",display:"inline-block",id:e,role:"combobox","aria-haspopup":"listbox","aria-expanded":!c,"aria-label":z??(typeof t=="string"?t:void 0),"aria-disabled":m||void 0,tabIndex:m||p?-1:0,helperText:i,error:s,views:K,onKeyDown:N=>{if(!(m||p)){if(N.key==="Enter"||N.key===" "||N.key==="ArrowDown"){N.preventDefault(),c&&(document.dispatchEvent(new Event("closeAllSelects")),S(!1),F(!0));return}N.key==="Escape"&&!c&&(N.preventDefault(),S(!0))}},onClick:N=>{N.stopPropagation(),m||p||q(N)},children:r.jsxs(eo,{label:t,size:k,error:s,shape:x,views:w,shadow:y,variant:C,value:n,color:"theme-primary",isHovered:f,isDisabled:m,isReadOnly:p,isFocused:g,showLabel:U,onMouseEnter:L,onMouseLeave:L,position:"relative",...w==null?void 0:w.content,children:[r.jsxs(Fo,{children:[U&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:s,...w==null?void 0:w.label,children:t}),r.jsx(G0,{id:e,name:o,options:u,onChange:v,value:n,isDisabled:m,isReadOnly:p,isMulti:d,onFocus:B,...E}),r.jsx(U0,{options:u,size:k,views:w,value:n,isDisabled:m,placeholder:a,removeOption:O})]}),r.jsx(jt,{children:!p&&!m&&r.jsx(l.Element,{display:"flex",alignItems:"center",justifyContent:"center",style:c?wa.closed:wa.open,children:r.jsx(ge,{color:"inherit",widthHeight:Ca[k],style:w.icon,orientation:"down"})})}),!c&&u.length>0&&r.jsx(ct,{children:r.jsx(l.Element,{ref:M,onClick:N=>N.stopPropagation(),style:{...V(),...L0.enter},children:r.jsx(Y0,{size:k,views:w,options:u,callback:_,highlightedIndex:j,setHighlightedIndex:W,selectedValue:n})})})]})})},Qo=e=>{const o=pe("select",e),t={...o,options:o.options||[]},n=ka(t);return r.jsx(Sa,{...n,...t,value:n.value,onClick:a=>{a.stopPropagation(),o.onClick&&o.onClick(a)}})},va=({isDisabled:e,isChecked:o})=>{const[t,n]=h.useState(!1),[a,i]=h.useState(o||!1),[c,s]=h.useState(o||!1);return h.useEffect(()=>{o!==void 0&&(i(o),s(o))},[o]),{isHovered:t,setIsHovered:n,on:a,setOn:i,value:c,setValue:s}},Ta={xs:{height:"10px",width:"10px"},sm:{height:"14px",width:"14px"},md:{height:"18px",width:"18px"},lg:{height:"22px",width:"22px"},xl:{height:"26px",width:"26px"}},X0={xs:{height:"20px",width:"40px"},sm:{height:"24px",width:"48px"},md:{height:"28px",width:"56px"},lg:{height:"32px",width:"64px"},xl:{height:"36px",width:"72px"}},J0={xs:{height:"22px",width:"52px"},sm:{height:"26px",width:"62px"},md:{height:"30px",width:"72px"},lg:{height:"34px",width:"84px"},xl:{height:"38px",width:"96px"}},Q0={xs:"9px",sm:"10px",md:"11px",lg:"12px",xl:"13px"},Pr={xs:{paddingVertical:5,paddingHorizontal:3},sm:{paddingVertical:5,paddingHorizontal:3},md:{paddingVertical:5,paddingHorizontal:5},lg:{paddingVertical:5,paddingHorizontal:5},xl:{paddingVertical:5,paddingHorizontal:5}},so={default:{active:"theme-primary",inactive:"color-gray-300",knob:"color-white",disabled:"color-gray-200"},states:{hover:{active:"theme-primary",inactive:"color-gray-400",activeOpacity:.9}}},Ia={slider:{transition:"all 0.2s ease-in-out"},knob:{transition:"all 0.2s ease-in-out"}},Z0=e=>r.jsx(l.Input,{type:"checkbox",...e}),Fa=({id:e,name:o,label:t,inActiveChild:n,isChecked:a,activeChild:i,labelPosition:c="right",shadow:s={},size:d="sm",value:g=!1,isHovered:f=!1,isDisabled:m=!1,isReadOnly:p=!1,on:u,setOn:y=()=>{},onChange:k,setValue:x=()=>{},setIsHovered:C=()=>{},helperText:w,views:v={slider:{},circle:{},label:{}},...S})=>{const b=typeof a=="boolean"?a:g,F=!!(i||n)?J0[d]:X0[d],W=`${Pr[d].paddingHorizontal}px`,j=`${Pr[d].paddingHorizontal+2}px`,$=`calc(${Ta[d].width} + ${Pr[d].paddingHorizontal}px + 4px)`,z=Q0[d],E=M=>{if(!p&&!m){const V=M.target.checked;x(V),y(V),k&&k(V)}},A=()=>C(!0),H=()=>C(!1),P={container:{gap:12,display:"flex",height:"fit-content",width:"fit-content",alignItems:"center",cursor:m?"not-allowed":p?"default":"pointer",opacity:m?.6:1,transition:"all 0.2s ease-in-out",...v.label}};return r.jsxs(Jo,{htmlFor:e,onMouseEnter:A,onMouseLeave:H,...P.container,...S,children:[r.jsx(Z0,{id:e,name:o,opacity:0,width:0,height:0,checked:b,onChange:E,disabled:m,readOnly:p,...S}),c==="left"&&t&&r.jsx(l.Text,{fontWeight:"500",color:m?"color-gray-400":"inherit",transition:"color 0.2s ease, opacity 0.2s ease",children:t}),r.jsxs(l.View,{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",marginBottom:4,borderRadius:"9999px",backgroundColor:m?so.default.disabled:b?f?so.states.hover.active:so.default.active:f?so.states.hover.inactive:so.default.inactive,opacity:!m&&b&&f?so.states.hover.activeOpacity:1,cursor:"pointer",...Ia.slider,...s,...Pr[d],...F,...v.slider,children:[i&&b&&r.jsx(l.View,{marginLeft:j,marginRight:$,transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",fontSize:z,color:"color-white",fontWeight:600,children:i}),r.jsx(l.View,{position:"absolute",top:"50%",left:b?void 0:W,right:b?W:void 0,borderRadius:"50%",backgroundColor:so.default.knob,boxShadow:f?"0 4px 10px rgba(15, 23, 42, 0.18)":"0 1px 3px rgba(15, 23, 42, 0.18)",transform:`translateY(-50%) ${f?"scale(1.05)":"scale(1)"}`,...Ia.knob,zIndex:1,...Ta[d],...v.circle}),n&&!b&&r.jsx(l.View,{marginLeft:$,marginRight:j,transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",fontSize:z,color:"color-white",fontWeight:600,children:n})]}),c==="right"&&t&&r.jsx(l.Text,{fontWeight:"500",color:m?"color-gray-400":"inherit",transition:"all 0.2s ease-in-out",children:t})]})},Pt=e=>{const o=pe("switch",e),t=va(o);return r.jsx(Fa,{...t,...o})},za=({placeholder:e,isMulti:o,options:t,id:n=`selector-${Math.random().toString(36).substr(2,9)}`})=>{const a=e?o?[]:"":Array.isArray(t)&&t.length>0?t[0].value:o?[]:"",[i,c]=h.useState(!1),[s,d]=h.useState(!1),[g,f]=h.useState(a),[m,p]=h.useState(0),[u,y]=h.useState(!0);return{id:n,value:g,setValue:f,hide:u,setHide:y,isHovered:i,setIsHovered:c,isFocused:s,setIsFocused:d,highlightedIndex:m,setHighlightedIndex:p}},Ma=({id:e,name:o,label:t,value:n,views:a={},options:i=[],onChange:c=()=>{},setValue:s=()=>{}})=>{const d=h.useCallback(g=>{s(g.value),c&&c(g.value)},[s,c]);return r.jsxs(Ye,{id:e,width:"100%",views:a,children:[t&&r.jsxs(l.Horizontal,{fontSize:"10px",letterSpacing:"wider",color:"color-black-500",fontWeight:"bold",marginBottom:12,alignItems:"center",gap:6,style:{textTransform:"uppercase"},children:[r.jsx(Ze,{widthHeight:14})," ",r.jsx(l.Text,{children:t})]}),r.jsx(l.Horizontal,{gap:0,children:i.map((g,f,m)=>{const p=n===g.value,u=g.color??"theme-primary",y=p?u:"color-gray-200",k=p?u:"color-gray-500",x=f===0,C=f===m.length-1,w=C||p;return r.jsx(l.View,{as:"button",type:"button",onClick:()=>d(g),flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",paddingVertical:6,paddingHorizontal:12,fontSize:"12px",fontWeight:p?"bold":"normal",cursor:"pointer",backgroundColor:"transparent",color:k,borderStyle:"solid",borderColor:y,borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:w?1:0,borderRadius:x?"6px 0 0 6px":C?"0 6px 6px 0":"0",zIndex:p?1:0,transition:"color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease",...a.item,children:g.label},g.value)})}),r.jsx("input",{type:"hidden",id:e,name:o,value:Array.isArray(n)?n.join(","):n,onChange:()=>{}})]})},R0=e=>{const o={...e,options:e.options||[]},t=za(o);return r.jsx(Ma,{...t,...o,onClick:n=>{n.stopPropagation(),e.onClick&&e.onClick(n)}})},Wa=({label:e,placeholder:o,value:t})=>{const[n,a]=h.useState(e??o),[i,c]=h.useState(!1),[s,d]=h.useState(t||""),[g,f]=h.useState(!1);return h.useMemo(()=>{a(g&&!s?o??"":e??o)},[s,g,e,o]),{hint:n,setHint:a,isHovered:i,setIsHovered:c,value:s,setValue:d,isFocused:g,setIsFocused:f}},eg=e=>{if(!e)return{};const{container:o,content:t,...n}=e;return n},og=(e,o)=>{if(o!=="pill")return e;if(typeof e=="number")return Math.min(e,28);if(typeof e=="string"){const t=Number.parseFloat(e);if(Number.isFinite(t)&&e.trim().endsWith("px"))return`${Math.min(t,28)}px`}return"28px"},Ha=({id:e,name:o,hint:t,error:n,value:a,label:i,shadow:c,helperText:s,placeholder:d,size:g="sm",shape:f="default",variant:m="default",isHovered:p=!1,isFocused:u=!1,isEditable:y=!1,isReadOnly:k=!1,isDisabled:x=!1,isAutoFocus:C=!1,isMultiline:w=!1,maxRows:v=3,maxCols:S=30,onBlur:b=()=>{},onChange:T,onFocus:F,setHint:W=()=>{},setValue:j=()=>{},setIsFocused:$=()=>{},setIsHovered:z=()=>{},onChangeText:E,onSubmit:A,isWorkerRunning:H,inputRef:P,views:M={label:{},helperText:{}},...V})=>{const L=!!i,B={xs:{minHeight:"72px",shellPaddingY:6,shellPaddingX:10,fontSize:12,lineHeight:"16px"},sm:{minHeight:"88px",shellPaddingY:8,shellPaddingX:10,fontSize:12,lineHeight:"16px"},md:{minHeight:"104px",shellPaddingY:10,shellPaddingX:12,fontSize:14,lineHeight:"20px"},lg:{minHeight:"120px",shellPaddingY:12,shellPaddingX:14,fontSize:16,lineHeight:"24px"},xl:{minHeight:"136px",shellPaddingY:14,shellPaddingX:16,fontSize:18,lineHeight:"28px"}},q=(M==null?void 0:M.field)||{},_=(M==null?void 0:M.container)||{},O=og(_.borderRadius,f),U={...M,container:{..._,...O!==void 0?{borderRadius:O}:{},overflow:"hidden"}},K=eg(M),N={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",minHeight:B[g].minHeight,maxHeight:"calc(100vh - 100px)",border:"none",on:{focus:{outline:"none"}},fontSize:B[g].fontSize,letterSpacing:"-0.01em",fontWeight:400,color:x?"color-gray-400":"color-gray-900",cursor:x?"not-allowed":"text",opacity:x?.7:1,transition:"color 0.2s ease, opacity 0.2s ease",...q,style:{backgroundColor:"transparent",...q.style}},D=()=>{$(!0),F&&F()},X=J=>{b(J),$(!1)},Z=J=>{const Q=typeof J=="string"?J:J.target.value;j(Q),E&&E(Q),T&&T(Q)};return r.jsx(Ye,{helperText:s,error:n,views:K,children:r.jsx(eo,{label:i,size:g,error:n,shape:f,views:U,shadow:c,variant:m,value:a,color:"theme-primary",isHovered:p,isDisabled:x,isReadOnly:k,isFocused:u,showLabel:L,alignItems:"flex-start",minHeight:B[g].minHeight,paddingTop:B[g].shellPaddingY,paddingBottom:B[g].shellPaddingY,paddingLeft:B[g].shellPaddingX,paddingRight:B[g].shellPaddingX,onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),...U==null?void 0:U.content,children:r.jsxs(Fo,{...M==null?void 0:M.warper,children:[L&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:n,...M==null?void 0:M.label,children:i}),r.jsx(l.Element,{ref:P,as:"textarea",id:e,name:o,rows:v,cols:S,value:a,readOnly:k,disabled:x,autoFocus:C,placeholder:d||t,onBlur:X,onFocus:D,onChange:J=>Z(J),...N,...V,style:{resize:x||k?"none":"vertical",...N.style,...V.style||{}},...M==null?void 0:M.textarea})]})})})},At=e=>{const o=pe("textarea",e),t=Wa(o);return r.jsx(Ha,{...t,...o})},Vt=({label:e,placeholder:o,value:t})=>{const[n,a]=h.useState(e??o),[i,c]=h.useState(!1),[s,d]=h.useState(!1),[g,f]=h.useState(t);return h.useMemo(()=>{a(i&&!g?o??"":e??o)},[g,i,e,o]),{hint:n,setHint:a,isFocused:i,setIsFocused:c,isHovered:s,setIsHovered:d,setValue:f,value:g}},Zo=({id:e,name:o,label:t,hint:n,value:a,onChange:i,left:c,right:s,helperText:d,placeholder:g,onChangeText:f,shadow:m={},views:p={container:{},field:{},label:{},helperText:{},text:{}},size:u="md",shape:y="default",variant:k="default",error:x=!1,isFocused:C=!1,isHovered:w=!1,isDisabled:v=!1,isReadOnly:S=!1,isClearable:b=!0,isAutoFocus:T=!1,setHint:F=()=>{},setIsFocused:W=()=>{},setIsHovered:j=()=>{},setValue:$=()=>{},onClick:z=()=>{},onFocus:E,onBlur:A=()=>{},themeMode:H,inputRef:P,...M})=>{const{getColor:V,themeMode:L}=l.useTheme(),B=V(v?"color-gray-400":"color-gray-500",{themeMode:H||L}),q=!!t,_={xs:{minHeight:24,shellPaddingY:6,shellPaddingX:10,fontSize:12,lineHeight:"16px"},sm:{minHeight:32,shellPaddingY:8,shellPaddingX:10,fontSize:12,lineHeight:"16px"},md:{minHeight:40,shellPaddingY:10,shellPaddingX:12,fontSize:14,lineHeight:"20px"},lg:{minHeight:48,shellPaddingY:12,shellPaddingX:14,fontSize:16,lineHeight:"24px"},xl:{minHeight:56,shellPaddingY:14,shellPaddingX:16,fontSize:18,lineHeight:"28px"}},O=(p==null?void 0:p.field)||{},U="0 0 0 1000px var(--theme-canvas) inset",K={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",minHeight:"auto",border:"none",backgroundColor:"transparent",fontSize:_[u].fontSize,letterSpacing:"-0.01em",fontWeight:400,color:v?"color-gray-400":"color-gray-900",cursor:v?"not-allowed":"text",opacity:v?.7:1,transition:"color 0.2s ease, opacity 0.2s ease",_focus:{outline:"none",_placeholder:{opacity:.7}},_placeholder:{color:"color-gray-400",opacity:1,transition:"opacity 0.2s ease-out"},_selection:{backgroundColor:"color-mix(in srgb, var(--theme-primary) 20%, transparent)"},_webkitAutofill:{boxShadow:U,WebkitBoxShadow:U,WebkitTextFillColor:"var(--theme-text)",transition:"background-color 5000s ease-in-out 0s"},_webkitContactsAutoFillButton:{visibility:"hidden",pointerEvents:"none",position:"absolute",right:0},...O},N=()=>{W(!0),E&&E()},D=()=>j(!0),X=()=>j(!1),Z=te=>{A&&A(te),W(!1)},J=te=>{typeof te=="string"?($(te),f&&f(te),i&&i(te)):($(te.target.value),f&&f(te.target.value),i&&i(te.target.value))},Q=()=>{$(""),f&&f(""),i&&i(""),A({target:{name:o}})},{container:oe,content:re,...ae}=p||{};return r.jsx(Ye,{helperText:d,error:x,views:ae,children:r.jsxs(eo,{label:t,size:u,error:x,shape:y,views:p,shadow:m,variant:k,value:a,color:"theme-primary",isHovered:w,isDisabled:v,isReadOnly:S,isFocused:C,showLabel:q,onMouseEnter:D,onMouseLeave:X,children:[c,r.jsxs(Fo,{children:[q&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:x,...p==null?void 0:p.label,children:t}),r.jsx(l.Input,{ref:P,type:"text",id:e,name:o,readOnly:S,disabled:v,autoFocus:T,placeholder:g||n,onFocus:N,onBlur:Z,autoComplete:"off",...K,...M,onChange:J,value:a})]}),b&&a&&!S&&!v&&r.jsx(jt,{children:r.jsx(Me,{size:20,color:B,onClick:Q,cursor:"pointer",borderRadius:"50%",transition:"background-color 0.2s ease, transform 0.2s ease",_hover:{backgroundColor:"color-gray-100",transform:"scale(1.05)"},_active:{transform:"scale(0.95)"}})}),s]})})},We=e=>{const o=pe("input",e),t=Vt(o);return r.jsx(Zo,{...t,...o})},ja=({defaultIsSelected:e=!1})=>{const[o,t]=h.useState(!1),[n,a]=h.useState(e);return{isHovered:o,setIsHovered:t,isSelected:n,setIsSelected:a}},rg={xs:{height:"12px",width:"12px"},sm:{height:"16px",width:"16px"},md:{height:"20px",width:"20px"},lg:{height:"24px",width:"24px"},xl:{height:"28px",width:"28px"}},Pa={xs:10,sm:14,md:16,lg:20,xl:24},tg={selected:{backgroundColor:"theme-primary",borderColor:"theme-primary",borderWidth:"2px",borderStyle:"solid",color:"color-white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},unselected:{backgroundColor:"transparent",borderWidth:"2px",borderStyle:"solid",borderColor:"color-gray-300",color:"inherit",transition:"all 0.2s ease-in-out"},indeterminate:{backgroundColor:"theme-primary",borderColor:"theme-primary",borderWidth:"2px",borderStyle:"solid",color:"color-white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}},Et={hover:{selected:{opacity:.9},unselected:{borderColor:"color-gray-400",backgroundColor:"color-gray-50"},indeterminate:{opacity:.9}},disabled:{selected:{backgroundColor:"color-gray-300",borderColor:"color-gray-300",opacity:.5,cursor:"not-allowed"},unselected:{borderColor:"color-gray-300",opacity:.5,cursor:"not-allowed"},indeterminate:{backgroundColor:"color-gray-300",borderColor:"color-gray-300",opacity:.5,cursor:"not-allowed"}},error:{selected:{backgroundColor:"color-red-500",borderColor:"color-red-500"},unselected:{borderColor:"color-red-500"},indeterminate:{backgroundColor:"color-red-500",borderColor:"color-red-500"}}},Aa=({id:e,icon:o,name:t,label:n,isChecked:a,onChange:i,onValueChange:c,shadow:s={},labelPosition:d="right",size:g="md",error:f=!1,isSelected:m=!1,isHovered:p=!1,isDisabled:u=!1,isReadOnly:y=!1,isIndeterminate:k=!1,defaultIsSelected:x=!1,setIsSelected:C=()=>{},setIsHovered:w=()=>{},setIsChecked:v,views:S={checkbox:{},label:{}},infoText:b,helperText:T,...F})=>{const W=()=>w(!p),j=()=>{!y&&!u&&(C&&C(!m),i&&i(!a),c&&c(!a))},$=k?"indeterminate":a||m?"selected":"unselected",z=f?Et.error[$]:u?Et.disabled[$]:p?Et.hover[$]:{},E={container:{gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",color:f?"color-red-600":u?"color-gray-400":"inherit",cursor:u?"not-allowed":y?"default":"pointer",opacity:u?.6:1,transition:"all 0.2s ease-in-out",...S.label},checkbox:{...tg[$],...z,borderRadius:6,...rg[g],transition:"all 0.2s ease-in-out",...s,...S.checkbox}};return r.jsxs(Jo,{htmlFor:e,as:"div",onClick:j,onMouseEnter:W,onMouseLeave:W,size:l.Typography.fontSizes[g],...E.container,...F,children:[r.jsxs(l.Vertical,{gap:8,children:[" ",r.jsxs(l.Horizontal,{gap:12,alignItems:"center",children:[" ",d==="left"&&n&&r.jsx(l.Text,{size:g,fontWeight:"500",...S==null?void 0:S.label,children:n}),r.jsx(l.Center,{...E.checkbox,children:k?r.jsx(En,{widthHeight:Pa[g],color:"color-white",transition:"opacity 0.2s ease"}):(a||m)&&(o??r.jsx(Yo,{widthHeight:Pa[g],color:"color-white",transition:"opacity 0.2s ease"}))}),d==="right"&&n&&r.jsx(l.Text,{size:g,fontWeight:"500",...S==null?void 0:S.label,children:n})]}),b&&r.jsx(l.Text,{marginLeft:d==="left"?0:36,color:"color-gray-500",size:"sm",fontWeight:"400",lineHeight:"20px",...S==null?void 0:S.infoText,children:b})]}),f&&r.jsx(l.Text,{size:"xs",marginTop:4,marginHorizontal:0,color:"color-red-500",fontWeight:"500",transition:"all 0.2s ease-in-out",children:f})]})},Dt=e=>{const o=pe("checkbox",e),t=ja(o);return r.jsx(Aa,{...t,...o})},Va=e=>{const{value:o,defaultValue:t="",onChange:n,onChangeComplete:a,onOpen:i,onClose:c,closeOnSelect:s=!0,maxRecentColors:d=8,showRecentColors:g=!0,isAutoFocus:f=!1}=e,[m,p]=h.useState(!1),[u,y]=h.useState(o??t),[k,x]=h.useState(""),[C,w]=h.useState([]),[v,S]=h.useState(!1),[b,T]=h.useState(!1),F=h.useRef(null),W=h.useRef(null);h.useEffect(()=>{o!==void 0&&y(o)},[o]),h.useEffect(()=>{if(g&&typeof localStorage<"u")try{const M=localStorage.getItem("colorInput-recentColors");M&&w(JSON.parse(M))}catch(M){console.warn("Failed to load recent colors from localStorage:",M)}},[g]),h.useEffect(()=>{const M=F.current;f&&M&&typeof M.focus=="function"&&M.focus()},[f]),h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const M=V=>{m&&F.current&&W.current&&!F.current.contains(V.target)&&!W.current.contains(V.target)&&H()};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[m]);const j=h.useCallback(M=>{g&&w(V=>{const L=V.filter(q=>q!==M),B=[M,...L].slice(0,d);try{typeof localStorage<"u"&&localStorage.setItem("colorInput-recentColors",JSON.stringify(B))}catch(q){console.warn("Failed to save recent colors to localStorage:",q)}return B})},[g,d]),$=h.useCallback(()=>{const M=!m;p(M),M?i==null||i():c==null||c()},[m,i,c]),z=h.useCallback(M=>{y(M),j(M),n==null||n(M),a==null||a(M),s&&(p(!1),c==null||c())},[n,a,s,c,j]),E=h.useCallback(M=>{x(M)},[]),A=h.useCallback(()=>{k&&(z(k),x(""))},[k,z]),H=h.useCallback(()=>{p(!1),c==null||c()},[c]),P=h.useCallback(M=>{y(M),n==null||n(M)},[n]);return{isOpen:m,selectedColor:u,recentColors:C,customColor:k,isFocused:v,isHovered:b,handleToggle:$,handleColorSelect:z,handleCustomColorChange:E,handleCustomColorSubmit:A,handleClose:H,setIsFocused:S,setIsHovered:T,setValue:P,triggerRef:F,dropdownRef:W}},Ro={container:{position:"relative",display:"inline-block",width:"fit-content"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300",padding:"8px 12px",borderRadius:8},dropdown:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"280px"},colorGrid:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px"},recentColors:{display:"flex",gap:"4px",flexWrap:"wrap"}},ng={xs:{height:"28px",fontSize:"10px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 16px"},xl:{height:"56px",fontSize:"20px",padding:"16px 20px"}},ag={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},lg={default:{backgroundColor:"color-white",borderColor:"color-gray-300",borderWidth:"1px",borderStyle:"solid"},outline:{backgroundColor:"transparent",borderColor:"color-gray-300",borderWidth:"1px",borderStyle:"solid"},none:{backgroundColor:"transparent",borderColor:"transparent",borderWidth:"0px"}},ig=[{name:"Red 500",value:"color-red-500"},{name:"Orange 500",value:"color-orange-500"},{name:"Yellow 500",value:"color-yellow-500"},{name:"Green 500",value:"color-green-500"},{name:"Blue 500",value:"color-blue-500"},{name:"Indigo 500",value:"color-indigo-500"},{name:"Purple 500",value:"color-purple-500"},{name:"Pink 500",value:"color-pink-500"},{name:"Red 300",value:"color-red-300"},{name:"Orange 300",value:"color-orange-300"},{name:"Yellow 300",value:"color-yellow-300"},{name:"Green 300",value:"color-green-300"},{name:"Blue 300",value:"color-blue-300"},{name:"Indigo 300",value:"color-indigo-300"},{name:"Purple 300",value:"color-purple-300"},{name:"Pink 300",value:"color-pink-300"},{name:"Red 700",value:"color-red-700"},{name:"Orange 700",value:"color-orange-700"},{name:"Yellow 700",value:"color-yellow-700"},{name:"Green 700",value:"color-green-700"},{name:"Blue 700",value:"color-blue-700"},{name:"Indigo 700",value:"color-indigo-700"},{name:"Purple 700",value:"color-purple-700"},{name:"Pink 700",value:"color-pink-700"},{name:"Gray 100",value:"color-gray-100"},{name:"Gray 300",value:"color-gray-300"},{name:"Gray 500",value:"color-gray-500"},{name:"Gray 700",value:"color-gray-700"},{name:"Gray 900",value:"color-gray-900"},{name:"White",value:"color-white"},{name:"Black",value:"color-black"},{name:"Transparent",value:"transparent"}],Ea=({id:e,name:o,label:t,placeholder:n="Select a color",helperText:a,views:i={},size:c="md",shape:s="default",variant:d="default",shadow:g,error:f=!1,isDisabled:m=!1,isReadOnly:p=!1,isFocused:u=!1,isHovered:y=!1,predefinedColors:k=ig,showCustomInput:x=!0,showRecentColors:C=!0,isOpen:w=!1,selectedColor:v="",recentColors:S=[],customColor:b="",handleToggle:T=()=>{},handleColorSelect:F=()=>{},handleCustomColorChange:W=()=>{},handleCustomColorSubmit:j=()=>{},handleClose:$,setIsFocused:z=()=>{},setIsHovered:E=()=>{},setValue:A,triggerRef:H,dropdownRef:P,onChange:M,onChangeComplete:V,onBlur:L,onFocus:B,onOpen:q,onClose:_,colorFormat:O,maxRecentColors:U,closeOnSelect:K,value:N,defaultValue:D,...X})=>{const{getColor:Z}=l.useTheme(),J={...Ro.container,...i==null?void 0:i.container},Q={...Ro.trigger,...ng[c],...ag[s],...lg[d],...f&&{borderColor:"color-red-500"},...m&&{opacity:.6,cursor:"not-allowed"},...u&&{borderColor:"theme-primary",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(29, 78, 216, 0.16)"},...y&&!m&&{borderColor:"color-gray-400"},...i==null?void 0:i.trigger,...g&&g},oe={...Ro.dropdown,...i==null?void 0:i.dropdown},re={...Ro.colorGrid,...i==null?void 0:i.colorGrid},ae={...Ro.recentColors,...i==null?void 0:i.recentColors},te=v||"color-gray-200";return r.jsxs(l.View,{...J,...X,children:[t&&r.jsx(Jo,{htmlFor:e,size:c,isDisabled:m,error:f,views:i==null?void 0:i.label,children:t}),r.jsxs(l.View,{ref:H,onClick:m||p?void 0:T,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onFocus:()=>{z(!0),B&&B()},onBlur:se=>{z(!1),L&&L(se)},tabIndex:m?-1:0,role:"button","aria-expanded":w,"aria-haspopup":"listbox","aria-label":t||n,width:"fit-content",gap:8,...Q,children:[r.jsx(l.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:te,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300"}),!p&&!m&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:w?"up":"down"})]}),w&&r.jsxs(l.View,{ref:P,...oe,children:[r.jsx(l.View,{...re,children:k.map((se,xe)=>r.jsx(l.View,{width:"24px",height:"24px",borderRadius:"8px",backgroundColor:se.value,borderWidth:"2px",borderStyle:"solid",borderColor:v===se.value?"theme-primary":"transparent",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>F(se.value),title:se.name,_hover:{transform:"scale(1.05)",borderColor:"color-gray-400"},...i==null?void 0:i.colorSwatch},xe))}),C&&S.length>0&&r.jsxs(l.Vertical,{gap:8,marginTop:"16px",children:[r.jsx(l.Text,{fontSize:"12px",fontWeight:"500",color:"color-gray-600",children:"Recent Colors"}),r.jsx(l.Horizontal,{gap:4,flexWrap:"wrap",...ae,children:S.map((se,xe)=>r.jsx(l.View,{width:"20px",height:"20px",borderRadius:"8px",backgroundColor:se,borderWidth:"1px",borderStyle:"solid",borderColor:v===se?"theme-primary":"color-gray-300",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>F(se),title:se,_hover:{transform:"scale(1.05)",borderColor:"color-gray-400"}},xe))})]}),x&&r.jsxs(l.Vertical,{gap:8,marginTop:"16px",children:[r.jsx(l.Text,{fontSize:"12px",fontWeight:"500",color:"color-gray-600",children:"Custom Color"}),r.jsxs(l.Horizontal,{gap:8,children:[r.jsx(We,{value:b,onChange:W,placeholder:"#000000 or rgb(0,0,0)",size:"sm",style:{flex:1},views:i==null?void 0:i.customInput}),r.jsx(l.View,{padding:"8px 12px",backgroundColor:"theme-primary",borderRadius:"8px",cursor:"pointer",onClick:j,transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{backgroundColor:"color-blue-700"},children:r.jsx(l.Text,{color:"color-white",fontSize:"12px",fontWeight:"500",children:"Add"})})]})]})]}),a&&r.jsx(l.Text,{fontSize:"12px",color:f?"color-red-500":"color-gray-600",marginTop:"4px",...i==null?void 0:i.helperText,children:a}),f&&typeof f=="string"&&r.jsx(l.Text,{fontSize:"12px",color:"color-red-500",marginTop:"4px",...i==null?void 0:i.error,children:f})]})},cg=e=>{const o=Va(e);return r.jsx(Ea,{...o,...e})},$t=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],Da=({placeholder:e})=>{const[o,t]=h.useState($t),[n,a]=h.useState(e??$t[0].name),[i,c]=h.useState(!0),[s,d]=h.useState(!1),[g,f]=h.useState(!1);return{hide:i,setHide:c,newOptions:o,setNewOptions:t,isHovered:g,setIsHovered:f,isFocused:s,setIsFocused:d,value:n,setValue:a}},$a={xs:8,sm:10,md:12,lg:14,xl:16},sg=({size:e,...o})=>r.jsx(l.Element,{as:"ul",...o}),dg=e=>r.jsx(l.Input,{type:"country",...e}),gg=({size:e,...o})=>r.jsx(l.Element,{as:"li",...o}),hg=({option:e,size:o="md",callback:t=()=>{},views:n={text:{}}})=>{const a=i=>{i&&i.stopPropagation&&i.stopPropagation(),t(e??"")};return r.jsx(gg,{margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onClick:a,fontSize:l.Typography.fontSizes[o],_hover:{backgroundColor:"color-gray-100",transition:"all 0.15s ease-in-out"},...n.text,children:e})},fg=({size:e,views:o={dropDown:{}},options:t=[],callback:n=()=>{}})=>{const a=i=>n(i);return r.jsx(sg,{role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:12,position:"absolute",flexDirection:"column",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",...o.dropDown,children:t.map(i=>r.jsx(hg,{size:e,option:i.name,callback:a,...o.text},i.code))})},La=({id:e,name:o,label:t,value:n,placeholder:a,helperText:i,hide:c=!1,error:s=!1,isHovered:d=!1,isFocused:g=!1,isAutoFocus:f=!1,isDisabled:m=!1,isReadOnly:p=!1,shadow:u={},newOptions:y=[],size:k="md",variant:x="default",shape:C="default",onChange:w,onBlur:v=()=>{},setHide:S=()=>{},setNewOptions:b=()=>{},setIsHovered:T=()=>{},setIsFocused:F=()=>{},setValue:W=()=>{},selected:j,setSelected:$,views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:E,...A})=>{const{getColor:H,themeMode:P}=l.useTheme(),M=H("color-gray-500",{themeMode:E||P}),V=()=>F(!0),L=K=>{S(!c),W(K),w&&w(K)},B=()=>{!m&&!p&&S(!c)},q=K=>{const N=K.target.value,D=$t.filter(X=>X.name.toLowerCase().startsWith(N.toLowerCase()));c&&S(!1),b(D),w&&w(N)},_=K=>{v(K),F(!1)},O=!!(t&&(g||n)),U={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},transition:"all 0.2s ease-in-out",fontSize:l.Typography.fontSizes[k],backgroundColor:"transparent",color:m?"color-gray-400":"color-gray-900",cursor:m?"not-allowed":p?"auto":"pointer",...z.field};return r.jsxs(Ye,{helperText:i,error:s,views:z,onClick:B,children:[r.jsxs(eo,{label:t,size:k,error:s,shape:C,views:z,shadow:u,variant:x,value:n,color:"theme-primary",isDisabled:m,isReadOnly:p,isFocused:g,showLabel:O,_hover:!m&&!s?{borderColor:"theme-primary"}:void 0,children:[r.jsxs(Fo,{children:[O&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:s,views:z,children:t}),r.jsx(dg,{id:e,name:o,placeholder:a,readOnly:p,disabled:m,autoFocus:f,onBlur:_,onFocus:V,...U,...A,value:n,onChange:q})]}),r.jsx(jt,{children:c?r.jsx(ge,{orientation:"down",widthHeight:$a[k],color:M,style:z.icon}):r.jsx(ge,{orientation:"up",widthHeight:$a[k],color:M,style:z.icon})})]}),!c&&r.jsx(fg,{size:k,views:z,options:y,callback:L})]})},mg=e=>{const o=Da(e);return r.jsx(La,{...o,...e})};function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ar(e)}function Ie(e,o){if(o.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+o.length+" present")}function pg(e){return Ie(1,arguments),e instanceof Date||Ar(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ue(e){Ie(1,arguments);var o=Object.prototype.toString.call(e);return e instanceof Date||Ar(e)==="object"&&o==="[object Date]"?new Date(e.getTime()):typeof e=="number"||o==="[object Number]"?new Date(e):((typeof e=="string"||o==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ug(e){if(Ie(1,arguments),!pg(e)&&typeof e!="number")return!1;var o=Ue(e);return!isNaN(Number(o))}function go(e){if(e===null||e===!0||e===!1)return NaN;var o=Number(e);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function yg(e,o){Ie(2,arguments);var t=Ue(e).getTime(),n=go(o);return new Date(t+n)}function bg(e,o){Ie(2,arguments);var t=go(o);return yg(e,-t)}var xg=864e5;function kg(e){Ie(1,arguments);var o=Ue(e),t=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var n=o.getTime(),a=t-n;return Math.floor(a/xg)+1}function Vr(e){Ie(1,arguments);var o=1,t=Ue(e),n=t.getUTCDay(),a=(n<o?7:0)+n-o;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function _a(e){Ie(1,arguments);var o=Ue(e),t=o.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0);var a=Vr(n),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var c=Vr(i);return o.getTime()>=a.getTime()?t+1:o.getTime()>=c.getTime()?t:t-1}function Cg(e){Ie(1,arguments);var o=_a(e),t=new Date(0);t.setUTCFullYear(o,0,4),t.setUTCHours(0,0,0,0);var n=Vr(t);return n}var wg=6048e5;function Sg(e){Ie(1,arguments);var o=Ue(e),t=Vr(o).getTime()-Cg(o).getTime();return Math.round(t/wg)+1}var vg={};function Er(){return vg}function Dr(e,o){var t,n,a,i,c,s,d,g;Ie(1,arguments);var f=Er(),m=go((t=(n=(a=(i=o==null?void 0:o.weekStartsOn)!==null&&i!==void 0?i:o==null||(c=o.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(d=f.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&t!==void 0?t:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ue(e),u=p.getUTCDay(),y=(u<m?7:0)+u-m;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function Ba(e,o){var t,n,a,i,c,s,d,g;Ie(1,arguments);var f=Ue(e),m=f.getUTCFullYear(),p=Er(),u=go((t=(n=(a=(i=o==null?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:o==null||(c=o.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:p.firstWeekContainsDate)!==null&&n!==void 0?n:(d=p.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,u),y.setUTCHours(0,0,0,0);var k=Dr(y,o),x=new Date(0);x.setUTCFullYear(m,0,u),x.setUTCHours(0,0,0,0);var C=Dr(x,o);return f.getTime()>=k.getTime()?m+1:f.getTime()>=C.getTime()?m:m-1}function Tg(e,o){var t,n,a,i,c,s,d,g;Ie(1,arguments);var f=Er(),m=go((t=(n=(a=(i=o==null?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:o==null||(c=o.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(d=f.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=Ba(e,o),u=new Date(0);u.setUTCFullYear(p,0,m),u.setUTCHours(0,0,0,0);var y=Dr(u,o);return y}var Ig=6048e5;function Fg(e,o){Ie(1,arguments);var t=Ue(e),n=Dr(t,o).getTime()-Tg(t,o).getTime();return Math.round(n/Ig)+1}function ie(e,o){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length<o;)n="0"+n;return t+n}var oo={y:function(o,t){var n=o.getUTCFullYear(),a=n>0?n:1-n;return ie(t==="yy"?a%100:a,t.length)},M:function(o,t){var n=o.getUTCMonth();return t==="M"?String(n+1):ie(n+1,2)},d:function(o,t){return ie(o.getUTCDate(),t.length)},a:function(o,t){var n=o.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(o,t){return ie(o.getUTCHours()%12||12,t.length)},H:function(o,t){return ie(o.getUTCHours(),t.length)},m:function(o,t){return ie(o.getUTCMinutes(),t.length)},s:function(o,t){return ie(o.getUTCSeconds(),t.length)},S:function(o,t){var n=t.length,a=o.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return ie(i,t.length)}},zo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zg={G:function(o,t,n){var a=o.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(o,t,n){if(t==="yo"){var a=o.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return oo.y(o,t)},Y:function(o,t,n,a){var i=Ba(o,a),c=i>0?i:1-i;if(t==="YY"){var s=c%100;return ie(s,2)}return t==="Yo"?n.ordinalNumber(c,{unit:"year"}):ie(c,t.length)},R:function(o,t){var n=_a(o);return ie(n,t.length)},u:function(o,t){var n=o.getUTCFullYear();return ie(n,t.length)},Q:function(o,t,n){var a=Math.ceil((o.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return ie(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(o,t,n){var a=Math.ceil((o.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return ie(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(o,t,n){var a=o.getUTCMonth();switch(t){case"M":case"MM":return oo.M(o,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(o,t,n){var a=o.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return ie(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(o,t,n,a){var i=Fg(o,a);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ie(i,t.length)},I:function(o,t,n){var a=Sg(o);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):ie(a,t.length)},d:function(o,t,n){return t==="do"?n.ordinalNumber(o.getUTCDate(),{unit:"date"}):oo.d(o,t)},D:function(o,t,n){var a=kg(o);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):ie(a,t.length)},E:function(o,t,n){var a=o.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(o,t,n,a){var i=o.getUTCDay(),c=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(c);case"ee":return ie(c,2);case"eo":return n.ordinalNumber(c,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(o,t,n,a){var i=o.getUTCDay(),c=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(c);case"cc":return ie(c,t.length);case"co":return n.ordinalNumber(c,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(o,t,n){var a=o.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return ie(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(o,t,n){var a=o.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(o,t,n){var a=o.getUTCHours(),i;switch(a===12?i=zo.noon:a===0?i=zo.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(o,t,n){var a=o.getUTCHours(),i;switch(a>=17?i=zo.evening:a>=12?i=zo.afternoon:a>=4?i=zo.morning:i=zo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(o,t,n){if(t==="ho"){var a=o.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return oo.h(o,t)},H:function(o,t,n){return t==="Ho"?n.ordinalNumber(o.getUTCHours(),{unit:"hour"}):oo.H(o,t)},K:function(o,t,n){var a=o.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):ie(a,t.length)},k:function(o,t,n){var a=o.getUTCHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):ie(a,t.length)},m:function(o,t,n){return t==="mo"?n.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):oo.m(o,t)},s:function(o,t,n){return t==="so"?n.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):oo.s(o,t)},S:function(o,t){return oo.S(o,t)},X:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();if(c===0)return"Z";switch(t){case"X":return Na(c);case"XXXX":case"XX":return ho(c);case"XXXXX":case"XXX":default:return ho(c,":")}},x:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();switch(t){case"x":return Na(c);case"xxxx":case"xx":return ho(c);case"xxxxx":case"xxx":default:return ho(c,":")}},O:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oa(c,":");case"OOOO":default:return"GMT"+ho(c,":")}},z:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oa(c,":");case"zzzz":default:return"GMT"+ho(c,":")}},t:function(o,t,n,a){var i=a._originalDate||o,c=Math.floor(i.getTime()/1e3);return ie(c,t.length)},T:function(o,t,n,a){var i=a._originalDate||o,c=i.getTime();return ie(c,t.length)}};function Oa(e,o){var t=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return t+String(a);var c=o;return t+String(a)+c+ie(i,2)}function Na(e,o){if(e%60===0){var t=e>0?"-":"+";return t+ie(Math.abs(e)/60,2)}return ho(e,o)}function ho(e,o){var t=o||"",n=e>0?"-":"+",a=Math.abs(e),i=ie(Math.floor(a/60),2),c=ie(a%60,2);return n+i+t+c}var qa=function(o,t){switch(o){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ua=function(o,t){switch(o){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mg=function(o,t){var n=o.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return qa(o,t);var c;switch(a){case"P":c=t.dateTime({width:"short"});break;case"PP":c=t.dateTime({width:"medium"});break;case"PPP":c=t.dateTime({width:"long"});break;case"PPPP":default:c=t.dateTime({width:"full"});break}return c.replace("{{date}}",qa(a,t)).replace("{{time}}",Ua(i,t))},Wg={p:Ua,P:Mg};function Hg(e){var o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),e.getTime()-o.getTime()}var jg=["D","DD"],Pg=["YY","YYYY"];function Ag(e){return jg.indexOf(e)!==-1}function Vg(e){return Pg.indexOf(e)!==-1}function Ga(e,o,t){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Eg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dg=function(o,t,n){var a,i=Eg[o];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Lt(e){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=o.width?String(o.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var $g={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_g={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bg={date:Lt({formats:$g,defaultWidth:"full"}),time:Lt({formats:Lg,defaultWidth:"full"}),dateTime:Lt({formats:_g,defaultWidth:"full"})},Og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ng=function(o,t,n,a){return Og[o]};function er(e){return function(o,t){var n=t!=null&&t.context?String(t.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,c=t!=null&&t.width?String(t.width):i;a=e.formattingValues[c]||e.formattingValues[i]}else{var s=e.defaultWidth,d=t!=null&&t.width?String(t.width):e.defaultWidth;a=e.values[d]||e.values[s]}var g=e.argumentCallback?e.argumentCallback(o):o;return a[g]}}var qg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ug={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Kg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Jg=function(o,t){var n=Number(o),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Qg={ordinalNumber:Jg,era:er({values:qg,defaultWidth:"wide"}),quarter:er({values:Ug,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:er({values:Gg,defaultWidth:"wide"}),day:er({values:Yg,defaultWidth:"wide"}),dayPeriod:er({values:Kg,defaultWidth:"wide",formattingValues:Xg,defaultFormattingWidth:"wide"})};function or(e){return function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=o.match(a);if(!i)return null;var c=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?Rg(s,function(m){return m.test(c)}):Zg(s,function(m){return m.test(c)}),g;g=e.valueCallback?e.valueCallback(d):d,g=t.valueCallback?t.valueCallback(g):g;var f=o.slice(c.length);return{value:g,rest:f}}}function Zg(e,o){for(var t in e)if(e.hasOwnProperty(t)&&o(e[t]))return t}function Rg(e,o){for(var t=0;t<e.length;t++)if(o(e[t]))return t}function eh(e){return function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.match(e.matchPattern);if(!n)return null;var a=n[0],i=o.match(e.parsePattern);if(!i)return null;var c=e.valueCallback?e.valueCallback(i[0]):i[0];c=t.valueCallback?t.valueCallback(c):c;var s=o.slice(a.length);return{value:c,rest:s}}}var oh=/^(\d+)(th|st|nd|rd)?/i,rh=/\d+/i,th={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nh={any:[/^b/i,/^(a|c)/i]},ah={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},lh={any:[/1/i,/2/i,/3/i,/4/i]},ih={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ch={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dh={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gh={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hh={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fh={ordinalNumber:eh({matchPattern:oh,parsePattern:rh,valueCallback:function(o){return parseInt(o,10)}}),era:or({matchPatterns:th,defaultMatchWidth:"wide",parsePatterns:nh,defaultParseWidth:"any"}),quarter:or({matchPatterns:ah,defaultMatchWidth:"wide",parsePatterns:lh,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:or({matchPatterns:ih,defaultMatchWidth:"wide",parsePatterns:ch,defaultParseWidth:"any"}),day:or({matchPatterns:sh,defaultMatchWidth:"wide",parsePatterns:dh,defaultParseWidth:"any"}),dayPeriod:or({matchPatterns:gh,defaultMatchWidth:"any",parsePatterns:hh,defaultParseWidth:"any"})},mh={code:"en-US",formatDistance:Dg,formatLong:Bg,formatRelative:Ng,localize:Qg,match:fh,options:{weekStartsOn:0,firstWeekContainsDate:1}},ph=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yh=/^'([^]*?)'?$/,bh=/''/g,xh=/[a-zA-Z]/;function kh(e,o,t){var n,a,i,c,s,d,g,f,m,p,u,y,k,x;Ie(2,arguments);var C=String(o),w=Er(),v=(n=(a=void 0)!==null&&a!==void 0?a:w.locale)!==null&&n!==void 0?n:mh,S=go((i=(c=(s=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&c!==void 0?c:(g=w.locale)===null||g===void 0||(f=g.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=go((m=(p=(u=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&u!==void 0?u:w.weekStartsOn)!==null&&p!==void 0?p:(k=w.locale)===null||k===void 0||(x=k.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&m!==void 0?m:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var T=Ue(e);if(!ug(T))throw new RangeError("Invalid time value");var F=Hg(T),W=bg(T,F),j={firstWeekContainsDate:S,weekStartsOn:b,locale:v,_originalDate:T},$=C.match(uh).map(function(z){var E=z[0];if(E==="p"||E==="P"){var A=Wg[E];return A(z,v.formatLong)}return z}).join("").match(ph).map(function(z){if(z==="''")return"'";var E=z[0];if(E==="'")return Ch(z);var A=zg[E];if(A)return Vg(z)&&Ga(z,o,String(e)),Ag(z)&&Ga(z,o,String(e)),A(W,z,v.localize,j);if(E.match(xh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return z}).join("");return $}function Ch(e){var o=e.match(yh);return o?o[1].replace(bh,"'"):e}const Ya=()=>{const[e,o]=h.useState(!1),[t,n]=h.useState(!1),[a,i]=h.useState(kh(new Date,"yyyy-MM-dd"));return{date:a,setDate:i,isHovered:e,setIsHovered:o,isFocused:t,setIsFocused:n}},wh=e=>r.jsx(l.Input,{type:"date",...e}),Ka=({id:e,icon:o,name:t,label:n,date:a,children:i,helperText:c,shadow:s={},size:d="md",variant:g="default",shape:f="default",views:m={container:{},label:{},helperText:{},text:{},field:{}},error:p=!1,isHovered:u=!1,isFocused:y=!1,isDisabled:k=!1,isReadOnly:x=!1,setDate:C=()=>{},setIsFocused:w=()=>{},setIsHovered:v=()=>{},onChange:S,onChangeText:b,...T})=>{const{themeMode:F}=l.useTheme(),W=!!(y&&n),j=()=>v(!u),$=()=>w(!0),z=A=>{typeof A=="string"?(C(A),b&&b(A)):(C(A.target.value),S&&S(A.target.value))},E={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},transition:"all 0.2s ease-in-out",fontSize:l.Typography.fontSizes[d],backgroundColor:"transparent",color:k?"color-gray-400":"color-gray-900",cursor:k?"not-allowed":x?"auto":"pointer",...m.field};return r.jsx(Ye,{helperText:c,error:p,views:m,children:r.jsx(eo,{label:n,size:d,error:p,shape:f,views:m,shadow:s,color:"theme-primary",variant:g,value:a,isHovered:u,isDisabled:k,isReadOnly:x,isFocused:y,showLabel:W,onMouseEnter:j,onMouseLeave:j,children:r.jsxs(Fo,{children:[W&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:p,views:m,children:n}),r.jsx(wh,{id:e,name:t,onFocus:$,disabled:k,readOnly:x,...E,...T,...b&&{onChangeText:z},onChange:z})]})})})},Sh=e=>{const o=Ya();return r.jsx(Ka,{...o,...e})},Xa=e=>{const o=Vt(e),[t,n]=h.useState(!1);return{isVisible:t,setIsVisible:n,...e,...o}},Ja={xs:14,sm:16,md:16,lg:18,xl:20},vh=({visibleIcon:e,hiddenIcon:o,...t})=>{const{isVisible:n,setIsVisible:a,...i}=Xa(t),c=Ja[t.size??"md"]??Ja.md,s=c-2;return r.jsx(Zo,{...i,type:n?"text":"password",isClearable:!1,right:r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",width:`${c}px`,height:`${c}px`,minWidth:`${c}px`,color:"color-gray-500",cursor:t.isDisabled?"not-allowed":"pointer",transition:"color 0.2s ease",onClick:()=>{t.isDisabled||a(!n)},children:n?e??r.jsx(pt,{widthHeight:s}):o??r.jsx(mt,{widthHeight:s})})})},Qa=(e,o,t)=>{const[n,a]=h.useState(e),[i,c]=h.useState(o?{value:o,label:o}:e[0]),[s,d]=h.useState([]),[g,f]=h.useState(0),[m,p]=h.useState(t??""),[u,y]=h.useState(!1);return{filteredItems:n,setFilteredItems:a,selectedItem:i,setSelectedItem:c,selectedItems:s,setSelectedItems:d,highlightedIndex:g,setHighlightedIndex:f,searchQuery:m,setSearchQuery:p,isDropdownVisible:u,setIsDropdownVisible:y}},Th={xs:12,sm:14,md:16,lg:20,xl:24},Ih={maxHeight:"280px",overflowY:"auto",zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},Za={enter:{opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.2s ease-in-out"},initial:{opacity:0,transform:"translateY(-8px) scale(0.96)"}},Fh={padding:"8px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-100",backgroundColor:"color-gray-50",borderTopLeftRadius:10,borderTopRightRadius:10},zh={padding:"8px 10px",cursor:"pointer",borderRadius:8,margin:"1px 4px",transition:"all 0.15s ease-in-out"},Mh={padding:"24px 16px",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},Ra={open:{transform:"rotate(180deg)",transition:"all 0.2s ease-in-out"},closed:{transform:"rotate(0deg)",transition:"all 0.2s ease-in-out"}},Wh={display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",backgroundColor:"color-gray-100",borderRadius:8,fontSize:"12px",fontWeight:"500",color:"color-gray-700",transition:"all 0.15s ease-in-out"},el=({placeholder:e,items:o,showTick:t=!0,onSelect:n,searchEnabled:a=!0,left:i,right:c,label:s,filteredItems:d,setSelectedItem:g,selectedItem:f,selectedItems:m,setSelectedItems:p,highlightedIndex:u,setHighlightedIndex:y,searchQuery:k,setSearchQuery:x,setFilteredItems:C,views:w,isDropdownVisible:v,setIsDropdownVisible:S,isMulti:b=!1,searchPlaceholder:T,size:F="md",...W})=>{const{ref:j,relation:$}=l.useElementPosition({trackChanges:!0,trackOnScroll:!0,trackOnResize:!0,throttleMs:10}),z=h.useRef(null),[E,A]=h.useState(!1),[H,P]=h.useState(!1),M=()=>{var N;const _=H?Za.enter:Za.initial;if(!j.current)return{};const O=j.current.getBoundingClientRect(),U={position:"fixed",left:O.left,width:O.width,zIndex:1e4,..._};return((N=$==null?void 0:$.space)==null?void 0:N.vertical)==="top"?{...U,bottom:window.innerHeight-O.top+6}:{...U,top:O.bottom+6}};h.useEffect(()=>{if(v){const _=setTimeout(()=>P(!0),10);return()=>clearTimeout(_)}P(!1)},[v]),h.useEffect(()=>{const _=O=>{!O.composedPath().some(N=>(N==null?void 0:N.id)==="combobox-dropdown")&&j.current&&!j.current.contains(O.target)&&S(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const V=_=>{if(x(_),_==="")C(o);else{const O=o.filter(U=>U.label.toLowerCase().includes(_.toLowerCase()));C(O)}y(0)},L=_=>{if(b){const O=m.some(K=>K.value===_.value);let U;O?U=m.filter(K=>K.value!==_.value):U=[...m,_],p(U),n==null||n(U)}else g(_),n==null||n(_),S(!1)},B=(_,O)=>{_.stopPropagation();const U=m.filter(K=>K.value!==O.value);p(U),n==null||n(U)},q=_=>b?m.some(O=>O.value===_.value):_.value===f.value;return r.jsxs(l.Horizontal,{role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%",...W,children:[s&&r.jsx(l.Text,{views:w==null?void 0:w.label,htmlFor:W.id,children:s}),r.jsxs(l.View,{position:"relative",width:"100%",children:[r.jsx("div",{ref:j,onClick:()=>S(!v),style:{width:"100%"},children:r.jsxs(eo,{size:F,isHovered:E,isFocused:v,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),cursor:"pointer",views:{container:w==null?void 0:w.container},children:[r.jsxs(l.Horizontal,{gap:10,alignItems:"center",flex:1,minWidth:0,flexWrap:b?"wrap":"nowrap",...w==null?void 0:w.labelContainer,children:[i,b?m.length>0?r.jsx(l.Horizontal,{gap:6,flexWrap:"wrap",alignItems:"center",children:m.map(_=>r.jsxs(l.Horizontal,{...Wh,_hover:{backgroundColor:"color-gray-200"},children:[_.icon&&r.jsx(l.View,{flexShrink:0,children:_.icon}),r.jsx(l.Text,{size:"sm",color:"color-gray-700",weight:"medium",children:_.label}),r.jsx(Me,{widthHeight:12,color:"color-gray-500",cursor:"pointer",onClick:O=>B(O,_)})]},_.value))}):r.jsx(l.Text,{weight:"medium",flexGrow:1,color:"color-gray-500",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},...w==null?void 0:w.label,children:e}):r.jsxs(r.Fragment,{children:[f.icon&&f.label!==e&&r.jsx(l.View,{children:f.icon}),r.jsx(l.Text,{weight:"medium",flexGrow:1,color:f.label===e?"color-gray-500":"color-gray-800",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},...w==null?void 0:w.label,children:f.label})]})]}),r.jsxs(l.Horizontal,{gap:8,alignItems:"center",flexShrink:0,children:[c,r.jsx(l.View,{style:v?Ra.open:Ra.closed,children:r.jsx(ge,{widthHeight:Th[F],orientation:"down",color:v?"color-gray-700":"color-gray-400"})})]})]})}),v&&r.jsx(ct,{children:r.jsxs(l.View,{ref:z,id:"combobox-dropdown",role:"listbox","aria-labelledby":W.id,...Ih,style:M(),...w==null?void 0:w.dropdown,children:[a&&r.jsx(l.View,{...Fh,children:r.jsx(Zo,{id:`${W.id}-search`,name:`${W.name}-search`,width:"100%",type:"search",autoFocus:!0,value:k,onChange:_=>V(_),hint:e||"Search...",isClearable:!1,left:r.jsx(kr,{widthHeight:14,color:"color-gray-400"}),views:{container:{width:"100%",padding:"0",backgroundColor:"transparent",borderColor:"color-gray-200",...w==null?void 0:w.text},field:{fontSize:"13px"}}})}),d.length>0&&r.jsx(l.View,{margin:0,padding:"4px",children:d.map((_,O)=>{const U=q(_),K=O===u;return r.jsxs(l.Horizontal,{role:"option","aria-selected":U,justifyContent:"space-between",alignItems:"center",...zh,backgroundColor:U&&K?"color-blue-100":U?"color-blue-50":K?"color-gray-100":"transparent",onMouseEnter:()=>y(O),onClick:()=>L(_),...w==null?void 0:w.item,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[_.icon&&r.jsx(l.View,{flexShrink:0,children:_.icon}),r.jsx(l.Text,{size:"sm",color:U?"theme-primary":"color-gray-800",weight:U?"medium":"normal",children:_.label})]}),U&&t&&r.jsx(Yo,{widthHeight:16,color:"theme-primary"})]},_.value)})}),d.length===0&&r.jsxs(l.Vertical,{...Mh,children:[r.jsx(kr,{widthHeight:24,color:"color-gray-300"}),r.jsx(l.Text,{color:"color-gray-500",size:"sm",align:"center",children:"No results found"}),r.jsx(l.Text,{color:"color-gray-400",size:"xs",align:"center",children:"Try a different search term"})]})]})})]})]})},Hh=({id:e,name:o,items:t,placeholder:n,searchPlaceholder:a,...i})=>{const c=Qa(t,n,a);return r.jsx(el,{id:e,name:o,items:t,...c,...i})},ol=e=>{const{tags:o,defaultTags:t=[],onTagsChange:n,onTagAdd:a,onTagRemove:i,maxTags:c,minTagLength:s=1,maxTagLength:d=50,allowDuplicates:g=!1,separators:f=["enter","comma"],isDisabled:m=!1,isReadOnly:p=!1}=e,[u,y]=h.useState(""),[k,x]=h.useState(()=>(o||t||[]).map((H,P)=>({id:`tag-${P}-${Date.now()}`,value:H}))),[C,w]=h.useState(!1),[v,S]=h.useState(!1),b=o&&Array.isArray(o)?o.map((A,H)=>({id:`tag-${H}-${Date.now()}`,value:A})):k;h.useEffect(()=>{o&&Array.isArray(o)&&x(o.map((A,H)=>({id:`tag-${H}-${Date.now()}`,value:A})))},[o]);const T=h.useCallback(A=>{const H=A.trim();return!(H.length<s||H.length>d||!g&&b.map(M=>M.value.toLowerCase()).includes(H.toLowerCase())||c&&b.length>=c)},[b,s,d,g,c]),F=h.useCallback(A=>{if(m||p)return;const H=A.trim();if(!H||!T(H))return;const P={id:`tag-${Date.now()}-${Math.random()}`,value:H},M=[...b,P],V=M.map(L=>L.value);o||x(M),n==null||n(V),a==null||a(H),y("")},[b,T,n,a,m,p,o]),W=h.useCallback(A=>{if(m||p)return;const H=b[A];if(!H)return;const P=b.filter((V,L)=>L!==A),M=P.map(V=>V.value);o||x(P),n==null||n(M),i==null||i(H.value,A)},[b,n,i,m,p,o]),j=h.useCallback(A=>{if(m||p)return;const H=A.target.value;if(f.includes("comma")&&H.includes(",")){const P=H.split(","),M=P[0],V=P.slice(1).join(",");M.trim()&&F(M),y(V);return}y(H)},[F,f,m,p]),$=h.useCallback(A=>{if(m||p)return;const{key:H}=A;if(f.includes("enter")&&H==="Enter"){A.preventDefault(),u.trim()&&F(u);return}if(f.includes("tab")&&H==="Tab"&&u.trim()){A.preventDefault(),F(u);return}if(f.includes("space")&&H===" "&&u.trim()){A.preventDefault(),F(u);return}if(H==="Backspace"&&!u&&b.length>0){A.preventDefault(),W(b.length-1);return}},[F,W,u,b,f,m,p]),z=h.useCallback(()=>{var A;w(!0),(A=e.onFocus)==null||A.call(e)},[e.onFocus]),E=h.useCallback(()=>{var A;w(!1),u.trim()&&F(u),(A=e.onBlur)==null||A.call(e)},[F,u,e.onBlur]);return{inputValue:u,setInputValue:y,tags:b,setTags:x,isFocused:C,setIsFocused:w,isHovered:v,setIsHovered:S,addTag:F,removeTag:W,handleInputChange:j,handleKeyDown:$,handleFocus:z,handleBlur:E,validateTag:T}},jh=({tag:e,onRemove:o,isRemovable:t,size:n,views:a,isDisabled:i,isReadOnly:c})=>{const[s,d]=h.useState(!1),g={xs:{padding:"2px 8px",fontSize:"10px",iconSize:10},sm:{padding:"4px 10px",fontSize:"12px",iconSize:12},md:{padding:"6px 14px",fontSize:"14px",iconSize:14},lg:{padding:"8px 16px",fontSize:"16px",iconSize:16},xl:{padding:"10px 18px",fontSize:"18px",iconSize:18}}[n]||{padding:"6px 14px",fontSize:"14px",iconSize:14};return r.jsxs(l.Horizontal,{alignItems:"center",gap:6,padding:g.padding,backgroundColor:"theme-primary-100",borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary-250",transition:"all 0.15s ease-in-out",opacity:i?.6:1,maxWidth:"100%",minWidth:0,_hover:!i&&!c?{backgroundColor:"theme-primary-180",borderColor:"theme-primary-400"}:{},...a==null?void 0:a.tag,children:[r.jsx(l.Text,{fontSize:g.fontSize,color:i?"color-gray-400":"theme-primary",maxLines:1,minWidth:0,...a==null?void 0:a.tagText,children:e}),t&&!i&&!c&&r.jsx(l.View,{cursor:"pointer",padding:"2px",borderRadius:"50%",transition:"all 0.15s ease-in-out",backgroundColor:s?"color-red-100":"transparent",opacity:s?1:.7,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:f=>{f.stopPropagation(),o()},_hover:{backgroundColor:"color-red-100"},...a==null?void 0:a.tagRemove,children:r.jsx(Me,{widthHeight:g.iconSize,color:s?"color-red-500":"color-gray-400"})})]})},rl=({id:e,name:o,label:t,placeholder:n="Type and press Enter to add tags...",helperText:a,error:i=!1,inputValue:c="",tags:s=[],left:d,right:g,shadow:f={},views:m={},size:p="md",shape:u="default",variant:y="default",isDisabled:k=!1,isReadOnly:x=!1,isAutoFocus:C=!1,isRemovable:w=!0,isFocused:v=!1,isHovered:S=!1,maxTags:b,handleInputChange:T,handleKeyDown:F,handleFocus:W,handleBlur:j,removeTag:$,setIsHovered:z,onClick:E,setInputValue:A,setTags:H,setIsFocused:P,addTag:M,filteredItems:V,activeItemIndex:L,isMenuOpen:B,handleMenuItemSelect:q,defaultTags:_,onTagsChange:O,onTagAdd:U,onTagRemove:K,minTagLength:N,maxTagLength:D,allowDuplicates:X,separators:Z,menuItems:J,onMenuItemSelect:Q,onFocus:oe,onBlur:re,validateTag:ae,...te})=>{const{getColor:se,themeMode:xe}=l.useTheme(),le=!!(t&&(v||s.length>0||c)),de=b&&s.length>=b,ee={border:"none",outline:"none",backgroundColor:"transparent",fontSize:l.Typography.fontSizes[p],color:k?"color-gray-400":"color-gray-800",flex:1,minWidth:"120px",transition:"all 0.2s ease-in-out",...m==null?void 0:m.input};return r.jsx(Ye,{error:!!i,helperText:typeof i=="string"?i:a,views:m,...te,children:r.jsxs(eo,{label:t,shadow:f,value:s.length>0||c?"has-content":"",size:p,shape:u,variant:y,error:!!i,showLabel:le,isFocused:v,isHovered:S,isDisabled:k,isReadOnly:x,views:{...m,container:{...m==null?void 0:m.container,...m==null?void 0:m.inputContainer}},onClick:E,onMouseEnter:()=>z==null?void 0:z(!0),onMouseLeave:()=>z==null?void 0:z(!1),children:[d,r.jsxs(Fo,{children:[t&&r.jsx(co,{size:p,error:!!i,views:m,children:t}),r.jsxs(l.Horizontal,{alignItems:"center",gap:8,flexWrap:"wrap",width:"100%",minHeight:l.Typography.fontSizes[p],padding:"0",...m==null?void 0:m.tagsContainer,children:[s.map((ne,fe)=>r.jsx(jh,{tag:ne.value,onRemove:()=>$==null?void 0:$(fe),isRemovable:w,size:p,views:m,isDisabled:k,isReadOnly:x},ne.id)),!de&&r.jsx(l.Input,{id:e,name:o,type:"text",value:c,placeholder:s.length===0?n:"",disabled:k,readOnly:x,autoFocus:C,onChange:T,onKeyDown:F,onFocus:W,onBlur:j,autoComplete:"off",...ee}),de&&r.jsxs(l.Text,{fontSize:l.Typography.fontSizes[p],color:"color-gray-500",fontStyle:"italic",...m==null?void 0:m.placeholder,children:["Maximum ",b," tags reached"]})]})]}),g]})})},Ph=e=>{const o=ol(e),{tags:t,...n}=e;return r.jsx(rl,{...o,...n})};function Ah(e){const o=setTimeout(e,0),t=setTimeout(e,10),n=setTimeout(e,50);return[o,t,n]}const rr=(e,o)=>{console.log(`[OTPInput.state] ${e}`,o)},Vh=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),tl=({value:e,defaultValue:o="",length:t=6,onChange:n,onChangeText:a,onComplete:i,onKeyDown:c,onKeyPress:s,onBlur:d,onFocus:g,isReadOnly:f,isDisabled:m,pattern:p,stepValues:u,pasteTransformer:y})=>{var K,N;const k=e!==void 0,x=k?e:o,[C,w]=h.useState(String(x??"").slice(0,t)||""),[v,S]=h.useState(!1),[b,T]=h.useState(!1),[F,W]=h.useState(null),[j,$]=h.useState(null),z=h.useRef(null),E=h.useRef(null),A=h.useRef({value:C,onChange:n||(()=>{}),isIOS:typeof window<"u"&&((N=(K=window==null?void 0:window.CSS)==null?void 0:K.supports)==null?void 0:N.call(K,"-webkit-touch-callout","none"))}),H=h.useRef({prev:[null,null,"none"]}),P=p?typeof p=="string"?new RegExp(p):p:null;h.useEffect(()=>{if(k&&e!==C){const D=String(e??"").slice(0,t)||"";rr("sync controlled value",{controlledValue:Vh(e),previousValue:C,nextControlledValue:D,length:t}),w(D)}},[k,e,t,C]);const M=h.useCallback(D=>{let X=D;if(u&&u.length>0&&D){const Z=parseInt(D,10);if(!isNaN(Z)){let J=u[0],Q=Math.abs(Z-J);for(let oe=1;oe<u.length;oe++){const re=Math.abs(Z-u[oe]);re<Q&&(Q=re,J=u[oe])}X=J.toString()}}rr("setValue",{incomingValue:D,valueToSet:X,length:t,isControlled:k,hasOnChange:!!n,hasOnChangeText:!!a,hasOnComplete:!!i,stepValues:u}),w(X),n&&n(X),a&&a(X),i&&X.length===t&&i(X)},[n,a,i,t,u,k]),V=h.useCallback(D=>{D&&z.current!==D&&Object.defineProperty(z,"current",{value:D,writable:!0})},[]),L=h.useCallback(D=>{var J,Q,oe,re;const X=typeof D=="string"?D:((J=D==null?void 0:D.currentTarget)==null?void 0:J.value)??((Q=D==null?void 0:D.target)==null?void 0:Q.value)??((oe=D==null?void 0:D.nativeEvent)==null?void 0:oe.text)??"",Z=String(X).slice(0,t);if(rr("handleChange normalized",{raw:X,newValue:Z,length:t,hasPattern:!!P}),Z.length>0&&P&&!P.test(Z)){rr("handleChange rejected by pattern",{newValue:Z,pattern:String(P)}),(re=D==null?void 0:D.preventDefault)==null||re.call(D);return}M(Z),z.current&&(z.current.value=Z)},[t,P,M,z]),B=h.useCallback(()=>{const D=z.current;if(D&&typeof D.setSelectionRange=="function"){const X=typeof D.value=="string"?D.value.length:0,Z=Math.min(X,t-1),J=X;D.setSelectionRange(Z,J),W(Z),$(J)}rr("focus",{length:t,refHasDomSelection:!!(D&&typeof D.setSelectionRange=="function")}),S(!0),g&&g()},[t,g]),q=h.useCallback(D=>{S(!1),d&&d(D)},[d]),_=h.useCallback(D=>{c&&c(D)},[]),O=h.useCallback(D=>{s&&s(D)},[]),U=h.useCallback(D=>{const X=z.current;if(!D.clipboardData||!X)return;const Z=D.clipboardData.getData("text/plain"),J=y?y(Z):Z;D.preventDefault();const Q=X.selectionStart||0,oe=X.selectionEnd||0,te=(Q!==oe?C.slice(0,Q)+J+C.slice(oe):C.slice(0,Q)+J+C.slice(Q)).slice(0,t);if(te.length>0&&P&&!P.test(te))return;X.value=te,M(te),w(te);const se=Math.min(te.length,t-1),xe=te.length;X.setSelectionRange(se,xe),W(se),$(xe)},[t,y,P,M,C,w]);return h.useEffect(()=>{const D=z.current,X=E.current;if(!D||!X||typeof document>"u")return;A.current.value!==D.value&&A.current.onChange&&A.current.onChange(D.value),H.current.prev=[D.selectionStart,D.selectionEnd,D.selectionDirection];function Z(){if(document.activeElement!==D){W(null),$(null);return}const ae=(D==null?void 0:D.selectionStart)??null,te=(D==null?void 0:D.selectionEnd)??null,se=(D==null?void 0:D.selectionDirection)??null,xe=(D==null?void 0:D.maxLength)??0,le=(D==null?void 0:D.value)??"",de=H.current.prev;let ee=-1,ne=-1,fe="none";if(le.length!==0&&ae!==null&&te!==null){const Ae=ae===te,Ve=ae===le.length&&le.length<xe;if(Ae&&!Ve){const ze=ae;if(ze===0)ee=0,ne=1,fe="forward";else if(ze===xe)ee=ze-1,ne=ze,fe="backward";else if(xe>1&&le.length>1){let Oe=0;if(de[0]!==null&&de[1]!==null){fe=ze<de[1]?"backward":"forward";const Ee=de[0]===de[1]&&de[0]<xe;fe==="backward"&&!Ee&&(Oe=-1)}ee=Oe+ze,ne=Oe+ze+1}}ee!==-1&&ne!==-1&&ee!==ne&&z.current&&z.current.setSelectionRange(ee,ne,fe)}const Y=ee!==-1?ee:ae,R=ne!==-1?ne:te,we=fe!=="none"?fe:se;W(Y),$(R),H.current.prev=[Y,R,we]}document.addEventListener("selectionchange",Z,{capture:!0}),Z(),document.activeElement===D&&S(!0);const J=X,Q=()=>{var ae;J&&typeof((ae=J.style)==null?void 0:ae.setProperty)=="function"&&J.style.setProperty("--root-height",`${D.clientHeight}px`)};Q();const oe=typeof window<"u"?window.ResizeObserver:void 0,re=typeof oe=="function"?new oe(Q):null;return re==null||re.observe(D),()=>{document.removeEventListener("selectionchange",Z,{capture:!0}),re==null||re.disconnect()}},[]),h.useEffect(()=>{typeof Event>"u"||Ah(()=>{var Q,oe,re;const D=z.current;D&&typeof D.dispatchEvent=="function"&&D.dispatchEvent(new Event("input"));const X=(Q=z.current)==null?void 0:Q.selectionStart,Z=(oe=z.current)==null?void 0:oe.selectionEnd,J=(re=z.current)==null?void 0:re.selectionDirection;X!==null&&Z!==null&&X!==void 0&&Z!==void 0&&(W(X),$(Z),H.current.prev=[X,Z,J||"none"])})},[C,v]),{value:C,setValue:M,isFocused:v,setIsFocused:S,isHovered:b,setIsHovered:T,inputRef:z,containerRef:E,mirrorSelectionStart:F,mirrorSelectionEnd:j,setMirrorSelectionStart:W,setMirrorSelectionEnd:$,setInputRef:V,handleChange:L,handleFocus:B,handleBlur:q,handleKeyDown:_,handleKeyPress:O,handlePaste:U}},Eh=h.createContext({slots:[],isFocused:!1,isHovering:!1}),Dh=`
6
+ `,backgroundSize:`200% ${N}px, ${N}px 200%, 200% ${N}px, ${N}px 200%`,backgroundPosition:_,transitionProperty:"background-position",transitionDuration:`${H}s`,transitionTimingFunction:"linear",transitionDelay:X,_hover:{backgroundPosition:B,transitionDelay:U},width:c?"100%":i?"fit-content":void 0,...m==null?void 0:m.container,...W,children:r.jsx(l.View,{as:t?"div":"button",disabled:!!(n||a),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:Math.max(0,P-3),width:"100%",height:"100%",...p,...u,...y,backgroundColor:(p==null?void 0:p.backgroundColor)||v,color:x,borderWidth:0,cursor:n?"default":"pointer",children:$})})}return r.jsx(l.Element,{ref:k,as:e==="link"&&t?"div":"button",type:e==="link"&&t?void 0:"button",disabled:!!(n||a),...u,...y,display:"inline-flex",alignItems:"center",justifyContent:"center",width:c?"100%":i?"fit-content":void 0,borderRadius:Ko[d],boxShadow:g,transition:"background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",cursor:n?"default":"pointer",onClick:f,...p,...m==null?void 0:m.container,...W,children:$})},Gd=h.memo(h.forwardRef(({variant:e="filled",size:o="md",shape:t="rounded",iconPosition:n="left",loaderPosition:a="left",backgroundColor:i,color:c,textColor:s,explicitTextColor:d,reversed:g=!1,isAuto:f=!0,isFilled:m,isDisabled:p,isLoading:u,isIconRounded:y,isHovered:k,icon:x,children:C,to:w,isExternal:v,shadow:S,onClick:b,views:T={},animation:F,loaderProps:W,config:P,ariaLabel:$,borderMovingDuration:z=2,borderMovingGradientColors:E=["#705CFF","#FF5C97","#FFC75C"],animatedStrokeAccentColor:V="#705CFF",animatedStrokeTextColor:M="color-gray-900",...A},H)=>{const L=p?"theme-disabled":u?"theme-loading":i??c??"theme-primary",O=d??s??"color-white",{config:q}=ur(),_=q==null?void 0:q.theme,B=h.useMemo(()=>{const Z=_d(L,O,g,_);return P!=null&&P.variants&&Object.keys(P.variants).forEach(Q=>{Z[Q]&&(Z[Q]=Ne(Z[Q],P.variants[Q]))}),Z},[L,O,g,_,P==null?void 0:P.variants]),U=B[e]??B.filled,X=d?{...U,color:d}:U,N=(X==null?void 0:X.color)??O,D=r.jsx(Bd,{icon:x,isLoading:u,iconPosition:n,loaderPosition:a,size:o,resolvedTextColor:N,isIconRounded:y,views:T,children:C}),K=ta[o],J=y?Ld[o]:{};return r.jsx(Ud,{variant:e,animation:F,to:w,isDisabled:p,isLoading:u,isAuto:f,isFilled:m,isExternal:v,shape:t,shadow:S,onClick:b,views:T,baseStyles:X,sizeStyles:K,iconPad:J,resolvedTextColor:N,content:D,size:o,mainTone:L,borderMovingDuration:z,borderMovingGradientColors:E,animatedStrokeAccentColor:V,animatedStrokeTextColor:M,containerRef:H,...A})})),ce=e=>{const[o,t]=l.useHover(),n=pe("button",e),a=e.textColor??(e.backgroundColor!=null&&e.color!=null?e.color:void 0);return r.jsx(Gd,{isHovered:t,...n,explicitTextColor:a})},Yd={sm:{padding:"12px"},md:{padding:"16px"},lg:{padding:"24px"}},Kd={square:0,rounded:"8px",pill:"24px"},Xd=e=>{const o=e==="dark";return{default:{backgroundColor:"color-white",border:"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"},outlined:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",transition:"border-color 0.2s ease, box-shadow 0.2s ease",_hover:{borderColor:"color-gray-300",boxShadow:o?"0px 1px 3px rgba(0, 0, 0, 0.3)":"0px 1px 3px rgba(0, 0, 0, 0.05)"}},elevated:{backgroundColor:"color-white",boxShadow:o?"0px 1px 3px rgba(0, 0, 0, 0.35), 0px 1px 2px rgba(0, 0, 0, 0.3)":"0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px rgba(0, 0, 0, 0.06)",border:"none",transition:"box-shadow 0.2s ease",_hover:{boxShadow:o?"0px 4px 6px rgba(0, 0, 0, 0.4), 0px 2px 4px rgba(0, 0, 0, 0.35)":"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.06)"}}}},vr=e=>(e.themeMode,{container:{backgroundColor:"color-white",color:"color-gray-900",borderRadius:"8px",overflow:"hidden",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease"},header:{padding:"16px",borderBottom:"1px solid",borderColor:"color-gray-100",color:"theme-primary",fontWeight:600,fontSize:14},content:{padding:"16px",color:"color-gray-600",fontSize:12,lineHeight:"18px"},footer:{padding:"16px",borderTop:"1px solid",borderColor:"color-gray-100",justifyContent:"flex-end",gap:8}}),na=h.createContext({}),Tt=()=>h.useContext(na),It=({children:e,views:o,style:t,themeMode:n,...a})=>{var g;const i=l.useTheme(),{styles:c}=Tt(),s=vr(i).header,d={...s,...c==null?void 0:c.header,...a,style:{...s==null?void 0:s.style,...(g=c==null?void 0:c.header)==null?void 0:g.style,...t}};return r.jsx(l.Vertical,{gap:8,...d,children:e})},Ft=({children:e,views:o,style:t,themeMode:n,...a})=>{var g;const i=l.useTheme(),{styles:c}=Tt(),s=vr(i).content,d={...s,...c==null?void 0:c.content,...a,style:{...s==null?void 0:s.style,...(g=c==null?void 0:c.content)==null?void 0:g.style,...t}};return r.jsx(l.Vertical,{gap:12,...d,children:e})},zt=({children:e,views:o,style:t,themeMode:n,...a})=>{var g;const i=l.useTheme(),{styles:c}=Tt(),s=vr(i).footer,d={...s,...c==null?void 0:c.footer,...a,style:{...s==null?void 0:s.style,...(g=c==null?void 0:c.footer)==null?void 0:g.style,...t}};return r.jsx(l.Vertical,{gap:8,...d,children:e})},Jd=({variant:e="default",size:o="md",shape:t="rounded",children:n,header:a,footer:i,isFullWidth:c=!1,views:s,style:d,themeMode:g,config:f,...m})=>{var b,T;const p=l.useTheme(),u=vr(p),y=((b=Yd[o])==null?void 0:b.padding)||"16px",k=h.useMemo(()=>({styles:{container:{...u.container,borderRadius:Kd[t],...s==null?void 0:s.container},header:{...u.header,padding:y,...s==null?void 0:s.header},content:{...u.content,padding:y,...s==null?void 0:s.content},footer:{...u.footer,padding:y,...s==null?void 0:s.footer}}}),[u,s,y,t]),x=h.Children.toArray(n).some(F=>h.isValidElement(F)&&(F.type===It||F.type===Ft||F.type===zt)),{themeMode:C}=p,v=Xd(g||C)[e],S={width:c?"100%":"auto",overflow:"hidden",...v,...k.styles.container,...m,style:{...(T=k.styles.container)==null?void 0:T.style,...d}};return r.jsx(na.Provider,{value:k,children:r.jsx(l.View,{...S,children:x?n:r.jsxs(l.Vertical,{width:"100%",children:[a&&r.jsx(It,{children:a}),r.jsx(Ft,{children:n}),i&&r.jsx(zt,{children:i})]})})})},ke=e=>{const o=pe("card",e);return r.jsx(Jd,{...o})};ke.Header=It,ke.Content=Ft,ke.Footer=zt;const Qd=({defaultActiveIndex:e=0,activeIndex:o,onChange:t,autoPlay:n=!1,autoPlayInterval:a=3e3,pauseOnHover:i=!0,infinite:c=!0,totalSlides:s,stepIndices:d})=>{const g=h.useRef(s||0),[f,m]=h.useState(s||0),p=h.useRef(new Set),u=h.useRef(0),y=h.useMemo(()=>tt("carousel-content"),[]),[k,x]=h.useState(o!==void 0?o:e),[C,w]=h.useState(!1),[v,S]=h.useState(!1),[b,T]=h.useState(0),[F,W]=h.useState(0),P=h.useRef(null);h.useEffect(()=>{o!==void 0&&x(o)},[o]);const $=h.useCallback(B=>{let U=B;c?B<0?U=f-1:B>=f&&(U=0):U=Math.max(0,Math.min(B,f-1)),d&&d.length>0&&(d.includes(U)||(U=d.reduce((N,D)=>Math.abs(D-U)<Math.abs(N-U)?D:N))),o===void 0&&x(U),t&&t(U)},[o,c,t,f]),z=h.useCallback(()=>{$(k+1)},[k,$]),E=h.useCallback(()=>{$(k-1)},[k,$]);h.useEffect(()=>(n&&!C&&!v&&(P.current=setInterval(()=>{z()},a)),()=>{P.current&&clearInterval(P.current)}),[n,a,C,v,z,i]);const V=h.useCallback(()=>{i&&w(!0)},[i]),M=h.useCallback(()=>{w(!1)},[]),A=h.useCallback(B=>{S(!0),"touches"in B?(T(B.touches[0].clientX),W(B.touches[0].clientY)):(T(B.clientX),W(B.clientY))},[]),H=h.useCallback(B=>{if(!v)return;let U,X;"touches"in B?(U=B.touches[0].clientX,X=B.touches[0].clientY):(U=B.clientX,X=B.clientY);const N=U-b,D=X-F;Math.abs(N)>Math.abs(D)&&Math.abs(N)>50&&(N>0?E():z(),S(!1))},[v,b,F,z,E]),j=h.useCallback(()=>{S(!1)},[]),L=h.useCallback(()=>{const B=u.current++;p.current.add(B);const U=p.current.size;return g.current=U,m(U),B},[]),O=h.useCallback(B=>{p.current.delete(B);const U=p.current.size;if(g.current=U,m(U),U>0&&k>=U){const X=Math.max(0,U-1);o===void 0&&x(X),t&&t(X)}},[k,o,t]),q=c||k>0,_=c||k<f-1;return{activeIndex:k,totalSlides:f,goToSlide:$,nextSlide:z,prevSlide:E,canGoNext:_,canGoPrevious:q,handleMouseEnter:V,handleMouseLeave:M,handleDragStart:A,handleDragMove:H,handleDragEnd:j,registerSlide:L,unregisterSlide:O,contentId:y,infinite:c}},Zd={dot:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"color-gray-300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},line:{width:"20px",height:"4px",borderRadius:"2px",backgroundColor:"color-gray-300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},number:{minWidth:"24px",height:"24px",borderRadius:"50%",backgroundColor:"color-gray-300",margin:"0 4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",transition:"background-color 0.3s ease"}},Rd={dot:{backgroundColor:"theme-primary"},line:{backgroundColor:"theme-primary"},number:{backgroundColor:"theme-primary",color:"color-white"}},Tr={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"color-white",color:"color-gray-800",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",zIndex:1,transition:"background-color 0.3s ease",_hover:{backgroundColor:"color-gray-100"}},Xo=()=>({container:{position:"relative",overflow:"hidden"},content:{overflow:"hidden",width:"100%",height:"100%"},innerContainer:{display:"flex",transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",height:"100%"},item:{flex:"0 0 100%",minWidth:0,position:"relative",height:"100%"},prevButton:{position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)",zIndex:10,...Tr},nextButton:{position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10,...Tr}}),aa=h.createContext(null),Ir=()=>{const e=h.useContext(aa);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},la=({children:e,isActive:o,index:t,views:n,...a})=>r.jsx(l.View,{flexShrink:0,width:"100%",height:"100%",display:o?"block":"none",...n,...a,children:e}),ia=({views:e,children:o,...t})=>{const{goToPrevious:n,canGoPrevious:a,styles:i}=Ir(),s={...Xo().prevButton,...i==null?void 0:i.prevButton,...e==null?void 0:e.prevButton};return r.jsx(ce,{"aria-label":"Previous slide",onClick:()=>n(),isDisabled:!a,...s,...t,children:o??r.jsx(ge,{orientation:"left",widthHeight:16})})},ca=({views:e,children:o,...t})=>{const{goToNext:n,canGoNext:a,styles:i}=Ir(),s={...Xo().nextButton,...i==null?void 0:i.nextButton,...e==null?void 0:e.nextButton};return r.jsx(ce,{"aria-label":"Next slide",onClick:()=>n(),isDisabled:!a,...s,...t,children:o??r.jsx(ge,{orientation:"right",widthHeight:16})})},sa=({children:e,views:o,...t})=>{const{registerSlide:n,unregisterSlide:a,styles:i}=Ir(),c=h.useRef(null);h.useEffect(()=>{const g=n();return c.current=g,()=>{c.current!==null&&a(c.current)}},[n,a]);const d={...Xo().item,...i==null?void 0:i.item,...o==null?void 0:o.item};return r.jsx(l.View,{role:"group","aria-roledescription":"slide",...d,...t,children:e})},da=({children:e,views:o,style:t,...n})=>{const{currentIndex:a,styles:i,contentId:c}=Ir(),s=Xo(),d={...s.content,...i==null?void 0:i.content,...o==null?void 0:o.content},g={...s.innerContainer,...i==null?void 0:i.innerContainer,...o==null?void 0:o.innerContainer},f=`-${a*100}%`;return r.jsx(l.View,{...d,...n,style:{...d==null?void 0:d.style,...t},id:c,"aria-live":"polite",children:r.jsx(l.View,{...g,style:{...g==null?void 0:g.style,transform:`translateX(${f})`},children:e})})},e0=({children:e,defaultActiveIndex:o=0,activeIndex:t,onChange:n,showNavigation:a=!0,navigationPosition:i="inside",prevButton:c,nextButton:s,showIndicators:d=!0,indicatorPosition:g="bottom",indicatorVariant:f="dot",autoPlay:m=!1,autoPlayInterval:p=3e3,pauseOnHover:u=!0,infinite:y=!0,direction:k="horizontal",transitionDuration:x=300,views:C,stepIndices:w,themeMode:v,...S})=>{const b=h.useMemo(()=>h.Children.toArray(e),[e]),T=Qd({defaultActiveIndex:o,activeIndex:t,onChange:n,autoPlay:m,autoPlayInterval:p,pauseOnHover:u,infinite:y,totalSlides:b.length}),{activeIndex:F,totalSlides:W,goToSlide:P,nextSlide:$,prevSlide:z,handleMouseEnter:E,handleMouseLeave:V,handleDragStart:M,handleDragMove:A,handleDragEnd:H}=T,j=()=>{if(!a)return null;const q=c||r.jsx(l.View,{as:"button","aria-label":"Previous slide",...Tr,...C==null?void 0:C.prevButton,children:"❮"}),_=s||r.jsx(l.View,{as:"button","aria-label":"Next slide",...Tr,...C==null?void 0:C.nextButton,children:"❯"});return r.jsxs(r.Fragment,{children:[r.jsx(l.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",left:i==="inside"?"10px":"-40px",onClick:z,cursor:!y&&F===0?"not-allowed":"pointer",opacity:!y&&F===0?.5:1,children:q}),r.jsx(l.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:i==="inside"?"10px":"-40px",onClick:$,cursor:!y&&F===b.length-1?"not-allowed":"pointer",opacity:!y&&F===b.length-1?.5:1,children:_})]})},L=()=>d?r.jsx(l.Horizontal,{position:"absolute",left:"0",right:"0",justifyContent:"center",...g==="top"?{top:"10px"}:{bottom:"10px"},...C==null?void 0:C.indicators,children:b.map((q,_)=>r.jsx(l.View,{onClick:()=>P(_),cursor:"pointer",...Zd[f],..._===F?{...Rd[f]}:{},...C==null?void 0:C.indicator,..._===F?C==null?void 0:C.activeIndicator:{},children:f==="number"&&_+1},_))}):null;return h.useMemo(()=>h.Children.toArray(e).some(q=>h.isValidElement(q)&&(q.type===da||q.type===sa||q.type===ia||q.type===ca)),[e])?r.jsx(aa.Provider,{value:{currentIndex:F,totalSlides:W,goToSlide:P,goToNext:$,goToPrevious:z,canGoNext:T.canGoNext,canGoPrevious:T.canGoPrevious,registerSlide:T.registerSlide,unregisterSlide:T.unregisterSlide,styles:{...Xo(),...C},contentId:T.contentId,infinite:y},children:r.jsx(l.View,{role:"region","aria-roledescription":"carousel","aria-label":"Carousel",position:"relative",width:"100%",height:"100%",overflow:"hidden",...C==null?void 0:C.container,...S,children:e})}):r.jsxs(l.View,{position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:E,onMouseLeave:V,onTouchStart:M,onTouchMove:A,onTouchEnd:H,onMouseDown:M,onMouseMove:A,onMouseUp:H,...C==null?void 0:C.container,...S,children:[r.jsx(l.View,{width:"100%",height:"100%",position:"relative",...C==null?void 0:C.slideWrapper,children:b.map((q,_)=>r.jsx(la,{isActive:_===F,index:_,views:C==null?void 0:C.slide,children:q},_))}),j(),L()]})},Le=e=>r.jsx(e0,{...e});Le.Slide=la,Le.Content=da,Le.Item=sa,Le.Previous=ia,Le.Next=ca;const _e={blue:"color-blue-500",green:"color-green-500",purple:"color-purple-500",orange:"color-orange-500",red:"color-red-500",teal:"color-teal-500",pink:"color-pink-500",indigo:"color-indigo-500",yellow:"color-yellow-500",cyan:"color-cyan-500"},ga=[_e.blue,_e.green,_e.purple,_e.orange,_e.red,_e.teal,_e.pink,_e.indigo,_e.yellow,_e.cyan],To=ga,o0={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},r0={fontSize:"18px",fontWeight:"700",marginBottom:"24px",textAlign:"center",color:"color-gray-900"},t0={display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginTop:"16px",gap:"12px"},n0={display:"flex",alignItems:"center",padding:"4px 8px",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s ease",_hover:{backgroundColor:"color-gray-50"}},a0={width:"10px",height:"10px",borderRadius:"50%",marginRight:"8px"},l0={fontSize:"13px",fontWeight:"500",color:"color-gray-600"},Fr={position:"absolute",backgroundColor:"color-white",padding:"12px 16px",borderRadius:"8px",boxShadow:"0px 12px 24px rgba(15, 23, 42, 0.18)",border:"1px solid color-gray-200",fontSize:"14px",display:"flex",flexDirection:"column",pointerEvents:"none",zIndex:100},ha={stroke:"color-gray-100",strokeWidth:"1px",strokeDasharray:"4 4"},zr={stroke:"color-gray-200",strokeWidth:"1px"},Mr={fontSize:"12px",fill:"color-gray-500",fontWeight:"500"},i0={rx:"4px",ry:"4px",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",_hover:{filter:"brightness(1.1)"}},c0={strokeWidth:"3px",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",transition:"stroke-width 0.2s ease"},s0={r:"5px",strokeWidth:"2.5px",stroke:"color-white",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",_hover:{r:"7px"}},Wr={strokeWidth:"2px",stroke:"color-white",cursor:"pointer",transition:"all 0.3s ease",_hover:{transform:"scale(1.02)"}},Mt={position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color-white-800",borderRadius:"4px",zIndex:10,padding:"24px",textAlign:"center"},d0={...Mt},g0={...Mt,backgroundColor:"rgba(254, 242, 242, 0.8)",color:"color-red-600"},h0={...Mt,backgroundColor:"rgba(249, 250, 251, 0.8)",color:"color-gray-500"},f0=({data:e,dataPoints:o,animated:t=!0,animationDuration:n=500,showTooltips:a=!0})=>{const[i,c]=h.useState(t?0:1),[s,d]=h.useState({visible:!1,x:0,y:0,content:null}),g=h.useRef(null),f=h.useRef(null);h.useEffect(()=>{if(!t){c(1);return}const w=Date.now(),v=()=>{const S=Date.now()-w,b=Math.min(S/n,1);c(b),b<1&&(g.current=requestAnimationFrame(v))};return g.current=requestAnimationFrame(v),()=>{g.current&&cancelAnimationFrame(g.current)}},[t,n]);const[m,p]=h.useState(new Set),u=h.useCallback(w=>{p(v=>{const S=new Set(v);return S.has(w)?S.delete(w):S.add(w),S})},[]),y=h.useCallback(()=>e?{...e,series:e.series.map((w,v)=>({...w,color:w.color||To[v%To.length],hidden:m.has(w.name)}))}:o?o.map((w,v)=>({...w,color:w.color||To[v%To.length],hidden:m.has(w.label)})):null,[e,o,m]),k=h.useCallback((w,v,S)=>{a&&d({visible:!0,x:w,y:v,content:S})},[a]),x=h.useCallback(()=>{d(w=>({...w,visible:!1}))},[]),C=h.useCallback(()=>{if(!f.current)return{width:0,height:0};const{width:w,height:v}=f.current.getBoundingClientRect();return{width:w,height:v}},[]);return{animationProgress:i,tooltip:s,containerRef:f,processedData:y,showTooltip:k,hideTooltip:x,getChartDimensions:C,toggleSeries:u}},m0=({data:e,width:o,height:t,animationProgress:n,showGrid:a=!0,onBarClick:i,showTooltip:c,hideTooltip:s,views:d})=>{const{getColor:g}=l.useTheme(),f={top:20,right:20,bottom:40,left:50},m=o-f.left-f.right,p=t-f.top-f.bottom,u=h.useMemo(()=>{let b=0;return e.series.forEach(T=>{T.data.forEach(F=>{b=Math.max(b,F)})}),b},[e]),y=e.labels.length,k=e.series.length,x=m/y,C=x*.8/k,w=x*.2/(k+1),v=u||10,S=h.useMemo(()=>{const T=[];for(let F=0;F<=5;F++){const W=v/5*F;T.push(W)}return T},[u]);return r.jsxs("svg",{width:o,height:t,children:[r.jsx("defs",{children:e.series.map((b,T)=>{const F=b.color?g(b.color):"black";return r.jsxs("linearGradient",{id:`bar-gradient-${T}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[r.jsx("stop",{offset:"0%",stopColor:F,stopOpacity:1}),r.jsx("stop",{offset:"100%",stopColor:F,stopOpacity:.7})]},`bar-gradient-${T}`)})}),r.jsx("line",{x1:f.left,y1:t-f.bottom,x2:o-f.right,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),r.jsx("line",{x1:f.left,y1:f.top,x2:f.left,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),e.labels.map((b,T)=>{const F=f.left+(T+.5)*x,W=t-f.bottom+20;return r.jsx("text",{x:F,y:W,textAnchor:"middle",...Mr,...d==null?void 0:d.axisLabel,children:b},`x-label-${T}`)}),S.map((b,T)=>{const F=t-f.bottom-b/v*p;return r.jsxs(h.Fragment,{children:[r.jsx("text",{x:f.left-10,y:F,textAnchor:"end",dominantBaseline:"middle",...Mr,...d==null?void 0:d.axisLabel,children:b.toFixed(0)}),a&&r.jsx("line",{x1:f.left,y1:F,x2:o-f.right,y2:F,...ha,...d==null?void 0:d.grid})]},`y-tick-${T}`)}),e.series.map((b,T)=>b.hidden?null:r.jsx(h.Fragment,{children:b.data.map((F,W)=>{const P=F/v*p*n,$=f.left+W*x+w*(T+1)+C*T,z=t-f.bottom-P,E=e.labels[W],V=e.series.reduce((L,O)=>{const q=O.data[W];return L+(typeof q=="number"?q:0)},0),M=V>0?(F/V*100).toFixed(1):null,A=b.color?g(b.color):"black",H=L=>{const O=r.jsxs(l.View,{display:"flex",flexDirection:"column",minWidth:"180px",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"semibold",children:b.name}),r.jsx(l.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:A})]}),r.jsx(l.Text,{marginTop:"4px",color:"color-gray-500",fontSize:"12px",children:E}),r.jsxs(l.View,{marginTop:"8px",display:"flex",flexDirection:"column",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Value"}),r.jsx(l.Text,{fontWeight:"medium",children:F.toLocaleString()})]}),M!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Share"}),r.jsx(l.Text,{fontWeight:"medium",children:`${M}%`})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Category total"}),r.jsx(l.Text,{fontWeight:"medium",children:V.toLocaleString()})]})]})]}),q=L.currentTarget.getBoundingClientRect(),_=q.left+q.width/2,B=q.top;c(_,B,O)},j=()=>{i&&i(b.name,W)};return r.jsx("rect",{x:$,y:z,width:C,height:P,fill:`url(#bar-gradient-${T})`,onMouseEnter:H,onMouseMove:H,onMouseLeave:s,onClick:j,...i0,...d==null?void 0:d.bar},`bar-${T}-${W}`)})},`series-${T}`))]})},p0=({data:e,width:o,height:t,animationProgress:n,showGrid:a=!0,onPointClick:i,showTooltip:c,hideTooltip:s,views:d})=>{const{getColor:g}=l.useTheme(),f={top:20,right:20,bottom:40,left:40},m=o-f.left-f.right,p=t-f.top-f.bottom,u=h.useMemo(()=>{let w=0;return e.series.forEach(v=>{v.data.forEach(S=>{w=Math.max(w,S)})}),w},[e]),y=u||10,k=h.useMemo(()=>{const v=[];for(let S=0;S<=5;S++){const b=y/5*S;v.push(b)}return v},[u]),x=w=>{if(w.length<2)return"";const v=w.map((b,T)=>({x:f.left+T/(e.labels.length-1)*m,y:t-f.bottom-b/y*p*n}));let S=`M ${v[0].x},${v[0].y}`;for(let b=0;b<v.length-1;b++){const T=v[b===0?b:b-1],F=v[b],W=v[b+1],P=v[b+2===v.length?b+1:b+2],$=F.x+(W.x-T.x)/6,z=F.y+(W.y-T.y)/6,E=W.x-(P.x-F.x)/6,V=W.y-(P.y-F.y)/6;S+=` C ${$},${z} ${E},${V} ${W.x},${W.y}`}return S},C=w=>{if(w.length<2)return"";const v=x(w),S=f.left,b=f.left+m,T=t-f.bottom;return`${v} L ${b},${T} L ${S},${T} Z`};return r.jsxs("svg",{width:o,height:t,children:[r.jsx("defs",{children:e.series.map((w,v)=>{const S=w.color?g(w.color):"black";return r.jsxs("linearGradient",{id:`gradient-${v}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[r.jsx("stop",{offset:"0%",stopColor:S,stopOpacity:.3}),r.jsx("stop",{offset:"100%",stopColor:S,stopOpacity:0})]},`gradient-${v}`)})}),r.jsx("line",{x1:f.left,y1:t-f.bottom,x2:o-f.right,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),r.jsx("line",{x1:f.left,y1:f.top,x2:f.left,y2:t-f.bottom,...zr,...d==null?void 0:d.axis}),e.labels.map((w,v)=>{const S=f.left+v/(e.labels.length-1)*m,b=t-f.bottom+20;return r.jsx("text",{x:S,y:b,textAnchor:"middle",...Mr,...d==null?void 0:d.axisLabel,children:w},`x-label-${v}`)}),k.map((w,v)=>{const S=t-f.bottom-w/y*p;return r.jsxs(h.Fragment,{children:[r.jsx("text",{x:f.left-10,y:S,textAnchor:"end",dominantBaseline:"middle",...Mr,...d==null?void 0:d.axisLabel,children:w.toFixed(0)}),a&&r.jsx("line",{x1:f.left,y1:S,x2:o-f.right,y2:S,...ha,...d==null?void 0:d.grid})]},`y-tick-${v}`)}),e.series.map((w,v)=>{if(w.hidden)return null;const S=w.color?g(w.color):"black";return r.jsxs(h.Fragment,{children:[r.jsx("path",{d:C(w.data),fill:`url(#gradient-${v})`,...d==null?void 0:d.area}),r.jsx("path",{d:x(w.data),stroke:S,...c0,...d==null?void 0:d.line}),w.data.map((b,T)=>{const F=f.left+T/(e.labels.length-1)*m,W=t-f.bottom-b/y*p*n,P=e.labels[T],$=e.series.reduce((j,L)=>{const O=L.data[T];return j+(typeof O=="number"?O:0)},0),z=$>0?(b/$*100).toFixed(1):null,E=T>0&&typeof w.data[T-1]=="number"?w.data[T-1]:null,V=typeof E=="number"?b-E:null,M=typeof V=="number"?`${V>=0?"+":""}${V.toLocaleString()}`:null,A=j=>{const L=r.jsxs(l.View,{display:"flex",flexDirection:"column",minWidth:"200px",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"semibold",children:w.name}),r.jsx(l.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:S})]}),r.jsx(l.Text,{marginTop:"4px",color:"color-gray-500",fontSize:"12px",children:P}),r.jsxs(l.View,{marginTop:"8px",display:"flex",flexDirection:"column",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Value"}),r.jsx(l.Text,{fontWeight:"medium",children:b.toLocaleString()})]}),M!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Change"}),r.jsx(l.Text,{fontWeight:"medium",children:M})]}),z!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Share"}),r.jsx(l.Text,{fontWeight:"medium",children:`${z}%`})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Category total"}),r.jsx(l.Text,{fontWeight:"medium",children:$.toLocaleString()})]})]})]}),O=j.currentTarget.getBoundingClientRect(),q=O.left+O.width/2,_=O.top+O.height/2;c(q,_,L)},H=()=>{i&&i(w.name,T)};return r.jsx("circle",{cx:F,cy:W,fill:S,onMouseEnter:A,onMouseMove:A,onMouseLeave:s,onClick:H,...s0,...d==null?void 0:d.point},`point-${v}-${T}`)})]},`series-${v}`)})]})},u0=({dataPoints:e,width:o,height:t,animationProgress:n,isDonut:a=!1,onSliceClick:i,showTooltip:c,hideTooltip:s,views:d})=>{const{getColor:g}=l.useTheme(),{ref:f,relation:m}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),p=h.useRef(null);h.useEffect(()=>{p.current&&f&&(f.current=p.current)},[p,f]);const y=Math.min(o,t)/2*.8,k=o/2,x=t/2,C=a?y*.6:0,w=h.useMemo(()=>e.filter(b=>!b.hidden),[e]),v=h.useMemo(()=>w.reduce((b,T)=>b+T.value,0),[w]),S=h.useMemo(()=>{if(v===0)return[{path:a?[`M ${k} ${x-y}`,`A ${y} ${y} 0 1 1 ${k} ${x+y}`,`A ${y} ${y} 0 1 1 ${k} ${x-y}`,`M ${k} ${x-C}`,`A ${C} ${C} 0 1 0 ${k} ${x+C}`,`A ${C} ${C} 0 1 0 ${k} ${x-C}`,"Z"].join(" "):[`M ${k} ${x}`,`M ${k} ${x-y}`,`A ${y} ${y} 0 1 1 ${k} ${x+y}`,`A ${y} ${y} 0 1 1 ${k} ${x-y}`,"Z"].join(" "),color:"#E2E8F0",label:"Total",value:0,percentage:"0%",labelX:k,labelY:x,startAngle:0,endAngle:Math.PI*2,index:-1}];const b=[];let T=-Math.PI/2;for(let F=0;F<w.length;F++){const P=w[F].value/v,$=P*2*Math.PI*n,E=Math.max(0,$-.02),V=T+E,M=k+Math.cos(T)*y,A=x+Math.sin(T)*y,H=k+Math.cos(V)*y,j=x+Math.sin(V)*y,L=k+Math.cos(T)*C,O=x+Math.sin(T)*C,q=k+Math.cos(V)*C,_=x+Math.sin(V)*C,B=E>Math.PI?1:0;let U;a?U=[`M ${M} ${A}`,`A ${y} ${y} 0 ${B} 1 ${H} ${j}`,`L ${q} ${_}`,`A ${C} ${C} 0 ${B} 0 ${L} ${O}`,"Z"].join(" "):U=[`M ${k} ${x}`,`L ${M} ${A}`,`A ${y} ${y} 0 ${B} 1 ${H} ${j}`,"Z"].join(" ");const X=T+E/2,N=a?(y+C)/2:y*.7,D=k+Math.cos(X)*N,K=x+Math.sin(X)*N,J=`${(P*100).toFixed(1)}%`,Z=w[F].color||To[F%To.length],Q=g(Z);b.push({path:U,color:Q,label:w[F].label,value:w[F].value,percentage:J,labelX:D,labelY:K,startAngle:T,endAngle:V,index:F,originalIndex:e.findIndex(oe=>oe.label===w[F].label)}),T=V}return b},[w,v,y,k,x,C,n,a,e]);return r.jsxs("svg",{ref:p,width:o,height:t,style:{overflow:"visible"},children:[a&&r.jsxs("g",{pointerEvents:"none",children:[r.jsx("circle",{cx:k,cy:x,r:C,fill:"white"}),r.jsx("text",{x:k,y:x-8,textAnchor:"middle",dominantBaseline:"middle",fontSize:"14px",fontWeight:"500",fill:"color-gray-500",children:"Total"}),r.jsx("text",{x:k,y:x+12,textAnchor:"middle",dominantBaseline:"middle",fontSize:"20px",fontWeight:"800",fill:"color-gray-900",children:v.toLocaleString()})]}),S.map((b,T)=>{const F=$=>{const z=v>0?b.value/v*100:0,E=v>0?Math.max(0,100-z):null,V=r.jsxs(l.View,{display:"flex",flexDirection:"column",minWidth:"200px",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"semibold",children:b.label}),r.jsx(l.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:b.color})]}),r.jsxs(l.Text,{marginTop:"4px",color:"color-gray-500",fontSize:"12px",children:["Slice ",b.index+1," of ",w.length]}),r.jsxs(l.View,{marginTop:"8px",display:"flex",flexDirection:"column",children:[r.jsxs(l.View,{display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Value"}),r.jsx(l.Text,{fontWeight:"medium",children:b.value.toLocaleString()})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Share"}),r.jsx(l.Text,{fontWeight:"medium",children:b.percentage})]}),r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Total"}),r.jsx(l.Text,{fontWeight:"medium",children:v.toLocaleString()})]}),E!==null&&r.jsxs(l.View,{marginTop:"4px",display:"flex",justifyContent:"space-between",children:[r.jsx(l.Text,{color:"color-gray-500",children:"Remaining"}),r.jsx(l.Text,{fontWeight:"medium",children:`${E.toFixed(1)}%`})]})]})]});let M=$.clientX,A=$.clientY;if(p.current){const H=p.current.getBoundingClientRect();M=H.left+b.labelX,A=H.top+b.labelY}c(M,A,V)},W=()=>{b.index!==-1&&i&&i(e[b.index],b.index)},P=b.index===-1;return r.jsxs("g",{children:[r.jsx("path",{d:b.path,fill:b.color,onMouseEnter:P?void 0:F,onMouseMove:P?void 0:F,onMouseLeave:P?void 0:s,onClick:W,...Wr,style:{...Wr==null?void 0:Wr.style,cursor:P?"default":"pointer"},...d==null?void 0:d.pie}),!P&&b.endAngle-b.startAngle>.25&&r.jsx("text",{x:b.labelX,y:b.labelY,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"11px",fontWeight:"800",pointerEvents:"none",paintOrder:"stroke",stroke:"rgba(0,0,0,0.2)",strokeWidth:"2px",children:b.percentage})]},`slice-${T}`)})]})},y0=({visible:e,x:o,y:t,content:n,maxDistance:a=100,views:i})=>{const c=h.useRef(null),[s,d]=h.useState({left:0,top:0});return h.useEffect(()=>{if(!e||!c.current||typeof window>"u"||typeof c.current.getBoundingClientRect!="function")return;const f=c.current.getBoundingClientRect(),m=f.width||200,p=f.height||100,u=20,y=16;let k=o-m/2,x=t-p-u;x<y&&(x=t+u),k+m>window.innerWidth-y?k=window.innerWidth-m-y:k<y&&(k=y),x=Math.max(y,Math.min(x,window.innerHeight-p-y)),d({left:k,top:x})},[e,o,t]),e?r.jsx(l.View,{ref:c,position:"fixed",left:`${s.left}px`,top:`${s.top}px`,...Fr,...i==null?void 0:i.tooltip,style:{...Fr==null?void 0:Fr.style,pointerEvents:"none",transition:"all 0.1s ease-out"},children:n}):null},b0=({type:e,data:o,dataPoints:t,title:n,showLegend:a=!0,legendPosition:i="bottom",showGrid:c=!0,showTooltips:s=!0,animated:d=!0,animationDuration:g=500,responsive:f=!0,aspectRatio:m=16/9,width:p=200,height:u=200,views:y,onDataPointClick:k,onSeriesClick:x,isLoading:C=!1,error:w,noData:v,loadingIndicator:S,errorIndicator:b,noDataIndicator:T,"aria-label":F,themeMode:W,...P})=>{const{animationProgress:$,tooltip:z,containerRef:E,processedData:V,showTooltip:M,hideTooltip:A,getChartDimensions:H,toggleSeries:j}=f0({data:o,dataPoints:t,animated:d,animationDuration:g,showTooltips:s}),L=V(),{width:O,height:q}=H(),_=p||O,B=u||(f?O/m:q),U=()=>{if(!a||!L)return null;let Q=[];return e==="pie"||e==="donut"?Array.isArray(L)&&(Q=L):L&&L.series&&(Q=L.series),!Q||Q.length===0?null:r.jsx(l.Horizontal,{flexWrap:"wrap",justifyContent:"flex-start",marginTop:i==="bottom"?"16px":0,marginBottom:i==="top"?"16px":0,...t0,...y==null?void 0:y.legend,children:Q.map((oe,re)=>{const ae=oe.hidden,te=oe.name||oe.label;return r.jsxs(l.View,{...n0,onClick:()=>j(te),opacity:ae?.4:1,...y==null?void 0:y.legendItem,children:[r.jsx(l.View,{backgroundColor:oe.color,...a0,opacity:ae?.3:1}),r.jsx(l.Text,{...l0,textDecoration:ae?"line-through":"none",children:te})]},`legend-${re}`)})})},X=()=>{if(!L)return null;switch(e){case"bar":return r.jsx(m0,{data:L,width:_,height:B,animationProgress:$,showGrid:c,onBarClick:x,showTooltip:M,hideTooltip:A,views:y});case"line":case"area":return r.jsx(p0,{data:L,width:_,height:B,animationProgress:$,showGrid:c,onPointClick:x,showTooltip:M,hideTooltip:A,views:y});case"pie":case"donut":return r.jsx(u0,{dataPoints:L,width:_,height:B,animationProgress:$,isDonut:e==="donut",onSliceClick:k,showTooltip:M,hideTooltip:A,views:y});default:return null}},N=()=>C?r.jsx(l.View,{...d0,...y==null?void 0:y.loadingOverlay,children:S||r.jsx(l.Center,{children:r.jsx(Re,{size:"lg"})})}):null,D=()=>w?r.jsx(l.View,{...g0,...y==null?void 0:y.errorOverlay,children:b||r.jsx(l.Text,{fontWeight:"medium",children:typeof w=="string"?w:"An error occurred"})}):null,K=()=>v?r.jsx(l.View,{...h0,...y==null?void 0:y.noDataOverlay,children:T||r.jsx(l.Text,{children:typeof v=="string"?v:"No data available"})}):null,J=F??(typeof n=="string"?n:"Chart"),Z=!w&&!C&&!v;return r.jsxs(l.View,{ref:E,role:"region","aria-label":J,"aria-busy":C,...o0,...y==null?void 0:y.container,...P,children:[n&&r.jsx(l.Text,{...r0,children:n}),Z&&i==="top"&&U(),r.jsxs(l.View,{flex:1,width:"100%",position:"relative",...y==null?void 0:y.chart,children:[Z&&X(),N(),D(),K(),r.jsx(y0,{visible:s&&z.visible,x:z.x,y:z.y,content:z.content,maxDistance:100,views:y})]}),Z&&i==="bottom"&&U()]})},x0=e=>r.jsx(b0,{...e}),k0=(e=365)=>{const[o,t]=h.useState(!1),[n,a]=h.useState(null),i="app-studio-cookie-consent";h.useEffect(()=>{if(typeof localStorage>"u")return;const g=localStorage.getItem(i);a(g!==null?g==="true":!1)},[]);const c=g=>{if(typeof localStorage<"u"){localStorage.setItem(i,String(g));const f=new Date;f.setDate(f.getDate()+e),localStorage.setItem(`${i}-expires`,f.toISOString())}a(g)};return{isHovered:o,setIsHovered:t,hasConsent:n,acceptCookies:()=>{c(!0)},resetConsent:()=>{typeof localStorage<"u"&&(localStorage.removeItem(i),localStorage.removeItem(`${i}-expires`)),a(!1)}}},C0=e=>({default:{container:{backgroundColor:"color-white",borderColor:"color-gray-200",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:"color-gray-800"},acceptButton:{backgroundColor:"color-blue-500",color:"color-white",hoverBackgroundColor:"color-blue-600"},customizeButton:{backgroundColor:"transparent",color:"color-gray-600",borderColor:"color-gray-300",hoverBackgroundColor:"color-gray-100"}},info:{container:{backgroundColor:"color-blue-50",borderColor:"color-blue-200",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:"color-blue-800"},acceptButton:{backgroundColor:"color-blue-500",color:"color-white",hoverBackgroundColor:"color-blue-600"},customizeButton:{backgroundColor:"transparent",color:"color-blue-800",borderColor:"color-blue-300",hoverBackgroundColor:"color-blue-100"}},primary:{container:{backgroundColor:"color-blue-50",borderColor:"color-blue-200",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:"color-blue-700"},acceptButton:{backgroundColor:"color-blue-500",color:"color-white",hoverBackgroundColor:"color-blue-600"},customizeButton:{backgroundColor:"transparent",color:"color-blue-700",borderColor:"color-blue-300",hoverBackgroundColor:"color-blue-100"}}}),w0=({title:e="Nous utilisons des cookies",description:o="Ce site utilise des cookies pour améliorer votre expérience. En continuant à naviguer sur ce site, vous acceptez notre utilisation des cookies conformément à notre politique de confidentialité.",acceptButtonText:t="Accepter",customizeButtonText:n="Personnaliser",position:a="bottom",variant:i="default",onAccept:c,onCustomize:s,views:d,showCustomizeButton:g=!0,cookieExpiration:f=365,themeMode:m,...p})=>{const{themeMode:u}=l.useTheme(),{hasConsent:y,acceptCookies:k}=k0(f),C=C0()[i];if(y)return null;const w=()=>{k(),c&&c()},v=()=>{s&&s()};return r.jsx(l.View,{style:{position:"fixed",left:16,right:16,zIndex:1e3,...a==="bottom"?{bottom:16}:{top:16}},padding:16,borderWidth:"1px",borderStyle:"solid",borderRadius:8,maxWidth:"800px",marginLeft:"auto",marginRight:"auto",transition:"opacity 0.3s ease, transform 0.3s ease",...C.container,...d==null?void 0:d.container,...p,children:r.jsxs(l.Vertical,{gap:12,maxWidth:1200,marginLeft:"auto",marginRight:"auto",children:[e&&r.jsx(l.Text,{fontWeight:"bold",fontSize:18,color:"color-black",...d==null?void 0:d.title,children:e}),o&&r.jsx(l.Text,{fontSize:14,color:"color-black",...d==null?void 0:d.description,children:o}),r.jsxs(l.Horizontal,{gap:12,justifyContent:"flex-end",marginTop:8,...d==null?void 0:d.buttonGroup,children:[g&&r.jsx(ce,{variant:"outline",onClick:v,size:"sm",...d==null?void 0:d.customizeButton,children:n}),r.jsx(ce,{variant:"filled",onClick:w,size:"sm",...d==null?void 0:d.acceptButton,children:t})]})]})})},S0=e=>r.jsx(w0,{...e}),v0=e=>{const{size:o,variant:t,onOpenChange:n}=e||{},[a,i]=h.useState(!1),[c,s]=h.useState({x:0,y:0}),[d,g]=h.useState(null),f=h.useRef(null),m=h.useRef(null),p=h.useMemo(()=>tt("contextmenu-content"),[]),u=h.useCallback(k=>{s({x:k.clientX,y:k.clientY}),i(!0),n==null||n(!0)},[n]),y=h.useCallback(()=>{i(!1),g(null),n==null||n(!1)},[n]);return h.useEffect(()=>{const k=w=>{m.current&&!m.current.contains(w.target)&&y()},x=()=>{a&&y()},C=w=>{w.key==="Escape"&&a&&y()};if(!(typeof(document==null?void 0:document.addEventListener)!="function"||typeof(window==null?void 0:window.addEventListener)!="function"))return document.addEventListener("mousedown",k),window.addEventListener("resize",x),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",k),window.removeEventListener("resize",x),document.removeEventListener("keydown",C)}},[a,y]),{isOpen:a,setIsOpen:i,position:c,setPosition:s,activeSubmenuId:d,setActiveSubmenuId:g,size:o,variant:t,triggerRef:f,contentRef:m,contentId:p,openMenu:u,closeMenu:y}},fa={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},T0={default:{backgroundColor:"color-white",color:"color-gray-800"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},ma={hover:{backgroundColor:"color-gray-100"}},pa=h.createContext({isOpen:!1,setIsOpen:()=>{},position:{x:0,y:0},setPosition:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null},contentRef:{current:null},contentId:"contextmenu-content",closeMenu:()=>{},openMenu:()=>{}}),I0=({children:e,value:o})=>r.jsx(pa.Provider,{value:o,children:e}),Hr=()=>{const e=h.useContext(pa);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},ua=({children:e,disableNativeContextMenu:o=!0,asChild:t=!1,isDisabled:n=!1,views:a,...i})=>{const{triggerRef:c,contentId:s,openMenu:d}=Hr(),f={ref:c,onContextMenu:m=>{if(!n)if(o&&m.preventDefault(),d)d(m);else{const{setIsOpen:p,setPosition:u}=Hr();u({x:m.clientX,y:m.clientY}),p(!0)}},"aria-controls":s,"aria-haspopup":"menu","data-disabled":n?"":void 0,...t&&h.isValidElement(e)&&e.props.isDisabled===void 0&&{isDisabled:n},...a==null?void 0:a.container,...i};if(t&&h.isValidElement(e)){const m=h.Children.only(e);return h.cloneElement(m,{...f,...m.props})}return r.jsx(l.View,{...f,children:e})},Wt=({items:e,children:o,position:t,side:n="right",align:a="start",views:i,style:c,...s})=>{const{isOpen:d,position:g,contentRef:f,contentId:m,variant:p}=Hr(),u=h.useRef(null),y=f||u,{ref:k,relation:x}=l.useElementPosition({}),[C,w]=h.useState({x:0,y:0});if(h.useEffect(()=>{if(d&&y.current){const S=t||g,b=y.current.offsetWidth,T=y.current.offsetHeight,F=window.innerWidth,W=window.innerHeight;let P=S.x,$=S.y;x&&(x.space.horizontal==="left"?P=S.x-b:P=S.x,x.space.vertical==="top"?$=S.y-T:$=S.y),P+b>F&&(P=F-b-8),P<8&&(P=8),$+T>W&&($=W-T-8),$<8&&($=8),w({x:P,y:$})}},[d,g,t,n,a,y,x]),!d)return null;const v={position:"fixed",top:`${C.y}px`,left:`${C.x}px`,zIndex:1e3,transformOrigin:"top left"};return r.jsxs(l.View,{id:m||"context-menu",ref:y,role:"menu",tabIndex:-1,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:{...v,...c},...T0[p],...i==null?void 0:i.menu,...i==null?void 0:i.content,...s,children:[e&&e.map((S,b)=>S.divider?r.jsx(ba,{views:i},`divider-${b}`):r.jsx(ya,{item:S,views:i},S.id)),o]})},ya=({item:e,children:o,onSelect:t,isDisabled:n=!1,views:a,variant:i,shape:c,isLoading:s,loaderProps:d,loaderPosition:g,icon:f,iconPosition:m,isFilled:p,isAuto:u,isIconRounded:y,isHovered:k,shadow:x,ariaLabel:C,animation:w,textColor:v,reversed:S,borderMovingDuration:b,borderMovingGradientColors:T,animatedStrokeAccentColor:F,animatedStrokeTextColor:W,to:P,isExternal:$,config:z,...E})=>{const{activeSubmenuId:V,setActiveSubmenuId:M,size:A,closeMenu:H}=Hr();if(e){const[L,O]=h.useState(!1),q=e.items&&e.items.length>0,_=V===e.id,[B,U]=h.useState({x:0,y:0}),X=e.disabled||n,N=()=>{O(!0),q&&M(e.id)},D=()=>{O(!1)},K=()=>{X||!q&&e.onClick&&(e.onClick(),H&&H())},{ref:J,relation:Z}=l.useElementPosition({});return h.useEffect(()=>{if(_&&J.current){const Q=J.current.getBoundingClientRect(),oe=window.innerWidth,re=200;let ae=!1;if(Z)ae=Z.space.horizontal==="left";else{const te=oe-Q.right,se=Q.left;ae=te<re&&se>te}U({x:ae?Q.left-re:Q.right,y:Q.top})}},[_,e.items,Z]),r.jsxs(l.View,{ref:J,role:"menuitem",display:"flex",alignItems:"center",cursor:X?"not-allowed":"pointer",opacity:X?.5:1,position:"relative","aria-disabled":X,"data-disabled":X?"":void 0,...fa[A],_hover:X?{}:ma.hover,backgroundColor:L&&!X?"color-gray-100":"transparent",onMouseEnter:N,onMouseLeave:D,onClick:K,...a==null?void 0:a.item,...E,children:[e.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:e.icon}),r.jsx(l.View,{flexGrow:1,children:e.label}),q&&r.jsx(l.View,{marginLeft:8,...a==null?void 0:a.submenuIndicator,children:r.jsx(ge,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})}),_&&q&&r.jsx(Wt,{items:e.items||[],position:B,side:"right",align:"start",views:a})]})}const j=L=>{n||(t==null||t(L),H&&H())};return r.jsx(l.View,{role:"menuitem",onClick:j,cursor:n?"not-allowed":"pointer",opacity:n?.5:1,"aria-disabled":n,"data-disabled":n?"":void 0,...fa[A],_hover:n?{}:ma.hover,...a==null?void 0:a.item,...E,children:o})},ba=({views:e,...o})=>r.jsx(l.View,{height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",role:"separator","aria-orientation":"horizontal",...e==null?void 0:e.divider,...o}),F0=({views:e,...o})=>r.jsx(l.View,{height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",role:"separator","aria-orientation":"horizontal",...e==null?void 0:e.separator,...o}),z0=({children:e,items:o,size:t="md",variant:n="default",disableNativeContextMenu:a=!0,views:i,themeMode:c,onOpenChange:s,...d})=>!o||o.length===0?r.jsx(r.Fragment,{children:e}):r.jsxs(r.Fragment,{children:[r.jsx(ua,{disableNativeContextMenu:a,views:i,...d,children:e}),r.jsx(Wt,{items:o,views:i})]}),Io=({children:e,items:o,size:t="md",variant:n="default",disableNativeContextMenu:a=!0,onOpenChange:i,views:c,...s})=>{const d=v0({size:t,variant:n,onOpenChange:i}),{isOpen:g,setIsOpen:f,position:m,setPosition:p,activeSubmenuId:u,setActiveSubmenuId:y,triggerRef:k,contentRef:x,contentId:C,openMenu:w,closeMenu:v}=d;return r.jsx(I0,{value:{isOpen:g,setIsOpen:f,position:m,setPosition:p,activeSubmenuId:u,setActiveSubmenuId:y,size:t,variant:n,triggerRef:k,contentRef:x,contentId:C,openMenu:w,closeMenu:v,styles:c},children:r.jsx(z0,{items:o,size:t,variant:n,disableNativeContextMenu:a,views:c,...s,children:e})})};Io.Trigger=ua,Io.Content=Wt,Io.Item=ya,Io.Divider=ba,Io.Separator=F0;const M0=({src:e,color:o,views:t,themeMode:n,...a})=>{const{getColor:i,themeMode:c}=l.useTheme(),s=o?{fill:i(o,{themeMode:c}),stroke:i(o,{themeMode:c})}:{};return r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",...a,...t==null?void 0:t.container,children:r.jsx(l.Image,{...s,content:'url("'+e+'")',width:"100%",height:"100%",...t==null?void 0:t.image})})},W0=({path:e,...o})=>r.jsx(l.Image,{src:e,...o}),xa=(e,o)=>o?Array.isArray(e)?e:e===""?[]:[e]:Array.isArray(e)?e[0]??"":e,ka=({placeholder:e,isMulti:o,options:t,value:n,defaultValue:a,id:i=`select-${Math.random().toString(36).substr(2,9)}`})=>{const c=n!==void 0,[s,d]=h.useState(!1),[g,f]=h.useState(!1),[m,p]=h.useState(()=>a!==void 0?xa(a,o):o?[]:e?"":Array.isArray(t)&&t.length>0?t[0].value:""),u=c?xa(n,o):m,y=h.useCallback(v=>{c||p(v)},[c]),[k,x]=h.useState(0),[C,w]=h.useState(!0);return{id:i,value:u,setValue:y,hide:C,setHide:w,isHovered:s,setIsHovered:d,isFocused:g,setIsFocused:f,highlightedIndex:k,setHighlightedIndex:x}},Ht=({children:e,views:o={helperText:{}},...t})=>r.jsx(l.Text,{fontSize:"11px",fontWeight:"400",letterSpacing:"-0.01em",lineHeight:"16px",marginVertical:0,marginHorizontal:0,color:"color-gray-500",transition:"color 0.2s ease, opacity 0.2s ease",...o.helperText,...t,children:e}),Ye=h.forwardRef(({children:e,helperText:o,error:t=!1,views:n,...a},i)=>r.jsxs(l.Vertical,{ref:i,gap:4,position:"relative",width:"100%",boxSizing:"border-box",marginVertical:0,...a,...n==null?void 0:n.container,children:[e,!t&&o&&r.jsx(Ht,{marginTop:0,...n==null?void 0:n.helperText,children:o}),t&&r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",marginTop:0,marginHorizontal:0,fontWeight:"500",color:"color-red-500",transition:"color 0.2s ease, opacity 0.2s ease",...n==null?void 0:n.error,children:t})]}));Ye.displayName="FieldContainer";const H0={default:{borderRadius:"8px"},square:{borderRadius:0},rounded:{borderRadius:"8px"},pill:{borderRadius:"9999px"}},j0={xs:"10px",sm:"11px",md:"11px",lg:"12px",xl:"12px"},P0={outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",backgroundColor:"transparent",color:"inherit",transition:"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease",_hover:{borderColor:"color-gray-300"},_focus:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"},_focusVisible:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"}},default:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"8px",backgroundColor:"transparent",color:"inherit",transition:"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease",_hover:{borderColor:"color-gray-300"},_focus:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"},_focusVisible:{borderColor:"theme-primary",outline:"none",boxShadow:"0 0 0 3px theme-primary"}},none:{border:"none",style:{backgroundColor:"transparent"},color:"inherit",transition:"background-color 0.2s ease"}},A0={xs:{minHeight:24,paddingVertical:4,paddingHorizontal:10},sm:{minHeight:32,paddingVertical:7,paddingHorizontal:10},md:{minHeight:40,paddingVertical:9,paddingHorizontal:12},lg:{minHeight:48,paddingVertical:11,paddingHorizontal:14},xl:{minHeight:56,paddingVertical:13,paddingHorizontal:16}},V0=e=>{const{minHeight:o,paddingVertical:t,paddingHorizontal:n}=A0[e];return{minHeight:`${o}px`,paddingTop:`${t}px`,paddingBottom:`${t}px`,paddingLeft:`${n}px`,paddingRight:`${n}px`}},eo=({label:e,shadow:o,children:t,value:n,size:a="md",shape:i="default",variant:c="default",error:s=!1,showLabel:d=!1,isFocused:g=!1,isHovered:f=!1,isDisabled:m=!1,isReadOnly:p=!1,views:u={pickerBox:{}},...y})=>{const{themeMode:k}=l.useTheme(),x=k==="dark",w=s?"color-red-500":(f||g)&&!m?"theme-primary":"color-gray-200";return r.jsx(l.Horizontal,{gap:8,width:"100%",boxSizing:"border-box",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",borderStyle:"solid",borderColor:w,backgroundColor:x?"color-gray-900":"color-white",fontSize:l.Typography.fontSizes[a],cursor:m?"not-allowed":p?"auto":"text",opacity:m?.7:1,transition:"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease",...V0(a),...typeof o=="object"&&o!==null?o:{},...H0[i],...P0[c],...u==null?void 0:u.container,...y,children:t})},jt=({children:e,...o})=>r.jsx(l.Horizontal,{gap:10,right:10,zIndex:500,flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-end",...o,children:e}),E0={h1:{fontSize:96,letterSpacing:-1.5},h2:{fontSize:60,letterSpacing:-.5},h3:{fontSize:48,letterSpacing:0},h4:{fontSize:34,letterSpacing:.25},h5:{fontSize:24,letterSpacing:0},h6:{fontSize:20,letterSpacing:.15}},D0=({children:e,heading:o,isItalic:t=!1,isUnderlined:n=!1,isStriked:a=!1,weight:i="normal",size:c="sm",dropDown:s,error:d,isDisabled:g,helperText:f,views:m,...p})=>{const u=o?E0[o]:{};return r.jsx(l.Element,{as:"label",width:"100%",fontSize:c,fontStyle:t?"italic":"normal",fontWeight:l.Typography.fontWeights[i],textDecoration:a?"line-through":n?"underline":"none",...u,...p,children:e})},Jo=e=>r.jsx(D0,{...e}),co=({children:e,size:o="md",error:t=!1,color:n="theme-primary",views:a={label:{}},helperText:i,...c})=>r.jsx(Jo,{position:"static",fontSize:j0[o],letterSpacing:"-0.01em",whiteSpace:"nowrap",fontWeight:500,opacity:t?1:.72,color:t?"color-red-500":"inherit",transition:"color 0.2s ease",...a.label,...c,children:e}),Fo=({children:e,...o})=>r.jsx(l.Vertical,{display:"flex",flexDirection:"column",gap:4,flex:1,width:"100%",maxWidth:"100%",boxSizing:"border-box",...o,children:e}),Ca={xs:12,sm:14,md:16,lg:18,xl:20},$0={maxHeight:"280px",overflowY:"auto",zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},L0={enter:{opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.2s ease-in-out"}},_0={padding:"10px 12px",cursor:"pointer",borderRadius:8,margin:"2px 4px",transition:"all 0.15s ease-in-out"},jr={default:{},highlighted:{backgroundColor:"color-gray-100"},selected:{backgroundColor:"color-gray-100"},selectedHighlighted:{backgroundColor:"color-gray-200"}},wa={open:{transform:"rotate(180deg)",transition:"all 0.2s ease-in-out"},closed:{transform:"rotate(0deg)",transition:"all 0.2s ease-in-out"}},B0={padding:"4px 8px",borderRadius:8,backgroundColor:"color-gray-100",fontSize:"12px",fontWeight:"500",color:"color-gray-700",transition:"all 0.15s ease-in-out"},O0={scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.15) transparent"},N0=e=>{if(!e)return{};const{container:o,content:t,...n}=e;return n},q0=({isHovered:e,setIsHovered:o=()=>{},option:t,size:n="md",callback:a=()=>{},style:i,isSelected:c=!1,...s})=>{const d=(m,p)=>{m.stopPropagation(),m.preventDefault(),typeof a=="function"&&a(p)},g=()=>o(!e),f=()=>c&&e?jr.selectedHighlighted:c?jr.selected:e?jr.highlighted:jr.default;return r.jsxs(l.Element,{as:"li",role:"option","aria-selected":c,display:"flex",alignItems:"center",justifyContent:"space-between",listStyleType:"none",..._0,...f(),onMouseEnter:g,onMouseLeave:g,onClick:m=>d(m,t.value),...s,children:[r.jsx(l.Text,{fontSize:l.Typography.fontSizes[n],fontWeight:c?"500":"400",lineHeight:"14px",color:c?"color-gray-900":"color-gray-700",...i,children:t.label}),c&&r.jsx(l.Element,{as:"span",color:"theme-primary",fontSize:"14px",marginLeft:8,display:"flex",alignItems:"center",children:"✓"})]})},U0=({size:e="md",views:o={field:{},text:{}},value:t,isDisabled:n,placeholder:a,removeOption:i=()=>{},options:c})=>{const s=(o==null?void 0:o.field)||{},d=(o==null?void 0:o.text)||{},g=Array.isArray(t)&&t.length>0,f={margin:0,width:"95%",height:"100%",border:"none",paddingVertical:0,paddingHorizontal:0,fontSize:l.Typography.fontSizes[e],fontWeight:"400",letterSpacing:"-0.01em",color:n?"color-gray-400":"color-gray-900",cursor:n?"not-allowed":"pointer",transition:"all 0.2s ease-in-out",...g?{}:{maxLines:1,minWidth:0},...s,...d,style:{backgroundColor:"transparent",...s.style,...d.style}},m=c.length>0&&c.find(p=>p.value===t);return r.jsx(l.Text,{...f,children:(t===""||Array.isArray(t)&&t.length===0)&&a?a:r.jsx(r.Fragment,{children:typeof t=="string"?(m&&m.label)??t:Array.isArray(t)&&t.length>0?r.jsx(l.Horizontal,{gap:6,children:t.map(p=>r.jsx(K0,{option:p,removeOption:i},p))}):r.jsx("span",{children:t})})})},G0=({id:e,name:o,value:t,onChange:n,isMulti:a=!1,isDisabled:i=!1,isReadOnly:c=!1,options:s=[],defaultValue:d,...g})=>{const f=m=>{n&&n(a?Array.from(m.target.selectedOptions,p=>p.value):m.target.value)};return r.jsx(l.Element,{id:e,name:o,as:"select",opacity:0,width:1,height:1,overflow:"hidden",position:"absolute",pointerEvents:"none",tabIndex:-1,"aria-hidden":"true",value:t,disabled:i,readOnly:c,onChange:f,multiple:a,...g,children:s.length>0&&s.map(m=>r.jsx("option",{value:m.value,children:m.label},m.value))})},Y0=({size:e,views:o={},options:t,callback:n=()=>{},highlightedIndex:a,setHighlightedIndex:i=()=>{},selectedValue:c})=>{const s=g=>n(g),d=g=>Array.isArray(c)?c.includes(g):c===g;return r.jsx(l.Element,{as:"ul",role:"listbox",display:"flex",flexDirection:"column",margin:0,padding:"4px",...$0,style:O0,...o==null?void 0:o.dropDown,children:t&&t.length>0&&t.map((g,f)=>r.jsx(q0,{size:e,style:o.text,option:g,callback:s,isSelected:d(g.value),isHovered:f===a,setIsHovered:()=>{},onMouseEnter:()=>i(f)},g.value))})},K0=({option:e,size:o="md",removeOption:t=()=>{},...n})=>{const a=()=>t(e);return r.jsxs(l.Horizontal,{gap:6,alignItems:"center",onClick:i=>i.stopPropagation(),...B0,_hover:{backgroundColor:"color-gray-200"},...n,children:[r.jsx(l.Text,{fontSize:l.Typography.fontSizes[o],fontWeight:"500",color:"color-gray-700",children:e}),r.jsx(Me,{role:"close-button",color:"color-gray-500",widthHeight:Ca[o],onClick:a,cursor:"pointer",transition:"all 0.2s ease-in-out",_hover:{color:"color-gray-700"}})]})},Sa=({id:e,name:o,label:t,value:n,placeholder:a,helperText:i,hide:c=!1,error:s=!1,isMulti:d=!1,isFocused:g=!1,isHovered:f=!1,isDisabled:m=!1,isReadOnly:p=!1,options:u=[],shadow:y={},size:k="md",shape:x="default",variant:C="default",views:w={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:v=()=>{},setHide:S=()=>{},setValue:b=()=>{},setIsHovered:T=()=>{},setIsFocused:F=()=>{},setHighlightedIndex:W,highlightedIndex:P,isScrollable:$,"aria-label":z,...E})=>{const{ref:V,relation:M,updateRelation:A}=l.useElementPosition({trackChanges:!0,trackOnScroll:!0,trackOnResize:!0,throttleMs:10}),H=h.useRef(null),j=()=>{var J;if(!V.current)return{};const N=V.current.getBoundingClientRect(),D={position:"fixed",left:N.left,width:N.width,zIndex:1e4};return((J=M==null?void 0:M.space)==null?void 0:J.vertical)==="top"?{...D,bottom:window.innerHeight-N.top+8}:{...D,top:N.bottom+8}};h.useEffect(()=>{const N=()=>S(!0);return document.addEventListener("closeAllSelects",N),()=>document.removeEventListener("closeAllSelects",N)},[S]),h.useEffect(()=>{const N=D=>{!D.target.closest(`#${e}`)&&!c&&S(!0)};return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[e,c,S]);const L=()=>T(!f),O=()=>F(!0),q=N=>{document.dispatchEvent(new Event("closeAllSelects")),N&&N.stopPropagation&&N.stopPropagation();const D=!c;S(D),F(!D)},_=h.useCallback(N=>{if(S(!0),document.dispatchEvent(new Event("closeAllSelects")),d&&Array.isArray(n)){if(!n.includes(N)){const D=[...n,N];b(D),v&&v(D)}}else b(N),v&&v(N);F(!0)},[d,n,S,b,v,F]),B=N=>{if(Array.isArray(n)&&n.includes(N)){const D=n.filter(K=>K!==N);b(D),v&&v(D)}},U=!!t,X=N0(w);return r.jsx(Ye,{ref:V,position:"relative",width:"100%",display:"inline-block",id:e,role:"combobox","aria-haspopup":"listbox","aria-expanded":!c,"aria-label":z??(typeof t=="string"?t:void 0),"aria-disabled":m||void 0,tabIndex:m||p?-1:0,helperText:i,error:s,views:X,onKeyDown:N=>{if(!(m||p)){if(N.key==="Enter"||N.key===" "||N.key==="ArrowDown"){N.preventDefault(),c&&(document.dispatchEvent(new Event("closeAllSelects")),S(!1),F(!0));return}N.key==="Escape"&&!c&&(N.preventDefault(),S(!0))}},onClick:N=>{N.stopPropagation(),m||p||q(N)},children:r.jsxs(eo,{label:t,size:k,error:s,shape:x,views:w,shadow:y,variant:C,value:n,color:"theme-primary",isHovered:f,isDisabled:m,isReadOnly:p,isFocused:g,showLabel:U,onMouseEnter:L,onMouseLeave:L,position:"relative",...w==null?void 0:w.content,children:[r.jsxs(Fo,{children:[U&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:s,...w==null?void 0:w.label,children:t}),r.jsx(G0,{id:e,name:o,options:u,onChange:v,value:n,isDisabled:m,isReadOnly:p,isMulti:d,onFocus:O,...E}),r.jsx(U0,{options:u,size:k,views:w,value:n,isDisabled:m,placeholder:a,removeOption:B})]}),r.jsx(jt,{children:!p&&!m&&r.jsx(l.Element,{display:"flex",alignItems:"center",justifyContent:"center",style:c?wa.closed:wa.open,children:r.jsx(ge,{color:"inherit",widthHeight:Ca[k],style:w.icon,orientation:"down"})})}),!c&&u.length>0&&r.jsx(ct,{children:r.jsx(l.Element,{ref:H,onClick:N=>N.stopPropagation(),style:{...j(),...L0.enter},children:r.jsx(Y0,{size:k,views:w,options:u,callback:_,highlightedIndex:P,setHighlightedIndex:W,selectedValue:n})})})]})})},Qo=e=>{const o=pe("select",e),t={...o,options:o.options||[]},n=ka(t);return r.jsx(Sa,{...n,...t,value:n.value,onClick:a=>{a.stopPropagation(),o.onClick&&o.onClick(a)}})},va=({isDisabled:e,isChecked:o})=>{const[t,n]=h.useState(!1),[a,i]=h.useState(o||!1),[c,s]=h.useState(o||!1);return h.useEffect(()=>{o!==void 0&&(i(o),s(o))},[o]),{isHovered:t,setIsHovered:n,on:a,setOn:i,value:c,setValue:s}},Ta={xs:{height:"10px",width:"10px"},sm:{height:"14px",width:"14px"},md:{height:"18px",width:"18px"},lg:{height:"22px",width:"22px"},xl:{height:"26px",width:"26px"}},X0={xs:{height:"20px",width:"40px"},sm:{height:"24px",width:"48px"},md:{height:"28px",width:"56px"},lg:{height:"32px",width:"64px"},xl:{height:"36px",width:"72px"}},J0={xs:{height:"22px",width:"52px"},sm:{height:"26px",width:"62px"},md:{height:"30px",width:"72px"},lg:{height:"34px",width:"84px"},xl:{height:"38px",width:"96px"}},Q0={xs:"9px",sm:"10px",md:"11px",lg:"12px",xl:"13px"},Pr={xs:{paddingVertical:5,paddingHorizontal:3},sm:{paddingVertical:5,paddingHorizontal:3},md:{paddingVertical:5,paddingHorizontal:5},lg:{paddingVertical:5,paddingHorizontal:5},xl:{paddingVertical:5,paddingHorizontal:5}},so={default:{active:"theme-primary",inactive:"color-gray-300",knob:"color-white",disabled:"color-gray-200"},states:{hover:{active:"theme-primary",inactive:"color-gray-400",activeOpacity:.9}}},Ia={slider:{transition:"all 0.2s ease-in-out"},knob:{transition:"all 0.2s ease-in-out"}},Z0=e=>r.jsx(l.Input,{type:"checkbox",...e}),Fa=({id:e,name:o,label:t,inActiveChild:n,isChecked:a,activeChild:i,labelPosition:c="right",shadow:s={},size:d="sm",value:g=!1,isHovered:f=!1,isDisabled:m=!1,isReadOnly:p=!1,on:u,setOn:y=()=>{},onChange:k,setValue:x=()=>{},setIsHovered:C=()=>{},helperText:w,views:v={slider:{},circle:{},label:{}},...S})=>{const b=typeof a=="boolean"?a:g,F=!!(i||n)?J0[d]:X0[d],W=`${Pr[d].paddingHorizontal}px`,P=`${Pr[d].paddingHorizontal+2}px`,$=`calc(${Ta[d].width} + ${Pr[d].paddingHorizontal}px + 4px)`,z=Q0[d],E=H=>{if(!p&&!m){const j=H.target.checked;x(j),y(j),k&&k(j)}},V=()=>C(!0),M=()=>C(!1),A={container:{gap:12,display:"flex",height:"fit-content",width:"fit-content",alignItems:"center",cursor:m?"not-allowed":p?"default":"pointer",opacity:m?.6:1,transition:"all 0.2s ease-in-out",...v.label}};return r.jsxs(Jo,{htmlFor:e,onMouseEnter:V,onMouseLeave:M,...A.container,...S,children:[r.jsx(Z0,{id:e,name:o,opacity:0,width:0,height:0,checked:b,onChange:E,disabled:m,readOnly:p,...S}),c==="left"&&t&&r.jsx(l.Text,{fontWeight:"500",color:m?"color-gray-400":"inherit",transition:"color 0.2s ease, opacity 0.2s ease",children:t}),r.jsxs(l.View,{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",marginBottom:4,borderRadius:"9999px",backgroundColor:m?so.default.disabled:b?f?so.states.hover.active:so.default.active:f?so.states.hover.inactive:so.default.inactive,opacity:!m&&b&&f?so.states.hover.activeOpacity:1,cursor:"pointer",...Ia.slider,...s,...Pr[d],...F,...v.slider,children:[i&&b&&r.jsx(l.View,{marginLeft:P,marginRight:$,transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",fontSize:z,color:"color-white",fontWeight:600,children:i}),r.jsx(l.View,{position:"absolute",top:"50%",left:b?void 0:W,right:b?W:void 0,borderRadius:"50%",backgroundColor:so.default.knob,boxShadow:f?"0 4px 10px rgba(15, 23, 42, 0.18)":"0 1px 3px rgba(15, 23, 42, 0.18)",transform:`translateY(-50%) ${f?"scale(1.05)":"scale(1)"}`,...Ia.knob,zIndex:1,...Ta[d],...v.circle}),n&&!b&&r.jsx(l.View,{marginLeft:$,marginRight:P,transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",fontSize:z,color:"color-white",fontWeight:600,children:n})]}),c==="right"&&t&&r.jsx(l.Text,{fontWeight:"500",color:m?"color-gray-400":"inherit",transition:"all 0.2s ease-in-out",children:t})]})},Pt=e=>{const o=pe("switch",e),t=va(o);return r.jsx(Fa,{...t,...o})},za=({placeholder:e,isMulti:o,options:t,id:n=`selector-${Math.random().toString(36).substr(2,9)}`})=>{const a=e?o?[]:"":Array.isArray(t)&&t.length>0?t[0].value:o?[]:"",[i,c]=h.useState(!1),[s,d]=h.useState(!1),[g,f]=h.useState(a),[m,p]=h.useState(0),[u,y]=h.useState(!0);return{id:n,value:g,setValue:f,hide:u,setHide:y,isHovered:i,setIsHovered:c,isFocused:s,setIsFocused:d,highlightedIndex:m,setHighlightedIndex:p}},Ma=({id:e,name:o,label:t,value:n,views:a={},options:i=[],onChange:c=()=>{},setValue:s=()=>{}})=>{const d=h.useCallback(g=>{s(g.value),c&&c(g.value)},[s,c]);return r.jsxs(Ye,{id:e,width:"100%",views:a,children:[t&&r.jsxs(l.Horizontal,{fontSize:"10px",letterSpacing:"wider",color:"color-black-500",fontWeight:"bold",marginBottom:12,alignItems:"center",gap:6,style:{textTransform:"uppercase"},children:[r.jsx(Ze,{widthHeight:14})," ",r.jsx(l.Text,{children:t})]}),r.jsx(l.Horizontal,{gap:0,children:i.map((g,f,m)=>{const p=n===g.value,u=g.color??"theme-primary",y=p?u:"color-gray-200",k=p?u:"color-gray-500",x=f===0,C=f===m.length-1,w=C||p;return r.jsx(l.View,{as:"button",type:"button",onClick:()=>d(g),flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",paddingVertical:6,paddingHorizontal:12,fontSize:"12px",fontWeight:p?"bold":"normal",cursor:"pointer",backgroundColor:"transparent",color:k,borderStyle:"solid",borderColor:y,borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:w?1:0,borderRadius:x?"6px 0 0 6px":C?"0 6px 6px 0":"0",zIndex:p?1:0,transition:"color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease",...a.item,children:g.label},g.value)})}),r.jsx("input",{type:"hidden",id:e,name:o,value:Array.isArray(n)?n.join(","):n,onChange:()=>{}})]})},R0=e=>{const o={...e,options:e.options||[]},t=za(o);return r.jsx(Ma,{...t,...o,onClick:n=>{n.stopPropagation(),e.onClick&&e.onClick(n)}})},Wa=({label:e,placeholder:o,value:t})=>{const[n,a]=h.useState(e??o),[i,c]=h.useState(!1),[s,d]=h.useState(t||""),[g,f]=h.useState(!1);return h.useMemo(()=>{a(g&&!s?o??"":e??o)},[s,g,e,o]),{hint:n,setHint:a,isHovered:i,setIsHovered:c,value:s,setValue:d,isFocused:g,setIsFocused:f}},eg=e=>{if(!e)return{};const{container:o,content:t,...n}=e;return n},og=(e,o)=>{if(o!=="pill")return e;if(typeof e=="number")return Math.min(e,28);if(typeof e=="string"){const t=Number.parseFloat(e);if(Number.isFinite(t)&&e.trim().endsWith("px"))return`${Math.min(t,28)}px`}return"28px"},Ha=({id:e,name:o,hint:t,error:n,value:a,label:i,shadow:c,helperText:s,placeholder:d,size:g="sm",shape:f="default",variant:m="default",isHovered:p=!1,isFocused:u=!1,isEditable:y=!1,isReadOnly:k=!1,isDisabled:x=!1,isAutoFocus:C=!1,isMultiline:w=!1,maxRows:v=3,maxCols:S=30,onBlur:b=()=>{},onChange:T,onFocus:F,setHint:W=()=>{},setValue:P=()=>{},setIsFocused:$=()=>{},setIsHovered:z=()=>{},onChangeText:E,inputRef:V,views:M={label:{},helperText:{}},...A})=>{const H=!!i,j={xs:{minHeight:"72px",shellPaddingY:6,shellPaddingX:10,fontSize:12,lineHeight:"16px"},sm:{minHeight:"88px",shellPaddingY:8,shellPaddingX:10,fontSize:12,lineHeight:"16px"},md:{minHeight:"104px",shellPaddingY:10,shellPaddingX:12,fontSize:14,lineHeight:"20px"},lg:{minHeight:"120px",shellPaddingY:12,shellPaddingX:14,fontSize:16,lineHeight:"24px"},xl:{minHeight:"136px",shellPaddingY:14,shellPaddingX:16,fontSize:18,lineHeight:"28px"}},L=(M==null?void 0:M.field)||{},O=(M==null?void 0:M.container)||{},q=og(O.borderRadius,f),_={...M,container:{...O,...q!==void 0?{borderRadius:q}:{},overflow:"hidden"}},B=eg(M),U={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",minHeight:j[g].minHeight,maxHeight:"calc(100vh - 100px)",border:"none",on:{focus:{outline:"none"}},fontSize:j[g].fontSize,letterSpacing:"-0.01em",fontWeight:400,color:x?"color-gray-400":"color-gray-900",cursor:x?"not-allowed":"text",opacity:x?.7:1,transition:"color 0.2s ease, opacity 0.2s ease",...L,style:{backgroundColor:"transparent",...L.style}},X=()=>{$(!0),F&&F()},N=K=>{b(K),$(!1)},D=K=>{const J=typeof K=="string"?K:K.target.value;P(J),E&&E(J),T&&T(J)};return r.jsx(Ye,{helperText:s,error:n,views:B,children:r.jsx(eo,{label:i,size:g,error:n,shape:f,views:_,shadow:c,variant:m,value:a,color:"theme-primary",isHovered:p,isDisabled:x,isReadOnly:k,isFocused:u,showLabel:H,alignItems:"flex-start",minHeight:j[g].minHeight,paddingTop:j[g].shellPaddingY,paddingBottom:j[g].shellPaddingY,paddingLeft:j[g].shellPaddingX,paddingRight:j[g].shellPaddingX,onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),..._==null?void 0:_.content,children:r.jsxs(Fo,{...M==null?void 0:M.warper,children:[H&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:n,...M==null?void 0:M.label,children:i}),r.jsx(l.Element,{ref:V,as:"textarea",id:e,name:o,rows:v,cols:S,value:a,readOnly:k,disabled:x,autoFocus:C,placeholder:d||t,onBlur:N,onFocus:X,onChange:K=>D(K),...U,...A,style:{resize:x||k?"none":"vertical",...U.style,...A.style||{}},...M==null?void 0:M.textarea})]})})})},At=e=>{const o=pe("textarea",e),t=Wa(o);return r.jsx(Ha,{...t,...o})},Vt=({label:e,placeholder:o,value:t})=>{const[n,a]=h.useState(e??o),[i,c]=h.useState(!1),[s,d]=h.useState(!1),[g,f]=h.useState(t);return h.useMemo(()=>{a(i&&!g?o??"":e??o)},[g,i,e,o]),{hint:n,setHint:a,isFocused:i,setIsFocused:c,isHovered:s,setIsHovered:d,setValue:f,value:g}},Zo=({id:e,name:o,label:t,hint:n,value:a,onChange:i,left:c,right:s,helperText:d,placeholder:g,onChangeText:f,shadow:m={},views:p={container:{},field:{},label:{},helperText:{},text:{}},size:u="md",shape:y="default",variant:k="default",error:x=!1,isFocused:C=!1,isHovered:w=!1,isDisabled:v=!1,isReadOnly:S=!1,isClearable:b=!0,isAutoFocus:T=!1,setHint:F=()=>{},setIsFocused:W=()=>{},setIsHovered:P=()=>{},setValue:$=()=>{},onClick:z=()=>{},onFocus:E,onBlur:V=()=>{},themeMode:M,inputRef:A,...H})=>{const{getColor:j,themeMode:L}=l.useTheme(),O=j(v?"color-gray-400":"color-gray-500",{themeMode:M||L}),q=!!t,_={xs:{minHeight:24,shellPaddingY:6,shellPaddingX:10,fontSize:12,lineHeight:"16px"},sm:{minHeight:32,shellPaddingY:8,shellPaddingX:10,fontSize:12,lineHeight:"16px"},md:{minHeight:40,shellPaddingY:10,shellPaddingX:12,fontSize:14,lineHeight:"20px"},lg:{minHeight:48,shellPaddingY:12,shellPaddingX:14,fontSize:16,lineHeight:"24px"},xl:{minHeight:56,shellPaddingY:14,shellPaddingX:16,fontSize:18,lineHeight:"28px"}},B=(p==null?void 0:p.field)||{},U="0 0 0 1000px var(--theme-canvas) inset",X={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",minHeight:"auto",border:"none",backgroundColor:"transparent",fontSize:_[u].fontSize,letterSpacing:"-0.01em",fontWeight:400,color:v?"color-gray-400":"color-gray-900",cursor:v?"not-allowed":"text",opacity:v?.7:1,transition:"color 0.2s ease, opacity 0.2s ease",_focus:{outline:"none",_placeholder:{opacity:.7}},_placeholder:{color:"color-gray-400",opacity:1,transition:"opacity 0.2s ease-out"},_selection:{backgroundColor:"color-mix(in srgb, var(--theme-primary) 20%, transparent)"},_webkitAutofill:{boxShadow:U,WebkitBoxShadow:U,WebkitTextFillColor:"var(--theme-text)",transition:"background-color 5000s ease-in-out 0s"},_webkitContactsAutoFillButton:{visibility:"hidden",pointerEvents:"none",position:"absolute",right:0},...B},N=()=>{W(!0),E&&E()},D=()=>P(!0),K=()=>P(!1),J=te=>{V&&V(te),W(!1)},Z=te=>{typeof te=="string"?($(te),f&&f(te),i&&i(te)):($(te.target.value),f&&f(te.target.value),i&&i(te.target.value))},Q=()=>{$(""),f&&f(""),i&&i(""),V({target:{name:o}})},{container:oe,content:re,...ae}=p||{};return r.jsx(Ye,{helperText:d,error:x,views:ae,children:r.jsxs(eo,{label:t,size:u,error:x,shape:y,views:p,shadow:m,variant:k,value:a,color:"theme-primary",isHovered:w,isDisabled:v,isReadOnly:S,isFocused:C,showLabel:q,onMouseEnter:D,onMouseLeave:K,children:[c,r.jsxs(Fo,{children:[q&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:x,...p==null?void 0:p.label,children:t}),r.jsx(l.Input,{ref:A,type:"text",id:e,name:o,readOnly:S,disabled:v,autoFocus:T,placeholder:g||n,onFocus:N,onBlur:J,autoComplete:"off",...X,...H,onChange:Z,value:a})]}),b&&a&&!S&&!v&&r.jsx(jt,{children:r.jsx(Me,{size:20,color:O,onClick:Q,cursor:"pointer",borderRadius:"50%",transition:"background-color 0.2s ease, transform 0.2s ease",_hover:{backgroundColor:"color-gray-100",transform:"scale(1.05)"},_active:{transform:"scale(0.95)"}})}),s]})})},We=e=>{const o=pe("input",e),t=Vt(o);return r.jsx(Zo,{...t,...o})},ja=({defaultIsSelected:e=!1})=>{const[o,t]=h.useState(!1),[n,a]=h.useState(e);return{isHovered:o,setIsHovered:t,isSelected:n,setIsSelected:a}},rg={xs:{height:"12px",width:"12px"},sm:{height:"16px",width:"16px"},md:{height:"20px",width:"20px"},lg:{height:"24px",width:"24px"},xl:{height:"28px",width:"28px"}},Pa={xs:10,sm:14,md:16,lg:20,xl:24},tg={selected:{backgroundColor:"theme-primary",borderColor:"theme-primary",borderWidth:"2px",borderStyle:"solid",color:"color-white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},unselected:{backgroundColor:"transparent",borderWidth:"2px",borderStyle:"solid",borderColor:"color-gray-300",color:"inherit",transition:"all 0.2s ease-in-out"},indeterminate:{backgroundColor:"theme-primary",borderColor:"theme-primary",borderWidth:"2px",borderStyle:"solid",color:"color-white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}},Et={hover:{selected:{opacity:.9},unselected:{borderColor:"color-gray-400",backgroundColor:"color-gray-50"},indeterminate:{opacity:.9}},disabled:{selected:{backgroundColor:"color-gray-300",borderColor:"color-gray-300",opacity:.5,cursor:"not-allowed"},unselected:{borderColor:"color-gray-300",opacity:.5,cursor:"not-allowed"},indeterminate:{backgroundColor:"color-gray-300",borderColor:"color-gray-300",opacity:.5,cursor:"not-allowed"}},error:{selected:{backgroundColor:"color-red-500",borderColor:"color-red-500"},unselected:{borderColor:"color-red-500"},indeterminate:{backgroundColor:"color-red-500",borderColor:"color-red-500"}}},Aa=({id:e,icon:o,name:t,label:n,isChecked:a,onChange:i,onValueChange:c,shadow:s={},labelPosition:d="right",size:g="md",error:f=!1,isSelected:m=!1,isHovered:p=!1,isDisabled:u=!1,isReadOnly:y=!1,isIndeterminate:k=!1,defaultIsSelected:x=!1,setIsSelected:C=()=>{},setIsHovered:w=()=>{},setIsChecked:v,views:S={checkbox:{},label:{}},infoText:b,helperText:T,...F})=>{const W=()=>w(!p),P=()=>{!y&&!u&&(C&&C(!m),i&&i(!a),c&&c(!a))},$=k?"indeterminate":a||m?"selected":"unselected",z=f?Et.error[$]:u?Et.disabled[$]:p?Et.hover[$]:{},E={container:{gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",color:f?"color-red-600":u?"color-gray-400":"inherit",cursor:u?"not-allowed":y?"default":"pointer",opacity:u?.6:1,transition:"all 0.2s ease-in-out",...S.label},checkbox:{...tg[$],...z,borderRadius:6,...rg[g],transition:"all 0.2s ease-in-out",...s,...S.checkbox}};return r.jsxs(Jo,{htmlFor:e,as:"div",onClick:P,onMouseEnter:W,onMouseLeave:W,size:l.Typography.fontSizes[g],...E.container,...F,children:[r.jsxs(l.Vertical,{gap:8,children:[" ",r.jsxs(l.Horizontal,{gap:12,alignItems:"center",children:[" ",d==="left"&&n&&r.jsx(l.Text,{size:g,fontWeight:"500",...S==null?void 0:S.label,children:n}),r.jsx(l.Center,{...E.checkbox,children:k?r.jsx(En,{widthHeight:Pa[g],color:"color-white",transition:"opacity 0.2s ease"}):(a||m)&&(o??r.jsx(Yo,{widthHeight:Pa[g],color:"color-white",transition:"opacity 0.2s ease"}))}),d==="right"&&n&&r.jsx(l.Text,{size:g,fontWeight:"500",...S==null?void 0:S.label,children:n})]}),b&&r.jsx(l.Text,{marginLeft:d==="left"?0:36,color:"color-gray-500",size:"sm",fontWeight:"400",lineHeight:"20px",...S==null?void 0:S.infoText,children:b})]}),f&&r.jsx(l.Text,{size:"xs",marginTop:4,marginHorizontal:0,color:"color-red-500",fontWeight:"500",transition:"all 0.2s ease-in-out",children:f})]})},Dt=e=>{const o=pe("checkbox",e),t=ja(o);return r.jsx(Aa,{...t,...o})},Va=e=>{const{value:o,defaultValue:t="",onChange:n,onChangeComplete:a,onOpen:i,onClose:c,closeOnSelect:s=!0,maxRecentColors:d=8,showRecentColors:g=!0,isAutoFocus:f=!1}=e,[m,p]=h.useState(!1),[u,y]=h.useState(o??t),[k,x]=h.useState(""),[C,w]=h.useState([]),[v,S]=h.useState(!1),[b,T]=h.useState(!1),F=h.useRef(null),W=h.useRef(null);h.useEffect(()=>{o!==void 0&&y(o)},[o]),h.useEffect(()=>{if(g&&typeof localStorage<"u")try{const H=localStorage.getItem("colorInput-recentColors");H&&w(JSON.parse(H))}catch(H){console.warn("Failed to load recent colors from localStorage:",H)}},[g]),h.useEffect(()=>{const H=F.current;f&&H&&typeof H.focus=="function"&&H.focus()},[f]),h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const H=j=>{m&&F.current&&W.current&&!F.current.contains(j.target)&&!W.current.contains(j.target)&&M()};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[m]);const P=h.useCallback(H=>{g&&w(j=>{const L=j.filter(q=>q!==H),O=[H,...L].slice(0,d);try{typeof localStorage<"u"&&localStorage.setItem("colorInput-recentColors",JSON.stringify(O))}catch(q){console.warn("Failed to save recent colors to localStorage:",q)}return O})},[g,d]),$=h.useCallback(()=>{const H=!m;p(H),H?i==null||i():c==null||c()},[m,i,c]),z=h.useCallback(H=>{y(H),P(H),n==null||n(H),a==null||a(H),s&&(p(!1),c==null||c())},[n,a,s,c,P]),E=h.useCallback(H=>{x(H)},[]),V=h.useCallback(()=>{k&&(z(k),x(""))},[k,z]),M=h.useCallback(()=>{p(!1),c==null||c()},[c]),A=h.useCallback(H=>{y(H),n==null||n(H)},[n]);return{isOpen:m,selectedColor:u,recentColors:C,customColor:k,isFocused:v,isHovered:b,handleToggle:$,handleColorSelect:z,handleCustomColorChange:E,handleCustomColorSubmit:V,handleClose:M,setIsFocused:S,setIsHovered:T,setValue:A,triggerRef:F,dropdownRef:W}},Ro={container:{position:"relative",display:"inline-block",width:"fit-content"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300",padding:"8px 12px",borderRadius:8},dropdown:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"280px"},colorGrid:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px"},recentColors:{display:"flex",gap:"4px",flexWrap:"wrap"}},ng={xs:{height:"28px",fontSize:"10px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 16px"},xl:{height:"56px",fontSize:"20px",padding:"16px 20px"}},ag={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},lg={default:{backgroundColor:"color-white",borderColor:"color-gray-300",borderWidth:"1px",borderStyle:"solid"},outline:{backgroundColor:"transparent",borderColor:"color-gray-300",borderWidth:"1px",borderStyle:"solid"},none:{backgroundColor:"transparent",borderColor:"transparent",borderWidth:"0px"}},ig=[{name:"Red 500",value:"color-red-500"},{name:"Orange 500",value:"color-orange-500"},{name:"Yellow 500",value:"color-yellow-500"},{name:"Green 500",value:"color-green-500"},{name:"Blue 500",value:"color-blue-500"},{name:"Indigo 500",value:"color-indigo-500"},{name:"Purple 500",value:"color-purple-500"},{name:"Pink 500",value:"color-pink-500"},{name:"Red 300",value:"color-red-300"},{name:"Orange 300",value:"color-orange-300"},{name:"Yellow 300",value:"color-yellow-300"},{name:"Green 300",value:"color-green-300"},{name:"Blue 300",value:"color-blue-300"},{name:"Indigo 300",value:"color-indigo-300"},{name:"Purple 300",value:"color-purple-300"},{name:"Pink 300",value:"color-pink-300"},{name:"Red 700",value:"color-red-700"},{name:"Orange 700",value:"color-orange-700"},{name:"Yellow 700",value:"color-yellow-700"},{name:"Green 700",value:"color-green-700"},{name:"Blue 700",value:"color-blue-700"},{name:"Indigo 700",value:"color-indigo-700"},{name:"Purple 700",value:"color-purple-700"},{name:"Pink 700",value:"color-pink-700"},{name:"Gray 100",value:"color-gray-100"},{name:"Gray 300",value:"color-gray-300"},{name:"Gray 500",value:"color-gray-500"},{name:"Gray 700",value:"color-gray-700"},{name:"Gray 900",value:"color-gray-900"},{name:"White",value:"color-white"},{name:"Black",value:"color-black"},{name:"Transparent",value:"transparent"}],Ea=({id:e,name:o,label:t,placeholder:n="Select a color",helperText:a,views:i={},size:c="md",shape:s="default",variant:d="default",shadow:g,error:f=!1,isDisabled:m=!1,isReadOnly:p=!1,isFocused:u=!1,isHovered:y=!1,predefinedColors:k=ig,showCustomInput:x=!0,showRecentColors:C=!0,isOpen:w=!1,selectedColor:v="",recentColors:S=[],customColor:b="",handleToggle:T=()=>{},handleColorSelect:F=()=>{},handleCustomColorChange:W=()=>{},handleCustomColorSubmit:P=()=>{},handleClose:$,setIsFocused:z=()=>{},setIsHovered:E=()=>{},setValue:V,triggerRef:M,dropdownRef:A,onChange:H,onChangeComplete:j,onBlur:L,onFocus:O,onOpen:q,onClose:_,colorFormat:B,maxRecentColors:U,closeOnSelect:X,value:N,defaultValue:D,...K})=>{const{getColor:J}=l.useTheme(),Z={...Ro.container,...i==null?void 0:i.container},Q={...Ro.trigger,...ng[c],...ag[s],...lg[d],...f&&{borderColor:"color-red-500"},...m&&{opacity:.6,cursor:"not-allowed"},...u&&{borderColor:"theme-primary",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(29, 78, 216, 0.16)"},...y&&!m&&{borderColor:"color-gray-400"},...i==null?void 0:i.trigger,...g&&g},oe={...Ro.dropdown,...i==null?void 0:i.dropdown},re={...Ro.colorGrid,...i==null?void 0:i.colorGrid},ae={...Ro.recentColors,...i==null?void 0:i.recentColors},te=v||"color-gray-200";return r.jsxs(l.View,{...Z,...K,children:[t&&r.jsx(Jo,{htmlFor:e,size:c,isDisabled:m,error:f,views:i==null?void 0:i.label,children:t}),r.jsxs(l.View,{ref:M,onClick:m||p?void 0:T,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onFocus:()=>{z(!0),O&&O()},onBlur:se=>{z(!1),L&&L(se)},tabIndex:m?-1:0,role:"button","aria-expanded":w,"aria-haspopup":"listbox","aria-label":t||n,width:"fit-content",gap:8,...Q,children:[r.jsx(l.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:te,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300"}),!p&&!m&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:w?"up":"down"})]}),w&&r.jsxs(l.View,{ref:A,...oe,children:[r.jsx(l.View,{...re,children:k.map((se,xe)=>r.jsx(l.View,{width:"24px",height:"24px",borderRadius:"8px",backgroundColor:se.value,borderWidth:"2px",borderStyle:"solid",borderColor:v===se.value?"theme-primary":"transparent",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>F(se.value),title:se.name,_hover:{transform:"scale(1.05)",borderColor:"color-gray-400"},...i==null?void 0:i.colorSwatch},xe))}),C&&S.length>0&&r.jsxs(l.Vertical,{gap:8,marginTop:"16px",children:[r.jsx(l.Text,{fontSize:"12px",fontWeight:"500",color:"color-gray-600",children:"Recent Colors"}),r.jsx(l.Horizontal,{gap:4,flexWrap:"wrap",...ae,children:S.map((se,xe)=>r.jsx(l.View,{width:"20px",height:"20px",borderRadius:"8px",backgroundColor:se,borderWidth:"1px",borderStyle:"solid",borderColor:v===se?"theme-primary":"color-gray-300",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>F(se),title:se,_hover:{transform:"scale(1.05)",borderColor:"color-gray-400"}},xe))})]}),x&&r.jsxs(l.Vertical,{gap:8,marginTop:"16px",children:[r.jsx(l.Text,{fontSize:"12px",fontWeight:"500",color:"color-gray-600",children:"Custom Color"}),r.jsxs(l.Horizontal,{gap:8,children:[r.jsx(We,{value:b,onChange:W,placeholder:"#000000 or rgb(0,0,0)",size:"sm",style:{flex:1},views:i==null?void 0:i.customInput}),r.jsx(l.View,{padding:"8px 12px",backgroundColor:"theme-primary",borderRadius:"8px",cursor:"pointer",onClick:P,transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{backgroundColor:"color-blue-700"},children:r.jsx(l.Text,{color:"color-white",fontSize:"12px",fontWeight:"500",children:"Add"})})]})]})]}),a&&r.jsx(l.Text,{fontSize:"12px",color:f?"color-red-500":"color-gray-600",marginTop:"4px",...i==null?void 0:i.helperText,children:a}),f&&typeof f=="string"&&r.jsx(l.Text,{fontSize:"12px",color:"color-red-500",marginTop:"4px",...i==null?void 0:i.error,children:f})]})},cg=e=>{const o=Va(e);return r.jsx(Ea,{...o,...e})},$t=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],Da=({placeholder:e})=>{const[o,t]=h.useState($t),[n,a]=h.useState(e??$t[0].name),[i,c]=h.useState(!0),[s,d]=h.useState(!1),[g,f]=h.useState(!1);return{hide:i,setHide:c,newOptions:o,setNewOptions:t,isHovered:g,setIsHovered:f,isFocused:s,setIsFocused:d,value:n,setValue:a}},$a={xs:8,sm:10,md:12,lg:14,xl:16},sg=({size:e,...o})=>r.jsx(l.Element,{as:"ul",...o}),dg=e=>r.jsx(l.Input,{type:"country",...e}),gg=({size:e,...o})=>r.jsx(l.Element,{as:"li",...o}),hg=({option:e,size:o="md",callback:t=()=>{},views:n={text:{}}})=>{const a=i=>{i&&i.stopPropagation&&i.stopPropagation(),t(e??"")};return r.jsx(gg,{margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onClick:a,fontSize:l.Typography.fontSizes[o],_hover:{backgroundColor:"color-gray-100",transition:"all 0.15s ease-in-out"},...n.text,children:e})},fg=({size:e,views:o={dropDown:{}},options:t=[],callback:n=()=>{}})=>{const a=i=>n(i);return r.jsx(sg,{role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:12,position:"absolute",flexDirection:"column",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",...o.dropDown,children:t.map(i=>r.jsx(hg,{size:e,option:i.name,callback:a,...o.text},i.code))})},La=({id:e,name:o,label:t,value:n,placeholder:a,helperText:i,hide:c=!1,error:s=!1,isHovered:d=!1,isFocused:g=!1,isAutoFocus:f=!1,isDisabled:m=!1,isReadOnly:p=!1,shadow:u={},newOptions:y=[],size:k="md",variant:x="default",shape:C="default",onChange:w,onBlur:v=()=>{},setHide:S=()=>{},setNewOptions:b=()=>{},setIsHovered:T=()=>{},setIsFocused:F=()=>{},setValue:W=()=>{},selected:P,setSelected:$,views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:E,...V})=>{const{getColor:M,themeMode:A}=l.useTheme(),H=M("color-gray-500",{themeMode:E||A}),j=()=>F(!0),L=X=>{S(!c),W(X),w&&w(X)},O=()=>{!m&&!p&&S(!c)},q=X=>{const N=X.target.value,D=$t.filter(K=>K.name.toLowerCase().startsWith(N.toLowerCase()));c&&S(!1),b(D),w&&w(N)},_=X=>{v(X),F(!1)},B=!!(t&&(g||n)),U={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},transition:"all 0.2s ease-in-out",fontSize:l.Typography.fontSizes[k],backgroundColor:"transparent",color:m?"color-gray-400":"color-gray-900",cursor:m?"not-allowed":p?"auto":"pointer",...z.field};return r.jsxs(Ye,{helperText:i,error:s,views:z,onClick:O,children:[r.jsxs(eo,{label:t,size:k,error:s,shape:C,views:z,shadow:u,variant:x,value:n,color:"theme-primary",isDisabled:m,isReadOnly:p,isFocused:g,showLabel:B,_hover:!m&&!s?{borderColor:"theme-primary"}:void 0,children:[r.jsxs(Fo,{children:[B&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:s,views:z,children:t}),r.jsx(dg,{id:e,name:o,placeholder:a,readOnly:p,disabled:m,autoFocus:f,onBlur:_,onFocus:j,...U,...V,value:n,onChange:q})]}),r.jsx(jt,{children:c?r.jsx(ge,{orientation:"down",widthHeight:$a[k],color:H,style:z.icon}):r.jsx(ge,{orientation:"up",widthHeight:$a[k],color:H,style:z.icon})})]}),!c&&r.jsx(fg,{size:k,views:z,options:y,callback:L})]})},mg=e=>{const o=Da(e);return r.jsx(La,{...o,...e})};function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ar(e)}function Ie(e,o){if(o.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+o.length+" present")}function pg(e){return Ie(1,arguments),e instanceof Date||Ar(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ue(e){Ie(1,arguments);var o=Object.prototype.toString.call(e);return e instanceof Date||Ar(e)==="object"&&o==="[object Date]"?new Date(e.getTime()):typeof e=="number"||o==="[object Number]"?new Date(e):((typeof e=="string"||o==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ug(e){if(Ie(1,arguments),!pg(e)&&typeof e!="number")return!1;var o=Ue(e);return!isNaN(Number(o))}function go(e){if(e===null||e===!0||e===!1)return NaN;var o=Number(e);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function yg(e,o){Ie(2,arguments);var t=Ue(e).getTime(),n=go(o);return new Date(t+n)}function bg(e,o){Ie(2,arguments);var t=go(o);return yg(e,-t)}var xg=864e5;function kg(e){Ie(1,arguments);var o=Ue(e),t=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var n=o.getTime(),a=t-n;return Math.floor(a/xg)+1}function Vr(e){Ie(1,arguments);var o=1,t=Ue(e),n=t.getUTCDay(),a=(n<o?7:0)+n-o;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function _a(e){Ie(1,arguments);var o=Ue(e),t=o.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0);var a=Vr(n),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var c=Vr(i);return o.getTime()>=a.getTime()?t+1:o.getTime()>=c.getTime()?t:t-1}function Cg(e){Ie(1,arguments);var o=_a(e),t=new Date(0);t.setUTCFullYear(o,0,4),t.setUTCHours(0,0,0,0);var n=Vr(t);return n}var wg=6048e5;function Sg(e){Ie(1,arguments);var o=Ue(e),t=Vr(o).getTime()-Cg(o).getTime();return Math.round(t/wg)+1}var vg={};function Er(){return vg}function Dr(e,o){var t,n,a,i,c,s,d,g;Ie(1,arguments);var f=Er(),m=go((t=(n=(a=(i=o==null?void 0:o.weekStartsOn)!==null&&i!==void 0?i:o==null||(c=o.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(d=f.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&t!==void 0?t:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ue(e),u=p.getUTCDay(),y=(u<m?7:0)+u-m;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function Ba(e,o){var t,n,a,i,c,s,d,g;Ie(1,arguments);var f=Ue(e),m=f.getUTCFullYear(),p=Er(),u=go((t=(n=(a=(i=o==null?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:o==null||(c=o.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:p.firstWeekContainsDate)!==null&&n!==void 0?n:(d=p.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,u),y.setUTCHours(0,0,0,0);var k=Dr(y,o),x=new Date(0);x.setUTCFullYear(m,0,u),x.setUTCHours(0,0,0,0);var C=Dr(x,o);return f.getTime()>=k.getTime()?m+1:f.getTime()>=C.getTime()?m:m-1}function Tg(e,o){var t,n,a,i,c,s,d,g;Ie(1,arguments);var f=Er(),m=go((t=(n=(a=(i=o==null?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:o==null||(c=o.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(d=f.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=Ba(e,o),u=new Date(0);u.setUTCFullYear(p,0,m),u.setUTCHours(0,0,0,0);var y=Dr(u,o);return y}var Ig=6048e5;function Fg(e,o){Ie(1,arguments);var t=Ue(e),n=Dr(t,o).getTime()-Tg(t,o).getTime();return Math.round(n/Ig)+1}function ie(e,o){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length<o;)n="0"+n;return t+n}var oo={y:function(o,t){var n=o.getUTCFullYear(),a=n>0?n:1-n;return ie(t==="yy"?a%100:a,t.length)},M:function(o,t){var n=o.getUTCMonth();return t==="M"?String(n+1):ie(n+1,2)},d:function(o,t){return ie(o.getUTCDate(),t.length)},a:function(o,t){var n=o.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(o,t){return ie(o.getUTCHours()%12||12,t.length)},H:function(o,t){return ie(o.getUTCHours(),t.length)},m:function(o,t){return ie(o.getUTCMinutes(),t.length)},s:function(o,t){return ie(o.getUTCSeconds(),t.length)},S:function(o,t){var n=t.length,a=o.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return ie(i,t.length)}},zo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zg={G:function(o,t,n){var a=o.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(o,t,n){if(t==="yo"){var a=o.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return oo.y(o,t)},Y:function(o,t,n,a){var i=Ba(o,a),c=i>0?i:1-i;if(t==="YY"){var s=c%100;return ie(s,2)}return t==="Yo"?n.ordinalNumber(c,{unit:"year"}):ie(c,t.length)},R:function(o,t){var n=_a(o);return ie(n,t.length)},u:function(o,t){var n=o.getUTCFullYear();return ie(n,t.length)},Q:function(o,t,n){var a=Math.ceil((o.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return ie(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(o,t,n){var a=Math.ceil((o.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return ie(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(o,t,n){var a=o.getUTCMonth();switch(t){case"M":case"MM":return oo.M(o,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(o,t,n){var a=o.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return ie(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(o,t,n,a){var i=Fg(o,a);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ie(i,t.length)},I:function(o,t,n){var a=Sg(o);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):ie(a,t.length)},d:function(o,t,n){return t==="do"?n.ordinalNumber(o.getUTCDate(),{unit:"date"}):oo.d(o,t)},D:function(o,t,n){var a=kg(o);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):ie(a,t.length)},E:function(o,t,n){var a=o.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(o,t,n,a){var i=o.getUTCDay(),c=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(c);case"ee":return ie(c,2);case"eo":return n.ordinalNumber(c,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(o,t,n,a){var i=o.getUTCDay(),c=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(c);case"cc":return ie(c,t.length);case"co":return n.ordinalNumber(c,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(o,t,n){var a=o.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return ie(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(o,t,n){var a=o.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(o,t,n){var a=o.getUTCHours(),i;switch(a===12?i=zo.noon:a===0?i=zo.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(o,t,n){var a=o.getUTCHours(),i;switch(a>=17?i=zo.evening:a>=12?i=zo.afternoon:a>=4?i=zo.morning:i=zo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(o,t,n){if(t==="ho"){var a=o.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return oo.h(o,t)},H:function(o,t,n){return t==="Ho"?n.ordinalNumber(o.getUTCHours(),{unit:"hour"}):oo.H(o,t)},K:function(o,t,n){var a=o.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):ie(a,t.length)},k:function(o,t,n){var a=o.getUTCHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):ie(a,t.length)},m:function(o,t,n){return t==="mo"?n.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):oo.m(o,t)},s:function(o,t,n){return t==="so"?n.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):oo.s(o,t)},S:function(o,t){return oo.S(o,t)},X:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();if(c===0)return"Z";switch(t){case"X":return Na(c);case"XXXX":case"XX":return ho(c);case"XXXXX":case"XXX":default:return ho(c,":")}},x:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();switch(t){case"x":return Na(c);case"xxxx":case"xx":return ho(c);case"xxxxx":case"xxx":default:return ho(c,":")}},O:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oa(c,":");case"OOOO":default:return"GMT"+ho(c,":")}},z:function(o,t,n,a){var i=a._originalDate||o,c=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oa(c,":");case"zzzz":default:return"GMT"+ho(c,":")}},t:function(o,t,n,a){var i=a._originalDate||o,c=Math.floor(i.getTime()/1e3);return ie(c,t.length)},T:function(o,t,n,a){var i=a._originalDate||o,c=i.getTime();return ie(c,t.length)}};function Oa(e,o){var t=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return t+String(a);var c=o;return t+String(a)+c+ie(i,2)}function Na(e,o){if(e%60===0){var t=e>0?"-":"+";return t+ie(Math.abs(e)/60,2)}return ho(e,o)}function ho(e,o){var t=o||"",n=e>0?"-":"+",a=Math.abs(e),i=ie(Math.floor(a/60),2),c=ie(a%60,2);return n+i+t+c}var qa=function(o,t){switch(o){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ua=function(o,t){switch(o){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mg=function(o,t){var n=o.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return qa(o,t);var c;switch(a){case"P":c=t.dateTime({width:"short"});break;case"PP":c=t.dateTime({width:"medium"});break;case"PPP":c=t.dateTime({width:"long"});break;case"PPPP":default:c=t.dateTime({width:"full"});break}return c.replace("{{date}}",qa(a,t)).replace("{{time}}",Ua(i,t))},Wg={p:Ua,P:Mg};function Hg(e){var o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),e.getTime()-o.getTime()}var jg=["D","DD"],Pg=["YY","YYYY"];function Ag(e){return jg.indexOf(e)!==-1}function Vg(e){return Pg.indexOf(e)!==-1}function Ga(e,o,t){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Eg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dg=function(o,t,n){var a,i=Eg[o];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Lt(e){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=o.width?String(o.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var $g={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_g={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bg={date:Lt({formats:$g,defaultWidth:"full"}),time:Lt({formats:Lg,defaultWidth:"full"}),dateTime:Lt({formats:_g,defaultWidth:"full"})},Og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ng=function(o,t,n,a){return Og[o]};function er(e){return function(o,t){var n=t!=null&&t.context?String(t.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,c=t!=null&&t.width?String(t.width):i;a=e.formattingValues[c]||e.formattingValues[i]}else{var s=e.defaultWidth,d=t!=null&&t.width?String(t.width):e.defaultWidth;a=e.values[d]||e.values[s]}var g=e.argumentCallback?e.argumentCallback(o):o;return a[g]}}var qg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ug={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Kg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Jg=function(o,t){var n=Number(o),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Qg={ordinalNumber:Jg,era:er({values:qg,defaultWidth:"wide"}),quarter:er({values:Ug,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:er({values:Gg,defaultWidth:"wide"}),day:er({values:Yg,defaultWidth:"wide"}),dayPeriod:er({values:Kg,defaultWidth:"wide",formattingValues:Xg,defaultFormattingWidth:"wide"})};function or(e){return function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=o.match(a);if(!i)return null;var c=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?Rg(s,function(m){return m.test(c)}):Zg(s,function(m){return m.test(c)}),g;g=e.valueCallback?e.valueCallback(d):d,g=t.valueCallback?t.valueCallback(g):g;var f=o.slice(c.length);return{value:g,rest:f}}}function Zg(e,o){for(var t in e)if(e.hasOwnProperty(t)&&o(e[t]))return t}function Rg(e,o){for(var t=0;t<e.length;t++)if(o(e[t]))return t}function eh(e){return function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.match(e.matchPattern);if(!n)return null;var a=n[0],i=o.match(e.parsePattern);if(!i)return null;var c=e.valueCallback?e.valueCallback(i[0]):i[0];c=t.valueCallback?t.valueCallback(c):c;var s=o.slice(a.length);return{value:c,rest:s}}}var oh=/^(\d+)(th|st|nd|rd)?/i,rh=/\d+/i,th={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nh={any:[/^b/i,/^(a|c)/i]},ah={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},lh={any:[/1/i,/2/i,/3/i,/4/i]},ih={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ch={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dh={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gh={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hh={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fh={ordinalNumber:eh({matchPattern:oh,parsePattern:rh,valueCallback:function(o){return parseInt(o,10)}}),era:or({matchPatterns:th,defaultMatchWidth:"wide",parsePatterns:nh,defaultParseWidth:"any"}),quarter:or({matchPatterns:ah,defaultMatchWidth:"wide",parsePatterns:lh,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:or({matchPatterns:ih,defaultMatchWidth:"wide",parsePatterns:ch,defaultParseWidth:"any"}),day:or({matchPatterns:sh,defaultMatchWidth:"wide",parsePatterns:dh,defaultParseWidth:"any"}),dayPeriod:or({matchPatterns:gh,defaultMatchWidth:"any",parsePatterns:hh,defaultParseWidth:"any"})},mh={code:"en-US",formatDistance:Dg,formatLong:Bg,formatRelative:Ng,localize:Qg,match:fh,options:{weekStartsOn:0,firstWeekContainsDate:1}},ph=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yh=/^'([^]*?)'?$/,bh=/''/g,xh=/[a-zA-Z]/;function kh(e,o,t){var n,a,i,c,s,d,g,f,m,p,u,y,k,x;Ie(2,arguments);var C=String(o),w=Er(),v=(n=(a=void 0)!==null&&a!==void 0?a:w.locale)!==null&&n!==void 0?n:mh,S=go((i=(c=(s=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&c!==void 0?c:(g=w.locale)===null||g===void 0||(f=g.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=go((m=(p=(u=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&u!==void 0?u:w.weekStartsOn)!==null&&p!==void 0?p:(k=w.locale)===null||k===void 0||(x=k.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&m!==void 0?m:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var T=Ue(e);if(!ug(T))throw new RangeError("Invalid time value");var F=Hg(T),W=bg(T,F),P={firstWeekContainsDate:S,weekStartsOn:b,locale:v,_originalDate:T},$=C.match(uh).map(function(z){var E=z[0];if(E==="p"||E==="P"){var V=Wg[E];return V(z,v.formatLong)}return z}).join("").match(ph).map(function(z){if(z==="''")return"'";var E=z[0];if(E==="'")return Ch(z);var V=zg[E];if(V)return Vg(z)&&Ga(z,o,String(e)),Ag(z)&&Ga(z,o,String(e)),V(W,z,v.localize,P);if(E.match(xh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return z}).join("");return $}function Ch(e){var o=e.match(yh);return o?o[1].replace(bh,"'"):e}const Ya=()=>{const[e,o]=h.useState(!1),[t,n]=h.useState(!1),[a,i]=h.useState(kh(new Date,"yyyy-MM-dd"));return{date:a,setDate:i,isHovered:e,setIsHovered:o,isFocused:t,setIsFocused:n}},wh=e=>r.jsx(l.Input,{type:"date",...e}),Ka=({id:e,icon:o,name:t,label:n,date:a,children:i,helperText:c,shadow:s={},size:d="md",variant:g="default",shape:f="default",views:m={container:{},label:{},helperText:{},text:{},field:{}},error:p=!1,isHovered:u=!1,isFocused:y=!1,isDisabled:k=!1,isReadOnly:x=!1,setDate:C=()=>{},setIsFocused:w=()=>{},setIsHovered:v=()=>{},onChange:S,onChangeText:b,...T})=>{const{themeMode:F}=l.useTheme(),W=!!(y&&n),P=()=>v(!u),$=()=>w(!0),z=V=>{typeof V=="string"?(C(V),b&&b(V)):(C(V.target.value),S&&S(V.target.value))},E={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},transition:"all 0.2s ease-in-out",fontSize:l.Typography.fontSizes[d],backgroundColor:"transparent",color:k?"color-gray-400":"color-gray-900",cursor:k?"not-allowed":x?"auto":"pointer",...m.field};return r.jsx(Ye,{helperText:c,error:p,views:m,children:r.jsx(eo,{label:n,size:d,error:p,shape:f,views:m,shadow:s,color:"theme-primary",variant:g,value:a,isHovered:u,isDisabled:k,isReadOnly:x,isFocused:y,showLabel:W,onMouseEnter:P,onMouseLeave:P,children:r.jsxs(Fo,{children:[W&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:p,views:m,children:n}),r.jsx(wh,{id:e,name:t,onFocus:$,disabled:k,readOnly:x,...E,...T,...b&&{onChangeText:z},onChange:z})]})})})},Sh=e=>{const o=Ya();return r.jsx(Ka,{...o,...e})},Xa=e=>{const o=Vt(e),[t,n]=h.useState(!1);return{isVisible:t,setIsVisible:n,...e,...o}},Ja={xs:14,sm:16,md:16,lg:18,xl:20},vh=({visibleIcon:e,hiddenIcon:o,...t})=>{const{isVisible:n,setIsVisible:a,...i}=Xa(t),c=Ja[t.size??"md"]??Ja.md,s=c-2;return r.jsx(Zo,{...i,type:n?"text":"password",isClearable:!1,right:r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",width:`${c}px`,height:`${c}px`,minWidth:`${c}px`,color:"color-gray-500",cursor:t.isDisabled?"not-allowed":"pointer",transition:"color 0.2s ease",onClick:()=>{t.isDisabled||a(!n)},children:n?e??r.jsx(pt,{widthHeight:s}):o??r.jsx(mt,{widthHeight:s})})})},Qa=(e,o,t)=>{const[n,a]=h.useState(e),[i,c]=h.useState(o?{value:o,label:o}:e[0]),[s,d]=h.useState([]),[g,f]=h.useState(0),[m,p]=h.useState(t??""),[u,y]=h.useState(!1);return{filteredItems:n,setFilteredItems:a,selectedItem:i,setSelectedItem:c,selectedItems:s,setSelectedItems:d,highlightedIndex:g,setHighlightedIndex:f,searchQuery:m,setSearchQuery:p,isDropdownVisible:u,setIsDropdownVisible:y}},Th={xs:12,sm:14,md:16,lg:20,xl:24},Ih={maxHeight:"280px",overflowY:"auto",zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},Za={enter:{opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.2s ease-in-out"},initial:{opacity:0,transform:"translateY(-8px) scale(0.96)"}},Fh={padding:"8px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-100",backgroundColor:"color-gray-50",borderTopLeftRadius:10,borderTopRightRadius:10},zh={padding:"8px 10px",cursor:"pointer",borderRadius:8,margin:"1px 4px",transition:"all 0.15s ease-in-out"},Mh={padding:"24px 16px",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},Ra={open:{transform:"rotate(180deg)",transition:"all 0.2s ease-in-out"},closed:{transform:"rotate(0deg)",transition:"all 0.2s ease-in-out"}},Wh={display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",backgroundColor:"color-gray-100",borderRadius:8,fontSize:"12px",fontWeight:"500",color:"color-gray-700",transition:"all 0.15s ease-in-out"},el=({placeholder:e,items:o,showTick:t=!0,onSelect:n,searchEnabled:a=!0,left:i,right:c,label:s,filteredItems:d,setSelectedItem:g,selectedItem:f,selectedItems:m,setSelectedItems:p,highlightedIndex:u,setHighlightedIndex:y,searchQuery:k,setSearchQuery:x,setFilteredItems:C,views:w,isDropdownVisible:v,setIsDropdownVisible:S,isMulti:b=!1,searchPlaceholder:T,size:F="md",...W})=>{const{ref:P,relation:$}=l.useElementPosition({trackChanges:!0,trackOnScroll:!0,trackOnResize:!0,throttleMs:10}),z=h.useRef(null),[E,V]=h.useState(!1),[M,A]=h.useState(!1),H=()=>{var N;const _=M?Za.enter:Za.initial;if(!P.current)return{};const B=P.current.getBoundingClientRect(),U={position:"fixed",left:B.left,width:B.width,zIndex:1e4,..._};return((N=$==null?void 0:$.space)==null?void 0:N.vertical)==="top"?{...U,bottom:window.innerHeight-B.top+6}:{...U,top:B.bottom+6}};h.useEffect(()=>{if(v){const _=setTimeout(()=>A(!0),10);return()=>clearTimeout(_)}A(!1)},[v]),h.useEffect(()=>{const _=B=>{!B.composedPath().some(N=>(N==null?void 0:N.id)==="combobox-dropdown")&&P.current&&!P.current.contains(B.target)&&S(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const j=_=>{if(x(_),_==="")C(o);else{const B=o.filter(U=>U.label.toLowerCase().includes(_.toLowerCase()));C(B)}y(0)},L=_=>{if(b){const B=m.some(X=>X.value===_.value);let U;B?U=m.filter(X=>X.value!==_.value):U=[...m,_],p(U),n==null||n(U)}else g(_),n==null||n(_),S(!1)},O=(_,B)=>{_.stopPropagation();const U=m.filter(X=>X.value!==B.value);p(U),n==null||n(U)},q=_=>b?m.some(B=>B.value===_.value):_.value===f.value;return r.jsxs(l.Horizontal,{role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%",...W,children:[s&&r.jsx(l.Text,{views:w==null?void 0:w.label,htmlFor:W.id,children:s}),r.jsxs(l.View,{position:"relative",width:"100%",children:[r.jsx("div",{ref:P,onClick:()=>S(!v),style:{width:"100%"},children:r.jsxs(eo,{size:F,isHovered:E,isFocused:v,onMouseEnter:()=>V(!0),onMouseLeave:()=>V(!1),cursor:"pointer",views:{container:w==null?void 0:w.container},children:[r.jsxs(l.Horizontal,{gap:10,alignItems:"center",flex:1,minWidth:0,flexWrap:b?"wrap":"nowrap",...w==null?void 0:w.labelContainer,children:[i,b?m.length>0?r.jsx(l.Horizontal,{gap:6,flexWrap:"wrap",alignItems:"center",children:m.map(_=>r.jsxs(l.Horizontal,{...Wh,_hover:{backgroundColor:"color-gray-200"},children:[_.icon&&r.jsx(l.View,{flexShrink:0,children:_.icon}),r.jsx(l.Text,{size:"sm",color:"color-gray-700",weight:"medium",children:_.label}),r.jsx(Me,{widthHeight:12,color:"color-gray-500",cursor:"pointer",onClick:B=>O(B,_)})]},_.value))}):r.jsx(l.Text,{weight:"medium",flexGrow:1,color:"color-gray-500",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},...w==null?void 0:w.label,children:e}):r.jsxs(r.Fragment,{children:[f.icon&&f.label!==e&&r.jsx(l.View,{children:f.icon}),r.jsx(l.Text,{weight:"medium",flexGrow:1,color:f.label===e?"color-gray-500":"color-gray-800",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},...w==null?void 0:w.label,children:f.label})]})]}),r.jsxs(l.Horizontal,{gap:8,alignItems:"center",flexShrink:0,children:[c,r.jsx(l.View,{style:v?Ra.open:Ra.closed,children:r.jsx(ge,{widthHeight:Th[F],orientation:"down",color:v?"color-gray-700":"color-gray-400"})})]})]})}),v&&r.jsx(ct,{children:r.jsxs(l.View,{ref:z,id:"combobox-dropdown",role:"listbox","aria-labelledby":W.id,...Ih,style:H(),...w==null?void 0:w.dropdown,children:[a&&r.jsx(l.View,{...Fh,children:r.jsx(Zo,{id:`${W.id}-search`,name:`${W.name}-search`,width:"100%",type:"search",autoFocus:!0,value:k,onChange:_=>j(_),hint:e||"Search...",isClearable:!1,left:r.jsx(kr,{widthHeight:14,color:"color-gray-400"}),views:{container:{width:"100%",padding:"0",backgroundColor:"transparent",borderColor:"color-gray-200",...w==null?void 0:w.text},field:{fontSize:"13px"}}})}),d.length>0&&r.jsx(l.View,{margin:0,padding:"4px",children:d.map((_,B)=>{const U=q(_),X=B===u;return r.jsxs(l.Horizontal,{role:"option","aria-selected":U,justifyContent:"space-between",alignItems:"center",...zh,backgroundColor:U&&X?"color-blue-100":U?"color-blue-50":X?"color-gray-100":"transparent",onMouseEnter:()=>y(B),onClick:()=>L(_),...w==null?void 0:w.item,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[_.icon&&r.jsx(l.View,{flexShrink:0,children:_.icon}),r.jsx(l.Text,{size:"sm",color:U?"theme-primary":"color-gray-800",weight:U?"medium":"normal",children:_.label})]}),U&&t&&r.jsx(Yo,{widthHeight:16,color:"theme-primary"})]},_.value)})}),d.length===0&&r.jsxs(l.Vertical,{...Mh,children:[r.jsx(kr,{widthHeight:24,color:"color-gray-300"}),r.jsx(l.Text,{color:"color-gray-500",size:"sm",align:"center",children:"No results found"}),r.jsx(l.Text,{color:"color-gray-400",size:"xs",align:"center",children:"Try a different search term"})]})]})})]})]})},Hh=({id:e,name:o,items:t,placeholder:n,searchPlaceholder:a,...i})=>{const c=Qa(t,n,a);return r.jsx(el,{id:e,name:o,items:t,...c,...i})},ol=e=>{const{tags:o,defaultTags:t=[],onTagsChange:n,onTagAdd:a,onTagRemove:i,maxTags:c,minTagLength:s=1,maxTagLength:d=50,allowDuplicates:g=!1,separators:f=["enter","comma"],isDisabled:m=!1,isReadOnly:p=!1}=e,[u,y]=h.useState(""),[k,x]=h.useState(()=>(o||t||[]).map((M,A)=>({id:`tag-${A}-${Date.now()}`,value:M}))),[C,w]=h.useState(!1),[v,S]=h.useState(!1),b=o&&Array.isArray(o)?o.map((V,M)=>({id:`tag-${M}-${Date.now()}`,value:V})):k;h.useEffect(()=>{o&&Array.isArray(o)&&x(o.map((V,M)=>({id:`tag-${M}-${Date.now()}`,value:V})))},[o]);const T=h.useCallback(V=>{const M=V.trim();return!(M.length<s||M.length>d||!g&&b.map(H=>H.value.toLowerCase()).includes(M.toLowerCase())||c&&b.length>=c)},[b,s,d,g,c]),F=h.useCallback(V=>{if(m||p)return;const M=V.trim();if(!M||!T(M))return;const A={id:`tag-${Date.now()}-${Math.random()}`,value:M},H=[...b,A],j=H.map(L=>L.value);o||x(H),n==null||n(j),a==null||a(M),y("")},[b,T,n,a,m,p,o]),W=h.useCallback(V=>{if(m||p)return;const M=b[V];if(!M)return;const A=b.filter((j,L)=>L!==V),H=A.map(j=>j.value);o||x(A),n==null||n(H),i==null||i(M.value,V)},[b,n,i,m,p,o]),P=h.useCallback(V=>{if(m||p)return;const M=V.target.value;if(f.includes("comma")&&M.includes(",")){const A=M.split(","),H=A[0],j=A.slice(1).join(",");H.trim()&&F(H),y(j);return}y(M)},[F,f,m,p]),$=h.useCallback(V=>{if(m||p)return;const{key:M}=V;if(f.includes("enter")&&M==="Enter"){V.preventDefault(),u.trim()&&F(u);return}if(f.includes("tab")&&M==="Tab"&&u.trim()){V.preventDefault(),F(u);return}if(f.includes("space")&&M===" "&&u.trim()){V.preventDefault(),F(u);return}if(M==="Backspace"&&!u&&b.length>0){V.preventDefault(),W(b.length-1);return}},[F,W,u,b,f,m,p]),z=h.useCallback(()=>{var V;w(!0),(V=e.onFocus)==null||V.call(e)},[e.onFocus]),E=h.useCallback(()=>{var V;w(!1),u.trim()&&F(u),(V=e.onBlur)==null||V.call(e)},[F,u,e.onBlur]);return{inputValue:u,setInputValue:y,tags:b,setTags:x,isFocused:C,setIsFocused:w,isHovered:v,setIsHovered:S,addTag:F,removeTag:W,handleInputChange:P,handleKeyDown:$,handleFocus:z,handleBlur:E,validateTag:T}},jh=({tag:e,onRemove:o,isRemovable:t,size:n,views:a,isDisabled:i,isReadOnly:c})=>{const[s,d]=h.useState(!1),g={xs:{padding:"2px 8px",fontSize:"10px",iconSize:10},sm:{padding:"4px 10px",fontSize:"12px",iconSize:12},md:{padding:"6px 14px",fontSize:"14px",iconSize:14},lg:{padding:"8px 16px",fontSize:"16px",iconSize:16},xl:{padding:"10px 18px",fontSize:"18px",iconSize:18}}[n]||{padding:"6px 14px",fontSize:"14px",iconSize:14};return r.jsxs(l.Horizontal,{alignItems:"center",gap:6,padding:g.padding,backgroundColor:"theme-primary-100",borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary-250",transition:"all 0.15s ease-in-out",opacity:i?.6:1,maxWidth:"100%",minWidth:0,_hover:!i&&!c?{backgroundColor:"theme-primary-180",borderColor:"theme-primary-400"}:{},...a==null?void 0:a.tag,children:[r.jsx(l.Text,{fontSize:g.fontSize,color:i?"color-gray-400":"theme-primary",maxLines:1,minWidth:0,...a==null?void 0:a.tagText,children:e}),t&&!i&&!c&&r.jsx(l.View,{cursor:"pointer",padding:"2px",borderRadius:"50%",transition:"all 0.15s ease-in-out",backgroundColor:s?"color-red-100":"transparent",opacity:s?1:.7,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:f=>{f.stopPropagation(),o()},_hover:{backgroundColor:"color-red-100"},...a==null?void 0:a.tagRemove,children:r.jsx(Me,{widthHeight:g.iconSize,color:s?"color-red-500":"color-gray-400"})})]})},rl=({id:e,name:o,label:t,placeholder:n="Type and press Enter to add tags...",helperText:a,error:i=!1,inputValue:c="",tags:s=[],left:d,right:g,shadow:f={},views:m={},size:p="md",shape:u="default",variant:y="default",isDisabled:k=!1,isReadOnly:x=!1,isAutoFocus:C=!1,isRemovable:w=!0,isFocused:v=!1,isHovered:S=!1,maxTags:b,handleInputChange:T,handleKeyDown:F,handleFocus:W,handleBlur:P,removeTag:$,setIsHovered:z,onClick:E,setInputValue:V,setTags:M,setIsFocused:A,addTag:H,filteredItems:j,activeItemIndex:L,isMenuOpen:O,handleMenuItemSelect:q,defaultTags:_,onTagsChange:B,onTagAdd:U,onTagRemove:X,minTagLength:N,maxTagLength:D,allowDuplicates:K,separators:J,menuItems:Z,onMenuItemSelect:Q,onFocus:oe,onBlur:re,validateTag:ae,...te})=>{const{getColor:se,themeMode:xe}=l.useTheme(),le=!!(t&&(v||s.length>0||c)),de=b&&s.length>=b,ee={border:"none",outline:"none",backgroundColor:"transparent",fontSize:l.Typography.fontSizes[p],color:k?"color-gray-400":"color-gray-800",flex:1,minWidth:"120px",transition:"all 0.2s ease-in-out",...m==null?void 0:m.input};return r.jsx(Ye,{error:!!i,helperText:typeof i=="string"?i:a,views:m,...te,children:r.jsxs(eo,{label:t,shadow:f,value:s.length>0||c?"has-content":"",size:p,shape:u,variant:y,error:!!i,showLabel:le,isFocused:v,isHovered:S,isDisabled:k,isReadOnly:x,views:{...m,container:{...m==null?void 0:m.container,...m==null?void 0:m.inputContainer}},onClick:E,onMouseEnter:()=>z==null?void 0:z(!0),onMouseLeave:()=>z==null?void 0:z(!1),children:[d,r.jsxs(Fo,{children:[t&&r.jsx(co,{size:p,error:!!i,views:m,children:t}),r.jsxs(l.Horizontal,{alignItems:"center",gap:8,flexWrap:"wrap",width:"100%",minHeight:l.Typography.fontSizes[p],padding:"0",...m==null?void 0:m.tagsContainer,children:[s.map((ne,fe)=>r.jsx(jh,{tag:ne.value,onRemove:()=>$==null?void 0:$(fe),isRemovable:w,size:p,views:m,isDisabled:k,isReadOnly:x},ne.id)),!de&&r.jsx(l.Input,{id:e,name:o,type:"text",value:c,placeholder:s.length===0?n:"",disabled:k,readOnly:x,autoFocus:C,onChange:T,onKeyDown:F,onFocus:W,onBlur:P,autoComplete:"off",...ee}),de&&r.jsxs(l.Text,{fontSize:l.Typography.fontSizes[p],color:"color-gray-500",fontStyle:"italic",...m==null?void 0:m.placeholder,children:["Maximum ",b," tags reached"]})]})]}),g]})})},Ph=e=>{const o=ol(e),{tags:t,...n}=e;return r.jsx(rl,{...o,...n})};function Ah(e){const o=setTimeout(e,0),t=setTimeout(e,10),n=setTimeout(e,50);return[o,t,n]}const rr=(e,o)=>{console.log(`[OTPInput.state] ${e}`,o)},Vh=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),tl=({value:e,defaultValue:o="",length:t=6,onChange:n,onChangeText:a,onComplete:i,onKeyDown:c,onKeyPress:s,onBlur:d,onFocus:g,isReadOnly:f,isDisabled:m,pattern:p,stepValues:u,pasteTransformer:y})=>{var X,N;const k=e!==void 0,x=k?e:o,[C,w]=h.useState(String(x??"").slice(0,t)||""),[v,S]=h.useState(!1),[b,T]=h.useState(!1),[F,W]=h.useState(null),[P,$]=h.useState(null),z=h.useRef(null),E=h.useRef(null),V=h.useRef({value:C,onChange:n||(()=>{}),isIOS:typeof window<"u"&&((N=(X=window==null?void 0:window.CSS)==null?void 0:X.supports)==null?void 0:N.call(X,"-webkit-touch-callout","none"))}),M=h.useRef({prev:[null,null,"none"]}),A=p?typeof p=="string"?new RegExp(p):p:null;h.useEffect(()=>{if(k&&e!==C){const D=String(e??"").slice(0,t)||"";rr("sync controlled value",{controlledValue:Vh(e),previousValue:C,nextControlledValue:D,length:t}),w(D)}},[k,e,t,C]);const H=h.useCallback(D=>{let K=D;if(u&&u.length>0&&D){const J=parseInt(D,10);if(!isNaN(J)){let Z=u[0],Q=Math.abs(J-Z);for(let oe=1;oe<u.length;oe++){const re=Math.abs(J-u[oe]);re<Q&&(Q=re,Z=u[oe])}K=Z.toString()}}rr("setValue",{incomingValue:D,valueToSet:K,length:t,isControlled:k,hasOnChange:!!n,hasOnChangeText:!!a,hasOnComplete:!!i,stepValues:u}),w(K),n&&n(K),a&&a(K),i&&K.length===t&&i(K)},[n,a,i,t,u,k]),j=h.useCallback(D=>{D&&z.current!==D&&Object.defineProperty(z,"current",{value:D,writable:!0})},[]),L=h.useCallback(D=>{var Z,Q,oe,re;const K=typeof D=="string"?D:((Z=D==null?void 0:D.currentTarget)==null?void 0:Z.value)??((Q=D==null?void 0:D.target)==null?void 0:Q.value)??((oe=D==null?void 0:D.nativeEvent)==null?void 0:oe.text)??"",J=String(K).slice(0,t);if(rr("handleChange normalized",{raw:K,newValue:J,length:t,hasPattern:!!A}),J.length>0&&A&&!A.test(J)){rr("handleChange rejected by pattern",{newValue:J,pattern:String(A)}),(re=D==null?void 0:D.preventDefault)==null||re.call(D);return}H(J),z.current&&(z.current.value=J)},[t,A,H,z]),O=h.useCallback(()=>{const D=z.current;if(D&&typeof D.setSelectionRange=="function"){const K=typeof D.value=="string"?D.value.length:0,J=Math.min(K,t-1),Z=K;D.setSelectionRange(J,Z),W(J),$(Z)}rr("focus",{length:t,refHasDomSelection:!!(D&&typeof D.setSelectionRange=="function")}),S(!0),g&&g()},[t,g]),q=h.useCallback(D=>{S(!1),d&&d(D)},[d]),_=h.useCallback(D=>{c&&c(D)},[]),B=h.useCallback(D=>{s&&s(D)},[]),U=h.useCallback(D=>{const K=z.current;if(!D.clipboardData||!K)return;const J=D.clipboardData.getData("text/plain"),Z=y?y(J):J;D.preventDefault();const Q=K.selectionStart||0,oe=K.selectionEnd||0,te=(Q!==oe?C.slice(0,Q)+Z+C.slice(oe):C.slice(0,Q)+Z+C.slice(Q)).slice(0,t);if(te.length>0&&A&&!A.test(te))return;K.value=te,H(te),w(te);const se=Math.min(te.length,t-1),xe=te.length;K.setSelectionRange(se,xe),W(se),$(xe)},[t,y,A,H,C,w]);return h.useEffect(()=>{const D=z.current,K=E.current;if(!D||!K||typeof document>"u")return;V.current.value!==D.value&&V.current.onChange&&V.current.onChange(D.value),M.current.prev=[D.selectionStart,D.selectionEnd,D.selectionDirection];function J(){if(document.activeElement!==D){W(null),$(null);return}const ae=(D==null?void 0:D.selectionStart)??null,te=(D==null?void 0:D.selectionEnd)??null,se=(D==null?void 0:D.selectionDirection)??null,xe=(D==null?void 0:D.maxLength)??0,le=(D==null?void 0:D.value)??"",de=M.current.prev;let ee=-1,ne=-1,fe="none";if(le.length!==0&&ae!==null&&te!==null){const Ae=ae===te,Ve=ae===le.length&&le.length<xe;if(Ae&&!Ve){const ze=ae;if(ze===0)ee=0,ne=1,fe="forward";else if(ze===xe)ee=ze-1,ne=ze,fe="backward";else if(xe>1&&le.length>1){let Oe=0;if(de[0]!==null&&de[1]!==null){fe=ze<de[1]?"backward":"forward";const Ee=de[0]===de[1]&&de[0]<xe;fe==="backward"&&!Ee&&(Oe=-1)}ee=Oe+ze,ne=Oe+ze+1}}ee!==-1&&ne!==-1&&ee!==ne&&z.current&&z.current.setSelectionRange(ee,ne,fe)}const Y=ee!==-1?ee:ae,R=ne!==-1?ne:te,we=fe!=="none"?fe:se;W(Y),$(R),M.current.prev=[Y,R,we]}document.addEventListener("selectionchange",J,{capture:!0}),J(),document.activeElement===D&&S(!0);const Z=K,Q=()=>{var ae;Z&&typeof((ae=Z.style)==null?void 0:ae.setProperty)=="function"&&Z.style.setProperty("--root-height",`${D.clientHeight}px`)};Q();const oe=typeof window<"u"?window.ResizeObserver:void 0,re=typeof oe=="function"?new oe(Q):null;return re==null||re.observe(D),()=>{document.removeEventListener("selectionchange",J,{capture:!0}),re==null||re.disconnect()}},[]),h.useEffect(()=>{typeof Event>"u"||Ah(()=>{var Q,oe,re;const D=z.current;D&&typeof D.dispatchEvent=="function"&&D.dispatchEvent(new Event("input"));const K=(Q=z.current)==null?void 0:Q.selectionStart,J=(oe=z.current)==null?void 0:oe.selectionEnd,Z=(re=z.current)==null?void 0:re.selectionDirection;K!==null&&J!==null&&K!==void 0&&J!==void 0&&(W(K),$(J),M.current.prev=[K,J,Z||"none"])})},[C,v]),{value:C,setValue:H,isFocused:v,setIsFocused:S,isHovered:b,setIsHovered:T,inputRef:z,containerRef:E,mirrorSelectionStart:F,mirrorSelectionEnd:P,setMirrorSelectionStart:W,setMirrorSelectionEnd:$,setInputRef:j,handleChange:L,handleFocus:O,handleBlur:q,handleKeyDown:_,handleKeyPress:B,handlePaste:U}},Eh=h.createContext({slots:[],isFocused:!1,isHovering:!1}),Dh=`
7
7
  @keyframes blink {
8
8
  0%, 100% { opacity: 1; }
9
9
  50% { opacity: 0; }
@@ -20,10 +20,10 @@
20
20
  border-radius: 4px !important;
21
21
  width: 100% !important;
22
22
  }
23
- `;function Mo(e,o){try{e.insertRule(o)}catch{console.error("input-otp could not insert CSS rule:",o)}}const nl=({id:e,name:o,label:t,value:n="",length:a=6,onChange:i,onChangeText:c,onComplete:s,helperText:d,placeholder:g="",shadow:f,views:m={},size:p="md",shape:u="rounded",variant:y="outline",gap:k=8,type:x="text",error:C=!1,isFocused:w=!1,isHovered:v=!1,isDisabled:S=!1,isReadOnly:b=!1,isAutoFocus:T=!1,setValue:F,setIsFocused:W,setIsHovered:j,inputRef:$,containerRef:z,mirrorSelectionStart:E,mirrorSelectionEnd:A,setMirrorSelectionStart:H,setMirrorSelectionEnd:P,handlePaste:M,handleChange:V,handleFocus:L,handleBlur:B,handleKeyDown:q,handleKeyPress:_,secureTextEntry:O,isFirstColumn:U,stepValues:K,setInputRef:N,onBlur:D=()=>{},onClick:X=()=>{},onFocus:Z=()=>{},onKeyPress:J,pattern:Q,pasteTransformer:oe,...re})=>{l.useTheme();const ae=!!t,te=h.useMemo(()=>({slots:Array.from({length:a}).map((le,de)=>{const ee=w&&E!==null&&A!==null&&(E===A&&de===E||de>=E&&de<A),ne=n[de]!==void 0?n[de]:null,fe=n[0]!==void 0?null:(g==null?void 0:g[de])??null;return{char:ne,placeholderChar:fe,isActive:ee,hasFakeCaret:ee&&ne===null}}),isFocused:w,isHovering:!S&&v}),[w,v,S,a,A,E,g,n]);h.useEffect(()=>{T&&$.current&&$.current.focus()},[T,$]),h.useEffect(()=>{if(!document.getElementById("input-otp-style")){const le=document.createElement("style");if(le.id="input-otp-style",document.head.appendChild(le),le.sheet){const de="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Mo(le.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),Mo(le.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Mo(le.sheet,`[data-input-otp]:autofill { ${de} }`),Mo(le.sheet,`[data-input-otp]:-webkit-autofill { ${de} }`),Mo(le.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Mo(le.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}},[]);const se=()=>r.jsx(l.Horizontal,{gap:k,width:"100%",justifyContent:"center",minHeight:p==="xs"?"32px":p==="sm"?"36px":p==="md"?"40px":p==="lg"?"48px":"56px",...m.container,children:te.slots.map((le,de)=>r.jsxs(eo,{size:p,error:C,shape:u,views:m,variant:y,value:le.char||"",color:"theme-primary",isHovered:v,isDisabled:S,isReadOnly:b,isFocused:le.isActive,showLabel:!1,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:p==="xs"?"32px":p==="sm"?"36px":p==="md"?"40px":p==="lg"?"48px":"56px",...m.container,children:[le.char?r.jsx(l.View,{textAlign:"center",fontSize:p==="xs"?"14px":p==="sm"?"16px":p==="md"?"18px":p==="lg"?"20px":"24px",fontWeight:"medium",...m.text,children:x==="password"?"•":le.char}):le.placeholderChar?r.jsx(l.View,{textAlign:"center",fontSize:p==="xs"?"14px":p==="sm"?"16px":p==="md"?"18px":p==="lg"?"20px":"24px",color:"color-gray-400",opacity:.5,...m.text,children:le.placeholderChar}):null,le.hasFakeCaret&&r.jsx(l.View,{position:"absolute",width:"2px",height:"60%",backgroundColor:"theme-primary",animation:"blink 1s step-start infinite",style:{animationName:"blink",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"step-start"}})]},`${e||o}-${de}`))}),xe={position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",textAlign:"center",opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"};return r.jsxs(r.Fragment,{children:[r.jsx("noscript",{children:r.jsx("style",{children:Dh})}),r.jsxs(Ye,{helperText:d,error:C,views:m,...re,children:[ae&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:C,...m.label,children:t}),r.jsxs(l.View,{ref:z,"data-input-otp-container":!0,position:"relative",cursor:S?"default":"text",userSelect:"none",pointerEvents:"none",children:[r.jsx(Eh.Provider,{value:te,children:se()}),r.jsx(l.View,{position:"absolute",inset:0,pointerEvents:"none",children:r.jsx(l.Input,{ref:le=>N(le),"data-input-otp":!0,"data-input-otp-placeholder-shown":n.length===0||void 0,"data-input-otp-mss":E,"data-input-otp-mse":A,id:e||o,name:o,type:x==="password"?"password":"text",inputMode:x!=="password"?"numeric":void 0,pattern:"[0-9]*",maxLength:a,readOnly:b,disabled:S,placeholder:g,value:n,onChange:V,onKeyDown:q,onPaste:M,onFocus:L,onBlur:B,onClick:X,onMouseOver:()=>j(!0),onMouseLeave:()=>j(!1),autoComplete:"one-time-code","aria-label":`OTP input with ${a} digits`,style:xe,...m.input})})]})]})]})},$h=e=>{if(e==null)return"";if(typeof e=="string"||typeof e=="number"){const o=String(e);return o==="[object Object]"?"":o}return""},Lh=(e,o)=>{console.log(`[OTPInput] ${e}`,o)},al=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),ll=e=>{const{value:o}=e,{value:t,setValue:n,isFocused:a,setIsFocused:i,isHovered:c,setIsHovered:s,inputRef:d,containerRef:g,mirrorSelectionStart:f,mirrorSelectionEnd:m,setMirrorSelectionStart:p,setMirrorSelectionEnd:u,setInputRef:y,handleChange:k,handleFocus:x,handleBlur:C,handleKeyDown:w,handlePaste:v,handleKeyPress:S}=tl(e),T=$h(o!==void 0?o:t);return Lh("render",{name:e.name,controlledValue:al(o),internalValue:al(t),displayValue:T,length:e.length||6,hasOnChange:!!e.onChange,hasOnChangeText:!!e.onChangeText}),r.jsx(nl,{...e,value:T,setValue:n,isFocused:a,setIsFocused:i,isHovered:c,setIsHovered:s,inputRef:d,containerRef:g,mirrorSelectionStart:f,mirrorSelectionEnd:m,setMirrorSelectionStart:p,setMirrorSelectionEnd:u,setInputRef:y,handleChange:k,handleFocus:x,handleBlur:C,handleKeyDown:w,handleKeyPress:S,handlePaste:v,stepValues:e.stepValues})},il=h.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),_h=()=>h.useContext(il),Bh=({children:e,autoFocus:o=!1,initFocus:t,onChange:n=()=>{},...a})=>{const i=De.useFormikContext();h.useEffect(()=>{n(i.values)},[i.values]);const c=h.useRef({}),s=h.useRef([]),d=(u,y)=>{c.current[u]=y,y&&!s.current.includes(u)&&s.current.push(u)},g=u=>{var y,k;if(o){const C=s.current.indexOf(u)+1;C<s.current.length?(y=c.current[s.current[C]])==null||y.focus():(k=i.submitForm)==null||k.call(i)}},f={active:o,focusNextInput:g,setInputRef:d,handleSubmitEditing:g,getReturnKeyType:u=>s.current.indexOf(u)===s.current.length-1?"done":"next"};h.useEffect(()=>{var u,y;o&&(t&&c.current[t]?(u=c.current[t])==null||u.focus():s.current[0]&&((y=c.current[s.current[0]])==null||y.focus()))},[o,t]);const p=typeof document<"u"&&typeof document.createElement=="function"?{onSubmit:i.handleSubmit,onReset:i.handleReset}:{};return r.jsx(il.Provider,{value:f,children:r.jsx(l.Form,{...a,...p,children:e})})},Oh=e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}},ye=({name:e,type:o,...t},n={})=>{const a=_h(),{touched:i,errors:c,submitCount:s,values:d,setFieldTouched:g,setFieldValue:f}=De.useFormikContext(),m=b=>{var T;f(e,b),(T=t.onChangeText)==null||T.call(t,b)},p=b=>{var T;f(e,b),(T=t.onChange)==null||T.call(t,b)},u=()=>{g(e,!0)},y=b=>{b.key==="Enter"&&(b.preventDefault(),a.focusNextInput(e))},k=["text","password","email","digits"].includes(o),x=De.getIn(i,e)||s>0?De.getIn(c,e):void 0,C=De.getIn(d,e),w=typeof document<"u"&&typeof document.createElement=="function",v=!!n.focusable&&a.active,S=v?w?{onKeyPress:y}:{returnKeyType:a.getReturnKeyType(e),onSubmitEditing:()=>a.handleSubmitEditing(e),blurOnSubmit:!1}:{};return{...Oh(o),...t,value:C,error:x,onBlur:u,...k?{onChangeText:m}:{onChange:p},...S,...v?{inputRef:b=>a.setInputRef(e,b)}:{}}},Nh=e=>{let{value:o,...t}=ye(e);t.isChecked=o;const n=ja(e);return r.jsx(Aa,{...n,...t})},cl=({defaultIsSelected:e=!1,isChecked:o})=>{const[t,n]=h.useState(!1),[a,i]=h.useState(o!==void 0?o:e);return h.useEffect(()=>{o!==void 0&&i(o)},[o]),{isHovered:t,setIsHovered:n,isSelected:a,setIsSelected:i}},qh={xs:{height:"16px",width:"16px"},sm:{height:"20px",width:"20px"},md:{height:"24px",width:"24px"},lg:{height:"28px",width:"28px"},xl:{height:"32px",width:"32px"}},Uh={xs:{height:"8px",width:"8px"},sm:{height:"10px",width:"10px"},md:{height:"12px",width:"12px"},lg:{height:"14px",width:"14px"},xl:{height:"16px",width:"16px"}},Gh={selected:{borderColor:"theme-primary",borderWidth:"2px",borderStyle:"solid"},unselected:{borderWidth:"2px",borderStyle:"solid",borderColor:"color-gray-300",style:{backgroundColor:"transparent"}}},Yh={selected:{backgroundColor:"theme-primary"},unselected:{style:{backgroundColor:"transparent"}}},_t={hover:{selected:{borderColor:"color-blue-600"},unselected:{borderColor:"color-gray-400"}},disabled:{selected:{borderColor:"color-gray-300",opacity:.6},unselected:{borderColor:"color-gray-300",opacity:.6}},error:{selected:{borderColor:"color-red-500"},unselected:{borderColor:"color-red-500"}}},Bt={hover:{selected:{backgroundColor:"color-blue-600"},unselected:{style:{backgroundColor:"transparent"}}},disabled:{selected:{backgroundColor:"color-gray-300",opacity:.6},unselected:{opacity:.6,style:{backgroundColor:"transparent"}}},error:{selected:{backgroundColor:"color-red-500"},unselected:{style:{backgroundColor:"transparent"}}}},sl=({id:e,icon:o,name:t,label:n,value:a,isChecked:i,onChange:c,onValueChange:s,shadow:d={},labelPosition:g="right",size:f="md",error:m=!1,isSelected:p=!1,isHovered:u=!1,isDisabled:y=!1,isReadOnly:k=!1,defaultIsSelected:x=!1,setIsSelected:C=()=>{},setIsHovered:w=()=>{},views:v={radio:{},label:{}},infoText:S,helperText:b,...T})=>{const F=()=>w(!u),W=()=>{!k&&!y&&(C&&C(!0),c&&c(a??""),s&&s(a??""))},j=i||p?"selected":"unselected",$=m?_t.error[j]:y?_t.disabled[j]:u?_t.hover[j]:{},z=m?Bt.error[j]:y?Bt.disabled[j]:u?Bt.hover[j]:{},E={container:{gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",selected:{borderColor:"theme-primary"},color:m?"color-red-600":y?"color-gray-400":"inherit",cursor:y?"not-allowed":k?"default":"pointer",opacity:y?.6:1,transition:"all 0.2s ease-in-out",...v.label},radio:{...Gh[j],...$,borderRadius:"50%",selected:{backgroundColor:"theme-primary"},backgroundColor:"color-white",...qh[f],transition:"all 0.2s ease-in-out",...d,...v.radio},dot:{...Yh[j],...z,borderRadius:"50%",...Uh[f],transition:"all 0.2s ease-in-out"}};return r.jsxs(Jo,{htmlFor:e,as:"div",onClick:W,onMouseEnter:F,onMouseLeave:F,size:l.Typography.fontSizes[f],...E.container,...T,children:[r.jsxs(l.Vertical,{gap:8,children:[" ",r.jsxs(l.Horizontal,{gap:12,alignItems:"center",children:[" ",g==="left"&&n&&r.jsx(l.Text,{size:f,fontWeight:"500",...v==null?void 0:v.label,children:n}),r.jsx(l.Center,{...E.radio,children:(i||p)&&r.jsx(l.View,{...E.dot})}),g==="right"&&n&&r.jsx(l.Text,{size:f,fontWeight:"500",...v==null?void 0:v.label,children:n})]}),S&&r.jsx(l.Text,{marginLeft:g==="left"?0:36,color:"color-gray-500",size:"sm",fontWeight:"400",lineHeight:"20px",...v==null?void 0:v.infoText,children:S})]}),m&&r.jsx(l.Text,{size:"xs",marginTop:4,marginHorizontal:0,color:"color-red-500",fontWeight:"500",transition:"color 0.2s ease, opacity 0.2s ease",children:m})]})},Kh=e=>{let{value:o,...t}=ye(e);t.isChecked=o===e.value;const n=cl(e);return r.jsx(sl,{...n,...t})},dl=e=>{const{value:o,onChange:t,onSubmit:n,autoFocus:a=!0,loading:i=!1,disabled:c=!1,isAgentRunning:s=!1,onStopAgent:d,sandboxId:g,onUploadProgress:f,onUploadSuccess:m,onUploadError:p,onFileUpload:u}=e,y=o!==void 0&&t!==void 0,[k,x]=h.useState(""),C=y?o:k,[w,v]=h.useState([]),[S,b]=h.useState([]),[T,F]=h.useState(!1),[W,j]=h.useState(0),[$,z]=h.useState([]),[E,A]=h.useState(!1),H=h.useRef(null),[P,M]=h.useState(!1),[V,L]=h.useState("gpt-4"),[B]=h.useState([{id:"gpt-3.5-turbo",name:"GPT-3.5"},{id:"gpt-4",name:"GPT-4"},{id:"gpt-4-thinking",name:"GPT-4 (Thinking)",isThinking:!0},{id:"claude-3-5-sonnet",name:"Claude 3.5 Sonnet"}]),q=h.useRef(null),_=h.useRef(null),O=h.useRef(null),[U,K]=h.useState(e.showGuideTip||!1);h.useEffect(()=>{a&&q.current&&q.current.focus()},[a]),h.useEffect(()=>()=>{w.forEach(ee=>{})},[w]);const N=ee=>{y&&t?t(ee):x(ee)},D=ee=>{const ne=O.current;if(ne&&typeof Event<"u"){ne.value=ee,ne.dispatchEvent(new Event("input",{bubbles:!0}));return}N(ee)},X=ee=>{if(ee.preventDefault(),!C.trim()&&w.length===0||i||c&&!s)return;if(s&&d){d();return}let ne=C;if(w.length>0){const R=w.map(we=>`[Uploaded File: ${URL.createObjectURL(we)}}]`).join(`
23
+ `;function Mo(e,o){try{e.insertRule(o)}catch{console.error("input-otp could not insert CSS rule:",o)}}const nl=({id:e,name:o,label:t,value:n="",length:a=6,onChange:i,onChangeText:c,onComplete:s,helperText:d,placeholder:g="",shadow:f,views:m={},size:p="md",shape:u="rounded",variant:y="outline",gap:k=8,type:x="text",error:C=!1,isFocused:w=!1,isHovered:v=!1,isDisabled:S=!1,isReadOnly:b=!1,isAutoFocus:T=!1,setValue:F,setIsFocused:W,setIsHovered:P,inputRef:$,containerRef:z,mirrorSelectionStart:E,mirrorSelectionEnd:V,setMirrorSelectionStart:M,setMirrorSelectionEnd:A,handlePaste:H,handleChange:j,handleFocus:L,handleBlur:O,handleKeyDown:q,handleKeyPress:_,secureTextEntry:B,isFirstColumn:U,stepValues:X,setInputRef:N,onBlur:D=()=>{},onClick:K=()=>{},onFocus:J=()=>{},onKeyPress:Z,pattern:Q,pasteTransformer:oe,...re})=>{l.useTheme();const ae=!!t,te=h.useMemo(()=>({slots:Array.from({length:a}).map((le,de)=>{const ee=w&&E!==null&&V!==null&&(E===V&&de===E||de>=E&&de<V),ne=n[de]!==void 0?n[de]:null,fe=n[0]!==void 0?null:(g==null?void 0:g[de])??null;return{char:ne,placeholderChar:fe,isActive:ee,hasFakeCaret:ee&&ne===null}}),isFocused:w,isHovering:!S&&v}),[w,v,S,a,V,E,g,n]);h.useEffect(()=>{T&&$.current&&$.current.focus()},[T,$]),h.useEffect(()=>{if(!document.getElementById("input-otp-style")){const le=document.createElement("style");if(le.id="input-otp-style",document.head.appendChild(le),le.sheet){const de="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Mo(le.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),Mo(le.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Mo(le.sheet,`[data-input-otp]:autofill { ${de} }`),Mo(le.sheet,`[data-input-otp]:-webkit-autofill { ${de} }`),Mo(le.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Mo(le.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}},[]);const se=()=>r.jsx(l.Horizontal,{gap:k,width:"100%",justifyContent:"center",minHeight:p==="xs"?"32px":p==="sm"?"36px":p==="md"?"40px":p==="lg"?"48px":"56px",...m.container,children:te.slots.map((le,de)=>r.jsxs(eo,{size:p,error:C,shape:u,views:m,variant:y,value:le.char||"",color:"theme-primary",isHovered:v,isDisabled:S,isReadOnly:b,isFocused:le.isActive,showLabel:!1,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:p==="xs"?"32px":p==="sm"?"36px":p==="md"?"40px":p==="lg"?"48px":"56px",...m.container,children:[le.char?r.jsx(l.View,{textAlign:"center",fontSize:p==="xs"?"14px":p==="sm"?"16px":p==="md"?"18px":p==="lg"?"20px":"24px",fontWeight:"medium",...m.text,children:x==="password"?"•":le.char}):le.placeholderChar?r.jsx(l.View,{textAlign:"center",fontSize:p==="xs"?"14px":p==="sm"?"16px":p==="md"?"18px":p==="lg"?"20px":"24px",color:"color-gray-400",opacity:.5,...m.text,children:le.placeholderChar}):null,le.hasFakeCaret&&r.jsx(l.View,{position:"absolute",width:"2px",height:"60%",backgroundColor:"theme-primary",animation:"blink 1s step-start infinite",style:{animationName:"blink",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"step-start"}})]},`${e||o}-${de}`))}),xe={position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",textAlign:"center",opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"};return r.jsxs(r.Fragment,{children:[r.jsx("noscript",{children:r.jsx("style",{children:Dh})}),r.jsxs(Ye,{helperText:d,error:C,views:m,...re,children:[ae&&r.jsx(co,{htmlFor:e,color:"theme-primary",error:C,...m.label,children:t}),r.jsxs(l.View,{ref:z,"data-input-otp-container":!0,position:"relative",cursor:S?"default":"text",userSelect:"none",pointerEvents:"none",children:[r.jsx(Eh.Provider,{value:te,children:se()}),r.jsx(l.View,{position:"absolute",inset:0,pointerEvents:"none",children:r.jsx(l.Input,{ref:le=>N(le),"data-input-otp":!0,"data-input-otp-placeholder-shown":n.length===0||void 0,"data-input-otp-mss":E,"data-input-otp-mse":V,id:e||o,name:o,type:x==="password"?"password":"text",inputMode:x!=="password"?"numeric":void 0,pattern:"[0-9]*",maxLength:a,readOnly:b,disabled:S,placeholder:g,value:n,onChange:j,onKeyDown:q,onPaste:H,onFocus:L,onBlur:O,onClick:K,onMouseOver:()=>P(!0),onMouseLeave:()=>P(!1),autoComplete:"one-time-code","aria-label":`OTP input with ${a} digits`,style:xe,...m.input})})]})]})]})},$h=e=>{if(e==null)return"";if(typeof e=="string"||typeof e=="number"){const o=String(e);return o==="[object Object]"?"":o}return""},Lh=(e,o)=>{console.log(`[OTPInput] ${e}`,o)},al=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),ll=e=>{const{value:o}=e,{value:t,setValue:n,isFocused:a,setIsFocused:i,isHovered:c,setIsHovered:s,inputRef:d,containerRef:g,mirrorSelectionStart:f,mirrorSelectionEnd:m,setMirrorSelectionStart:p,setMirrorSelectionEnd:u,setInputRef:y,handleChange:k,handleFocus:x,handleBlur:C,handleKeyDown:w,handlePaste:v,handleKeyPress:S}=tl(e),T=$h(o!==void 0?o:t);return Lh("render",{name:e.name,controlledValue:al(o),internalValue:al(t),displayValue:T,length:e.length||6,hasOnChange:!!e.onChange,hasOnChangeText:!!e.onChangeText}),r.jsx(nl,{...e,value:T,setValue:n,isFocused:a,setIsFocused:i,isHovered:c,setIsHovered:s,inputRef:d,containerRef:g,mirrorSelectionStart:f,mirrorSelectionEnd:m,setMirrorSelectionStart:p,setMirrorSelectionEnd:u,setInputRef:y,handleChange:k,handleFocus:x,handleBlur:C,handleKeyDown:w,handleKeyPress:S,handlePaste:v,stepValues:e.stepValues})},il=h.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),_h=()=>h.useContext(il),Bh=({children:e,autoFocus:o=!1,initFocus:t,onChange:n=()=>{},...a})=>{const i=De.useFormikContext();h.useEffect(()=>{n(i.values)},[i.values]);const c=h.useRef({}),s=h.useRef([]),d=(u,y)=>{c.current[u]=y,y&&!s.current.includes(u)&&s.current.push(u)},g=u=>{var y,k;if(o){const C=s.current.indexOf(u)+1;C<s.current.length?(y=c.current[s.current[C]])==null||y.focus():(k=i.submitForm)==null||k.call(i)}},f={active:o,focusNextInput:g,setInputRef:d,handleSubmitEditing:g,getReturnKeyType:u=>s.current.indexOf(u)===s.current.length-1?"done":"next"};h.useEffect(()=>{var u,y;o&&(t&&c.current[t]?(u=c.current[t])==null||u.focus():s.current[0]&&((y=c.current[s.current[0]])==null||y.focus()))},[o,t]);const p=typeof document<"u"&&typeof document.createElement=="function"?{onSubmit:i.handleSubmit,onReset:i.handleReset}:{};return r.jsx(il.Provider,{value:f,children:r.jsx(l.Form,{...a,...p,children:e})})},Oh=e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}},ye=({name:e,type:o,...t},n={})=>{const a=_h(),{touched:i,errors:c,submitCount:s,values:d,setFieldTouched:g,setFieldValue:f}=De.useFormikContext(),m=b=>{var T;f(e,b),(T=t.onChangeText)==null||T.call(t,b)},p=b=>{var T;f(e,b),(T=t.onChange)==null||T.call(t,b)},u=()=>{g(e,!0)},y=b=>{b.key==="Enter"&&(b.preventDefault(),a.focusNextInput(e))},k=["text","password","email","digits"].includes(o),x=De.getIn(i,e)||s>0?De.getIn(c,e):void 0,C=De.getIn(d,e),w=typeof document<"u"&&typeof document.createElement=="function",v=!!n.focusable&&a.active,S=v?w?{onKeyPress:y}:{returnKeyType:a.getReturnKeyType(e),onSubmitEditing:()=>a.handleSubmitEditing(e),blurOnSubmit:!1}:{};return{...Oh(o),...t,value:C,error:x,onBlur:u,...k?{onChangeText:m}:{onChange:p},...S,...v?{inputRef:b=>a.setInputRef(e,b)}:{}}},Nh=e=>{let{value:o,...t}=ye(e);t.isChecked=o;const n=ja(e);return r.jsx(Aa,{...n,...t})},cl=({defaultIsSelected:e=!1,isChecked:o})=>{const[t,n]=h.useState(!1),[a,i]=h.useState(o!==void 0?o:e);return h.useEffect(()=>{o!==void 0&&i(o)},[o]),{isHovered:t,setIsHovered:n,isSelected:a,setIsSelected:i}},qh={xs:{height:"16px",width:"16px"},sm:{height:"20px",width:"20px"},md:{height:"24px",width:"24px"},lg:{height:"28px",width:"28px"},xl:{height:"32px",width:"32px"}},Uh={xs:{height:"8px",width:"8px"},sm:{height:"10px",width:"10px"},md:{height:"12px",width:"12px"},lg:{height:"14px",width:"14px"},xl:{height:"16px",width:"16px"}},Gh={selected:{borderColor:"theme-primary",borderWidth:"2px",borderStyle:"solid"},unselected:{borderWidth:"2px",borderStyle:"solid",borderColor:"color-gray-300",style:{backgroundColor:"transparent"}}},Yh={selected:{backgroundColor:"theme-primary"},unselected:{style:{backgroundColor:"transparent"}}},_t={hover:{selected:{borderColor:"color-blue-600"},unselected:{borderColor:"color-gray-400"}},disabled:{selected:{borderColor:"color-gray-300",opacity:.6},unselected:{borderColor:"color-gray-300",opacity:.6}},error:{selected:{borderColor:"color-red-500"},unselected:{borderColor:"color-red-500"}}},Bt={hover:{selected:{backgroundColor:"color-blue-600"},unselected:{style:{backgroundColor:"transparent"}}},disabled:{selected:{backgroundColor:"color-gray-300",opacity:.6},unselected:{opacity:.6,style:{backgroundColor:"transparent"}}},error:{selected:{backgroundColor:"color-red-500"},unselected:{style:{backgroundColor:"transparent"}}}},sl=({id:e,icon:o,name:t,label:n,value:a,isChecked:i,onChange:c,onValueChange:s,shadow:d={},labelPosition:g="right",size:f="md",error:m=!1,isSelected:p=!1,isHovered:u=!1,isDisabled:y=!1,isReadOnly:k=!1,defaultIsSelected:x=!1,setIsSelected:C=()=>{},setIsHovered:w=()=>{},views:v={radio:{},label:{}},infoText:S,helperText:b,...T})=>{const F=()=>w(!u),W=()=>{!k&&!y&&(C&&C(!0),c&&c(a??""),s&&s(a??""))},P=i||p?"selected":"unselected",$=m?_t.error[P]:y?_t.disabled[P]:u?_t.hover[P]:{},z=m?Bt.error[P]:y?Bt.disabled[P]:u?Bt.hover[P]:{},E={container:{gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",selected:{borderColor:"theme-primary"},color:m?"color-red-600":y?"color-gray-400":"inherit",cursor:y?"not-allowed":k?"default":"pointer",opacity:y?.6:1,transition:"all 0.2s ease-in-out",...v.label},radio:{...Gh[P],...$,borderRadius:"50%",selected:{backgroundColor:"theme-primary"},backgroundColor:"color-white",...qh[f],transition:"all 0.2s ease-in-out",...d,...v.radio},dot:{...Yh[P],...z,borderRadius:"50%",...Uh[f],transition:"all 0.2s ease-in-out"}};return r.jsxs(Jo,{htmlFor:e,as:"div",onClick:W,onMouseEnter:F,onMouseLeave:F,size:l.Typography.fontSizes[f],...E.container,...T,children:[r.jsxs(l.Vertical,{gap:8,children:[" ",r.jsxs(l.Horizontal,{gap:12,alignItems:"center",children:[" ",g==="left"&&n&&r.jsx(l.Text,{size:f,fontWeight:"500",...v==null?void 0:v.label,children:n}),r.jsx(l.Center,{...E.radio,children:(i||p)&&r.jsx(l.View,{...E.dot})}),g==="right"&&n&&r.jsx(l.Text,{size:f,fontWeight:"500",...v==null?void 0:v.label,children:n})]}),S&&r.jsx(l.Text,{marginLeft:g==="left"?0:36,color:"color-gray-500",size:"sm",fontWeight:"400",lineHeight:"20px",...v==null?void 0:v.infoText,children:S})]}),m&&r.jsx(l.Text,{size:"xs",marginTop:4,marginHorizontal:0,color:"color-red-500",fontWeight:"500",transition:"color 0.2s ease, opacity 0.2s ease",children:m})]})},Kh=e=>{let{value:o,...t}=ye(e);t.isChecked=o===e.value;const n=cl(e);return r.jsx(sl,{...n,...t})},dl=e=>{const{value:o,onChange:t,onSubmit:n,autoFocus:a=!0,loading:i=!1,disabled:c=!1,isAgentRunning:s=!1,onStopAgent:d,sandboxId:g,onUploadProgress:f,onUploadSuccess:m,onUploadError:p,onFileUpload:u}=e,y=o!==void 0&&t!==void 0,[k,x]=h.useState(""),C=y?o:k,[w,v]=h.useState([]),[S,b]=h.useState([]),[T,F]=h.useState(!1),[W,P]=h.useState(0),[$,z]=h.useState([]),[E,V]=h.useState(!1),M=h.useRef(null),[A,H]=h.useState(!1),[j,L]=h.useState("gpt-4"),[O]=h.useState([{id:"gpt-3.5-turbo",name:"GPT-3.5"},{id:"gpt-4",name:"GPT-4"},{id:"gpt-4-thinking",name:"GPT-4 (Thinking)",isThinking:!0},{id:"claude-3-5-sonnet",name:"Claude 3.5 Sonnet"}]),q=h.useRef(null),_=h.useRef(null),B=h.useRef(null),[U,X]=h.useState(e.showGuideTip||!1);h.useEffect(()=>{a&&q.current&&q.current.focus()},[a]),h.useEffect(()=>()=>{w.forEach(ee=>{})},[w]);const N=ee=>{y&&t?t(ee):x(ee)},D=ee=>{const ne=B.current;if(ne&&typeof Event<"u"){ne.value=ee,ne.dispatchEvent(new Event("input",{bubbles:!0}));return}N(ee)},K=ee=>{if(ee.preventDefault(),!C.trim()&&w.length===0||i||c&&!s)return;if(s&&d){d();return}let ne=C;if(w.length>0){const R=w.map(we=>`[Uploaded File: ${URL.createObjectURL(we)}}]`).join(`
24
24
  `);ne=ne?`${ne}
25
25
 
26
- ${R}`:R}let fe=V,Y=!1;V.endsWith("-thinking")&&(fe=V.replace(/-thinking$/,""),Y=!0),n==null||n(ne,{model_name:fe,enable_thinking:Y}),y||x(""),v([]),b([])},Z=ee=>{v(ne=>ne.filter((fe,Y)=>Y!==ee)),!g&&S.length>ee&&b(ne=>ne.filter((fe,Y)=>Y!==ee))},J=ee=>{ee.preventDefault(),ee.stopPropagation(),M(!0)},Q=ee=>{ee.preventDefault(),ee.stopPropagation(),M(!1)},oe=h.useCallback(ee=>{!ee||ee.length===0||(b(ne=>[...ne,...ee]),v(ne=>[...ne,...ee]),z(ne=>[...ne,...ee]),F(!0))},[b,v]),re=h.useCallback(()=>{if($.length>0&&!E&&u){A(!0);const ee=$[0];H.current=ee,j(0);try{u(ee)}catch(ne){z(fe=>fe.slice(1)),A(!1),H.current=null,j(0),F(fe=>$.length-1>0||!1),p==null||p(ne)}}else $.length===0&&T&&(F(!1),j(0))},[$,E,u,T,p]);h.useEffect(()=>{re()},[$,E,re]);const ae="active",te=ee=>!0,se=()=>{K(!1),e.onGuideClose&&e.onGuideClose()},xe=ee=>{y&&t?t(ee.text):x(ee.text),e.onPromptExampleSelect&&e.onPromptExampleSelect(ee),q.current&&q.current.focus()},le=h.useCallback(()=>S,[S]),de=h.useCallback(()=>b([]),[]);return{onSubmit:n,getPendingFiles:le,clearPendingFiles:de,value:C,handleChange:N,setValue:D,handleSubmit:X,editableRef:q,fileInputRef:_,hiddenInputRef:O,isUploading:T,uploadProgress:W,isDraggingOver:P,uploadedFiles:w,pendingFiles:S,removeUploadedFile:Z,setPendingFiles:b,setUploadedFiles:v,setIsUploading:F,startUpload:oe,selectedModel:V,handleModelChange:L,modelOptions:B,subscriptionStatus:ae,canAccessModel:te,handleDragOver:J,handleDragLeave:Q,isGuideTipShown:U,hideGuideTip:se,handlePromptExampleSelect:xe}},Xh={attachmentRemove:{position:"absolute",top:"2px",right:"2px",width:"20px",height:"20px",borderRadius:"50%",backgroundColor:"color-black-900",color:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",zIndex:1}},gl={container:{width:"100%",maxWidth:"100%",borderRadius:"12px",backgroundColor:"color-white",transition:"background-color 0.2s ease, box-shadow 0.2s ease"},content:{width:"100%",padding:"12px",borderRadius:"12px",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}},Jh={default:{borderRadius:"8px"},square:{borderRadius:"0px"},rounded:{borderRadius:"8px"}},Qh={xs:{fontSize:"10px",padding:"4px 8px"},sm:{fontSize:"12px",padding:"6px 10px"},md:{fontSize:"14px",padding:"8px 12px"},lg:{fontSize:"16px",padding:"10px 14px"},xl:{fontSize:"20px",padding:"12px 16px"}},Zh={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300"},none:{backgroundColor:"transparent",border:"none"}},hl=e=>`${e}-${Math.random().toString(36).substring(2,9)}`,Rh=({openDelay:e=200,closeDelay:o=300}={})=>{const[t,n]=h.useState(!1),a=h.useRef(null),i=h.useRef(null),c=h.useRef(null),s=h.useRef(null),d=h.useMemo(()=>hl("hovercard-content"),[]),g=h.useMemo(()=>hl("hovercard-trigger"),[]),f=h.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null),i.current&&(clearTimeout(i.current),i.current=null)},[]),m=h.useCallback(()=>{f(),t||(a.current=setTimeout(()=>{n(!0)},e))},[t,e,f]),p=h.useCallback(()=>{f(),t&&(i.current=setTimeout(()=>{n(!1)},o))},[t,o,f]),u=h.useCallback(()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]);return h.useEffect(()=>()=>f(),[f]),{isOpen:t,openCard:m,closeCard:p,cancelCloseTimer:u,triggerRef:c,contentRef:s,contentId:d,triggerId:g}},fl=h.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),ef=({children:e,value:o})=>r.jsx(fl.Provider,{value:o,children:e}),ml=()=>{const e=h.useContext(fl);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},of=({children:e,views:o,asChild:t=!1,...n})=>{const{openCard:a,closeCard:i,triggerRef:c,contentId:s,triggerId:d}=ml(),u={ref:c,onMouseEnter:()=>a(),onMouseLeave:()=>i(),onFocus:()=>a(),onBlur:()=>i(),id:d,"aria-describedby":s,...o==null?void 0:o.container,...n};if(t&&h.isValidElement(e)){const y=h.Children.only(e);return h.cloneElement(y,{...u,...y.props})}return r.jsx(l.View,{position:"relative",display:"inline-block",...u,children:e})},rf=({children:e,views:o,side:t="bottom",align:n="center",sideOffset:a=8,style:i,backgroundColor:c="color-white",borderRadius:s="4px",boxShadow:d="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:g="12px",minWidth:f="50px",maxWidth:m="300px",...p})=>{const{isOpen:u,cancelCloseTimer:y,closeCard:k,contentRef:x,triggerRef:C,contentId:w,triggerId:v}=ml(),{ref:S,relation:b}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0});h.useEffect(()=>{C!=null&&C.current&&(S==null?void 0:S.current)!==C.current&&S&&(S.current=C.current)},[C,S,u]);const T=()=>y(),F=()=>k();if(!u)return null;const W=()=>{if(!b||!(C!=null&&C.current))return{position:"absolute",top:0,left:0,zIndex:1e3};const z=C.current.getBoundingClientRect();let E=t;t==="bottom"&&b.space.vertical==="top"?E="top":t==="top"&&b.space.vertical==="bottom"?E="bottom":t==="right"&&b.space.horizontal==="left"?E="left":t==="left"&&b.space.horizontal==="right"&&(E="right");let A=0,H=0;switch(E){case"bottom":A=z.left+z.width/2,H=z.bottom+a;break;case"top":A=z.left+z.width/2,H=z.top-a;break;case"right":A=z.right+a,H=z.top+z.height/2;break;case"left":A=z.left-a,H=z.top+z.height/2;break}return{position:"fixed",left:A,top:H,zIndex:1e3,transform:j(E)}},j=z=>{switch(z){case"bottom":return"translate(-50%, 0)";case"top":return"translate(-50%, -100%)";case"right":return"translate(0, -50%)";case"left":return"translate(-100%, -50%)";default:return"translate(-50%, 0)"}},$=W();return r.jsx(l.View,{ref:x,id:w,role:"tooltip","aria-labelledby":v,onMouseEnter:T,onMouseLeave:F,backgroundColor:c,borderRadius:s,boxShadow:d,padding:g,minWidth:f,maxWidth:m,style:{...$,...i},...o==null?void 0:o.container,...p,children:e})},Fe=({children:e,views:o,openDelay:t,closeDelay:n,...a})=>{const i=Rh({openDelay:t,closeDelay:n});return r.jsx(ef,{value:i,children:r.jsx(l.View,{position:"relative",display:"inline-block",...o==null?void 0:o.container,...a,children:e})})};Fe.Trigger=of,Fe.Content=rf;const tf=({files:e,sandboxId:o,onRemove:t,layout:n="inline",maxHeight:a="120px",showPreviews:i=!1,views:c={}})=>{if(e.length===0)return null;const s=h.useCallback(g=>g<1024?`${g} B`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:`${(g/(1024*1024)).toFixed(1)} MB`,[]),d=h.useCallback(g=>g.type.startsWith("image/")?{backgroundColor:"#DBEAFE",color:"#2563EB"}:g.type.startsWith("video/")?{backgroundColor:"#EDE9FE",color:"#7C3AED"}:g.type.startsWith("audio/")?{backgroundColor:"#DCFCE7",color:"#16A34A"}:{backgroundColor:"#E2E8F0",color:"#475569"},[]);return r.jsx(l.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:a,overflowY:"auto",...c==null?void 0:c.container,children:e.map((g,f)=>{const m=(g==null?void 0:g.path)||(g==null?void 0:g.url)||(i?URL.createObjectURL(g):""),p=g.type.startsWith("image/"),u=g.type.startsWith("video/"),y=g.type.startsWith("audio/"),k=d(g);return i?r.jsx(l.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:i&&r.jsxs(Fe,{children:[r.jsxs(Fe.Trigger,{children:[p&&r.jsx(l.Image,{src:m,alt:g.name,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),u&&r.jsx(l.View,{as:"video",src:m,alt:g.name,controls:!1,muted:!0,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),y&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(So,{widthHeight:24,color:"color-black"})}),!p&&!u&&!y&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(io,{widthHeight:24,color:"color-black"})}),t&&r.jsx(l.Button,{...Xh.attachmentRemove,onClick:x=>{x.stopPropagation(),t(f)},"aria-label":`Remove ${g.name}`,children:"×"})]}),r.jsxs(Fe.Content,{children:[p&&r.jsx(l.Image,{src:m,alt:g.name,maxWidth:"100%"}),u&&r.jsx(l.View,{as:"video",src:m,controls:!0,maxWidth:"100%"}),y&&r.jsx(l.View,{as:"audio",src:m,controls:!0,width:"100%"}),r.jsxs(l.Text,{marginTop:"4px",maxLines:1,width:"100%",...c==null?void 0:c.name,children:[g.name," (",s(g.size),")"]})]})]})},f):r.jsxs(l.Horizontal,{alignItems:"center",gap:"8px",padding:"6px 10px 6px 8px",borderRadius:"9999px",border:"1px solid #E2E8F0",backgroundColor:"color-white",maxWidth:"100%",animate:{from:{opacity:0,scale:.96},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:[r.jsx(l.Center,{width:"22px",height:"22px",minWidth:"22px",borderRadius:"9999px",backgroundColor:k.backgroundColor,color:k.color,children:y?r.jsx(So,{widthHeight:12,color:"currentColor"}):r.jsx(io,{widthHeight:12,color:"currentColor"})}),r.jsxs(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-600",maxLines:1,maxWidth:"220px",...c==null?void 0:c.name,children:[g.name," · ",s(g.size)]}),t&&r.jsx(l.View,{as:"button",type:"button",onClick:()=>t(f),"aria-label":`Remove ${g.name}`,display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",minWidth:"16px",border:"none",backgroundColor:"transparent",color:"color-gray-400",padding:0,cursor:"pointer",transition:"color 0.2s ease, opacity 0.2s ease",_hover:{color:"color-gray-600"},children:"×"})]},f)})})},pl=typeof window<"u"?h.useLayoutEffect:h.useEffect,ul=h.forwardRef(({value:e,onChange:o,placeholder:t="Type your message...",disabled:n=!1,autoFocus:a=!0,suggestions:i=[],onSuggestionSelect:c,showSuggestions:s=!1,mentionData:d=[],mentionTrigger:g="@",onMentionSelect:f,maxHeight:m="200px",minHeight:p="40px",name:u,id:y,hiddenInput:k=!0,hiddenInputRef:x,views:C={}},w)=>{var ne,fe;const v=h.useRef(e),[S,b]=h.useState(-1),[T,F]=h.useState(!e),W=h.useRef(null),[j,$]=h.useState(!1),[z,E]=h.useState(!1),[A,H]=h.useState(""),[P,M]=h.useState(-1),[V,L]=h.useState(-1),[B,q]=h.useState([]),{ref:_,relation:O}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[U,K]=h.useState({x:0,y:0}),[N,D]=h.useState({x:0,y:0}),X=h.useRef(null),Z=h.useCallback(Y=>{X.current=Y,typeof x=="function"?x(Y):x&&(x.current=Y)},[x]),J=h.useCallback(Y=>{X.current&&X.current.value!==Y&&(X.current.value=Y)},[]);pl(()=>{const Y=w;Y!=null&&Y.current&&e!==v.current&&(Y.current.textContent=e,v.current=e,F(!e)),J(e)},[e,w,J]);const Q=h.useCallback(Y=>{if(Y===v.current)return;const R=w;R!=null&&R.current&&R.current.textContent!==Y&&(R.current.textContent=Y),v.current=Y,F(!Y),J(Y),o(Y)},[o,w,J]);pl(()=>{const Y=X.current;if(!Y)return;const R=()=>Q(Y.value);return Y.addEventListener("input",R),Y.addEventListener("change",R),()=>{Y.removeEventListener("input",R),Y.removeEventListener("change",R)}},[Q,k]),h.useEffect(()=>{a&&w&&typeof w=="object"&&w.current&&w.current.focus()},[a,w]);const oe=()=>{const Y=window.getSelection();if(!Y||Y.rangeCount===0)return-1;const R=Y.getRangeAt(0),we=R.cloneRange();return we.selectNodeContents(w&&typeof w=="object"&&w.current?w.current:document.body),we.setEnd(R.endContainer,R.endOffset),we.toString().length},re=h.useCallback((Y,R)=>{const we=Y.substring(0,R),Ae=we.lastIndexOf(g);if(Ae!==-1){const Ve=we.substring(Ae+1);if(!Ve.includes(" ")){const Oe=Ve.toLowerCase(),Ee=d.filter(ko=>ko.name.toLowerCase().includes(Oe));H(Oe),M(Ae),q(Ee),E(Ee.length>0),L(0);const No=ae();K(No);return}}E(!1),H(""),M(-1),L(-1)},[d,g]);h.useEffect(()=>{W.current&&_&&(_.current=W.current)},[W,_]);const ae=h.useCallback((Y=200)=>{if(!W.current)return{x:0,y:0};const R=W.current.getBoundingClientRect();if(O){const ze=O.space.vertical==="top";return{x:R.left,y:ze?R.top-Y-8:R.bottom+8}}const we=window.innerHeight,Ae={top:R.top,bottom:we-R.bottom},Ve=Ae.bottom<Y+8&&Ae.top>Ae.bottom;return{x:R.left,y:Ve?R.top-Y-8:R.bottom+8}},[O]),te=h.useCallback(()=>{$(!0);const Y=ae();D(Y)},[ae]),se=h.useCallback(()=>{setTimeout(()=>{$(!1),b(-1)},150)},[]),xe=Y=>{const R=Y.currentTarget.textContent||"";if(R!==v.current){o(R),v.current=R,J(R),F(!R);const we=oe();re(R,we)}},le=h.useCallback(Y=>{if(w&&typeof w=="object"&&w.current){const R=w.current.textContent||"",we=R.substring(0,P),Ae=R.substring(P+g.length+A.length),Ve=we+g+Y.name+" "+Ae;o(Ve),v.current=Ve,J(Ve),w.current.textContent=Ve;const ze=we.length+g.length+Y.name.length+1;setTimeout(()=>{var Oe;if(w.current){const Ee=document.createRange(),No=window.getSelection(),ko=w.current.firstChild;ko&&No&&(Ee.setStart(ko,Math.min(ze,((Oe=ko.textContent)==null?void 0:Oe.length)||0)),Ee.collapse(!0),No.removeAllRanges(),No.addRange(Ee))}},0)}E(!1),H(""),M(-1),L(-1),f&&f(Y)},[P,g,A,o,f,w,J]),de=h.useCallback(Y=>{c&&c(Y),b(-1)},[c]),ee=Y=>{if(z&&B.length>0){if(Y.key==="ArrowDown"){Y.preventDefault(),L(R=>R<B.length-1?R+1:0);return}if(Y.key==="ArrowUp"){Y.preventDefault(),L(R=>R>0?R-1:B.length-1);return}if((Y.key==="Tab"||Y.key==="Enter")&&V>=0){Y.preventDefault(),le(B[V]);return}if(Y.key==="Escape"){E(!1),L(-1);return}}if(s&&i.length>0){if(Y.key==="ArrowDown"){Y.preventDefault(),b(R=>R<i.length-1?R+1:0);return}if(Y.key==="ArrowUp"){Y.preventDefault(),b(R=>R>0?R-1:i.length-1);return}if(Y.key==="Tab"&&S>=0){Y.preventDefault(),de(i[S]);return}if(Y.key==="Escape"){b(-1);return}}};return r.jsxs(l.View,{ref:W,width:"100%",position:"relative",...C==null?void 0:C.container,children:[r.jsxs(l.View,{width:"100%",minHeight:p,maxHeight:m,overflowY:"auto",position:"relative",children:[T&&r.jsx(l.Text,{position:"absolute",top:"8px",left:"8px",color:"color-gray-400",pointerEvents:"none",fontSize:"14px",zIndex:1,...C==null?void 0:C.placeholder,children:t}),r.jsx(l.View,{as:"div",ref:w,contentEditable:!n,suppressContentEditableWarning:!0,onInput:xe,onKeyDown:ee,onFocus:te,onBlur:se,role:"textbox","aria-multiline":"true","aria-placeholder":t,width:"100%",minHeight:"24px",padding:"8px",outline:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:"14px",color:"color-gray-900",backgroundColor:"transparent",...C==null?void 0:C.input})]}),k&&r.jsx(l.View,{as:"textarea",ref:Z,id:y,name:u,defaultValue:e,disabled:n,tabIndex:-1,"aria-hidden":"true","data-editable-input-mirror":"true",opacity:0,width:1,height:1,padding:0,border:"none",resize:"none",overflow:"hidden",position:"absolute",bottom:0,left:0,pointerEvents:"none",...C==null?void 0:C.hiddenInput}),z&&B.length>0&&r.jsx(l.View,{position:"fixed",left:U.x,top:U.y,width:((ne=W.current)==null?void 0:ne.offsetWidth)||300,backgroundColor:"color-white",border:"2px solid",borderColor:"color-blue-300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9999,maxHeight:"200px",overflowY:"auto",...C==null?void 0:C.mentionContainer,children:r.jsxs(l.Vertical,{gap:0,children:[B.map((Y,R)=>r.jsx(l.View,{as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:R===V?"color-blue-50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>le(Y),onMouseEnter:()=>L(R),_hover:{backgroundColor:"color-blue-50"},...C==null?void 0:C.mentionItem,children:r.jsxs(l.Vertical,{gap:4,children:[r.jsxs(l.Text,{fontSize:"14px",color:"color-gray-900",fontWeight:"medium",children:[g,Y.name]}),Y.description&&r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",children:Y.description})]})},Y.id)),process.env.NODE_ENV==="development"&&r.jsxs("div",{style:{fontSize:"8px",opacity:.7,padding:"4px"},children:["Mentions (Trigger: ",g,")",O&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),"Space: ",O.space.vertical,"-",O.space.horizontal]})]})]})}),s&&i.length>0&&!z&&j&&!e&&r.jsx(l.View,{position:"fixed",left:N.x,top:N.y,width:((fe=W.current)==null?void 0:fe.offsetWidth)||300,backgroundColor:"color-white",border:"2px solid",borderColor:"color-green-300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9998,maxHeight:"200px",overflowY:"auto",...C==null?void 0:C.suggestionsContainer,children:r.jsxs(l.Vertical,{gap:0,children:[i.map((Y,R)=>r.jsx(l.View,{as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:R===S?"color-blue-50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>de(Y),onMouseEnter:()=>b(R),_hover:{backgroundColor:"color-blue-50"},...C==null?void 0:C.suggestionItem,children:r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontSize:"14px",color:"color-gray-900",fontWeight:"medium",children:Y.text}),Y.description&&r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",children:Y.description})]})},Y.id)),process.env.NODE_ENV==="development"&&r.jsxs("div",{style:{fontSize:"8px",opacity:.7,padding:"4px"},children:["Suggestions (Focus-triggered)",O&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),"Space: ",O.space.vertical,"-",O.space.horizontal]})]})]})})]})});ul.displayName="EditableInput";const nf=({examples:e,onSelect:o,views:t={}})=>{const{getColor:n}=l.useTheme();return!e||e.length===0?null:r.jsx(l.Horizontal,{gap:8,overflowX:"auto",padding:"8px 0",width:"100%",...t==null?void 0:t.container,children:e.map(a=>r.jsx(l.View,{as:"button",type:"button",padding:"8px 12px",borderRadius:"9999px",backgroundColor:"color-white",border:"1px solid #E2E8F0",cursor:"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",onClick:()=>o(a),_hover:{backgroundColor:"#F8FAFC",borderColor:"#CBD5E1"},...t==null?void 0:t.item,children:r.jsx(l.Text,{fontSize:"14px",color:"color-gray-700",...t==null?void 0:t.text,children:a.text})},a.id))})},af=({onRecordingComplete:e,onRecordingStart:o,views:t={}})=>{const{recording:n,paused:a,audioBlob:i,analyserNode:c,startRecording:s,stopRecording:d}=Jn();h.useEffect(()=>{if(i){const f=new File([i],`recording-${Date.now()}.webm`,{type:i.type||"audio/webm;codecs=opus"});e(f)}},[i]);const g=h.useCallback(()=>{s(),o==null||o()},[]);return r.jsxs(l.Horizontal,{alignItems:"center",gap:4,children:[r.jsx(l.View,{minWidth:90,children:n&&c&&r.jsx(xt,{analyserNode:c,isPaused:a})}),r.jsx(l.View,{as:"button",type:"button",onClick:n?d:g,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n?"theme-error":"color-gray-100",color:n?"color-white":"color-gray-600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:n?"color-red-600":"color-gray-200"},...t.button,children:n?r.jsx(xr,{widthHeight:16,color:"currentColor",filled:!1}):r.jsx(gt,{widthHeight:16,color:"currentColor",filled:!1})})]})},yl=h.memo(({onSubmit:e,placeholder:o="Type your message… use @ to mention",loading:t=!1,disabled:n=!1,isAgentRunning:a=!1,enableAudioRecording:i=!1,leftButtons:c,rightButtons:s,onStopAgent:d,loadingText:g="Agent is working...",autoFocus:f=!0,sandboxId:m,hideAttachments:p=!1,attachmentText:u="",promptExamples:y=[],suggestions:k=[],errorMessage:x,size:C="md",shape:w="rounded",variant:v="default",views:S={},mentionData:b=[],mentionTrigger:T="@",onMentionSelect:F,onAudioRecordingStart:W,onAudioRecordingStop:j,showGuideTip:$,guideVideoUrl:z,onGuideClose:E,onFileBrowse:A,onUploadProgress:H,onUploadSuccess:P,onUploadError:M,onFileUpload:V,onPromptExampleSelect:L,name:B,hiddenInput:q=!0,value:_,handleChange:O,setValue:U,handleSubmit:K,editableRef:N,fileInputRef:D,hiddenInputRef:X,isUploading:Z,uploadProgress:J,isDraggingOver:Q,uploadedFiles:oe,pendingFiles:re,getPendingFiles:ae,clearPendingFiles:te,removeUploadedFile:se,setPendingFiles:xe,setUploadedFiles:le,setIsUploading:de,startUpload:ee,selectedModel:ne,handleModelChange:fe,modelOptions:Y,subscriptionStatus:R,canAccessModel:we,isGuideTipShown:Ae,hideGuideTip:Ve,handlePromptExampleSelect:ze,handleDragOver:Oe,handleDragLeave:Ee,onChange:No,...ko})=>{l.useTheme();const Ic=h.useMemo(()=>({...gl.container,...Jh[w],...S==null?void 0:S.container}),[w,S==null?void 0:S.container]),nb=h.useMemo(()=>({...gl.content,...Qh[C],...Zh[v],...S==null?void 0:S.content}),[C,v,S==null?void 0:S.content]),pr=((_==null?void 0:_.trim().length)??0)>0||oe.length>0,ab=h.useCallback(ve=>{ee([ve]),j==null||j(ve)},[ee,j]),zn=h.useCallback(ve=>{const qo=ve.filter(Fc=>Fc.size>52428800?(console.error(`File size exceeds 50MB limit: ${Fc.name}`),!1):!0);qo.length>0&&ee(qo)},[ee]),lb=h.useCallback(ve=>{if(ve.preventDefault(),ve.stopPropagation(),Ee(ve),ve.dataTransfer.files.length>0){const qo=Array.from(ve.dataTransfer.files);zn(qo)}},[Ee,zn]),ib=h.useMemo(()=>[...b||[],...oe.map((ve,qo)=>({id:`file-${qo}`,name:ve.name}))],[b,oe]);return r.jsxs(l.View,{display:"flex",flexDirection:"column",boxSizing:"border-box",...Ic,...ko,onDragOver:Oe,onDragLeave:Ee,onDrop:lb,children:[y.length>0&&r.jsx(nf,{examples:y,onSelect:ze,views:{container:S==null?void 0:S.promptExamples,item:S==null?void 0:S.promptExampleItem}}),a&&r.jsxs(l.Horizontal,{justifyContent:"center",alignItems:"center",gap:8,padding:"8px 0",animate:{from:{opacity:0,y:-10},to:{opacity:1,y:0},duration:"0.3s"},...S==null?void 0:S.loadingIndicator,children:[r.jsx(ft,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),r.jsx(l.Text,{color:"color-gray-500",children:g})]}),r.jsx(l.View,{position:"relative",width:"100%",overflow:"visible",children:r.jsxs(l.View,{as:"form",onSubmit:K,overflow:"visible",display:"flex",flexDirection:"column",position:"relative",...nb,...Ic,paddingHorizontal:16,paddingVertical:10,backgroundColor:Q?"color-blue-50":void 0,children:[r.jsx(tf,{files:oe,sandboxId:m,onRemove:se,showPreviews:!0,views:{container:S==null?void 0:S.attachments,item:S==null?void 0:S.attachmentItem,name:S==null?void 0:S.attachmentName,size:S==null?void 0:S.attachmentSize,removeButton:S==null?void 0:S.attachmentRemove}}),r.jsx(ul,{ref:N,value:_||"",onChange:O,placeholder:o,disabled:n&&!a,autoFocus:f,suggestions:k||[],showSuggestions:k&&k.length>0&&!_,onSuggestionSelect:ve=>{O(ve.text)},mentionData:ib,mentionTrigger:T,onMentionSelect:F,name:B,hiddenInput:q,hiddenInputRef:X,views:{container:{},input:S==null?void 0:S.editableInput,hiddenInput:S==null?void 0:S.hiddenInput}}),r.jsxs(l.Horizontal,{justifyContent:"space-between",alignItems:"center",marginTop:"8px",children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[!p&&r.jsx(Sr,{accept:"*/*",icon:r.jsx(Go,{widthHeight:16}),maxSize:50*1024*1024,multiple:!0,onMultipleFileSelect:zn,isLoading:Z,progress:J||0,text:u,fileType:"file",renderError:({errorMessage:ve})=>null,views:{container:{height:"36px",cursor:"pointer",_hover:{backgroundColor:"color-gray-100"},...S==null?void 0:S.fileButton}},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,borderRadius:w==="rounded"?"50%":4,padding:10},textProps:{fontSize:"14px",color:"color-gray-600"},validateFile:ve=>ve.size>50*1024*1024?"File size exceeds 50MB limit":null}),c]}),r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[i&&r.jsx(af,{onRecordingStart:W,onRecordingComplete:ab,views:{button:S==null?void 0:S.recordButton}}),r.jsx(l.View,{as:"button",type:"button",onClick:K,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a?"theme-error":pr?"theme-primary":"color-gray-300",color:"color-white",borderRadius:w==="rounded"?"50%":4,border:"none",cursor:pr?"pointer":"not-allowed",disabled:!pr||t||n&&!a,transition:"background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease",_hover:{opacity:pr||a?.9:1},_active:{opacity:pr||a?.95:1},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px white, 0 0 0 4px theme-primary"},...S==null?void 0:S.submitButton,children:a?r.jsx(xr,{widthHeight:16,color:"currentColor",filled:!1}):t?r.jsx(Re,{type:"quarter",size:16,color:"color-white"}):r.jsx(ht,{widthHeight:16,color:"currentColor",filled:!1})}),s]})]})]})}),x&&r.jsx(l.Text,{color:"theme-error",marginTop:"4px",...S==null?void 0:S.bottomTip,children:x})]})}),lf=e=>{const{name:o,onSubmit:t,...n}=e,[a,i]=h.useState([]),c=ye({name:o,type:"text"}),s=p=>{c.onChangeText&&c.onChangeText(p)},d=(p,u)=>{t?t(p,u):s(p)},g=()=>a,f=()=>i([]),m=dl({...n,value:c.value||"",onChange:s,onSubmit:d});return r.jsx(yl,{...n,...m,name:o,value:c.value||"",onChange:s,onSubmit:d,error:c.error,getPendingFiles:g,clearPendingFiles:f})},cf=e=>{const o=ye(e),t=Va(o);return r.jsx(Ea,{...t,...o})},sf=e=>{const o=ye(e),t=Ya();return r.jsx(Ka,{...t,...o})},df=e=>{const o=ye(e),t=Da(e);return r.jsx(La,{...t,...o})},gf=e=>{let o=ye(e);o.selected=o.value;const t=ka({...e,value:o.value});return r.jsx(Sa,{...o,...t})},hf=e=>{const o=ye(e),t=va(e);return r.jsx(Fa,{...t,...o})},ff=e=>{const{name:o,...t}=e,{values:n,errors:a,touched:i,submitCount:c,setFieldValue:s,setFieldTouched:d}=De.useFormikContext(),g=De.getIn(n,o)||[],f=De.getIn(i,o)||c>0?De.getIn(a,o):void 0,m=h.useCallback(x=>{var w;const C=Array.isArray(x)?x.filter(v=>typeof v=="string"):[];s(o,C),(w=e.onTagsChange)==null||w.call(e,C)},[o,s,e.onTagsChange]),p=h.useCallback(()=>{var x;d(o,!0),(x=e.onBlur)==null||x.call(e)},[o,d,e.onBlur]),u=ol({...t,tags:g,onTagsChange:m,onBlur:p}),{tags:y,...k}=u;return r.jsx(rl,{...k,...t,tags:y,error:f})},mf=e=>{const o=ye(e),t=Wa(e);return r.jsx(Ha,{...t,...o})},pf=e=>{const o=ye(e,{focusable:!0}),{value:t,...n}=Vt(e);return r.jsx(Zo,{...n,...o})},uf=({visibleIcon:e=r.jsx(pt,{widthHeight:14}),hiddenIcon:o=r.jsx(mt,{widthHeight:14}),...t})=>{const n=ye(t,{focusable:!0}),{isVisible:a,setIsVisible:i,...c}=Xa(n);return r.jsx(Zo,{...c,type:a?"text":"password",isClearable:!1,right:r.jsx(l.View,{onClick:()=>{t.isDisabled||i(!a)},children:a?e:o})})},yf=({items:e,placeholder:o,searchPlaceholder:t,isMulti:n=!1,...a})=>{const i=ye(a),c=Qa(e,o,t);h.useEffect(()=>{if(n&&Array.isArray(i.value))c.setSelectedItems(i.value);else if(!n&&i.value){const d=typeof i.value=="object"?i.value:e.find(g=>g.value===i.value);d&&c.setSelectedItem(d)}},[i.value,n,e]);const s=d=>{i.onChange(d)};return r.jsx(el,{...c,...i,items:e,placeholder:o,isMulti:n,onSelect:s})},Wo=(e,o,t)=>Math.min(Math.max(e,o),t),bf=(e,o,t,n,a,i,c)=>{const s=n-t;let d;if(i==="horizontal"){const g=o.width,f=e-o.left;d=Wo(f/g,0,1)}else{const g=o.height,f=o.bottom-e;d=Wo(f/g,0,1)}if(c&&c.length>0){const g=t+d*s;let f=c[0],m=Math.abs(g-f);for(let p=1;p<c.length;p++){const u=Math.abs(g-c[p]);u<m&&(m=u,f=c[p])}return f}else{const g=t+d*s,f=Math.round(g/a)*a;return Wo(f,t,n)}},bl=({min:e=0,max:o=100,step:t=1,value:n,defaultValue:a,onChange:i,onDrag:c,orientation:s="horizontal",isDisabled:d=!1,stepValues:g})=>{const f=Wo(n??a??e,e,o),[m,p]=h.useState(f),[u,y]=h.useState(!1),[k,x]=h.useState(!1),C=h.useRef(null),w=h.useRef(null),v=n!==void 0,S=n!==void 0?n:m;h.useEffect(()=>{n!==void 0&&p(Wo(n,e,o))},[n,e,o]);const b=h.useCallback(E=>{const A=Wo(E,e,o);v||p(A),i&&A!==S&&i(A),u&&c&&c(A)},[v,e,o,i,S,u,c]),T=h.useCallback(E=>{if(d||!C.current)return;const A=C.current;if(typeof A.getBoundingClientRect!="function")return;const H=A.getBoundingClientRect();let P;"touches"in E?P=s==="horizontal"?E.touches[0].clientX:E.touches[0].clientY:P=s==="horizontal"?E.clientX:E.clientY;const M=bf(P,H,e,o,t,s,g);b(M)},[e,o,t,s,b,d,g]),F=h.useCallback(E=>{if(d)return;E.preventDefault(),y(!0),T(E);const A=P=>{T(P)},H=()=>{y(!1),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",A),document.removeEventListener("touchend",H)};typeof(document==null?void 0:document.addEventListener)=="function"&&(document.addEventListener("mousemove",A),document.addEventListener("mouseup",H),document.addEventListener("touchmove",A),document.addEventListener("touchend",H))},[T,d]),W=h.useCallback(E=>{const A=w.current;A&&typeof A.contains=="function"&&A.contains(E.target)||F(E)},[F]),j=h.useCallback(E=>{if(d)return;let A=S;switch(E.key){case"ArrowLeft":case"ArrowDown":A=S-t;break;case"ArrowRight":case"ArrowUp":A=S+t;break;case"Home":A=e;break;case"End":A=o;break;default:return}E.preventDefault(),b(A)},[S,e,o,t,b,d]),$=o-e,z=$===0?0:(S-e)/$*100;return{currentValue:S,isDragging:u,isHovered:k,setIsHovered:x,trackRef:C,thumbRef:w,handleThumbMouseDown:F,handleTrackMouseDown:W,handleKeyDown:j,thumbPositionPercent:z}},xl={xs:{height:4,width:"100%"},sm:{height:6,width:"100%"},md:{height:8,width:"100%"},lg:{height:10,width:"100%"},xl:{height:12,width:"100%"}},kl={xs:{width:12,height:12},sm:{width:16,height:16},md:{width:20,height:20},lg:{width:24,height:24},xl:{width:28,height:28}},Cl={square:0,rounded:4,pill:24},wl=(e=>({default:{backgroundColor:"color-gray-200",transition:"background-color 0.15s ease"},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color-gray-300",style:{backgroundColor:"transparent"},transition:"border-color 0.15s ease"}}))(),xf={xs:{trackCrossAxisSize:4,thumbSize:12},sm:{trackCrossAxisSize:6,thumbSize:16},md:{trackCrossAxisSize:8,thumbSize:20},lg:{trackCrossAxisSize:10,thumbSize:24},xl:{trackCrossAxisSize:12,thumbSize:28}},kf={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},Cf=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),tr=(e,o)=>Cf(o)?{style:{[e]:o}}:{[e]:o},Sl=h.memo(({min:e=0,max:o=100,step:t=1,currentValue:n,stepValues:a,shape:i="rounded",size:c="md",variant:s="default",orientation:d="horizontal",isDisabled:g=!1,showValue:f=!1,showTooltip:m=!1,backgroundColor:p="theme-primary",label:u,helperText:y,themeMode:k,shadow:x={},isDragging:C,isHovered:w,setIsHovered:v,trackRef:S,thumbRef:b,handleThumbMouseDown:T,handleTrackMouseDown:F,handleKeyDown:W,thumbPositionPercent:j,ariaLabel:$="Slider",views:z={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}},onChange:E,onDrag:A,value:H,defaultValue:P,...M})=>{var D,X;const V=p,L="theme-disabled",B=wl[s].backgroundColor,q=g?L:V,_=d==="vertical",{trackCrossAxisSize:O,thumbSize:U}=xf[c]||{trackCrossAxisSize:xl[c].height,thumbSize:kl[c].width||16},K=r.jsxs(l.Vertical,{width:"100%",gap:8,...z.container,...M,children:[u&&r.jsxs(l.Horizontal,{justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontSize:14,fontWeight:500,...z.label,children:u}),f&&r.jsx(l.Text,{fontSize:14,color:"color-gray-500",...z.valueLabel,children:n})]}),r.jsxs(l.View,{ref:S,position:"relative",cursor:g?"not-allowed":"pointer",opacity:g?.6:1,onMouseDown:F,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),...xl[c],borderRadius:Cl[i],backgroundColor:B,...wl[s],...x,...z.track,children:[a&&a.length>0&&r.jsx(r.Fragment,{children:a.map(Z=>{const J=(Z-e)/(o-e)*100;return r.jsx(l.View,{position:"absolute",top:"50%",left:`${J}%`,transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",zIndex:1,...tr("backgroundColor",q),...z.stepMarks},Z)})}),r.jsx(l.View,{position:"absolute",top:0,left:0,height:"100%",width:`${j}%`,borderRadius:Cl[i],transition:"width 0.1s ease-in-out",...tr("backgroundColor",q),...z.progress,...z.filledTrack}),r.jsx(l.View,{ref:b,role:"slider",tabIndex:g?-1:0,"aria-valuemin":e,"aria-valuemax":o,"aria-valuenow":n,"aria-orientation":d,"aria-disabled":g,"aria-label":$,position:"absolute",top:"50%",left:`${j}%`,borderRadius:"50%",backgroundColor:"color-white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",borderWidth:2,borderStyle:"solid",transition:C?"none":"transform 0.1s ease-in-out",...tr("borderColor",q),transform:w?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:T,onTouchStart:T,onKeyDown:W,...kl[c],...z.thumb,children:m&&(w||C)&&r.jsx(l.View,{position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:8,padding:"4px 8px",backgroundColor:"color-black",color:"color-white",borderRadius:4,fontSize:12,whiteSpace:"nowrap",zIndex:3,...z.tooltip,children:r.jsx(l.Text,{...(D=z.tooltip)==null?void 0:D.text,children:n==null?void 0:n.toFixed(t<1?1:0)})})})]}),y&&r.jsx(Ht,{children:y})]}),N=r.jsxs(l.Center,{...kf[d],position:"relative",onMouseEnter:()=>!g&&v(!0),onMouseLeave:()=>!g&&v(!1),...M,...z==null?void 0:z.container,children:[u&&r.jsxs(l.Horizontal,{justifyContent:"space-between",alignItems:"center",marginBottom:8,width:"100%",children:[r.jsx(l.Text,{fontSize:14,fontWeight:500,...z.label,children:u}),f&&r.jsx(l.Text,{fontSize:14,color:"color-gray-500",...z.valueLabel,children:n})]}),r.jsxs(l.View,{ref:S,position:"relative",borderRadius:O/2,backgroundColor:g?L:B,cursor:g?"not-allowed":"pointer",width:_?`${O}px`:"100%",height:_?"100%":`${O}px`,onMouseDown:F,onTouchStart:F,...z==null?void 0:z.track,children:[a&&a.length>0&&r.jsx(r.Fragment,{children:a.map(Z=>{const J=(Z-e)/(o-e)*100;return r.jsx(l.View,{position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:q,zIndex:1,..._?{bottom:`${J}%`,left:"50%",transform:"translate(-50%, 50%)"}:{left:`${J}%`,top:"50%",transform:"translate(-50%, -50%)"},...z.stepMarks},Z)})}),r.jsx(l.View,{position:"absolute",borderRadius:O/2,..._?{bottom:0,left:0,width:"100%",height:`${j}%`}:{top:0,left:0,height:"100%",width:`${j}%`},...tr("backgroundColor",q),...z==null?void 0:z.filledTrack,...z==null?void 0:z.progress}),r.jsx(l.View,{ref:b,role:"slider",tabIndex:g?-1:0,"aria-valuemin":e,"aria-valuemax":o,"aria-valuenow":n,"aria-orientation":d,"aria-disabled":g,"aria-label":$,position:"absolute",width:`${U}px`,height:`${U}px`,borderRadius:"50%",borderWidth:2,borderStyle:"solid",borderColor:"color-white",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:g?"not-allowed":"grab",transform:_?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s",...tr("backgroundColor",q),..._?{left:"50%",bottom:`${j}%`}:{top:"50%",left:`${j}%`},onMouseDown:T,onTouchStart:T,onKeyDown:W,...z==null?void 0:z.thumb,children:m&&(w||C)&&r.jsx(l.View,{position:"absolute",padding:"4px 8px",backgroundColor:"color-black",color:"color-white",borderRadius:"4px",whiteSpace:"nowrap",zIndex:3,..._?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},...z==null?void 0:z.tooltip,children:r.jsx(l.Text,{...(X=z==null?void 0:z.tooltip)==null?void 0:X.text,children:n==null?void 0:n.toFixed(t<1?1:0)})})})]}),y&&r.jsx(Ht,{marginTop:8,children:y})]});return _||m?N:K}),wf=e=>{const o=ye(e),t=bl({...e,value:o.value!==void 0?Number(o.value):void 0,onChange:n=>{var a;o.onChange(n),(a=e.onChange)==null||a.call(e,n)}});return r.jsx(Sl,{...e,...t,...o})},vl=e=>{if(e==null)return"";if(typeof e=="string"||typeof e=="number"){const o=String(e);return o==="[object Object]"?"":o}return""},Ot=(e,o)=>{console.log(`[FormikOTPInput] ${e}`,o)},Sf=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),vf=e=>{const o=ye(e),t=vl(o.value).slice(0,e.length||6);Ot("render",{name:e.name,type:e.type,formValue:Sf(o.value),displayValue:t,length:e.length||6,hasFormikOnChange:!!o.onChange,hasFormikOnChangeText:!!o.onChangeText});const{isFocused:n,setIsFocused:a,isHovered:i,setIsHovered:c,inputRef:s,containerRef:d,mirrorSelectionStart:g,mirrorSelectionEnd:f,setMirrorSelectionStart:m,setMirrorSelectionEnd:p,setInputRef:u,handleFocus:y,handleBlur:k,handleKeyDown:x,handlePaste:C}=tl(e),w=h.useCallback(S=>{const b=vl(S).slice(0,e.length||6);Ot("setValue",{name:e.name,incomingValue:S,nextValue:b,hasFormikOnChange:!!o.onChange,hasFormikOnChangeText:!!o.onChangeText}),o.onChange&&o.onChange(b),o.onChangeText&&o.onChangeText(b),e.onComplete&&b.length===(e.length||6)&&e.onComplete(b),s.current&&(s.current.value=b)},[o,e,s]),v=h.useCallback(S=>{var F,W,j;const b=typeof S=="string"?S:((F=S==null?void 0:S.currentTarget)==null?void 0:F.value)??((W=S==null?void 0:S.target)==null?void 0:W.value)??((j=S==null?void 0:S.nativeEvent)==null?void 0:j.text)??"",T=String(b).slice(0,e.length||6);Ot("handleChange normalized",{name:e.name,raw:b,newValue:T}),w(T),s.current&&(s.current.value=T)},[e.length,w,s]);return r.jsx(nl,{...e,...o,value:t,setValue:w,isFocused:n,setIsFocused:a,isHovered:i,setIsHovered:c,inputRef:s,containerRef:d,mirrorSelectionStart:g,mirrorSelectionEnd:f,setMirrorSelectionStart:m,setMirrorSelectionEnd:p,setInputRef:u,handleChange:v,handleFocus:y,handleBlur:k,handleKeyDown:x,handlePaste:C,stepValues:e.stepValues})},Tf=e=>Array.isArray(e)?e:e==null?[]:[e],Tl=({name:e,uploadFile:o,onUploadSuccess:t,onUploadError:n,transformResponse:a,onMultipleFileSelect:i,onFileSelect:c,multiple:s=!0,...d})=>{const{setFieldValue:g,setFieldTouched:f,values:m}=De.useFormikContext(),[p,u]=h.useState(!1),[y,k]=h.useState(0),x=h.useCallback(async v=>{if(!v||v.length===0)return;f(e,!0,!0),u(!0);const S=[];for(const b of v){k(0);try{const T=await o(b,W=>{k(W??0)}),F=a?a(T,b):T;S.push(F),t==null||t(b,F)}catch(T){n==null||n(b,T)}}if(S.length>0){const b=Tf(De.getIn(m,e));g(e,[...b,...S],!0),k(100)}else k(0);u(!1)},[e,n,t,f,g,a,o,m]),C=h.useCallback(async v=>{i==null||i(v),await x(v)},[x,i]),w=h.useCallback(async v=>{c==null||c(v),await x([v])},[x,c]);return r.jsx(Sr,{...d,multiple:s,onMultipleFileSelect:s?C:void 0,onFileSelect:s?void 0:w,isLoading:p,progress:y})};Tl.displayName="FormikUploader";const If=e=>{let o=ye(e);o.selected=o.value;const t=za(e);return r.jsx(Ma,{...t,...o})},Il=e=>{const[o,t]=h.useState(!1),[n,a]=h.useState(e);return{isHovered:o,setIsHovered:t,isToggle:n,setIsToggled:a}},Ff={square:0,rounded:8,pill:999},zf=(e,o)=>({outline:{backgroundColor:"color-white",color:e,borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",_hover:{backgroundColor:"color-gray-50",borderColor:"color-gray-300"},_active:{backgroundColor:"color-gray-100"},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{backgroundColor:"color-gray-50"},_active:{backgroundColor:"color-gray-100"},transition:"background-color 0.2s ease, color 0.2s ease"},link:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px",_hover:{opacity:.8},_active:{opacity:.9},transition:"opacity 0.2s ease"}}),Fl=h.memo(({children:e,shape:o="rounded",variant:t="ghost",isHovered:n,setIsHovered:a,isDisabled:i,isToggle:c,setIsToggled:s,onToggle:d,views:g,backgroundColor:f,color:m,themeMode:p,...u})=>{const{getColor:y,themeMode:k}=l.useTheme(),x=p??k,w=y(i?"theme-disabled":f??m??"theme-primary",{themeMode:x}),S=h.useMemo(()=>zf(w),[w,x])[t],b=!!c,T=h.useCallback(()=>a(!0),[a]),F=h.useCallback(()=>{i||s(W=>{const j=!W;return d&&d(j),j})},[i,s,d]);return r.jsx(l.Center,{role:"Toggle",padding:o==="pill"?"8px 12px":"8px",width:"fit-content",cursor:i?"not-allowed":"pointer",borderRadius:Ff[o],onClick:F,onMouseEnter:T,onMouseLeave:()=>a(!1),...S,...b&&{...t==="link"?{backgroundColor:"transparent"}:{backgroundColor:"color-blue-50",borderWidth:1,borderStyle:"solid",borderColor:"color-blue-200"},color:w},...u,...g==null?void 0:g.container,children:e})}),Mf=({children:e,shape:o,variant:t,isDisabled:n,isToggled:a=!1,onToggle:i,...c})=>{const s=ye(c),{isHovered:d,setIsHovered:g,isToggle:f,setIsToggled:m}=Il(s.value??a);h.useEffect(()=>{m(s.value??a)},[s.value,a]);const p=u=>{m(u),s.onChange(u),i==null||i(u)};return r.jsx(Fl,{shape:o,variant:t,isDisabled:n,isHovered:d,setIsHovered:g,isToggle:f,setIsToggled:m,onToggle:p,...c,children:e})},zl=()=>{const[e,o]=h.useState([]);return{activeToggles:e,setActiveToggles:o}},Nt=({children:e,shape:o,variant:t,isDisabled:n,isToggled:a=!1,onToggle:i,...c})=>{const{isHovered:s,setIsHovered:d,isToggle:g,setIsToggled:f}=Il(a);return h.useEffect(()=>{f(a)},[a]),r.jsx(Fl,{shape:o,variant:t,isDisabled:n,isHovered:s,setIsHovered:d,isToggle:g,setIsToggled:f,onToggle:i,...c,children:e})},Ml=({items:e,onToggleChange:o,activeToggles:t,setActiveToggles:n,shape:a="rounded",variant:i="ghost",views:c})=>{const s=h.useCallback((d,g)=>{n(f=>{let m;return g?m=f.includes(d)?f:[...f,d]:m=f.filter(p=>p!==d),o==null||o(m),m})},[o,n]);return r.jsx(l.Horizontal,{role:"ToggleGroup",display:"flex",gap:8,flexWrap:"wrap",...c==null?void 0:c.container,children:e.map(d=>r.jsx(Nt,{role:`toggle-${d.id}`,shape:a,variant:i,isToggled:t.includes(d.id)||d.isActive,onToggle:g=>s(d.id,g),isDisabled:d.isDisabled,views:c==null?void 0:c.toggle,children:d.value},d.id))})},Wf=({items:e,shape:o,variant:t,onToggleChange:n,...a})=>{const i=ye(a),{activeToggles:c,setActiveToggles:s}=zl();h.useEffect(()=>{Array.isArray(i.value)&&s(i.value)},[i.value]);const d=g=>{s(g),i.onChange(g),n==null||n(g)};return r.jsx(Ml,{items:e,shape:o,variant:t,activeToggles:c,setActiveToggles:s,onToggleChange:d,...a})},Wl=["zoom-out","zoom-in","zap","zap-off","youtube","x","wrench","worm","workflow","wine","wine-off","wind","wind-arrow-down","wifi","wifi-zero","wifi-sync","wifi-pen","wifi-off","wifi-low","wifi-high","wifi-cog","whole-word","wheat","wheat-off","weight","weight-tilde","webhook","webhook-off","webcam","waypoints","waves","waves-ladder","waves-arrow-up","waves-arrow-down","watch","washing-machine","warehouse","wand","wand-sparkles","wallpaper","wallet","wallet-minimal","wallet-cards","vote","volume","volume-x","volume-off","volume-2","volume-1","volleyball","voicemail","view","videotape","video","video-off","vibrate","vibrate-off","venus","venus-and-mars","venetian-mask","vegan","vector-square","vault","variable","van","utility-pole","utensils","utensils-crossed","users","users-round","user","user-x","user-star","user-search","user-round","user-round-x","user-round-search","user-round-plus","user-round-pen","user-round-minus","user-round-cog","user-round-check","user-plus","user-pen","user-minus","user-lock","user-cog","user-check","usb","upload","unplug","unlink","unlink-2","university","ungroup","unfold-vertical","unfold-horizontal","undo","undo-dot","undo-2","underline","umbrella","umbrella-off","type","type-outline","twitter","twitch","tv","tv-minimal","tv-minimal-play","turtle","turntable","turkish-lira","truck","truck-electric","trophy","triangle","triangle-right","triangle-dashed","triangle-alert","trending-up","trending-up-down","trending-down","trello","trees","tree-pine","tree-palm","tree-deciduous","trash","trash-2","transgender","tram-front","train-track","train-front","train-front-tunnel","traffic-cone","tractor","toy-brick","tower-control","touchpad","touchpad-off","torus","tornado","toolbox","tool-case","toilet","toggle-right","toggle-left","timer","timer-reset","timer-off","tickets","tickets-plane","ticket","ticket-x","ticket-slash","ticket-plus","ticket-percent","ticket-minus","ticket-check","thumbs-up","thumbs-down","thermometer","thermometer-sun","thermometer-snowflake","theater","text-wrap","text-select","text-search","text-quote","text-initial","text-cursor","text-cursor-input","text-align-start","text-align-justify","text-align-end","text-align-center","test-tubes","test-tube","test-tube-diagonal","terminal","tent","tent-tree","telescope","target","tangent","tally-5","tally-4","tally-3","tally-2","tally-1","tags","tag","tablets","tablet","tablet-smartphone","table","table-rows-split","table-properties","table-of-contents","table-columns-split","table-cells-split","table-cells-merge","table-2","syringe","swords","sword","switch-camera","swiss-franc","swatch-book","superscript","sunset","sunrise","sun","sun-snow","sun-moon","sun-medium","sun-dim","subscript","strikethrough","stretch-vertical","stretch-horizontal","store","stone","sticky-note","sticker","stethoscope","step-forward","step-back","star","star-off","star-half","stamp","squirrel","squircle","squircle-dashed","squares-unite","squares-subtract","squares-intersect","squares-exclude","square","square-x","square-user","square-user-round","square-terminal","square-stop","square-star","square-stack","square-square","square-split-vertical","square-split-horizontal","square-slash","square-sigma","square-scissors","square-round-corner","square-radical","square-power","square-plus","square-play","square-pilcrow","square-pi","square-percent","square-pen","square-pause","square-parking","square-parking-off","square-mouse-pointer","square-minus","square-menu","square-m","square-library","square-kanban","square-function","square-equal","square-dot","square-divide","square-dashed","square-dashed-top-solid","square-dashed-mouse-pointer","square-dashed-kanban","square-dashed-bottom","square-dashed-bottom-code","square-code","square-chevron-up","square-chevron-right","square-chevron-left","square-chevron-down","square-check","square-check-big","square-chart-gantt","square-bottom-dashed-scissors","square-asterisk","square-arrow-up","square-arrow-up-right","square-arrow-up-left","square-arrow-right","square-arrow-out-up-right","square-arrow-out-up-left","square-arrow-out-down-right","square-arrow-out-down-left","square-arrow-left","square-arrow-down","square-arrow-down-right","square-arrow-down-left","square-activity","sprout","spray-can","spotlight","spool","split","spline","spline-pointer","spell-check","spell-check-2","speech","speaker","sparkles","sparkle","spade","space","soup","solar-panel","sofa","soap-dispenser-droplet","snowflake","snail","smile","smile-plus","smartphone","smartphone-nfc","smartphone-charging","sliders-vertical","sliders-horizontal","slice","slash","slack","skull","skip-forward","skip-back","siren","signpost","signpost-big","signature","signal","signal-zero","signal-medium","signal-low","signal-high","sigma","shuffle","shrub","shrink","shrimp","shredder","shower-head","shovel","shopping-cart","shopping-basket","shopping-bag","shirt","ship","ship-wheel","shield","shield-x","shield-user","shield-question-mark","shield-plus","shield-off","shield-minus","shield-half","shield-ellipsis","shield-check","shield-ban","shield-alert","shell","sheet","share","share-2","shapes","settings","settings-2","server","server-off","server-crash","server-cog","separator-vertical","separator-horizontal","send","send-to-back","send-horizontal","section","search","search-x","search-slash","search-code","search-check","search-alert","scroll","scroll-text","screen-share","screen-share-off","scooter","scissors","scissors-line-dashed","school","scan","scan-text","scan-search","scan-qr-code","scan-line","scan-heart","scan-face","scan-eye","scan-barcode","scaling","scale","scale-3d","save","save-off","save-all","saudi-riyal","satellite","satellite-dish","sandwich","salad","sailboat","russian-ruble","ruler","ruler-dimension-line","rss","rows-4","rows-3","rows-2","router","route","route-off","rotate-cw","rotate-cw-square","rotate-ccw","rotate-ccw-square","rotate-ccw-key","rotate-3d","rose","roller-coaster","rocking-chair","rocket","ribbon","rewind","reply","reply-all","replace","replace-all","repeat","repeat-2","repeat-1","remove-formatting","regex","refrigerator","refresh-cw","refresh-cw-off","refresh-ccw","refresh-ccw-dot","redo","redo-dot","redo-2","recycle","rectangle-vertical","rectangle-horizontal","rectangle-goggles","rectangle-ellipsis","rectangle-circle","receipt","receipt-turkish-lira","receipt-text","receipt-swiss-franc","receipt-russian-ruble","receipt-pound-sterling","receipt-japanese-yen","receipt-indian-rupee","receipt-euro","receipt-cent","ratio","rat","rainbow","rail-symbol","radius","radio","radio-tower","radio-receiver","radical","radiation","radar","rabbit","quote","qr-code","pyramid","puzzle","proportions","projector","printer","printer-check","presentation","power","power-off","pound-sterling","popsicle","popcorn","pointer","pointer-off","podcast","pocket","pocket-knife","plus","plug","plug-zap","plug-2","play","plane","plane-takeoff","plane-landing","pizza","pipette","pin","pin-off","pill","pill-bottle","pilcrow","pilcrow-right","pilcrow-left","piggy-bank","picture-in-picture","picture-in-picture-2","pickaxe","piano","pi","phone","phone-outgoing","phone-off","phone-missed","phone-incoming","phone-forwarded","phone-call","philippine-peso","person-standing","percent","pentagon","pencil","pencil-ruler","pencil-off","pencil-line","pen","pen-tool","pen-off","pen-line","pc-case","paw-print","pause","party-popper","parking-meter","parentheses","paperclip","panels-top-left","panels-right-bottom","panels-left-bottom","panel-top","panel-top-open","panel-top-dashed","panel-top-close","panel-top-bottom-dashed","panel-right","panel-right-open","panel-right-dashed","panel-right-close","panel-left","panel-left-right-dashed","panel-left-open","panel-left-dashed","panel-left-close","panel-bottom","panel-bottom-open","panel-bottom-dashed","panel-bottom-close","panda","palette","paintbrush","paintbrush-vertical","paint-roller","paint-bucket","package","package-x","package-search","package-plus","package-open","package-minus","package-check","package-2","origami","orbit","option","omega","octagon","octagon-x","octagon-pause","octagon-minus","octagon-alert","nut","nut-off","notepad-text","notepad-text-dashed","notebook","notebook-text","notebook-tabs","notebook-pen","non-binary","nfc","newspaper","network","navigation","navigation-off","navigation-2","navigation-2-off","music","music-4","music-3","music-2","move","move-vertical","move-up","move-up-right","move-up-left","move-right","move-left","move-horizontal","move-down","move-down-right","move-down-left","move-diagonal","move-diagonal-2","move-3d","mouse","mouse-pointer","mouse-pointer-click","mouse-pointer-ban","mouse-pointer-2","mouse-pointer-2-off","mouse-off","mountain","mountain-snow","motorbike","moon","moon-star","monitor","monitor-x","monitor-up","monitor-stop","monitor-speaker","monitor-smartphone","monitor-play","monitor-pause","monitor-off","monitor-down","monitor-dot","monitor-cog","monitor-cloud","monitor-check","minus","minimize","minimize-2","milk","milk-off","milestone","microwave","microscope","microchip","mic","mic-vocal","mic-off","messages-square","message-square","message-square-x","message-square-warning","message-square-text","message-square-share","message-square-reply","message-square-quote","message-square-plus","message-square-off","message-square-more","message-square-lock","message-square-heart","message-square-dot","message-square-diff","message-square-dashed","message-square-code","message-circle","message-circle-x","message-circle-warning","message-circle-reply","message-circle-question-mark","message-circle-plus","message-circle-off","message-circle-more","message-circle-heart","message-circle-dashed","message-circle-code","merge","menu","memory-stick","meh","megaphone","megaphone-off","medal","maximize","maximize-2","martini","mars","mars-stroke","map","map-plus","map-pinned","map-pin","map-pin-x","map-pin-x-inside","map-pin-plus","map-pin-plus-inside","map-pin-pen","map-pin-off","map-pin-minus","map-pin-minus-inside","map-pin-house","map-pin-check","map-pin-check-inside","map-minus","mails","mailbox","mail","mail-x","mail-warning","mail-search","mail-question-mark","mail-plus","mail-open","mail-minus","mail-check","magnet","luggage","lollipop","logs","log-out","log-in","lock","lock-open","lock-keyhole","lock-keyhole-open","locate","locate-off","locate-fixed","loader","loader-pinwheel","loader-circle","list","list-x","list-video","list-tree","list-todo","list-start","list-restart","list-plus","list-ordered","list-music","list-minus","list-indent-increase","list-indent-decrease","list-filter","list-filter-plus","list-end","list-collapse","list-chevrons-up-down","list-chevrons-down-up","list-checks","list-check","linkedin","link","link-2","link-2-off","line-squiggle","lightbulb","lightbulb-off","ligature","life-buoy","library","library-big","lectern","leafy-green","leaf","layout-template","layout-panel-top","layout-panel-left","layout-list","layout-grid","layout-dashboard","layers","layers-plus","layers-2","laugh","lasso","lasso-select","laptop","laptop-minimal","laptop-minimal-check","languages","landmark","land-plot","lamp","lamp-wall-up","lamp-wall-down","lamp-floor","lamp-desk","lamp-ceiling","keyboard","keyboard-off","keyboard-music","key","key-square","key-round","kayak","kanban","joystick","japanese-yen","iteration-cw","iteration-ccw","italic","instagram","inspection-panel","info","infinity","indian-rupee","inbox","import","images","image","image-upscale","image-up","image-plus","image-play","image-off","image-minus","image-down","id-card","id-card-lanyard","ice-cream-cone","ice-cream-bowl","house","house-wifi","house-plus","house-plug","house-heart","hourglass","hotel","hospital","hop","hop-off","history","highlighter","hexagon","helicopter","heater","heart","heart-pulse","heart-plus","heart-off","heart-minus","heart-handshake","heart-crack","headset","headphones","headphone-off","heading","heading-6","heading-5","heading-4","heading-3","heading-2","heading-1","hdmi-port","hd","haze","hat-glasses","hash","hard-hat","hard-drive","hard-drive-upload","hard-drive-download","handshake","handbag","hand","hand-platter","hand-metal","hand-helping","hand-heart","hand-grab","hand-fist","hand-coins","hammer","hamburger","ham","guitar","group","grip","grip-vertical","grip-horizontal","grid-3x3","grid-3x2","grid-2x2","grid-2x2-x","grid-2x2-plus","grid-2x2-check","grape","graduation-cap","gpu","goal","globe","globe-lock","glasses","glass-water","gitlab","github","git-pull-request","git-pull-request-draft","git-pull-request-create","git-pull-request-create-arrow","git-pull-request-closed","git-pull-request-arrow","git-merge","git-graph","git-fork","git-compare","git-compare-arrows","git-commit-vertical","git-commit-horizontal","git-branch","git-branch-plus","git-branch-minus","gift","ghost","georgian-lari","gem","gavel","gauge","gamepad","gamepad-directional","gamepad-2","gallery-vertical","gallery-vertical-end","gallery-thumbnails","gallery-horizontal","gallery-horizontal-end","funnel","funnel-x","funnel-plus","fullscreen","fuel","frown","framer","frame","forward","form","forklift","footprints","folders","folder","folder-x","folder-up","folder-tree","folder-sync","folder-symlink","folder-search","folder-search-2","folder-root","folder-plus","folder-pen","folder-output","folder-open","folder-open-dot","folder-minus","folder-lock","folder-key","folder-kanban","folder-input","folder-heart","folder-git","folder-git-2","folder-down","folder-dot","folder-cog","folder-code","folder-closed","folder-clock","folder-check","folder-archive","fold-vertical","fold-horizontal","focus","flower","flower-2","flip-vertical","flip-vertical-2","flip-horizontal","flip-horizontal-2","flask-round","flask-conical","flask-conical-off","flashlight","flashlight-off","flame","flame-kindling","flag","flag-triangle-right","flag-triangle-left","flag-off","fishing-hook","fish","fish-symbol","fish-off","fire-extinguisher","fingerprint-pattern","film","files","file","file-x","file-x-corner","file-volume","file-video-camera","file-user","file-up","file-type","file-type-corner","file-text","file-terminal","file-symlink","file-stack","file-spreadsheet","file-sliders","file-signal","file-search","file-search-corner","file-scan","file-question-mark","file-plus","file-plus-corner","file-play","file-pen","file-pen-line","file-output","file-music","file-minus","file-minus-corner","file-lock","file-key","file-input","file-image","file-heart","file-headphone","file-exclamation-point","file-down","file-digit","file-diff","file-cog","file-code","file-code-corner","file-clock","file-check","file-check-corner","file-chart-pie","file-chart-line","file-chart-column","file-chart-column-increasing","file-braces","file-braces-corner","file-box","file-badge","file-axis-3d","file-archive","figma","ferris-wheel","fence","feather","fast-forward","fan","factory","facebook","eye","eye-off","eye-closed","external-link","expand","ev-charger","euro","ethernet-port","eraser","equal","equal-not","equal-approximately","ellipsis","ellipsis-vertical","egg","egg-off","egg-fried","eclipse","earth","earth-lock","ear","ear-off","dumbbell","drumstick","drum","droplets","droplet","droplet-off","drone","drill","dribbble","drama","drafting-compass","download","dot","door-open","door-closed","door-closed-locked","donut","dollar-sign","dog","dock","dna","dna-off","divide","disc","disc-album","disc-3","disc-2","diff","dices","dice-6","dice-5","dice-4","dice-3","dice-2","dice-1","diamond","diamond-plus","diamond-percent","diamond-minus","diameter","dessert","delete","decimals-arrow-right","decimals-arrow-left","database","database-zap","database-backup","dam","cylinder","currency","cup-soda","cuboid","crown","crosshair","cross","crop","croissant","credit-card","creative-commons","cpu","corner-up-right","corner-up-left","corner-right-up","corner-right-down","corner-left-up","corner-left-down","corner-down-right","corner-down-left","copyright","copyleft","copy","copy-x","copy-slash","copy-plus","copy-minus","copy-check","cooking-pot","cookie","contrast","container","contact","contact-round","construction","cone","concierge-bell","computer","component","compass","command","combine","columns-4","columns-3","columns-3-cog","columns-2","coins","cog","coffee","codesandbox","codepen","code","code-xml","club","clover","cloudy","cloud","cloud-upload","cloud-sync","cloud-sun","cloud-sun-rain","cloud-snow","cloud-rain","cloud-rain-wind","cloud-off","cloud-moon","cloud-moon-rain","cloud-lightning","cloud-hail","cloud-fog","cloud-drizzle","cloud-download","cloud-cog","cloud-check","cloud-backup","cloud-alert","closed-caption","clock","clock-plus","clock-fading","clock-check","clock-arrow-up","clock-arrow-down","clock-alert","clock-9","clock-8","clock-7","clock-6","clock-5","clock-4","clock-3","clock-2","clock-12","clock-11","clock-10","clock-1","clipboard","clipboard-x","clipboard-type","clipboard-plus","clipboard-pen","clipboard-pen-line","clipboard-paste","clipboard-minus","clipboard-list","clipboard-copy","clipboard-clock","clipboard-check","clapperboard","citrus","circuit-board","circle","circle-x","circle-user","circle-user-round","circle-stop","circle-star","circle-small","circle-slash","circle-slash-2","circle-question-mark","circle-power","circle-pound-sterling","circle-plus","circle-play","circle-pile","circle-percent","circle-pause","circle-parking","circle-parking-off","circle-off","circle-minus","circle-gauge","circle-fading-plus","circle-fading-arrow-up","circle-equal","circle-ellipsis","circle-dot","circle-dot-dashed","circle-dollar-sign","circle-divide","circle-dashed","circle-chevron-up","circle-chevron-right","circle-chevron-left","circle-chevron-down","circle-check","circle-check-big","circle-arrow-up","circle-arrow-right","circle-arrow-out-up-right","circle-arrow-out-up-left","circle-arrow-out-down-right","circle-arrow-out-down-left","circle-arrow-left","circle-arrow-down","circle-alert","cigarette","cigarette-off","church","chromium","chevrons-up","chevrons-up-down","chevrons-right","chevrons-right-left","chevrons-left","chevrons-left-right","chevrons-left-right-ellipsis","chevrons-down","chevrons-down-up","chevron-up","chevron-right","chevron-left","chevron-last","chevron-first","chevron-down","chess-rook","chess-queen","chess-pawn","chess-knight","chess-king","chess-bishop","cherry","chef-hat","check","check-line","check-check","chart-spline","chart-scatter","chart-pie","chart-no-axes-gantt","chart-no-axes-combined","chart-no-axes-column","chart-no-axes-column-increasing","chart-no-axes-column-decreasing","chart-network","chart-line","chart-gantt","chart-column","chart-column-stacked","chart-column-increasing","chart-column-decreasing","chart-column-big","chart-candlestick","chart-bar","chart-bar-stacked","chart-bar-increasing","chart-bar-decreasing","chart-bar-big","chart-area","cctv","cat","castle","cast","cassette-tape","case-upper","case-sensitive","case-lower","carrot","card-sim","caravan","car","car-taxi-front","car-front","captions","captions-off","cannabis","cannabis-off","candy","candy-off","candy-cane","camera","camera-off","calendars","calendar","calendar-x","calendar-x-2","calendar-sync","calendar-search","calendar-range","calendar-plus","calendar-plus-2","calendar-off","calendar-minus","calendar-minus-2","calendar-heart","calendar-fold","calendar-days","calendar-cog","calendar-clock","calendar-check","calendar-check-2","calendar-arrow-up","calendar-arrow-down","calendar-1","calculator","cake","cake-slice","cable","cable-car","bus","bus-front","building","building-2","bug","bug-play","bug-off","bubbles","brush","brush-cleaning","bring-to-front","briefcase","briefcase-medical","briefcase-conveyor-belt","briefcase-business","brick-wall","brick-wall-shield","brick-wall-fire","brain","brain-cog","brain-circuit","brackets","braces","boxes","box","bow-arrow","bottle-wine","bot","bot-off","bot-message-square","boom-box","bookmark","bookmark-x","bookmark-plus","bookmark-minus","bookmark-check","book","book-x","book-user","book-up","book-up-2","book-type","book-text","book-search","book-plus","book-open","book-open-text","book-open-check","book-minus","book-marked","book-lock","book-key","book-image","book-heart","book-headphones","book-down","book-dashed","book-copy","book-check","book-audio","book-alert","book-a","bone","bomb","bolt","bold","bluetooth","bluetooth-searching","bluetooth-off","bluetooth-connected","blocks","blinds","blend","bitcoin","birdhouse","bird","biohazard","binoculars","binary","bike","biceps-flexed","between-vertical-start","between-vertical-end","between-horizontal-start","between-horizontal-end","bell","bell-ring","bell-plus","bell-off","bell-minus","bell-electric","bell-dot","beer","beer-off","beef","bed","bed-single","bed-double","bean","bean-off","beaker","battery","battery-warning","battery-plus","battery-medium","battery-low","battery-full","battery-charging","bath","baseline","barrel","barcode","banknote","banknote-x","banknote-arrow-up","banknote-arrow-down","bandage","banana","ban","balloon","baggage-claim","badge","badge-x","badge-turkish-lira","badge-swiss-franc","badge-russian-ruble","badge-question-mark","badge-pound-sterling","badge-plus","badge-percent","badge-minus","badge-japanese-yen","badge-info","badge-indian-rupee","badge-euro","badge-dollar-sign","badge-check","badge-cent","badge-alert","backpack","baby","axis-3d","axe","award","audio-waveform","audio-lines","atom","at-sign","asterisk","arrows-up-from-line","arrow-up","arrow-up-z-a","arrow-up-wide-narrow","arrow-up-to-line","arrow-up-right","arrow-up-narrow-wide","arrow-up-left","arrow-up-from-line","arrow-up-from-dot","arrow-up-down","arrow-up-a-z","arrow-up-1-0","arrow-up-0-1","arrow-right","arrow-right-to-line","arrow-right-left","arrow-right-from-line","arrow-left","arrow-left-to-line","arrow-left-right","arrow-left-from-line","arrow-down","arrow-down-z-a","arrow-down-wide-narrow","arrow-down-up","arrow-down-to-line","arrow-down-to-dot","arrow-down-right","arrow-down-narrow-wide","arrow-down-left","arrow-down-from-line","arrow-down-a-z","arrow-down-1-0","arrow-down-0-1","arrow-big-up","arrow-big-up-dash","arrow-big-right","arrow-big-right-dash","arrow-big-left","arrow-big-left-dash","arrow-big-down","arrow-big-down-dash","armchair","archive","archive-x","archive-restore","apple","app-window","app-window-mac","aperture","anvil","antenna","annoyed","angry","anchor","amphora","ampersands","ampersand","ambulance","align-vertical-space-between","align-vertical-space-around","align-vertical-justify-start","align-vertical-justify-end","align-vertical-justify-center","align-vertical-distribute-start","align-vertical-distribute-end","align-vertical-distribute-center","align-start-vertical","align-start-horizontal","align-horizontal-space-between","align-horizontal-space-around","align-horizontal-justify-start","align-horizontal-justify-end","align-horizontal-justify-center","align-horizontal-distribute-start","align-horizontal-distribute-end","align-horizontal-distribute-center","align-end-vertical","align-end-horizontal","align-center-vertical","align-center-horizontal","album","alarm-smoke","alarm-clock","alarm-clock-plus","alarm-clock-off","alarm-clock-minus","alarm-clock-check","airplay","air-vent","activity","accessibility","a-large-small","a-arrow-up","a-arrow-down"],Hl=e=>{const{value:o,defaultValue:t,onChange:n,isOpen:a,onOpen:i,onClose:c,closeOnSelect:s=!0}=e,[d,g]=h.useState(a??!1),[f,m]=h.useState(o??t),[p,u]=h.useState(""),y=h.useRef(null),k=h.useRef(null);h.useEffect(()=>{o!==void 0&&m(o)},[o]),h.useEffect(()=>{a!==void 0&&g(a)},[a]);const x=h.useMemo(()=>p?Wl.filter(b=>b.toLowerCase().includes(p.toLowerCase())).slice(0,100):Wl.slice(0,100),[p]);h.useEffect(()=>{const b=T=>{d&&y.current&&k.current&&!y.current.contains(T.target)&&!k.current.contains(T.target)&&C()};if(typeof(document==null?void 0:document.addEventListener)=="function")return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[d]);const C=h.useCallback(()=>{a===void 0&&g(!1),c&&c()},[c,a]),w=h.useCallback(()=>{const b=!d;a===void 0&&g(b),b?(i&&i(),u("")):c&&c()},[d,i,c,a]),v=h.useCallback(b=>{o===void 0&&m(b),n&&n(b),s&&C()},[n,s,C,o]),S=h.useCallback(b=>{u(b)},[]);return{isOpen:d,selectedIcon:f,searchQuery:p,filteredIcons:x,handleToggle:w,handleIconSelect:v,handleSearchChange:S,handleClose:C,triggerRef:y,dropdownRef:k}},Ho={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out"},dropdown:{position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"280px",maxHeight:"320px",overflow:"hidden",display:"flex",flexDirection:"column"},searchInput:{marginBottom:"12px",flexShrink:0},iconGrid:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"8px",overflowY:"auto",padding:"4px",color:"color-black",flexGrow:1},iconItem:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:8,transition:"all 0.2s ease-in-out"}},Hf={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"14px",padding:"10px 14px"},xl:{height:"56px",fontSize:"16px",padding:"12px 16px"}},jf={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Pf={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},jl=({label:e,placeholder:o="Select an icon",helperText:t,views:n={},size:a="md",shape:i="default",variant:c="default",error:s=!1,isDisabled:d=!1,isReadOnly:g=!1,showSearch:f=!0,isOpen:m,selectedIcon:p,searchQuery:u,filteredIcons:y,handleToggle:k,handleIconSelect:x,handleSearchChange:C,triggerRef:w,dropdownRef:v,handleClose:S,onChange:b,value:T,defaultValue:F,onOpen:W,onClose:j,closeOnSelect:$,...z})=>{const{getColor:E}=l.useTheme(),A={...Ho.container,...n==null?void 0:n.container},H={...Ho.trigger,...Hf[a],...jf[i],...Pf[c],...s&&{borderColor:"color-red-500"},...d&&{opacity:.6,cursor:"not-allowed"},...!d&&!g&&{_hover:{borderColor:"color-gray-300"}},...n==null?void 0:n.trigger},P={...Ho.dropdown,...n==null?void 0:n.dropdown},M={...Ho.iconGrid,...n==null?void 0:n.iconGrid};return r.jsxs(l.View,{...A,...z,children:[e&&r.jsx(l.Text,{fontSize:a==="xs"?"12px":a==="sm"?"14px":"16px",fontWeight:"500",color:"color-gray-700",marginBottom:"4px",...n==null?void 0:n.label,children:e}),r.jsxs(l.View,{ref:w,onClick:d||g?void 0:k,...H,children:[r.jsx(l.Horizontal,{alignItems:"center",gap:8,width:"100%",children:p?r.jsxs(l.Horizontal,{alignItems:"center",gap:8,width:"100%",children:[r.jsx(yr,{name:p,widthHeight:16}),r.jsx(l.Text,{color:"color-gray-800",fontSize:"inherit",style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p})]}):r.jsx(l.Text,{color:"color-gray-500",fontSize:"inherit",children:o})}),!g&&!d&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:m?"up":"down"})]}),m&&r.jsxs(l.View,{ref:v,...P,children:[f&&r.jsx(l.View,{...Ho.searchInput,...n==null?void 0:n.searchInput,children:r.jsx(We,{placeholder:"Search icons...",value:u,onChange:V=>C(V),size:"sm",autoFocus:!0})}),r.jsx(l.View,{...M,children:y.length>0?y.map(V=>r.jsx(l.View,{...Ho.iconItem,onClick:()=>x(V),title:V,_hover:{backgroundColor:"color-gray-50",transform:"scale(1.05)"},backgroundColor:p===V?"#EFF6FF":"transparent",borderWidth:p===V?"1px":"0px",borderStyle:"solid",borderColor:p===V?"#BFDBFE":"transparent",...n==null?void 0:n.iconItem,children:r.jsx(yr,{name:V,widthHeight:20})},V)):r.jsx(l.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color-gray-500",children:r.jsx(l.Text,{fontSize:"14px",children:"No icons found"})})})]}),t&&r.jsx(l.Text,{color:s?"color-red-500":"color-gray-600",marginTop:"4px",...n==null?void 0:n.helperText,children:t})]})},Af=e=>{const o=ye(e),t={...e,value:o.value??e.value??e.defaultValue},n=Hl(t),a=i=>{n.handleIconSelect(i),o.onChange(i)};return r.jsx(jl,{...n,...t,handleIconSelect:a})},ro={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out"},dropdown:{position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"320px",maxHeight:"400px",overflow:"hidden"},searchInput:{marginBottom:"12px"},categoryTabs:{display:"flex",flexDirection:"row",flexWrap:"wrap",borderBottom:"1px solid color-gray-100",marginBottom:"12px",overflowX:"auto"},categoryTab:{padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid transparent",transition:"all 0.2s ease-in-out",fontSize:"14px",fontWeight:"500",color:"color-gray-600",whiteSpace:"nowrap",borderRadius:"8px 8px 0 0"},emojiGrid:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"4px",maxHeight:"240px",overflowY:"auto",padding:"4px",color:"color-black"},emoji:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:6,fontSize:"20px",transition:"all 0.2s ease-in-out"}},Vf={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"14px",padding:"10px 14px"},xl:{height:"56px",fontSize:"16px",padding:"12px 16px"}},Ef={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Df={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},$f={recent:"🕒",smileys:"😀",people:"👤",animals:"🐶",food:"🍎",activities:"⚽",travel:"🚗",objects:"💡",symbols:"❤️",flags:"🏁"},Lf=[{emoji:"😀",name:"grinning face",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😃",name:"grinning face with big eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😄",name:"grinning face with smiling eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😁",name:"beaming face with smiling eyes",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😆",name:"grinning squinting face",category:"smileys",keywords:["happy","laugh","smile"]},{emoji:"😅",name:"grinning face with sweat",category:"smileys",keywords:["happy","sweat","relief"]},{emoji:"🤣",name:"rolling on the floor laughing",category:"smileys",keywords:["laugh","funny","rofl"]},{emoji:"😂",name:"face with tears of joy",category:"smileys",keywords:["laugh","cry","joy"]},{emoji:"🙂",name:"slightly smiling face",category:"smileys",keywords:["smile","happy"]},{emoji:"🙃",name:"upside-down face",category:"smileys",keywords:["silly","upside down"]},{emoji:"😉",name:"winking face",category:"smileys",keywords:["wink","flirt"]},{emoji:"😊",name:"smiling face with smiling eyes",category:"smileys",keywords:["happy","smile","blush"]},{emoji:"😇",name:"smiling face with halo",category:"smileys",keywords:["angel","innocent"]},{emoji:"🥰",name:"smiling face with hearts",category:"smileys",keywords:["love","hearts","adore"]},{emoji:"😍",name:"smiling face with heart-eyes",category:"smileys",keywords:["love","heart","eyes"]},{emoji:"🤩",name:"star-struck",category:"smileys",keywords:["star","struck","amazed"]},{emoji:"😘",name:"face blowing a kiss",category:"smileys",keywords:["kiss","love","flirt"]},{emoji:"😗",name:"kissing face",category:"smileys",keywords:["kiss","love"]},{emoji:"☺️",name:"smiling face",category:"smileys",keywords:["smile","happy","content"]},{emoji:"😚",name:"kissing face with closed eyes",category:"smileys",keywords:["kiss","love","closed eyes"]},{emoji:"😙",name:"kissing face with smiling eyes",category:"smileys",keywords:["kiss","love","smile"]},{emoji:"🥲",name:"smiling face with tear",category:"smileys",keywords:["happy","cry","tear","bittersweet"]},{emoji:"😋",name:"face savoring food",category:"smileys",keywords:["yum","delicious","food"]},{emoji:"😛",name:"face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"😜",name:"winking face with tongue",category:"smileys",keywords:["wink","tongue","silly"]},{emoji:"🤪",name:"zany face",category:"smileys",keywords:["crazy","silly","wild"]},{emoji:"😝",name:"squinting face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"🤑",name:"money-mouth face",category:"smileys",keywords:["money","rich","greedy"]},{emoji:"🤗",name:"hugging face",category:"smileys",keywords:["hug","love","care"]},{emoji:"🤭",name:"face with hand over mouth",category:"smileys",keywords:["oops","secret","quiet"]},{emoji:"🫢",name:"face with open eyes and hand over mouth",category:"smileys",keywords:["surprise","shock","oops"]},{emoji:"🫣",name:"face with peeking eye",category:"smileys",keywords:["peek","shy","embarrassed"]},{emoji:"🤫",name:"shushing face",category:"smileys",keywords:["quiet","secret","shh"]},{emoji:"🤔",name:"thinking face",category:"smileys",keywords:["think","consider","hmm"]},{emoji:"🫡",name:"saluting face",category:"smileys",keywords:["salute","respect","military"]},{emoji:"🤐",name:"zipper-mouth face",category:"smileys",keywords:["quiet","secret","zip"]},{emoji:"🤨",name:"face with raised eyebrow",category:"smileys",keywords:["suspicious","doubt","skeptical"]},{emoji:"😐",name:"neutral face",category:"smileys",keywords:["neutral","meh","blank"]},{emoji:"😑",name:"expressionless face",category:"smileys",keywords:["blank","deadpan","meh"]},{emoji:"😶",name:"face without mouth",category:"smileys",keywords:["quiet","speechless","silent"]},{emoji:"🫥",name:"dotted line face",category:"smileys",keywords:["invisible","depressed","disappear"]},{emoji:"😏",name:"smirking face",category:"smileys",keywords:["smirk","smug","confident"]},{emoji:"😒",name:"unamused face",category:"smileys",keywords:["unamused","bored","annoyed"]},{emoji:"🙄",name:"face with rolling eyes",category:"smileys",keywords:["eye roll","annoyed","whatever"]},{emoji:"😬",name:"grimacing face",category:"smileys",keywords:["grimace","awkward","oops"]},{emoji:"😮‍💨",name:"face exhaling",category:"smileys",keywords:["sigh","relief","tired"]},{emoji:"🤥",name:"lying face",category:"smileys",keywords:["lie","pinocchio","dishonest"]},{emoji:"😌",name:"relieved face",category:"smileys",keywords:["relief","calm","peaceful"]},{emoji:"😔",name:"pensive face",category:"smileys",keywords:["sad","thoughtful","pensive"]},{emoji:"😪",name:"sleepy face",category:"smileys",keywords:["sleepy","tired","drowsy"]},{emoji:"🤤",name:"drooling face",category:"smileys",keywords:["drool","desire","sleep"]},{emoji:"😴",name:"sleeping face",category:"smileys",keywords:["sleep","tired","zzz"]},{emoji:"😷",name:"face with medical mask",category:"smileys",keywords:["mask","sick","doctor"]},{emoji:"🤒",name:"face with thermometer",category:"smileys",keywords:["sick","fever","ill"]},{emoji:"🤕",name:"face with head-bandage",category:"smileys",keywords:["hurt","injured","bandage"]},{emoji:"🤢",name:"nauseated face",category:"smileys",keywords:["sick","nausea","disgusted"]},{emoji:"🤮",name:"face vomiting",category:"smileys",keywords:["vomit","sick","disgusted"]},{emoji:"🤧",name:"sneezing face",category:"smileys",keywords:["sneeze","sick","gesundheit"]},{emoji:"🥵",name:"hot face",category:"smileys",keywords:["hot","heat","sweat"]},{emoji:"🥶",name:"cold face",category:"smileys",keywords:["cold","freeze","blue"]},{emoji:"🥴",name:"woozy face",category:"smileys",keywords:["dizzy","drunk","confused"]},{emoji:"😵",name:"dizzy face",category:"smileys",keywords:["dizzy","confused","knocked out"]},{emoji:"😵‍💫",name:"face with spiral eyes",category:"smileys",keywords:["dizzy","hypnotized","confused"]},{emoji:"🤯",name:"exploding head",category:"smileys",keywords:["mind blown","shocked","amazed"]},{emoji:"🤠",name:"cowboy hat face",category:"smileys",keywords:["cowboy","hat","western"]},{emoji:"🥳",name:"partying face",category:"smileys",keywords:["party","celebration","birthday"]},{emoji:"🥸",name:"disguised face",category:"smileys",keywords:["disguise","glasses","incognito"]},{emoji:"😎",name:"smiling face with sunglasses",category:"smileys",keywords:["cool","sunglasses","awesome"]},{emoji:"🤓",name:"nerd face",category:"smileys",keywords:["nerd","geek","smart"]},{emoji:"🧐",name:"face with monocle",category:"smileys",keywords:["monocle","fancy","inspection"]},{emoji:"👋",name:"waving hand",category:"people",keywords:["wave","hello","goodbye"]},{emoji:"🤚",name:"raised back of hand",category:"people",keywords:["hand","stop"]},{emoji:"🖐️",name:"hand with fingers splayed",category:"people",keywords:["hand","five"]},{emoji:"✋",name:"raised hand",category:"people",keywords:["hand","stop","high five"]},{emoji:"🖖",name:"vulcan salute",category:"people",keywords:["spock","vulcan"]},{emoji:"👌",name:"OK hand",category:"people",keywords:["ok","perfect"]},{emoji:"🤌",name:"pinched fingers",category:"people",keywords:["italian","chef kiss"]},{emoji:"🤏",name:"pinching hand",category:"people",keywords:["small","tiny"]},{emoji:"✌️",name:"victory hand",category:"people",keywords:["peace","victory"]},{emoji:"🤞",name:"crossed fingers",category:"people",keywords:["luck","hope"]},{emoji:"🤟",name:"love-you gesture",category:"people",keywords:["love","you"]},{emoji:"🤘",name:"sign of the horns",category:"people",keywords:["rock","metal"]},{emoji:"🤙",name:"call me hand",category:"people",keywords:["call","phone"]},{emoji:"👈",name:"backhand index pointing left",category:"people",keywords:["point","left"]},{emoji:"👉",name:"backhand index pointing right",category:"people",keywords:["point","right"]},{emoji:"👆",name:"backhand index pointing up",category:"people",keywords:["point","up"]},{emoji:"🖕",name:"middle finger",category:"people",keywords:["middle finger","rude"]},{emoji:"👇",name:"backhand index pointing down",category:"people",keywords:["point","down"]},{emoji:"☝️",name:"index pointing up",category:"people",keywords:["point","up","one"]},{emoji:"👍",name:"thumbs up",category:"people",keywords:["thumbs up","good","yes"]},{emoji:"👎",name:"thumbs down",category:"people",keywords:["thumbs down","bad","no"]},{emoji:"✊",name:"raised fist",category:"people",keywords:["fist","power","solidarity"]},{emoji:"👊",name:"oncoming fist",category:"people",keywords:["fist","punch","bump"]},{emoji:"🤛",name:"left-facing fist",category:"people",keywords:["fist","bump","left"]},{emoji:"🤜",name:"right-facing fist",category:"people",keywords:["fist","bump","right"]},{emoji:"👏",name:"clapping hands",category:"people",keywords:["clap","applause","bravo"]},{emoji:"🙌",name:"raising hands",category:"people",keywords:["celebration","hooray","praise"]},{emoji:"👐",name:"open hands",category:"people",keywords:["open","hug","jazz hands"]},{emoji:"🤲",name:"palms up together",category:"people",keywords:["prayer","please","hope"]},{emoji:"🤝",name:"handshake",category:"people",keywords:["handshake","deal","agreement"]},{emoji:"🙏",name:"folded hands",category:"people",keywords:["prayer","thanks","please"]},{emoji:"✍️",name:"writing hand",category:"people",keywords:["write","author","signature"]},{emoji:"💅",name:"nail polish",category:"people",keywords:["nails","beauty","manicure"]},{emoji:"🤳",name:"selfie",category:"people",keywords:["selfie","camera","phone"]},{emoji:"💪",name:"flexed biceps",category:"people",keywords:["muscle","strong","flex"]},{emoji:"🦾",name:"mechanical arm",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦿",name:"mechanical leg",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦵",name:"leg",category:"people",keywords:["leg","limb","kick"]},{emoji:"🦶",name:"foot",category:"people",keywords:["foot","kick","stomp"]},{emoji:"👂",name:"ear",category:"people",keywords:["ear","hear","listen"]},{emoji:"🦻",name:"ear with hearing aid",category:"people",keywords:["hearing aid","deaf","accessibility"]},{emoji:"👃",name:"nose",category:"people",keywords:["nose","smell","sniff"]},{emoji:"🧠",name:"brain",category:"people",keywords:["brain","smart","think"]},{emoji:"🫀",name:"anatomical heart",category:"people",keywords:["heart","organ","love"]},{emoji:"🫁",name:"lungs",category:"people",keywords:["lungs","breathe","organ"]},{emoji:"🦷",name:"tooth",category:"people",keywords:["tooth","dental","smile"]},{emoji:"🦴",name:"bone",category:"people",keywords:["bone","skeleton","dog"]},{emoji:"👀",name:"eyes",category:"people",keywords:["eyes","look","see"]},{emoji:"👁️",name:"eye",category:"people",keywords:["eye","see","watch"]},{emoji:"👅",name:"tongue",category:"people",keywords:["tongue","taste","lick"]},{emoji:"👄",name:"mouth",category:"people",keywords:["mouth","lips","kiss"]},{emoji:"🫦",name:"biting lip",category:"people",keywords:["lip","bite","nervous"]},{emoji:"👶",name:"baby",category:"people",keywords:["baby","infant","child"]},{emoji:"🧒",name:"child",category:"people",keywords:["child","kid","young"]},{emoji:"👦",name:"boy",category:"people",keywords:["boy","child","male"]},{emoji:"👧",name:"girl",category:"people",keywords:["girl","child","female"]},{emoji:"🧑",name:"person",category:"people",keywords:["person","adult","human"]},{emoji:"👱",name:"person: blond hair",category:"people",keywords:["blond","hair","person"]},{emoji:"👨",name:"man",category:"people",keywords:["man","male","adult"]},{emoji:"🧔",name:"person: beard",category:"people",keywords:["beard","man","facial hair"]},{emoji:"👩",name:"woman",category:"people",keywords:["woman","female","adult"]},{emoji:"🧓",name:"older person",category:"people",keywords:["old","elderly","senior"]},{emoji:"👴",name:"old man",category:"people",keywords:["old","man","elderly"]},{emoji:"👵",name:"old woman",category:"people",keywords:["old","woman","elderly"]},{emoji:"🐶",name:"dog face",category:"animals",keywords:["dog","pet","animal"]},{emoji:"🐱",name:"cat face",category:"animals",keywords:["cat","pet","animal"]},{emoji:"🐭",name:"mouse face",category:"animals",keywords:["mouse","animal"]},{emoji:"🐹",name:"hamster",category:"animals",keywords:["hamster","pet"]},{emoji:"🐰",name:"rabbit face",category:"animals",keywords:["rabbit","bunny"]},{emoji:"🦊",name:"fox",category:"animals",keywords:["fox","animal"]},{emoji:"🐻",name:"bear",category:"animals",keywords:["bear","animal"]},{emoji:"🐼",name:"panda",category:"animals",keywords:["panda","bear"]},{emoji:"🐨",name:"koala",category:"animals",keywords:["koala","australia","marsupial"]},{emoji:"🐯",name:"tiger face",category:"animals",keywords:["tiger","cat","wild"]},{emoji:"🦁",name:"lion",category:"animals",keywords:["lion","king","cat"]},{emoji:"🐮",name:"cow face",category:"animals",keywords:["cow","moo","farm"]},{emoji:"🐷",name:"pig face",category:"animals",keywords:["pig","oink","farm"]},{emoji:"🐽",name:"pig nose",category:"animals",keywords:["pig","nose","snout"]},{emoji:"🐸",name:"frog",category:"animals",keywords:["frog","amphibian","green"]},{emoji:"🐵",name:"monkey face",category:"animals",keywords:["monkey","primate","banana"]},{emoji:"🙈",name:"see-no-evil monkey",category:"animals",keywords:["monkey","see no evil","eyes"]},{emoji:"🙉",name:"hear-no-evil monkey",category:"animals",keywords:["monkey","hear no evil","ears"]},{emoji:"🙊",name:"speak-no-evil monkey",category:"animals",keywords:["monkey","speak no evil","mouth"]},{emoji:"🐒",name:"monkey",category:"animals",keywords:["monkey","primate","zoo"]},{emoji:"🦍",name:"gorilla",category:"animals",keywords:["gorilla","ape","strong"]},{emoji:"🦧",name:"orangutan",category:"animals",keywords:["orangutan","ape","orange"]},{emoji:"🐺",name:"wolf",category:"animals",keywords:["wolf","howl","wild"]},{emoji:"🐗",name:"boar",category:"animals",keywords:["boar","pig","wild"]},{emoji:"🐴",name:"horse face",category:"animals",keywords:["horse","neigh","ride"]},{emoji:"🐎",name:"horse",category:"animals",keywords:["horse","racing","gallop"]},{emoji:"🦄",name:"unicorn",category:"animals",keywords:["unicorn","magical","horn"]},{emoji:"🦓",name:"zebra",category:"animals",keywords:["zebra","stripes","africa"]},{emoji:"🦌",name:"deer",category:"animals",keywords:["deer","antlers","forest"]},{emoji:"🦏",name:"rhinoceros",category:"animals",keywords:["rhino","horn","africa"]},{emoji:"🦛",name:"hippopotamus",category:"animals",keywords:["hippo","water","africa"]},{emoji:"🐘",name:"elephant",category:"animals",keywords:["elephant","trunk","memory"]},{emoji:"🦒",name:"giraffe",category:"animals",keywords:["giraffe","tall","neck"]},{emoji:"🦘",name:"kangaroo",category:"animals",keywords:["kangaroo","hop","australia"]},{emoji:"🦥",name:"sloth",category:"animals",keywords:["sloth","slow","lazy"]},{emoji:"🦦",name:"otter",category:"animals",keywords:["otter","water","cute"]},{emoji:"🦨",name:"skunk",category:"animals",keywords:["skunk","smell","stripe"]},{emoji:"🦡",name:"badger",category:"animals",keywords:["badger","honey","dig"]},{emoji:"🐾",name:"paw prints",category:"animals",keywords:["paw","prints","tracks"]},{emoji:"🐔",name:"chicken",category:"animals",keywords:["chicken","rooster","farm"]},{emoji:"🐓",name:"rooster",category:"animals",keywords:["rooster","cock","morning"]},{emoji:"🐣",name:"hatching chick",category:"animals",keywords:["chick","hatching","egg"]},{emoji:"🐤",name:"baby chick",category:"animals",keywords:["chick","baby","yellow"]},{emoji:"🐥",name:"front-facing baby chick",category:"animals",keywords:["chick","baby","cute"]},{emoji:"🦆",name:"duck",category:"animals",keywords:["duck","quack","water"]},{emoji:"🦅",name:"eagle",category:"animals",keywords:["eagle","bird","freedom"]},{emoji:"🦉",name:"owl",category:"animals",keywords:["owl","wise","night"]},{emoji:"🦇",name:"bat",category:"animals",keywords:["bat","vampire","night"]},{emoji:"",name:"bug",category:"animals",keywords:["bug","insect","crawl"]},{emoji:"🦋",name:"butterfly",category:"animals",keywords:["butterfly","beautiful","fly"]},{emoji:"🐌",name:"snail",category:"animals",keywords:["snail","slow","shell"]},{emoji:"🐞",name:"lady beetle",category:"animals",keywords:["ladybug","beetle","red"]},{emoji:"🐜",name:"ant",category:"animals",keywords:["ant","work","colony"]},{emoji:"🦟",name:"mosquito",category:"animals",keywords:["mosquito","bite","buzz"]},{emoji:"🕷️",name:"spider",category:"animals",keywords:["spider","web","eight legs"]},{emoji:"🦂",name:"scorpion",category:"animals",keywords:["scorpion","sting","desert"]},{emoji:"🐢",name:"turtle",category:"animals",keywords:["turtle","slow","shell"]},{emoji:"🐍",name:"snake",category:"animals",keywords:["snake","slither","reptile"]},{emoji:"🦎",name:"lizard",category:"animals",keywords:["lizard","gecko","reptile"]},{emoji:"🐙",name:"octopus",category:"animals",keywords:["octopus","tentacles","sea"]},{emoji:"🦑",name:"squid",category:"animals",keywords:["squid","tentacles","ocean"]},{emoji:"🦐",name:"shrimp",category:"animals",keywords:["shrimp","seafood","small"]},{emoji:"🦞",name:"lobster",category:"animals",keywords:["lobster","claws","red"]},{emoji:"🦀",name:"crab",category:"animals",keywords:["crab","claws","beach"]},{emoji:"🐡",name:"blowfish",category:"animals",keywords:["blowfish","puffer","spiky"]},{emoji:"🐠",name:"tropical fish",category:"animals",keywords:["fish","tropical","colorful"]},{emoji:"🐟",name:"fish",category:"animals",keywords:["fish","swim","water"]},{emoji:"🐬",name:"dolphin",category:"animals",keywords:["dolphin","smart","ocean"]},{emoji:"🐳",name:"spouting whale",category:"animals",keywords:["whale","spout","big"]},{emoji:"🐋",name:"whale",category:"animals",keywords:["whale","ocean","huge"]},{emoji:"🦈",name:"shark",category:"animals",keywords:["shark","teeth","dangerous"]},{emoji:"🐊",name:"crocodile",category:"animals",keywords:["crocodile","teeth","swamp"]},{emoji:"🌸",name:"cherry blossom",category:"animals",keywords:["flower","spring","pink"]},{emoji:"💐",name:"bouquet",category:"animals",keywords:["flowers","bouquet","gift"]},{emoji:"🌺",name:"hibiscus",category:"animals",keywords:["flower","tropical","red"]},{emoji:"🌻",name:"sunflower",category:"animals",keywords:["sunflower","yellow","big"]},{emoji:"🌹",name:"rose",category:"animals",keywords:["rose","love","red"]},{emoji:"🥀",name:"wilted flower",category:"animals",keywords:["flower","wilted","sad"]},{emoji:"🌷",name:"tulip",category:"animals",keywords:["tulip","spring","netherlands"]},{emoji:"🌼",name:"daisy",category:"animals",keywords:["daisy","white","simple"]},{emoji:"🌱",name:"seedling",category:"animals",keywords:["plant","grow","green"]},{emoji:"🌿",name:"herb",category:"animals",keywords:["herb","green","leaf"]},{emoji:"🍀",name:"four leaf clover",category:"animals",keywords:["clover","luck","green"]},{emoji:"🌳",name:"deciduous tree",category:"animals",keywords:["tree","nature","green"]},{emoji:"🌲",name:"evergreen tree",category:"animals",keywords:["tree","pine","christmas"]},{emoji:"🌴",name:"palm tree",category:"animals",keywords:["palm","tropical","beach"]},{emoji:"🌵",name:"cactus",category:"animals",keywords:["cactus","desert","spiky"]},{emoji:"🍎",name:"red apple",category:"food",keywords:["apple","fruit"]},{emoji:"🍊",name:"tangerine",category:"food",keywords:["orange","fruit"]},{emoji:"🍋",name:"lemon",category:"food",keywords:["lemon","fruit"]},{emoji:"🍌",name:"banana",category:"food",keywords:["banana","fruit"]},{emoji:"🍉",name:"watermelon",category:"food",keywords:["watermelon","fruit"]},{emoji:"🍇",name:"grapes",category:"food",keywords:["grapes","fruit"]},{emoji:"🍓",name:"strawberry",category:"food",keywords:["strawberry","fruit"]},{emoji:"🫐",name:"blueberries",category:"food",keywords:["blueberry","fruit"]},{emoji:"🥝",name:"kiwi fruit",category:"food",keywords:["kiwi","fruit","green"]},{emoji:"🍅",name:"tomato",category:"food",keywords:["tomato","red","vegetable"]},{emoji:"🫒",name:"olive",category:"food",keywords:["olive","green","oil"]},{emoji:"🥥",name:"coconut",category:"food",keywords:["coconut","tropical","milk"]},{emoji:"🥑",name:"avocado",category:"food",keywords:["avocado","green","healthy"]},{emoji:"🍆",name:"eggplant",category:"food",keywords:["eggplant","purple","vegetable"]},{emoji:"🥔",name:"potato",category:"food",keywords:["potato","vegetable","starch"]},{emoji:"🥕",name:"carrot",category:"food",keywords:["carrot","orange","vegetable"]},{emoji:"🌽",name:"ear of corn",category:"food",keywords:["corn","yellow","vegetable"]},{emoji:"🌶️",name:"hot pepper",category:"food",keywords:["pepper","hot","spicy"]},{emoji:"🫑",name:"bell pepper",category:"food",keywords:["pepper","bell","vegetable"]},{emoji:"🥒",name:"cucumber",category:"food",keywords:["cucumber","green","vegetable"]},{emoji:"🥬",name:"leafy greens",category:"food",keywords:["lettuce","greens","salad"]},{emoji:"🥦",name:"broccoli",category:"food",keywords:["broccoli","green","vegetable"]},{emoji:"🧄",name:"garlic",category:"food",keywords:["garlic","flavor","cooking"]},{emoji:"🧅",name:"onion",category:"food",keywords:["onion","cry","cooking"]},{emoji:"🍄",name:"mushroom",category:"food",keywords:["mushroom","fungi","cooking"]},{emoji:"🥜",name:"peanuts",category:"food",keywords:["peanuts","nuts","snack"]},{emoji:"🌰",name:"chestnut",category:"food",keywords:["chestnut","nut","autumn"]},{emoji:"🍞",name:"bread",category:"food",keywords:["bread","loaf","carbs"]},{emoji:"🥐",name:"croissant",category:"food",keywords:["croissant","french","pastry"]},{emoji:"🥖",name:"baguette bread",category:"food",keywords:["baguette","french","bread"]},{emoji:"🫓",name:"flatbread",category:"food",keywords:["flatbread","bread","thin"]},{emoji:"🥨",name:"pretzel",category:"food",keywords:["pretzel","twisted","snack"]},{emoji:"🥯",name:"bagel",category:"food",keywords:["bagel","round","breakfast"]},{emoji:"🥞",name:"pancakes",category:"food",keywords:["pancakes","breakfast","syrup"]},{emoji:"🧇",name:"waffle",category:"food",keywords:["waffle","breakfast","squares"]},{emoji:"🧀",name:"cheese wedge",category:"food",keywords:["cheese","dairy","yellow"]},{emoji:"🍖",name:"meat on bone",category:"food",keywords:["meat","bone","protein"]},{emoji:"🍗",name:"poultry leg",category:"food",keywords:["chicken","leg","meat"]},{emoji:"🥩",name:"cut of meat",category:"food",keywords:["steak","meat","red"]},{emoji:"🥓",name:"bacon",category:"food",keywords:["bacon","pork","breakfast"]},{emoji:"🍔",name:"hamburger",category:"food",keywords:["burger","hamburger","fast food"]},{emoji:"🍟",name:"french fries",category:"food",keywords:["fries","potato","fast food"]},{emoji:"🍕",name:"pizza",category:"food",keywords:["pizza","slice","italian"]},{emoji:"🌭",name:"hot dog",category:"food",keywords:["hot dog","sausage","fast food"]},{emoji:"🥪",name:"sandwich",category:"food",keywords:["sandwich","bread","lunch"]},{emoji:"🌮",name:"taco",category:"food",keywords:["taco","mexican","shell"]},{emoji:"🌯",name:"burrito",category:"food",keywords:["burrito","wrap","mexican"]},{emoji:"🫔",name:"tamale",category:"food",keywords:["tamale","mexican","corn"]},{emoji:"🥙",name:"stuffed flatbread",category:"food",keywords:["pita","flatbread","stuffed"]},{emoji:"🧆",name:"falafel",category:"food",keywords:["falafel","middle eastern","chickpea"]},{emoji:"🥚",name:"egg",category:"food",keywords:["egg","protein","breakfast"]},{emoji:"🍳",name:"cooking",category:"food",keywords:["cooking","frying pan","egg"]},{emoji:"🥘",name:"shallow pan of food",category:"food",keywords:["paella","pan","cooking"]},{emoji:"🍲",name:"pot of food",category:"food",keywords:["stew","pot","cooking"]},{emoji:"🫕",name:"fondue",category:"food",keywords:["fondue","cheese","pot"]},{emoji:"🥣",name:"bowl with spoon",category:"food",keywords:["bowl","cereal","soup"]},{emoji:"🥗",name:"green salad",category:"food",keywords:["salad","healthy","greens"]},{emoji:"🍿",name:"popcorn",category:"food",keywords:["popcorn","movie","snack"]},{emoji:"🧈",name:"butter",category:"food",keywords:["butter","dairy","spread"]},{emoji:"🧂",name:"salt",category:"food",keywords:["salt","seasoning","white"]},{emoji:"🥫",name:"canned food",category:"food",keywords:["can","canned","preserved"]},{emoji:"🍱",name:"bento box",category:"food",keywords:["bento","japanese","lunch box"]},{emoji:"🍘",name:"rice cracker",category:"food",keywords:["rice","cracker","japanese"]},{emoji:"🍙",name:"rice ball",category:"food",keywords:["rice ball","onigiri","japanese"]},{emoji:"🍚",name:"cooked rice",category:"food",keywords:["rice","cooked","bowl"]},{emoji:"🍛",name:"curry rice",category:"food",keywords:["curry","rice","spicy"]},{emoji:"🍜",name:"steaming bowl",category:"food",keywords:["ramen","noodles","soup"]},{emoji:"🍝",name:"spaghetti",category:"food",keywords:["spaghetti","pasta","italian"]},{emoji:"🍠",name:"roasted sweet potato",category:"food",keywords:["sweet potato","roasted","orange"]},{emoji:"🍢",name:"oden",category:"food",keywords:["oden","japanese","skewer"]},{emoji:"🍣",name:"sushi",category:"food",keywords:["sushi","japanese","fish"]},{emoji:"🍤",name:"fried shrimp",category:"food",keywords:["shrimp","fried","tempura"]},{emoji:"🍥",name:"fish cake with swirl",category:"food",keywords:["fish cake","japanese","swirl"]},{emoji:"🥮",name:"moon cake",category:"food",keywords:["moon cake","chinese","festival"]},{emoji:"🍡",name:"dango",category:"food",keywords:["dango","japanese","sweet"]},{emoji:"🥟",name:"dumpling",category:"food",keywords:["dumpling","chinese","steamed"]},{emoji:"🥠",name:"fortune cookie",category:"food",keywords:["fortune cookie","chinese","luck"]},{emoji:"🥡",name:"takeout box",category:"food",keywords:["takeout","chinese","box"]},{emoji:"🦀",name:"crab",category:"food",keywords:["crab","seafood","claws"]},{emoji:"🦞",name:"lobster",category:"food",keywords:["lobster","seafood","red"]},{emoji:"🦐",name:"shrimp",category:"food",keywords:["shrimp","seafood","small"]},{emoji:"🦑",name:"squid",category:"food",keywords:["squid","seafood","tentacles"]},{emoji:"🦪",name:"oyster",category:"food",keywords:["oyster","seafood","shell"]},{emoji:"🍦",name:"soft ice cream",category:"food",keywords:["ice cream","soft serve","cone"]},{emoji:"🍧",name:"shaved ice",category:"food",keywords:["shaved ice","snow cone","cold"]},{emoji:"🍨",name:"ice cream",category:"food",keywords:["ice cream","dessert","cold"]},{emoji:"🍩",name:"doughnut",category:"food",keywords:["donut","doughnut","sweet"]},{emoji:"🍪",name:"cookie",category:"food",keywords:["cookie","sweet","baked"]},{emoji:"🎂",name:"birthday cake",category:"food",keywords:["cake","birthday","celebration"]},{emoji:"🍰",name:"shortcake",category:"food",keywords:["cake","slice","dessert"]},{emoji:"🧁",name:"cupcake",category:"food",keywords:["cupcake","muffin","sweet"]},{emoji:"🥧",name:"pie",category:"food",keywords:["pie","dessert","slice"]},{emoji:"🍫",name:"chocolate bar",category:"food",keywords:["chocolate","bar","sweet"]},{emoji:"🍬",name:"candy",category:"food",keywords:["candy","sweet","wrapper"]},{emoji:"🍭",name:"lollipop",category:"food",keywords:["lollipop","candy","stick"]},{emoji:"🍮",name:"custard",category:"food",keywords:["custard","pudding","dessert"]},{emoji:"🍯",name:"honey pot",category:"food",keywords:["honey","sweet","bee"]},{emoji:"🍼",name:"baby bottle",category:"food",keywords:["bottle","baby","milk"]},{emoji:"🥛",name:"glass of milk",category:"food",keywords:["milk","glass","dairy"]},{emoji:"☕",name:"hot beverage",category:"food",keywords:["coffee","tea","hot"]},{emoji:"🫖",name:"teapot",category:"food",keywords:["teapot","tea","hot"]},{emoji:"🍵",name:"teacup without handle",category:"food",keywords:["tea","green tea","cup"]},{emoji:"🍶",name:"sake",category:"food",keywords:["sake","japanese","alcohol"]},{emoji:"🍾",name:"bottle with popping cork",category:"food",keywords:["champagne","celebration","cork"]},{emoji:"🍷",name:"wine glass",category:"food",keywords:["wine","glass","alcohol"]},{emoji:"🍸",name:"cocktail glass",category:"food",keywords:["cocktail","martini","alcohol"]},{emoji:"🍹",name:"tropical drink",category:"food",keywords:["tropical","cocktail","umbrella"]},{emoji:"🍺",name:"beer mug",category:"food",keywords:["beer","mug","alcohol"]},{emoji:"🍻",name:"clinking beer mugs",category:"food",keywords:["beer","cheers","celebration"]},{emoji:"🥂",name:"clinking glasses",category:"food",keywords:["champagne","cheers","celebration"]},{emoji:"🥃",name:"tumbler glass",category:"food",keywords:["whiskey","tumbler","alcohol"]},{emoji:"🫗",name:"pouring liquid",category:"food",keywords:["pour","liquid","drink"]},{emoji:"🥤",name:"cup with straw",category:"food",keywords:["soda","straw","drink"]},{emoji:"🧋",name:"bubble tea",category:"food",keywords:["bubble tea","boba","drink"]},{emoji:"🧃",name:"beverage box",category:"food",keywords:["juice box","drink","straw"]},{emoji:"🧉",name:"mate",category:"food",keywords:["mate","tea","south american"]},{emoji:"🧊",name:"ice",category:"food",keywords:["ice","cold","cube"]},{emoji:"⚽",name:"soccer ball",category:"activities",keywords:["soccer","football","sport"]},{emoji:"🏀",name:"basketball",category:"activities",keywords:["basketball","sport"]},{emoji:"🏈",name:"american football",category:"activities",keywords:["football","sport"]},{emoji:"⚾",name:"baseball",category:"activities",keywords:["baseball","sport"]},{emoji:"🥎",name:"softball",category:"activities",keywords:["softball","sport"]},{emoji:"🎾",name:"tennis",category:"activities",keywords:["tennis","sport"]},{emoji:"🚗",name:"automobile",category:"travel",keywords:["car","vehicle"]},{emoji:"🚕",name:"taxi",category:"travel",keywords:["taxi","car"]},{emoji:"🚙",name:"sport utility vehicle",category:"travel",keywords:["suv","car"]},{emoji:"🚌",name:"bus",category:"travel",keywords:["bus","vehicle"]},{emoji:"🚎",name:"trolleybus",category:"travel",keywords:["trolley","bus"]},{emoji:"🏎️",name:"racing car",category:"travel",keywords:["race","car","fast"]},{emoji:"💡",name:"light bulb",category:"objects",keywords:["idea","light","bulb"]},{emoji:"🔋",name:"battery",category:"objects",keywords:["battery","power"]},{emoji:"🖥️",name:"desktop computer",category:"objects",keywords:["computer","desktop"]},{emoji:"💻",name:"laptop",category:"objects",keywords:["laptop","computer"]},{emoji:"📱",name:"mobile phone",category:"objects",keywords:["phone","mobile"]},{emoji:"☎️",name:"telephone",category:"objects",keywords:["phone","telephone"]},{emoji:"❤️",name:"red heart",category:"symbols",keywords:["love","heart"]},{emoji:"🧡",name:"orange heart",category:"symbols",keywords:["love","heart"]},{emoji:"💛",name:"yellow heart",category:"symbols",keywords:["love","heart"]},{emoji:"💚",name:"green heart",category:"symbols",keywords:["love","heart"]},{emoji:"💙",name:"blue heart",category:"symbols",keywords:["love","heart"]},{emoji:"💜",name:"purple heart",category:"symbols",keywords:["love","heart"]},{emoji:"🖤",name:"black heart",category:"symbols",keywords:["love","heart"]},{emoji:"🤍",name:"white heart",category:"symbols",keywords:["love","heart"]},{emoji:"🏁",name:"chequered flag",category:"flags",keywords:["flag","race","finish"]},{emoji:"🚩",name:"triangular flag",category:"flags",keywords:["flag","warning"]},{emoji:"🏳️",name:"white flag",category:"flags",keywords:["flag","surrender"]},{emoji:"🏴",name:"black flag",category:"flags",keywords:["flag","pirate"]},{emoji:"🏳️‍🌈",name:"rainbow flag",category:"flags",keywords:["flag","rainbow","pride"]}],Pl=e=>{const{value:o,defaultValue:t="",onChange:n,onEmojiSelect:a,isOpen:i,onOpen:c,onClose:s,closeOnSelect:d=!0,maxRecentEmojis:g=16,showRecentEmojis:f=!0,enabledCategories:m=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],customEmojis:p=[]}=e,[u,y]=h.useState(i??!1),[k,x]=h.useState(o??t),[C,w]=h.useState(""),[v,S]=h.useState("smileys"),[b,T]=h.useState([]),F=h.useRef(null),W=h.useRef(null),j=h.useMemo(()=>[...Lf,...p],[p]),$=h.useMemo(()=>{let V=j;if(v!=="recent"?V=V.filter(L=>L.category===v):V=b,C){const L=C.toLowerCase();V=V.filter(B=>B.name.toLowerCase().includes(L)||B.keywords.some(q=>q.toLowerCase().includes(L)))}return V},[j,v,b,C]);h.useEffect(()=>{o!==void 0&&x(o)},[o]),h.useEffect(()=>{i!==void 0&&y(i)},[i]),h.useEffect(()=>{if(f&&typeof localStorage<"u"){const V=localStorage.getItem("emojiPicker-recentEmojis");if(V)try{T(JSON.parse(V))}catch{}}},[f]),h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const V=L=>{u&&F.current&&W.current&&!F.current.contains(L.target)&&!W.current.contains(L.target)&&M()};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[u]);const z=h.useCallback(V=>{f&&T(L=>{const B=L.filter(_=>_.emoji!==V.emoji),q=[V,...B].slice(0,g);return typeof localStorage<"u"&&localStorage.setItem("emojiPicker-recentEmojis",JSON.stringify(q)),q})},[f,g]),E=h.useCallback(()=>{const V=!u;y(V),V?(c==null||c(),w(""),f&&b.length>0?S("recent"):S("smileys")):s==null||s()},[u,c,s,f,b.length]),A=h.useCallback(V=>{x(V.emoji),z(V),n==null||n(V.emoji),a==null||a(V),d&&(y(!1),s==null||s())},[n,a,d,s,z]),H=h.useCallback(V=>{w(V),V&&v==="recent"&&S("smileys")},[v]),P=h.useCallback(V=>{S(V),w("")},[]),M=h.useCallback(()=>{y(!1),s==null||s()},[s]);return{isOpen:u,selectedEmoji:k,recentEmojis:b,searchQuery:C,activeCategory:v,filteredEmojis:$,handleToggle:E,handleEmojiSelect:A,handleSearchChange:H,handleCategoryChange:P,handleClose:M,triggerRef:F,dropdownRef:W}},Al=({id:e,name:o,label:t,placeholder:n="Select an emoji",helperText:a,views:i={},size:c="md",shape:s="default",variant:d="default",error:g=!1,isDisabled:f=!1,isReadOnly:m=!1,showSearch:p=!0,showCategories:u=!0,showRecentEmojis:y=!0,enabledCategories:k=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],isOpen:x,selectedEmoji:C,recentEmojis:w,searchQuery:v,activeCategory:S,filteredEmojis:b,handleToggle:T,handleEmojiSelect:F,handleSearchChange:W,handleCategoryChange:j,handleClose:$,triggerRef:z,dropdownRef:E,onChange:A,onOpen:H,onClose:P,onEmojiSelect:M,customEmojis:V,closeOnSelect:L,maxRecentEmojis:B,value:q,defaultValue:_,...O})=>{const{getColor:U}=l.useTheme(),K={...ro.container,...i==null?void 0:i.container},N={...ro.trigger,...Vf[c],...Ef[s],...Df[d],...g&&{borderColor:"color-red-500"},...f&&{opacity:.6,cursor:"not-allowed"},...!f&&!m&&{_hover:{borderColor:"color-gray-300"}},...i==null?void 0:i.trigger},D={...ro.dropdown,...i==null?void 0:i.dropdown},X={...ro.categoryTabs,...i==null?void 0:i.categoryTabs},Z={...ro.emojiGrid,...i==null?void 0:i.emojiGrid},J=k.filter(Q=>Q==="recent"?y&&w.length>0:!0);return r.jsxs(l.View,{...K,...O,children:[t&&r.jsx(l.Text,{fontSize:c==="xs"?"12px":c==="sm"?"14px":"16px",fontWeight:"500",color:"color-gray-700",marginBottom:"4px",...i==null?void 0:i.label,children:t}),r.jsxs(l.View,{ref:z,onClick:f||m?void 0:T,...N,children:[r.jsx(l.Horizontal,{alignItems:"center",gap:8,children:r.jsx(l.Text,{color:C?"color-gray-800":"color-gray-500",fontSize:"inherit",children:C||n})}),!m&&!f&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:x?"up":"down"})]}),x&&r.jsxs(l.View,{ref:E,...D,children:[p&&r.jsx(l.View,{...ro.searchInput,...i==null?void 0:i.searchInput,children:r.jsx(We,{placeholder:"Search emojis...",value:v,onChange:W,size:"sm"})}),u&&r.jsx(l.View,{...X,children:J.map(Q=>r.jsx(l.View,{...ro.categoryTab,...S===Q&&{borderBottomColor:"theme-primary",color:"theme-primary",backgroundColor:"color-blue-50"},onClick:()=>j(Q),title:Q.charAt(0).toUpperCase()+Q.slice(1),...i==null?void 0:i.categoryTab,children:$f[Q]},Q))}),r.jsx(l.View,{...Z,children:b.length>0?b.map((Q,oe)=>r.jsx(l.View,{...ro.emoji,onClick:()=>F(Q),title:Q.name,_hover:{backgroundColor:"color-gray-50",transform:"scale(1.05)"},color:"color-gray-800",...i==null?void 0:i.emoji,children:Q.emoji},`${Q.emoji}-${oe}`)):r.jsx(l.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color-gray-500",children:r.jsx(l.Text,{fontSize:"14px",children:v?"No emojis found":"No emojis in this category"})})})]}),a&&r.jsx(l.Text,{color:g?"color-red-500":"color-gray-600",marginTop:"4px",...i==null?void 0:i.helperText,children:a})]})},_f=e=>{const o=ye(e),t={...e,value:o.value??e.value??e.defaultValue},n=Pl(t),a=i=>{var c;n.handleEmojiSelect(i),o.onChange(i.emoji),(c=e.onEmojiSelect)==null||c.call(e,i)};return r.jsx(Al,{...n,...t,handleEmojiSelect:a})},Bf=({files:e,onRemove:o,maxHeight:t="120px",views:n={}})=>{if(e.length===0)return null;const a=h.useCallback(i=>i<1024?`${i} B`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`,[]);return r.jsx(l.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:t,overflowY:"auto",...n==null?void 0:n.container,children:e.map((i,c)=>{const s=i.url||"",d=i.type.startsWith("image/"),g=i.type.startsWith("video/"),f=i.type.startsWith("audio/");return r.jsx(l.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",position:"relative",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...n==null?void 0:n.item,children:r.jsxs(Fe,{children:[r.jsx(Fe.Trigger,{children:r.jsxs(l.View,{position:"relative",children:[d&&s&&r.jsx(l.Image,{src:s,alt:i.name,width:"60px",height:"60px",objectFit:"cover",borderRadius:"8px"}),g&&s&&r.jsx(l.View,{as:"video",src:s,alt:i.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover",borderRadius:"8px"}),f&&r.jsx(l.Center,{width:"60px",height:"60px",backgroundColor:"color-gray-100",borderRadius:"8px",children:r.jsx(So,{widthHeight:24,color:"color-black"})}),!d&&!g&&!f&&r.jsx(l.Center,{width:"60px",height:"60px",backgroundColor:"color-gray-100",borderRadius:"8px",children:r.jsx(io,{widthHeight:24,color:"color-black"})}),o&&r.jsx(l.Button,{position:"absolute",top:"-4px",right:"-4px",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"50%",backgroundColor:"color-red-500",color:"white",fontSize:14,fontWeight:"bold",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"2px solid white",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{backgroundColor:"#DC2626"},onClick:m=>{m.stopPropagation(),o(c)},"aria-label":`Remove ${i.name}`,children:"×"})]})}),r.jsxs(Fe.Content,{children:[d&&s&&r.jsx(l.Image,{src:s,alt:i.name,maxWidth:"300px"}),g&&s&&r.jsx(l.View,{as:"video",src:s,controls:!0,maxWidth:"300px"}),f&&s&&r.jsx(l.View,{as:"audio",src:s,controls:!0,width:"100%"}),r.jsxs(l.Text,{marginTop:"4px",maxLines:1,width:"100%",fontSize:12,...n==null?void 0:n.name,children:[i.name," (",a(i.size),")"]})]})]})},c)})})},Vl=e=>{const o=pe("slider",e),t=bl(o);return r.jsx(Sl,{...o,...t})},Of=({url:e,type:o,name:t,onOpen:n})=>{const a=o.toLowerCase(),i=a.startsWith("image"),c=a.startsWith("video"),s=a.startsWith("audio"),d=()=>{n&&n()};return r.jsxs(l.View,{width:"60px",height:"60px",flexShrink:0,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color-gray-200",cursor:"pointer",onClick:d,children:[i&&r.jsx(l.Image,{src:e,alt:t,width:"100%",height:"100%",objectFit:"cover"}),c&&r.jsx(l.View,{as:"video",src:e,controls:!0,width:"100%",height:"100%",style:{objectFit:"cover"},onClick:g=>g.stopPropagation()}),s&&r.jsx(l.View,{as:"audio",controls:!0,src:e,width:"100%",onClick:g=>g.stopPropagation()}),!i&&!c&&!s&&r.jsx(io,{widthHeight:24,color:"color-gray-600"})]})},to=Co.create(e=>({modals:[],onHide:o=>o,onShow:(o,t)=>({name:o,props:t}),show:(o,t={},n={})=>{e(a=>({...a,modals:[...a.modals,{name:o,props:{...t,isVisible:!0},overlayProps:n}]}))},hide:o=>{e(t=>o?{...t,modals:t.modals.filter(n=>n.name!==o)}:{modals:[]})},setOnHide:o=>{e(t=>({...t,onHide:o}))},setOnShow:o=>{e(t=>({...t,onShow:o}))}})),Nf=(e,o={},t={})=>{to.getState().show(e,o,t),to.getState().onShow(e,o)},qt=e=>{to.getState().onHide(e),to.getState().hide(typeof e=="string"?e:void 0)},qf={square:{borderRadius:0},rounded:{borderRadius:8}},Uf={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center",alignItems:"flex-start"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{justifyContent:"flex-start",alignItems:"center"}},Gf={xs:12,sm:16,md:20,lg:24,xl:28},Ut={body:{fontSize:"16px",fontWeight:"400",color:"color-gray-700"}},El=h.memo(({children:e,blur:o,isOpen:t=!1,isClosePrevented:n=!1,onClose:a=()=>{},position:i="center",views:c,...s})=>{const d=h.useCallback(()=>{n||a()},[n,a]);return r.jsx(l.Center,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:d,visibility:t?"visible":"hidden",opacity:t?1:0,transition:"opacity 0.2s ease, visibility 0.2s ease",...c==null?void 0:c.container,children:r.jsx(l.View,{position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color-dark-50-360",backdropFilter:o?`blur(${o}px)`:void 0,transition:"background-color 0.2s ease, backdrop-filter 0.2s ease",onClick:d,...Uf[i],...s,...c==null?void 0:c.view,children:e})})}),Yf={boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.15)"},Kf={elevation:5,shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:4},shadowOpacity:1,shadowRadius:16},Xf=h.memo(({children:e,shadow:o,isFullScreen:t=!1,shape:n="rounded",views:a,isOpen:i=!0,position:c,...s})=>{const d=typeof document!==void 0?Yf:Kf,g=h.useCallback(f=>{f&&f.stopPropagation&&f.stopPropagation()},[]);return r.jsx(l.Vertical,{cursor:"default",backgroundColor:"color-white",width:t?"100%":600,height:t?"100%":"fit-content",onClick:g,transition:"opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",opacity:i?1:0,transform:i?"translateY(0)":"translateY(8px)",...o||d,...qf[n],media:{mobile:{width:"90%",maxWidth:"100%",margin:"16px"}},...s,...a==null?void 0:a.container,children:e})}),Jf=h.memo(({children:e,buttonColor:o="theme-primary",iconSize:t="md",buttonPosition:n="right",views:a,onClose:i,...c})=>{const s=i||qt,d=r.jsx(l.View,{onClick:()=>s(),children:r.jsx(Me,{widthHeight:Gf[t],color:o})});return r.jsxs(l.Horizontal,{justifyContent:n==="none"?"center":"space-between",alignItems:"center",paddingVertical:16,paddingHorizontal:24,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200",media:{mobile:{paddingVertical:12,paddingHorizontal:16}},...c,...a==null?void 0:a.header,children:[n==="left"&&d,e,n==="right"&&d]})}),Qf=h.memo(({children:e,views:o,...t})=>r.jsx(l.View,{paddingVertical:16,paddingHorizontal:24,fontSize:Ut.body.fontSize,fontWeight:Ut.body.fontWeight,color:Ut.body.color,media:{mobile:{paddingVertical:12,paddingHorizontal:16,fontSize:"14px"}},...t,...o==null?void 0:o.view,children:e})),Zf=h.memo(({children:e,views:o,...t})=>r.jsx(l.Horizontal,{marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:16,paddingHorizontal:24,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200",gap:12,media:{mobile:{paddingVertical:12,paddingHorizontal:16,gap:8}},...t,...o==null?void 0:o.container,children:e})),Gt=({modals:e,onShow:o,onHide:t})=>{const n=to(a=>a.modals);return h.useEffect(()=>{o&&to.getState().setOnShow(o)},[o]),h.useEffect(()=>{t&&to.getState().setOnHide(t)},[t]),n.length===0?null:r.jsx(h.Fragment,{children:n.map((a,i)=>{const c=e[a.name];return c?r.jsx(El,{isOpen:a.props.isVisible,onClose:()=>qt(a.name),blur:5,...a.overlayProps,style:{zIndex:1e3+i},children:r.jsx(c,{...a.props})},i):(console.error(`${a.name} modal doesn't exist`),null)})})},fo=({children:e})=>r.jsx(r.Fragment,{children:e});fo.Overlay=El,fo.Container=Xf,fo.Header=Jf,fo.Body=Qf,fo.Footer=Zf,fo.Layout=Gt;const Dl={xs:"320px",sm:"380px",md:"480px",lg:"640px",xl:"768px",full:"100%"},Rf={left:{top:0,left:0,bottom:0,height:"100vh",borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color-gray-200"},right:{top:0,right:0,bottom:0,height:"100vh",borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color-gray-200"},top:{top:0,left:0,right:0,width:"100vw",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200"},bottom:{bottom:0,left:0,right:0,width:"100vw",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200"}},Yt=({isOpen:e,onClose:o,isClosePrevented:t,blur:n,children:a,...i})=>{const c=()=>{t||o()};return h.useEffect(()=>{const s=d=>{d.key==="Escape"&&e&&!t&&o()};return e&&document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[e,t,o]),r.jsx(l.View,{"data-testid":"drawer-overlay",role:"dialog","aria-modal":"true",position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1e3,visibility:e?"visible":"hidden",onClick:c,opacity:e?1:0,transition:"opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease",backgroundColor:e?"color-dark-50-360":"transparent",backdropFilter:n?`blur(${n}px)`:void 0,pointerEvents:e?"auto":"none",...i,children:a})},Kt=({placement:e="right",size:o="md",isOpen:t=!1,children:n,...a})=>{const i=f=>{f.stopPropagation()},s=e==="top"||e==="bottom"?{height:o==="full"?"100vh":Dl[o]||o,maxHeight:"100vh"}:{width:o==="full"?"100vw":Dl[o]||o,maxWidth:"100vw"},d=e==="left"?"0 12px 12px 0":e==="right"?"12px 0 0 12px":e==="top"?"0 0 12px 12px":"12px 12px 0 0",g=t?"translate3d(0, 0, 0)":e==="left"?"translate3d(-100%, 0, 0)":e==="right"?"translate3d(100%, 0, 0)":e==="top"?"translate3d(0, -100%, 0)":"translate3d(0, 100%, 0)";return r.jsx(l.Vertical,{position:"absolute",backgroundColor:"color-white",borderRadius:d,...Rf[e],...s,onClick:i,transform:g,willChange:"transform",transition:"transform 0.24s ease, box-shadow 0.2s ease",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.12)",...a,children:n})},em=({children:e,onClose:o,buttonPosition:t="right",...n})=>{const a=o&&r.jsx(l.View,{onClick:o,cursor:"pointer",padding:8,children:r.jsx(Me,{widthHeight:20,color:"color-gray-500"})});return r.jsxs(l.Horizontal,{paddingHorizontal:24,paddingVertical:16,borderBottomWidth:"1px",borderBottomColor:"color-gray-200",alignItems:"center",justifyContent:t==="none"?"center":"space-between",...n,children:[t==="left"&&a,e,t==="right"&&a]})},om=({children:e,...o})=>r.jsx(l.Vertical,{padding:24,flex:1,overflowY:"auto",...o,children:e}),rm=({children:e,...o})=>r.jsx(l.Horizontal,{paddingHorizontal:24,paddingVertical:16,borderTopWidth:"1px",borderTopColor:"color-gray-200",alignItems:"center",justifyContent:"flex-end",gap:12,...o,children:e}),no=Co.create(e=>({drawers:[],onHide:o=>o,onShow:(o,t)=>({name:o,props:t}),show:(o,t={},n={})=>{e(a=>({...a,drawers:[...a.drawers,{name:o,props:{...t,isOpen:!1},overlayProps:n}]}))},hide:o=>{e(t=>o?{...t,drawers:t.drawers.filter(n=>n.name!==o)}:{drawers:[]})},setOnHide:o=>{e(t=>({...t,onHide:o}))},setOnShow:o=>{e(t=>({...t,onShow:o}))}})),tm=(e,o={},t={})=>{const n=no.getState();n.hide(e),n.show(e,o,t),n.onShow(e,o),queueMicrotask(()=>{no.setState(a=>({drawers:a.drawers.map(i=>i.name===e?{...i,props:{...i.props,isOpen:!0}}:i)}))})},$l=e=>{no.getState().onHide(e),no.getState().hide(typeof e=="string"?e:void 0)},nm=({drawers:e,onShow:o,onHide:t})=>{const n=no(a=>a.drawers);return h.useEffect(()=>{o&&no.getState().setOnShow(o)},[o]),h.useEffect(()=>{t&&no.getState().setOnHide(t)},[t]),n.length===0?null:r.jsx(h.Fragment,{children:n.map((a,i)=>{var u;const c=e[a.name];if(!c)return console.error(`${a.name} drawer doesn't exist`),null;const{placement:s,size:d,isClosePrevented:g,blur:f,containerProps:m,...p}=a.props||{};return r.jsx(Yt,{isOpen:a.props.isOpen,onClose:()=>$l(a.name),isClosePrevented:g,blur:f,...a.overlayProps,style:{zIndex:1e3+i,...((u=a.overlayProps)==null?void 0:u.style)||{}},children:r.jsx(Kt,{placement:s,size:d,isOpen:a.props.isOpen,...m||{},children:r.jsx(h.Suspense,{fallback:null,children:r.jsx(c,{...p})})})},i)})})},mo=({isOpen:e,onClose:o,placement:t="right",size:n="md",isClosePrevented:a,children:i,...c})=>r.jsx(Yt,{isOpen:e,onClose:o,isClosePrevented:a,...c,children:r.jsx(Kt,{placement:t,size:n,isOpen:e,children:i})});mo.Overlay=Yt,mo.Container=Kt,mo.Header=em,mo.Body=om,mo.Footer=rm,mo.Layout=nm;const Ll=({behavior:e,keyboardVerticalOffset:o,dismissOnTap:t,enabled:n,children:a,...i})=>r.jsx(l.View,{flex:1,width:"100%",...i,children:a}),am=({header:e,footer:o,children:t,isLoading:n=!1,safe:a=!0,scrollable:i=!0,dismissKeyboardOnTap:c=!0,keyboardVerticalOffset:s=0,views:d={},backgroundColor:g="color-white",...f})=>{const m=a?l.SafeArea:l.View,p=l.isBrowser()?{}:{keyboardShouldPersistTaps:"handled",showsVerticalScrollIndicator:!1,contentContainerStyle:{flexGrow:1}},u=n?r.jsx(l.Center,{flex:1,width:"100%",...d.content,children:r.jsx(Re,{})}):i?r.jsx(l.Scroll,{flex:1,width:"100%",...p,...d.content,children:t}):r.jsx(l.View,{flex:1,width:"100%",...d.content,children:t});return r.jsxs(m,{flex:1,height:"100%",width:"100%",flexDirection:"column",backgroundColor:g,...f,...d.container,children:[e!=null&&r.jsx(l.View,{width:"100%",flexShrink:0,...d.header,children:e}),r.jsxs(Ll,{flexDirection:"column",dismissOnTap:c,keyboardVerticalOffset:s,children:[u,o!=null&&r.jsx(l.View,{width:"100%",flexShrink:0,...d.footer,children:o})]})]})},$r=Co.create(e=>({started:!1,loaded:!1,setStarted:(o=!0)=>e({started:o}),setLoaded:(o=!0)=>e({loaded:o}),reset:()=>e({started:!1,loaded:!1})})),lm=(e=!0)=>$r.getState().setLoaded(e),im=(e=!0)=>$r.getState().setStarted(e),cm=({logo:e,logoSrc:o,loader:t,showLoader:n=!0,duration:a=600,isLoaded:i,onHidden:c,backgroundColor:s="color-white",children:d,...g})=>{const f=$r(v=>v.loaded),m=i!==void 0?i:f,[p,u]=h.useState(!0),[y,k]=h.useState(!1);if(h.useEffect(()=>{if(!m||y)return;k(!0);const v=setTimeout(()=>{u(!1),c==null||c()},a);return()=>clearTimeout(v)},[m,y,a,c]),!p)return null;const x=l.isBrowser()?"fixed":"absolute",C=y?l.Animation.fadeOut({duration:`${a}ms`}):void 0,w=e??(o?r.jsx(l.Image,{src:o,width:120,height:120,alt:"logo"}):null);return r.jsxs(l.Center,{position:x,top:0,left:0,right:0,bottom:0,zIndex:9999,backgroundColor:s,animate:C,...g,children:[r.jsxs(l.Vertical,{alignItems:"center",gap:24,children:[w,n&&(t??r.jsx(Re,{}))]}),d]})},Ge=Co.create((e,o)=>({stack:[{path:"/",params:{}}],index:0,push:(t,n={})=>e(a=>{const i=a.stack.slice(0,a.index+1);return i.push({path:t,params:n}),{stack:i,index:i.length-1}}),replace:(t,n={})=>e(a=>{const i=a.stack.slice();return i[a.index]={path:t,params:n},{stack:i}}),back:()=>{const{index:t}=o();return t<=0?!1:(e({index:t-1}),!0)},go:t=>e(n=>({index:Math.min(Math.max(n.index+t,0),n.stack.length-1)})),reset:(t,n={})=>e({stack:[{path:t,params:n}],index:0})})),sm=(e,o)=>Ge.getState().push(e,o),dm=()=>Ge.getState().back(),Xt=()=>{const e=Ge(d=>d.stack),o=Ge(d=>d.index),t=Ge(d=>d.push),n=Ge(d=>d.replace),a=Ge(d=>d.back),i=Ge(d=>d.go),c=Ge(d=>d.reset),s=e[o]||{path:"/",params:{}};return{path:s.path,params:s.params,stack:e,index:o,canGoBack:o>0,push:t,replace:n,back:a,go:i,reset:c,navigate:t}},_l=(e,o)=>{const t=e.split("/").filter(Boolean),n=o.split("/").filter(Boolean);if(t.length!==n.length)return null;const a={};for(let i=0;i<t.length;i+=1){const c=t[i];if(c.startsWith(":"))a[c.slice(1)]=decodeURIComponent(n[i]);else if(c!==n[i])return null}return a},gm=e=>Array.isArray(e)?e:Object.entries(e).map(([o,t])=>({path:o,component:t})),hm=({routes:e,notFound:o})=>{const{path:t,params:n}=Xt();for(const a of gm(e)){const i=_l(a.path,t);if(i){const c=a.component;return r.jsx(c,{...n,...i})}}return o?r.jsx(o,{}):null},fm=({routes:e,notFound:o,initialPath:t,syncBrowserHistory:n=!1})=>{const{path:a,push:i,back:c,reset:s}=Xt(),d=h.useRef(!1);return l.useMount(()=>{t&&s(t)}),h.useEffect(()=>{if(!(!n||typeof window>"u")){if(d.current){d.current=!1;return}try{window.history.pushState({path:a},"",a)}catch{}}},[a,n]),h.useEffect(()=>{if(!n||typeof window>"u")return;const g=()=>{d.current=!0,c()||(d.current=!1)};return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[n,c,i]),r.jsx(hm,{routes:e,notFound:o})},mm=(e=null,o=[])=>{const[t,n]=h.useState(e),[a,i]=h.useState(o),c=h.useRef({});return{activeItemId:t,setActiveItemId:n,expandedItemIds:a,toggleExpandedItem:g=>{i(f=>f.includes(g)?f.filter(p=>p!==g):[...f,g])},isItemExpanded:g=>a.includes(g),triggerRefs:c}},Jt={sm:{padding:"8px 12px",fontSize:"12px",fontWeight:"500",media:{mobile:{padding:"6px 10px",fontSize:"11px"}}},md:{padding:"10px 14px",fontSize:"14px",fontWeight:"500",media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},lg:{padding:"12px 16px",fontSize:"14px",fontWeight:"600",media:{mobile:{padding:"10px 14px",fontSize:"12px"}}}},Qt={default:{color:"color-gray-800",style:{backgroundColor:"transparent"},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800",style:{backgroundColor:"transparent"},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"}},Bl={horizontal:{flexDirection:"row",gap:"8px",media:{mobile:{flexDirection:"column",gap:"4px"}}},vertical:{flexDirection:"column",gap:"4px"}},jo={active:{backgroundColor:"color-blue-50",color:"color-blue-700",fontWeight:"600",borderLeft:"3px solid",borderColor:"color-blue-600"},hover:{backgroundColor:"color-gray-100",transition:"background-color 0.2s ease"}},Ol=h.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default",triggerRefs:{current:{}}}),pm=({children:e,value:o})=>r.jsx(Ol.Provider,{value:o,children:e}),nr=()=>{const e=h.useContext(Ol);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},Zt=({children:e,views:o})=>{const{orientation:t}=nr(),n=t==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(n,{width:"100%",...Bl[t],transition:"background-color 0.2s ease, border-color 0.2s ease",borderRadius:"8px",...o==null?void 0:o.container,children:e})},Nl=h.createContext({itemValue:null,isDisabled:!1}),um=()=>{const e=h.useContext(Nl);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e},Rt=({item:e,value:o,isDisabled:t=!1,children:n,views:a})=>{var C;const{activeItemId:i,setActiveItemId:c,orientation:s,size:d,variant:g,onItemActivate:f}=nr(),m=(e==null?void 0:e.id)||o,p=i===m,u=(e==null?void 0:e.items)&&e.items.length>0,y=(e==null?void 0:e.disabled)||t,k=()=>{y||m&&(c(m),f&&f(m))},x=s==="horizontal"?l.Horizontal:l.Vertical;return n?r.jsx(Nl.Provider,{value:{itemValue:m||null,isDisabled:y},children:r.jsx(l.View,{width:"100%",cursor:y?"not-allowed":"pointer",opacity:y?.6:1,borderRadius:"8px",transition:"background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease",...Jt[d],...Qt[g],...p?jo.active:{},_hover:y?{}:jo.hover,...a==null?void 0:a.item,children:n})}):u&&e?r.jsxs(x,{width:"100%",flexDirection:"column",position:"relative",...a==null?void 0:a.item,children:[r.jsxs(ql,{itemId:e.id,disabled:e.disabled,views:a,children:[e.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:e.icon}),e.label]}),r.jsx(Ul,{itemId:e.id,children:r.jsx(Zt,{children:(C=e.items)==null?void 0:C.map(w=>r.jsx(Rt,{item:w},w.id))})})]}):e?r.jsxs(l.View,{as:e.href?"a":"div",href:e.href,onClick:k,cursor:e.disabled?"not-allowed":"pointer",opacity:e.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"8px",transition:"background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease",gap:"8px",...Jt[d],...Qt[g],...p?jo.active:{},_hover:e.disabled?{}:jo.hover,...a==null?void 0:a.item,children:[e.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:e.icon}),e.label]}):null},ql=({children:e,itemId:o,disabled:t,views:n})=>{const{activeItemId:a,toggleExpandedItem:i,isItemExpanded:c,size:s,variant:d,triggerRefs:g}=nr(),f=h.useRef(null),m=a===o,p=c(o);h.useEffect(()=>(f.current&&o&&(g.current[o]=f.current),()=>{o&&delete g.current[o]}),[o,g]);const u=y=>{y.preventDefault(),!t&&i(o)};return r.jsxs(l.View,{ref:f,onClick:u,cursor:t?"not-allowed":"pointer",opacity:t?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:8,transition:"background-color 0.2s ease",...Jt[s],...Qt[d],...m?jo.active:{},_hover:t?{}:jo.hover,...n==null?void 0:n.trigger,children:[r.jsx(l.View,{display:"flex",alignItems:"center",children:e}),r.jsx(l.View,{transition:"transform 0.2s ease",transform:p?"rotate(180deg)":"rotate(0deg)",...n==null?void 0:n.indicator,children:r.jsx(ge,{orientation:"down",widthHeight:16,color:"currentColor",filled:!0})})]})},Ul=({children:e,itemId:o,views:t})=>{const{isItemExpanded:n,orientation:a,triggerRefs:i}=nr(),c=h.useRef(null),[s,d]=h.useState({x:0,y:0,placement:a==="horizontal"?"bottom":"right"}),g=n(o);if(h.useEffect(()=>{if(g&&c.current&&o&&i.current[o]&&a==="horizontal"){const m=c.current.getBoundingClientRect(),p=i.current[o].getBoundingClientRect(),u=Math.max(m.width||200,200),y=Math.max(m.height||150,150),k=window.innerWidth,x=window.innerHeight,C={top:p.top,right:k-p.right,bottom:x-p.bottom,left:p.left},w=a==="horizontal"?[{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8},{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top}]:[{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top},{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8}],v=w.find(F=>F.fits);if(v){d({x:v.x,y:v.y,placement:v.placement});return}const S=w.reduce((F,W)=>W.space>F.space?W:F);let b=S.x,T=S.y;b+u>k&&(b=k-u-8),b<8&&(b=8),T+y>x&&(T=x-y-8),T<8&&(T=8),d({x:b,y:T,placement:S.placement})}},[g,a,o,i]),!g)return null;if(a==="vertical")return r.jsx(l.View,{paddingLeft:16,width:"100%",position:"relative",backgroundColor:"transparent",...t==null?void 0:t.container,children:e});const f={position:"fixed",left:s.x,top:s.y,zIndex:1e3};return r.jsx(l.View,{ref:c,role:"menu",minWidth:"200px",backgroundColor:"color-white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:f,...t==null?void 0:t.container,children:e})},ym=({href:e,children:o,views:t,underline:n,isExternal:a,iconSize:i,...c})=>{const{itemValue:s,isDisabled:d}=um(),{activeItemId:g,setActiveItemId:f,onItemActivate:m}=nr(),p=g===s,u=y=>{if(d){y.preventDefault();return}s&&(f(s),m&&m(s)),c.onClick&&c.onClick(y)};return r.jsx(l.View,{as:"a",href:d?void 0:e,onClick:u,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,width:"100%",display:"flex",alignItems:"center","aria-current":p?"page":void 0,"aria-disabled":d,"data-active":p?"":void 0,"data-disabled":d?"":void 0,...p?{fontWeight:"bold"}:{},...t==null?void 0:t.container,...c,children:o})},bm=({items:e,orientation:o,views:t,themeMode:n})=>{const a=o==="horizontal"?l.Horizontal:l.Vertical;return!e||e.length===0?null:r.jsx(a,{width:"100%",...Bl[o],...t==null?void 0:t.container,children:r.jsx(Zt,{views:t,children:e.map(i=>r.jsx(Rt,{item:i,views:t},i.id))})})},po=e=>{const o=pe("navigation",e),{items:t,children:n,orientation:a="vertical",size:i="md",variant:c="default",defaultActiveItemId:s=null,defaultExpandedItemIds:d=[],onItemActivate:g,views:f,...m}=o,{activeItemId:p,setActiveItemId:u,expandedItemIds:y,toggleExpandedItem:k,isItemExpanded:x,triggerRefs:C}=mm(s,d);return r.jsx(pm,{value:{activeItemId:p,setActiveItemId:u,expandedItemIds:y,toggleExpandedItem:k,isItemExpanded:x,orientation:a,size:i,variant:c,onItemActivate:g,triggerRefs:C},children:t?r.jsx(bm,{items:t,orientation:a,size:i,variant:c,views:f,...m}):n})};po.List=Zt,po.Item=Rt,po.Trigger=ql,po.Content=Ul,po.Link=ym;const Gl={},Yl=h.createContext({views:Gl,onRowClick:()=>{}}),xm=({children:e,views:o=Gl,onRowClick:t})=>r.jsx(Yl.Provider,{value:{views:o,onRowClick:t},children:e}),ao=()=>h.useContext(Yl),be={table:{width:"100%",color:"inherit",borderRadius:"8px",overflow:"hidden",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.06), 0px 1px 2px rgba(0, 0, 0, 0.04)",border:"1px solid",borderColor:"color-gray-200",transition:"box-shadow 0.2s ease",media:{mobile:{overflowX:"auto",display:"block",borderRadius:"4px"}}},thead:{backgroundColor:"color-gray-50",borderBottom:"1px solid",borderColor:"color-gray-200"},th:{padding:"12px 16px",fontWeight:"600",fontSize:"14px",color:"inherit",opacity:.72,textAlign:"left",flex:1,media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},td:{padding:"12px 16px",fontSize:"14px",borderBottom:"1px solid",borderColor:"color-gray-100",color:"inherit",flex:1,media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},tr:{flexDirection:"row",alignItems:"stretch",width:"100%",transition:"background-color 0.15s ease",_hover:{backgroundColor:"color-gray-50"},_focus:{outline:"none",backgroundColor:"color-gray-100"}},tfoot:{backgroundColor:"color-gray-50",fontWeight:"600",borderTop:"2px solid",borderColor:"color-gray-200"},caption:{margin:"8px 0",color:"inherit",opacity:.62,fontSize:"14px",fontStyle:"italic",media:{mobile:{fontSize:"12px"}}}};({...be.th},{...be.td}),{...be.tr},{...be.td},{...be.th},{...be.table},{...be.th},{...be.td},{...be.tr},{...be.tfoot},{...be.caption};const km=({children:e})=>r.jsx(l.View,{width:"100%",style:{overflowX:"auto"},children:e}),Kl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"table",...be.table,...o==null?void 0:o.table,...e,style:{borderCollapse:"collapse",...e.style||{}}})},Xl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"thead",textAlign:"left",...be.thead,...o==null?void 0:o.thead,...e})},Jl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"th",whiteSpace:"nowrap",...be.th,...o==null?void 0:o.th,...e})},Lr=e=>{const{views:o,onRowClick:t}=ao();return r.jsx(l.Element,{as:"tr",...be.tr,...o==null?void 0:o.tr,onClick:t,...e})},en=({isFirstColumn:e,...o})=>{const{views:t}=ao();return r.jsx(l.Element,{as:"td",whiteSpace:"nowrap",fontWeight:e?"500":"400",...be.td,...t==null?void 0:t.td,...o})},Ql=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"tbody",...be.tbody,...o==null?void 0:o.tbody,...e})},Zl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"tfoot",...be.tfoot,...o==null?void 0:o.tfoot,...e})},Rl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"caption",...be.caption,...o==null?void 0:o.caption,...e})},Cm=({data:e,columns:o,footer:t,caption:n,themeMode:a})=>{const i=Math.max(o.length*140,320);return r.jsx(km,{children:r.jsxs(Kl,{role:"Table",minWidth:i,children:[n&&r.jsx(Rl,{children:n}),r.jsx(Xl,{children:r.jsx(Lr,{children:o.map(c=>r.jsx(Jl,{children:c.title},c.field))})}),r.jsx(Ql,{children:e.map((c,s)=>r.jsx(Lr,{children:o.map((d,g)=>r.jsx(en,{isFirstColumn:g===0,children:c[d.field]},d.field))},s))}),t&&r.jsx(Zl,{children:r.jsx(Lr,{children:t.map((c,s)=>r.jsx(en,{...c.props,children:c.value},s))})})]})})},je=({children:e,views:o,onClick:t})=>{const n=pe("table",{views:o,onClick:t});return r.jsx(xm,{views:n.views,onRowClick:n.onClick,children:e})};je.Head=Xl,je.HeadCell=Jl,je.Body=Ql,je.Row=Lr,je.Cell=en,je.Footer=Zl,je.Caption=Rl,je.Container=Kl,je.Template=Cm;const wm=(e,o,t)=>{const n=g=>g.value!==void 0?g.value:g.title,a=()=>{if(!(!e||e.length===0)){if(o!==void 0){const g=e.find(f=>n(f)===o);if(g)return g}return e[0]}},[i,c]=h.useState(a()),s=t!==void 0?e.find(g=>n(g)===t):i,d=g=>{t===void 0&&c(g)};return h.useEffect(()=>{if(t!==void 0)return;const g=a(),f=i&&e.some(m=>n(m)===n(i));g&&(!f||o!==void 0&&i&&n(i)!==o)?c(g):!g&&i&&c(void 0)},[e,o]),{activeTab:s,setActiveTab:d}},Sm=(e,o,t)=>{const[n,a]=h.useState(e||null);return{activeValue:o!==void 0?o:n,setActiveValue:s=>{o===void 0&&a(s),t&&t(s)}}},vm=h.memo(({tab:e,isActive:o,onClick:t,iconPosition:n="left",tabStyles:a,textStyles:i})=>{const c=()=>{switch(n){case"top":return"column";case"bottom":return"column-reverse";case"right":return"row-reverse";case"left":default:return"row"}},s=()=>["top","bottom"].includes(n)?"4px":"8px",d=e.icon&&h.isValidElement(e.icon)?h.cloneElement(e.icon,{strokeWidth:o?2.5:2}):e.icon;return r.jsxs(l.Element,{as:"div",role:"tab","aria-selected":o,tabIndex:o?0:-1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease",...a,flexDirection:c(),gap:s(),onClick:t,"data-state":o?"active":"inactive",children:[d&&r.jsx(l.Element,{children:d},o?"active-icon":"inactive-icon"),r.jsxs(l.Element,{display:"grid",alignItems:"center",justifyContent:"center",children:[r.jsx(l.Text,{...i,fontWeight:"600",visibility:"hidden",gridColumn:"1",gridRow:"1","aria-hidden":"true",children:e.title}),r.jsx(l.Text,{...i,fontWeight:o?"600":"500",gridColumn:"1",gridRow:"1",children:e.title})]})]})}),on=(e,o)=>{const t=o==="dark";return e==="segmented"?{header:{width:"fit-content",alignSelf:"flex-start",gap:6,padding:6,borderRadius:16,backgroundColor:"color-gray-100"},tab:{minHeight:44,padding:"0 22px",borderRadius:12,color:"color-gray-600",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-100",style:{backgroundColor:"transparent"}},activeTab:{backgroundColor:"color-white",color:"color-gray-900",boxShadow:t?"0 1px 3px rgba(0, 0, 0, 0.35)":"0 1px 2px rgba(0, 0, 0, 0.06)"},text:{fontSize:14,lineHeight:"20px",letterSpacing:"-0.01em"},activeText:{},content:{width:"100%"}}:e==="pill"?{header:{width:"100%",flexWrap:"wrap",gap:12},tab:{minHeight:44,padding:"0 22px",borderRadius:"999px",backgroundColor:"color-white",color:"color-gray-600",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200"},activeTab:{backgroundColor:"theme-primary",color:"color-white",borderColor:"theme-primary"},text:{fontSize:14,lineHeight:"20px",letterSpacing:"-0.01em",color:"inherit"},activeText:{color:"inherit"},content:{width:"100%"}}:{header:{width:"100%",gap:20,borderBottom:"none"},tab:{minHeight:44,padding:"0 4px",borderRadius:0,color:"color-gray-500",borderBottom:"3px solid",borderColor:"color-white",style:{backgroundColor:"transparent"}},activeTab:{color:"theme-primary",borderColor:"theme-primary"},text:{fontSize:14,lineHeight:"20px",letterSpacing:"-0.01em",color:"inherit"},activeText:{color:"inherit"},content:{width:"100%",paddingTop:12}}},Tm=({tabs:e=[],activeTab:o,handleTabClick:t,views:n={},renderTab:a,renderContent:i,variant:c="underline",iconPosition:s="left"})=>{const{themeMode:d}=l.useTheme(),g=on(c,d);return o?r.jsxs(l.Vertical,{width:"100%",height:"100%",...n.container,children:[r.jsx(l.Horizontal,{alignItems:"center",...g.header,...n.headerTabs,children:e.map(f=>{const m=(f.value!==void 0?f.value:f.title)===(o.value!==void 0?o.value:o.title),p=()=>t(f);return a?a(f,m,p):r.jsx(vm,{tab:f,isActive:m,onClick:p,iconPosition:s,tabStyles:{...g.tab,...n.tab,...m?g.activeTab:{},...m?n.activeTab:{}},textStyles:{...g.text,...n.title,...m?g.activeText:{},...m?n.activeText:{}}},f.title)})}),r.jsx(l.View,{height:"100%",...g.content,...n.content,children:i?i(o):o.content})]}):null},ei=h.createContext(null),rn=()=>{const e=h.useContext(ei);if(!e)throw new Error("useTabsContext must be used within a Tabs component");return e},Im=h.memo(({children:e,views:o})=>{var s;const{themeMode:t}=l.useTheme(),{variant:n="underline"}=rn(),a=on(n,t),i=wo("tabs"),c=Ne({container:(s=i.views)==null?void 0:s.headerTabs},o);return r.jsx(l.Horizontal,{alignItems:"center",...a.header,...c==null?void 0:c.container,children:e})}),Fm=h.memo(({value:e,children:o,disabled:t=!1,views:n})=>{var u,y;const{themeMode:a}=l.useTheme(),{activeValue:i,setActiveValue:c,variant:s="underline"}=rn(),d=i===e,g=on(s,a),f=wo("tabs"),m=Ne({trigger:(u=f.views)==null?void 0:u.tab,activeState:(y=f.views)==null?void 0:y.activeTab},n),p=h.useCallback(()=>{t||c(e)},[t,e,c]);return r.jsx(l.View,{cursor:t?"not-allowed":"pointer",opacity:t?.6:1,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",...g.tab,...d?g.activeTab:{},_hover:t?{}:s==="underline"?{color:"theme-primary"}:{opacity:.9},onClick:p,...m==null?void 0:m.trigger,...d?m==null?void 0:m.activeState:{},children:r.jsx(l.View,{...g.text,...d?g.activeText:{},children:o})})}),zm=h.memo(({value:e,children:o,views:t})=>{const{activeValue:n}=rn();return n!==e?null:r.jsx(l.View,{width:"100%",padding:"24px",...t==null?void 0:t.content,children:o})}),Mm=e=>{const o=pe("tabs",e),{tabs:t,views:n,defaultValue:a,onTabChange:i,renderTab:c,renderContent:s,variant:d="underline",iconPosition:g="left",value:f,onValueChange:m,children:p}=o,u=Sm(a,f,m),y=wm(t||[],a,f);if(p)return r.jsx(ei.Provider,{value:{...u,variant:d},children:p});if(t){const k=x=>{const C=w=>w.value!==void 0?w.value:w.title;(!y.activeTab||C(y.activeTab)!==C(x))&&(y.setActiveTab(x),i&&i(x))};return r.jsx(Tm,{tabs:t,views:n,activeTab:y.activeTab,handleTabClick:k,renderTab:c,renderContent:s,variant:d,iconPosition:g})}return null},Po=h.memo(Mm);Po.List=Im,Po.Trigger=Fm,Po.Content=zm;const Wm=e=>{const{children:o,_isInView:t=!1,alternateHighlightText:n=[],alternateAnimation:a=!1,alternateDuration:i=3e3,highlightText:c,highlightTypewriter:s=!1,highlightSlide:d=!1,highlightSlideDuration:g=500,highlightSlideStagger:f=50,highlightSlideSequential:m=!0}=e,[p,u]=h.useState(o),[y,k]=h.useState(c);return h.useEffect(()=>{if(!a||n.length===0||!t||typeof o!="string"||typeof c!="string")return u(o),k(c),()=>{};const x=o,C=c;let w=0;const v=b=>{const T=n[b],F=C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),W=new RegExp(F,"gi"),j=x.replace(W,T);u(j),k(T)};v(w);const S=setInterval(()=>{w=(w+1)%n.length,v(w)},i);return()=>clearInterval(S)},[a,n,i,c,o,t]),{finalDisplayedText:p,activeHighlightTarget:y,highlightTypewriter:s,highlightSlide:d,highlightSlideDuration:g,highlightSlideStagger:f,highlightSlideSequential:m}},Hm={xs:24,sm:32,md:48,lg:96,xl:110},jm={xl:{media:{mobile:{fontSize:48},tablet:{fontSize:96},desktop:{fontSize:110}}},lg:{media:{mobile:{fontSize:48},tablet:{fontSize:48},desktop:{fontSize:70}}},md:{media:{mobile:{fontSize:32},tablet:{fontSize:40},desktop:{fontSize:56}}},sm:{media:{mobile:{fontSize:20},tablet:{fontSize:24},desktop:{fontSize:32}}},xs:{media:{mobile:{fontSize:14},tablet:{fontSize:18},desktop:{fontSize:20}}}},Pm={underline:e=>({textDecoration:"underline",textDecorationColor:e,textDecorationThickness:"4px",textUnderlineOffset:"4px"}),background:e=>({backgroundColor:e,color:"color-white",padding:"0 8px",borderRadius:"4px"}),gradient:(e,o)=>({background:`linear-gradient(135deg, ${e}, ${o||e})`,backgroundClip:"text",WebkitBackgroundClip:"text !important",WebkitTextFillColor:"transparent",color:"transparent",display:"inline-block",textShadow:"none"}),outline:e=>({WebkitTextStroke:`1px ${e}`,WebkitTextFillColor:"transparent !important",color:"transparent",textShadow:"none"}),glow:e=>({color:e,textShadow:`0 0 10px ${e}80, 0 0 20px ${e}40, 0 0 30px ${e}20`}),solid:e=>({color:e}),default:()=>({})},Am=({text:e,typingSpeed:o=50,pauseTime:t=500,onComplete:n,showCursor:a=!0,cursorColor:i="currentColor",textStyle:c,textComponent:s,as:d,...g})=>{const f=s||l.Text,m=Array.isArray(e)?e:[e],[p,u]=h.useState(m.map(()=>"")),[y,k]=h.useState(!1),[x,C]=h.useState(0),[w,v]=h.useState(0);h.useEffect(()=>{u(m.map(()=>"")),k(!1),C(0),v(0)},[e]),h.useEffect(()=>{if(y){n&&n();return}const b=m[x];if(w>=b.length){if(x>=m.length-1){k(!0);return}const F=setTimeout(()=>{C(W=>W+1),v(0)},t);return()=>clearTimeout(F)}const T=setTimeout(()=>{u(F=>{const W=[...F];return W[x]=b.substring(0,w+1),W}),v(F=>F+1)},o);return()=>clearTimeout(T)},[m,x,w,y,n,t,o]);const S=b=>{if(!b||typeof b!="string")return b;const T=b.split("|");return T.length===1?b:T.map((F,W)=>r.jsxs(h.Fragment,{children:[F,W<T.length-1&&r.jsx("br",{})]},W))};return r.jsx(r.Fragment,{children:p.map((b,T)=>r.jsxs(h.Fragment,{children:[S(b),a&&T===x&&!y&&r.jsx(f,{as:"span",display:"inline-block",width:"0.1em",height:"1em",backgroundColor:i,animation:"blink 1s step-end infinite",verticalAlign:"text-bottom",marginLeft:"1px",...c})]},T))})},Vm=({text:e,duration:o=500,direction:t="up",stagger:n=50,sequential:a=!1,textStyle:i,as:c,wordProps:s,textComponent:d,...g})=>{const[f,m]=h.useState(e),[p,u]=h.useState("entering"),[y,k]=h.useState(0),x=d||l.Text,C=h.useRef(null),w=h.useRef(null);h.useEffect(()=>{e===f&&p==="visible"||e!==f&&(p==="entering"||p==="visible"?(C.current=e,u("exiting")):p==="exiting"&&(C.current=e))},[e,f,p]);const{lines:v,totalWordCount:S}=h.useMemo(()=>{const M=f.split("|").map(L=>L.trim().split(/\s+/).filter(B=>B.length>0)),V=M.reduce((L,B)=>L+B.length,0);return{lines:M,totalWordCount:V}},[f]),b=h.useMemo(()=>a?S*(o+n):(S-1)*n+o,[S,o,n,a]),T=h.useMemo(()=>a?S*(o+n):(S-1)*n+o,[S,o,n,a]);h.useEffect(()=>(w.current&&clearTimeout(w.current),p==="entering"?w.current=setTimeout(()=>{u("visible")},b+50):p==="exiting"&&(w.current=setTimeout(()=>{C.current!==null&&(m(C.current),C.current=null),k(P=>P+1),u("entering")},T+50)),()=>{w.current&&clearTimeout(w.current)}),[p,b,T]);const{style:F,...W}=s||{},j=t==="up",$=P=>a?P*(o+n):P*n,z=h.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"bottom",whiteSpace:"nowrap",...i}),[i]),E=h.useMemo(()=>({display:"inline-flex",flexDirection:"column",alignItems:"center"}),[]),A=h.useMemo(()=>({display:"block",whiteSpace:"nowrap"}),[]);let H=0;return r.jsx(l.Element,{as:"span",style:z,...g,children:r.jsx("span",{style:E,children:v.map((P,M)=>r.jsx("span",{style:A,children:P.map((V,L)=>{const B=H++,q=$(B),_=L===P.length-1;let O;const U=`${o}ms`,K=`${q}ms`;p==="entering"?O=j?l.Animation.slideInUp({duration:U,delay:K,timingFunction:"ease-out",fillMode:"both"}):l.Animation.slideInDown({duration:U,delay:K,timingFunction:"ease-out",fillMode:"both"}):p==="exiting"&&(O=j?{from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(-100%)",opacity:0},duration:U,delay:K,timingFunction:"ease-in",fillMode:"both"}:{from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(100%)",opacity:0},duration:U,delay:K,timingFunction:"ease-in",fillMode:"both"});const N={...F,display:"inline-block",marginRight:_?0:"0.25em",transform:p==="visible"?"translateY(0)":void 0,opacity:p==="visible"?1:void 0};return r.jsx(x,{as:"span",animate:O,...W,...N,children:V},`${y}-${M}-${L}`)})},`line-${M}`))})})};function oi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const tn=e=>{if(!e||typeof e!="string")return e;const o=e.split("|");return o.length===1?e:o.map((t,n)=>r.jsxs(h.Fragment,{children:[t,n<o.length-1&&r.jsx("br",{})]},n))},Em=({children:e,highlightText:o,highlightStyle:t="solid",highlightColor:n="theme-primary",highlightSecondaryColor:a,size:i="lg",views:c,highlightAnimate:s,animate:d,animationLoop:g=1,highlightAnimationLoop:f=1,highlightTypewriter:m=!1,highlightTypewriterDuration:p=3e3,highlightSlide:u=!1,highlightSlideDuration:y=500,highlightSlideStagger:k=50,highlightSlideSequential:x=!0,centered:C=!1,level:w=1,themeMode:v,responsive:S,alternateHighlightText:b,alternateAnimation:T,alternateDuration:F,_isInView:W,...j})=>{const{ref:$,inView:z}=l.useInView(),{finalDisplayedText:E,activeHighlightTarget:A,highlightTypewriter:H,highlightSlide:P,highlightSlideDuration:M,highlightSlideStagger:V,highlightSlideSequential:L}=Wm({children:e,highlightText:o,_isInView:z,highlightTypewriter:m,highlightSlide:u,highlightSlideDuration:y,highlightSlideStagger:k,highlightSlideSequential:x,alternateHighlightText:b,alternateAnimation:T,alternateDuration:F,...j}),B=Hm[i],q={fontFamily:"Mulish, Inter, Geist, system-ui, sans-serif",fontWeight:i==="xl"?700:600,letterSpacing:i==="xl"?"-1.5px":"-0.01em"},_=Pm[t](n,a),O=(Z,J)=>Z&&(Array.isArray(Z)?Z.map(Q=>({...Q,iterationCount:J.toString()})):{...Z,iterationCount:J.toString()}),U=O(d,g),K=O(s,f),N=typeof E=="string"?E:typeof e=="string"?e:"",D={ref:$,animate:z?U:void 0,as:`h${w}`,fontSize:B,...C?{textAlign:"center"}:{},...S?jm[i]:{},...q},X=Z=>!z&&(H||P)?r.jsx("span",{style:{opacity:0},children:Z}):H?r.jsx(Am,{text:Z,typingSpeed:Math.max(30,p/(Z.length*10)),cursorColor:"currentColor",..._}):P?r.jsx(Vm,{text:Z,duration:M,stagger:V,sequential:L,direction:"up",wordProps:_}):tn(Z);if(typeof N=="string"&&A){const Z=Array.isArray(A)?new RegExp(`(${A.map(re=>oi(String(re))).join("|")})`,"gi"):new RegExp(`(${oi(String(A))})`,"gi"),J=[];let Q=0,oe;for(;oe=Z.exec(N);)oe.index>Q&&J.push(N.substring(Q,oe.index)),J.push({highlight:!0,text:oe[0]}),Q=oe.index+oe[0].length;return Q<N.length&&J.push(N.substring(Q)),r.jsx(l.Element,{...D,...c==null?void 0:c.container,...j,children:J.map((re,ae)=>typeof re=="string"?r.jsx(l.Text,{as:"span",display:"inline",...c==null?void 0:c.text,children:tn(re)},`text-${ae}`):r.jsx(l.Text,{as:"span",display:"inline",animate:z?K:void 0,...P?{}:_,...c==null?void 0:c.highlight,children:X(re.text)},`highlight-${ae}`))})}return t&&!A?r.jsx(l.Element,{...D,...j,...c==null?void 0:c.container,children:r.jsx(l.Text,{as:"span",display:"inline",animate:z?K:void 0,...P?{}:_,...c==null?void 0:c.highlight,children:X(N)})}):r.jsx(l.Text,{...D,...j,...c==null?void 0:c.container,...c==null?void 0:c.text,children:tn(N)})},ri=e=>r.jsx(Em,{...e}),ti=({items:e,shape:o,variant:t,onToggleChange:n})=>{const{activeToggles:a,setActiveToggles:i}=zl();return r.jsx(Ml,{items:e,shape:o,variant:t,activeToggles:a,setActiveToggles:i,onToggleChange:n})},Dm=({items:e,onChange:o})=>{const[t,n]=h.useState(e),[a,i]=h.useState(null),[c,s]=h.useState(null),d=h.useRef({x:0,y:0}),g=h.useRef([]),f=h.useCallback((u,y)=>{u.preventDefault(),document.body.style.cursor="grabbing";const k="touches"in u?u.touches[0].clientX:u.clientX,x="touches"in u?u.touches[0].clientY:u.clientY;d.current={x:k,y:x},s(y),i(t[y])},[t]),m=h.useCallback(u=>{if(c===null)return;const y="touches"in u?u.touches[0].clientX:u.clientX,k="touches"in u?u.touches[0].clientY:u.clientY,x=g.current[c];if(!x)return;const C=y-d.current.x,w=k-d.current.y;x.style.transform=`translate(${C}px, ${w}px)`,x.style.zIndex="1000";const v=g.current.findIndex((S,b)=>{if(!S||b===c)return!1;const T=S.getBoundingClientRect();return k>=T.top&&k<=T.bottom});if(v!==-1&&v!==c){const S=[...t],[b]=S.splice(c,1);S.splice(v,0,b),n(S),s(v),o==null||o(S),d.current={x:y,y:k}}},[c,t,o]),p=h.useCallback(()=>{document.body.style.cursor="",g.current.forEach(u=>{u&&(u.style.transform="",u.style.zIndex="")}),s(null),i(null)},[c]);return h.useEffect(()=>{if(typeof(window==null?void 0:window.addEventListener)=="function")return c!==null&&(window.addEventListener("mousemove",m),window.addEventListener("touchmove",m),window.addEventListener("mouseup",p),window.addEventListener("touchend",p)),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",m),window.removeEventListener("mouseup",p),window.removeEventListener("touchend",p)}},[c,m,p]),{items:t,draggedItem:a,draggedIndex:c,itemRefs:g,handleDragStart:f}},$m=({items:e,renderItem:o,containerProps:t,itemProps:n,draggedIndex:a,itemRefs:i,handleDragStart:c,views:s,themeMode:d})=>r.jsx(l.View,{overflow:"hidden",position:"relative",...t,...s==null?void 0:s.container,children:e.map((g,f)=>r.jsx(l.View,{ref:m=>{i.current[f]=m},onMouseDown:m=>c(m,f),onTouchStart:m=>c(m,f),position:"relative",cursor:"grab",transition:"transform 0.2s",...n,...s==null?void 0:s.item,children:o?o(g,f):g},f))}),ni=e=>{const{items:o,draggedIndex:t,itemRefs:n,handleDragStart:a}=Dm(e);return r.jsx($m,{...e,items:o,draggedIndex:t,itemRefs:n,handleDragStart:a})},Lm=ni,_m=({onFileSelect:e,onMultipleFileSelect:o,validateFile:t,accept:n,multiple:a,disabled:i,previewUrl:c})=>{const[s,d]=h.useState(!1),[g,f]=h.useState(null),m=h.useRef(null),p=c!==void 0?c:g;h.useEffect(()=>()=>{g&&URL.revokeObjectURL(g)},[g]);const u=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!i&&d(!0)},[i]),y=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!i&&d(!1)},[i]),k=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!i&&d(!0)},[i]),x=h.useCallback(S=>{if(!S||S.length===0)return;const b=Array.from(S);if(!a&&b.length>0){const T=b[0];if(T.type.startsWith("image/")){const F=URL.createObjectURL(T);f(W=>(W&&URL.revokeObjectURL(W),F))}else f(null)}a?o&&o(b):b.length>0&&e&&e(b[0])},[a,o,e]),C=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),d(!1),!i&&S.dataTransfer.files&&S.dataTransfer.files.length>0&&(x(S.dataTransfer.files),S.dataTransfer.clearData())},[i,x]),w=h.useCallback(()=>{var S;i||(S=m.current)==null||S.click()},[i]),v=h.useCallback(S=>{x(S.target.files),S.target.value&&(S.target.value="")},[x]);return{isDragActive:s,handleDragEnter:u,handleDragLeave:y,handleDragOver:k,handleDrop:C,handleClick:w,handleFileChange:v,inputRef:m,preview:p}},Bm={position:"absolute",top:"-4px",right:"-4px",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",border:"none",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"12px",zIndex:10,_hover:{backgroundColor:"rgba(0, 0, 0, 0.7)"}},ai=({files:e,sandboxId:o,onRemove:t,layout:n="inline",maxHeight:a="120px",showPreviews:i=!1,views:c={}})=>{if(e.length===0)return null;const s=h.useCallback(g=>g<1024?`${g} B`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:`${(g/(1024*1024)).toFixed(1)} MB`,[]),d=h.useCallback(g=>g.type.startsWith("image/")?{backgroundColor:"#DBEAFE",color:"#2563EB"}:g.type.startsWith("video/")?{backgroundColor:"#EDE9FE",color:"#7C3AED"}:g.type.startsWith("audio/")?{backgroundColor:"#DCFCE7",color:"#16A34A"}:{backgroundColor:"#E2E8F0",color:"#475569"},[]);return r.jsx(l.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:a,overflowY:"auto",...c==null?void 0:c.container,children:e.map((g,f)=>{const m=typeof URL<"u"&&typeof URL.createObjectURL=="function"&&typeof Blob<"u"&&g instanceof Blob,p=(g==null?void 0:g.path)||(g==null?void 0:g.url)||(i&&m?URL.createObjectURL(g):""),u=g.type.startsWith("image/"),y=g.type.startsWith("video/"),k=g.type.startsWith("audio/"),x=d(g);return i?r.jsx(l.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:i&&r.jsxs(Fe,{children:[r.jsxs(Fe.Trigger,{children:[u&&r.jsx(l.Image,{src:p,alt:g.name,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),y&&r.jsx(l.View,{as:"video",src:p,alt:g.name,controls:!1,muted:!0,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),k&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(So,{widthHeight:24,color:"color-black"})}),!u&&!y&&!k&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(io,{widthHeight:24,color:"color-black"})}),t&&r.jsx(l.Button,{...Bm,onClick:C=>{C.stopPropagation(),t(f)},"aria-label":`Remove ${g.name}`,children:"×"})]}),r.jsxs(Fe.Content,{children:[u&&r.jsx(l.Image,{src:p,alt:g.name,maxWidth:"100%"}),y&&r.jsx(l.View,{as:"video",src:p,controls:!0,maxWidth:"100%"}),k&&r.jsx(l.View,{as:"audio",src:p,controls:!0,width:"100%"}),r.jsxs(l.Text,{marginTop:"4px",maxLines:1,width:"100%",...c==null?void 0:c.name,children:[g.name," (",s(g.size),")"]})]})]})},f):r.jsxs(l.Horizontal,{alignItems:"center",gap:"8px",padding:"6px 10px 6px 8px",borderRadius:"9999px",border:"1px solid #E2E8F0",backgroundColor:"color-white",maxWidth:"100%",animate:{from:{opacity:0,scale:.96},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:[r.jsx(l.Center,{width:"22px",height:"22px",minWidth:"22px",borderRadius:"9999px",backgroundColor:x.backgroundColor,color:x.color,children:k?r.jsx(So,{widthHeight:12,color:"currentColor"}):r.jsx(io,{widthHeight:12,color:"currentColor"})}),r.jsxs(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-600",maxLines:1,maxWidth:"220px",...c==null?void 0:c.name,children:[g.name," · ",s(g.size)]}),t&&r.jsx(l.View,{as:"button",type:"button",onClick:()=>t(f),"aria-label":`Remove ${g.name}`,display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",minWidth:"16px",border:"none",backgroundColor:"transparent",color:"color-gray-400",padding:0,cursor:"pointer",transition:"color 0.2s ease, opacity 0.2s ease",_hover:{color:"color-gray-600"},children:"×"})]},f)})})},Om=({children:e,text:o="Drop files here or click to upload",textProps:t,containerProps:n,disabled:a,accept:i,multiple:c,isDragActive:s,handleDragEnter:d,handleDragLeave:g,handleDragOver:f,handleDrop:m,handleClick:p,handleFileChange:u,inputRef:y,preview:k,imageProps:x,selectedFiles:C,onRemove:w})=>r.jsxs(l.Center,{width:"100%",minHeight:"200px",height:C&&C.length>0?"auto":"200px",borderWidth:2,borderStyle:"dashed",borderColor:s?"theme-primary":"color-gray-300",borderRadius:12,backgroundColor:s?"#EFF6FF":"color-gray-50",flexDirection:"column",cursor:a?"not-allowed":"pointer",opacity:a?.6:1,onClick:p,onDragEnter:d,onDragLeave:g,onDragOver:f,onDrop:m,transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease",overflow:"hidden",position:"relative",padding:16,...n,children:[r.jsx("input",{type:"file",ref:y,onChange:u,accept:i,multiple:c,style:{display:"none"},disabled:a}),k&&!c?r.jsxs(l.View,{width:"100%",height:"200px",position:"relative",children:[r.jsx(l.Image,{src:k,alt:"Preview",width:"100%",height:"100%",objectFit:"contain",...x}),r.jsx(l.Center,{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.3)",opacity:0,_hover:{opacity:1},transition:"opacity 0.2s",children:r.jsx(l.Text,{color:"white",fontWeight:600,children:"Click to replace"})})]}):r.jsxs(l.View,{flexDirection:"column",alignItems:"center",width:"100%",children:[e||r.jsxs(l.View,{flexDirection:"column",alignItems:"center",width:"100%",children:[r.jsx(yt,{widthHeight:40,color:s?"theme-primary":"color-gray-500"}),r.jsx(l.Text,{marginTop:16,color:s?"theme-primary":"color-gray-600",fontWeight:500,textAlign:"center",...t,children:o})]}),c&&C&&C.length>0&&r.jsx(l.View,{marginTop:16,width:"100%",children:r.jsx(ai,{files:C,onRemove:w||(()=>{}),showPreviews:!0,layout:"inline",maxHeight:"160px"})})]})]}),Nm=e=>{const o=_m(e);return r.jsx(Om,{...e,...o})},qm=(e=!1)=>{const[o,t]=h.useState(e),[n,a]=h.useState(null);return h.useEffect(()=>{const i=d=>{!d.composedPath().some(m=>(m==null?void 0:m.id)==="dropdown-menu"||(m==null?void 0:m.id)==="dropdown-trigger")&&o&&(t(!1),a(null))},c=()=>{o&&(t(!1),a(null))},s=d=>{d.key==="Escape"&&o&&(t(!1),a(null))};if(!(typeof(document==null?void 0:document.addEventListener)!="function"||typeof(window==null?void 0:window.addEventListener)!="function"))return document.addEventListener("mousedown",i),window.addEventListener("resize",c),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousedown",i),window.removeEventListener("resize",c),document.removeEventListener("keydown",s)}},[o]),{isOpen:o,setIsOpen:t,activeSubmenuId:n,setActiveSubmenuId:a}},Um={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Gm={default:{backgroundColor:"color-white",color:"color-gray-800"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},Ym={hover:{backgroundColor:"color-gray-100"}},li=h.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null}}),Km=({children:e,value:o})=>r.jsx(li.Provider,{value:o,children:e}),nn=()=>{const e=h.useContext(li);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},ii=({children:e,views:o,...t})=>{const{isOpen:n,setIsOpen:a,triggerRef:i}=nn(),c=s=>{s.stopPropagation(),a(!n)};return r.jsx(l.View,{ref:i,id:"dropdown-trigger",onClick:c,cursor:"pointer",position:"relative",display:"inline-block",...o==null?void 0:o.container,...t,children:e})},an=({items:e,side:o="bottom",align:t="start",views:n,...a})=>{const{isOpen:i,variant:c,triggerRef:s}=nn(),d=h.useRef(null),{ref:g,relation:f}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[m,p]=h.useState({x:0,y:0,placement:o});if(h.useEffect(()=>{s.current&&g&&(g.current=s.current)},[s,g,i]),h.useEffect(()=>{if(i&&d.current&&s.current){const k=s.current.getBoundingClientRect();let x=o;f&&(o==="bottom"&&f.space.vertical==="top"?x="top":o==="top"&&f.space.vertical==="bottom"?x="bottom":o==="right"&&f.space.horizontal==="left"?x="left":o==="left"&&f.space.horizontal==="right"&&(x="right"));let C=0,w=0;switch(x){case"bottom":C=t==="start"?k.left:t==="end"?k.right-180:k.left+k.width/2-90,w=k.bottom+8;break;case"top":C=t==="start"?k.left:t==="end"?k.right-180:k.left+k.width/2-90,w=k.top-8;break;case"right":C=k.right+8,w=t==="start"?k.top:t==="end"?k.bottom-100:k.top+k.height/2-50;break;case"left":C=k.left-8,w=t==="start"?k.top:t==="end"?k.bottom-100:k.top+k.height/2-50;break}p({x:C,y:w,placement:x})}},[i,o,t,s,f]),!i)return null;const y=(()=>{const k={position:"fixed",left:m.x,top:m.y,zIndex:1e3};switch(m.placement){case"top":return{...k,transform:"translateY(-100%)"};case"left":return{...k,transform:"translateX(-100%)"};case"bottom":case"right":default:return k}})();return r.jsx(l.View,{ref:d,id:"dropdown-menu",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:y,...Gm[c],...n==null?void 0:n.menu,...a,children:e.map((k,x)=>k.divider?r.jsx(si,{views:n},`divider-${x}`):r.jsx(ci,{item:k,views:n},k.id))})},ci=({item:e,views:o,...t})=>{const{activeSubmenuId:n,setActiveSubmenuId:a,size:i}=nn(),[c,s]=h.useState(!1),d=e.items&&e.items.length>0,g=n===e.id,f=h.useRef(null),m=()=>{s(!0),d&&a(e.id)},p=()=>{s(!1)},u=y=>{y.stopPropagation(),!e.disabled&&!d&&e.onClick&&e.onClick()};return r.jsxs(l.View,{ref:f,display:"flex",alignItems:"center",cursor:e.disabled?"not-allowed":"pointer",opacity:e.disabled?.5:1,position:"relative",...Um[i],_hover:e.disabled?{}:Ym.hover,backgroundColor:c&&!e.disabled?"color-gray-100":"transparent",onMouseEnter:m,onMouseLeave:p,onClick:u,...o==null?void 0:o.item,...t,children:[e.icon&&r.jsx(l.View,{marginRight:8,...o==null?void 0:o.icon,children:e.icon}),r.jsx(l.View,{flexGrow:1,children:e.label}),d&&r.jsx(l.View,{marginLeft:8,...o==null?void 0:o.submenuIndicator,children:r.jsx(ge,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})}),g&&d&&r.jsx(an,{items:e.items||[],side:"right",align:"start",views:o})]})},si=({views:e,...o})=>r.jsx(l.View,{height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",...e==null?void 0:e.divider,...o}),Xm=({trigger:e,items:o,side:t="bottom",align:n="start",views:a,themeMode:i,...c})=>r.jsxs(l.View,{position:"relative",display:"inline-block",...a==null?void 0:a.container,...c,children:[r.jsx(ii,{views:a,children:e}),r.jsx(an,{items:o,side:t,align:n,views:a})]}),ar=({trigger:e,items:o,size:t="md",variant:n="default",side:a="bottom",align:i="start",defaultOpen:c=!1,views:s,...d})=>{const{isOpen:g,setIsOpen:f,activeSubmenuId:m,setActiveSubmenuId:p}=qm(c),u=h.useRef(null);return r.jsx(Km,{value:{isOpen:g,setIsOpen:f,activeSubmenuId:m,setActiveSubmenuId:p,size:t,variant:n,triggerRef:u},children:r.jsx(Xm,{trigger:e,items:o,side:a,align:i,views:s,...d})})};ar.Trigger=ii,ar.Content=an,ar.Item=ci,ar.Divider=si;const Jm=e=>{const{value:o,defaultValue:t="",onChange:n,onChangeComplete:a,isOpen:i,onOpen:c,onClose:s,closeOnSelect:d=!0,maxRecentColors:g=8,showRecentColors:f=!0}=e,[m,p]=h.useState(i??!1),[u,y]=h.useState(o??t),[k,x]=h.useState(""),[C,w]=h.useState([]),v=h.useRef(null),S=h.useRef(null);h.useEffect(()=>{o!==void 0&&y(o)},[o]),h.useEffect(()=>{i!==void 0&&p(i)},[i]),h.useEffect(()=>{if(f&&typeof localStorage<"u"){const z=localStorage.getItem("colorPicker-recentColors");if(z)try{w(JSON.parse(z))}catch{}}},[f]),h.useEffect(()=>{if(typeof document>"u"||typeof document.addEventListener!="function")return;const z=E=>{m&&v.current&&S.current&&!v.current.contains(E.target)&&!S.current.contains(E.target)&&$()};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[m]);const b=h.useCallback(z=>{f&&w(E=>{const A=E.filter(P=>P!==z),H=[z,...A].slice(0,g);return typeof localStorage<"u"&&localStorage.setItem("colorPicker-recentColors",JSON.stringify(H)),H})},[f,g]),T=h.useCallback(()=>{const z=!m;p(z),z?c==null||c():s==null||s()},[m,c,s]),F=h.useCallback(z=>{y(z),b(z),n==null||n(z),a==null||a(z),d&&(p(!1),s==null||s())},[n,a,d,s,b]),W=h.useCallback(z=>{x(z)},[]),j=h.useCallback(()=>{k&&(F(k),x(""))},[k,F]),$=h.useCallback(()=>{p(!1),s==null||s()},[s]);return{isOpen:m,selectedColor:u,recentColors:C,customColor:k,handleToggle:T,handleColorSelect:F,handleCustomColorChange:W,handleCustomColorSubmit:j,handleClose:$,triggerRef:v,dropdownRef:S}},Ao={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},dropdown:{position:"absolute",top:"calc(100% + 8px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.14)",padding:"16px",minWidth:"320px"},colorGrid:{display:"grid",gridTemplateColumns:"repeat(6, 36px)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"12px",marginBottom:"16px"},customInput:{marginBottom:"12px"},recentColors:{borderTop:"1px solid color-gray-100",paddingTop:"12px"}},Qm={xs:{height:"32px",fontSize:"12px",padding:"4px 8px"},sm:{height:"40px",fontSize:"12px",padding:"8px 10px"},md:{height:"44px",fontSize:"14px",padding:"10px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 14px"},xl:{height:"56px",fontSize:"18px",padding:"14px 16px"}},Zm={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Rm={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-900"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-900"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-900"}},ep=[{name:"Blue",value:"#1D4ED8",category:"primary"},{name:"Purple",value:"#A855F7",category:"primary"},{name:"Green",value:"#22C55E",category:"primary"},{name:"Orange",value:"#F97316",category:"primary"},{name:"Red",value:"#EF4444",category:"primary"},{name:"Ink",value:"#111827",category:"neutral"}],op=typeof navigator<"u"&&navigator.product!=="ReactNative"&&typeof document<"u"&&typeof document.createElement=="function",rp=({id:e,name:o,label:t,placeholder:n="Select a color",helperText:a,views:i={},size:c="md",shape:s="default",variant:d="default",error:g=!1,isDisabled:f=!1,isReadOnly:m=!1,predefinedColors:p=ep,showCustomInput:u=!0,showRecentColors:y=!0,isOpen:k,selectedColor:x,recentColors:C,customColor:w,handleToggle:v,handleColorSelect:S,handleCustomColorChange:b,handleCustomColorSubmit:T,handleClose:F,triggerRef:W,dropdownRef:j,onChange:$,onChangeComplete:z,onOpen:E,onClose:A,colorFormat:H,maxRecentColors:P,closeOnSelect:M,defaultValue:V,value:L,...B})=>{const q={...Ao.container,...i==null?void 0:i.container},_={...Ao.trigger,...Qm[c],...Zm[s],...Rm[d],...g&&{borderColor:"color-red-500"},...f&&{opacity:.6,cursor:"not-allowed"},...!f&&!m&&{_hover:{borderColor:"color-gray-400"}},...i==null?void 0:i.trigger},O={...Ao.dropdown,...i==null?void 0:i.dropdown},U={...Ao.colorGrid,...i==null?void 0:i.colorGrid},K={...Ao.recentColors,...i==null?void 0:i.recentColors},N=x||"color-gray-200";return r.jsxs(l.View,{...q,...B,children:[t&&r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",fontWeight:"500",color:"color-gray-600",marginBottom:"6px",...i==null?void 0:i.label,children:t}),r.jsxs(l.View,{ref:W,onClick:f||m?void 0:v,..._,children:[r.jsxs(l.Horizontal,{alignItems:"center",gap:8,children:[r.jsx(l.View,{width:"24px",height:"24px",borderRadius:"8px",backgroundColor:N,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200"}),r.jsx(l.Text,{color:x?"color-gray-900":"color-gray-500",fontSize:"inherit",children:x||n})]}),!m&&!f&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:k?"up":"down"})]}),k&&r.jsxs(l.View,{ref:j,...O,children:[r.jsx(l.View,{...U,children:p.map((D,X)=>r.jsx(l.View,{width:"36px",height:"36px",borderRadius:"8px",backgroundColor:D.value,borderWidth:"1px",borderStyle:"solid",borderColor:x===D.value?"theme-primary":"transparent",cursor:"pointer",onClick:()=>S(D.value),title:D.name,_hover:{transform:"scale(1.05)",borderColor:"color-gray-300"},...i==null?void 0:i.colorSwatch},X))}),u&&r.jsxs(l.View,{...Ao.customInput,...i==null?void 0:i.customInput,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",marginBottom:"10px",children:[op&&r.jsx("input",{type:"color",value:w||"#1D4ED8",onChange:D=>{const X=D.target.value;b(X),S(X)},style:{width:"36px",height:"36px",border:"1px solid #E5E7EB",borderRadius:"8px",cursor:"pointer",backgroundColor:"transparent"},title:"Pick a color"}),r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-500",children:"HEX"})]}),r.jsx(We,{placeholder:"#1D4ED8",value:w,onChange:D=>{var X;return b(typeof D=="string"?D:((X=D==null?void 0:D.target)==null?void 0:X.value)??"")},onKeyPress:D=>{D.key==="Enter"&&T()},size:"sm",right:w&&r.jsx(l.View,{width:"18px",height:"18px",borderRadius:"6px",backgroundColor:w,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",cursor:"pointer",onClick:T})})]}),y&&C.length>0&&r.jsxs(l.View,{...K,children:[r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",fontWeight:"500",color:"color-gray-500",marginBottom:"8px",children:"Recent Colors"}),r.jsx(l.Horizontal,{gap:8,flexWrap:"wrap",children:C.map((D,X)=>r.jsx(l.View,{width:"24px",height:"24px",borderRadius:"8px",backgroundColor:D,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>S(D),title:D,_hover:{transform:"scale(1.05)",borderColor:"color-gray-300"}},X))})]})]}),a&&r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",color:g?"color-red-500":"color-gray-500",marginTop:"4px",...i==null?void 0:i.helperText,children:a})]})},di=e=>{const o=Jm(e);return r.jsx(rp,{...o,...e})},tp=e=>{const o=Pl(e);return r.jsx(Al,{...o,...e})},np=e=>{const o=Hl(e);return r.jsx(jl,{...o,...e})},gi={"to-right":"to right","to-left":"to left","to-bottom":"to bottom","to-top":"to top","to-top-right":"to top right","to-top-left":"to top left","to-bottom-right":"to bottom right","to-bottom-left":"to bottom left"},_r={center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-right":"top right","top-left":"top left","bottom-right":"bottom right","bottom-left":"bottom left"},ap={linear:[{color:"color-blue-500",position:"0%"},{color:"color-purple-500",position:"100%"}],radial:[{color:"color-blue-500",position:"0%"},{color:"color-purple-500",position:"100%"}],conic:[{color:"color-red-500",position:"0deg"},{color:"color-yellow-500",position:"90deg"},{color:"color-green-500",position:"180deg"},{color:"color-blue-500",position:"270deg"},{color:"color-red-500",position:"360deg"}]},lp=(e,o,t,n,a)=>{const i=o.map(c=>`${c.color} ${c.position||""}`).join(", ");switch(e){case"linear":return`linear-gradient(${t&&gi[t]?gi[t]:t||"to right"}, ${i})`;case"radial":const s=a&&_r[a]?_r[a]:a||"center";return`radial-gradient(${n||"circle"} at ${s}, ${i})`;case"conic":return`conic-gradient(from 0deg at ${a&&_r[a]?_r[a]:a||"center"}, ${i})`;default:return`linear-gradient(to right, ${i})`}},ip={linear:{backgroundSize:"200% 200%",transition:"background-position 3s ease-in-out",animate:{from:{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},to:{backgroundPosition:"0% 50%"}}},radial:{backgroundSize:"100% 100%",transition:"background-position 3s ease-in-out, background-size 3s ease-in-out",animate:{from:{backgroundPosition:"center",backgroundSize:"100% 100%"},"50%":{backgroundSize:"120% 120%"},to:{backgroundPosition:"center",backgroundSize:"100% 100%"}}},conic:{transition:"transform 3s linear",animate:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}},hi={container:{position:"relative",overflow:"hidden",borderRadius:"8px",transition:"border-radius 0.2s ease, opacity 0.2s ease"},content:{position:"relative",zIndex:1,width:"100%",height:"100%",padding:"16px"}},cp=({type:e="linear",direction:o="to-right",shape:t="circle",position:n="center",from:a,to:i,colors:c,animate:s=!1,animationDuration:d=3,children:g,views:f,themeMode:m,...p})=>{const u=h.useMemo(()=>c&&c.length>0?c:a&&i?[{color:a,position:"0%"},{color:i,position:"100%"}]:ap[e],[c,a,i,e]),y=h.useMemo(()=>{const x=u.map(C=>({...C,color:C.color}));return lp(e,x,o,t,n)},[e,u,o,t,n]),k=h.useMemo(()=>{if(!s)return{};const x=ip[e];return{...x,transition:x.transition.replace("3s",`${d}s`),animationDuration:`${d}s`,animationIterationCount:"infinite",animationTimingFunction:e==="conic"?"linear":"ease-in-out"}},[s,d,e]);return r.jsx(l.View,{background:y,...hi.container,...k,...f==null?void 0:f.container,...p,children:g&&r.jsx(l.View,{...hi.content,...f==null?void 0:f.content,children:g})})},fi=e=>r.jsx(cp,{...e}),sp=(e=null,o=null)=>{const[t,n]=h.useState(e),[a,i]=h.useState(o),c=d=>a===d,s=d=>{i(g=>g===d?null:d)};return h.useEffect(()=>{const d=f=>{!f.composedPath().some(u=>(u==null?void 0:u.id)==="menubar-content"||(u==null?void 0:u.id)==="menubar-trigger")&&a!==null&&i(null)},g=f=>{f.key==="Escape"&&a!==null&&i(null)};if(typeof(document==null?void 0:document.addEventListener)=="function")return document.addEventListener("mousedown",d),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",g)}},[a]),{activeMenuId:t,setActiveMenuId:n,openMenuId:a,setOpenMenuId:i,isMenuOpen:c,toggleMenu:s}},mi={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},dp={default:{backgroundColor:"transparent",color:"color-gray-800"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},gp={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Br={active:{backgroundColor:"color-gray-200",fontWeight:"bold"},hover:{backgroundColor:"color-gray-100"},disabled:{opacity:.5,cursor:"not-allowed"}},pi=h.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default",triggerRefs:{current:{}}}),Or=()=>h.useContext(pi),hp=({value:e,children:o})=>r.jsx(pi.Provider,{value:e,children:o}),ui=({children:e,orientation:o="horizontal",size:t="md",variant:n="default",views:a,...i})=>{const c=o==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(c,{role:"menubar","aria-orientation":o,...gp[o],...dp[n],...a==null?void 0:a.container,...i,children:e})},yi=({children:e,id:o,disabled:t=!1,views:n})=>{const{orientation:a}=Or(),i=a==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(i,{role:"none",position:"relative",opacity:t?.5:1,pointerEvents:t?"none":"auto",...n==null?void 0:n.menu,children:h.Children.map(e,c=>h.isValidElement(c)?h.cloneElement(c,{...c.props,menuId:o}):c)})},bi=({children:e,menuId:o,disabled:t=!1,views:n})=>{const{activeMenuId:a,setActiveMenuId:i,toggleMenu:c,isMenuOpen:s,size:d,triggerRefs:g}=Or(),f=h.useRef(null),m=a===o,p=s(o);h.useEffect(()=>(f.current&&o&&(g.current[o]=f.current),()=>{o&&delete g.current[o]}),[o,g]);const u=()=>{t||(i(o),c(o))};return r.jsx(l.View,{ref:f,id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":p,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between",...mi[d],...m?Br.active:{},...t?Br.disabled:{},_hover:t?{}:Br.hover,onClick:u,...n==null?void 0:n.trigger,children:e})},xi=({children:e,menuId:o,views:t})=>{const{isMenuOpen:n,orientation:a,triggerRefs:i}=Or(),c=h.useRef(null),[s,d]=h.useState({x:0,y:0,placement:a==="horizontal"?"bottom":"right"}),g=n(o);if(h.useEffect(()=>{if(g&&c.current&&o&&i.current[o]){const m=c.current.getBoundingClientRect(),p=i.current[o].getBoundingClientRect(),u=Math.max(m.width||200,200),y=Math.max(m.height||150,150),k=window.innerWidth,x=window.innerHeight,C={top:p.top,right:k-p.right,bottom:x-p.bottom,left:p.left},w=a==="horizontal"?[{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8},{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top}]:[{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top},{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8}],v=w.find(F=>F.fits);if(v){d({x:v.x,y:v.y,placement:v.placement});return}const S=w.reduce((F,W)=>W.space>F.space?W:F);let b=S.x,T=S.y;b+u>k&&(b=k-u-8),b<8&&(b=8),T+y>x&&(T=x-y-8),T<8&&(T=8),d({x:b,y:T,placement:S.placement})}},[g,a,o,i]),!g)return null;const f={position:"fixed",left:s.x,top:s.y,zIndex:1e3};return r.jsx(l.View,{ref:c,id:"menubar-content",role:"menu",minWidth:"200px",backgroundColor:"color-white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:f,...t==null?void 0:t.content,children:e})},ki=({children:e,icon:o,disabled:t=!1,onClick:n,views:a})=>{const{size:i}=Or(),c=()=>{t||!n||n()};return r.jsxs(l.View,{role:"menuitem",cursor:t?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:t?.5:1,...mi[i],_hover:t?{}:Br.hover,onClick:c,...a==null?void 0:a.item,children:[o&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:o}),e]})},Ci=({views:e})=>r.jsx(l.View,{role:"separator",height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",...e==null?void 0:e.separator}),fp=({items:e,orientation:o,size:t,variant:n,views:a,themeMode:i})=>r.jsx(ui,{orientation:o,size:t,variant:n,views:a,children:e.map(c=>r.jsxs(yi,{id:c.id,disabled:c.disabled,views:a,children:[r.jsxs(bi,{menuId:c.id,views:a,children:[c.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:c.icon}),c.label]}),c.items&&c.items.length>0&&r.jsx(xi,{menuId:c.id,views:a,children:c.items.map((s,d)=>s.separator?r.jsx(Ci,{views:a},`separator-${d}`):r.jsx(ki,{id:s.id,icon:s.icon,disabled:s.disabled,onClick:s.onClick,views:a,children:s.label},s.id))})]},c.id))}),uo=({items:e,orientation:o="horizontal",size:t="md",variant:n="default",defaultActiveMenuId:a=null,defaultOpenMenuId:i=null,views:c,...s})=>{const{activeMenuId:d,setActiveMenuId:g,openMenuId:f,setOpenMenuId:m,isMenuOpen:p,toggleMenu:u}=sp(a,i),y=h.useRef({});return r.jsx(hp,{value:{activeMenuId:d,setActiveMenuId:g,openMenuId:f,setOpenMenuId:m,isMenuOpen:p,toggleMenu:u,orientation:o,size:t,variant:n,triggerRefs:y},children:r.jsx(fp,{items:e,orientation:o,size:t,variant:n,views:c,...s})})};uo.Root=ui,uo.Menu=yi,uo.Trigger=bi,uo.Content=xi,uo.Item=ki,uo.Separator=Ci;const mp=(e,o,t)=>{const[n,a]=h.useState([]);return h.useEffect(()=>{a((()=>{const c=[];if(o<=t)for(let s=1;s<=o;s++)c.push(s);else{c.push(1);let s=Math.max(2,e-Math.floor((t-2)/2)),d=Math.min(o-1,s+t-3);d>=o-1&&(d=o-1,s=Math.max(2,d-(t-3))),s>2&&c.push("...");for(let g=s;g<=d;g++)c.push(g);d<o-1&&c.push("..."),c.push(o)}return c})())},[e,o,t]),{visiblePageNumbers:n}},Vo={sm:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px",media:{mobile:{fontSize:"11px",padding:"3px 6px",minWidth:"24px",height:"24px"}}},md:{fontSize:"14px",padding:"6px 10px",minWidth:"32px",height:"32px",media:{mobile:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"}}},lg:{fontSize:"14px",padding:"8px 12px",minWidth:"36px",height:"36px",media:{mobile:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"}}}},lr={default:{backgroundColor:"transparent",color:"color-gray-800",borderWidth:"0px",borderStyle:"none",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"color-gray-100"}},filled:{backgroundColor:"color-gray-100",color:"color-gray-800",borderWidth:"0px",borderStyle:"none",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"color-gray-200"}},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"color-gray-100"}}},ir={rounded:{borderRadius:8},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},pp={backgroundColor:"theme-primary",color:"color-white",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"theme-primary",opacity:.9}},Nr={opacity:.5,cursor:"not-allowed",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"transparent"}},up=({currentPage:e,totalPages:o,onPageChange:t,pageSize:n=10,pageSizeOptions:a=[{label:"10 / page",value:10},{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100}],onPageSizeChange:i,showPageSizeSelector:c=!1,showPageInfo:s=!0,maxPageButtons:d=5,showFirstLastButtons:g=!1,size:f="md",variant:m="default",shape:p="rounded",visiblePageNumbers:u=[],views:y,...k})=>{const x=v=>{v<1||v>o||v===e||t(v)},C=v=>{i&&i(Number(v.target.value))},w=(v,S)=>{if(v==="...")return r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",...Vo[f],...y==null?void 0:y.ellipsis,children:"..."},`ellipsis-${S}`);const b=v===e;return r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:b?"default":"pointer",...Vo[f],...lr[m],...ir[p],...b?pp:{},onClick:()=>x(v),"aria-label":`Page ${v}`,"aria-current":b?"page":void 0,...b?y==null?void 0:y.activePageButton:y==null?void 0:y.pageButton,children:v},`page-${v}`)};return r.jsxs(l.Horizontal,{alignItems:"center",gap:8,...y==null?void 0:y.container,...k,children:[g&&r.jsxs(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===1?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===1?Nr:{},onClick:()=>x(1),"aria-label":"First page",disabled:e===1,...y==null?void 0:y.navigationButton,children:[r.jsx(ge,{orientation:"left",widthHeight:16}),r.jsx(ge,{orientation:"left",widthHeight:16,marginLeft:"-8px"})]}),r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===1?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===1?Nr:{},onClick:()=>x(e-1),"aria-label":"Previous page",disabled:e===1,...y==null?void 0:y.navigationButton,children:r.jsx(ge,{orientation:"left",widthHeight:16})}),u.map((v,S)=>w(v,S)),r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===o?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===o?Nr:{},onClick:()=>x(e+1),"aria-label":"Next page",disabled:e===o,...y==null?void 0:y.navigationButton,children:r.jsx(ge,{orientation:"right",widthHeight:16})}),g&&r.jsxs(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===o?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===o?Nr:{},onClick:()=>x(o),"aria-label":"Last page",disabled:e===o,...y==null?void 0:y.navigationButton,children:[r.jsx(ge,{orientation:"right",widthHeight:16}),r.jsx(ge,{orientation:"right",widthHeight:16,marginLeft:"-8px"})]}),s&&r.jsxs(l.Text,{marginLeft:16,color:"color-gray-600",...y==null?void 0:y.pageInfo,children:["Page ",e," of ",o]}),c&&i&&r.jsx(l.View,{as:"select",marginLeft:16,padding:"4px 8px",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",backgroundColor:"color-white",cursor:"pointer",value:n,onChange:C,...y==null?void 0:y.pageSizeSelector,children:a.map(v=>r.jsx("option",{value:v.value,children:v.label},v.value))})]})},wi=({currentPage:e,totalPages:o,onPageChange:t,pageSize:n=10,pageSizeOptions:a,onPageSizeChange:i,showPageSizeSelector:c=!1,showPageInfo:s=!0,maxPageButtons:d=5,showFirstLastButtons:g=!1,size:f="md",variant:m="default",shape:p="rounded",views:u,...y})=>{const{visiblePageNumbers:k}=mp(e,o,d);return r.jsx(up,{currentPage:e,totalPages:o,onPageChange:t,pageSize:n,pageSizeOptions:a,onPageSizeChange:i,showPageSizeSelector:c,showPageInfo:s,maxPageButtons:d,showFirstLastButtons:g,size:f,variant:m,shape:p,visiblePageNumbers:k,views:u,...y})},yp=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),bp=h.memo(({shape:e="linear",value:o=0,max:t=100,color:n="theme-primary",backgroundColor:a="color-gray-200",height:i,size:c,radius:s=4,strokeWidth:d=10,showLabel:g=!1,labelColor:f="color-black-primary",animated:m=!0,animationDuration:p="0.5s",views:u,themeMode:y,...k})=>{var $;const{getColor:x,themeMode:C}=l.useTheme(),w=y||C,S=Math.min(t,Math.max(0,o))/t*100,b=z=>yp(z)?z:x(z,{themeMode:w}),T=h.useMemo(()=>b(a),[x,a,w]),F=h.useMemo(()=>b(n),[x,n,w]);if(e==="circle"){const z=c||(typeof i=="number"?i:100),E=(z-d)/2,A=2*Math.PI*E,H=A-S/100*A;return r.jsxs(l.View,{width:z,height:z,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",...u==null?void 0:u.container,...k,children:[r.jsxs("svg",{width:z,height:z,viewBox:`0 0 ${z} ${z}`,style:{transform:"rotate(-90deg)"},children:[r.jsx("circle",{cx:z/2,cy:z/2,r:E,stroke:T,strokeWidth:d,fill:"transparent",...u==null?void 0:u.track}),r.jsx("circle",{cx:z/2,cy:z/2,r:E,stroke:F,strokeWidth:d,strokeDasharray:A,strokeDashoffset:H,strokeLinecap:"round",fill:"transparent",style:{transition:m?`stroke-dashoffset ${p} ease-in-out`:"none"},...u==null?void 0:u.indicator})]}),g&&r.jsx(l.View,{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",children:r.jsxs(l.Text,{color:f,fontSize:`${z*.2}px`,fontWeight:"bold",...u==null?void 0:u.text,children:[Math.round(S),"%"]})})]})}const W=i||8,j={backgroundColor:T,...(($=u==null?void 0:u.container)==null?void 0:$.style)||{},...k.style||{}};return r.jsxs(l.View,{role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t,width:"100%",height:W,borderRadius:s,overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",...u==null?void 0:u.container,...k,style:j,children:[r.jsx("div",{style:{height:"100%",backgroundColor:F,borderRadius:typeof s=="number"?`${s}px`:s,position:"absolute",left:0,top:0,bottom:0,width:`${S}%`,transition:m?`width ${p} ease-in-out`:"none",...u==null?void 0:u.bar}}),g&&r.jsxs(l.Text,{color:f,fontSize:typeof W=="number"&&W>16?`${W*.6}px`:"10px",fontWeight:"bold",position:"relative",zIndex:1,...u==null?void 0:u.text,children:[Math.round(S),"%"]})]})}),Si=e=>{const o=pe("progress",e);return r.jsx(bp,{...o})},xp=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),kp={thin:"1px",medium:"2px",thick:"4px"},cr={container:{transition:"opacity 0.15s ease"},label:{fontSize:"14px",fontWeight:"500",color:"color-gray-600",paddingHorizontal:"8px",backgroundColor:"color-white",transition:"color 0.15s ease"}},Cp=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),wp=({orientation:e="horizontal",variant:o="solid",thickness:t="thin",color:n,spacing:a="0px",label:i,decorative:c=!1,views:s,themeMode:d,...g})=>{const{themeMode:f}=l.useTheme(),m=n||"color-gray-200",p=xp[o],u=kp[t],y=c?{"aria-hidden":!0}:{role:"separator","aria-orientation":e},k=Cp(m)?{style:{borderColor:m}}:{borderColor:m};return i&&e==="horizontal"?r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"center",width:"100%",padding:a,...y,...g,children:[r.jsx(l.View,{height:"0px",flexGrow:1,borderTop:`${u} ${p}`,...k,...cr.container,...s==null?void 0:s.container}),r.jsx(l.Text,{...cr.label,...s==null?void 0:s.label,children:i}),r.jsx(l.View,{height:"0px",flexGrow:1,borderTop:`${u} ${p}`,...k,...cr.container,...s==null?void 0:s.container})]}):e==="horizontal"?r.jsx(l.View,{height:"0px",width:"100%",borderTop:`${u} ${p}`,padding:a,...k,...cr.container,...y,...s==null?void 0:s.container,...g}):r.jsx(l.View,{width:"0px",height:"100%",borderLeft:`${u} ${p}`,padding:a,...k,...cr.container,...y,...s==null?void 0:s.container,...g})},vi=e=>{const o=pe("separator",e);return r.jsx(wp,{...o})},qr=vi,Sp=vi,vp={xs:12,sm:14,md:16,lg:18,xl:20},Tp=({isSupported:e,isSharing:o,onShare:t,label:n,children:a,icon:i,size:c,isDisabled:s,isLoading:d,iconPosition:g,disableWhenUnsupported:f=!0,...m})=>{const p=c??"md",u=i??r.jsx(Ln,{widthHeight:vp[p],strokeWidth:1.5,filled:!1}),y=!!s||!e&&f,k=!!d||o;return r.jsx(ce,{...m,size:p,icon:u,iconPosition:g??"left",isDisabled:y,isLoading:k,onClick:t,children:a??n??"Share"})},Ti=()=>typeof navigator>"u"?void 0:navigator,Ip=(e,o)=>{if(!e||typeof e.share!="function")return!1;if(typeof e.canShare=="function")try{return e.canShare(o)}catch{return!1}return!0},Fp=e=>{if(typeof e=="object"&&e!==null&&"name"in e)return String(e.name)},zp=e=>{const{shareData:o,onClick:t,onUnsupported:n,onShareStart:a,onShareSuccess:i,onShareCancel:c,onShareError:s}=e,[d,g]=h.useState(!1),f=h.useMemo(()=>Ip(Ti(),o),[o]),m=h.useCallback((...p)=>{t==null||t(...p);const u=Ti();if(!u||typeof u.share!="function"){n==null||n();return}if(!d){if(typeof u.canShare=="function")try{if(!u.canShare(o)){n==null||n();return}}catch(y){s==null||s(y);return}g(!0),a==null||a();try{u.share(o).then(()=>{i==null||i()}).catch(y=>{if(Fp(y)==="AbortError"){c==null||c();return}s==null||s(y)}).finally(()=>{g(!1)})}catch(y){g(!1),s==null||s(y)}}},[d,t,c,s,a,i,n,o]);return{isSupported:f,isSharing:d,handleShare:m}},Ii=e=>{const{isSupported:o,isSharing:t,handleShare:n}=zp(e),{shareData:a,onShareStart:i,onShareSuccess:c,onShareCancel:s,onShareError:d,onUnsupported:g,onClick:f,...m}=e;return r.jsx(Tp,{...m,isSupported:o,isSharing:t,onShare:n})},Mp=({label:e,status:o="default",views:t,themeMode:n,...a})=>{const{themeMode:i}=l.useTheme(),c=Rn();return r.jsxs(l.Horizontal,{alignItems:"center",gap:8,role:"status-indicator",...t==null?void 0:t.container,...a,children:[r.jsx(l.View,{role:"status-dot",width:"8px",height:"8px",borderRadius:"50%",...c[o].indicator,...t==null?void 0:t.indicator}),e&&r.jsx(l.Text,{role:"status-label",fontSize:"14px",lineHeight:"20px",...c[o].label,...t==null?void 0:t.label,children:e})]})},Ur=e=>{const o=pe("status",e);return r.jsx(Mp,{...o})},Wp=(e=!0,o,t,n)=>{const{on:a}=l.useResponsive(),i=a("mobile"),[c,s]=h.useState(o!==void 0?o:e);return h.useEffect(()=>{o!==void 0&&s(o)},[o]),{isExpanded:c,toggleExpanded:()=>{const m=!c;s(m),t&&t(m)},expand:()=>{c||(s(!0),t&&t(!0))},collapse:()=>{c&&(s(!1),t&&t(!1))},isMobile:i}},Hp={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},jp=(e=>({default:{backgroundColor:"color-white",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},subtle:{backgroundColor:"color-gray-50",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease"},elevated:{backgroundColor:"color-white",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",color:"color-gray-800",transition:"all 0.2s ease-in-out"}}))(),Pp={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color-gray-200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color-gray-200"}},Ap={none:{},low:{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},medium:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)"},high:{boxShadow:"0 10px 30px rgba(0, 0, 0, 0.15)"}},Vp={fast:"all 0.2s ease-in-out",normal:"all 0.3s ease-in-out",slow:"all 0.5s ease-in-out",bounce:"all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)"},Fi=h.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),Gr=()=>h.useContext(Fi),Ep=({value:e,children:o})=>r.jsx(Fi.Provider,{value:e,children:o}),Dp=({children:e,showToggleButton:o=!0,views:t,...n})=>{const{isExpanded:a,toggleExpanded:i,position:c}=Gr();return r.jsx(l.Horizontal,{width:"100%",padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200",alignItems:"center",justifyContent:"space-between",...t==null?void 0:t.header,...n,children:a?r.jsxs(l.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between",children:[e,o&&r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color-gray-100"},onClick:i,"aria-label":a?"Collapse sidebar":"Expand sidebar",...t==null?void 0:t.toggleButton,children:r.jsx(ge,{orientation:c==="left"?"left":"right",widthHeight:16,...t==null?void 0:t.toggleButtonIcon})})]}):r.jsx(l.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",children:o&&r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color-gray-100"},onClick:i,"aria-label":a?"Collapse sidebar":"Expand sidebar",...t==null?void 0:t.toggleButton,children:r.jsx(ge,{orientation:c==="left"?"right":"left",widthHeight:16,...t==null?void 0:t.toggleButtonIcon})})})})},$p=({children:e,views:o,...t})=>{const{isExpanded:n}=Gr();return r.jsx(l.View,{flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:n?"16px":"8px",...o==null?void 0:o.content,...t,children:e})},Lp=({children:e,views:o,...t})=>{const{isExpanded:n}=Gr();return r.jsx(l.View,{width:"100%",padding:n?"16px":"8px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200",...o==null?void 0:o.footer,...t,children:e})},_p=({children:e,position:o="left",size:t="md",variant:n="default",fixed:a=!1,hasBackdrop:i=!0,expandedWidth:c,collapsedWidth:s,breakpoint:d,breakpointBehavior:g="overlay",elevation:f="none",transitionPreset:m="normal",ariaLabel:p="Sidebar navigation",showToggleButton:u,toggleExpanded:y,expand:k,isExpanded:x,isMobile:C,collapse:w,views:v,themeMode:S,...b})=>{const T=Hp[t],F=x?c||T.expandedWidth:s||T.collapsedWidth,W=!C||C&&g!=="hide",j=a||C&&g==="overlay"?"fixed":"relative",$=i&&C&&x&&g==="overlay";return r.jsxs(r.Fragment,{children:[$&&r.jsx(l.View,{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"color-dark-50-360",zIndex:998,onClick:w,...v==null?void 0:v.backdrop}),W&&r.jsx(l.Vertical,{position:j,top:0,height:"100vh",width:F,zIndex:999,transition:Vp[m],transform:C&&g==="overlay"&&!x?`translateX(${o==="left"?"-100%":"100%"})`:"translateX(0)",role:"navigation","aria-label":p,...jp[n],...Pp[o],...Ap[f],...v==null?void 0:v.container,...b,children:h.Children.map(e,z=>z)})]})},sr=({children:e,position:o="left",size:t="md",variant:n="default",defaultExpanded:a=!0,expanded:i,onExpandedChange:c,fixed:s=!1,hasBackdrop:d=!0,showToggleButton:g=!0,expandedWidth:f,collapsedWidth:m,breakpoint:p=768,breakpointBehavior:u="overlay",views:y,...k})=>{const{isExpanded:x,toggleExpanded:C,expand:w,collapse:v,isMobile:S}=Wp(a,i,c);return r.jsx(Ep,{value:{isExpanded:x,toggleExpanded:C,expand:w,collapse:v,position:o,size:t,variant:n,views:y},children:r.jsx(_p,{position:o,size:t,variant:n,fixed:s,hasBackdrop:d,showToggleButton:g,expandedWidth:f,collapsedWidth:m,breakpoint:p,breakpointBehavior:u,isExpanded:x,isMobile:S,toggleExpanded:C,expand:w,collapse:v,views:y,...k,children:e})})};sr.Header=Dp,sr.Content=$p,sr.Footer=Lp,sr.useContext=Gr;const Bp=()=>({getItem:e=>{try{return typeof localStorage>"u"?null:localStorage.getItem(`resizable-${e}`)}catch(o){return console.warn("Failed to access localStorage:",o),null}},setItem:(e,o)=>{try{if(typeof localStorage>"u")return;localStorage.setItem(`resizable-${e}`,o)}catch(t){console.warn("Failed to write to localStorage:",t)}}}),Op=(e,o,t,n=50,a=1/0,i=!1,c,s,d=10)=>{const[g,f]=h.useState(!1),[m,p]=h.useState([]),u=h.useRef(null),y=h.useRef(null),k=h.useRef(0),x=h.useRef([]),C=h.useRef(s||(typeof window<"u"?Bp():null)),w=h.useCallback(()=>u.current?e==="horizontal"?u.current.offsetWidth:u.current.offsetHeight:0,[e]),v=h.useCallback(()=>{if(!c||!C.current)return null;const P=C.current.getItem(c);if(!P)return null;try{const M=JSON.parse(P);return Array.isArray(M.sizes)?M.sizes:null}catch(M){return console.warn("Failed to parse saved panel sizes:",M),null}},[c]),S=h.useCallback(()=>{if(!c||!C.current||m.length===0)return;const P=m.map(M=>({id:M.id,size:M.size,collapsed:M.collapsed||!1}));C.current.setItem(c,JSON.stringify({sizes:P}))},[c,m]),b=h.useCallback((P,M,V,L,B)=>{p(q=>q.some(_=>_.id===P)?q:[...q,{id:P,size:M,minSize:V??n,maxSize:L??a,collapsible:B??i,collapsed:!1}])},[n,a,i]),T=h.useCallback(P=>{p(M=>M.filter(V=>V.id!==P))},[]),F=h.useCallback(P=>{const M=m.find(V=>V.id===P);return M?M.size:0},[m]),W=h.useCallback((P,M)=>{p(V=>V.map(L=>L.id===P?{...L,size:M}:L))},[]),j=h.useCallback(P=>{const M=m.find(V=>V.id===P);return M?!!M.collapsed:!1},[m]),$=h.useCallback(P=>{p(M=>{const V=M.findIndex(_=>_.id===P);if(V===-1)return M;const L=M[V];if(!L.collapsible)return M;const B={...L,collapsed:!L.collapsed},q=[...M];return q[V]=B,q})},[]),z=h.useCallback((P,M)=>{y.current=P,k.current=M,x.current=m.map(V=>V.size),f(!0)},[m]),E=h.useCallback(P=>{if(!g||!y.current)return;const M=y.current,V=P-k.current;let L=-1;const B=M.match(/\d+$/);if(B&&(L=parseInt(B[0],10)-1),L===-1&&m.length>=2&&(L=0),L<0||L>=m.length-1)return;const q=m[L],_=m[L+1];if(q.collapsed||_.collapsed)return;let O=x.current[L]+V,U=x.current[L+1]-V;O=Math.max(q.minSize??n,Math.min(q.maxSize??a,O)),U=Math.max(_.minSize??n,Math.min(_.maxSize??a,U)),p(K=>K.map((N,D)=>D===L?{...N,size:O}:D===L+1?{...N,size:U}:N))},[g,m,e,n,a]),A=h.useCallback(()=>{g&&t&&t(m.map(P=>P.size)),y.current=null,f(!1),c&&S()},[g,m,t,c,S]),H=h.useCallback(P=>{if(!g||!y.current)return;const M=y.current;let V=-1;const L=M.match(/\d+$/);if(L&&(V=parseInt(L[0],10)-1),V===-1&&m.length>=2&&(V=0),V<0||V>=m.length-1)return;let B=0;e==="horizontal"?(P.key==="ArrowLeft"&&(B=-d),P.key==="ArrowRight"&&(B=d),P.key==="Home"&&(B=-100),P.key==="End"&&(B=100)):(P.key==="ArrowUp"&&(B=-d),P.key==="ArrowDown"&&(B=d),P.key==="Home"&&(B=-100),P.key==="End"&&(B=100)),B!==0&&(P.preventDefault(),E(k.current+B)),P.key==="Escape"&&(p(q=>q.map((_,O)=>({..._,size:x.current[O]}))),A())},[g,m,e,E,A,d]);return h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const P=L=>{if(!g)return;const B=e==="horizontal"?L.clientX:L.clientY;E(B)},M=L=>{if(!g||L.touches.length===0)return;const B=L.touches[0],q=e==="horizontal"?B.clientX:B.clientY;E(q)},V=()=>{g&&A()};return g&&(document.addEventListener("mousemove",P),document.addEventListener("touchmove",M),document.addEventListener("mouseup",V),document.addEventListener("touchend",V),document.addEventListener("keydown",H),document.body.style.cursor=e==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",P),document.removeEventListener("touchmove",M),document.removeEventListener("mouseup",V),document.removeEventListener("touchend",V),document.removeEventListener("keydown",H),document.body.style.cursor="",document.body.style.userSelect=""}},[g,e,E,A,H]),h.useEffect(()=>{if(m.length!==0){if(c){const P=v();if(P){p(M=>M.map(V=>{const L=P.find(B=>B.id===V.id);return L?{...V,size:L.size,collapsed:L.collapsed||!1}:V}));return}}if(!o){const M=w()/m.length;p(V=>V.map(L=>({...L,size:M})))}}},[m.length,o,w,c,v]),h.useEffect(()=>{if(!o||o.length===0||m.length===0)return;const P=w(),M=o.map(V=>typeof V=="string"&&V.endsWith("%")?parseFloat(V)/100*P:typeof V=="number"?V:parseFloat(V));p(V=>V.map((L,B)=>({...L,size:B<M.length?M[B]:L.size})))},[o,m.length,w]),h.useEffect(()=>{m.length>0&&c&&!g&&S()},[m,c,g,S]),{isResizing:g,setIsResizing:f,containerRef:u,panels:m,registerPanel:b,unregisterPanel:T,getPanelSize:F,setPanelSize:W,isPanelCollapsed:j,togglePanelCollapse:$,startResize:z,onResize:E,endResize:A}},Np={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},qp=(e,o)=>({sm:{width:o==="horizontal"?"4px":"100%",height:o==="vertical"?"4px":"100%"},md:{width:o==="horizontal"?"6px":"100%",height:o==="vertical"?"6px":"100%"},lg:{width:o==="horizontal"?"8px":"100%",height:o==="vertical"?"8px":"100%"}})[e],Up=(e=>({default:{backgroundColor:"transparent",_hover:{backgroundColor:"color-gray-200"},_active:{backgroundColor:"color-gray-300"}},subtle:{backgroundColor:"transparent",_hover:{backgroundColor:"color-gray-100"},_active:{backgroundColor:"color-gray-200"}},prominent:{backgroundColor:"color-gray-100",_hover:{backgroundColor:"color-gray-200"},_active:{backgroundColor:"color-gray-300"}}}))(),Yr={horizontal:{width:"2px",height:"20px",backgroundColor:"color-gray-400",margin:"0 1px"},vertical:{width:"20px",height:"2px",backgroundColor:"color-gray-400",margin:"1px 0"}},zi=h.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),Mi=()=>h.useContext(zi),Gp=({value:e,children:o})=>r.jsx(zi.Provider,{value:e,children:o}),Yp=({children:e,id:o,defaultSize:t,minSize:n,maxSize:a,collapsible:i,defaultCollapsed:c,onCollapseChange:s,views:d,...g})=>{const{orientation:f,registerPanel:m,unregisterPanel:p,getPanelSize:u,isPanelCollapsed:y,togglePanelCollapse:k}=Mi(),x=typeof t=="string"&&t.endsWith("%")?0:typeof t=="number"?t:0;h.useEffect(()=>(m(o,x,n,a,i),()=>p(o)),[o,x,n,a,i,m,p]);const C=u(o),w=y(o);return h.useEffect(()=>{s&&w!==void 0&&s(w)},[w,s]),h.useEffect(()=>{i&&c&&!w&&k(o)},[o,i,c,w,k]),w?r.jsx(l.View,{flex:"0 0 auto",width:f==="horizontal"?"10px":"100%",height:f==="vertical"?"10px":"100%",backgroundColor:"color-gray-200",cursor:"pointer",onClick:()=>k(o),"aria-label":`Expand panel ${o}`,role:"button",tabIndex:0,...d==null?void 0:d.collapsedPanel,...g}):r.jsx(l.View,{flex:C>0?"0 0 auto":"1",width:f==="horizontal"?`${C}px`:"100%",height:f==="vertical"?`${C}px`:"100%",overflow:"auto",...d==null?void 0:d.panel,...g,children:e})},Kp=({id:e,position:o="both",disabled:t=!1,withVisualIndicator:n=!0,withCollapseButton:a=!1,collapseTarget:i,views:c,...s})=>{const{orientation:d,size:g,variant:f,startResize:m,isPanelCollapsed:p,togglePanelCollapse:u}=Mi(),k=(()=>{if(i)return i;const b=e.match(/\d+$/);if(!b)return"";const T=parseInt(b[0],10);return isNaN(T)?"":`panel${T}`})(),x=p(k),C=b=>{if(t)return;b.preventDefault();const T=d==="horizontal"?b.clientX:b.clientY;m(e,T)},w=b=>{if(t||b.touches.length===0)return;b.preventDefault();const T=b.touches[0],F=d==="horizontal"?T.clientX:T.clientY;m(e,F)},v=b=>{t||(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m(e,0))},S=b=>{b.stopPropagation(),k&&u(k)};return r.jsxs(l.View,{role:"separator","aria-orientation":d,"aria-valuemin":0,"aria-valuemax":100,tabIndex:t?-1:0,cursor:d==="horizontal"?"col-resize":"row-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",...qp(g,d),...Up[f],onMouseDown:C,onTouchStart:w,onKeyDown:v,opacity:t?.5:1,pointerEvents:t?"none":"auto",...c==null?void 0:c.handle,...s,children:[n&&r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",width:d==="horizontal"?"100%":"auto",height:d==="vertical"?"100%":"auto",pointerEvents:"none",...c==null?void 0:c.handleIcon,children:d==="horizontal"?r.jsxs(l.Horizontal,{gap:1,children:[r.jsx(l.View,{...Yr.horizontal}),r.jsx(l.View,{...Yr.horizontal})]}):r.jsxs(l.Vertical,{gap:1,children:[r.jsx(l.View,{...Yr.vertical}),r.jsx(l.View,{...Yr.vertical})]})}),a&&k&&r.jsx(l.View,{position:"absolute",top:d==="horizontal"?"-20px":"50%",left:d==="horizontal"?"50%":"-20px",transform:d==="horizontal"?"translateX(-50%)":"translateY(-50%)",width:"16px",height:"16px",borderRadius:"full",backgroundColor:"color-gray-100",border:"1px solid",borderColor:"color-gray-300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,onClick:S,"aria-label":x?`Expand panel ${k}`:`Collapse panel ${k}`,role:"button",tabIndex:0,pointerEvents:"auto",_hover:{backgroundColor:"color-gray-200"},...c==null?void 0:c.collapseIcon,children:r.jsx(l.View,{width:"8px",height:"8px",display:"flex",alignItems:"center",justifyContent:"center",children:x?r.jsxs(l.Horizontal,{children:[r.jsx(l.View,{width:"6px",height:"2px",backgroundColor:"color-gray-600"}),r.jsx(l.View,{width:"2px",height:"6px",backgroundColor:"color-gray-600",position:"absolute"})]}):r.jsx(l.View,{width:"6px",height:"2px",backgroundColor:"color-gray-600"})})})]})},Xp=({children:e,orientation:o="horizontal",size:t="md",variant:n="default",defaultSizes:a,minSize:i,maxSize:c,collapsible:s=!1,containerRef:d,autoSaveId:g,keyboardResizeBy:f,onLayout:m,views:p,...u})=>{const y=o==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(y,{ref:d,width:"100%",height:"100%",position:"relative",overflow:"hidden",...Np[o],...p==null?void 0:p.container,...u,children:e})},ln=({children:e,orientation:o="horizontal",size:t="md",variant:n="default",defaultSizes:a,onSizesChange:i,minSize:c=50,maxSize:s,collapsible:d=!1,autoSaveId:g,storage:f,keyboardResizeBy:m=10,views:p,...u})=>{const{isResizing:y,setIsResizing:k,containerRef:x,registerPanel:C,unregisterPanel:w,getPanelSize:v,setPanelSize:S,isPanelCollapsed:b,togglePanelCollapse:T,startResize:F,onResize:W,endResize:j}=Op(o,a,i,c,s,d,g,f,m);return r.jsx(Gp,{value:{orientation:o,size:t,variant:n,isResizing:y,setIsResizing:k,registerPanel:C,unregisterPanel:w,getPanelSize:v,setPanelSize:S,isPanelCollapsed:b,togglePanelCollapse:T,startResize:F,onResize:W,endResize:j},children:r.jsx(Xp,{orientation:o,size:t,variant:n,defaultSizes:a,minSize:c,maxSize:s,collapsible:d,autoSaveId:g,keyboardResizeBy:m,containerRef:x,views:p,...u,children:e})})};ln.Panel=Yp,ln.Handle=Kp;const Kr={info:{container:{backgroundColor:"color-blue-50",border:"color-blue-300"},content:{color:"color-blue-700"},icon:{color:"color-blue-500"}},success:{container:{backgroundColor:"color-green-50",border:"color-green-300"},content:{color:"color-green-700"},icon:{color:"color-green-500"}},warning:{container:{backgroundColor:"color-orange-50",border:"color-orange-300"},content:{color:"color-orange-700"},icon:{color:"color-orange-500"}},error:{container:{backgroundColor:"color-red-50",border:"color-red-300"},content:{color:"color-red-700"},icon:{color:"color-red-500"}}},Jp={top:{top:"16px",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"},bottom:{bottom:"16px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"}},Qp=()=>Math.random().toString(36).substring(2,9);let Eo=new Map;const dr=Co.create(e=>({toasts:[],add:(o,t,n,a={})=>{const i=a.id||Qp(),c={id:i,variant:o,title:t,description:n,createdAt:Date.now(),isVisible:!0,...a};if(e(s=>({toasts:[...s.toasts,c]})),a.duration!==0){const s=a.duration||5e3,d=setTimeout(()=>{dr.getState().remove(i)},s);Eo.set(i,d)}return i},remove:o=>{e(t=>({toasts:t.toasts.map(n=>n.id===o?{...n,isVisible:!1}:n)})),Eo.has(o)&&(clearTimeout(Eo.get(o)),Eo.delete(o)),setTimeout(()=>{e(t=>({toasts:t.toasts.filter(n=>n.id!==o)}))},300)},removeAll:()=>{Eo.forEach(clearTimeout),Eo.clear(),e(o=>({toasts:o.toasts.map(t=>({...t,isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),yo=(e,o,t,n)=>dr.getState().add(e,o,t,n),Wi=(e,o,t)=>yo("info",e,o,t),Hi=(e,o,t)=>yo("success",e,o,t),ji=(e,o,t)=>yo("warning",e,o,t),Pi=(e,o,t)=>yo("error",e,o,t),Ai=e=>{dr.getState().remove(e)},Vi=()=>{dr.getState().removeAll()},Ei=({variant:e,title:o,description:t,onClose:n,isClosable:a=!0,action:i,actionText:c,showIcon:s=!0,theme:d,views:g,render:f,icon:m,id:p,isVisible:u=!0,themeMode:y})=>{const k=d??Kr,x=()=>{var S,b;if(m!==void 0)return m;const v=e?(b=(S=Kr[e])==null?void 0:S.icon)==null?void 0:b.color:Kr.info.icon.color;switch(e){case"info":return r.jsx(Ze,{widthHeight:20,color:v});case"success":return r.jsx(Dn,{widthHeight:20,color:v});case"warning":return r.jsx(Ze,{widthHeight:20,color:v,orientation:"down"});case"error":return r.jsx(br,{widthHeight:20,color:v});default:return r.jsx(Ze,{widthHeight:20,color:Kr.info.icon.color})}};if(f)return r.jsx(r.Fragment,{children:f({id:p||"",onClose:n})});const C=e==="error"?"alert":"status",w=e==="error"||e==="warning"?"assertive":"polite";return r.jsxs(l.Horizontal,{role:C,"aria-live":w,"aria-atomic":"true","data-state":u?"open":"closed",gap:12,width:"100%",maxWidth:"380px",borderWidth:"1px",borderStyle:"solid",borderRadius:"12px",padding:"12px 14px",alignItems:"flex-start",position:"relative",backgroundColor:k[e].container.backgroundColor,borderColor:k[e].container.border,boxShadow:"0 12px 32px rgba(15, 23, 42, 0.12)",opacity:u?1:0,transform:u?"translateY(0)":"translateY(4px)",transition:"opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",...g==null?void 0:g.container,children:[s&&r.jsx(l.View,{marginTop:"2px",...g==null?void 0:g.icon,children:x()}),r.jsxs(l.Vertical,{gap:4,flex:"1",children:[r.jsx(l.Text,{fontSize:"14px",lineHeight:"20px",fontWeight:"600",color:k[e].content.color,backgroundColor:k[e].container.backgroundColor,...g==null?void 0:g.title,children:o}),t&&r.jsx(l.Text,{fontSize:"12px",lineHeight:"18px",color:k[e].content.color,fontWeight:"400",backgroundColor:k[e].container.backgroundColor,...g==null?void 0:g.description,children:t}),i&&c&&r.jsx(l.Text,{fontSize:"14px",fontWeight:"600",marginTop:"6px",cursor:"pointer",color:k[e].content.color,backgroundColor:k[e].container.backgroundColor,onClick:v=>{v.stopPropagation(),i()},_hover:{textDecoration:"underline"},transition:"opacity 0.2s ease, color 0.2s ease",...g==null?void 0:g.actionButton,children:c})]}),a&&r.jsx(l.View,{as:"button","aria-label":"Close toast",backgroundColor:"transparent",border:"none",cursor:"pointer",padding:"4px",marginLeft:"8px",marginTop:"-2px",marginRight:"-4px",borderRadius:"9999px",onClick:v=>{v.stopPropagation(),n()},_hover:{backgroundColor:"color-black-900-60"},transition:"background-color 0.2s ease, opacity 0.2s ease",...g==null?void 0:g.closeButton,children:r.jsx(Me,{widthHeight:16,color:k[e].content.color})})]})},Zp=({position:e="top-right",gap:o=8,limit:t=5,containerStyle:n})=>{const{toasts:a,remove:i}=dr(),s=h.useMemo(()=>{const d={top:[],"top-right":[],"top-left":[],bottom:[],"bottom-right":[],"bottom-left":[]};return a.forEach(g=>{const f=g.position||e;d[f].push(g)}),Object.keys(d).forEach(g=>{d[g]=d[g].slice(-t)}),d},[a,e,t])[e];return r.jsx(l.View,{position:"fixed",zIndex:9999,display:"flex",flexDirection:e.includes("bottom")?"column-reverse":"column",gap:`${o}px`,width:"fit-content",maxWidth:"100%",pointerEvents:"none",...Jp[e],style:n,children:s.map(d=>r.jsx(l.View,{pointerEvents:"auto",animation:e.includes("right")?"slideInRight 0.3s ease-out, fadeIn 0.3s ease-out":e.includes("left")?"slideInLeft 0.3s ease-out, fadeIn 0.3s ease-out":e.includes("top")?"slideInDown 0.3s ease-out, fadeIn 0.3s ease-out":"slideInUp 0.3s ease-out, fadeIn 0.3s ease-out",children:r.jsx(Ei,{id:d.id,variant:d.variant,title:d.title,description:d.description,onClose:()=>i(d.id),isClosable:d.isClosable,action:d.action,actionText:d.actionText,showIcon:d.showIcon,views:d.views,render:d.render,icon:d.icon,isVisible:d.isVisible})},d.id))})},Rp=()=>({toast:(e,o,t,n)=>yo(e,o,t,n),info:(e,o,t)=>Wi(e,o,t),success:(e,o,t)=>Hi(e,o,t),warning:(e,o,t)=>ji(e,o,t),error:(e,o,t)=>Pi(e,o,t),remove:e=>Ai(e),removeAll:()=>Vi()}),eu=Object.assign(e=>r.jsx(Ei,{...e}),{Container:e=>r.jsx(Zp,{...e}),show:yo,info:Wi,success:Hi,warning:ji,error:Pi,remove:Ai,removeAll:Vi}),ou=Rp,Di=(e,o)=>{var c,s;if(!e)return!0;const t=e.toLowerCase(),n=o.name.toLowerCase().includes(t),a=((c=o.description)==null?void 0:c.toLowerCase().includes(t))||!1,i=((s=o.keywords)==null?void 0:s.some(d=>d.toLowerCase().includes(t)))||!1;return n||a||i},ru=({open:e,onOpenChange:o,groups:t=[],commands:n=[],filter:a})=>{const[i,c]=h.useState(""),[s,d]=h.useState(0),g=h.useRef(null),f=h.useMemo(()=>a||Di,[a]),m=h.useMemo(()=>[...t.flatMap(x=>x.commands),...n],[t,n]),p=h.useMemo(()=>i.trim()?m.filter(k=>f(i,k)):m,[m,i,f]),u=h.useMemo(()=>{if(!i)return t;const k=a||Di;return t.map(x=>({...x,commands:x.commands.filter(C=>k(i,C))})).filter(x=>x.commands.length)},[t,i,a]);h.useEffect(()=>{d(0)},[p.length]);const y=h.useCallback(k=>{if(e)switch(k.key){case"ArrowDown":k.preventDefault(),d(x=>x<p.length-1?x+1:x);break;case"ArrowUp":k.preventDefault(),d(x=>x>0?x-1:x);break;case"Enter":k.preventDefault(),p[s]&&(p[s].onSelect(),o(!1),c(""));break;case"Escape":k.preventDefault(),o(!1),c("");break}},[e,p,s,o]);return h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)=="function")return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[y]),h.useEffect(()=>{const k=g.current;if(k&&typeof k.querySelector=="function"&&e){const x=k.querySelector(`[data-index="${s}"]`);x&&typeof x.scrollIntoView=="function"&&x.scrollIntoView({block:"nearest"})}},[s,e]),h.useEffect(()=>{e?d(0):c("")},[e]),{search:i,setSearch:c,selectedIndex:s,setSelectedIndex:d,filteredCommands:p,filteredGroups:u,listRef:g}},tu=({onClose:e,children:o,...t})=>r.jsx(l.View,{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color-dark-50-240",zIndex:9999,onClick:n=>{n.target===n.currentTarget&&(e==null||e())},...t,children:o}),$i=h.forwardRef(({value:e,onValueChange:o,...t},n)=>r.jsx(l.Input,{value:e,onChange:a=>{var i,c;return o(typeof a=="string"?a:((i=a==null?void 0:a.target)==null?void 0:i.value)??((c=a==null?void 0:a.nativeEvent)==null?void 0:c.text)??"")},ref:n,...t}));$i.displayName="CommandTextInput";const nu={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},au=(e=>({default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},outline:{backgroundColor:"color-white",borderWidth:"2px",borderStyle:"solid",borderColor:"color-gray-300",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"}}))(),lu={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200"},iu={overflow:"auto",padding:"8px 0"},cu={marginBottom:"8px"},su={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color-gray-500",textTransform:"uppercase"},du={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color-gray-100"}},gu={backgroundColor:"color-blue-50",_hover:{backgroundColor:"color-blue-100"}},hu={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},fu={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color-gray-500"},mu={display:"flex",flexDirection:"column",flex:1},pu={fontSize:"14px",fontWeight:"medium"},uu={fontSize:"12px",color:"color-gray-500",marginTop:"2px"},yu={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color-gray-500"},bu={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color-gray-500",textAlign:"center"},xu={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200",fontSize:"12px",color:"color-gray-500"},ku=h.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),Cu=({value:e,children:o})=>r.jsx(ku.Provider,{value:e,children:o}),Li=({value:e,onValueChange:o,placeholder:t="Type a command or search...",views:n,...a})=>{const i=h.useRef(null);return h.useEffect(()=>{i.current&&i.current.focus()},[]),r.jsxs(l.View,{...lu,...n==null?void 0:n.container,...a,children:[r.jsx(kr,{widthHeight:16,color:"color-gray-400",marginRight:"8px"}),r.jsx($i,{width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",...n==null?void 0:n.input,value:e,onValueChange:o,placeholder:t,ref:i})]})},wu=({children:e,views:o,...t})=>r.jsx(l.View,{...iu,...o==null?void 0:o.container,...t,children:e}),_i=({heading:e,children:o,views:t,...n})=>r.jsxs(l.View,{...cu,...t==null?void 0:t.container,...n,children:[r.jsx(l.Text,{...su,...t==null?void 0:t.heading,children:e}),o]}),cn=({item:e,selected:o=!1,onSelect:t,views:n,...a})=>{const i=()=>{!e.disabled&&t&&t()};return r.jsxs(l.Horizontal,{...du,...o?gu:{},...e.disabled?hu:{},onPress:i,onClick:i,...n==null?void 0:n.container,...a,children:[e.icon&&r.jsx(l.View,{...fu,...n==null?void 0:n.icon,children:e.icon}),r.jsxs(l.Vertical,{...mu,...n==null?void 0:n.content,children:[r.jsx(l.Text,{...pu,...n==null?void 0:n.name,children:e.name}),e.description&&r.jsx(l.Text,{...uu,...n==null?void 0:n.description,children:e.description})]}),e.shortcut&&r.jsx(l.Text,{...yu,...n==null?void 0:n.shortcut,children:e.shortcut})]})},Bi=({children:e="No results found.",views:o,...t})=>r.jsx(l.View,{...bu,...o==null?void 0:o.container,...t,children:e}),Su=({open:e,onOpenChange:o,groups:t=[],commands:n=[],placeholder:a,size:i="md",variant:c="default",emptyState:s,footer:d,search:g,setSearch:f,selectedIndex:m,setSelectedIndex:p,filteredCommands:u,filteredGroups:y,listRef:k,views:x,filter:C,...w})=>{if(!e)return null;const v=h.useCallback(F=>{F.disabled||(F.onSelect(),o(!1),f(""))},[o,f]);h.useCallback(F=>F.target===F.currentTarget&&o(!1),[o]);const S=h.useMemo(()=>({search:g,setSearch:f,selectedIndex:m,setSelectedIndex:p,filteredCommands:u,onSelect:v}),[g,m,u,v,f,p]),b=t.length>0,T=u.length===0;return r.jsx(tu,{onClose:()=>o(!1),...w,children:r.jsx(Cu,{value:S,children:r.jsxs(l.View,{borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column",...nu[i],...au[c],...x==null?void 0:x.container,onClick:F=>F.stopPropagation(),children:[r.jsx(Li,{value:g,onValueChange:f,placeholder:a,views:x==null?void 0:x.searchInput}),r.jsx(l.View,{ref:k,flex:1,overflow:"auto",...x==null?void 0:x.list,children:T?s||r.jsx(Bi,{views:x==null?void 0:x.empty}):b?y.map(F=>r.jsx(_i,{heading:F.name,views:x==null?void 0:x.groupHeading,children:F.commands.map(W=>{const j=u.findIndex($=>$.id===W.id);return r.jsx(cn,{item:W,selected:j===m,onSelect:()=>v(W),"data-index":j,views:{container:x==null?void 0:x.item,icon:x==null?void 0:x.icon,content:x==null?void 0:x.content,name:x==null?void 0:x.name,description:x==null?void 0:x.description,shortcut:x==null?void 0:x.shortcut}},W.id)})},F.id)):u.map((F,W)=>r.jsx(cn,{item:F,selected:W===m,onSelect:()=>v(F),"data-index":W,views:{container:x==null?void 0:x.item,icon:x==null?void 0:x.icon,content:x==null?void 0:x.content,name:x==null?void 0:x.name,description:x==null?void 0:x.description,shortcut:x==null?void 0:x.shortcut}},F.id))}),d&&r.jsx(l.View,{...xu,...x==null?void 0:x.footer,children:d})]})})})},Do=({open:e,onOpenChange:o,groups:t=[],commands:n=[],placeholder:a,size:i="md",variant:c="default",filter:s,emptyState:d,footer:g,views:f,...m})=>{const{search:p,setSearch:u,selectedIndex:y,setSelectedIndex:k,filteredCommands:x,filteredGroups:C,listRef:w}=ru({open:e,onOpenChange:o,groups:t,commands:n,filter:s});return r.jsx(Su,{open:e,onOpenChange:o,groups:t,commands:n,placeholder:a,size:i,variant:c,emptyState:d,footer:g,search:p,setSearch:u,selectedIndex:y,setSelectedIndex:k,filteredCommands:x,filteredGroups:C,listRef:w,views:f,...m})};Do.Input=Li,Do.List=wu,Do.Group=_i,Do.Item=cn,Do.Empty=Bi;const Oi=()=>Math.random().toString(36).substring(2,11),vu=({defaultOpen:e=!1,openDelay:o=200,closeDelay:t=200,isDisabled:n=!1}={})=>{const[a,i]=h.useState(e),c=h.useRef(null),s=h.useRef(null),d=h.useRef(null),g=h.useRef(null),f=h.useRef(`tooltip-trigger-${Oi()}`).current,m=h.useRef(`tooltip-content-${Oi()}`).current,p=h.useCallback(()=>{n||(g.current&&(clearTimeout(g.current),g.current=null),!a&&!d.current&&(d.current=setTimeout(()=>{i(!0),d.current=null},o)))},[a,o,n]),u=h.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),a&&!g.current&&(g.current=setTimeout(()=>{i(!1),g.current=null},t))},[a,t]),y=h.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]);return h.useEffect(()=>()=>{d.current&&clearTimeout(d.current),g.current&&clearTimeout(g.current)},[]),h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const k=x=>{x.key==="Escape"&&a&&i(!1)};return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[a]),{isOpen:a,openTooltip:p,closeTooltip:u,cancelCloseTimer:y,triggerRef:c,contentRef:s,triggerId:f,contentId:m}},Tu={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},Iu=(e=>({default:{backgroundColor:"color-gray-900",color:"color-white",borderRadius:"8px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",transition:"opacity 0.15s ease"},light:{backgroundColor:"color-white",color:"color-gray-800",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"8px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.04)",transition:"opacity 0.15s ease"},dark:{backgroundColor:"color-gray-950",color:"color-white",borderRadius:"8px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.2), 0px 2px 4px rgba(0, 0, 0, 0.12)",transition:"opacity 0.15s ease"}}))(),Fu=e=>{const o={position:"absolute",width:"8px",height:"8px",backgroundColor:"inherit",borderStyle:"inherit",borderWidth:"inherit",borderColor:"inherit",transform:"rotate(45deg)"};switch(e){case"top":return{...o,bottom:"-4px",left:"50%",marginLeft:"-4px",borderTop:"none",borderLeft:"none"};case"right":return{...o,left:"-4px",top:"50%",marginTop:"-4px",borderRight:"none",borderTop:"none"};case"bottom":return{...o,top:"-4px",left:"50%",marginLeft:"-4px",borderBottom:"none",borderRight:"none"};case"left":return{...o,right:"-4px",top:"50%",marginTop:"-4px",borderLeft:"none",borderBottom:"none"};default:return o}},Ni=h.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),sn=()=>h.useContext(Ni),zu=({value:e,children:o})=>r.jsx(Ni.Provider,{value:e,children:o}),qi=h.memo(({children:e,views:o,asChild:t=!1,...n})=>{const{openTooltip:a,closeTooltip:i,triggerRef:c,contentId:s,triggerId:d}=sn(),g=h.useCallback(()=>a(),[a]),f=h.useCallback(()=>i(),[i]),m=h.useCallback(()=>a(),[a]),p=h.useCallback(()=>i(),[i]),u={ref:c,onMouseEnter:g,onMouseLeave:f,onFocus:m,onBlur:p,id:d,"aria-describedby":s,...o==null?void 0:o.container,...n};return t&&h.isValidElement(e)?h.cloneElement(e,u):r.jsx(l.View,{display:"inline-block",...u,children:e})}),Mu=h.memo(({children:e,views:o,...t})=>{const{isOpen:n,contentRef:a,contentId:i,triggerId:c}=sn();return n?r.jsx(l.View,{ref:a,id:i,role:"tooltip","aria-labelledby":c,...o==null?void 0:o.container,...t,children:e}):null}),Wu=({content:e,children:o,position:t="top",align:n="center",size:a="md",variant:i="default",showArrow:c=!0,views:s,themeMode:d,...g})=>{const{isOpen:f,triggerRef:m,contentRef:p,contentId:u,triggerId:y}=sn(),{ref:k,relation:x}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[C,w]=h.useState({x:0,y:0,placement:t});h.useEffect(()=>{m!=null&&m.current&&k&&(k.current=m.current)},[m,k,f]),h.useEffect(()=>{if(f&&(p!=null&&p.current)&&(m!=null&&m.current)){const b=m.current.getBoundingClientRect();let T=t;x&&(t==="top"&&x.space.vertical==="bottom"?T="bottom":t==="bottom"&&x.space.vertical==="top"?T="top":t==="right"&&x.space.horizontal==="left"?T="left":t==="left"&&x.space.horizontal==="right"&&(T="right"));let F=0,W=0;switch(T){case"top":F=n==="start"?b.left:n==="end"?b.right-120:b.left+b.width/2-60,W=b.top-8;break;case"bottom":F=n==="start"?b.left:n==="end"?b.right-120:b.left+b.width/2-60,W=b.bottom+8;break;case"right":F=b.right+8,W=n==="start"?b.top:n==="end"?b.bottom-32:b.top+b.height/2-16;break;case"left":F=b.left-8,W=n==="start"?b.top:n==="end"?b.bottom-32:b.top+b.height/2-16;break}w({x:F,y:W,placement:T})}},[f,t,n,m,p,x]);const v=h.useMemo(()=>c?Fu(C.placement):{},[c,C.placement]),S=h.useMemo(()=>{const b={position:"fixed",left:C.x,top:C.y,zIndex:1e3};switch(C.placement){case"top":return{...b,transform:"translateY(-100%)"};case"left":return{...b,transform:"translateX(-100%)"};case"bottom":case"right":default:return b}},[C.x,C.y,C.placement]);return r.jsxs(l.View,{position:"relative",display:"inline-block",...s==null?void 0:s.container,...g,children:[r.jsx(qi,{children:o}),f&&r.jsxs(l.View,{ref:p,id:u,role:"tooltip","aria-labelledby":y,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",style:S,...Tu[a],...Iu[i],...s==null?void 0:s.content,children:[typeof e=="string"?r.jsx(l.Text,{...s==null?void 0:s.text,children:e}):e,c&&r.jsx(l.View,{...v,...s==null?void 0:s.arrow})]})]})},Xr=({content:e,children:o,position:t="top",align:n="center",size:a="md",variant:i="default",openDelay:c=200,closeDelay:s=200,showArrow:d=!0,defaultOpen:g=!1,isDisabled:f=!1,views:m,...p})=>{const u=vu({defaultOpen:g,openDelay:c,closeDelay:s,isDisabled:f});return r.jsx(zu,{value:u,children:r.jsx(Wu,{content:e,position:t,align:n,size:a,variant:i,showArrow:d,views:m,...p,children:o})})};Xr.Trigger=qi,Xr.Content=Mu;const Ui=h.forwardRef((e,o)=>{const t={...e,isAgentRunning:e.isAgentRunning??e.isWorkerRunning,onStopAgent:e.onStopAgent??e.onStopWorker},n=dl(t);return h.useImperativeHandle(o,()=>({getValue:()=>{var a,i;return((a=n.hiddenInputRef.current)==null?void 0:a.value)??((i=n.editableRef.current)==null?void 0:i.textContent)??n.value??""},setValue:n.setValue,clear:()=>n.setValue(""),focus:()=>{var a;return(a=n.editableRef.current)==null?void 0:a.focus()},blur:()=>{var a;return(a=n.editableRef.current)==null?void 0:a.blur()},getElement:()=>n.editableRef.current,getInputElement:()=>n.hiddenInputRef.current})),r.jsx(yl,{...t,...n})});Ui.displayName="ChatInput";const Hu={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}},Gi={container:{position:"relative",display:"flex",flexDirection:"column",height:"100vh",alignItems:"center",justifyContent:"center"},gradient:{position:"absolute",inset:"-10px",opacity:.5,pointerEvents:"none",filter:"blur(10px)",backgroundSize:"300% 200%",backgroundPosition:"50% 50%, 50% 50%"}},dn={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},image:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"scroll"},content:{position:"relative",width:"100%",height:"100%",zIndex:2}},gn={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},video:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},content:{position:"relative",zIndex:2}},ju=h.createContext({}),Pu=({children:e,showRadialGradient:o=!0,views:t,themeMode:n,...a})=>{const i={white:"rgba(255,255,255,1)",transparent:"rgba(255,255,255,0)"},c=["rgb(59, 130, 246)","rgb(196, 181, 253)","rgb(147, 197, 253)","rgb(221, 214, 254)","rgb(96, 165, 250)"],s={...Gi.gradient,backgroundImage:`
26
+ ${R}`:R}let fe=j,Y=!1;j.endsWith("-thinking")&&(fe=j.replace(/-thinking$/,""),Y=!0),n==null||n(ne,{model_name:fe,enable_thinking:Y}),y||x(""),v([]),b([])},J=ee=>{v(ne=>ne.filter((fe,Y)=>Y!==ee)),!g&&S.length>ee&&b(ne=>ne.filter((fe,Y)=>Y!==ee))},Z=ee=>{ee.preventDefault(),ee.stopPropagation(),H(!0)},Q=ee=>{ee.preventDefault(),ee.stopPropagation(),H(!1)},oe=h.useCallback(ee=>{!ee||ee.length===0||(b(ne=>[...ne,...ee]),v(ne=>[...ne,...ee]),z(ne=>[...ne,...ee]),F(!0))},[b,v]),re=h.useCallback(()=>{if($.length>0&&!E&&u){V(!0);const ee=$[0];M.current=ee,P(0);try{u(ee)}catch(ne){z(fe=>fe.slice(1)),V(!1),M.current=null,P(0),F(fe=>$.length-1>0||!1),p==null||p(ne)}}else $.length===0&&T&&(F(!1),P(0))},[$,E,u,T,p]);h.useEffect(()=>{re()},[$,E,re]);const ae="active",te=ee=>!0,se=()=>{X(!1),e.onGuideClose&&e.onGuideClose()},xe=ee=>{y&&t?t(ee.text):x(ee.text),e.onPromptExampleSelect&&e.onPromptExampleSelect(ee),q.current&&q.current.focus()},le=h.useCallback(()=>S,[S]),de=h.useCallback(()=>b([]),[]);return{onSubmit:n,getPendingFiles:le,clearPendingFiles:de,value:C,handleChange:N,setValue:D,handleSubmit:K,editableRef:q,fileInputRef:_,hiddenInputRef:B,isUploading:T,uploadProgress:W,isDraggingOver:A,uploadedFiles:w,pendingFiles:S,removeUploadedFile:J,setPendingFiles:b,setUploadedFiles:v,setIsUploading:F,startUpload:oe,selectedModel:j,handleModelChange:L,modelOptions:O,subscriptionStatus:ae,canAccessModel:te,handleDragOver:Z,handleDragLeave:Q,isGuideTipShown:U,hideGuideTip:se,handlePromptExampleSelect:xe}},Xh={attachmentRemove:{position:"absolute",top:"2px",right:"2px",width:"20px",height:"20px",borderRadius:"50%",backgroundColor:"color-black-900",color:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",zIndex:1}},gl={container:{width:"100%",maxWidth:"100%",borderRadius:"12px",backgroundColor:"color-white",transition:"background-color 0.2s ease, box-shadow 0.2s ease"},content:{width:"100%",padding:"12px",borderRadius:"12px",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}},Jh={default:{borderRadius:"8px"},square:{borderRadius:"0px"},rounded:{borderRadius:"8px"}},Qh={xs:{fontSize:"10px",padding:"4px 8px"},sm:{fontSize:"12px",padding:"6px 10px"},md:{fontSize:"14px",padding:"8px 12px"},lg:{fontSize:"16px",padding:"10px 14px"},xl:{fontSize:"20px",padding:"12px 16px"}},Zh={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300"},none:{backgroundColor:"transparent",border:"none"}},hl=e=>`${e}-${Math.random().toString(36).substring(2,9)}`,Rh=({openDelay:e=200,closeDelay:o=300}={})=>{const[t,n]=h.useState(!1),a=h.useRef(null),i=h.useRef(null),c=h.useRef(null),s=h.useRef(null),d=h.useMemo(()=>hl("hovercard-content"),[]),g=h.useMemo(()=>hl("hovercard-trigger"),[]),f=h.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null),i.current&&(clearTimeout(i.current),i.current=null)},[]),m=h.useCallback(()=>{f(),t||(a.current=setTimeout(()=>{n(!0)},e))},[t,e,f]),p=h.useCallback(()=>{f(),t&&(i.current=setTimeout(()=>{n(!1)},o))},[t,o,f]),u=h.useCallback(()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]);return h.useEffect(()=>()=>f(),[f]),{isOpen:t,openCard:m,closeCard:p,cancelCloseTimer:u,triggerRef:c,contentRef:s,contentId:d,triggerId:g}},fl=h.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),ef=({children:e,value:o})=>r.jsx(fl.Provider,{value:o,children:e}),ml=()=>{const e=h.useContext(fl);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},of=({children:e,views:o,asChild:t=!1,...n})=>{const{openCard:a,closeCard:i,triggerRef:c,contentId:s,triggerId:d}=ml(),u={ref:c,onMouseEnter:()=>a(),onMouseLeave:()=>i(),onFocus:()=>a(),onBlur:()=>i(),id:d,"aria-describedby":s,...o==null?void 0:o.container,...n};if(t&&h.isValidElement(e)){const y=h.Children.only(e);return h.cloneElement(y,{...u,...y.props})}return r.jsx(l.View,{position:"relative",display:"inline-block",...u,children:e})},rf=({children:e,views:o,side:t="bottom",align:n="center",sideOffset:a=8,style:i,backgroundColor:c="color-white",borderRadius:s="4px",boxShadow:d="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:g="12px",minWidth:f="50px",maxWidth:m="300px",...p})=>{const{isOpen:u,cancelCloseTimer:y,closeCard:k,contentRef:x,triggerRef:C,contentId:w,triggerId:v}=ml(),{ref:S,relation:b}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0});h.useEffect(()=>{C!=null&&C.current&&(S==null?void 0:S.current)!==C.current&&S&&(S.current=C.current)},[C,S,u]);const T=()=>y(),F=()=>k();if(!u)return null;const W=()=>{if(!b||!(C!=null&&C.current))return{position:"absolute",top:0,left:0,zIndex:1e3};const z=C.current.getBoundingClientRect();let E=t;t==="bottom"&&b.space.vertical==="top"?E="top":t==="top"&&b.space.vertical==="bottom"?E="bottom":t==="right"&&b.space.horizontal==="left"?E="left":t==="left"&&b.space.horizontal==="right"&&(E="right");let V=0,M=0;switch(E){case"bottom":V=z.left+z.width/2,M=z.bottom+a;break;case"top":V=z.left+z.width/2,M=z.top-a;break;case"right":V=z.right+a,M=z.top+z.height/2;break;case"left":V=z.left-a,M=z.top+z.height/2;break}return{position:"fixed",left:V,top:M,zIndex:1e3,transform:P(E)}},P=z=>{switch(z){case"bottom":return"translate(-50%, 0)";case"top":return"translate(-50%, -100%)";case"right":return"translate(0, -50%)";case"left":return"translate(-100%, -50%)";default:return"translate(-50%, 0)"}},$=W();return r.jsx(l.View,{ref:x,id:w,role:"tooltip","aria-labelledby":v,onMouseEnter:T,onMouseLeave:F,backgroundColor:c,borderRadius:s,boxShadow:d,padding:g,minWidth:f,maxWidth:m,style:{...$,...i},...o==null?void 0:o.container,...p,children:e})},Fe=({children:e,views:o,openDelay:t,closeDelay:n,...a})=>{const i=Rh({openDelay:t,closeDelay:n});return r.jsx(ef,{value:i,children:r.jsx(l.View,{position:"relative",display:"inline-block",...o==null?void 0:o.container,...a,children:e})})};Fe.Trigger=of,Fe.Content=rf;const tf=({files:e,sandboxId:o,onRemove:t,layout:n="inline",maxHeight:a="120px",showPreviews:i=!1,views:c={}})=>{if(e.length===0)return null;const s=h.useCallback(g=>g<1024?`${g} B`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:`${(g/(1024*1024)).toFixed(1)} MB`,[]),d=h.useCallback(g=>g.type.startsWith("image/")?{backgroundColor:"#DBEAFE",color:"#2563EB"}:g.type.startsWith("video/")?{backgroundColor:"#EDE9FE",color:"#7C3AED"}:g.type.startsWith("audio/")?{backgroundColor:"#DCFCE7",color:"#16A34A"}:{backgroundColor:"#E2E8F0",color:"#475569"},[]);return r.jsx(l.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:a,overflowY:"auto",...c==null?void 0:c.container,children:e.map((g,f)=>{const m=(g==null?void 0:g.path)||(g==null?void 0:g.url)||(i?URL.createObjectURL(g):""),p=g.type.startsWith("image/"),u=g.type.startsWith("video/"),y=g.type.startsWith("audio/"),k=d(g);return i?r.jsx(l.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:i&&r.jsxs(Fe,{children:[r.jsxs(Fe.Trigger,{children:[p&&r.jsx(l.Image,{src:m,alt:g.name,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),u&&r.jsx(l.View,{as:"video",src:m,alt:g.name,controls:!1,muted:!0,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),y&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(So,{widthHeight:24,color:"color-black"})}),!p&&!u&&!y&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(io,{widthHeight:24,color:"color-black"})}),t&&r.jsx(l.Button,{...Xh.attachmentRemove,onClick:x=>{x.stopPropagation(),t(f)},"aria-label":`Remove ${g.name}`,children:"×"})]}),r.jsxs(Fe.Content,{children:[p&&r.jsx(l.Image,{src:m,alt:g.name,maxWidth:"100%"}),u&&r.jsx(l.View,{as:"video",src:m,controls:!0,maxWidth:"100%"}),y&&r.jsx(l.View,{as:"audio",src:m,controls:!0,width:"100%"}),r.jsxs(l.Text,{marginTop:"4px",maxLines:1,width:"100%",...c==null?void 0:c.name,children:[g.name," (",s(g.size),")"]})]})]})},f):r.jsxs(l.Horizontal,{alignItems:"center",gap:"8px",padding:"6px 10px 6px 8px",borderRadius:"9999px",border:"1px solid #E2E8F0",backgroundColor:"color-white",maxWidth:"100%",animate:{from:{opacity:0,scale:.96},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:[r.jsx(l.Center,{width:"22px",height:"22px",minWidth:"22px",borderRadius:"9999px",backgroundColor:k.backgroundColor,color:k.color,children:y?r.jsx(So,{widthHeight:12,color:"currentColor"}):r.jsx(io,{widthHeight:12,color:"currentColor"})}),r.jsxs(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-600",maxLines:1,maxWidth:"220px",...c==null?void 0:c.name,children:[g.name," · ",s(g.size)]}),t&&r.jsx(l.View,{as:"button",type:"button",onClick:()=>t(f),"aria-label":`Remove ${g.name}`,display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",minWidth:"16px",border:"none",backgroundColor:"transparent",color:"color-gray-400",padding:0,cursor:"pointer",transition:"color 0.2s ease, opacity 0.2s ease",_hover:{color:"color-gray-600"},children:"×"})]},f)})})},pl=typeof window<"u"?h.useLayoutEffect:h.useEffect,ul=h.forwardRef(({value:e,onChange:o,placeholder:t="Type your message...",disabled:n=!1,autoFocus:a=!0,suggestions:i=[],onSuggestionSelect:c,showSuggestions:s=!1,mentionData:d=[],mentionTrigger:g="@",onMentionSelect:f,maxHeight:m="200px",minHeight:p="40px",name:u,id:y,hiddenInput:k=!0,hiddenInputRef:x,views:C={}},w)=>{var ne,fe;const v=h.useRef(e),[S,b]=h.useState(-1),[T,F]=h.useState(!e),W=h.useRef(null),[P,$]=h.useState(!1),[z,E]=h.useState(!1),[V,M]=h.useState(""),[A,H]=h.useState(-1),[j,L]=h.useState(-1),[O,q]=h.useState([]),{ref:_,relation:B}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[U,X]=h.useState({x:0,y:0}),[N,D]=h.useState({x:0,y:0}),K=h.useRef(null),J=h.useCallback(Y=>{K.current=Y,typeof x=="function"?x(Y):x&&(x.current=Y)},[x]),Z=h.useCallback(Y=>{K.current&&K.current.value!==Y&&(K.current.value=Y)},[]);pl(()=>{const Y=w;Y!=null&&Y.current&&e!==v.current&&(Y.current.textContent=e,v.current=e,F(!e)),Z(e)},[e,w,Z]);const Q=h.useCallback(Y=>{if(Y===v.current)return;const R=w;R!=null&&R.current&&R.current.textContent!==Y&&(R.current.textContent=Y),v.current=Y,F(!Y),Z(Y),o(Y)},[o,w,Z]);pl(()=>{const Y=K.current;if(!Y)return;const R=()=>Q(Y.value);return Y.addEventListener("input",R),Y.addEventListener("change",R),()=>{Y.removeEventListener("input",R),Y.removeEventListener("change",R)}},[Q,k]),h.useEffect(()=>{a&&w&&typeof w=="object"&&w.current&&w.current.focus()},[a,w]);const oe=()=>{const Y=window.getSelection();if(!Y||Y.rangeCount===0)return-1;const R=Y.getRangeAt(0),we=R.cloneRange();return we.selectNodeContents(w&&typeof w=="object"&&w.current?w.current:document.body),we.setEnd(R.endContainer,R.endOffset),we.toString().length},re=h.useCallback((Y,R)=>{const we=Y.substring(0,R),Ae=we.lastIndexOf(g);if(Ae!==-1){const Ve=we.substring(Ae+1);if(!Ve.includes(" ")){const Oe=Ve.toLowerCase(),Ee=d.filter(ko=>ko.name.toLowerCase().includes(Oe));M(Oe),H(Ae),q(Ee),E(Ee.length>0),L(0);const No=ae();X(No);return}}E(!1),M(""),H(-1),L(-1)},[d,g]);h.useEffect(()=>{W.current&&_&&(_.current=W.current)},[W,_]);const ae=h.useCallback((Y=200)=>{if(!W.current)return{x:0,y:0};const R=W.current.getBoundingClientRect();if(B){const ze=B.space.vertical==="top";return{x:R.left,y:ze?R.top-Y-8:R.bottom+8}}const we=window.innerHeight,Ae={top:R.top,bottom:we-R.bottom},Ve=Ae.bottom<Y+8&&Ae.top>Ae.bottom;return{x:R.left,y:Ve?R.top-Y-8:R.bottom+8}},[B]),te=h.useCallback(()=>{$(!0);const Y=ae();D(Y)},[ae]),se=h.useCallback(()=>{setTimeout(()=>{$(!1),b(-1)},150)},[]),xe=Y=>{const R=Y.currentTarget.textContent||"";if(R!==v.current){o(R),v.current=R,Z(R),F(!R);const we=oe();re(R,we)}},le=h.useCallback(Y=>{if(w&&typeof w=="object"&&w.current){const R=w.current.textContent||"",we=R.substring(0,A),Ae=R.substring(A+g.length+V.length),Ve=we+g+Y.name+" "+Ae;o(Ve),v.current=Ve,Z(Ve),w.current.textContent=Ve;const ze=we.length+g.length+Y.name.length+1;setTimeout(()=>{var Oe;if(w.current){const Ee=document.createRange(),No=window.getSelection(),ko=w.current.firstChild;ko&&No&&(Ee.setStart(ko,Math.min(ze,((Oe=ko.textContent)==null?void 0:Oe.length)||0)),Ee.collapse(!0),No.removeAllRanges(),No.addRange(Ee))}},0)}E(!1),M(""),H(-1),L(-1),f&&f(Y)},[A,g,V,o,f,w,Z]),de=h.useCallback(Y=>{c&&c(Y),b(-1)},[c]),ee=Y=>{if(z&&O.length>0){if(Y.key==="ArrowDown"){Y.preventDefault(),L(R=>R<O.length-1?R+1:0);return}if(Y.key==="ArrowUp"){Y.preventDefault(),L(R=>R>0?R-1:O.length-1);return}if((Y.key==="Tab"||Y.key==="Enter")&&j>=0){Y.preventDefault(),le(O[j]);return}if(Y.key==="Escape"){E(!1),L(-1);return}}if(s&&i.length>0){if(Y.key==="ArrowDown"){Y.preventDefault(),b(R=>R<i.length-1?R+1:0);return}if(Y.key==="ArrowUp"){Y.preventDefault(),b(R=>R>0?R-1:i.length-1);return}if(Y.key==="Tab"&&S>=0){Y.preventDefault(),de(i[S]);return}if(Y.key==="Escape"){b(-1);return}}};return r.jsxs(l.View,{ref:W,width:"100%",position:"relative",...C==null?void 0:C.container,children:[r.jsxs(l.View,{width:"100%",minHeight:p,maxHeight:m,overflowY:"auto",position:"relative",children:[T&&r.jsx(l.Text,{position:"absolute",top:"8px",left:"8px",color:"color-gray-400",pointerEvents:"none",fontSize:"14px",zIndex:1,...C==null?void 0:C.placeholder,children:t}),r.jsx(l.View,{as:"div",ref:w,contentEditable:!n,suppressContentEditableWarning:!0,onInput:xe,onKeyDown:ee,onFocus:te,onBlur:se,role:"textbox","aria-multiline":"true","aria-placeholder":t,width:"100%",minHeight:"24px",padding:"8px",outline:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:"14px",color:"color-gray-900",backgroundColor:"transparent",...C==null?void 0:C.input})]}),k&&r.jsx(l.View,{as:"textarea",ref:J,id:y,name:u,defaultValue:e,disabled:n,tabIndex:-1,"aria-hidden":"true","data-editable-input-mirror":"true",opacity:0,width:1,height:1,padding:0,border:"none",resize:"none",overflow:"hidden",position:"absolute",bottom:0,left:0,pointerEvents:"none",...C==null?void 0:C.hiddenInput}),z&&O.length>0&&r.jsx(l.View,{position:"fixed",left:U.x,top:U.y,width:((ne=W.current)==null?void 0:ne.offsetWidth)||300,backgroundColor:"color-white",border:"2px solid",borderColor:"color-blue-300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9999,maxHeight:"200px",overflowY:"auto",...C==null?void 0:C.mentionContainer,children:r.jsxs(l.Vertical,{gap:0,children:[O.map((Y,R)=>r.jsx(l.View,{as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:R===j?"color-blue-50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>le(Y),onMouseEnter:()=>L(R),_hover:{backgroundColor:"color-blue-50"},...C==null?void 0:C.mentionItem,children:r.jsxs(l.Vertical,{gap:4,children:[r.jsxs(l.Text,{fontSize:"14px",color:"color-gray-900",fontWeight:"medium",children:[g,Y.name]}),Y.description&&r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",children:Y.description})]})},Y.id)),process.env.NODE_ENV==="development"&&r.jsxs("div",{style:{fontSize:"8px",opacity:.7,padding:"4px"},children:["Mentions (Trigger: ",g,")",B&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),"Space: ",B.space.vertical,"-",B.space.horizontal]})]})]})}),s&&i.length>0&&!z&&P&&!e&&r.jsx(l.View,{position:"fixed",left:N.x,top:N.y,width:((fe=W.current)==null?void 0:fe.offsetWidth)||300,backgroundColor:"color-white",border:"2px solid",borderColor:"color-green-300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9998,maxHeight:"200px",overflowY:"auto",...C==null?void 0:C.suggestionsContainer,children:r.jsxs(l.Vertical,{gap:0,children:[i.map((Y,R)=>r.jsx(l.View,{as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:R===S?"color-blue-50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>de(Y),onMouseEnter:()=>b(R),_hover:{backgroundColor:"color-blue-50"},...C==null?void 0:C.suggestionItem,children:r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontSize:"14px",color:"color-gray-900",fontWeight:"medium",children:Y.text}),Y.description&&r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",children:Y.description})]})},Y.id)),process.env.NODE_ENV==="development"&&r.jsxs("div",{style:{fontSize:"8px",opacity:.7,padding:"4px"},children:["Suggestions (Focus-triggered)",B&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),"Space: ",B.space.vertical,"-",B.space.horizontal]})]})]})})]})});ul.displayName="EditableInput";const nf=({examples:e,onSelect:o,views:t={}})=>{const{getColor:n}=l.useTheme();return!e||e.length===0?null:r.jsx(l.Horizontal,{gap:8,overflowX:"auto",padding:"8px 0",width:"100%",...t==null?void 0:t.container,children:e.map(a=>r.jsx(l.View,{as:"button",type:"button",padding:"8px 12px",borderRadius:"9999px",backgroundColor:"color-white",border:"1px solid #E2E8F0",cursor:"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",onClick:()=>o(a),_hover:{backgroundColor:"#F8FAFC",borderColor:"#CBD5E1"},...t==null?void 0:t.item,children:r.jsx(l.Text,{fontSize:"14px",color:"color-gray-700",...t==null?void 0:t.text,children:a.text})},a.id))})},af=({onRecordingComplete:e,onRecordingStart:o,views:t={}})=>{const{recording:n,paused:a,audioBlob:i,analyserNode:c,startRecording:s,stopRecording:d}=Jn();h.useEffect(()=>{if(i){const f=new File([i],`recording-${Date.now()}.webm`,{type:i.type||"audio/webm;codecs=opus"});e(f)}},[i]);const g=h.useCallback(()=>{s(),o==null||o()},[]);return r.jsxs(l.Horizontal,{alignItems:"center",gap:4,children:[r.jsx(l.View,{minWidth:90,children:n&&c&&r.jsx(xt,{analyserNode:c,isPaused:a})}),r.jsx(l.View,{as:"button",type:"button",onClick:n?d:g,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n?"theme-error":"color-gray-100",color:n?"color-white":"color-gray-600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:n?"color-red-600":"color-gray-200"},...t.button,children:n?r.jsx(xr,{widthHeight:16,color:"currentColor",filled:!1}):r.jsx(gt,{widthHeight:16,color:"currentColor",filled:!1})})]})},yl=h.memo(({onSubmit:e,placeholder:o="Type your message… use @ to mention",loading:t=!1,disabled:n=!1,isAgentRunning:a=!1,enableAudioRecording:i=!1,leftButtons:c,rightButtons:s,onStopAgent:d,loadingText:g="Agent is working...",autoFocus:f=!0,sandboxId:m,hideAttachments:p=!1,attachmentText:u="",promptExamples:y=[],suggestions:k=[],errorMessage:x,size:C="md",shape:w="rounded",variant:v="default",views:S={},mentionData:b=[],mentionTrigger:T="@",onMentionSelect:F,onAudioRecordingStart:W,onAudioRecordingStop:P,showGuideTip:$,guideVideoUrl:z,onGuideClose:E,onFileBrowse:V,onUploadProgress:M,onUploadSuccess:A,onUploadError:H,onFileUpload:j,onPromptExampleSelect:L,name:O,hiddenInput:q=!0,value:_,handleChange:B,setValue:U,handleSubmit:X,editableRef:N,fileInputRef:D,hiddenInputRef:K,isUploading:J,uploadProgress:Z,isDraggingOver:Q,uploadedFiles:oe,pendingFiles:re,getPendingFiles:ae,clearPendingFiles:te,removeUploadedFile:se,setPendingFiles:xe,setUploadedFiles:le,setIsUploading:de,startUpload:ee,selectedModel:ne,handleModelChange:fe,modelOptions:Y,subscriptionStatus:R,canAccessModel:we,isGuideTipShown:Ae,hideGuideTip:Ve,handlePromptExampleSelect:ze,handleDragOver:Oe,handleDragLeave:Ee,onChange:No,...ko})=>{l.useTheme();const Ic=h.useMemo(()=>({...gl.container,...Jh[w],...S==null?void 0:S.container}),[w,S==null?void 0:S.container]),nb=h.useMemo(()=>({...gl.content,...Qh[C],...Zh[v],...S==null?void 0:S.content}),[C,v,S==null?void 0:S.content]),pr=((_==null?void 0:_.trim().length)??0)>0||oe.length>0,ab=h.useCallback(ve=>{ee([ve]),P==null||P(ve)},[ee,P]),zn=h.useCallback(ve=>{const qo=ve.filter(Fc=>Fc.size>52428800?(console.error(`File size exceeds 50MB limit: ${Fc.name}`),!1):!0);qo.length>0&&ee(qo)},[ee]),lb=h.useCallback(ve=>{if(ve.preventDefault(),ve.stopPropagation(),Ee(ve),ve.dataTransfer.files.length>0){const qo=Array.from(ve.dataTransfer.files);zn(qo)}},[Ee,zn]),ib=h.useMemo(()=>[...b||[],...oe.map((ve,qo)=>({id:`file-${qo}`,name:ve.name}))],[b,oe]);return r.jsxs(l.View,{display:"flex",flexDirection:"column",boxSizing:"border-box",...Ic,...ko,onDragOver:Oe,onDragLeave:Ee,onDrop:lb,children:[y.length>0&&r.jsx(nf,{examples:y,onSelect:ze,views:{container:S==null?void 0:S.promptExamples,item:S==null?void 0:S.promptExampleItem}}),a&&r.jsxs(l.Horizontal,{justifyContent:"center",alignItems:"center",gap:8,padding:"8px 0",animate:{from:{opacity:0,y:-10},to:{opacity:1,y:0},duration:"0.3s"},...S==null?void 0:S.loadingIndicator,children:[r.jsx(ft,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),r.jsx(l.Text,{color:"color-gray-500",children:g})]}),r.jsx(l.View,{position:"relative",width:"100%",overflow:"visible",children:r.jsxs(l.View,{as:"form",onSubmit:X,overflow:"visible",display:"flex",flexDirection:"column",position:"relative",...nb,...Ic,paddingHorizontal:16,paddingVertical:10,backgroundColor:Q?"color-blue-50":void 0,children:[r.jsx(tf,{files:oe,sandboxId:m,onRemove:se,showPreviews:!0,views:{container:S==null?void 0:S.attachments,item:S==null?void 0:S.attachmentItem,name:S==null?void 0:S.attachmentName,size:S==null?void 0:S.attachmentSize,removeButton:S==null?void 0:S.attachmentRemove}}),r.jsx(ul,{ref:N,value:_||"",onChange:B,placeholder:o,disabled:n&&!a,autoFocus:f,suggestions:k||[],showSuggestions:k&&k.length>0&&!_,onSuggestionSelect:ve=>{B(ve.text)},mentionData:ib,mentionTrigger:T,onMentionSelect:F,name:O,hiddenInput:q,hiddenInputRef:K,views:{container:{},input:S==null?void 0:S.editableInput,hiddenInput:S==null?void 0:S.hiddenInput}}),r.jsxs(l.Horizontal,{justifyContent:"space-between",alignItems:"center",marginTop:"8px",children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[!p&&r.jsx(Sr,{accept:"*/*",icon:r.jsx(Go,{widthHeight:16}),maxSize:50*1024*1024,multiple:!0,onMultipleFileSelect:zn,isLoading:J,progress:Z||0,text:u,fileType:"file",renderError:({errorMessage:ve})=>null,views:{container:{height:"36px",cursor:"pointer",_hover:{backgroundColor:"color-gray-100"},...S==null?void 0:S.fileButton}},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,borderRadius:w==="rounded"?"50%":4,padding:10},textProps:{fontSize:"14px",color:"color-gray-600"},validateFile:ve=>ve.size>50*1024*1024?"File size exceeds 50MB limit":null}),c]}),r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[i&&r.jsx(af,{onRecordingStart:W,onRecordingComplete:ab,views:{button:S==null?void 0:S.recordButton}}),r.jsx(l.View,{as:"button",type:"button",onClick:X,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a?"theme-error":pr?"theme-primary":"color-gray-300",color:"color-white",borderRadius:w==="rounded"?"50%":4,border:"none",cursor:pr?"pointer":"not-allowed",disabled:!pr||t||n&&!a,transition:"background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease",_hover:{opacity:pr||a?.9:1},_active:{opacity:pr||a?.95:1},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px white, 0 0 0 4px theme-primary"},...S==null?void 0:S.submitButton,children:a?r.jsx(xr,{widthHeight:16,color:"currentColor",filled:!1}):t?r.jsx(Re,{type:"quarter",size:16,color:"color-white"}):r.jsx(ht,{widthHeight:16,color:"currentColor",filled:!1})}),s]})]})]})}),x&&r.jsx(l.Text,{color:"theme-error",marginTop:"4px",...S==null?void 0:S.bottomTip,children:x})]})}),lf=e=>{const{name:o,onSubmit:t,...n}=e,[a,i]=h.useState([]),c=ye({name:o,type:"text"}),s=p=>{c.onChangeText&&c.onChangeText(p)},d=(p,u)=>{t?t(p,u):s(p)},g=()=>a,f=()=>i([]),m=dl({...n,value:c.value||"",onChange:s,onSubmit:d});return r.jsx(yl,{...n,...m,name:o,value:c.value||"",onChange:s,onSubmit:d,error:c.error,getPendingFiles:g,clearPendingFiles:f})},cf=e=>{const o=ye(e),t=Va(o);return r.jsx(Ea,{...t,...o})},sf=e=>{const o=ye(e),t=Ya();return r.jsx(Ka,{...t,...o})},df=e=>{const o=ye(e),t=Da(e);return r.jsx(La,{...t,...o})},gf=e=>{let o=ye(e);o.selected=o.value;const t=ka({...e,value:o.value});return r.jsx(Sa,{...o,...t})},hf=e=>{const o=ye(e),t=va(e);return r.jsx(Fa,{...t,...o})},ff=e=>{const{name:o,...t}=e,{values:n,errors:a,touched:i,submitCount:c,setFieldValue:s,setFieldTouched:d}=De.useFormikContext(),g=De.getIn(n,o)||[],f=De.getIn(i,o)||c>0?De.getIn(a,o):void 0,m=h.useCallback(x=>{var w;const C=Array.isArray(x)?x.filter(v=>typeof v=="string"):[];s(o,C),(w=e.onTagsChange)==null||w.call(e,C)},[o,s,e.onTagsChange]),p=h.useCallback(()=>{var x;d(o,!0),(x=e.onBlur)==null||x.call(e)},[o,d,e.onBlur]),u=ol({...t,tags:g,onTagsChange:m,onBlur:p}),{tags:y,...k}=u;return r.jsx(rl,{...k,...t,tags:y,error:f})},mf=e=>{const o=ye(e),t=Wa(e);return r.jsx(Ha,{...t,...o})},pf=e=>{const o=ye(e,{focusable:!0}),{value:t,...n}=Vt(e);return r.jsx(Zo,{...n,...o})},uf=({visibleIcon:e=r.jsx(pt,{widthHeight:14}),hiddenIcon:o=r.jsx(mt,{widthHeight:14}),...t})=>{const n=ye(t,{focusable:!0}),{isVisible:a,setIsVisible:i,...c}=Xa(n);return r.jsx(Zo,{...c,type:a?"text":"password",isClearable:!1,right:r.jsx(l.View,{onClick:()=>{t.isDisabled||i(!a)},children:a?e:o})})},yf=({items:e,placeholder:o,searchPlaceholder:t,isMulti:n=!1,...a})=>{const i=ye(a),c=Qa(e,o,t);h.useEffect(()=>{if(n&&Array.isArray(i.value))c.setSelectedItems(i.value);else if(!n&&i.value){const d=typeof i.value=="object"?i.value:e.find(g=>g.value===i.value);d&&c.setSelectedItem(d)}},[i.value,n,e]);const s=d=>{i.onChange(d)};return r.jsx(el,{...c,...i,items:e,placeholder:o,isMulti:n,onSelect:s})},Wo=(e,o,t)=>Math.min(Math.max(e,o),t),bf=(e,o,t,n,a,i,c)=>{const s=n-t;let d;if(i==="horizontal"){const g=o.width,f=e-o.left;d=Wo(f/g,0,1)}else{const g=o.height,f=o.bottom-e;d=Wo(f/g,0,1)}if(c&&c.length>0){const g=t+d*s;let f=c[0],m=Math.abs(g-f);for(let p=1;p<c.length;p++){const u=Math.abs(g-c[p]);u<m&&(m=u,f=c[p])}return f}else{const g=t+d*s,f=Math.round(g/a)*a;return Wo(f,t,n)}},bl=({min:e=0,max:o=100,step:t=1,value:n,defaultValue:a,onChange:i,onDrag:c,orientation:s="horizontal",isDisabled:d=!1,stepValues:g})=>{const f=Wo(n??a??e,e,o),[m,p]=h.useState(f),[u,y]=h.useState(!1),[k,x]=h.useState(!1),C=h.useRef(null),w=h.useRef(null),v=n!==void 0,S=n!==void 0?n:m;h.useEffect(()=>{n!==void 0&&p(Wo(n,e,o))},[n,e,o]);const b=h.useCallback(E=>{const V=Wo(E,e,o);v||p(V),i&&V!==S&&i(V),u&&c&&c(V)},[v,e,o,i,S,u,c]),T=h.useCallback(E=>{if(d||!C.current)return;const V=C.current;if(typeof V.getBoundingClientRect!="function")return;const M=V.getBoundingClientRect();let A;"touches"in E?A=s==="horizontal"?E.touches[0].clientX:E.touches[0].clientY:A=s==="horizontal"?E.clientX:E.clientY;const H=bf(A,M,e,o,t,s,g);b(H)},[e,o,t,s,b,d,g]),F=h.useCallback(E=>{if(d)return;E.preventDefault(),y(!0),T(E);const V=A=>{T(A)},M=()=>{y(!1),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",M)};typeof(document==null?void 0:document.addEventListener)=="function"&&(document.addEventListener("mousemove",V),document.addEventListener("mouseup",M),document.addEventListener("touchmove",V),document.addEventListener("touchend",M))},[T,d]),W=h.useCallback(E=>{const V=w.current;V&&typeof V.contains=="function"&&V.contains(E.target)||F(E)},[F]),P=h.useCallback(E=>{if(d)return;let V=S;switch(E.key){case"ArrowLeft":case"ArrowDown":V=S-t;break;case"ArrowRight":case"ArrowUp":V=S+t;break;case"Home":V=e;break;case"End":V=o;break;default:return}E.preventDefault(),b(V)},[S,e,o,t,b,d]),$=o-e,z=$===0?0:(S-e)/$*100;return{currentValue:S,isDragging:u,isHovered:k,setIsHovered:x,trackRef:C,thumbRef:w,handleThumbMouseDown:F,handleTrackMouseDown:W,handleKeyDown:P,thumbPositionPercent:z}},xl={xs:{height:4,width:"100%"},sm:{height:6,width:"100%"},md:{height:8,width:"100%"},lg:{height:10,width:"100%"},xl:{height:12,width:"100%"}},kl={xs:{width:12,height:12},sm:{width:16,height:16},md:{width:20,height:20},lg:{width:24,height:24},xl:{width:28,height:28}},Cl={square:0,rounded:4,pill:24},wl=(e=>({default:{backgroundColor:"color-gray-200",transition:"background-color 0.15s ease"},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color-gray-300",style:{backgroundColor:"transparent"},transition:"border-color 0.15s ease"}}))(),xf={xs:{trackCrossAxisSize:4,thumbSize:12},sm:{trackCrossAxisSize:6,thumbSize:16},md:{trackCrossAxisSize:8,thumbSize:20},lg:{trackCrossAxisSize:10,thumbSize:24},xl:{trackCrossAxisSize:12,thumbSize:28}},kf={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},Cf=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),tr=(e,o)=>Cf(o)?{style:{[e]:o}}:{[e]:o},Sl=h.memo(({min:e=0,max:o=100,step:t=1,currentValue:n,stepValues:a,shape:i="rounded",size:c="md",variant:s="default",orientation:d="horizontal",isDisabled:g=!1,showValue:f=!1,showTooltip:m=!1,backgroundColor:p="theme-primary",label:u,helperText:y,themeMode:k,shadow:x={},isDragging:C,isHovered:w,setIsHovered:v,trackRef:S,thumbRef:b,handleThumbMouseDown:T,handleTrackMouseDown:F,handleKeyDown:W,thumbPositionPercent:P,ariaLabel:$="Slider",views:z={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}},onChange:E,onDrag:V,value:M,defaultValue:A,...H})=>{var D,K;const j=p,L="theme-disabled",O=wl[s].backgroundColor,q=g?L:j,_=d==="vertical",{trackCrossAxisSize:B,thumbSize:U}=xf[c]||{trackCrossAxisSize:xl[c].height,thumbSize:kl[c].width||16},X=r.jsxs(l.Vertical,{width:"100%",gap:8,...z.container,...H,children:[u&&r.jsxs(l.Horizontal,{justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontSize:14,fontWeight:500,...z.label,children:u}),f&&r.jsx(l.Text,{fontSize:14,color:"color-gray-500",...z.valueLabel,children:n})]}),r.jsxs(l.View,{ref:S,position:"relative",cursor:g?"not-allowed":"pointer",opacity:g?.6:1,onMouseDown:F,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),...xl[c],borderRadius:Cl[i],backgroundColor:O,...wl[s],...x,...z.track,children:[a&&a.length>0&&r.jsx(r.Fragment,{children:a.map(J=>{const Z=(J-e)/(o-e)*100;return r.jsx(l.View,{position:"absolute",top:"50%",left:`${Z}%`,transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",zIndex:1,...tr("backgroundColor",q),...z.stepMarks},J)})}),r.jsx(l.View,{position:"absolute",top:0,left:0,height:"100%",width:`${P}%`,borderRadius:Cl[i],transition:"width 0.1s ease-in-out",...tr("backgroundColor",q),...z.progress,...z.filledTrack}),r.jsx(l.View,{ref:b,role:"slider",tabIndex:g?-1:0,"aria-valuemin":e,"aria-valuemax":o,"aria-valuenow":n,"aria-orientation":d,"aria-disabled":g,"aria-label":$,position:"absolute",top:"50%",left:`${P}%`,borderRadius:"50%",backgroundColor:"color-white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",borderWidth:2,borderStyle:"solid",transition:C?"none":"transform 0.1s ease-in-out",...tr("borderColor",q),transform:w?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:T,onTouchStart:T,onKeyDown:W,...kl[c],...z.thumb,children:m&&(w||C)&&r.jsx(l.View,{position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:8,padding:"4px 8px",backgroundColor:"color-black",color:"color-white",borderRadius:4,fontSize:12,whiteSpace:"nowrap",zIndex:3,...z.tooltip,children:r.jsx(l.Text,{...(D=z.tooltip)==null?void 0:D.text,children:n==null?void 0:n.toFixed(t<1?1:0)})})})]}),y&&r.jsx(Ht,{children:y})]}),N=r.jsxs(l.Center,{...kf[d],position:"relative",onMouseEnter:()=>!g&&v(!0),onMouseLeave:()=>!g&&v(!1),...H,...z==null?void 0:z.container,children:[u&&r.jsxs(l.Horizontal,{justifyContent:"space-between",alignItems:"center",marginBottom:8,width:"100%",children:[r.jsx(l.Text,{fontSize:14,fontWeight:500,...z.label,children:u}),f&&r.jsx(l.Text,{fontSize:14,color:"color-gray-500",...z.valueLabel,children:n})]}),r.jsxs(l.View,{ref:S,position:"relative",borderRadius:B/2,backgroundColor:g?L:O,cursor:g?"not-allowed":"pointer",width:_?`${B}px`:"100%",height:_?"100%":`${B}px`,onMouseDown:F,onTouchStart:F,...z==null?void 0:z.track,children:[a&&a.length>0&&r.jsx(r.Fragment,{children:a.map(J=>{const Z=(J-e)/(o-e)*100;return r.jsx(l.View,{position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:q,zIndex:1,..._?{bottom:`${Z}%`,left:"50%",transform:"translate(-50%, 50%)"}:{left:`${Z}%`,top:"50%",transform:"translate(-50%, -50%)"},...z.stepMarks},J)})}),r.jsx(l.View,{position:"absolute",borderRadius:B/2,..._?{bottom:0,left:0,width:"100%",height:`${P}%`}:{top:0,left:0,height:"100%",width:`${P}%`},...tr("backgroundColor",q),...z==null?void 0:z.filledTrack,...z==null?void 0:z.progress}),r.jsx(l.View,{ref:b,role:"slider",tabIndex:g?-1:0,"aria-valuemin":e,"aria-valuemax":o,"aria-valuenow":n,"aria-orientation":d,"aria-disabled":g,"aria-label":$,position:"absolute",width:`${U}px`,height:`${U}px`,borderRadius:"50%",borderWidth:2,borderStyle:"solid",borderColor:"color-white",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:g?"not-allowed":"grab",transform:_?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s",...tr("backgroundColor",q),..._?{left:"50%",bottom:`${P}%`}:{top:"50%",left:`${P}%`},onMouseDown:T,onTouchStart:T,onKeyDown:W,...z==null?void 0:z.thumb,children:m&&(w||C)&&r.jsx(l.View,{position:"absolute",padding:"4px 8px",backgroundColor:"color-black",color:"color-white",borderRadius:"4px",whiteSpace:"nowrap",zIndex:3,..._?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},...z==null?void 0:z.tooltip,children:r.jsx(l.Text,{...(K=z==null?void 0:z.tooltip)==null?void 0:K.text,children:n==null?void 0:n.toFixed(t<1?1:0)})})})]}),y&&r.jsx(Ht,{marginTop:8,children:y})]});return _||m?N:X}),wf=e=>{const o=ye(e),t=bl({...e,value:o.value!==void 0?Number(o.value):void 0,onChange:n=>{var a;o.onChange(n),(a=e.onChange)==null||a.call(e,n)}});return r.jsx(Sl,{...e,...t,...o})},vl=e=>{if(e==null)return"";if(typeof e=="string"||typeof e=="number"){const o=String(e);return o==="[object Object]"?"":o}return""},Ot=(e,o)=>{console.log(`[FormikOTPInput] ${e}`,o)},Sf=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),vf=e=>{const o=ye(e),t=vl(o.value).slice(0,e.length||6);Ot("render",{name:e.name,type:e.type,formValue:Sf(o.value),displayValue:t,length:e.length||6,hasFormikOnChange:!!o.onChange,hasFormikOnChangeText:!!o.onChangeText});const{isFocused:n,setIsFocused:a,isHovered:i,setIsHovered:c,inputRef:s,containerRef:d,mirrorSelectionStart:g,mirrorSelectionEnd:f,setMirrorSelectionStart:m,setMirrorSelectionEnd:p,setInputRef:u,handleFocus:y,handleBlur:k,handleKeyDown:x,handlePaste:C}=tl(e),w=h.useCallback(S=>{const b=vl(S).slice(0,e.length||6);Ot("setValue",{name:e.name,incomingValue:S,nextValue:b,hasFormikOnChange:!!o.onChange,hasFormikOnChangeText:!!o.onChangeText}),o.onChange&&o.onChange(b),o.onChangeText&&o.onChangeText(b),e.onComplete&&b.length===(e.length||6)&&e.onComplete(b),s.current&&(s.current.value=b)},[o,e,s]),v=h.useCallback(S=>{var F,W,P;const b=typeof S=="string"?S:((F=S==null?void 0:S.currentTarget)==null?void 0:F.value)??((W=S==null?void 0:S.target)==null?void 0:W.value)??((P=S==null?void 0:S.nativeEvent)==null?void 0:P.text)??"",T=String(b).slice(0,e.length||6);Ot("handleChange normalized",{name:e.name,raw:b,newValue:T}),w(T),s.current&&(s.current.value=T)},[e.length,w,s]);return r.jsx(nl,{...e,...o,value:t,setValue:w,isFocused:n,setIsFocused:a,isHovered:i,setIsHovered:c,inputRef:s,containerRef:d,mirrorSelectionStart:g,mirrorSelectionEnd:f,setMirrorSelectionStart:m,setMirrorSelectionEnd:p,setInputRef:u,handleChange:v,handleFocus:y,handleBlur:k,handleKeyDown:x,handlePaste:C,stepValues:e.stepValues})},Tf=e=>Array.isArray(e)?e:e==null?[]:[e],Tl=({name:e,uploadFile:o,onUploadSuccess:t,onUploadError:n,transformResponse:a,onMultipleFileSelect:i,onFileSelect:c,multiple:s=!0,...d})=>{const{setFieldValue:g,setFieldTouched:f,values:m}=De.useFormikContext(),[p,u]=h.useState(!1),[y,k]=h.useState(0),x=h.useCallback(async v=>{if(!v||v.length===0)return;f(e,!0,!0),u(!0);const S=[];for(const b of v){k(0);try{const T=await o(b,W=>{k(W??0)}),F=a?a(T,b):T;S.push(F),t==null||t(b,F)}catch(T){n==null||n(b,T)}}if(S.length>0){const b=Tf(De.getIn(m,e));g(e,[...b,...S],!0),k(100)}else k(0);u(!1)},[e,n,t,f,g,a,o,m]),C=h.useCallback(async v=>{i==null||i(v),await x(v)},[x,i]),w=h.useCallback(async v=>{c==null||c(v),await x([v])},[x,c]);return r.jsx(Sr,{...d,multiple:s,onMultipleFileSelect:s?C:void 0,onFileSelect:s?void 0:w,isLoading:p,progress:y})};Tl.displayName="FormikUploader";const If=e=>{let o=ye(e);o.selected=o.value;const t=za(e);return r.jsx(Ma,{...t,...o})},Il=e=>{const[o,t]=h.useState(!1),[n,a]=h.useState(e);return{isHovered:o,setIsHovered:t,isToggle:n,setIsToggled:a}},Ff={square:0,rounded:8,pill:999},zf=(e,o)=>({outline:{backgroundColor:"color-white",color:e,borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",_hover:{backgroundColor:"color-gray-50",borderColor:"color-gray-300"},_active:{backgroundColor:"color-gray-100"},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{backgroundColor:"color-gray-50"},_active:{backgroundColor:"color-gray-100"},transition:"background-color 0.2s ease, color 0.2s ease"},link:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px",_hover:{opacity:.8},_active:{opacity:.9},transition:"opacity 0.2s ease"}}),Fl=h.memo(({children:e,shape:o="rounded",variant:t="ghost",isHovered:n,setIsHovered:a,isDisabled:i,isToggle:c,setIsToggled:s,onToggle:d,views:g,backgroundColor:f,color:m,themeMode:p,...u})=>{const{getColor:y,themeMode:k}=l.useTheme(),x=p??k,w=y(i?"theme-disabled":f??m??"theme-primary",{themeMode:x}),S=h.useMemo(()=>zf(w),[w,x])[t],b=!!c,T=h.useCallback(()=>a(!0),[a]),F=h.useCallback(()=>{i||s(W=>{const P=!W;return d&&d(P),P})},[i,s,d]);return r.jsx(l.Center,{role:"Toggle",padding:o==="pill"?"8px 12px":"8px",width:"fit-content",cursor:i?"not-allowed":"pointer",borderRadius:Ff[o],onClick:F,onMouseEnter:T,onMouseLeave:()=>a(!1),...S,...b&&{...t==="link"?{backgroundColor:"transparent"}:{backgroundColor:"color-blue-50",borderWidth:1,borderStyle:"solid",borderColor:"color-blue-200"},color:w},...u,...g==null?void 0:g.container,children:e})}),Mf=({children:e,shape:o,variant:t,isDisabled:n,isToggled:a=!1,onToggle:i,...c})=>{const s=ye(c),{isHovered:d,setIsHovered:g,isToggle:f,setIsToggled:m}=Il(s.value??a);h.useEffect(()=>{m(s.value??a)},[s.value,a]);const p=u=>{m(u),s.onChange(u),i==null||i(u)};return r.jsx(Fl,{shape:o,variant:t,isDisabled:n,isHovered:d,setIsHovered:g,isToggle:f,setIsToggled:m,onToggle:p,...c,children:e})},zl=()=>{const[e,o]=h.useState([]);return{activeToggles:e,setActiveToggles:o}},Nt=({children:e,shape:o,variant:t,isDisabled:n,isToggled:a=!1,onToggle:i,...c})=>{const{isHovered:s,setIsHovered:d,isToggle:g,setIsToggled:f}=Il(a);return h.useEffect(()=>{f(a)},[a]),r.jsx(Fl,{shape:o,variant:t,isDisabled:n,isHovered:s,setIsHovered:d,isToggle:g,setIsToggled:f,onToggle:i,...c,children:e})},Ml=({items:e,onToggleChange:o,activeToggles:t,setActiveToggles:n,shape:a="rounded",variant:i="ghost",views:c})=>{const s=h.useCallback((d,g)=>{n(f=>{let m;return g?m=f.includes(d)?f:[...f,d]:m=f.filter(p=>p!==d),o==null||o(m),m})},[o,n]);return r.jsx(l.Horizontal,{role:"ToggleGroup",display:"flex",gap:8,flexWrap:"wrap",...c==null?void 0:c.container,children:e.map(d=>r.jsx(Nt,{role:`toggle-${d.id}`,shape:a,variant:i,isToggled:t.includes(d.id)||d.isActive,onToggle:g=>s(d.id,g),isDisabled:d.isDisabled,views:c==null?void 0:c.toggle,children:d.value},d.id))})},Wf=({items:e,shape:o,variant:t,onToggleChange:n,...a})=>{const i=ye(a),{activeToggles:c,setActiveToggles:s}=zl();h.useEffect(()=>{Array.isArray(i.value)&&s(i.value)},[i.value]);const d=g=>{s(g),i.onChange(g),n==null||n(g)};return r.jsx(Ml,{items:e,shape:o,variant:t,activeToggles:c,setActiveToggles:s,onToggleChange:d,...a})},Wl=["zoom-out","zoom-in","zap","zap-off","youtube","x","wrench","worm","workflow","wine","wine-off","wind","wind-arrow-down","wifi","wifi-zero","wifi-sync","wifi-pen","wifi-off","wifi-low","wifi-high","wifi-cog","whole-word","wheat","wheat-off","weight","weight-tilde","webhook","webhook-off","webcam","waypoints","waves","waves-ladder","waves-arrow-up","waves-arrow-down","watch","washing-machine","warehouse","wand","wand-sparkles","wallpaper","wallet","wallet-minimal","wallet-cards","vote","volume","volume-x","volume-off","volume-2","volume-1","volleyball","voicemail","view","videotape","video","video-off","vibrate","vibrate-off","venus","venus-and-mars","venetian-mask","vegan","vector-square","vault","variable","van","utility-pole","utensils","utensils-crossed","users","users-round","user","user-x","user-star","user-search","user-round","user-round-x","user-round-search","user-round-plus","user-round-pen","user-round-minus","user-round-cog","user-round-check","user-plus","user-pen","user-minus","user-lock","user-cog","user-check","usb","upload","unplug","unlink","unlink-2","university","ungroup","unfold-vertical","unfold-horizontal","undo","undo-dot","undo-2","underline","umbrella","umbrella-off","type","type-outline","twitter","twitch","tv","tv-minimal","tv-minimal-play","turtle","turntable","turkish-lira","truck","truck-electric","trophy","triangle","triangle-right","triangle-dashed","triangle-alert","trending-up","trending-up-down","trending-down","trello","trees","tree-pine","tree-palm","tree-deciduous","trash","trash-2","transgender","tram-front","train-track","train-front","train-front-tunnel","traffic-cone","tractor","toy-brick","tower-control","touchpad","touchpad-off","torus","tornado","toolbox","tool-case","toilet","toggle-right","toggle-left","timer","timer-reset","timer-off","tickets","tickets-plane","ticket","ticket-x","ticket-slash","ticket-plus","ticket-percent","ticket-minus","ticket-check","thumbs-up","thumbs-down","thermometer","thermometer-sun","thermometer-snowflake","theater","text-wrap","text-select","text-search","text-quote","text-initial","text-cursor","text-cursor-input","text-align-start","text-align-justify","text-align-end","text-align-center","test-tubes","test-tube","test-tube-diagonal","terminal","tent","tent-tree","telescope","target","tangent","tally-5","tally-4","tally-3","tally-2","tally-1","tags","tag","tablets","tablet","tablet-smartphone","table","table-rows-split","table-properties","table-of-contents","table-columns-split","table-cells-split","table-cells-merge","table-2","syringe","swords","sword","switch-camera","swiss-franc","swatch-book","superscript","sunset","sunrise","sun","sun-snow","sun-moon","sun-medium","sun-dim","subscript","strikethrough","stretch-vertical","stretch-horizontal","store","stone","sticky-note","sticker","stethoscope","step-forward","step-back","star","star-off","star-half","stamp","squirrel","squircle","squircle-dashed","squares-unite","squares-subtract","squares-intersect","squares-exclude","square","square-x","square-user","square-user-round","square-terminal","square-stop","square-star","square-stack","square-square","square-split-vertical","square-split-horizontal","square-slash","square-sigma","square-scissors","square-round-corner","square-radical","square-power","square-plus","square-play","square-pilcrow","square-pi","square-percent","square-pen","square-pause","square-parking","square-parking-off","square-mouse-pointer","square-minus","square-menu","square-m","square-library","square-kanban","square-function","square-equal","square-dot","square-divide","square-dashed","square-dashed-top-solid","square-dashed-mouse-pointer","square-dashed-kanban","square-dashed-bottom","square-dashed-bottom-code","square-code","square-chevron-up","square-chevron-right","square-chevron-left","square-chevron-down","square-check","square-check-big","square-chart-gantt","square-bottom-dashed-scissors","square-asterisk","square-arrow-up","square-arrow-up-right","square-arrow-up-left","square-arrow-right","square-arrow-out-up-right","square-arrow-out-up-left","square-arrow-out-down-right","square-arrow-out-down-left","square-arrow-left","square-arrow-down","square-arrow-down-right","square-arrow-down-left","square-activity","sprout","spray-can","spotlight","spool","split","spline","spline-pointer","spell-check","spell-check-2","speech","speaker","sparkles","sparkle","spade","space","soup","solar-panel","sofa","soap-dispenser-droplet","snowflake","snail","smile","smile-plus","smartphone","smartphone-nfc","smartphone-charging","sliders-vertical","sliders-horizontal","slice","slash","slack","skull","skip-forward","skip-back","siren","signpost","signpost-big","signature","signal","signal-zero","signal-medium","signal-low","signal-high","sigma","shuffle","shrub","shrink","shrimp","shredder","shower-head","shovel","shopping-cart","shopping-basket","shopping-bag","shirt","ship","ship-wheel","shield","shield-x","shield-user","shield-question-mark","shield-plus","shield-off","shield-minus","shield-half","shield-ellipsis","shield-check","shield-ban","shield-alert","shell","sheet","share","share-2","shapes","settings","settings-2","server","server-off","server-crash","server-cog","separator-vertical","separator-horizontal","send","send-to-back","send-horizontal","section","search","search-x","search-slash","search-code","search-check","search-alert","scroll","scroll-text","screen-share","screen-share-off","scooter","scissors","scissors-line-dashed","school","scan","scan-text","scan-search","scan-qr-code","scan-line","scan-heart","scan-face","scan-eye","scan-barcode","scaling","scale","scale-3d","save","save-off","save-all","saudi-riyal","satellite","satellite-dish","sandwich","salad","sailboat","russian-ruble","ruler","ruler-dimension-line","rss","rows-4","rows-3","rows-2","router","route","route-off","rotate-cw","rotate-cw-square","rotate-ccw","rotate-ccw-square","rotate-ccw-key","rotate-3d","rose","roller-coaster","rocking-chair","rocket","ribbon","rewind","reply","reply-all","replace","replace-all","repeat","repeat-2","repeat-1","remove-formatting","regex","refrigerator","refresh-cw","refresh-cw-off","refresh-ccw","refresh-ccw-dot","redo","redo-dot","redo-2","recycle","rectangle-vertical","rectangle-horizontal","rectangle-goggles","rectangle-ellipsis","rectangle-circle","receipt","receipt-turkish-lira","receipt-text","receipt-swiss-franc","receipt-russian-ruble","receipt-pound-sterling","receipt-japanese-yen","receipt-indian-rupee","receipt-euro","receipt-cent","ratio","rat","rainbow","rail-symbol","radius","radio","radio-tower","radio-receiver","radical","radiation","radar","rabbit","quote","qr-code","pyramid","puzzle","proportions","projector","printer","printer-check","presentation","power","power-off","pound-sterling","popsicle","popcorn","pointer","pointer-off","podcast","pocket","pocket-knife","plus","plug","plug-zap","plug-2","play","plane","plane-takeoff","plane-landing","pizza","pipette","pin","pin-off","pill","pill-bottle","pilcrow","pilcrow-right","pilcrow-left","piggy-bank","picture-in-picture","picture-in-picture-2","pickaxe","piano","pi","phone","phone-outgoing","phone-off","phone-missed","phone-incoming","phone-forwarded","phone-call","philippine-peso","person-standing","percent","pentagon","pencil","pencil-ruler","pencil-off","pencil-line","pen","pen-tool","pen-off","pen-line","pc-case","paw-print","pause","party-popper","parking-meter","parentheses","paperclip","panels-top-left","panels-right-bottom","panels-left-bottom","panel-top","panel-top-open","panel-top-dashed","panel-top-close","panel-top-bottom-dashed","panel-right","panel-right-open","panel-right-dashed","panel-right-close","panel-left","panel-left-right-dashed","panel-left-open","panel-left-dashed","panel-left-close","panel-bottom","panel-bottom-open","panel-bottom-dashed","panel-bottom-close","panda","palette","paintbrush","paintbrush-vertical","paint-roller","paint-bucket","package","package-x","package-search","package-plus","package-open","package-minus","package-check","package-2","origami","orbit","option","omega","octagon","octagon-x","octagon-pause","octagon-minus","octagon-alert","nut","nut-off","notepad-text","notepad-text-dashed","notebook","notebook-text","notebook-tabs","notebook-pen","non-binary","nfc","newspaper","network","navigation","navigation-off","navigation-2","navigation-2-off","music","music-4","music-3","music-2","move","move-vertical","move-up","move-up-right","move-up-left","move-right","move-left","move-horizontal","move-down","move-down-right","move-down-left","move-diagonal","move-diagonal-2","move-3d","mouse","mouse-pointer","mouse-pointer-click","mouse-pointer-ban","mouse-pointer-2","mouse-pointer-2-off","mouse-off","mountain","mountain-snow","motorbike","moon","moon-star","monitor","monitor-x","monitor-up","monitor-stop","monitor-speaker","monitor-smartphone","monitor-play","monitor-pause","monitor-off","monitor-down","monitor-dot","monitor-cog","monitor-cloud","monitor-check","minus","minimize","minimize-2","milk","milk-off","milestone","microwave","microscope","microchip","mic","mic-vocal","mic-off","messages-square","message-square","message-square-x","message-square-warning","message-square-text","message-square-share","message-square-reply","message-square-quote","message-square-plus","message-square-off","message-square-more","message-square-lock","message-square-heart","message-square-dot","message-square-diff","message-square-dashed","message-square-code","message-circle","message-circle-x","message-circle-warning","message-circle-reply","message-circle-question-mark","message-circle-plus","message-circle-off","message-circle-more","message-circle-heart","message-circle-dashed","message-circle-code","merge","menu","memory-stick","meh","megaphone","megaphone-off","medal","maximize","maximize-2","martini","mars","mars-stroke","map","map-plus","map-pinned","map-pin","map-pin-x","map-pin-x-inside","map-pin-plus","map-pin-plus-inside","map-pin-pen","map-pin-off","map-pin-minus","map-pin-minus-inside","map-pin-house","map-pin-check","map-pin-check-inside","map-minus","mails","mailbox","mail","mail-x","mail-warning","mail-search","mail-question-mark","mail-plus","mail-open","mail-minus","mail-check","magnet","luggage","lollipop","logs","log-out","log-in","lock","lock-open","lock-keyhole","lock-keyhole-open","locate","locate-off","locate-fixed","loader","loader-pinwheel","loader-circle","list","list-x","list-video","list-tree","list-todo","list-start","list-restart","list-plus","list-ordered","list-music","list-minus","list-indent-increase","list-indent-decrease","list-filter","list-filter-plus","list-end","list-collapse","list-chevrons-up-down","list-chevrons-down-up","list-checks","list-check","linkedin","link","link-2","link-2-off","line-squiggle","lightbulb","lightbulb-off","ligature","life-buoy","library","library-big","lectern","leafy-green","leaf","layout-template","layout-panel-top","layout-panel-left","layout-list","layout-grid","layout-dashboard","layers","layers-plus","layers-2","laugh","lasso","lasso-select","laptop","laptop-minimal","laptop-minimal-check","languages","landmark","land-plot","lamp","lamp-wall-up","lamp-wall-down","lamp-floor","lamp-desk","lamp-ceiling","keyboard","keyboard-off","keyboard-music","key","key-square","key-round","kayak","kanban","joystick","japanese-yen","iteration-cw","iteration-ccw","italic","instagram","inspection-panel","info","infinity","indian-rupee","inbox","import","images","image","image-upscale","image-up","image-plus","image-play","image-off","image-minus","image-down","id-card","id-card-lanyard","ice-cream-cone","ice-cream-bowl","house","house-wifi","house-plus","house-plug","house-heart","hourglass","hotel","hospital","hop","hop-off","history","highlighter","hexagon","helicopter","heater","heart","heart-pulse","heart-plus","heart-off","heart-minus","heart-handshake","heart-crack","headset","headphones","headphone-off","heading","heading-6","heading-5","heading-4","heading-3","heading-2","heading-1","hdmi-port","hd","haze","hat-glasses","hash","hard-hat","hard-drive","hard-drive-upload","hard-drive-download","handshake","handbag","hand","hand-platter","hand-metal","hand-helping","hand-heart","hand-grab","hand-fist","hand-coins","hammer","hamburger","ham","guitar","group","grip","grip-vertical","grip-horizontal","grid-3x3","grid-3x2","grid-2x2","grid-2x2-x","grid-2x2-plus","grid-2x2-check","grape","graduation-cap","gpu","goal","globe","globe-lock","glasses","glass-water","gitlab","github","git-pull-request","git-pull-request-draft","git-pull-request-create","git-pull-request-create-arrow","git-pull-request-closed","git-pull-request-arrow","git-merge","git-graph","git-fork","git-compare","git-compare-arrows","git-commit-vertical","git-commit-horizontal","git-branch","git-branch-plus","git-branch-minus","gift","ghost","georgian-lari","gem","gavel","gauge","gamepad","gamepad-directional","gamepad-2","gallery-vertical","gallery-vertical-end","gallery-thumbnails","gallery-horizontal","gallery-horizontal-end","funnel","funnel-x","funnel-plus","fullscreen","fuel","frown","framer","frame","forward","form","forklift","footprints","folders","folder","folder-x","folder-up","folder-tree","folder-sync","folder-symlink","folder-search","folder-search-2","folder-root","folder-plus","folder-pen","folder-output","folder-open","folder-open-dot","folder-minus","folder-lock","folder-key","folder-kanban","folder-input","folder-heart","folder-git","folder-git-2","folder-down","folder-dot","folder-cog","folder-code","folder-closed","folder-clock","folder-check","folder-archive","fold-vertical","fold-horizontal","focus","flower","flower-2","flip-vertical","flip-vertical-2","flip-horizontal","flip-horizontal-2","flask-round","flask-conical","flask-conical-off","flashlight","flashlight-off","flame","flame-kindling","flag","flag-triangle-right","flag-triangle-left","flag-off","fishing-hook","fish","fish-symbol","fish-off","fire-extinguisher","fingerprint-pattern","film","files","file","file-x","file-x-corner","file-volume","file-video-camera","file-user","file-up","file-type","file-type-corner","file-text","file-terminal","file-symlink","file-stack","file-spreadsheet","file-sliders","file-signal","file-search","file-search-corner","file-scan","file-question-mark","file-plus","file-plus-corner","file-play","file-pen","file-pen-line","file-output","file-music","file-minus","file-minus-corner","file-lock","file-key","file-input","file-image","file-heart","file-headphone","file-exclamation-point","file-down","file-digit","file-diff","file-cog","file-code","file-code-corner","file-clock","file-check","file-check-corner","file-chart-pie","file-chart-line","file-chart-column","file-chart-column-increasing","file-braces","file-braces-corner","file-box","file-badge","file-axis-3d","file-archive","figma","ferris-wheel","fence","feather","fast-forward","fan","factory","facebook","eye","eye-off","eye-closed","external-link","expand","ev-charger","euro","ethernet-port","eraser","equal","equal-not","equal-approximately","ellipsis","ellipsis-vertical","egg","egg-off","egg-fried","eclipse","earth","earth-lock","ear","ear-off","dumbbell","drumstick","drum","droplets","droplet","droplet-off","drone","drill","dribbble","drama","drafting-compass","download","dot","door-open","door-closed","door-closed-locked","donut","dollar-sign","dog","dock","dna","dna-off","divide","disc","disc-album","disc-3","disc-2","diff","dices","dice-6","dice-5","dice-4","dice-3","dice-2","dice-1","diamond","diamond-plus","diamond-percent","diamond-minus","diameter","dessert","delete","decimals-arrow-right","decimals-arrow-left","database","database-zap","database-backup","dam","cylinder","currency","cup-soda","cuboid","crown","crosshair","cross","crop","croissant","credit-card","creative-commons","cpu","corner-up-right","corner-up-left","corner-right-up","corner-right-down","corner-left-up","corner-left-down","corner-down-right","corner-down-left","copyright","copyleft","copy","copy-x","copy-slash","copy-plus","copy-minus","copy-check","cooking-pot","cookie","contrast","container","contact","contact-round","construction","cone","concierge-bell","computer","component","compass","command","combine","columns-4","columns-3","columns-3-cog","columns-2","coins","cog","coffee","codesandbox","codepen","code","code-xml","club","clover","cloudy","cloud","cloud-upload","cloud-sync","cloud-sun","cloud-sun-rain","cloud-snow","cloud-rain","cloud-rain-wind","cloud-off","cloud-moon","cloud-moon-rain","cloud-lightning","cloud-hail","cloud-fog","cloud-drizzle","cloud-download","cloud-cog","cloud-check","cloud-backup","cloud-alert","closed-caption","clock","clock-plus","clock-fading","clock-check","clock-arrow-up","clock-arrow-down","clock-alert","clock-9","clock-8","clock-7","clock-6","clock-5","clock-4","clock-3","clock-2","clock-12","clock-11","clock-10","clock-1","clipboard","clipboard-x","clipboard-type","clipboard-plus","clipboard-pen","clipboard-pen-line","clipboard-paste","clipboard-minus","clipboard-list","clipboard-copy","clipboard-clock","clipboard-check","clapperboard","citrus","circuit-board","circle","circle-x","circle-user","circle-user-round","circle-stop","circle-star","circle-small","circle-slash","circle-slash-2","circle-question-mark","circle-power","circle-pound-sterling","circle-plus","circle-play","circle-pile","circle-percent","circle-pause","circle-parking","circle-parking-off","circle-off","circle-minus","circle-gauge","circle-fading-plus","circle-fading-arrow-up","circle-equal","circle-ellipsis","circle-dot","circle-dot-dashed","circle-dollar-sign","circle-divide","circle-dashed","circle-chevron-up","circle-chevron-right","circle-chevron-left","circle-chevron-down","circle-check","circle-check-big","circle-arrow-up","circle-arrow-right","circle-arrow-out-up-right","circle-arrow-out-up-left","circle-arrow-out-down-right","circle-arrow-out-down-left","circle-arrow-left","circle-arrow-down","circle-alert","cigarette","cigarette-off","church","chromium","chevrons-up","chevrons-up-down","chevrons-right","chevrons-right-left","chevrons-left","chevrons-left-right","chevrons-left-right-ellipsis","chevrons-down","chevrons-down-up","chevron-up","chevron-right","chevron-left","chevron-last","chevron-first","chevron-down","chess-rook","chess-queen","chess-pawn","chess-knight","chess-king","chess-bishop","cherry","chef-hat","check","check-line","check-check","chart-spline","chart-scatter","chart-pie","chart-no-axes-gantt","chart-no-axes-combined","chart-no-axes-column","chart-no-axes-column-increasing","chart-no-axes-column-decreasing","chart-network","chart-line","chart-gantt","chart-column","chart-column-stacked","chart-column-increasing","chart-column-decreasing","chart-column-big","chart-candlestick","chart-bar","chart-bar-stacked","chart-bar-increasing","chart-bar-decreasing","chart-bar-big","chart-area","cctv","cat","castle","cast","cassette-tape","case-upper","case-sensitive","case-lower","carrot","card-sim","caravan","car","car-taxi-front","car-front","captions","captions-off","cannabis","cannabis-off","candy","candy-off","candy-cane","camera","camera-off","calendars","calendar","calendar-x","calendar-x-2","calendar-sync","calendar-search","calendar-range","calendar-plus","calendar-plus-2","calendar-off","calendar-minus","calendar-minus-2","calendar-heart","calendar-fold","calendar-days","calendar-cog","calendar-clock","calendar-check","calendar-check-2","calendar-arrow-up","calendar-arrow-down","calendar-1","calculator","cake","cake-slice","cable","cable-car","bus","bus-front","building","building-2","bug","bug-play","bug-off","bubbles","brush","brush-cleaning","bring-to-front","briefcase","briefcase-medical","briefcase-conveyor-belt","briefcase-business","brick-wall","brick-wall-shield","brick-wall-fire","brain","brain-cog","brain-circuit","brackets","braces","boxes","box","bow-arrow","bottle-wine","bot","bot-off","bot-message-square","boom-box","bookmark","bookmark-x","bookmark-plus","bookmark-minus","bookmark-check","book","book-x","book-user","book-up","book-up-2","book-type","book-text","book-search","book-plus","book-open","book-open-text","book-open-check","book-minus","book-marked","book-lock","book-key","book-image","book-heart","book-headphones","book-down","book-dashed","book-copy","book-check","book-audio","book-alert","book-a","bone","bomb","bolt","bold","bluetooth","bluetooth-searching","bluetooth-off","bluetooth-connected","blocks","blinds","blend","bitcoin","birdhouse","bird","biohazard","binoculars","binary","bike","biceps-flexed","between-vertical-start","between-vertical-end","between-horizontal-start","between-horizontal-end","bell","bell-ring","bell-plus","bell-off","bell-minus","bell-electric","bell-dot","beer","beer-off","beef","bed","bed-single","bed-double","bean","bean-off","beaker","battery","battery-warning","battery-plus","battery-medium","battery-low","battery-full","battery-charging","bath","baseline","barrel","barcode","banknote","banknote-x","banknote-arrow-up","banknote-arrow-down","bandage","banana","ban","balloon","baggage-claim","badge","badge-x","badge-turkish-lira","badge-swiss-franc","badge-russian-ruble","badge-question-mark","badge-pound-sterling","badge-plus","badge-percent","badge-minus","badge-japanese-yen","badge-info","badge-indian-rupee","badge-euro","badge-dollar-sign","badge-check","badge-cent","badge-alert","backpack","baby","axis-3d","axe","award","audio-waveform","audio-lines","atom","at-sign","asterisk","arrows-up-from-line","arrow-up","arrow-up-z-a","arrow-up-wide-narrow","arrow-up-to-line","arrow-up-right","arrow-up-narrow-wide","arrow-up-left","arrow-up-from-line","arrow-up-from-dot","arrow-up-down","arrow-up-a-z","arrow-up-1-0","arrow-up-0-1","arrow-right","arrow-right-to-line","arrow-right-left","arrow-right-from-line","arrow-left","arrow-left-to-line","arrow-left-right","arrow-left-from-line","arrow-down","arrow-down-z-a","arrow-down-wide-narrow","arrow-down-up","arrow-down-to-line","arrow-down-to-dot","arrow-down-right","arrow-down-narrow-wide","arrow-down-left","arrow-down-from-line","arrow-down-a-z","arrow-down-1-0","arrow-down-0-1","arrow-big-up","arrow-big-up-dash","arrow-big-right","arrow-big-right-dash","arrow-big-left","arrow-big-left-dash","arrow-big-down","arrow-big-down-dash","armchair","archive","archive-x","archive-restore","apple","app-window","app-window-mac","aperture","anvil","antenna","annoyed","angry","anchor","amphora","ampersands","ampersand","ambulance","align-vertical-space-between","align-vertical-space-around","align-vertical-justify-start","align-vertical-justify-end","align-vertical-justify-center","align-vertical-distribute-start","align-vertical-distribute-end","align-vertical-distribute-center","align-start-vertical","align-start-horizontal","align-horizontal-space-between","align-horizontal-space-around","align-horizontal-justify-start","align-horizontal-justify-end","align-horizontal-justify-center","align-horizontal-distribute-start","align-horizontal-distribute-end","align-horizontal-distribute-center","align-end-vertical","align-end-horizontal","align-center-vertical","align-center-horizontal","album","alarm-smoke","alarm-clock","alarm-clock-plus","alarm-clock-off","alarm-clock-minus","alarm-clock-check","airplay","air-vent","activity","accessibility","a-large-small","a-arrow-up","a-arrow-down"],Hl=e=>{const{value:o,defaultValue:t,onChange:n,isOpen:a,onOpen:i,onClose:c,closeOnSelect:s=!0}=e,[d,g]=h.useState(a??!1),[f,m]=h.useState(o??t),[p,u]=h.useState(""),y=h.useRef(null),k=h.useRef(null);h.useEffect(()=>{o!==void 0&&m(o)},[o]),h.useEffect(()=>{a!==void 0&&g(a)},[a]);const x=h.useMemo(()=>p?Wl.filter(b=>b.toLowerCase().includes(p.toLowerCase())).slice(0,100):Wl.slice(0,100),[p]);h.useEffect(()=>{const b=T=>{d&&y.current&&k.current&&!y.current.contains(T.target)&&!k.current.contains(T.target)&&C()};if(typeof(document==null?void 0:document.addEventListener)=="function")return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[d]);const C=h.useCallback(()=>{a===void 0&&g(!1),c&&c()},[c,a]),w=h.useCallback(()=>{const b=!d;a===void 0&&g(b),b?(i&&i(),u("")):c&&c()},[d,i,c,a]),v=h.useCallback(b=>{o===void 0&&m(b),n&&n(b),s&&C()},[n,s,C,o]),S=h.useCallback(b=>{u(b)},[]);return{isOpen:d,selectedIcon:f,searchQuery:p,filteredIcons:x,handleToggle:w,handleIconSelect:v,handleSearchChange:S,handleClose:C,triggerRef:y,dropdownRef:k}},Ho={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out"},dropdown:{position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"280px",maxHeight:"320px",overflow:"hidden",display:"flex",flexDirection:"column"},searchInput:{marginBottom:"12px",flexShrink:0},iconGrid:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"8px",overflowY:"auto",padding:"4px",color:"color-black",flexGrow:1},iconItem:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:8,transition:"all 0.2s ease-in-out"}},Hf={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"14px",padding:"10px 14px"},xl:{height:"56px",fontSize:"16px",padding:"12px 16px"}},jf={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Pf={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},jl=({label:e,placeholder:o="Select an icon",helperText:t,views:n={},size:a="md",shape:i="default",variant:c="default",error:s=!1,isDisabled:d=!1,isReadOnly:g=!1,showSearch:f=!0,isOpen:m,selectedIcon:p,searchQuery:u,filteredIcons:y,handleToggle:k,handleIconSelect:x,handleSearchChange:C,triggerRef:w,dropdownRef:v,handleClose:S,onChange:b,value:T,defaultValue:F,onOpen:W,onClose:P,closeOnSelect:$,...z})=>{const{getColor:E}=l.useTheme(),V={...Ho.container,...n==null?void 0:n.container},M={...Ho.trigger,...Hf[a],...jf[i],...Pf[c],...s&&{borderColor:"color-red-500"},...d&&{opacity:.6,cursor:"not-allowed"},...!d&&!g&&{_hover:{borderColor:"color-gray-300"}},...n==null?void 0:n.trigger},A={...Ho.dropdown,...n==null?void 0:n.dropdown},H={...Ho.iconGrid,...n==null?void 0:n.iconGrid};return r.jsxs(l.View,{...V,...z,children:[e&&r.jsx(l.Text,{fontSize:a==="xs"?"12px":a==="sm"?"14px":"16px",fontWeight:"500",color:"color-gray-700",marginBottom:"4px",...n==null?void 0:n.label,children:e}),r.jsxs(l.View,{ref:w,onClick:d||g?void 0:k,...M,children:[r.jsx(l.Horizontal,{alignItems:"center",gap:8,width:"100%",children:p?r.jsxs(l.Horizontal,{alignItems:"center",gap:8,width:"100%",children:[r.jsx(yr,{name:p,widthHeight:16}),r.jsx(l.Text,{color:"color-gray-800",fontSize:"inherit",style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p})]}):r.jsx(l.Text,{color:"color-gray-500",fontSize:"inherit",children:o})}),!g&&!d&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:m?"up":"down"})]}),m&&r.jsxs(l.View,{ref:v,...A,children:[f&&r.jsx(l.View,{...Ho.searchInput,...n==null?void 0:n.searchInput,children:r.jsx(We,{placeholder:"Search icons...",value:u,onChange:j=>C(j),size:"sm",autoFocus:!0})}),r.jsx(l.View,{...H,children:y.length>0?y.map(j=>r.jsx(l.View,{...Ho.iconItem,onClick:()=>x(j),title:j,_hover:{backgroundColor:"color-gray-50",transform:"scale(1.05)"},backgroundColor:p===j?"#EFF6FF":"transparent",borderWidth:p===j?"1px":"0px",borderStyle:"solid",borderColor:p===j?"#BFDBFE":"transparent",...n==null?void 0:n.iconItem,children:r.jsx(yr,{name:j,widthHeight:20})},j)):r.jsx(l.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color-gray-500",children:r.jsx(l.Text,{fontSize:"14px",children:"No icons found"})})})]}),t&&r.jsx(l.Text,{color:s?"color-red-500":"color-gray-600",marginTop:"4px",...n==null?void 0:n.helperText,children:t})]})},Af=e=>{const o=ye(e),t={...e,value:o.value??e.value??e.defaultValue},n=Hl(t),a=i=>{n.handleIconSelect(i),o.onChange(i)};return r.jsx(jl,{...n,...t,handleIconSelect:a})},ro={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out"},dropdown:{position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"320px",maxHeight:"400px",overflow:"hidden"},searchInput:{marginBottom:"12px"},categoryTabs:{display:"flex",flexDirection:"row",flexWrap:"wrap",borderBottom:"1px solid color-gray-100",marginBottom:"12px",overflowX:"auto"},categoryTab:{padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid transparent",transition:"all 0.2s ease-in-out",fontSize:"14px",fontWeight:"500",color:"color-gray-600",whiteSpace:"nowrap",borderRadius:"8px 8px 0 0"},emojiGrid:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"4px",maxHeight:"240px",overflowY:"auto",padding:"4px",color:"color-black"},emoji:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:6,fontSize:"20px",transition:"all 0.2s ease-in-out"}},Vf={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"14px",padding:"10px 14px"},xl:{height:"56px",fontSize:"16px",padding:"12px 16px"}},Ef={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Df={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},$f={recent:"🕒",smileys:"😀",people:"👤",animals:"🐶",food:"🍎",activities:"⚽",travel:"🚗",objects:"💡",symbols:"❤️",flags:"🏁"},Lf=[{emoji:"😀",name:"grinning face",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😃",name:"grinning face with big eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😄",name:"grinning face with smiling eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😁",name:"beaming face with smiling eyes",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😆",name:"grinning squinting face",category:"smileys",keywords:["happy","laugh","smile"]},{emoji:"😅",name:"grinning face with sweat",category:"smileys",keywords:["happy","sweat","relief"]},{emoji:"🤣",name:"rolling on the floor laughing",category:"smileys",keywords:["laugh","funny","rofl"]},{emoji:"😂",name:"face with tears of joy",category:"smileys",keywords:["laugh","cry","joy"]},{emoji:"🙂",name:"slightly smiling face",category:"smileys",keywords:["smile","happy"]},{emoji:"🙃",name:"upside-down face",category:"smileys",keywords:["silly","upside down"]},{emoji:"😉",name:"winking face",category:"smileys",keywords:["wink","flirt"]},{emoji:"😊",name:"smiling face with smiling eyes",category:"smileys",keywords:["happy","smile","blush"]},{emoji:"😇",name:"smiling face with halo",category:"smileys",keywords:["angel","innocent"]},{emoji:"🥰",name:"smiling face with hearts",category:"smileys",keywords:["love","hearts","adore"]},{emoji:"😍",name:"smiling face with heart-eyes",category:"smileys",keywords:["love","heart","eyes"]},{emoji:"🤩",name:"star-struck",category:"smileys",keywords:["star","struck","amazed"]},{emoji:"😘",name:"face blowing a kiss",category:"smileys",keywords:["kiss","love","flirt"]},{emoji:"😗",name:"kissing face",category:"smileys",keywords:["kiss","love"]},{emoji:"☺️",name:"smiling face",category:"smileys",keywords:["smile","happy","content"]},{emoji:"😚",name:"kissing face with closed eyes",category:"smileys",keywords:["kiss","love","closed eyes"]},{emoji:"😙",name:"kissing face with smiling eyes",category:"smileys",keywords:["kiss","love","smile"]},{emoji:"🥲",name:"smiling face with tear",category:"smileys",keywords:["happy","cry","tear","bittersweet"]},{emoji:"😋",name:"face savoring food",category:"smileys",keywords:["yum","delicious","food"]},{emoji:"😛",name:"face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"😜",name:"winking face with tongue",category:"smileys",keywords:["wink","tongue","silly"]},{emoji:"🤪",name:"zany face",category:"smileys",keywords:["crazy","silly","wild"]},{emoji:"😝",name:"squinting face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"🤑",name:"money-mouth face",category:"smileys",keywords:["money","rich","greedy"]},{emoji:"🤗",name:"hugging face",category:"smileys",keywords:["hug","love","care"]},{emoji:"🤭",name:"face with hand over mouth",category:"smileys",keywords:["oops","secret","quiet"]},{emoji:"🫢",name:"face with open eyes and hand over mouth",category:"smileys",keywords:["surprise","shock","oops"]},{emoji:"🫣",name:"face with peeking eye",category:"smileys",keywords:["peek","shy","embarrassed"]},{emoji:"🤫",name:"shushing face",category:"smileys",keywords:["quiet","secret","shh"]},{emoji:"🤔",name:"thinking face",category:"smileys",keywords:["think","consider","hmm"]},{emoji:"🫡",name:"saluting face",category:"smileys",keywords:["salute","respect","military"]},{emoji:"🤐",name:"zipper-mouth face",category:"smileys",keywords:["quiet","secret","zip"]},{emoji:"🤨",name:"face with raised eyebrow",category:"smileys",keywords:["suspicious","doubt","skeptical"]},{emoji:"😐",name:"neutral face",category:"smileys",keywords:["neutral","meh","blank"]},{emoji:"😑",name:"expressionless face",category:"smileys",keywords:["blank","deadpan","meh"]},{emoji:"😶",name:"face without mouth",category:"smileys",keywords:["quiet","speechless","silent"]},{emoji:"🫥",name:"dotted line face",category:"smileys",keywords:["invisible","depressed","disappear"]},{emoji:"😏",name:"smirking face",category:"smileys",keywords:["smirk","smug","confident"]},{emoji:"😒",name:"unamused face",category:"smileys",keywords:["unamused","bored","annoyed"]},{emoji:"🙄",name:"face with rolling eyes",category:"smileys",keywords:["eye roll","annoyed","whatever"]},{emoji:"😬",name:"grimacing face",category:"smileys",keywords:["grimace","awkward","oops"]},{emoji:"😮‍💨",name:"face exhaling",category:"smileys",keywords:["sigh","relief","tired"]},{emoji:"🤥",name:"lying face",category:"smileys",keywords:["lie","pinocchio","dishonest"]},{emoji:"😌",name:"relieved face",category:"smileys",keywords:["relief","calm","peaceful"]},{emoji:"😔",name:"pensive face",category:"smileys",keywords:["sad","thoughtful","pensive"]},{emoji:"😪",name:"sleepy face",category:"smileys",keywords:["sleepy","tired","drowsy"]},{emoji:"🤤",name:"drooling face",category:"smileys",keywords:["drool","desire","sleep"]},{emoji:"😴",name:"sleeping face",category:"smileys",keywords:["sleep","tired","zzz"]},{emoji:"😷",name:"face with medical mask",category:"smileys",keywords:["mask","sick","doctor"]},{emoji:"🤒",name:"face with thermometer",category:"smileys",keywords:["sick","fever","ill"]},{emoji:"🤕",name:"face with head-bandage",category:"smileys",keywords:["hurt","injured","bandage"]},{emoji:"🤢",name:"nauseated face",category:"smileys",keywords:["sick","nausea","disgusted"]},{emoji:"🤮",name:"face vomiting",category:"smileys",keywords:["vomit","sick","disgusted"]},{emoji:"🤧",name:"sneezing face",category:"smileys",keywords:["sneeze","sick","gesundheit"]},{emoji:"🥵",name:"hot face",category:"smileys",keywords:["hot","heat","sweat"]},{emoji:"🥶",name:"cold face",category:"smileys",keywords:["cold","freeze","blue"]},{emoji:"🥴",name:"woozy face",category:"smileys",keywords:["dizzy","drunk","confused"]},{emoji:"😵",name:"dizzy face",category:"smileys",keywords:["dizzy","confused","knocked out"]},{emoji:"😵‍💫",name:"face with spiral eyes",category:"smileys",keywords:["dizzy","hypnotized","confused"]},{emoji:"🤯",name:"exploding head",category:"smileys",keywords:["mind blown","shocked","amazed"]},{emoji:"🤠",name:"cowboy hat face",category:"smileys",keywords:["cowboy","hat","western"]},{emoji:"🥳",name:"partying face",category:"smileys",keywords:["party","celebration","birthday"]},{emoji:"🥸",name:"disguised face",category:"smileys",keywords:["disguise","glasses","incognito"]},{emoji:"😎",name:"smiling face with sunglasses",category:"smileys",keywords:["cool","sunglasses","awesome"]},{emoji:"🤓",name:"nerd face",category:"smileys",keywords:["nerd","geek","smart"]},{emoji:"🧐",name:"face with monocle",category:"smileys",keywords:["monocle","fancy","inspection"]},{emoji:"👋",name:"waving hand",category:"people",keywords:["wave","hello","goodbye"]},{emoji:"🤚",name:"raised back of hand",category:"people",keywords:["hand","stop"]},{emoji:"🖐️",name:"hand with fingers splayed",category:"people",keywords:["hand","five"]},{emoji:"✋",name:"raised hand",category:"people",keywords:["hand","stop","high five"]},{emoji:"🖖",name:"vulcan salute",category:"people",keywords:["spock","vulcan"]},{emoji:"👌",name:"OK hand",category:"people",keywords:["ok","perfect"]},{emoji:"🤌",name:"pinched fingers",category:"people",keywords:["italian","chef kiss"]},{emoji:"🤏",name:"pinching hand",category:"people",keywords:["small","tiny"]},{emoji:"✌️",name:"victory hand",category:"people",keywords:["peace","victory"]},{emoji:"🤞",name:"crossed fingers",category:"people",keywords:["luck","hope"]},{emoji:"🤟",name:"love-you gesture",category:"people",keywords:["love","you"]},{emoji:"🤘",name:"sign of the horns",category:"people",keywords:["rock","metal"]},{emoji:"🤙",name:"call me hand",category:"people",keywords:["call","phone"]},{emoji:"👈",name:"backhand index pointing left",category:"people",keywords:["point","left"]},{emoji:"👉",name:"backhand index pointing right",category:"people",keywords:["point","right"]},{emoji:"👆",name:"backhand index pointing up",category:"people",keywords:["point","up"]},{emoji:"🖕",name:"middle finger",category:"people",keywords:["middle finger","rude"]},{emoji:"👇",name:"backhand index pointing down",category:"people",keywords:["point","down"]},{emoji:"☝️",name:"index pointing up",category:"people",keywords:["point","up","one"]},{emoji:"👍",name:"thumbs up",category:"people",keywords:["thumbs up","good","yes"]},{emoji:"👎",name:"thumbs down",category:"people",keywords:["thumbs down","bad","no"]},{emoji:"✊",name:"raised fist",category:"people",keywords:["fist","power","solidarity"]},{emoji:"👊",name:"oncoming fist",category:"people",keywords:["fist","punch","bump"]},{emoji:"🤛",name:"left-facing fist",category:"people",keywords:["fist","bump","left"]},{emoji:"🤜",name:"right-facing fist",category:"people",keywords:["fist","bump","right"]},{emoji:"👏",name:"clapping hands",category:"people",keywords:["clap","applause","bravo"]},{emoji:"🙌",name:"raising hands",category:"people",keywords:["celebration","hooray","praise"]},{emoji:"👐",name:"open hands",category:"people",keywords:["open","hug","jazz hands"]},{emoji:"🤲",name:"palms up together",category:"people",keywords:["prayer","please","hope"]},{emoji:"🤝",name:"handshake",category:"people",keywords:["handshake","deal","agreement"]},{emoji:"🙏",name:"folded hands",category:"people",keywords:["prayer","thanks","please"]},{emoji:"✍️",name:"writing hand",category:"people",keywords:["write","author","signature"]},{emoji:"💅",name:"nail polish",category:"people",keywords:["nails","beauty","manicure"]},{emoji:"🤳",name:"selfie",category:"people",keywords:["selfie","camera","phone"]},{emoji:"💪",name:"flexed biceps",category:"people",keywords:["muscle","strong","flex"]},{emoji:"🦾",name:"mechanical arm",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦿",name:"mechanical leg",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦵",name:"leg",category:"people",keywords:["leg","limb","kick"]},{emoji:"🦶",name:"foot",category:"people",keywords:["foot","kick","stomp"]},{emoji:"👂",name:"ear",category:"people",keywords:["ear","hear","listen"]},{emoji:"🦻",name:"ear with hearing aid",category:"people",keywords:["hearing aid","deaf","accessibility"]},{emoji:"👃",name:"nose",category:"people",keywords:["nose","smell","sniff"]},{emoji:"🧠",name:"brain",category:"people",keywords:["brain","smart","think"]},{emoji:"🫀",name:"anatomical heart",category:"people",keywords:["heart","organ","love"]},{emoji:"🫁",name:"lungs",category:"people",keywords:["lungs","breathe","organ"]},{emoji:"🦷",name:"tooth",category:"people",keywords:["tooth","dental","smile"]},{emoji:"🦴",name:"bone",category:"people",keywords:["bone","skeleton","dog"]},{emoji:"👀",name:"eyes",category:"people",keywords:["eyes","look","see"]},{emoji:"👁️",name:"eye",category:"people",keywords:["eye","see","watch"]},{emoji:"👅",name:"tongue",category:"people",keywords:["tongue","taste","lick"]},{emoji:"👄",name:"mouth",category:"people",keywords:["mouth","lips","kiss"]},{emoji:"🫦",name:"biting lip",category:"people",keywords:["lip","bite","nervous"]},{emoji:"👶",name:"baby",category:"people",keywords:["baby","infant","child"]},{emoji:"🧒",name:"child",category:"people",keywords:["child","kid","young"]},{emoji:"👦",name:"boy",category:"people",keywords:["boy","child","male"]},{emoji:"👧",name:"girl",category:"people",keywords:["girl","child","female"]},{emoji:"🧑",name:"person",category:"people",keywords:["person","adult","human"]},{emoji:"👱",name:"person: blond hair",category:"people",keywords:["blond","hair","person"]},{emoji:"👨",name:"man",category:"people",keywords:["man","male","adult"]},{emoji:"🧔",name:"person: beard",category:"people",keywords:["beard","man","facial hair"]},{emoji:"👩",name:"woman",category:"people",keywords:["woman","female","adult"]},{emoji:"🧓",name:"older person",category:"people",keywords:["old","elderly","senior"]},{emoji:"👴",name:"old man",category:"people",keywords:["old","man","elderly"]},{emoji:"👵",name:"old woman",category:"people",keywords:["old","woman","elderly"]},{emoji:"🐶",name:"dog face",category:"animals",keywords:["dog","pet","animal"]},{emoji:"🐱",name:"cat face",category:"animals",keywords:["cat","pet","animal"]},{emoji:"🐭",name:"mouse face",category:"animals",keywords:["mouse","animal"]},{emoji:"🐹",name:"hamster",category:"animals",keywords:["hamster","pet"]},{emoji:"🐰",name:"rabbit face",category:"animals",keywords:["rabbit","bunny"]},{emoji:"🦊",name:"fox",category:"animals",keywords:["fox","animal"]},{emoji:"🐻",name:"bear",category:"animals",keywords:["bear","animal"]},{emoji:"🐼",name:"panda",category:"animals",keywords:["panda","bear"]},{emoji:"🐨",name:"koala",category:"animals",keywords:["koala","australia","marsupial"]},{emoji:"🐯",name:"tiger face",category:"animals",keywords:["tiger","cat","wild"]},{emoji:"🦁",name:"lion",category:"animals",keywords:["lion","king","cat"]},{emoji:"🐮",name:"cow face",category:"animals",keywords:["cow","moo","farm"]},{emoji:"🐷",name:"pig face",category:"animals",keywords:["pig","oink","farm"]},{emoji:"🐽",name:"pig nose",category:"animals",keywords:["pig","nose","snout"]},{emoji:"🐸",name:"frog",category:"animals",keywords:["frog","amphibian","green"]},{emoji:"🐵",name:"monkey face",category:"animals",keywords:["monkey","primate","banana"]},{emoji:"🙈",name:"see-no-evil monkey",category:"animals",keywords:["monkey","see no evil","eyes"]},{emoji:"🙉",name:"hear-no-evil monkey",category:"animals",keywords:["monkey","hear no evil","ears"]},{emoji:"🙊",name:"speak-no-evil monkey",category:"animals",keywords:["monkey","speak no evil","mouth"]},{emoji:"🐒",name:"monkey",category:"animals",keywords:["monkey","primate","zoo"]},{emoji:"🦍",name:"gorilla",category:"animals",keywords:["gorilla","ape","strong"]},{emoji:"🦧",name:"orangutan",category:"animals",keywords:["orangutan","ape","orange"]},{emoji:"🐺",name:"wolf",category:"animals",keywords:["wolf","howl","wild"]},{emoji:"🐗",name:"boar",category:"animals",keywords:["boar","pig","wild"]},{emoji:"🐴",name:"horse face",category:"animals",keywords:["horse","neigh","ride"]},{emoji:"🐎",name:"horse",category:"animals",keywords:["horse","racing","gallop"]},{emoji:"🦄",name:"unicorn",category:"animals",keywords:["unicorn","magical","horn"]},{emoji:"🦓",name:"zebra",category:"animals",keywords:["zebra","stripes","africa"]},{emoji:"🦌",name:"deer",category:"animals",keywords:["deer","antlers","forest"]},{emoji:"🦏",name:"rhinoceros",category:"animals",keywords:["rhino","horn","africa"]},{emoji:"🦛",name:"hippopotamus",category:"animals",keywords:["hippo","water","africa"]},{emoji:"🐘",name:"elephant",category:"animals",keywords:["elephant","trunk","memory"]},{emoji:"🦒",name:"giraffe",category:"animals",keywords:["giraffe","tall","neck"]},{emoji:"🦘",name:"kangaroo",category:"animals",keywords:["kangaroo","hop","australia"]},{emoji:"🦥",name:"sloth",category:"animals",keywords:["sloth","slow","lazy"]},{emoji:"🦦",name:"otter",category:"animals",keywords:["otter","water","cute"]},{emoji:"🦨",name:"skunk",category:"animals",keywords:["skunk","smell","stripe"]},{emoji:"🦡",name:"badger",category:"animals",keywords:["badger","honey","dig"]},{emoji:"🐾",name:"paw prints",category:"animals",keywords:["paw","prints","tracks"]},{emoji:"🐔",name:"chicken",category:"animals",keywords:["chicken","rooster","farm"]},{emoji:"🐓",name:"rooster",category:"animals",keywords:["rooster","cock","morning"]},{emoji:"🐣",name:"hatching chick",category:"animals",keywords:["chick","hatching","egg"]},{emoji:"🐤",name:"baby chick",category:"animals",keywords:["chick","baby","yellow"]},{emoji:"🐥",name:"front-facing baby chick",category:"animals",keywords:["chick","baby","cute"]},{emoji:"🦆",name:"duck",category:"animals",keywords:["duck","quack","water"]},{emoji:"🦅",name:"eagle",category:"animals",keywords:["eagle","bird","freedom"]},{emoji:"🦉",name:"owl",category:"animals",keywords:["owl","wise","night"]},{emoji:"🦇",name:"bat",category:"animals",keywords:["bat","vampire","night"]},{emoji:"",name:"bug",category:"animals",keywords:["bug","insect","crawl"]},{emoji:"🦋",name:"butterfly",category:"animals",keywords:["butterfly","beautiful","fly"]},{emoji:"🐌",name:"snail",category:"animals",keywords:["snail","slow","shell"]},{emoji:"🐞",name:"lady beetle",category:"animals",keywords:["ladybug","beetle","red"]},{emoji:"🐜",name:"ant",category:"animals",keywords:["ant","work","colony"]},{emoji:"🦟",name:"mosquito",category:"animals",keywords:["mosquito","bite","buzz"]},{emoji:"🕷️",name:"spider",category:"animals",keywords:["spider","web","eight legs"]},{emoji:"🦂",name:"scorpion",category:"animals",keywords:["scorpion","sting","desert"]},{emoji:"🐢",name:"turtle",category:"animals",keywords:["turtle","slow","shell"]},{emoji:"🐍",name:"snake",category:"animals",keywords:["snake","slither","reptile"]},{emoji:"🦎",name:"lizard",category:"animals",keywords:["lizard","gecko","reptile"]},{emoji:"🐙",name:"octopus",category:"animals",keywords:["octopus","tentacles","sea"]},{emoji:"🦑",name:"squid",category:"animals",keywords:["squid","tentacles","ocean"]},{emoji:"🦐",name:"shrimp",category:"animals",keywords:["shrimp","seafood","small"]},{emoji:"🦞",name:"lobster",category:"animals",keywords:["lobster","claws","red"]},{emoji:"🦀",name:"crab",category:"animals",keywords:["crab","claws","beach"]},{emoji:"🐡",name:"blowfish",category:"animals",keywords:["blowfish","puffer","spiky"]},{emoji:"🐠",name:"tropical fish",category:"animals",keywords:["fish","tropical","colorful"]},{emoji:"🐟",name:"fish",category:"animals",keywords:["fish","swim","water"]},{emoji:"🐬",name:"dolphin",category:"animals",keywords:["dolphin","smart","ocean"]},{emoji:"🐳",name:"spouting whale",category:"animals",keywords:["whale","spout","big"]},{emoji:"🐋",name:"whale",category:"animals",keywords:["whale","ocean","huge"]},{emoji:"🦈",name:"shark",category:"animals",keywords:["shark","teeth","dangerous"]},{emoji:"🐊",name:"crocodile",category:"animals",keywords:["crocodile","teeth","swamp"]},{emoji:"🌸",name:"cherry blossom",category:"animals",keywords:["flower","spring","pink"]},{emoji:"💐",name:"bouquet",category:"animals",keywords:["flowers","bouquet","gift"]},{emoji:"🌺",name:"hibiscus",category:"animals",keywords:["flower","tropical","red"]},{emoji:"🌻",name:"sunflower",category:"animals",keywords:["sunflower","yellow","big"]},{emoji:"🌹",name:"rose",category:"animals",keywords:["rose","love","red"]},{emoji:"🥀",name:"wilted flower",category:"animals",keywords:["flower","wilted","sad"]},{emoji:"🌷",name:"tulip",category:"animals",keywords:["tulip","spring","netherlands"]},{emoji:"🌼",name:"daisy",category:"animals",keywords:["daisy","white","simple"]},{emoji:"🌱",name:"seedling",category:"animals",keywords:["plant","grow","green"]},{emoji:"🌿",name:"herb",category:"animals",keywords:["herb","green","leaf"]},{emoji:"🍀",name:"four leaf clover",category:"animals",keywords:["clover","luck","green"]},{emoji:"🌳",name:"deciduous tree",category:"animals",keywords:["tree","nature","green"]},{emoji:"🌲",name:"evergreen tree",category:"animals",keywords:["tree","pine","christmas"]},{emoji:"🌴",name:"palm tree",category:"animals",keywords:["palm","tropical","beach"]},{emoji:"🌵",name:"cactus",category:"animals",keywords:["cactus","desert","spiky"]},{emoji:"🍎",name:"red apple",category:"food",keywords:["apple","fruit"]},{emoji:"🍊",name:"tangerine",category:"food",keywords:["orange","fruit"]},{emoji:"🍋",name:"lemon",category:"food",keywords:["lemon","fruit"]},{emoji:"🍌",name:"banana",category:"food",keywords:["banana","fruit"]},{emoji:"🍉",name:"watermelon",category:"food",keywords:["watermelon","fruit"]},{emoji:"🍇",name:"grapes",category:"food",keywords:["grapes","fruit"]},{emoji:"🍓",name:"strawberry",category:"food",keywords:["strawberry","fruit"]},{emoji:"🫐",name:"blueberries",category:"food",keywords:["blueberry","fruit"]},{emoji:"🥝",name:"kiwi fruit",category:"food",keywords:["kiwi","fruit","green"]},{emoji:"🍅",name:"tomato",category:"food",keywords:["tomato","red","vegetable"]},{emoji:"🫒",name:"olive",category:"food",keywords:["olive","green","oil"]},{emoji:"🥥",name:"coconut",category:"food",keywords:["coconut","tropical","milk"]},{emoji:"🥑",name:"avocado",category:"food",keywords:["avocado","green","healthy"]},{emoji:"🍆",name:"eggplant",category:"food",keywords:["eggplant","purple","vegetable"]},{emoji:"🥔",name:"potato",category:"food",keywords:["potato","vegetable","starch"]},{emoji:"🥕",name:"carrot",category:"food",keywords:["carrot","orange","vegetable"]},{emoji:"🌽",name:"ear of corn",category:"food",keywords:["corn","yellow","vegetable"]},{emoji:"🌶️",name:"hot pepper",category:"food",keywords:["pepper","hot","spicy"]},{emoji:"🫑",name:"bell pepper",category:"food",keywords:["pepper","bell","vegetable"]},{emoji:"🥒",name:"cucumber",category:"food",keywords:["cucumber","green","vegetable"]},{emoji:"🥬",name:"leafy greens",category:"food",keywords:["lettuce","greens","salad"]},{emoji:"🥦",name:"broccoli",category:"food",keywords:["broccoli","green","vegetable"]},{emoji:"🧄",name:"garlic",category:"food",keywords:["garlic","flavor","cooking"]},{emoji:"🧅",name:"onion",category:"food",keywords:["onion","cry","cooking"]},{emoji:"🍄",name:"mushroom",category:"food",keywords:["mushroom","fungi","cooking"]},{emoji:"🥜",name:"peanuts",category:"food",keywords:["peanuts","nuts","snack"]},{emoji:"🌰",name:"chestnut",category:"food",keywords:["chestnut","nut","autumn"]},{emoji:"🍞",name:"bread",category:"food",keywords:["bread","loaf","carbs"]},{emoji:"🥐",name:"croissant",category:"food",keywords:["croissant","french","pastry"]},{emoji:"🥖",name:"baguette bread",category:"food",keywords:["baguette","french","bread"]},{emoji:"🫓",name:"flatbread",category:"food",keywords:["flatbread","bread","thin"]},{emoji:"🥨",name:"pretzel",category:"food",keywords:["pretzel","twisted","snack"]},{emoji:"🥯",name:"bagel",category:"food",keywords:["bagel","round","breakfast"]},{emoji:"🥞",name:"pancakes",category:"food",keywords:["pancakes","breakfast","syrup"]},{emoji:"🧇",name:"waffle",category:"food",keywords:["waffle","breakfast","squares"]},{emoji:"🧀",name:"cheese wedge",category:"food",keywords:["cheese","dairy","yellow"]},{emoji:"🍖",name:"meat on bone",category:"food",keywords:["meat","bone","protein"]},{emoji:"🍗",name:"poultry leg",category:"food",keywords:["chicken","leg","meat"]},{emoji:"🥩",name:"cut of meat",category:"food",keywords:["steak","meat","red"]},{emoji:"🥓",name:"bacon",category:"food",keywords:["bacon","pork","breakfast"]},{emoji:"🍔",name:"hamburger",category:"food",keywords:["burger","hamburger","fast food"]},{emoji:"🍟",name:"french fries",category:"food",keywords:["fries","potato","fast food"]},{emoji:"🍕",name:"pizza",category:"food",keywords:["pizza","slice","italian"]},{emoji:"🌭",name:"hot dog",category:"food",keywords:["hot dog","sausage","fast food"]},{emoji:"🥪",name:"sandwich",category:"food",keywords:["sandwich","bread","lunch"]},{emoji:"🌮",name:"taco",category:"food",keywords:["taco","mexican","shell"]},{emoji:"🌯",name:"burrito",category:"food",keywords:["burrito","wrap","mexican"]},{emoji:"🫔",name:"tamale",category:"food",keywords:["tamale","mexican","corn"]},{emoji:"🥙",name:"stuffed flatbread",category:"food",keywords:["pita","flatbread","stuffed"]},{emoji:"🧆",name:"falafel",category:"food",keywords:["falafel","middle eastern","chickpea"]},{emoji:"🥚",name:"egg",category:"food",keywords:["egg","protein","breakfast"]},{emoji:"🍳",name:"cooking",category:"food",keywords:["cooking","frying pan","egg"]},{emoji:"🥘",name:"shallow pan of food",category:"food",keywords:["paella","pan","cooking"]},{emoji:"🍲",name:"pot of food",category:"food",keywords:["stew","pot","cooking"]},{emoji:"🫕",name:"fondue",category:"food",keywords:["fondue","cheese","pot"]},{emoji:"🥣",name:"bowl with spoon",category:"food",keywords:["bowl","cereal","soup"]},{emoji:"🥗",name:"green salad",category:"food",keywords:["salad","healthy","greens"]},{emoji:"🍿",name:"popcorn",category:"food",keywords:["popcorn","movie","snack"]},{emoji:"🧈",name:"butter",category:"food",keywords:["butter","dairy","spread"]},{emoji:"🧂",name:"salt",category:"food",keywords:["salt","seasoning","white"]},{emoji:"🥫",name:"canned food",category:"food",keywords:["can","canned","preserved"]},{emoji:"🍱",name:"bento box",category:"food",keywords:["bento","japanese","lunch box"]},{emoji:"🍘",name:"rice cracker",category:"food",keywords:["rice","cracker","japanese"]},{emoji:"🍙",name:"rice ball",category:"food",keywords:["rice ball","onigiri","japanese"]},{emoji:"🍚",name:"cooked rice",category:"food",keywords:["rice","cooked","bowl"]},{emoji:"🍛",name:"curry rice",category:"food",keywords:["curry","rice","spicy"]},{emoji:"🍜",name:"steaming bowl",category:"food",keywords:["ramen","noodles","soup"]},{emoji:"🍝",name:"spaghetti",category:"food",keywords:["spaghetti","pasta","italian"]},{emoji:"🍠",name:"roasted sweet potato",category:"food",keywords:["sweet potato","roasted","orange"]},{emoji:"🍢",name:"oden",category:"food",keywords:["oden","japanese","skewer"]},{emoji:"🍣",name:"sushi",category:"food",keywords:["sushi","japanese","fish"]},{emoji:"🍤",name:"fried shrimp",category:"food",keywords:["shrimp","fried","tempura"]},{emoji:"🍥",name:"fish cake with swirl",category:"food",keywords:["fish cake","japanese","swirl"]},{emoji:"🥮",name:"moon cake",category:"food",keywords:["moon cake","chinese","festival"]},{emoji:"🍡",name:"dango",category:"food",keywords:["dango","japanese","sweet"]},{emoji:"🥟",name:"dumpling",category:"food",keywords:["dumpling","chinese","steamed"]},{emoji:"🥠",name:"fortune cookie",category:"food",keywords:["fortune cookie","chinese","luck"]},{emoji:"🥡",name:"takeout box",category:"food",keywords:["takeout","chinese","box"]},{emoji:"🦀",name:"crab",category:"food",keywords:["crab","seafood","claws"]},{emoji:"🦞",name:"lobster",category:"food",keywords:["lobster","seafood","red"]},{emoji:"🦐",name:"shrimp",category:"food",keywords:["shrimp","seafood","small"]},{emoji:"🦑",name:"squid",category:"food",keywords:["squid","seafood","tentacles"]},{emoji:"🦪",name:"oyster",category:"food",keywords:["oyster","seafood","shell"]},{emoji:"🍦",name:"soft ice cream",category:"food",keywords:["ice cream","soft serve","cone"]},{emoji:"🍧",name:"shaved ice",category:"food",keywords:["shaved ice","snow cone","cold"]},{emoji:"🍨",name:"ice cream",category:"food",keywords:["ice cream","dessert","cold"]},{emoji:"🍩",name:"doughnut",category:"food",keywords:["donut","doughnut","sweet"]},{emoji:"🍪",name:"cookie",category:"food",keywords:["cookie","sweet","baked"]},{emoji:"🎂",name:"birthday cake",category:"food",keywords:["cake","birthday","celebration"]},{emoji:"🍰",name:"shortcake",category:"food",keywords:["cake","slice","dessert"]},{emoji:"🧁",name:"cupcake",category:"food",keywords:["cupcake","muffin","sweet"]},{emoji:"🥧",name:"pie",category:"food",keywords:["pie","dessert","slice"]},{emoji:"🍫",name:"chocolate bar",category:"food",keywords:["chocolate","bar","sweet"]},{emoji:"🍬",name:"candy",category:"food",keywords:["candy","sweet","wrapper"]},{emoji:"🍭",name:"lollipop",category:"food",keywords:["lollipop","candy","stick"]},{emoji:"🍮",name:"custard",category:"food",keywords:["custard","pudding","dessert"]},{emoji:"🍯",name:"honey pot",category:"food",keywords:["honey","sweet","bee"]},{emoji:"🍼",name:"baby bottle",category:"food",keywords:["bottle","baby","milk"]},{emoji:"🥛",name:"glass of milk",category:"food",keywords:["milk","glass","dairy"]},{emoji:"☕",name:"hot beverage",category:"food",keywords:["coffee","tea","hot"]},{emoji:"🫖",name:"teapot",category:"food",keywords:["teapot","tea","hot"]},{emoji:"🍵",name:"teacup without handle",category:"food",keywords:["tea","green tea","cup"]},{emoji:"🍶",name:"sake",category:"food",keywords:["sake","japanese","alcohol"]},{emoji:"🍾",name:"bottle with popping cork",category:"food",keywords:["champagne","celebration","cork"]},{emoji:"🍷",name:"wine glass",category:"food",keywords:["wine","glass","alcohol"]},{emoji:"🍸",name:"cocktail glass",category:"food",keywords:["cocktail","martini","alcohol"]},{emoji:"🍹",name:"tropical drink",category:"food",keywords:["tropical","cocktail","umbrella"]},{emoji:"🍺",name:"beer mug",category:"food",keywords:["beer","mug","alcohol"]},{emoji:"🍻",name:"clinking beer mugs",category:"food",keywords:["beer","cheers","celebration"]},{emoji:"🥂",name:"clinking glasses",category:"food",keywords:["champagne","cheers","celebration"]},{emoji:"🥃",name:"tumbler glass",category:"food",keywords:["whiskey","tumbler","alcohol"]},{emoji:"🫗",name:"pouring liquid",category:"food",keywords:["pour","liquid","drink"]},{emoji:"🥤",name:"cup with straw",category:"food",keywords:["soda","straw","drink"]},{emoji:"🧋",name:"bubble tea",category:"food",keywords:["bubble tea","boba","drink"]},{emoji:"🧃",name:"beverage box",category:"food",keywords:["juice box","drink","straw"]},{emoji:"🧉",name:"mate",category:"food",keywords:["mate","tea","south american"]},{emoji:"🧊",name:"ice",category:"food",keywords:["ice","cold","cube"]},{emoji:"⚽",name:"soccer ball",category:"activities",keywords:["soccer","football","sport"]},{emoji:"🏀",name:"basketball",category:"activities",keywords:["basketball","sport"]},{emoji:"🏈",name:"american football",category:"activities",keywords:["football","sport"]},{emoji:"⚾",name:"baseball",category:"activities",keywords:["baseball","sport"]},{emoji:"🥎",name:"softball",category:"activities",keywords:["softball","sport"]},{emoji:"🎾",name:"tennis",category:"activities",keywords:["tennis","sport"]},{emoji:"🚗",name:"automobile",category:"travel",keywords:["car","vehicle"]},{emoji:"🚕",name:"taxi",category:"travel",keywords:["taxi","car"]},{emoji:"🚙",name:"sport utility vehicle",category:"travel",keywords:["suv","car"]},{emoji:"🚌",name:"bus",category:"travel",keywords:["bus","vehicle"]},{emoji:"🚎",name:"trolleybus",category:"travel",keywords:["trolley","bus"]},{emoji:"🏎️",name:"racing car",category:"travel",keywords:["race","car","fast"]},{emoji:"💡",name:"light bulb",category:"objects",keywords:["idea","light","bulb"]},{emoji:"🔋",name:"battery",category:"objects",keywords:["battery","power"]},{emoji:"🖥️",name:"desktop computer",category:"objects",keywords:["computer","desktop"]},{emoji:"💻",name:"laptop",category:"objects",keywords:["laptop","computer"]},{emoji:"📱",name:"mobile phone",category:"objects",keywords:["phone","mobile"]},{emoji:"☎️",name:"telephone",category:"objects",keywords:["phone","telephone"]},{emoji:"❤️",name:"red heart",category:"symbols",keywords:["love","heart"]},{emoji:"🧡",name:"orange heart",category:"symbols",keywords:["love","heart"]},{emoji:"💛",name:"yellow heart",category:"symbols",keywords:["love","heart"]},{emoji:"💚",name:"green heart",category:"symbols",keywords:["love","heart"]},{emoji:"💙",name:"blue heart",category:"symbols",keywords:["love","heart"]},{emoji:"💜",name:"purple heart",category:"symbols",keywords:["love","heart"]},{emoji:"🖤",name:"black heart",category:"symbols",keywords:["love","heart"]},{emoji:"🤍",name:"white heart",category:"symbols",keywords:["love","heart"]},{emoji:"🏁",name:"chequered flag",category:"flags",keywords:["flag","race","finish"]},{emoji:"🚩",name:"triangular flag",category:"flags",keywords:["flag","warning"]},{emoji:"🏳️",name:"white flag",category:"flags",keywords:["flag","surrender"]},{emoji:"🏴",name:"black flag",category:"flags",keywords:["flag","pirate"]},{emoji:"🏳️‍🌈",name:"rainbow flag",category:"flags",keywords:["flag","rainbow","pride"]}],Pl=e=>{const{value:o,defaultValue:t="",onChange:n,onEmojiSelect:a,isOpen:i,onOpen:c,onClose:s,closeOnSelect:d=!0,maxRecentEmojis:g=16,showRecentEmojis:f=!0,enabledCategories:m=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],customEmojis:p=[]}=e,[u,y]=h.useState(i??!1),[k,x]=h.useState(o??t),[C,w]=h.useState(""),[v,S]=h.useState("smileys"),[b,T]=h.useState([]),F=h.useRef(null),W=h.useRef(null),P=h.useMemo(()=>[...Lf,...p],[p]),$=h.useMemo(()=>{let j=P;if(v!=="recent"?j=j.filter(L=>L.category===v):j=b,C){const L=C.toLowerCase();j=j.filter(O=>O.name.toLowerCase().includes(L)||O.keywords.some(q=>q.toLowerCase().includes(L)))}return j},[P,v,b,C]);h.useEffect(()=>{o!==void 0&&x(o)},[o]),h.useEffect(()=>{i!==void 0&&y(i)},[i]),h.useEffect(()=>{if(f&&typeof localStorage<"u"){const j=localStorage.getItem("emojiPicker-recentEmojis");if(j)try{T(JSON.parse(j))}catch{}}},[f]),h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const j=L=>{u&&F.current&&W.current&&!F.current.contains(L.target)&&!W.current.contains(L.target)&&H()};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[u]);const z=h.useCallback(j=>{f&&T(L=>{const O=L.filter(_=>_.emoji!==j.emoji),q=[j,...O].slice(0,g);return typeof localStorage<"u"&&localStorage.setItem("emojiPicker-recentEmojis",JSON.stringify(q)),q})},[f,g]),E=h.useCallback(()=>{const j=!u;y(j),j?(c==null||c(),w(""),f&&b.length>0?S("recent"):S("smileys")):s==null||s()},[u,c,s,f,b.length]),V=h.useCallback(j=>{x(j.emoji),z(j),n==null||n(j.emoji),a==null||a(j),d&&(y(!1),s==null||s())},[n,a,d,s,z]),M=h.useCallback(j=>{w(j),j&&v==="recent"&&S("smileys")},[v]),A=h.useCallback(j=>{S(j),w("")},[]),H=h.useCallback(()=>{y(!1),s==null||s()},[s]);return{isOpen:u,selectedEmoji:k,recentEmojis:b,searchQuery:C,activeCategory:v,filteredEmojis:$,handleToggle:E,handleEmojiSelect:V,handleSearchChange:M,handleCategoryChange:A,handleClose:H,triggerRef:F,dropdownRef:W}},Al=({id:e,name:o,label:t,placeholder:n="Select an emoji",helperText:a,views:i={},size:c="md",shape:s="default",variant:d="default",error:g=!1,isDisabled:f=!1,isReadOnly:m=!1,showSearch:p=!0,showCategories:u=!0,showRecentEmojis:y=!0,enabledCategories:k=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],isOpen:x,selectedEmoji:C,recentEmojis:w,searchQuery:v,activeCategory:S,filteredEmojis:b,handleToggle:T,handleEmojiSelect:F,handleSearchChange:W,handleCategoryChange:P,handleClose:$,triggerRef:z,dropdownRef:E,onChange:V,onOpen:M,onClose:A,onEmojiSelect:H,customEmojis:j,closeOnSelect:L,maxRecentEmojis:O,value:q,defaultValue:_,...B})=>{const{getColor:U}=l.useTheme(),X={...ro.container,...i==null?void 0:i.container},N={...ro.trigger,...Vf[c],...Ef[s],...Df[d],...g&&{borderColor:"color-red-500"},...f&&{opacity:.6,cursor:"not-allowed"},...!f&&!m&&{_hover:{borderColor:"color-gray-300"}},...i==null?void 0:i.trigger},D={...ro.dropdown,...i==null?void 0:i.dropdown},K={...ro.categoryTabs,...i==null?void 0:i.categoryTabs},J={...ro.emojiGrid,...i==null?void 0:i.emojiGrid},Z=k.filter(Q=>Q==="recent"?y&&w.length>0:!0);return r.jsxs(l.View,{...X,...B,children:[t&&r.jsx(l.Text,{fontSize:c==="xs"?"12px":c==="sm"?"14px":"16px",fontWeight:"500",color:"color-gray-700",marginBottom:"4px",...i==null?void 0:i.label,children:t}),r.jsxs(l.View,{ref:z,onClick:f||m?void 0:T,...N,children:[r.jsx(l.Horizontal,{alignItems:"center",gap:8,children:r.jsx(l.Text,{color:C?"color-gray-800":"color-gray-500",fontSize:"inherit",children:C||n})}),!m&&!f&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:x?"up":"down"})]}),x&&r.jsxs(l.View,{ref:E,...D,children:[p&&r.jsx(l.View,{...ro.searchInput,...i==null?void 0:i.searchInput,children:r.jsx(We,{placeholder:"Search emojis...",value:v,onChange:W,size:"sm"})}),u&&r.jsx(l.View,{...K,children:Z.map(Q=>r.jsx(l.View,{...ro.categoryTab,...S===Q&&{borderBottomColor:"theme-primary",color:"theme-primary",backgroundColor:"color-blue-50"},onClick:()=>P(Q),title:Q.charAt(0).toUpperCase()+Q.slice(1),...i==null?void 0:i.categoryTab,children:$f[Q]},Q))}),r.jsx(l.View,{...J,children:b.length>0?b.map((Q,oe)=>r.jsx(l.View,{...ro.emoji,onClick:()=>F(Q),title:Q.name,_hover:{backgroundColor:"color-gray-50",transform:"scale(1.05)"},color:"color-gray-800",...i==null?void 0:i.emoji,children:Q.emoji},`${Q.emoji}-${oe}`)):r.jsx(l.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color-gray-500",children:r.jsx(l.Text,{fontSize:"14px",children:v?"No emojis found":"No emojis in this category"})})})]}),a&&r.jsx(l.Text,{color:g?"color-red-500":"color-gray-600",marginTop:"4px",...i==null?void 0:i.helperText,children:a})]})},_f=e=>{const o=ye(e),t={...e,value:o.value??e.value??e.defaultValue},n=Pl(t),a=i=>{var c;n.handleEmojiSelect(i),o.onChange(i.emoji),(c=e.onEmojiSelect)==null||c.call(e,i)};return r.jsx(Al,{...n,...t,handleEmojiSelect:a})},Bf=({files:e,onRemove:o,maxHeight:t="120px",views:n={}})=>{if(e.length===0)return null;const a=h.useCallback(i=>i<1024?`${i} B`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`,[]);return r.jsx(l.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:t,overflowY:"auto",...n==null?void 0:n.container,children:e.map((i,c)=>{const s=i.url||"",d=i.type.startsWith("image/"),g=i.type.startsWith("video/"),f=i.type.startsWith("audio/");return r.jsx(l.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",position:"relative",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...n==null?void 0:n.item,children:r.jsxs(Fe,{children:[r.jsx(Fe.Trigger,{children:r.jsxs(l.View,{position:"relative",children:[d&&s&&r.jsx(l.Image,{src:s,alt:i.name,width:"60px",height:"60px",objectFit:"cover",borderRadius:"8px"}),g&&s&&r.jsx(l.View,{as:"video",src:s,alt:i.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover",borderRadius:"8px"}),f&&r.jsx(l.Center,{width:"60px",height:"60px",backgroundColor:"color-gray-100",borderRadius:"8px",children:r.jsx(So,{widthHeight:24,color:"color-black"})}),!d&&!g&&!f&&r.jsx(l.Center,{width:"60px",height:"60px",backgroundColor:"color-gray-100",borderRadius:"8px",children:r.jsx(io,{widthHeight:24,color:"color-black"})}),o&&r.jsx(l.Button,{position:"absolute",top:"-4px",right:"-4px",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"50%",backgroundColor:"color-red-500",color:"white",fontSize:14,fontWeight:"bold",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"2px solid white",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{backgroundColor:"#DC2626"},onClick:m=>{m.stopPropagation(),o(c)},"aria-label":`Remove ${i.name}`,children:"×"})]})}),r.jsxs(Fe.Content,{children:[d&&s&&r.jsx(l.Image,{src:s,alt:i.name,maxWidth:"300px"}),g&&s&&r.jsx(l.View,{as:"video",src:s,controls:!0,maxWidth:"300px"}),f&&s&&r.jsx(l.View,{as:"audio",src:s,controls:!0,width:"100%"}),r.jsxs(l.Text,{marginTop:"4px",maxLines:1,width:"100%",fontSize:12,...n==null?void 0:n.name,children:[i.name," (",a(i.size),")"]})]})]})},c)})})},Vl=e=>{const o=pe("slider",e),t=bl(o);return r.jsx(Sl,{...o,...t})},Of=({url:e,type:o,name:t,onOpen:n})=>{const a=o.toLowerCase(),i=a.startsWith("image"),c=a.startsWith("video"),s=a.startsWith("audio"),d=()=>{n&&n()};return r.jsxs(l.View,{width:"60px",height:"60px",flexShrink:0,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color-gray-200",cursor:"pointer",onClick:d,children:[i&&r.jsx(l.Image,{src:e,alt:t,width:"100%",height:"100%",objectFit:"cover"}),c&&r.jsx(l.View,{as:"video",src:e,controls:!0,width:"100%",height:"100%",style:{objectFit:"cover"},onClick:g=>g.stopPropagation()}),s&&r.jsx(l.View,{as:"audio",controls:!0,src:e,width:"100%",onClick:g=>g.stopPropagation()}),!i&&!c&&!s&&r.jsx(io,{widthHeight:24,color:"color-gray-600"})]})},to=Co.create(e=>({modals:[],onHide:o=>o,onShow:(o,t)=>({name:o,props:t}),show:(o,t={},n={})=>{e(a=>({...a,modals:[...a.modals,{name:o,props:{...t,isVisible:!0},overlayProps:n}]}))},hide:o=>{e(t=>o?{...t,modals:t.modals.filter(n=>n.name!==o)}:{modals:[]})},setOnHide:o=>{e(t=>({...t,onHide:o}))},setOnShow:o=>{e(t=>({...t,onShow:o}))}})),Nf=(e,o={},t={})=>{to.getState().show(e,o,t),to.getState().onShow(e,o)},qt=e=>{to.getState().onHide(e),to.getState().hide(typeof e=="string"?e:void 0)},qf={square:{borderRadius:0},rounded:{borderRadius:8}},Uf={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center",alignItems:"flex-start"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{justifyContent:"flex-start",alignItems:"center"}},Gf={xs:12,sm:16,md:20,lg:24,xl:28},Ut={body:{fontSize:"16px",fontWeight:"400",color:"color-gray-700"}},El=h.memo(({children:e,blur:o,isOpen:t=!1,isClosePrevented:n=!1,onClose:a=()=>{},position:i="center",views:c,...s})=>{const d=h.useCallback(()=>{n||a()},[n,a]);return r.jsx(l.Center,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:d,visibility:t?"visible":"hidden",opacity:t?1:0,transition:"opacity 0.2s ease, visibility 0.2s ease",...c==null?void 0:c.container,children:r.jsx(l.View,{position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color-dark-50-360",backdropFilter:o?`blur(${o}px)`:void 0,transition:"background-color 0.2s ease, backdrop-filter 0.2s ease",onClick:d,...Uf[i],...s,...c==null?void 0:c.view,children:e})})}),Yf={boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.15)"},Kf={elevation:5,shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:4},shadowOpacity:1,shadowRadius:16},Xf=h.memo(({children:e,shadow:o,isFullScreen:t=!1,shape:n="rounded",views:a,isOpen:i=!0,position:c,...s})=>{const d=typeof document!==void 0?Yf:Kf,g=h.useCallback(f=>{f&&f.stopPropagation&&f.stopPropagation()},[]);return r.jsx(l.Vertical,{cursor:"default",backgroundColor:"color-white",width:t?"100%":600,height:t?"100%":"fit-content",onClick:g,transition:"opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",opacity:i?1:0,transform:i?"translateY(0)":"translateY(8px)",...o||d,...qf[n],media:{mobile:{width:"90%",maxWidth:"100%",margin:"16px"}},...s,...a==null?void 0:a.container,children:e})}),Jf=h.memo(({children:e,buttonColor:o="theme-primary",iconSize:t="md",buttonPosition:n="right",views:a,onClose:i,...c})=>{const s=i||qt,d=r.jsx(l.View,{onClick:()=>s(),children:r.jsx(Me,{widthHeight:Gf[t],color:o})});return r.jsxs(l.Horizontal,{justifyContent:n==="none"?"center":"space-between",alignItems:"center",paddingVertical:16,paddingHorizontal:24,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200",media:{mobile:{paddingVertical:12,paddingHorizontal:16}},...c,...a==null?void 0:a.header,children:[n==="left"&&d,e,n==="right"&&d]})}),Qf=h.memo(({children:e,views:o,...t})=>r.jsx(l.View,{paddingVertical:16,paddingHorizontal:24,fontSize:Ut.body.fontSize,fontWeight:Ut.body.fontWeight,color:Ut.body.color,media:{mobile:{paddingVertical:12,paddingHorizontal:16,fontSize:"14px"}},...t,...o==null?void 0:o.view,children:e})),Zf=h.memo(({children:e,views:o,...t})=>r.jsx(l.Horizontal,{marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:16,paddingHorizontal:24,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200",gap:12,media:{mobile:{paddingVertical:12,paddingHorizontal:16,gap:8}},...t,...o==null?void 0:o.container,children:e})),Gt=({modals:e,onShow:o,onHide:t})=>{const n=to(a=>a.modals);return h.useEffect(()=>{o&&to.getState().setOnShow(o)},[o]),h.useEffect(()=>{t&&to.getState().setOnHide(t)},[t]),n.length===0?null:r.jsx(h.Fragment,{children:n.map((a,i)=>{const c=e[a.name];return c?r.jsx(El,{isOpen:a.props.isVisible,onClose:()=>qt(a.name),blur:5,...a.overlayProps,style:{zIndex:1e3+i},children:r.jsx(c,{...a.props})},i):(console.error(`${a.name} modal doesn't exist`),null)})})},fo=({children:e})=>r.jsx(r.Fragment,{children:e});fo.Overlay=El,fo.Container=Xf,fo.Header=Jf,fo.Body=Qf,fo.Footer=Zf,fo.Layout=Gt;const Dl={xs:"320px",sm:"380px",md:"480px",lg:"640px",xl:"768px",full:"100%"},Rf={left:{top:0,left:0,bottom:0,height:"100vh",borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color-gray-200"},right:{top:0,right:0,bottom:0,height:"100vh",borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color-gray-200"},top:{top:0,left:0,right:0,width:"100vw",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200"},bottom:{bottom:0,left:0,right:0,width:"100vw",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200"}},Yt=({isOpen:e,onClose:o,isClosePrevented:t,blur:n,children:a,...i})=>{const c=()=>{t||o()};return h.useEffect(()=>{const s=d=>{d.key==="Escape"&&e&&!t&&o()};return e&&document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[e,t,o]),r.jsx(l.View,{"data-testid":"drawer-overlay",role:"dialog","aria-modal":"true",position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1e3,visibility:e?"visible":"hidden",onClick:c,opacity:e?1:0,transition:"opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease",backgroundColor:e?"color-dark-50-360":"transparent",backdropFilter:n?`blur(${n}px)`:void 0,pointerEvents:e?"auto":"none",...i,children:a})},Kt=({placement:e="right",size:o="md",isOpen:t=!1,children:n,...a})=>{const i=f=>{f.stopPropagation()},s=e==="top"||e==="bottom"?{height:o==="full"?"100vh":Dl[o]||o,maxHeight:"100vh"}:{width:o==="full"?"100vw":Dl[o]||o,maxWidth:"100vw"},d=e==="left"?"0 12px 12px 0":e==="right"?"12px 0 0 12px":e==="top"?"0 0 12px 12px":"12px 12px 0 0",g=t?"translate3d(0, 0, 0)":e==="left"?"translate3d(-100%, 0, 0)":e==="right"?"translate3d(100%, 0, 0)":e==="top"?"translate3d(0, -100%, 0)":"translate3d(0, 100%, 0)";return r.jsx(l.Vertical,{position:"absolute",backgroundColor:"color-white",borderRadius:d,...Rf[e],...s,onClick:i,transform:g,willChange:"transform",transition:"transform 0.24s ease, box-shadow 0.2s ease",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.12)",...a,children:n})},em=({children:e,onClose:o,buttonPosition:t="right",...n})=>{const a=o&&r.jsx(l.View,{onClick:o,cursor:"pointer",padding:8,children:r.jsx(Me,{widthHeight:20,color:"color-gray-500"})});return r.jsxs(l.Horizontal,{paddingHorizontal:24,paddingVertical:16,borderBottomWidth:"1px",borderBottomColor:"color-gray-200",alignItems:"center",justifyContent:t==="none"?"center":"space-between",...n,children:[t==="left"&&a,e,t==="right"&&a]})},om=({children:e,...o})=>r.jsx(l.Vertical,{padding:24,flex:1,overflowY:"auto",...o,children:e}),rm=({children:e,...o})=>r.jsx(l.Horizontal,{paddingHorizontal:24,paddingVertical:16,borderTopWidth:"1px",borderTopColor:"color-gray-200",alignItems:"center",justifyContent:"flex-end",gap:12,...o,children:e}),no=Co.create(e=>({drawers:[],onHide:o=>o,onShow:(o,t)=>({name:o,props:t}),show:(o,t={},n={})=>{e(a=>({...a,drawers:[...a.drawers,{name:o,props:{...t,isOpen:!1},overlayProps:n}]}))},hide:o=>{e(t=>o?{...t,drawers:t.drawers.filter(n=>n.name!==o)}:{drawers:[]})},setOnHide:o=>{e(t=>({...t,onHide:o}))},setOnShow:o=>{e(t=>({...t,onShow:o}))}})),tm=(e,o={},t={})=>{const n=no.getState();n.hide(e),n.show(e,o,t),n.onShow(e,o),queueMicrotask(()=>{no.setState(a=>({drawers:a.drawers.map(i=>i.name===e?{...i,props:{...i.props,isOpen:!0}}:i)}))})},$l=e=>{no.getState().onHide(e),no.getState().hide(typeof e=="string"?e:void 0)},nm=({drawers:e,onShow:o,onHide:t})=>{const n=no(a=>a.drawers);return h.useEffect(()=>{o&&no.getState().setOnShow(o)},[o]),h.useEffect(()=>{t&&no.getState().setOnHide(t)},[t]),n.length===0?null:r.jsx(h.Fragment,{children:n.map((a,i)=>{var u;const c=e[a.name];if(!c)return console.error(`${a.name} drawer doesn't exist`),null;const{placement:s,size:d,isClosePrevented:g,blur:f,containerProps:m,...p}=a.props||{};return r.jsx(Yt,{isOpen:a.props.isOpen,onClose:()=>$l(a.name),isClosePrevented:g,blur:f,...a.overlayProps,style:{zIndex:1e3+i,...((u=a.overlayProps)==null?void 0:u.style)||{}},children:r.jsx(Kt,{placement:s,size:d,isOpen:a.props.isOpen,...m||{},children:r.jsx(h.Suspense,{fallback:null,children:r.jsx(c,{...p})})})},i)})})},mo=({isOpen:e,onClose:o,placement:t="right",size:n="md",isClosePrevented:a,children:i,...c})=>r.jsx(Yt,{isOpen:e,onClose:o,isClosePrevented:a,...c,children:r.jsx(Kt,{placement:t,size:n,isOpen:e,children:i})});mo.Overlay=Yt,mo.Container=Kt,mo.Header=em,mo.Body=om,mo.Footer=rm,mo.Layout=nm;const Ll=({behavior:e,keyboardVerticalOffset:o,dismissOnTap:t,enabled:n,children:a,...i})=>r.jsx(l.View,{flex:1,width:"100%",...i,children:a}),am=({header:e,footer:o,children:t,isLoading:n=!1,safe:a=!0,scrollable:i=!0,dismissKeyboardOnTap:c=!0,keyboardVerticalOffset:s=0,views:d={},backgroundColor:g="color-white",...f})=>{const m=a?l.SafeArea:l.View,p=l.isBrowser()?{}:{keyboardShouldPersistTaps:"handled",showsVerticalScrollIndicator:!1,contentContainerStyle:{flexGrow:1}},u=n?r.jsx(l.Center,{flex:1,width:"100%",...d.content,children:r.jsx(Re,{})}):i?r.jsx(l.Scroll,{flex:1,width:"100%",...p,...d.content,children:t}):r.jsx(l.View,{flex:1,width:"100%",...d.content,children:t});return r.jsxs(m,{flex:1,height:"100%",width:"100%",flexDirection:"column",backgroundColor:g,...f,...d.container,children:[e!=null&&r.jsx(l.View,{width:"100%",flexShrink:0,...d.header,children:e}),r.jsxs(Ll,{flexDirection:"column",dismissOnTap:c,keyboardVerticalOffset:s,children:[u,o!=null&&r.jsx(l.View,{width:"100%",flexShrink:0,...d.footer,children:o})]})]})},$r=Co.create(e=>({started:!1,loaded:!1,setStarted:(o=!0)=>e({started:o}),setLoaded:(o=!0)=>e({loaded:o}),reset:()=>e({started:!1,loaded:!1})})),lm=(e=!0)=>$r.getState().setLoaded(e),im=(e=!0)=>$r.getState().setStarted(e),cm=({logo:e,logoSrc:o,loader:t,showLoader:n=!0,duration:a=600,isLoaded:i,onHidden:c,backgroundColor:s="color-white",children:d,...g})=>{const f=$r(v=>v.loaded),m=i!==void 0?i:f,[p,u]=h.useState(!0),[y,k]=h.useState(!1);if(h.useEffect(()=>{if(!m||y)return;k(!0);const v=setTimeout(()=>{u(!1),c==null||c()},a);return()=>clearTimeout(v)},[m,y,a,c]),!p)return null;const x=l.isBrowser()?"fixed":"absolute",C=y?l.Animation.fadeOut({duration:`${a}ms`}):void 0,w=e??(o?r.jsx(l.Image,{src:o,width:120,height:120,alt:"logo"}):null);return r.jsxs(l.Center,{position:x,top:0,left:0,right:0,bottom:0,zIndex:9999,backgroundColor:s,animate:C,...g,children:[r.jsxs(l.Vertical,{alignItems:"center",gap:24,children:[w,n&&(t??r.jsx(Re,{}))]}),d]})},Ge=Co.create((e,o)=>({stack:[{path:"/",params:{}}],index:0,push:(t,n={})=>e(a=>{const i=a.stack.slice(0,a.index+1);return i.push({path:t,params:n}),{stack:i,index:i.length-1}}),replace:(t,n={})=>e(a=>{const i=a.stack.slice();return i[a.index]={path:t,params:n},{stack:i}}),back:()=>{const{index:t}=o();return t<=0?!1:(e({index:t-1}),!0)},go:t=>e(n=>({index:Math.min(Math.max(n.index+t,0),n.stack.length-1)})),reset:(t,n={})=>e({stack:[{path:t,params:n}],index:0})})),sm=(e,o)=>Ge.getState().push(e,o),dm=()=>Ge.getState().back(),Xt=()=>{const e=Ge(d=>d.stack),o=Ge(d=>d.index),t=Ge(d=>d.push),n=Ge(d=>d.replace),a=Ge(d=>d.back),i=Ge(d=>d.go),c=Ge(d=>d.reset),s=e[o]||{path:"/",params:{}};return{path:s.path,params:s.params,stack:e,index:o,canGoBack:o>0,push:t,replace:n,back:a,go:i,reset:c,navigate:t}},_l=(e,o)=>{const t=e.split("/").filter(Boolean),n=o.split("/").filter(Boolean);if(t.length!==n.length)return null;const a={};for(let i=0;i<t.length;i+=1){const c=t[i];if(c.startsWith(":"))a[c.slice(1)]=decodeURIComponent(n[i]);else if(c!==n[i])return null}return a},gm=e=>Array.isArray(e)?e:Object.entries(e).map(([o,t])=>({path:o,component:t})),hm=({routes:e,notFound:o})=>{const{path:t,params:n}=Xt();for(const a of gm(e)){const i=_l(a.path,t);if(i){const c=a.component;return r.jsx(c,{...n,...i})}}return o?r.jsx(o,{}):null},fm=({routes:e,notFound:o,initialPath:t,syncBrowserHistory:n=!1})=>{const{path:a,push:i,back:c,reset:s}=Xt(),d=h.useRef(!1);return l.useMount(()=>{t&&s(t)}),h.useEffect(()=>{if(!(!n||typeof window>"u")){if(d.current){d.current=!1;return}try{window.history.pushState({path:a},"",a)}catch{}}},[a,n]),h.useEffect(()=>{if(!n||typeof window>"u")return;const g=()=>{d.current=!0,c()||(d.current=!1)};return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[n,c,i]),r.jsx(hm,{routes:e,notFound:o})},mm=(e=null,o=[])=>{const[t,n]=h.useState(e),[a,i]=h.useState(o),c=h.useRef({});return{activeItemId:t,setActiveItemId:n,expandedItemIds:a,toggleExpandedItem:g=>{i(f=>f.includes(g)?f.filter(p=>p!==g):[...f,g])},isItemExpanded:g=>a.includes(g),triggerRefs:c}},Jt={sm:{padding:"8px 12px",fontSize:"12px",fontWeight:"500",media:{mobile:{padding:"6px 10px",fontSize:"11px"}}},md:{padding:"10px 14px",fontSize:"14px",fontWeight:"500",media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},lg:{padding:"12px 16px",fontSize:"14px",fontWeight:"600",media:{mobile:{padding:"10px 14px",fontSize:"12px"}}}},Qt={default:{color:"color-gray-800",style:{backgroundColor:"transparent"},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800",style:{backgroundColor:"transparent"},transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"}},Bl={horizontal:{flexDirection:"row",gap:"8px",media:{mobile:{flexDirection:"column",gap:"4px"}}},vertical:{flexDirection:"column",gap:"4px"}},jo={active:{backgroundColor:"color-blue-50",color:"color-blue-700",fontWeight:"600",borderLeft:"3px solid",borderColor:"color-blue-600"},hover:{backgroundColor:"color-gray-100",transition:"background-color 0.2s ease"}},Ol=h.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default",triggerRefs:{current:{}}}),pm=({children:e,value:o})=>r.jsx(Ol.Provider,{value:o,children:e}),nr=()=>{const e=h.useContext(Ol);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},Zt=({children:e,views:o})=>{const{orientation:t}=nr(),n=t==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(n,{width:"100%",...Bl[t],transition:"background-color 0.2s ease, border-color 0.2s ease",borderRadius:"8px",...o==null?void 0:o.container,children:e})},Nl=h.createContext({itemValue:null,isDisabled:!1}),um=()=>{const e=h.useContext(Nl);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e},Rt=({item:e,value:o,isDisabled:t=!1,children:n,views:a})=>{var C;const{activeItemId:i,setActiveItemId:c,orientation:s,size:d,variant:g,onItemActivate:f}=nr(),m=(e==null?void 0:e.id)||o,p=i===m,u=(e==null?void 0:e.items)&&e.items.length>0,y=(e==null?void 0:e.disabled)||t,k=()=>{y||m&&(c(m),f&&f(m))},x=s==="horizontal"?l.Horizontal:l.Vertical;return n?r.jsx(Nl.Provider,{value:{itemValue:m||null,isDisabled:y},children:r.jsx(l.View,{width:"100%",cursor:y?"not-allowed":"pointer",opacity:y?.6:1,borderRadius:"8px",transition:"background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease",...Jt[d],...Qt[g],...p?jo.active:{},_hover:y?{}:jo.hover,...a==null?void 0:a.item,children:n})}):u&&e?r.jsxs(x,{width:"100%",flexDirection:"column",position:"relative",...a==null?void 0:a.item,children:[r.jsxs(ql,{itemId:e.id,disabled:e.disabled,views:a,children:[e.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:e.icon}),e.label]}),r.jsx(Ul,{itemId:e.id,children:r.jsx(Zt,{children:(C=e.items)==null?void 0:C.map(w=>r.jsx(Rt,{item:w},w.id))})})]}):e?r.jsxs(l.View,{as:e.href?"a":"div",href:e.href,onClick:k,cursor:e.disabled?"not-allowed":"pointer",opacity:e.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"8px",transition:"background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease",gap:"8px",...Jt[d],...Qt[g],...p?jo.active:{},_hover:e.disabled?{}:jo.hover,...a==null?void 0:a.item,children:[e.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:e.icon}),e.label]}):null},ql=({children:e,itemId:o,disabled:t,views:n})=>{const{activeItemId:a,toggleExpandedItem:i,isItemExpanded:c,size:s,variant:d,triggerRefs:g}=nr(),f=h.useRef(null),m=a===o,p=c(o);h.useEffect(()=>(f.current&&o&&(g.current[o]=f.current),()=>{o&&delete g.current[o]}),[o,g]);const u=y=>{y.preventDefault(),!t&&i(o)};return r.jsxs(l.View,{ref:f,onClick:u,cursor:t?"not-allowed":"pointer",opacity:t?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:8,transition:"background-color 0.2s ease",...Jt[s],...Qt[d],...m?jo.active:{},_hover:t?{}:jo.hover,...n==null?void 0:n.trigger,children:[r.jsx(l.View,{display:"flex",alignItems:"center",children:e}),r.jsx(l.View,{transition:"transform 0.2s ease",transform:p?"rotate(180deg)":"rotate(0deg)",...n==null?void 0:n.indicator,children:r.jsx(ge,{orientation:"down",widthHeight:16,color:"currentColor",filled:!0})})]})},Ul=({children:e,itemId:o,views:t})=>{const{isItemExpanded:n,orientation:a,triggerRefs:i}=nr(),c=h.useRef(null),[s,d]=h.useState({x:0,y:0,placement:a==="horizontal"?"bottom":"right"}),g=n(o);if(h.useEffect(()=>{if(g&&c.current&&o&&i.current[o]&&a==="horizontal"){const m=c.current.getBoundingClientRect(),p=i.current[o].getBoundingClientRect(),u=Math.max(m.width||200,200),y=Math.max(m.height||150,150),k=window.innerWidth,x=window.innerHeight,C={top:p.top,right:k-p.right,bottom:x-p.bottom,left:p.left},w=a==="horizontal"?[{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8},{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top}]:[{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top},{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8}],v=w.find(F=>F.fits);if(v){d({x:v.x,y:v.y,placement:v.placement});return}const S=w.reduce((F,W)=>W.space>F.space?W:F);let b=S.x,T=S.y;b+u>k&&(b=k-u-8),b<8&&(b=8),T+y>x&&(T=x-y-8),T<8&&(T=8),d({x:b,y:T,placement:S.placement})}},[g,a,o,i]),!g)return null;if(a==="vertical")return r.jsx(l.View,{paddingLeft:16,width:"100%",position:"relative",backgroundColor:"transparent",...t==null?void 0:t.container,children:e});const f={position:"fixed",left:s.x,top:s.y,zIndex:1e3};return r.jsx(l.View,{ref:c,role:"menu",minWidth:"200px",backgroundColor:"color-white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:f,...t==null?void 0:t.container,children:e})},ym=({href:e,children:o,views:t,underline:n,isExternal:a,iconSize:i,...c})=>{const{itemValue:s,isDisabled:d}=um(),{activeItemId:g,setActiveItemId:f,onItemActivate:m}=nr(),p=g===s,u=y=>{if(d){y.preventDefault();return}s&&(f(s),m&&m(s)),c.onClick&&c.onClick(y)};return r.jsx(l.View,{as:"a",href:d?void 0:e,onClick:u,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,width:"100%",display:"flex",alignItems:"center","aria-current":p?"page":void 0,"aria-disabled":d,"data-active":p?"":void 0,"data-disabled":d?"":void 0,...p?{fontWeight:"bold"}:{},...t==null?void 0:t.container,...c,children:o})},bm=({items:e,orientation:o,views:t,themeMode:n})=>{const a=o==="horizontal"?l.Horizontal:l.Vertical;return!e||e.length===0?null:r.jsx(a,{width:"100%",...Bl[o],...t==null?void 0:t.container,children:r.jsx(Zt,{views:t,children:e.map(i=>r.jsx(Rt,{item:i,views:t},i.id))})})},po=e=>{const o=pe("navigation",e),{items:t,children:n,orientation:a="vertical",size:i="md",variant:c="default",defaultActiveItemId:s=null,defaultExpandedItemIds:d=[],onItemActivate:g,views:f,...m}=o,{activeItemId:p,setActiveItemId:u,expandedItemIds:y,toggleExpandedItem:k,isItemExpanded:x,triggerRefs:C}=mm(s,d);return r.jsx(pm,{value:{activeItemId:p,setActiveItemId:u,expandedItemIds:y,toggleExpandedItem:k,isItemExpanded:x,orientation:a,size:i,variant:c,onItemActivate:g,triggerRefs:C},children:t?r.jsx(bm,{items:t,orientation:a,size:i,variant:c,views:f,...m}):n})};po.List=Zt,po.Item=Rt,po.Trigger=ql,po.Content=Ul,po.Link=ym;const Gl={},Yl=h.createContext({views:Gl,onRowClick:()=>{}}),xm=({children:e,views:o=Gl,onRowClick:t})=>r.jsx(Yl.Provider,{value:{views:o,onRowClick:t},children:e}),ao=()=>h.useContext(Yl),be={table:{width:"100%",color:"inherit",borderRadius:"8px",overflow:"hidden",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.06), 0px 1px 2px rgba(0, 0, 0, 0.04)",border:"1px solid",borderColor:"color-gray-200",transition:"box-shadow 0.2s ease",media:{mobile:{overflowX:"auto",display:"block",borderRadius:"4px"}}},thead:{backgroundColor:"color-gray-50",borderBottom:"1px solid",borderColor:"color-gray-200"},th:{padding:"12px 16px",fontWeight:"600",fontSize:"14px",color:"inherit",opacity:.72,textAlign:"left",flex:1,media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},td:{padding:"12px 16px",fontSize:"14px",borderBottom:"1px solid",borderColor:"color-gray-100",color:"inherit",flex:1,media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},tr:{flexDirection:"row",alignItems:"stretch",width:"100%",transition:"background-color 0.15s ease",_hover:{backgroundColor:"color-gray-50"},_focus:{outline:"none",backgroundColor:"color-gray-100"}},tfoot:{backgroundColor:"color-gray-50",fontWeight:"600",borderTop:"2px solid",borderColor:"color-gray-200"},caption:{margin:"8px 0",color:"inherit",opacity:.62,fontSize:"14px",fontStyle:"italic",media:{mobile:{fontSize:"12px"}}}};({...be.th},{...be.td}),{...be.tr},{...be.td},{...be.th},{...be.table},{...be.th},{...be.td},{...be.tr},{...be.tfoot},{...be.caption};const km=({children:e})=>r.jsx(l.View,{width:"100%",style:{overflowX:"auto"},children:e}),Kl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"table",...be.table,...o==null?void 0:o.table,...e,style:{borderCollapse:"collapse",...e.style||{}}})},Xl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"thead",textAlign:"left",...be.thead,...o==null?void 0:o.thead,...e})},Jl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"th",whiteSpace:"nowrap",...be.th,...o==null?void 0:o.th,...e})},Lr=e=>{const{views:o,onRowClick:t}=ao();return r.jsx(l.Element,{as:"tr",...be.tr,...o==null?void 0:o.tr,onClick:t,...e})},en=({isFirstColumn:e,...o})=>{const{views:t}=ao();return r.jsx(l.Element,{as:"td",whiteSpace:"nowrap",fontWeight:e?"500":"400",...be.td,...t==null?void 0:t.td,...o})},Ql=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"tbody",...be.tbody,...o==null?void 0:o.tbody,...e})},Zl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"tfoot",...be.tfoot,...o==null?void 0:o.tfoot,...e})},Rl=e=>{const{views:o}=ao();return r.jsx(l.Element,{as:"caption",...be.caption,...o==null?void 0:o.caption,...e})},Cm=({data:e,columns:o,footer:t,caption:n,themeMode:a})=>{const i=Math.max(o.length*140,320);return r.jsx(km,{children:r.jsxs(Kl,{role:"Table",minWidth:i,children:[n&&r.jsx(Rl,{children:n}),r.jsx(Xl,{children:r.jsx(Lr,{children:o.map(c=>r.jsx(Jl,{children:c.title},c.field))})}),r.jsx(Ql,{children:e.map((c,s)=>r.jsx(Lr,{children:o.map((d,g)=>r.jsx(en,{isFirstColumn:g===0,children:c[d.field]},d.field))},s))}),t&&r.jsx(Zl,{children:r.jsx(Lr,{children:t.map((c,s)=>r.jsx(en,{...c.props,children:c.value},s))})})]})})},je=({children:e,views:o,onClick:t})=>{const n=pe("table",{views:o,onClick:t});return r.jsx(xm,{views:n.views,onRowClick:n.onClick,children:e})};je.Head=Xl,je.HeadCell=Jl,je.Body=Ql,je.Row=Lr,je.Cell=en,je.Footer=Zl,je.Caption=Rl,je.Container=Kl,je.Template=Cm;const wm=(e,o,t)=>{const n=g=>g.value!==void 0?g.value:g.title,a=()=>{if(!(!e||e.length===0)){if(o!==void 0){const g=e.find(f=>n(f)===o);if(g)return g}return e[0]}},[i,c]=h.useState(a()),s=t!==void 0?e.find(g=>n(g)===t):i,d=g=>{t===void 0&&c(g)};return h.useEffect(()=>{if(t!==void 0)return;const g=a(),f=i&&e.some(m=>n(m)===n(i));g&&(!f||o!==void 0&&i&&n(i)!==o)?c(g):!g&&i&&c(void 0)},[e,o]),{activeTab:s,setActiveTab:d}},Sm=(e,o,t)=>{const[n,a]=h.useState(e||null);return{activeValue:o!==void 0?o:n,setActiveValue:s=>{o===void 0&&a(s),t&&t(s)}}},vm=h.memo(({tab:e,isActive:o,onClick:t,iconPosition:n="left",tabStyles:a,textStyles:i})=>{const c=()=>{switch(n){case"top":return"column";case"bottom":return"column-reverse";case"right":return"row-reverse";case"left":default:return"row"}},s=()=>["top","bottom"].includes(n)?"4px":"8px",d=e.icon&&h.isValidElement(e.icon)?h.cloneElement(e.icon,{strokeWidth:o?2.5:2}):e.icon;return r.jsxs(l.Element,{as:"div",role:"tab","aria-selected":o,tabIndex:o?0:-1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease",...a,flexDirection:c(),gap:s(),onClick:t,"data-state":o?"active":"inactive",children:[d&&r.jsx(l.Element,{children:d},o?"active-icon":"inactive-icon"),r.jsxs(l.Element,{display:"grid",alignItems:"center",justifyContent:"center",children:[r.jsx(l.Text,{...i,fontWeight:"600",visibility:"hidden",gridColumn:"1",gridRow:"1","aria-hidden":"true",children:e.title}),r.jsx(l.Text,{...i,fontWeight:o?"600":"500",gridColumn:"1",gridRow:"1",children:e.title})]})]})}),on=(e,o)=>{const t=o==="dark";return e==="segmented"?{header:{width:"fit-content",alignSelf:"flex-start",gap:6,padding:6,borderRadius:16,backgroundColor:"color-gray-100"},tab:{minHeight:44,padding:"0 22px",borderRadius:12,color:"color-gray-600",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-100",style:{backgroundColor:"transparent"}},activeTab:{backgroundColor:"color-white",color:"color-gray-900",boxShadow:t?"0 1px 3px rgba(0, 0, 0, 0.35)":"0 1px 2px rgba(0, 0, 0, 0.06)"},text:{fontSize:14,lineHeight:"20px",letterSpacing:"-0.01em"},activeText:{},content:{width:"100%"}}:e==="pill"?{header:{width:"100%",flexWrap:"wrap",gap:12},tab:{minHeight:44,padding:"0 22px",borderRadius:"999px",backgroundColor:"color-white",color:"color-gray-600",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200"},activeTab:{backgroundColor:"theme-primary",color:"color-white",borderColor:"theme-primary"},text:{fontSize:14,lineHeight:"20px",letterSpacing:"-0.01em",color:"inherit"},activeText:{color:"inherit"},content:{width:"100%"}}:{header:{width:"100%",gap:20,borderBottom:"none"},tab:{minHeight:44,padding:"0 4px",borderRadius:0,color:"color-gray-500",borderBottom:"3px solid",borderColor:"color-white",style:{backgroundColor:"transparent"}},activeTab:{color:"theme-primary",borderColor:"theme-primary"},text:{fontSize:14,lineHeight:"20px",letterSpacing:"-0.01em",color:"inherit"},activeText:{color:"inherit"},content:{width:"100%",paddingTop:12}}},Tm=({tabs:e=[],activeTab:o,handleTabClick:t,views:n={},renderTab:a,renderContent:i,variant:c="underline",iconPosition:s="left"})=>{const{themeMode:d}=l.useTheme(),g=on(c,d);return o?r.jsxs(l.Vertical,{width:"100%",height:"100%",...n.container,children:[r.jsx(l.Horizontal,{alignItems:"center",...g.header,...n.headerTabs,children:e.map(f=>{const m=(f.value!==void 0?f.value:f.title)===(o.value!==void 0?o.value:o.title),p=()=>t(f);return a?a(f,m,p):r.jsx(vm,{tab:f,isActive:m,onClick:p,iconPosition:s,tabStyles:{...g.tab,...n.tab,...m?g.activeTab:{},...m?n.activeTab:{}},textStyles:{...g.text,...n.title,...m?g.activeText:{},...m?n.activeText:{}}},f.title)})}),r.jsx(l.View,{height:"100%",...g.content,...n.content,children:i?i(o):o.content})]}):null},ei=h.createContext(null),rn=()=>{const e=h.useContext(ei);if(!e)throw new Error("useTabsContext must be used within a Tabs component");return e},Im=h.memo(({children:e,views:o})=>{var s;const{themeMode:t}=l.useTheme(),{variant:n="underline"}=rn(),a=on(n,t),i=wo("tabs"),c=Ne({container:(s=i.views)==null?void 0:s.headerTabs},o);return r.jsx(l.Horizontal,{alignItems:"center",...a.header,...c==null?void 0:c.container,children:e})}),Fm=h.memo(({value:e,children:o,disabled:t=!1,views:n})=>{var u,y;const{themeMode:a}=l.useTheme(),{activeValue:i,setActiveValue:c,variant:s="underline"}=rn(),d=i===e,g=on(s,a),f=wo("tabs"),m=Ne({trigger:(u=f.views)==null?void 0:u.tab,activeState:(y=f.views)==null?void 0:y.activeTab},n),p=h.useCallback(()=>{t||c(e)},[t,e,c]);return r.jsx(l.View,{cursor:t?"not-allowed":"pointer",opacity:t?.6:1,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",...g.tab,...d?g.activeTab:{},_hover:t?{}:s==="underline"?{color:"theme-primary"}:{opacity:.9},onClick:p,...m==null?void 0:m.trigger,...d?m==null?void 0:m.activeState:{},children:r.jsx(l.View,{...g.text,...d?g.activeText:{},children:o})})}),zm=h.memo(({value:e,children:o,views:t})=>{const{activeValue:n}=rn();return n!==e?null:r.jsx(l.View,{width:"100%",padding:"24px",...t==null?void 0:t.content,children:o})}),Mm=e=>{const o=pe("tabs",e),{tabs:t,views:n,defaultValue:a,onTabChange:i,renderTab:c,renderContent:s,variant:d="underline",iconPosition:g="left",value:f,onValueChange:m,children:p}=o,u=Sm(a,f,m),y=wm(t||[],a,f);if(p)return r.jsx(ei.Provider,{value:{...u,variant:d},children:p});if(t){const k=x=>{const C=w=>w.value!==void 0?w.value:w.title;(!y.activeTab||C(y.activeTab)!==C(x))&&(y.setActiveTab(x),i&&i(x))};return r.jsx(Tm,{tabs:t,views:n,activeTab:y.activeTab,handleTabClick:k,renderTab:c,renderContent:s,variant:d,iconPosition:g})}return null},Po=h.memo(Mm);Po.List=Im,Po.Trigger=Fm,Po.Content=zm;const Wm=e=>{const{children:o,_isInView:t=!1,alternateHighlightText:n=[],alternateAnimation:a=!1,alternateDuration:i=3e3,highlightText:c,highlightTypewriter:s=!1,highlightSlide:d=!1,highlightSlideDuration:g=500,highlightSlideStagger:f=50,highlightSlideSequential:m=!0}=e,[p,u]=h.useState(o),[y,k]=h.useState(c);return h.useEffect(()=>{if(!a||n.length===0||!t||typeof o!="string"||typeof c!="string")return u(o),k(c),()=>{};const x=o,C=c;let w=0;const v=b=>{const T=n[b],F=C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),W=new RegExp(F,"gi"),P=x.replace(W,T);u(P),k(T)};v(w);const S=setInterval(()=>{w=(w+1)%n.length,v(w)},i);return()=>clearInterval(S)},[a,n,i,c,o,t]),{finalDisplayedText:p,activeHighlightTarget:y,highlightTypewriter:s,highlightSlide:d,highlightSlideDuration:g,highlightSlideStagger:f,highlightSlideSequential:m}},Hm={xs:24,sm:32,md:48,lg:96,xl:110},jm={xl:{media:{mobile:{fontSize:48},tablet:{fontSize:96},desktop:{fontSize:110}}},lg:{media:{mobile:{fontSize:48},tablet:{fontSize:48},desktop:{fontSize:70}}},md:{media:{mobile:{fontSize:32},tablet:{fontSize:40},desktop:{fontSize:56}}},sm:{media:{mobile:{fontSize:20},tablet:{fontSize:24},desktop:{fontSize:32}}},xs:{media:{mobile:{fontSize:14},tablet:{fontSize:18},desktop:{fontSize:20}}}},Pm={underline:e=>({textDecoration:"underline",textDecorationColor:e,textDecorationThickness:"4px",textUnderlineOffset:"4px"}),background:e=>({backgroundColor:e,color:"color-white",padding:"0 8px",borderRadius:"4px"}),gradient:(e,o)=>({background:`linear-gradient(135deg, ${e}, ${o||e})`,backgroundClip:"text",WebkitBackgroundClip:"text !important",WebkitTextFillColor:"transparent",color:"transparent",display:"inline-block",textShadow:"none"}),outline:e=>({WebkitTextStroke:`1px ${e}`,WebkitTextFillColor:"transparent !important",color:"transparent",textShadow:"none"}),glow:e=>({color:e,textShadow:`0 0 10px ${e}80, 0 0 20px ${e}40, 0 0 30px ${e}20`}),solid:e=>({color:e}),default:()=>({})},Am=({text:e,typingSpeed:o=50,pauseTime:t=500,onComplete:n,showCursor:a=!0,cursorColor:i="currentColor",textStyle:c,textComponent:s,as:d,...g})=>{const f=s||l.Text,m=Array.isArray(e)?e:[e],[p,u]=h.useState(m.map(()=>"")),[y,k]=h.useState(!1),[x,C]=h.useState(0),[w,v]=h.useState(0);h.useEffect(()=>{u(m.map(()=>"")),k(!1),C(0),v(0)},[e]),h.useEffect(()=>{if(y){n&&n();return}const b=m[x];if(w>=b.length){if(x>=m.length-1){k(!0);return}const F=setTimeout(()=>{C(W=>W+1),v(0)},t);return()=>clearTimeout(F)}const T=setTimeout(()=>{u(F=>{const W=[...F];return W[x]=b.substring(0,w+1),W}),v(F=>F+1)},o);return()=>clearTimeout(T)},[m,x,w,y,n,t,o]);const S=b=>{if(!b||typeof b!="string")return b;const T=b.split("|");return T.length===1?b:T.map((F,W)=>r.jsxs(h.Fragment,{children:[F,W<T.length-1&&r.jsx("br",{})]},W))};return r.jsx(r.Fragment,{children:p.map((b,T)=>r.jsxs(h.Fragment,{children:[S(b),a&&T===x&&!y&&r.jsx(f,{as:"span",display:"inline-block",width:"0.1em",height:"1em",backgroundColor:i,animation:"blink 1s step-end infinite",verticalAlign:"text-bottom",marginLeft:"1px",...c})]},T))})},Vm=({text:e,duration:o=500,direction:t="up",stagger:n=50,sequential:a=!1,textStyle:i,as:c,wordProps:s,textComponent:d,...g})=>{const[f,m]=h.useState(e),[p,u]=h.useState("entering"),[y,k]=h.useState(0),x=d||l.Text,C=h.useRef(null),w=h.useRef(null);h.useEffect(()=>{e===f&&p==="visible"||e!==f&&(p==="entering"||p==="visible"?(C.current=e,u("exiting")):p==="exiting"&&(C.current=e))},[e,f,p]);const{lines:v,totalWordCount:S}=h.useMemo(()=>{const H=f.split("|").map(L=>L.trim().split(/\s+/).filter(O=>O.length>0)),j=H.reduce((L,O)=>L+O.length,0);return{lines:H,totalWordCount:j}},[f]),b=h.useMemo(()=>a?S*(o+n):(S-1)*n+o,[S,o,n,a]),T=h.useMemo(()=>a?S*(o+n):(S-1)*n+o,[S,o,n,a]);h.useEffect(()=>(w.current&&clearTimeout(w.current),p==="entering"?w.current=setTimeout(()=>{u("visible")},b+50):p==="exiting"&&(w.current=setTimeout(()=>{C.current!==null&&(m(C.current),C.current=null),k(A=>A+1),u("entering")},T+50)),()=>{w.current&&clearTimeout(w.current)}),[p,b,T]);const{style:F,...W}=s||{},P=t==="up",$=A=>a?A*(o+n):A*n,z=h.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"bottom",whiteSpace:"nowrap",...i}),[i]),E=h.useMemo(()=>({display:"inline-flex",flexDirection:"column",alignItems:"center"}),[]),V=h.useMemo(()=>({display:"block",whiteSpace:"nowrap"}),[]);let M=0;return r.jsx(l.Element,{as:"span",style:z,...g,children:r.jsx("span",{style:E,children:v.map((A,H)=>r.jsx("span",{style:V,children:A.map((j,L)=>{const O=M++,q=$(O),_=L===A.length-1;let B;const U=`${o}ms`,X=`${q}ms`;p==="entering"?B=P?l.Animation.slideInUp({duration:U,delay:X,timingFunction:"ease-out",fillMode:"both"}):l.Animation.slideInDown({duration:U,delay:X,timingFunction:"ease-out",fillMode:"both"}):p==="exiting"&&(B=P?{from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(-100%)",opacity:0},duration:U,delay:X,timingFunction:"ease-in",fillMode:"both"}:{from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(100%)",opacity:0},duration:U,delay:X,timingFunction:"ease-in",fillMode:"both"});const N={...F,display:"inline-block",marginRight:_?0:"0.25em",transform:p==="visible"?"translateY(0)":void 0,opacity:p==="visible"?1:void 0};return r.jsx(x,{as:"span",animate:B,...W,...N,children:j},`${y}-${H}-${L}`)})},`line-${H}`))})})};function oi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const tn=e=>{if(!e||typeof e!="string")return e;const o=e.split("|");return o.length===1?e:o.map((t,n)=>r.jsxs(h.Fragment,{children:[t,n<o.length-1&&r.jsx("br",{})]},n))},Em=({children:e,highlightText:o,highlightStyle:t="solid",highlightColor:n="theme-primary",highlightSecondaryColor:a,size:i="lg",views:c,highlightAnimate:s,animate:d,animationLoop:g=1,highlightAnimationLoop:f=1,highlightTypewriter:m=!1,highlightTypewriterDuration:p=3e3,highlightSlide:u=!1,highlightSlideDuration:y=500,highlightSlideStagger:k=50,highlightSlideSequential:x=!0,centered:C=!1,level:w=1,themeMode:v,responsive:S,alternateHighlightText:b,alternateAnimation:T,alternateDuration:F,_isInView:W,...P})=>{const{ref:$,inView:z}=l.useInView(),{finalDisplayedText:E,activeHighlightTarget:V,highlightTypewriter:M,highlightSlide:A,highlightSlideDuration:H,highlightSlideStagger:j,highlightSlideSequential:L}=Wm({children:e,highlightText:o,_isInView:z,highlightTypewriter:m,highlightSlide:u,highlightSlideDuration:y,highlightSlideStagger:k,highlightSlideSequential:x,alternateHighlightText:b,alternateAnimation:T,alternateDuration:F,...P}),O=Hm[i],q={fontFamily:"Mulish, Inter, Geist, system-ui, sans-serif",fontWeight:i==="xl"?700:600,letterSpacing:i==="xl"?"-1.5px":"-0.01em"},_=Pm[t](n,a),B=(J,Z)=>J&&(Array.isArray(J)?J.map(Q=>({...Q,iterationCount:Z.toString()})):{...J,iterationCount:Z.toString()}),U=B(d,g),X=B(s,f),N=typeof E=="string"?E:typeof e=="string"?e:"",D={ref:$,animate:z?U:void 0,as:`h${w}`,fontSize:O,...C?{textAlign:"center"}:{},...S?jm[i]:{},...q},K=J=>!z&&(M||A)?r.jsx("span",{style:{opacity:0},children:J}):M?r.jsx(Am,{text:J,typingSpeed:Math.max(30,p/(J.length*10)),cursorColor:"currentColor",..._}):A?r.jsx(Vm,{text:J,duration:H,stagger:j,sequential:L,direction:"up",wordProps:_}):tn(J);if(typeof N=="string"&&V){const J=Array.isArray(V)?new RegExp(`(${V.map(re=>oi(String(re))).join("|")})`,"gi"):new RegExp(`(${oi(String(V))})`,"gi"),Z=[];let Q=0,oe;for(;oe=J.exec(N);)oe.index>Q&&Z.push(N.substring(Q,oe.index)),Z.push({highlight:!0,text:oe[0]}),Q=oe.index+oe[0].length;return Q<N.length&&Z.push(N.substring(Q)),r.jsx(l.Element,{...D,...c==null?void 0:c.container,...P,children:Z.map((re,ae)=>typeof re=="string"?r.jsx(l.Text,{as:"span",display:"inline",...c==null?void 0:c.text,children:tn(re)},`text-${ae}`):r.jsx(l.Text,{as:"span",display:"inline",animate:z?X:void 0,...A?{}:_,...c==null?void 0:c.highlight,children:K(re.text)},`highlight-${ae}`))})}return t&&!V?r.jsx(l.Element,{...D,...P,...c==null?void 0:c.container,children:r.jsx(l.Text,{as:"span",display:"inline",animate:z?X:void 0,...A?{}:_,...c==null?void 0:c.highlight,children:K(N)})}):r.jsx(l.Text,{...D,...P,...c==null?void 0:c.container,...c==null?void 0:c.text,children:tn(N)})},ri=e=>r.jsx(Em,{...e}),ti=({items:e,shape:o,variant:t,onToggleChange:n})=>{const{activeToggles:a,setActiveToggles:i}=zl();return r.jsx(Ml,{items:e,shape:o,variant:t,activeToggles:a,setActiveToggles:i,onToggleChange:n})},Dm=({items:e,onChange:o})=>{const[t,n]=h.useState(e),[a,i]=h.useState(null),[c,s]=h.useState(null),d=h.useRef({x:0,y:0}),g=h.useRef([]),f=h.useCallback((u,y)=>{u.preventDefault(),document.body.style.cursor="grabbing";const k="touches"in u?u.touches[0].clientX:u.clientX,x="touches"in u?u.touches[0].clientY:u.clientY;d.current={x:k,y:x},s(y),i(t[y])},[t]),m=h.useCallback(u=>{if(c===null)return;const y="touches"in u?u.touches[0].clientX:u.clientX,k="touches"in u?u.touches[0].clientY:u.clientY,x=g.current[c];if(!x)return;const C=y-d.current.x,w=k-d.current.y;x.style.transform=`translate(${C}px, ${w}px)`,x.style.zIndex="1000";const v=g.current.findIndex((S,b)=>{if(!S||b===c)return!1;const T=S.getBoundingClientRect();return k>=T.top&&k<=T.bottom});if(v!==-1&&v!==c){const S=[...t],[b]=S.splice(c,1);S.splice(v,0,b),n(S),s(v),o==null||o(S),d.current={x:y,y:k}}},[c,t,o]),p=h.useCallback(()=>{document.body.style.cursor="",g.current.forEach(u=>{u&&(u.style.transform="",u.style.zIndex="")}),s(null),i(null)},[c]);return h.useEffect(()=>{if(typeof(window==null?void 0:window.addEventListener)=="function")return c!==null&&(window.addEventListener("mousemove",m),window.addEventListener("touchmove",m),window.addEventListener("mouseup",p),window.addEventListener("touchend",p)),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",m),window.removeEventListener("mouseup",p),window.removeEventListener("touchend",p)}},[c,m,p]),{items:t,draggedItem:a,draggedIndex:c,itemRefs:g,handleDragStart:f}},$m=({items:e,renderItem:o,containerProps:t,itemProps:n,draggedIndex:a,itemRefs:i,handleDragStart:c,views:s,themeMode:d})=>r.jsx(l.View,{overflow:"hidden",position:"relative",...t,...s==null?void 0:s.container,children:e.map((g,f)=>r.jsx(l.View,{ref:m=>{i.current[f]=m},onMouseDown:m=>c(m,f),onTouchStart:m=>c(m,f),position:"relative",cursor:"grab",transition:"transform 0.2s",...n,...s==null?void 0:s.item,children:o?o(g,f):g},f))}),ni=e=>{const{items:o,draggedIndex:t,itemRefs:n,handleDragStart:a}=Dm(e);return r.jsx($m,{...e,items:o,draggedIndex:t,itemRefs:n,handleDragStart:a})},Lm=ni,_m=({onFileSelect:e,onMultipleFileSelect:o,validateFile:t,accept:n,multiple:a,disabled:i,previewUrl:c})=>{const[s,d]=h.useState(!1),[g,f]=h.useState(null),m=h.useRef(null),p=c!==void 0?c:g;h.useEffect(()=>()=>{g&&URL.revokeObjectURL(g)},[g]);const u=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!i&&d(!0)},[i]),y=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!i&&d(!1)},[i]),k=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!i&&d(!0)},[i]),x=h.useCallback(S=>{if(!S||S.length===0)return;const b=Array.from(S);if(!a&&b.length>0){const T=b[0];if(T.type.startsWith("image/")){const F=URL.createObjectURL(T);f(W=>(W&&URL.revokeObjectURL(W),F))}else f(null)}a?o&&o(b):b.length>0&&e&&e(b[0])},[a,o,e]),C=h.useCallback(S=>{S.preventDefault(),S.stopPropagation(),d(!1),!i&&S.dataTransfer.files&&S.dataTransfer.files.length>0&&(x(S.dataTransfer.files),S.dataTransfer.clearData())},[i,x]),w=h.useCallback(()=>{var S;i||(S=m.current)==null||S.click()},[i]),v=h.useCallback(S=>{x(S.target.files),S.target.value&&(S.target.value="")},[x]);return{isDragActive:s,handleDragEnter:u,handleDragLeave:y,handleDragOver:k,handleDrop:C,handleClick:w,handleFileChange:v,inputRef:m,preview:p}},Bm={position:"absolute",top:"-4px",right:"-4px",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",border:"none",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"12px",zIndex:10,_hover:{backgroundColor:"rgba(0, 0, 0, 0.7)"}},ai=({files:e,sandboxId:o,onRemove:t,layout:n="inline",maxHeight:a="120px",showPreviews:i=!1,views:c={}})=>{if(e.length===0)return null;const s=h.useCallback(g=>g<1024?`${g} B`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:`${(g/(1024*1024)).toFixed(1)} MB`,[]),d=h.useCallback(g=>g.type.startsWith("image/")?{backgroundColor:"#DBEAFE",color:"#2563EB"}:g.type.startsWith("video/")?{backgroundColor:"#EDE9FE",color:"#7C3AED"}:g.type.startsWith("audio/")?{backgroundColor:"#DCFCE7",color:"#16A34A"}:{backgroundColor:"#E2E8F0",color:"#475569"},[]);return r.jsx(l.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:a,overflowY:"auto",...c==null?void 0:c.container,children:e.map((g,f)=>{const m=typeof URL<"u"&&typeof URL.createObjectURL=="function"&&typeof Blob<"u"&&g instanceof Blob,p=(g==null?void 0:g.path)||(g==null?void 0:g.url)||(i&&m?URL.createObjectURL(g):""),u=g.type.startsWith("image/"),y=g.type.startsWith("video/"),k=g.type.startsWith("audio/"),x=d(g);return i?r.jsx(l.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:i&&r.jsxs(Fe,{children:[r.jsxs(Fe.Trigger,{children:[u&&r.jsx(l.Image,{src:p,alt:g.name,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),y&&r.jsx(l.View,{as:"video",src:p,alt:g.name,controls:!1,muted:!0,width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover"}),k&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(So,{widthHeight:24,color:"color-black"})}),!u&&!y&&!k&&r.jsx(l.Center,{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"color-gray-100",children:r.jsx(io,{widthHeight:24,color:"color-black"})}),t&&r.jsx(l.Button,{...Bm,onClick:C=>{C.stopPropagation(),t(f)},"aria-label":`Remove ${g.name}`,children:"×"})]}),r.jsxs(Fe.Content,{children:[u&&r.jsx(l.Image,{src:p,alt:g.name,maxWidth:"100%"}),y&&r.jsx(l.View,{as:"video",src:p,controls:!0,maxWidth:"100%"}),k&&r.jsx(l.View,{as:"audio",src:p,controls:!0,width:"100%"}),r.jsxs(l.Text,{marginTop:"4px",maxLines:1,width:"100%",...c==null?void 0:c.name,children:[g.name," (",s(g.size),")"]})]})]})},f):r.jsxs(l.Horizontal,{alignItems:"center",gap:"8px",padding:"6px 10px 6px 8px",borderRadius:"9999px",border:"1px solid #E2E8F0",backgroundColor:"color-white",maxWidth:"100%",animate:{from:{opacity:0,scale:.96},to:{opacity:1,scale:1}},animationDuration:.2,...c==null?void 0:c.item,children:[r.jsx(l.Center,{width:"22px",height:"22px",minWidth:"22px",borderRadius:"9999px",backgroundColor:x.backgroundColor,color:x.color,children:k?r.jsx(So,{widthHeight:12,color:"currentColor"}):r.jsx(io,{widthHeight:12,color:"currentColor"})}),r.jsxs(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-600",maxLines:1,maxWidth:"220px",...c==null?void 0:c.name,children:[g.name," · ",s(g.size)]}),t&&r.jsx(l.View,{as:"button",type:"button",onClick:()=>t(f),"aria-label":`Remove ${g.name}`,display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",minWidth:"16px",border:"none",backgroundColor:"transparent",color:"color-gray-400",padding:0,cursor:"pointer",transition:"color 0.2s ease, opacity 0.2s ease",_hover:{color:"color-gray-600"},children:"×"})]},f)})})},Om=({children:e,text:o="Drop files here or click to upload",textProps:t,containerProps:n,disabled:a,accept:i,multiple:c,isDragActive:s,handleDragEnter:d,handleDragLeave:g,handleDragOver:f,handleDrop:m,handleClick:p,handleFileChange:u,inputRef:y,preview:k,imageProps:x,selectedFiles:C,onRemove:w})=>r.jsxs(l.Center,{width:"100%",minHeight:"200px",height:C&&C.length>0?"auto":"200px",borderWidth:2,borderStyle:"dashed",borderColor:s?"theme-primary":"color-gray-300",borderRadius:12,backgroundColor:s?"#EFF6FF":"color-gray-50",flexDirection:"column",cursor:a?"not-allowed":"pointer",opacity:a?.6:1,onClick:p,onDragEnter:d,onDragLeave:g,onDragOver:f,onDrop:m,transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease",overflow:"hidden",position:"relative",padding:16,...n,children:[r.jsx("input",{type:"file",ref:y,onChange:u,accept:i,multiple:c,style:{display:"none"},disabled:a}),k&&!c?r.jsxs(l.View,{width:"100%",height:"200px",position:"relative",children:[r.jsx(l.Image,{src:k,alt:"Preview",width:"100%",height:"100%",objectFit:"contain",...x}),r.jsx(l.Center,{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.3)",opacity:0,_hover:{opacity:1},transition:"opacity 0.2s",children:r.jsx(l.Text,{color:"white",fontWeight:600,children:"Click to replace"})})]}):r.jsxs(l.View,{flexDirection:"column",alignItems:"center",width:"100%",children:[e||r.jsxs(l.View,{flexDirection:"column",alignItems:"center",width:"100%",children:[r.jsx(yt,{widthHeight:40,color:s?"theme-primary":"color-gray-500"}),r.jsx(l.Text,{marginTop:16,color:s?"theme-primary":"color-gray-600",fontWeight:500,textAlign:"center",...t,children:o})]}),c&&C&&C.length>0&&r.jsx(l.View,{marginTop:16,width:"100%",children:r.jsx(ai,{files:C,onRemove:w||(()=>{}),showPreviews:!0,layout:"inline",maxHeight:"160px"})})]})]}),Nm=e=>{const o=_m(e);return r.jsx(Om,{...e,...o})},qm=(e=!1)=>{const[o,t]=h.useState(e),[n,a]=h.useState(null);return h.useEffect(()=>{const i=d=>{!d.composedPath().some(m=>(m==null?void 0:m.id)==="dropdown-menu"||(m==null?void 0:m.id)==="dropdown-trigger")&&o&&(t(!1),a(null))},c=()=>{o&&(t(!1),a(null))},s=d=>{d.key==="Escape"&&o&&(t(!1),a(null))};if(!(typeof(document==null?void 0:document.addEventListener)!="function"||typeof(window==null?void 0:window.addEventListener)!="function"))return document.addEventListener("mousedown",i),window.addEventListener("resize",c),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousedown",i),window.removeEventListener("resize",c),document.removeEventListener("keydown",s)}},[o]),{isOpen:o,setIsOpen:t,activeSubmenuId:n,setActiveSubmenuId:a}},Um={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Gm={default:{backgroundColor:"color-white",color:"color-gray-800"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},Ym={hover:{backgroundColor:"color-gray-100"}},li=h.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null}}),Km=({children:e,value:o})=>r.jsx(li.Provider,{value:o,children:e}),nn=()=>{const e=h.useContext(li);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},ii=({children:e,views:o,...t})=>{const{isOpen:n,setIsOpen:a,triggerRef:i}=nn(),c=s=>{s.stopPropagation(),a(!n)};return r.jsx(l.View,{ref:i,id:"dropdown-trigger",onClick:c,cursor:"pointer",position:"relative",display:"inline-block",...o==null?void 0:o.container,...t,children:e})},an=({items:e,side:o="bottom",align:t="start",views:n,...a})=>{const{isOpen:i,variant:c,triggerRef:s}=nn(),d=h.useRef(null),{ref:g,relation:f}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[m,p]=h.useState({x:0,y:0,placement:o});if(h.useEffect(()=>{s.current&&g&&(g.current=s.current)},[s,g,i]),h.useEffect(()=>{if(i&&d.current&&s.current){const k=s.current.getBoundingClientRect();let x=o;f&&(o==="bottom"&&f.space.vertical==="top"?x="top":o==="top"&&f.space.vertical==="bottom"?x="bottom":o==="right"&&f.space.horizontal==="left"?x="left":o==="left"&&f.space.horizontal==="right"&&(x="right"));let C=0,w=0;switch(x){case"bottom":C=t==="start"?k.left:t==="end"?k.right-180:k.left+k.width/2-90,w=k.bottom+8;break;case"top":C=t==="start"?k.left:t==="end"?k.right-180:k.left+k.width/2-90,w=k.top-8;break;case"right":C=k.right+8,w=t==="start"?k.top:t==="end"?k.bottom-100:k.top+k.height/2-50;break;case"left":C=k.left-8,w=t==="start"?k.top:t==="end"?k.bottom-100:k.top+k.height/2-50;break}p({x:C,y:w,placement:x})}},[i,o,t,s,f]),!i)return null;const y=(()=>{const k={position:"fixed",left:m.x,top:m.y,zIndex:1e3};switch(m.placement){case"top":return{...k,transform:"translateY(-100%)"};case"left":return{...k,transform:"translateX(-100%)"};case"bottom":case"right":default:return k}})();return r.jsx(l.View,{ref:d,id:"dropdown-menu",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:y,...Gm[c],...n==null?void 0:n.menu,...a,children:e.map((k,x)=>k.divider?r.jsx(si,{views:n},`divider-${x}`):r.jsx(ci,{item:k,views:n},k.id))})},ci=({item:e,views:o,...t})=>{const{activeSubmenuId:n,setActiveSubmenuId:a,size:i}=nn(),[c,s]=h.useState(!1),d=e.items&&e.items.length>0,g=n===e.id,f=h.useRef(null),m=()=>{s(!0),d&&a(e.id)},p=()=>{s(!1)},u=y=>{y.stopPropagation(),!e.disabled&&!d&&e.onClick&&e.onClick()};return r.jsxs(l.View,{ref:f,display:"flex",alignItems:"center",cursor:e.disabled?"not-allowed":"pointer",opacity:e.disabled?.5:1,position:"relative",...Um[i],_hover:e.disabled?{}:Ym.hover,backgroundColor:c&&!e.disabled?"color-gray-100":"transparent",onMouseEnter:m,onMouseLeave:p,onClick:u,...o==null?void 0:o.item,...t,children:[e.icon&&r.jsx(l.View,{marginRight:8,...o==null?void 0:o.icon,children:e.icon}),r.jsx(l.View,{flexGrow:1,children:e.label}),d&&r.jsx(l.View,{marginLeft:8,...o==null?void 0:o.submenuIndicator,children:r.jsx(ge,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})}),g&&d&&r.jsx(an,{items:e.items||[],side:"right",align:"start",views:o})]})},si=({views:e,...o})=>r.jsx(l.View,{height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",...e==null?void 0:e.divider,...o}),Xm=({trigger:e,items:o,side:t="bottom",align:n="start",views:a,themeMode:i,...c})=>r.jsxs(l.View,{position:"relative",display:"inline-block",...a==null?void 0:a.container,...c,children:[r.jsx(ii,{views:a,children:e}),r.jsx(an,{items:o,side:t,align:n,views:a})]}),ar=({trigger:e,items:o,size:t="md",variant:n="default",side:a="bottom",align:i="start",defaultOpen:c=!1,views:s,...d})=>{const{isOpen:g,setIsOpen:f,activeSubmenuId:m,setActiveSubmenuId:p}=qm(c),u=h.useRef(null);return r.jsx(Km,{value:{isOpen:g,setIsOpen:f,activeSubmenuId:m,setActiveSubmenuId:p,size:t,variant:n,triggerRef:u},children:r.jsx(Xm,{trigger:e,items:o,side:a,align:i,views:s,...d})})};ar.Trigger=ii,ar.Content=an,ar.Item=ci,ar.Divider=si;const Jm=e=>{const{value:o,defaultValue:t="",onChange:n,onChangeComplete:a,isOpen:i,onOpen:c,onClose:s,closeOnSelect:d=!0,maxRecentColors:g=8,showRecentColors:f=!0}=e,[m,p]=h.useState(i??!1),[u,y]=h.useState(o??t),[k,x]=h.useState(""),[C,w]=h.useState([]),v=h.useRef(null),S=h.useRef(null);h.useEffect(()=>{o!==void 0&&y(o)},[o]),h.useEffect(()=>{i!==void 0&&p(i)},[i]),h.useEffect(()=>{if(f&&typeof localStorage<"u"){const z=localStorage.getItem("colorPicker-recentColors");if(z)try{w(JSON.parse(z))}catch{}}},[f]),h.useEffect(()=>{if(typeof document>"u"||typeof document.addEventListener!="function")return;const z=E=>{m&&v.current&&S.current&&!v.current.contains(E.target)&&!S.current.contains(E.target)&&$()};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[m]);const b=h.useCallback(z=>{f&&w(E=>{const V=E.filter(A=>A!==z),M=[z,...V].slice(0,g);return typeof localStorage<"u"&&localStorage.setItem("colorPicker-recentColors",JSON.stringify(M)),M})},[f,g]),T=h.useCallback(()=>{const z=!m;p(z),z?c==null||c():s==null||s()},[m,c,s]),F=h.useCallback(z=>{y(z),b(z),n==null||n(z),a==null||a(z),d&&(p(!1),s==null||s())},[n,a,d,s,b]),W=h.useCallback(z=>{x(z)},[]),P=h.useCallback(()=>{k&&(F(k),x(""))},[k,F]),$=h.useCallback(()=>{p(!1),s==null||s()},[s]);return{isOpen:m,selectedColor:u,recentColors:C,customColor:k,handleToggle:T,handleColorSelect:F,handleCustomColorChange:W,handleCustomColorSubmit:P,handleClose:$,triggerRef:v,dropdownRef:S}},Ao={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},dropdown:{position:"absolute",top:"calc(100% + 8px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.14)",padding:"16px",minWidth:"320px"},colorGrid:{display:"grid",gridTemplateColumns:"repeat(6, 36px)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"12px",marginBottom:"16px"},customInput:{marginBottom:"12px"},recentColors:{borderTop:"1px solid color-gray-100",paddingTop:"12px"}},Qm={xs:{height:"32px",fontSize:"12px",padding:"4px 8px"},sm:{height:"40px",fontSize:"12px",padding:"8px 10px"},md:{height:"44px",fontSize:"14px",padding:"10px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 14px"},xl:{height:"56px",fontSize:"18px",padding:"14px 16px"}},Zm={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Rm={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-900"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-900"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-900"}},ep=[{name:"Blue",value:"#1D4ED8",category:"primary"},{name:"Purple",value:"#A855F7",category:"primary"},{name:"Green",value:"#22C55E",category:"primary"},{name:"Orange",value:"#F97316",category:"primary"},{name:"Red",value:"#EF4444",category:"primary"},{name:"Ink",value:"#111827",category:"neutral"}],op=typeof navigator<"u"&&navigator.product!=="ReactNative"&&typeof document<"u"&&typeof document.createElement=="function",rp=({id:e,name:o,label:t,placeholder:n="Select a color",helperText:a,views:i={},size:c="md",shape:s="default",variant:d="default",error:g=!1,isDisabled:f=!1,isReadOnly:m=!1,predefinedColors:p=ep,showCustomInput:u=!0,showRecentColors:y=!0,isOpen:k,selectedColor:x,recentColors:C,customColor:w,handleToggle:v,handleColorSelect:S,handleCustomColorChange:b,handleCustomColorSubmit:T,handleClose:F,triggerRef:W,dropdownRef:P,onChange:$,onChangeComplete:z,onOpen:E,onClose:V,colorFormat:M,maxRecentColors:A,closeOnSelect:H,defaultValue:j,value:L,...O})=>{const q={...Ao.container,...i==null?void 0:i.container},_={...Ao.trigger,...Qm[c],...Zm[s],...Rm[d],...g&&{borderColor:"color-red-500"},...f&&{opacity:.6,cursor:"not-allowed"},...!f&&!m&&{_hover:{borderColor:"color-gray-400"}},...i==null?void 0:i.trigger},B={...Ao.dropdown,...i==null?void 0:i.dropdown},U={...Ao.colorGrid,...i==null?void 0:i.colorGrid},X={...Ao.recentColors,...i==null?void 0:i.recentColors},N=x||"color-gray-200";return r.jsxs(l.View,{...q,...O,children:[t&&r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",fontWeight:"500",color:"color-gray-600",marginBottom:"6px",...i==null?void 0:i.label,children:t}),r.jsxs(l.View,{ref:W,onClick:f||m?void 0:v,..._,children:[r.jsxs(l.Horizontal,{alignItems:"center",gap:8,children:[r.jsx(l.View,{width:"24px",height:"24px",borderRadius:"8px",backgroundColor:N,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200"}),r.jsx(l.Text,{color:x?"color-gray-900":"color-gray-500",fontSize:"inherit",children:x||n})]}),!m&&!f&&r.jsx(ge,{widthHeight:16,color:"color-gray-500",orientation:k?"up":"down"})]}),k&&r.jsxs(l.View,{ref:P,...B,children:[r.jsx(l.View,{...U,children:p.map((D,K)=>r.jsx(l.View,{width:"36px",height:"36px",borderRadius:"8px",backgroundColor:D.value,borderWidth:"1px",borderStyle:"solid",borderColor:x===D.value?"theme-primary":"transparent",cursor:"pointer",onClick:()=>S(D.value),title:D.name,_hover:{transform:"scale(1.05)",borderColor:"color-gray-300"},...i==null?void 0:i.colorSwatch},K))}),u&&r.jsxs(l.View,{...Ao.customInput,...i==null?void 0:i.customInput,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",marginBottom:"10px",children:[op&&r.jsx("input",{type:"color",value:w||"#1D4ED8",onChange:D=>{const K=D.target.value;b(K),S(K)},style:{width:"36px",height:"36px",border:"1px solid #E5E7EB",borderRadius:"8px",cursor:"pointer",backgroundColor:"transparent"},title:"Pick a color"}),r.jsx(l.Text,{fontSize:"12px",lineHeight:"16px",color:"color-gray-500",children:"HEX"})]}),r.jsx(We,{placeholder:"#1D4ED8",value:w,onChange:D=>{var K;return b(typeof D=="string"?D:((K=D==null?void 0:D.target)==null?void 0:K.value)??"")},onKeyPress:D=>{D.key==="Enter"&&T()},size:"sm",right:w&&r.jsx(l.View,{width:"18px",height:"18px",borderRadius:"6px",backgroundColor:w,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",cursor:"pointer",onClick:T})})]}),y&&C.length>0&&r.jsxs(l.View,{...X,children:[r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",fontWeight:"500",color:"color-gray-500",marginBottom:"8px",children:"Recent Colors"}),r.jsx(l.Horizontal,{gap:8,flexWrap:"wrap",children:C.map((D,K)=>r.jsx(l.View,{width:"24px",height:"24px",borderRadius:"8px",backgroundColor:D,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>S(D),title:D,_hover:{transform:"scale(1.05)",borderColor:"color-gray-300"}},K))})]})]}),a&&r.jsx(l.Text,{fontSize:"11px",lineHeight:"16px",color:g?"color-red-500":"color-gray-500",marginTop:"4px",...i==null?void 0:i.helperText,children:a})]})},di=e=>{const o=Jm(e);return r.jsx(rp,{...o,...e})},tp=e=>{const o=Pl(e);return r.jsx(Al,{...o,...e})},np=e=>{const o=Hl(e);return r.jsx(jl,{...o,...e})},gi={"to-right":"to right","to-left":"to left","to-bottom":"to bottom","to-top":"to top","to-top-right":"to top right","to-top-left":"to top left","to-bottom-right":"to bottom right","to-bottom-left":"to bottom left"},_r={center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-right":"top right","top-left":"top left","bottom-right":"bottom right","bottom-left":"bottom left"},ap={linear:[{color:"color-blue-500",position:"0%"},{color:"color-purple-500",position:"100%"}],radial:[{color:"color-blue-500",position:"0%"},{color:"color-purple-500",position:"100%"}],conic:[{color:"color-red-500",position:"0deg"},{color:"color-yellow-500",position:"90deg"},{color:"color-green-500",position:"180deg"},{color:"color-blue-500",position:"270deg"},{color:"color-red-500",position:"360deg"}]},lp=(e,o,t,n,a)=>{const i=o.map(c=>`${c.color} ${c.position||""}`).join(", ");switch(e){case"linear":return`linear-gradient(${t&&gi[t]?gi[t]:t||"to right"}, ${i})`;case"radial":const s=a&&_r[a]?_r[a]:a||"center";return`radial-gradient(${n||"circle"} at ${s}, ${i})`;case"conic":return`conic-gradient(from 0deg at ${a&&_r[a]?_r[a]:a||"center"}, ${i})`;default:return`linear-gradient(to right, ${i})`}},ip={linear:{backgroundSize:"200% 200%",transition:"background-position 3s ease-in-out",animate:{from:{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},to:{backgroundPosition:"0% 50%"}}},radial:{backgroundSize:"100% 100%",transition:"background-position 3s ease-in-out, background-size 3s ease-in-out",animate:{from:{backgroundPosition:"center",backgroundSize:"100% 100%"},"50%":{backgroundSize:"120% 120%"},to:{backgroundPosition:"center",backgroundSize:"100% 100%"}}},conic:{transition:"transform 3s linear",animate:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}},hi={container:{position:"relative",overflow:"hidden",borderRadius:"8px",transition:"border-radius 0.2s ease, opacity 0.2s ease"},content:{position:"relative",zIndex:1,width:"100%",height:"100%",padding:"16px"}},cp=({type:e="linear",direction:o="to-right",shape:t="circle",position:n="center",from:a,to:i,colors:c,animate:s=!1,animationDuration:d=3,children:g,views:f,themeMode:m,...p})=>{const u=h.useMemo(()=>c&&c.length>0?c:a&&i?[{color:a,position:"0%"},{color:i,position:"100%"}]:ap[e],[c,a,i,e]),y=h.useMemo(()=>{const x=u.map(C=>({...C,color:C.color}));return lp(e,x,o,t,n)},[e,u,o,t,n]),k=h.useMemo(()=>{if(!s)return{};const x=ip[e];return{...x,transition:x.transition.replace("3s",`${d}s`),animationDuration:`${d}s`,animationIterationCount:"infinite",animationTimingFunction:e==="conic"?"linear":"ease-in-out"}},[s,d,e]);return r.jsx(l.View,{background:y,...hi.container,...k,...f==null?void 0:f.container,...p,children:g&&r.jsx(l.View,{...hi.content,...f==null?void 0:f.content,children:g})})},fi=e=>r.jsx(cp,{...e}),sp=(e=null,o=null)=>{const[t,n]=h.useState(e),[a,i]=h.useState(o),c=d=>a===d,s=d=>{i(g=>g===d?null:d)};return h.useEffect(()=>{const d=f=>{!f.composedPath().some(u=>(u==null?void 0:u.id)==="menubar-content"||(u==null?void 0:u.id)==="menubar-trigger")&&a!==null&&i(null)},g=f=>{f.key==="Escape"&&a!==null&&i(null)};if(typeof(document==null?void 0:document.addEventListener)=="function")return document.addEventListener("mousedown",d),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",g)}},[a]),{activeMenuId:t,setActiveMenuId:n,openMenuId:a,setOpenMenuId:i,isMenuOpen:c,toggleMenu:s}},mi={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},dp={default:{backgroundColor:"transparent",color:"color-gray-800"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},gp={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Br={active:{backgroundColor:"color-gray-200",fontWeight:"bold"},hover:{backgroundColor:"color-gray-100"},disabled:{opacity:.5,cursor:"not-allowed"}},pi=h.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default",triggerRefs:{current:{}}}),Or=()=>h.useContext(pi),hp=({value:e,children:o})=>r.jsx(pi.Provider,{value:e,children:o}),ui=({children:e,orientation:o="horizontal",size:t="md",variant:n="default",views:a,...i})=>{const c=o==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(c,{role:"menubar","aria-orientation":o,...gp[o],...dp[n],...a==null?void 0:a.container,...i,children:e})},yi=({children:e,id:o,disabled:t=!1,views:n})=>{const{orientation:a}=Or(),i=a==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(i,{role:"none",position:"relative",opacity:t?.5:1,pointerEvents:t?"none":"auto",...n==null?void 0:n.menu,children:h.Children.map(e,c=>h.isValidElement(c)?h.cloneElement(c,{...c.props,menuId:o}):c)})},bi=({children:e,menuId:o,disabled:t=!1,views:n})=>{const{activeMenuId:a,setActiveMenuId:i,toggleMenu:c,isMenuOpen:s,size:d,triggerRefs:g}=Or(),f=h.useRef(null),m=a===o,p=s(o);h.useEffect(()=>(f.current&&o&&(g.current[o]=f.current),()=>{o&&delete g.current[o]}),[o,g]);const u=()=>{t||(i(o),c(o))};return r.jsx(l.View,{ref:f,id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":p,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between",...mi[d],...m?Br.active:{},...t?Br.disabled:{},_hover:t?{}:Br.hover,onClick:u,...n==null?void 0:n.trigger,children:e})},xi=({children:e,menuId:o,views:t})=>{const{isMenuOpen:n,orientation:a,triggerRefs:i}=Or(),c=h.useRef(null),[s,d]=h.useState({x:0,y:0,placement:a==="horizontal"?"bottom":"right"}),g=n(o);if(h.useEffect(()=>{if(g&&c.current&&o&&i.current[o]){const m=c.current.getBoundingClientRect(),p=i.current[o].getBoundingClientRect(),u=Math.max(m.width||200,200),y=Math.max(m.height||150,150),k=window.innerWidth,x=window.innerHeight,C={top:p.top,right:k-p.right,bottom:x-p.bottom,left:p.left},w=a==="horizontal"?[{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8},{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top}]:[{placement:"right",space:C.right,fits:C.right>=u+8,x:p.right+8,y:p.top},{placement:"left",space:C.left,fits:C.left>=u+8,x:p.left-u-8,y:p.top},{placement:"bottom",space:C.bottom,fits:C.bottom>=y+8,x:p.left,y:p.bottom+8},{placement:"top",space:C.top,fits:C.top>=y+8,x:p.left,y:p.top-y-8}],v=w.find(F=>F.fits);if(v){d({x:v.x,y:v.y,placement:v.placement});return}const S=w.reduce((F,W)=>W.space>F.space?W:F);let b=S.x,T=S.y;b+u>k&&(b=k-u-8),b<8&&(b=8),T+y>x&&(T=x-y-8),T<8&&(T=8),d({x:b,y:T,placement:S.placement})}},[g,a,o,i]),!g)return null;const f={position:"fixed",left:s.x,top:s.y,zIndex:1e3};return r.jsx(l.View,{ref:c,id:"menubar-content",role:"menu",minWidth:"200px",backgroundColor:"color-white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:f,...t==null?void 0:t.content,children:e})},ki=({children:e,icon:o,disabled:t=!1,onClick:n,views:a})=>{const{size:i}=Or(),c=()=>{t||!n||n()};return r.jsxs(l.View,{role:"menuitem",cursor:t?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:t?.5:1,...mi[i],_hover:t?{}:Br.hover,onClick:c,...a==null?void 0:a.item,children:[o&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:o}),e]})},Ci=({views:e})=>r.jsx(l.View,{role:"separator",height:"1px",backgroundColor:"color-gray-200",margin:"4px 0",...e==null?void 0:e.separator}),fp=({items:e,orientation:o,size:t,variant:n,views:a,themeMode:i})=>r.jsx(ui,{orientation:o,size:t,variant:n,views:a,children:e.map(c=>r.jsxs(yi,{id:c.id,disabled:c.disabled,views:a,children:[r.jsxs(bi,{menuId:c.id,views:a,children:[c.icon&&r.jsx(l.View,{marginRight:8,...a==null?void 0:a.icon,children:c.icon}),c.label]}),c.items&&c.items.length>0&&r.jsx(xi,{menuId:c.id,views:a,children:c.items.map((s,d)=>s.separator?r.jsx(Ci,{views:a},`separator-${d}`):r.jsx(ki,{id:s.id,icon:s.icon,disabled:s.disabled,onClick:s.onClick,views:a,children:s.label},s.id))})]},c.id))}),uo=({items:e,orientation:o="horizontal",size:t="md",variant:n="default",defaultActiveMenuId:a=null,defaultOpenMenuId:i=null,views:c,...s})=>{const{activeMenuId:d,setActiveMenuId:g,openMenuId:f,setOpenMenuId:m,isMenuOpen:p,toggleMenu:u}=sp(a,i),y=h.useRef({});return r.jsx(hp,{value:{activeMenuId:d,setActiveMenuId:g,openMenuId:f,setOpenMenuId:m,isMenuOpen:p,toggleMenu:u,orientation:o,size:t,variant:n,triggerRefs:y},children:r.jsx(fp,{items:e,orientation:o,size:t,variant:n,views:c,...s})})};uo.Root=ui,uo.Menu=yi,uo.Trigger=bi,uo.Content=xi,uo.Item=ki,uo.Separator=Ci;const mp=(e,o,t)=>{const[n,a]=h.useState([]);return h.useEffect(()=>{a((()=>{const c=[];if(o<=t)for(let s=1;s<=o;s++)c.push(s);else{c.push(1);let s=Math.max(2,e-Math.floor((t-2)/2)),d=Math.min(o-1,s+t-3);d>=o-1&&(d=o-1,s=Math.max(2,d-(t-3))),s>2&&c.push("...");for(let g=s;g<=d;g++)c.push(g);d<o-1&&c.push("..."),c.push(o)}return c})())},[e,o,t]),{visiblePageNumbers:n}},Vo={sm:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px",media:{mobile:{fontSize:"11px",padding:"3px 6px",minWidth:"24px",height:"24px"}}},md:{fontSize:"14px",padding:"6px 10px",minWidth:"32px",height:"32px",media:{mobile:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"}}},lg:{fontSize:"14px",padding:"8px 12px",minWidth:"36px",height:"36px",media:{mobile:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"}}}},lr={default:{backgroundColor:"transparent",color:"color-gray-800",borderWidth:"0px",borderStyle:"none",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"color-gray-100"}},filled:{backgroundColor:"color-gray-100",color:"color-gray-800",borderWidth:"0px",borderStyle:"none",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"color-gray-200"}},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"color-gray-100"}}},ir={rounded:{borderRadius:8},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},pp={backgroundColor:"theme-primary",color:"color-white",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"theme-primary",opacity:.9}},Nr={opacity:.5,cursor:"not-allowed",transition:"all 0.2s ease-in-out",_hover:{backgroundColor:"transparent"}},up=({currentPage:e,totalPages:o,onPageChange:t,pageSize:n=10,pageSizeOptions:a=[{label:"10 / page",value:10},{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100}],onPageSizeChange:i,showPageSizeSelector:c=!1,showPageInfo:s=!0,maxPageButtons:d=5,showFirstLastButtons:g=!1,size:f="md",variant:m="default",shape:p="rounded",visiblePageNumbers:u=[],views:y,...k})=>{const x=v=>{v<1||v>o||v===e||t(v)},C=v=>{i&&i(Number(v.target.value))},w=(v,S)=>{if(v==="...")return r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",...Vo[f],...y==null?void 0:y.ellipsis,children:"..."},`ellipsis-${S}`);const b=v===e;return r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:b?"default":"pointer",...Vo[f],...lr[m],...ir[p],...b?pp:{},onClick:()=>x(v),"aria-label":`Page ${v}`,"aria-current":b?"page":void 0,...b?y==null?void 0:y.activePageButton:y==null?void 0:y.pageButton,children:v},`page-${v}`)};return r.jsxs(l.Horizontal,{alignItems:"center",gap:8,...y==null?void 0:y.container,...k,children:[g&&r.jsxs(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===1?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===1?Nr:{},onClick:()=>x(1),"aria-label":"First page",disabled:e===1,...y==null?void 0:y.navigationButton,children:[r.jsx(ge,{orientation:"left",widthHeight:16}),r.jsx(ge,{orientation:"left",widthHeight:16,marginLeft:"-8px"})]}),r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===1?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===1?Nr:{},onClick:()=>x(e-1),"aria-label":"Previous page",disabled:e===1,...y==null?void 0:y.navigationButton,children:r.jsx(ge,{orientation:"left",widthHeight:16})}),u.map((v,S)=>w(v,S)),r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===o?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===o?Nr:{},onClick:()=>x(e+1),"aria-label":"Next page",disabled:e===o,...y==null?void 0:y.navigationButton,children:r.jsx(ge,{orientation:"right",widthHeight:16})}),g&&r.jsxs(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:e===o?"not-allowed":"pointer",...Vo[f],...lr[m],...ir[p],...e===o?Nr:{},onClick:()=>x(o),"aria-label":"Last page",disabled:e===o,...y==null?void 0:y.navigationButton,children:[r.jsx(ge,{orientation:"right",widthHeight:16}),r.jsx(ge,{orientation:"right",widthHeight:16,marginLeft:"-8px"})]}),s&&r.jsxs(l.Text,{marginLeft:16,color:"color-gray-600",...y==null?void 0:y.pageInfo,children:["Page ",e," of ",o]}),c&&i&&r.jsx(l.View,{as:"select",marginLeft:16,padding:"4px 8px",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",backgroundColor:"color-white",cursor:"pointer",value:n,onChange:C,...y==null?void 0:y.pageSizeSelector,children:a.map(v=>r.jsx("option",{value:v.value,children:v.label},v.value))})]})},wi=({currentPage:e,totalPages:o,onPageChange:t,pageSize:n=10,pageSizeOptions:a,onPageSizeChange:i,showPageSizeSelector:c=!1,showPageInfo:s=!0,maxPageButtons:d=5,showFirstLastButtons:g=!1,size:f="md",variant:m="default",shape:p="rounded",views:u,...y})=>{const{visiblePageNumbers:k}=mp(e,o,d);return r.jsx(up,{currentPage:e,totalPages:o,onPageChange:t,pageSize:n,pageSizeOptions:a,onPageSizeChange:i,showPageSizeSelector:c,showPageInfo:s,maxPageButtons:d,showFirstLastButtons:g,size:f,variant:m,shape:p,visiblePageNumbers:k,views:u,...y})},yp=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),bp=h.memo(({shape:e="linear",value:o=0,max:t=100,color:n="theme-primary",backgroundColor:a="color-gray-200",height:i,size:c,radius:s=4,strokeWidth:d=10,showLabel:g=!1,labelColor:f="color-black-primary",animated:m=!0,animationDuration:p="0.5s",views:u,themeMode:y,...k})=>{var $;const{getColor:x,themeMode:C}=l.useTheme(),w=y||C,S=Math.min(t,Math.max(0,o))/t*100,b=z=>yp(z)?z:x(z,{themeMode:w}),T=h.useMemo(()=>b(a),[x,a,w]),F=h.useMemo(()=>b(n),[x,n,w]);if(e==="circle"){const z=c||(typeof i=="number"?i:100),E=(z-d)/2,V=2*Math.PI*E,M=V-S/100*V;return r.jsxs(l.View,{width:z,height:z,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",...u==null?void 0:u.container,...k,children:[r.jsxs("svg",{width:z,height:z,viewBox:`0 0 ${z} ${z}`,style:{transform:"rotate(-90deg)"},children:[r.jsx("circle",{cx:z/2,cy:z/2,r:E,stroke:T,strokeWidth:d,fill:"transparent",...u==null?void 0:u.track}),r.jsx("circle",{cx:z/2,cy:z/2,r:E,stroke:F,strokeWidth:d,strokeDasharray:V,strokeDashoffset:M,strokeLinecap:"round",fill:"transparent",style:{transition:m?`stroke-dashoffset ${p} ease-in-out`:"none"},...u==null?void 0:u.indicator})]}),g&&r.jsx(l.View,{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",children:r.jsxs(l.Text,{color:f,fontSize:`${z*.2}px`,fontWeight:"bold",...u==null?void 0:u.text,children:[Math.round(S),"%"]})})]})}const W=i||8,P={backgroundColor:T,...(($=u==null?void 0:u.container)==null?void 0:$.style)||{},...k.style||{}};return r.jsxs(l.View,{role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t,width:"100%",height:W,borderRadius:s,overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",...u==null?void 0:u.container,...k,style:P,children:[r.jsx("div",{style:{height:"100%",backgroundColor:F,borderRadius:typeof s=="number"?`${s}px`:s,position:"absolute",left:0,top:0,bottom:0,width:`${S}%`,transition:m?`width ${p} ease-in-out`:"none",...u==null?void 0:u.bar}}),g&&r.jsxs(l.Text,{color:f,fontSize:typeof W=="number"&&W>16?`${W*.6}px`:"10px",fontWeight:"bold",position:"relative",zIndex:1,...u==null?void 0:u.text,children:[Math.round(S),"%"]})]})}),Si=e=>{const o=pe("progress",e);return r.jsx(bp,{...o})},xp=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),kp={thin:"1px",medium:"2px",thick:"4px"},cr={container:{transition:"opacity 0.15s ease"},label:{fontSize:"14px",fontWeight:"500",color:"color-gray-600",paddingHorizontal:"8px",backgroundColor:"color-white",transition:"color 0.15s ease"}},Cp=e=>typeof e=="string"&&(/^(#|rgb\(|rgba\(|hsl\(|hsla\(|var\()/.test(e)||["black","currentColor","inherit","transparent","white"].includes(e)),wp=({orientation:e="horizontal",variant:o="solid",thickness:t="thin",color:n,spacing:a="0px",label:i,decorative:c=!1,views:s,themeMode:d,...g})=>{const{themeMode:f}=l.useTheme(),m=n||"color-gray-200",p=xp[o],u=kp[t],y=c?{"aria-hidden":!0}:{role:"separator","aria-orientation":e},k=Cp(m)?{style:{borderColor:m}}:{borderColor:m};return i&&e==="horizontal"?r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"center",width:"100%",padding:a,...y,...g,children:[r.jsx(l.View,{height:"0px",flexGrow:1,borderTop:`${u} ${p}`,...k,...cr.container,...s==null?void 0:s.container}),r.jsx(l.Text,{...cr.label,...s==null?void 0:s.label,children:i}),r.jsx(l.View,{height:"0px",flexGrow:1,borderTop:`${u} ${p}`,...k,...cr.container,...s==null?void 0:s.container})]}):e==="horizontal"?r.jsx(l.View,{height:"0px",width:"100%",borderTop:`${u} ${p}`,padding:a,...k,...cr.container,...y,...s==null?void 0:s.container,...g}):r.jsx(l.View,{width:"0px",height:"100%",borderLeft:`${u} ${p}`,padding:a,...k,...cr.container,...y,...s==null?void 0:s.container,...g})},vi=e=>{const o=pe("separator",e);return r.jsx(wp,{...o})},qr=vi,Sp=vi,vp={xs:12,sm:14,md:16,lg:18,xl:20},Tp=({isSupported:e,isSharing:o,onShare:t,label:n,children:a,icon:i,size:c,isDisabled:s,isLoading:d,iconPosition:g,disableWhenUnsupported:f=!0,...m})=>{const p=c??"md",u=i??r.jsx(Ln,{widthHeight:vp[p],strokeWidth:1.5,filled:!1}),y=!!s||!e&&f,k=!!d||o;return r.jsx(ce,{...m,size:p,icon:u,iconPosition:g??"left",isDisabled:y,isLoading:k,onClick:t,children:a??n??"Share"})},Ti=()=>typeof navigator>"u"?void 0:navigator,Ip=(e,o)=>{if(!e||typeof e.share!="function")return!1;if(typeof e.canShare=="function")try{return e.canShare(o)}catch{return!1}return!0},Fp=e=>{if(typeof e=="object"&&e!==null&&"name"in e)return String(e.name)},zp=e=>{const{shareData:o,onClick:t,onUnsupported:n,onShareStart:a,onShareSuccess:i,onShareCancel:c,onShareError:s}=e,[d,g]=h.useState(!1),f=h.useMemo(()=>Ip(Ti(),o),[o]),m=h.useCallback((...p)=>{t==null||t(...p);const u=Ti();if(!u||typeof u.share!="function"){n==null||n();return}if(!d){if(typeof u.canShare=="function")try{if(!u.canShare(o)){n==null||n();return}}catch(y){s==null||s(y);return}g(!0),a==null||a();try{u.share(o).then(()=>{i==null||i()}).catch(y=>{if(Fp(y)==="AbortError"){c==null||c();return}s==null||s(y)}).finally(()=>{g(!1)})}catch(y){g(!1),s==null||s(y)}}},[d,t,c,s,a,i,n,o]);return{isSupported:f,isSharing:d,handleShare:m}},Ii=e=>{const{isSupported:o,isSharing:t,handleShare:n}=zp(e),{shareData:a,onShareStart:i,onShareSuccess:c,onShareCancel:s,onShareError:d,onUnsupported:g,onClick:f,...m}=e;return r.jsx(Tp,{...m,isSupported:o,isSharing:t,onShare:n})},Mp=({label:e,status:o="default",views:t,themeMode:n,...a})=>{const{themeMode:i}=l.useTheme(),c=Rn();return r.jsxs(l.Horizontal,{alignItems:"center",gap:8,role:"status-indicator",...t==null?void 0:t.container,...a,children:[r.jsx(l.View,{role:"status-dot",width:"8px",height:"8px",borderRadius:"50%",...c[o].indicator,...t==null?void 0:t.indicator}),e&&r.jsx(l.Text,{role:"status-label",fontSize:"14px",lineHeight:"20px",...c[o].label,...t==null?void 0:t.label,children:e})]})},Ur=e=>{const o=pe("status",e);return r.jsx(Mp,{...o})},Wp=(e=!0,o,t,n)=>{const{on:a}=l.useResponsive(),i=a("mobile"),[c,s]=h.useState(o!==void 0?o:e);return h.useEffect(()=>{o!==void 0&&s(o)},[o]),{isExpanded:c,toggleExpanded:()=>{const m=!c;s(m),t&&t(m)},expand:()=>{c||(s(!0),t&&t(!0))},collapse:()=>{c&&(s(!1),t&&t(!1))},isMobile:i}},Hp={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},jp=(e=>({default:{backgroundColor:"color-white",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease"},filled:{backgroundColor:"color-gray-100",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease"},outline:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease"},subtle:{backgroundColor:"color-gray-50",color:"color-gray-800",transition:"background-color 0.2s ease, color 0.2s ease"},elevated:{backgroundColor:"color-white",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",color:"color-gray-800",transition:"all 0.2s ease-in-out"}}))(),Pp={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color-gray-200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color-gray-200"}},Ap={none:{},low:{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},medium:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)"},high:{boxShadow:"0 10px 30px rgba(0, 0, 0, 0.15)"}},Vp={fast:"all 0.2s ease-in-out",normal:"all 0.3s ease-in-out",slow:"all 0.5s ease-in-out",bounce:"all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)"},Fi=h.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),Gr=()=>h.useContext(Fi),Ep=({value:e,children:o})=>r.jsx(Fi.Provider,{value:e,children:o}),Dp=({children:e,showToggleButton:o=!0,views:t,...n})=>{const{isExpanded:a,toggleExpanded:i,position:c}=Gr();return r.jsx(l.Horizontal,{width:"100%",padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200",alignItems:"center",justifyContent:"space-between",...t==null?void 0:t.header,...n,children:a?r.jsxs(l.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between",children:[e,o&&r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color-gray-100"},onClick:i,"aria-label":a?"Collapse sidebar":"Expand sidebar",...t==null?void 0:t.toggleButton,children:r.jsx(ge,{orientation:c==="left"?"left":"right",widthHeight:16,...t==null?void 0:t.toggleButtonIcon})})]}):r.jsx(l.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",children:o&&r.jsx(l.View,{as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color-gray-100"},onClick:i,"aria-label":a?"Collapse sidebar":"Expand sidebar",...t==null?void 0:t.toggleButton,children:r.jsx(ge,{orientation:c==="left"?"right":"left",widthHeight:16,...t==null?void 0:t.toggleButtonIcon})})})})},$p=({children:e,views:o,...t})=>{const{isExpanded:n}=Gr();return r.jsx(l.View,{flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:n?"16px":"8px",...o==null?void 0:o.content,...t,children:e})},Lp=({children:e,views:o,...t})=>{const{isExpanded:n}=Gr();return r.jsx(l.View,{width:"100%",padding:n?"16px":"8px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200",...o==null?void 0:o.footer,...t,children:e})},_p=({children:e,position:o="left",size:t="md",variant:n="default",fixed:a=!1,hasBackdrop:i=!0,expandedWidth:c,collapsedWidth:s,breakpoint:d,breakpointBehavior:g="overlay",elevation:f="none",transitionPreset:m="normal",ariaLabel:p="Sidebar navigation",showToggleButton:u,toggleExpanded:y,expand:k,isExpanded:x,isMobile:C,collapse:w,views:v,themeMode:S,...b})=>{const T=Hp[t],F=x?c||T.expandedWidth:s||T.collapsedWidth,W=!C||C&&g!=="hide",P=a||C&&g==="overlay"?"fixed":"relative",$=i&&C&&x&&g==="overlay";return r.jsxs(r.Fragment,{children:[$&&r.jsx(l.View,{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"color-dark-50-360",zIndex:998,onClick:w,...v==null?void 0:v.backdrop}),W&&r.jsx(l.Vertical,{position:P,top:0,height:"100vh",width:F,zIndex:999,transition:Vp[m],transform:C&&g==="overlay"&&!x?`translateX(${o==="left"?"-100%":"100%"})`:"translateX(0)",role:"navigation","aria-label":p,...jp[n],...Pp[o],...Ap[f],...v==null?void 0:v.container,...b,children:h.Children.map(e,z=>z)})]})},sr=({children:e,position:o="left",size:t="md",variant:n="default",defaultExpanded:a=!0,expanded:i,onExpandedChange:c,fixed:s=!1,hasBackdrop:d=!0,showToggleButton:g=!0,expandedWidth:f,collapsedWidth:m,breakpoint:p=768,breakpointBehavior:u="overlay",views:y,...k})=>{const{isExpanded:x,toggleExpanded:C,expand:w,collapse:v,isMobile:S}=Wp(a,i,c);return r.jsx(Ep,{value:{isExpanded:x,toggleExpanded:C,expand:w,collapse:v,position:o,size:t,variant:n,views:y},children:r.jsx(_p,{position:o,size:t,variant:n,fixed:s,hasBackdrop:d,showToggleButton:g,expandedWidth:f,collapsedWidth:m,breakpoint:p,breakpointBehavior:u,isExpanded:x,isMobile:S,toggleExpanded:C,expand:w,collapse:v,views:y,...k,children:e})})};sr.Header=Dp,sr.Content=$p,sr.Footer=Lp,sr.useContext=Gr;const Bp=()=>({getItem:e=>{try{return typeof localStorage>"u"?null:localStorage.getItem(`resizable-${e}`)}catch(o){return console.warn("Failed to access localStorage:",o),null}},setItem:(e,o)=>{try{if(typeof localStorage>"u")return;localStorage.setItem(`resizable-${e}`,o)}catch(t){console.warn("Failed to write to localStorage:",t)}}}),Op=(e,o,t,n=50,a=1/0,i=!1,c,s,d=10)=>{const[g,f]=h.useState(!1),[m,p]=h.useState([]),u=h.useRef(null),y=h.useRef(null),k=h.useRef(0),x=h.useRef([]),C=h.useRef(s||(typeof window<"u"?Bp():null)),w=h.useCallback(()=>u.current?e==="horizontal"?u.current.offsetWidth:u.current.offsetHeight:0,[e]),v=h.useCallback(()=>{if(!c||!C.current)return null;const A=C.current.getItem(c);if(!A)return null;try{const H=JSON.parse(A);return Array.isArray(H.sizes)?H.sizes:null}catch(H){return console.warn("Failed to parse saved panel sizes:",H),null}},[c]),S=h.useCallback(()=>{if(!c||!C.current||m.length===0)return;const A=m.map(H=>({id:H.id,size:H.size,collapsed:H.collapsed||!1}));C.current.setItem(c,JSON.stringify({sizes:A}))},[c,m]),b=h.useCallback((A,H,j,L,O)=>{p(q=>q.some(_=>_.id===A)?q:[...q,{id:A,size:H,minSize:j??n,maxSize:L??a,collapsible:O??i,collapsed:!1}])},[n,a,i]),T=h.useCallback(A=>{p(H=>H.filter(j=>j.id!==A))},[]),F=h.useCallback(A=>{const H=m.find(j=>j.id===A);return H?H.size:0},[m]),W=h.useCallback((A,H)=>{p(j=>j.map(L=>L.id===A?{...L,size:H}:L))},[]),P=h.useCallback(A=>{const H=m.find(j=>j.id===A);return H?!!H.collapsed:!1},[m]),$=h.useCallback(A=>{p(H=>{const j=H.findIndex(_=>_.id===A);if(j===-1)return H;const L=H[j];if(!L.collapsible)return H;const O={...L,collapsed:!L.collapsed},q=[...H];return q[j]=O,q})},[]),z=h.useCallback((A,H)=>{y.current=A,k.current=H,x.current=m.map(j=>j.size),f(!0)},[m]),E=h.useCallback(A=>{if(!g||!y.current)return;const H=y.current,j=A-k.current;let L=-1;const O=H.match(/\d+$/);if(O&&(L=parseInt(O[0],10)-1),L===-1&&m.length>=2&&(L=0),L<0||L>=m.length-1)return;const q=m[L],_=m[L+1];if(q.collapsed||_.collapsed)return;let B=x.current[L]+j,U=x.current[L+1]-j;B=Math.max(q.minSize??n,Math.min(q.maxSize??a,B)),U=Math.max(_.minSize??n,Math.min(_.maxSize??a,U)),p(X=>X.map((N,D)=>D===L?{...N,size:B}:D===L+1?{...N,size:U}:N))},[g,m,e,n,a]),V=h.useCallback(()=>{g&&t&&t(m.map(A=>A.size)),y.current=null,f(!1),c&&S()},[g,m,t,c,S]),M=h.useCallback(A=>{if(!g||!y.current)return;const H=y.current;let j=-1;const L=H.match(/\d+$/);if(L&&(j=parseInt(L[0],10)-1),j===-1&&m.length>=2&&(j=0),j<0||j>=m.length-1)return;let O=0;e==="horizontal"?(A.key==="ArrowLeft"&&(O=-d),A.key==="ArrowRight"&&(O=d),A.key==="Home"&&(O=-100),A.key==="End"&&(O=100)):(A.key==="ArrowUp"&&(O=-d),A.key==="ArrowDown"&&(O=d),A.key==="Home"&&(O=-100),A.key==="End"&&(O=100)),O!==0&&(A.preventDefault(),E(k.current+O)),A.key==="Escape"&&(p(q=>q.map((_,B)=>({..._,size:x.current[B]}))),V())},[g,m,e,E,V,d]);return h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const A=L=>{if(!g)return;const O=e==="horizontal"?L.clientX:L.clientY;E(O)},H=L=>{if(!g||L.touches.length===0)return;const O=L.touches[0],q=e==="horizontal"?O.clientX:O.clientY;E(q)},j=()=>{g&&V()};return g&&(document.addEventListener("mousemove",A),document.addEventListener("touchmove",H),document.addEventListener("mouseup",j),document.addEventListener("touchend",j),document.addEventListener("keydown",M),document.body.style.cursor=e==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",j),document.removeEventListener("touchend",j),document.removeEventListener("keydown",M),document.body.style.cursor="",document.body.style.userSelect=""}},[g,e,E,V,M]),h.useEffect(()=>{if(m.length!==0){if(c){const A=v();if(A){p(H=>H.map(j=>{const L=A.find(O=>O.id===j.id);return L?{...j,size:L.size,collapsed:L.collapsed||!1}:j}));return}}if(!o){const H=w()/m.length;p(j=>j.map(L=>({...L,size:H})))}}},[m.length,o,w,c,v]),h.useEffect(()=>{if(!o||o.length===0||m.length===0)return;const A=w(),H=o.map(j=>typeof j=="string"&&j.endsWith("%")?parseFloat(j)/100*A:typeof j=="number"?j:parseFloat(j));p(j=>j.map((L,O)=>({...L,size:O<H.length?H[O]:L.size})))},[o,m.length,w]),h.useEffect(()=>{m.length>0&&c&&!g&&S()},[m,c,g,S]),{isResizing:g,setIsResizing:f,containerRef:u,panels:m,registerPanel:b,unregisterPanel:T,getPanelSize:F,setPanelSize:W,isPanelCollapsed:P,togglePanelCollapse:$,startResize:z,onResize:E,endResize:V}},Np={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},qp=(e,o)=>({sm:{width:o==="horizontal"?"4px":"100%",height:o==="vertical"?"4px":"100%"},md:{width:o==="horizontal"?"6px":"100%",height:o==="vertical"?"6px":"100%"},lg:{width:o==="horizontal"?"8px":"100%",height:o==="vertical"?"8px":"100%"}})[e],Up=(e=>({default:{backgroundColor:"transparent",_hover:{backgroundColor:"color-gray-200"},_active:{backgroundColor:"color-gray-300"}},subtle:{backgroundColor:"transparent",_hover:{backgroundColor:"color-gray-100"},_active:{backgroundColor:"color-gray-200"}},prominent:{backgroundColor:"color-gray-100",_hover:{backgroundColor:"color-gray-200"},_active:{backgroundColor:"color-gray-300"}}}))(),Yr={horizontal:{width:"2px",height:"20px",backgroundColor:"color-gray-400",margin:"0 1px"},vertical:{width:"20px",height:"2px",backgroundColor:"color-gray-400",margin:"1px 0"}},zi=h.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),Mi=()=>h.useContext(zi),Gp=({value:e,children:o})=>r.jsx(zi.Provider,{value:e,children:o}),Yp=({children:e,id:o,defaultSize:t,minSize:n,maxSize:a,collapsible:i,defaultCollapsed:c,onCollapseChange:s,views:d,...g})=>{const{orientation:f,registerPanel:m,unregisterPanel:p,getPanelSize:u,isPanelCollapsed:y,togglePanelCollapse:k}=Mi(),x=typeof t=="string"&&t.endsWith("%")?0:typeof t=="number"?t:0;h.useEffect(()=>(m(o,x,n,a,i),()=>p(o)),[o,x,n,a,i,m,p]);const C=u(o),w=y(o);return h.useEffect(()=>{s&&w!==void 0&&s(w)},[w,s]),h.useEffect(()=>{i&&c&&!w&&k(o)},[o,i,c,w,k]),w?r.jsx(l.View,{flex:"0 0 auto",width:f==="horizontal"?"10px":"100%",height:f==="vertical"?"10px":"100%",backgroundColor:"color-gray-200",cursor:"pointer",onClick:()=>k(o),"aria-label":`Expand panel ${o}`,role:"button",tabIndex:0,...d==null?void 0:d.collapsedPanel,...g}):r.jsx(l.View,{flex:C>0?"0 0 auto":"1",width:f==="horizontal"?`${C}px`:"100%",height:f==="vertical"?`${C}px`:"100%",overflow:"auto",...d==null?void 0:d.panel,...g,children:e})},Kp=({id:e,position:o="both",disabled:t=!1,withVisualIndicator:n=!0,withCollapseButton:a=!1,collapseTarget:i,views:c,...s})=>{const{orientation:d,size:g,variant:f,startResize:m,isPanelCollapsed:p,togglePanelCollapse:u}=Mi(),k=(()=>{if(i)return i;const b=e.match(/\d+$/);if(!b)return"";const T=parseInt(b[0],10);return isNaN(T)?"":`panel${T}`})(),x=p(k),C=b=>{if(t)return;b.preventDefault();const T=d==="horizontal"?b.clientX:b.clientY;m(e,T)},w=b=>{if(t||b.touches.length===0)return;b.preventDefault();const T=b.touches[0],F=d==="horizontal"?T.clientX:T.clientY;m(e,F)},v=b=>{t||(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m(e,0))},S=b=>{b.stopPropagation(),k&&u(k)};return r.jsxs(l.View,{role:"separator","aria-orientation":d,"aria-valuemin":0,"aria-valuemax":100,tabIndex:t?-1:0,cursor:d==="horizontal"?"col-resize":"row-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",...qp(g,d),...Up[f],onMouseDown:C,onTouchStart:w,onKeyDown:v,opacity:t?.5:1,pointerEvents:t?"none":"auto",...c==null?void 0:c.handle,...s,children:[n&&r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",width:d==="horizontal"?"100%":"auto",height:d==="vertical"?"100%":"auto",pointerEvents:"none",...c==null?void 0:c.handleIcon,children:d==="horizontal"?r.jsxs(l.Horizontal,{gap:1,children:[r.jsx(l.View,{...Yr.horizontal}),r.jsx(l.View,{...Yr.horizontal})]}):r.jsxs(l.Vertical,{gap:1,children:[r.jsx(l.View,{...Yr.vertical}),r.jsx(l.View,{...Yr.vertical})]})}),a&&k&&r.jsx(l.View,{position:"absolute",top:d==="horizontal"?"-20px":"50%",left:d==="horizontal"?"50%":"-20px",transform:d==="horizontal"?"translateX(-50%)":"translateY(-50%)",width:"16px",height:"16px",borderRadius:"full",backgroundColor:"color-gray-100",border:"1px solid",borderColor:"color-gray-300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,onClick:S,"aria-label":x?`Expand panel ${k}`:`Collapse panel ${k}`,role:"button",tabIndex:0,pointerEvents:"auto",_hover:{backgroundColor:"color-gray-200"},...c==null?void 0:c.collapseIcon,children:r.jsx(l.View,{width:"8px",height:"8px",display:"flex",alignItems:"center",justifyContent:"center",children:x?r.jsxs(l.Horizontal,{children:[r.jsx(l.View,{width:"6px",height:"2px",backgroundColor:"color-gray-600"}),r.jsx(l.View,{width:"2px",height:"6px",backgroundColor:"color-gray-600",position:"absolute"})]}):r.jsx(l.View,{width:"6px",height:"2px",backgroundColor:"color-gray-600"})})})]})},Xp=({children:e,orientation:o="horizontal",size:t="md",variant:n="default",defaultSizes:a,minSize:i,maxSize:c,collapsible:s=!1,containerRef:d,autoSaveId:g,keyboardResizeBy:f,onLayout:m,views:p,...u})=>{const y=o==="horizontal"?l.Horizontal:l.Vertical;return r.jsx(y,{ref:d,width:"100%",height:"100%",position:"relative",overflow:"hidden",...Np[o],...p==null?void 0:p.container,...u,children:e})},ln=({children:e,orientation:o="horizontal",size:t="md",variant:n="default",defaultSizes:a,onSizesChange:i,minSize:c=50,maxSize:s,collapsible:d=!1,autoSaveId:g,storage:f,keyboardResizeBy:m=10,views:p,...u})=>{const{isResizing:y,setIsResizing:k,containerRef:x,registerPanel:C,unregisterPanel:w,getPanelSize:v,setPanelSize:S,isPanelCollapsed:b,togglePanelCollapse:T,startResize:F,onResize:W,endResize:P}=Op(o,a,i,c,s,d,g,f,m);return r.jsx(Gp,{value:{orientation:o,size:t,variant:n,isResizing:y,setIsResizing:k,registerPanel:C,unregisterPanel:w,getPanelSize:v,setPanelSize:S,isPanelCollapsed:b,togglePanelCollapse:T,startResize:F,onResize:W,endResize:P},children:r.jsx(Xp,{orientation:o,size:t,variant:n,defaultSizes:a,minSize:c,maxSize:s,collapsible:d,autoSaveId:g,keyboardResizeBy:m,containerRef:x,views:p,...u,children:e})})};ln.Panel=Yp,ln.Handle=Kp;const Kr={info:{container:{backgroundColor:"color-blue-50",border:"color-blue-300"},content:{color:"color-blue-700"},icon:{color:"color-blue-500"}},success:{container:{backgroundColor:"color-green-50",border:"color-green-300"},content:{color:"color-green-700"},icon:{color:"color-green-500"}},warning:{container:{backgroundColor:"color-orange-50",border:"color-orange-300"},content:{color:"color-orange-700"},icon:{color:"color-orange-500"}},error:{container:{backgroundColor:"color-red-50",border:"color-red-300"},content:{color:"color-red-700"},icon:{color:"color-red-500"}}},Jp={top:{top:"16px",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"},bottom:{bottom:"16px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"}},Qp=()=>Math.random().toString(36).substring(2,9);let Eo=new Map;const dr=Co.create(e=>({toasts:[],add:(o,t,n,a={})=>{const i=a.id||Qp(),c={id:i,variant:o,title:t,description:n,createdAt:Date.now(),isVisible:!0,...a};if(e(s=>({toasts:[...s.toasts,c]})),a.duration!==0){const s=a.duration||5e3,d=setTimeout(()=>{dr.getState().remove(i)},s);Eo.set(i,d)}return i},remove:o=>{e(t=>({toasts:t.toasts.map(n=>n.id===o?{...n,isVisible:!1}:n)})),Eo.has(o)&&(clearTimeout(Eo.get(o)),Eo.delete(o)),setTimeout(()=>{e(t=>({toasts:t.toasts.filter(n=>n.id!==o)}))},300)},removeAll:()=>{Eo.forEach(clearTimeout),Eo.clear(),e(o=>({toasts:o.toasts.map(t=>({...t,isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),yo=(e,o,t,n)=>dr.getState().add(e,o,t,n),Wi=(e,o,t)=>yo("info",e,o,t),Hi=(e,o,t)=>yo("success",e,o,t),ji=(e,o,t)=>yo("warning",e,o,t),Pi=(e,o,t)=>yo("error",e,o,t),Ai=e=>{dr.getState().remove(e)},Vi=()=>{dr.getState().removeAll()},Ei=({variant:e,title:o,description:t,onClose:n,isClosable:a=!0,action:i,actionText:c,showIcon:s=!0,theme:d,views:g,render:f,icon:m,id:p,isVisible:u=!0,themeMode:y})=>{const k=d??Kr,x=()=>{var S,b;if(m!==void 0)return m;const v=e?(b=(S=Kr[e])==null?void 0:S.icon)==null?void 0:b.color:Kr.info.icon.color;switch(e){case"info":return r.jsx(Ze,{widthHeight:20,color:v});case"success":return r.jsx(Dn,{widthHeight:20,color:v});case"warning":return r.jsx(Ze,{widthHeight:20,color:v,orientation:"down"});case"error":return r.jsx(br,{widthHeight:20,color:v});default:return r.jsx(Ze,{widthHeight:20,color:Kr.info.icon.color})}};if(f)return r.jsx(r.Fragment,{children:f({id:p||"",onClose:n})});const C=e==="error"?"alert":"status",w=e==="error"||e==="warning"?"assertive":"polite";return r.jsxs(l.Horizontal,{role:C,"aria-live":w,"aria-atomic":"true","data-state":u?"open":"closed",gap:12,width:"100%",maxWidth:"380px",borderWidth:"1px",borderStyle:"solid",borderRadius:"12px",padding:"12px 14px",alignItems:"flex-start",position:"relative",backgroundColor:k[e].container.backgroundColor,borderColor:k[e].container.border,boxShadow:"0 12px 32px rgba(15, 23, 42, 0.12)",opacity:u?1:0,transform:u?"translateY(0)":"translateY(4px)",transition:"opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",...g==null?void 0:g.container,children:[s&&r.jsx(l.View,{marginTop:"2px",...g==null?void 0:g.icon,children:x()}),r.jsxs(l.Vertical,{gap:4,flex:"1",children:[r.jsx(l.Text,{fontSize:"14px",lineHeight:"20px",fontWeight:"600",color:k[e].content.color,backgroundColor:k[e].container.backgroundColor,...g==null?void 0:g.title,children:o}),t&&r.jsx(l.Text,{fontSize:"12px",lineHeight:"18px",color:k[e].content.color,fontWeight:"400",backgroundColor:k[e].container.backgroundColor,...g==null?void 0:g.description,children:t}),i&&c&&r.jsx(l.Text,{fontSize:"14px",fontWeight:"600",marginTop:"6px",cursor:"pointer",color:k[e].content.color,backgroundColor:k[e].container.backgroundColor,onClick:v=>{v.stopPropagation(),i()},_hover:{textDecoration:"underline"},transition:"opacity 0.2s ease, color 0.2s ease",...g==null?void 0:g.actionButton,children:c})]}),a&&r.jsx(l.View,{as:"button","aria-label":"Close toast",backgroundColor:"transparent",border:"none",cursor:"pointer",padding:"4px",marginLeft:"8px",marginTop:"-2px",marginRight:"-4px",borderRadius:"9999px",onClick:v=>{v.stopPropagation(),n()},_hover:{backgroundColor:"color-black-900-60"},transition:"background-color 0.2s ease, opacity 0.2s ease",...g==null?void 0:g.closeButton,children:r.jsx(Me,{widthHeight:16,color:k[e].content.color})})]})},Zp=({position:e="top-right",gap:o=8,limit:t=5,containerStyle:n})=>{const{toasts:a,remove:i}=dr(),s=h.useMemo(()=>{const d={top:[],"top-right":[],"top-left":[],bottom:[],"bottom-right":[],"bottom-left":[]};return a.forEach(g=>{const f=g.position||e;d[f].push(g)}),Object.keys(d).forEach(g=>{d[g]=d[g].slice(-t)}),d},[a,e,t])[e];return r.jsx(l.View,{position:"fixed",zIndex:9999,display:"flex",flexDirection:e.includes("bottom")?"column-reverse":"column",gap:`${o}px`,width:"fit-content",maxWidth:"100%",pointerEvents:"none",...Jp[e],style:n,children:s.map(d=>r.jsx(l.View,{pointerEvents:"auto",animation:e.includes("right")?"slideInRight 0.3s ease-out, fadeIn 0.3s ease-out":e.includes("left")?"slideInLeft 0.3s ease-out, fadeIn 0.3s ease-out":e.includes("top")?"slideInDown 0.3s ease-out, fadeIn 0.3s ease-out":"slideInUp 0.3s ease-out, fadeIn 0.3s ease-out",children:r.jsx(Ei,{id:d.id,variant:d.variant,title:d.title,description:d.description,onClose:()=>i(d.id),isClosable:d.isClosable,action:d.action,actionText:d.actionText,showIcon:d.showIcon,views:d.views,render:d.render,icon:d.icon,isVisible:d.isVisible})},d.id))})},Rp=()=>({toast:(e,o,t,n)=>yo(e,o,t,n),info:(e,o,t)=>Wi(e,o,t),success:(e,o,t)=>Hi(e,o,t),warning:(e,o,t)=>ji(e,o,t),error:(e,o,t)=>Pi(e,o,t),remove:e=>Ai(e),removeAll:()=>Vi()}),eu=Object.assign(e=>r.jsx(Ei,{...e}),{Container:e=>r.jsx(Zp,{...e}),show:yo,info:Wi,success:Hi,warning:ji,error:Pi,remove:Ai,removeAll:Vi}),ou=Rp,Di=(e,o)=>{var c,s;if(!e)return!0;const t=e.toLowerCase(),n=o.name.toLowerCase().includes(t),a=((c=o.description)==null?void 0:c.toLowerCase().includes(t))||!1,i=((s=o.keywords)==null?void 0:s.some(d=>d.toLowerCase().includes(t)))||!1;return n||a||i},ru=({open:e,onOpenChange:o,groups:t=[],commands:n=[],filter:a})=>{const[i,c]=h.useState(""),[s,d]=h.useState(0),g=h.useRef(null),f=h.useMemo(()=>a||Di,[a]),m=h.useMemo(()=>[...t.flatMap(x=>x.commands),...n],[t,n]),p=h.useMemo(()=>i.trim()?m.filter(k=>f(i,k)):m,[m,i,f]),u=h.useMemo(()=>{if(!i)return t;const k=a||Di;return t.map(x=>({...x,commands:x.commands.filter(C=>k(i,C))})).filter(x=>x.commands.length)},[t,i,a]);h.useEffect(()=>{d(0)},[p.length]);const y=h.useCallback(k=>{if(e)switch(k.key){case"ArrowDown":k.preventDefault(),d(x=>x<p.length-1?x+1:x);break;case"ArrowUp":k.preventDefault(),d(x=>x>0?x-1:x);break;case"Enter":k.preventDefault(),p[s]&&(p[s].onSelect(),o(!1),c(""));break;case"Escape":k.preventDefault(),o(!1),c("");break}},[e,p,s,o]);return h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)=="function")return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[y]),h.useEffect(()=>{const k=g.current;if(k&&typeof k.querySelector=="function"&&e){const x=k.querySelector(`[data-index="${s}"]`);x&&typeof x.scrollIntoView=="function"&&x.scrollIntoView({block:"nearest"})}},[s,e]),h.useEffect(()=>{e?d(0):c("")},[e]),{search:i,setSearch:c,selectedIndex:s,setSelectedIndex:d,filteredCommands:p,filteredGroups:u,listRef:g}},tu=({onClose:e,children:o,...t})=>r.jsx(l.View,{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color-dark-50-240",zIndex:9999,onClick:n=>{n.target===n.currentTarget&&(e==null||e())},...t,children:o}),$i=h.forwardRef(({value:e,onValueChange:o,...t},n)=>r.jsx(l.Input,{value:e,onChange:a=>{var i,c;return o(typeof a=="string"?a:((i=a==null?void 0:a.target)==null?void 0:i.value)??((c=a==null?void 0:a.nativeEvent)==null?void 0:c.text)??"")},ref:n,...t}));$i.displayName="CommandTextInput";const nu={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},au=(e=>({default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},outline:{backgroundColor:"color-white",borderWidth:"2px",borderStyle:"solid",borderColor:"color-gray-300",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"}}))(),lu={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-200"},iu={overflow:"auto",padding:"8px 0"},cu={marginBottom:"8px"},su={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color-gray-500",textTransform:"uppercase"},du={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color-gray-100"}},gu={backgroundColor:"color-blue-50",_hover:{backgroundColor:"color-blue-100"}},hu={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},fu={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color-gray-500"},mu={display:"flex",flexDirection:"column",flex:1},pu={fontSize:"14px",fontWeight:"medium"},uu={fontSize:"12px",color:"color-gray-500",marginTop:"2px"},yu={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color-gray-500"},bu={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color-gray-500",textAlign:"center"},xu={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color-gray-200",fontSize:"12px",color:"color-gray-500"},ku=h.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),Cu=({value:e,children:o})=>r.jsx(ku.Provider,{value:e,children:o}),Li=({value:e,onValueChange:o,placeholder:t="Type a command or search...",views:n,...a})=>{const i=h.useRef(null);return h.useEffect(()=>{i.current&&i.current.focus()},[]),r.jsxs(l.View,{...lu,...n==null?void 0:n.container,...a,children:[r.jsx(kr,{widthHeight:16,color:"color-gray-400",marginRight:"8px"}),r.jsx($i,{width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",...n==null?void 0:n.input,value:e,onValueChange:o,placeholder:t,ref:i})]})},wu=({children:e,views:o,...t})=>r.jsx(l.View,{...iu,...o==null?void 0:o.container,...t,children:e}),_i=({heading:e,children:o,views:t,...n})=>r.jsxs(l.View,{...cu,...t==null?void 0:t.container,...n,children:[r.jsx(l.Text,{...su,...t==null?void 0:t.heading,children:e}),o]}),cn=({item:e,selected:o=!1,onSelect:t,views:n,...a})=>{const i=()=>{!e.disabled&&t&&t()};return r.jsxs(l.Horizontal,{...du,...o?gu:{},...e.disabled?hu:{},onPress:i,onClick:i,...n==null?void 0:n.container,...a,children:[e.icon&&r.jsx(l.View,{...fu,...n==null?void 0:n.icon,children:e.icon}),r.jsxs(l.Vertical,{...mu,...n==null?void 0:n.content,children:[r.jsx(l.Text,{...pu,...n==null?void 0:n.name,children:e.name}),e.description&&r.jsx(l.Text,{...uu,...n==null?void 0:n.description,children:e.description})]}),e.shortcut&&r.jsx(l.Text,{...yu,...n==null?void 0:n.shortcut,children:e.shortcut})]})},Bi=({children:e="No results found.",views:o,...t})=>r.jsx(l.View,{...bu,...o==null?void 0:o.container,...t,children:e}),Su=({open:e,onOpenChange:o,groups:t=[],commands:n=[],placeholder:a,size:i="md",variant:c="default",emptyState:s,footer:d,search:g,setSearch:f,selectedIndex:m,setSelectedIndex:p,filteredCommands:u,filteredGroups:y,listRef:k,views:x,filter:C,...w})=>{if(!e)return null;const v=h.useCallback(F=>{F.disabled||(F.onSelect(),o(!1),f(""))},[o,f]);h.useCallback(F=>F.target===F.currentTarget&&o(!1),[o]);const S=h.useMemo(()=>({search:g,setSearch:f,selectedIndex:m,setSelectedIndex:p,filteredCommands:u,onSelect:v}),[g,m,u,v,f,p]),b=t.length>0,T=u.length===0;return r.jsx(tu,{onClose:()=>o(!1),...w,children:r.jsx(Cu,{value:S,children:r.jsxs(l.View,{borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column",...nu[i],...au[c],...x==null?void 0:x.container,onClick:F=>F.stopPropagation(),children:[r.jsx(Li,{value:g,onValueChange:f,placeholder:a,views:x==null?void 0:x.searchInput}),r.jsx(l.View,{ref:k,flex:1,overflow:"auto",...x==null?void 0:x.list,children:T?s||r.jsx(Bi,{views:x==null?void 0:x.empty}):b?y.map(F=>r.jsx(_i,{heading:F.name,views:x==null?void 0:x.groupHeading,children:F.commands.map(W=>{const P=u.findIndex($=>$.id===W.id);return r.jsx(cn,{item:W,selected:P===m,onSelect:()=>v(W),"data-index":P,views:{container:x==null?void 0:x.item,icon:x==null?void 0:x.icon,content:x==null?void 0:x.content,name:x==null?void 0:x.name,description:x==null?void 0:x.description,shortcut:x==null?void 0:x.shortcut}},W.id)})},F.id)):u.map((F,W)=>r.jsx(cn,{item:F,selected:W===m,onSelect:()=>v(F),"data-index":W,views:{container:x==null?void 0:x.item,icon:x==null?void 0:x.icon,content:x==null?void 0:x.content,name:x==null?void 0:x.name,description:x==null?void 0:x.description,shortcut:x==null?void 0:x.shortcut}},F.id))}),d&&r.jsx(l.View,{...xu,...x==null?void 0:x.footer,children:d})]})})})},Do=({open:e,onOpenChange:o,groups:t=[],commands:n=[],placeholder:a,size:i="md",variant:c="default",filter:s,emptyState:d,footer:g,views:f,...m})=>{const{search:p,setSearch:u,selectedIndex:y,setSelectedIndex:k,filteredCommands:x,filteredGroups:C,listRef:w}=ru({open:e,onOpenChange:o,groups:t,commands:n,filter:s});return r.jsx(Su,{open:e,onOpenChange:o,groups:t,commands:n,placeholder:a,size:i,variant:c,emptyState:d,footer:g,search:p,setSearch:u,selectedIndex:y,setSelectedIndex:k,filteredCommands:x,filteredGroups:C,listRef:w,views:f,...m})};Do.Input=Li,Do.List=wu,Do.Group=_i,Do.Item=cn,Do.Empty=Bi;const Oi=()=>Math.random().toString(36).substring(2,11),vu=({defaultOpen:e=!1,openDelay:o=200,closeDelay:t=200,isDisabled:n=!1}={})=>{const[a,i]=h.useState(e),c=h.useRef(null),s=h.useRef(null),d=h.useRef(null),g=h.useRef(null),f=h.useRef(`tooltip-trigger-${Oi()}`).current,m=h.useRef(`tooltip-content-${Oi()}`).current,p=h.useCallback(()=>{n||(g.current&&(clearTimeout(g.current),g.current=null),!a&&!d.current&&(d.current=setTimeout(()=>{i(!0),d.current=null},o)))},[a,o,n]),u=h.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),a&&!g.current&&(g.current=setTimeout(()=>{i(!1),g.current=null},t))},[a,t]),y=h.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]);return h.useEffect(()=>()=>{d.current&&clearTimeout(d.current),g.current&&clearTimeout(g.current)},[]),h.useEffect(()=>{if(typeof(document==null?void 0:document.addEventListener)!="function")return;const k=x=>{x.key==="Escape"&&a&&i(!1)};return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[a]),{isOpen:a,openTooltip:p,closeTooltip:u,cancelCloseTimer:y,triggerRef:c,contentRef:s,triggerId:f,contentId:m}},Tu={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},Iu=(e=>({default:{backgroundColor:"color-gray-900",color:"color-white",borderRadius:"8px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",transition:"opacity 0.15s ease"},light:{backgroundColor:"color-white",color:"color-gray-800",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",borderRadius:"8px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.04)",transition:"opacity 0.15s ease"},dark:{backgroundColor:"color-gray-950",color:"color-white",borderRadius:"8px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.2), 0px 2px 4px rgba(0, 0, 0, 0.12)",transition:"opacity 0.15s ease"}}))(),Fu=e=>{const o={position:"absolute",width:"8px",height:"8px",backgroundColor:"inherit",borderStyle:"inherit",borderWidth:"inherit",borderColor:"inherit",transform:"rotate(45deg)"};switch(e){case"top":return{...o,bottom:"-4px",left:"50%",marginLeft:"-4px",borderTop:"none",borderLeft:"none"};case"right":return{...o,left:"-4px",top:"50%",marginTop:"-4px",borderRight:"none",borderTop:"none"};case"bottom":return{...o,top:"-4px",left:"50%",marginLeft:"-4px",borderBottom:"none",borderRight:"none"};case"left":return{...o,right:"-4px",top:"50%",marginTop:"-4px",borderLeft:"none",borderBottom:"none"};default:return o}},Ni=h.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),sn=()=>h.useContext(Ni),zu=({value:e,children:o})=>r.jsx(Ni.Provider,{value:e,children:o}),qi=h.memo(({children:e,views:o,asChild:t=!1,...n})=>{const{openTooltip:a,closeTooltip:i,triggerRef:c,contentId:s,triggerId:d}=sn(),g=h.useCallback(()=>a(),[a]),f=h.useCallback(()=>i(),[i]),m=h.useCallback(()=>a(),[a]),p=h.useCallback(()=>i(),[i]),u={ref:c,onMouseEnter:g,onMouseLeave:f,onFocus:m,onBlur:p,id:d,"aria-describedby":s,...o==null?void 0:o.container,...n};return t&&h.isValidElement(e)?h.cloneElement(e,u):r.jsx(l.View,{display:"inline-block",...u,children:e})}),Mu=h.memo(({children:e,views:o,...t})=>{const{isOpen:n,contentRef:a,contentId:i,triggerId:c}=sn();return n?r.jsx(l.View,{ref:a,id:i,role:"tooltip","aria-labelledby":c,...o==null?void 0:o.container,...t,children:e}):null}),Wu=({content:e,children:o,position:t="top",align:n="center",size:a="md",variant:i="default",showArrow:c=!0,views:s,themeMode:d,...g})=>{const{isOpen:f,triggerRef:m,contentRef:p,contentId:u,triggerId:y}=sn(),{ref:k,relation:x}=l.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[C,w]=h.useState({x:0,y:0,placement:t});h.useEffect(()=>{m!=null&&m.current&&k&&(k.current=m.current)},[m,k,f]),h.useEffect(()=>{if(f&&(p!=null&&p.current)&&(m!=null&&m.current)){const b=m.current.getBoundingClientRect();let T=t;x&&(t==="top"&&x.space.vertical==="bottom"?T="bottom":t==="bottom"&&x.space.vertical==="top"?T="top":t==="right"&&x.space.horizontal==="left"?T="left":t==="left"&&x.space.horizontal==="right"&&(T="right"));let F=0,W=0;switch(T){case"top":F=n==="start"?b.left:n==="end"?b.right-120:b.left+b.width/2-60,W=b.top-8;break;case"bottom":F=n==="start"?b.left:n==="end"?b.right-120:b.left+b.width/2-60,W=b.bottom+8;break;case"right":F=b.right+8,W=n==="start"?b.top:n==="end"?b.bottom-32:b.top+b.height/2-16;break;case"left":F=b.left-8,W=n==="start"?b.top:n==="end"?b.bottom-32:b.top+b.height/2-16;break}w({x:F,y:W,placement:T})}},[f,t,n,m,p,x]);const v=h.useMemo(()=>c?Fu(C.placement):{},[c,C.placement]),S=h.useMemo(()=>{const b={position:"fixed",left:C.x,top:C.y,zIndex:1e3};switch(C.placement){case"top":return{...b,transform:"translateY(-100%)"};case"left":return{...b,transform:"translateX(-100%)"};case"bottom":case"right":default:return b}},[C.x,C.y,C.placement]);return r.jsxs(l.View,{position:"relative",display:"inline-block",...s==null?void 0:s.container,...g,children:[r.jsx(qi,{children:o}),f&&r.jsxs(l.View,{ref:p,id:u,role:"tooltip","aria-labelledby":y,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",style:S,...Tu[a],...Iu[i],...s==null?void 0:s.content,children:[typeof e=="string"?r.jsx(l.Text,{...s==null?void 0:s.text,children:e}):e,c&&r.jsx(l.View,{...v,...s==null?void 0:s.arrow})]})]})},Xr=({content:e,children:o,position:t="top",align:n="center",size:a="md",variant:i="default",openDelay:c=200,closeDelay:s=200,showArrow:d=!0,defaultOpen:g=!1,isDisabled:f=!1,views:m,...p})=>{const u=vu({defaultOpen:g,openDelay:c,closeDelay:s,isDisabled:f});return r.jsx(zu,{value:u,children:r.jsx(Wu,{content:e,position:t,align:n,size:a,variant:i,showArrow:d,views:m,...p,children:o})})};Xr.Trigger=qi,Xr.Content=Mu;const Ui=h.forwardRef((e,o)=>{const t={...e,isAgentRunning:e.isAgentRunning??e.isWorkerRunning,onStopAgent:e.onStopAgent??e.onStopWorker},n=dl(t);return h.useImperativeHandle(o,()=>({getValue:()=>{var a,i;return((a=n.hiddenInputRef.current)==null?void 0:a.value)??((i=n.editableRef.current)==null?void 0:i.textContent)??n.value??""},setValue:n.setValue,clear:()=>n.setValue(""),focus:()=>{var a;return(a=n.editableRef.current)==null?void 0:a.focus()},blur:()=>{var a;return(a=n.editableRef.current)==null?void 0:a.blur()},getElement:()=>n.editableRef.current,getInputElement:()=>n.hiddenInputRef.current})),r.jsx(yl,{...t,...n})});Ui.displayName="ChatInput";const Hu={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}},Gi={container:{position:"relative",display:"flex",flexDirection:"column",height:"100vh",alignItems:"center",justifyContent:"center"},gradient:{position:"absolute",inset:"-10px",opacity:.5,pointerEvents:"none",filter:"blur(10px)",backgroundSize:"300% 200%",backgroundPosition:"50% 50%, 50% 50%"}},dn={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},image:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"scroll"},content:{position:"relative",width:"100%",height:"100%",zIndex:2}},gn={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},video:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},content:{position:"relative",zIndex:2}},ju=h.createContext({}),Pu=({children:e,showRadialGradient:o=!0,views:t,themeMode:n,...a})=>{const i={white:"rgba(255,255,255,1)",transparent:"rgba(255,255,255,0)"},c=["rgb(59, 130, 246)","rgb(196, 181, 253)","rgb(147, 197, 253)","rgb(221, 214, 254)","rgb(96, 165, 250)"],s={...Gi.gradient,backgroundImage:`
27
27
  repeating-linear-gradient(100deg, ${c.join(", ")}),
28
28
  repeating-linear-gradient(100deg, ${i.white} 0%, ${i.white} 7%, ${i.transparent} 10%, ${i.transparent} 12%, ${i.white} 16%)
29
29
  `,animation:"aurora 4s ease infinite",...o?{maskImage:"radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%)"}:{}};return r.jsxs(l.View,{...Gi.container,...t==null?void 0:t.container,...a,children:[r.jsx(l.View,{style:s}),e,r.jsx("style",{children:`
@@ -32,5 +32,5 @@ ${R}`:R}let fe=V,Y=!1;V.endsWith("-thinking")&&(fe=V.replace(/-thinking$/,""),Y=
32
32
  50% { background-position: 100% 50%; }
33
33
  100% { background-position: 0% 50%; }
34
34
  }
35
- `})]})},Au=({number:e=20,children:o,...t})=>{const n=Array.from({length:e},(a,i)=>i);return r.jsxs(l.View,{width:"100%",height:"100%",backgroundColor:"black",position:"relative",overflow:"hidden",...t,children:[n.map(a=>{const i=a*37%200-100+"px",c=.2+a*13%6*.1+"s",s=(1+a*7%9)/2+"s",d=300+a*17%100+"px";return r.jsx(l.View,{position:"absolute",top:"0px",left:i,width:"2px",height:"2px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.1)",transform:"rotate(215deg)",zIndex:0,animate:{from:{transform:"translateX(-100%) translateY(-100%)"},to:{transform:`translateX(${d}) translateY(${d})`},iterationCount:"infinite",timingFunction:"linear",fillMode:"forwards",duration:s,delay:c},children:r.jsx(l.View,{position:"absolute",top:"-1px",left:"-1px",width:"1px",height:"1px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 10px 0 1px rgba(255, 255, 255, 0.1)"})},a)}),o&&r.jsx(l.View,{position:"relative",zIndex:1,width:"100%",height:"100%",children:o})]})},Yi=["rgb(186, 230, 253)","rgb(249, 168, 212)","rgb(134, 239, 172)","rgb(253, 224, 71)","rgb(252, 165, 165)","rgb(216, 180, 254)","rgb(147, 197, 253)","rgb(165, 180, 252)","rgb(196, 181, 253)"],Vu=()=>Yi[Math.floor(Math.random()*Yi.length)],Eu=({rows:e=15,cols:o=10,squareSize:t=40,...n})=>{const a=Array(e).fill(1),i=Array(o).fill(1);return r.jsx(l.View,{padding:16,width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-50",zIndex:0,transform:"skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)",...n,children:a.map((c,s)=>r.jsx(l.Horizontal,{gap:0,children:i.map((d,g)=>r.jsx(l.View,{height:t/3,width:t,borderStyle:"solid",borderColor:"color-gray-200",borderWidth:.5,backgroundColor:"transparent",cursor:"pointer",on:{hover:{backgroundColor:Vu(),transition:"background-color 0.2s ease"}}},`col-${g}`))},`row-${s}`))})},Du=["rgb(59, 130, 246)","rgb(147, 51, 234)","rgb(236, 72, 153)","rgb(34, 197, 94)","rgb(251, 146, 60)","rgb(168, 85, 247)"],$u=({count:e=50,colors:o=Du,speed:t="medium",shapes:n=["circle"],...a})=>{const i=Array.from({length:e},(g,f)=>f),c=()=>{switch(t){case"slow":return .5;case"fast":return 2;default:return 1}},s=()=>n[Math.floor(Math.random()*n.length)],d=()=>o[Math.floor(Math.random()*o.length)];return r.jsx(l.View,{width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-900",...a,children:i.map(g=>{const f=Math.random()*8+4,m=Math.random()*400,p=Math.random()*300,u=Math.random()*400,y=Math.random()*300,k=(Math.random()*10+5)/c(),x=Math.random()*5,C=s(),w=d(),v={circle:{borderRadius:"50%"},square:{borderRadius:"2px"},triangle:{borderRadius:"0",clipPath:"polygon(50% 0%, 0% 100%, 100% 100%)"}};return r.jsx(l.View,{position:"absolute",width:f,height:f,backgroundColor:w,opacity:.7,style:{left:m,top:p,...v[C]},animate:{from:{transform:"translate(0px, 0px) scale(0.5)",opacity:0},to:{transform:`translate(${u-m}px, ${y-p}px) scale(1)`,opacity:.7},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:`${k}s`,delay:`${x}s`}},g)})})},Lu=({gridSize:e=30,lineColor:o="rgba(59, 130, 246, 0.3)",pulseColor:t="rgba(59, 130, 246, 0.8)",animationSpeed:n="medium",...a})=>{const i=()=>{switch(n){case"slow":return 4;case"fast":return 1;default:return 2}},c=Math.floor(400/e),s=Math.floor(300/e),d=c*s,g=Array.from({length:d},(f,m)=>m);return r.jsxs(l.View,{width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-900",...a,children:[Array.from({length:c+1},(f,m)=>r.jsx(l.View,{position:"absolute",left:m*e,top:0,width:1,height:"100%",backgroundColor:o},`v-line-${m}`)),Array.from({length:s+1},(f,m)=>r.jsx(l.View,{position:"absolute",left:0,top:m*e,width:"100%",height:1,backgroundColor:o},`h-line-${m}`)),g.map(f=>{const m=f%c,p=Math.floor(f/c),u=(m+p)*.1;return r.jsx(l.View,{position:"absolute",left:m*e+1,top:p*e+1,width:e-2,height:e-2,backgroundColor:"transparent",animate:{from:{backgroundColor:"transparent"},to:{backgroundColor:t},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:`${i()}s`,delay:`${u}s`}},f)})]})},_u=["rgba(59, 130, 246, 0.6)","rgba(147, 51, 234, 0.6)","rgba(236, 72, 153, 0.6)","rgba(34, 197, 94, 0.6)"],Bu=({rippleCount:e=5,colors:o=_u,maxSize:t=200,frequency:n=3,...a})=>{const i=Array.from({length:e},(c,s)=>({id:s,x:Math.random()*400,y:Math.random()*300,color:o[s%o.length],delay:s*(n/e),duration:3+Math.random()*2}));return r.jsxs(l.View,{width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-100",...a,children:[i.map(c=>r.jsx(l.View,{position:"absolute",width:20,height:20,borderRadius:"50%",style:{left:c.x-10,top:c.y-10,border:`2px solid ${c.color}`,backgroundColor:"transparent"},animate:{from:{transform:"scale(0)",opacity:1},to:{transform:`scale(${t/20})`,opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:`${c.duration}s`,delay:`${c.delay}s`}},c.id)),i.map(c=>r.jsx(l.View,{position:"absolute",width:10,height:10,borderRadius:"50%",style:{left:c.x-5,top:c.y-5,backgroundColor:c.color},animate:{from:{transform:"scale(1)",opacity:.8},to:{transform:`scale(${t/40})`,opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:`${c.duration*1.2}s`,delay:`${c.delay+.5}s`}},`secondary-${c.id}`))]})},Ou=({children:e,src:o,backgroundSize:t="cover",backgroundPosition:n="center",backgroundRepeat:a="no-repeat",backgroundAttachment:i="scroll",imageOpacity:c=1,overlay:s=null,blendMode:d="normal",views:g,themeMode:f,...m})=>{const p={...dn.image,backgroundImage:`url(${o})`,backgroundSize:t,backgroundPosition:n,backgroundRepeat:a,backgroundAttachment:i,opacity:c};return r.jsxs(l.View,{...dn.container,...g==null?void 0:g.container,...m,children:[r.jsx(l.View,{style:p,...g==null?void 0:g.image}),s,e&&r.jsx(l.View,{...dn.content,...g==null?void 0:g.content,children:e})]})},Nu=({children:e,src:o,autoPlay:t=!0,loop:n=!0,muted:a=!0,playsInline:i=!0,overlay:c=null,blendMode:s="normal",views:d,themeMode:g,...f})=>r.jsxs(l.View,{...gn.container,...d==null?void 0:d.container,...f,children:[r.jsx(l.View,{as:"video",src:o,autoPlay:t,loop:n,muted:a,playsInline:i,style:gn.video,...d==null?void 0:d.video}),c,e&&r.jsx(l.View,{...gn.content,...d==null?void 0:d.content,children:e})]}),qu=({children:e,...o})=>r.jsx(fi,{...o,children:e}),Uu=/^(color|theme|light|dark)-/,Gu=e=>{const o=e.split("-"),t=parseInt(o[o.length-1],10),n=e.startsWith("theme-")?3:4;return o.length>=n&&!isNaN(t)&&t>=0&&t<=1e3?o.slice(0,-1).join("-"):e},Yu=({contentPosition:e,backgroundColor:o="color-black-900",...t})=>{const n=Uu.test(o),a=n?Gu(o):o,c=(()=>{let s=`${a}-100`,d=`${a}-900`,g=`${a}-600`,f=`${a}-400`;switch(n||(s=`color-mix(in srgb, ${a} 10%, transparent)`,d=`color-mix(in srgb, ${a} 90%, transparent)`,g=`color-mix(in srgb, ${a} 70%, transparent)`,f=`color-mix(in srgb, ${a} 50%, transparent)`),e){case"left":return`radial-gradient(circle at 70% 50%, ${s} 0%, ${s} 100%), linear-gradient(to right, ${d} 0%, ${g} 65%, ${s} 100%)`;case"right":return`radial-gradient(circle at 30% 50%, ${s} 0%, ${s} 100%), linear-gradient(to left, ${d} 0%, ${g} 65%, ${s} 100%)`;case"top":return`radial-gradient(circle at 50% 40%, ${s} 0%, ${s} 100%), linear-gradient(to bottom, ${d} 0%, ${g} 60%, ${s} 100%)`;case"bottom":return`radial-gradient(circle at 50% 60%, ${s} 0%, ${s} 100%), linear-gradient(to top, ${d} 0%, ${g} 60%, ${s} 100%)`;case"center":return`radial-gradient(circle at 50% 70%, ${d} 0%, ${s} 100%)`;default:return f}})();return r.jsx(l.View,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:c,pointerEvents:"none",zIndex:1,...t})},Ku=({children:e,views:o,...t})=>r.jsx(ju.Provider,{value:{},children:r.jsx(l.View,{...Hu.container,...o==null?void 0:o.container,...t,children:e})}),Ki=h.forwardRef(({children:e,designProps:o,shape:t="rounded",decorationRotation:n=5,decorationScale:a=1,decorationOpacity:i=.8,views:c,...s},d)=>{const f=(x=>{switch(x){case"square":return"0px";case"pill":return"9999px";case"rounded":default:return"16px"}})(t),m=Math.abs(n)*(Math.PI/180),p=Math.sin(m)*100,u=(a-1)*100/2,y=Math.ceil(p+u),k=s.backgroundColor??"theme-primary";return r.jsx(l.View,{...s,ref:d,backgroundColor:"transparent",position:"relative",overflow:"visible",...c==null?void 0:c.container,children:r.jsxs(l.View,{padding:s.padding??`${96+y}px ${y}px`,position:"relative",overflow:"visible",children:[r.jsx(l.View,{position:"absolute",top:y,left:y,right:y,bottom:y,backgroundColor:k,borderRadius:f,opacity:i/1.5,transform:`scale(${a})`,pointerEvents:"none",zIndex:1,...c==null?void 0:c.back}),r.jsx(l.View,{position:"absolute",top:y,left:y,right:y,bottom:y,transform:`rotate(${n}deg) scale(${a})`,opacity:i/1.2,backgroundColor:k,borderRadius:f,pointerEvents:"none",zIndex:2,...c==null?void 0:c.front}),r.jsx(l.View,{margin:"0 auto",position:"relative",zIndex:3,...c==null?void 0:c.content,children:e})]})})});Ki.displayName="Background.Layout";const he=Ku;he.Aurora=Pu,he.Meteors=Au,he.Wall=Eu,he.Particles=$u,he.Grid=Lu,he.Ripples=Bu,he.Image=Ou,he.Video=Nu,he.Gradient=qu,he.Overlay=Yu,he.Layout=Ki;const Xi=h.forwardRef((e,o)=>r.jsx(he,{...e,ref:o}));Xi.displayName="Background";const Ji=Object.assign(Xi,{Layout:he.Layout,Aurora:he.Aurora,Meteors:he.Meteors,Wall:he.Wall,Particles:he.Particles,Grid:he.Grid,Ripples:he.Ripples,Image:he.Image,Video:he.Video,Gradient:he.Gradient,Overlay:he.Overlay});Ji.displayName="Background";function Xu(e){const{inputValue:o,onInputChange:t,onSubmit:n,messages:a=[]}=e,[i,c]=h.useState(""),s=h.useRef(null),d=h.useRef(null),g=o!==void 0,f=o!==void 0?o:i,m=h.useCallback(u=>{g?t==null||t(u):c(u)},[g,t]),p=h.useCallback(u=>{u&&u.preventDefault();const y=f.trim();y&&n&&(n(y),g||c(""),s.current&&(s.current.style.height="auto"))},[f,n,g]);return h.useEffect(()=>{d.current&&(d.current.scrollTop=d.current.scrollHeight)},[a.length]),{internalInputValue:f,handleInputChange:m,handleSubmit:p,inputRef:s,messagesRef:d}}const Ju={sm:{fontSize:"12px",padding:"8px"},md:{fontSize:"14px",padding:"10px"},lg:{fontSize:"14px",padding:"12px"}},Qu={default:{backgroundColor:"color-white",border:"1px solid color-gray-200",borderRadius:"12px",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.08)"},glassy:{backgroundColor:"color-white-900",backdropFilter:"blur(10px)",border:"1px solid rgba(226, 232, 240, 0.9)",borderRadius:"12px",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.08)"},minimal:{backgroundColor:"color-white",border:"1px solid color-gray-200",borderRadius:"12px"}},Zu={sm:{fontSize:"12px",padding:"8px 10px",borderRadius:"12px"},md:{fontSize:"14px",padding:"10px 12px",borderRadius:"12px"},lg:{fontSize:"14px",padding:"12px 14px",borderRadius:"14px"}},Ru={backgroundColor:"theme-primary",color:"color-white",alignSelf:"flex-end",borderBottomRightRadius:"4px"},ey={backgroundColor:"color-white",color:"color-gray-900",alignSelf:"flex-start",borderBottomLeftRadius:"4px",border:"1px solid color-gray-200"},Ke={container:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden"},messagesContainer:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:"12px",padding:"16px",backgroundColor:"color-gray-50"},inputContainer:{position:"relative",backgroundColor:"color-white",borderTop:"1px solid color-gray-200",padding:"12px",display:"flex",alignItems:"flex-end",gap:"8px",transition:"background-color 0.2s ease, border-color 0.2s ease"},bubble:{maxWidth:"80%",position:"relative",wordWrap:"break-word",animation:"chatBubbleAppear 0.25s ease-out"},timestamp:{position:"absolute",top:"-24px",fontSize:"12px",color:"color-gray-500",backgroundColor:"color-white-900",padding:"2px 8px",borderRadius:"9999px",opacity:0,transition:"opacity 0.15s ease-out",border:"1px solid color-gray-200"},input:{flex:1,border:"none",outline:"none",backgroundColor:"transparent",resize:"none",fontFamily:"inherit",fontSize:"14px",minHeight:"24px",maxHeight:"120px"},sendButton:{width:"36px",height:"36px",borderRadius:"10px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s ease, opacity 0.2s ease",flexShrink:0},attachmentButton:{width:"36px",height:"36px",borderRadius:"10px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",transition:"background-color 0.2s ease",flexShrink:0}},oy=({messages:e=[],inputPlaceholder:o="Type a message...",disableInput:t=!1,variant:n="default",size:a="md",showTimestamps:i=!0,enableAttachments:c=!1,enableContextPicker:s=!1,selectedContextElements:d=[],onContextPickerClick:g,onRemoveContextElement:f,isLoading:m=!1,loadingText:p="Loading...",styles:u={},maxHeight:y="600px",internalInputValue:k,handleInputChange:x,handleSubmit:C,inputRef:w,messagesRef:v,inputValue:S,onInputChange:b,...T})=>{var M;const F={...Ke.container,...Qu[n],...u.container},W={...Ke.messagesContainer,maxHeight:y,...u.messagesContainer},j={...Ke.inputContainer,...u.inputContainer},$={...Ke.input,...Ju[a],...u.input},z=h.useCallback(V=>{x(V.target.value),V.target.style.height="auto",V.target.style.height=`${V.target.scrollHeight}px`},[x]),E=h.useCallback(V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),C())},[C]),A=k.trim().length>0,{onSubmit:H,...P}=T;return r.jsxs(l.View,{...F,...P,children:[r.jsxs(l.View,{ref:v,...W,children:[e.length===0?r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",flex:1,color:"color-gray-500",children:r.jsx(l.Text,{fontSize:"14px",children:"No messages yet. Start a conversation."})}):e.map(V=>r.jsx(ry,{message:V,size:a,showTimestamp:i,styles:{bubble:u.bubble,userBubble:u.userBubble,assistantBubble:u.assistantBubble,timestamp:u.timestamp,reasoningContainer:u.reasoningContainer,reasoningContent:u.reasoningContent,errorMessage:u.errorMessage,systemMessage:u.systemMessage,toolMessage:u.toolMessage}},V.id)),m&&r.jsxs(l.Horizontal,{justifyContent:"flex-start",alignItems:"center",gap:8,marginTop:"8px",...u.loadingIndicator,children:[r.jsx(ft,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),r.jsx(l.Text,{color:"color-gray-500",fontSize:"14px",children:p})]})]}),r.jsxs(l.View,{children:[d.length>0&&r.jsx(l.Horizontal,{gap:8,marginBottom:"8px",flexWrap:"wrap",padding:"0 12px 8px",...u.contextChipsContainer,children:d.map(V=>r.jsxs(l.Horizontal,{backgroundColor:"color-blue-50",borderWidth:1,borderStyle:"solid",borderColor:"color-blue-200",borderRadius:"9999px",padding:"6px 10px",alignItems:"center",gap:6,children:[r.jsx(l.Text,{fontSize:"12px",color:"color-blue-700",fontWeight:"500",children:V.name}),r.jsx(l.View,{as:"button",type:"button",onClick:()=>f==null?void 0:f(V.id),cursor:"pointer",border:"none",backgroundColor:"transparent",display:"flex",alignItems:"center",children:r.jsx(Me,{widthHeight:12,color:"color-blue-700"})})]},V.id))}),r.jsxs(l.View,{as:"form",onSubmit:C,...j,children:[c&&r.jsx(l.View,{as:"button",type:"button",...Ke.attachmentButton,...u.attachmentButton,_hover:{backgroundColor:"color-gray-100"},children:r.jsx(Go,{widthHeight:16,color:"color-gray-600"})}),r.jsx(l.View,{as:"textarea",ref:w,value:k,onChange:z,onKeyDown:E,placeholder:o,disabled:t||m,...$,style:{...$,opacity:t||m?.5:1}}),r.jsxs(l.Vertical,{gap:4,alignItems:"center",children:[s&&r.jsx(l.View,{as:"button",type:"button",onClick:g,...Ke.attachmentButton,...u.contextPickerButton,_hover:{backgroundColor:"color-gray-100",...(M=u.contextPickerButton)==null?void 0:M._hover},title:"Select element from page",children:r.jsx(On,{widthHeight:16,color:"color-gray-600"})}),r.jsx(l.View,{as:"button",type:"submit",disabled:!A||t||m,...Ke.sendButton,backgroundColor:A?"theme-primary":"color-gray-300",_hover:{backgroundColor:A?"theme-primary":"color-gray-300"},...u.sendButton,style:{cursor:A?"pointer":"not-allowed",opacity:!A||t||m?.6:1},children:r.jsx(ht,{widthHeight:16,color:"color-white",filled:!1})})]})]})]})]})},ry=({message:e,size:o,showTimestamp:t,styles:n})=>{const[a,i]=h.useState(!1),[c,s]=h.useState(!1),d=e.role==="user",g=e.messageType==="system",f=e.messageType==="error",m=e.messageType==="tool";if(g)return r.jsx(l.View,{display:"flex",justifyContent:"center",padding:"8px",width:"100%",...n.systemMessage,children:r.jsxs(l.Horizontal,{gap:6,alignItems:"center",opacity:.7,children:[r.jsx(Ze,{widthHeight:12,color:"color-gray-600"}),r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",fontStyle:"italic",children:e.content})]})});if(m)return r.jsx(l.View,{display:"flex",justifyContent:"flex-start",padding:"8px 16px",width:"100%",...n.toolMessage,children:r.jsxs(l.Horizontal,{gap:8,alignItems:"center",backgroundColor:"color-gray-50",padding:"8px 10px",borderRadius:"8px",width:"100%",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",children:[r.jsx($n,{widthHeight:14,color:"color-gray-600"}),r.jsxs(l.Vertical,{gap:2,children:[r.jsx(l.Text,{fontSize:"11px",fontWeight:"600",color:"color-gray-700",children:"Tool Usage"}),r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",fontFamily:"monospace",children:e.content})]})]})});const p={...Ke.bubble,...Zu[o],...d?Ru:ey,...f?{backgroundColor:"color-red-50",borderWidth:1,borderStyle:"solid",borderColor:"color-red-200",color:"color-red-700"}:{},...n.bubble,...d?n.userBubble:n.assistantBubble,...f?n.errorMessage:{}},u={...Ke.timestamp,[d?"right":"left"]:"8px",opacity:a?1:0,...n.timestamp};return r.jsx(l.View,{position:"relative",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),display:"flex",justifyContent:d?"flex-end":"flex-start",children:r.jsxs(l.View,{...p,children:[t&&r.jsx(l.View,{...u,children:e.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),f&&r.jsxs(l.Horizontal,{gap:6,marginBottom:"4px",alignItems:"center",children:[r.jsx(Cr,{widthHeight:14,color:"color-red-700"}),r.jsx(l.Text,{fontWeight:"600",fontSize:"12px",children:"Error"})]}),e.reasoning&&r.jsxs(l.View,{marginBottom:"8px",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"color-gray-200",paddingBottom:"8px",...n.reasoningContainer,children:[r.jsxs(l.Horizontal,{as:"button",onClick:()=>s(!c),cursor:"pointer",gap:4,alignItems:"center",backgroundColor:"transparent",border:"none",padding:0,children:[r.jsx(l.Text,{fontSize:"11px",color:"color-gray-500",fontWeight:"600",children:"Thinking Process"}),r.jsx(ge,{orientation:c?"down":"right",widthHeight:10,color:"color-gray-500"})]}),c&&r.jsx(l.View,{padding:"8px",backgroundColor:"color-gray-50",borderRadius:"8px",marginTop:"4px",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",...n.reasoningContent,children:r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",fontStyle:"italic",children:e.reasoning})})]}),r.jsx(l.View,{whiteSpace:"pre-wrap",wordBreak:"break-word",children:e.content}),e.attachments&&e.attachments.length>0&&r.jsx(l.Vertical,{gap:4,marginTop:"8px",children:e.attachments.map(y=>r.jsxs(l.Horizontal,{gap:6,padding:"6px 8px",backgroundColor:"color-gray-50",borderRadius:"8px",fontSize:"12px",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",children:[r.jsx(Go,{widthHeight:14}),r.jsx(l.Text,{children:y.name})]},y.id))}),e.contextElements&&e.contextElements.length>0&&r.jsxs(l.Vertical,{gap:4,marginTop:"8px",children:[r.jsx(l.Text,{fontSize:"11px",color:"color-black-500",fontWeight:"600",children:"Context:"}),e.contextElements.map(y=>r.jsx(l.Horizontal,{gap:6,padding:"6px 10px",backgroundColor:"color-blue-50",borderRadius:"9999px",fontSize:"11px",borderWidth:1,borderStyle:"solid",borderColor:"color-blue-200",children:r.jsx(l.Text,{color:"color-blue-700",fontWeight:"500",children:y.name})},y.id))]})]})})},hn=e=>{const o=Xu(e);return r.jsx(oy,{...e,...o})};hn.displayName="ChatWidget";const Qi=hn;function ty({onSelect:e,onCancel:o,active:t}){const[n,a]=h.useState(null);h.useRef(null);const i=h.useCallback(d=>{var u;if(!t)return;const g=document.elementFromPoint(d.clientX,d.clientY);if(!g||g===document.body||g.closest('[data-chatwidget-ignore="true"]')||g.closest("#chatwidget-overlay")){a(null);return}const f=g.getBoundingClientRect();let m=g.tagName.toLowerCase();if(g.id)m+=`#${g.id}`;else if(g.className&&typeof g.className=="string"){const y=g.className.split(" ")[0];y&&(m+=`.${y}`)}const p=(u=g.innerText)==null?void 0:u.slice(0,20);p&&(m+=` ("${p}...")`),a({id:g.id||`el-${Date.now()}`,name:m,tagName:g.tagName.toLowerCase(),rect:f})},[t]),c=h.useCallback(d=>{!t||d.target.closest('[data-chatwidget-ignore="true"]')||(d.preventDefault(),d.stopPropagation(),n&&e(n))},[t,n,e]),s=h.useCallback(d=>{t&&d.key==="Escape"&&o()},[t,o]);return h.useEffect(()=>{if(!(typeof document>"u"))return t?(document.addEventListener("mousemove",i),document.addEventListener("click",c,!0),document.addEventListener("keydown",s),document.body.style.cursor="crosshair"):(a(null),document.removeEventListener("mousemove",i),document.removeEventListener("click",c,!0),document.removeEventListener("keydown",s),document.body.style.cursor=""),()=>{document.removeEventListener("mousemove",i),document.removeEventListener("click",c,!0),document.removeEventListener("keydown",s),document.body.style.cursor=""}},[t,i,c,s]),{highlightedElement:n}}function ny({element:e}){return e?r.jsx("div",{id:"chatwidget-overlay",style:{position:"fixed",top:e.rect.top,left:e.rect.left,width:e.rect.width,height:e.rect.height,border:"2px solid #1D4ED8",backgroundColor:"rgba(29, 78, 216, 0.08)",pointerEvents:"none",zIndex:99999,transition:"top 0.1s ease-out, left 0.1s ease-out, width 0.1s ease-out, height 0.1s ease-out",borderRadius:"8px"},children:r.jsx("div",{style:{position:"absolute",top:"-24px",left:"0",backgroundColor:"#1D4ED8",color:"white",padding:"2px 8px",borderRadius:"9999px",fontSize:"12px",fontWeight:"bold",whiteSpace:"nowrap"},children:e.name})}):null}const ay=({initialMessages:e=[],onSendMessage:o,bubbleSize:t="md"})=>{const[n,a]=h.useState(!1),[i,c]=h.useState(!1),[s,d]=h.useState(e),[g,f]=h.useState([]),{highlightedElement:m}=ty({active:i,onSelect:x=>{f(C=>[...C,x]),c(!1),a(!0)},onCancel:()=>{c(!1),a(!0)}}),p=()=>a(!n),u=()=>{c(!0),a(!1)},y=x=>{f(C=>C.filter(w=>w.id!==x))},k=x=>{const C={id:Date.now().toString(),role:"user",content:x,timestamp:new Date,contextElements:[...g]};d(w=>[...w,C]),o==null||o(x,g),f([]),setTimeout(()=>{var b;const w=Math.random()>.7,v=Math.random()>.4,S={id:(Date.now()+1).toString(),role:"assistant",timestamp:new Date,content:w?"I will highlight the selected element.":`I received your message regarding: ${((b=C.contextElements)==null?void 0:b.map(T=>T.name).join(", "))||"general context"}. How can I assist you further?`,messageType:w?"tool":"text",reasoning:v?"Analyzing the user input and context... The user seems to be asking about specific elements. I should tailor my response to the selected context.":void 0};d(T=>[...T,S]),w&&setTimeout(()=>{d(T=>[...T,{id:(Date.now()+2).toString(),role:"assistant",messageType:"system",content:'Tool "highlightElement" executed successfully.',timestamp:new Date}])},800)},1e3)};return r.jsxs(l.View,{position:"fixed",bottom:24,right:24,zIndex:9999,children:[r.jsx(ny,{element:m}),i&&r.jsx(l.View,{position:"fixed",top:24,left:"50%",transform:"translateX(-50%)",backgroundColor:"rgba(0,0,0,0.8)",color:"white",padding:"8px 16px",borderRadius:"24px",zIndex:1e4,boxShadow:"0 4px 6px rgba(0,0,0,0.1)",children:r.jsx(l.Text,{fontWeight:"600",fontSize:"14px",children:"Click an element to select it. Press ESC to cancel."})}),n&&r.jsxs(l.View,{position:"absolute",bottom:60,right:0,width:"400px",height:"600px",marginBottom:"16px",backgroundColor:"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(20px)",borderRadius:"24px",border:"1px solid rgba(255, 255, 255, 0.4)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",overflow:"hidden",animation:"slideUp 0.3s ease-out",style:{animation:"fadeIn 0.2s ease-out",transformOrigin:"bottom right"},children:[r.jsxs(l.View,{padding:"16px",borderBottom:"1px solid rgba(0,0,0,0.05)",display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"bold",color:"color-gray-800",children:"ChatWidget Assistant"}),r.jsx(l.View,{as:"button",onClick:()=>a(!1),cursor:"pointer",padding:"4px",borderRadius:"50%",border:"none",backgroundColor:"transparent",_hover:{backgroundColor:"rgba(0,0,0,0.05)"},children:r.jsx(Me,{widthHeight:16,color:"color-gray-500"})})]}),r.jsx(Qi,{messages:s,onSubmit:k,size:t,variant:"minimal",enableContextPicker:!0,selectedContextElements:g,onContextPickerClick:u,onRemoveContextElement:y,styles:{container:{height:"calc(100% - 60px)",backgroundColor:"transparent"},inputContainer:{backgroundColor:"white",margin:"0 16px 16px 16px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"}}})]}),!i&&r.jsx(l.View,{as:"button",onClick:p,width:"56px",height:"56px",borderRadius:"50%",backgroundColor:"theme-primary",border:"none",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",_hover:{transform:"scale(1.05)"},_active:{transform:"scale(0.95)"},"data-chatwidget-ignore":"true",children:n?r.jsx(Me,{widthHeight:24,color:"white"}):r.jsx(Bn,{widthHeight:24,color:"white"})})]})},Zi=e=>{const o=pe("radio",e),t=cl(o);return r.jsx(sl,{...t,...o})};function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ly=typeof Element<"u",iy=typeof Map=="function",cy=typeof Set=="function",sy=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Jr(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var t,n,a;if(Array.isArray(e)){if(t=e.length,t!=o.length)return!1;for(n=t;n--!==0;)if(!Jr(e[n],o[n]))return!1;return!0}var i;if(iy&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!o.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Jr(n.value[1],o.get(n.value[0])))return!1;return!0}if(cy&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!o.has(n.value[0]))return!1;return!0}if(sy&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if(t=e.length,t!=o.length)return!1;for(n=t;n--!==0;)if(e[n]!==o[n])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof o.valueOf=="function")return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof o.toString=="function")return e.toString()===o.toString();if(a=Object.keys(e),t=a.length,t!==Object.keys(o).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;if(ly&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!Jr(e[a[n]],o[a[n]]))return!1;return!0}return e!==e&&o!==o}var dy=function(o,t){try{return Jr(o,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const gy=fn(dy);var hy=function(e,o,t,n,a,i,c,s){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!e){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[t,n,a,i,c,s],f=0;d=new Error(o.replace(/%s/g,function(){return g[f++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}},fy=hy;const Ri=fn(fy);var my=function(o,t,n,a){var i=n?n.call(a,o,t):void 0;if(i!==void 0)return!!i;if(o===t)return!0;if(typeof o!="object"||!o||typeof t!="object"||!t)return!1;var c=Object.keys(o),s=Object.keys(t);if(c.length!==s.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(t),g=0;g<c.length;g++){var f=c[g];if(!d(f))return!1;var m=o[f],p=t[f];if(i=n?n.call(a,m,p,f):void 0,i===!1||i===void 0&&m!==p)return!1}return!0};const py=fn(my);var ec=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ec||{}),mn={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},oc=Object.values(ec),Qr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},rc=Object.entries(Qr).reduce((e,[o,t])=>(e[t]=o,e),{}),Be="data-rh",$o={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Lo=(e,o)=>{for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Object.prototype.hasOwnProperty.call(n,o))return n[o]}return null},uy=e=>{let o=Lo(e,"title");const t=Lo(e,$o.TITLE_TEMPLATE);if(Array.isArray(o)&&(o=o.join("")),t&&o)return t.replace(/%s/g,()=>o);const n=Lo(e,$o.DEFAULT_TITLE);return o||n||void 0},yy=e=>Lo(e,$o.ON_CHANGE_CLIENT_STATE)||(()=>{}),pn=(e,o)=>o.filter(t=>typeof t[e]<"u").map(t=>t[e]).reduce((t,n)=>({...t,...n}),{}),by=(e,o)=>o.filter(t=>typeof t.base<"u").map(t=>t.base).reverse().reduce((t,n)=>{if(!t.length){const a=Object.keys(n);for(let i=0;i<a.length;i+=1){const s=a[i].toLowerCase();if(e.indexOf(s)!==-1&&n[s])return t.concat(n)}}return t},[]),xy=e=>console&&typeof console.warn=="function"&&console.warn(e),gr=(e,o,t)=>{const n={};return t.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&xy(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,i)=>{const c={};i.filter(d=>{let g;const f=Object.keys(d);for(let p=0;p<f.length;p+=1){const u=f[p],y=u.toLowerCase();o.indexOf(y)!==-1&&!(g==="rel"&&d[g].toLowerCase()==="canonical")&&!(y==="rel"&&d[y].toLowerCase()==="stylesheet")&&(g=y),o.indexOf(u)!==-1&&(u==="innerHTML"||u==="cssText"||u==="itemprop")&&(g=u)}if(!g||!d[g])return!1;const m=d[g].toLowerCase();return n[g]||(n[g]={}),c[g]||(c[g]={}),n[g][m]?!1:(c[g][m]=!0,!0)}).reverse().forEach(d=>a.push(d));const s=Object.keys(c);for(let d=0;d<s.length;d+=1){const g=s[d],f={...n[g],...c[g]};n[g]=f}return a},[]).reverse()},ky=(e,o)=>{if(Array.isArray(e)&&e.length){for(let t=0;t<e.length;t+=1)if(e[t][o])return!0}return!1},Cy=e=>({baseTag:by(["href"],e),bodyAttributes:pn("bodyAttributes",e),defer:Lo(e,$o.DEFER),encode:Lo(e,$o.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:pn("htmlAttributes",e),linkTags:gr("link",["rel","href"],e),metaTags:gr("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:gr("noscript",["innerHTML"],e),onChangeClientState:yy(e),scriptTags:gr("script",["src","innerHTML"],e),styleTags:gr("style",["cssText"],e),title:uy(e),titleAttributes:pn("titleAttributes",e),prioritizeSeoTags:ky(e,$o.PRIORITIZE_SEO_TAGS)}),tc=e=>Array.isArray(e)?e.join(""):e,wy=(e,o)=>{const t=Object.keys(e);for(let n=0;n<t.length;n+=1)if(o[t[n]]&&o[t[n]].includes(e[t[n]]))return!0;return!1},un=(e,o)=>Array.isArray(e)?e.reduce((t,n)=>(wy(n,o)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:e,priority:[]},nc=(e,o)=>({...e,[o]:void 0}),Sy=["noscript","script","style"],yn=(e,o=!0)=>o===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),ac=e=>Object.keys(e).reduce((o,t)=>{const n=typeof e[t]<"u"?`${t}="${e[t]}"`:`${t}`;return o?`${o} ${n}`:n},""),vy=(e,o,t,n)=>{const a=ac(t),i=tc(o);return a?`<${e} ${Be}="true" ${a}>${yn(i,n)}</${e}>`:`<${e} ${Be}="true">${yn(i,n)}</${e}>`},Ty=(e,o,t=!0)=>o.reduce((n,a)=>{const i=a,c=Object.keys(i).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,f)=>{const m=typeof i[f]>"u"?f:`${f}="${yn(i[f],t)}"`;return g?`${g} ${m}`:m},""),s=i.innerHTML||i.cssText||"",d=Sy.indexOf(e)===-1;return`${n}<${e} ${Be}="true" ${c}${d?"/>":`>${s}</${e}>`}`},""),lc=(e,o={})=>Object.keys(e).reduce((t,n)=>{const a=Qr[n];return t[a||n]=e[n],t},o),Iy=(e,o,t)=>{const n={key:o,[Be]:!0},a=lc(t,n);return[h.createElement("title",a,o)]},Zr=(e,o)=>o.map((t,n)=>{const a={key:n,[Be]:!0};return Object.keys(t).forEach(i=>{const s=Qr[i]||i;if(s==="innerHTML"||s==="cssText"){const d=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:d}}else a[s]=t[i]}),h.createElement(e,a)}),Pe=(e,o,t=!0)=>{switch(e){case"title":return{toComponent:()=>Iy(e,o.title,o.titleAttributes),toString:()=>vy(e,o.title,o.titleAttributes,t)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>lc(o),toString:()=>ac(o)};default:return{toComponent:()=>Zr(e,o),toString:()=>Ty(e,o,t)}}},Fy=({metaTags:e,linkTags:o,scriptTags:t,encode:n})=>{const a=un(e,mn.meta),i=un(o,mn.link),c=un(t,mn.script);return{priorityMethods:{toComponent:()=>[...Zr("meta",a.priority),...Zr("link",i.priority),...Zr("script",c.priority)],toString:()=>`${Pe("meta",a.priority,n)} ${Pe("link",i.priority,n)} ${Pe("script",c.priority,n)}`},metaTags:a.default,linkTags:i.default,scriptTags:c.default}},zy=e=>{const{baseTag:o,bodyAttributes:t,encode:n=!0,htmlAttributes:a,noscriptTags:i,styleTags:c,title:s="",titleAttributes:d,prioritizeSeoTags:g}=e;let{linkTags:f,metaTags:m,scriptTags:p}=e,u={toComponent:()=>[],toString:()=>""};return g&&({priorityMethods:u,linkTags:f,metaTags:m,scriptTags:p}=Fy(e)),{priority:u,base:Pe("base",o,n),bodyAttributes:Pe("bodyAttributes",t,n),htmlAttributes:Pe("htmlAttributes",a,n),link:Pe("link",f,n),meta:Pe("meta",m,n),noscript:Pe("noscript",i,n),script:Pe("script",p,n),style:Pe("style",c,n),title:Pe("title",{title:s,titleAttributes:d},n)}},bn=zy,Rr=[],xn=!!(typeof window<"u"&&window.document&&window.document.createElement),kn=class{constructor(e,o){Qe(this,"instances",[]);Qe(this,"canUseDOM",xn);Qe(this,"context");Qe(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Rr:this.instances,add:e=>{(this.canUseDOM?Rr:this.instances).push(e)},remove:e=>{const o=(this.canUseDOM?Rr:this.instances).indexOf(e);(this.canUseDOM?Rr:this.instances).splice(o,1)}}});this.context=e,this.canUseDOM=o||!1,o||(e.helmet=bn({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},My=parseInt(h.version.split(".")[0],10),Cn=My>=19,Wy={},ic=h.createContext(Wy),Hy=(xo=class extends h.Component{constructor(t){super(t);Qe(this,"helmetData");Cn?this.helmetData=null:this.helmetData=new kn(this.props.context||{},xo.canUseDOM)}render(){return Cn?h.createElement(h.Fragment,null,this.props.children):h.createElement(ic.Provider,{value:this.helmetData.value},this.props.children)}},Qe(xo,"canUseDOM",xn),xo),_o=(e,o)=>{const t=document.head||document.querySelector("head"),n=t.querySelectorAll(`${e}[${Be}]`),a=[].slice.call(n),i=[];let c;return o&&o.length&&o.forEach(s=>{const d=document.createElement(e);for(const g in s)if(Object.prototype.hasOwnProperty.call(s,g))if(g==="innerHTML")d.innerHTML=s.innerHTML;else if(g==="cssText"){const f=s.cssText;d.appendChild(document.createTextNode(f))}else{const f=g,m=typeof s[f]>"u"?"":s[f];d.setAttribute(g,m)}d.setAttribute(Be,"true"),a.some((g,f)=>(c=f,d.isEqualNode(g)))?a.splice(c,1):i.push(d)}),a.forEach(s=>{var d;return(d=s.parentNode)==null?void 0:d.removeChild(s)}),i.forEach(s=>t.appendChild(s)),{oldTags:a,newTags:i}},wn=(e,o)=>{const t=document.getElementsByTagName(e)[0];if(!t)return;const n=t.getAttribute(Be),a=n?n.split(","):[],i=[...a],c=Object.keys(o);for(const s of c){const d=o[s]||"";t.getAttribute(s)!==d&&t.setAttribute(s,d),a.indexOf(s)===-1&&a.push(s);const g=i.indexOf(s);g!==-1&&i.splice(g,1)}for(let s=i.length-1;s>=0;s-=1)t.removeAttribute(i[s]);a.length===i.length?t.removeAttribute(Be):t.getAttribute(Be)!==c.join(",")&&t.setAttribute(Be,c.join(","))},jy=(e,o)=>{typeof e<"u"&&document.title!==e&&(document.title=tc(e)),wn("title",o)},cc=(e,o)=>{const{baseTag:t,bodyAttributes:n,htmlAttributes:a,linkTags:i,metaTags:c,noscriptTags:s,onChangeClientState:d,scriptTags:g,styleTags:f,title:m,titleAttributes:p}=e;wn("body",n),wn("html",a),jy(m,p);const u={baseTag:_o("base",t),linkTags:_o("link",i),metaTags:_o("meta",c),noscriptTags:_o("noscript",s),scriptTags:_o("script",g),styleTags:_o("style",f)},y={},k={};Object.keys(u).forEach(x=>{const{newTags:C,oldTags:w}=u[x];C.length&&(y[x]=C),w.length&&(k[x]=u[x].oldTags)}),o&&o(),d(e,y,k)},hr=null,Py=e=>{hr&&cancelAnimationFrame(hr),e.defer?hr=requestAnimationFrame(()=>{cc(e,()=>{hr=null})}):(cc(e),hr=null)},Ay=Py,sc=class extends h.Component{constructor(){super(...arguments);Qe(this,"rendered",!1)}shouldComponentUpdate(o){return!py(o,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:o}=this.props.context;o.remove(this),this.emitChange()}emitChange(){const{helmetInstances:o,setHelmet:t}=this.props.context;let n=null;const a=Cy(o.get().map(i=>{const{context:c,...s}=i.props;return s}));Hy.canUseDOM?Ay(a):bn&&(n=bn(a)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:o}=this.props.context;o.add(this),this.emitChange()}render(){return this.init(),null}},et=[],dc=e=>{const o={};for(const t of Object.keys(e))o[rc[t]||t]=e[t];return o},bo=e=>{const o={};for(const t of Object.keys(e)){const n=Qr[t];o[n||t]=e[t]}return o},gc=(e,o)=>{if(!xn)return;const t=document.getElementsByTagName(e)[0];if(!t)return;const n="data-rh-managed",a=t.getAttribute(n),i=a?a.split(","):[],c=Object.keys(o);for(const s of i)c.includes(s)||t.removeAttribute(s);for(const s of c){const d=o[s];d==null||d===!1?t.removeAttribute(s):d===!0?t.setAttribute(s,""):t.setAttribute(s,String(d))}c.length>0?t.setAttribute(n,c.join(",")):t.removeAttribute(n)},Sn=()=>{const e={},o={};for(const t of et){const{htmlAttributes:n,bodyAttributes:a}=t.props;n&&Object.assign(e,dc(n)),a&&Object.assign(o,dc(a))}gc("html",e),gc("body",o)},Vy=class extends h.Component{componentDidMount(){et.push(this),Sn()}componentDidUpdate(){Sn()}componentWillUnmount(){const e=et.indexOf(this);e!==-1&&et.splice(e,1),Sn()}resolveTitle(){const{title:e,titleTemplate:o,defaultTitle:t}=this.props;return e&&o?o.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||t||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const o=this.props.titleAttributes||{};return h.createElement("title",bo(o),e)}renderBase(){const{base:e}=this.props;return e?h.createElement("base",bo(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>h.createElement("meta",{key:t,...bo(o)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>h.createElement("link",{key:t,...bo(o)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>{const{innerHTML:n,...a}=o,i=bo(a);return n&&(i.dangerouslySetInnerHTML={__html:n}),h.createElement("script",{key:t,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>{const{cssText:n,...a}=o,i=bo(a);return n&&(i.dangerouslySetInnerHTML={__html:n}),h.createElement("style",{key:t,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>{const{innerHTML:n,...a}=o,i=bo(a);return n&&(i.dangerouslySetInnerHTML={__html:n}),h.createElement("noscript",{key:t,...i})})}render(){return h.createElement(h.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Ey=(Fn=class extends h.Component{shouldComponentUpdate(e){return!gy(nc(this.props,"helmetData"),nc(e,"helmetData"))}mapNestedChildrenToProps(e,o){if(!o)return null;switch(e.type){case"script":case"noscript":return{innerHTML:o};case"style":return{cssText:o};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,o,t,n){return{...o,[e.type]:[...o[e.type]||[],{...t,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,o,t,n){switch(e.type){case"title":return{...o,[e.type]:n,titleAttributes:{...t}};case"body":return{...o,bodyAttributes:{...t}};case"html":return{...o,htmlAttributes:{...t}};default:return{...o,[e.type]:{...t}}}}mapArrayTypeChildrenToProps(e,o){let t={...o};return Object.keys(e).forEach(n=>{t={...t,[n]:e[n]}}),t}warnOnInvalidChildren(e,o){return Ri(oc.some(t=>e.type===t),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${oc.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Ri(!o||typeof o=="string"||Array.isArray(o)&&!o.some(t=>typeof t!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,o){let t={};return h.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:a,...i}=n.props,c=Object.keys(i).reduce((d,g)=>(d[rc[g]||g]=i[g],d),{});let{type:s}=n;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(n,a),s){case"Symbol(react.fragment)":o=this.mapChildrenToProps(a,o);break;case"link":case"meta":case"noscript":case"script":case"style":t=this.flattenArrayTypeChildren(n,t,c,a);break;default:o=this.mapObjectTypeChildren(n,o,c,a);break}}),this.mapArrayTypeChildrenToProps(t,o)}render(){const{children:e,...o}=this.props;let t={...o},{helmetData:n}=o;if(e&&(t=this.mapChildrenToProps(e,t)),n&&!(n instanceof kn)){const a=n;n=new kn(a.context,!0),delete t.helmetData}return Cn?h.createElement(Vy,{...t}):n?h.createElement(sc,{...t,context:n.value}):h.createElement(ic.Consumer,null,a=>h.createElement(sc,{...t,context:a}))}},Qe(Fn,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Fn);const Dy={airbnb:{highlightStyle:"background",fontWeight:700,letterSpacing:"-0.02em"},apple:{highlightStyle:"solid",fontWeight:600,letterSpacing:"-0.03em"},coinbase:{highlightStyle:"solid",fontWeight:600,letterSpacing:"-0.02em"},figma:{highlightStyle:"underline",fontWeight:600,letterSpacing:"-0.01em",highlightFontWeight:700},linear:{highlightStyle:"gradient",fontWeight:600,letterSpacing:"-0.03em"},nike:{highlightStyle:"underline",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",highlightFontStyle:"italic",highlightFontWeight:900},notion:{highlightStyle:"underline",fontWeight:600,letterSpacing:"-0.01em",highlightFontStyle:"italic"},revolut:{highlightStyle:"gradient",fontWeight:700,letterSpacing:"-0.03em"},shopify:{highlightStyle:"background",fontWeight:700,letterSpacing:"-0.02em"},spacex:{highlightStyle:"glow",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",highlightLetterSpacing:"0.06em"},spotify:{highlightStyle:"background",fontWeight:800,letterSpacing:"-0.03em"},stripe:{highlightStyle:"gradient",fontWeight:700,letterSpacing:"-0.03em"},tesla:{highlightStyle:"solid",fontWeight:500,letterSpacing:"-0.01em",textTransform:"uppercase"},uber:{highlightStyle:"underline",fontWeight:700,letterSpacing:"-0.02em"},vercel:{highlightStyle:"outline",fontWeight:700,letterSpacing:"-0.04em"}},$y={highlightStyle:"background",fontWeight:700,letterSpacing:"-0.02em"},Ly=e=>Dy[e.metadata.id]??$y,hc=(e,o)=>{const t=e.theme;return{canvas:Se(t.canvas),surface:Se(t.surface),text:Se(t.text),muted:Se(t.muted),border:Se(t.border),primary:Se(t.primary),secondary:Se(t.secondary),success:Se(t.success),warning:Se(t.warning),error:Se(t.error),onPrimary:Se(t.onPrimary),appearance:o}},_y=e=>hc(e,"light"),By=e=>hc(e,"dark"),me=({palette:e,label:o,config:t,children:n})=>r.jsxs(l.Vertical,{gap:10,flex:"1 1 320px",minWidth:0,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:10,height:10,borderRadius:9999,backgroundColor:e.appearance==="dark"?"#111111":"#ffffff",borderWidth:1,borderStyle:"solid",borderColor:"rgba(0,0,0,0.15)"}),r.jsx(l.Text,{fontSize:11,fontWeight:"700",letterSpacing:"0.08em",textTransform:"uppercase",children:o})]}),r.jsx(it,{config:t,mode:e.appearance,children:r.jsx(l.View,{padding:20,borderRadius:16,borderWidth:1,borderStyle:"solid",backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",children:n})})]}),Se=e=>!e||typeof e!="string"?e:/^(color|theme|light|dark)-/.test(e)?`var(--${e})`:e,Xe=(e,o)=>`color-mix(in srgb, ${Se(e)} ${o}%, transparent)`,Oy=e=>e&&e.startsWith("var(--")?e.slice(6,-1):e,Ny={cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"neutral"},qy=e=>e.personality||Ny,Je=(e,o="normal")=>{let n={light:300,regular:400,bold:700,black:800}[e.typeWeight];return o==="light"&&(n=Math.max(300,n-200)),o==="heavy"&&(n=Math.min(900,n+100)),n},fr=e=>{switch(e.density){case"tight":return{padding:16,gap:10,large:20};case"spacious":return{padding:28,gap:18,large:36};case"comfortable":default:return{padding:22,gap:14,large:28}}},Uy=e=>e.typeCase==="uppercase"?"uppercase":"none",ot=(e,o)=>{switch(e.surfaceTone){case"glass":return{backgroundColor:o.appearance==="dark"?"rgba(255,255,255,0.04)":"rgba(255,255,255,0.65)",backdropFilter:"blur(14px)"};case"mono":return{backgroundColor:o.appearance==="dark"?"#0a0a0a":Se(o.surface)};case"matte":return{backgroundColor:o.appearance==="dark"?"#181818":"#f4f4f4"};case"paper":default:return{backgroundColor:Se(o.surface)}}},Bo=(e,o)=>{const t=Se(o.primary),n=Se(o.secondary||o.primary);switch(e.accentTreatment){case"gradient":return`linear-gradient(135deg, ${t} 0%, ${n} 100%)`;case"glow":return t;case"stripe":return`repeating-linear-gradient(45deg, ${t} 0 8px, ${n} 8px 16px)`;case"halftone":return`radial-gradient(circle at 30% 30%, ${t} 0%, ${n} 70%)`;case"flat":default:return t}},Oo=(e,o)=>{if(e.accentTreatment==="glow")return`0 0 24px ${Xe(o.primary,40)}, 0 0 4px ${Se(o.primary)}`},lo=e=>({letterSpacing:e.letterSpacing,textTransform:Uy(e),fontStyle:e.typeStyle,fontWeight:Je(e,"heavy")}),Ce=e=>({letterSpacing:e.typeCase==="uppercase"?"0.12em":"0.06em",textTransform:"uppercase",fontStyle:e.typeStyle,fontWeight:Je(e,"normal")}),Gy=(e,o)=>{var n,a,i;const t=(n=e.components)==null?void 0:n[o];return(i=(a=t==null?void 0:t.views)==null?void 0:a.container)==null?void 0:i.borderRadius},Yy=e=>{const o=e.tokens.rawCssVars||{},t=e.theme.border,n=e.theme.surface,a=e.theme.primary,i=o["shadow-ring"]||"rgba(0,0,0,0.08) 0px 0px 0px 1px",c=o["shadow-ring-light"]||`${t} 0px 0px 0px 1px`,s=o["shadow-card"]||`rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, ${n} 0px 0px 0px 1px`,d=o["shadow-card-full"]||`rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, ${n} 0px 0px 0px 1px`;return[{name:"Level 0",label:"Flat",description:"No shadow",shadow:"none"},{name:"Level 1",label:"Ring",description:"Shadow-as-border",shadow:i},{name:"Level 1b",label:"Light Ring",description:"Lighter ring",shadow:c},{name:"Level 2",label:"Card",description:"Ring + subtle lift",shadow:s},{name:"Level 3",label:"Full Card",description:"Ring + lift + ambient + glow",shadow:d},{name:"Focus",label:"Accessibility ring",description:"Focus state — 2px ring",shadow:`0 0 0 2px ${a}`}]},mr=(e,o)=>{const n={accordion:["accordion","card","alert"],tabs:["tabs","button"],panel:["card","alert"]}[o]??[o];for(const a of n){const i=Gy(e,a);if(i!==void 0)return i}return"12px"},vn=({glyph:e,badge:o})=>r.jsxs(l.View,{position:"relative",display:"inline-flex",children:[r.jsx(l.View,{width:32,height:32,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center",style:{backgroundColor:"rgba(0,0,0,0.06)",fontSize:18,lineHeight:"20px"},children:e}),o?r.jsx(l.View,{position:"absolute",top:-10,right:-18,paddingHorizontal:6,paddingVertical:2,borderRadius:9999,style:{backgroundColor:"#ffffff",color:"#222222",fontSize:9,fontWeight:700,letterSpacing:"0.04em",boxShadow:"0 1px 3px rgba(0,0,0,0.18)"},children:o}):null]}),Ky=[{title:"Homes",value:"homes",icon:r.jsx(vn,{glyph:"🏠"}),content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Tokens, inputs, and feedback components share the active config."})},{title:"Experiences",value:"experiences",icon:r.jsx(vn,{glyph:"🎈",badge:"NEW"}),content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Explicit props still override the config defaults."})},{title:"Services",value:"services",icon:r.jsx(vn,{glyph:"🛎️",badge:"NEW"}),content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Each tab carries an icon. Active tab uses the theme primary underline."})}],Xy=[{title:"Token",field:"token"},{title:"Value",field:"value"},{title:"Role",field:"role"}],Jy=[{id:"overview",label:"Overview",href:"#"},{id:"components",label:"Components",href:"#"},{id:"tokens",label:"Tokens",href:"#"}],Qy=({color:e,name:o,role:t,border:n})=>r.jsxs(l.View,{borderWidth:1,borderStyle:"solid",borderRadius:8,overflow:"hidden",minWidth:0,borderColor:n,children:[r.jsx(l.View,{height:76,backgroundColor:e}),r.jsxs(l.Vertical,{gap:4,padding:12,children:[r.jsx(l.Text,{fontSize:13,lineHeight:"18px",fontWeight:"700",children:o}),r.jsx(l.Text,{fontSize:12,lineHeight:"16px",opacity:.7,children:e}),r.jsx(l.Text,{fontSize:12,lineHeight:"16px",opacity:.72,children:t})]})]}),ue=({title:e,children:o,config:t})=>r.jsxs(l.Vertical,{gap:18,padding:24,borderWidth:1,borderStyle:"solid",borderRadius:12,backgroundColor:t.theme.canvas,borderColor:t.theme.border,children:[r.jsx(l.Text,{fontSize:18,lineHeight:"24px",fontWeight:"700",color:t.theme.text,children:e}),o]}),Zy=({config:e})=>{const o=Ly(e),t=o.highlightStyle==="background"?e.theme.onPrimary:e.theme.primary;return r.jsx(l.View,{width:"100%",borderRadius:20,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:e.theme.border,backgroundColor:e.theme.surface,children:r.jsxs(l.Horizontal,{width:"100%",flexWrap:"wrap",alignItems:"stretch",gap:0,children:[r.jsxs(l.Vertical,{flex:"1 1 360px",minWidth:0,padding:36,gap:20,justifyContent:"center",children:[r.jsx(Te,{variant:"outline",content:`${e.metadata.label} hero`}),r.jsx(ri,{size:"xl",responsive:!0,highlightText:"design system",highlightStyle:o.highlightStyle,highlightColor:e.theme.primary,highlightSecondaryColor:o.highlightStyle==="gradient"?e.theme.secondary:e.theme.onPrimary,views:{container:{color:e.theme.text},text:{color:e.theme.text,fontFamily:e.tokens.typography.fontFamily,fontWeight:o.fontWeight,style:{letterSpacing:o.letterSpacing,fontStyle:o.fontStyle??"normal",textTransform:o.textTransform??"none"}},highlight:{color:t,fontWeight:o.highlightFontWeight??o.fontWeight,style:{fontStyle:o.highlightFontStyle??o.fontStyle??"normal",letterSpacing:o.highlightLetterSpacing??o.letterSpacing,textTransform:o.textTransform??"none"}}},children:"Build a beautiful design system in minutes"},`${e.metadata.id}-${o.highlightStyle}`),r.jsxs(l.Text,{color:e.theme.muted,fontFamily:e.tokens.typography.fontFamily,style:{fontSize:16,lineHeight:"24px",maxWidth:520},children:["Each brand defines its own highlight treatment —"," ",r.jsx(l.Text,{as:"span",color:e.theme.primary,fontWeight:"700",children:o.highlightStyle})," ","with weight"," ",r.jsx(l.Text,{as:"span",fontWeight:"700",children:o.fontWeight}),o.highlightFontStyle==="italic"||o.fontStyle==="italic"?", italic":"",o.textTransform==="uppercase"?", uppercase":"","."]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",children:[r.jsx(ce,{color:"theme-primary",size:"md",children:"Get started"}),r.jsx(ce,{variant:"outline",color:"theme-primary",size:"md",children:"View docs"})]})]}),r.jsxs(l.View,{flex:"1 1 320px",minWidth:0,minHeight:260,position:"relative",overflow:"hidden",style:{backgroundImage:`linear-gradient(135deg, ${e.theme.primary}, ${e.theme.secondary||e.theme.primary})`},children:[r.jsx(l.View,{position:"absolute",top:"50%",left:"50%",width:180,height:180,borderRadius:9999,style:{transform:"translate(-50%, -50%)",backgroundColor:"rgba(255,255,255,0.18)",filter:"blur(40px)"}}),r.jsxs(l.Vertical,{width:"100%",height:"100%",minHeight:260,padding:32,justifyContent:"flex-end",alignItems:"flex-start",gap:12,children:[r.jsx(l.Text,{fontWeight:"700",fontFamily:e.tokens.typography.fontFamily,style:{color:e.theme.onPrimary,fontSize:13,letterSpacing:"0.08em",textTransform:"uppercase"},children:e.metadata.label}),r.jsx(l.Text,{fontWeight:"700",fontFamily:e.tokens.typography.fontFamily,style:{color:e.theme.onPrimary,fontSize:28,lineHeight:"32px",letterSpacing:"-0.02em"},children:e.theme.primary})]})]})]})})},Ry=({config:e})=>{var t,n;const o=e.tokens.colors.slice(0,5).map(a=>({token:a.name,value:a.value,role:a.role}));return r.jsxs(l.Vertical,{gap:24,children:[r.jsx(ue,{title:"Color",config:e,children:r.jsx(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:12,children:e.tokens.colors.slice(0,12).map(a=>r.jsx(Qy,{color:a.value,name:a.name,role:a.role,text:e.theme.text,border:e.theme.border},a.name))})}),r.jsx(ue,{title:"Typography",config:e,children:r.jsxs(l.Vertical,{gap:24,children:[r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:48,lineHeight:"1.0",fontWeight:"700",letterSpacing:"0.96px",textTransform:"uppercase",children:"Making Life Multiplanetary"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Display — 48px / Bold / 1.00 / Uppercase"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:16,lineHeight:"1.7",fontWeight:"400",children:"SpaceX designs, manufactures and launches advanced rockets and spacecraft. The company was founded to revolutionize space technology."}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Body — 16px / 400 / 1.70"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:13,lineHeight:"0.94",fontWeight:"700",letterSpacing:"1.17px",textTransform:"uppercase",children:"Falcon 9 · Starship · Dragon"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Nav Bold — 13px / 700 / 0.94 / Uppercase"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:12,lineHeight:"1.0",fontWeight:"400",letterSpacing:"1px",textTransform:"uppercase",children:"Mission Overview"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Caption — 12px / 400 / 1.00 / Uppercase"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:10,lineHeight:"0.94",fontWeight:"400",letterSpacing:"1px",textTransform:"uppercase",children:"Launch Date: 2026-04-15"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Micro — 10px / 400 / 0.94 / Uppercase"})]}),r.jsx(l.Horizontal,{gap:10,flexWrap:"wrap",marginTop:12,children:e.tokens.typography.fontSizes.map(a=>r.jsx(Te,{variant:"outline",content:a},a))})]})}),r.jsx(ue,{title:"Spacing, Radius, Shadow",config:e,children:r.jsxs(l.Vertical,{gap:18,children:[r.jsx(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"flex-end",children:e.tokens.spacing.slice(0,10).map(a=>r.jsxs(l.Vertical,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:a,minWidth:4,height:24,borderRadius:2,backgroundColor:e.theme.primary}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:a})]},a))}),r.jsx(l.Horizontal,{gap:12,flexWrap:"wrap",children:e.tokens.radii.slice(0,6).map(a=>r.jsxs(l.Vertical,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:64,height:64,borderRadius:a,borderWidth:1,borderStyle:"solid",backgroundColor:e.theme.surface,borderColor:e.theme.border}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:a})]},a))}),r.jsx(l.View,{width:"100%",maxWidth:"100%",overflowX:"auto",style:{WebkitOverflowScrolling:"touch",color:e.theme.text},children:r.jsx(je,{views:(n=(t=e.components)==null?void 0:t.table)==null?void 0:n.views,children:r.jsx(je.Template,{caption:"First extracted color tokens",columns:Xy,data:o})})})]})})]})},fc=({palette:e})=>r.jsxs(ke,{width:"min(100%, 420px)",views:{container:{backgroundColor:e.surface,color:e.text,borderWidth:1,borderStyle:"solid",borderColor:e.border},header:{color:e.text,borderColor:e.border},content:{color:e.text},footer:{borderColor:e.border}},children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",children:[r.jsxs(l.Horizontal,{alignItems:"baseline",gap:6,children:[r.jsx(l.Text,{fontSize:24,fontWeight:"800",color:e.text,children:"$182"}),r.jsx(l.Text,{fontSize:14,color:e.muted,children:"night"})]}),r.jsx(Te,{variant:"filled",content:"Best value"})]})}),r.jsx(ke.Content,{children:r.jsxs(l.Vertical,{gap:12,children:[r.jsxs(l.Horizontal,{gap:0,borderRadius:10,borderWidth:1,borderStyle:"solid",borderColor:e.border,overflow:"hidden",children:[r.jsxs(l.Vertical,{flex:1,padding:10,gap:2,borderRightWidth:1,borderRightStyle:"solid",borderColor:e.border,children:[r.jsx(l.Text,{fontSize:10,fontWeight:"700",letterSpacing:"0.06em",color:e.text,children:"CHECK-IN"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"Mar 12, 2026"})]}),r.jsxs(l.Vertical,{flex:1,padding:10,gap:2,children:[r.jsx(l.Text,{fontSize:10,fontWeight:"700",letterSpacing:"0.06em",color:e.text,children:"CHECKOUT"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"Mar 18, 2026"})]})]}),r.jsxs(l.Vertical,{padding:10,gap:2,borderRadius:10,borderWidth:1,borderStyle:"solid",borderColor:e.border,children:[r.jsx(l.Text,{fontSize:10,fontWeight:"700",letterSpacing:"0.06em",color:e.text,children:"GUESTS"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"2 adults"})]}),r.jsx(ce,{isFilled:!0,size:"lg",children:"Reserve"}),r.jsx(qr,{}),r.jsxs(l.Vertical,{gap:6,children:[r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:14,color:e.text,children:"$182 × 6 nights"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"$1,092"})]}),r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:14,color:e.text,children:"Cleaning fee"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"$48"})]}),r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:14,color:e.text,children:"Service fee"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"$165"})]})]}),r.jsx(qr,{}),r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:15,fontWeight:"700",color:e.text,children:"Total before taxes"}),r.jsx(l.Text,{fontSize:15,fontWeight:"700",color:e.text,children:"$1,305"})]})]})})]}),mc=[{name:"Starter",tagline:"For solo makers shipping their first project.",price:"$0",period:"/ month",features:["1 workspace","Up to 3 projects","Community support"],ctaLabel:"Get started"},{name:"Pro",tagline:"For growing teams that need more room to build.",price:"$24",period:"/ month",features:["Unlimited projects","Advanced analytics","Priority email support","Custom domains"],ctaLabel:"Start free trial",featured:!0},{name:"Enterprise",tagline:"For organizations with security and scale needs.",price:"Custom",period:"",features:["SSO & SCIM","Audit logs","Dedicated success manager","99.99% uptime SLA"],ctaLabel:"Contact sales"}],pc=({palette:e,tier:o,personality:t})=>{const n=fr(t),a=ot(t,e),i=Bo(t,e),c=Oo(t,e);return r.jsx(l.View,{width:"min(100%, 280px)",borderRadius:t.cardRadius,overflow:"hidden",borderWidth:o.featured?0:1,borderStyle:"solid",style:{...o.featured?{background:i,boxShadow:c}:a,borderColor:e.border,color:o.featured?e.onPrimary:e.text},children:r.jsxs(l.Vertical,{gap:n.gap,padding:n.padding,children:[r.jsxs(l.Vertical,{gap:6,children:[r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:13,color:o.featured?e.onPrimary:e.text,style:Ce(t),children:o.name}),o.featured?r.jsx(l.View,{paddingHorizontal:10,paddingVertical:4,borderRadius:t.badgeRadius,backgroundColor:Xe(e.onPrimary,22),children:r.jsxs(l.Horizontal,{gap:4,alignItems:"center",children:[r.jsx(l.Text,{fontSize:11,color:e.onPrimary,style:{lineHeight:1},children:t.signatureMotif}),r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:Ce(t),children:t.voice.includes("mission")?"PRIORITY":"POPULAR"})]})}):null]}),r.jsx(l.Text,{fontSize:13,lineHeight:"18px",color:o.featured?Xe(e.onPrimary,85):e.muted,style:{fontStyle:t.typeStyle},children:o.tagline})]}),r.jsxs(l.Horizontal,{alignItems:"baseline",gap:4,children:[r.jsx(l.Text,{fontSize:n.large+8,color:o.featured?e.onPrimary:e.text,style:lo(t),children:o.price}),o.period?r.jsx(l.Text,{fontSize:14,color:o.featured?Xe(e.onPrimary,85):e.muted,style:{fontStyle:t.typeStyle},children:o.period}):null]}),r.jsx(l.Vertical,{gap:8,children:o.features.map(s=>r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:18,height:18,borderRadius:t.cornerStyle==="sharp"?2:9999,backgroundColor:o.featured?Xe(e.onPrimary,22):e.primary,alignItems:"center",justifyContent:"center",style:{display:"flex",flexShrink:0},children:r.jsx(l.Text,{fontSize:11,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(t,"heavy")},children:t.cornerStyle==="sharp"?"+":"✓"})}),r.jsx(l.Text,{fontSize:13,color:o.featured?e.onPrimary:e.text,style:{textTransform:t.typeCase==="uppercase"?"uppercase":"none",letterSpacing:t.typeCase==="uppercase"?"0.04em":"normal",fontStyle:t.typeStyle},children:s})]},s))}),r.jsx(l.View,{alignSelf:"stretch",paddingHorizontal:20,paddingVertical:12,borderRadius:t.pillRadius,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",backgroundColor:o.featured?e.onPrimary:e.text},children:r.jsx(l.Text,{fontSize:14,color:o.featured?e.primary:e.canvas,style:{...Ce(t),letterSpacing:t.typeCase==="uppercase"?"0.08em":"0.02em"},children:o.ctaLabel})})]})})},uc=({palette:e,personality:o})=>{const t=fr(o),n=ot(o,e),a=o.voice.includes("athletic")||o.voice.includes("motion")?"Aero Runner GT":o.voice.includes("mission")||o.voice.includes("futurist")?"Module-04 Insulated Jacket":"Linen Throw Pillow",i=o.voice.includes("athletic")||o.voice.includes("motion")?"Court Black · Mens":o.voice.includes("mission")||o.voice.includes("futurist")?"Carbon · Standard fit":"Stonewashed · Sand";return r.jsx(l.View,{width:"min(100%, 320px)",borderRadius:o.cardRadius,overflow:"hidden",borderWidth:1,borderStyle:"solid",style:{...n,borderColor:e.border,color:e.text},children:r.jsxs(l.Vertical,{gap:t.gap,padding:t.padding,children:[r.jsx(l.View,{height:120,borderRadius:o.cardRadius,style:{background:o.accentTreatment==="gradient"?`linear-gradient(135deg, ${Xe(e.primary,20)} 0%, ${Xe(e.secondary||e.primary,20)} 100%)`:e.appearance==="dark"?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}),r.jsxs(l.Vertical,{gap:4,children:[r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:15,color:e.text,style:lo(o),children:a}),r.jsx(l.View,{paddingHorizontal:10,paddingVertical:3,borderRadius:o.badgeRadius,style:{backgroundColor:e.appearance==="dark"?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"},children:r.jsx(l.Text,{fontSize:10,color:e.text,style:Ce(o),children:"IN STOCK"})})]}),r.jsx(l.Text,{fontSize:12,color:e.muted,style:{fontStyle:o.typeStyle,textTransform:o.typeCase==="uppercase"?"uppercase":"none",letterSpacing:o.typeCase==="uppercase"?"0.04em":"normal"},children:i})]}),r.jsxs(l.Horizontal,{alignItems:"baseline",justifyContent:"space-between",children:[r.jsxs(l.Horizontal,{alignItems:"baseline",gap:6,children:[r.jsx(l.Text,{fontSize:24,color:e.text,style:lo(o),children:"$42"}),r.jsx(l.Text,{fontSize:13,color:e.muted,style:{textDecoration:"line-through"},children:"$56"})]}),r.jsx(l.Text,{fontSize:12,color:e.success||e.muted,style:Ce(o),children:"FREE SHIPPING"})]}),r.jsx(l.View,{alignSelf:"stretch",paddingHorizontal:20,paddingVertical:12,borderRadius:o.pillRadius,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",background:Bo(o,e),boxShadow:Oo(o,e)},children:r.jsx(l.Text,{fontSize:14,color:e.onPrimary,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.08em":"0.02em"},children:"Add to cart"})})]})})},yc=({palette:e,personality:o})=>{const t=fr(o),n=ot(o,e),a=o.signatureMotif,i=o.voice.includes("athletic")?"★":o.voice.includes("mission")||o.voice.includes("futurist")?"◉":"♥",c=o.voice.includes("athletic")?"Velocity AirFlow 7":o.voice.includes("mission")||o.voice.includes("futurist")?"Sentinel Pro Headset":o.voice.includes("refined")?"Pulse Studio Monitor":"Aurora Wireless Headphones",s=o.voice.includes("athletic")?"Lightweight knit · 280g":o.voice.includes("mission")||o.voice.includes("futurist")?"Mil-spec audio · 60h endurance":"Active noise cancelling · 40h battery",d=o.voice.includes("mission")?"MISSION PICK":o.voice.includes("athletic")?"TEAM PICK":o.voice.includes("futurist")?"SIGNATURE":"BEST SELLER";return r.jsxs(l.View,{position:"relative",width:"min(100%, 320px)",children:[r.jsx(l.View,{position:"absolute",top:-10,left:16,paddingHorizontal:12,paddingVertical:6,borderRadius:o.badgeRadius,zIndex:2,style:{background:Bo(o,e),boxShadow:Oo(o,e)||(e.appearance==="dark"?"0 6px 14px rgba(0,0,0,0.5)":"0 6px 14px rgba(0,0,0,0.12)")},children:r.jsxs(l.Horizontal,{gap:6,alignItems:"center",children:[r.jsx(l.Text,{fontSize:11,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(o,"heavy")},children:a}),r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:Ce(o),children:d})]})}),r.jsx(l.View,{position:"absolute",top:12,right:12,width:36,height:36,borderRadius:o.cornerStyle==="sharp"?4:9999,borderWidth:1,borderStyle:"solid",zIndex:2,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",backgroundColor:e.appearance==="dark"?"rgba(0,0,0,0.45)":"rgba(255,255,255,0.92)",borderColor:e.border,backdropFilter:"blur(6px)"},children:r.jsx(l.Text,{fontSize:16,color:i==="♥"&&e.error||e.primary,style:{lineHeight:1},children:i})}),r.jsx(l.View,{width:"100%",borderRadius:o.cardRadius,overflow:"hidden",borderWidth:1,borderStyle:"solid",style:{...n,borderColor:e.border,color:e.text},children:r.jsxs(l.Vertical,{gap:t.gap,padding:t.padding,children:[r.jsx(l.View,{height:140,borderRadius:o.cardRadius,style:{background:o.accentTreatment==="gradient"?`linear-gradient(135deg, ${Xe(e.primary,20)} 0%, ${Xe(e.secondary||e.primary,20)} 100%)`:e.appearance==="dark"?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}),r.jsxs(l.Vertical,{gap:6,children:[r.jsxs(l.Horizontal,{gap:6,alignItems:"center",children:[r.jsx(l.Text,{fontSize:13,color:e.warning||e.primary,style:{lineHeight:1},children:"★★★★★"}),r.jsx(l.Text,{fontSize:12,color:e.muted,children:"4.9 · 1,284 reviews"})]}),r.jsx(l.Text,{fontSize:18,color:e.text,style:lo(o),children:c}),r.jsx(l.Text,{fontSize:12,color:e.muted,style:{fontStyle:o.typeStyle,textTransform:o.typeCase==="uppercase"?"uppercase":"none",letterSpacing:o.typeCase==="uppercase"?"0.04em":"normal"},children:s})]}),r.jsxs(l.Horizontal,{alignItems:"baseline",justifyContent:"space-between",children:[r.jsxs(l.Horizontal,{alignItems:"baseline",gap:6,children:[r.jsx(l.Text,{fontSize:26,color:e.text,style:lo(o),children:"$189"}),r.jsx(l.Text,{fontSize:13,color:e.muted,style:{textDecoration:"line-through"},children:"$249"})]}),r.jsx(l.View,{paddingHorizontal:8,paddingVertical:3,borderRadius:o.badgeRadius,style:{backgroundColor:e.appearance==="dark"?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"},children:r.jsx(l.Text,{fontSize:10,color:e.text,style:Ce(o),children:"–24%"})})]}),r.jsxs(l.Horizontal,{gap:8,children:[r.jsx(l.View,{flex:1,paddingHorizontal:16,paddingVertical:12,borderRadius:o.pillRadius,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",background:Bo(o,e),boxShadow:Oo(o,e)},children:r.jsx(l.Text,{fontSize:13,color:e.onPrimary,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.08em":"0.02em"},children:"Buy now"})}),r.jsx(l.View,{paddingHorizontal:16,paddingVertical:12,borderRadius:o.pillRadius,borderWidth:1,borderStyle:"solid",alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",borderColor:e.border},children:r.jsx(l.Text,{fontSize:13,color:e.text,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.08em":"0.02em"},children:"Add to cart"})})]})]})})]})},eb=[{slug:"PRIMARY-TINT",source:"primary",intensity:"tint",heading:"Bring everyone together with systems that scale",body:"Signature primary ground for systems, FAQ, and the contact form.",cta:"Get started"},{slug:"SECONDARY-TINT",source:"secondary",intensity:"tint",heading:"A faster, more efficient way of working",body:"Secondary ground for hero moments and supporting narrative.",cta:"Explore"},{slug:"WARNING-TINT",source:"warning",intensity:"tint",heading:"Designed for the way ideas actually move",body:"Warm tint for product storytelling and brand moments.",cta:"See the story"},{slug:"SUCCESS-TINT",source:"success",intensity:"tint",heading:"Ship with confidence, every single release",body:"Cool tint for changelogs, releases, and reliability notes.",cta:"Read changelog"},{slug:"ERROR-TINT",source:"error",intensity:"tint",heading:"Built for teams who care about the details",body:"Saturated tint for community stories and testimonials.",cta:"Meet the makers"},{slug:"INK-INVERTED",source:"ink",intensity:"inverted",heading:"Go deeper. Go further. Go all-in.",body:"Inverted ground for premium tiers and developer surfaces.",cta:"Open the docs"}],Tn=(e,o)=>{const t=e.replace("#","").padEnd(6,"0").slice(0,6),n=parseInt(t.slice(0,2),16),a=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return[n,a,i].some(Number.isNaN)?e:`rgba(${n}, ${a}, ${i}, ${o})`},In=e=>typeof e=="string"&&/^#([0-9a-f]{3}){1,2}$/i.test(e),He=(e,o,t)=>In(e)?Tn(e,o):e.startsWith("rgba")||e.startsWith("rgb")?e.replace(/rgba?\(([^)]+)\)/,(n,a)=>`rgba(${a.split(",").slice(0,3).map(c=>c.trim()).join(", ")}, ${o})`):t==="dark"?`rgba(255,255,255,${o})`:`rgba(0,0,0,${o})`,ob=({block:e,palette:o,personality:t})=>{const n=fr(t);let a,i;if(e.source==="ink")a=o.text,i=o.canvas;else{const f=o[e.source]||o.primary;e.intensity==="solid"?(a=f,i=o.onPrimary):(a=He(f,.32,o.appearance),i=(o.appearance==="dark",o.text))}if(t.accentTreatment==="gradient"&&e.intensity==="tint"){const f=o[e.source],m=o.secondary;In(f)&&In(m)&&(a=`linear-gradient(135deg, ${Tn(f,.32)} 0%, ${Tn(m,.32)} 100%)`)}if(t.accentTreatment==="stripe"&&e.intensity==="tint"){const f=He(o[e.source],.32,o.appearance),m=He(o.secondary,.18,o.appearance);a=`repeating-linear-gradient(135deg, ${f} 0 18px, ${m} 18px 36px)`}const c=He(i,.72,o.appearance),s=He(i,.55,o.appearance),d=i,g=i===o.canvas?o.text:o.canvas;return r.jsx(l.View,{width:"min(100%, 460px)",borderRadius:t.cardRadius*2,padding:n.large,style:{background:a},children:r.jsxs(l.Vertical,{gap:n.gap+6,children:[r.jsxs(l.Text,{fontSize:11,color:s,style:{...Ce(t),letterSpacing:"0.12em",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace"},children:[t.signatureMotif," ",e.slug]}),r.jsxs(l.Vertical,{gap:14,children:[r.jsx(l.Text,{fontSize:32,lineHeight:"36px",color:i,style:lo(t),children:e.heading}),r.jsx(l.Text,{fontSize:16,lineHeight:"22px",color:c,style:{fontStyle:t.typeStyle},children:e.body})]}),r.jsx(l.View,{alignSelf:"flex-start",paddingHorizontal:28,paddingVertical:14,borderRadius:t.pillRadius,style:{backgroundColor:d,cursor:"pointer"},children:r.jsx(l.Text,{fontSize:15,color:g,style:{...Ce(t),letterSpacing:t.typeCase==="uppercase"?"0.08em":"0.01em",textTransform:t.typeCase==="uppercase"?"uppercase":"none"},children:e.cta})})]})})},bc=[{id:"design-tokens",badge:"NEW",badgeTone:"success",favorite:"♥",category:"Design systems",title:"Design tokens that survive a redesign",excerpt:"Why semantic naming beats raw values — and how to migrate a token set without breaking every consumer.",author:"Léa Martin",meta:"6 min read · Mar 10",imageTone:"warm"},{id:"shipping-faster",badge:"FEATURED",badgeTone:"primary",favorite:"★",category:"Engineering",title:"Shipping faster without skipping review",excerpt:"Three async patterns we use to keep PR cycle time under 24h while still catching the regressions that matter.",author:"Jordan Reyes",meta:"9 min read · Mar 04",imageTone:"cool"},{id:"a11y-audit",badge:"TRENDING",badgeTone:"warning",favorite:"⛉",category:"Accessibility",title:"The accessibility audit nobody asked for",excerpt:"A walkthrough of the 12 issues we found on our own marketing site — and the four-week fix plan that followed.",author:"Ines Okafor",meta:"12 min read · Feb 27",imageTone:"mono"}],xc=({palette:e,article:o,personality:t})=>{const n=fr(t),a=ot(t,e),i=e[o.badgeTone]||e.primary,c=e.secondary||e.primary,s=t.accentTreatment==="gradient"?`linear-gradient(135deg, ${He(i,.55,e.appearance)} 0%, ${He(c,.55,e.appearance)} 100%)`:t.accentTreatment==="stripe"?`repeating-linear-gradient(45deg, ${He(i,.45,e.appearance)} 0 16px, ${He(c,.25,e.appearance)} 16px 32px)`:t.accentTreatment==="halftone"?`radial-gradient(circle at 30% 30%, ${He(i,.55,e.appearance)} 0%, ${He(c,.35,e.appearance)} 70%)`:t.accentTreatment==="glow"?`radial-gradient(circle at 50% 60%, ${He(i,.45,e.appearance)} 0%, ${e.appearance==="dark"?"#050505":"#0a0a0a"} 100%)`:He(i,.32,e.appearance),d=t.voice.includes("mission")||t.voice.includes("futurist")?"◉":o.favorite,g=d==="♥"?e.error||e.primary:d==="★"&&e.warning||e.primary;return r.jsx(l.View,{width:"min(100%, 320px)",borderRadius:t.cardRadius,overflow:"hidden",borderWidth:1,borderStyle:"solid",style:{...a,borderColor:e.border,color:e.text},children:r.jsxs(l.Vertical,{gap:n.gap,padding:n.padding,children:[r.jsxs(l.View,{position:"relative",height:160,borderRadius:t.cardRadius,overflow:"hidden",style:{background:s},children:[r.jsx(l.View,{position:"absolute",top:12,left:12,paddingHorizontal:10,paddingVertical:4,borderRadius:t.badgeRadius,style:{background:Bo(t,{...e,primary:i}),boxShadow:Oo(t,e)},children:r.jsxs(l.Horizontal,{gap:4,alignItems:"center",children:[r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(t,"heavy")},children:t.signatureMotif}),r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:Ce(t),children:o.badge})]})}),r.jsx(l.View,{position:"absolute",top:10,right:10,width:36,height:36,borderRadius:t.cornerStyle==="sharp"?4:9999,borderWidth:1,borderStyle:"solid",alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",backgroundColor:e.appearance==="dark"?"rgba(0,0,0,0.45)":"rgba(255,255,255,0.92)",borderColor:e.border,backdropFilter:"blur(6px)"},children:r.jsx(l.Text,{fontSize:16,color:g,style:{lineHeight:1},children:d})})]}),r.jsxs(l.Vertical,{gap:8,children:[r.jsx(l.Text,{fontSize:11,color:e.muted,style:Ce(t),children:o.category}),r.jsx(l.Text,{fontSize:18,lineHeight:"24px",color:e.text,style:lo(t),children:o.title}),r.jsx(l.Text,{fontSize:13,lineHeight:"18px",color:e.muted,style:{fontStyle:t.typeStyle},children:o.excerpt})]}),r.jsxs(l.Horizontal,{gap:10,alignItems:"center",children:[r.jsx(l.View,{width:28,height:28,borderRadius:t.cornerStyle==="sharp"?4:9999,style:{backgroundColor:e.appearance==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.08)"}}),r.jsxs(l.Vertical,{gap:0,children:[r.jsx(l.Text,{fontSize:12,color:e.text,style:{fontWeight:Je(t,"normal"),fontStyle:t.typeStyle},children:o.author}),r.jsx(l.Text,{fontSize:11,color:e.muted,children:o.meta})]})]})]})})},kc=({palette:e,personality:o,config:t})=>{var m,p,u,y;const n=o.signatureMotif,a=e.primary,i=Bo(o,e),c=Oo(o,e),s=((p=(m=t.tokens)==null?void 0:m.typography)==null?void 0:p.fontFamily)||((y=(u=t.tokens)==null?void 0:u.rawCssVars)==null?void 0:y.display)||"inherit",d=o.voice.includes("mission")?"MAKING LIFE MULTIPLANETARY":o.voice.includes("athletic")?"JUST DO IT":o.voice.includes("refined")?"A new standard in payments":o.voice.includes("speed")?"Built for the makers":o.voice.includes("rhythmic")?"Music for everyone":o.voice.includes("thoughtful")?"The connected workspace":o.voice.includes("warm")?"Belong anywhere":o.voice.includes("minimal")?"Think different":o.voice.includes("commerce")?"The platform commerce is built on":o.voice.includes("bold-fintech")?"Money for the next generation":o.voice.includes("trustworthy")?"The future of money":o.voice.includes("playful")?"Nothing great is made alone":o.voice.includes("motion")?"Get there":o.voice.includes("deploy")?"Develop. Preview. Ship.":o.voice.includes("futurist")?"Accelerating the world to sustainable energy":`${t.metadata.label}`,g=o.typeCase==="uppercase"?"EXPLORE":"Get started",f=o.typeCase==="uppercase"?"LEARN MORE":"Learn more";return r.jsxs(l.View,{width:"100%",borderRadius:o.cardRadius*2,padding:o.density==="spacious"?56:o.density==="tight"?28:40,style:{backgroundColor:e.canvas,color:e.text,fontFamily:s,position:"relative",overflow:"hidden"},children:[o.accentTreatment==="glow"&&r.jsx(l.View,{position:"absolute",top:-120,right:-80,width:360,height:360,borderRadius:9999,style:{background:`radial-gradient(circle, ${a}40 0%, transparent 70%)`,pointerEvents:"none"}}),o.accentTreatment==="halftone"&&r.jsx(l.View,{position:"absolute",top:0,right:0,width:300,height:300,style:{background:`radial-gradient(circle at 70% 30%, ${a}30 0%, transparent 60%)`,pointerEvents:"none"}}),r.jsxs(l.Vertical,{gap:24,style:{position:"relative"},children:[r.jsxs(l.Horizontal,{gap:10,alignItems:"center",children:[r.jsx(l.View,{width:32,height:32,borderRadius:o.cornerStyle==="pill"?9999:o.cornerStyle==="sharp"?0:8,alignItems:"center",justifyContent:"center",style:{display:"flex",background:i,boxShadow:c},children:r.jsx(l.Text,{fontSize:16,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(o,"heavy")},children:n})}),r.jsx(l.Text,{fontSize:13,color:e.muted,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.18em":"0.06em"},children:t.metadata.label})]}),r.jsx(l.Text,{fontSize:o.density==="spacious"?56:o.density==="tight"?40:48,lineHeight:o.density==="spacious"?"60px":o.density==="tight"?"44px":"52px",color:e.text,style:{...lo(o),letterSpacing:o.typeCase==="uppercase"?"0.06em":o.letterSpacing,maxWidth:580,fontFamily:s},children:d}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(l.View,{paddingHorizontal:o.density==="spacious"?32:24,paddingVertical:o.density==="spacious"?16:14,borderRadius:o.pillRadius,style:{display:"flex",cursor:"pointer",background:i,boxShadow:c},children:r.jsx(l.Text,{fontSize:15,color:e.onPrimary,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.14em":"0.02em",fontWeight:Je(o,"heavy"),fontFamily:s},children:g})}),r.jsx(l.View,{paddingHorizontal:24,paddingVertical:14,borderRadius:o.pillRadius,borderWidth:1,borderStyle:"solid",style:{display:"flex",cursor:"pointer",borderColor:e.text},children:r.jsx(l.Text,{fontSize:15,color:e.text,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.14em":"0.02em",fontWeight:Je(o,"heavy"),fontFamily:s},children:f})})]}),r.jsx(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"center",marginTop:8,children:[{label:"Primary",value:e.primary},{label:"Surface",value:e.surface},{label:"Text",value:e.text},{label:"Success",value:e.success}].map(k=>r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:20,height:20,borderRadius:o.cornerStyle==="sharp"?0:o.cornerStyle==="pill"?9999:4,borderWidth:1,borderStyle:"solid",style:{backgroundColor:k.value,borderColor:e.border}}),r.jsxs(l.Vertical,{gap:0,children:[r.jsx(l.Text,{fontSize:11,color:e.muted,style:Ce(o),children:k.label}),r.jsx(l.Text,{fontSize:11,color:e.text,style:{fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace"},children:Oy(k.value)})]})]},k.label))})]})]})},Cc=({palette:e,config:o})=>r.jsxs(l.Vertical,{gap:20,padding:36,alignItems:"center",borderRadius:16,style:{backgroundColor:e.surface},children:[r.jsx(Te,{variant:"outline",content:"New release"}),r.jsxs(l.Vertical,{gap:8,alignItems:"center",children:[r.jsxs(l.Text,{fontSize:36,lineHeight:"40px",fontWeight:"800",textAlign:"center",color:e.text,children:[o.metadata.label," Pro"]}),r.jsx(l.Text,{fontSize:18,lineHeight:"24px",color:e.muted,textAlign:"center",children:"Pro. Beyond."})]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",justifyContent:"center",children:[r.jsx(ce,{shape:"pill",size:"md",children:"Learn more"}),r.jsx(ce,{shape:"pill",size:"md",variant:"outline",children:"Buy"})]}),r.jsx(l.View,{width:220,height:140,borderRadius:20,backgroundColor:e.appearance==="dark"?e.canvas:e.text,opacity:.85})]}),wc=({palette:e,config:o})=>r.jsxs(ke,{width:"min(100%, 320px)",views:{container:{backgroundColor:e.surface,color:e.text,borderWidth:1,borderStyle:"solid",borderColor:e.border},header:{color:e.text,borderColor:e.border},content:{color:e.text},footer:{borderColor:e.border}},children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",children:[r.jsx(l.Text,{color:e.text,fontWeight:"700",children:o.metadata.id==="spacex"?"Falcon 9":"Product Card"}),r.jsx(Te,{variant:"filled",content:"New"})]})}),r.jsx(ke.Content,{children:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",color:e.text,children:o.metadata.id==="spacex"?"The world's first orbital-class reusable rocket. Designed for reliable and safe transport of people and payloads.":"Card surfaces, borders, typography, and shadows come from the active JSON config."})}),r.jsx(ke.Footer,{children:r.jsx(ce,{size:"sm",children:o.metadata.id==="spacex"?"Explore":"Review"})})]}),Sc=({palette:e})=>r.jsxs(l.Vertical,{gap:14,children:[r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(ce,{color:"theme-primary",children:"Primary"}),r.jsx(ce,{color:"theme-secondary",children:"Secondary"}),r.jsx(ce,{color:"color-black",children:"Black"}),r.jsx(ce,{color:"color-white",textColor:"color-black",children:"White"})]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(ce,{variant:"outline",color:"theme-primary",children:"Primary"}),r.jsx(ce,{variant:"outline",color:"theme-secondary",children:"Secondary"}),r.jsx(ce,{variant:"outline",color:"color-black",children:"Black"}),r.jsx(ce,{variant:"outline",color:"color-white",children:"White"})]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(ce,{variant:"ghost",views:{container:{color:e.text}},children:"Ghost"}),r.jsx(ce,{variant:"link",views:{container:{color:e.primary}},children:"Link"}),r.jsx(ce,{isDisabled:!0,children:"Disabled"}),r.jsx(ce,{isLoading:!0,children:"Loading"})]})]}),vc=({palette:e,config:o})=>r.jsx(l.View,{style:{color:e.text},children:r.jsxs(l.Vertical,{gap:14,children:[r.jsxs(l.Horizontal,{gap:10,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Te,{content:"Badge"}),r.jsx(Te,{variant:"outline",content:"Outline"}),r.jsx(Te,{content:"Primary",views:{container:{backgroundColor:e.primary,color:e.onPrimary,borderColor:e.primary}}}),r.jsx(Te,{content:"Success",views:{container:{backgroundColor:e.success,color:e.onPrimary,borderColor:e.success}}}),r.jsx(Te,{content:"Warning",views:{container:{backgroundColor:e.warning,color:e.onPrimary,borderColor:e.warning}}}),r.jsx(Te,{content:"Error",views:{container:{backgroundColor:e.error,color:e.onPrimary,borderColor:e.error}}})]}),r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Ur,{status:"success",label:"Operational"}),r.jsx(Ur,{status:"warning",label:"Degraded"}),r.jsx(Ur,{status:"error",label:"Outage"}),r.jsx(Re,{size:"sm",loaderColor:o.theme.primary})]}),r.jsx(bt,{title:"Heads up",description:"Brand styling cascades through every alert.",variant:"info",views:{container:{backgroundColor:e.surface,borderColor:e.border,color:e.text},title:{color:e.text},description:{color:e.muted}}}),r.jsx(Si,{value:64,height:10,showLabel:!0,color:e.primary,backgroundColor:e.border,views:{container:{backgroundColor:e.border},bar:{backgroundColor:e.primary}}})]})}),Tc=({palette:e,config:o,mode:t})=>{const n={container:{backgroundColor:e.surface,borderColor:e.border,color:e.text},field:{color:e.text}};return r.jsx(l.View,{style:{color:e.text},children:r.jsxs(l.Vertical,{gap:16,children:[r.jsxs(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:16,alignItems:"start",children:[r.jsx(We,{size:"md",label:"Name",placeholder:"Ada Lovelace",views:n}),r.jsx(Qo,{id:`forms-${o.metadata.id}-${t}`,size:"md",label:"Plan",placeholder:"Select plan",options:[{label:"Starter",value:"starter"},{label:"Team",value:"team"},{label:"Enterprise",value:"enterprise"}],views:{container:n.container,field:{fontSize:14,lineHeight:"20px",color:e.text},text:{fontSize:14,lineHeight:"20px",color:e.text}}}),r.jsx(At,{label:"Notes",placeholder:"Add implementation notes",views:n})]}),r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Dt,{label:"Email updates",defaultIsSelected:!0}),r.jsx(Zi,{label:"Standard",value:"standard",defaultIsSelected:!0}),r.jsx(Pt,{label:"Enabled",isChecked:!0})]})]})})},rb=({config:e})=>{const[o,t]=h.useState(1),n=_y(e),a=By(e),i=qy(e);return r.jsxs(l.Vertical,{gap:24,children:[r.jsx(ue,{title:"Brand Snapshot (Light & Dark)",config:e,children:r.jsxs(l.Vertical,{gap:20,children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(kc,{palette:n,personality:i,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(kc,{palette:a,personality:i,config:e})})]})}),r.jsx(ue,{title:"Buttons — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(Sc,{palette:n})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(Sc,{palette:a})})]})}),r.jsx(ue,{title:"Status & Feedback — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(vc,{palette:n,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(vc,{palette:a,config:e})})]})}),r.jsx(ue,{title:"Forms — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(Tc,{palette:n,config:e,mode:"light"})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(Tc,{palette:a,config:e,mode:"dark"})})]})}),r.jsx(ue,{title:"Forms (legacy preview)",config:e,children:r.jsxs(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",alignItems:"start",gap:16,children:[r.jsx(We,{size:"md",label:"Name",placeholder:"Ada Lovelace"}),r.jsx(Qo,{id:`design-system-select-${e.metadata.id}`,size:"md",label:"Plan",placeholder:"Select plan",options:[{label:"Starter",value:"starter"},{label:"Team",value:"team"},{label:"Enterprise",value:"enterprise"}],views:{field:{fontSize:14,lineHeight:"20px"},text:{fontSize:14,lineHeight:"20px"}}}),r.jsx(At,{label:"Notes",placeholder:"Add implementation notes"}),r.jsxs(l.Vertical,{gap:12,children:[r.jsx(Dt,{label:"Email updates",defaultIsSelected:!0}),r.jsx(Zi,{label:"Standard",value:"standard",defaultIsSelected:!0}),r.jsx(Pt,{label:"Enabled",isChecked:!0}),r.jsx(Vl,{defaultValue:58,showValue:!0}),r.jsx(ll,{length:6,label:"Verification Code"})]})]})}),r.jsx(ue,{title:"Form States",config:e,children:r.jsxs(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:16,alignItems:"start",children:[r.jsx(We,{size:"md",label:"Default",placeholder:"Type here",helperText:"Resting state"}),r.jsx(We,{size:"md",label:"Filled",defaultValue:"Ada Lovelace",helperText:"Has value"}),r.jsx(We,{size:"md",label:"With helper",placeholder:"user@example.com",helperText:"We'll never share your email"}),r.jsx(We,{size:"md",label:"Error",defaultValue:"invalid@",error:"Please enter a valid email"}),r.jsx(We,{size:"md",label:"Disabled",isDisabled:!0,defaultValue:"Cannot edit",helperText:"Field locked"}),r.jsx(We,{size:"md",label:"Read only",defaultValue:"Read-only value",isReadOnly:!0,helperText:"View only"}),r.jsx(Qo,{id:`design-system-select-error-${e.metadata.id}`,size:"md",label:"Select error",placeholder:"Pick one",error:!0,helperText:"Selection required",options:[{label:"Option A",value:"a"},{label:"Option B",value:"b"}],views:{field:{fontSize:14,lineHeight:"20px"},text:{fontSize:14,lineHeight:"20px"}}}),r.jsx(Qo,{id:`design-system-select-disabled-${e.metadata.id}`,size:"md",label:"Select disabled",placeholder:"Disabled",isDisabled:!0,options:[{label:"Option A",value:"a"},{label:"Option B",value:"b"}],views:{field:{fontSize:14,lineHeight:"20px"},text:{fontSize:14,lineHeight:"20px"}}})]})}),r.jsx(ue,{title:"Elevation & Depth",config:e,children:r.jsx(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:20,children:Yy(e).map(c=>r.jsxs(l.Vertical,{gap:12,children:[r.jsx(l.View,{height:120,borderRadius:12,backgroundColor:e.theme.canvas,style:{boxShadow:c.shadow}}),r.jsxs(l.Vertical,{gap:4,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"baseline",flexWrap:"wrap",children:[r.jsx(l.Text,{fontSize:12,fontWeight:"700",children:c.name}),r.jsx(l.Text,{fontSize:11,fontWeight:"600",color:e.theme.primary,children:c.label})]}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:c.description}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,style:{wordBreak:"break-word",opacity:.8},children:c.shadow})]})]},c.name))})}),r.jsx(ue,{title:"Color Blocks",config:e,children:r.jsx(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,children:[["primary","Primary",e.theme.onPrimary],["secondary","Secondary",e.theme.onPrimary],["success","Success","#ffffff"],["warning","Warning","#ffffff"],["error","Error","#ffffff"],["canvas","Canvas",e.theme.text],["surface","Surface",e.theme.text],["text","Text",e.theme.canvas],["muted","Muted",e.theme.canvas],["border","Border",e.theme.text],["onPrimary","On primary",e.theme.text]].map(([c,s,d])=>{const g=e.theme[c];return r.jsxs(l.Vertical,{gap:0,borderRadius:12,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:e.theme.border,children:[r.jsx(l.View,{height:88,backgroundColor:g}),r.jsxs(l.Vertical,{gap:4,padding:12,backgroundColor:e.theme.surface,children:[r.jsx(l.Text,{fontSize:13,fontWeight:"700",children:s}),r.jsxs(l.Text,{fontSize:11,color:e.theme.muted,children:["theme.",c]}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:g})]})]},c)})})}),r.jsx(ue,{title:"Pricing — Booking (Light & Dark)",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(fc,{palette:n})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(fc,{palette:a})})]})}),r.jsx(ue,{title:"Pricing — SaaS Tiers (Light & Dark)",config:e,children:r.jsxs(l.Vertical,{gap:20,children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:mc.map(c=>r.jsx(pc,{palette:n,tier:c,personality:i},c.name))})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:mc.map(c=>r.jsx(pc,{palette:a,tier:c,personality:i},c.name))})})]})}),r.jsx(ue,{title:"Pricing — Product (Light & Dark)",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(uc,{palette:n,personality:i})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(uc,{palette:a,personality:i})})]})}),r.jsx(ue,{title:"Pricing — Featured w/ Badge & Favorite (Light & Dark)",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(yc,{palette:n,personality:i})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(yc,{palette:a,personality:i})})]})}),r.jsx(ue,{title:"Content — Color Block Cards",config:e,children:r.jsx(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:eb.map(c=>r.jsx(ob,{block:c,palette:n,personality:i},c.slug))})}),r.jsx(ue,{title:"Content — Article Cards w/ Badge & Favorite (Light & Dark)",config:e,children:r.jsxs(l.Vertical,{gap:20,children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:bc.map(c=>r.jsx(xc,{palette:n,article:c,personality:i},c.id))})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:bc.map(c=>r.jsx(xc,{palette:a,article:c,personality:i},c.id))})})]})}),r.jsx(ue,{title:"CTA Card — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(Cc,{palette:n,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(Cc,{palette:a,config:e})})]})}),r.jsx(ue,{title:"Product Card — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(wc,{palette:n,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(wc,{palette:a,config:e})})]})}),r.jsx(ue,{title:"Content & Layout",config:e,children:r.jsxs(l.Vertical,{gap:24,children:[r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:[r.jsxs(ke,{width:"min(100%, 320px)",children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",children:[r.jsx(l.Text,{fontWeight:"700",children:e.metadata.id==="spacex"?"Falcon 9":"Product Card"}),r.jsx(Te,{variant:"filled",content:"New"})]})}),r.jsx(ke.Content,{children:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:e.metadata.id==="spacex"?"The world's first orbital-class reusable rocket. Designed for reliable and safe transport of people and payloads.":"Card surfaces, borders, typography, and shadows come from the active JSON config."})}),r.jsx(ke.Footer,{children:r.jsx(ce,{size:"sm",children:e.metadata.id==="spacex"?"Explore":"Review"})})]}),r.jsxs(ke,{width:"min(100%, 320px)",children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{gap:12,alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",children:[r.jsxs(l.Horizontal,{gap:12,alignItems:"center",children:[r.jsx(Qn,{fallback:e.metadata.label.slice(0,2)}),r.jsxs(l.Vertical,{gap:2,children:[r.jsx(l.Text,{fontWeight:"700",children:e.metadata.id==="spacex"?"Starship":e.metadata.label}),r.jsx(l.Text,{fontSize:12,color:e.theme.muted,children:e.metadata.id==="spacex"?"Multiplanetary mission":"Config-driven preview"})]})]}),r.jsx(Te,{variant:"outline",content:"Active"})]})}),r.jsx(ke.Content,{children:e.metadata.id==="spacex"?r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"The most powerful launch vehicle ever developed. Designed to carry crew and cargo to Mars and beyond."}):r.jsx(bt,{variant:"info",title:"Config active",description:"This alert is rendered by the shared component."})})]})]}),r.jsx(Zy,{config:e}),r.jsx(Gn,{ratio:16/9,borderRadius:12,overflow:"hidden",children:r.jsx(l.View,{width:"100%",height:"100%",backgroundColor:e.theme.primary,children:r.jsxs(l.Vertical,{height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[r.jsx(l.Text,{fontWeight:"700",color:e.theme.onPrimary,children:"16:9 Aspect Ratio"}),r.jsx(Te,{content:"Config primary color"})]})})}),r.jsxs(Le,{children:[r.jsx(Le.Content,{children:[1,2,3].map(c=>r.jsx(Le.Item,{children:r.jsx(l.View,{height:200,borderRadius:12,alignItems:"center",justifyContent:"center",backgroundColor:e.theme.surface,borderColor:e.theme.border,borderWidth:1,borderStyle:"solid",children:r.jsxs(l.Text,{fontSize:24,fontWeight:"700",children:["Slide ",c]})})},c))}),r.jsxs(l.Horizontal,{gap:12,marginTop:12,justifyContent:"center",children:[r.jsx(Le.Previous,{}),r.jsx(Le.Next,{})]})]})]})}),r.jsx(ue,{title:"Navigation & Interactive",config:e,children:r.jsxs(l.Vertical,{gap:18,children:[r.jsxs(l.Vertical,{gap:20,children:[r.jsxs(l.Vertical,{gap:8,children:[r.jsx(l.Text,{fontSize:12,fontWeight:"700",color:e.theme.muted,children:"With icons"}),r.jsx(Po,{tabs:Ky,defaultValue:"homes",views:{tab:{borderRadius:mr(e,"tabs")},activeTab:{borderRadius:mr(e,"tabs")}}})]}),r.jsxs(l.Vertical,{gap:8,children:[r.jsx(l.Text,{fontSize:12,fontWeight:"700",color:e.theme.muted,children:"Without icons"}),r.jsx(Po,{defaultValue:"overview",views:{tab:{borderRadius:mr(e,"tabs")},activeTab:{borderRadius:mr(e,"tabs")}},tabs:[{title:"Overview",value:"overview",content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Tokens and components share the active config."})},{title:"Usage",value:"usage",content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Explicit props still override the config defaults."})},{title:"Audit",value:"audit",content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Plain text tabs without icons."})}]})]})]}),r.jsx(po,{items:Jy,orientation:"horizontal",defaultActiveItemId:"components"}),(()=>{const c=mr(e,"accordion"),s={borderWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,marginBottom:0,borderRadius:0},d={...s,borderTopWidth:1,borderTopStyle:"solid",borderTopColor:e.theme.border};return r.jsxs($e,{defaultValue:"tokens",collapsible:!0,shape:"rounded",views:{container:{borderRadius:c,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:e.theme.border}},children:[r.jsxs($e.Item,{value:"tokens",...s,views:{item:s,trigger:{borderRadius:0}},children:[r.jsx($e.Trigger,{children:"Token extraction"}),r.jsx($e.Content,{children:r.jsxs(l.Text,{color:e.theme.muted,children:[Object.keys(e.tokens.rawCssVars).length," raw CSS variables were extracted from ",e.metadata.sourcePath,"."]})})]}),r.jsxs($e.Item,{value:"overrides",...d,views:{item:d,trigger:{borderRadius:0}},children:[r.jsx($e.Trigger,{children:"Override behavior"}),r.jsx($e.Content,{children:r.jsx(l.Text,{color:e.theme.muted,children:"Props passed directly to components override the design-system defaults."})})]})]})})(),r.jsx(qr,{label:"advanced tools"}),r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Nt,{color:e.theme.primary,children:"Toggle Button"}),r.jsx(ti,{color:e.theme.primary,items:[{id:"left",value:"Left"},{id:"center",value:"Center"},{id:"right",value:"Right"}]}),r.jsx(Xr,{content:"Tooltip message",children:r.jsx(ce,{variant:"outline",children:"Hover for Tooltip"})}),r.jsxs(Fe,{children:[r.jsx(Fe.Trigger,{children:r.jsx(ce,{variant:"ghost",children:"Hover Card"})}),r.jsx(Fe.Content,{children:r.jsxs(l.Vertical,{gap:4,padding:12,children:[r.jsx(l.Text,{fontWeight:"700",children:"Detailed Info"}),r.jsx(l.Text,{fontSize:12,opacity:.8,children:"Hover cards provide more context."})]})})]}),r.jsx(di,{value:e.theme.primary}),r.jsx(Ii,{shareData:{url:"https://example.com",title:"Example"}}),r.jsx(wt,{to:"#",children:"Inline Link component"})]}),r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:r.jsx(wi,{currentPage:o,totalPages:10,onPageChange:t})})]})})]})},tb=({config:e})=>{var o;return r.jsxs(it,{config:e,children:[r.jsx(Ey,{children:(o=e.metadata.googleFontLinks)==null?void 0:o.map(t=>r.jsx("link",{rel:"stylesheet",href:t},t))}),r.jsx(l.View,{minHeight:"100vh",padding:28,fontFamily:e.tokens.typography.fontFamily,backgroundColor:e.theme.canvas,color:e.theme.text,style:{textTransform:e.metadata.id==="spacex"?"uppercase":"none"},children:r.jsxs(l.Vertical,{gap:28,children:[r.jsxs(l.Vertical,{gap:12,maxWidth:900,children:[r.jsxs(l.Text,{as:"h1",fontSize:44,lineHeight:"48px",fontWeight:"800",fontFamily:e.tokens.typography.fontFamily,children:[e.metadata.label," Design System"]}),r.jsxs(l.Text,{fontSize:16,lineHeight:"24px",color:e.theme.muted,fontFamily:e.tokens.typography.fontFamily,children:["Live App Studio components rendered with the"," ",e.metadata.label," config defaults."]})]}),r.jsxs(l.Vertical,{gap:28,children:[r.jsx(Ry,{config:e}),r.jsx(rb,{config:e})]})]})})]})};I.Accordion=$e,I.ActionSheet=ld,I.Alert=bt,I.ArrowIcon=Qs,I.AspectRatio=Gn,I.AttachmentGroup=ai,I.AttachmentIcon=Go,I.AttachmentPreview=Bf,I.AudioIcon=So,I.AudioInput=kd,I.AudioWaveform=xt,I.Avatar=Qn,I.BackIcon=Cs,I.Background=Ji,I.Badge=Te,I.BatteryIcon=as,I.BluetoothIcon=Ys,I.BoldArrowIcon=Js,I.BookmarkIcon=ls,I.Button=ce,I.CHART_COLORS=_e,I.CalendarIcon=Ds,I.CameraIcon=Gs,I.Card=ke,I.Carousel=Le,I.Chart=x0,I.ChartIcon=bs,I.ChatInput=Ui,I.ChatWidget=Qi,I.ChatWidgetComponent=hn,I.ChatWidgetWidget=ay,I.CheckIcon=ks,I.Checkbox=Dt,I.ChevronIcon=ge,I.ClockIcon=$s,I.CloseEyeIcon=mt,I.CloseIcon=Me,I.CloudIcon=is,I.ColorInput=cg,I.ColorPicker=di,I.ComboBox=Hh,I.Command=Do,I.ContextMenu=Io,I.CookieConsent=S0,I.CopyIcon=cs,I.CountryPicker=mg,I.CreditCardIcon=Ps,I.CropIcon=ed,I.DEFAULT_CHART_COLORS=ga,I.DatePicker=Sh,I.DeleteIcon=ss,I.DesignSystem=tb,I.DesignSystemProvider=it,I.Divider=Sp,I.DocumentIcon=ys,I.DownloadIcon=hs,I.DragAndDrop=Lm,I.DragAndDropComponent=ni,I.DragHandleIcon=qc,I.DragHandleLinesIcon=rd,I.Drawer=mo,I.DropZone=Nm,I.DropdownMenu=ar,I.DustBinIcon=br,I.EditIcon=ds,I.EmojiPicker=tp,I.ErrorIcon=Cr,I.ExternalLinkIcon=_n,I.FacebookIcon=Zc,I.FileIcon=io,I.FileImage=W0,I.FileSVG=M0,I.FilterIcon=Es,I.FolderIcon=Nc,I.FormikChatInput=lf,I.FormikCheckbox=Nh,I.FormikColorInput=cf,I.FormikComboBox=yf,I.FormikCountryPicker=df,I.FormikDatePicker=sf,I.FormikEmojiPicker=_f,I.FormikForm=Bh,I.FormikIconPicker=Af,I.FormikOTPInput=vf,I.FormikPassword=uf,I.FormikRadio=Kh,I.FormikSelect=gf,I.FormikSelector=If,I.FormikSlider=wf,I.FormikSwitch=hf,I.FormikTagInput=ff,I.FormikTextArea=mf,I.FormikTextField=pf,I.FormikToggle=Mf,I.FormikToggleGroup=Wf,I.FormikUploader=Tl,I.GiftIcon=Is,I.Gradient=fi,I.HeartIcon=rs,I.HelpIcon=Oc,I.HomeIcon=gs,I.HoverCard=Fe,I.Icon=yr,I.IconPicker=np,I.ImageIcon=Gc,I.InfoIcon=Ze,I.InstagramIcon=Jc,I.KeyboardAvoidingView=Ll,I.LayoutIcon=Hs,I.LikeIcon=Us,I.Link=wt,I.LinkIcon=Ws,I.LinkedinIcon=Rc,I.Loader=Re,I.LoadingSpinnerIcon=ft,I.LockIcon=ms,I.LogoutIcon=zs,I.MagicWandIcon=Ns,I.MapPinIcon=Ls,I.MediaPreview=Of,I.MenuIcon=_s,I.Menubar=uo,I.MessageLayout=fd,I.MessageView=Xn,I.MicrophoneIcon=gt,I.MinusIcon=En,I.Modal=fo,I.ModalLayout=Gt,I.ModalRouter=Gt,I.MoonIcon=xs,I.MoreIcon=As,I.MousePointerIcon=On,I.NavigationMenu=po,I.NotificationIcon=us,I.OTPInput=ll,I.OpenEyeIcon=pt,I.PageLayout=am,I.Pagination=wi,I.PanelIcon=Bn,I.Password=vh,I.PauseIcon=os,I.PlayIcon=Dn,I.PlusIcon=fs,I.PowerOffIcon=Ms,I.PrintIcon=Os,I.ProfileIcon=ps,I.ProgressBar=Si,I.RefreshIcon=Bs,I.Resizable=ln,I.RotateIcon=Ts,I.Router=fm,I.SaveIcon=ns,I.SearchIcon=kr,I.Select=Qo,I.Selector=R0,I.SendIcon=ht,I.Separator=qr,I.SettingsIcon=$n,I.ShapeIcon=vs,I.ShareButton=Ii,I.ShareIcon=Ln,I.ShieldIcon=Fs,I.Sidebar=sr,I.Slider=Vl,I.SliderIcon=Rs,I.SpinnerIcon=Zs,I.SplashScreen=cm,I.StarIcon=ts,I.StatusIndicator=Ur,I.StopIcon=xr,I.SuccessIcon=ut,I.Switch=Pt,I.Table=je,I.Tabs=Po,I.TagInput=Ph,I.TextArea=At,I.TextField=We,I.TextIcon=Ss,I.ThreadsIcon=es,I.TickIcon=Yo,I.Title=ri,I.Toast=eu,I.Toggle=Nt,I.ToggleGroup=ti,I.Tooltip=Xr,I.TrashIcon=Vs,I.TwitchIcon=Xc,I.TwitterIcon=Yc,I.UnLikeIcon=qs,I.UnlockIcon=Ks,I.UploadIcon=yt,I.Uploader=Sr,I.UserIcon=Bc,I.VideoIcon=Uc,I.WarningIcon=dt,I.WifiIcon=Xs,I.XIcon=Kc,I.YoutubeIcon=Qc,I.ZapIcon=js,I.ZoomInIcon=od,I.ZoomOutIcon=ws,I.deepMerge=Ne,I.defaultDesignSystemConfig=Mn,I.designSystemConfigList=Pc,I.designSystemConfigs=nt,I.getDesignSystemComponentProps=lt,I.goBack=dm,I.hideDrawer=$l,I.hideMessage=Kn,I.hideModal=qt,I.matchPath=_l,I.mergeDesignSystemComponentProps=Hn,I.navigate=sm,I.normalizeDesignSystemComponentProps=at,I.setSplashLoaded=lm,I.setSplashStarted=im,I.showDrawer=tm,I.showMessage=Yn,I.showModal=Nf,I.showToast=yo,I.useDesignSystem=ur,I.useDesignSystemComponentProps=wo,I.useDrawerStore=no,I.useHistory=Xt,I.useMergedDesignSystemComponentProps=pe,I.useMessageStore=wr,I.useModalStore=to,I.useRouterStore=Ge,I.useSplashStore=$r,I.useToast=ou,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
35
+ `})]})},Au=({number:e=20,children:o,...t})=>{const n=Array.from({length:e},(a,i)=>i);return r.jsxs(l.View,{width:"100%",height:"100%",backgroundColor:"black",position:"relative",overflow:"hidden",...t,children:[n.map(a=>{const i=a*37%200-100+"px",c=.2+a*13%6*.1+"s",s=(1+a*7%9)/2+"s",d=300+a*17%100+"px";return r.jsx(l.View,{position:"absolute",top:"0px",left:i,width:"2px",height:"2px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.1)",transform:"rotate(215deg)",zIndex:0,animate:{from:{transform:"translateX(-100%) translateY(-100%)"},to:{transform:`translateX(${d}) translateY(${d})`},iterationCount:"infinite",timingFunction:"linear",fillMode:"forwards",duration:s,delay:c},children:r.jsx(l.View,{position:"absolute",top:"-1px",left:"-1px",width:"1px",height:"1px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 10px 0 1px rgba(255, 255, 255, 0.1)"})},a)}),o&&r.jsx(l.View,{position:"relative",zIndex:1,width:"100%",height:"100%",children:o})]})},Yi=["rgb(186, 230, 253)","rgb(249, 168, 212)","rgb(134, 239, 172)","rgb(253, 224, 71)","rgb(252, 165, 165)","rgb(216, 180, 254)","rgb(147, 197, 253)","rgb(165, 180, 252)","rgb(196, 181, 253)"],Vu=()=>Yi[Math.floor(Math.random()*Yi.length)],Eu=({rows:e=15,cols:o=10,squareSize:t=40,...n})=>{const a=Array(e).fill(1),i=Array(o).fill(1);return r.jsx(l.View,{padding:16,width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-50",zIndex:0,transform:"skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)",...n,children:a.map((c,s)=>r.jsx(l.Horizontal,{gap:0,children:i.map((d,g)=>r.jsx(l.View,{height:t/3,width:t,borderStyle:"solid",borderColor:"color-gray-200",borderWidth:.5,backgroundColor:"transparent",cursor:"pointer",on:{hover:{backgroundColor:Vu(),transition:"background-color 0.2s ease"}}},`col-${g}`))},`row-${s}`))})},Du=["rgb(59, 130, 246)","rgb(147, 51, 234)","rgb(236, 72, 153)","rgb(34, 197, 94)","rgb(251, 146, 60)","rgb(168, 85, 247)"],$u=({count:e=50,colors:o=Du,speed:t="medium",shapes:n=["circle"],...a})=>{const i=Array.from({length:e},(g,f)=>f),c=()=>{switch(t){case"slow":return .5;case"fast":return 2;default:return 1}},s=()=>n[Math.floor(Math.random()*n.length)],d=()=>o[Math.floor(Math.random()*o.length)];return r.jsx(l.View,{width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-900",...a,children:i.map(g=>{const f=Math.random()*8+4,m=Math.random()*400,p=Math.random()*300,u=Math.random()*400,y=Math.random()*300,k=(Math.random()*10+5)/c(),x=Math.random()*5,C=s(),w=d(),v={circle:{borderRadius:"50%"},square:{borderRadius:"2px"},triangle:{borderRadius:"0",clipPath:"polygon(50% 0%, 0% 100%, 100% 100%)"}};return r.jsx(l.View,{position:"absolute",width:f,height:f,backgroundColor:w,opacity:.7,style:{left:m,top:p,...v[C]},animate:{from:{transform:"translate(0px, 0px) scale(0.5)",opacity:0},to:{transform:`translate(${u-m}px, ${y-p}px) scale(1)`,opacity:.7},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:`${k}s`,delay:`${x}s`}},g)})})},Lu=({gridSize:e=30,lineColor:o="rgba(59, 130, 246, 0.3)",pulseColor:t="rgba(59, 130, 246, 0.8)",animationSpeed:n="medium",...a})=>{const i=()=>{switch(n){case"slow":return 4;case"fast":return 1;default:return 2}},c=Math.floor(400/e),s=Math.floor(300/e),d=c*s,g=Array.from({length:d},(f,m)=>m);return r.jsxs(l.View,{width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-900",...a,children:[Array.from({length:c+1},(f,m)=>r.jsx(l.View,{position:"absolute",left:m*e,top:0,width:1,height:"100%",backgroundColor:o},`v-line-${m}`)),Array.from({length:s+1},(f,m)=>r.jsx(l.View,{position:"absolute",left:0,top:m*e,width:"100%",height:1,backgroundColor:o},`h-line-${m}`)),g.map(f=>{const m=f%c,p=Math.floor(f/c),u=(m+p)*.1;return r.jsx(l.View,{position:"absolute",left:m*e+1,top:p*e+1,width:e-2,height:e-2,backgroundColor:"transparent",animate:{from:{backgroundColor:"transparent"},to:{backgroundColor:t},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:`${i()}s`,delay:`${u}s`}},f)})]})},_u=["rgba(59, 130, 246, 0.6)","rgba(147, 51, 234, 0.6)","rgba(236, 72, 153, 0.6)","rgba(34, 197, 94, 0.6)"],Bu=({rippleCount:e=5,colors:o=_u,maxSize:t=200,frequency:n=3,...a})=>{const i=Array.from({length:e},(c,s)=>({id:s,x:Math.random()*400,y:Math.random()*300,color:o[s%o.length],delay:s*(n/e),duration:3+Math.random()*2}));return r.jsxs(l.View,{width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color-gray-100",...a,children:[i.map(c=>r.jsx(l.View,{position:"absolute",width:20,height:20,borderRadius:"50%",style:{left:c.x-10,top:c.y-10,border:`2px solid ${c.color}`,backgroundColor:"transparent"},animate:{from:{transform:"scale(0)",opacity:1},to:{transform:`scale(${t/20})`,opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:`${c.duration}s`,delay:`${c.delay}s`}},c.id)),i.map(c=>r.jsx(l.View,{position:"absolute",width:10,height:10,borderRadius:"50%",style:{left:c.x-5,top:c.y-5,backgroundColor:c.color},animate:{from:{transform:"scale(1)",opacity:.8},to:{transform:`scale(${t/40})`,opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:`${c.duration*1.2}s`,delay:`${c.delay+.5}s`}},`secondary-${c.id}`))]})},Ou=({children:e,src:o,backgroundSize:t="cover",backgroundPosition:n="center",backgroundRepeat:a="no-repeat",backgroundAttachment:i="scroll",imageOpacity:c=1,overlay:s=null,blendMode:d="normal",views:g,themeMode:f,...m})=>{const p={...dn.image,backgroundImage:`url(${o})`,backgroundSize:t,backgroundPosition:n,backgroundRepeat:a,backgroundAttachment:i,opacity:c};return r.jsxs(l.View,{...dn.container,...g==null?void 0:g.container,...m,children:[r.jsx(l.View,{style:p,...g==null?void 0:g.image}),s,e&&r.jsx(l.View,{...dn.content,...g==null?void 0:g.content,children:e})]})},Nu=({children:e,src:o,autoPlay:t=!0,loop:n=!0,muted:a=!0,playsInline:i=!0,overlay:c=null,blendMode:s="normal",views:d,themeMode:g,...f})=>r.jsxs(l.View,{...gn.container,...d==null?void 0:d.container,...f,children:[r.jsx(l.View,{as:"video",src:o,autoPlay:t,loop:n,muted:a,playsInline:i,style:gn.video,...d==null?void 0:d.video}),c,e&&r.jsx(l.View,{...gn.content,...d==null?void 0:d.content,children:e})]}),qu=({children:e,...o})=>r.jsx(fi,{...o,children:e}),Uu=/^(color|theme|light|dark)-/,Gu=e=>{const o=e.split("-"),t=parseInt(o[o.length-1],10),n=e.startsWith("theme-")?3:4;return o.length>=n&&!isNaN(t)&&t>=0&&t<=1e3?o.slice(0,-1).join("-"):e},Yu=({contentPosition:e,backgroundColor:o="color-black-900",...t})=>{const n=Uu.test(o),a=n?Gu(o):o,c=(()=>{let s=`${a}-100`,d=`${a}-900`,g=`${a}-600`,f=`${a}-400`;switch(n||(s=`color-mix(in srgb, ${a} 10%, transparent)`,d=`color-mix(in srgb, ${a} 90%, transparent)`,g=`color-mix(in srgb, ${a} 70%, transparent)`,f=`color-mix(in srgb, ${a} 50%, transparent)`),e){case"left":return`radial-gradient(circle at 70% 50%, ${s} 0%, ${s} 100%), linear-gradient(to right, ${d} 0%, ${g} 65%, ${s} 100%)`;case"right":return`radial-gradient(circle at 30% 50%, ${s} 0%, ${s} 100%), linear-gradient(to left, ${d} 0%, ${g} 65%, ${s} 100%)`;case"top":return`radial-gradient(circle at 50% 40%, ${s} 0%, ${s} 100%), linear-gradient(to bottom, ${d} 0%, ${g} 60%, ${s} 100%)`;case"bottom":return`radial-gradient(circle at 50% 60%, ${s} 0%, ${s} 100%), linear-gradient(to top, ${d} 0%, ${g} 60%, ${s} 100%)`;case"center":return`radial-gradient(circle at 50% 70%, ${d} 0%, ${s} 100%)`;default:return f}})();return r.jsx(l.View,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:c,pointerEvents:"none",zIndex:1,...t})},Ku=({children:e,views:o,...t})=>r.jsx(ju.Provider,{value:{},children:r.jsx(l.View,{...Hu.container,...o==null?void 0:o.container,...t,children:e})}),Ki=h.forwardRef(({children:e,designProps:o,shape:t="rounded",decorationRotation:n=5,decorationScale:a=1,decorationOpacity:i=.8,views:c,...s},d)=>{const f=(x=>{switch(x){case"square":return"0px";case"pill":return"9999px";case"rounded":default:return"16px"}})(t),m=Math.abs(n)*(Math.PI/180),p=Math.sin(m)*100,u=(a-1)*100/2,y=Math.ceil(p+u),k=s.backgroundColor??"theme-primary";return r.jsx(l.View,{...s,ref:d,backgroundColor:"transparent",position:"relative",overflow:"visible",...c==null?void 0:c.container,children:r.jsxs(l.View,{padding:s.padding??`${96+y}px ${y}px`,position:"relative",overflow:"visible",children:[r.jsx(l.View,{position:"absolute",top:y,left:y,right:y,bottom:y,backgroundColor:k,borderRadius:f,opacity:i/1.5,transform:`scale(${a})`,pointerEvents:"none",zIndex:1,...c==null?void 0:c.back}),r.jsx(l.View,{position:"absolute",top:y,left:y,right:y,bottom:y,transform:`rotate(${n}deg) scale(${a})`,opacity:i/1.2,backgroundColor:k,borderRadius:f,pointerEvents:"none",zIndex:2,...c==null?void 0:c.front}),r.jsx(l.View,{margin:"0 auto",position:"relative",zIndex:3,...c==null?void 0:c.content,children:e})]})})});Ki.displayName="Background.Layout";const he=Ku;he.Aurora=Pu,he.Meteors=Au,he.Wall=Eu,he.Particles=$u,he.Grid=Lu,he.Ripples=Bu,he.Image=Ou,he.Video=Nu,he.Gradient=qu,he.Overlay=Yu,he.Layout=Ki;const Xi=h.forwardRef((e,o)=>r.jsx(he,{...e,ref:o}));Xi.displayName="Background";const Ji=Object.assign(Xi,{Layout:he.Layout,Aurora:he.Aurora,Meteors:he.Meteors,Wall:he.Wall,Particles:he.Particles,Grid:he.Grid,Ripples:he.Ripples,Image:he.Image,Video:he.Video,Gradient:he.Gradient,Overlay:he.Overlay});Ji.displayName="Background";function Xu(e){const{inputValue:o,onInputChange:t,onSubmit:n,messages:a=[]}=e,[i,c]=h.useState(""),s=h.useRef(null),d=h.useRef(null),g=o!==void 0,f=o!==void 0?o:i,m=h.useCallback(u=>{g?t==null||t(u):c(u)},[g,t]),p=h.useCallback(u=>{u&&u.preventDefault();const y=f.trim();y&&n&&(n(y),g||c(""),s.current&&(s.current.style.height="auto"))},[f,n,g]);return h.useEffect(()=>{d.current&&(d.current.scrollTop=d.current.scrollHeight)},[a.length]),{internalInputValue:f,handleInputChange:m,handleSubmit:p,inputRef:s,messagesRef:d}}const Ju={sm:{fontSize:"12px",padding:"8px"},md:{fontSize:"14px",padding:"10px"},lg:{fontSize:"14px",padding:"12px"}},Qu={default:{backgroundColor:"color-white",border:"1px solid color-gray-200",borderRadius:"12px",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.08)"},glassy:{backgroundColor:"color-white-900",backdropFilter:"blur(10px)",border:"1px solid rgba(226, 232, 240, 0.9)",borderRadius:"12px",boxShadow:"0 12px 32px rgba(15, 23, 42, 0.08)"},minimal:{backgroundColor:"color-white",border:"1px solid color-gray-200",borderRadius:"12px"}},Zu={sm:{fontSize:"12px",padding:"8px 10px",borderRadius:"12px"},md:{fontSize:"14px",padding:"10px 12px",borderRadius:"12px"},lg:{fontSize:"14px",padding:"12px 14px",borderRadius:"14px"}},Ru={backgroundColor:"theme-primary",color:"color-white",alignSelf:"flex-end",borderBottomRightRadius:"4px"},ey={backgroundColor:"color-white",color:"color-gray-900",alignSelf:"flex-start",borderBottomLeftRadius:"4px",border:"1px solid color-gray-200"},Ke={container:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden"},messagesContainer:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:"12px",padding:"16px",backgroundColor:"color-gray-50"},inputContainer:{position:"relative",backgroundColor:"color-white",borderTop:"1px solid color-gray-200",padding:"12px",display:"flex",alignItems:"flex-end",gap:"8px",transition:"background-color 0.2s ease, border-color 0.2s ease"},bubble:{maxWidth:"80%",position:"relative",wordWrap:"break-word",animation:"chatBubbleAppear 0.25s ease-out"},timestamp:{position:"absolute",top:"-24px",fontSize:"12px",color:"color-gray-500",backgroundColor:"color-white-900",padding:"2px 8px",borderRadius:"9999px",opacity:0,transition:"opacity 0.15s ease-out",border:"1px solid color-gray-200"},input:{flex:1,border:"none",outline:"none",backgroundColor:"transparent",resize:"none",fontFamily:"inherit",fontSize:"14px",minHeight:"24px",maxHeight:"120px"},sendButton:{width:"36px",height:"36px",borderRadius:"10px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s ease, opacity 0.2s ease",flexShrink:0},attachmentButton:{width:"36px",height:"36px",borderRadius:"10px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",transition:"background-color 0.2s ease",flexShrink:0}},oy=({messages:e=[],inputPlaceholder:o="Type a message...",disableInput:t=!1,variant:n="default",size:a="md",showTimestamps:i=!0,enableAttachments:c=!1,enableContextPicker:s=!1,selectedContextElements:d=[],onContextPickerClick:g,onRemoveContextElement:f,isLoading:m=!1,loadingText:p="Loading...",styles:u={},maxHeight:y="600px",internalInputValue:k,handleInputChange:x,handleSubmit:C,inputRef:w,messagesRef:v,inputValue:S,onInputChange:b,...T})=>{var H;const F={...Ke.container,...Qu[n],...u.container},W={...Ke.messagesContainer,maxHeight:y,...u.messagesContainer},P={...Ke.inputContainer,...u.inputContainer},$={...Ke.input,...Ju[a],...u.input},z=h.useCallback(j=>{x(j.target.value),j.target.style.height="auto",j.target.style.height=`${j.target.scrollHeight}px`},[x]),E=h.useCallback(j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),C())},[C]),V=k.trim().length>0,{onSubmit:M,...A}=T;return r.jsxs(l.View,{...F,...A,children:[r.jsxs(l.View,{ref:v,...W,children:[e.length===0?r.jsx(l.View,{display:"flex",alignItems:"center",justifyContent:"center",flex:1,color:"color-gray-500",children:r.jsx(l.Text,{fontSize:"14px",children:"No messages yet. Start a conversation."})}):e.map(j=>r.jsx(ry,{message:j,size:a,showTimestamp:i,styles:{bubble:u.bubble,userBubble:u.userBubble,assistantBubble:u.assistantBubble,timestamp:u.timestamp,reasoningContainer:u.reasoningContainer,reasoningContent:u.reasoningContent,errorMessage:u.errorMessage,systemMessage:u.systemMessage,toolMessage:u.toolMessage}},j.id)),m&&r.jsxs(l.Horizontal,{justifyContent:"flex-start",alignItems:"center",gap:8,marginTop:"8px",...u.loadingIndicator,children:[r.jsx(ft,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),r.jsx(l.Text,{color:"color-gray-500",fontSize:"14px",children:p})]})]}),r.jsxs(l.View,{children:[d.length>0&&r.jsx(l.Horizontal,{gap:8,marginBottom:"8px",flexWrap:"wrap",padding:"0 12px 8px",...u.contextChipsContainer,children:d.map(j=>r.jsxs(l.Horizontal,{backgroundColor:"color-blue-50",borderWidth:1,borderStyle:"solid",borderColor:"color-blue-200",borderRadius:"9999px",padding:"6px 10px",alignItems:"center",gap:6,children:[r.jsx(l.Text,{fontSize:"12px",color:"color-blue-700",fontWeight:"500",children:j.name}),r.jsx(l.View,{as:"button",type:"button",onClick:()=>f==null?void 0:f(j.id),cursor:"pointer",border:"none",backgroundColor:"transparent",display:"flex",alignItems:"center",children:r.jsx(Me,{widthHeight:12,color:"color-blue-700"})})]},j.id))}),r.jsxs(l.View,{as:"form",onSubmit:C,...P,children:[c&&r.jsx(l.View,{as:"button",type:"button",...Ke.attachmentButton,...u.attachmentButton,_hover:{backgroundColor:"color-gray-100"},children:r.jsx(Go,{widthHeight:16,color:"color-gray-600"})}),r.jsx(l.View,{as:"textarea",ref:w,value:k,onChange:z,onKeyDown:E,placeholder:o,disabled:t||m,...$,style:{...$,opacity:t||m?.5:1}}),r.jsxs(l.Vertical,{gap:4,alignItems:"center",children:[s&&r.jsx(l.View,{as:"button",type:"button",onClick:g,...Ke.attachmentButton,...u.contextPickerButton,_hover:{backgroundColor:"color-gray-100",...(H=u.contextPickerButton)==null?void 0:H._hover},title:"Select element from page",children:r.jsx(On,{widthHeight:16,color:"color-gray-600"})}),r.jsx(l.View,{as:"button",type:"submit",disabled:!V||t||m,...Ke.sendButton,backgroundColor:V?"theme-primary":"color-gray-300",_hover:{backgroundColor:V?"theme-primary":"color-gray-300"},...u.sendButton,style:{cursor:V?"pointer":"not-allowed",opacity:!V||t||m?.6:1},children:r.jsx(ht,{widthHeight:16,color:"color-white",filled:!1})})]})]})]})]})},ry=({message:e,size:o,showTimestamp:t,styles:n})=>{const[a,i]=h.useState(!1),[c,s]=h.useState(!1),d=e.role==="user",g=e.messageType==="system",f=e.messageType==="error",m=e.messageType==="tool";if(g)return r.jsx(l.View,{display:"flex",justifyContent:"center",padding:"8px",width:"100%",...n.systemMessage,children:r.jsxs(l.Horizontal,{gap:6,alignItems:"center",opacity:.7,children:[r.jsx(Ze,{widthHeight:12,color:"color-gray-600"}),r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",fontStyle:"italic",children:e.content})]})});if(m)return r.jsx(l.View,{display:"flex",justifyContent:"flex-start",padding:"8px 16px",width:"100%",...n.toolMessage,children:r.jsxs(l.Horizontal,{gap:8,alignItems:"center",backgroundColor:"color-gray-50",padding:"8px 10px",borderRadius:"8px",width:"100%",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",children:[r.jsx($n,{widthHeight:14,color:"color-gray-600"}),r.jsxs(l.Vertical,{gap:2,children:[r.jsx(l.Text,{fontSize:"11px",fontWeight:"600",color:"color-gray-700",children:"Tool Usage"}),r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",fontFamily:"monospace",children:e.content})]})]})});const p={...Ke.bubble,...Zu[o],...d?Ru:ey,...f?{backgroundColor:"color-red-50",borderWidth:1,borderStyle:"solid",borderColor:"color-red-200",color:"color-red-700"}:{},...n.bubble,...d?n.userBubble:n.assistantBubble,...f?n.errorMessage:{}},u={...Ke.timestamp,[d?"right":"left"]:"8px",opacity:a?1:0,...n.timestamp};return r.jsx(l.View,{position:"relative",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),display:"flex",justifyContent:d?"flex-end":"flex-start",children:r.jsxs(l.View,{...p,children:[t&&r.jsx(l.View,{...u,children:e.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),f&&r.jsxs(l.Horizontal,{gap:6,marginBottom:"4px",alignItems:"center",children:[r.jsx(Cr,{widthHeight:14,color:"color-red-700"}),r.jsx(l.Text,{fontWeight:"600",fontSize:"12px",children:"Error"})]}),e.reasoning&&r.jsxs(l.View,{marginBottom:"8px",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"color-gray-200",paddingBottom:"8px",...n.reasoningContainer,children:[r.jsxs(l.Horizontal,{as:"button",onClick:()=>s(!c),cursor:"pointer",gap:4,alignItems:"center",backgroundColor:"transparent",border:"none",padding:0,children:[r.jsx(l.Text,{fontSize:"11px",color:"color-gray-500",fontWeight:"600",children:"Thinking Process"}),r.jsx(ge,{orientation:c?"down":"right",widthHeight:10,color:"color-gray-500"})]}),c&&r.jsx(l.View,{padding:"8px",backgroundColor:"color-gray-50",borderRadius:"8px",marginTop:"4px",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",...n.reasoningContent,children:r.jsx(l.Text,{fontSize:"12px",color:"color-gray-600",fontStyle:"italic",children:e.reasoning})})]}),r.jsx(l.View,{whiteSpace:"pre-wrap",wordBreak:"break-word",children:e.content}),e.attachments&&e.attachments.length>0&&r.jsx(l.Vertical,{gap:4,marginTop:"8px",children:e.attachments.map(y=>r.jsxs(l.Horizontal,{gap:6,padding:"6px 8px",backgroundColor:"color-gray-50",borderRadius:"8px",fontSize:"12px",borderWidth:1,borderStyle:"solid",borderColor:"color-gray-200",children:[r.jsx(Go,{widthHeight:14}),r.jsx(l.Text,{children:y.name})]},y.id))}),e.contextElements&&e.contextElements.length>0&&r.jsxs(l.Vertical,{gap:4,marginTop:"8px",children:[r.jsx(l.Text,{fontSize:"11px",color:"color-black-500",fontWeight:"600",children:"Context:"}),e.contextElements.map(y=>r.jsx(l.Horizontal,{gap:6,padding:"6px 10px",backgroundColor:"color-blue-50",borderRadius:"9999px",fontSize:"11px",borderWidth:1,borderStyle:"solid",borderColor:"color-blue-200",children:r.jsx(l.Text,{color:"color-blue-700",fontWeight:"500",children:y.name})},y.id))]})]})})},hn=e=>{const o=Xu(e);return r.jsx(oy,{...e,...o})};hn.displayName="ChatWidget";const Qi=hn;function ty({onSelect:e,onCancel:o,active:t}){const[n,a]=h.useState(null);h.useRef(null);const i=h.useCallback(d=>{var u;if(!t)return;const g=document.elementFromPoint(d.clientX,d.clientY);if(!g||g===document.body||g.closest('[data-chatwidget-ignore="true"]')||g.closest("#chatwidget-overlay")){a(null);return}const f=g.getBoundingClientRect();let m=g.tagName.toLowerCase();if(g.id)m+=`#${g.id}`;else if(g.className&&typeof g.className=="string"){const y=g.className.split(" ")[0];y&&(m+=`.${y}`)}const p=(u=g.innerText)==null?void 0:u.slice(0,20);p&&(m+=` ("${p}...")`),a({id:g.id||`el-${Date.now()}`,name:m,tagName:g.tagName.toLowerCase(),rect:f})},[t]),c=h.useCallback(d=>{!t||d.target.closest('[data-chatwidget-ignore="true"]')||(d.preventDefault(),d.stopPropagation(),n&&e(n))},[t,n,e]),s=h.useCallback(d=>{t&&d.key==="Escape"&&o()},[t,o]);return h.useEffect(()=>{if(!(typeof document>"u"))return t?(document.addEventListener("mousemove",i),document.addEventListener("click",c,!0),document.addEventListener("keydown",s),document.body.style.cursor="crosshair"):(a(null),document.removeEventListener("mousemove",i),document.removeEventListener("click",c,!0),document.removeEventListener("keydown",s),document.body.style.cursor=""),()=>{document.removeEventListener("mousemove",i),document.removeEventListener("click",c,!0),document.removeEventListener("keydown",s),document.body.style.cursor=""}},[t,i,c,s]),{highlightedElement:n}}function ny({element:e}){return e?r.jsx("div",{id:"chatwidget-overlay",style:{position:"fixed",top:e.rect.top,left:e.rect.left,width:e.rect.width,height:e.rect.height,border:"2px solid #1D4ED8",backgroundColor:"rgba(29, 78, 216, 0.08)",pointerEvents:"none",zIndex:99999,transition:"top 0.1s ease-out, left 0.1s ease-out, width 0.1s ease-out, height 0.1s ease-out",borderRadius:"8px"},children:r.jsx("div",{style:{position:"absolute",top:"-24px",left:"0",backgroundColor:"#1D4ED8",color:"white",padding:"2px 8px",borderRadius:"9999px",fontSize:"12px",fontWeight:"bold",whiteSpace:"nowrap"},children:e.name})}):null}const ay=({initialMessages:e=[],onSendMessage:o,bubbleSize:t="md"})=>{const[n,a]=h.useState(!1),[i,c]=h.useState(!1),[s,d]=h.useState(e),[g,f]=h.useState([]),{highlightedElement:m}=ty({active:i,onSelect:x=>{f(C=>[...C,x]),c(!1),a(!0)},onCancel:()=>{c(!1),a(!0)}}),p=()=>a(!n),u=()=>{c(!0),a(!1)},y=x=>{f(C=>C.filter(w=>w.id!==x))},k=x=>{const C={id:Date.now().toString(),role:"user",content:x,timestamp:new Date,contextElements:[...g]};d(w=>[...w,C]),o==null||o(x,g),f([]),setTimeout(()=>{var b;const w=Math.random()>.7,v=Math.random()>.4,S={id:(Date.now()+1).toString(),role:"assistant",timestamp:new Date,content:w?"I will highlight the selected element.":`I received your message regarding: ${((b=C.contextElements)==null?void 0:b.map(T=>T.name).join(", "))||"general context"}. How can I assist you further?`,messageType:w?"tool":"text",reasoning:v?"Analyzing the user input and context... The user seems to be asking about specific elements. I should tailor my response to the selected context.":void 0};d(T=>[...T,S]),w&&setTimeout(()=>{d(T=>[...T,{id:(Date.now()+2).toString(),role:"assistant",messageType:"system",content:'Tool "highlightElement" executed successfully.',timestamp:new Date}])},800)},1e3)};return r.jsxs(l.View,{position:"fixed",bottom:24,right:24,zIndex:9999,children:[r.jsx(ny,{element:m}),i&&r.jsx(l.View,{position:"fixed",top:24,left:"50%",transform:"translateX(-50%)",backgroundColor:"rgba(0,0,0,0.8)",color:"white",padding:"8px 16px",borderRadius:"24px",zIndex:1e4,boxShadow:"0 4px 6px rgba(0,0,0,0.1)",children:r.jsx(l.Text,{fontWeight:"600",fontSize:"14px",children:"Click an element to select it. Press ESC to cancel."})}),n&&r.jsxs(l.View,{position:"absolute",bottom:60,right:0,width:"400px",height:"600px",marginBottom:"16px",backgroundColor:"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(20px)",borderRadius:"24px",border:"1px solid rgba(255, 255, 255, 0.4)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",overflow:"hidden",animation:"slideUp 0.3s ease-out",style:{animation:"fadeIn 0.2s ease-out",transformOrigin:"bottom right"},children:[r.jsxs(l.View,{padding:"16px",borderBottom:"1px solid rgba(0,0,0,0.05)",display:"flex",justifyContent:"space-between",alignItems:"center",children:[r.jsx(l.Text,{fontWeight:"bold",color:"color-gray-800",children:"ChatWidget Assistant"}),r.jsx(l.View,{as:"button",onClick:()=>a(!1),cursor:"pointer",padding:"4px",borderRadius:"50%",border:"none",backgroundColor:"transparent",_hover:{backgroundColor:"rgba(0,0,0,0.05)"},children:r.jsx(Me,{widthHeight:16,color:"color-gray-500"})})]}),r.jsx(Qi,{messages:s,onSubmit:k,size:t,variant:"minimal",enableContextPicker:!0,selectedContextElements:g,onContextPickerClick:u,onRemoveContextElement:y,styles:{container:{height:"calc(100% - 60px)",backgroundColor:"transparent"},inputContainer:{backgroundColor:"white",margin:"0 16px 16px 16px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"}}})]}),!i&&r.jsx(l.View,{as:"button",onClick:p,width:"56px",height:"56px",borderRadius:"50%",backgroundColor:"theme-primary",border:"none",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",_hover:{transform:"scale(1.05)"},_active:{transform:"scale(0.95)"},"data-chatwidget-ignore":"true",children:n?r.jsx(Me,{widthHeight:24,color:"white"}):r.jsx(Bn,{widthHeight:24,color:"white"})})]})},Zi=e=>{const o=pe("radio",e),t=cl(o);return r.jsx(sl,{...t,...o})};function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ly=typeof Element<"u",iy=typeof Map=="function",cy=typeof Set=="function",sy=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Jr(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var t,n,a;if(Array.isArray(e)){if(t=e.length,t!=o.length)return!1;for(n=t;n--!==0;)if(!Jr(e[n],o[n]))return!1;return!0}var i;if(iy&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!o.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Jr(n.value[1],o.get(n.value[0])))return!1;return!0}if(cy&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!o.has(n.value[0]))return!1;return!0}if(sy&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if(t=e.length,t!=o.length)return!1;for(n=t;n--!==0;)if(e[n]!==o[n])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof o.valueOf=="function")return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof o.toString=="function")return e.toString()===o.toString();if(a=Object.keys(e),t=a.length,t!==Object.keys(o).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;if(ly&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!Jr(e[a[n]],o[a[n]]))return!1;return!0}return e!==e&&o!==o}var dy=function(o,t){try{return Jr(o,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const gy=fn(dy);var hy=function(e,o,t,n,a,i,c,s){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!e){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[t,n,a,i,c,s],f=0;d=new Error(o.replace(/%s/g,function(){return g[f++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}},fy=hy;const Ri=fn(fy);var my=function(o,t,n,a){var i=n?n.call(a,o,t):void 0;if(i!==void 0)return!!i;if(o===t)return!0;if(typeof o!="object"||!o||typeof t!="object"||!t)return!1;var c=Object.keys(o),s=Object.keys(t);if(c.length!==s.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(t),g=0;g<c.length;g++){var f=c[g];if(!d(f))return!1;var m=o[f],p=t[f];if(i=n?n.call(a,m,p,f):void 0,i===!1||i===void 0&&m!==p)return!1}return!0};const py=fn(my);var ec=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ec||{}),mn={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},oc=Object.values(ec),Qr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},rc=Object.entries(Qr).reduce((e,[o,t])=>(e[t]=o,e),{}),Be="data-rh",$o={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Lo=(e,o)=>{for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Object.prototype.hasOwnProperty.call(n,o))return n[o]}return null},uy=e=>{let o=Lo(e,"title");const t=Lo(e,$o.TITLE_TEMPLATE);if(Array.isArray(o)&&(o=o.join("")),t&&o)return t.replace(/%s/g,()=>o);const n=Lo(e,$o.DEFAULT_TITLE);return o||n||void 0},yy=e=>Lo(e,$o.ON_CHANGE_CLIENT_STATE)||(()=>{}),pn=(e,o)=>o.filter(t=>typeof t[e]<"u").map(t=>t[e]).reduce((t,n)=>({...t,...n}),{}),by=(e,o)=>o.filter(t=>typeof t.base<"u").map(t=>t.base).reverse().reduce((t,n)=>{if(!t.length){const a=Object.keys(n);for(let i=0;i<a.length;i+=1){const s=a[i].toLowerCase();if(e.indexOf(s)!==-1&&n[s])return t.concat(n)}}return t},[]),xy=e=>console&&typeof console.warn=="function"&&console.warn(e),gr=(e,o,t)=>{const n={};return t.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&xy(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,i)=>{const c={};i.filter(d=>{let g;const f=Object.keys(d);for(let p=0;p<f.length;p+=1){const u=f[p],y=u.toLowerCase();o.indexOf(y)!==-1&&!(g==="rel"&&d[g].toLowerCase()==="canonical")&&!(y==="rel"&&d[y].toLowerCase()==="stylesheet")&&(g=y),o.indexOf(u)!==-1&&(u==="innerHTML"||u==="cssText"||u==="itemprop")&&(g=u)}if(!g||!d[g])return!1;const m=d[g].toLowerCase();return n[g]||(n[g]={}),c[g]||(c[g]={}),n[g][m]?!1:(c[g][m]=!0,!0)}).reverse().forEach(d=>a.push(d));const s=Object.keys(c);for(let d=0;d<s.length;d+=1){const g=s[d],f={...n[g],...c[g]};n[g]=f}return a},[]).reverse()},ky=(e,o)=>{if(Array.isArray(e)&&e.length){for(let t=0;t<e.length;t+=1)if(e[t][o])return!0}return!1},Cy=e=>({baseTag:by(["href"],e),bodyAttributes:pn("bodyAttributes",e),defer:Lo(e,$o.DEFER),encode:Lo(e,$o.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:pn("htmlAttributes",e),linkTags:gr("link",["rel","href"],e),metaTags:gr("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:gr("noscript",["innerHTML"],e),onChangeClientState:yy(e),scriptTags:gr("script",["src","innerHTML"],e),styleTags:gr("style",["cssText"],e),title:uy(e),titleAttributes:pn("titleAttributes",e),prioritizeSeoTags:ky(e,$o.PRIORITIZE_SEO_TAGS)}),tc=e=>Array.isArray(e)?e.join(""):e,wy=(e,o)=>{const t=Object.keys(e);for(let n=0;n<t.length;n+=1)if(o[t[n]]&&o[t[n]].includes(e[t[n]]))return!0;return!1},un=(e,o)=>Array.isArray(e)?e.reduce((t,n)=>(wy(n,o)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:e,priority:[]},nc=(e,o)=>({...e,[o]:void 0}),Sy=["noscript","script","style"],yn=(e,o=!0)=>o===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),ac=e=>Object.keys(e).reduce((o,t)=>{const n=typeof e[t]<"u"?`${t}="${e[t]}"`:`${t}`;return o?`${o} ${n}`:n},""),vy=(e,o,t,n)=>{const a=ac(t),i=tc(o);return a?`<${e} ${Be}="true" ${a}>${yn(i,n)}</${e}>`:`<${e} ${Be}="true">${yn(i,n)}</${e}>`},Ty=(e,o,t=!0)=>o.reduce((n,a)=>{const i=a,c=Object.keys(i).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,f)=>{const m=typeof i[f]>"u"?f:`${f}="${yn(i[f],t)}"`;return g?`${g} ${m}`:m},""),s=i.innerHTML||i.cssText||"",d=Sy.indexOf(e)===-1;return`${n}<${e} ${Be}="true" ${c}${d?"/>":`>${s}</${e}>`}`},""),lc=(e,o={})=>Object.keys(e).reduce((t,n)=>{const a=Qr[n];return t[a||n]=e[n],t},o),Iy=(e,o,t)=>{const n={key:o,[Be]:!0},a=lc(t,n);return[h.createElement("title",a,o)]},Zr=(e,o)=>o.map((t,n)=>{const a={key:n,[Be]:!0};return Object.keys(t).forEach(i=>{const s=Qr[i]||i;if(s==="innerHTML"||s==="cssText"){const d=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:d}}else a[s]=t[i]}),h.createElement(e,a)}),Pe=(e,o,t=!0)=>{switch(e){case"title":return{toComponent:()=>Iy(e,o.title,o.titleAttributes),toString:()=>vy(e,o.title,o.titleAttributes,t)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>lc(o),toString:()=>ac(o)};default:return{toComponent:()=>Zr(e,o),toString:()=>Ty(e,o,t)}}},Fy=({metaTags:e,linkTags:o,scriptTags:t,encode:n})=>{const a=un(e,mn.meta),i=un(o,mn.link),c=un(t,mn.script);return{priorityMethods:{toComponent:()=>[...Zr("meta",a.priority),...Zr("link",i.priority),...Zr("script",c.priority)],toString:()=>`${Pe("meta",a.priority,n)} ${Pe("link",i.priority,n)} ${Pe("script",c.priority,n)}`},metaTags:a.default,linkTags:i.default,scriptTags:c.default}},zy=e=>{const{baseTag:o,bodyAttributes:t,encode:n=!0,htmlAttributes:a,noscriptTags:i,styleTags:c,title:s="",titleAttributes:d,prioritizeSeoTags:g}=e;let{linkTags:f,metaTags:m,scriptTags:p}=e,u={toComponent:()=>[],toString:()=>""};return g&&({priorityMethods:u,linkTags:f,metaTags:m,scriptTags:p}=Fy(e)),{priority:u,base:Pe("base",o,n),bodyAttributes:Pe("bodyAttributes",t,n),htmlAttributes:Pe("htmlAttributes",a,n),link:Pe("link",f,n),meta:Pe("meta",m,n),noscript:Pe("noscript",i,n),script:Pe("script",p,n),style:Pe("style",c,n),title:Pe("title",{title:s,titleAttributes:d},n)}},bn=zy,Rr=[],xn=!!(typeof window<"u"&&window.document&&window.document.createElement),kn=class{constructor(e,o){Qe(this,"instances",[]);Qe(this,"canUseDOM",xn);Qe(this,"context");Qe(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Rr:this.instances,add:e=>{(this.canUseDOM?Rr:this.instances).push(e)},remove:e=>{const o=(this.canUseDOM?Rr:this.instances).indexOf(e);(this.canUseDOM?Rr:this.instances).splice(o,1)}}});this.context=e,this.canUseDOM=o||!1,o||(e.helmet=bn({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},My=parseInt(h.version.split(".")[0],10),Cn=My>=19,Wy={},ic=h.createContext(Wy),Hy=(xo=class extends h.Component{constructor(t){super(t);Qe(this,"helmetData");Cn?this.helmetData=null:this.helmetData=new kn(this.props.context||{},xo.canUseDOM)}render(){return Cn?h.createElement(h.Fragment,null,this.props.children):h.createElement(ic.Provider,{value:this.helmetData.value},this.props.children)}},Qe(xo,"canUseDOM",xn),xo),_o=(e,o)=>{const t=document.head||document.querySelector("head"),n=t.querySelectorAll(`${e}[${Be}]`),a=[].slice.call(n),i=[];let c;return o&&o.length&&o.forEach(s=>{const d=document.createElement(e);for(const g in s)if(Object.prototype.hasOwnProperty.call(s,g))if(g==="innerHTML")d.innerHTML=s.innerHTML;else if(g==="cssText"){const f=s.cssText;d.appendChild(document.createTextNode(f))}else{const f=g,m=typeof s[f]>"u"?"":s[f];d.setAttribute(g,m)}d.setAttribute(Be,"true"),a.some((g,f)=>(c=f,d.isEqualNode(g)))?a.splice(c,1):i.push(d)}),a.forEach(s=>{var d;return(d=s.parentNode)==null?void 0:d.removeChild(s)}),i.forEach(s=>t.appendChild(s)),{oldTags:a,newTags:i}},wn=(e,o)=>{const t=document.getElementsByTagName(e)[0];if(!t)return;const n=t.getAttribute(Be),a=n?n.split(","):[],i=[...a],c=Object.keys(o);for(const s of c){const d=o[s]||"";t.getAttribute(s)!==d&&t.setAttribute(s,d),a.indexOf(s)===-1&&a.push(s);const g=i.indexOf(s);g!==-1&&i.splice(g,1)}for(let s=i.length-1;s>=0;s-=1)t.removeAttribute(i[s]);a.length===i.length?t.removeAttribute(Be):t.getAttribute(Be)!==c.join(",")&&t.setAttribute(Be,c.join(","))},jy=(e,o)=>{typeof e<"u"&&document.title!==e&&(document.title=tc(e)),wn("title",o)},cc=(e,o)=>{const{baseTag:t,bodyAttributes:n,htmlAttributes:a,linkTags:i,metaTags:c,noscriptTags:s,onChangeClientState:d,scriptTags:g,styleTags:f,title:m,titleAttributes:p}=e;wn("body",n),wn("html",a),jy(m,p);const u={baseTag:_o("base",t),linkTags:_o("link",i),metaTags:_o("meta",c),noscriptTags:_o("noscript",s),scriptTags:_o("script",g),styleTags:_o("style",f)},y={},k={};Object.keys(u).forEach(x=>{const{newTags:C,oldTags:w}=u[x];C.length&&(y[x]=C),w.length&&(k[x]=u[x].oldTags)}),o&&o(),d(e,y,k)},hr=null,Py=e=>{hr&&cancelAnimationFrame(hr),e.defer?hr=requestAnimationFrame(()=>{cc(e,()=>{hr=null})}):(cc(e),hr=null)},Ay=Py,sc=class extends h.Component{constructor(){super(...arguments);Qe(this,"rendered",!1)}shouldComponentUpdate(o){return!py(o,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:o}=this.props.context;o.remove(this),this.emitChange()}emitChange(){const{helmetInstances:o,setHelmet:t}=this.props.context;let n=null;const a=Cy(o.get().map(i=>{const{context:c,...s}=i.props;return s}));Hy.canUseDOM?Ay(a):bn&&(n=bn(a)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:o}=this.props.context;o.add(this),this.emitChange()}render(){return this.init(),null}},et=[],dc=e=>{const o={};for(const t of Object.keys(e))o[rc[t]||t]=e[t];return o},bo=e=>{const o={};for(const t of Object.keys(e)){const n=Qr[t];o[n||t]=e[t]}return o},gc=(e,o)=>{if(!xn)return;const t=document.getElementsByTagName(e)[0];if(!t)return;const n="data-rh-managed",a=t.getAttribute(n),i=a?a.split(","):[],c=Object.keys(o);for(const s of i)c.includes(s)||t.removeAttribute(s);for(const s of c){const d=o[s];d==null||d===!1?t.removeAttribute(s):d===!0?t.setAttribute(s,""):t.setAttribute(s,String(d))}c.length>0?t.setAttribute(n,c.join(",")):t.removeAttribute(n)},Sn=()=>{const e={},o={};for(const t of et){const{htmlAttributes:n,bodyAttributes:a}=t.props;n&&Object.assign(e,dc(n)),a&&Object.assign(o,dc(a))}gc("html",e),gc("body",o)},Vy=class extends h.Component{componentDidMount(){et.push(this),Sn()}componentDidUpdate(){Sn()}componentWillUnmount(){const e=et.indexOf(this);e!==-1&&et.splice(e,1),Sn()}resolveTitle(){const{title:e,titleTemplate:o,defaultTitle:t}=this.props;return e&&o?o.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||t||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const o=this.props.titleAttributes||{};return h.createElement("title",bo(o),e)}renderBase(){const{base:e}=this.props;return e?h.createElement("base",bo(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>h.createElement("meta",{key:t,...bo(o)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>h.createElement("link",{key:t,...bo(o)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>{const{innerHTML:n,...a}=o,i=bo(a);return n&&(i.dangerouslySetInnerHTML={__html:n}),h.createElement("script",{key:t,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>{const{cssText:n,...a}=o,i=bo(a);return n&&(i.dangerouslySetInnerHTML={__html:n}),h.createElement("style",{key:t,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((o,t)=>{const{innerHTML:n,...a}=o,i=bo(a);return n&&(i.dangerouslySetInnerHTML={__html:n}),h.createElement("noscript",{key:t,...i})})}render(){return h.createElement(h.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Ey=(Fn=class extends h.Component{shouldComponentUpdate(e){return!gy(nc(this.props,"helmetData"),nc(e,"helmetData"))}mapNestedChildrenToProps(e,o){if(!o)return null;switch(e.type){case"script":case"noscript":return{innerHTML:o};case"style":return{cssText:o};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,o,t,n){return{...o,[e.type]:[...o[e.type]||[],{...t,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,o,t,n){switch(e.type){case"title":return{...o,[e.type]:n,titleAttributes:{...t}};case"body":return{...o,bodyAttributes:{...t}};case"html":return{...o,htmlAttributes:{...t}};default:return{...o,[e.type]:{...t}}}}mapArrayTypeChildrenToProps(e,o){let t={...o};return Object.keys(e).forEach(n=>{t={...t,[n]:e[n]}}),t}warnOnInvalidChildren(e,o){return Ri(oc.some(t=>e.type===t),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${oc.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Ri(!o||typeof o=="string"||Array.isArray(o)&&!o.some(t=>typeof t!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,o){let t={};return h.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:a,...i}=n.props,c=Object.keys(i).reduce((d,g)=>(d[rc[g]||g]=i[g],d),{});let{type:s}=n;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(n,a),s){case"Symbol(react.fragment)":o=this.mapChildrenToProps(a,o);break;case"link":case"meta":case"noscript":case"script":case"style":t=this.flattenArrayTypeChildren(n,t,c,a);break;default:o=this.mapObjectTypeChildren(n,o,c,a);break}}),this.mapArrayTypeChildrenToProps(t,o)}render(){const{children:e,...o}=this.props;let t={...o},{helmetData:n}=o;if(e&&(t=this.mapChildrenToProps(e,t)),n&&!(n instanceof kn)){const a=n;n=new kn(a.context,!0),delete t.helmetData}return Cn?h.createElement(Vy,{...t}):n?h.createElement(sc,{...t,context:n.value}):h.createElement(ic.Consumer,null,a=>h.createElement(sc,{...t,context:a}))}},Qe(Fn,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Fn);const Dy={airbnb:{highlightStyle:"background",fontWeight:700,letterSpacing:"-0.02em"},apple:{highlightStyle:"solid",fontWeight:600,letterSpacing:"-0.03em"},coinbase:{highlightStyle:"solid",fontWeight:600,letterSpacing:"-0.02em"},figma:{highlightStyle:"underline",fontWeight:600,letterSpacing:"-0.01em",highlightFontWeight:700},linear:{highlightStyle:"gradient",fontWeight:600,letterSpacing:"-0.03em"},nike:{highlightStyle:"underline",fontWeight:800,letterSpacing:"0.02em",textTransform:"uppercase",highlightFontStyle:"italic",highlightFontWeight:900},notion:{highlightStyle:"underline",fontWeight:600,letterSpacing:"-0.01em",highlightFontStyle:"italic"},revolut:{highlightStyle:"gradient",fontWeight:700,letterSpacing:"-0.03em"},shopify:{highlightStyle:"background",fontWeight:700,letterSpacing:"-0.02em"},spacex:{highlightStyle:"glow",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",highlightLetterSpacing:"0.06em"},spotify:{highlightStyle:"background",fontWeight:800,letterSpacing:"-0.03em"},stripe:{highlightStyle:"gradient",fontWeight:700,letterSpacing:"-0.03em"},tesla:{highlightStyle:"solid",fontWeight:500,letterSpacing:"-0.01em",textTransform:"uppercase"},uber:{highlightStyle:"underline",fontWeight:700,letterSpacing:"-0.02em"},vercel:{highlightStyle:"outline",fontWeight:700,letterSpacing:"-0.04em"}},$y={highlightStyle:"background",fontWeight:700,letterSpacing:"-0.02em"},Ly=e=>Dy[e.metadata.id]??$y,hc=(e,o)=>{const t=e.theme;return{canvas:Se(t.canvas),surface:Se(t.surface),text:Se(t.text),muted:Se(t.muted),border:Se(t.border),primary:Se(t.primary),secondary:Se(t.secondary),success:Se(t.success),warning:Se(t.warning),error:Se(t.error),onPrimary:Se(t.onPrimary),appearance:o}},_y=e=>hc(e,"light"),By=e=>hc(e,"dark"),me=({palette:e,label:o,config:t,children:n})=>r.jsxs(l.Vertical,{gap:10,flex:"1 1 320px",minWidth:0,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:10,height:10,borderRadius:9999,backgroundColor:e.appearance==="dark"?"#111111":"#ffffff",borderWidth:1,borderStyle:"solid",borderColor:"rgba(0,0,0,0.15)"}),r.jsx(l.Text,{fontSize:11,fontWeight:"700",letterSpacing:"0.08em",textTransform:"uppercase",children:o})]}),r.jsx(it,{config:t,mode:e.appearance,children:r.jsx(l.View,{padding:20,borderRadius:16,borderWidth:1,borderStyle:"solid",backgroundColor:"color-white",borderColor:"color-gray-200",color:"color-black",children:n})})]}),Se=e=>!e||typeof e!="string"?e:/^(color|theme|light|dark)-/.test(e)?`var(--${e})`:e,Xe=(e,o)=>`color-mix(in srgb, ${Se(e)} ${o}%, transparent)`,Oy=e=>e&&e.startsWith("var(--")?e.slice(6,-1):e,Ny={cornerStyle:"soft",typeWeight:"bold",typeCase:"normal",typeStyle:"normal",letterSpacing:"-0.01em",accentTreatment:"flat",signatureMotif:"●",density:"comfortable",surfaceTone:"paper",cardRadius:12,pillRadius:9999,badgeRadius:6,voice:"neutral"},qy=e=>e.personality||Ny,Je=(e,o="normal")=>{let n={light:300,regular:400,bold:700,black:800}[e.typeWeight];return o==="light"&&(n=Math.max(300,n-200)),o==="heavy"&&(n=Math.min(900,n+100)),n},fr=e=>{switch(e.density){case"tight":return{padding:16,gap:10,large:20};case"spacious":return{padding:28,gap:18,large:36};case"comfortable":default:return{padding:22,gap:14,large:28}}},Uy=e=>e.typeCase==="uppercase"?"uppercase":"none",ot=(e,o)=>{switch(e.surfaceTone){case"glass":return{backgroundColor:o.appearance==="dark"?"rgba(255,255,255,0.04)":"rgba(255,255,255,0.65)",backdropFilter:"blur(14px)"};case"mono":return{backgroundColor:o.appearance==="dark"?"#0a0a0a":Se(o.surface)};case"matte":return{backgroundColor:o.appearance==="dark"?"#181818":"#f4f4f4"};case"paper":default:return{backgroundColor:Se(o.surface)}}},Bo=(e,o)=>{const t=Se(o.primary),n=Se(o.secondary||o.primary);switch(e.accentTreatment){case"gradient":return`linear-gradient(135deg, ${t} 0%, ${n} 100%)`;case"glow":return t;case"stripe":return`repeating-linear-gradient(45deg, ${t} 0 8px, ${n} 8px 16px)`;case"halftone":return`radial-gradient(circle at 30% 30%, ${t} 0%, ${n} 70%)`;case"flat":default:return t}},Oo=(e,o)=>{if(e.accentTreatment==="glow")return`0 0 24px ${Xe(o.primary,40)}, 0 0 4px ${Se(o.primary)}`},lo=e=>({letterSpacing:e.letterSpacing,textTransform:Uy(e),fontStyle:e.typeStyle,fontWeight:Je(e,"heavy")}),Ce=e=>({letterSpacing:e.typeCase==="uppercase"?"0.12em":"0.06em",textTransform:"uppercase",fontStyle:e.typeStyle,fontWeight:Je(e,"normal")}),Gy=(e,o)=>{var n,a,i;const t=(n=e.components)==null?void 0:n[o];return(i=(a=t==null?void 0:t.views)==null?void 0:a.container)==null?void 0:i.borderRadius},Yy=e=>{const o=e.tokens.rawCssVars||{},t=e.theme.border,n=e.theme.surface,a=e.theme.primary,i=o["shadow-ring"]||"rgba(0,0,0,0.08) 0px 0px 0px 1px",c=o["shadow-ring-light"]||`${t} 0px 0px 0px 1px`,s=o["shadow-card"]||`rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, ${n} 0px 0px 0px 1px`,d=o["shadow-card-full"]||`rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px 0px, rgba(0,0,0,0.04) 0px 8px 8px -8px, ${n} 0px 0px 0px 1px`;return[{name:"Level 0",label:"Flat",description:"No shadow",shadow:"none"},{name:"Level 1",label:"Ring",description:"Shadow-as-border",shadow:i},{name:"Level 1b",label:"Light Ring",description:"Lighter ring",shadow:c},{name:"Level 2",label:"Card",description:"Ring + subtle lift",shadow:s},{name:"Level 3",label:"Full Card",description:"Ring + lift + ambient + glow",shadow:d},{name:"Focus",label:"Accessibility ring",description:"Focus state — 2px ring",shadow:`0 0 0 2px ${a}`}]},mr=(e,o)=>{const n={accordion:["accordion","card","alert"],tabs:["tabs","button"],panel:["card","alert"]}[o]??[o];for(const a of n){const i=Gy(e,a);if(i!==void 0)return i}return"12px"},vn=({glyph:e,badge:o})=>r.jsxs(l.View,{position:"relative",display:"inline-flex",children:[r.jsx(l.View,{width:32,height:32,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center",style:{backgroundColor:"rgba(0,0,0,0.06)",fontSize:18,lineHeight:"20px"},children:e}),o?r.jsx(l.View,{position:"absolute",top:-10,right:-18,paddingHorizontal:6,paddingVertical:2,borderRadius:9999,style:{backgroundColor:"#ffffff",color:"#222222",fontSize:9,fontWeight:700,letterSpacing:"0.04em",boxShadow:"0 1px 3px rgba(0,0,0,0.18)"},children:o}):null]}),Ky=[{title:"Homes",value:"homes",icon:r.jsx(vn,{glyph:"🏠"}),content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Tokens, inputs, and feedback components share the active config."})},{title:"Experiences",value:"experiences",icon:r.jsx(vn,{glyph:"🎈",badge:"NEW"}),content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Explicit props still override the config defaults."})},{title:"Services",value:"services",icon:r.jsx(vn,{glyph:"🛎️",badge:"NEW"}),content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Each tab carries an icon. Active tab uses the theme primary underline."})}],Xy=[{title:"Token",field:"token"},{title:"Value",field:"value"},{title:"Role",field:"role"}],Jy=[{id:"overview",label:"Overview",href:"#"},{id:"components",label:"Components",href:"#"},{id:"tokens",label:"Tokens",href:"#"}],Qy=({color:e,name:o,role:t,border:n})=>r.jsxs(l.View,{borderWidth:1,borderStyle:"solid",borderRadius:8,overflow:"hidden",minWidth:0,borderColor:n,children:[r.jsx(l.View,{height:76,backgroundColor:e}),r.jsxs(l.Vertical,{gap:4,padding:12,children:[r.jsx(l.Text,{fontSize:13,lineHeight:"18px",fontWeight:"700",children:o}),r.jsx(l.Text,{fontSize:12,lineHeight:"16px",opacity:.7,children:e}),r.jsx(l.Text,{fontSize:12,lineHeight:"16px",opacity:.72,children:t})]})]}),ue=({title:e,children:o,config:t})=>r.jsxs(l.Vertical,{gap:18,padding:24,borderWidth:1,borderStyle:"solid",borderRadius:12,backgroundColor:t.theme.canvas,borderColor:t.theme.border,children:[r.jsx(l.Text,{fontSize:18,lineHeight:"24px",fontWeight:"700",color:t.theme.text,children:e}),o]}),Zy=({config:e})=>{const o=Ly(e),t=o.highlightStyle==="background"?e.theme.onPrimary:e.theme.primary;return r.jsx(l.View,{width:"100%",borderRadius:20,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:e.theme.border,backgroundColor:e.theme.surface,children:r.jsxs(l.Horizontal,{width:"100%",flexWrap:"wrap",alignItems:"stretch",gap:0,children:[r.jsxs(l.Vertical,{flex:"1 1 360px",minWidth:0,padding:36,gap:20,justifyContent:"center",children:[r.jsx(Te,{variant:"outline",content:`${e.metadata.label} hero`}),r.jsx(ri,{size:"xl",responsive:!0,highlightText:"design system",highlightStyle:o.highlightStyle,highlightColor:e.theme.primary,highlightSecondaryColor:o.highlightStyle==="gradient"?e.theme.secondary:e.theme.onPrimary,views:{container:{color:e.theme.text},text:{color:e.theme.text,fontFamily:e.tokens.typography.fontFamily,fontWeight:o.fontWeight,style:{letterSpacing:o.letterSpacing,fontStyle:o.fontStyle??"normal",textTransform:o.textTransform??"none"}},highlight:{color:t,fontWeight:o.highlightFontWeight??o.fontWeight,style:{fontStyle:o.highlightFontStyle??o.fontStyle??"normal",letterSpacing:o.highlightLetterSpacing??o.letterSpacing,textTransform:o.textTransform??"none"}}},children:"Build a beautiful design system in minutes"},`${e.metadata.id}-${o.highlightStyle}`),r.jsxs(l.Text,{color:e.theme.muted,fontFamily:e.tokens.typography.fontFamily,style:{fontSize:16,lineHeight:"24px",maxWidth:520},children:["Each brand defines its own highlight treatment —"," ",r.jsx(l.Text,{as:"span",color:e.theme.primary,fontWeight:"700",children:o.highlightStyle})," ","with weight"," ",r.jsx(l.Text,{as:"span",fontWeight:"700",children:o.fontWeight}),o.highlightFontStyle==="italic"||o.fontStyle==="italic"?", italic":"",o.textTransform==="uppercase"?", uppercase":"","."]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",children:[r.jsx(ce,{color:"theme-primary",size:"md",children:"Get started"}),r.jsx(ce,{variant:"outline",color:"theme-primary",size:"md",children:"View docs"})]})]}),r.jsxs(l.View,{flex:"1 1 320px",minWidth:0,minHeight:260,position:"relative",overflow:"hidden",style:{backgroundImage:`linear-gradient(135deg, ${e.theme.primary}, ${e.theme.secondary||e.theme.primary})`},children:[r.jsx(l.View,{position:"absolute",top:"50%",left:"50%",width:180,height:180,borderRadius:9999,style:{transform:"translate(-50%, -50%)",backgroundColor:"rgba(255,255,255,0.18)",filter:"blur(40px)"}}),r.jsxs(l.Vertical,{width:"100%",height:"100%",minHeight:260,padding:32,justifyContent:"flex-end",alignItems:"flex-start",gap:12,children:[r.jsx(l.Text,{fontWeight:"700",fontFamily:e.tokens.typography.fontFamily,style:{color:e.theme.onPrimary,fontSize:13,letterSpacing:"0.08em",textTransform:"uppercase"},children:e.metadata.label}),r.jsx(l.Text,{fontWeight:"700",fontFamily:e.tokens.typography.fontFamily,style:{color:e.theme.onPrimary,fontSize:28,lineHeight:"32px",letterSpacing:"-0.02em"},children:e.theme.primary})]})]})]})})},Ry=({config:e})=>{var t,n;const o=e.tokens.colors.slice(0,5).map(a=>({token:a.name,value:a.value,role:a.role}));return r.jsxs(l.Vertical,{gap:24,children:[r.jsx(ue,{title:"Color",config:e,children:r.jsx(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:12,children:e.tokens.colors.slice(0,12).map(a=>r.jsx(Qy,{color:a.value,name:a.name,role:a.role,text:e.theme.text,border:e.theme.border},a.name))})}),r.jsx(ue,{title:"Typography",config:e,children:r.jsxs(l.Vertical,{gap:24,children:[r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:48,lineHeight:"1.0",fontWeight:"700",letterSpacing:"0.96px",textTransform:"uppercase",children:"Making Life Multiplanetary"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Display — 48px / Bold / 1.00 / Uppercase"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:16,lineHeight:"1.7",fontWeight:"400",children:"SpaceX designs, manufactures and launches advanced rockets and spacecraft. The company was founded to revolutionize space technology."}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Body — 16px / 400 / 1.70"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:13,lineHeight:"0.94",fontWeight:"700",letterSpacing:"1.17px",textTransform:"uppercase",children:"Falcon 9 · Starship · Dragon"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Nav Bold — 13px / 700 / 0.94 / Uppercase"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:12,lineHeight:"1.0",fontWeight:"400",letterSpacing:"1px",textTransform:"uppercase",children:"Mission Overview"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Caption — 12px / 400 / 1.00 / Uppercase"})]}),r.jsxs(l.Vertical,{gap:4,children:[r.jsx(l.Text,{fontFamily:e.tokens.typography.fontFamily,fontSize:10,lineHeight:"0.94",fontWeight:"400",letterSpacing:"1px",textTransform:"uppercase",children:"Launch Date: 2026-04-15"}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,children:"Micro — 10px / 400 / 0.94 / Uppercase"})]}),r.jsx(l.Horizontal,{gap:10,flexWrap:"wrap",marginTop:12,children:e.tokens.typography.fontSizes.map(a=>r.jsx(Te,{variant:"outline",content:a},a))})]})}),r.jsx(ue,{title:"Spacing, Radius, Shadow",config:e,children:r.jsxs(l.Vertical,{gap:18,children:[r.jsx(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"flex-end",children:e.tokens.spacing.slice(0,10).map(a=>r.jsxs(l.Vertical,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:a,minWidth:4,height:24,borderRadius:2,backgroundColor:e.theme.primary}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:a})]},a))}),r.jsx(l.Horizontal,{gap:12,flexWrap:"wrap",children:e.tokens.radii.slice(0,6).map(a=>r.jsxs(l.Vertical,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:64,height:64,borderRadius:a,borderWidth:1,borderStyle:"solid",backgroundColor:e.theme.surface,borderColor:e.theme.border}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:a})]},a))}),r.jsx(l.View,{width:"100%",maxWidth:"100%",overflowX:"auto",style:{WebkitOverflowScrolling:"touch",color:e.theme.text},children:r.jsx(je,{views:(n=(t=e.components)==null?void 0:t.table)==null?void 0:n.views,children:r.jsx(je.Template,{caption:"First extracted color tokens",columns:Xy,data:o})})})]})})]})},fc=({palette:e})=>r.jsxs(ke,{width:"min(100%, 420px)",views:{container:{backgroundColor:e.surface,color:e.text,borderWidth:1,borderStyle:"solid",borderColor:e.border},header:{color:e.text,borderColor:e.border},content:{color:e.text},footer:{borderColor:e.border}},children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",children:[r.jsxs(l.Horizontal,{alignItems:"baseline",gap:6,children:[r.jsx(l.Text,{fontSize:24,fontWeight:"800",color:e.text,children:"$182"}),r.jsx(l.Text,{fontSize:14,color:e.muted,children:"night"})]}),r.jsx(Te,{variant:"filled",content:"Best value"})]})}),r.jsx(ke.Content,{children:r.jsxs(l.Vertical,{gap:12,children:[r.jsxs(l.Horizontal,{gap:0,borderRadius:10,borderWidth:1,borderStyle:"solid",borderColor:e.border,overflow:"hidden",children:[r.jsxs(l.Vertical,{flex:1,padding:10,gap:2,borderRightWidth:1,borderRightStyle:"solid",borderColor:e.border,children:[r.jsx(l.Text,{fontSize:10,fontWeight:"700",letterSpacing:"0.06em",color:e.text,children:"CHECK-IN"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"Mar 12, 2026"})]}),r.jsxs(l.Vertical,{flex:1,padding:10,gap:2,children:[r.jsx(l.Text,{fontSize:10,fontWeight:"700",letterSpacing:"0.06em",color:e.text,children:"CHECKOUT"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"Mar 18, 2026"})]})]}),r.jsxs(l.Vertical,{padding:10,gap:2,borderRadius:10,borderWidth:1,borderStyle:"solid",borderColor:e.border,children:[r.jsx(l.Text,{fontSize:10,fontWeight:"700",letterSpacing:"0.06em",color:e.text,children:"GUESTS"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"2 adults"})]}),r.jsx(ce,{isFilled:!0,size:"lg",children:"Reserve"}),r.jsx(qr,{}),r.jsxs(l.Vertical,{gap:6,children:[r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:14,color:e.text,children:"$182 × 6 nights"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"$1,092"})]}),r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:14,color:e.text,children:"Cleaning fee"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"$48"})]}),r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:14,color:e.text,children:"Service fee"}),r.jsx(l.Text,{fontSize:14,color:e.text,children:"$165"})]})]}),r.jsx(qr,{}),r.jsxs(l.Horizontal,{justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:15,fontWeight:"700",color:e.text,children:"Total before taxes"}),r.jsx(l.Text,{fontSize:15,fontWeight:"700",color:e.text,children:"$1,305"})]})]})})]}),mc=[{name:"Starter",tagline:"For solo makers shipping their first project.",price:"$0",period:"/ month",features:["1 workspace","Up to 3 projects","Community support"],ctaLabel:"Get started"},{name:"Pro",tagline:"For growing teams that need more room to build.",price:"$24",period:"/ month",features:["Unlimited projects","Advanced analytics","Priority email support","Custom domains"],ctaLabel:"Start free trial",featured:!0},{name:"Enterprise",tagline:"For organizations with security and scale needs.",price:"Custom",period:"",features:["SSO & SCIM","Audit logs","Dedicated success manager","99.99% uptime SLA"],ctaLabel:"Contact sales"}],pc=({palette:e,tier:o,personality:t})=>{const n=fr(t),a=ot(t,e),i=Bo(t,e),c=Oo(t,e);return r.jsx(l.View,{width:"min(100%, 280px)",borderRadius:t.cardRadius,overflow:"hidden",borderWidth:o.featured?0:1,borderStyle:"solid",style:{...o.featured?{background:i,boxShadow:c}:a,borderColor:e.border,color:o.featured?e.onPrimary:e.text},children:r.jsxs(l.Vertical,{gap:n.gap,padding:n.padding,children:[r.jsxs(l.Vertical,{gap:6,children:[r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:13,color:o.featured?e.onPrimary:e.text,style:Ce(t),children:o.name}),o.featured?r.jsx(l.View,{paddingHorizontal:10,paddingVertical:4,borderRadius:t.badgeRadius,backgroundColor:Xe(e.onPrimary,22),children:r.jsxs(l.Horizontal,{gap:4,alignItems:"center",children:[r.jsx(l.Text,{fontSize:11,color:e.onPrimary,style:{lineHeight:1},children:t.signatureMotif}),r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:Ce(t),children:t.voice.includes("mission")?"PRIORITY":"POPULAR"})]})}):null]}),r.jsx(l.Text,{fontSize:13,lineHeight:"18px",color:o.featured?Xe(e.onPrimary,85):e.muted,style:{fontStyle:t.typeStyle},children:o.tagline})]}),r.jsxs(l.Horizontal,{alignItems:"baseline",gap:4,children:[r.jsx(l.Text,{fontSize:n.large+8,color:o.featured?e.onPrimary:e.text,style:lo(t),children:o.price}),o.period?r.jsx(l.Text,{fontSize:14,color:o.featured?Xe(e.onPrimary,85):e.muted,style:{fontStyle:t.typeStyle},children:o.period}):null]}),r.jsx(l.Vertical,{gap:8,children:o.features.map(s=>r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:18,height:18,borderRadius:t.cornerStyle==="sharp"?2:9999,backgroundColor:o.featured?Xe(e.onPrimary,22):e.primary,alignItems:"center",justifyContent:"center",style:{display:"flex",flexShrink:0},children:r.jsx(l.Text,{fontSize:11,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(t,"heavy")},children:t.cornerStyle==="sharp"?"+":"✓"})}),r.jsx(l.Text,{fontSize:13,color:o.featured?e.onPrimary:e.text,style:{textTransform:t.typeCase==="uppercase"?"uppercase":"none",letterSpacing:t.typeCase==="uppercase"?"0.04em":"normal",fontStyle:t.typeStyle},children:s})]},s))}),r.jsx(l.View,{alignSelf:"stretch",paddingHorizontal:20,paddingVertical:12,borderRadius:t.pillRadius,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",backgroundColor:o.featured?e.onPrimary:e.text},children:r.jsx(l.Text,{fontSize:14,color:o.featured?e.primary:e.canvas,style:{...Ce(t),letterSpacing:t.typeCase==="uppercase"?"0.08em":"0.02em"},children:o.ctaLabel})})]})})},uc=({palette:e,personality:o})=>{const t=fr(o),n=ot(o,e),a=o.voice.includes("athletic")||o.voice.includes("motion")?"Aero Runner GT":o.voice.includes("mission")||o.voice.includes("futurist")?"Module-04 Insulated Jacket":"Linen Throw Pillow",i=o.voice.includes("athletic")||o.voice.includes("motion")?"Court Black · Mens":o.voice.includes("mission")||o.voice.includes("futurist")?"Carbon · Standard fit":"Stonewashed · Sand";return r.jsx(l.View,{width:"min(100%, 320px)",borderRadius:o.cardRadius,overflow:"hidden",borderWidth:1,borderStyle:"solid",style:{...n,borderColor:e.border,color:e.text},children:r.jsxs(l.Vertical,{gap:t.gap,padding:t.padding,children:[r.jsx(l.View,{height:120,borderRadius:o.cardRadius,style:{background:o.accentTreatment==="gradient"?`linear-gradient(135deg, ${Xe(e.primary,20)} 0%, ${Xe(e.secondary||e.primary,20)} 100%)`:e.appearance==="dark"?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}),r.jsxs(l.Vertical,{gap:4,children:[r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",children:[r.jsx(l.Text,{fontSize:15,color:e.text,style:lo(o),children:a}),r.jsx(l.View,{paddingHorizontal:10,paddingVertical:3,borderRadius:o.badgeRadius,style:{backgroundColor:e.appearance==="dark"?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"},children:r.jsx(l.Text,{fontSize:10,color:e.text,style:Ce(o),children:"IN STOCK"})})]}),r.jsx(l.Text,{fontSize:12,color:e.muted,style:{fontStyle:o.typeStyle,textTransform:o.typeCase==="uppercase"?"uppercase":"none",letterSpacing:o.typeCase==="uppercase"?"0.04em":"normal"},children:i})]}),r.jsxs(l.Horizontal,{alignItems:"baseline",justifyContent:"space-between",children:[r.jsxs(l.Horizontal,{alignItems:"baseline",gap:6,children:[r.jsx(l.Text,{fontSize:24,color:e.text,style:lo(o),children:"$42"}),r.jsx(l.Text,{fontSize:13,color:e.muted,style:{textDecoration:"line-through"},children:"$56"})]}),r.jsx(l.Text,{fontSize:12,color:e.success||e.muted,style:Ce(o),children:"FREE SHIPPING"})]}),r.jsx(l.View,{alignSelf:"stretch",paddingHorizontal:20,paddingVertical:12,borderRadius:o.pillRadius,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",background:Bo(o,e),boxShadow:Oo(o,e)},children:r.jsx(l.Text,{fontSize:14,color:e.onPrimary,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.08em":"0.02em"},children:"Add to cart"})})]})})},yc=({palette:e,personality:o})=>{const t=fr(o),n=ot(o,e),a=o.signatureMotif,i=o.voice.includes("athletic")?"★":o.voice.includes("mission")||o.voice.includes("futurist")?"◉":"♥",c=o.voice.includes("athletic")?"Velocity AirFlow 7":o.voice.includes("mission")||o.voice.includes("futurist")?"Sentinel Pro Headset":o.voice.includes("refined")?"Pulse Studio Monitor":"Aurora Wireless Headphones",s=o.voice.includes("athletic")?"Lightweight knit · 280g":o.voice.includes("mission")||o.voice.includes("futurist")?"Mil-spec audio · 60h endurance":"Active noise cancelling · 40h battery",d=o.voice.includes("mission")?"MISSION PICK":o.voice.includes("athletic")?"TEAM PICK":o.voice.includes("futurist")?"SIGNATURE":"BEST SELLER";return r.jsxs(l.View,{position:"relative",width:"min(100%, 320px)",children:[r.jsx(l.View,{position:"absolute",top:-10,left:16,paddingHorizontal:12,paddingVertical:6,borderRadius:o.badgeRadius,zIndex:2,style:{background:Bo(o,e),boxShadow:Oo(o,e)||(e.appearance==="dark"?"0 6px 14px rgba(0,0,0,0.5)":"0 6px 14px rgba(0,0,0,0.12)")},children:r.jsxs(l.Horizontal,{gap:6,alignItems:"center",children:[r.jsx(l.Text,{fontSize:11,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(o,"heavy")},children:a}),r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:Ce(o),children:d})]})}),r.jsx(l.View,{position:"absolute",top:12,right:12,width:36,height:36,borderRadius:o.cornerStyle==="sharp"?4:9999,borderWidth:1,borderStyle:"solid",zIndex:2,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",backgroundColor:e.appearance==="dark"?"rgba(0,0,0,0.45)":"rgba(255,255,255,0.92)",borderColor:e.border,backdropFilter:"blur(6px)"},children:r.jsx(l.Text,{fontSize:16,color:i==="♥"&&e.error||e.primary,style:{lineHeight:1},children:i})}),r.jsx(l.View,{width:"100%",borderRadius:o.cardRadius,overflow:"hidden",borderWidth:1,borderStyle:"solid",style:{...n,borderColor:e.border,color:e.text},children:r.jsxs(l.Vertical,{gap:t.gap,padding:t.padding,children:[r.jsx(l.View,{height:140,borderRadius:o.cardRadius,style:{background:o.accentTreatment==="gradient"?`linear-gradient(135deg, ${Xe(e.primary,20)} 0%, ${Xe(e.secondary||e.primary,20)} 100%)`:e.appearance==="dark"?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}),r.jsxs(l.Vertical,{gap:6,children:[r.jsxs(l.Horizontal,{gap:6,alignItems:"center",children:[r.jsx(l.Text,{fontSize:13,color:e.warning||e.primary,style:{lineHeight:1},children:"★★★★★"}),r.jsx(l.Text,{fontSize:12,color:e.muted,children:"4.9 · 1,284 reviews"})]}),r.jsx(l.Text,{fontSize:18,color:e.text,style:lo(o),children:c}),r.jsx(l.Text,{fontSize:12,color:e.muted,style:{fontStyle:o.typeStyle,textTransform:o.typeCase==="uppercase"?"uppercase":"none",letterSpacing:o.typeCase==="uppercase"?"0.04em":"normal"},children:s})]}),r.jsxs(l.Horizontal,{alignItems:"baseline",justifyContent:"space-between",children:[r.jsxs(l.Horizontal,{alignItems:"baseline",gap:6,children:[r.jsx(l.Text,{fontSize:26,color:e.text,style:lo(o),children:"$189"}),r.jsx(l.Text,{fontSize:13,color:e.muted,style:{textDecoration:"line-through"},children:"$249"})]}),r.jsx(l.View,{paddingHorizontal:8,paddingVertical:3,borderRadius:o.badgeRadius,style:{backgroundColor:e.appearance==="dark"?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"},children:r.jsx(l.Text,{fontSize:10,color:e.text,style:Ce(o),children:"–24%"})})]}),r.jsxs(l.Horizontal,{gap:8,children:[r.jsx(l.View,{flex:1,paddingHorizontal:16,paddingVertical:12,borderRadius:o.pillRadius,alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",background:Bo(o,e),boxShadow:Oo(o,e)},children:r.jsx(l.Text,{fontSize:13,color:e.onPrimary,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.08em":"0.02em"},children:"Buy now"})}),r.jsx(l.View,{paddingHorizontal:16,paddingVertical:12,borderRadius:o.pillRadius,borderWidth:1,borderStyle:"solid",alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",borderColor:e.border},children:r.jsx(l.Text,{fontSize:13,color:e.text,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.08em":"0.02em"},children:"Add to cart"})})]})]})})]})},eb=[{slug:"PRIMARY-TINT",source:"primary",intensity:"tint",heading:"Bring everyone together with systems that scale",body:"Signature primary ground for systems, FAQ, and the contact form.",cta:"Get started"},{slug:"SECONDARY-TINT",source:"secondary",intensity:"tint",heading:"A faster, more efficient way of working",body:"Secondary ground for hero moments and supporting narrative.",cta:"Explore"},{slug:"WARNING-TINT",source:"warning",intensity:"tint",heading:"Designed for the way ideas actually move",body:"Warm tint for product storytelling and brand moments.",cta:"See the story"},{slug:"SUCCESS-TINT",source:"success",intensity:"tint",heading:"Ship with confidence, every single release",body:"Cool tint for changelogs, releases, and reliability notes.",cta:"Read changelog"},{slug:"ERROR-TINT",source:"error",intensity:"tint",heading:"Built for teams who care about the details",body:"Saturated tint for community stories and testimonials.",cta:"Meet the makers"},{slug:"INK-INVERTED",source:"ink",intensity:"inverted",heading:"Go deeper. Go further. Go all-in.",body:"Inverted ground for premium tiers and developer surfaces.",cta:"Open the docs"}],Tn=(e,o)=>{const t=e.replace("#","").padEnd(6,"0").slice(0,6),n=parseInt(t.slice(0,2),16),a=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return[n,a,i].some(Number.isNaN)?e:`rgba(${n}, ${a}, ${i}, ${o})`},In=e=>typeof e=="string"&&/^#([0-9a-f]{3}){1,2}$/i.test(e),He=(e,o,t)=>In(e)?Tn(e,o):e.startsWith("rgba")||e.startsWith("rgb")?e.replace(/rgba?\(([^)]+)\)/,(n,a)=>`rgba(${a.split(",").slice(0,3).map(c=>c.trim()).join(", ")}, ${o})`):t==="dark"?`rgba(255,255,255,${o})`:`rgba(0,0,0,${o})`,ob=({block:e,palette:o,personality:t})=>{const n=fr(t);let a,i;if(e.source==="ink")a=o.text,i=o.canvas;else{const f=o[e.source]||o.primary;e.intensity==="solid"?(a=f,i=o.onPrimary):(a=He(f,.32,o.appearance),i=(o.appearance==="dark",o.text))}if(t.accentTreatment==="gradient"&&e.intensity==="tint"){const f=o[e.source],m=o.secondary;In(f)&&In(m)&&(a=`linear-gradient(135deg, ${Tn(f,.32)} 0%, ${Tn(m,.32)} 100%)`)}if(t.accentTreatment==="stripe"&&e.intensity==="tint"){const f=He(o[e.source],.32,o.appearance),m=He(o.secondary,.18,o.appearance);a=`repeating-linear-gradient(135deg, ${f} 0 18px, ${m} 18px 36px)`}const c=He(i,.72,o.appearance),s=He(i,.55,o.appearance),d=i,g=i===o.canvas?o.text:o.canvas;return r.jsx(l.View,{width:"min(100%, 460px)",borderRadius:t.cardRadius*2,padding:n.large,style:{background:a},children:r.jsxs(l.Vertical,{gap:n.gap+6,children:[r.jsxs(l.Text,{fontSize:11,color:s,style:{...Ce(t),letterSpacing:"0.12em",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace"},children:[t.signatureMotif," ",e.slug]}),r.jsxs(l.Vertical,{gap:14,children:[r.jsx(l.Text,{fontSize:32,lineHeight:"36px",color:i,style:lo(t),children:e.heading}),r.jsx(l.Text,{fontSize:16,lineHeight:"22px",color:c,style:{fontStyle:t.typeStyle},children:e.body})]}),r.jsx(l.View,{alignSelf:"flex-start",paddingHorizontal:28,paddingVertical:14,borderRadius:t.pillRadius,style:{backgroundColor:d,cursor:"pointer"},children:r.jsx(l.Text,{fontSize:15,color:g,style:{...Ce(t),letterSpacing:t.typeCase==="uppercase"?"0.08em":"0.01em",textTransform:t.typeCase==="uppercase"?"uppercase":"none"},children:e.cta})})]})})},bc=[{id:"design-tokens",badge:"NEW",badgeTone:"success",favorite:"♥",category:"Design systems",title:"Design tokens that survive a redesign",excerpt:"Why semantic naming beats raw values — and how to migrate a token set without breaking every consumer.",author:"Léa Martin",meta:"6 min read · Mar 10",imageTone:"warm"},{id:"shipping-faster",badge:"FEATURED",badgeTone:"primary",favorite:"★",category:"Engineering",title:"Shipping faster without skipping review",excerpt:"Three async patterns we use to keep PR cycle time under 24h while still catching the regressions that matter.",author:"Jordan Reyes",meta:"9 min read · Mar 04",imageTone:"cool"},{id:"a11y-audit",badge:"TRENDING",badgeTone:"warning",favorite:"⛉",category:"Accessibility",title:"The accessibility audit nobody asked for",excerpt:"A walkthrough of the 12 issues we found on our own marketing site — and the four-week fix plan that followed.",author:"Ines Okafor",meta:"12 min read · Feb 27",imageTone:"mono"}],xc=({palette:e,article:o,personality:t})=>{const n=fr(t),a=ot(t,e),i=e[o.badgeTone]||e.primary,c=e.secondary||e.primary,s=t.accentTreatment==="gradient"?`linear-gradient(135deg, ${He(i,.55,e.appearance)} 0%, ${He(c,.55,e.appearance)} 100%)`:t.accentTreatment==="stripe"?`repeating-linear-gradient(45deg, ${He(i,.45,e.appearance)} 0 16px, ${He(c,.25,e.appearance)} 16px 32px)`:t.accentTreatment==="halftone"?`radial-gradient(circle at 30% 30%, ${He(i,.55,e.appearance)} 0%, ${He(c,.35,e.appearance)} 70%)`:t.accentTreatment==="glow"?`radial-gradient(circle at 50% 60%, ${He(i,.45,e.appearance)} 0%, ${e.appearance==="dark"?"#050505":"#0a0a0a"} 100%)`:He(i,.32,e.appearance),d=t.voice.includes("mission")||t.voice.includes("futurist")?"◉":o.favorite,g=d==="♥"?e.error||e.primary:d==="★"&&e.warning||e.primary;return r.jsx(l.View,{width:"min(100%, 320px)",borderRadius:t.cardRadius,overflow:"hidden",borderWidth:1,borderStyle:"solid",style:{...a,borderColor:e.border,color:e.text},children:r.jsxs(l.Vertical,{gap:n.gap,padding:n.padding,children:[r.jsxs(l.View,{position:"relative",height:160,borderRadius:t.cardRadius,overflow:"hidden",style:{background:s},children:[r.jsx(l.View,{position:"absolute",top:12,left:12,paddingHorizontal:10,paddingVertical:4,borderRadius:t.badgeRadius,style:{background:Bo(t,{...e,primary:i}),boxShadow:Oo(t,e)},children:r.jsxs(l.Horizontal,{gap:4,alignItems:"center",children:[r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(t,"heavy")},children:t.signatureMotif}),r.jsx(l.Text,{fontSize:10,color:e.onPrimary,style:Ce(t),children:o.badge})]})}),r.jsx(l.View,{position:"absolute",top:10,right:10,width:36,height:36,borderRadius:t.cornerStyle==="sharp"?4:9999,borderWidth:1,borderStyle:"solid",alignItems:"center",justifyContent:"center",style:{display:"flex",cursor:"pointer",backgroundColor:e.appearance==="dark"?"rgba(0,0,0,0.45)":"rgba(255,255,255,0.92)",borderColor:e.border,backdropFilter:"blur(6px)"},children:r.jsx(l.Text,{fontSize:16,color:g,style:{lineHeight:1},children:d})})]}),r.jsxs(l.Vertical,{gap:8,children:[r.jsx(l.Text,{fontSize:11,color:e.muted,style:Ce(t),children:o.category}),r.jsx(l.Text,{fontSize:18,lineHeight:"24px",color:e.text,style:lo(t),children:o.title}),r.jsx(l.Text,{fontSize:13,lineHeight:"18px",color:e.muted,style:{fontStyle:t.typeStyle},children:o.excerpt})]}),r.jsxs(l.Horizontal,{gap:10,alignItems:"center",children:[r.jsx(l.View,{width:28,height:28,borderRadius:t.cornerStyle==="sharp"?4:9999,style:{backgroundColor:e.appearance==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.08)"}}),r.jsxs(l.Vertical,{gap:0,children:[r.jsx(l.Text,{fontSize:12,color:e.text,style:{fontWeight:Je(t,"normal"),fontStyle:t.typeStyle},children:o.author}),r.jsx(l.Text,{fontSize:11,color:e.muted,children:o.meta})]})]})]})})},kc=({palette:e,personality:o,config:t})=>{var m,p,u,y;const n=o.signatureMotif,a=e.primary,i=Bo(o,e),c=Oo(o,e),s=((p=(m=t.tokens)==null?void 0:m.typography)==null?void 0:p.fontFamily)||((y=(u=t.tokens)==null?void 0:u.rawCssVars)==null?void 0:y.display)||"inherit",d=o.voice.includes("mission")?"MAKING LIFE MULTIPLANETARY":o.voice.includes("athletic")?"JUST DO IT":o.voice.includes("refined")?"A new standard in payments":o.voice.includes("speed")?"Built for the makers":o.voice.includes("rhythmic")?"Music for everyone":o.voice.includes("thoughtful")?"The connected workspace":o.voice.includes("warm")?"Belong anywhere":o.voice.includes("minimal")?"Think different":o.voice.includes("commerce")?"The platform commerce is built on":o.voice.includes("bold-fintech")?"Money for the next generation":o.voice.includes("trustworthy")?"The future of money":o.voice.includes("playful")?"Nothing great is made alone":o.voice.includes("motion")?"Get there":o.voice.includes("deploy")?"Develop. Preview. Ship.":o.voice.includes("futurist")?"Accelerating the world to sustainable energy":`${t.metadata.label}`,g=o.typeCase==="uppercase"?"EXPLORE":"Get started",f=o.typeCase==="uppercase"?"LEARN MORE":"Learn more";return r.jsxs(l.View,{width:"100%",borderRadius:o.cardRadius*2,padding:o.density==="spacious"?56:o.density==="tight"?28:40,style:{backgroundColor:e.canvas,color:e.text,fontFamily:s,position:"relative",overflow:"hidden"},children:[o.accentTreatment==="glow"&&r.jsx(l.View,{position:"absolute",top:-120,right:-80,width:360,height:360,borderRadius:9999,style:{background:`radial-gradient(circle, ${a}40 0%, transparent 70%)`,pointerEvents:"none"}}),o.accentTreatment==="halftone"&&r.jsx(l.View,{position:"absolute",top:0,right:0,width:300,height:300,style:{background:`radial-gradient(circle at 70% 30%, ${a}30 0%, transparent 60%)`,pointerEvents:"none"}}),r.jsxs(l.Vertical,{gap:24,style:{position:"relative"},children:[r.jsxs(l.Horizontal,{gap:10,alignItems:"center",children:[r.jsx(l.View,{width:32,height:32,borderRadius:o.cornerStyle==="pill"?9999:o.cornerStyle==="sharp"?0:8,alignItems:"center",justifyContent:"center",style:{display:"flex",background:i,boxShadow:c},children:r.jsx(l.Text,{fontSize:16,color:e.onPrimary,style:{lineHeight:1,fontWeight:Je(o,"heavy")},children:n})}),r.jsx(l.Text,{fontSize:13,color:e.muted,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.18em":"0.06em"},children:t.metadata.label})]}),r.jsx(l.Text,{fontSize:o.density==="spacious"?56:o.density==="tight"?40:48,lineHeight:o.density==="spacious"?"60px":o.density==="tight"?"44px":"52px",color:e.text,style:{...lo(o),letterSpacing:o.typeCase==="uppercase"?"0.06em":o.letterSpacing,maxWidth:580,fontFamily:s},children:d}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(l.View,{paddingHorizontal:o.density==="spacious"?32:24,paddingVertical:o.density==="spacious"?16:14,borderRadius:o.pillRadius,style:{display:"flex",cursor:"pointer",background:i,boxShadow:c},children:r.jsx(l.Text,{fontSize:15,color:e.onPrimary,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.14em":"0.02em",fontWeight:Je(o,"heavy"),fontFamily:s},children:g})}),r.jsx(l.View,{paddingHorizontal:24,paddingVertical:14,borderRadius:o.pillRadius,borderWidth:1,borderStyle:"solid",style:{display:"flex",cursor:"pointer",borderColor:e.text},children:r.jsx(l.Text,{fontSize:15,color:e.text,style:{...Ce(o),letterSpacing:o.typeCase==="uppercase"?"0.14em":"0.02em",fontWeight:Je(o,"heavy"),fontFamily:s},children:f})})]}),r.jsx(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"center",marginTop:8,children:[{label:"Primary",value:e.primary},{label:"Surface",value:e.surface},{label:"Text",value:e.text},{label:"Success",value:e.success}].map(k=>r.jsxs(l.Horizontal,{gap:8,alignItems:"center",children:[r.jsx(l.View,{width:20,height:20,borderRadius:o.cornerStyle==="sharp"?0:o.cornerStyle==="pill"?9999:4,borderWidth:1,borderStyle:"solid",style:{backgroundColor:k.value,borderColor:e.border}}),r.jsxs(l.Vertical,{gap:0,children:[r.jsx(l.Text,{fontSize:11,color:e.muted,style:Ce(o),children:k.label}),r.jsx(l.Text,{fontSize:11,color:e.text,style:{fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace"},children:Oy(k.value)})]})]},k.label))})]})]})},Cc=({palette:e,config:o})=>r.jsxs(l.Vertical,{gap:20,padding:36,alignItems:"center",borderRadius:16,style:{backgroundColor:e.surface},children:[r.jsx(Te,{variant:"outline",content:"New release"}),r.jsxs(l.Vertical,{gap:8,alignItems:"center",children:[r.jsxs(l.Text,{fontSize:36,lineHeight:"40px",fontWeight:"800",textAlign:"center",color:e.text,children:[o.metadata.label," Pro"]}),r.jsx(l.Text,{fontSize:18,lineHeight:"24px",color:e.muted,textAlign:"center",children:"Pro. Beyond."})]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",justifyContent:"center",children:[r.jsx(ce,{shape:"pill",size:"md",children:"Learn more"}),r.jsx(ce,{shape:"pill",size:"md",variant:"outline",children:"Buy"})]}),r.jsx(l.View,{width:220,height:140,borderRadius:20,backgroundColor:e.appearance==="dark"?e.canvas:e.text,opacity:.85})]}),wc=({palette:e,config:o})=>r.jsxs(ke,{width:"min(100%, 320px)",views:{container:{backgroundColor:e.surface,color:e.text,borderWidth:1,borderStyle:"solid",borderColor:e.border},header:{color:e.text,borderColor:e.border},content:{color:e.text},footer:{borderColor:e.border}},children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",children:[r.jsx(l.Text,{color:e.text,fontWeight:"700",children:o.metadata.id==="spacex"?"Falcon 9":"Product Card"}),r.jsx(Te,{variant:"filled",content:"New"})]})}),r.jsx(ke.Content,{children:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",color:e.text,children:o.metadata.id==="spacex"?"The world's first orbital-class reusable rocket. Designed for reliable and safe transport of people and payloads.":"Card surfaces, borders, typography, and shadows come from the active JSON config."})}),r.jsx(ke.Footer,{children:r.jsx(ce,{size:"sm",children:o.metadata.id==="spacex"?"Explore":"Review"})})]}),Sc=({palette:e})=>r.jsxs(l.Vertical,{gap:14,children:[r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(ce,{color:"theme-primary",children:"Primary"}),r.jsx(ce,{color:"theme-secondary",children:"Secondary"}),r.jsx(ce,{color:"color-black",children:"Black"}),r.jsx(ce,{color:"color-white",textColor:"color-black",children:"White"})]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(ce,{variant:"outline",color:"theme-primary",children:"Primary"}),r.jsx(ce,{variant:"outline",color:"theme-secondary",children:"Secondary"}),r.jsx(ce,{variant:"outline",color:"color-black",children:"Black"}),r.jsx(ce,{variant:"outline",color:"color-white",children:"White"})]}),r.jsxs(l.Horizontal,{gap:12,flexWrap:"wrap",alignItems:"center",children:[r.jsx(ce,{variant:"ghost",views:{container:{color:e.text}},children:"Ghost"}),r.jsx(ce,{variant:"link",views:{container:{color:e.primary}},children:"Link"}),r.jsx(ce,{isDisabled:!0,children:"Disabled"}),r.jsx(ce,{isLoading:!0,children:"Loading"})]})]}),vc=({palette:e,config:o})=>r.jsx(l.View,{style:{color:e.text},children:r.jsxs(l.Vertical,{gap:14,children:[r.jsxs(l.Horizontal,{gap:10,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Te,{content:"Badge"}),r.jsx(Te,{variant:"outline",content:"Outline"}),r.jsx(Te,{content:"Primary",views:{container:{backgroundColor:e.primary,color:e.onPrimary,borderColor:e.primary}}}),r.jsx(Te,{content:"Success",views:{container:{backgroundColor:e.success,color:e.onPrimary,borderColor:e.success}}}),r.jsx(Te,{content:"Warning",views:{container:{backgroundColor:e.warning,color:e.onPrimary,borderColor:e.warning}}}),r.jsx(Te,{content:"Error",views:{container:{backgroundColor:e.error,color:e.onPrimary,borderColor:e.error}}})]}),r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Ur,{status:"success",label:"Operational"}),r.jsx(Ur,{status:"warning",label:"Degraded"}),r.jsx(Ur,{status:"error",label:"Outage"}),r.jsx(Re,{size:"sm",loaderColor:o.theme.primary})]}),r.jsx(bt,{title:"Heads up",description:"Brand styling cascades through every alert.",variant:"info",views:{container:{backgroundColor:e.surface,borderColor:e.border,color:e.text},title:{color:e.text},description:{color:e.muted}}}),r.jsx(Si,{value:64,height:10,showLabel:!0,color:e.primary,backgroundColor:e.border,views:{container:{backgroundColor:e.border},bar:{backgroundColor:e.primary}}})]})}),Tc=({palette:e,config:o,mode:t})=>{const n={container:{backgroundColor:e.surface,borderColor:e.border,color:e.text},field:{color:e.text}};return r.jsx(l.View,{style:{color:e.text},children:r.jsxs(l.Vertical,{gap:16,children:[r.jsxs(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:16,alignItems:"start",children:[r.jsx(We,{size:"md",label:"Name",placeholder:"Ada Lovelace",views:n}),r.jsx(Qo,{id:`forms-${o.metadata.id}-${t}`,size:"md",label:"Plan",placeholder:"Select plan",options:[{label:"Starter",value:"starter"},{label:"Team",value:"team"},{label:"Enterprise",value:"enterprise"}],views:{container:n.container,field:{fontSize:14,lineHeight:"20px",color:e.text},text:{fontSize:14,lineHeight:"20px",color:e.text}}}),r.jsx(At,{label:"Notes",placeholder:"Add implementation notes",views:n})]}),r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Dt,{label:"Email updates",defaultIsSelected:!0}),r.jsx(Zi,{label:"Standard",value:"standard",defaultIsSelected:!0}),r.jsx(Pt,{label:"Enabled",isChecked:!0})]})]})})},rb=({config:e})=>{const[o,t]=h.useState(1),n=_y(e),a=By(e),i=qy(e);return r.jsxs(l.Vertical,{gap:24,children:[r.jsx(ue,{title:"Brand Snapshot (Light & Dark)",config:e,children:r.jsxs(l.Vertical,{gap:20,children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(kc,{palette:n,personality:i,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(kc,{palette:a,personality:i,config:e})})]})}),r.jsx(ue,{title:"Buttons — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(Sc,{palette:n})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(Sc,{palette:a})})]})}),r.jsx(ue,{title:"Status & Feedback — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(vc,{palette:n,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(vc,{palette:a,config:e})})]})}),r.jsx(ue,{title:"Forms — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(Tc,{palette:n,config:e,mode:"light"})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(Tc,{palette:a,config:e,mode:"dark"})})]})}),r.jsx(ue,{title:"Forms (legacy preview)",config:e,children:r.jsxs(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",alignItems:"start",gap:16,children:[r.jsx(We,{size:"md",label:"Name",placeholder:"Ada Lovelace"}),r.jsx(Qo,{id:`design-system-select-${e.metadata.id}`,size:"md",label:"Plan",placeholder:"Select plan",options:[{label:"Starter",value:"starter"},{label:"Team",value:"team"},{label:"Enterprise",value:"enterprise"}],views:{field:{fontSize:14,lineHeight:"20px"},text:{fontSize:14,lineHeight:"20px"}}}),r.jsx(At,{label:"Notes",placeholder:"Add implementation notes"}),r.jsxs(l.Vertical,{gap:12,children:[r.jsx(Dt,{label:"Email updates",defaultIsSelected:!0}),r.jsx(Zi,{label:"Standard",value:"standard",defaultIsSelected:!0}),r.jsx(Pt,{label:"Enabled",isChecked:!0}),r.jsx(Vl,{defaultValue:58,showValue:!0}),r.jsx(ll,{length:6,label:"Verification Code"})]})]})}),r.jsx(ue,{title:"Form States",config:e,children:r.jsxs(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:16,alignItems:"start",children:[r.jsx(We,{size:"md",label:"Default",placeholder:"Type here",helperText:"Resting state"}),r.jsx(We,{size:"md",label:"Filled",defaultValue:"Ada Lovelace",helperText:"Has value"}),r.jsx(We,{size:"md",label:"With helper",placeholder:"user@example.com",helperText:"We'll never share your email"}),r.jsx(We,{size:"md",label:"Error",defaultValue:"invalid@",error:"Please enter a valid email"}),r.jsx(We,{size:"md",label:"Disabled",isDisabled:!0,defaultValue:"Cannot edit",helperText:"Field locked"}),r.jsx(We,{size:"md",label:"Read only",defaultValue:"Read-only value",isReadOnly:!0,helperText:"View only"}),r.jsx(Qo,{id:`design-system-select-error-${e.metadata.id}`,size:"md",label:"Select error",placeholder:"Pick one",error:!0,helperText:"Selection required",options:[{label:"Option A",value:"a"},{label:"Option B",value:"b"}],views:{field:{fontSize:14,lineHeight:"20px"},text:{fontSize:14,lineHeight:"20px"}}}),r.jsx(Qo,{id:`design-system-select-disabled-${e.metadata.id}`,size:"md",label:"Select disabled",placeholder:"Disabled",isDisabled:!0,options:[{label:"Option A",value:"a"},{label:"Option B",value:"b"}],views:{field:{fontSize:14,lineHeight:"20px"},text:{fontSize:14,lineHeight:"20px"}}})]})}),r.jsx(ue,{title:"Elevation & Depth",config:e,children:r.jsx(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:20,children:Yy(e).map(c=>r.jsxs(l.Vertical,{gap:12,children:[r.jsx(l.View,{height:120,borderRadius:12,backgroundColor:e.theme.canvas,style:{boxShadow:c.shadow}}),r.jsxs(l.Vertical,{gap:4,children:[r.jsxs(l.Horizontal,{gap:8,alignItems:"baseline",flexWrap:"wrap",children:[r.jsx(l.Text,{fontSize:12,fontWeight:"700",children:c.name}),r.jsx(l.Text,{fontSize:11,fontWeight:"600",color:e.theme.primary,children:c.label})]}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:c.description}),r.jsx(l.Text,{fontSize:10,color:e.theme.muted,style:{wordBreak:"break-word",opacity:.8},children:c.shadow})]})]},c.name))})}),r.jsx(ue,{title:"Color Blocks",config:e,children:r.jsx(l.View,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,children:[["primary","Primary",e.theme.onPrimary],["secondary","Secondary",e.theme.onPrimary],["success","Success","#ffffff"],["warning","Warning","#ffffff"],["error","Error","#ffffff"],["canvas","Canvas",e.theme.text],["surface","Surface",e.theme.text],["text","Text",e.theme.canvas],["muted","Muted",e.theme.canvas],["border","Border",e.theme.text],["onPrimary","On primary",e.theme.text]].map(([c,s,d])=>{const g=e.theme[c];return r.jsxs(l.Vertical,{gap:0,borderRadius:12,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:e.theme.border,children:[r.jsx(l.View,{height:88,backgroundColor:g}),r.jsxs(l.Vertical,{gap:4,padding:12,backgroundColor:e.theme.surface,children:[r.jsx(l.Text,{fontSize:13,fontWeight:"700",children:s}),r.jsxs(l.Text,{fontSize:11,color:e.theme.muted,children:["theme.",c]}),r.jsx(l.Text,{fontSize:11,color:e.theme.muted,children:g})]})]},c)})})}),r.jsx(ue,{title:"Pricing — Booking (Light & Dark)",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(fc,{palette:n})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(fc,{palette:a})})]})}),r.jsx(ue,{title:"Pricing — SaaS Tiers (Light & Dark)",config:e,children:r.jsxs(l.Vertical,{gap:20,children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:mc.map(c=>r.jsx(pc,{palette:n,tier:c,personality:i},c.name))})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:mc.map(c=>r.jsx(pc,{palette:a,tier:c,personality:i},c.name))})})]})}),r.jsx(ue,{title:"Pricing — Product (Light & Dark)",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(uc,{palette:n,personality:i})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(uc,{palette:a,personality:i})})]})}),r.jsx(ue,{title:"Pricing — Featured w/ Badge & Favorite (Light & Dark)",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(yc,{palette:n,personality:i})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(yc,{palette:a,personality:i})})]})}),r.jsx(ue,{title:"Content — Color Block Cards",config:e,children:r.jsx(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:eb.map(c=>r.jsx(ob,{block:c,palette:n,personality:i},c.slug))})}),r.jsx(ue,{title:"Content — Article Cards w/ Badge & Favorite (Light & Dark)",config:e,children:r.jsxs(l.Vertical,{gap:20,children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:bc.map(c=>r.jsx(xc,{palette:n,article:c,personality:i},c.id))})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:bc.map(c=>r.jsx(xc,{palette:a,article:c,personality:i},c.id))})})]})}),r.jsx(ue,{title:"CTA Card — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(Cc,{palette:n,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(Cc,{palette:a,config:e})})]})}),r.jsx(ue,{title:"Product Card — Light & Dark",config:e,children:r.jsxs(l.Horizontal,{gap:20,flexWrap:"wrap",alignItems:"flex-start",children:[r.jsx(me,{config:e,palette:n,label:"On light surface",children:r.jsx(wc,{palette:n,config:e})}),r.jsx(me,{config:e,palette:a,label:"On dark surface",children:r.jsx(wc,{palette:a,config:e})})]})}),r.jsx(ue,{title:"Content & Layout",config:e,children:r.jsxs(l.Vertical,{gap:24,children:[r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"stretch",children:[r.jsxs(ke,{width:"min(100%, 320px)",children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",children:[r.jsx(l.Text,{fontWeight:"700",children:e.metadata.id==="spacex"?"Falcon 9":"Product Card"}),r.jsx(Te,{variant:"filled",content:"New"})]})}),r.jsx(ke.Content,{children:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:e.metadata.id==="spacex"?"The world's first orbital-class reusable rocket. Designed for reliable and safe transport of people and payloads.":"Card surfaces, borders, typography, and shadows come from the active JSON config."})}),r.jsx(ke.Footer,{children:r.jsx(ce,{size:"sm",children:e.metadata.id==="spacex"?"Explore":"Review"})})]}),r.jsxs(ke,{width:"min(100%, 320px)",children:[r.jsx(ke.Header,{children:r.jsxs(l.Horizontal,{gap:12,alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",children:[r.jsxs(l.Horizontal,{gap:12,alignItems:"center",children:[r.jsx(Qn,{fallback:e.metadata.label.slice(0,2)}),r.jsxs(l.Vertical,{gap:2,children:[r.jsx(l.Text,{fontWeight:"700",children:e.metadata.id==="spacex"?"Starship":e.metadata.label}),r.jsx(l.Text,{fontSize:12,color:e.theme.muted,children:e.metadata.id==="spacex"?"Multiplanetary mission":"Config-driven preview"})]})]}),r.jsx(Te,{variant:"outline",content:"Active"})]})}),r.jsx(ke.Content,{children:e.metadata.id==="spacex"?r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"The most powerful launch vehicle ever developed. Designed to carry crew and cargo to Mars and beyond."}):r.jsx(bt,{variant:"info",title:"Config active",description:"This alert is rendered by the shared component."})})]})]}),r.jsx(Zy,{config:e}),r.jsx(Gn,{ratio:16/9,borderRadius:12,overflow:"hidden",children:r.jsx(l.View,{width:"100%",height:"100%",backgroundColor:e.theme.primary,children:r.jsxs(l.Vertical,{height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[r.jsx(l.Text,{fontWeight:"700",color:e.theme.onPrimary,children:"16:9 Aspect Ratio"}),r.jsx(Te,{content:"Config primary color"})]})})}),r.jsxs(Le,{children:[r.jsx(Le.Content,{children:[1,2,3].map(c=>r.jsx(Le.Item,{children:r.jsx(l.View,{height:200,borderRadius:12,alignItems:"center",justifyContent:"center",backgroundColor:e.theme.surface,borderColor:e.theme.border,borderWidth:1,borderStyle:"solid",children:r.jsxs(l.Text,{fontSize:24,fontWeight:"700",children:["Slide ",c]})})},c))}),r.jsxs(l.Horizontal,{gap:12,marginTop:12,justifyContent:"center",children:[r.jsx(Le.Previous,{}),r.jsx(Le.Next,{})]})]})]})}),r.jsx(ue,{title:"Navigation & Interactive",config:e,children:r.jsxs(l.Vertical,{gap:18,children:[r.jsxs(l.Vertical,{gap:20,children:[r.jsxs(l.Vertical,{gap:8,children:[r.jsx(l.Text,{fontSize:12,fontWeight:"700",color:e.theme.muted,children:"With icons"}),r.jsx(Po,{tabs:Ky,defaultValue:"homes",views:{tab:{borderRadius:mr(e,"tabs")},activeTab:{borderRadius:mr(e,"tabs")}}})]}),r.jsxs(l.Vertical,{gap:8,children:[r.jsx(l.Text,{fontSize:12,fontWeight:"700",color:e.theme.muted,children:"Without icons"}),r.jsx(Po,{defaultValue:"overview",views:{tab:{borderRadius:mr(e,"tabs")},activeTab:{borderRadius:mr(e,"tabs")}},tabs:[{title:"Overview",value:"overview",content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Tokens and components share the active config."})},{title:"Usage",value:"usage",content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Explicit props still override the config defaults."})},{title:"Audit",value:"audit",content:r.jsx(l.Text,{fontSize:14,lineHeight:"20px",children:"Plain text tabs without icons."})}]})]})]}),r.jsx(po,{items:Jy,orientation:"horizontal",defaultActiveItemId:"components"}),(()=>{const c=mr(e,"accordion"),s={borderWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,marginBottom:0,borderRadius:0},d={...s,borderTopWidth:1,borderTopStyle:"solid",borderTopColor:e.theme.border};return r.jsxs($e,{defaultValue:"tokens",collapsible:!0,shape:"rounded",views:{container:{borderRadius:c,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:e.theme.border}},children:[r.jsxs($e.Item,{value:"tokens",...s,views:{item:s,trigger:{borderRadius:0}},children:[r.jsx($e.Trigger,{children:"Token extraction"}),r.jsx($e.Content,{children:r.jsxs(l.Text,{color:e.theme.muted,children:[Object.keys(e.tokens.rawCssVars).length," raw CSS variables were extracted from ",e.metadata.sourcePath,"."]})})]}),r.jsxs($e.Item,{value:"overrides",...d,views:{item:d,trigger:{borderRadius:0}},children:[r.jsx($e.Trigger,{children:"Override behavior"}),r.jsx($e.Content,{children:r.jsx(l.Text,{color:e.theme.muted,children:"Props passed directly to components override the design-system defaults."})})]})]})})(),r.jsx(qr,{label:"advanced tools"}),r.jsxs(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:[r.jsx(Nt,{color:e.theme.primary,children:"Toggle Button"}),r.jsx(ti,{color:e.theme.primary,items:[{id:"left",value:"Left"},{id:"center",value:"Center"},{id:"right",value:"Right"}]}),r.jsx(Xr,{content:"Tooltip message",children:r.jsx(ce,{variant:"outline",children:"Hover for Tooltip"})}),r.jsxs(Fe,{children:[r.jsx(Fe.Trigger,{children:r.jsx(ce,{variant:"ghost",children:"Hover Card"})}),r.jsx(Fe.Content,{children:r.jsxs(l.Vertical,{gap:4,padding:12,children:[r.jsx(l.Text,{fontWeight:"700",children:"Detailed Info"}),r.jsx(l.Text,{fontSize:12,opacity:.8,children:"Hover cards provide more context."})]})})]}),r.jsx(di,{value:e.theme.primary}),r.jsx(Ii,{shareData:{url:"https://example.com",title:"Example"}}),r.jsx(wt,{to:"#",children:"Inline Link component"})]}),r.jsx(l.Horizontal,{gap:16,flexWrap:"wrap",alignItems:"center",children:r.jsx(wi,{currentPage:o,totalPages:10,onPageChange:t})})]})})]})},tb=({config:e})=>{var o;return r.jsxs(it,{config:e,children:[r.jsx(Ey,{children:(o=e.metadata.googleFontLinks)==null?void 0:o.map(t=>r.jsx("link",{rel:"stylesheet",href:t},t))}),r.jsx(l.View,{minHeight:"100vh",padding:28,fontFamily:e.tokens.typography.fontFamily,backgroundColor:e.theme.canvas,color:e.theme.text,style:{textTransform:e.metadata.id==="spacex"?"uppercase":"none"},children:r.jsxs(l.Vertical,{gap:28,children:[r.jsxs(l.Vertical,{gap:12,maxWidth:900,children:[r.jsxs(l.Text,{as:"h1",fontSize:44,lineHeight:"48px",fontWeight:"800",fontFamily:e.tokens.typography.fontFamily,children:[e.metadata.label," Design System"]}),r.jsxs(l.Text,{fontSize:16,lineHeight:"24px",color:e.theme.muted,fontFamily:e.tokens.typography.fontFamily,children:["Live App Studio components rendered with the"," ",e.metadata.label," config defaults."]})]}),r.jsxs(l.Vertical,{gap:28,children:[r.jsx(Ry,{config:e}),r.jsx(rb,{config:e})]})]})})]})};I.Accordion=$e,I.ActionSheet=ld,I.Alert=bt,I.ArrowIcon=Qs,I.AspectRatio=Gn,I.AttachmentGroup=ai,I.AttachmentIcon=Go,I.AttachmentPreview=Bf,I.AudioIcon=So,I.AudioInput=kd,I.AudioWaveform=xt,I.Avatar=Qn,I.BackIcon=Cs,I.Background=Ji,I.Badge=Te,I.BatteryIcon=as,I.BluetoothIcon=Ys,I.BoldArrowIcon=Js,I.BookmarkIcon=ls,I.Button=ce,I.CHART_COLORS=_e,I.CalendarIcon=Ds,I.CameraIcon=Gs,I.Card=ke,I.Carousel=Le,I.Chart=x0,I.ChartIcon=bs,I.ChatInput=Ui,I.ChatWidget=Qi,I.ChatWidgetComponent=hn,I.ChatWidgetWidget=ay,I.CheckIcon=ks,I.Checkbox=Dt,I.ChevronIcon=ge,I.ClockIcon=$s,I.CloseEyeIcon=mt,I.CloseIcon=Me,I.CloudIcon=is,I.ColorInput=cg,I.ColorPicker=di,I.ComboBox=Hh,I.Command=Do,I.ContextMenu=Io,I.CookieConsent=S0,I.CopyIcon=cs,I.CountryPicker=mg,I.CreditCardIcon=Ps,I.CropIcon=ed,I.DEFAULT_CHART_COLORS=ga,I.DatePicker=Sh,I.DeleteIcon=ss,I.DesignSystem=tb,I.DesignSystemProvider=it,I.Divider=Sp,I.DocumentIcon=ys,I.DownloadIcon=hs,I.DragAndDrop=Lm,I.DragAndDropComponent=ni,I.DragHandleIcon=qc,I.DragHandleLinesIcon=rd,I.Drawer=mo,I.DropZone=Nm,I.DropdownMenu=ar,I.DustBinIcon=br,I.EditIcon=ds,I.EmojiPicker=tp,I.ErrorIcon=Cr,I.ExternalLinkIcon=_n,I.FacebookIcon=Zc,I.FileIcon=io,I.FileImage=W0,I.FileSVG=M0,I.FilterIcon=Es,I.FolderIcon=Nc,I.FormikChatInput=lf,I.FormikCheckbox=Nh,I.FormikColorInput=cf,I.FormikComboBox=yf,I.FormikCountryPicker=df,I.FormikDatePicker=sf,I.FormikEmojiPicker=_f,I.FormikForm=Bh,I.FormikIconPicker=Af,I.FormikOTPInput=vf,I.FormikPassword=uf,I.FormikRadio=Kh,I.FormikSelect=gf,I.FormikSelector=If,I.FormikSlider=wf,I.FormikSwitch=hf,I.FormikTagInput=ff,I.FormikTextArea=mf,I.FormikTextField=pf,I.FormikToggle=Mf,I.FormikToggleGroup=Wf,I.FormikUploader=Tl,I.GiftIcon=Is,I.Gradient=fi,I.HeartIcon=rs,I.HelpIcon=Oc,I.HomeIcon=gs,I.HoverCard=Fe,I.Icon=yr,I.IconPicker=np,I.ImageIcon=Gc,I.InfoIcon=Ze,I.InstagramIcon=Jc,I.KeyboardAvoidingView=Ll,I.LayoutIcon=Hs,I.LikeIcon=Us,I.Link=wt,I.LinkIcon=Ws,I.LinkedinIcon=Rc,I.Loader=Re,I.LoadingSpinnerIcon=ft,I.LockIcon=ms,I.LogoutIcon=zs,I.MagicWandIcon=Ns,I.MapPinIcon=Ls,I.MediaPreview=Of,I.MenuIcon=_s,I.Menubar=uo,I.MessageLayout=fd,I.MessageView=Xn,I.MicrophoneIcon=gt,I.MinusIcon=En,I.Modal=fo,I.ModalLayout=Gt,I.ModalRouter=Gt,I.MoonIcon=xs,I.MoreIcon=As,I.MousePointerIcon=On,I.NavigationMenu=po,I.NotificationIcon=us,I.OTPInput=ll,I.OpenEyeIcon=pt,I.PageLayout=am,I.Pagination=wi,I.PanelIcon=Bn,I.Password=vh,I.PauseIcon=os,I.PlayIcon=Dn,I.PlusIcon=fs,I.PowerOffIcon=Ms,I.PrintIcon=Os,I.ProfileIcon=ps,I.ProgressBar=Si,I.RefreshIcon=Bs,I.Resizable=ln,I.RotateIcon=Ts,I.Router=fm,I.SaveIcon=ns,I.SearchIcon=kr,I.Select=Qo,I.Selector=R0,I.SendIcon=ht,I.Separator=qr,I.SettingsIcon=$n,I.ShapeIcon=vs,I.ShareButton=Ii,I.ShareIcon=Ln,I.ShieldIcon=Fs,I.Sidebar=sr,I.Slider=Vl,I.SliderIcon=Rs,I.SpinnerIcon=Zs,I.SplashScreen=cm,I.StarIcon=ts,I.StatusIndicator=Ur,I.StopIcon=xr,I.SuccessIcon=ut,I.Switch=Pt,I.Table=je,I.Tabs=Po,I.TagInput=Ph,I.TextArea=At,I.TextField=We,I.TextIcon=Ss,I.ThreadsIcon=es,I.TickIcon=Yo,I.Title=ri,I.Toast=eu,I.Toggle=Nt,I.ToggleGroup=ti,I.Tooltip=Xr,I.TrashIcon=Vs,I.TwitchIcon=Xc,I.TwitterIcon=Yc,I.UnLikeIcon=qs,I.UnlockIcon=Ks,I.UploadIcon=yt,I.Uploader=Sr,I.UserIcon=Bc,I.VideoIcon=Uc,I.WarningIcon=dt,I.WifiIcon=Xs,I.XIcon=Kc,I.YoutubeIcon=Qc,I.ZapIcon=js,I.ZoomInIcon=od,I.ZoomOutIcon=ws,I.deepMerge=Ne,I.defaultDesignSystemConfig=Mn,I.designSystemConfigList=Pc,I.designSystemConfigs=nt,I.getDesignSystemComponentProps=lt,I.goBack=dm,I.hideDrawer=$l,I.hideMessage=Kn,I.hideModal=qt,I.matchPath=_l,I.mergeDesignSystemComponentProps=Hn,I.navigate=sm,I.normalizeDesignSystemComponentProps=at,I.setSplashLoaded=lm,I.setSplashStarted=im,I.showDrawer=tm,I.showMessage=Yn,I.showModal=Nf,I.showToast=yo,I.useDesignSystem=ur,I.useDesignSystemComponentProps=wo,I.useDrawerStore=no,I.useHistory=Xt,I.useMergedDesignSystemComponentProps=pe,I.useMessageStore=wr,I.useModalStore=to,I.useRouterStore=Ge,I.useSplashStore=$r,I.useToast=ou,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
36
36
  //# sourceMappingURL=web.umd.js.map