PageSourceSearch

https://makerkit.dev/_next/static/immutable/chunks/2b7x9x58elgqe.js

js makerkit.dev collected 2026-09-25 18:44:45 UTC 79,672 bytes, 20 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,839785,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3l04lx31w60gs.js"].map(t=>e.l(t))).then(()=>t(126791)))},823263,e=>{e.v(t=>Promise.all(["static/immutable/chunks/07sfr6g3111i6.js","static/immutable/chunks/2nsut_ear98xh.js"].map(t=>e.l(t))).then(()=>t(767823)))},567084,e=>{"use strict";var t=e.i(791657);e.i(472e3);var r=e.i(843715),n=e.i(588429);e.s(["default",0,function(){return(0,t.jsx)(n.default,{className:"h-[50vh]",children:(0,t.jsx)(r.NewsletterSignupContainer,{onSignup:()=>Promise.resolve(),heading:"Join Our Community",description:"Be the first to know about new features and updates.",successMessage:"You're all set! Check your inbox for a confirmation email.",errorMessage:"Oops! Something went wrong. Please try again later.",className:"mx-auto max-w-md"})})}])},195440,e=>{"use strict";var t,r=e.i(791657),n=e.i(222188),i=e.i(164338),a=e.i(703573),l=e.i(201528);e.s(["bigint",0,function(e){return l._coercedBigint(a.ZodBigInt,e)},"boolean",0,function(e){return l._coercedBoolean(a.ZodBoolean,e)},"date",0,function(e){return l._coercedDate(a.ZodDate,e)},"number",0,function(e){return l._coercedNumber(a.ZodNumber,e)},"string",0,function(e){return l._coercedString(a.ZodString,e)}],946056);var s=e.i(946056),s=s,o=e.i(7205),d=e.i(571290),c=e.i(424942),u=e.i(84750),p=e.i(625138),m=e.i(457725),h=e.i(541048);let f=(0,u.createContext)(null);function x({schema:e,form:t,onSubmit:n,children:i,className:l}){let s=(0,u.useMemo)(()=>u.default.Children.toArray(i).filter(e=>u.default.isValidElement(e)&&e.type===g),[i]),o=(0,u.useMemo)(()=>u.default.Children.toArray(i).find(e=>u.default.isValidElement(e)&&e.type===y),[i]),d=(0,u.useMemo)(()=>u.default.Children.toArray(i).find(e=>u.default.isValidElement(e)&&e.type===j),[i]),c=function(e,t,r,n){let[i,l]=(0,u.useState)({currentStepIndex:0,direction:void 0}),s=(0,u.useCallback)(()=>{let n=r[i.currentStepIndex];if(e instanceof a.ZodObject){let r=e.shape[n];if(!r)return!0;let i=t.getValues(n)??{};
1return r.safeParse(i).success}throw Error(`Unsupported schema type: ${e.constructor.name}`)},[e,t,r,i.currentStepIndex]),o=(0,u.useCallback)(n=>{n.preventDefault();let o=s();if(!o){let n=r[i.currentStepIndex];if(e instanceof a.ZodObject){let r=e.shape[n];if(r){for(let e of Object.keys(r.shape).map(e=>`${n}.${e}`))t.trigger(e);return}}}o&&i.currentStepIndex<r.length-1&&l(e=>({...e,direction:"forward",currentStepIndex:e.currentStepIndex+1}))},[s,i.currentStepIndex,r,e,t]),d=(0,u.useCallback)(e=>{e.preventDefault(),i.currentStepIndex>0&&l(e=>({...e,direction:"backward",currentStepIndex:e.currentStepIndex-1}))},[i.currentStepIndex]),c=(0,u.useCallback)(e=>{e>=0&&e<r.length&&s()&&l(t=>({...t,direction:e>t.currentStepIndex?"forward":"backward",currentStepIndex:e}))},[s,r.length]),p=t.formState.isValid,h=t.formState.errors,f=(0,m.useMutation)({mutationFn:()=>t.handleSubmit(n)()});return(0,u.useMemo)(()=>({form:t,currentStep:r[i.currentStepIndex],currentStepIndex:i.currentStepIndex,totalSteps:r.length,isFirstStep:0===i.currentStepIndex,isLastStep:i.currentStepIndex===r.length-1,nextStep:o,prevStep:d,goToStep:c,direction:i.direction,isStepValid:s,isValid:p,errors:h,mutation:f}),[t,f,r,i.currentStepIndex,i.direction,o,d,c,s,p,h])}(e,t,s.map(e=>e.props.name),n);return(0,r.jsx)(f.Provider,{value:c,children:(0,r.jsxs)("form",{onSubmit:t.handleSubmit(n),className:(0,h.cn)(l,"flex size-full flex-col overflow-hidden"),children:[o,(0,r.jsx)("div",{className:"relative transition-transform duration-500",children:s.map((e,t)=>{let n=t===c.currentStepIndex;return(0,r.jsx)(k,{direction:c.direction,isActive:n,index:t,currentIndex:c.currentStepIndex,children:e},e.props.name)})}),d]})})}function b(e){let t=v();if(Array.isArray(e.children)){let[r]=e.children;return r(t)}return e.children(t)}let g=function({children:e,render:t,...r}){return(0,p.useRender)({render:t,defaultTagName:"div",props:{...r,children:e}})};function v(){let e=(0,u.useContext)(f);if(!e)throw Error("useMultiStepFormContext must be used within a MultiStepForm");return e}let y=function({children:e,render:t,...r}){return(0,p.useRender)({render:t,defaultTagName:"div",props:{...r,children:e}})},j=function({children:e,render:t,...r}){return(0,p.useRender)({render:t,defaultTagName:"div",props:{...r,children:e}})};function k({isActive:e,direction:t,children:n,index:i,currentIndex:a}){let[l,s]=(0,u.useState)(e),o=(0,u.useRef)(null);if((0,u.useEffect)(()=>{if(e)s(!0);else{let e=setTimeout(()=>s(!1),300);return()=>clearTimeout(e)}},[e]),(0,u.useEffect)(()=>{if(e&&o.current){let e=o.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e&&e.focus()}},[e]),!l)return null;let d=e?"opacity-100":"opacity-0 absolute",c=(0,h.cn)("translate-x-0",e?{}:{"-translate-x-full":"forward"===t||i<a,"translate-x-full":"backward"===t||i>a}),p=(0,h.cn)(" top-0 left-0 w-full h-full transition-all duration-300 ease-in-out animate-in fade-in zoom-in-95",d,c);return(0,r.jsx)("div",{ref:o,className:p,"aria-hidden":!e,children:n})}var w=e.i(361563),C=e.i(588429);let S=(t={account:a.object({username:a.string().min(3),email:a.string().email()}),profile:a.object({password:a.string().min(8),age:s.number().min(18)})},a.object(t));function N(){let e=(0,i.useForm)({resolver:(0,n.zodResolver)(S),defaultValues:{account:{username:"",email:""},profile:{password:""}},reValidateMode:"onBlur",mode:"onBlur"});return(0,r.jsxs)(x,{className:"space-y-10 rounded-xl p-8",schema:S,form:e,onSubmit:e=>{console.log("Form submitted:",e)},children:[(0,r.jsxs)(y,{className:"flex w-full flex-col justify-center space-y-6",children:[(0,r.jsx)("h2",{className:"text-xl font-bold",children:"Create your account"}),(0,r.jsx)(b,{children:({currentStepIndex:e})=>(0,r.jsx)(w.Stepper,{variant:"numbers",steps:["Account","Profile","Review"],currentStep:e})})]}),(0,r.jsx)(g,{name:"account",children:(0,r.jsx)(M,{})}),(0,r.jsx)(g,{name:"profile",children:(0,r.jsx)(R,{})}),(0,r.jsx)(g,{name:"review",children:(0,r.jsx)(P,{})})]})}function M(){let{form:e,nextStep:t,isStepValid:n}=v();return(0,r.jsx)(d.Form,{...e,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(d.FormField,{name:"account.username",render:({field:e})=>(0,r.jsxs)(d.FormItem,{children:[(0,r.jsx)(d.FormLabel,{children:"Username"}),(0,r.jsx)(d.FormControl,{children:(0,r.jsx)(c.Input,{...e})}),(0,r.jsx)(d.FormMessage,{})]})}),(0,r.jsx)(d.FormField,{name:"account.email",render:({field:e})=>(0,r.jsxs)(d.FormItem,{children:[(0,r.jsx)(d.FormLabel,{children:"Email"}),(0,r.jsx)(d.FormControl,{children:(0,r.jsx)(c.Input,{type:"email",...e})}),(0,r.jsx)(d.FormMessage,{})]})}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(o.Button,{onClick:t,disabled:!n(),children:"Next"})})]})})}function R(){let{form:e,nextStep:t,prevStep:n}=v();return(0,r.jsx)(d.Form,{...e,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(d.FormField,{name:"profile.password",render:({field:e})=>(0,r.jsxs)(d.FormItem,{children:[(0,r.jsx)(d.FormLabel,{children:"Password"}),(0,r.jsx)(d.FormControl,{children:(0,r.jsx)(c.Input,{type:"password",...e})}),(0,r.jsx)(d.FormMessage,{})]})}),(0,r.jsx)(d.FormField,{name:"profile.age",render:({field:e})=>(0,r.jsxs)(d.FormItem,{children:[(0,r.jsx)(d.FormLabel,{children:"Age"}),(0,r.jsx)(d.FormControl,{children:(0,r.jsx)(c.Input,{type:"number",...e})}),(0,r.jsx)(d.FormMessage,{})]})}),(0,r.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,r.jsx)(o.Button,{type:"button",variant:"outline",onClick:n,children:"Previous"}),(0,r.jsx)(o.Button,{onClick:t,children:"Next"})]})]})})}function P(){let{prevStep:e,form:t}=v(),n=t.getValues();return(0,r.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,r.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,r.jsx)("div",{children:"Great! Please review the values."}),(0,r.jsxs)("div",{className:"flex flex-col space-y-2 text-sm",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{children:"Username"}),": ",(0,r.jsx)("span",{children:n.account.username})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{children:"Email"}),": ",(0,r.jsx)("span",{children:n.account.email})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{children:"Age"}),": ",(0,r.jsx)("span",{children:String(n.profile.age)})]})]})]}),(0,r.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,r.jsx)(o.Button,{type:"button",variant:"outline",onClick:e,children:"Back"}),(0,r.jsx)(o.Button,{type:"submit",children:"Create Account"})]})]})}e.s(["default",0,function(){return(0,r.jsx)(C.default,{className:"h-[50vh]",children:(0,r.jsx)(N,{})})}],195440)},807036,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(71551),i=e.i(364450),a=e.i(532),l=e.i(920963),s=e.i(151996),o=e.i(450139),d=e.i(588429);let c=[{date:"2024-04-01",desktop:222,mobile:150},{date:"2024-04-02",desktop:97,mobile:180},{date:"2024-04-03",desktop:167,mobile:120},{date:"2024-04-04",desktop:242,mobile:260},{date:"2024-04-05",desktop:373,mobile:290},{date:"2024-04-06",desktop:301,mobile:340},{date:"2024-04-07",desktop:245,mobile:180},{date:"2024-04-08",desktop:409,mobile:320},{date:"2024-04-09",desktop:59,mobile:110},{date:"2024-04-10",desktop:261,mobile:190},{date:"2024-04-11",desktop:327,mobile:350},{date:"2024-04-12",desktop:292,mobile:210},{date:"2024-04-13",desktop:342,mobile:380},{date:"2024-04-14",desktop:137,mobile:220},{date:"2024-04-15",desktop:120,mobile:170},{date:"2024-04-16",desktop:138,mobile:190},{date:"2024-04-17",desktop:446,mobile:360},{date:"2024-04-18",desktop:364,mobile:410},{date:"2024-04-19",desktop:243,mobile:180},{date:"2024-04-20",desktop:89,mobile:150},{date:"2024-04-21",desktop:137,mobile:200},{date:"2024-04-22",desktop:224,mobile:170},{date:"2024-04-23",desktop:138,mobile:230},{date:"2024-04-24",desktop:387,mobile:290},{date:"2024-04-25",desktop:215,mobile:250},{date:"2024-04-26",desktop:75,mobile:130},{date:"2024-04-27",desktop:383,mobile:420},{date:"2024-04-28",desktop:122,mobile:180},{date:"2024-04-29",desktop:315,mobile:240},{date:"2024-04-30",desktop:454,mobile:380},{date:"2024-05-01",desktop:165,mobile:220},{date:"2024-05-02",desktop:293,mobile:310},{date:"2024-05-03",desktop:247,mobile:190},{date:"2024-05-04",desktop:385,mobile:420},{date:"2024-05-05",desktop:481,mobile:390},{date:"2024-05-06",desktop:498,mobile:520},{date:"2024-05-07",desktop:388,mobile:300},{date:"2024-05-08",desktop:149,mobile:210},{date:"2024-05-09",desktop:227,mobile:180},{date:"2024-05-10",desktop:293,mobile:330},{date:"2024-05-11",desktop:335,mobile:270},{date:"2024-05-12",desktop:197,mobile:240},{date:"2024-05-13",desktop:197,mobile:160},{date:"2024-05-14",desktop:448,mobile:490},{date:"2024-05-15",desktop:473,mobile:380},{date:"2024-05-16",desktop:338,mobile:400},{date:"2024-05-17",desktop:499,mobile:420},{date:"2024-05-18",desktop:315,mobile:350},{date:"2024-05-19",desktop:235,mobile:180},{date:"2024-05-20",desktop:177,mobile:230},{date:"2024-05-21",desktop:82,mobile:140},{date:"2024-05-22",desktop:81,mobile:120},{date:"2024-05-23",desktop:252,mobile:290},{date:"2024-05-24",desktop:294,mobile:220},{date:"2024-05-25",desktop:201,mobile:250},{date:"2024-05-26",desktop:213,mobile:170},{date:"2024-05-27",desktop:420,mobile:460},{date:"2024-05-28",desktop:233,mobile:190},{date:"2024-05-29",desktop:78,mobile:130},{date:"2024-05-30",desktop:340,mobile:280},{date:"2024-05-31",desktop:178,mobile:230},{date:"2024-06-01",desktop:178,mobile:200},{date:"2024-06-02",desktop:470,mobile:410},{date:"2024-06-03",desktop:103,mobile:160},{date:"2024-06-04",desktop:439,mobile:380},{date:"2024-06-05",desktop:88,mobile:140},{date:"2024-06-06",desktop:294,mobile:250},{date:"2024-06-07",desktop:323,mobile:370},{date:"2024-06-08",desktop:385,mobile:320},{date:"2024-06-09",desktop:438,mobile:480},{date:"2024-06-10",desktop:155,mobile:200},{date:"2024-06-11",desktop:92,mobile:150},{date:"2024-06-12",desktop:492,mobile:420},{date:"2024-06-13",desktop:81,mobile:130},{date:"2024-06-14",desktop:426,mobile:380},{date:"2024-06-15",desktop:307,mobile:350},{date:"2024-06-16",desktop:371,mobile:310},{date:"2024-06-17",desktop:475,mobile:520},{date:"2024-06-18",desktop:107,mobile:170},{date:"2024-06-19",desktop:341,mobile:290},{date:"2024-06-20",desktop:408,mobile:450},{date:"2024-06-21",desktop:169,mobile:210},{date:"2024-06-22",desktop:317,mobile:270},{date:"2024-06-23",desktop:480,mobile:530},{date:"2024-06-24",desktop:132,mobile:180}
1,{date:"2024-06-25",desktop:141,mobile:190},{date:"2024-06-26",desktop:434,mobile:380},{date:"2024-06-27",desktop:448,mobile:490},{date:"2024-06-28",desktop:149,mobile:200},{date:"2024-06-29",desktop:103,mobile:160},{date:"2024-06-30",desktop:446,mobile:400}],u={views:{label:"Page Views"},desktop:{label:"Desktop",color:"hsl(var(--chart-1))"},mobile:{label:"Mobile",color:"hsl(var(--chart-2))"}};e.s(["default",0,function(){let[e,p]=r.useState("desktop"),m=r.useMemo(()=>({desktop:c.reduce((e,t)=>e+t.desktop,0),mobile:c.reduce((e,t)=>e+t.mobile,0)}),[]);return(0,t.jsx)(d.default,{className:"h-[50vh]",children:(0,t.jsxs)(s.Card,{children:[(0,t.jsxs)(s.CardHeader,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,t.jsx)(s.CardTitle,{children:"Bar Chart - Interactive"}),(0,t.jsx)(s.CardDescription,{children:"Showing total visitors for the last 3 months"})]}),(0,t.jsx)("div",{className:"flex",children:["desktop","mobile"].map(r=>(0,t.jsxs)("button",{"data-active":e===r,className:"data-[active=true]:bg-muted/50 relative z-30 flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l sm:border-t-0 sm:border-l sm:px-8 sm:py-6",onClick:()=>p(r),children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:u[r].label}),(0,t.jsx)("span",{className:"text-lg leading-none font-bold sm:text-3xl",children:m[r].toLocaleString()})]},r))})]}),(0,t.jsx)(s.CardContent,{className:"px-2 sm:p-6",children:(0,t.jsx)(o.ChartContainer,{config:u,className:"aspect-auto h-[250px] w-full",children:(0,t.jsxs)(i.BarChart,{accessibilityLayer:!0,data:c,margin:{left:12,right:12},children:[(0,t.jsx)(a.CartesianGrid,{vertical:!1}),(0,t.jsx)(l.XAxis,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),(0,t.jsx)(o.ChartTooltip,{content:e=>(0,t.jsx)(o.ChartTooltipContent,{...e,className:"w-[150px]",nameKey:"views",labelFormatter:e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})}),(0,t.jsx)(n.Bar,{dataKey:e,fill:`var(--color-${e})`})]})})})]})})}])},370517,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(190415),i=e.i(7205),a=e.i(831894),l=e.i(588429);e.s(["default",0,function(){let[e,s]=r.useState(!1);return(0,t.jsx)(l.default,{children:(0,t.jsxs)(a.Collapsible,{open:e,onOpenChange:s,className:"w-[350px] space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between space-x-4 px-4",children:[(0,t.jsx)("h4",{className:"text-sm font-semibold",children:"@peduarte starred 3 repositories"}),(0,t.jsxs)(a.CollapsibleTrigger,{render:(0,t.jsx)(i.Button,{variant:"ghost",size:"sm"}),children:[(0,t.jsx)(n.ChevronsUpDown,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle"})]})]}),(0,t.jsx)("div",{className:"rounded-md border px-4 py-2 font-mono text-sm shadow-sm",children:"@radix-ui/primitives"}),(0,t.jsxs)(a.CollapsibleContent,{className:"space-y-2",children:[(0,t.jsx)("div",{className:"rounded-md border px-4 py-2 font-mono text-sm shadow-sm",children:"@radix-ui/colors"}),(0,t.jsx)("div",{className:"rounded-md border px-4 py-2 font-mono text-sm shadow-sm",children:"@stitches/react"})]})]})})}])},936162,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(20311),i=e.i(761922);let a=(0,e.i(32655).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);var l=e.i(541782),s=e.i(203295),s=s,o=e.i(7205),d=e.i(963633),c=e.i(236610),u=e.i(424942),p=e.i(836044),m=e.i(588429);let h=[{id:"m5gr84i9",amount:316,status:"success",email:"[email protected]"},{id:"3u1reuv4",amount:242,status:"success",email:"[email protected]"},{id:"derv1ws0",amount:837,status:"processing",email:"[email protected]"},{id:"5kma53ae",amount:874,status:"success",email:"[email protected]"},{id:"bhqecj4p",amount:721,status:"failed",email:"[email protected]"}],f=[{id:"select",header:({table:e})=>
1(0,t.jsx)(d.Checkbox,{checked:e.getIsAllPageRowsSelected(),indeterminate:e.getIsSomePageRowsSelected(),onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>(0,t.jsx)(d.Checkbox,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"status",header:"Status",cell:({row:e})=>(0,t.jsx)("div",{className:"capitalize",children:e.getValue("status")})},{accessorKey:"email",header:({column:e})=>(0,t.jsxs)(o.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),children:["Email",(0,t.jsx)(a,{className:"h-4"})]}),cell:({row:e})=>(0,t.jsx)("div",{className:"lowercase",children:e.getValue("email")})},{accessorKey:"amount",header:()=>(0,t.jsx)("div",{className:"text-right",children:"Amount"}),cell:({row:e})=>{let r=parseFloat(e.getValue("amount")),n=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(r);return(0,t.jsx)("div",{className:"text-right font-medium",children:n})}},{id:"actions",enableHiding:!1,cell:({row:e})=>{let r=e.original;return(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsxs)(c.DropdownMenuTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",className:"h-8 w-8 p-0"}),children:[(0,t.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,t.jsx)(s.default,{className:"h-4"})]}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",children:[(0,t.jsx)(c.DropdownMenuLabel,{children:"Actions"}),(0,t.jsx)(c.DropdownMenuItem,{onClick:()=>navigator.clipboard.writeText(r.id),children:"Copy payment ID"}),(0,t.jsx)(c.DropdownMenuSeparator,{}),(0,t.jsx)(c.DropdownMenuItem,{children:"View customer"}),(0,t.jsx)(c.DropdownMenuItem,{children:"View payment details"})]})]})}}];e.s(["columns",0,f,"default",0,function(){let[e,a]=r.useState([]),[s,d]=r.useState([]),[x,b]=r.useState({}),[g,v]=r.useState({}),y=(0,n.useReactTable)({data:h,columns:f,onSortingChange:a,onColumnFiltersChange:d,getCoreRowModel:(0,i.getCoreRowModel)(),getPaginationRowModel:(0,i.getPaginationRowModel)(),getSortedRowModel:(0,i.getSortedRowModel)(),getFilteredRowModel:(0,i.getFilteredRowModel)(),onColumnVisibilityChange:b,onRowSelectionChange:v,state:{sorting:e,columnFilters:s,columnVisibility:x,rowSelection:g}});return(0,t.jsx)(m.default,{className:"h-[50vh]",children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"flex items-center py-4",children:[(0,t.jsx)(u.Input,{placeholder:"Filter emails...",value:y.getColumn("email")?.getFilterValue()??"",onChange:e=>y.getColumn("email")?.setFilterValue(e.target.value),className:"max-w-sm"}),(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsxs)(c.DropdownMenuTrigger,{render:(0,t.jsx)(o.Button,{variant:"outline",className:"ml-auto"}),children:["Columns ",(0,t.jsx)(l.ChevronDown,{className:"h-4"})]}),(0,t.jsx)(c.DropdownMenuContent,{align:"end",children:y.getAllColumns().filter(e=>e.getCanHide()).map(e=>(0,t.jsx)(c.DropdownMenuCheckboxItem,{className:"capitalize",checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(!!t),children:e.id},e.id))})]})]}),(0,t.jsx)("div",{className:"rounded-md border",children:(0,t.jsxs)(p.Table,{children:[(0,t.jsx)(p.TableHeader,{children:y.getHeaderGroups().map(e=>(0,t.jsx)(p.TableRow,{children:e.headers.map(e=>(0,t.jsx)(p.TableHead,{children:e.isPlaceholder?null:(0,n.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,t.jsx)(p.TableBody,{children:y.getRowModel().rows?.length?y.getRowModel().rows.map(e=>(0,t.jsx)(p.TableRow,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(e=>(0,t.jsx)(p.TableCell,{children:(0,n.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,t.jsx)(p.TableRow,{children:(0,t.jsx)(p.TableCell,{colSpan:f.length,className:"h-24 text-center",children:"No results."})})})]})}),(0,t.jsxs)("div",{className:"flex items-center justify-end space-x-2 py-4",children:[(0,t.jsxs)("div",{className:"text-muted-foreground flex-1 text-sm",children:[y.getFilteredSelectedRowModel().rows.length," of"," ",y.getFilteredRowModel().rows.length," row(s) selected."]}),(0,t.jsxs)("div",{className:"space-x-2",children:[(0,t.jsx)(o.Button,{variant:"outline",size:"sm",onClick:()=>y.previousPage(),disabled:!y.getCanPreviousPage(),children:"Previous"}),(0,t.jsx)(o.Button,{variant:"outline",size:"sm",onClick:()=>y.nextPage(),disabled:!y.getCanNextPage(),children:"Next"})]})]})]})})}],936162)},409535,e=>{"use strict";var t=e.i(791657),r=e.i(164338),n=e.i(7205),i=e.i(571290),a=e.i(424942),l=e.i(275879),s=e.i(588429);
1e.s(["default",0,function(){let e=(0,r.useForm)({defaultValues:{name:"John Doe",email:"[email protected]",message:"Hello, world!"}});return(0,t.jsx)(s.default,{className:"h-[50vh]",children:(0,t.jsx)(i.Form,{...e,children:(0,t.jsxs)("form",{className:"flex flex-col space-y-4",onSubmit:e.handleSubmit(e=>{console.log(e)}),children:[(0,t.jsx)(i.FormField,{name:"name",render:({field:e})=>(0,t.jsxs)(i.FormItem,{children:[(0,t.jsx)(i.FormLabel,{children:"Name"}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(a.Input,{...e,type:"text",placeholder:"Enter your name"})}),(0,t.jsx)(i.FormDescription,{children:"Please enter your name."}),(0,t.jsx)(i.FormMessage,{})]})}),(0,t.jsx)(i.FormField,{name:"email",render:({field:e})=>(0,t.jsxs)(i.FormItem,{children:[(0,t.jsx)(i.FormLabel,{children:"Email"}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(a.Input,{...e,type:"email",placeholder:"Enter your email"})}),(0,t.jsx)(i.FormDescription,{children:"Please enter your email."}),(0,t.jsx)(i.FormMessage,{})]})}),(0,t.jsx)(i.FormField,{name:"message",render:({field:e})=>(0,t.jsxs)(i.FormItem,{children:[(0,t.jsx)(i.FormLabel,{children:"Message"}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(l.Textarea,{...e,placeholder:"Enter your message"})}),(0,t.jsx)(i.FormDescription,{children:"Please enter your message."}),(0,t.jsx)(i.FormMessage,{})]})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(n.Button,{type:"submit",children:"Submit"})})]})})})}])},908660,e=>{"use strict";var t=e.i(791657),r=e.i(7205),n=e.i(424942),i=e.i(558278),a=e.i(383778),l=e.i(588429);e.s(["default",0,function(){return(0,t.jsx)(l.default,{children:(0,t.jsx)("div",{className:"flex flex-col items-center justify-center gap-4",children:(0,t.jsxs)(a.Popover,{children:[(0,t.jsx)(a.PopoverTrigger,{render:(0,t.jsx)(r.Button,{variant:"outline"}),children:"Open popover"}),(0,t.jsx)(a.PopoverContent,{className:"w-80",children:(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h4",{className:"leading-none font-medium",children:"Dimensions"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Set the dimensions for the layer."})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center gap-4",children:[(0,t.jsx)(i.Label,{htmlFor:"width",children:"Width"}),(0,t.jsx)(n.Input,{id:"width",defaultValue:"100%",className:"col-span-2 h-8"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center gap-4",children:[(0,t.jsx)(i.Label,{htmlFor:"maxWidth",children:"Max. width"}),(0,t.jsx)(n.Input,{id:"maxWidth",defaultValue:"300px",className:"col-span-2 h-8"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center gap-4",children:[(0,t.jsx)(i.Label,{htmlFor:"height",children:"Height"}),(0,t.jsx)(n.Input,{id:"height",defaultValue:"25px",className:"col-span-2 h-8"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center gap-4",children:[(0,t.jsx)(i.Label,{htmlFor:"maxHeight",children:"Max. height"}),(0,t.jsx)(n.Input,{id:"maxHeight",defaultValue:"none",className:"col-span-2 h-8"})]})]})]})})]})})})}])},588429,e=>{"use strict";var t=e.i(791657),r=e.i(355953),n=e.i(541048),i=e.i(991203);e.s(["default",0,function(e){return(0,t.jsxs)("div",{className:"my-8 flex flex-1 flex-col",children:[(0,t.jsx)(r.If,{condition:e.name,children:(0,t.jsx)("span",{className:"text-muted-foreground my-2 text-xs uppercase",children:e.name})}),(0,t.jsx)(i.BlocksIFrame,{code:"",hideDeviceSwitcher:!0,previewClassName:"flex flex-col flex-1",className:(0,n.cn)("my-0 flex h-full min-h-64 flex-1 flex-col py-0",e.className),children:(0,t.jsx)("div",{className:(0,n.cn)("flex h-full flex-1 flex-col px-4",e.innerClassName),children:e.children})})]})}])},527663,e=>{"use strict";var t=e.i(84750),r=e.i(915840),n=e.i(816686);e.s(["useAriaLabelledBy",0,function(e,i,a,l=!0,s){let[o,d]=t.useState(),c=(0,n.useBaseUiId)(s?`${s}-label`:void 0),u=e??i??o;return(0,r.useIsoLayoutEffect)(()=>{let t=e||i||!l?void 0:function(e,t){let r=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let r=e.id;if(r){let t=e.nextElementSibling;if(t&&t.htmlFor===r)return t}let n=e.labels;return n&&n[0]}(e);if(r)return!r.id&&t&&(r.id=t),r.id||void 0}(a.current,c);o!==t&&d(t)}),u}])},457725,e=>{"use strict";var t=e.i(84750),r=e.i(403351),n=e.i(647854),i=e.i(610934),a=e.i(700519),l=class extends i.Subscribable{#e;#t=void 0;#r;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.hashKey)(t.mutationKey)!==(0,a.hashKey)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#a()}mutate(e,t){return this.#n=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#i(){let e=this.#r?.state??(0,r.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#a(e){n.notifyManager.batch(()=>
1{if(this.#n&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},s=e.i(838181);e.s(["useMutation",0,function(e,r){let i=(0,s.useQueryClient)(r),[o]=t.useState(()=>new l(i,e));t.useEffect(()=>{o.setOptions(e)},[o,e]);let d=t.useSyncExternalStore(t.useCallback(e=>o.subscribe(n.notifyManager.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=t.useCallback((e,t)=>{o.mutate(e,t).catch(a.noop)},[o]);if(d.error&&(0,a.shouldThrowError)(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:c,mutateAsync:d.mutate}}],457725)},190415,e=>{"use strict";let t=(0,e.i(32655).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],190415)},503581,e=>{"use strict";let t=(0,e.i(32655).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],503581)},4697,e=>{"use strict";let t=(0,e.i(32655).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["MinusIcon",0,t],4697)},971824,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return d},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class l{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return s?new s:new l}function d(e){return s?s.bind(e):l.bind(e)}function c(){return s?s.snapshot():function(e,...t){return e(...t)}}},48791,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(971824).createAsyncLocalStorage)()},418575,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(48791)},529920,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},637884,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(379936);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},658548,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(791657),i=e.r(511387),a=e.r(418575),l=e.r(529920),s=e.r(135052);function o({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let d=(0,s.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},824627,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>r,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function l(e){try{o(n.next(e))}catch(e){a(e)}}function s(e){try{o(n.throw(e))}catch(e){a(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(l,s)}o((n=n.apply(e,t||[])).next())})},"__extends",0,function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},"__read",0,function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return l},"__rest",0,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},"__spreadArray",0,function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},"__values",0,function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}])},851155,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(541782),i=e.i(587564),a=e.i(503581),l=e.i(7205),s=e.i(355953);e.i(831597);var o=e.i(746632),d=e.i(541048);function c({value:e,title:n,children:i}){let[a,s]=(0,r.useState)(!1),d=async()=>{try{await navigator.clipboard.writeText(e),s(!0),setTimeout(()=>s(!1),2e3),o.toast.success("Copied to clipboard")}catch(e){console.error("Failed to copy text: ",e)}};return i?(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",onClick:d,title:n,children:i}):(0,t.jsx)(l.Button,{variant:"ghost",size:"sm",onClick:d,className:"h-7 px-2 text-xs",title:n,children:a?"Copied!":"Copy"})}e.s(["ExpandableCodeBlock",0,function({title:e,code:o,totalLines:u,shouldTruncate:p,fullTree:m}){let[h,f]=(0,r.useState)(!1),x=JSON.parse(m),b=()=>{f(!h)},g=e=>{if("string"==typeof e)return e;if(e&&"object"==typeof e&&"Tag"===e.$$mdtype){let{name:t,attributes:n={},children:i=[]}=e,a={...n};n.style&&"object"==typeof n.style&&(a.style=n.style);let{class:l,...s}=a;return r.default.createElement(t,{...s,key:Math.random(),className:l},...i.map(e=>g(e)))}return e};return(0,t.jsxs)("div",{className:"shiki-container group/shiki relative",children:[(0,t.jsxs)("div",{className:"flex w-full items-center justify-between border-b px-4 py-1.5",children:[(0,t.jsx)(s.If,{condition:e,fallback:(0,t.jsx)("span",{}),children:(0,t.jsx)("p",{className:"shiki-title flex items-center gap-x-1",children:(0,t.jsx)("span",{className:"inline-flex text-xs",children:e})})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[p&&(0,t.jsx)(l.Button,{variant:"ghost",size:"sm",onClick:b,className:"h-7 px-2 text-xs",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.ChevronUp,{className:"mr-1 h-3 w-3"}),"Show Less"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.ChevronDown,{className:"mr-1 h-3 w-3"}),"View All (",u," lines)"]})}),(0,t.jsx)(c,{value:o,title:"Copy code to clipboard",children:(0,t.jsx)(a.Copy,{className:"h-3 w-3"})})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("pre",{className:(0,d.cn)("shiki-code overflow-x-auto",!h&&p&&"max-h-96 overflow-y-hidden"),children:g(x)}),!h&&p&&(0,t.jsx)("div",{className:"from-background via-background/80 pointer-events-none absolute right-0 bottom-0 left-0 h-16 bg-gradient-to-t to-transparent"})]}),!h&&p&&(0,t.jsx)("div",{className:"absolute bottom-2 left-1/2 z-1 -translate-x-1/2 transform",children:(0,t.jsxs)(l.Button,{variant:"secondary",size:"sm",onClick:b,className:"h-8 px-3 text-xs shadow-md",children:[(0,t.jsx)(n.ChevronDown,{className:"mr-1 h-3 w-3"}),"View All (",u," lines)"]})})]})}])},201354,e=>{"use strict";var t=e.i(791657),r=e.i(84750);e.s(["ImageLightbox",0,function({children:e,src:n,alt:i}){let[a,l]=(0,r.useState)(!1),s=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=s.current;a&&e&&!e.open&&e.showModal()},[a]);let o=(0,r.useCallback)(()=>{s.current?.close(),l(!1)},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{role:"button",tabIndex:0,onClick:()=>l(!0),onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l(!0))},className:"group/lightbox relative inline-block","aria-haspopup":"dialog",style:{cursor:"zoom-in"},children:[e,(0,t.jsxs)("span",{className:"pointer-events-none absolute right-2 bottom-2 flex items-center gap-1 rounded-md bg-black/70 px-2 py-1 text-xs text-white opacity-0 transition-opacity group-hover/lightbox:opacity-100",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-3.5 w-3.5","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M13.28 7.78l3.22-3.22v2.69a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.69l-3.22 3.22a.75.75 0 001.06 1.06zM2 17.25v-4.5a.75.75 0 011.5 0v2.69l3.22-3.22a.75.75 0 011.06 1.06L4.56 16.5h2.69a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z"})}),"Click to expand"]})]}),a&&(0,t.jsx)("dialog",{ref:s,onClick:o,onClose:()=>l(!1),"aria-label":i?`Enlarged image: ${i}`:"Enlarged image",className:"backdrop:bg-black/80",style:{position:"fixed",inset:0,width:"100vw",height:"100vh",maxWidth:"100vw",maxHeight:"100vh",margin:0,padding:0,border:"none",zIndex:50,cursor:"zoom-out",backgroundColor:"rgba(0,0,0,0.9)"},children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:[(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),o()},"aria-label":"Close",style:{position:"fixed",top:"1rem",right:"1rem",zIndex:60,width:"2.5rem",height:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"9999px",backgroundColor:"rgba(255,255,255,0.9)",color:"#000",border:"none",cursor:"pointer",boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})}),(0,t.jsx)("img",{src:n,alt:i??"",style:{maxHeight:"85vh",maxWidth:"90vw",objectFit:"contain"},onClick:e=>e.stopPropagation()})]})})]})}])},2145,e=>{"use strict";var t,r=e.i(791657),n=e.i(84750),i=e.i(7205),a=e.i(308370),l=e.i(482994),s=e.i(687123);let o="cookie_consent_status";var d=((t=d||{}).Accepted="accepted",t.Rejected="rejected",t.Unknown="unknown",t);function c(){let e=(!function(){;}(),localStorage.getItem(o)??"unknown"),[t,r]=(0,n.useState)(e),i=(0,n.useCallback)(()=>{let e="accepted";r(e),u(e)},[]),a=(0,n.useCallback)(()=>{let e="rejected";r(e),u(e)},[]),l=(0,n.useCallback)(()=>{let e="unknown";r(e),u(e)},[]);return(0,n.useMemo)(()=>({clear:l,status:t,accept:i,reject:a}),[l,t,i,a])}function u(e){localStorage.setItem(o,e)}e.s(["CookieBanner",0,function(){let{status:e,accept:t,reject:n}=c();return"unknown"!==e?null:(0,r.jsx)(a.Dialog,{open:!0,modal:!1,children:(0,r.jsx)(a.DialogContent,{className:"dark:shadow-primary-500/40 bg-background animate-in fade-in zoom-in-95 slide-in-from-bottom-16 fill-mode-both fixed bottom-0 w-full max-w-lg border p-6 shadow-2xl delay-1000 duration-1000 lg:bottom-[2rem] lg:left-[2rem] lg:h-48 lg:rounded-lg",children:(0,r.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,r.jsx)("div",{children:(0,r.jsx)(l.Heading,{level:3,children:(0,r.jsx)(s.Trans,{i18nKey:"cookieBanner.title"})})}),(0,r.jsx)("div",{className:"text-gray-500 dark:text-gray-400",children:(0,r.jsx)(s.Trans,{i18nKey:"cookieBanner.description"})}),(0,r.jsxs)("div",{className:"flex justify-end space-x-2.5",children:[(0,r.jsx)(i.Button,{variant:"ghost",onClick:n,children:(0,r.jsx)(s.Trans,{i18nKey:"cookieBanner.reject"})}),(0,r.jsx)(i.Button,{autoFocus:!0,onClick:t,children:(0,r.jsx)(s.Trans,{i18nKey:"cookieBanner.accept"})})]})]})})})},"useCookieConsent",0,c])},108970,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(251053),i=e.i(503581),a=e.i(541048);e.i(831597);var l=e.i(746632);e.s(["CopyToClipboard",0,function({children:e,className:s,value:o,tooltipText:d="Copy to clipboard",successMessage:c="Copied to clipboard",errorMessage:u="Failed to copy to clipboard"}){let[p,m]=(0,r.useState)(!1),h=(0,r.useCallback)(t=>{t.stopPropagation();let r=e?.toString()||"";navigator.clipboard.writeText(o??r).then(()=>{m(!0),l.toast.success(c),setTimeout(()=>m(!1),2e3)}
1).catch(e=>{console.error("Failed to copy text: ",e),l.toast.error(u)})},[e,o,c,u]);return void 0===o?e:(0,t.jsxs)("button",{title:d,onClick:h,className:(0,a.cn)("group group/button -mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 transition-colors hover:underline",s),children:[e,(0,t.jsx)("span",{className:"text-muted-foreground transition-opacity",children:p?(0,t.jsx)(n.Check,{className:"h-3.5 w-3.5 text-green-500"}):(0,t.jsx)(i.Copy,{className:"h-3.5 w-3.5"})})]})}])},252107,e=>{"use strict";var t=e.i(791657),r=e.i(84750);e.s(["LazyRender",0,function({children:e,threshold:n,rootMargin:i,onVisible:a,className:l}){let s=(0,r.useMemo)(()=>(0,r.createRef)(),[]),[o,d]=(0,r.useState)(!1);return(0,r.useLayoutEffect)(()=>{if(!s.current)return;let e=new IntersectionObserver((e,t)=>{e.forEach(e=>{(e.isIntersecting||e.intersectionRatio>0)&&(d(!0),t.disconnect(),a&&a())})},{rootMargin:i??"0px",threshold:n??1});return e.observe(s.current),()=>{e.disconnect()}},[n,i,s,a]),(0,t.jsx)("div",{className:l,ref:s,children:o?e:null})}])},361563,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(294237),i=e.i(541048),a=e.i(355953),l=e.i(687123);let s=(0,n.cva)("",{variants:{variant:{default:"flex h-[2.5px] w-full flex-col transition-all duration-500",numbers:"flex h-9 w-9 items-center justify-center rounded-full border text-sm font-bold",dots:"bg-muted h-2.5 w-2.5 rounded-full transition-colors"},selected:{true:"",false:"hidden sm:flex"},complete:{true:"",false:""}},compoundVariants:[{variant:"default",selected:!1,className:"text-muted-foreground"},{variant:"default",selected:!0,className:"bg-primary font-medium"},{variant:"default",selected:!1,complete:!1,className:"bg-muted"},{variant:"default",selected:!1,complete:!0,className:"bg-primary"},{variant:"numbers",selected:!1,complete:!0,className:"border-primary text-primary"},{variant:"numbers",selected:!0,className:"border-primary bg-primary text-primary-foreground"},{variant:"numbers",selected:!1,className:"text-muted-foreground"},{variant:"dots",selected:!0,complete:!0,className:"bg-primary"},{variant:"dots",selected:!1,complete:!0,className:"bg-primary"},{variant:"dots",selected:!0,complete:!1,className:"bg-primary"},{variant:"dots",selected:!1,complete:!1,className:"bg-muted"}],defaultVariants:{variant:"default",selected:!1}});function o({steps:e,currentStep:n,variant:c}){return e.map((e,o)=>{var u;let p=n===o,m=n>o,h=s({selected:p,variant:c,complete:m}),f="numbers"===c,x=(0,i.cn)({"px-1.5 py-2 text-xs":!f,hidden:"dots"===c}),{label:b,number:g}=(u=e,{number:(o+1).toString(),label:(0,t.jsx)(l.Trans,{i18nKey:u,defaults:u})});return(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("div",{"aria-selected":p,className:h,children:(0,t.jsxs)("span",{className:x,children:[g,(0,t.jsxs)(a.If,{condition:!f,children:[". ",b]})]})}),(0,t.jsx)(a.If,{condition:f,children:(0,t.jsx)(d,{selected:p,complete:m,children:b})})]},o)})}function d({selected:e,complete:r,children:n}){let a=(0,i.cn)("min-w-max text-sm font-medium",{"text-muted-foreground hidden sm:flex":!e,"text-secondary-foreground":e||r,"font-medium":e}),l=(0,i.cn)("flex h-9 flex-1 items-center justify-center last:flex-[0_0_0] group flex w-full items-center space-x-3 px-3");return(0,t.jsxs)("div",{className:l,children:[(0,t.jsx)("span",{className:a,children:n}),(0,t.jsx)("div",{className:"divider h-[1px] w-full bg-gray-200 transition-colors dark:bg-border hidden group-last:hidden sm:flex"})]})}e.s(["Stepper",0,function(e){let r=e.variant??"default";if(e.steps.length<2)return null;let n=(0,i.cn)("w-full",{"flex justify-between":"numbers"===r,"flex space-x-0.5":"default"===r,"flex space-x-2.5 self-center":"dots"===r});return(0,t.jsx)("div",{className:n,children:(0,t.jsx)(o,{steps:e.steps,currentStep:e.currentStep,variant:r})})}])},748232,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=e.i(541048),i=e.i(355953),a=e.i(252107),l=e.i(843462);e.s(["Video",0,function({src:e,type:s,width:o,className:d,poster:c}){let[u,p]=(0,r.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.If,{condition:!u&&!c,children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-center space-y-4 rounded-2xl py-48",children:[(0,t.jsx)(l.Spinner,{}),(0,t.jsx)("p",{children:"Loading video..."})]})}),(0,t.jsx)(a.LazyRender,{threshold:.25,rootMargin:"500px 0px",children:(0,t.jsx)("video",{poster:c,className:(0,n.cn)(d,u?"":"hidden"),width:o??"100%",height:"auto",playsInl
1ine:!0,autoPlay:!0,muted:!0,loop:!0,onLoadedData:()=>p(!0),children:(0,t.jsx)("source",{src:e,type:s??"video/mp4"})})})]})}])},963633,e=>{"use strict";var t,r=e.i(791657);e.s([],476025),e.i(476025);var n=e.i(84750),i=e.i(272557),a=e.i(78945),l=e.i(915840),s=e.i(512733),o=e.i(870190),d=e.i(282167),c=e.i(479995);let u=((t={}).checked="data-checked",t.unchecked="data-unchecked",t.indeterminate="data-indeterminate",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t);var p=e.i(414800);function m(e){return n.useMemo(()=>({checked:t=>e.indeterminate?{}:t?{[u.checked]:""}:{[u.unchecked]:""},...p.fieldValidityMapping}),[e.indeterminate])}var h=e.i(600157),f=e.i(816686),x=e.i(101130),b=e.i(264776),g=e.i(542825),v=e.i(290524),y=e.i(736982),j=e.i(31602),k=e.i(279076),w=e.i(527663),C=e.i(70493),S=e.i(605801);let N=n.createContext(void 0);var M=e.i(846372),R=e.i(869941),P=e.i(815361);let E=n.forwardRef(function(e,t){let{checked:u,className:p,defaultChecked:S=!1,"aria-labelledby":E,disabled:I=!1,form:F,id:O,indeterminate:T=!1,inputRef:B,name:D,onCheckedChange:_,parent:A=!1,readOnly:L=!1,render:V,required:z=!1,uncheckedValue:K,value:H,nativeButton:W=!1,style:U,...$}=e,{clearErrors:q}=(0,j.useFormContext)(),{disabled:G,name:J,setDirty:Z,setFilled:Y,setFocused:X,setTouched:Q,state:ee,validationMode:et,validityData:er,validation:en}=(0,g.useFieldRootContext)(),ei=(0,y.useFieldItemContext)(),{labelId:ea,controlId:el,registerControlId:es,getDescriptionProps:eo}=(0,k.useLabelableContext)(),ed=(0,C.useCheckboxGroupContext)(),ec=ed?.parent,eu=ec&&ed.allValues,ep=G||ei.disabled||ed?.disabled||I,em=J??D,eh=H??em,ef=(0,f.useBaseUiId)(),ex=(0,f.useBaseUiId)(),eb=el;eu?eb=A?ex:`${ec.id}-${eh}`:O&&(eb=O);let eg={};eu&&(A?eg=ed.parent.getParentProps():eh&&(eg=ed.parent.getChildProps(eh)));let{checked:ev=u,indeterminate:ey=T,onCheckedChange:ej,...ek}=eg,ew=ed?.value,eC=ed?.setValue,eS=ed?.defaultValue,eN=n.useRef(null),eM=(0,o.useRefWithInit)(()=>Symbol("checkbox-control")),eR=n.useRef(!1),{getButtonProps:eP,buttonRef:eE}=(0,b.useButton)({disabled:ep,native:W}),eI=ed?.validation??en,[eF,eO]=(0,a.useControlled)({controlled:eh&&ew&&!A?ew.includes(eh):ev,default:eh&&eS&&!A?eS.includes(eh):S,name:"Checkbox",state:"checked"}),eT=eu?!!ev:eF,eB=eu&&ey||T;(0,l.useIsoLayoutEffect)(()=>{es!==i.NOOP&&(eR.current=!0,es(eM.current,eb))},[eb,es,eM]),n.useEffect(()=>{let e=eM.current;return()=>{eR.current&&es!==i.NOOP&&(eR.current=!1,es(e,void 0))}},[es,eM]),(0,v.useRegisterFieldControl)(eN,ef,eF,void 0,!ed&&!ep,D);let eD=n.useRef(null),e_=(0,s.useMergedRefs)(B,eD,eI.inputRef,eI.registerInput),eA=(0,w.useAriaLabelledBy)(E,ea,eD,!W,eb??void 0);(0,l.useIsoLayoutEffect)(()=>{eD.current&&(eD.current.indeterminate=eB,eF&&Y(!0))},[eF,eB,Y]),(0,P.useValueChanged)(eF,()=>{ed||(q(em),Y(eF),Z(eF!==er.initialValue),eI.change(eF))});let eL=(0,x.mergeProps)({checked:eF,disabled:ep,form:F,name:A?void 0:em,id:W?void 0:eb??void 0,required:z,ref:e_,style:em?d.visuallyHiddenInput:d.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(L)return void e.preventDefault();let t=e.currentTarget.checked,r=(0,M.createChangeEventDetails)(R.REASONS.none,e.nativeEvent);_?.(t,r),r.isCanceled||(ej?.(t,r),!r.isCanceled&&(eO(t),eh&&ew&&eC&&!A&&!eu&&eC(t?[...ew,eh]:ew.filter(e=>e!==eh),r)))},onFocus(){eN.current?.focus()}},void 0!==H?{value:(ed?eF&&H:H)||""}:i.EMPTY_OBJECT,eo,e=>eI.getValidationProps(ep,e));n.useEffect(()=>{if(!ec||!eh)return;let e=ec.disabledStatesRef.current;return e.set(eh,ep),()=>{e.delete(eh)}},[ec,ep,eh]);let eV=n.useMemo(()=>({...ee,checked:eT,disabled:ep,readOnly:L,required:z,indeterminate:eB}),[ee,eT,ep,L,z,eB]),ez=m(eV),eK=(0,h.useRenderElement)("span",e,{state:eV,ref:[eE,eN,t,ed?.registerControlRef],props:[{id:W?eb??void 0:ef,role:"checkbox","aria-checked":eB?"mixed":eT,"aria-readonly":L||void 0,"aria-required":z||void 0,"aria-labelledby":eA,"data-
1parent":A?"":void 0,onFocus(){ep||X(!0)},onBlur(){let e=eD.current;e&&(Q(!0),X(!1),"onBlur"===et&&eI.commit(ed?ew:e.checked))},onKeyDown(e){if("Enter"!==e.key||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=eD.current?.form??null,r=e.currentTarget,n=e.nativeEvent,i=e.preventDefault,a=n.preventDefault,l=!1;e.preventDefault=()=>{l=!0,i.call(e)},n.preventDefault=()=>{l=!0,a.call(n)},a.call(n),(0,c.ownerWindow)(r).queueMicrotask(()=>{e.preventDefault=i,n.preventDefault=a,l||(function(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(("BUTTON"===e||"INPUT"===e)&&"submit"===t.type)return t}return null})(t)?.click()})},onClick(e){if(L||ep)return;e.preventDefault();let t=eD.current;t&&t.dispatchEvent(new((0,c.ownerWindow)(t)).PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},$,ek,eP,eo,e=>eI.getValidationProps(ep,e)],stateAttributesMapping:ez});return(0,r.jsxs)(N.Provider,{value:eV,children:[eK,!eF&&!ed&&em&&!A&&void 0!==K&&(0,r.jsx)("input",{type:"hidden",form:F,name:em,value:K,disabled:ep}),(0,r.jsx)("input",{...eL,suppressHydrationWarning:!0})]})});var I=e.i(299914),F=e.i(451090),O=e.i(862119);let T=n.forwardRef(function(e,t){let{render:r,className:i,style:a,keepMounted:l=!1,...s}=e,o=function(){let e=n.useContext(N);if(void 0===e)throw Error((0,S.default)(14));return e}(),d=o.checked||o.indeterminate,{mounted:c,transitionStatus:u,setMounted:f}=(0,F.useTransitionStatus)(d),x=n.useRef(null),b={...o,transitionStatus:u};(0,I.useOpenChangeComplete)({open:d,ref:x,onComplete(){d||f(!1)}});let g={...m(o),...O.transitionStatusMapping,...p.fieldValidityMapping},v=(0,h.useRenderElement)("span",e,{ref:[t,x],state:b,stateAttributesMapping:g,props:s});return l||c?v:null});e.s(["Indicator",0,T,"Root",0,E],679116);var B=e.i(679116),B=B,D=e.i(425297),_=e.i(541048);e.s(["Checkbox",0,function({className:e,...t}){return(0,r.jsx)(B.Root,{"data-slot":"checkbox",className:(0,_.cn)("peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",e),...t,children:(0,r.jsx)(B.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,r.jsx)(D.CheckIcon,{})})})}],963633)},831894,e=>{"use strict";var t,r=e.i(791657);e.s([],995232),e.i(995232);var n=e.i(84750),i=e.i(817983),a=e.i(600157),l=e.i(560933),s=e.i(778798),o=e.i(548109),d=e.i(862119);let c={...o.collapsibleOpenStateMapping,...d.transitionStatusMapping},u=n.forwardRef(function(e,t){let{render:o,className:d,defaultOpen:u=!1,disabled:p=!1,onOpenChange:m,open:h,style:f,...x}=e,b=(0,i.useStableCallback)(m),g=(0,l.useCollapsibleRoot)({open:h,defaultOpen:u,onOpenChange:b,disabled:p}),v=n.useMemo(()=>({open:g.open,disabled:g.disabled,transitionStatus:g.transitionStatus}),[g.open,g.disabled,g.transitionStatus]),y=n.useMemo(()=>({...g,onOpenChange:b,state:v}),[g,b,v]),j=(0,a.useRenderElement)("div",e,{state:v,ref:t,props:x,stateAttributesMapping:c});return(0,r.jsx)(s.CollapsibleRootContext.Provider,{value:y,children:j})});var p=e.i(264776);let m={...o.triggerOpenStateMapping,...d.transitionStatusMapping},h=n.forwardRef(function(e,t){let{panelId:r,open:n,handleTrigger:i,state:l,disabled:o}=(0,s.useCollapsibleRootContext)(),{className:d,disabled:c=o,render:u,nativeButton:h=!0,style:f,...x}=e,{getButtonProps:b,buttonRef:g}=(0,p.useButton)({disabled:c,focusableWhenDisabled:!0,native:h});return(0,a.useRenderElement)("button",e,{state:l,ref:[t,g],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},x,b],stateAttributesMapping:m})});var f=e.i(915840),x=e.i(624920),b=e.i(705474);let g=((t={}).collapsiblePanelHeight="--collapsible-panel-height",t.collapsiblePanelWidth="--collapsible-panel-width",t),v=n.forwardRef(function(e,t){let{className:r,hiddenUntilFound:n,keepMounted:i,render:l,id:o,style:d,...u}=e,{mounted:p,onOpenChange:m,open:h,panelId:v,setMounted:y,setPanelIdState:j,setOpen:k,state:w,transitionStatus:C}=(0,s.useCollapsibleRootContext)();(0,f.useIsoLayoutEffect)(()=>
1{if(o)return j(o),()=>{j(void 0)}},[o,j]);let{height:S,props:N,ref:M,shouldPreventOpenAnimation:R,shouldRender:P,transitionStatus:E,width:I}=(0,b.useCollapsiblePanel)({externalRef:t,hiddenUntilFound:n??!1,id:v,keepMounted:i??!1,mounted:p,onOpenChange:m,open:h,setMounted:y,setOpen:k,transitionStatus:C}),F={...w,transitionStatus:E},O=(0,x.resolveStyle)(d,F),T=(0,a.useRenderElement)("div",{...e,style:void 0},{state:F,ref:M,props:[N,{style:{[g.collapsiblePanelHeight]:void 0===S?"auto":`${S}px`,[g.collapsiblePanelWidth]:void 0===I?"auto":`${I}px`}},u,O?{style:O}:void 0,R?{style:{animationName:"none"}}:void 0],stateAttributesMapping:c});return P?T:null});e.s(["Panel",0,v,"Root",0,u,"Trigger",0,h],463043);var y=e.i(463043),y=y;e.s(["Collapsible",0,function({...e}){return(0,r.jsx)(y.Root,{"data-slot":"collapsible",...e})},"CollapsibleContent",0,function({...e}){return(0,r.jsx)(y.Panel,{"data-slot":"collapsible-content",...e})},"CollapsibleTrigger",0,function({...e}){return(0,r.jsx)(y.Trigger,{"data-slot":"collapsible-trigger",...e})}],831894)},348508,e=>{"use strict";var t=e.i(791657),r=e.i(84750),n=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=r.createContext({}),u=r.forwardRef((e,t)=>{let n;var u,h,f,x,b,{value:g,onChange:v,maxLength:y,textAlign:j="left",pattern:k,placeholder:w,inputMode:C="numeric",onComplete:S,pushPasswordManagerStrategy:N="increase-width",pasteTransformer:M,containerClassName:R,noScriptCSSFallback:P=m,render:E,children:I}=e,F=((e,t)=>{var r={};for(var n in e)s.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&l)for(var n of l(e))0>t.indexOf(n)&&o.call(e,n)&&(r[n]=e[n]);return r})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[O,T]=r.useState("string"==typeof F.defaultValue?F.defaultValue:""),B=null!=g?g:O,D=(n=r.useRef(),r.useEffect(()=>{n.current=B}),n.current),_=r.useCallback(e=>{null==v||v(e),T(e)},[v]),A=r.useMemo(()=>k?"string"==typeof k?new RegExp(k):k:null,[k]),L=r.useRef(null),V=r.useRef(null),z=r.useRef({value:B,onChange:_,isIOS:"u">typeof window&&(null==(h=null==(u=null==window?void 0:window.CSS)?void 0:u.supports)?void 0:h.call(u,"-webkit-touch-callout","none"))}),K=r.useRef({prev:[null==(f=L.current)?void 0:f.selectionStart,null==(x=L.current)?void 0:x.selectionEnd,null==(b=L.current)?void 0:b.selectionDirection]});r.useImperativeHandle(t,()=>L.current,[]),r.useEffect(()=>{let e=L.current,t=V.current;if(!e||!t)return;function r(){if(document.activeElement!==e){G(null),Z(null);return}let t=e.selectionStart,r=e.selectionEnd,n=e.selectionDirection,i=e.maxLength,a=e.value,l=K.current.prev,s=-1,o=-1,d;if(0!==a.length&&null!==t&&null!==r){let e=t===r,n=t===a.length&&a.length<i;if(e&&!n){if(0===t)s=0,o=1,d="forward";else if(t===i)s=t-1,o=t,d="backward";else if(i>1&&a.length>1){let e=0;if(null!==l[0]&&null!==l[1]){d=t<l[1]?"backward":"forward";let r=l[0]===l[1]&&l[0]<i;"backward"!==d||r||(e=-1)}s=e+t,o=e+t+1}}-1!==s&&-1!==o&&s!==o&&L.current.setSelectionRange(s,o,d)}let c=-1!==s?s:t,u=-1!==o?o:r,p=null!=d?d:n;G(c),Z(u),K.current.prev=[c,u,p]}if(z.current.value!==e.value&&z.current.onChange(e.value),K.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&$(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="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;";p(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),p(e.sheet,`[data-input-otp]:autofill { ${t} }`),p(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }
1`),p(e.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; } }"),p(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let i=new ResizeObserver(n);return i.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),i.disconnect()}},[]);let[H,W]=r.useState(!1),[U,$]=r.useState(!1),[q,G]=r.useState(null),[J,Z]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,r,n;null==(e=L.current)||e.dispatchEvent(new Event("input"));let i=null==(t=L.current)?void 0:t.selectionStart,a=null==(r=L.current)?void 0:r.selectionEnd,l=null==(n=L.current)?void 0:n.selectionDirection;null!==i&&null!==a&&(G(i),Z(a),K.current.prev=[i,a,l])},0),setTimeout(e,10),setTimeout(e,50)},[B,U]),r.useEffect(()=>{void 0!==D&&B!==D&&D.length<y&&B.length===y&&(null==S||S(B))},[y,S,D,B]);let Y=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let[a,l]=r.useState(!1),[s,o]=r.useState(!1),[d,c]=r.useState(!1),u=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&a&&s,[a,s,n]),p=r.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||d||"none"===n)return;let a=r.getBoundingClientRect().left+r.offsetWidth,s=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(a-18,s)===r||(l(!0),c(!0))},[e,t,d,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){o(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),r.useEffect(()=>{let e=i||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(p,0),a=setTimeout(p,2e3),l=setTimeout(p,5e3),s=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(a),clearTimeout(l),clearTimeout(s)}},[t,i,n,p]),{hasPWMBadge:a,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:V,inputRef:L,pushPasswordManagerStrategy:N,isFocused:U}),X=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,y);t.length>0&&A&&!A.test(t)?e.preventDefault():("string"==typeof D&&t.length<D.length&&document.dispatchEvent(new Event("selectionchange")),_(t))},[y,_,D,A]),Q=r.useCallback(()=>{var e;if(L.current){let t=Math.min(L.current.value.length,y-1),r=L.current.value.length;null==(e=L.current)||e.setSelectionRange(t,r),G(t),Z(r)}$(!0)},[y]),ee=r.useCallback(e=>{var t,r;let n=L.current;if(!M&&(!z.current.isIOS||!e.clipboardData||!n))return;let i=e.clipboardData.getData("text/plain"),a=M?M(i):i;e.preventDefault();let l=null==(t=L.current)?void 0:t.selectionStart,s=null==(r=L.current)?void 0:r.selectionEnd,o=(l!==s?B.slice(0,l)+a+B.slice(s):B.slice(0,l)+a+B.slice(l)).slice(0,y);if(o.length>0&&A&&!A.test(o))return;n.value=o,_(o);let d=Math.min(o.length,y-1),c=o.length;n.setSelectionRange(d,c),G(d),Z(c)},[y,_,A,B]),et=r.useMemo(()=>({position:"relative",cursor:F.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[F.disabled]),er=r.useMemo(()=>({position:"absolute",inset:0,width:Y.willPushPWMBadge?`calc(100% + ${Y.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Y.willPushPWMBadge?`inset(0 ${Y.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:j,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Y.PWM_BADGE_SPACE_WIDTH,Y.willPushPWMBadge,j]),en=r.useMemo(()=>r.createElement("input",i(((e,t)=>{for(var r in t||(t={}))s.call(t,r)&&d(e,r,t[r]);if(l)for(var r of l(t))o.call(t,r)&&d(e,r,t[r]);return e})({autoComplete:F.autoComplete||"one-time-code"},F),a({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===B.length||void 0,"data-input-otp-mss":q,"data-input-otp-mse":J,inputMode:C,pattern:null==A?void 0:A.source,"aria-placeholder":w,style:er,maxLength:y,value:B,ref:L,onPaste:e=>{var t;ee(e),null==(t=F.onPaste)||t.call(F,e)},onChange:X,onMouseOver:e=>{var t;W(!0),null==(t=F.onMouseOver)||t.call(F,e)},onMouseLeave:e=>{var t;W(!1),null==(t=F.onMouseLeave)||t.call(F,e)},onFocus:e=>{var t;Q(),null==(t=F.onFocus)||t.call(F,e)},onBlur:e=>{var t;$(!1),null==(t=F.onBlur)||t.call(F,e)}}
1))),[X,Q,ee,C,er,y,J,q,F,null==A?void 0:A.source,B]),ei=r.useMemo(()=>({slots:Array.from({length:y}).map((e,t)=>{var r;let n=U&&null!==q&&null!==J&&(q===J&&t===q||t>=q&&t<J),i=void 0!==B[t]?B[t]:null;return{char:i,placeholderChar:void 0!==B[0]?null:null!=(r=null==w?void 0:w[t])?r:null,isActive:n,hasFakeCaret:n&&null===i}}),isFocused:U,isHovering:!F.disabled&&H}),[U,H,y,J,q,F.disabled,B]),ea=r.useMemo(()=>E?E(ei):r.createElement(c.Provider,{value:ei},I),[I,ei,E]);return r.createElement(r.Fragment,null,null!==P&&r.createElement("noscript",null,r.createElement("style",null,P)),r.createElement("div",{ref:V,"data-input-otp-container":!0,style:et,className:R},ea,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},en)))});function p(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}u.displayName="Input";var m=`
2[data-input-otp] {
3  --nojs-bg: white !important;
4  --nojs-fg: black !important;
5
6  background-color: var(--nojs-bg) !important;
7  color: var(--nojs-fg) !important;
8  caret-color: var(--nojs-fg) !important;
9  letter-spacing: .25em !important;
10  text-align: center !important;
11  border: 1px solid var(--nojs-fg) !important;
12  border-radius: 4px !important;
13  width: 100% !important;
14}
15@media (prefers-color-scheme: dark) {
16  [data-input-otp] {
17    --nojs-bg: black !important;
18    --nojs-fg: white !important;
19  }
20}`,h=e.i(4697),f=e.i(541048);e.s(["InputOTP",0,function({className:e,containerClassName:r,...n}){return(0,t.jsx)(u,{"data-slot":"input-otp",containerClassName:(0,f.cn)("cn-input-otp flex items-center has-disabled:opacity-50",r),spellCheck:!1,className:(0,f.cn)("disabled:cursor-not-allowed",e),...n})},"InputOTPGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"input-otp-group",className:(0,f.cn)("has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center rounded-lg has-aria-invalid:ring-3",e),...r})},"InputOTPSeparator",0,function({...e}){return(0,t.jsx)("div",{"data-slot":"input-otp-separator",className:"flex items-center [&_svg:not([class*='size-'])]:size-4",role:"separator",...e,children:(0,t.jsx)(h.MinusIcon,{})})},"InputOTPSlot",0,function({index:e,className:n,...i}){let a=r.useContext(c),{char:l,hasFakeCaret:s,isActive:o}=a?.slots[e]??{};return(0,t.jsxs)("div",{"data-slot":"input-otp-slot","data-active":o,className:(0,f.cn)("border-input aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex size-8 items-center justify-center border-y border-r text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg data-[active=true]:z-10 data-[active=true]:ring-3",n),...i,children:[l,s&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}],348508)},162631,e=>{"use strict";var t,r=e.i(791657);e.s([],150911),e.i(150911);var n=e.i(84750),i=e.i(512733),a=e.i(915840),l=e.i(817983),s=e.i(282167),o=e.i(272557),d=e.i(479995),c=e.i(846372),u=e.i(869941),p=e.i(862119),m=e.i(414800);let h=((t={}).checked="data-checked",t.unchecked="data-unchecked",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),f={checked:e=>e?{[h.checked]:""}:{[h.unchecked]:""},...p.transitionStatusMapping,...m.fieldValidityMapping};var x=e.i(816686),b=e.i(600157),g=e.i(264776),v=e.i(993587),y=e.i(502089),j=e.i(542825),k=e.i(736982),w=e.i(279076),C=e.i(527663),S=e.i(354701);let N=n.createContext(void 0);var M=e.i(26810),R=e.i(605801);let P=n.createContext(void 0),E=n.forwardRef(function(e,t){let{render:p,className:m,disabled:h=!1,readOnly:R=!1,required:E=!1,"aria-labelledby":I,value:F,inputRef:O,nativeButton:T=!1,id:B,style:D,..._}=e,A=n.useContext(N),{disabled:L,readOnly:V,required:z,form:K,checkedValue:H,touched:W=!1,validation:U,name:$}=A??{},q=A?.setCheckedValue??o.NOOP,G=A?.setTouched??o.NOOP,J=A?.registerControlRef??o.NOOP,Z=A?.registerInputRef??o.NOOP,{setTouched:Y,setFilled:X,state:Q,disabled:ee}=(0,j.useFieldRootContext)(),et=(0,k.useFieldItemContext)(),{labelId:er,getDescriptionProps:en}=(0,w.useLabelableContext)(),ei=ee||et.disabled||L||h,ea=V||R,el=z||E,es=A?H===F:""===F,eo=n.useRef(null),ed=n.useRef(null),ec=(0,l.useStableCallback)(e=>{e&&J(e,ei)}),eu=(0,i.useMergedRefs)(O,ed,Z);(0,a.useIsoLayoutEffect)(()=>{ed.current?.checked&&X(!0)},[X]),(0,a.useIsoLayoutEffect)(()=>
20{if(ed.current){if(ei&&es)return void Z(null);eo.current&&J(eo.current,ei),Z(ed.current)}},[es,ei,J,Z]);let ep=(0,x.useBaseUiId)(),em=(0,S.useLabelableId)({id:B,implicit:!1,controlRef:eo}),eh=T?void 0:em,ef={role:"radio","aria-checked":es,"aria-required":el||void 0,"aria-readonly":ea||void 0,"aria-labelledby":(0,C.useAriaLabelledBy)(I,er,ed,!T,eh),[v.ACTIVE_COMPOSITE_ITEM]:es?"":void 0,id:T?em:ep,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||ei||ea)return;e.preventDefault();let t=ed.current;t&&t.dispatchEvent(new((0,d.ownerWindow)(t)).PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))},onFocus(e){e.defaultPrevented||ei||ea||!W||(ed.current?.click(),G(!1))}},{getButtonProps:ex,buttonRef:eb}=(0,g.useButton)({disabled:ei,native:T,composite:!1}),eg={type:"radio",ref:eu,form:K,id:eh,name:$,tabIndex:-1,style:$?s.visuallyHiddenInput:s.visuallyHidden,"aria-hidden":!0,...void 0!==F?{value:(0,M.serializeValue)(F)}:o.EMPTY_OBJECT,disabled:ei,checked:es,required:el,readOnly:ea,onChange(e){if(e.nativeEvent.defaultPrevented||ei||ea||void 0===F)return;let t=(0,c.createChangeEventDetails)(u.REASONS.none,e.nativeEvent);q(F,t),t.isCanceled||Y(!0)},onFocus(){eo.current?.focus()}},ev=n.useMemo(()=>({...Q,required:el,disabled:ei,readOnly:ea,checked:es}),[Q,ei,ea,es,el]),ey=void 0!==A,ej=[t,eo,eb,ec],ek=[ef,_,ex,en,U?e=>U.getValidationProps(ei,e):o.EMPTY_OBJECT],ew=(0,b.useRenderElement)("span",e,{enabled:!ey,state:ev,ref:ej,props:ek,stateAttributesMapping:f});return(0,r.jsxs)(P.Provider,{value:ev,children:[ey?(0,r.jsx)(y.CompositeItem,{tag:"span",render:p,className:m,style:D,state:ev,refs:ej,props:ek,stateAttributesMapping:f}):ew,(0,r.jsx)("input",{...eg,suppressHydrationWarning:!0})]})});var I=e.i(299914),F=e.i(451090);let O=n.forwardRef(function(e,t){let{render:r,className:i,style:a,keepMounted:l=!1,...s}=e,o=function(){let e=n.useContext(P);if(void 0===e)throw Error((0,R.default)(52));return e}(),d=o.checked,{mounted:c,transitionStatus:u,setMounted:p}=(0,F.useTransitionStatus)(d),m={...o,transitionStatus:u},h=n.useRef(null),x=(0,b.useRenderElement)("span",e,{ref:[t,h],state:m,props:s,stateAttributesMapping:f});return((0,I.useOpenChangeComplete)({open:d,ref:h,onComplete(){d||p(!1)}}),l||c)?x:null});e.s(["Indicator",0,O,"Root",0,E],412320);var T=e.i(412320),T=T,B=e.i(78945),D=e.i(808681),_=e.i(25631),A=e.i(678636),L=e.i(290524),V=e.i(38698),z=e.i(31602),K=e.i(815361);let H=[_.SHIFT],W=n.forwardRef(function(e,t){let{render:i,className:a,disabled:s,readOnly:o,required:d,onValueChange:c,value:u,defaultValue:p,form:h,name:f,inputRef:b,id:g,style:v,...y}=e,{setTouched:k,setFocused:C,validationMode:S,name:M,disabled:R,state:P,validation:E,setDirty:I,setFilled:F,validityData:O}=(0,j.useFieldRootContext)(),{labelId:T}=(0,w.useLabelableContext)(),{clearErrors:_}=(0,z.useFormContext)(),W=(0,V.useFieldsetRootContext)(!0),U=R||s,$=M??f,q=(0,x.useBaseUiId)(g),[G,J]=(0,B.useControlled)({controlled:u,default:p,name:"RadioGroup",state:"value"}),[Z,Y]=n.useState(!1),X=(0,l.useStableCallback)((e,t)=>{c?.(e,t),t.isCanceled||J(e)}),Q=n.useRef(null),ee=n.useRef(null),et=n.useRef(null);function er(e){let t;return b&&("function"==typeof b?t=b(e):b.current=e),ee.current=e,E.inputRef.current=e,t}let en=(0,l.useStableCallback)((e,t=!1)=>{if(e){if(t){Q.current===e&&(Q.current=null);return}null==Q.current&&(Q.current=e)}}),ei=(0,l.useStableCallback)(e=>{if(!e||e.disabled)return;et.current||(et.current=e);let t=ee.current;if(e.checked||null==t||t.disabled)return er(e)}),ea=(0,l.useStableCallback)(()=>{let e=ee.current;return e&&!e.disabled&&e.checked?G??null:null});(0,L.useRegisterFieldControl)(Q,q,G??null,ea,!U,f),(0,K.useValueChanged)(G,()=>{_($),I(G!==O.initialValue),F(null!=G),E.change(G);let e=et.current;null==G&&e&&!e.disabled&&er(e)});let el=y["aria-labelledby"]??T??W?.legendId,es={...P,disabled:U??!1,required:d??!1,readOnly:o??!1},eo=n.useMemo(()=>({...P,checkedValue:G,disabled:U,form:h,validation:E,name:$,readOnly:o,registerControlRef:en,registerInputRef:ei,required:d,setCheckedValue:X,setTouched:Y,touched:Z}),[G,U,h,E,P,$,o,en,ei,d,X,Y,Z]);return(0,r.jsx)(N.Provider,{value:eo,children:(0,r.jsx)(A.CompositeRoot,{render:i,className:a,style:v,state:es,props:[{id:g,role:"radiogroup","aria-required":d||void 0,"aria-disabled":U||void 0,"aria-readonly":o||void 0,"aria-labelledby":el,onFocus(){C(!0)},onBlur(e){(0,D.contains)(e.currentTarget,e.relatedTarget)||(k(!0),C(!1),"onBlur"===S&&E.commit(G))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(Y(!0),C(!0))}},y,e=>E.getValidationProps(U??!1,e)],refs:[t],stateAttributesMapping:m.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:H})})});var U=e.i(541048);e.s(["RadioGroup",0,function({className:e,...t}){return(0,r.jsx)(W,{"data-slot":"radio-group",className:(0,U.cn)("grid w-full gap-2",e),...t})},"RadioGroupItem",0,function({className:e,...t}){return(0,r.jsx)(T.Root,{"data-slot":"radio-group-item",className:(0,U.cn)("group/radio-group-item peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",e),...t,children:(0,r.jsx)(T.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,r.jsx)("span",{className:"bg-primary-foreground absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 roun
20ded-full"})})})},"RadioGroupItemLabel",0,function({selected:e,className:t,children:n,...i}){return(0,r.jsx)("label",{"data-selected":e,className:(0,U.cn)(t,"flex cursor-pointer rounded-md border-input items-center space-x-4 border focus-within:border-primary active:bg-muted p-2.5 text-sm transition-all",{"bg-muted/70":e,"hover:bg-muted/50":!e}),...i,children:n})}],162631)},981248,e=>{"use strict";var t,r=e.i(791657);e.s([],651013),e.i(651013);var n=e.i(84750),i=e.i(78945),a=e.i(512733),l=e.i(915840),s=e.i(282167),o=e.i(272557),d=e.i(479995),c=e.i(600157),u=e.i(101130),p=e.i(816686),m=e.i(264776),h=e.i(605801);let f=n.createContext(void 0);var x=e.i(414800);let b=((t={}).checked="data-checked",t.unchecked="data-unchecked",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),g={...x.fieldValidityMapping,checked:e=>e?{[b.checked]:""}:{[b.unchecked]:""}};var v=e.i(542825),y=e.i(290524),j=e.i(31602),k=e.i(279076),w=e.i(527663),C=e.i(354701),S=e.i(846372),N=e.i(869941),M=e.i(815361);let R=n.forwardRef(function(e,t){let{checked:h,className:x,defaultChecked:b,"aria-labelledby":R,form:P,id:E,inputRef:I,name:F,nativeButton:O=!1,onCheckedChange:T,readOnly:B=!1,required:D=!1,disabled:_=!1,render:A,uncheckedValue:L,value:V,style:z,...K}=e,{clearErrors:H}=(0,j.useFormContext)(),{state:W,setTouched:U,setDirty:$,validityData:q,setFilled:G,setFocused:J,validationMode:Z,disabled:Y,name:X,validation:Q}=(0,v.useFieldRootContext)(),{labelId:ee}=(0,k.useLabelableContext)(),et=Y||_,er=X??F,en=n.useRef(null),ei=(0,a.useMergedRefs)(en,I,Q.inputRef),ea=n.useRef(null),el=(0,p.useBaseUiId)(),es=(0,C.useLabelableId)({id:E,implicit:!1,controlRef:ea}),eo=O?void 0:es,[ed,ec]=(0,i.useControlled)({controlled:h,default:!!b,name:"Switch",state:"checked"});(0,y.useRegisterFieldControl)(ea,el,ed,void 0,!et,F),(0,l.useIsoLayoutEffect)(()=>{en.current&&G(en.current.checked)},[en,G]),(0,M.useValueChanged)(ed,()=>{H(er),$(ed!==q.initialValue),G(ed),Q.change(ed)});let{getButtonProps:eu,buttonRef:ep}=(0,m.useButton)({disabled:et,native:O}),em=(0,w.useAriaLabelledBy)(R,ee,en,!O,eo),eh=(0,u.mergeProps)({checked:ed,disabled:et,form:P,id:eo,name:er,required:D,style:er?s.visuallyHiddenInput:s.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ei,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(B)return void e.preventDefault();let t=e.currentTarget.checked,r=(0,S.createChangeEventDetails)(N.REASONS.none,e.nativeEvent);T?.(t,r),r.isCanceled||ec(t)},onFocus(){ea.current?.focus()}},e=>Q.getValidationProps(et,e),void 0!==V?{value:V}:o.EMPTY_OBJECT),ef=n.useMemo(()=>({...W,checked:ed,disabled:et,readOnly:B,required:D}),[W,ed,et,B,D]),ex=(0,c.useRenderElement)("span",e,{state:ef,ref:[t,ea,ep],props:[{id:O?es:el,role:"switch","aria-checked":ed,"aria-readonly":B||void 0,"aria-required":D||void 0,"aria-labelledby":em,onFocus(){et||J(!0)},onBlur(){let e=en.current;e&&!et&&(U(!0),J(!1),"onBlur"===Z&&Q.commit(e.checked))},onClick(e){if(B||et)return;e.preventDefault();let t=en.current;t&&t.dispatchEvent(new((0,d.ownerWindow)(t)).PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},K,eu,e=>Q.getValidationProps(et,e)],stateAttributesMapping:g});return(0,r.jsxs)(f.Provider,{value:ef,children:[ex,!ed&&er&&void 0!==L&&(0,r.jsx)("input",{type:"hidden",form:P,name:er,value:L,disabled:et}),(0,r.jsx)("input",{...eh,suppressHydrationWarning:!0})]})}),P=n.forwardRef(function(e,t){let{render:r,className:i,style:a,...l}=e,s=function(){let e=n.useContext(f);if(void 0===e)throw Error((0,h.default)(63));return e}();return(0,c.useRenderElement)("span",e,{state:s,ref:t,stateAttributesMapping:g,props:l})});e.s(["Root",0,R,"Thumb",0,P],408991);var E=e.i(408991),E=E,I=e.i(541048);e.s(["Switch",0,function({className:e,size:t="default",...n}){return(0,r.jsx)(E.Root,{"data-slot":"switch","data-size":t,className:(0,I.cn)("peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 aria-invalid:ring-3 data-disabled:cursor-not-allowed data-disabled:opacity-50 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px]",e),...n,children:(0,r.jsx)(E.Thumb,{"data-slot":"switch-thumb",className:"bg-background dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0"})})}],981248)},275879,e=>{"use strict";var t=e.i(791657),r=e.i(541048);e.s(["Textarea",0,function({className:e,...n}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm",e),...n})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.