1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,751531,e=>{"use strict";var t=e.i(649251),a=e.i(167065),n=e.i(412537),r=e.i(27080);let i=/(?<!\\)`/g;e.s(["Breadcrumb",0,e=>{let s=e.breadcrumb.title.replace(i,""),l=e.breadcrumb.availableSdks,o=l?l.map(e=>n.allSDKs[e].sdk):void 0,c=(0,r.useScopedHref)(e.breadcrumb.href,o);return(0,t.jsxs)("li",{className:"flex gap-x-3",children:[c?(0,t.jsx)(a.DocsLink,{href:c,className:"text-gray-600 transition-colors hover:text-gray-950 dark:text-gray-400 dark:hover:text-white",children:s}):(0,t.jsx)("span",{className:"text-gray-600 dark:text-gray-400",children:s}),e.breadcrumbIndex!==e.breadcrumbs.length-1&&(0,t.jsx)("svg",{viewBox:"0 0 10 10",fill:"none","aria-hidden":!0,className:"h-5 w-2.5 flex-none stroke-gray-300 dark:stroke-gray-700",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m7.5.5-5 9"})})]})}])},176546,e=>{"use strict";var t=e.i(649251),a=e.i(728229),n=e.i(529449),r=e.i(867543),i=e.i(517042),s=e.i(946572),l=e.i(187740),o=e.i(963308),c=e.i(381135),u=e.i(68087),d=e.i(945812),p=e.i(540628),f=e.i(712109);function m(){let e=new URLSearchParams(window.location.search).get("open-in");return(0,o.isLLMService)(e)?e:null}e.s(["LLMActions",0,function(e){let h=(0,a.useDocsSlugPrefix)(),g=(0,r.useAnalytics)(),x=(0,c.usePathname)(),[v,b,y]=(0,l.useLLMServiceCookie)(),[k]=(0,u.useState)(m),j=k??((0,o.isLLMService)(v)?v:o.LLM_SERVICE_KEYS[0]);(0,u.useEffect)(()=>{if(!k)return;b(k);let e=new URLSearchParams(window.location.search);e.delete("open-in");let t=e.toString();window.history.replaceState(null,"",`${window.location.pathname}${t?`?${t}`:""}${window.location.hash}`)},[k,b]);let{url:S,config:w}=(0,l.useService)({service:j,slug:e.slug,contentType:"docs",slugPrefix:h}),_=s.Icons[w.icon],[N,T]=(0,u.useState)(!1),A="ring-0 before:rounded-none after:rounded-none before:opacity-0 hover:before:opacity-0 after:hidden hover:bg-gray-50 dark:hover:bg-gray-850",D=(0,t.jsx)(u.Suspense,{fallback:(0,t.jsx)(i.FakeCopyPageAsMarkdown,{className:(0,n.button)({color:"neutral-inverted",className:"w-auto! text-sm!"}),textClassName:"inset-x-3"}),children:(0,t.jsx)(i.CopyPageAsMarkdown,{markdown:e.markdown,className:(0,n.button)({color:"neutral-inverted",className:"w-auto! text-sm!"}),textClassName:"inset-x-3"})});return"/core-1"===h?(0,t.jsx)("div",{className:"flex flex-row gap-2 pb-4",children:D}):(0,t.jsxs)("div",{className:"flex flex-row gap-2 pb-4",children:[D,(0,t.jsxs)("div",{className:"inline-flex overflow-clip rounded-md bg-white shadow-[0_1px_--theme(--color-white/0.07)_inset,0_1px_3px_--theme(--color-gray-900/0.2)] ring-1 ring-[#191C21]/8 [overflow-clip-margin:var(--ocm,0px)] has-focus-visible:[--ocm:4px] dark:bg-gray-900 dark:ring-gray-900",children:["client"===y?(0,t.jsxs)("a",{href:S,target:"_blank",rel:"noopener noreferrer","aria-label":w.defaultText,className:(0,n.button)({color:"neutral-inverted",className:`gap-2 rounded-r-none focus-visible:z-10 ${A}`}),onClick:()=>{g.track(`docs_open_${j.replaceAll(".","-")}`,{surface:"docs",page:x,urlToOpen:S}),b(j)},children:[(0,t.jsx)("span",{className:"sm:hidden",children:"Open in"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:w.defaultText}),(0,t.jsx)(_,{"aria-hidden":!0,className:"size-4 flex-none sm:order-first"})]}):(0,t.jsx)("div",{className:(0,n.button)({color:"neutral-inverted",className:`gap-2 rounded-r-none ${A}`}),children:(0,t.jsx)("div",{className:"h-4 w-32 animate-pulse rounded-md bg-gray-100 dark:bg-gray-600"})}),(0,t.jsx)("span",{"aria-hidden":!0,className:"w-px bg-white dark:bg-gray-700"}),(0,t.jsxs)(p.DialogTrigger,{isOpen:N,onOpenChange:T,children:[(0,t.jsx)(d.Button,{"aria-label":"Open LLM options menu",className:(0,n.button)({color:"neutral-inverted",className:`rounded-l-none !px-2 ${A}`}),children:(0,t.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"none",className:"size-4 flex-none stroke-black dark:stroke-white",children:(0,t.jsx)("path",{d:"M4.75 6.75L8 10.25L11.25 6.75",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)(f.Popover,{className:"outline-none",children:(0,t.jsx)(l.LLMOptions,{slug:e.slug,contentType:"docs",className:"dark:[&_li:hover]:bg-gray-850 flex min-w-44 flex-col gap-1 rounded-md bg-white p-1 shadow-md ring-1 ring-black/10 dark:bg-gray-900 [&_li]:rounded-sm [&_li:hover]:bg-gray-50 [&_li:hover]:ring-1 [&_li:hover]:ring-gray-100 dark:[&_li:hover]:ring-gray-700",onServicePress:e=>{b(e),T(!1)}})})]})]})]})}])},427202,e=>{"use strict";var t=e.i(649251),a=e.i(68087),n=e.i(249832),r=e.i(412537),i=e.i(27080),s=e.i(993584);function l(e){return e.reduce((e,t)=>
1e.replace("none",`var(${r.CSS_VARIABLE_PREFIX}${t}, none)`),"none")}function o(e){return"function"==typeof e.checkVisibility?e.checkVisibility():null!==e.offsetParent}function c(e){let t=e.closest('details[data-component="ManualSteps"]:not([open])');return null!==t&&o(t)?t:null}function u(){return{id:n.MANUAL_STEPS_ID,content:n.MANUAL_STEPS_LABEL,step:void 0,depth:2,headings:[]}}function d(e){let t=!1,a=[];for(let n of e)void 0===n.step||t||(t=!0,a.push(u())),a.push(n);return a}let p=`[data-manual-steps-dual] ol[aria-label="On this page"] li[data-step] { display: none } 2@supports selector(body:has(*)) { 3body:has(details[data-component="ManualSteps"][open]) [data-manual-steps-dual] ol[aria-label="On this page"] li[data-step] { display: list-item } 4body:has(details[data-component="ManualSteps"][open]) [data-manual-steps-dual] ol[aria-label="On this page"] li:has(> a[href="#${n.MANUAL_STEPS_ID}"]) { display: none } 5}`;function f(e){let t=new Set,a=[];for(let n of e){let e=document.getElementById(n.id);if(!e)continue;let r=c(e);if(r){t.has(r)||(t.add(r),a.push(u()));continue}if(!o(e))continue;let i=n.headings.filter(e=>{let t=document.getElementById(e.id);return null!==t&&null===c(t)&&o(t)});a.push({...n,headings:i})}let n=0;for(let e of a){void 0!==e.step?e.step=++n:n=0;let t=0;for(let a of e.headings)void 0!==a.step&&(a.step=++t)}return a}e.s(["SDKAwareTableOfContents",0,function({fallbackHeadings:e,initialManualStepsCollapsed:o=!1}){let[c,u]=(0,a.useState)(()=>o?d(e):null),m=(0,i.useActiveSDK)();(0,a.useLayoutEffect)(()=>{let t;for(let t of(u(f(e)),document.querySelectorAll('[data-component="Steps"]')))t.style.counterReset="none",t.offsetHeight,t.style.counterReset="";let a=window.setTimeout(()=>u(f(e)),0);function n(a){if(a.target instanceof HTMLElement&&"ManualSteps"===a.target.dataset.component){if(window.clearTimeout(t),!a.target.open)return void u(f(e));t=window.setTimeout(()=>u(f(e)),350)}}return document.addEventListener("toggle",n,!0),()=>{window.clearTimeout(a),window.clearTimeout(t),document.removeEventListener("toggle",n,!0)}},[e,m?.sdk]);let h=c??e;if(0===h.length)return null;let g=function(e){let t=[],a=e.flatMap(e=>[e,...e.headings]),n=a.some(e=>void 0!==e.step),i=!1;for(let e of a){let a;if(e.ifSdk)a=l(e.ifSdk);else if(e.ifNotSdk){let t=new Set(e.ifNotSdk);a=l(r.sdkKeys.filter(e=>!t.has(e)))}a&&(i=!0,t.push(`ol[aria-label="On this page"] li:has(> a[href="#${e.id}"]) { display: ${a} }`))}return n&&i&&t.push('ol[aria-label="On this page"] { counter-reset: toc-step }','ol[aria-label="On this page"] ol { counter-reset: toc-step }','ol[aria-label="On this page"] li[data-step] { counter-increment: toc-step }','ol[aria-label="On this page"] li[data-step]::before { content: counter(toc-step) !important }'),t.join("\n")}(e),x=h.flatMap(e=>[e.id,...e.headings.map(e=>e.id)]).join(","),v=h.some(e=>e.id===n.MANUAL_STEPS_ID)&&h.some(e=>void 0!==e.step);return(0,t.jsxs)(t.Fragment,{children:[g&&(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:g}}),o&&(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:p}}),(0,t.jsx)("div",{style:{display:"contents"},"data-manual-steps-dual":v?"":void 0,children:(0,t.jsx)(s.TableOfContents,{headings:h},x)})]})},"filterVisibleHeadings",0,f,"withCollapsedManualStepsEntry",0,d])},337606,e=>{"use strict";var t=e.i(649251),a=e.i(7284),n=e.i(742235),r=e.i(412537),i=e.i(27080);e.s(["SDKCoreSupportNotice",0,function(){let e=(0,i.useActiveSDK)(),s=(0,i.useActivePage)(),l=(0,i.useUpdateActiveSDK)({location:"sdk-deprecation-notice"}),o=(0,i.useUnlockActiveSDK)(),{core:c,pathnameSDK:u,precomputeCode:d}=(0,i.useDocsPathname)();if(!e&&!u)return null;let p=s?.frontmatter.sdkScoped===!1,f=p?e?.sdk:u?.sdk??e?.sdk;if(!f)return null;let m=(0,r.getSDKDeprecation)(f);if(!m||!m.cores.includes(c))return null;let h=r.allSDKs[f],g="route"in h?h.route:"/docs",x=m.actions.map(e=>e?(e=>{if("switch-core"===e.type){var t;let a,r=(t=e.core,(a=s?.frontmatter.canonical)&&!s.frontmatter.sdkScoped?(0,n.injectPathname)(a,{core:t,precomputeCode:d}):null);return{label:e.label,href:r??(0,n.injectPathname)(g,{core:e.core,precomputeCode:d})}}if(p)return{label:e.label,onPress:()=>{o(),l(e.sdk)}};let a=r.allSDKs[e.sdk],i=((e,t=c)=>{let a=s?.frontmatter.canonical;if(!a)return null;if(s.frontmatter.sdkScoped){if(!s.frontmatter.availableSdks?.includes(e))return null;let r=a.includes("/:sdk:/")?a.replace("/:sdk:/",`/${e}/`):a;return(0,n.injectPathname)(r,{core:t,precomputeCode:d})}return(0,n.injectPathname)(a,{core:t,precomputeCode:d})})(e.sdk);return i?{label:e.label,href:i}:"route"in a?{label:e.label,href:(0,n.injectPathname)(a.route,{core:c,precomputeCode:d})}:"external"in a?{label:e.label,href:a.external,external:!0}:null})(e):null).filter(e=>null!==e);return(0,t.jsx)("div",{className:(0,a.default)("mb-6 rounded-md bg-[linear-gradient(89deg,#FFF9BC_44.64%,#FFFEEE_65.69%,#FFFCDF_73.98%,#FFF9BC_99.31%)] px-3 py-2 text-xs/4 text-gray-950 shadow-[0_2px_5px_rgba(32,42,54,0.06),0_1px_5px_-4px_rgba(19,19,22,0.4)] ring-1 ring-gray-950/7.5 ring-inset","dar
5k:bg-[linear-gradient(90deg,rgba(245,211,0,0.15)_24.54%,rgba(255,233,50,0.3)_65.09%,rgba(245,211,0,0.15)_99.81%)] dark:text-white dark:shadow-[0_1px_rgba(255,255,255,0.075)_inset] dark:ring-white/5"),children:(0,t.jsxs)("p",{children:[m.message," ",x.length>0&&(0,t.jsxs)(t.Fragment,{children:[x.map((e,a)=>{let n=a===x.length-1;return(0,t.jsxs)("span",{children:[a>0&&(n?" or ":", "),"href"in e?(0,t.jsx)("a",{className:"font-medium underline decoration-gray-950/40 underline-offset-2 dark:decoration-white/40",href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noreferrer":void 0,children:e.label}):(0,t.jsx)("button",{type:"button",onClick:e.onPress,className:"font-medium underline decoration-gray-950/40 underline-offset-2 dark:decoration-white/40",children:e.label})]},e.label)}),"."]})]})})}])},395574,e=>{"use strict";var t=e.i(867543),a=e.i(68087),n=e.i(555375),r=e.i(571821),i=e.i(412537),s=e.i(27080);function l(e,t){return Object.entries(e).flatMap(([e,a])=>(0,r.findPagesByPathname)((0,n.collectEntryItems)(a),t).map(t=>({entry:e,page:t})))}function o(e){if(0===e.length)return[];let t=new Set;for(let{entry:a,page:n}of e){if("default"===a){if(void 0===n.sdk)return;for(let e of n.sdk)t.add(e);continue}(void 0===n.sdk||n.sdk.includes(a))&&t.add(a)}return Array.from(t)}function c(e,t){return void 0===e||e.includes(t)}e.s(["SDKPageNotInSidebarAnalytics",0,function(){let e=(0,s.useActiveSDK)(),n=(0,s.useNavigation)(),{normalizedPathname:r}=(0,s.useDocsPathname)(),{initialized:u,track:d}=(0,t.useAnalytics)(),p=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!u||!e)return;let t=l(n,r);if(0===t.length)return;let a=o(t),s=c(a,e.sdk),f=`${r}:${e.sdk}`;s||p.current===f||(p.current=f,d("docs_page_not_in_sdk_sidebar",{surface:"Docs",sdk:i.allSDKs[e.sdk]?.title,sdk_key:e.sdk,page:r,allowed_sdks:a??[]}))},[e,u,n,r,d]),null},"computeEffectiveSDKsFromMatches",0,o,"findMatchesWithProvenance",0,l,"isSDKAllowedForPage",0,c])},517042,e=>{"use strict";var t=e.i(649251),a=e.i(412537),n=e.i(27080),r=e.i(867543),i=e.i(810236),s=e.i(381135),l=e.i(68087),o=e.i(187740),c=e.i(993608);e.s(["CopyPageAsMarkdown",0,function(e){let{markdown:c,...u}=e,d=(0,r.useAnalytics)(),p=(0,l.use)(c),f=(0,i.useQueryClient)(),m=(0,s.usePathname)(),{pathnameSDK:h}=(0,n.useDocsPathname)(),g=(0,n.useActiveSDK)(),x=void 0===h&&void 0!==g&&g.sdk!==a.DOCS_DEFAULT_SDK,v=async()=>{if(!x)return p;let e=g.sdk,t=`${m}.md?sdk=${encodeURIComponent(e)}`;try{return await f.fetchQuery({queryKey:["docs-sdk-markdown",m,e],queryFn:async()=>{let e=await fetch(t,{method:"GET"});if(!e.ok)throw Error(`Failed to fetch SDK markdown: ${e.status}`);return await e.text()}})}catch{return console.error(`[docs_copy_markdown] Failed to fetch SDK markdown for ${t}, using preloaded markdown`),p}};return(0,t.jsx)(o.CopyPageAsMarkdown,{...u,resolveMarkdown:v,onPress:()=>{d.track("docs_copy_markdown",{surface:"docs",page:m})}})},"EditPageOnGitHub",0,function({href:e,children:a="Edit on GitHub"}){let n=(0,r.useAnalytics)(),i=(0,s.usePathname)();return(0,t.jsx)(c.LLMLink,{icon:"github",href:e,onPress:()=>{n.track("docs_open_github",{surface:"Docs",page:i,urlToOpen:e})},className:"w-min",children:a})},"FakeCopyPageAsMarkdown",0,function(e){return(0,t.jsx)(o.FakeCopyPageAsMarkdown,{...e})}])},282123,e=>{"use strict";var t=e.i(649251),a=e.i(728229),n=e.i(946268),r=e.i(412537),i=e.i(27080),s=e.i(867543),l=e.i(7284),o=e.i(935704),c=e.i(68087),u=e.i(678258),d=e.i(118420);function p({name:e,className:a,...r}){if(!(e in n.icons))return null;let i=n.icons[e];return(0,t.jsx)("svg",{viewBox:"0 0 20 20","aria-hidden":!0,className:(0,l.default)("size-6 flex-none text-gray-500 transition-colors dark:text-gray-400",a),fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,t.jsx)(i,{})})}function f({name:e,className:a,...r}){let i=n.iconsLarge[e];return i?(0,t.jsx)("div",{className:(0,l.default)("[&>:is(img,svg)]:size-5",a),"aria-hidden":!0,...r,children:(0,t.jsx)(i,{})}):null}e.s(["SDKPageVariants",0,function(e){let l=(0,a.useDocsSlugPrefix)(),m=(0,s.useAnalytics)(),h=(0,i.useActiveSDK)(),{core:g}=(0,i.useDocsPathname)(),x=(0,r.orderSDKArray)(e.sdks).filter(e=>!(0,r.getSDKDeprecation)(e)?.cores.includes(g));return(0,t.jsxs)("div",{className:"flex flex-col gap-y-2 rounded-xl bg-gray-50/50 px-3 pt-2 pb-3 dark:bg-[#19191D]",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:"Available in other SDKs"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-[0.78rem]",children:x.map(e=>r.allSDKs[e]).map(({sdk:r,title:i,icon:s})=>(0,t.jsx)(c.Fragment,{children:(0,t.jsxs)(d.TooltipTrigger,{delay:100,children:[(0,t.jsx)(u.Focusable,{children:(0,t.jsx)(o.default,{href:(0,a.getDocsHref)(e.href.replace(":sdk:",r),l),onClick:()=>{m.track("docs_active_sdk_changed",{surface:"Docs",sdk:i})},scroll:!1,"data-active":h?.sdk===r,className:"group flex items-center justify-center rounded p-[0.3125rem] ring-gray-200 data-[active=true]:bg-gray-100 data-[active=true]:ring-1 dark:ring-gray-700 dark:data-[active=true]:bg-gray-800",children:s in n.iconsLarge&&s in n.icons?(0,t.jsx)(f,{name:s,"data-active":h?.sdk===r,className:"opacity-50 grayscale transition-opacity group-hover:opacity-100 group-hover:grayscale-0 data-[active=true]:opacity-100 data-[active=true]:grayscale-0"}):(0,t.jsx)(p,{name:s,className:""})},r)}),(0,t.jsx)(d.Tooltip,{className:"rounded-lg bg-black px-2 py-1 text-white",offset:6,children:i})]})},r))})]})}])},528979,e=>{"use strict";var t,a,n=e.i(649251),r=e.i(294237),i=e.i(7284),s=e.i(527852),l=e.i(323981),o=e.i(730348),c=e.i(68087),u=e.i(723588),d=e.i(260411),p=e.i(945812),f=e.i(409114),m=e.i(712109),h=e.i(118420),g=e.i(594098),x=e.i(960009),v=e.i(529449),b=e.i(149239),y=e.i(727285),k=e.i(835799),j=e.i(873156),S=e.i(320607),w=e.i(159581),_=e.i(518071),N=e.i(905861),T=e.i(252755);function A({className:e}
5){let[t,a]=(0,c.useState)(!1),{resolvedTheme:r,setTheme:s}=(0,_.useTheme)();return(0,c.useEffect)(()=>{a(!0)},[]),(0,n.jsxs)("div",{className:(0,i.default)("flex items-center gap-x-2",e),children:[(0,n.jsx)("span",{className:"text-sm/5 font-medium max-sm:hidden","aria-hidden":!0,children:"Mode"}),(0,n.jsxs)(T.ToggleButtonGroup,{"aria-label":"Mode",className:"isolate flex h-[1.875rem] rounded-md bg-gray-50 ring-1 ring-[#E1E1E1] dark:bg-[#1D1D21]/50 dark:ring-[#424246]",selectedKeys:t?r?[r]:["light"]:void 0,onSelectionChange:e=>s(Array.from(e)[0]),isDisabled:!t,disallowEmptySelection:t,children:[(0,n.jsx)(D,{id:"light",children:({isSelected:e})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(M,{}),(0,n.jsx)(L,{className:"z-10"})]})}),(0,n.jsx)(D,{id:"dark",children:({isSelected:e})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(M,{}),(0,n.jsx)(C,{className:"z-10"})]})})]})]})}function D({className:e,...t}){return(0,n.jsx)(N.ToggleButton,{className:({isSelected:t,isFocusVisible:a})=>(0,i.default)("relative grid aspect-square h-[1.875rem] place-content-center rounded-md transition-colors",t?["text-gray-800","dark:text-gray-300"]:["text-gray-400 hover:text-gray-800","dark:text-gray-500 dark:hover:text-gray-300"],a&&"z-10",e),...t})}function M(){return(0,n.jsx)(l.motion.div,{layoutId:"appearance-toggle-indicator",className:(0,i.default)("absolute inset-0 rounded-md shadow-sm","bg-white dark:bg-[#26262B]","ring-1 ring-[#E1E1E1] dark:bg-[#1D1D21]/50 dark:ring-[#424246]"),transition:{type:"spring",visualDuration:.15,bounce:0}})}function L({className:e,...t}){return(0,n.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,className:(0,i.default)("relative size-4",e),...t,children:[(0,n.jsx)("path",{fill:"currentColor",fillOpacity:".24",d:"M10.2 8a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0Z"}),(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.6a.6.6 0 0 1 .6.6v1.2a.6.6 0 0 1-1.2 0V2.2a.6.6 0 0 1 .6-.6ZM3.474 3.474a.6.6 0 0 1 .849 0l.848.849a.6.6 0 1 1-.848.848l-.849-.848a.6.6 0 0 1 0-.849Zm9.051 0a.6.6 0 0 1 0 .849l-.848.848a.6.6 0 0 1-.849-.848l.849-.849a.6.6 0 0 1 .848 0ZM8 6.4a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2ZM5.2 8a2.8 2.8 0 1 1 5.6 0 2.8 2.8 0 0 1-5.6 0ZM1.6 8a.6.6 0 0 1 .6-.6h1.2a.6.6 0 0 1 0 1.2H2.2a.6.6 0 0 1-.6-.6ZM12 8a.6.6 0 0 1 .6-.6h1.2a.6.6 0 1 1 0 1.2h-1.2A.6.6 0 0 1 12 8ZM5.17 10.828a.6.6 0 0 1 0 .849l-.848.848a.6.6 0 0 1-.849-.848l.849-.849a.6.6 0 0 1 .848 0Zm5.657 0a.6.6 0 0 1 .849 0l.848.849a.6.6 0 0 1-.848.848l-.849-.848a.6.6 0 0 1 0-.849ZM8 12a.6.6 0 0 1 .6.6v1.2a.6.6 0 1 1-1.2 0v-1.2A.6.6 0 0 1 8 12Z"})]})}function C({className:e,...t}){return(0,n.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,className:(0,i.default)("relative size-4",e),...t,children:[(0,n.jsx)("path",{fill:"currentColor",fillOpacity:".24",d:"M13.6 10.165a5.83 5.83 0 0 1-2.508.563c-3.239 0-5.864-2.633-5.864-5.881 0-.873.19-1.702.53-2.447A5.883 5.883 0 0 0 2.4 7.72c0 3.248 2.626 5.881 5.865 5.881a5.865 5.865 0 0 0 5.335-3.435Z"}),(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.178 1.972a.6.6 0 0 1 .125.677 5.274 5.274 0 0 0-.476 2.197c0 2.919 2.359 5.282 5.265 5.282.806 0 1.569-.182 2.25-.505a.6.6 0 0 1 .804.79A6.465 6.465 0 0 1 8.265 14.2C4.693 14.2 1.8 11.296 1.8 7.718a6.483 6.483 0 0 1 3.7-5.86.6.6 0 0 1 .678.114ZM4.707 3.825A5.27
55 5.275 0 0 0 3 7.718C3 10.637 5.359 13 8.265 13c1.56 0 2.964-.682 3.929-1.766a6.48 6.48 0 0 1-1.102.094c-3.572 0-6.465-2.904-6.465-6.482 0-.347.027-.688.08-1.021Z",clipRule:"evenodd"})]})}var E=e.i(27080),P=["test","login","logout","link","unlink","publish","cache","start","stop","test"],F=["init","run","add","audit","autoclean","bin","check","config","create","dedupe","generate-lock-entry","global","help","import","info","install","licenses","list","lockfile","outdated","owner","pack","policies","prune","remove","self-update","tag","team","upgrade","upgrade-interactive","version","versions","why","workspace","workspaces"],I={npm:"npx",yarn:"yarn dlx",pnpm:"pnpm dlx",bun:"bun x"};function O(e){for(var t=[],a=!1,n=!1,r="",i=0;i<e.length;++i){var s=e.charAt(i);"\\"===s?(r+=s,n=!0):(" "!==s||a?n||'"'!==s&&"'"!==s?r+=s:(r+=s,s===a?a=!1:a||(a=s)):(t.push(r),r=""),n=!1)}return t.push(r),t}function z(e){return e.map(function(e){switch(e){case"--no-lockfile":return"--no-package-lock";case"--production":return"--save-prod";case"--dev":return"--save-dev";case"--optional":return"--save-optional";case"--exact":return"--save-exact";default:return e}})}var B={add:function(e){return 2===e.length&&"--force"===e[1]?["rebuild"]:(e[0]="install",z(e))},remove:function(e){return e[0]="uninstall",z(e)},version:function(e){return e.map(function(e){switch(e){case"--major":return"major";case"--minor":return"minor";case"--patch":return"patch";default:return e}})},install:"install",list:function(e){e[0]="ls";var t=e.findIndex(function(e){return"--pattern"===e});if(t>=0&&e[t+1]){var a=e[t+1].replace(/["']([^"']+)["']/,"$1").split("|");e.splice(t,2,a.join(" "))}return e},init:"init",create:"init",outdated:"outdated",run:"run",global:function(e){switch(e[1]){case"add":return e.shift(),(e=B.add(e)).push("--global"),e;case"remove":return e.shift(),(e=B.remove(e)).push("--global"),e;case"list":return e.shift(),(e=B.list(e)).push("--global"),e;default:return e.push("\n# couldn't auto-convert command"),e}},pack:function(e){return e.map(function(e){return"--filename"===e?"--pack-destination":e})}};function K(e,t){if(""===(t=(t||"").trim()))return"npm install";var a=O(t),n=(/\w+/.exec(t)||[""])[0];if(P.includes(a[0]))return"npm "+t;if(a[0]in B){var r=B[a[0]];return"function"==typeof r?a=r(a):a[0]=r,"npm "+a.filter(Boolean).join(" ")}return F.includes(n)?"npm "+t+"\n# couldn't auto-convert command":"npm run "+t}function R(e){return(e.includes("--global")||e.includes("-g"))&&e.unshift("global"),e.map(function(e){switch(e){case"--save-dev":case"-D":return"--dev";case"--save-prod":case"-P":return"--production";case"--no-package-lock":return"--no-lockfile";case"--save-optional":case"-O":return"--optional";case"--save-exact":case"-E":return"--exact";case"--save":case"-S":case"--global":case"-g":return"";default:return e}})}var $={install:function(e){return 1===e.length?["install"]:(e[0]="add",R(e))},i:function(e){return $.install(e)},uninstall:function(e){return e[0]="remove",R(e)},un:function(e){return $.uninstall(e)},remove:function(e){return $.uninstall(e)},r:function(e){return $.uninstall(e)},rm:function(e){return $.uninstall(e)},version:function(e){return e.map(function(e){switch(e){case"major":return"--major";case"minor":return"--minor";case"patch":return"--patch";default:return e}})},rb:function(e){return $.rebuild(e)},rebuild:function(e){return e[0]="add",e.push("--force"),e},run:function(e){return!e[1]||P.includes(e[1])||F.includes(e[1])||e.splice(0,1),e},exec:function(e){return e[0]="run",$.run(e)},ls:function(e){e[0]="list";var t=!1,a=e.filter(function(e,a){return a>0&&!t&&!(t=e.startsWith("-"))});return a.length>0&&e.splice(1,a.length,"--pattern",'"'+a.join("|")+'"'),e},list:function(e){return $.ls(e)},init:function(e){if(e[1]&&!e[1].startsWith("-")){e[0]="create";var t=e[1].match(/(.+)@latest/);t&&(e[1]=t[1])}return e.filter(function(e){return"--scope"!==e})},create:function(e){return $.init(e)},ln:"link",t:"test",tst:"test",outdated:"outdated",pack:function(e){return e.map(function(e){return e.startsWith("--pack-destination")?e.replace(/^--pack-destination[\s=]/,"--filename "):e})}};function Z(e,t){var a=O((t||"").trim()),n=a.findIndex(function(e){return"--"===e});if(n>
5=0&&a.splice(n,1),P.includes(a[0]))return"yarn "+a.filter(Boolean).join(" ");if(!(a[0]in $))return"npm "+t+"\n# couldn't auto-convert command";var r=$[a[0]];return"function"==typeof r?a=r(a):a[0]=r,"yarn "+a.filter(Boolean).join(" ")}function W(e){return e.map(function(e){switch(e){case"--save":case"-S":return"";case"--no-package-lock":return"--frozen-lockfile";default:return e}})}function U(e){if(e.length>1){var t=e.filter(function(e,t){return 0!==t&&!e.startsWith("-")});t.length>0&&((e=e.filter(function(e,t){return 0===t||e.startsWith("-")})).push("--filter"),e.push(t.join(" ")))}return e}var H={install:function(e){return e.length>1&&e.filter(function(e){return!e.startsWith("-")}).length>1&&(e[0]="add"),W(e)},i:function(e){return H.install(e)},uninstall:function(e){return e[0]="remove",W(e)},un:function(e){return H.uninstall(e)},remove:function(e){return H.uninstall(e)},r:function(e){return H.uninstall(e)},rm:function(e){return H.uninstall(e)},rb:function(e){return H.rebuild(e)},rebuild:function(e){return e[0]="rebuild",U(e)},run:"run",exec:"exec",ls:function(e){return H.list(e)},list:function(e){return e.map(function(e){if(e.startsWith("--depth="))return"--depth ".concat(e.split("=")[1]);switch(e){case"--production":return"--prod";case"--development":return"--dev";default:return e}})},init:function(e){if(e[1]&&!e[1].startsWith("-")){e[0]="create";var t=e[1].match(/(.+)@latest/);t&&(e[1]=t[1])}return e.filter(function(e){return"--scope"!==e})},create:function(e){return H.init(e)},ln:"link",t:"test",test:"test",tst:"test",start:"start",link:"link",unlink:function(e){return U(e)},outdated:"outdated",pack:function(e){return e.map(function(e){return e.startsWith("--pack-destination")?e.replace(/^--pack-destination[\s=]/,"--pack-destination "):e})}};function V(e,t){var a=O((t||"").trim()),n=a.findIndex(function(e){return"--"===e});if(n>=0&&a.splice(n,1),!(a[0]in H))return"npm "+t+"\n# couldn't auto-convert command";var r=H[a[0]];return"function"==typeof r?a=r(a):a[0]=r,"pnpm "+a.filter(Boolean).join(" ")}function G(e){return e.map(function(e){switch(e){case"--save-dev":case"--development":case"-D":return"--dev";case"--save-prod":case"-P":return"--production";case"--no-package-lock":return"--no-save";case"--save-optional":case"-O":return"--optional";case"--save-exact":case"-E":return"--exact";case"--save":case"-S":return"";case"--global":case"-g":return"--global";default:return e}})}function q(e,t){var a=O((t||"").trim()),n=a.findIndex(function(e){return"--"===e});n>=0&&a.splice(n,1);var r="bun";switch(a[0]){case"install":case"i":1===a.length?a=["install"]:a[0]="add",a=G(a);break;case"uninstall":case"un":case"remove":case"r":case"rm":a[0]="remove",a=G(a);break;case"cache":"clean"===a[1]?a=["pm","cache","rm"].concat(a.slice(2)):r="npm";break;case"rebuild":case"rb":a[0]="add",a.push("--force");break;case"run":case"stop":case"start":case"unlink":break;case"list":case"ls":(a=G(a))[0]="ls",a.unshift("pm");break;case"init":case"create":a[1]&&(a[1].startsWith("@")?(r="bunx",a[1]=a[1].replace("/","/create-"),a=a.slice(1)):a[1].startsWith("-")?a[0]="init":(r="bunx",a[1]="create-".concat(a[1].replace("@latest","")),a=a.slice(1)));break;case"link":case"ln":(a=G(a))[0]="link";break;case"test":case"t":case"tst":a[0]="test",a.unshift("run");break;case"exec":r="bunx",a.splice(0,1);break;default:r="npm"}var i=a.filter(Boolean).filter(function(e){return"--"!==e});return"".concat(r," ").concat(i.join(" ")).concat("npm"===r?"\n# couldn't auto-convert command":"").replace("="," ")}var Y=e.i(783036),Q=e.i(398480);let X=["npm","pnpm","yarn","bun"];function J({name:e,sdk:t,className:a}){let[r,i]=(0,c.useState)("idle"),{tabs:s}=(0,Q.useLocalStorageTabs)(X),l=(0,c.useMemo)(()=>s.find(e=>X.includes(e))||"npm",[s]),{style:o}=(0,E.useActiveSDKStyleDisplay)([t]),u=(0,c.useMemo)(()=>`npx shadcn@latest add @clerk/${e}`,[e]),d=(0,c.useMemo)(()=>(function(e,t){if(e.includes("npx")||e.includes("yarn dlx")||e.includes("pnpm dlx")||e.includes("bun x")){var a=e.includes("npx")?"npx":e.includes("yarn dlx")?"yarn dlx":e.includes("pnpm dlx")?"pnpm dlx":"bun x";return e.replace(a,I[t])}return"npm"===t?e.replace(/yarn(?: +([^&\n\r]*))?/gm,K):"pnpm"===t?e.replace(/npm(?: +([^&\n\r]*))?/gm,V):"bun"===t?e.replace(/npm(?: +([^&\n\r]*))?/gm,q):e.replace(/npm(?: +([^&\n\r]*))?/gm,Z)})(u,l)||u,[u,l]),p=(0,c.useMemo)(()=>d.split(/\s+/)[0]||"npx",[d]);return(0,c.useEffect)(()=>
5{if("copied"!==r)return;let e=setTimeout(()=>i("idle"),1500);return()=>clearTimeout(e)},[r]),(0,n.jsxs)(h.TooltipTrigger,{children:[(0,n.jsx)(v.Button,{size:"icon",icon:"copied"===r?(0,n.jsx)(et,{}):(0,n.jsx)(ee,{}),color:"neutral-inverted",onClick:async()=>{if("idle"===r)try{i("copying"),await navigator.clipboard.writeText(d),(0,Y.showToast)({message:`${p} command copied to clipboard`}),i("copied")}catch{(0,Y.showToast)({message:"Failed to copy command"}),i("idle")}},textProps:{className:"sr-only"},className:a,style:o,children:"copied"===r?"Copied":"Copy install command"}),(0,n.jsx)(h.Tooltip,{className:"rounded-lg bg-black px-2 py-1 text-sm text-white dark:bg-white dark:text-black",offset:6,children:"Install with shadcn/ui CLI"})]})}function ee(e){return(0,n.jsxs)("svg",{viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":!0,...e,children:[(0,n.jsx)("rect",{width:"256",height:"256",fill:"none"}),(0,n.jsx)("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}),(0,n.jsx)("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"})]})}function et(e){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:"text-green-500","aria-hidden":!0,...e,children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})})}var ea=e.i(398575),en=e.i(614710),er=(e,t,a)=>(n,r)=>({pastStates:a?.pastStates||[],futureStates:a?.futureStates||[],undo:(i=1)=>{if(r().pastStates.length){let s=a?.partialize?.(t())||t(),l=r().pastStates.splice(-i,i),o=l.shift();e(o),n({pastStates:r().pastStates,futureStates:r().futureStates.concat(a?.diff?.(s,o)||s,l.reverse())})}},redo:(i=1)=>{if(r().futureStates.length){let s=a?.partialize?.(t())||t(),l=r().futureStates.splice(-i,i),o=l.shift();e(o),n({pastStates:r().pastStates.concat(a?.diff?.(s,o)||s,l.reverse()),futureStates:r().futureStates})}},clear:()=>n({pastStates:[],futureStates:[]}),isTracking:!0,pause:()=>n({isTracking:!1}),resume:()=>n({isTracking:!0}),setOnSave:e=>n({_onSave:e}),_onSave:a?.onSave,_handleSet:(e,t,i,s)=>{a?.limit&&r().pastStates.length>=a?.limit&&r().pastStates.shift(),r()._onSave?.(e,i),n({pastStates:r().pastStates.concat(s||e),futureStates:[]})}}),ei=e.i(270443),es=e.i(713804);function el(){let e=(0,es.getAllThemeData)("default");return{theme:"default",variables:e.variables,elements:e.elements,simpleStyles:e.simpleStyles}}let eo=(0,ei.create)()((t=e=>({state:el(),setState:t=>e(e=>({state:"function"==typeof t?t(e.state):t})),setTheme:t=>e(e=>({state:{...e.state,theme:t,...(0,es.getAllThemeData)(t)}})),reset:()=>e({state:el()})}),a={partialize:e=>({state:e.state})},(e,n,r)=>{r.temporal=(0,en.createStore)(a?.wrapTemporal?.(er(e,n,a))||er(e,n,a));let i=a?.handleSet?.(r.temporal.getState()._handleSet)||r.temporal.getState()._handleSet,s=e=>{if(!r.temporal.getState().isTracking)return;let t=a?.partialize?.(n())||n(),s=a?.diff?.(e,t);null===s||a?.equality?.(e,t)||i(e,void 0,t,s)},l=r.setState;return r.setState=(...e)=>{let t=a?.partialize?.(n())||n();l(...e),s(t)},t((...t)=>{let r=a?.partialize?.(n())||n();e(...t),s(r)})}));function ec({className:e,...t}){let a=eo(e=>e.state.theme),r=eo(e=>e.setTheme);return(0,n.jsx)(ea.ThemeSelect,{value:a,onChange:r,className:e,...t})}var eu=e.i(234048),ed=e.i(521379);let ep=(0,r.cva)("",{variants:{size:{default:"[--height:38rem] md:[--height:45rem]",profile:"[--height:38rem] md:[--height:45rem] lg:[--height:52.5rem]",avatar:"[--height:16rem]"}},defaultVariants:{size:"default"}});function ef({className:e,...t}){return(0,n.jsxs)(h.TooltipTrigger,{children:[(0,n.jsxs)(p.Button,{className:(0,i.default)("absolute top-2 right-2 z-50 grid size-8 cursor-help place-content-center rounded-md text-gray-400 dark:text-gray-500",e),...t,children:[(0,n.jsx)("span",{className:"sr-only",children:"Preview information"}),(0,n.jsx)("svg",{fill:"none",viewBox:"0 0 16 16",className:"size-4","aria-hidden":!0,
5children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 3.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Zm6-2.5a.75.75 0 0 1 .75.75v.01a.75.75 0 1 1-1.5 0v-.01A.75.75 0 0 1 8 5.5ZM8 8a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 8Z",clipRule:"evenodd"})})]}),(0,n.jsx)(h.Tooltip,{className:"max-w-64 rounded-lg bg-black px-2 py-1 text-sm/4 text-white dark:bg-white dark:text-black",offset:6,children:"Rendered with mocked data. Not all functionality is supported. If you want to test out the full components, add them to your application."})]})}e.s(["Preview",0,function({src:e,shadcn:t,className:a,...r}){let[h,_]=(0,c.useState)(!1),[N,T]=(0,c.useState)(!1),[D,M]=(0,c.useState)(0),[L,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),P=(0,c.useRef)(null),F=(0,c.useRef)(null),I=`https://previews.clerkstage.dev${e}`;c.default.useEffect(()=>{C(!0)},[]);let O=c.default.useMemo(()=>t?Object.entries(t).map(([e,t])=>({sdk:e,name:t})):[],[t]),z=(0,c.useId)(),B=(0,c.useMemo)(()=>h?{role:"dialog","aria-labelledby":z}:{},[h,z]),K=eo(e=>e.state),R=function(){let e=eo(e=>e.state),t=eo(e=>e.setState),{appearance:a,isThemeReady:n,setTheme:r}=(0,eu.useAppearance)();return{...(0,ed.useThemeEditorAdapter)(e,t,a,r),isThemeReady:n}}(),{theme:$,appearance:Z,handleReset:W,getThemeData:U,isThemeReady:H}=R;(0,d.usePreventScroll)({isDisabled:!h});let{handleIframeLoad:V,iframeReady:G}=(0,w.useIframeSync)({iframeRef:F,getThemeData:()=>({theme:$,appearance:Z,variables:K.variables,elements:K.elements,simpleStyles:K.simpleStyles})});c.default.useEffect(()=>{h&&E.current?.focus()},[h]),(0,x.useHotkeys)("esc",()=>{h&&((0,g.flushSync)(()=>{_(!1)}),P.current?.focus())}),(0,x.useHotkeys)("mod+z",e=>{if(!h)return;e.preventDefault();let{undo:t}=eo.temporal.getState();t()},{enabled:h}),(0,x.useHotkeys)("mod+shift+z",e=>{if(!h)return;e.preventDefault();let{redo:t}=eo.temporal.getState();t()},{enabled:h}),c.default.useEffect(()=>{if(h)T(!0);else{let e=setTimeout(()=>{T(!1)},300);return()=>clearTimeout(e)}},[h]),c.default.useEffect(()=>{if(H&&G){let e=setTimeout(()=>{M(1)},w.OPACITY_TRANSITION_DELAY_MS);return()=>clearTimeout(e)}M(0)},[H,G]),c.default.useEffect(()=>{if(!H||!G)return;M(0);let e=setTimeout(()=>{M(1)},w.OPACITY_TRANSITION_DELAY_MS);return()=>clearTimeout(e)},[Z,H,G]);let q=(0,c.useId)();return(0,n.jsx)(o.MotionConfig,{transition:{layout:{type:"spring",visualDuration:.3,bounce:0}},children:(0,n.jsxs)("div",{className:(0,i.default)("relative",ep({size:e.startsWith("/user-profile")||e.startsWith("/organization-profile")?"profile":e.startsWith("/user-avatar")?"avatar":"default"}),"[--page-color:var(--color-white)] dark:[--page-color:var(--color-gray-950)]","[--border-color:var(--color-gray-100)] dark:[--border-color:var(--color-gray-800)]"),children:[(0,n.jsxs)("figure",{className:(0,i.default)("relative h-(--height) w-full",a),...r,children:[(0,n.jsx)(ef,{className:h?"opacity-0":"opacity-100"}),(0,n.jsx)(u.FocusScope,{contain:h,restoreFocus:h,autoFocus:h,children:(0,n.jsxs)(l.motion.div,{ref:E,id:q,...B,tabIndex:h?-1:void 0,layout:!0,layoutDependency:h,style:{position:h?"fixed":"absolute",transformOrigin:"center",inset:h?"0.25rem":"0",borderRadius:12,boxShadow:"inset 0 0 0 1px var(--border-color)"},className:(0,i.default)("flex overflow-hidden bg-gray-50 outline-none dark:bg-gray-900",N&&"z-9999"),children:[(0,n.jsxs)(l.motion.div,{layout:!0,layoutDependency:h,className:"relative flex flex-1 items-center justify-center",children:[L&&(0,n.jsx)(l.motion.iframe,{layout:!0,layoutDependency:h,ref:F,src:I,className:"h-(--height) w-full [--content-width:43.5rem] lg:w-[min(var(--content-width),calc(100vw-19.5rem-1.75rem))] xl:[--content-width:64rem]",style:{backgroundColor:w.IFRAME_BACKGROUND_COLORS[Z],opacity:H&&G?D:0,transition:"opacity 0.2s ease-in-out"},onLoad:V}),(!H||!G)&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)(k.LoadingSpinner,{})})]}),(0,n.jsx)(l.motion.div,{layout:!0,layoutDependency:h,style:{width:h?"18rem":"0"}}),(0,n.jsx)(s.AnimatePresence,{initial:!1,children:h&&(0,n.jsxs)(l.motion.div,{className:"absolute inset-y-px right-px flex w-72 flex-col overflow-hidden rounded-r-[11px] border-l border-(--border-color) bg-(--page-color) opacity-0",initial:{opacity:0}
5,animate:{opacity:1,transition:{ease:"easeIn",duration:.1,delay:.3}},exit:{opacity:0,transition:{duration:0}},children:[(0,n.jsxs)("header",{className:"flex items-center justify-between bg-(--page-color) p-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 p-2",children:[(0,n.jsx)(y.ThemeEditorIcon,{}),(0,n.jsx)("h2",{id:z,className:"font-medium text-(--typography-heading-color)",children:"Theme Editor"})]}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsxs)(f.MenuTrigger,{children:[(0,n.jsxs)(p.Button,{className:"flex size-8 items-center justify-center rounded-md",children:[(0,n.jsx)("span",{className:"sr-only",children:"More actions"}),(0,n.jsx)(y.EllipsisIcon,{className:"size-4"})]}),(0,n.jsx)(m.Popover,{placement:"top end",className:"w-52 rounded-lg bg-white text-sm/5 text-gray-950 shadow-[0_5px_15px_rgba(0,0,0,0.08),0_15px_35px_-5px_rgba(25,28,33,0.2)] ring-1 ring-black/10 outline-none dark:bg-gray-950 dark:text-gray-50 dark:shadow-[0_-1px_rgba(255,255,255,0.05),0_0_0_1px_rgba(255,255,255,0.1),0_0_0_1px_#212126,0_2px_3px_-1px_rgba(0,0,0,0.4)]",children:(0,n.jsx)(f.Menu,{children:[{label:"Close",key:"esc",onAction:()=>_(!1)},{label:"Undo",key:"âZ",onAction:()=>{let{undo:e}=eo.temporal.getState();e()}},{label:"Redo",key:"ââ§Z",onAction:()=>{let{redo:e}=eo.temporal.getState();e()}}].map(({label:e,key:t,onAction:a})=>(0,n.jsxs)(f.MenuItem,{onAction:a,className:"relative isolate flex cursor-default justify-between px-3 py-[0.4375rem] outline-none before:absolute before:inset-x-1 before:inset-y-[0.0625rem] before:-z-10 before:rounded first:pt-2.5 first:before:top-1 last:pb-2.5 last:before:bottom-1 data-focused:before:bg-gray-50 dark:data-focused:before:bg-gray-900",children:[(0,n.jsx)("span",{className:"text-[0.75rem]/5 font-medium text-gray-950 dark:text-white",children:e}),(0,n.jsx)("kbd",{className:"font-sans text-[0.75rem]/5 text-gray-600 dark:text-gray-400",children:t})]},t))})})]})})]}),(0,n.jsx)(b.SentinelFades,{className:"px-4 pb-4",children:(0,n.jsx)(j.ThemeEditorControls,{themeEditor:R})}),(0,n.jsxs)("footer",{className:"flex flex-col gap-y-2 p-4",children:[U&&(0,n.jsx)(S.CopyThemeButton,{onGetThemeData:U}),W&&(0,n.jsx)(S.ResetThemeButton,{onReset:W})]})]})})]})}),(0,n.jsx)(s.AnimatePresence,{initial:!1,children:h&&(0,n.jsx)(l.motion.div,{className:"pointer-events-none fixed inset-0 z-9998 rounded-md bg-(--page-color)","aria-hidden":!0,transition:{duration:.2},initial:{opacity:0}
5,animate:{opacity:1},exit:{opacity:0}})})]}),(0,n.jsxs)(l.motion.div,{className:(0,i.default)("z-51 mx-auto flex w-fit -translate-y-1/2 items-center justify-center rounded-xl py-2 pr-2 pl-4 backdrop-blur-[7px] [--gap-x:--spacing(3)] sm:[--gap-x:--spacing(5)]","border border-[rgba(255,255,255,0.90)] bg-[#F8F8F8]/90 bg-linear-to-b from-[rgba(255,255,255,0.70)] to-[rgba(255,255,255,0.00)] shadow-[0_5px_10px_0_rgba(0,0,0,0.08),0_1px_10px_-15px_rgba(0,0,0,0.10),0_0_0_1px_rgba(0,0,0,0.06)]","dark:border-(--border-color) dark:bg-(--page-color) dark:bg-none dark:shadow-none"),animate:{opacity:+!N,filter:N?"blur(2px)":"blur(0px)"},transition:{duration:.2},children:[(0,n.jsx)(ec,{className:"flex-row items-center max-sm:**:data-[slot='select-label']:sr-only [&_[data-slot='select-trigger']]:w-32"}),(0,n.jsx)(A,{className:"ml-(--gap-x)"}),(0,n.jsx)("div",{className:"ml-(--gap-x) flex items-center gap-2 *:h-[1.875rem] *:px-6 max-lg:hidden",children:(0,n.jsx)(v.LinkButton,{href:"/components/theme-editor",variant:"primary",color:"neutral-inverted",children:"Theme Editor"})}),O.map(({sdk:e,name:t})=>(0,n.jsx)(J,{name:t,sdk:e,className:"ml-2"},e))]})]})})}],528979)}]);
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.