1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9],{6741:function(e,t,o){o.d(t,{$j:function(){return ec},Bj:function(){return usePrefersDark},E5:function(){return responsiveRadiusStyle},J2:function(){return e4},Kq:function(){return ti},LL:function(){return isHTMLInputElement},LZ:function(){return y},Lg:function(){return v},Lt:function(){return _responsive},OK:function(){return tW},Of:function(){return useClickOutsideEvent},Q5:function(){return useArrayProp},R:function(){return tH},RV:function(){return isHTMLSelectElement},Re:function(){return isHTMLElement},Rm:function(){return _isEnterToClickElement},SV:function(){return tL},Tb:function(){return usePrefersReducedMotion},W2:function(){return eR},Xp:function(){return PortalProvider},ZE:function(){return responsivePaddingStyle},ZH:function(){return isHTMLTextAreaElement},Zb:function(){return em},bT:function(){return w},bg:function(){return isHTMLAnchorElement},dG:function(){return containsOrEqualsElement},f6:function(){return ThemeProvider},fe:function(){return isHTMLButtonElement},g9:function(){return useTheme_v2},gG:function(){return _cardColorStyle},hO:function(){return rem},h_:function(){return Portal},kC:function(){return ed},kS:function(){return MenuGroup},li:function(){return LayerProvider},mh:function(){return eD},oi:function(){return tz},qh:function(){return useGlobalKeyDown},rj:function(){return eC},sJ:function(){return useLayer},sN:function(){return tD},sz:function(){return useBoundaryElement},td:function(){return tX},tx:function(){return createGlobalScopedContext},u:function(){return tT},v2:function(){return tG},vI:function(){return usePortal},xu:function(){return et},xv:function(){return er},zx:function(){return ef}});var r=o(7607),n=o(5893),i=o(5490),a=o(7294),d=o(5480),l=o(9864),s=o(9593),c=o(168),u=o(8573),p=o(1371),f=o(5463),h=o(5852),m=o(8354),g=o(3935),b=o(1622);let v=(0,r.fi)(),y=[],w={},x={card:{initial:{scale:.97,willChange:"transform"},hidden:{opacity:0},visible:{opacity:1,transition:{when:"beforeChildren",duration:.1}},scaleIn:{scale:1},scaleOut:{scale:.97}},children:{hidden:{opacity:0},visible:{opacity:1}},transition:{type:"spring",visualDuration:.2,bounce:.25}};function _isEnterToClickElement(e){return isHTMLAnchorElement(e)||isHTMLButtonElement(e)}function isHTMLElement(e){return e instanceof Node&&e.nodeType===Node.ELEMENT_NODE}function isHTMLAnchorElement(e){return isHTMLElement(e)&&"A"===e.nodeName}function isHTMLInputElement(e){return isHTMLElement(e)&&"INPUT"===e.nodeName}function isHTMLButtonElement(e){return isHTMLElement(e)&&"BUTTON"===e.nodeName}function isHTMLSelectElement(e){return isHTMLElement(e)&&"SELECT"===e.nodeName}function isHTMLTextAreaElement(e){return isHTMLElement(e)&&"TEXTAREA"===e.nodeName}function containsOrEqualsElement(e,t){return e.contains(t)||e===t}function rem(e){return 0===e?0:`${e/16}rem`}function _responsive(e,t,o){return(t?.map(o)||[]).map((t,o)=>0===o?t:{[`@media screen and (min-width: ${e[o-1]}px)`]:t})}function _getArrayProp(e,t){return void 0===e?t||y:Array.isArray(e)?e:[e]}function _getResponsiveSpace(e,t,o=y){if(!Array.isArray(o))throw Error("the property must be array of numbers");if(0===o.length)return null;let{media:n,space:i}=(0,r.aQ)(e);return _responsive(n,o,e=>{var o;return o=rem(i[e]),t.reduce((e,t)=>(e[t]=o,e),{})})}function responsiveFont(e,t){let{$size:o,$weight:n}=t,{font:i,media:a}=(0,r.aQ)(t.theme),{family:d,sizes:l,weights:s}=i[e],c=n&&s[n]||s.regular,u=l[2],p={position:"relative",fontFamily:d,fontWeight:c,padding:"1px 0",margin:0,"&:before":{content:'""',display:"block",height:0},"&:after":{content:'""',display:"block",height:0},"& > code, & > span":{display:"block"},"&:not([hidden])":{display:"block"}};if(!o)return responsiveFont.warned||(console.warn("No size specified for responsive font",{fontKey:e,$size:o,props:t,base:p}),responsiveFont.warned=!0),[p];let f=_responsive(a,o,e=>(function(e){let{ascenderHeight:t,descenderHeight:o,fontSize:r,iconSize:n,letterSpacing:i,lineHeight:a}=e,d=t+o,l=a-d,s=2*Math.floor(1.125*r/2)+1;return{fontSize:rem(r),lineHeight:`calc(${a} / ${r})`,letterSpacing:rem(i),transform:`translateY(${rem(o)})`,"&:before":{marginTop:`calc(${rem(0-d)} - 1px)`},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:`calc(${s} / 16 * 1rem)`,margin:rem((l-s)/2)},"& [data-sanity-icon]":{fontSize:`calc(${n} / 16 * 1rem)`,margin:rem((l-n)/2)}}})(l[e]||u));return[p,...f]}function responsiveTextAlignStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$align,e=>({textAlign:e}))}function useArrayProp(e,t){let o;let r=(0,i.c)(3);r[0]!==t||r[1]!==e?(o=()=>[_getArrayProp(e,t),JSON.stringify(e??t)],r[0]=t,r[1]=e,r[2]=o):o=r[2];let[n,d]=(0,a.useState)(o),[l,s]=n,c=JSON.stringify(e??t);return c!==s&&d([_getArrayProp(e,t),c]),l}function useClickOutsideEvent(e,t,o){let r,n,d;let l=(0,i.c)(9),s=void 0===t?_temp$9:t;l[0]!==o||l[1]!==s||l[2]!==e?(r=t=>{if(!e)return;let r=t.target;if(!(r instanceof Node))return;let n=o?.();if(n&&!n.contains(r))return;let i=s().flat();for(let e of i)if(e&&(r===e||e.contains(r)))return;e(t)},l[0]=o,l[1]=s,l[2]=e,l[3]=r):r=l[3];let c=(0,b.i)(r),u=!!e;l[4]!==u||l[5]!==c?(n=()=>
1{if(!u)return;let handleEvent=e=>c(e);return document.addEventListener("mousedown",handleEvent),()=>{document.removeEventListener("mousedown",handleEvent)}},l[4]=u,l[5]=c,l[6]=n):n=l[6],l[7]!==u?(d=[u],l[7]=u,l[8]=d):d=l[8],(0,a.useEffect)(n,d),(0,a.useDebugValue)(e?"MouseDown On":"MouseDown Off")}function _temp$9(){return y}function useCustomValidity(e,t){let o,r;let n=(0,i.c)(6);n[0]!==t||n[1]!==e.current?(o=()=>{e.current?.setCustomValidity(t||"")},n[0]=t,n[1]=e.current,n[2]=o):o=n[2],n[3]!==t||n[4]!==e?(r=[t,e],n[3]=t,n[4]=e,n[5]=r):r=n[5],(0,a.useEffect)(o,r)}let $="u">typeof document&&"u">typeof window&&window.ResizeObserver?window.ResizeObserver:m.do,S=function(){let e=new WeakMap,t=new WeakMap;return{subscribe(o,r){let n=t.get(o)||[],i=e.get(o);return t.has(o)||(t.set(o,n),i=({subscribe(e,t){let o=new $(([e])=>{t({_contentRect:e.contentRect,border:{width:e.borderBoxSize[0].inlineSize,height:e.borderBoxSize[0].blockSize},content:{width:e.contentRect.width,height:e.contentRect.height}})});return o.observe(e),()=>{o.unobserve(e),o.disconnect()}}}).subscribe(o,e=>{for(let t of n)t(e)})),n.push(r),()=>{let e=n.indexOf(r);e>-1&&n.splice(e,1),0===n.length&&i&&i()}}}}();function useElementSize(e){let t,o;let r=(0,i.c)(3),[n,d]=(0,a.useState)(null);return r[0]!==e?(t=()=>{if(e)return S.subscribe(e,d)},o=[e],r[0]=e,r[1]=t,r[2]=o):(t=r[1],o=r[2]),(0,a.useEffect)(t,o),n}function useGlobalKeyDown(e){let t,o,r;let n=(0,i.c)(5);n[0]!==e?(t=t=>e(t),n[0]=e,n[1]=t):t=n[1];let d=(0,b.i)(t);n[2]!==d?(o=()=>{let handler=e=>d(e);return window.addEventListener("keydown",handler),()=>window.removeEventListener("keydown",handler)},n[2]=d,n[3]=o):o=n[3],n[4]===Symbol.for("react.memo_cache_sentinel")?(r=[],n[4]=r):r=n[4],(0,a.useEffect)(o,r)}function useMatchMedia(e,t){let o,r;let n=(0,i.c)(4);return(0,a.useDebugValue)(e),n[0]!==e?(o=t=>{let o=window.matchMedia(e);return o.addEventListener("change",t),()=>o.removeEventListener("change",t)},n[0]=e,n[1]=o):o=n[1],n[2]!==e?(r=()=>window.matchMedia(e).matches,n[2]=e,n[3]=r):r=n[3],(0,a.useSyncExternalStore)(o,r,t)}let R=function(){if("u">typeof globalThis)return globalThis;if("u">typeof window)return window;if("u">typeof self)return self;if("u">typeof global)return global;throw Error("@sanity/ui: could not locate global scope")}();function createGlobalScopedContext(e,t){let o=Symbol.for(e);return typeof document>"u"?(0,a.createContext)(t):(R[o]=R[o]||(0,a.createContext)(t),R[o])}let k=createGlobalScopedContext("@sanity/ui/context/theme",null);function ThemeProvider(e){let t,o,l,s;let c=(0,i.c)(15),u=(0,a.useContext)(k),{children:p}=e,f=e.scheme??(u?.scheme||"light"),h=e.theme??(u?.theme||null),m=e.tone??(u?.tone||"default");e:{let e;if(!h){t=null;break e}c[0]!==h||c[1]!==f||c[2]!==m?(e={version:0,theme:h,scheme:f,tone:m},c[0]=h,c[1]=f,c[2]=m,c[3]=e):e=c[3],t=e}let g=t;t:{let e;if(!h){o=null;break t}c[4]!==h||c[5]!==f||c[6]!==m?(e=(0,r.BA)(h,f,m),c[4]=h,c[5]=f,c[6]=m,c[7]=e):e=c[7],o=e}let b=o;if(!b){let e;return c[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'}),c[8]=e):e=c[8],e}return c[9]!==p||c[10]!==b?(l=(0,n.jsx)(d.f6,{theme:b,children:p}),c[9]=p,c[10]=b,c[11]=l):l=c[11],c[12]!==l||c[13]!==g?(s=(0,n.jsx)(k.Provider,{value:g,children:l}),c[12]=l,c[13]=g,c[14]=s):s=c[14],s}function useRootTheme(){let e=(0,a.useContext)(k);if(!e)throw Error("useRootTheme(): missing context value");return e}function ThemeColorProvider(e){let t;let o=(0,i.c)(5),{children:r,scheme:a,tone:d}=e,l=useRootTheme(),s=a||l.scheme;return o[0]!==r||o[1]!==l.theme||o[2]!==s||o[3]!==d?(t=(0,n.jsx)(ThemeProvider,{scheme:s,theme:l.theme,tone:d,children:r}),o[0]=r,o[1]=l.theme,o[2]=s,o[3]=d,o[4]=t):t=o[4],t}function useTheme_v2(){let e;let t=(0,i.c)(2),o=(0,d.Fg)();return t[0]!==o?(e=(0,r.aQ)(o),t[0]=o,t[1]=e):e=t[1],e}function getServerSnapshot(){return 0}function useMediaIndex(){let e,t;let o=(0,i.c)(2),{media:r}=useTheme_v2();return o[0]!==r?(t=function(e){let t;let o=e.length,getSizes=()=>
1{if(!t){t=[];for(let n=o;n>-1;n-=1){var r;let o=0===(r=n)?`screen and (max-width: ${e[r]-1}px)`:r===e.length?`screen and (min-width: ${e[r-1]}px)`:`screen and (min-width: ${e[r-1]}px) and (max-width: ${e[r]-1}px)`;t.push({index:n,mq:window.matchMedia(o)})}}return t};return{getSnapshot:()=>{for(let{index:e,mq:t}of getSizes())if(t.matches)return e;return 0},subscribe:e=>{let t=[];for(let{mq:o}of getSizes()){let handleChange=()=>{o.matches&&e()};o.addEventListener("change",handleChange),t.push(()=>o.removeEventListener("change",handleChange))}return()=>{for(let e of t)e()}}}}(r),o[0]=r,o[1]=t):t=o[1],e=t,(0,a.useSyncExternalStore)(e.subscribe,e.getSnapshot,getServerSnapshot)}function usePrefersDark(e){return useMatchMedia("(prefers-color-scheme: dark)",void 0===e?_temp$8:e)}function _temp$8(){return!1}function usePrefersReducedMotion(e){return useMatchMedia("(prefers-reduced-motion: reduce)",void 0===e?_temp$7:e)}function _temp$7(){return!1}function border(e){let{card:t,media:o}=(0,r.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(o,e.$border,e=>e?{"&&":{border:n}}:{"&&":{border:0}})}function borderTop(e){let{card:t,media:o}=(0,r.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(o,e.$borderTop,e=>e?{"&&":{borderTop:n}}:{"&&":{borderTop:0}})}function borderRight(e){let{card:t,media:o}=(0,r.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(o,e.$borderRight,e=>e?{"&&":{borderRight:n}}:{"&&":{borderRight:0}})}function borderBottom(e){let{card:t,media:o}=(0,r.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(o,e.$borderBottom,e=>e?{"&&":{borderBottom:n}}:{"&&":{borderBottom:0}})}function borderLeft(e){let{card:t,media:o}=(0,r.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(o,e.$borderLeft,e=>e?{"&&":{borderLeft:n}}:{"&&":{borderLeft:0}})}ThemeProvider.displayName="ThemeProvider",ThemeColorProvider.displayName="ThemeColorProvider";let C={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},_={content:"content-box",border:"border-box"},z={stretch:"stretch",fill:"100%"};function responsiveBoxDisplayStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$display,e=>({"&:not([hidden])":{display:e}}))}function responsiveBoxSizingStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$sizing,e=>({boxSizing:_[e]}))}function responsiveBoxHeightStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$height,e=>({height:z[e]}))}function responsiveBoxOverflowStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$overflow,e=>({overflow:e}))}let E={minWidth:0,minHeight:0};function flexItemStyle(){return[E,responsiveFlexItemStyle]}function responsiveFlexItemStyle(e){let{media:t}=(0,r.aQ)(e.theme);return e.$flex?_responsive(t,e.$flex,e=>({flex:e})):y}let j={"&&:not([hidden])":{display:"flex"}};function responsiveFlexAlignStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$align,e=>({alignItems:e}))}function responsiveFlexGapStyle(e){let{media:t,space:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$gap,e=>({gap:e?rem(o[e]):void 0}))}function responsiveFlexWrapStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$wrap,e=>({flexWrap:e}))}function responsiveFlexJustifyStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$justify,e=>({justifyContent:e}))}function responsiveFlexDirectionStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$direction,e=>({flexDirection:e}))}function focusRingBorderStyle(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function focusRingStyle(e){let{base:t,border:o,focusRing:r}=e,n=r.offset+r.width,i=0-r.offset,a=t?t.bg:"var(--card-bg-color)";return[i>0&&`inset 0 0 0 ${i}px var(--card-focus-ring-color)`,o&&focusRingBorderStyle(o),i<0&&`0 0 0 ${0-i}px ${a}`,n>0&&`0 0 0 ${n}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}let A={auto:"auto",full:"1 / -1"},P={auto:"auto",full:"1 / -1"};function responsiveGridItemRowStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$row,e=>"number"==typeof e?{gridRow:`span ${e} / span ${e}`}
1:{gridRow:A[e]})}function responsiveGridItemRowStartStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$rowStart,e=>({gridRowStart:e}))}function responsiveGridItemRowEndStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$rowEnd,e=>({gridRowEnd:e}))}function responsiveGridItemColumnStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$column,e=>"number"==typeof e?{gridColumn:`span ${e} / span ${e}`}:{gridColumn:P[e]})}function responsiveGridItemColumnStartStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$columnStart,e=>({gridColumnStart:e}))}function responsiveGridItemColumnEndStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$columnEnd,e=>({gridColumnEnd:e}))}let I={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},T={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},N={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};function responsiveGridAutoFlowStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$autoFlow,e=>({gridAutoFlow:e}))}function responsiveGridAutoRowsStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$autoRows,e=>({gridAutoRows:e&&N[e]}))}function responsiveGridAutoColsStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$autoCols,e=>({gridAutoColumns:e&&T[e]}))}function responsiveGridColumnsStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$columns,e=>({gridTemplateColumns:e&&`repeat(${e},minmax(0,1fr));`}))}function responsiveGridRowsStyle(e){let{media:t}=(0,r.aQ)(e.theme);return _responsive(t,e.$rows,e=>({gridTemplateRows:e&&`repeat(${e},minmax(0,1fr));`}))}function responsiveGridGapStyle(e){let{media:t,space:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$gap,e=>({gridGap:e?rem(o[e]):void 0}))}function responsiveGridGapXStyle(e){let{media:t,space:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$gapX,e=>({columnGap:e?rem(o[e]):void 0}))}function responsiveGridGapYStyle(e){let{media:t,space:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$gapY,e=>({rowGap:e?rem(o[e]):void 0}))}function responsiveInputPaddingStyle(e){let{$fontSize:t,$iconLeft:o,$iconRight:n,$padding:i,$space:a}=e,{font:d,media:l,space:s}=(0,r.aQ)(e.theme),c=Math.max(i.length,a.length,t.length),u=[],p=[],f=[];for(let e=0;e<c;e+=1)f[e]=void 0===t[e]?f[e-1]:t[e],u[e]=void 0===i[e]?u[e-1]:i[e],p[e]=void 0===a[e]?p[e-1]:a[e];return _responsive(l,u,(e,t)=>{let r=d.text.sizes[f[t]]||d.text.sizes[2],i=r.lineHeight-r.ascenderHeight-r.descenderHeight,a=s[u[t]],l=s[p[t]],c={paddingTop:rem(a-r.ascenderHeight),paddingRight:rem(a),paddingBottom:rem(a-r.descenderHeight),paddingLeft:rem(a)};return n&&(c.paddingRight=rem(a+i+l)),o&&(c.paddingLeft=rem(a+i+l)),c})}function responsiveInputPaddingIconRightStyle(e){return responsiveInputPaddingStyle({...e,$iconRight:!0})}let M=d.iv` 2 &:not([hidden]) { 3 display: flex; 4 } 5 6 align-items: center; 7`;function textInputRootStyle(){return M}function textInputBaseStyle(e){let{$scheme:t,$tone:o,$weight:n}=e,{color:i,font:a}=(0,r.aQ)(e.theme);return d.iv` 8 appearance: none; 9 background: none; 10 border: 0; 11 border-radius: 0; 12 outline: none; 13 width: 100%; 14 box-sizing: border-box; 15 font-family: ${a.text.family}; 16 font-weight: ${n&&a.text.weights[n]||a.text.weights.regular}; 17 margin: 0; 18 position: relative; 19 z-index: 1; 20 display: block; 21 22 /* NOTE: This is a hack to disable Chromeâs autofill styles */ 23 &:-webkit-autofill, 24 &:-webkit-autofill:hover, 25 &:-webkit-autofill:focus, 26 &:-webkit-autofill:active { 27 -webkit-text-fill-color: var(--input-fg-color) !important; 28 transition: background-color 5000s; 29 transition-delay: 86400s /* 24h */; 30 } 31 32 /* &:is(textarea) */ 33 &[data-as='textarea'] { 34 resize: none; 35 } 36 37 color: var(--input-fg-color); 38 39 &::placeholder { 40 color: var(--input-placeholder-color); 41 } 42 43 &[data-scheme='${t}'][data-tone='${o}'] { 44 --input-fg-color: ${i.input.default.enabled.fg}; 45 --input-placeholder-color: ${i.input.default.enabled.placeholder}; 46 47 /* enabled */
48 &:not(:invalid):not(:disabled):not(:read-only) { 49 --input-fg-color: ${i.input.default.enabled.fg}; 50 --input-placeholder-color: ${i.input.default.enabled.placeholder}; 51 } 52 53 /* disabled */ 54 &:not(:invalid):disabled { 55 --input-fg-color: ${i.input.default.disabled.fg}; 56 --input-placeholder-color: ${i.input.default.disabled.placeholder}; 57 } 58 59 /* invalid */ 60 &:invalid { 61 --input-fg-color: ${i.input.invalid.enabled.fg}; 62 --input-placeholder-color: ${i.input.invalid.enabled.placeholder}; 63 } 64 65 /* readOnly */ 66 &:read-only { 67 --input-fg-color: ${i.input.default.readOnly.fg}; 68 --input-placeholder-color: ${i.input.default.readOnly.placeholder}; 69 } 70 } 71 `}function textInputFontSizeStyle(e){let{font:t,media:o}=(0,r.aQ)(e.theme);return _responsive(o,e.$fontSize,e=>{let o=t.text.sizes[e]||t.text.sizes[2];return{fontSize:rem(o.fontSize),lineHeight:o.lineHeight/o.fontSize}})}function textInputRepresentationStyle(e){let{$hasPrefix:t,$hasSuffix:o,$scheme:n,$tone:i,$unstableDisableFocusRing:a}=e,{color:l,input:s}=(0,r.aQ)(e.theme);return d.iv` 72 --input-box-shadow: none; 73 74 position: absolute; 75 top: 0; 76 left: 0; 77 right: 0; 78 bottom: 0; 79 display: block; 80 pointer-events: none; 81 z-index: 0; 82 83 background-color: var(--card-bg-color); 84 box-shadow: var(--input-box-shadow); 85 86 border-top-left-radius: ${t?0:void 0}; 87 border-bottom-left-radius: ${t?0:void 0}; 88 border-top-right-radius: ${o?0:void 0}; 89 border-bottom-right-radius: ${o?0:void 0}; 90 91 &[data-scheme='${n}'][data-tone='${i}'] { 92 --card-bg-color: ${l.input.default.enabled.bg}; 93 --card-fg-color: ${l.input.default.enabled.fg}; 94 95 /* enabled */ 96 *:not(:disabled) + &[data-border] { 97 --input-box-shadow: ${focusRingBorderStyle({color:l.input.default.enabled.border,width:s.border.width})}; 98 } 99 100 /* invalid */ 101 *:not(:disabled):invalid + & { 102 --card-bg-color: ${l.input.invalid.enabled.bg}; 103 --card-fg-color: ${l.input.invalid.enabled.fg}; 104 105 &[data-border] { 106 --input-box-shadow: ${focusRingBorderStyle({color:l.input.invalid.enabled.border,width:s.border.width})}; 107 } 108 } 109 110 /* focused */ 111 *:not(:disabled):focus + & { 112 &[data-border] { 113 --input-box-shadow: ${a?void 0:focusRingStyle({border:{color:l.input.default.enabled.border,width:s.border.width},focusRing:s.text.focusRing})}; 114 } 115 116 &:not([data-border]) { 117 --input-box-shadow: ${a?void 0:focusRingStyle({focusRing:s.text.focusRing})}; 118 } 119 } 120 121 /* disabled */ 122 *:not(:invalid):disabled + & { 123 --card-bg-color: ${l.input.default.disabled.bg} !important; 124 --card-fg-color: ${l.input.default.disabled.fg} !important; 125 --card-icon-color: ${l.input.default.disabled.fg} !important; 126 127 &[data-border] { 128 --input-box-shadow: ${focusRingBorderStyle({color:l.input.default.disabled.border,width:s.border.width})}; 129 } 130 } 131 132 *:invalid:disabled + & { 133 --card-bg-color: ${l.input.invalid.disabled.bg} !important; 134 --card-fg-color: ${l.input.invalid.disabled.fg} !important; 135 --card-icon-color: ${l.input.invalid.disabled.fg} !important; 136 137 &[data-border] { 138 --input-box-shadow: ${focusRingBorderStyle({color:l.input.invalid.disabled.border,width:s.border.width})}; 139 } 140 } 141 142 /* readOnly */ 143 *:not(:invalid):read-only + & { 144 --card-bg-color: ${l.input.default.readOnly.bg} !important; 145 --card-fg-color: ${l.input.default.readOnly.fg} !important; 146 } 147 148 *:invalid:read-only + & { 149 --card-bg-color: ${l.input.invalid.readOnly.bg} !important; 150 --card-fg-color: ${l.input.invalid.readOnly.fg} !important; 151 } 152 153 /* hovered */ 154 @media (hover: hover) { 155 *:not(:disabled):not(:read-only):not(:invalid):hover + & { 156 --card-bg-color: ${l.input.default.hovered.bg}; 157 --card-fg-color: ${l.input.default.hovered.fg}; 158 } 159 160 *:invalid:not(:disabled):not(:read-only):hover + & { 161 --card-bg-color: ${l.input.invalid.hovered.bg}; 162 --card-fg-color: ${l.input.invalid.hovered.fg}; 163 } 164
165 *:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border] { 166 --input-box-shadow: ${focusRingBorderStyle({color:l.input.default.hovered.border,width:s.border.width})}; 167 } 168 169 *:invalid:not(:disabled):not(:read-only):not(:focus):hover + &[data-border] { 170 --input-box-shadow: ${focusRingBorderStyle({color:l.input.invalid.hovered.border,width:s.border.width})}; 171 } 172 } 173 } 174 `}function responsivePaddingStyle(e){let{theme:t}=e;return[_getResponsiveSpace(t,["padding"],e.$padding),_getResponsiveSpace(t,["paddingLeft","paddingRight"],e.$paddingX),_getResponsiveSpace(t,["paddingTop","paddingBottom"],e.$paddingY),_getResponsiveSpace(t,["paddingTop"],e.$paddingTop),_getResponsiveSpace(t,["paddingRight"],e.$paddingRight),_getResponsiveSpace(t,["paddingBottom"],e.$paddingBottom),_getResponsiveSpace(t,["paddingLeft"],e.$paddingLeft)].filter(Boolean)}function responsiveRadiusStyle(e){let{media:t,radius:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$radius,e=>{let t=0;return"number"==typeof e&&(t=rem(o[e])),"full"===e&&(t="9999px"),{borderRadius:t}})}function toBoxShadow(e,t){return`${e.map(rem).join(" ")} ${t}`}let L=d.zo.span.withConfig({displayName:"SpanWithTextOverflow",componentId:"sc-ol2i3b-0"})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`,F=d.zo.div.withConfig({displayName:"StyledLabel",componentId:"sc-1luap7z-0"})(function(e){return responsiveFont("label",e)},responsiveTextAlignStyle,function(e){let{$accent:t,$muted:o}=e,{font:n}=(0,r.aQ)(e.theme);return d.iv` 175 text-transform: uppercase; 176 177 ${t&&d.iv` 178 color: var(--card-accent-fg-color); 179 `} 180 181 ${o&&d.iv` 182 color: var(--card-muted-fg-color); 183 `} 184 185 & code { 186 font-family: ${n.code.family}; 187 border-radius: 1px; 188 } 189 190 & a { 191 text-decoration: none; 192 border-radius: 1px; 193 } 194 195 & svg { 196 /* Certain popular CSS libraries changes the defaults for SVG display */ 197 /* Make sure SVGs are rendered as inline elements */ 198 display: inline; 199 } 200 201 & [data-sanity-icon] { 202 vertical-align: baseline; 203 } 204 `}),B=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p;let f=(0,i.c)(22);f[0]!==e?({accent:o,align:r,children:a,muted:l,size:s,textOverflow:c,weight:u,...d}=e,f[0]=e,f[1]=o,f[2]=r,f[3]=a,f[4]=d,f[5]=l,f[6]=s,f[7]=c,f[8]=u):(o=f[1],r=f[2],a=f[3],d=f[4],l=f[5],s=f[6],c=f[7],u=f[8]);let h=void 0!==l&&l,m=void 0===s?2:s,g=a;if("ellipsis"===c){let e;f[9]!==g?(e=(0,n.jsx)(L,{children:g}),f[9]=g,f[10]=e):e=f[10],g=e}else{let e;f[11]!==g?(e=(0,n.jsx)("span",{children:g}),f[11]=g,f[12]=e):e=f[12],g=e}let b=useArrayProp(r),v=useArrayProp(m);return f[13]!==o||f[14]!==g||f[15]!==h||f[16]!==t||f[17]!==d||f[18]!==b||f[19]!==v||f[20]!==u?(p=(0,n.jsx)(F,{"data-ui":"Label",...d,$accent:o,$align:b,$muted:h,$size:v,$weight:u,ref:t,children:g}),f[13]=o,f[14]=g,f[15]=h,f[16]=t,f[17]=d,f[18]=b,f[19]=v,f[20]=u,f[21]=p):p=f[21],p});B.displayName="ForwardRef(Label)";let O={root:function(e){let{$color:t}=e,{avatar:o}=(0,r.aQ)(e.theme);return{"--avatar-bg-color":`var(--card-avatar-${t}-bg-color)`,"--avatar-fg-color":`var(--card-avatar-${t}-fg-color)`,backgroundColor:"var(--avatar-bg-color)",position:"relative",boxSizing:"border-box",userSelect:"none",boxShadow:"0 0 0 1px var(--card-bg-color)",'&[data-status="inactive"]':{opacity:.5},"&>svg":{"&:not([hidden])":{display:"block"}},'&[data-as="button"]':{WebkitFontSmoothing:"inherit",appearance:"none",margin:0,padding:0,border:0,font:"inherit",color:"inherit",outline:"none","&:focus":{boxShadow:focusRingStyle({focusRing:o.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:"none"}}}},arrow:function(){return{position:"absolute",boxSizing:"border-box",zIndex:0,opacity:0,transition:"all 0.2s linear",transform:"rotate(-90deg) translate3d(0, 6px, 0)",left:0,right:0,top:0,bottom:0,"& > svg":{width:"11px",height:"7px",position:"absolute",top:"-5px",left:"50%",transform:"translateX(-6px)","&:not([hidden])":{display:"block"}},"[data-arrow-position='inside'] > &":{transform:"rotate(-90deg) translate3d(0, 6px, 0)",opacity:0}
204,"[data-arrow-position='top'] > &":{opacity:1,transform:"rotate(0deg)"},"[data-arrow-position='bottom'] > &":{opacity:1,transform:"rotate(-180deg)"}}},bgStroke:function(){return{strokeWidth:"4px",stroke:"var(--card-bg-color)"}},stroke:function(){return{strokeWidth:"2px",stroke:"var(--avatar-bg-color)",'[data-status="editing"] &':{strokeDasharray:"2 4",strokeLinecap:"round"}}},initials:function(){return{width:"100%",height:"100%",color:"var(--avatar-fg-color)",alignItems:"center",justifyContent:"center",textTransform:"uppercase",textAlign:"center",borderRadius:"50%","&:not([hidden])":{display:"flex"}}},image:function(){return{position:"relative"}}},G=d.zo.div.withConfig({displayName:"StyledAvatar",componentId:"sc-1rj7kl0-0"})(function(e){let{avatar:t,media:o}=(0,r.aQ)(e.theme);return _responsive(o,e.$size,e=>{let o=t.sizes[e]||t.sizes[0];return{width:rem(o.size),height:rem(o.size),borderRadius:rem(o.size/2),"&>svg":{width:rem(o.size),height:rem(o.size),borderRadius:rem(o.size/2)}}})},O.root),H=d.zo.div.withConfig({displayName:"Arrow",componentId:"sc-1rj7kl0-1"})(O.arrow),Q=d.zo.ellipse.withConfig({displayName:"BgStroke",componentId:"sc-1rj7kl0-2"})(O.bgStroke),D=d.zo.ellipse.withConfig({displayName:"Stroke",componentId:"sc-1rj7kl0-3"})(O.stroke),V=d.zo.div.withConfig({displayName:"Initials",componentId:"sc-1rj7kl0-4"})(O.initials),W=(0,d.zo)(B).withConfig({displayName:"InitialsLabel",componentId:"sc-1rj7kl0-5"})({color:"inherit"}),Y=d.zo.svg.withConfig({displayName:"AvatarImage",componentId:"sc-1rj7kl0-6"})(O.image),X=(0,a.forwardRef)(function(e,t){let o,r,d,s,c,u,p,f,h,m,g,b,v,y,w,x,$,S,R,k,C,_,z;let E=(0,i.c)(52);E[0]!==e?({__unstable_hideInnerStroke:o,as:s,color:h,src:f,title:b,initials:c,onImageLoadError:u,arrowPosition:d,animateArrowFrom:r,status:m,size:g,...p}=e,E[0]=e,E[1]=o,E[2]=r,E[3]=d,E[4]=s,E[5]=c,E[6]=u,E[7]=p,E[8]=f,E[9]=h,E[10]=m,E[11]=g,E[12]=b):(o=E[1],r=E[2],d=E[3],s=E[4],c=E[5],u=E[6],p=E[7],f=E[8],h=E[9],m=E[10],g=E[11],b=E[12]);let j=void 0===h?"gray":h,A=void 0===m?"online":m,P=void 0===g?1:g,{avatar:I}=useTheme_v2(),T=l.isValidElementType(s)?s:"div",N=useArrayProp(P),M=(I.sizes[N[0]]||I.sizes[0]).size,L=M/2,F=(0,a.useId)(),[B,O]=(0,a.useState)(r||d||"inside"),[X,q]=(0,a.useState)(!1),K=`avatar-image-${F}`;E[13]!==B||E[14]!==d?(v=()=>{if(B===d)return;let e=requestAnimationFrame(()=>O(d));return()=>cancelAnimationFrame(e)},y=[B,d],E[13]=B,E[14]=d,E[15]=v,E[16]=y):(v=E[15],y=E[16]),(0,a.useEffect)(v,y),E[17]!==f?(w=()=>{f&&q(!1)},x=[f],E[17]=f,E[18]=w,E[19]=x):(w=E[18],x=E[19]),(0,a.useEffect)(w,x),E[20]!==u?($=()=>{q(!0),u&&u(Error("Avatar: the image failed to load"))},E[20]=u,E[21]=$):$=E[21];let J=$;E[22]!==N?(R=N.map(_temp$6),E[22]=N,E[23]=R):R=E[23],S=R;let Z="string"==typeof T?T:void 0;return E[24]!==j?(k=(0,n.jsx)(H,{children:(0,n.jsx)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",children:(0,n.jsx)("path",{d:"M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",fill:j})})}),E[24]=j,E[25]=k):k=E[25],E[26]!==o||E[27]!==L||E[28]!==M||E[29]!==J||E[30]!==X||E[31]!==K||E[32]!==f?(C=!X&&f&&(0,n.jsxs)(Y,{viewBox:`0 0 ${M} ${M}`,fill:"none",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("pattern",{id:K,patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,n.jsx)("image",{href:f,width:"1",height:"1",onError:J})})}),(0,n.jsx)("circle",{cx:L,cy:L,r:L,fill:`url(#${K})`}),!o&&(0,n.jsx)(Q,{cx:L,cy:L,rx:L,ry:L,vectorEffect:"non-scaling-stroke"}),(0,n.jsx)(D,{cx:L,cy:L,rx:L,ry:L,vectorEffect:"non-scaling-stroke"})]}),E[26]=o,E[27]=L,E[28]=M,E[29]=J,E[30]=X,E[31]=K,E[32]=f,E[33]=C):C=E[33],E[34]!==X||E[35]!==c||E[36]!==S||E[37]!==f?(_=(X||!f)&&c&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(V,{children:(0,n.jsx)(W,{forwardedAs:"span",size:S,weight:"medium",children:c})})}),E[34]=X,E[35]=c,E[36]=S,E[37]=f,E[38]=_):_=E[38],E[39]!==B||E[40]!==T||E[41]!==j||E[42]!==t||E[43]!==p||E[44]!==N||E[45]!==A||E[46]!==Z||E[47]!==k||E[48]!==C||E[49]!==_||E[50]!==b?(z=(0,n.jsxs)(G,{as:T,"data-as":Z,"data-ui":"Avatar",...p,$color:j,$size:N,"aria-label":b,"data-arrow-position":B,"data-status":A,ref:t,title:b,children:[k,C,_]}),E[39]=B,E[40]=T,E[41]=j,E[42]=t,E[43]=p,E[44]=N,E[45]=A,E[46]=Z,E[47]=k,E[48]=C,E[49]=_,E[50]=b,E[51]=z):z=E[51],z});function _temp$6(e){return 1===e?1:2===e?3:3===e?5:0}X.displayName="ForwardRef(Avatar)";let q=d.zo.div.withConfig({displayName:"StyledAvatarCounter",componentId:"sc-1ydx86y-0"})(function(e){let{avatar:t,media:o}=(0,r.aQ)(e.theme);return _responsive(o,e.$size,e=>{let o=t.sizes[e];return o?{borderRadius:rem(o.size/2),minWidth:rem(o.size),height:rem(o.size)}:w})},function(e){let{space:t}=(0,r.aQ)(e.theme);return d.iv`
205 align-items: center; 206 justify-content: center; 207 box-sizing: border-box; 208 user-select: none; 209 color: inherit; 210 color: var(--card-fg-color); 211 background: var(--card-bg-color); 212 box-shadow: 213 0 0 0 1px var(--card-bg-color), 214 inset 0 0 0 1px var(--card-hairline-hard-color); 215 padding: 0 ${rem(t[2])}; 216 217 &:not([hidden]) { 218 display: flex; 219 } 220 `}),K=(0,a.forwardRef)(function(e,t){let o,r,a,d;let l=(0,i.c)(9),{count:s,size:c}=e,u=useArrayProp(void 0===c?1:c);return l[0]!==u?(r=u.map(_temp$5),l[0]=u,l[1]=r):r=l[1],o=r,l[2]!==s||l[3]!==o?(a=(0,n.jsx)(B,{as:"span",size:o,weight:"medium",children:s}),l[2]=s,l[3]=o,l[4]=a):a=l[4],l[5]!==t||l[6]!==u||l[7]!==a?(d=(0,n.jsx)(q,{$size:u,"data-ui":"AvatarCounter",ref:t,children:a}),l[5]=t,l[6]=u,l[7]=a,l[8]=d):d=l[8],d});function _temp$5(e){return 1===e?1:2===e?3:3===e?5:0}K.displayName="ForwardRef(AvatarCounter)";let J=d.iv` 221 white-space: nowrap; 222 223 & > div { 224 vertical-align: top; 225 226 &:not([hidden]) { 227 display: inline-block; 228 } 229 } 230`,Z=d.zo.div.withConfig({displayName:"StyledAvatarStack",componentId:"sc-cysmbb-0"})(function(e){let{avatar:t,media:o}=(0,r.aQ)(e.theme);return _responsive(o,e.$size,e=>{let o=t.sizes[e];return o?{"& > div + div":{marginLeft:rem(o.distance)}}:w})},function(){return J}),U=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c;let u=(0,i.c)(15);u[0]!==e?({children:o,maxLength:d,size:l,...r}=e,u[0]=e,u[1]=o,u[2]=r,u[3]=d,u[4]=l):(o=u[1],r=u[2],d=u[3],l=u[4]);let p=void 0===d?4:d,f=void 0===l?1:l,h=a.Children.toArray(o).filter(a.isValidElement),m=useArrayProp(f),g=h.length,b=g-(Math.max(p,0)-1),v=b>1?h.slice(b,g):h,y=0===g&&(0,n.jsx)("div",{children:(0,n.jsx)(K,{count:g,size:m})}),w=0!==g&&b>1&&(0,n.jsx)("div",{children:(0,n.jsx)(K,{count:b,size:m})});u[5]!==m?(s=(e,t)=>(0,n.jsx)("div",{children:(0,a.cloneElement)(e,{size:m})},String(t)),u[5]=m,u[6]=s):s=u[6];let x=v.map(s);return u[7]!==Z||u[8]!==t||u[9]!==r||u[10]!==m||u[11]!==y||u[12]!==w||u[13]!==x?(c=(0,n.jsxs)(Z,{"data-ui":"AvatarStack",...r,ref:t,$size:m,children:[y,w,x]}),u[7]=Z,u[8]=t,u[9]=r,u[10]=m,u[11]=y,u[12]=w,u[13]=x,u[14]=c):c=u[14],c});U.displayName="ForwardRef(AvatarStack)";let ee=d.zo.div.withConfig({displayName:"StyledBox",componentId:"sc-1hhky9f-0"})(function(){return C},flexItemStyle,function(){return[responsiveBoxSizingStyle,responsiveBoxHeightStyle,responsiveBoxOverflowStyle,responsiveBoxDisplayStyle]},function(){return[responsiveGridItemRowStyle,responsiveGridItemRowStartStyle,responsiveGridItemRowEndStyle,responsiveGridItemColumnStyle,responsiveGridItemColumnStartStyle,responsiveGridItemColumnEndStyle]},function(e){let{theme:t}=e;return[_getResponsiveSpace(t,["margin"],e.$margin),_getResponsiveSpace(t,["marginLeft","marginRight"],e.$marginX),_getResponsiveSpace(t,["marginTop","marginBottom"],e.$marginY),_getResponsiveSpace(t,["marginTop"],e.$marginTop),_getResponsiveSpace(t,["marginRight"],e.$marginRight),_getResponsiveSpace(t,["marginBottom"],e.$marginBottom),_getResponsiveSpace(t,["marginLeft"],e.$marginLeft)].filter(Boolean)},responsivePaddingStyle),et=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p,f,h,m,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,A;let P=(0,i.c)(59);P[0]!==e?({as:_,column:o,columnStart:a,columnEnd:r,display:z,flex:d,height:l,margin:E,marginX:f,marginY:h,marginTop:p,marginRight:u,marginBottom:s,marginLeft:c,overflow:m,padding:j,paddingX:w,paddingY:x,paddingTop:y,paddingRight:v,paddingBottom:g,paddingLeft:b,row:S,rowStart:k,rowEnd:R,sizing:C,...$}=e,P[0]=e,P[1]=o,P[2]=r,P[3]=a,P[4]=d,P[5]=l,P[6]=s,P[7]=c,P[8]=u,P[9]=p,P[10]=f,P[11]=h,P[12]=m,P[13]=g,P[14]=b,P[15]=v,P[16]=y,P[17]=w,P[18]=x,P[19]=$,P[20]=S,P[21]=R,P[22]=k,P[23]=C,P[24]=_,P[25]=z,P[26]=E,P[27]=j):(o=P[1],r=P[2],a=P[3],d=P[4],l=P[5],s=P[6],c=P[7],u=P[8],p=P[9],f=P[10],h=P[11],m=P[12],g=P[13],b=P[14],v=P[15],y=P[16],w=P[17],x=P[18],$=P[19],S=P[20],R=P[21],k=P[22],C=P[23],_=P[24],z=P[25],E=P[26],j=P[27]);let I=void 0===_?"div":_,T=void 0===z?"block":z,N=void 0===E?0:E,M=void 0===j?0:j,L="string"==typeof I?I:void 0,F=useArrayProp(o),B=useArrayProp(a),O=useArrayProp(r),G=useArrayProp(T),H=useArrayProp(d),Q=useArrayProp(l),D=useArrayProp(N),V=useArrayProp(f),W=useArrayProp(h),Y=useArrayProp(
230p),X=useArrayProp(u),q=useArrayProp(s),K=useArrayProp(c),J=useArrayProp(m),Z=useArrayProp(M),U=useArrayProp(w),et=useArrayProp(x),eo=useArrayProp(y),er=useArrayProp(v),en=useArrayProp(g),ei=useArrayProp(b),ea=useArrayProp(S),ed=useArrayProp(k),el=useArrayProp(R),es=useArrayProp(C);return P[28]!==I||P[29]!==e.children||P[30]!==t||P[31]!==$||P[32]!==Q||P[33]!==D||P[34]!==V||P[35]!==W||P[36]!==Y||P[37]!==X||P[38]!==q||P[39]!==K||P[40]!==J||P[41]!==Z||P[42]!==U||P[43]!==et||P[44]!==eo||P[45]!==er||P[46]!==en||P[47]!==ei||P[48]!==ea||P[49]!==ed||P[50]!==el||P[51]!==es||P[52]!==L||P[53]!==F||P[54]!==B||P[55]!==O||P[56]!==G||P[57]!==H?(A=(0,n.jsx)(ee,{"data-as":L,"data-ui":"Box",...$,$column:F,$columnStart:B,$columnEnd:O,$display:G,$flex:H,$height:Q,$margin:D,$marginX:V,$marginY:W,$marginTop:Y,$marginRight:X,$marginBottom:q,$marginLeft:K,$overflow:J,$padding:Z,$paddingX:U,$paddingY:et,$paddingTop:eo,$paddingRight:er,$paddingBottom:en,$paddingLeft:ei,$row:ea,$rowStart:ed,$rowEnd:el,$sizing:es,as:I,ref:t,children:e.children}),P[28]=I,P[29]=e.children,P[30]=t,P[31]=$,P[32]=Q,P[33]=D,P[34]=V,P[35]=W,P[36]=Y,P[37]=X,P[38]=q,P[39]=K,P[40]=J,P[41]=Z,P[42]=U,P[43]=et,P[44]=eo,P[45]=er,P[46]=en,P[47]=ei,P[48]=ea,P[49]=ed,P[50]=el,P[51]=es,P[52]=L,P[53]=F,P[54]=B,P[55]=O,P[56]=G,P[57]=H,P[58]=A):A=P[58],A});et.displayName="ForwardRef(Box)";let eo=d.zo.div.withConfig({displayName:"StyledText",componentId:"sc-11ov82j-0"})(function(e){return responsiveFont("text",e)},responsiveTextAlignStyle,function(e){let{$accent:t,$muted:o}=e,{font:n}=(0,r.aQ)(e.theme);return d.iv` 231 color: var(--card-fg-color); 232 233 ${t&&d.iv` 234 color: var(--card-accent-fg-color); 235 `} 236 237 ${o&&d.iv` 238 color: var(--card-muted-fg-color); 239 `} 240 241 & code { 242 font-family: ${n.code.family}; 243 border-radius: 1px; 244 background-color: var(--card-code-bg-color); 245 color: var(--card-code-fg-color); 246 } 247 248 & a { 249 text-decoration: none; 250 border-radius: 1px; 251 color: var(--card-link-color); 252 outline: none; 253 254 @media (hover: hover) { 255 &:hover { 256 text-decoration: underline; 257 } 258 } 259 260 &:focus { 261 box-shadow: 262 0 0 0 1px var(--card-bg-color), 263 0 0 0 3px var(--card-focus-ring-color); 264 } 265 266 &:focus:not(:focus-visible) { 267 box-shadow: none; 268 } 269 } 270 271 & strong { 272 font-weight: ${n.text.weights.bold}; 273 } 274 275 & svg { 276 /* Certain popular CSS libraries changes the defaults for SVG display */ 277 /* Make sure SVGs are rendered as inline elements */ 278 display: inline; 279 } 280 281 & [data-sanity-icon] { 282 vertical-align: baseline; 283 color: var(--card-icon-color); 284 285 & path { 286 vector-effect: non-scaling-stroke !important; 287 } 288 } 289 `}),er=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p,f;let h=(0,i.c)(22);h[0]!==e?({accent:d,align:o,children:r,muted:l,size:s,textOverflow:c,weight:u,...a}=e,h[0]=e,h[1]=o,h[2]=r,h[3]=a,h[4]=d,h[5]=l,h[6]=s,h[7]=c,h[8]=u):(o=h[1],r=h[2],a=h[3],d=h[4],l=h[5],s=h[6],c=h[7],u=h[8]);let m=void 0!==d&&d,g=void 0!==l&&l,b=void 0===s?2:s,v=r;if("ellipsis"===c){let e;h[9]!==v?(e=(0,n.jsx)(L,{children:v}),h[9]=v,h[10]=e):e=h[10],v=e}let y=useArrayProp(o),w=useArrayProp(b);return h[11]!==v?(p=(0,n.jsx)("span",{children:v}),h[11]=v,h[12]=p):p=h[12],h[13]!==m||h[14]!==g||h[15]!==t||h[16]!==a||h[17]!==y||h[18]!==w||h[19]!==p||h[20]!==u?(f=(0,n.jsx)(eo,{"data-ui":"Text",...a,$accent:m,$align:y,$muted:g,ref:t,$size:w,$weight:u,children:p}),h[13]=m,h[14]=g,h[15]=t,h[16]=a,h[17]=y,h[18]=w,h[19]=p,h[20]=u,h[21]=f):f=h[21],f});er.displayName="ForwardRef(Text)";let en=(0,d.zo)(et).withConfig({displayName:"StyledBadge",componentId:"sc-5u140l-0"})(responsiveRadiusStyle,function(e){let{$tone:t}=e;return{"--card-bg-color":`var(--card-badge-${t}-bg-color)`,"--card-fg-color":`var(--card-badge-${t}-fg-color)`,backgroundColor:"var(--card-bg-color)",cursor:"default","&:not([hidden])":{display:"inline-block",verticalAlign:"top"}}}),ei=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u;let p=(0,i.c)(17);if(p[0]!==e){let{children:t,fontSize:n,mode:i,padding:c,radius:u,tone
289:f,...h}=e;o=t,a=n,d=c,l=u,s=f,r=h,p[0]=e,p[1]=o,p[2]=r,p[3]=a,p[4]=d,p[5]=l,p[6]=s}else o=p[1],r=p[2],a=p[3],d=p[4],l=p[5],s=p[6];let f=void 0===a?1:a,h=void 0===d?1:d,m=void 0===l?"full":l,g=void 0===s?"default":s,b=useArrayProp(m),v=useArrayProp(h);return p[7]!==o||p[8]!==f?(c=(0,n.jsx)(er,{size:f,children:o}),p[7]=o,p[8]=f,p[9]=c):c=p[9],p[10]!==t||p[11]!==r||p[12]!==b||p[13]!==v||p[14]!==c||p[15]!==g?(u=(0,n.jsx)(en,{"data-ui":"Badge",...r,$tone:g,$radius:b,padding:v,ref:t,children:c}),p[10]=t,p[11]=r,p[12]=b,p[13]=v,p[14]=c,p[15]=g,p[16]=u):u=p[16],u});ei.displayName="ForwardRef(Badge)";let ea=(0,d.zo)(et).withConfig({displayName:"StyledFlex",componentId:"sc-oxesg3-0"})(flexItemStyle,function(){return[j,responsiveFlexAlignStyle,responsiveFlexGapStyle,responsiveFlexWrapStyle,responsiveFlexJustifyStyle,responsiveFlexDirectionStyle]}),ed=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u;let p=(0,i.c)(17);p[0]!==e?({align:o,as:r,direction:s,gap:a,justify:d,wrap:c,...l}=e,p[0]=e,p[1]=o,p[2]=r,p[3]=a,p[4]=d,p[5]=l,p[6]=s,p[7]=c):(o=p[1],r=p[2],a=p[3],d=p[4],l=p[5],s=p[6],c=p[7]);let f=void 0===s?"row":s,h=useArrayProp(o),m=useArrayProp(f),g=useArrayProp(a),b=useArrayProp(d),v=useArrayProp(c);return p[8]!==r||p[9]!==t||p[10]!==l||p[11]!==h||p[12]!==m||p[13]!==g||p[14]!==b||p[15]!==v?(u=(0,n.jsx)(ea,{"data-ui":"Flex",...l,$align:h,$direction:m,$gap:g,$justify:b,$wrap:v,forwardedAs:r,ref:t}),p[8]=r,p[9]=t,p[10]=l,p[11]=h,p[12]=m,p[13]=g,p[14]=b,p[15]=v,p[16]=u):u=p[16],u});ed.displayName="ForwardRef(Flex)";let el=d.F4` 290 from { 291 transform: rotate(0deg); 292 } 293 294 to { 295 transform: rotate(360deg); 296 } 297`,es=(0,d.zo)(er).withConfig({displayName:"StyledSpinner",componentId:"sc-124hnd0-0"})`& > span > svg{animation:${el} 500ms linear infinite;}`,ec=(0,a.forwardRef)(function(e,t){let o,r;let a=(0,i.c)(4);return a[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(c.L4p,{}),a[0]=o):o=a[0],a[1]!==e||a[2]!==t?(r=(0,n.jsx)(es,{"data-ui":"Spinner",...e,ref:t,children:o}),a[1]=e,a[2]=t,a[3]=r):r=a[3],r});function _cardColorStyle(e,t,o=!1){return{"--card-backdrop-color":e.backdrop,"--card-focus-ring-color":e.focusRing,"--card-shadow-outline-color":e.shadow.outline,"--card-shadow-umbra-color":e.shadow.umbra,"--card-shadow-penumbra-color":e.shadow.penumbra,"--card-shadow-ambient-color":e.shadow.ambient,"--card-accent-fg-color":t.accent.fg,"--card-avatar-gray-bg-color":t.avatar.gray.bg,"--card-avatar-gray-fg-color":t.avatar.gray.fg,"--card-avatar-blue-bg-color":t.avatar.blue.bg,"--card-avatar-blue-fg-color":t.avatar.blue.fg,"--card-avatar-purple-bg-color":t.avatar.purple.bg,"--card-avatar-purple-fg-color":t.avatar.purple.fg,"--card-avatar-magenta-bg-color":t.avatar.magenta.bg,"--card-avatar-magenta-fg-color":t.avatar.magenta.fg,"--card-avatar-red-bg-color":t.avatar.red.bg,"--card-avatar-red-fg-color":t.avatar.red.fg,"--card-avatar-orange-bg-color":t.avatar.orange.bg,"--card-avatar-orange-fg-color":t.avatar.orange.fg,"--card-avatar-yellow-bg-color":t.avatar.yellow.bg,"--card-avatar-yellow-fg-color":t.avatar.yellow.fg,"--card-avatar-green-bg-color":t.avatar.green.bg,"--card-avatar-green-fg-color":t.avatar.green.fg,"--card-avatar-cyan-bg-color":t.avatar.cyan.bg,"--card-avatar-cyan-fg-color":t.avatar.cyan.fg,"--card-bg-color":t.bg,"--card-bg-image":o?`repeating-conic-gradient(${t.bg} 0% 25%, ${t.muted.bg} 0% 50%)`:void 0,"--card-border-color":t.border,"--card-badge-default-bg-color":t.badge.default.bg,"--card-badge-default-dot-color":t.badge.default.dot,"--card-badge-default-fg-color":t.badge.default.fg,"--card-badge-default-icon-color":t.badge.default.icon,"--card-badge-neutral-bg-color":t.badge.neutral?.bg,"--card-badge-neutral-dot-color":t.badge.neutral?.dot,"--card-badge-neutral-fg-color":t.badge.neutral?.fg,"--card-badge-neutral-icon-color":t.badge.neutral?.icon,"--card-badge-primary-bg-color":t.badge.primary.bg,"--card-badge-primary-dot-color":t.badge.primary.dot,"--card-badge-primary-fg-color":t.badge.primary.fg,"--card-badge-primary-icon-color":t.badge.primary.icon,"--card-badge-suggest-bg-color":t.badge.suggest?.bg,"--card-badge-suggest-dot-color":t.badge.suggest?.dot,"--card-badge-suggest-fg-color":t.badge.suggest?.fg,"--card-badge-suggest-icon-color":t.badge.suggest?.icon,"--card-badge-positive-bg-color":t.badge.positive.bg,"--card-badge-positive-dot-color":t.badge.positive.dot,"--card-badge-positive-fg-color":t.badge.positive.fg,"--card-badge-positive-icon-color":t.badge.positive.icon,"--card-badge-caution-bg-color":t.badge.caution.bg,"--card-badge-caution-dot-color":t.badge.caution.dot,"--card-badge-caution-fg-color":t.badge.caution.fg,"--card-badge-caution-icon-color":t.badge.caution.icon,"--card-badge-critical-bg-color":t.badge.critical.bg,"--card-badge-critical-dot-color":t.badge.critical.dot,"--card-badge-critical-fg-color":t.badge.critical.fg,"--card-badge-critical-icon-color":t.badge.critical.icon,"--card-code-bg-color":t.code.bg,"--card-code-fg-color":t.code.fg,"--card-fg-color":t.fg,"--card-icon-color":t.icon,"--card-kbd-bg-color":t.kbd.bg,"--card-kbd-border-color":t.kbd.border,"--card-kbd-fg-color":t.kbd.fg,"--card-link-fg-color":t.link.fg,"--card-muted-bg-color":t.muted.bg,"--card-muted-fg-color":t.muted.fg,"--card-skeleton-color-from":t.skeleton.from,"--card-skeleton-color-to":t.skeleton.to,"--card-bg2-color":t.muted.bg,"--card-link-color":t.link.fg,"--card-hairline-soft-color":t.border,"--card-hairline-hard-color":t.border}}function combineBoxShadow(...e){return e.filter(Boolean).join(",")}ec.displayName="ForwardRef(Spinner)";let eu=d.zo.button.withConfig({displayName:"StyledButton",componentId:"sc-aaekt4-0"})(responsiveRadiusStyle,function(e){let{$width:t}=e,{style:o}=(0,r.aQ)(e.theme);return d.iv` 298 ${o?.button}; 299 300 -webkit-font-smoothing: inherit; 301 appearance: none; 302 display: inline-flex; 303 align-items: center; 304 font: inherit; 305 border: 0; 306 outline: none; 307 user-select: none; 308 text-decoration: none; 309 border: 0; 310 box-sizing: border-box; 311 padding: 0; 312 margin: 0; 313 white-space: nowrap; 314 text-align: left; 315 position: relative; 316 vertical-align: top; 317 318 ${"fill"===t&&d.iv` 319 width: -moz-available; 320 width: -webkit-fill-available; 321 width: stretch; 322 `} 323 324 & > span { 325 display: block; 326 flex: 1; 327 min-width: 0; 328 border-radius: inherit; 329 } 330 331 &::-moz-focus-inner { 332 border: 0; 333 padding: 0; 334 } 335 `},function(e){let{$mode:t}=e,{button:o,color:n,style:i}=(0,r.aQ)(e.theme),a="ghost"===e.$mode,d=n.button[t]||n.button.default,l=d[e.$tone]||d.default,s={width:o.border.width,color:"var(--card-border-color)"},c=void 0;return[_cardColorStyle(n,l.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:focusRingBorderStyle(s),'&:disabled, &[data-disabled="true"]':_cardColorStyle(n,l.disabled),"&:not([data-disabled='true'])":{boxShadow:combineBoxShadow(focusRingBorderStyle(s),a?c:void 0),"&:focus":{boxShadow:focusRingStyle({base:n,border:{width:2,color:n.bg},focusRing:o.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:combineBoxShadow(focusRingBorderStyle(s),a?c:void 0)},"@media (hover: hover)":{"&:hover":_cardColorStyle(n,l.hovered),"&:active":_cardColorStyle(n,l.pressed),"&[data-hovered]":_cardColorStyle(n,l.hovered)},"&[data-selected]":_cardColorStyle(n,l.pressed)}}
335,i?.button?.root].filter(Boolean)}),ep=d.zo.div.withConfig({displayName:"LoadingBox",componentId:"sc-aaekt4-1"})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`,ef=(0,a.forwardRef)(function(e,t){let o,r,d,l,c,u,p,f,h,m,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,A,P,I,T,N,M,L;let F=(0,i.c)(66);F[0]!==e?({children:d,disabled:l,fontSize:y,icon:o,iconRight:r,justify:w,loading:c,mode:x,padding:$,paddingX:m,paddingY:g,paddingTop:h,paddingBottom:u,paddingLeft:p,paddingRight:f,radius:S,selected:v,space:R,text:z,textAlign:E,textWeight:j,tone:k,type:C,muted:_,width:A,...b}=e,F[0]=e,F[1]=o,F[2]=r,F[3]=d,F[4]=l,F[5]=c,F[6]=u,F[7]=p,F[8]=f,F[9]=h,F[10]=m,F[11]=g,F[12]=b,F[13]=v,F[14]=y,F[15]=w,F[16]=x,F[17]=$,F[18]=S,F[19]=R,F[20]=k,F[21]=C,F[22]=_,F[23]=z,F[24]=E,F[25]=j,F[26]=A):(o=F[1],r=F[2],d=F[3],l=F[4],c=F[5],u=F[6],p=F[7],f=F[8],h=F[9],m=F[10],g=F[11],b=F[12],v=F[13],y=F[14],w=F[15],x=F[16],$=F[17],S=F[18],R=F[19],k=F[20],C=F[21],_=F[22],z=F[23],E=F[24],j=F[25],A=F[26]);let B=void 0===y?1:y,O=void 0===w?"center":w,G=void 0===x?"default":x,H=void 0===$?3:$,Q=void 0===S?2:S,D=void 0===R?3:R,V=void 0===k?"default":k,W=void 0===C?"button":C,Y=void 0!==_&&_,{button:X}=useTheme_v2(),q=useArrayProp(O),K=useArrayProp(H),J=useArrayProp(m),Z=useArrayProp(g),U=useArrayProp(h),ee=useArrayProp(u),eo=useArrayProp(p),en=useArrayProp(f),ei=useArrayProp(Q),ea=useArrayProp(D);F[27]!==K||F[28]!==ee||F[29]!==eo||F[30]!==en||F[31]!==U||F[32]!==J||F[33]!==Z?(I={padding:K,paddingX:J,paddingY:Z,paddingTop:U,paddingBottom:ee,paddingLeft:eo,paddingRight:en},F[27]=K,F[28]=ee,F[29]=eo,F[30]=en,F[31]=U,F[32]=J,F[33]=Z,F[34]=I):I=F[34],P=I;let el=!!(c||l),es=v?"":void 0,ef=!!(c||l);return F[35]!==c?(T=!!c&&(0,n.jsx)(ep,{children:(0,n.jsx)(ec,{})}),F[35]=c,F[36]=T):T=F[36],F[37]!==o||F[38]!==r||F[39]!==P||F[40]!==X||F[41]!==B||F[42]!==q||F[43]!==Y||F[44]!==ea||F[45]!==z||F[46]!==E||F[47]!==j?(N=(o||z||r)&&(0,n.jsx)(et,{as:"span",...P,children:(0,n.jsxs)(ed,{as:"span",justify:q,gap:ea,children:[o&&(0,n.jsxs)(er,{size:B,children:[(0,a.isValidElement)(o)&&o,(0,s.isValidElementType)(o)&&(0,n.jsx)(o,{})]}),z&&(0,n.jsx)(et,{children:(0,n.jsx)(er,{muted:Y,align:E,size:B,textOverflow:"ellipsis",weight:j??X.textWeight,children:z})}),r&&(0,n.jsxs)(er,{size:B,children:[(0,a.isValidElement)(r)&&r,(0,s.isValidElementType)(r)&&(0,n.jsx)(r,{})]})]})}),F[37]=o,F[38]=r,F[39]=P,F[40]=X,F[41]=B,F[42]=q,F[43]=Y,F[44]=ea,F[45]=z,F[46]=E,F[47]=j,F[48]=N):N=F[48],F[49]!==P||F[50]!==d?(M=d&&(0,n.jsx)(et,{as:"span",...P,children:d}),F[49]=P,F[50]=d,F[51]=M):M=F[51],F[52]!==G||F[53]!==ei||F[54]!==t||F[55]!==b||F[56]!==el||F[57]!==es||F[58]!==ef||F[59]!==T||F[60]!==N||F[61]!==M||F[62]!==V||F[63]!==W||F[64]!==A?(L=(0,n.jsxs)(eu,{"data-ui":"Button",...b,$mode:G,$radius:ei,$tone
335:V,"data-disabled":el,"data-selected":es,disabled:ef,ref:t,type:W,$width:A,children:[T,N,M]}),F[52]=G,F[53]=ei,F[54]=t,F[55]=b,F[56]=el,F[57]=es,F[58]=ef,F[59]=T,F[60]=N,F[61]=M,F[62]=V,F[63]=W,F[64]=A,F[65]=L):L=F[65],L});ef.displayName="ForwardRef(Button)";let eh=(0,d.zo)(et).withConfig({displayName:"StyledCard",componentId:"sc-osnro2-0"})(function(){return[border,borderTop,borderRight,borderBottom,borderLeft]},responsiveRadiusStyle,function(e){let{card:t,media:o,shadow:n}=(0,r.aQ)(e.theme);return _responsive(o,e.$shadow,e=>(function(e,t=1){if(!e)return w;let o=`0 0 0 ${rem(t)} var(--card-shadow-outline-color)`,r=toBoxShadow(e.umbra,"var(--card-shadow-umbra-color)"),n=toBoxShadow(e.penumbra,"var(--card-shadow-penumbra-color)"),i=toBoxShadow(e.ambient,"var(--card-shadow-ambient-color)");return{boxShadow:`${o}, ${r}, ${n}, ${i}`}})(n[e],t.shadow.outline))},function(e){return[function(e){let{$checkered:t}=e,{space:o}=(0,r.aQ)(e.theme);return d.iv` 336 ${t&&d.iv` 337 background-size: ${o[3]}px ${o[3]}px; 338 background-position: 50% 50%; 339 background-image: var(--card-bg-image); 340 `} 341 342 &[data-as='button'] { 343 -webkit-font-smoothing: inherit; 344 appearance: none; 345 outline: none; 346 font: inherit; 347 text-align: inherit; 348 border: 0; 349 width: -moz-available; 350 width: -webkit-fill-available; 351 width: stretch; 352 } 353 354 /* &:is(a) */ 355 &[data-as='a'] { 356 outline: none; 357 text-decoration: none; 358 } 359 360 /* &:is(pre) */ 361 &[data-as='pre'] { 362 font: inherit; 363 } 364 `}(e),function(e){let{$checkered:t,$focusRing:o,$muted:n}=e,{card:i,color:a,style:l}=(0,r.aQ)(e.theme),s={width:i.border.width,color:"var(--card-border-color)"};return d.iv` 365 color-scheme: ${a._dark?"dark":"light"}; 366 367 ${_cardColorStyle(a,a,t)} 368 369 background-color: ${n?"var(--card-muted-bg-color)":"var(--card-bg-color)"}; 370 color: var(--card-fg-color); 371 372 /* &:is(button) */ 373 &[data-as='button'] { 374 --card-focus-ring-box-shadow: none; 375 376 cursor: default; 377 box-shadow: var(--card-focus-ring-box-shadow); 378 379 &:disabled { 380 ${_cardColorStyle(a,a.selectable.default.disabled,t)} 381 } 382 383 &:not(:disabled) { 384 &[data-pressed] { 385 ${_cardColorStyle(a,a.selectable.default.pressed,t)} 386 } 387 388 &[data-selected] { 389 ${_cardColorStyle(a,a.selectable.default.selected,t)} 390 } 391 392 @media (hover: hover) { 393 &:not([data-pressed]):not([data-selected]) { 394 &[data-hovered], 395 &:hover { 396 ${_cardColorStyle(a,a.selectable.default.hovered,t)} 397 } 398 399 &:active { 400 ${_cardColorStyle(a,a.selectable.default.pressed,t)} 401 } 402 } 403 } 404 405 &:focus-visible { 406 --card-focus-ring-box-shadow: ${o?focusRingStyle({base:a,border:s,focusRing:i.focusRing}):void 0}; 407 } 408 } 409 } 410 411 /* &:is(a) */ 412 &[data-as='a'] { 413 cursor: pointer; 414 box-shadow: var(--card-focus-ring-box-shadow); 415 416 &[data-disabled] { 417 ${_cardColorStyle(a,a.selectable.default.disabled,t)} 418 } 419 420 &:not([data-disabled]) { 421 &[data-pressed] { 422 ${_cardColorStyle(a,a.selectable.default.pressed,t)} 423 } 424 425 &[data-selected] { 426 ${_cardColorStyle(a,a.selectable.default.selected,t)} 427 } 428 429 @media (hover: hover) { 430 &:not([data-pressed]):not([data-selected]) { 431 &[data-hovered], 432 &:hover { 433 ${_cardColorStyle(a,a.selectable.default.hovered,t)} 434 } 435 436 &:active { 437 ${_cardColorStyle(a,a.selectable.default.pressed,t)} 438 } 439 } 440 } 441 442 &:focus-visible { 443 --card-focus-ring-box-shadow: ${o?focusRingStyle({base:a,border:s,focusRing:i.focusRing}):void 0}; 444 } 445 } 446 } 447 448 ${l?.card?.root} 449 `}(e)]}),em=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,c,u,p,f,h,m,g,b,v,y,w,x,$;let S=(0,i.c)(42);S[0]!==e?({__unstable_checkered:b,__unstable_focusRing:v,as:o,border:r,borderTop:c,borderRight:l,borderBottom:a,borderLeft:d,muted:u,pressed:p,radius:y,scheme:h,selected:m,shadow:g,tone:w,...f}=e,S[0]=e,S[1]=o,S[2]=r,S[3]=a,S[4]=d,S[5]=l,S[6]=c,S[7]=u,S[8]=p,S[9]=f,S[10]=h,S[11]=m,S[12]=g,S[13]=b,S[14]=v,S[15]=y,S[16]=w):(o=S[1],r=S[2],a=S[3],d=S[4],l=S[5],c=S[6],u=S[7],p=S[8],f=S[9],h=S[10],m=S[11],g=S[12],b=S[13],v=S[14],y=S[15],w=S[16]);let R=void 0!==b&&b,k=void 0!==v&&v,C=void 0===y?0:y,_=void 0===w?"default":w,z=(0,s.isValidElementType)(o)?o:"div",E=useRootTheme(
449),j="inherit"===_?E.tone:_,A="string"==typeof z?z:void 0,P=E.scheme,I=useArrayProp(r),T=useArrayProp(c),N=useArrayProp(l),M=useArrayProp(a),L=useArrayProp(d),F=useArrayProp(C),B=useArrayProp(g),O=R?"":void 0,G=p?"":void 0,H=m?"":void 0;return S[17]!==z||S[18]!==R||S[19]!==k||S[20]!==u||S[21]!==t||S[22]!==f||S[23]!==E.scheme||S[24]!==m||S[25]!==L||S[26]!==F||S[27]!==B||S[28]!==O||S[29]!==G||S[30]!==H||S[31]!==A||S[32]!==I||S[33]!==T||S[34]!==N||S[35]!==M||S[36]!==j?(x=(0,n.jsx)(eh,{"data-as":A,"data-scheme":P,"data-ui":"Card","data-tone":j,...f,$border:I,$borderTop:T,$borderRight:N,$borderBottom:M,$borderLeft:L,$checkered:R,$focusRing:k,$muted:u,$radius:F,$shadow:B,$tone:j,"data-checkered":O,"data-pressed":G,"data-selected":H,forwardedAs:z,ref:t,selected:m}),S[17]=z,S[18]=R,S[19]=k,S[20]=u,S[21]=t,S[22]=f,S[23]=E.scheme,S[24]=m,S[25]=L,S[26]=F,S[27]=B,S[28]=O,S[29]=G,S[30]=H,S[31]=A,S[32]=I,S[33]=T,S[34]=N,S[35]=M,S[36]=j,S[37]=x):x=S[37],S[38]!==h||S[39]!==x||S[40]!==j?($=(0,n.jsx)(ThemeColorProvider,{scheme:h,tone:j,children:x}),S[38]=h,S[39]=x,S[40]=j,S[41]=$):$=S[41],$});em.displayName="ForwardRef(Card)";let eg=d.zo.div.withConfig({displayName:"StyledCheckbox",componentId:"sc-1l5mt2l-0"})(function(){return d.iv` 450 position: relative; 451 display: inline-block; 452 `}),eb=d.zo.input.withConfig({displayName:"Input",componentId:"sc-1l5mt2l-1"})(function(e){let{color:t,input:o,radius:n}=(0,r.aQ)(e.theme),{focusRing:i}=o.checkbox;return d.iv` 453 position: absolute; 454 top: 0; 455 left: 0; 456 width: 100%; 457 height: 100%; 458 outline: none; 459 opacity: 0; 460 z-index: 1; 461 padding: 0; 462 margin: 0; 463 464 & + span { 465 position: relative; 466 display: block; 467 height: ${rem(o.checkbox.size)}; 468 width: ${rem(o.checkbox.size)}; 469 box-sizing: border-box; 470 box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:o.border.width})}; 471 border-radius: ${rem(n[2])}; 472 line-height: 1; 473 background-color: ${t.input.default.enabled.bg}; 474 475 & > svg { 476 display: block; 477 position: absolute; 478 opacity: 0; 479 height: 100%; 480 width: 100%; 481 482 & > path { 483 vector-effect: non-scaling-stroke; 484 stroke-width: 1.5px !important; 485 } 486 } 487 } 488 489 &:checked + span { 490 background: ${t.input.default.enabled.fg}; 491 box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.fg,width:o.border.width})}; 492 color: ${t.input.default.enabled.bg}; 493 } 494 495 /* focus */ 496 &:not(:disabled):focus:focus-visible + span { 497 box-shadow: ${focusRingStyle({focusRing:i})}; 498 } 499 500 /* focus when checked - uses a different offset */ 501 &:not(:disabled):focus:focus-visible&:checked + span { 502 box-shadow: ${focusRingStyle({focusRing:{width:1,offset:1}})}; 503 } 504 505 &[data-error] + span { 506 background-color: ${t.input.invalid.enabled.border}; 507 box-shadow: ${focusRingBorderStyle({width:o.border.width,color:t.input.invalid.enabled.muted.bg})}; 508 color: ${t.input.default.disabled.fg}; 509 } 510 &[data-error]&:checked + span { 511 background-color: ${t.input.invalid.enabled.muted.bg}; 512 color: ${t.input.default.enabled.bg}; 513 } 514 &[data-error]&:checked&:not(:disabled):focus:focus-visible + span { 515 box-shadow: ${focusRingStyle({border:{width:o.border.width,color:t.input.invalid.readOnly.muted.bg},focusRing:{width:1,offset:1}})}; 516 } 517 518 &:disabled + span { 519 background-color: ${t.input.default.disabled.bg}; 520 box-shadow: ${focusRingBorderStyle({width:o.border.width,color:t.input.default.disabled.border})}; 521 color: ${t.input.default.disabled.fg}; 522 } 523 &:disabled&:checked + span { 524 background-color: ${t.input.default.disabled.muted.bg}; 525 } 526 527 &[data-read-only] + span { 528 background-color: ${t.input.default.readOnly.bg}; 529 box-shadow: ${focusRingBorderStyle({width:o.border.width,color:t.input.default.readOnly.border})}; 530 color: ${t.input.default.readOnly.fg}; 531 } 532 533 &[data-read-only]&:checked + span { 534 background-color: ${t.input.default.readOnly.muted.bg}; 535 } 536 537 &:checked + span > svg:first-child { 538 opacity: 1; 539 } 540 &:indeterminate + span > svg:last-child { 541 opacity: 1; 542 } 543 `}),ev=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,u,p,f,h,m,g,b,v,y;let w=(0,i.c)(25);
543w[0]!==e?({checked:o,className:r,disabled:l,indeterminate:s,customValidity:d,readOnly:u,style:f,...p}=e,w[0]=e,w[1]=o,w[2]=r,w[3]=d,w[4]=l,w[5]=s,w[6]=u,w[7]=p,w[8]=f):(o=w[1],r=w[2],d=w[3],l=w[4],s=w[5],u=w[6],p=w[7],f=w[8]);let x=(0,a.useRef)(null);w[9]===Symbol.for("react.memo_cache_sentinel")?(h=()=>x.current,w[9]=h):h=w[9],(0,a.useImperativeHandle)(t,h),w[10]!==s?(m=()=>{x.current&&(x.current.indeterminate=s||!1)},g=[s],w[10]=s,w[11]=m,w[12]=g):(m=w[11],g=w[12]),(0,a.useEffect)(m,g),useCustomValidity(x,d);let $=!l&&u?"":void 0,S=d?"":void 0,R=l||u;return w[13]!==o||w[14]!==u||w[15]!==p||w[16]!==$||w[17]!==S||w[18]!==R?(b=(0,n.jsx)(eb,{"data-read-only":$,"data-error":S,...p,checked:o,disabled:R,type:"checkbox",readOnly:u,ref:x}),w[13]=o,w[14]=u,w[15]=p,w[16]=$,w[17]=S,w[18]=R,w[19]=b):b=w[19],w[20]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsxs)("span",{children:[(0,n.jsx)(c.KML,{}),(0,n.jsx)(c.HFL,{})]}),w[20]=v):v=w[20],w[21]!==r||w[22]!==f||w[23]!==b?(y=(0,n.jsxs)(eg,{className:r,"data-ui":"Checkbox",style:f,children:[b,v]}),w[21]=r,w[22]=f,w[23]=b,w[24]=y):y=w[24],y});function codeSyntaxHighlightingStyle({theme:e}){let{color:{syntax:t}}=(0,r.aQ)(e);return{"&.atrule":{color:t.atrule},"&.attr-name":{color:t.attrName},"&.attr-value":{color:t.attrValue},"&.attribute":{color:t.attribute},"&.boolean":{color:t.boolean},"&.builtin":{color:t.builtin},"&.cdata":{color:t.cdata},"&.char":{color:t.char},"&.class":{color:t.class},"&.class-name":{color:t.className},"&.comment":{color:t.comment},"&.constant":{color:t.constant},"&.deleted":{color:t.deleted},"&.doctype":{color:t.doctype},"&.entity":{color:t.entity},"&.function":{color:t.function},"&.hexcode":{color:t.hexcode},"&.id":{color:t.id},"&.important":{color:t.important},"&.inserted":{color:t.inserted},"&.keyword":{color:t.keyword},"&.number":{color:t.number},"&.operator":{color:t.operator},"&.prolog":{color:t.prolog},"&.property":{color:t.property},"&.pseudo-class":{color:t.pseudoClass},"&.pseudo-element":{color:t.pseudoElement},"&.punctuation":{color:t.punctuation},"&.regex":{color:t.regex},"&.selector":{color:t.selector},"&.string":{color:t.string},"&.symbol":{color:t.symbol},"&.tag":{color:t.tag},"&.unit":{color:t.unit},"&.url":{color:t.url},"&.variable":{color:t.variable}}}ev.displayName="ForwardRef(Checkbox)";let ey=(0,a.lazy)(()=>o.e(516).then(o.bind(o,7516))),ew=d.zo.pre.withConfig({displayName:"StyledCode",componentId:"sc-4dymyn-0"})(function(){return d.iv` 544 color: var(--card-code-fg-color); 545 546 & code { 547 font-family: inherit; 548 549 &.refractor .token { 550 ${codeSyntaxHighlightingStyle} 551 } 552 } 553 554 & a { 555 color: inherit; 556 text-decoration: underline; 557 border-radius: 1px; 558 } 559 560 & svg { 561 /* Certain popular CSS libraries changes the defaults for SVG display */ 562 /* Make sure SVGs are rendered as inline elements */ 563 display: inline; 564 } 565 566 & [data-sanity-icon] { 567 vertical-align: baseline; 568 } 569 `},function(e){return responsiveFont("code",e)}),ex=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f;let h=(0,i.c)(20);h[0]!==e?({children:o,language:r,size:l,weight:s,...d}=e,h[0]=e,h[1]=o,h[2]=r,h[3]=d,h[4]=l,h[5]=s):(o=h[1],r=h[2],d=h[3],l=h[4],s=h[5]);let m=useArrayProp(void 0===l?2:l);return h[6]!==o?(c=(0,n.jsx)("code",{children:o}),h[6]=o,h[7]=c):c=h[7],h[8]!==o||h[9]!==r?(u=(0,n.jsx)(ey,{language:r,value:o}),h[8]=o,h[9]=r,h[10]=u):u=h[10],h[11]!==c||h[12]!==u?(p=(0,n.jsx)(a.Suspense,{fallback:c,children:u}),h[11]=c,h[12]=u,h[13]=p):p=h[13],h[14]!==t||h[15]!==d||h[16]!==m||h[17]!==p||h[18]!==s?(f=(0,n.jsx)(ew,{"data-ui":"Code",...d,$size:m,$weight:s,ref:t,children:p}),h[14]=t,h[15]=d,h[16]=m,h[17]=p,h[18]=s,h[19]=f):f=h[19],f});ex.displayName="ForwardRef(Code)";let e$={width:"100%",margin:"0 auto"},eS=(0,d.zo)(et).withConfig({displayName:"StyledContainer",componentId:"sc-wyroop-0"})(function(){return e$},function(e){let{container:t,media:o}=(0,r.aQ)(e.theme);return _responsive(o,e.$width,e=>({maxWidth:"auto"===e?"none":rem(t[e])}))}),eR=(0,a.forwardRef)(function(e,t){let o,r,a,d;let l=(0,i.c)(9);l[0]!==e?({as:o,width:a,...r}=e,l[0]=e,l[1]=o,l[2]=r,l[3]=a):(o=l[1],r=l[2],a=l[3]);let s=useArrayProp(void 0===a?2:a);return l[4]!==o||l[5]!==t||l[6]!==r||l[7]!==s?(d=(0,n.jsx)(eS,{"data-ui":"Container",...r,$width:s,forwardedAs:o,ref:t}),l[4]=o,l[5]=t,l[6]=r,l[7]=s,l[8]=d):d=l[8],d});eR.displayName="ForwardRef(Container)";let ek=(0,d.zo)(et).withConfig({displayName:"StyledGrid",componentId:"sc-v8t8oz-0"})(function(){return[I,responsiveGridAutoFlowStyle,responsiveGridAutoRowsStyle,responsiveGridAutoColsStyle,responsiveGridColumnsStyle,responsiveGridRowsStyle,responsiveGridGapStyle,responsiveGridGapXStyle,responsiveGridGapYStyle]}),eC=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p,f,h,m;let g=(0,i.c)(26);g[0]!==e?({as:o,autoRows:d,autoCols:r,autoFlow:a,columns:s,gap:c,gapX:u,gapY:p,rows:h,children:l,...f}=e,g[0]=e,g[1]=o,g[2]=r,g[3]=a,g[4]=d,g[5]=l,g[6]=s,g[7]=c,g[8]=u,g[9]=p,g[10]=f,g[11]=h):(o=g[1],r=g[2],a=g[3],d=g[4],l=g[5],s=g[6],c=g[7],u=g[8],p=g[9],f=g[10],h=g[11]);let b="string"==typeof o?o:void 0,v=useArrayProp(d),y=useArrayProp(r),w=useArrayProp(a),x=useArrayProp(s),$=useArrayProp(c),S=useArrayProp(u),R=useArrayProp(
569p),k=useArrayProp(h);return g[12]!==o||g[13]!==l||g[14]!==t||g[15]!==f||g[16]!==b||g[17]!==v||g[18]!==y||g[19]!==w||g[20]!==x||g[21]!==$||g[22]!==S||g[23]!==R||g[24]!==k?(m=(0,n.jsx)(ek,{"data-as":b,"data-ui":"Grid",...f,$autoRows:v,$autoCols:y,$autoFlow:w,$columns:x,$gap:$,$gapX:S,$gapY:R,$rows:k,forwardedAs:o,ref:t,children:l}),g[12]=o,g[13]=l,g[14]=t,g[15]=f,g[16]=b,g[17]=v,g[18]=y,g[19]=w,g[20]=x,g[21]=$,g[22]=S,g[23]=R,g[24]=k,g[25]=m):m=g[25],m});eC.displayName="ForwardRef(Grid)";let e_=d.zo.div.withConfig({displayName:"StyledHeading",componentId:"sc-137lwim-0"})(function(e){let{$accent:t,$muted:o}=e,{font:n}=(0,r.aQ)(e.theme);return d.iv` 570 ${t&&d.iv` 571 color: var(--card-accent-fg-color); 572 `} 573 574 ${o&&d.iv` 575 color: var(--card-muted-fg-color); 576 `} 577 578 & code { 579 font-family: ${n.code.family}; 580 border-radius: 1px; 581 } 582 583 & a { 584 text-decoration: none; 585 border-radius: 1px; 586 color: var(--card-link-color); 587 outline: none; 588 589 @media (hover: hover) { 590 &:hover { 591 text-decoration: underline; 592 } 593 } 594 595 &:focus { 596 box-shadow: 597 0 0 0 1px var(--card-bg-color), 598 0 0 0 3px var(--card-focus-ring-color); 599 } 600 601 &:focus:not(:focus-visible) { 602 box-shadow: none; 603 } 604 } 605 606 & strong { 607 font-weight: ${n.heading.weights.bold}; 608 } 609 610 & svg { 611 /* Certain popular CSS libraries changes the defaults for SVG display */ 612 /* Make sure SVGs are rendered as inline elements */ 613 display: inline; 614 } 615 616 & [data-sanity-icon] { 617 vertical-align: baseline; 618 } 619 `},responsiveTextAlignStyle,function(e){return responsiveFont("heading",e)}),ez=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p,f;let h=(0,i.c)(22);h[0]!==e?({accent:d,align:o,children:r,muted:l,size:s,textOverflow:c,weight:u,...a}=e,h[0]=e,h[1]=o,h[2]=r,h[3]=a,h[4]=d,h[5]=l,h[6]=s,h[7]=c,h[8]=u):(o=h[1],r=h[2],a=h[3],d=h[4],l=h[5],s=h[6],c=h[7],u=h[8]);let m=void 0!==d&&d,g=void 0!==l&&l,b=void 0===s?2:s,v=r;if("ellipsis"===c){let e;h[9]!==v?(e=(0,n.jsx)(L,{children:v}),h[9]=v,h[10]=e):e=h[10],v=e}let y=useArrayProp(o),w=useArrayProp(b);return h[11]!==v?(p=(0,n.jsx)("span",{children:v}),h[11]=v,h[12]=p):p=h[12],h[13]!==m||h[14]!==g||h[15]!==t||h[16]!==a||h[17]!==y||h[18]!==w||h[19]!==p||h[20]!==u?(f=(0,n.jsx)(e_,{"data-ui":"Heading",...a,$accent:m,$align:y,$muted:g,$size:w,$weight:u,ref:t,children:p}),h[13]=m,h[14]=g,h[15]=t,h[16]=a,h[17]=y,h[18]=w,h[19]=p,h[20]=u,h[21]=f):f=h[21],f});ez.displayName="ForwardRef(Heading)";let eE=(0,d.zo)(et).withConfig({displayName:"StyledInline",componentId:"sc-1pkiy6j-0"})(function(){return{lineHeight:0,"&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}},function(e){let{media:t,space:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$space,e=>{let t=rem(.5===e?o[1]/2:o[e]);return{margin:`-${t} 0 0 -${t}`,"& > div":{padding:`${t} 0 0 ${t}`}}})}),ej=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u;let p=(0,i.c)(13);p[0]!==e?({as:o,children:r,space:l,...d}=e,p[0]=e,p[1]=o,p[2]=r,p[3]=d,p[4]=l):(o=p[1],r=p[2],d=p[3],l=p[4]),p[5]!==r?(c=a.Children.map(r,_temp$4),p[5]=r,p[6]=c):c=p[6],s=c;let f=useArrayProp(l);return p[7]!==o||p[8]!==s||p[9]!==d||p[10]!==f||p[11]!==t?(u=(0,n.jsx)(eE,{"data-ui":"Inline",...d,$space:f,forwardedAs:o,ref:t,children:s}),p[7]=o,p[8]=s,p[9]=d,p[10]=f,p[11]=t,p[12]=u):u=p[12],u});function _temp$4(e){return e&&(0,n.jsx)("div",{children:e})}ej.displayName="ForwardRef(Inline)";let eA=d.zo.kbd.withConfig({displayName:"StyledKBD",componentId:"sc-1w7yd8w-0"})(responsiveRadiusStyle,function(){return d.iv` 620 --card-bg-color: var(--card-kbd-bg-color); 621 --card-border-color: var(--card-kbd-border-color); 622 --card-fg-color: var(--card-kbd-fg-color); 623 624 box-shadow: inset 0 0 0 1px var(--card-border-color); 625 background: var(--card-bg-color); 626 font: inherit; 627 628 vertical-align: top; 629 630 &:not([hidden]) { 631 display: inline-block; 632 } 633 `}),eP=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u;let p=(0,i.c)(17);p[0]!==e?({children:o,fontSize:a,padding:d,radius:l,...r}=e,p[0]=e,p[1]=o,p[2]=r,p[3]=a,p[4]=d,p[5]=l):(o=p[1],r=p[2],a=p[3],d=p[4],l=p[5]);let f=void 0===a?0:a,h=void 0===d?1:d,m=useArrayProp(void 0===l?2:l);return p[6]!==o||p[7]!==f?(s=(0,n.jsx)(er,{as:"span",size:f,weight:"semibold",children:o}),p[6]=o,p[7]=f,p[8]=s):s=p[8],p[9]!==h||p[10]!==s?(c=(0,n.jsx)(et,{as:"span",padding:h,children:s}),p[9]=h,p[10]=s,p[11]=c):c=p[11],p[12]!==t||p[13]!==r||p[14]!==m||p[15]!==c?(u=(0,n.jsx)(eA,{"data-ui":"KBD",...r,$radius:m,ref:t,children:c}),p[12]=t,p[13]=r,p[14]=m,p[15]=c,p[16]=u):u=p[16],u});eP.displayName="ForwardRef(KBD)";let eI={name:"@sanity/ui/origin",fn({middlewareData:e,placement:t,rects:o}){let[r]=t.split("-"),n=o.floating.width,i=o.floating.height,a=e.shift?.x||0,d=e.shift?.y||0;if(n<=0||i<=0)return{};let l=["bottom","top"].includes(r),{originX:s,originY:c}
633=l?{originX:clamp(.5-a/n,0,1),originY:"bottom"===r?0:1}:{originX:"left"===r?1:0,originY:clamp(.5-d/i,0,1)};return{data:{originX:s,originY:c}}}};function clamp(e,t,o){return Math.min(Math.max(e,t),o)}function moveTowardsLength(e,t,o){let r=t.x-e.x,n=t.y-e.y;return moveTowardsFractional(e,t,Math.min(1,o/Math.sqrt(r*r+n*n)))}function moveTowardsFractional(e,t,o){return{x:e.x+(t.x-e.x)*o,y:e.y+(t.y-e.y)*o}}let eT=d.zo.div.withConfig({displayName:"StyledArrow",componentId:"sc-12vzy6c-0"})(({$w:e})=>d.iv` 634 position: absolute; 635 width: ${e}px; 636 height: ${e}px; 637 638 :empty + & { 639 display: none; 640 } 641 642 & > svg { 643 display: block; 644 line-height: 0; 645 transform-origin: ${e/2}px ${e/2}px; 646 } 647 648 [data-placement^='top'] > & { 649 bottom: -${e}px; 650 651 & > svg { 652 transform: rotate(0); 653 } 654 } 655 656 [data-placement^='right'] > & { 657 left: -${e}px; 658 659 & > svg { 660 transform: rotate(90deg); 661 } 662 } 663 664 [data-placement^='left'] > & { 665 right: -${e}px; 666 667 & > svg { 668 transform: rotate(-90deg); 669 } 670 } 671 672 [data-placement^='bottom'] > & { 673 top: -${e}px; 674 675 & > svg { 676 transform: rotate(180deg); 677 } 678 } 679 `),eN=d.zo.path.withConfig({displayName:"StrokePath",componentId:"sc-12vzy6c-1"})`stroke:var(--card-shadow-outline-color);`,eM=d.zo.path.withConfig({displayName:"ShapePath",componentId:"sc-12vzy6c-2"})`fill:var(--card-bg-color);`,eL=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p;let f=(0,i.c)(24);f[0]!==e?({width:d,height:o,radius:a,...r}=e,f[0]=e,f[1]=o,f[2]=r,f[3]=a,f[4]=d):(o=f[1],r=f[2],a=f[3],d=f[4]);let h=void 0===a?0:a,{card:m}=useTheme_v2(),g=m.shadow.outline,b=d/2,v=[{x:0,y:0},{x:h,y:0,radius:h},{x:b,y:o-1,radius:h},{x:d-h,y:0,radius:h},{x:d,y:0}],y=function(e){let t=e.length,o=[];for(let r=0;r<t;r+=1){let t=e[r],n=e[r-1],i=e[r+1];if(n&&t.radius){let e=moveTowardsLength(t,n,t.radius),r=moveTowardsLength(t,i,t.radius),a=moveTowardsFractional(e,t,.5),d=moveTowardsFractional(t,r,.5);o.push({type:"point",...e}),o.push({type:"curve",curveEnd:r,startControl:a,endControl:d})}else o.push({type:"point",...t})}return o}(v),w=y.map((e,t)=>"point"===e.type?`${0===t?"M":"L"} ${e.x} ${e.y}`:"curve"===e.type?`C ${e.startControl.x} ${e.startControl.y} ${e.endControl.x} ${e.endControl.y} ${e.curveEnd.x} ${e.curveEnd.y}`:"").join(" "),x=`${w}`,$=`${w} M ${d} -1 M 0 -1 Z`,S=`0 0 ${d} ${d}`;f[5]!==g||f[6]!==d?(l=(0,n.jsx)("mask",{id:"stroke-mask",children:(0,n.jsx)("rect",{x:0,y:g,width:d,height:d,fill:"white"})}),f[5]=g,f[6]=d,f[7]=l):l=f[7];let R=2*g;return f[8]!==x||f[9]!==R?(s=(0,n.jsx)(eN,{d:x,mask:"url(#stroke-mask)",strokeWidth:R}),f[8]=x,f[9]=R,f[10]=s):s=f[10],f[11]!==$?(c=(0,n.jsx)(eM,{d:$}),f[11]=$,f[12]=c):c=f[12],f[13]!==S||f[14]!==l||f[15]!==s||f[16]!==c||f[17]!==d?(u=(0,n.jsxs)("svg",{width:d,height:d,viewBox:S,children:[l,s,c]}),f[13]=S,f[14]=l,f[15]=s,f[16]=c,f[17]=d,f[18]=u):u=f[18],f[19]!==t||f[20]!==r||f[21]!==u||f[22]!==d?(p=(0,n.jsx)(eT,{...r,$w:d,ref:t,children:u}),f[19]=t,f[20]=r,f[21]=u,f[22]=d,f[23]=p):p=f[23],p});eL.displayName="ForwardRef(Arrow)";let eF=createGlobalScopedContext("@sanity/ui/context/boundaryElement",null);function isRecord(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}let eB={version:0,element:null};function useBoundaryElement(){let e=(0,a.useContext)(eF);if(e&&(!isRecord(e)||0!==e.version))throw Error("useBoundaryElement(): the context value is not compatible");return e||eB}let eO=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m;let g=(0,i.c)(18),b=useTheme_v2();g[0]!==e?({children:r,media:o,...d}=e,g[0]=e,g[1]=o,g[2]=r,g[3]=d):(o=g[1],r=g[2],d=g[3]);let v=o??b.media,[y,w]=(0,a.useState)(null),x=useElementSize(y);if(l=x?.border.width??window.innerWidth,g[4]!==v||g[5]!==l){let e=function(e,t){let o=[];for(let r=0;r<e.length;r+=1)e[r]>t&&o.push(r);return o}(v,l);c=e.length?e.join(" "):void 0,g[4]=v,g[5]=l,g[6]=c}else c=g[6];if(s=c,g[7]!==v||g[8]!==l){let e=function(e,t){let o=[];for(let r=0;r<e.length;r+=1)e[r]<=t&&o.push(r);return o}(v,l);p=e.length?e.join(" "):void 0,g[7]=v,g[8]=l,g[9]=p}else p=g[9];return u=p,g[10]!==y?(f=()=>y,h=[y],g[10]=y,g[11]=f,g[12]=h):(f=g[11],h=g[12]),(0,a.useImperativeHandle)(t,f,h),g[13]!==r||g[14]!==s||g[15]!==u||g[16]!==d?(m=(0,n.jsx)("div",{"data-ui":"ElementQuery",...d,"data-eq-max":s,"data-eq-min":u,ref:w,children:r}),g[13]=r,g[14]=s,g[15]=u,g[16]=d,g[17]=m):m=g[17],m});
679function getLayerContext(e){if(!isRecord(e)||0!==e.version)throw Error("the context value is not compatible");if(!e)throw Error("components using `useLayer()` should be wrapped in a <LayerProvider>.");if(0===e.version)return e;throw Error("could not get layer context")}eO.displayName="ForwardRef(ElementQuery)";let eG=createGlobalScopedContext("@sanity/ui/context/layer",null);function LayerProvider(e){let t,o,r,d,l,s,c,u;let p=(0,i.c)(19),{children:f,zOffset:h}=e,m=void 0===h?0:h,g=(0,a.useContext)(eG);p[0]!==g?(t=g&&getLayerContext(g),p[0]=g,p[1]=t):t=p[1];let b=t,v=b?.registerChild,y=(b?.level??0)+1,w=useArrayProp(m),x=w.length-1,$=Math.min(useMediaIndex(),x),S=b?b.zIndex+w[$]:w[$];p[2]===Symbol.for("react.memo_cache_sentinel")?(o={},p[2]=o):o=p[2];let[,R]=(0,a.useState)(o),[k,C]=(0,a.useState)(0),_=0===k;p[3]!==v||p[4]!==R?(r=e=>{let t=v?.(e);return void 0!==e?R(t=>{let o=t[e]??0,r={...t,[e]:o+1};return C(Object.keys(r).length),r}):C(_temp$3),()=>{void 0!==e?R(t=>{let o={...t};return 1===o[e]?(delete o[e],C(Object.keys(o).length)):o[e]=o[e]-1,o}):C(_temp2$2),t?.()}},p[3]=v,p[4]=R,p[5]=r):r=p[5];let z=r;return p[6]!==y||p[7]!==v?(d=()=>v?.(y),l=[y,v],p[6]=y,p[7]=v,p[8]=d,p[9]=l):(d=p[8],l=p[9]),(0,a.useEffect)(d,l),p[10]!==_||p[11]!==y||p[12]!==z||p[13]!==k||p[14]!==S?(c={version:0,isTopLayer:_,level:y,registerChild:z,size:k,zIndex:S},p[10]=_,p[11]=y,p[12]=z,p[13]=k,p[14]=S,p[15]=c):c=p[15],s=c,p[16]!==f||p[17]!==s?(u=(0,n.jsx)(eG.Provider,{value:s,children:f}),p[16]=f,p[17]=s,p[18]=u):u=p[18],u}function _temp2$2(e){return e-1}function _temp$3(e){return e+1}function useLayer(){let e=(0,i.c)(2),t=(0,a.useContext)(eG);if(!t)throw Error("useLayer(): missing context value");try{let o;return e[0]!==t?(o=getLayerContext(t),e[0]=t,e[1]=o):o=e[1],o}catch(e){throw e instanceof Error?Error(`useLayer(): ${e.message}`):Error(`useLayer(): ${e}`)}}LayerProvider.displayName="LayerProvider";let eH=d.zo.div.withConfig({displayName:"StyledLayer",componentId:"sc-16kojrv-0"})({position:"relative"}),eQ=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m;let g=(0,i.c)(22);g[0]!==e?({children:o,onActivate:r,onFocus:d,style:s,...l}=e,g[0]=e,g[1]=o,g[2]=r,g[3]=d,g[4]=l,g[5]=s):(o=g[1],r=g[2],d=g[3],l=g[4],s=g[5]);let b=void 0===s?w:s,{zIndex:v,isTopLayer:y}=useLayer(),x=(0,a.useRef)(null),$=(0,a.useRef)(null),S=(0,a.useRef)(y);g[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>$.current,g[6]=c):c=g[6],(0,a.useImperativeHandle)(t,c),g[7]!==y||g[8]!==r?(u=()=>{S.current!==y&&y&&r?.({activeElement:x.current}),S.current=y},p=[y,r],g[7]=y,g[8]=r,g[9]=u,g[10]=p):(u=g[9],p=g[10]),(0,a.useEffect)(u,p),g[11]!==y||g[12]!==d?(f=e=>{d?.(e);let t=$.current,o=document.activeElement;!y||!t||!o||isHTMLElement(o)&&containsOrEqualsElement(t,o)&&(x.current=o)},g[11]=y,g[12]=d,g[13]=f):f=g[13];let R=f;return g[14]!==b||g[15]!==v?(h={...b,zIndex:v},g[14]=b,g[15]=v,g[16]=h):h=g[16],g[17]!==o||g[18]!==R||g[19]!==l||g[20]!==h?(m=(0,n.jsx)(eH,{...l,"data-ui":"Layer",onFocus:R,ref:$,style:h,children:o}),g[17]=o,g[18]=R,g[19]=l,g[20]=h,g[21]=m):m=g[21],m}),eD=(0,a.forwardRef)(function(e,t){let o,r,a,d,l;let s=(0,i.c)(11);s[0]!==e?({children:o,zOffset:a,...r}=e,s[0]=e,s[1]=o,s[2]=r,s[3]=a):(o=s[1],r=s[2],a=s[3]);let c=void 0===a?1:a;return s[4]!==o||s[5]!==t||s[6]!==r?(d=(0,n.jsx)(eQ,{...r,ref:t,children:o}),s[4]=o,s[5]=t,s[6]=r,s[7]=d):d=s[7],s[8]!==d||s[9]!==c?(l=(0,n.jsx)(LayerProvider,{zOffset:c,children:d}),s[8]=d,s[9]=c,s[10]=l):l=s[10],l});eD.displayName="ForwardRef(Layer)";let eV="@sanity/ui/context/portal",eW=Symbol.for(`${eV}/element`);R[eW]=null;let eY=createGlobalScopedContext(eV,{version:0,boundaryElement:null,get element(){return typeof document>"u"?null:(R[eW]||(R[eW]=document.createElement("div"),R[eW].setAttribute("data-portal",""),document.body.appendChild(R[eW])),R[eW])}});function usePortal(){let e=(0,a.useContext)(eY);if(!e)throw Error("usePortal(): missing context value");if(!isRecord(e)||0!==e.version)throw Error("usePortal(): the context value is not compatible");return e}function Portal(e){let t;let o=(0,i.c)(3),{children:r,__unstable_name:n}=e,a=usePortal(),d=(n?a.elements&&a.elements[n]:a.element)||a.elements?.default;return d?(o[0]!==r||o[1]!==d?(t=(0,g.createPortal)(r,d),o[0]=r,o[1]=d,o[2]=t):t=o[2],t):null}function PortalProvider(e){let t,o,r;
679let d=(0,i.c)(7),{boundaryElement:l,children:s,element:c,__unstable_elements:u}=e,p=function(e){let t=(0,a.useRef)(e);return function(e,t){if(!e||!t)return e===t;let o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every(o=>e[o]===t[o])}(t.current,e)||(t.current=e),t.current}(u),f=(0,a.useSyncExternalStore)(emptySubscribe,_temp$2,_temp2$1),h=l||null,m=c||f;return d[0]!==p||d[1]!==h||d[2]!==m?(o={version:0,boundaryElement:h,element:m,elements:p},d[0]=p,d[1]=h,d[2]=m,d[3]=o):o=d[3],t=o,d[4]!==s||d[5]!==t?(r=(0,n.jsx)(eY.Provider,{value:t,children:s}),d[4]=s,d[5]=t,d[6]=r):r=d[6],r}function _temp2$1(){return null}function _temp$2(){return document.body}Portal.displayName="Portal",PortalProvider.displayName="PortalProvider";let emptySubscribe=()=>()=>{},eX=d.zo.div.withConfig({displayName:"StyledSrOnly",componentId:"sc-mubr0c-0"})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`,eq=(0,a.forwardRef)(function(e,t){let o;let r=(0,i.c)(4),{as:a,children:d}=e;return r[0]!==a||r[1]!==d||r[2]!==t?(o=(0,n.jsx)(eX,{"aria-hidden":!0,as:a,"data-ui":"SrOnly",ref:t,children:d}),r[0]=a,r[1]=d,r[2]=t,r[3]=o):o=r[3],o});eq.displayName="ForwardRef(SrOnly)";let eK=d.zo.div.withConfig({displayName:"StyledVirtualList",componentId:"sc-dlqsj4-0"})`position:relative;`,eJ=d.zo.div.withConfig({displayName:"ItemWrapper",componentId:"sc-dlqsj4-1"})`position:absolute;left:0;right:0;`,eZ=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m,g,b,v,y,w,x,S,R,k;let C=(0,i.c)(56);C[0]!==e?({as:s,gap:c,getItemKey:o,items:u,onChange:r,renderItem:d,...l}=e,C[0]=e,C[1]=o,C[2]=r,C[3]=d,C[4]=l,C[5]=s,C[6]=c,C[7]=u):(o=C[1],r=C[2],d=C[3],l=C[4],s=C[5],c=C[6],u=C[7]);let _=void 0===s?"div":s,z=void 0===c?0:c;C[8]!==u?(p=void 0===u?[]:u,C[8]=u,C[9]=p):p=C[9];let E=p,{space:j}=useTheme_v2(),A=(0,a.useRef)(null),P=(0,a.useRef)(null),[I,T]=(0,a.useState)(0),[N,M]=(0,a.useState)(0),[L,F]=(0,a.useState)(-1);C[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>A.current,C[10]=f):f=C[10],(0,a.useImperativeHandle)(t,f),C[11]===Symbol.for("react.memo_cache_sentinel")?(h=()=>
679{if(!P.current)return;let e=P.current.firstChild;e instanceof HTMLElement&&F(e.offsetHeight)},C[11]=h):h=C[11],C[12]!==d?(m=[d],C[12]=d,C[13]=m):m=C[13],(0,a.useEffect)(h,m),C[14]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{if(!A.current)return;let e=function(e){let t=e;for(;t&&!function(e){if(!(e instanceof Element))return!1;let t=window.getComputedStyle(e);return t.overflowX.includes("auto")||t.overflowX.includes("scroll")||t.overflowY.includes("auto")||t.overflowY.includes("scroll")}(t);)t=t.parentNode;return t}(A.current.parentNode);if(e){if(!(e instanceof HTMLElement))return;let handleScroll=()=>{T(e.scrollTop)};e.addEventListener("scroll",handleScroll,{passive:!0});let t=new $(e=>{M(e[0].contentRect.height)});return t.observe(e),handleScroll(),()=>{e.removeEventListener("scroll",handleScroll),t.unobserve(e),t.disconnect()}}let handleScroll_0=()=>{T(window.scrollY)},handleResize=()=>{M(window.innerHeight)};return window.addEventListener("scroll",handleScroll_0,{passive:!0}),window.addEventListener("resize",handleResize),M(window.innerHeight),handleScroll_0(),()=>{window.removeEventListener("scroll",handleScroll_0),window.removeEventListener("resize",handleResize)}},b=[],C[14]=g,C[15]=b):(g=C[14],b=C[15]),(0,a.useEffect)(g,b);let B=E.length,O=L?B*(L+j[z])-j[z]:0,G=O?Math.max(Math.floor(I/O*B)-2,0):0,H=O?Math.ceil((I+N)/O*B)+1:0;C[16]!==G||C[17]!==z||C[18]!==L||C[19]!==r||C[20]!==N||C[21]!==I||C[22]!==j||C[23]!==H?(y=()=>{r&&r({fromIndex:G,gap:j[z],itemHeight:L,scrollHeight:N,scrollTop:I,toIndex:H})},v=[G,z,L,r,N,I,j,H],C[16]=G,C[17]=z,C[18]=L,C[19]=r,C[20]=N,C[21]=I,C[22]=j,C[23]=H,C[24]=v,C[25]=y):(v=C[24],y=C[25]),(0,a.useEffect)(y,v);e:{let e;if(!d||0===E.length){w=null;break e}if(-1===L){let e,t;C[26]!==E[0]||C[27]!==d?(e=d(E[0]),C[26]=E[0],C[27]=d,C[28]=e):e=C[28],C[29]!==e?(t=[(0,n.jsx)(eJ,{children:e},0)],C[29]=e,C[30]=t):t=C[30],w=t;break e}if(C[31]!==G||C[32]!==z||C[33]!==o||C[34]!==L||C[35]!==E||C[36]!==d||C[37]!==j||C[38]!==H){let t;C[40]!==G||C[41]!==z||C[42]!==o||C[43]!==L||C[44]!==d||C[45]!==j?(t=(e,t)=>{let r=G+t,i=d(e),a=o?o(e,r):r;return(0,n.jsx)(eJ,{style:{top:r*(L+j[z])},children:i},a)},C[40]=G,C[41]=z,C[42]=o,C[43]=L,C[44]=d,C[45]=j,C[46]=t):t=C[46],e=E.slice(G,H).map(t),C[31]=G,C[32]=z,C[33]=o,C[34]=L,C[35]=E,C[36]=d,C[37]=j,C[38]=H,C[39]=e}else e=C[39];w=e}let Q=w;return C[47]!==O?(S={height:O},C[47]=O,C[48]=S):S=C[48],x=S,C[49]!==Q||C[50]!==x?(R=(0,n.jsx)("div",{ref:P,style:x,children:Q}),C[49]=Q,C[50]=x,C[51]=R):R=C[51],C[52]!==_||C[53]!==l||C[54]!==R?(k=(0,n.jsx)(eK,{as:_,"data-ui":"VirtualList",...l,ref:A,children:R}),C[52]=_,C[53]=l,C[54]=R,C[55]=k):k=C[55],k});function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(o=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}eZ.displayName="ForwardRef(VirtualList)";let eU=[0,0,0,0],e0={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]},e1=(0,d.zo)(f.E.create(em)).withConfig({displayName:"MotionCard",componentId:"sc-ihg31s-0"})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`,e2=(0,d.zo)(f.E.create(ed)).withConfig({displayName:"MotionFlex",componentId:"sc-ihg31s-1"})`will-change:opacity;`,e3=(0,a.memo)((0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p,f,h,m,g,b,v,y,w,$,S,R,k,C,_,z,E,j,A,P,I,T,N,M,L,F;let B=(0,i.c)(66);B[0]!==e?({__unstable_margins:c,animate:o,arrow:r,arrowRef:a,arrowX:d,arrowY:l,children:s,padding:h,placement:m,originX:u,originY:p,overflow:f,radius:g,scheme:v,shadow:y,strategy:w,style:$,tone:S,width:R,x:k,y:C,...b}=e,B[0]=e,B[1]=o,B[2]=r,B[3]=a,B[4]=d,B[5]=l,B[6]=s,B[7]=c,B[8]=u,B[9]=p,B[10]=f,B[11]=h,B[12]=m,B[13]=g,B[14]=b,B[15]=v,B[16]=y,B[17]=w,B[18]=$,B[19]=S,B[20]=R,B[21]=k,B[22]=C):(o=B[1],r=B[2],a=B[3],d=B[4],l=B[5],s=B[6],c=B[7],u=B[8],p=B[9],f=B[10],h=B[11],m=B[12],g=B[13],b=B[14],v=B[15],y=B[16],w=B[17],$=B[18],S=B[19],R=B[20],k=B[21],C=B[22]);let{zIndex:O}=useLayer();_=c||eU;let G=(k??0)+_[3],H=(C??0)+_[0],Q=o?"transform":void 0;B[23]!==u||B[24]!==p||B[25]!==w||B[26]!==$||B[27]!==Q||B[28]!==R||B[29]!==G||B[30]!==H||B[31]!==O?(E={left:G,originX:u,originY:p,position:w,top:H,width:R,zIndex:O,willChange:Q,...$},B[23]=u,B[24]=p,B[25]=w,B[26]=$,B[27]=Q,B[28]=R,B[29]=G,B[30]=H,B[31]=O,B[32]=E):E=B[32],z=E;let D=null!==d?d:void 0,V=null!==l?l:void 0;B[33]!==D||B[34]!==V?(A={left:D,top:V,right:void 0,bottom:void 0},B[33]=D,B[34]=V,B[35]=A):A=B[35],j=A;let W=b;return B[36]!==o?(P=o?["hidden","initial"]:void 0,B[36]=o,B[37]=P):P=B[37],B[38]!==o?(I=o?["visible","scaleIn"]:void 0,B[38]=o,B[39]=I):I=B[39],B[40]!==o?(T=o?["hidden","scaleOut"]:void 0,B[40]=o,B[41]=T):T=B[41],B[42]!==s||B[43]!==h?(N=(0,n.jsx)(ed,{direction:"column",flex:1,padding:h,children:s}),B[42]=s,B[43]=h,B[44]=N):N=B[44],B[45]!==f||B[46]!==N?(M=(0,n.jsx)(e2,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:f,variants:x.children,transition:x.transition,children:N}),B[45]=f,B[46]=N,B[47]=M):M=B[47],B[48]!==r||B[49]!==a||B[50]!==j?(L=r&&(0,n.jsx)(eL,{ref:a,style:j,width:19,height:8,radius:2}),B[48]=r,B[49]=a,B[50]=j,B[51]=L):L=B[51],B[52]!==m||B[53]!==g||B[54]!==t||B[55]!==z||B[56]!==v||B[57]!==y||B[58]!==I||B[59]!==T||B[60]!==M||B[61]!==L||B[62]!==W||B[63]!==P||B[64]!==S?(F=(0,n.jsxs)(e1,{"data-ui":"Popover",...W,"data-placement":m,radius:g,ref:t,scheme:v,shadow:y,sizing:"border",style:z,tone:S,variants:x.card,transition:x.transition,initial:P,animate:I,exit:T,children:[M,L]}),B[52]=m,B[53]=g,B[54]=t,B[55]=z,B[56]=v,B[57]=y,B[58]=I,B[59]=T,B[60]=M,B[61]=L,B[62]=W,B[63]=P,B[64]=S,B[65]=F):
679F=B[65],F}));e3.displayName="Memo(ForwardRef(PopoverCard))";let ViewportOverlay=()=>{let e;let t=(0,i.c)(2),{zIndex:o}=useLayer();return t[0]!==o?(e=(0,n.jsx)("div",{style:{height:"100vh",inset:0,position:"fixed",width:"100vw",zIndex:o}}),t[0]=o,t[1]=e):e=t[1],e},e4=(0,a.memo)((0,a.forwardRef)(function(e,t){let{container:o,layer:r}=useTheme_v2(),i=useBoundaryElement(),{__unstable_margins:d=eU,animate:l=!1,arrow:s=!1,boundaryElement:c=i.element,children:f,constrainSize:m=!1,content:g,disabled:b,fallbackPlacements:v=e.fallbackPlacements??e0[e.placement??"bottom"],matchReferenceWidth:y,floatingBoundary:w=e.boundaryElement??i.element,modal:x,onActivate:$,open:S,overflow:R="hidden",padding:k,placement:C="bottom",placementStrategy:_="flip",portal:z,preventOverflow:E=!0,radius:j=3,referenceBoundary:A=e.boundaryElement??i.element,referenceElement:P,scheme:I,shadow:T=3,tone:N="inherit",width:M="auto",zOffset:L=r.popover.zOffset,updateRef:F,...B}=e,O=!usePrefersReducedMotion()&&l,G=useElementSize(c)?.border,H=useArrayProp(k),Q=useArrayProp(j),D=useArrayProp(T),V=useArrayProp(M),W=useArrayProp(L),Y=(0,a.useRef)(null),X=(0,a.useRef)(null),q="viewport";(0,a.useImperativeHandle)(t,()=>Y.current);let K=useMediaIndex(),J=m||E?G?.width:void 0,Z=function(e){let{container:t,mediaIndex:o,width:r}=e,n=r[o],i=void 0===n?r[r.length-1]:n;return"number"==typeof i?t[i]:void 0}({container:o,mediaIndex:K,width:V}),U=(0,a.useRef)(Z);(0,a.useEffect)(()=>{U.current=Z},[Z]);let ee=function(e){let{boundaryWidth:t,currentWidth:o}=e;if(!(void 0===o&&void 0===t))return Math.min(o??1/0,(t||1/0)-8)}({boundaryWidth:J,currentWidth:Z}),et=(0,a.useRef)(ee);(0,a.useEffect)(()=>{et.current=ee},[ee]);let eo=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{let e=Y.current;if(!S||!e)return;let t=eo.current;y?void 0!==t&&(e.style.width=`${t}px`):void 0!==Z&&(e.style.width=`${Z}px`),"number"==typeof ee&&(e.style.maxWidth=`${ee}px`)},[Z,y,ee,S]);let er=(0,a.useMemo)(()=>{let e=[];return(m||E)&&("autoPlacement"===_?e.push((0,p.X5)({allowedPlacements:[C].concat(v)})):e.push((0,p.RR)({boundary:w||void 0,fallbackPlacements:v,padding:4,rootBoundary:q}))),e.push((0,p.cv)({mainAxis:4})),(m||y)&&e.push(function(e){let{apply:t,margins:o,padding:r=0}=e;return{name:"@sanity/ui/size",async fn(n){let{elements:i,placement:a,platform:d,rects:l}=n,{floating:s,reference:c}=l,p=await (0,u.US)(n,{altBoundary:!0,boundary:e.boundaryElement||void 0,elementContext:"floating",padding:r,rootBoundary:"viewport"}),f=1/0,h=1/0,m=s.width,g=s.height;a.includes("top")&&(f=m-(p.left+p.right),h=g-p.top),a.includes("right")&&(f=m-p.right,h=g-(p.top+p.bottom)),a.includes("bottom")&&(f=m-(p.left+p.right),h=g-p.bottom),a.includes("left")&&(f=m-p.left,h=g-(p.top+p.bottom)),t({availableWidth:f-o[1]-o[3],availableHeight:h-o[0]-o[2],elements:i,referenceWidth:c.width-o[1]-o[3]});let b=await d.getDimensions(i.floating),v=b.height,y=b.width;return m!==y||g!==v?{reset:{rects:!0}}:{}}}}({apply({availableWidth:e,availableHeight:t,elements:o,referenceWidth:r}){eo.current=r;let n=U.current,i=et.current;y?o.floating.style.width=`${r}px`:void 0!==n&&(o.floating.style.width=`${n}px`),m&&(o.floating.style.maxWidth=`${Math.min(e,i??1/0)}px`,o.floating.style.maxHeight=`${t}px`)},boundaryElement:w||void 0,margins:d,padding:4})),E&&e.push((0,p.uY)({boundary:w||void 0,rootBoundary:q,padding:4})),s&&e.push((0,p.x7)({element:X,padding:4})),O&&e.push(eI),e.push((0,p.Cp)({boundary:A||void 0,padding:4,strategy:"referenceHidden"})),e},[O,s,m,v,C,_,w,d,y,E,A]),{x:en,y:ei,middlewareData:ea,placement:ed,refs:el,strategy:es,update:ec}=(0,p.YF)({middleware:er,placement:C,whileElementsMounted:u.Me,elements:P?{reference:P}:void 0}),eu=ea.hide?.referenceHidden,ep=ea.arrow?.x,ef=ea.arrow?.y,eh=ea["@sanity/ui/origin"]?.originX,em=ea["@sanity/ui/origin"]?.originY,eg=(0,a.useCallback)(e=>{X.current=e},[]),eb=(0,a.useCallback)(e=>{Y.current=e,el.setFloating(e)},[el]),ev=(0,a.useCallback)(e=>{el.setReference(e);let t=getElementRef(f);"function"==typeof t?t(e):t&&(t.current=e)},[f,el]),ey=(0,a.useMemo)(()=>P?f:f?(0,a.cloneElement)(f,{ref:ev}):null,[f,P,ev]);if((0,a.useEffect)(()=>{F&&("function"==typeof F?F(ec):F&&(F.current=ec))},[ec,F]),b)return f||(0,n.jsx)(n.Fragment,{});let ew=(0,n.jsxs)(LayerProvider,{zOffset:W,children:[x&&(0,n.jsx)(ViewportOverlay,{}),(0,n.jsx)(e3,{...B,__unstable_margins:d,animate:O,arrow:s,arrowRef:eg,arrowX:ep,arrowY:ef,hidden:eu,overflow:R,padding:H,placement:ed,radius:Q,ref:eb,scheme:I,shadow:D,originX:eh,originY:em,strategy:es,tone:N,width:y?eo.current:Z,x:en,y:ei,children:g})]}),ex=S&&(z?(0,n.jsx)(Portal,{__unstable_name:"string"==typeof z?z:void 0,children:ew}):ew);return(0,n.jsxs)(n.Fragment,{children:[O?(0,n.jsx)(h.M,{children:ex}):ex,ey]})}));e4.displayName="Memo(ForwardRef(Popover))";let e5=d.zo.div.withConfig({displayName:"StyledRadio",componentId:"sc-ccrwkf-0"})(function(){return d.iv` 680 position: relative; 681 682 &:not([hidden]) { 683 display: inline-block; 684 } 685 686 &[data-read-only] { 687 outline: 1px solid red; 688 } 689 `}),e6=d.zo.input.withConfig({displayName:"Input",componentId:"sc-ccrwkf-1"}
689)(function(e){let{color:t,input:o}=(0,r.aQ)(e.theme),n=(o.radio.size-o.radio.markSize)/2;return d.iv` 690 appearance: none; 691 position: absolute; 692 top: 0; 693 left: 0; 694 opacity: 0; 695 height: 100%; 696 width: 100%; 697 outline: none; 698 z-index: 1; 699 padding: 0; 700 margin: 0; 701 border-radius: ${rem(o.radio.size/2)}; 702 border: none; 703 704 /* enabled */ 705 & + span { 706 display: block; 707 position: relative; 708 height: ${rem(o.radio.size)}; 709 width: ${rem(o.radio.size)}; 710 border-radius: ${rem(o.radio.size/2)}; 711 background: ${t.input.default.enabled.bg}; 712 box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:o.border.width})}; 713 714 &::after { 715 content: ''; 716 position: absolute; 717 top: ${rem(n)}; 718 left: ${rem(n)}; 719 height: ${rem(o.radio.markSize)}; 720 width: ${rem(o.radio.markSize)}; 721 border-radius: ${rem(o.radio.markSize/2)}; 722 background: ${t.input.default.enabled.fg}; 723 opacity: 0; 724 } 725 } 726 727 /* focused */ 728 &:not(:disabled):focus + span { 729 box-shadow: ${focusRingStyle({border:{width:o.border.width,color:t.input.default.enabled.border},focusRing:o.radio.focusRing})}; 730 } 731 732 &:not(:disabled):focus:not(:focus-visible) + span { 733 box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:o.border.width})}; 734 } 735 736 &:checked + span::after { 737 opacity: 1; 738 } 739 740 /* customValidity */ 741 &[data-error] + span { 742 background-color: ${t.input.invalid.enabled.border}; 743 box-shadow: ${focusRingBorderStyle({width:o.border.width,color:t.input.invalid.enabled.muted.bg})}; 744 &::after { 745 background: ${t.input.invalid.enabled.muted.bg}; 746 } 747 } 748 749 /* read only */ 750 &[data-read-only] + span { 751 box-shadow: 0 0 0 1px ${t.input.default.readOnly.border}; 752 background: ${t.input.default.readOnly.bg}; 753 754 &::after { 755 background: ${t.input.default.readOnly.border}; 756 } 757 } 758 759 /* disabled */ 760 &:not([data-read-only]):disabled + span { 761 box-shadow: 0 0 0 1px ${t.input.default.disabled.border}; 762 background: ${t.input.default.disabled.bg}; 763 764 &::after { 765 background: ${t.input.default.disabled.border}; 766 } 767 } 768 `}),e7=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h;let m=(0,i.c)(19);m[0]!==e?({className:o,disabled:d,style:c,customValidity:r,readOnly:l,...s}=e,m[0]=e,m[1]=o,m[2]=r,m[3]=d,m[4]=l,m[5]=s,m[6]=c):(o=m[1],r=m[2],d=m[3],l=m[4],s=m[5],c=m[6]);let g=(0,a.useRef)(null);m[7]===Symbol.for("react.memo_cache_sentinel")?(u=()=>g.current,m[7]=u):u=m[7],(0,a.useImperativeHandle)(t,u),useCustomValidity(g,r);let b=!d&&l?"":void 0,v=r?"":void 0,y=d||l;return m[8]!==l||m[9]!==s||m[10]!==b||m[11]!==v||m[12]!==y?(p=(0,n.jsx)(e6,{"data-read-only":b,"data-error":v,...s,disabled:y,readOnly:l,ref:g,type:"radio"}),m[8]=l,m[9]=s,m[10]=b,m[11]=v,m[12]=y,m[13]=p):p=m[13],m[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)("span",{}),m[14]=f):f=m[14],m[15]!==o||m[16]!==c||m[17]!==p?(h=(0,n.jsxs)(e5,{className:o,"data-ui":"Radio",style:c,children:[p,f]}),m[15]=o,m[16]=c,m[17]=p,m[18]=h):h=m[18],h});function inputBaseStyle(e){let{font:t}=(0,r.aQ)(e.theme);return d.iv` 769 -webkit-font-smoothing: antialiased; 770 appearance: none; 771 border: 0; 772 font-family: ${t.text.family}; 773 color: inherit; 774 width: 100%; 775 outline: none; 776 margin: 0; 777 778 &:disabled { 779 opacity: 1; 780 } 781 `}
781function inputColorStyle(e){let{color:t,input:o}=(0,r.aQ)(e.theme);return d.iv` 782 /* enabled */ 783 background-color: ${t.input.default.enabled.bg}; 784 color: ${t.input.default.enabled.fg}; 785 box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:o.border.width})}; 786 787 /* hovered */ 788 @media (hover: hover) { 789 &:not(:disabled):hover { 790 background-color: ${t.input.default.hovered.bg}; 791 color: ${t.input.default.hovered.fg}; 792 box-shadow: ${focusRingBorderStyle({color:t.input.default.hovered.border,width:o.border.width})}; 793 } 794 } 795 796 /* focused */ 797 &:not(:disabled):focus { 798 box-shadow: ${focusRingStyle({border:{width:o.border.width,color:t.input.default.enabled.border},focusRing:o.select.focusRing})}; 799 } 800 801 /* read-only */ 802 &[data-read-only] { 803 background-color: ${t.input.default.readOnly.bg}; 804 color: ${t.input.default.readOnly.fg}; 805 box-shadow: ${focusRingBorderStyle({color:t.input.default.readOnly.border,width:o.border.width})}; 806 } 807 808 /* disabled */ 809 &:not([data-read-only]):disabled { 810 background-color: ${t.input.default.disabled.bg}; 811 color: ${t.input.default.disabled.fg}; 812 box-shadow: ${focusRingBorderStyle({color:t.input.default.disabled.border,width:o.border.width})}; 813 } 814 `}function inputTextSizeStyle(e){let{$fontSize:t}=e,{font:o,media:n}=(0,r.aQ)(e.theme);return _responsive(n,t,e=>{var t;return{fontSize:rem((t=o.text.sizes[e]||o.text.sizes[2]).fontSize),lineHeight:rem(t.lineHeight)}})}e7.displayName="ForwardRef(Radio)";let e8={root:function(){return d.iv` 815 position: relative; 816 width: -moz-available; 817 width: -webkit-fill-available; 818 width: stretch; 819 820 &:not([hidden]) { 821 display: inline-block; 822 } 823 `},input:function(){return[responsiveRadiusStyle,inputBaseStyle,inputColorStyle,inputTextSizeStyle,responsiveInputPaddingIconRightStyle]},iconBox:function(e){let{color:t}=(0,r.aQ)(e.theme);return d.iv` 824 pointer-events: none; 825 position: absolute; 826 top: 0; 827 right: 0; 828 829 /* enabled */ 830 --card-fg-color: ${t.input.default.enabled.fg}; 831 832 /* hover */ 833 @media (hover: hover) { 834 select:not(disabled):not(:read-only):hover + && { 835 --card-fg-color: ${t.input.default.hovered.fg}; 836 } 837 } 838 839 /* disabled */ 840 select:disabled + && { 841 --card-fg-color: ${t.input.default.disabled.fg}; 842 } 843 844 /* read-only */ 845 select[data-read-only] + && { 846 --card-fg-color: ${t.input.default.readOnly.fg}; 847 } 848 `}},e9=d.zo.div.withConfig({displayName:"StyledSelect",componentId:"sc-5mxno7-0"})(e8.root),te=d.zo.select.withConfig({displayName:"Input",componentId:"sc-5mxno7-1"})(e8.input),tt=(0,d.zo)(et).withConfig({displayName:"IconBox",componentId:"sc-5mxno7-2"})(e8.iconBox),to=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,u,p,f,h,m,g,b,v,y,w;let x=(0,i.c)(29);x[0]!==e?({children:o,customValidity:r,disabled:d,fontSize:u,padding:p,radius:f,readOnly:l,space:h,...s}=e,x[0]=e,x[1]=o,x[2]=r,x[3]=d,x[4]=l,x[5]=s,x[6]=u,x[7]=p,x[8]=f,x[9]=h):(o=x[1],r=x[2],d=x[3],l=x[4],s=x[5],u=x[6],p=x[7],f=x[8],h=x[9]);let $=void 0===u?2:u,S=void 0===p?3:p,R=void 0===f?2:f,k=void 0===h?3:h,C=(0,a.useRef)(null);x[10]===Symbol.for("react.memo_cache_sentinel")?(m=()=>C.current,x[10]=m):m=x[10],(0,a.useImperativeHandle)(t,m),useCustomValidity(C,r);let _=!d&&l?"":void 0,z=useArrayProp($),E=useArrayProp(S),j=useArrayProp(R),A=useArrayProp(k),P=d||l;return x[11]!==o||x[12]!==s||x[13]!==P||x[14]!==_||x[15]!==z||x[16]!==E||x[17]!==j||x[18]!==A?(g=(0,n.jsx)(te,{"data-read-only":_,"data-ui":"Select",...s,$fontSize:z,$padding:E,$radius:j,$space:A,disabled:P,ref:C,children:o}),x[11]=o,x[12]=s,x[13]=P,x[14]=_,x[15]=z,x[16]=E,x[17]=j,x[18]=A,x[19]=g):g=x[19],x[20]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.jsx)(c.v4q,{}),x[20]=b):b=x[20],x[21]!==$?(v=(0,n.jsx)(er,{size:$,children:b}),x[21]=$,x[22]=v):v=x[22],x[23]!==S||x[24]!==v?(y=(0,n.jsx)(tt,{padding:S,children:v}),x[23]=S,x[24]=v,x[25]=y):y=x[25],x[26]!==g||x[27]!==y?(w=(0,n.jsxs)(e9,{"data-ui":"Select",children:[g,y]}),x[26]=g,x[27]=y,x[28]=w):w=x[28],w});to.displayName="ForwardRef(Select)";let tr={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"},tn=(0,d.zo)(et).withConfig({displayName:"StyledStack",componentId:"sc-8dpfq2-0"})(function(){return tr}
848,function(e){let{media:t,space:o}=(0,r.aQ)(e.theme);return _responsive(t,e.$space,e=>({gridGap:rem(o[e])}))}),ti=(0,a.forwardRef)(function(e,t){let o,r,a,d;let l=(0,i.c)(10);l[0]!==e?({as:o,space:a,...r}=e,l[0]=e,l[1]=o,l[2]=r,l[3]=a):(o=l[1],r=l[2],a=l[3]);let s="string"==typeof o?o:void 0,c=useArrayProp(a);return l[4]!==o||l[5]!==t||l[6]!==r||l[7]!==s||l[8]!==c?(d=(0,n.jsx)(tn,{"data-as":s,"data-ui":"Stack",...r,$space:c,forwardedAs:o,ref:t}),l[4]=o,l[5]=t,l[6]=r,l[7]=s,l[8]=c,l[9]=d):d=l[9],d});ti.displayName="ForwardRef(Stack)";let ta=d.zo.span.withConfig({displayName:"StyledSwitch",componentId:"sc-dw1foe-0"})(function(){return d.iv` 849 position: relative; 850 &:not([hidden]) { 851 display: inline-block; 852 } 853 `}),td=d.zo.input.withConfig({displayName:"Input",componentId:"sc-dw1foe-1"})(function(){return d.iv` 854 position: absolute; 855 top: 0; 856 right: 0; 857 bottom: 0; 858 left: 0; 859 opacity: 0; 860 height: 100%; 861 width: 100%; 862 outline: none; 863 padding: 0; 864 margin: 0; 865 866 /* Place the input element above the representation element */ 867 z-index: 1; 868 `}),tl=d.zo.span.withConfig({displayName:"Representation",componentId:"sc-dw1foe-2"})(function(e){let{color:t,input:o}=(0,r.aQ)(e.theme);return d.iv` 869 --switch-bg-color: ${t.input.default.enabled.border}; 870 --switch-fg-color: ${t.input.default.enabled.bg}; 871 --switch-box-shadow: none; 872 873 &:not([hidden]) { 874 display: block; 875 } 876 position: relative; 877 width: ${rem(o.switch.width)}; 878 height: ${rem(o.switch.height)};
879 border-radius: ${rem(o.switch.height/2)}; 880 881 /* Make sure itâs not possible to interact with the wrapper element */ 882 pointer-events: none; 883 884 &:after { 885 content: ''; 886 display: block; 887 position: absolute; 888 top: 0; 889 left: 0; 890 right: 0; 891 bottom: 0; 892 z-index: 1; 893 box-shadow: var(--switch-box-shadow); 894 border-radius: inherit; 895 } 896 897 /* Focus styles */ 898 input:focus + && { 899 --switch-box-shadow: ${focusRingStyle({focusRing:o.switch.focusRing})}; 900 } 901 902 input:focus:not(:focus-visible) + && { 903 --switch-box-shadow: none; 904 } 905 906 input:checked + && { 907 --switch-bg-color: ${t.input.default.enabled.fg}; 908 --switch-fg-color: ${t.input.default.enabled.bg}; 909 } 910 911 @media (hover: hover) { 912 input:not(:disabled):hover + && { 913 --switch-bg-color: ${t.input.default.hovered.border}; 914 --switch-fg-color: ${t.input.default.hovered.bg}; 915 } 916 917 input:not(:disabled):checked:hover + && { 918 --switch-bg-color: ${t.input.default.enabled.fg}; 919 --switch-fg-color: ${t.input.default.enabled.bg}; 920 } 921 } 922 923 input:not([data-read-only]):disabled + && { 924 --switch-bg-color: ${t.input.default.disabled.border}; 925 --switch-fg-color: ${t.input.default.disabled.bg}; 926 } 927 928 input[data-read-only]:disabled + && { 929 --switch-bg-color: ${t.input.default.readOnly.border}; 930 --switch-fg-color: ${t.input.default.readOnly.bg}; 931 } 932 933 input:checked[data-read-only]:disabled + && { 934 --switch-bg-color: ${t.input.default.readOnly.fg}; 935 --switch-fg-color: ${t.input.default.readOnly.bg}; 936 } 937 `}),ts=d.zo.span.withConfig({displayName:"Track",componentId:"sc-dw1foe-3"})(function(e){let{input:t}=(0,r.aQ)(e.theme);return d.iv` 938 &:not([hidden]) { 939 display: block; 940 } 941 background-color: var(--switch-bg-color); 942 position: absolute; 943 left: 0; 944 top: 0; 945 width: ${rem(t.switch.width)}; 946 height: ${rem(t.switch.height)}; 947 border-radius: ${rem(t.switch.height/2)}; 948 `}),tc=d.zo.span.withConfig({displayName:"Thumb",componentId:"sc-dw1foe-4"})(function(e){let{$indeterminate:t}=e,{input:o}=(0,r.aQ)(e.theme),n=o.switch.width,i=o.switch.height,a=o.switch.padding,l=i-2*o.switch.padding,s=n-2*a-l,c=n/2-l/2-a,u=!0!==t&&!0===e.$checked;return d.iv` 949 &:not([hidden]) { 950 display: block; 951 } 952 position: absolute; 953 left: ${rem(a)}; 954 top: ${rem(a)}; 955 height: ${rem(l)}; 956 width: ${rem(l)}; 957 border-radius: ${rem(l/2)}; 958 transition-property: transform; 959 transition-duration: ${o.switch.transitionDurationMs}ms; 960 transition-timing-function: ${o.switch.transitionTimingFunction}; 961 background: var(--switch-fg-color); 962 transform: translate3d(0, 0, 0); 963 box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05); 964 965 ${u&&d.iv` 966 transform: translate3d(${s}px, 0, 0); 967 `} 968 969 ${t&&d.iv` 970 transform: translate3d(${c}px, 0, 0); 971 `} 972 `}),tu=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m,g,b,v;let y=(0,i.c)(26);y[0]!==e?({checked:o,className:r,disabled:d,indeterminate:l,readOnly:s,style:u,...c}=e,y[0]=e,y[1]=o,y[2]=r,y[3]=d,y[4]=l,y[5]=s,y[6]=c,y[7]=u):(o=y[1],r=y[2],d=y[3],l=y[4],s=y[5],c=y[6],u=y[7]);let w=(0,a.useRef)(null);y[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>w.current,y[8]=p):p=y[8],(0,a.useImperativeHandle)(t,p),y[9]!==l?(f=()=>{w.current&&(w.current.indeterminate=l||!1)},h=[l],y[9]=l,y[10]=f,y[11]=h):(f=y[10],h=y[11]),(0,a.useEffect)(f,h);let x=!d&&s?"":void 0,$=!0!==l&&o,S=d||s;return y[12]!==c||y[13]!==x||y[14]!==$||y[15]!==S?(m=(0,n.jsx)(td,{"data-read-only":x,...c,checked:$,disabled:S,type:"checkbox",ref:w}),y[12]=c,y[13]=x,y[14]=$,y[15]=S,y[16]=m):m=y[16],y[17]===Symbol.for("react.memo_cache_sentinel")?(g=(0,n.jsx)(ts,{}),y[17]=g):g=y[17],y[18]!==o||y[19]!==l?(b=(0,n.jsxs)(tl,{"aria-hidden":!0,"data-name":"representation",children:[g,(0,n.jsx)(tc,{$checked:o,$indeterminate:l})]}),y[18]=o,y[19]=l,y[20]=b):b=y[20],y[21]!==r||y[22]!==u||y[23]!==m||y[24]!==b?(v=(0,n.jsxs)(ta,{className:r,"data-ui":"Switch",style:u,children:[m,b]}),y[21]=r,y[22]=u,y[23]=m,y[24]=b,y[25]=v):v=y[25],v});tu.displayName="ForwardRef(Switch)";let tp=d.zo.span.withConfig({displayName:"StyledTextArea",componentId:"sc-1d6h1o8-0"})(textInputRootStyle),tf=d.zo.span.withConfig({displayName:"InputRoot",componentId:"sc-1d6h1o8-1"})`flex:1;min-width:0;display:block;position:relative;`,th=d.zo.textarea.withConfig({displayName:"Input",componentId:"sc-1d6h1o8-2"})(responsiveInputPaddingStyle,textInputBaseStyle,textInputFontSizeStyle),tm=d.zo.div.withConfig({displayName:"Presentation",componentId:"sc-1d6h1o8-3"})(responsiveRadiusStyle,textInputRepresentationStyle),tg=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m,g,b;let v=(0,i.c)(29);v[0]!==e?({border:l,customValidity:r,disabled:s,fontSize:c,padding:u,radius:p,weight:f,__unstable_disableFocusRing:o,...d}=e,v[0]=e,v[1]=o,v[2]=r,v[3]=d,v[4]=l,v[5]=s,v[6]=c,v[7]=u,v[8]=p,v[9]=f):(o=v[1],r=v[2],d=v[3],l=v[4],s=v[5],c=v[6],u=v[7],p=v[8],f=v[9]);let y=void 0===l||l,w=void 0!==s&&s,x=void 0===c?2:c,$=void 0===u?3:u,S=void 0===p?2:p,R=(0,a.useRef)(null),k=useRootTheme(
972);v[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>R.current,v[10]=h):h=v[10],(0,a.useImperativeHandle)(t,h),useCustomValidity(R,r);let C=k.scheme,_=k.tone,z=useArrayProp(x),E=useArrayProp($),j=k.scheme,A=useArrayProp(0);v[11]!==w||v[12]!==d||v[13]!==k.scheme||v[14]!==k.tone||v[15]!==A||v[16]!==z||v[17]!==E||v[18]!==f?(m=(0,n.jsx)(th,{"data-as":"textarea","data-scheme":C,"data-tone":_,...d,$fontSize:z,$padding:E,$scheme:j,$space:A,$tone:k.tone,$weight:f,disabled:w,ref:R}),v[11]=w,v[12]=d,v[13]=k.scheme,v[14]=k.tone,v[15]=A,v[16]=z,v[17]=E,v[18]=f,v[19]=m):m=v[19];let P=useArrayProp(S),I=y?"":void 0;return v[20]!==o||v[21]!==k.scheme||v[22]!==k.tone||v[23]!==P||v[24]!==I?(g=(0,n.jsx)(tm,{$radius:P,$unstableDisableFocusRing:o,$scheme:k.scheme,$tone:k.tone,"data-border":I,"data-scheme":k.scheme,"data-tone":k.tone}),v[20]=o,v[21]=k.scheme,v[22]=k.tone,v[23]=P,v[24]=I,v[25]=g):g=v[25],v[26]!==m||v[27]!==g?(b=(0,n.jsx)(tp,{"data-ui":"TextArea",children:(0,n.jsxs)(tf,{children:[m,g]})}),v[26]=m,v[27]=g,v[28]=b):b=v[28],b});tg.displayName="ForwardRef(TextArea)";let tb={zIndex:2},tv=(0,d.zo)(em).attrs({forwardedAs:"span"}).withConfig({displayName:"StyledTextInput",componentId:"sc-h62wco-0"})(textInputRootStyle),ty=d.zo.span.withConfig({displayName:"InputRoot",componentId:"sc-h62wco-1"})`flex:1;min-width:0;display:block;position:relative;`,tw=(0,d.zo)(em).attrs({forwardedAs:"span"}).withConfig({displayName:"Prefix",componentId:"sc-h62wco-2"})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`,tx=(0,d.zo)(em).attrs({forwardedAs:"span"}).withConfig({displayName:"Suffix",componentId:"sc-h62wco-3"})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`,t$=d.zo.input.withConfig({displayName:"Input",componentId:"sc-h62wco-4"})(responsiveInputPaddingStyle,textInputBaseStyle,textInputFontSizeStyle),tS=d.zo.span.withConfig({displayName:"Presentation",componentId:"sc-h62wco-5"})(responsiveRadiusStyle,textInputRepresentationStyle),tR=(0,d.zo)(et).withConfig({displayName:"LeftBox",componentId:"sc-h62wco-6"})`position:absolute;top:0;left:0;`,tk=(0,d.zo)(et).withConfig({displayName:"RightBox",componentId:"sc-h62wco-7"})`position:absolute;top:0;right:0;`,tC=(0,d.zo)(em).withConfig({displayName:"RightCard",componentId:"sc-h62wco-8"})`background-color:transparent;position:absolute;top:0;right:0;`,t_=(0,d.zo)(ef).withConfig({displayName:"TextInputClearButton",componentId:"sc-h62wco-9"})({"&:not([hidden])":{display:"block"}}),tz=(0,a.forwardRef)(function(e,t){let o,r,d,l,u,p,f,h,m,g,b,v,y,x,$,S,R,k,C,_,z,E,j,A,P,I,T,N,M,L,F,B,O,G,H,Q,D,V;let W=(0,i.c)(84);W[0]!==e?({__unstable_disableFocusRing:d,border:b,clearButton:l,disabled:v,fontSize:y,icon:o,iconRight:r,onClear:p,padding:x,prefix:f,radius:$,readOnly:h,space:S,suffix:g,customValidity:u,type:R,weight:k,...m}=e,W[0]=e,W[1]=o,W[2]=r,W[3]=d,W[4]=l,W[5]=u,W[6]=p,W[7]=f,W[8]=h,W[9]=m,W[10]=g,W[11]=b,W[12]=v,W[13]=y,W[14]=x,W[15]=$,W[16]=S,W[17]=R,W[18]=k):(o=W[1],r=W[2],d=W[3],l=W[4],u=W[5],p=W[6],f=W[7],h=W[8],m=W[9],g=W[10],b=W[11],v=W[12],y=W[13],x=W[14],$=W[15],S=W[16],R=W[17],k=W[18]);let Y=void 0===b||b,X=void 0!==v&&v,q=void 0===y?2:y,K=void 0===x?3:x,J=void 0===$?2:$,Z=void 0===S?3:S,U=void 0===R?"text":R,ee=(0,a.useRef)(null),et=useRootTheme(),eo=useArrayProp(q),en=useArrayProp(K),ei=useArrayProp(J),ea=useArrayProp(Z),ed=!!l,el=!!o,es=!!r,ec=!!g,eu=!!f;W[19]===Symbol.for("react.memo_cache_sentinel")?(C=()=>ee.current,W[19]=C):C=W[19],(0,a.useImperativeHandle)(t,C),useCustomValidity(ee,u),W[20]!==p?(_=e=>{e.preventDefault(),e.stopPropagation(),p&&p(),ee.current?.focus()},W[20]=p,W[21]=_):_=W[21];let ep=_;W[22]!==f||W[23]!==ei?(E=f&&(0,n.jsx)(tw,{borderTop:!0,borderLeft:!0,borderBottom:!0,radius:ei,sizing:"border",tone:"inherit",children:(0,n.jsx)("span",{children:f})}),W[22]=f,W[23]=ei,W[24]=E):E=W[24],z=E;let ef=Y?"":void 0;W[25]!==o||W[26]!==eo||W[27]!==en?(A=o&&(0,n.jsx)(tR,{padding:en,children:(0,n.jsxs)(er,{size:eo,children:[(0,a.isValidElement)(o)&&o,(0,s.isValidElementType)(o)&&(0,n.jsx)(o,{})]})}),W[25]=o,W[26]=eo,W[27]=en,W[28]=A):A=W[28],W[29]!==ed||W[30]!==r||W[31]!==eo||W[32]!==en?(P=!ed&&r&&(0,n.jsx)(tk,{padding:en,children:(0,n.jsxs)(er,{size:eo,children:[(0,a.isValidElement)(r)&&r,(0,s.isValidElementType)(r)&&(0,n.jsx)(r,{})]})}),W[29]=ed,W[30]=r,W[31]=eo,W[32]=en,W[33]=P):P=W[33],W[34]!==eu||W[35]!==ec||W[36]!==d||W[37]!==ei||W[38]!==et.scheme||W[39]!==et.tone||W[40]!==ef||W[41]!==A||W[42]!==P?(I=(0,n.jsxs)(tS,{$hasPrefix:eu,$unstableDisableFocusRing:d,$hasSuffix:ec,$radiu
972s:ei,$scheme:et.scheme,$tone:et.tone,"data-border":ef,"data-scheme":et.scheme,"data-tone":et.tone,children:[A,P]}),W[34]=eu,W[35]=ec,W[36]=d,W[37]=ei,W[38]=et.scheme,W[39]=et.tone,W[40]=ef,W[41]=A,W[42]=P,W[43]=I):I=W[43],j=I,W[44]!==en?(N=en.map(_temp2),W[44]=en,W[45]=N):N=W[45],T=N,W[46]!==en?(L=en.map(_temp3),W[46]=en,W[47]=L):L=W[47],M=L,F="object"==typeof l?l:w,W[48]!==l||W[49]!==T||W[50]!==M||W[51]!==F||W[52]!==u||W[53]!==X||W[54]!==eo||W[55]!==ep||W[56]!==ei||W[57]!==h?(O=!X&&!h&&l&&(0,n.jsx)(tC,{forwardedAs:"span",padding:T,style:tb,tone:u?"critical":"inherit",children:(0,n.jsx)(t_,{"aria-label":"Clear","data-qa":"clear-button",fontSize:eo,icon:c.Two,mode:"bleed",padding:M,radius:ei,...F,onClick:ep,onMouseDown:_temp$1})}),W[48]=l,W[49]=T,W[50]=M,W[51]=F,W[52]=u,W[53]=X,W[54]=eo,W[55]=ep,W[56]=ei,W[57]=h,W[58]=O):O=W[58],B=O,W[59]!==ei||W[60]!==g?(H=g&&(0,n.jsx)(tx,{borderTop:!0,borderRight:!0,borderBottom:!0,radius:ei,sizing:"border",tone:"inherit",children:(0,n.jsx)("span",{children:g})}),W[59]=ei,W[60]=g,W[61]=H):H=W[61],G=H;let eh=es||ed;return W[62]!==el||W[63]!==X||W[64]!==eo||W[65]!==en||W[66]!==h||W[67]!==m||W[68]!==et.scheme||W[69]!==et.tone||W[70]!==ea||W[71]!==eh||W[72]!==U||W[73]!==k?(Q=(0,n.jsx)(t$,{"data-as":"input","data-scheme":et.scheme,"data-tone":et.tone,...m,$fontSize:eo,$iconLeft:el,$iconRight:eh,$padding:en,$scheme:et.scheme,$space:ea,$tone:et.tone,$weight:k,disabled:X,readOnly:h,ref:ee,type:U}),W[62]=el,W[63]=X,W[64]=eo,W[65]=en,W[66]=h,W[67]=m,W[68]=et.scheme,W[69]=et.tone,W[70]=ea,W[71]=eh,W[72]=U,W[73]=k,W[74]=Q):Q=W[74],W[75]!==B||W[76]!==j||W[77]!==Q?(D=(0,n.jsxs)(ty,{children:[Q,j,B]}),W[75]=B,W[76]=j,W[77]=Q,W[78]=D):D=W[78],W[79]!==z||W[80]!==et.tone||W[81]!==G||W[82]!==D?(V=(0,n.jsxs)(tv,{"data-ui":"TextInput",tone
972:et.tone,children:[z,D,G]}),W[79]=z,W[80]=et.tone,W[81]=G,W[82]=D,W[83]=V):V=W[83],V});function _temp$1(e){e.preventDefault(),e.stopPropagation()}function _temp2(e){return 0===e?0:1===e||2===e?1:e-2}function _temp3(e){return 0===e||1===e?0:2===e?1:e-1}tz.displayName="ForwardRef(TextInput)";let tE={top:["top-end","top-start","bottom","left","right"],"top-start":["top","top-end","bottom-start","left-start","right-start"],"top-end":["top","top-start","bottom-end","left-end","right-end"],bottom:["bottom-end","bottom-start","top","left","right"],"bottom-start":["bottom","bottom-end","top-start","left-start","right-start"],"bottom-end":["bottom","bottom-start","top-end","left-end","right-end"],left:["left-end","left-start","right","top","bottom"],"left-start":["left","left-end","right-start","top-start","bottom-start"],"left-end":["left","left-start","right-end","top-end","bottom-end"],right:["right-end","right-start","left","top","bottom"],"right-start":["right","right-end","left-start","top-start","bottom-start"],"right-end":["right","right-start","left-end","top-end","bottom-end"]},tj=(0,d.zo)(f.E.create(em)).withConfig({displayName:"MotionCard",componentId:"sc-1xn138w-0"})`will-change:transform;`,tA=(0,a.memo)((0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p,f,h,m,g,b,v,y,w,$,S,R,k,C,_,z;let E=(0,i.c)(48);E[0]!==e?({animate:o,arrow:r,arrowRef:a,arrowX:d,arrowY:l,children:s,originX:c,originY:u,padding:p,placement:f,radius:h,scheme:g,shadow:b,style:v,...m}=e,E[0]=e,E[1]=o,E[2]=r,E[3]=a,E[4]=d,E[5]=l,E[6]=s,E[7]=c,E[8]=u,E[9]=p,E[10]=f,E[11]=h,E[12]=m,E[13]=g,E[14]=b,E[15]=v):(o=E[1],r=E[2],a=E[3],d=E[4],l=E[5],s=E[6],c=E[7],u=E[8],p=E[9],f=E[10],h=E[11],m=E[12],g=E[13],b=E[14],v=E[15]);let j=o?"transform":void 0;E[16]!==c||E[17]!==u||E[18]!==v||E[19]!==j?(w={originX:c,originY:u,willChange:j,...v},E[16]=c,E[17]=u,E[18]=v,E[19]=j,E[20]=w):w=E[20],y=w;let A=null!==d?d:void 0,P=null!==l?l:void 0;E[21]!==A||E[22]!==P?(S={left:A,top:P,right:void 0,bottom:void 0},E[21]=A,E[22]=P,E[23]=S):S=E[23],$=S;let I=m;return E[24]!==o?(R=o?["hidden","initial"]:void 0,E[24]=o,E[25]=R):R=E[25],E[26]!==o?(k=o?["visible","scaleIn"]:void 0,E[26]=o,E[27]=k):k=E[27],E[28]!==o?(C=o?["hidden","scaleOut"]:void 0,E[28]=o,E[29]=C):C=E[29],E[30]!==r||E[31]!==a||E[32]!==$?(_=r&&(0,n.jsx)(eL,{ref:a,style:$,width:15,height:6,radius:2}),E[30]=r,E[31]=a,E[32]=$,E[33]=_):_=E[33],E[34]!==s||E[35]!==p||E[36]!==f||E[37]!==h||E[38]!==t||E[39]!==y||E[40]!==g||E[41]!==b||E[42]!==C||E[43]!==_||E[44]!==I||E[45]!==R||E[46]!==k?(z=(0,n.jsxs)(tj,{"data-ui":"Tooltip__card",...I,"data-placement":f,padding:p,radius:h,ref:t,scheme:g,shadow:b,style:y,variants:x.card,transition:x.transition,initial:R,animate:k,exit:C,children:[s,_]}),E[34]=s,E[35]=p,E[36]=f,E[37]=h,E[38]=t,E[39]=y,E[40]=g,E[41]=b,E[42]=C,E[43]=_,E[44]=I,E[45]=R,E[46]=k,E[47]=z):z=E[47],z}));tA.displayName="Memo(ForwardRef(TooltipCard))";let tP=createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup",null),tI=(0,d.zo)(eD).withConfig({displayName:"StyledTooltip",componentId:"sc-13f2zvh-0"})`pointer-events:none;`,tT=(0,a.forwardRef)(function(e,t){let o=useBoundaryElement(),{layer:r}=useTheme_v2(),{animate:d=!1,arrow:l=!1,boundaryElement:s=o?.element,children:c,content:f,disabled:m,fallbackPlacements:g=e.fallbackPlacements??tE[e.placement??"bottom"],padding:v=2,placement:y="bottom",portal:w,radius:x=2,scheme:$,shadow:S=2,zOffset:R=r.tooltip.zOffset,delay:k,...C}=e,_=!usePrefersReducedMotion()&&d,z=useArrayProp(g),E=(0,a.useRef)(null),[j,A]=(0,a.useState)(null),P=(0,a.useRef)(null),I="viewport",[T,N]=(0,a.useState)(0);(0,a.useImperativeHandle)(t,()=>E.current);let M=usePortal(),L="string"==typeof w?M.elements?.[w]||null:M.element,F=(0,a.useMemo)(()=>{let e=[];return e.push((0,p.RR)({boundary:s||void 0,fallbackPlacements:z,padding:4,rootBoundary:I})),e.push((0,p.cv)({mainAxis:4})),e.push((0,p.uY)({boundary:s||void 0,rootBoundary:I,padding:4})),l&&e.push((0,p.x7)({element:P,padding:4})),_&&e.push(eI),e},[_,l,s,z]),{floatingStyles:B,placement:O,middlewareData:G,refs:H,update:Q}=(0,p.YF)({middleware:F,placement:y,whileElementsMounted:u.Me,elements:{reference:j}}),D=G.arrow?.x,V=G.arrow?.y,W=G["@sanity/ui/origin"]?.originX,Y=G["@sanity/ui/origin"]?.originY,X=(0,a.useId)(),[q,K]=function(e){let t,o;let r=(0,i.c)(3),[n,d]=(0,a.useState)(e),l=(0,a.useRef)(void 0);r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>
972{let action=()=>{d(e)};if(l.current&&(clearTimeout(l.current),l.current=void 0),!t)return action();l.current=setTimeout(action,t)},r[0]=t):t=r[0];let s=t;return r[1]!==n?(o=[n,s],r[1]=n,r[2]=o):o=r[2],o}(!1),J=(0,a.useContext)(tP),{setIsGroupActive:Z,setOpenTooltipId:U}=J||{},ee=q||J?.openTooltipId===X,et=null!==J,eo="number"==typeof k?k:k?.open||0,er="number"==typeof k?k:k?.close||0,en=et?J.openDelay:eo,ei=et?J.closeDelay:er,ea=(0,a.useCallback)((e,t)=>{if(et){if(e){let o=t?0:en;Z?.(e,o),U?.(X,o)}else{let o=ei>200?ei:200;Z?.(e,o),U?.(null,t?0:ei)}}else K(e,t?0:e?en:ei)},[et,en,Z,U,X,ei,K]),ed=(0,a.useCallback)(e=>{ea(!1),c?.props?.onBlur?.(e)},[c?.props,ea]),el=(0,a.useCallback)(e=>{ea(!1,!0),c?.props.onClick?.(e)},[c?.props,ea]),es=(0,a.useCallback)(e=>{ea(!1,!0),c?.props.onContextMenu?.(e)},[c?.props,ea]),ec=(0,a.useCallback)(e=>{ea(!0),c?.props?.onFocus?.(e)},[c?.props,ea]),eu=(0,a.useCallback)(e=>{ea(!0),c?.props?.onMouseEnter?.(e)},[c?.props,ea]),ep=(0,a.useCallback)(e=>{ea(!1),c?.props?.onMouseLeave?.(e)},[c?.props,ea]);(function(e){let t,o,r;let n=(0,i.c)(10),{handleIsOpenChange:d,referenceElement:l,showTooltip:s,isInsideGroup:c}=e;n[0]!==d||n[1]!==l?(t=(e,t)=>{l&&(l===e||e instanceof Node&&l.contains(e)||(d(!1),t()))},n[0]=d,n[1]=l,n[2]=t):t=n[2];let u=(0,b.i)(t);n[3]!==c||n[4]!==u||n[5]!==s?(o=()=>{if(!s||c)return;let handleMouseMove=e=>{u(e.target,()=>window.removeEventListener("mousemove",handleMouseMove))};return window.addEventListener("mousemove",handleMouseMove),()=>window.removeEventListener("mousemove",handleMouseMove)},n[3]=c,n[4]=u,n[5]=s,n[6]=o):o=n[6],n[7]!==c||n[8]!==s?(r=[c,s],n[7]=c,n[8]=s,n[9]=r):r=n[9],(0,a.useEffect)(o,r)})({handleIsOpenChange:ea,referenceElement:j,showTooltip:ee,isInsideGroup:et}),(0,a.useEffect)(()=>{m&&ee&&ea(!1)},[m,ea,ee]),(0,a.useEffect)(()=>{!f&&ee&&ea(!1)},[f,ea,ee]),(0,a.useEffect)(()=>{if(ee)return window.addEventListener("keydown",handleWindowKeyDown),()=>{window.removeEventListener("keydown",handleWindowKeyDown)};function handleWindowKeyDown(e){"Escape"===e.key&&ea(!1,!0)}},[ea,ee]),(0,a.useLayoutEffect)(()=>{let e=[...s?[s.offsetWidth]:[],L?.offsetWidth||document.body.offsetWidth];N(Math.min(...e)-8)},[s,L]);let ef=(0,a.useCallback)(e=>{P.current=e,Q()},[Q]),eh=(0,a.useCallback)(e=>{E.current=e,H.setFloating(e)},[H]),em=(0,a.useMemo)(()=>c?(0,a.cloneElement)(c,{onBlur:ed,onFocus:ec,onMouseEnter:eu,onMouseLeave:ep,onClick:el,onContextMenu:es,ref:A}):null,[c,ed,el,es,ec,eu,ep]);if((0,a.useImperativeHandle)(c?getElementRef(c):null,()=>j,[j]),!em)return(0,n.jsx)(n.Fragment,{});if(m)return em;let eg=(0,n.jsx)(tI,{"data-ui":"Tooltip",...C,ref:eh,style:{...B,maxWidth:T>0?`${T}px`:void 0},zOffset:R,children:(0,n.jsx)(tA,{...C,animate:_,arrow:l,arrowRef:ef,arrowX:D,arrowY:V,originX:W,originY:Y,padding:v,placement:O,radius:x,ref:eh,scheme:$,shadow:S,children:f})}),eb=ee&&(w?(0,n.jsx)(Portal,{__unstable_name:"string"==typeof w?w:void 0,children:eg}):eg);return(0,n.jsxs)(n.Fragment,{children:[_?(0,n.jsx)(h.M,{children:eb}):eb,em]})});tT.displayName="ForwardRef(Tooltip)";let tN=d.zo.kbd.withConfig({displayName:"StyledHotkeys",componentId:"sc-b37mge-0"})`font:inherit;padding:1px;&:not([hidden]){display:block;}`,tM=(0,d.zo)(eP).withConfig({displayName:"Key",componentId:"sc-b37mge-1"})`&:not([hidden]){display:block;}`,tL=(0,a.forwardRef)(function(e,t){let o,r,a,d,l,s,c,u,p;let f=(0,i.c)(24);f[0]!==e?({fontSize:o,keys:r,padding:a,radius:d,space:s,...l}=e,f[0]=e,f[1]=o,f[2]=r,f[3]=a,f[4]=d,f[5]=l,f[6]=s):(o=f[1],r=f[2],a=f[3],d=f[4],l=f[5],s=f[6]);let h=useArrayProp(void 0===s?.5:s);if(!r||0===r.length){let e;return f[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(n.Fragment,{}),f[7]=e):e=f[7],e}if(f[8]!==o||f[9]!==r||f[10]!==a||f[11]!==d){let e;f[13]!==o||f[14]!==a||f[15]!==d?(e=(e,t)=>(0,n.jsx)(tM,{fontSize:o,padding:a,radius:d,children:e},t),f[13]=o,f[14]=a,f[15]=d,f[16]=e):e=f[16],c=r.map(e),f[8]=o,f[9]=r,f[10]=a,f[11]=d,f[12]=c}else c=f[12];return f[17]!==h||f[18]!==c?(u=(0,n.jsx)(ej,{as:"span",space:h,children:c}),f[17]=h,f[18]=c,f[19]=u):u=f[19],f[20]!==t||f[21]!==l||f[22]!==u?(p=(0,n.jsx)(tN,{"data-ui":"Hotkeys",...l,ref:t,children:u}),f[20]=t,f[21]=l,f[22]=u,f[23]=p):p=f[23],p});tL.displayName="ForwardRef(Hotkeys)";let tF=createGlobalScopedContext("@sanity/ui/context/menu",null);function _isFocusable(e){return isHTMLAnchorElement(e)&&"true"!==e.getAttribute("data-disabled")||isHTMLButtonElement(e)&&!e.disabled}function _getFocusableElements(e){return e.filter(_isFocusable)}let tB=[],tO=(0,d.zo)(et).withConfig({displayName:"StyledMenu",componentId:"sc-xt0tnv-0"})`outline:none;overflow:auto;`,tG=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m,g,b,v,y,w,x,$,S,R,k,C,_,z;let E=(0,i.c)(50);if(E[0]!==e){let{children:t,focusFirst:n,focusLast:i,onClickOutside:a,onEscape:b,onItemClick:v,onItemSelect:y,onKeyDown:w,originElement:x,padding:$,registerElement:S,shouldFocus:R,space:k,...C}=e;r=t,d=a,l=b,s=v,c=y,u=w,p=x,m=$,f=S,o=R,g=k,h=C,E[0]=e,E[1]=o,E[2]=r,E[3]=d,E[4]=l,E[5]=s,E[6]=c,E[7]=u,E[8]=p,E[9]=f,E[10]=h,E[11]=m,E[12]=g}else o=E[1],r=E[2],d=E[3],l=E[4],s=E[5],c=E[6],u=E[7],p=E[8],f=E[9],h=E[10],m=E[11],g=E[12];let j=void 0===m?1:m,A=void 0===g?1:g,P=o??(e.focusFirst&&"first"||e.focusLast&&"last"||null),I=(0,a.useRef)(null);E[13]===Symbol.for("react.memo_cache_sentinel")?(b=()=>I.current,E[13]=b):b=E[13],(0,a.useImperativeHandle)(t,b);let{isTopLayer:T}=useLayer();E[14]!==u||E[15]!==p||E[16]!==P?(v={onKeyDown:u,originElement:p,shouldFocus:P,rootElementRef:I},E[14]=u,E[15]=p,E[16]=P,E[17]=v):v=E[17];let{activeElement:N,activeIndex:M,handleItemMouseEnter:L,handleItemMouseLeave:F,handleKeyDown:B,mount:O}=function(e){let{onKeyDown:t,originElement:o,shouldFocus:r,rootElementRef:n}=e,i=(0,a.useRef)([]),[d,l]=(0,a.useState)(-1),s=(0,a.useRef)(d),c=(0,a.useMemo)(()=>i.current[d]||null,[d]),u=!!n.current,p=(0,a.useCallback)(e=>{l(e),s.current=e},[]),f=(0,a.useCallback)((e,t)=>{if(!e)return()=>{};if(-1===i.current.indexOf(e)&&(i.current.push(e),function(e,t){if(!e)return;let o=new WeakMap;for(let r of t)o.set(r,function(e,t){let o=[],r=t;for(;r!==e;){let t=r.parentElement;if(!t)break;let n=Array.from(t.childNodes).indexOf(r);if(o.unshift(n),t===e)break;r=t}return o}(e,r));t.sort((e,t)=>
972{let r=o.get(e)||tB,n=o.get(t)||tB,i=Math.max(r.length,n.length);for(let e=0;e<i;e+=1){let t=r[e]||-1,o=n[e]||-1;if(t!==o)return t-o}return 0})}(n.current,i.current)),t){let t=i.current.indexOf(e);p(t)}return()=>{let t=i.current.indexOf(e);t>-1&&i.current.splice(t,1)}},[n,p]),h=(0,a.useCallback)(e=>{if("Tab"===e.key){o&&o.focus();return}if("Home"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current)[0];if(!t)return;let o=i.current.indexOf(t);p(o);return}if("End"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current),o=t[t.length-1];if(!o)return;let r=i.current.indexOf(o);p(r);return}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current),o=t.length;if(0===o)return;let r=i.current[s.current],n=t.indexOf(r);n=(n-1+o)%o;let a=t[n],d=i.current.indexOf(a);p(d);return}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current),o=t.length;if(0===o)return;let r=i.current[s.current],n=t.indexOf(r);n=(n+1)%o;let a=t[n],d=i.current.indexOf(a);p(d);return}t&&t(e)},[t,o,p]),m=(0,a.useCallback)(e=>{let t=e.currentTarget,o=i.current.indexOf(t);p(o)},[p]),g=(0,a.useCallback)(()=>{p(-2),n.current?.focus()},[n,p]);return(0,a.useEffect)(()=>{if(!u)return;let e=requestAnimationFrame(()=>{if(-1===d){if("first"===r){let e=_getFocusableElements(i.current)[0];if(e){let t=i.current.indexOf(e);p(t)}}if("last"===r){let e=_getFocusableElements(i.current),t=e[e.length-1];if(t){let e=i.current.indexOf(t);p(e)}}return}(i.current[d]||null)?.focus()});return()=>cancelAnimationFrame(e)},[d,u,p,r]),{activeElement:c,activeIndex:d,handleItemMouseEnter:m,handleItemMouseLeave:g,handleKeyDown:h,mount:f}}(v),G=(0,a.useRef)(null);E[18]!==f?(y=e=>{G.current&&(G.current(),G.current=null),I.current=e,I.current&&f&&(G.current=f(I.current))},E[18]=f,E[19]=y):y=E[19];let H=y;return E[20]!==M||E[21]!==c?(w=()=>{c&&c(M)},x=[M,c],E[20]=M,E[21]=c,E[22]=w,E[23]=x):(w=E[22],x=E[23]),(0,a.useEffect)(w,x),E[24]===Symbol.for("react.memo_cache_sentinel")?($=()=>[I.current],E[24]=$):$=E[24],useClickOutsideEvent(T&&d,$),E[25]!==T||E[26]!==l?(S=e=>{T&&"Escape"===e.key&&(e.stopPropagation(),l&&l())},E[25]=T,E[26]=l,E[27]=S):S=E[27],useGlobalKeyDown(S),E[28]!==N||E[29]!==M||E[30]!==L||E[31]!==F||E[32]!==O||E[33]!==d||E[34]!==l||E[35]!==s||E[36]!==f?(k={version:0,activeElement:N,activeIndex:M,mount:O,onClickOutside:d,onEscape:l,onItemClick:s,onItemMouseEnter:L,onItemMouseLeave:F,registerElement:f,onMouseEnter:L,onMouseLeave:F},E[28]=N,E[29]=M,E[30]=L,E[31]=F,E[32]=O,E[33]=d,E[34]=l,E[35]=s,E[36]=f,E[37]=k):k=E[37],R=k,E[38]!==r||E[39]!==A?(C=(0,n.jsx)(ti,{space:A,children:r}),E[38]=r,E[39]=A,E[40]=C):C=E[40],E[41]!==B||E[42]!==H||E[43]!==j||E[44]!==h||E[45]!==C?(_=(0,n.jsx)(tO,{"data-ui":"Menu",...h,onKeyDown:B,padding:j,ref:H,role:"menu",tabIndex:-1,children:C}),E[41]=B,E[42]=H,E[43]=j,E[44]=h,E[45]=C,E[46]=_):_=E[46],E[47]!==_||E[48]!==R?(z=(0,n.jsx)(tF.Provider,{value:R,children:_}),E[47]=_,E[48]=R,E[49]=z):z=E[49],z});tG.displayName="ForwardRef(Menu)";let tH=d.zo.hr.withConfig({displayName:"MenuDivider",componentId:"sc-uhoxwu-0"})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;tH.displayName="MenuDivider";let tQ=(0,d.zo)(et).withConfig({displayName:"Selectable",componentId:"sc-1w01ang-0"})(responsiveRadiusStyle,function(){return d.iv` 973 background-color: inherit; 974 color: inherit; 975 976 &[data-as='button'] { 977 -webkit-font-smoothing: inherit; 978 appearance: none; 979 outline: none; 980 font: inherit; 981 text-align: inherit; 982 border: 0; 983 width: -moz-available; 984 width: -webkit-fill-available; 985 width: stretch; 986 } 987 988 /* &:is(a) */ 989 &[data-as='a'] { 990 text-decoration: none; 991 } 992 `},function(e){let{$tone:t}=e,{color:o,style:n}=(0,r.aQ)(e.theme),i=o.selectable[t];return d.iv` 993 ${_cardColorStyle(o,i.enabled)} 994 995 background-color: var(--card-bg-color); 996 color: var(--card-fg-color); 997 outline: none; 998 999 /* &:is(button) */ 1000 &[data-as='button'] { 1001 &:disabled { 1002 ${_cardColorStyle(o,i.disabled)} 1003 } 1004 1005 &:not(:disabled) { 1006 &[aria-pressed='true'] { 1007 ${_cardColorStyle(o,i.pressed)} 1008 } 1009 1010 &[data-selected], 1011 &[aria-selected='true'] > & { 1012 ${_cardColorStyle(o,i.selected)} 1013 } 1014 1015 @media (hover: hover) { 1016 &:not([data-selected]) { 1017 &[data-hovered], 1018 &:hover { 1019 ${_cardColorStyle(o,i.hovered)} 1020 } 1021 1022 &:active { 1023 ${_cardColorStyle(o,i.pressed)} 1024 } 1025 } 1026 } 1027 } 1028 } 1029 1030 /* &:is(a) */ 1031 &[data-as='a'] { 1032 &[data-disabled] { 1033 ${_cardColorStyle(o,i.disabled)} 1034 } 1035 1036 &:not([data-disabled]) { 1037 &[data-pressed] { 1038 ${_cardColorStyle(o,i.pressed)} 1039 } 1040 1041 &[data-selected] { 1042 ${_cardColorStyle(o,i.selected)} 1043 } 1044 1045 @media (hover: hover) { 1046 &:not([data-selected]) { 1047 &[data-hovered], 1048 &:hover { 1049 ${_cardColorStyle(o,i.hovered)} 1050 } 1051 &:active { 1052 ${_cardColorStyle(o,i.pressed)} 1053 } 1054 } 1055 } 1056 } 1057 } 1058 1059 ${n?.card?.root} 1060 `});function useMenu(){let e=(0,a.useContext)(tF);if(!e)throw Error("useMenu(): missing context value");
1060if(!isRecord(e)||0!==e.version)throw Error("useMenu(): the context value is not compatible");return e}function MenuGroup(e){let t,o,r,d,l,u,p,f,h,m,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,A,P,I,T,N,M,L,F,B,O;let G=(0,i.c)(79);G[0]!==e?({as:p,children:o,fontSize:f,icon:t,menu:r,onClick:d,padding:h,popover:l,radius:m,space:g,text:v,tone:b,...u}=e,G[0]=e,G[1]=t,G[2]=o,G[3]=r,G[4]=d,G[5]=l,G[6]=u,G[7]=p,G[8]=f,G[9]=h,G[10]=m,G[11]=g,G[12]=b,G[13]=v):(t=G[1],o=G[2],r=G[3],d=G[4],l=G[5],u=G[6],p=G[7],f=G[8],h=G[9],m=G[10],g=G[11],b=G[12],v=G[13]);let H=void 0===p?"button":p,Q=void 0===f?1:f,D=void 0===h?3:h,V=void 0===m?2:m,W=void 0===g?3:g,Y=void 0===b?"default":b,X=useMenu(),{scheme:q}=useRootTheme(),{activeElement:K,mount:J,onClickOutside:Z,onEscape:U,onItemClick:ee,onItemMouseEnter:eo,registerElement:en}=X,ei=eo??X.onMouseEnter,[ea,el]=(0,a.useState)(null),[es,ec]=(0,a.useState)(!1),[eu,ep]=(0,a.useState)(null),ef=!!K&&K===ea,[eh,em]=(0,a.useState)(!1);G[14]!==ei?(y=e=>{em(!1),ei(e),ec(!0)},G[14]=ei,G[15]=y):y=G[15];let eg=y;G[16]!==ea?(w=e=>{"ArrowLeft"===e.key&&(e.stopPropagation(),ec(!1),requestAnimationFrame(()=>{ea?.focus()}))},G[16]=ea,G[17]=w):w=G[17];let eb=w;G[18]!==d?(x=e=>{d?.(e),ep("first"),ec(!0)},G[18]=d,G[19]=x):x=G[19];let ev=x;G[20]!==ee?($=()=>{ec(!1),ee?.()},G[20]=ee,G[21]=$):$=G[21];let ey=$;G[22]===Symbol.for("react.memo_cache_sentinel")?(S=()=>em(!0),G[22]=S):S=G[22];let ew=S;G[23]!==J||G[24]!==ea?(R=()=>J(ea),k=[J,ea],G[23]=J,G[24]=ea,G[25]=R,G[26]=k):(R=G[25],k=G[26]),(0,a.useEffect)(R,k),G[27]!==ef?(C=()=>{ef||ec(!1)},_=[ef],G[27]=ef,G[28]=C,G[29]=_):(C=G[28],_=G[29]),(0,a.useEffect)(C,_),G[30]!==es?(z=()=>{es||em(!1)},E=[es],G[30]=es,G[31]=z,G[32]=E):(z=G[31],E=G[32]),(0,a.useEffect)(z,E),G[33]!==eu?(j=()=>{if(!eu)return;let e=requestAnimationFrame(()=>ep(null));return()=>cancelAnimationFrame(e)},A=[eu],G[33]=eu,G[34]=j,G[35]=A):(j=G[34],A=G[35]),(0,a.useEffect)(j,A),G[36]!==o||G[37]!==ey||G[38]!==eb||G[39]!==r||G[40]!==Z||G[41]!==U||G[42]!==en||G[43]!==eu?(P=(0,n.jsx)(tG,{...r,onClickOutside:Z,onEscape:U,onItemClick:ey,onKeyDown:eb,onMouseEnter:ew,registerElement:en,shouldFocus:eu,children:o}),G[36]=o,G[37]=ey,G[38]=eb,G[39]=r,G[40]=Z,G[41]=U,G[42]=en,G[43]=eu,G[44]=P):P=G[44];let ex=P;G[45]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{let t=e.currentTarget;if(document.activeElement===t&&"ArrowRight"===e.key){ep("first"),ec(!0),em(!0);return}},G[45]=I):I=G[45];
1060let e$=I,eS="button"===H?eh:void 0,eR="button"!==H?eh:void 0,ek=!eh&&ef?"":void 0,eC=useArrayProp(V),e_="button"===H?"button":void 0;return G[46]!==t||G[47]!==Q?(T=t&&(0,n.jsxs)(er,{size:Q,children:[(0,a.isValidElement)(t)&&t,(0,s.isValidElementType)(t)&&(0,n.jsx)(t,{})]}),G[46]=t,G[47]=Q,G[48]=T):T=G[48],G[49]!==Q||G[50]!==v?(N=(0,n.jsx)(et,{flex:1,children:(0,n.jsx)(er,{size:Q,textOverflow:"ellipsis",weight:"medium",children:v})}),G[49]=Q,G[50]=v,G[51]=N):N=G[51],G[52]===Symbol.for("react.memo_cache_sentinel")?(M=(0,n.jsx)(c.XCv,{}),G[52]=M):M=G[52],G[53]!==Q?(L=(0,n.jsx)(er,{size:Q,children:M}),G[53]=Q,G[54]=L):L=G[54],G[55]!==D||G[56]!==W||G[57]!==T||G[58]!==N||G[59]!==L?(F=(0,n.jsxs)(ed,{gap:W,padding:D,children:[T,N,L]}),G[55]=D,G[56]=W,G[57]=T,G[58]=N,G[59]=L,G[60]=F):F=G[60],G[61]!==H||G[62]!==ev||G[63]!==eg||G[64]!==u||G[65]!==q||G[66]!==eS||G[67]!==eR||G[68]!==ek||G[69]!==eC||G[70]!==e_||G[71]!==F||G[72]!==Y?(B=(0,n.jsx)(tQ,{"data-as":H,"data-ui":"MenuGroup",forwardedAs:H,...u,"aria-pressed":eS,"data-pressed":eR,"data-selected":ek,$radius:eC,$tone:Y,$scheme:q,onClick:ev,onKeyDown:e$,onMouseEnter:eg,ref:el,tabIndex:-1,type:e_,children:F}),G[61]=H,G[62]=ev,G[63]=eg,G[64]=u,G[65]=q,G[66]=eS,G[67]=eR,G[68]=ek,G[69]=eC,G[70]=e_,G[71]=F,G[72]=Y,G[73]=B):B=G[73],G[74]!==ex||G[75]!==es||G[76]!==l||G[77]!==B?(O=(0,n.jsx)(e4,{...l,content:ex,"data-ui":"MenuGroup__popover",open:es,children:B}),G[74]=ex,G[75]=es,G[76]=l,G[77]=B,G[78]=O):O=G[78],O}tQ.displayName="Selectable",MenuGroup.displayName="MenuGroup";let tD=(0,a.forwardRef)(function(e,t){let o,r,d,l,c,u,p,f,h,m,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,A,P,I,T,N,M,L,F;let B=(0,i.c)(73);B[0]!==e?({as:x,children:d,disabled:l,fontSize:$,hotkeys:c,icon:o,iconRight:r,onClick:u,padding:S,paddingX:g,paddingY:b,paddingTop:m,paddingRight:h,paddingBottom:p,paddingLeft:f,pressed:v,radius:R,selected:w,space:k,text:_,tone:C,...y}=e,B[0]=e,B[1]=o,B[2]=r,B[3]=d,B[4]=l,B[5]=c,B[6]=u,B[7]=p,B[8]=f,B[9]=h,B[10]=m,B[11]=g,B[12]=b,B[13]=v,B[14]=y,B[15]=w,B[16]=x,B[17]=$,B[18]=S,B[19]=R,B[20]=k,B[21]=C,B[22]=_):(o=B[1],r=B[2],d=B[3],l=B[4],c=B[5],u=B[6],p=B[7],f=B[8],h=B[9],m=B[10],g=B[11],b=B[12],v=B[13],y=B[14],w=B[15],x=B[16],$=B[17],S=B[18],R=B[19],k=B[20],C=B[21],_=B[22]);let O=void 0===x?"button":x,G=void 0===$?1:$,H=void 0===S?3:S,Q=void 0===R?2:R,D=void 0===k?3:k,V=void 0===C?"default":C,{scheme:W}=useRootTheme(),Y=useMenu(),{activeElement:X,mount:q,onItemClick:K,onItemMouseEnter:J,onItemMouseLeave:Z}=Y,U=J??Y.onMouseEnter,ee=Z??Y.onMouseLeave,[eo,en]=(0,a.useState)(null),ei=!!X&&X===eo,ea=(0,a.useRef)(null);B[23]===Symbol.for("react.memo_cache_sentinel")?(z=()=>ea.current,B[23]=z):z=B[23],(0,a.useImperativeHandle)(t,z),B[24]!==q||B[25]!==eo||B[26]!==w?(E=()=>q(eo,w),j=[q,eo,w],B[24]=q,B[25]=eo,B[26]=w,B[27]=E,B[28]=j):(E=B[27],j=B[28]),(0,a.useEffect)(E,j),B[29]!==l||B[30]!==u||B[31]!==K?(A=e=>{l||(u&&u(e),K&&K())},B[29]=l,B[30]=u,B[31]=K,B[32]=A):A=B[32];let el=A;B[33]!==H||B[34]!==p||B[35]!==f||B[36]!==h||B[37]!==m||B[38]!==g||B[39]!==b?(I={padding:H,paddingX:g,paddingY:b,paddingTop:m,paddingRight:h,paddingBottom:p,paddingLeft:f},B[33]=H,B[34]=p,B[35]=f,B[36]=h,B[37]=m,B[38]=g,B[39]=b,B[40]=I):I=B[40],P=I;let es=useArrayProp(G);B[41]!==es?(T=es.map(_temp),B[41]=es,B[42]=T):T=B[42];let ec=T;B[43]===Symbol.for("react.memo_cache_sentinel")?(N=e=>{ea.current=e,en(e)},B[43]=N):N=B[43];let eu=N,ep="button"!==O&&v?"":void 0,ef=ei?"":void 0,eh=l?"":void 0,em=useArrayProp(Q),eg=useArrayProp(0),eb=l?"default":V,ev="button"===O?"button":void 0;return B[44]!==o||B[45]!==r||B[46]!==G||B[47]!==c||B[48]!==ec||B[49]!==P||B[50]!==D||B[51]!==_?(M=(o||_||r)&&(0,n.jsxs)(ed,{as:"span",gap:D,align:"center",...P,children:[o&&(0,n.jsxs)(er,{size:G,children:[(0,a.isValidElement)(o)&&o,(0,s.isValidElementType)(o)&&(0,n.jsx)(o,{})]}),_&&(0,n.jsx)(et,{flex:1,children:(0,n.jsx)(er,{size:G,textOverflow:"ellipsis",weight:"medium",children:_})}),c&&(0,n.jsx)(tL,{fontSize:ec,keys:c,style:{marginTop:-4,marginBottom:-4}}),r&&(0,n.jsxs)(er,{size:G,children:[(0,a.isValidElement)(r)&&r,(0,s.isValidElementType)(r)&&(0,n.jsx)(r,{})]})]}),B[44]=o,B[45]=r,B[46]=G,B[47]=c,B[48]=ec,B[49]=P,B[50]=D,B[51]=_,B[52]=M):M=B[52],B[53]!==d||B[54]!==P?(L=d&&(0,n.jsx)(et,{as:"span",...P,children:d}),B[53]=d,B[54]=P,B[55]=L):L=B[55],B[56]!==O||B[57]!==l||B[58]!==el||B[59]!==U||B[60]!==ee||B[61]!==y||B[62]!==W||B[63]!==ep||B[64]!==ef||B[65]!==eh||B[66]!==em||B[67]!==eg||B[68]!==eb||B[69]!==ev||B[70]!==M||B[71]!==L?(F=(0,n.jsxs)(tQ,{"data-ui":"MenuItem",role:"menuitem",...y,"data-pressed":ep,"data-selected":ef,"data-disabled":eh,forwardedAs:O,$radius:em,$padding:eg,$tone:eb,$scheme:W,disabled:l,onClick:el,onMouseEnter:U,onMouseLeave:ee,ref:eu,tabIndex:-1,type:ev,children:[M,L]}),B[56]=O,B[57]=l,B[58]=el,B[59]=U,B[60]=ee,B[61]=y,B[62]=W,B[63]=ep,B[64]=ef,B[65]=eh,B[66]=em,B[67]=eg,B[68]=eb,B[69]=ev,B[70]=M,B[71]=L,B[72]=F):F=B[72],F});function _temp(e){return e-1}tD.displayName="ForwardRef(MenuItem)";let tV=(0,d.zo)(ef).withConfig({displayName:"CustomButton",componentId:"sc-1kns779-0"})`max-width:100%;`,tW=(0,a.forwardRef)(function(e,t){let o,r,d,l,s,c,u,p,f,h,m,g,b,v,y,w;let x=(0,i.c)(30);
1060x[0]!==e?({icon:r,id:d,focused:o,fontSize:f,label:l,onClick:s,onFocus:c,padding:h,selected:p,...u}=e,x[0]=e,x[1]=o,x[2]=r,x[3]=d,x[4]=l,x[5]=s,x[6]=c,x[7]=u,x[8]=p,x[9]=f,x[10]=h):(o=x[1],r=x[2],d=x[3],l=x[4],s=x[5],c=x[6],u=x[7],p=x[8],f=x[9],h=x[10]);let $=void 0===f?1:f,S=void 0===h?2:h,R=(0,a.useRef)(null),k=(0,a.useRef)(!1);x[11]===Symbol.for("react.memo_cache_sentinel")?(m=()=>R.current,x[11]=m):m=x[11],(0,a.useImperativeHandle)(t,m),x[12]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{k.current=!1},x[12]=g):g=x[12];let C=g;x[13]!==c?(b=e=>{k.current=!0,c&&c(e)},x[13]=c,x[14]=b):b=x[14];let _=b;x[15]!==o?(v=()=>{o&&!k.current&&(R.current&&R.current.focus(),k.current=!0)},y=[o],x[15]=o,x[16]=v,x[17]=y):(v=x[16],y=x[17]),(0,a.useEffect)(v,y);let z=p?"true":"false",E=p?0:-1;return x[18]!==$||x[19]!==_||x[20]!==r||x[21]!==d||x[22]!==l||x[23]!==s||x[24]!==S||x[25]!==u||x[26]!==p||x[27]!==z||x[28]!==E?(w=(0,n.jsx)(tV,{"data-ui":"Tab",...u,"aria-selected":z,fontSize:$,icon:r,id:d,mode:"bleed",onClick:s,onBlur:C,onFocus:_,padding:S,ref:R,role:"tab",selected:p,tabIndex:E,text:l,type:"button"}),x[18]=$,x[19]=_,x[20]=r,x[21]=d,x[22]=l,x[23]=s,x[24]=S,x[25]=u,x[26]=p,x[27]=z,x[28]=E,x[29]=w):w=x[29],w});tW.displayName="ForwardRef(Tab)";let tY=(0,d.zo)(ej).withConfig({displayName:"CustomInline",componentId:"sc-5cm04m-0"})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`,tX=(0,a.forwardRef)(function(e,t){let o,r,d,l,s;let c=(0,i.c)(15);c[0]!==e?({children:o,...r}=e,c[0]=e,c[1]=o,c[2]=r):(o=c[1],r=c[2]);let[u,p]=(0,a.useState)(-1);if(c[3]!==o||c[4]!==u){let e;let t=a.Children.toArray(o).filter(a.isValidElement);c[6]!==u?(e=(e,t)=>(0,a.cloneElement)(e,{focused:u===t,key:t,onFocus:()=>p(t)}),c[6]=u,c[7]=e):e=c[7],d=t.map(e),c[3]=o,c[4]=u,c[5]=d}else d=c[5];let f=d,h=f.length;c[8]!==h?(l=e=>{"ArrowLeft"===e.key&&p(e=>(e+h-1)%h),"ArrowRight"===e.key&&p(e=>(e+1)%h)},c[8]=h,c[9]=l):l=c[9];let m=l;return c[10]!==m||c[11]!==t||c[12]!==r||c[13]!==f?(s=(0,n.jsx)(tY,{"data-ui":"TabList",...r,onKeyDown:m,ref:t,role:"tablist",children:f}),c[10]=m,c[11]=t,c[12]=r,c[13]=f,c[14]=s):s=c[14],s});tX.displayName="ForwardRef(TabList)"}}]);
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.