PageSourceSearch

https://www.jwpubs.org/a/_next/static/chunks/ef151028.9b35887c200913cc.js

js jwpubs.org collected 2026-10-02 01:08:22 UTC 387,665 bytes, 1,207 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9357],{65879:(e,t,n)=>{let i,r,o,a,s,l,d,u,c,h,f;n.d(t,{_:()=>fF,c:()=>eD});var p,m=n(23106),g=n(95155),b=n(12115),y=n(51862),v=n(47650),w=n(9922),x=n(11009),k=n(89166),S=n(84707),$=n(97993),R=n(16975),T=n(31843);n(41463);let E=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],C=["50","100","200","300","400","500","600","700","800","900","950"],A={black:{title:"Black",hex:"#0d0e12"},white:{title:"White",hex:"#ffffff"},gray:{50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},blue:{50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},purple:{50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:{50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:{50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},green:{50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},_={sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},j={textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},M={border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},I={dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},P={border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}}
1,radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},V=new WeakMap;function z(e){let t=V.get(e);if(t)return t;let n=N(e,e.card.enabled),i={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:L(e,e.button.default),ghost:L(e,e.button.ghost),bleed:L(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:O(e.input.default),invalid:O(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:L(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return V.set(e,i),i}function L(e,t){return{default:{enabled:N(e,t.default.enabled),hovered:N(e,t.default.hovered),pressed:N(e,t.default.pressed),selected:N(e,t.default.selected),disabled:N(e,t.default.disabled)},neutral:{enabled:N(e,t.default.enabled),hovered:N(e,t.default.hovered),pressed:N(e,t.default.pressed),selected:N(e,t.default.selected),disabled:N(e,t.default.disabled)},primary:{enabled:N(e,t.primary.enabled),hovered:N(e,t.primary.hovered),pressed:N(e,t.primary.pressed),selected:N(e,t.primary.selected),disabled:N(e,t.primary.disabled)},suggest:{enabled:N(e,t.primary.enabled),hovered:N(e,t.primary.hovered),pressed:N(e,t.primary.pressed),selected:N(e,t.primary.selected),disabled:N(e,t.primary.disabled)},positive:{enabled:N(e,t.positive.enabled),hovered:N(e,t.positive.hovered),pressed:N(e,t.positive.pressed),selected:N(e,t.positive.selected),disabled:N(e,t.positive.disabled)},caution:{enabled:N(e,t.caution.enabled),hovered:N(e,t.caution.hovered),pressed:N(e,t.caution.pressed),selected:N(e,t.caution.selected),disabled:N(e,t.caution.disabled)},critical:{enabled:N(e,t.critical.enabled),hovered:N(e,t.critical.hovered),pressed:N(e,t.critical.pressed),selected:N(e,t.critical.selected),disabled:N(e,t.critical.disabled)}}}function N(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg},cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function O(e){return{enabled:D(e.enabled),disabled:D(e.disabled),readOnly:D(e.readOnly),hovered:D(e.hovered)}}function D(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let B=new WeakMap;function F(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=B.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{..._,...e.sanity.avatar},button:{...j,...e.sanity.button},card:M,color:z(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...P,...e.sanity.input,checkbox:{...P.checkbox,...e.sanity.input.checkbox},radio:{...P.radio,...e.sanity.input.radio},switch:{...P.switch,...e.sanity.input.switch}},layer:e.sanity.layer??I,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return B.set(e,n),n}function H(e){return 2===e._version}let W=new WeakMap;function U(e,t,n){Object.defineProperty(e,t,{get(){let i=n();return Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!1,
1configurable:!1}),i},enumerable:!0,configurable:!0})}let Y=new WeakMap,X=["transparent","default","primary","positive","caution","critical"];function G(e,t){let n={};for(let i of X)U(n,i,()=>{var n;return{base:{bg:(n=t[e][i]).bg,fg:n.fg,border:n.border,focusRing:n.focusRing,shadow:n.shadow},button:n.button,card:n.selectable.default,dark:n._dark,input:{default:K(n.input.default),invalid:K(n.input.invalid)},muted:{...n.button.ghost,transparent:n.button.ghost.default},solid:{...n.button.default,transparent:n.button.default.default},selectable:n.selectable,spot:{gray:n.avatar.gray.bg,blue:n.avatar.blue.bg,purple:n.avatar.purple.bg,magenta:n.avatar.magenta.bg,red:n.avatar.red.bg,orange:n.avatar.orange.bg,yellow:n.avatar.yellow.bg,green:n.avatar.green.bg,cyan:n.avatar.cyan.bg},syntax:n.syntax}});return n}function q(e){let t=Y.get(e);if(t)return t;let{avatar:n,button:i,color:r,container:o,font:a,input:s,media:l,radius:d,shadow:u,space:c,style:h}=e,f={};U(f,"light",()=>G("light",r)),U(f,"dark",()=>G("dark",r));let p={_version:0,avatar:n,button:i,container:o,color:f,focusRing:s.text.focusRing,fonts:a,input:s,media:l,radius:d,shadows:u,space:c,styles:h,v2:e};return Y.set(e,p),p}function K(e){return{enabled:Z(e.enabled),disabled:Z(e.disabled),readOnly:Z(e.readOnly),hovered:Z(e.hovered)}}function Z(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let J=["multiply","screen"],Q=["transparent","default","neutral","primary","suggest","positive","caution","critical"],ee=["default","neutral","primary","suggest","positive","caution","critical"],et=["enabled","hovered","pressed","selected","disabled"],en=["default","ghost","bleed"],ei=["default","invali
1d"],er=["enabled","hovered","readOnly","disabled"];function eo(e){return C.includes(e)}function ea(e){return/^\d+%$/.test(e)}function es(e){var t;let n=e.split("/"),i=n.shift()||"",[r,o]=i.split(" ");if(eo(r)){let e=n.shift()||"";return ea(o)?{type:"color",tint:r,mix:Number(o.slice(0,-1))/100}:el(e)?{type:"color",tint:r,opacity:Number(e)}:{type:"color",tint:r}}if("black"===(t=r)||"white"===t){let e=n.shift()||"";return ea(o)?{type:"color",key:r,mix:Number(o.slice(0,-1))/100}:el(e)?{type:"color",key:r,opacity:Number(e)}:{type:"color",key:r}}if(E.includes(r)){let[e,t]=(i=n.shift()||"").split(" ");if(eo(e)){let i=n.shift()||"";return ea(t)?{type:"color",hue:r,tint:e,mix:Number(t.slice(0,-1))/100}:el(i)?{type:"color",hue:r,tint:e,opacity:Number(i)}:{type:"color",hue:r,tint:e}}return{type:"hue",value:r}}if(J.includes(r))return{type:"blendMode",value:r}}function el(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}let ed=["500","500"];function eu(e,t=ed){var n;let i,{hue:r,scheme:o}=e,a=es(t[+("light"!==o)]);if(!a||"color"!==a.type)throw Error(`Invalid color token: ${t[0]}`);return n={...a,hue:a.hue||r},i="",i="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${i} ${100*n.mix}%`:(void 0!==n.opacity&&(i+=`/${n.opacity}`),i)}let ec={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
1,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
1data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function eh(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function ef(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(ep,{})}function ep(e,t){for(let n of Object.keys(t)){let i=e[n],r=t[n];eh(i)&&eh(r)?e[n]=ef(i,r):e[n]=r}return e}function em(e,t){let{scheme:n}=e,i={};for(let e of Q)U(i,e,()=>(function(e,t){let{scheme:n,tone:i}=e,r=t?.color?.base?.[i],o={hue:r?._hue||"gray",scheme:n};return{_blend:(r?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:eu(o,r?.accent?.fg)},avatar:eg({scheme:n},r),backdrop:eu(o,r?.backdrop),badge:ey(r?.badge,{scheme:n},t),bg:eu(o,r?.bg),border:eu(o,r?.border),button:function(e,t){let{scheme:n,tone:i}=e,r={};for(let e of en)r[e]=function(e,t){let{cardTone:n,mode:i,scheme:r}=e,o={};for(let e of ee)o[e]=function(e,t){let{cardTone:n,mode:i,scheme:r,tone:o}=e,a={};for(let e of et)a[e]=function(e,t){let{cardTone:n,mode:i,tone:r,scheme:o,state:a}=e,s=t?.color?.base?.[n],l=t?.color?.button?.[i]?.[r]?.[a],d=l?._hue||s?._hue||"gray",u=l?._blend||["screen","multiply"],c={hue:d,scheme:o};return{_blend:u[+("light"!==o)],accent:{fg:eu(c,l?.accent?.fg)},avatar:eg({scheme:o},l),badge:ey(l?.badge,{scheme:o},t),bg:eu(c,l?.bg),border:eu(c,l?.border),code:{bg:eu(c,l?.code?.bg),fg:eu(c,l?.code?.fg)},fg:eu(c,l?.fg),icon:eu(c,l?.icon),muted:{bg:eu(c,l?.muted?.bg),fg:eu(c,l?.muted?.fg)},kbd:{bg:eu(c,l?.kbd?.bg),fg:eu(c,l?.kbd?.fg),border:eu(c,l?.kbd?.border)},link:{fg:eu(c,l?.link?.fg)},skeleton:{from:eu(c,l?.skeleton?.from),to:eu(c,l?.skeleton?.to)}}}({cardTone:n,mode:i,tone:o,scheme:r,state:e},t);return a}({cardTone:n,mode:i,scheme:r,tone:e},t);return o}({cardTone:i,scheme:n,mode:e},t);return r}({scheme:n,tone:i},t),code:{bg:eu(o,r?.code?.bg),fg:eu(o,r?.code?.fg)},fg:eu(o,r?.fg),focusRing:eu(o,r?.focusRing),icon:eu(o,r?.icon),input:function(e,t){let{scheme:n,tone:i}=e;return{default:ev({mode:"default",scheme:n,tone:i},t),invalid:ev({mode:"invalid",scheme:n,tone:i},t)}}({scheme:n,tone:i},t),kbd:{bg:eu(o,r?.kbd?.bg),fg:eu(o,r?.kbd?.fg),border:eu(o,r?.kbd?.border)},link:{fg:eu(o,r?.link?.fg)},muted:{bg:eu(o,r?.muted?.bg),fg:eu(o,r?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:i}=e,r={};for(let e of ee)r[e]=function(e,t){let{cardTone:n,scheme:i,tone:r}=e,o={};for(let e of et)o[e]=function(e,t){let{cardTone:n,scheme:i,state:r,tone:o}=e,a=t?.color?.base?.[n],s=t?.color?.selectable?.[o]?.[r],l=s?._hue||a?._hue||"gray",d=s?._blend||["screen","multiply"],u={hue:l,scheme:i};return{_blend:d[+("light"!==i)],accent:{fg:eu(u,s?.accent?.fg)},avatar:eg({scheme:i},s),badge:ey(s?.badge,{scheme:i},t),bg:eu(u,s?.bg),border:eu(u,s?.border),code:{bg:eu(u,s?.code?.bg),fg:eu(u,s?.code?.fg)},fg:eu(u,s?.fg),icon:eu(u,s?.icon),muted:{bg:eu(u,s?.muted?.bg),fg:eu(u,s?.muted?.fg)},kbd:{bg:eu(u,s?.kbd?.bg),fg:eu(u,s?.kbd?.fg),border:eu(u,s?.kbd?.border)},link:{fg:eu(u,s?.link?.fg)},skeleton:{from:eu(u,s?.skeleton?.from),to:eu(u,s?.skeleton?.to)}}}({cardTone:n,tone:r,scheme:i,state:e},t);return o}({cardTone:i,scheme:n,tone:e},t);return r}({scheme:n,tone:i},t),shadow:function(e,t){let{scheme:n,tone:i}=e,r=t?.color?.base?.[i],o={hue:r?._hue||"gray",scheme:n};return{outline:eu(o,r?.shadow?.outline),umbra:eu(o,r?.shadow?.umbra),penumbra:eu(o,r?.shadow?.penumbra),ambient:eu(o,r?.shadow?.ambient)}}
1({scheme:n,tone:i},t),skeleton:{from:eu(o,r?.skeleton?.from),to:eu(o,r?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,i=t?.color?.syntax,r={hue:"gray",scheme:n};return{atrule:eu(r,i?.atrule),attrName:eu(r,i?.attrName),attrValue:eu(r,i?.attrValue),attribute:eu(r,i?.attribute),boolean:eu(r,i?.boolean),builtin:eu(r,i?.builtin),cdata:eu(r,i?.cdata),char:eu(r,i?.char),class:eu(r,i?.class),className:eu(r,i?.className),comment:eu(r,i?.comment),constant:eu(r,i?.constant),deleted:eu(r,i?.deleted),doctype:eu(r,i?.doctype),entity:eu(r,i?.entity),function:eu(r,i?.function),hexcode:eu(r,i?.hexcode),id:eu(r,i?.id),important:eu(r,i?.important),inserted:eu(r,i?.inserted),keyword:eu(r,i?.keyword),number:eu(r,i?.number),operator:eu(r,i?.operator),prolog:eu(r,i?.prolog),property:eu(r,i?.property),pseudoClass:eu(r,i?.pseudoClass),pseudoElement:eu(r,i?.pseudoElement),punctuation:eu(r,i?.punctuation),regex:eu(r,i?.regex),selector:eu(r,i?.selector),string:eu(r,i?.string),symbol:eu(r,i?.symbol),tag:eu(r,i?.tag),unit:eu(r,i?.unit),url:eu(r,i?.url),variable:eu(r,i?.variable)}}({scheme:n},t)}})({scheme:n,tone:e},t));return i}function eg(e,t){let{scheme:n}=e;return{gray:eb({color:"gray",scheme:n},t),blue:eb({color:"blue",scheme:n},t),purple:eb({color:"purple",scheme:n},t),magenta:eb({color:"magenta",scheme:n},t),red:eb({color:"red",scheme:n},t),orange:eb({color:"orange",scheme:n},t),yellow:eb({color:"yellow",scheme:n},t),green:eb({color:"green",scheme:n},t),cyan:eb({color:"cyan",scheme:n},t)}}function eb(e,t){let{color:n,scheme:i}=e,r=t?.avatar?.[n],o={hue:r?._hue||"gray",scheme:i};return{_blend:(r?._blend||["screen","multiply"])[+("light"!==i)],bg:eu(o,r?.bg),fg:eu(o,r?.fg)}}function ey(e,t,n){let{scheme:i}=t,r={};for(let t of ee)r[t]=function(e,t,n){let{scheme:i,tone:r}=t,o=e?.[r],a={hue:o?._hue||n?.color?.base?.[r]?._hue||"gray",scheme:i};return{bg:eu(a,o?.bg),fg:eu(a,o?.fg),dot:eu(a,o?.dot),icon:eu(a,o?.icon)}}(e,{scheme:i,tone:t},n);return r}function ev(e,t){let{mode:n,scheme:i,tone:r}=e;return{enabled:ew({mode:n,scheme:i,state:"enabled",cardTone:r},t),hovered:ew({mode:n,scheme:i,state:"hovered",cardTone:r},t),readOnly:ew({mode:n,scheme:i,state:"readOnly",cardTone:r},t),disabled:ew({mode:n,scheme:i,state:"disabled",cardTone:r},t)}}function ew(e,t){let{cardTone:n,mode:i,scheme:r,state:o}=e,a=t?.color?.base?.[n],s=t?.color?.input?.[i]?.[o],l=s?._hue||a?._hue||"gray",d=s?._blend||["screen","multiply"],u={hue:l,scheme:r};return{_blend:d[+("light"!==r)],bg:eu(u,s?.bg),border:eu(u,s?.border),fg:eu(u,s?.fg),muted:{bg:eu(u,s?.muted?.bg)},placeholder:eu(u,s?.placeholder)}}function ex(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function ek(e,t,n,i,r){var o;return n*(1-(o=ex((r-e)/(t-e))))+i*o}function eS(e){return Math.round(e)}function e$(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),i=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(i+i,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function eR(e){let t=eS(ex(Math.round(e.r),0,255)),n=eS(ex(Math.round(e.g),0,255)),i=eS(ex(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${i},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+i).toString(16).slice(1)}let eT=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function eE(e){var t;if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return e$(e);if(e.startsWith("hsl(")){let n,i,r,o,a,s,l,d;return n=(t=function(e){let t=eT.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e)).s/100,o=(r=(1-Math.abs(2*(i=t.l/100)-1))*n)*(1-Math.abs(t.h/60%2-1)),a=i-r/2,s=0,l=0,d=0,0<=t.h&&t.h<60?(s=r,l=o,d=0):60<=t.h&&t.h<120?(s=o,l=r,d=0):120<=t.h&&t.h<180?(s=0,l=r,d=o):180<=t.h&&t.h<240?(s=0,l=o,d=r):240<=t.h&&t.h<300?(s=o,l=0,d=r):300<=t.h&&t.h<360&&(s=r,l=0,d=o),{r:Math.round((s+a)*255),g:Math.round((l+a)*255),b:Math.round((d+a)*255)}}if(e.startsWith("rgba(")){let t;return{r:parseInt((t=e.replace(/rgba\(|\)/g,"").split(","))[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}let eC=[0,255];function eA(e,t){var n,i,r,o,a,s,l,d,u;let c,{bg:h,blendMode:f,colorPalette:p}=t;if("white"===h)throw Error("Cannot blend with white background");let m=es(e);if(!m||"color"!==m.type)throw Error(`Invalid color token value: ${e}`);let g="";if("black"===m.key&&(g=e_(p.black)),"white"===m.key&&(g=e_(p.white)),m.hue&&m.tint&&(g=e_(p[m.hue][m.tint])),!g)throw Error(`Invalid color token value: ${e}`);let b=g,y={blendMode:f,bg:h,black:e_(p.black),white:e_(p.white)};try{if(g=function(e,t){var n,i,r,o,a,s;let{blendMode:l}=t,d=eE(e),u=eE(t.black),c=eE(t.white),h=t.bg?eE(t.bg):"multiply"===l?c:u,f={r:[u.r,c.r],g:[u.g,c.g],b:[u.b,c.b]},p={r:ex(ek(...f.r,...eC,h.r),...eC),g:ex(ek(...f.g,...eC,h.g),...eC),b:ex(ek(...f.b,...eC,h.b),...eC)},m={r:ex(ek(...f.r,...eC,d.r),...eC),g:ex(ek(...f.g,...eC,d.g),...eC),b:ex(ek(...f.b,...eC,d.b),...eC)},g="multiply"===l?{r:255*(p.r/255*(m.r/255)),g:255*(p.g/255*(m.g/255)),b:255*(p.b/255*(m.b/255))}:{r:255*((n=p.r/255)+(i=m.r/255)-n*i),g:255*((r=p.g/255)+(o=m.g/255)-r*o),b:255*((a=p.b/255)+(s=m.b/255)-a*s)};return eR({r:ex(ek(...eC,...f.r,g.r),...f.r),g:ex(ek(...eC,...f.g,g.g),...f.g),b:ex(ek(...eC,...f.b,g.b),...f.b)})}(g,y),h&&void 0!==m.mix){let e=e$(h),t=e$(g);g=eR((n=m.mix,{r:(i=e.r,r=t.r,i+(r-i)*n),g:(o=e.g,a=t.g,o+(a-o)*n),b:(s=e.b,l=t.b,s+(l-s)*n)}))}}catch(e){throw console.warn("could not blend",g,y),e}
1return"#aN"===g&&(console.warn(`invalid color token value: ${e}`),g=b),void 0!==m.opacity&&(d=g,u=m.opacity,c=eE(d),g=`rgba(${c.r},${c.g},${c.b},${u})`),g}function e_(e){return"string"==typeof e?e:e.hex}function ej(e,t){let n=eM(t.default,{colorPalette:e}),i=n.bg;if("white"===i)throw Error("Cannot blend with white background");let r={default:n};for(let n of Q){if("default"===n)continue;let o="transparent"===n?{colorPalette:e}:{bg:i,colorPalette:e};U(r,n,()=>eM(t[n],o))}return r}function eM(e,t){var n,i,r,o;let{colorPalette:a,bg:s}=t,l=e._blend||"multiply",d=eA(e.bg,{colorPalette:a,bg:s,blendMode:l}),u={colorPalette:a,bg:d,blendMode:l},c=(n=e.button,i={baseBg:d,blendMode:l,colorPalette:a},{default:eV(n.default,i),ghost:eV(n.ghost,i),bleed:eV(n.bleed,i)}),h=function(e,t){let n={};for(let o of ee){var i,r;n[o]=(i=e[o],r=t,{enabled:ez(i.enabled,r),hovered:ez(i.hovered,r),pressed:ez(i.pressed,r),selected:ez(i.selected,r),disabled:ez(i.disabled,r)})}return n}(e.selectable,{colorPalette:a,baseBg:d,blendMode:l}),f={outline:eA(e.shadow.outline,u),umbra:eA(e.shadow.umbra,{...u,bg:void 0,colorPalette:{...a,black:"#000000"}}),penumbra:eA(e.shadow.penumbra,{...u,bg:void 0,colorPalette:{...a,black:"#000000"}}),ambient:eA(e.shadow.ambient,{...u,bg:void 0,colorPalette:{...a,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:eA(e.accent.fg,u)},avatar:eI(e.avatar,{baseBg:d,colorPalette:a,blendMode:l}),backdrop:eA(e.backdrop,u),badge:eP(e.badge,{baseBg:d,colorPalette:a,blendMode:l}),bg:d,border:eA(e.border,u),button:c,code:{bg:eA(e.code.bg,u),fg:eA(e.code.fg,u)},fg:eA(e.fg,u),focusRing:eA(e.focusRing,u),icon:eA(e.icon,u),input:(r=e.input,o={baseBg:d,colorPalette:a,blendMode:l},{default:eL(r.default,o),invalid:eL(r.invalid,o)}),kbd:function(e,t){let{baseBg:n,blendMode:i,colorPalette:r}=t,o=eA(e.bg,{bg:n,blendMode:i,colorPalette:r}),a={bg:o,blendMode:i,colorPalette:r};return{bg:o,fg:eA(e.fg,a),border:eA(e.border,a)}}(e.kbd,{baseBg:d,colorPalette:a,blendMode:l}),link:{fg:eA(e.link.fg,u)},muted:{bg:eA(e.muted.bg,u),fg:eA(e.muted.fg,u)},shadow:f,skeleton:{from:eA(e.skeleton.from,u),to:eA(e.skeleton.to,u)},syntax:function(e,t){let{colorPalette:n,baseBg:i,blendMode:r}=t,o={colorPalette:n,bg:i,blendMode:r};return{atrule:eA(e.atrule,o),attrName:eA(e.attrName,o),attrValue:eA(e.attrValue,o),attribute:eA(e.attribute,o),boolean:eA(e.boolean,o),builtin:eA(e.builtin,o),cdata:eA(e.cdata,o),char:eA(e.char,o),class:eA(e.class,o),className:eA(e.className,o),comment:eA(e.comment,o),constant:eA(e.constant,o),deleted:eA(e.deleted,o),doctype:eA(e.doctype,o),entity:eA(e.entity,o),function:eA(e.function,o),hexcode:eA(e.hexcode,o),id:eA(e.id,o),important:eA(e.important,o),inserted:eA(e.inserted,o),keyword:eA(e.keyword,o),number:eA(e.number,o),operator:eA(e.operator,o),prolog:eA(e.prolog,o),property:eA(e.property,o),pseudoClass:eA(e.pseudoClass,o),pseudoElement:eA(e.pseudoElement,o),punctuation:eA(e.punctuation,o),regex:eA(e.regex,o),selector:eA(e.selector,o),string:eA(e.string,o),symbol:eA(e.symbol,o),tag:eA(e.tag,o),unit:eA(e.unit,o),url:eA(e.url,o),variable:eA(e.variable,o)}}(e.syntax,{baseBg:d,colorPalette:a,blendMode:l}),selectable:h}}function eI(e,t){let n={};for(let i of E)n[i]=function(e,t){let{baseBg:n,blendMode:i,colorPalette:r}=t,o=e._blend||"multiply",a=eA(e.bg,{bg:n,blendMode:i,colorPalette:r});return{_blend:o,bg:a,fg:eA(e.fg,{bg:a,blendMode:o,colorPalette:r})}}(e[i],t);return n}function eP(e,t){let n={};for(let i of ee)n[i]=function(e,t){let{baseBg:n,blendMode:i,colorPalette:r}=t,o=eA(e.bg,{bg:n,blendMode:i,colorPalette:r}),a={bg:o,blendMode:i,colorPalette:r};return{bg:o,dot:eA(e.dot,a),fg:eA(e.fg,a),icon:eA(e.icon,a)}}(e[i],t);return n}function eV(e,t){let n={};for(let o of ee){var i,r;n[o]=(i=e[o],r=t,{enabled:ez(i.enabled,r),hovered:ez(i.hovered,r),pressed:ez(i.pressed,r),selected:ez(i.selected,r),disabled:ez(i.disabled,r)})}return n}function ez(e,t){let{baseBg:n,blendMode:i,colorPalette:r}=t,o=e._blend||"multiply",a=eA(e.bg,{bg:n,blendMode:i,colorPalette:r}),s={bg:a,blendMode:o,colorPalette:r};return{_blend:o,accent:{fg:eA(e.accent.fg,s)}
1,avatar:eI(e.avatar,{baseBg:a,colorPalette:r,blendMode:o}),badge:eP(e.badge,{baseBg:a,colorPalette:r,blendMode:o}),bg:a,border:eA(e.border,s),code:{bg:eA(e.code.bg,s),fg:eA(e.code.fg,s)},fg:eA(e.fg,s),icon:eA(e.icon,s),link:{fg:eA(e.link.fg,s)},muted:{bg:eA(e.muted.bg,s),fg:eA(e.muted.fg,s)},kbd:{bg:eA(e.kbd.bg,s),fg:eA(e.kbd.fg,s),border:eA(e.kbd.border,s)},skeleton:{from:eA(e.skeleton?.from,s),to:eA(e.skeleton?.to,s)}}}function eL(e,t){return{enabled:eN(e.enabled,t),hovered:eN(e.hovered,t),readOnly:eN(e.readOnly,t),disabled:eN(e.disabled,t)}}function eN(e,t){let{baseBg:n,blendMode:i,colorPalette:r}=t,o=e._blend||"multiply",a=eA(e.bg,{colorPalette:r,bg:n,blendMode:i}),s={colorPalette:r,bg:a,blendMode:o};return{_blend:o,bg:a,border:eA(e.border,s),fg:eA(e.fg,s),muted:{bg:eA(e.muted.bg,s)},placeholder:eA(e.placeholder,s)}}let eO=new Map;var eD=function(){let e;if(lA)return lC;lA=1;var t=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(e,t,o,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of r(t))a.call(e,l)||l===o||n(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e},l={};((e,t)=>{for(var i in t)n(e,i,{get:t[i],enumerable:!0})})(l,{$dispatcherGuard:()=>S,$makeReadOnly:()=>R,$reset:()=>$,$structuralCheck:()=>_,c:()=>y,clearRenderCounterRegistry:()=>E,renderCounterRegistry:()=>T,useRenderCounter:()=>C}),lC=s(n({},"__esModule",{value:!0}),l);var d,u,c=(e=null!=b?t(o(b)):{},s(b&&b.__esModule?e:n(e,"default",{value:b,enumerable:!0}),b)),{useRef:h,useEffect:f,isValidElement:p}=c,m=null!=(d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?d:c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.memo_cache_sentinel"),y="function"==typeof(null==(u=c.__COMPILER_RUNTIME)?void 0:u.c)?c.__COMPILER_RUNTIME.c:function(e){return c.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=g;return t[g]=!0,t},[])},v={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{v[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;function x(e){return m.ReactCurrentDispatcher.current=e,m.ReactCurrentDispatcher.current}v.useMemoCache=e=>{if(null==w)throw Error("React Compiler internal invariant violation: unexpected null dispatcher");return w.useMemoCache(e)};var k=[];function S(e){let t=m.ReactCurrentDispatcher.current;if(0===e){if(k.push(t),1===k.length&&(w=t),t===v)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");x(v)}else if(1===e){let e=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===k.length&&(w=null),x(e)}else if(2===e)k.push(t),x(w);else if(3===e){let e=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");x(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function $(e){for(let t=0;t<e.length;t++)e[t]=g}function R(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;function E(){for(let e of T.values())e.forEach(e=>{e.count=0})}function C(e){let t=h(null);null!=t.current&&(t.current.count+=1),f(()=>{if(null==t.current){let n,i={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(i),t.current=i}return()=>{var n;let i;null!==t.current&&(n=t.current,i=T.get(e),i?.delete(n))}})}var A=new Set;function _(e,t,n,i,r,o){function a(e,t,a,s){let l=`${i}:${o} [${r}] ${n}${a} changed from ${e} to ${t} at depth ${s}`;A.has(l)||(A.add(l),console.error(l))}!function e(t,n,i,r){if(!(r>2)&&t!==n)if(typeof t!=typeof n)a(`type ${typeof t}`,`type ${typeof n}`,i,r);else if("object"==typeof t){let o=Array.isArray(t),s=Array.isArray(n);if(null===t&&null!==n)a("null",`type ${typeof n}`,i,r);else if(null===n)a(`type ${typeof t}`,"null",i,r);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,i,r);else for(let[o,s]of t)n.has(o)?e(s,n.get(o),`${i}.get(${o})`,r+1):a(`Map instance with key ${o}`,`Map instance without key ${o}`,i,r);else a("Map instance","other value",i,r);else if(n instanceof Map)a("other value","Map instance",i,r);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,i,r);else for(let e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,i,r);else a("Set instance","other value",i,r);else if(n instanceof Set)a("other value","Set instance",i,r);else if(o||s)if(o!==s)a(`type ${o?"array":"object"}`,`type ${s?"array":"object"}`,i,r);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,i,r);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${i}[${o}]`,r+1);else if(p(t)||p(n))p(t)!==p(n)?a(`type ${p(t)?"React element":"object"}`,`type ${p(n)?"React element":"object"}`,i,r):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,i,r):e(t.props,n.props,`[props of ${i}]`,r+1);else{for(let e in n)e in t||a(`object without key ${e}`,`object with key ${e}`,i,r);for(let o in t)o in n?e(t[o],n[o],`${i}.${o}`,r+1):a(`object with key ${o}`,`object without key ${o}`,i,r)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,i,r):t!==n&&a(t,n,i,r)}}(e,t,"",0)}return lC}(),eB={exports:{}},eF={},eH=(lj||(lj=1,eB.exports=function(){if(l_)return eF;l_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),
1c=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function p(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case r:case i:case l:case d:case h:return f;default:switch(f=f&&f.$$typeof){case a:case s:case c:case u:case o:return f;default:return p}}case t:return p}}}return eF.ContextConsumer=o,eF.ContextProvider=a,eF.Element=e,eF.ForwardRef=s,eF.Fragment=n,eF.Lazy=c,eF.Memo=u,eF.Portal=t,eF.Profiler=r,eF.StrictMode=i,eF.Suspense=l,eF.SuspenseList=d,eF.isContextConsumer=function(e){return p(e)===o},eF.isContextProvider=function(e){return p(e)===a},eF.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},eF.isForwardRef=function(e){return p(e)===s},eF.isFragment=function(e){return p(e)===n},eF.isLazy=function(e){return p(e)===c},eF.isMemo=function(e){return p(e)===u},eF.isPortal=function(e){return p(e)===t},eF.isProfiler=function(e){return p(e)===r},eF.isStrictMode=function(e){return p(e)===i},eF.isSuspense=function(e){return p(e)===l},eF.isSuspenseList=function(e){return p(e)===d},eF.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===r||e===i||e===l||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===u||e.$$typeof===a||e.$$typeof===o||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},eF.typeOf=p,eF}()),eB.exports),eW=eH&&eH.__esModule&&Object.prototype.hasOwnProperty.call(eH,"default")?eH.default:eH;let eU=(0,b.forwardRef)(function(e,t){return(0,g.jsx)("svg",{"data-sanity-icon":"checkmark",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,g.jsx)("path",{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),eY=(0,b.forwardRef)(function(e,t){return(0,g.jsx)("svg",{"data-sanity-icon":"chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,g.jsx)("path",{d:"M17 10L12.5 14.5L8 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),eX=(0,b.forwardRef)(function(e,t){return(0,g.jsx)("svg",{"data-sanity-icon":"close",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,g.jsx)("path",{d:"M18 7L7 18M7 7L18 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),eG=(0,b.forwardRef)(function(e,t){return(0,g.jsx)("svg",{"data-sanity-icon":"remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,g.jsx)("path",{d:"M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),eq=(0,b.forwardRef)(function(e,t){return(0,g.jsx)("svg",{"data-sanity-icon":"spinner",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,g.jsx)("path",{d:"M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),eK=["top","right","bottom","left"],eZ=eK.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),eJ=Math.min,eQ=Math.max,e0=Math.round,e1=Math.floor,e2=e=>({x:e,y:e}),e3={left:"right",right:"left",bottom:"top",top:"bottom"};function e5(e,t){return"function"==typeof e?e(t):e}function e4(e){return e.split("-")[0]}function e6(e){return e.split("-")[1]}function e7(e){return"x"===e?"y":"x"}function e9(e){return"y"===e?"height":"width"}function e8(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function te(e,t,n){void 0===n&&(n=!1);let i=e6(e),r=e7(e8(e)),o=e9(r),a="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ta(a)),[a,ta(a)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let tn=["left","right"],ti=["right","left"],tr=["top","bottom"],to=["bottom","top"];function ta(e){let t=e4(e);return e3[t]+e.slice(t.length)}function ts(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function tl(e){let{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function td(e,t,n){let i,{reference:r,floating:o}=e,a=e8(t),s=e7(e8(t)),l=e9(s),d=e4(t),u="y"===a,c=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;switch(d){case"top":i={x:c,y:r.y-o.height};break;case"bottom":i={x:c,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:h};break;case"left":i={x:r.x-o.width,y:h};break;default:i={x:r.x,y:r.y}}switch(e6(t)){case"start":i[s]-=f*(n&&u?-1:1);break;case"end":i[s]+=f*(n&&u?-1:1)}return i}async function tu(e,t){var n;void 0===t&&(t={});let{x:i,y:r,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:h=!1,padding:f=0}=e5(t,e),p=ts(f),m=s[h?"floating"===c?"reference":"floating":c],g=tl(await o.getClippingRect
1({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:l})),b="floating"===c?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=tl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+p.top)/v.y,bottom:(w.bottom-g.bottom+p.bottom)/v.y,left:(g.left-w.left+p.left)/v.x,right:(w.right-g.right+p.right)/v.x}}let tc=async(e,t,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:tu},l=await (null==a.isRTL?void 0:a.isRTL(t)),d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:c}=td(d,i,l),h=i,f=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:b}=m,{x:y,y:v,data:w,reset:x}=await b({x:u,y:c,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});u=y??u,c=v??c,p[g]={...p[g],...w},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(d=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:u,y:c}=td(d,h,l)),n=-1)}return{x:u,y:c,placement:h,strategy:r,middlewareData:p}};function th(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tf(e){return eK.some(t=>e[t]>=0)}let tp=new Set(["left","top"]);async function tm(e,t){let{placement:n,platform:i,elements:r}=e,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),a=e4(n),s=e6(n),l="y"===e8(n),d=tp.has(a)?-1:1,u=o&&l?-1:1,c=e5(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*u,y:h*d}:{x:h*d,y:f*u}}function tg(){return"u">typeof window}function tb(e){return tw(e)?(e.nodeName||"").toLowerCase():"#document"}function ty(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tv(e){var t;return null==(t=(tw(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tw(e){return!!tg()&&(e instanceof Node||e instanceof ty(e).Node)}function tx(e){return!!tg()&&(e instanceof Element||e instanceof ty(e).Element)}function tk(e){return!!tg()&&(e instanceof HTMLElement||e instanceof ty(e).HTMLElement)}function tS(e){return!(!tg()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ty(e).ShadowRoot)}function t$(e){let{overflow:t,overflowX:n,overflowY:i,display:r}=tM(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&"inline"!==r&&"contents"!==r}function tR(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}let tT=/transform|translate|scale|rotate|perspective|filter/,tE=/paint|layout|strict|content/,tC=e=>!!e&&"none"!==e;function tA(e){let t=tx(e)?tM(e):e;return tC(t.transform)||tC(t.translate)||tC(t.scale)||tC(t.rotate)||tC(t.perspective)||!t_()&&(tC(t.backdropFilter)||tC(t.filter))||tT.test(t.willChange||"")||tE.test(t.contain||"")}function t_(){return null==i&&(i="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),i}function tj(e){return/^(html|body|#document)$/.test(tb(e))}function tM(e){return ty(e).getComputedStyle(e)}function tI(e){return tx(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tP(e){if("html"===tb(e))return e;let t=e.assignedSlot||e.parentNode||tS(e)&&e.host||tv(e);return tS(t)?t.host:t}function tV(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=tP(t);return tj(n)?t.ownerDocument?t.ownerDocument.body:t.body:tk(n)&&t$(n)?n:e(n)}(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),a=ty(r);if(!o)return t.concat(r,tV(r,[],n));{let e=tz(a);
1return t.concat(a,a.visualViewport||[],t$(r)?r:[],e&&n?tV(e):[])}}function tz(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tL(e){let t=tM(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=tk(e),o=r?e.offsetWidth:n,a=r?e.offsetHeight:i,s=e0(n)!==o||e0(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function tN(e){return tx(e)?e:e.contextElement}function tO(e){let t=tN(e);if(!tk(t))return e2(1);let n=t.getBoundingClientRect(),{width:i,height:r,$:o}=tL(t),a=(o?e0(n.width):n.width)/i,s=(o?e0(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let tD=e2(0);function tB(e){let t=ty(e);return t_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tD}function tF(e,t,n,i){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=tN(e),s=e2(1);t&&(i?tx(i)&&(s=tO(i)):s=tO(e));let l=(void 0===(r=n)&&(r=!1),i&&(!r||i===ty(a))&&r)?tB(a):e2(0),d=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,h=o.height/s.y;if(a){let e=ty(a),t=i&&tx(i)?ty(i):i,n=e,r=tz(n);for(;r&&i&&t!==n;){let e=tO(r),t=r.getBoundingClientRect(),i=tM(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;d*=e.x,u*=e.y,c*=e.x,h*=e.y,d+=o,u+=a,r=tz(n=ty(r))}}return tl({width:c,height:h,x:d,y:u})}function tH(e,t){let n=tI(e).scrollLeft;return t?t.left+n:tF(tv(e)).left+n}function tW(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tH(e,n),y:n.top+t.scrollTop}}function tU(e,t,n){var i;let r;if("viewport"===t)r=function(e,t){let n=ty(e),i=tv(e),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;let e=t_();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}let d=tH(i);if(d<=0){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(i.clientWidth-t.clientWidth-r);a<=25&&(o-=a)}else d<=25&&(o+=d);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t){let t,n,o,a,s,l,d;i=tv(e),t=tv(i),n=tI(i),o=i.ownerDocument.body,a=eQ(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=eQ(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-n.scrollLeft+tH(i),d=-n.scrollTop,"rtl"===tM(o).direction&&(l+=eQ(t.clientWidth,o.clientWidth)-a),r={width:a,height:s,x:l,y:d}}else if(tx(t)){let e,i,o,a,s,l;i=(e=tF(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=tk(t)?tO(t):e2(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,r={width:s,height:l,x:o*a.x,y:i*a.y}}else{let n=tB(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tl(r)}function tY(e){return"static"===tM(e).position}function tX(e,t){if(!tk(e)||"fixed"===tM(e).position)return null;if(t)return t(e);let n=e.offsetParent;return tv(e)===n&&(n=n.ownerDocument.body),n}function tG(e,t){var n;let i=ty(e);if(tR(e))return i;if(!tk(e)){let t=tP(e);for(;t&&!tj(t);){if(tx(t)&&!tY(t))return t;t=tP(t)}return i}let r=tX(e,t);for(;r&&(n=r,/^(table|td|th)$/.test(tb(n)))&&tY(r);)r=tX(r,t);return r&&tj(r)&&tY(r)&&!tA(r)?i:r||function(e){let t=tP(e);for(;tk(t)&&!tj(t);){if(tA(t))return t;if(tR(t))break;t=tP(t)}return null}(e)||i}let tq=async function(e){let t=this.getOffsetParent||tG,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=tk(t),r=tv(t),o="fixed"===n,a=tF(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=e2(0);if(i||!i&&!o)if(("body"!==tb(t)||t$(r))&&(s=tI(t)),i){let e=tF(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=tH(r));o&&!i&&r&&(l.x=tH(r));let d=!r||i||o?e2(0):tW(r,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},tK={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e,o="fixed"===r,a=tv(i),s=!!t&&tR(t.floating);if(i===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},d=e2(1),u=e2(0),c=tk(i);
1if((c||!c&&!o)&&(("body"!==tb(i)||t$(a))&&(l=tI(i)),c)){let e=tF(i);d=tO(i),u.x=e.x+i.clientLeft,u.y=e.y+i.clientTop}let h=!a||c||o?e2(0):tW(a,l);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+u.x+h.x,y:n.y*d.y-l.scrollTop*d.y+u.y+h.y}},getDocumentElement:tv,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e,o=[..."clippingAncestors"===n?tR(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=tV(e,[],!1).filter(e=>tx(e)&&"body"!==tb(e)),r=null,o="fixed"===tM(e).position,a=o?tP(e):e;for(;tx(a)&&!tj(a);){let t=tM(a),n=tA(a);n||"fixed"!==t.position||(r=null),(o?n||r:!(!n&&"static"===t.position&&r&&("absolute"===r.position||"fixed"===r.position)||t$(a)&&!n&&function e(t,n){let i=tP(t);return!(i===n||!tx(i)||tj(i))&&("fixed"===tM(i).position||e(i,n))}(e,a)))?r=t:i=i.filter(e=>e!==a),a=tP(a)}return t.set(e,i),i}(t,this._c):[].concat(n),i],a=tU(t,o[0],r),s=a.top,l=a.right,d=a.bottom,u=a.left;for(let e=1;e<o.length;e++){let n=tU(t,o[e],r);s=eQ(n.top,s),l=eJ(n.right,l),d=eJ(n.bottom,d),u=eQ(n.left,u)}return{width:l-u,height:d-s,x:u,y:s}},getOffsetParent:tG,getElementRects:tq,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=tL(e);return{width:t,height:n}},getScale:tO,isElement:tx,isRTL:function(e){return"rtl"===tM(e).direction}};function tZ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tJ(e,t,n,i){void 0===i&&(i={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=tN(e),u=r||o?[...d?tV(d):[],...t?tV(t):[]]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let c=d&&s?function(e,t){let n=null,i,r=tv(e);function o(){var e;clearTimeout(i),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let d=e.getBoundingClientRect(),{left:u,top:c,width:h,height:f}=d;if(s||t(),!h||!f)return;let p={rootMargin:-e1(c)+"px "+-e1(r.clientWidth-(u+h))+"px "+-e1(r.clientHeight-(c+f))+"px "+-e1(u)+"px",threshold:eQ(0,eJ(1,l))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==l){if(!m)return a();n?a(!1,n):i=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||tZ(d,e.getBoundingClientRect())||a(),m=!1}try{n=new IntersectionObserver(g,{...p,root:r.ownerDocument})}catch{n=new IntersectionObserver(g,p)}n.observe(e)}(!0),o}(d,n):null,h=-1,f=null;a&&(f=new ResizeObserver(e=>{let[i]=e;i&&i.target===d&&f&&t&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),d&&!l&&f.observe(d),t&&f.observe(t));let p,m=l?tF(e):null;return l&&function t(){let i=tF(e);m&&!tZ(m,i)&&n(),m=i,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),c?.(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}let tQ=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:u=0}=e5(e,t)||{};if(null==d)return{};let c=ts(u),h={x:n,y:i},f=e7(e8(r)),p=e9(f),m=await a.getDimensions(d),g="y"===f,b=g?"clientHeight":"clientWidth",y=o.reference[p]+o.reference[f]-h[f]-o.floating[p],v=h[f]-o.reference[f],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(d)),x=w?w[b]:0;x&&await (null==a.isElement?void 0:a.isElement(w))||(x=s.floating[b]||o.floating[p]);let k=x/2-m[p]/2-1,S=eJ(c[g?"top":"left"],k),$=eJ(c[g?"bottom":"right"],k),R=x-m[p]-$,T=x/2-m[p]/2+(y/2-v/2),E=eQ(S,eJ(T,R)),C=!l.arrow&&null!=e6(r)&&T!==E&&o.reference[p]/2-(T<S?S:$)-m[p]/2<0,A=C?T<S?T-S:T-R:0;return{[f]:h[f]+A,data:{[f]:E,centerOffset:T-E-A,...C&&{alignmentOffset:A}},reset:C}}});var t0="u">typeof document?b.useLayoutEffect:function(){};function t1(e,t){let n,i,r;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(i=n;0!=i--;)if(!t1(e[i],t[i]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(!("_owner"===n&&e.$$typeof)&&!t1(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function t2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function t3(e,t){let n=t2(e);return Math.round(t*n)/n}function t5(e){let t=b.useRef(e);return t0(()=>{t.current=e}),t}function t4(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[u,c]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=b.useState(i);t1(h,i)||f(i);let[p,m]=b.useState(null),[g,y]=b.useState(null),w=b.useCallback(e=>
1{e!==$.current&&($.current=e,m(e))},[]),x=b.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),k=o||p,S=a||g,$=b.useRef(null),R=b.useRef(null),T=b.useRef(u),E=null!=l,C=t5(l),A=t5(r),_=t5(d),j=b.useCallback(()=>{var e,i;let r,o,a;if(!$.current||!R.current)return;let s={placement:t,strategy:n,middleware:h};A.current&&(s.platform=A.current),(e=$.current,i=R.current,r=new Map,a={...(o={platform:tK,...s}).platform,_c:r},tc(e,i,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==_.current};M.current&&!t1(T.current,t)&&(T.current=t,v.flushSync(()=>{c(t)}))})},[h,t,n,A,_]);t0(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[d]);let M=b.useRef(!1);t0(()=>(M.current=!0,()=>{M.current=!1}),[]),t0(()=>{if(k&&($.current=k),S&&(R.current=S),k&&S){if(C.current)return C.current(k,S,j);j()}},[k,S,j,C,E]);let I=b.useMemo(()=>({reference:$,floating:R,setReference:w,setFloating:x}),[w,x]),P=b.useMemo(()=>({reference:k,floating:S}),[k,S]),V=b.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=t3(P.floating,u.x),i=t3(P.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+i+"px)",...t2(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,s,P.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:j,refs:I,elements:P,floatingStyles:V}),[u,j,I,P,V])}let t6=(e,t)=>{var n;let i=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,i;let{x:r,y:o,placement:a,middlewareData:s}=e,l=await tm(e,n);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}});return{name:i.name,fn:i.fn,options:[e,t]}},t7=(e,t)=>{var n;let i=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:i,placement:r,platform:o}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=e5(n,e),u={x:t,y:i},c=await o.detectOverflow(e,d),h=e8(e4(r)),f=e7(h),p=u[f],m=u[h];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],i=p-c[t];p=eQ(n,eJ(p,i))}if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+c[e],i=m-c[t];m=eQ(n,eJ(m,i))}let g=l.fn({...e,[f]:p,[h]:m});return{...g,data:{x:g.x-t,y:g.y-i,enabled:{[f]:a,[h]:s}}}}});return{name:i.name,fn:i.fn,options:[e,t]}},t9=(e,t)=>
1{var n;let i=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,i,r,o,a;let s,l,d,{placement:u,middlewareData:c,rects:h,initialPlacement:f,platform:p,elements:m}=e,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...k}=e5(n,e);if(null!=(t=c.arrow)&&t.alignmentOffset)return{};let S=e4(u),$=e8(f),R=e4(f)===f,T=await (null==p.isRTL?void 0:p.isRTL(m.floating)),E=y||(R||!x?[ta(f)]:(s=ta(f),[tt(f),s,tt(s)])),C="none"!==w;!y&&C&&E.push(...(l=e6(f),d=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ti:tn:t?tn:ti;case"left":case"right":return t?tr:to;default:return[]}}(e4(f),"start"===w,T),l&&(d=d.map(e=>e+"-"+l),x&&(d=d.concat(d.map(tt)))),d));let A=[f,...E],_=await p.detectOverflow(e,k),j=[],M=(null==(i=c.flip)?void 0:i.overflows)||[];if(g&&j.push(_[S]),b){let e=te(u,h,T);j.push(_[e[0]],_[e[1]])}if(M=[...M,{placement:u,overflows:j}],!j.every(e=>e<=0)){let e=((null==(r=c.flip)?void 0:r.index)||0)+1,t=A[e];if(t&&("alignment"!==b||$===e8(t)||M.every(e=>e8(e.placement)!==$||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=M.filter(e=>{if(C){let t=e8(e.placement);return t===$||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=f}if(u!==n)return{reset:{placement:n}}}return{}}});return{name:i.name,fn:i.fn,options:[e,t]}},t8=(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tQ({element:n.current,padding:i}).fn(t):{}:n?tQ({element:n,padding:i}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},ne=(0,b.createContext)({});function nt(e){let t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}let nn="u">typeof window?b.useLayoutEffect:b.useEffect,ni=(0,b.createContext)(null);function nr(e,t){-1===e.indexOf(t)&&e.push(t)}function no(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}let na=(e,t,n)=>n>t?t:n<e?e:n,ns=()=>{},nl=()=>{},nd={},nu=e=>"object"==typeof e&&null!==e;function nc(e){let t;return()=>(void 0===t&&(t=e()),t)}let nh=e=>e,nf=(...e)=>e.reduce((e,t)=>n=>t(e(n))),np=(e,t,n)=>{let i=t-e;return i?(n-e)/i:1};class nm{constructor(){this.subscriptions=[]}add(e){return nr(this.subscriptions,e),()=>no(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let ng=e=>1e3*e,nb=(e,t)=>t?1e3/t*e:0,ny=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nv(e,t,n,i){return e===t&&n===i?nh:r=>0===r||1===r?r:ny(function(e,t,n,i,r){let o,a,s=0;do(o=ny(a=t+(n-t)/2,i,r)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(r,0,1,e,n),t,i)}let nw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nx=e=>t=>1-e(1-t),nk=nv(.33,1.53,.69,.99),nS=nx(nk),n$=nw(nS),nR=e=>e>=1?1:(e*=2)<1?.5*nS(e):.5*(2-Math.pow(2,-10*(e-1))),nT=e=>1-Math.sin(Math.acos(e)),nE=nx(nT),nC=nw(nT),nA=nv(.42,0,1,1),n_=nv(0,0,.58,1),nj=nv(.42,0,.58,1),nM=e=>Array.isArray(e)&&"number"==typeof e[0],nI={linear:nh,easeIn:nA,easeInOut:nj,easeOut:n_,circIn:nT,cir
1cInOut:nC,circOut:nE,backIn:nS,backInOut:n$,backOut:nk,anticipate:nR},nP=e=>{if(nM(e)){nl(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,r]=e;return nv(t,n,i,r)}return"string"==typeof e?(nl(void 0!==nI[e],`Invalid easing type '${e}'`,"invalid-easing-type"),nI[e]):e},nV=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nz(e,t){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=nV.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,i=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,r=!1,a=!1)=>{let s=a&&i?t:n;return r&&o.add(e),s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(a=e,i){r=!0;return}i=!0;let o=t;t=n,n=o,t.forEach(s),t.clear(),i=!1,r&&(r=!1,l.process(e))}};return l}(o),e),{}),{setup:s,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:f,postRender:p}=a,m=()=>{let o=nd.useManualTiming,a=o?r.timestamp:performance.now();n=!1,o||(r.delta=i?1e3/60:Math.max(Math.min(a-r.timestamp,40),1)),r.timestamp=a,r.isProcessing=!0,s.process(r),l.process(r),d.process(r),u.process(r),c.process(r),h.process(r),f.process(r),p.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(m))};return{schedule:nV.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(n||(n=!0,i=!0,r.isProcessing||e(m)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<nV.length;t++)a[nV[t]].cancel(e)},state:r,steps:a}}let{schedule:nL,cancel:nN,state:nO,steps:nD}=nz("u">typeof requestAnimationFrame?requestAnimationFrame:nh,!0);function nB(){r=void 0}let nF={now:()=>(void 0===r&&nF.set(nO.isProcessing||nd.useManualTiming?nO.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(nB)}},nH=e=>t=>"string"==typeof t&&t.startsWith(e),nW=nH("--"),nU=nH("var(--"),nY=e=>!!nU(e)&&nX.test(e.split("/*")[0].trim()),nX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function nG(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let nq={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nK={...nq,transform:e=>na(0,1,e)},nZ={...nq,default:1},nJ=e=>Math.round(1e5*e)/1e5,nQ=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,n0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,n1=(e,t)=>n=>!!("string"==typeof n&&n0.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),n2=(e,t,n
1)=>i=>{if("string"!=typeof i)return i;let[r,o,a,s]=i.match(nQ);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},n3={...nq,transform:e=>Math.round(na(0,255,e))},n5={test:n1("rgb","red"),parse:n2("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+n3.transform(e)+", "+n3.transform(t)+", "+n3.transform(n)+", "+nJ(nK.transform(i))+")"},n4={test:n1("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:n5.transform},n6=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n7=n6("deg"),n9=n6("%"),n8=n6("px"),ie=n6("vh"),it=n6("vw"),ii={...n9,parse:e=>n9.parse(e)/100,transform:e=>n9.transform(100*e)},ir={test:n1("hsl","hue"),parse:n2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+n9.transform(nJ(t))+", "+n9.transform(nJ(n))+", "+nJ(nK.transform(i))+")"},io={test:e=>n5.test(e)||n4.test(e)||ir.test(e),parse:e=>n5.test(e)?n5.parse(e):ir.test(e)?ir.parse(e):n4.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?n5.transform(e):ir.transform(e),getAnimatableNone:e=>{let t=io.parse(e);return t.alpha=0,io.transform(t)}},ia=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,is="number",il="color",id=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function iu(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,a=t.replace(id,e=>(io.test(e)?(i.color.push(o),r.push(il),n.push(io.parse(e))):e.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(e)):(i.number.push(o),r.push(is),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:i,types:r}}function ic({split:e,types:t}){let n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],void 0!==i[o]){let e=t[o];e===is?r+=nJ(i[o]):e===il?r+=io.transform(i[o]):r+=i[o]}return r}}let ih={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(nQ)?.length||0)+(e.match(ia)?.length||0)>0},parse:function(e){return iu(e).values},createTransformer:function(e){return ic(iu(e))},getAnimatableNone:function(e){let t=iu(e);return ic(t)(t.values.map((e,n)=>{var i;return i=t.split[n],"number"==typeof e?i?.trim().endsWith("/")?e:0:"number"==typeof e?0:io.test(e)?io.getAnimatableNone(e):e}))}};function ip(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function im(e,t){return n=>n>0?t:e}let ig=(e,t,n)=>e+(t-e)*n,ib=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},iy=[n4,n5,ir];function iv(e){let t=iy.find(t=>t.test(e));if(ns(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ir&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,a=0;if(t){let i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=ip(s,i,e+1/3),o=ip(s,i,e),a=ip(s,i,e-1/3)}else r=o=a=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(n)),n}let iw=(e,t)=>{let n=iv(e),i=iv(t);if(!n||!i)return im(e,t);let r={...n};return e=>(r.red=ib(n.red,i.red,e),r.green=ib(n.green,i.green,e),r.blue=ib(n.blue,i.blue,e),r.alpha=ig(n.alpha,i.alpha,e),n5.transform(r))},ix=new Set(["none","hidden"]);function ik(e,t){return n=>ig(e,t,n)}function iS(e){return"number"==typeof e?ik:"string"==typeof e?nY(e)?im:io.test(e)?iw:iT:Array.isArray(e)?i$:"object"==typeof e?io.test(e)?iw:iR:im}function i$(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>iS(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function iR(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=iS(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let iT=(e,t)=>{let n=ih.createTransformer(t),i=iu(e),r=iu(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>
1=r.indexes.number.length?ix.has(e)&&!r.values.length||ix.has(t)&&!i.values.length?ix.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:nf(i$(function(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],a=e.indexes[o][i[o]],s=e.values[a]??0;n[r]=s,i[o]++}return n}(i,r),r.values),n):(ns(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),im(e,t))};function iE(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?ig(e,t,n):iS(e)(e,t)}let iC=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>nL.update(t,e),stop:()=>nN(t),now:()=>nO.isProcessing?nO.timestamp:nF.now()}},iA=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function i_(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let ij=.01,iM=2,iI=.005,iP=.5;function iV(e,t){return e*Math.sqrt(1-t*t)}let iz=["duration","bounce"],iL=["stiffness","damping","mass"];function iN(e,t){return t.some(t=>void 0!==e[t])}function iO(e=.3,t=.3){let n,i,r,o,a,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:d,restDelta:u}=l,c=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],f={done:!1,value:c},{stiffness:p,damping:m,mass:g,duration:b,velocity:y,isResolvedFromDuration:v}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!iN(e,iL)&&iN(e,iz))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*na(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:r}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:i=1}){let r,o;ns(e<=ng(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=na(.05,1,a),e=na(.01,10,e/1e3),a<1?(r=t=>{let i=t*a,r=i*e;return .001-(i-n)/iV(t,a)*Math.exp(-r)},o=t=>{let i=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-i),l=iV(Math.pow(t,2),a);return(-r(t)+.001>0?-1:1)*((i*n+n-o)*s)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e=ng(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=y||0,x=m/(2*Math.sqrt(p*g)),k=h-c,S=Math.sqrt(p/g)/1e3,$=5>Math.abs(k);if(d||(d=$?ij:iM),u||(u=$?iI:iP),x<1)r=iV(S,x),o=(w+x*S*k)/r,n=e=>h-Math.exp(-x*S*e)*(o*Math.sin(r*e)+k*Math.cos(r*e)),a=x*S*o+k*r,s=x*S*k-o*r,i=e=>Math.exp(-x*S*e)*(a*Math.sin(r*e)+s*Math.cos(r*e));else if(1===x){n=e=>h-Math.exp(-S*e)*(k+(w+S*k)*e);let e=w+S*k;i=t=>Math.exp(-S*t)*(S*e*t-w)}else{let e=S*Math.sqrt(x*x-1);n=t=>{let n=Math.exp(-x*S*t),i=Math.min(e*t,300);return h-n*((w+x*S*k)*Math.sinh(i)+e*k*Math.cosh(i))/e};let t=(w+x*S*k)/e,r=x*S*t-k*e,o=x*S*k-t*e;i=t=>{let n=Math.exp(-x*S*t),i=Math.min(e*t,300);return n*(r*Math.sinh(i)+o*Math.cosh(i))}}let R={calculatedDuration:v&&b||null,velocity:e=>ng(i(e)),next:e=>{if(!v&&x<1){let t=Math.exp(-x*S*e),n=Math.sin(r*e),i=Math.cos(r*e),l=h-t*(o*n+k*i);return f.done=Math.abs(ng(t*(a*n+s*i)))<=d&&Math.abs(h-l)<=u,f.value=f.done?h:l,f}let t=n(e);return v?f.done=e>=b:f.done=Math.abs(ng(i(e)))<=d&&Math.abs(h-t)<=u,f.value=f.done?h:t,f},toString:()=>{let e=Math.min(i_(R),2e4),t=iA(t=>R.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return R}function iD(e,t,n){let i=Math.max(t-5,0);return nb(n-e(i),t-i)}function iB({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:u}){let c,h,f=e[0],p={done:!1,value:f},m=n*t,g=f+m,b=void 0===a?g:a(g);b!==g&&(m=b-f);let y=e=>-m*Math.exp(-e/i),v=e=>b+y(e),w=e=>{let t=y(e),n=v(e);p.done=Math.abs(t)<=d,p.value=p.done?b:n},x=e=>{let t,n;t=p.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(c=e,h=iO({keyframes:[p.value,(n=p.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:iD(v,e,p.value),damping:r,stiffness:o,restDelta:d,restSpeed:u}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return h||void 0!==c||(t=!0,w(e),x(e)),void 0!==c&&e>
1=c?h.next(e-c):(t||w(e),p)}}}function iF({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){var r;let o,a=Array.isArray(i)&&"number"!=typeof i[0]?i.map(nP):nP(i),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;if(nl(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let i=[],r=n||nd.mix||iE,o=e.length-1;for(let n=0;n<o;n++){let o=r(e[n],e[n+1]);t&&(o=nf(Array.isArray(t)?t[n]||nh:t,o)),i.push(o)}return i}(t,i,r),l=s.length,d=n=>{if(a&&n<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=np(e[i],e[i+1],n);return s[i](r)};return n?t=>d(na(e[0],e[o-1],t)):d}((r=n&&n.length===t.length?n:(function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=np(0,t,i);e.push(ig(n,1,r))}}(o=[0],t.length-1),o),r.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||nj).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}iO.applyToOptions=e=>{let t=function(e,t=100,n){let i=n({...e,keyframes:[0,t]}),r=Math.min(i_(i),2e4);return{type:"keyframes",ease:e=>i.next(r*e).value/t,duration:r/1e3}}(e,100,iO);return e.ease=t.ease,e.duration=ng(t.duration),e.type="keyframes",e};let iH=e=>null!==e;function iW(e,{repeat:t,repeatType:n="loop"},i,r=1){let o=e.filter(iH),a=r<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}let iU={decay:iB,inertia:iB,tween:iF,keyframes:iF,spring:iO};function iY(e){"string"==typeof e.type&&(e.type=iU[e.type])}class iX{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let iG=e=>e/100;class iq extends iX{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==nF.now()&&this.tick(nF.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;iY(e);let{type:t=iF,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e,{keyframes:a}=e,s=t||iF;s!==iF&&"number"!=typeof a[0]&&(this.mixKeyframes=nf(iG,iE(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=i_(l));let{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-d*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?b<0:b>r;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,w=i;if(c){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===h?(n=1-n,f&&(n-=f/s)):"mirror"===h&&(w=a)),v=na(0,1,n)*s}y?(this.delayState.value=u[0],n=this.delayState):n=w.next(v),o&&!y&&(n.value=o(n.value));let{done:x}=n;y||null===l||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&p!==iB&&(n.value=iW(u,this.options,g,this.speed)),m&&m(n.value),k&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=ng(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return iD(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(nF.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iC,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(nF.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let iK=e=>180*e/Math.PI,iZ=e=>iQ(iK(Math.atan2(e[1],e[0]))),iJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:iZ,rotateZ:iZ,skewX:e=>iK(Math.atan(e[1])),skewY:e=>iK(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},iQ=e=>((e%=360)<0&&(e+=360),e),i0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),i1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),i2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:i0,scaleY:i1,scale:e=>(i0(e)+i1(e))/2,rotateX:e=>iQ(iK(Math.atan2(e[6],e[5]))),rotateY:e=>iQ(iK(Math.atan2(-e[2],e[0]))),rotateZ:iZ,rotate:iZ,skewX:e=>iK(Math.atan(e[4])),skewY:e=>iK(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function i3(e){return+!!e.includes("scale")}function i5(e,t){let n,i;if(!e||"none"===e)return i3(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=i2,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=iJ,i=t}if(!i)return i3(t);let o=n[t],a=i[1].split(",").map(i4);return"function"==typeof o?o(a):a[o]}function i4(e){return parseFloat(e.trim())}let i6=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i7=new Set([...i6,"pathRotation"]),i9=e=>e===nq||e===n8,i8=new Set(["x","y","z"]),re=i6.filter(e=>!i8.has(e)),rt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>i5(t,"x"),y:(e,{transform:t})=>i5(t,"y")};rt.translateX=rt.x,rt.translateY=rt.y;let rn=new Set,ri=!1,rr=!1,ro=!1;function ra(){if(rr){let e=Array.from(rn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t,i=(t=[],re.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t);i.length&&(n.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}rr=!1,ri=!1,rn.forEach(e=>e.complete(ro)),rn.clear()}function rs(){rn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rr=!0)})}class rl{constructor(e,t,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(rn.add(this),ri||(ri=!0,nL.read(rs),nL.resolveKeyframes(ra))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let r=i?.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===r&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),rn.delete(this)}cancel(){"scheduled"===this.state&&(rn.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function rd(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}let ru={};function rc(e,t){let n=nc(e);return()=>ru[t]??n()}let rh=rc(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),rf=rc(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rp=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,rm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rp([0,.65,.55,1]),circOut:rp([.55,0,1,.45]),backIn:rp([.31,.01,.66,-.59]),backOut:rp([.33,1.53,.69,.99])};function rg(e){return"function"==typeof e&&"applyToOptions"in e}class rb extends iX{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,nl("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return rg(e)&&rf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},d){let u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t)return"function"==typeof t?rf()?iA(t,n):"ease-out":nM(t)?rp(t):Array.isArray(t)?t.map(t=>e(t,n)||rm.easeOut):rm[t]}(s,r);Array.isArray(c)&&(u.easing=c);let h={delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}(t,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=iW(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),rd(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"===e||"finished"===e||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ng(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rh()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),nh):i(this)}}let ry={anticipate:nR,backInOut:n$,circInOut:nC};class rv extends rb{constructor(e){(function(e){"string"==typeof e.ease&&e.ease in ry&&(e.ease=ry[e.ease])})(e),iY(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new iq({...o,autoplay:!1}),s=Math.max(10,nF.now()-this.startTime),l=na(0,10,s-10),d=a.sample(s).value,{name:u}=this.options;r&&u&&rd(r,u,d),t.setWithVelocity(a.sample(Math.max(0,s-l)).value,d,l),a.stop()}}let rw=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ih.test(e)||"0"===e)&&!e.startsWith("url("));function rx(e){e.duration=0,e.type="keyframes"}let rk=new Set(["opacity","clipPath","filter","transform"]),rS=/^(?:
1oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,r$=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rR=nc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rT extends iX{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=nF.now();const c={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,name:s,motionValue:l,element:d,...u},h=d?.KeyframeResolver||rl;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,c,!n),s,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){let r;this.keyframeResolver=void 0;let{name:o,type:a,velocity:s,delay:l,isHandoff:d,onUpdate:u}=n;this.resolvedAt=nF.now();let c=!0;(function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=rw(r,t),s=rw(o,t);return ns(a===s,`You are trying to animate ${t} from "${r}" to "${o}". "${a?o:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||rg(n))&&i)})(e,o,a,s)||(c=!1,(nd.instantAnimations||!l)&&u?.(iW(e,n,t)),e[0]=e[e.length-1],rx(n),n.repeat=0);let h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=c&&!d&&function(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:a,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:d}=t.owner.getProps();return rR()&&n&&(rk.has(n)||r$.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rS.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!d)&&!l&&!i&&"mirror"!==r&&0!==o&&"inertia"!==a}(h),p=h.motionValue?.owner?.current;if(f)try{r=new rv({...h,element:p})}catch{r=new iq(h)}else r=new iq(h);r.finished.then(()=>{this.notifyFinished()}).catch(nh),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ro=!0,rs(),ra(),ro=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function rE(e,t,n,i=0,r=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*i;return"function"==typeof n?n(o,a):1===r?o*i:s-o*i}class rC{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=nF.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=nF.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nm);let n=this.events[e].add(t);return"change"===e?()=>{n(),nL.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
1setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=nF.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return nb(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rA(e,t){return new rC(e,t)}function r_(e,t){if(e?.inherit&&t){let{inherit:n,...i}=e;return{...t,...i}}return e}function rj(e,t){let n=e?.[t]??e?.default??e;return n!==e?r_(n,e):n}let rM={type:"spring",stiffness:500,damping:25,restSpeed:10},rI={type:"keyframes",duration:.8},rP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rV=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rz=(e,t,n,i={},r,o)=>a=>{let s=rj(i,e)||{},l=s.delay||i.delay||0,{elapsed:d=0}=i;d-=ng(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:r};(function(e){for(let t in e)if(!rV.has(t))return!0;return!1})(s)||Object.assign(u,((e,{keyframes:t})=>t.length>2?rI:i7.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rM:rP)(e,u)),u.duration&&(u.duration=ng(u.duration)),u.repeatDelay&&(u.repeatDelay=ng(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(rx(u),0===u.delay&&(c=!0)),(nd.instantAnimations||nd.skipAnimations||r?.shouldSkipAnimations||s.skipAnimations)&&(c=!0,rx(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,c&&!o&&void 0!==t.get()){let e=iW(u.keyframes,s);if(void 0!==e)return void nL.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new iq(u):new rT(u)},rL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rN(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function rO(e,t,n,i){if("function"==typeof t){let[r,o]=rN(i);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,o]=rN(i);t=t(void 0!==n?n:e.custom,r,o)}return t}function rD(e,t,n){let i=e.getProps();return rO(i,t,void 0!==n?n:i.custom,e)}let rB=new Set(["width","height","top","left","right","bottom",...i6]),rF=e=>Array.isArray(e),rH=e=>!!(e&&e.getVelocity);function rW(e,t){let n=e.getValue("willChange");if(rH(n)&&n.add)return n.add(t);if(!n&&nd.WillChange){let n=new nd.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function rU(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let rY="data-"+rU("framerAppearId");function rX(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o,transitionEnd:a,...s}=t,l=e.getDefaultTransition();o=o?r_(o,l):l;let d=o?.reduceMotion,u=o?.skipAnimations;i&&(o=i);let c=[],h=r&&e.animationState&&e.animationState.getState()[r],f=o?.path;
1for(let t in f&&f.animateVisualElement(e,s,o,n,c),s){let i=e.getValue(t,e.latestValues[t]??null),r=s[t];if(void 0===r||h&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(h,t))continue;let a={delay:n,...rj(o||{},t)};u&&(a.skipAnimations=!0);let l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(r)&&r===l&&!a.velocity){nL.update(()=>i.set(r));continue}let f=!1;if(window.MotionHandoffAnimation){let n=e.props[rY];if(n){let e=window.MotionHandoffAnimation(n,t,nL);null!==e&&(a.startTime=e,f=!0)}}rW(e,t);let p=d??e.shouldReduceMotion;i.start(rz(t,i,r,p&&rB.has(t)?{type:!1}:a,e,f));let m=i.animation;m&&c.push(m)}if(a){let t=()=>nL.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=rD(e,t)||{};for(let t in r={...r,...n}){var o;let n=rF(o=r[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rA(n))}}(e,a)});c.length?Promise.all(c).then(t):t()}return c}function rG(e,t,n={}){let i=rD(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(rX(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=r;return function(e,t,n=0,i=0,r=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(rG(l,t,{...a,delay:n+("function"==typeof i?0:i)+rE(e.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,i,o,a,s,n)}:()=>Promise.resolve(),{when:s}=r;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}let rq=e=>t=>t.test(e),rK=[nq,n8,n9,n7,it,ie,{test:e=>"auto"===e,parse:e=>e}],rZ=e=>rK.find(rq(e)),rJ=new Set(["brightness","contrast","saturate","opacity"]);function rQ(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(nQ)||[];if(!i)return e;let r=n.replace(i,""),o=+!!rJ.has(t);return i!==n&&(o*=100),t+"("+o+r+")"}let r0=/\b([a-z-]*)\(.*?\)/gu,r1={...ih,getAnimatableNone:e=>{let t=e.match(r0);return t?t.map(rQ).join(" "):e}},r2={...ih,getAnimatableNone:e=>{let t=ih.parse(e);return ih.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},r3={...nq,transform:Math.round},r5={borderWidth:n8,borderTopWidth:n8,borderRightWidth:n8,borderBottomWidth:n8,borderLeftWidth:n8,borderRadius:n8,borderTopLeftRadius:n8,borderTopRightRadius:n8,borderBottomRightRadius:n8,borderBottomLeftRadius:n8,width:n8,maxWidth:n8,height:n8,maxHeight:n8,top:n8,right:n8,bottom:n8,left:n8,inset:n8,insetBlock:n8,insetBlockStart:n8,insetBlockEnd:n8,insetInline:n8,insetInlineStart:n8,insetInlineEnd:n8,padding:n8,paddingTop:n8,paddingRight:n8,paddingBottom:n8,paddingLeft:n8,paddingBlock:n8,paddingBlockStart:n8,paddingBlockEnd:n8,paddingInline:n8,paddingInlineStart:n8,paddingInlineEnd:n8,margin:n8,marginTop:n8,marginRight:n8,marginBottom:n8,marginLeft:n8,marginBlock:n8,marginBlockStart:n8,marginBlockEnd:n8,marginInline:n8,marginInlineStart:n8,marginInlineEnd:n8,fontSize:n8,backgroundPositionX:n8,backgroundPositionY:n8,rotate:n7,pathRotation:n7,rotateX:n7,rotateY:n7,rotateZ:n7,scale:nZ,scaleX:nZ,scaleY:nZ,scaleZ:nZ,skew:n7,skewX:n7,skewY:n7,distance:n8,translateX:n8,translateY:n8,translateZ:n8,x:n8,y:n8,z:n8,perspective:n8,transformPerspective:n8,opacity:nK,originX:ii,originY:ii,originZ:n8,zIndex:r3,fillOpacity:nK,strokeOpacity:nK,numOctaves:r3},r4={...r5,color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:r1,WebkitFilter:r1,mask:r2,WebkitMask:r2},r6=e=>r4[e],r7=new Set([r1,r2]);function r9(e,t){let n=r6(e);return r7.has(n)||(n=ih),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let r8=new Set(["auto","none","0"]);class oe extends rl{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&nY(i=i.trim())){let r=function e(t,n,i=1){nl(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(e){let t=rL.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}(t);if(!r)return;let a=window.getComputedStyle(n).getPropertyValue(r);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return nY(o)?e(o,n,i+1):o}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!rB.has(n)||2!==e.length)return;let[i,r]=e,o=rZ(i),a=rZ(r);if(nG(i)!==nG(r)&&rt[n]){this.needsMeasurement=!0;return}if(o!==a)if(i9(o)&&i9(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else rt[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let i=0,r;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!r8.has(t)&&iu(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=r9(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=rt[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}function ot(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,i=n?.[e]??t.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let on=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function oi(e){return nu(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let{schedule:or}=nz(queueMicrotask,!1),oo={x:!1,y:!1};function oa(e,t){let n=ot(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}let os=(e,t)=>!!t&&(e===t||os(e,t.parentElement)),ol=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,od=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ou=new Set(["INPUT","SELECT","TEXTAREA"]),oc=new WeakSet;function oh(e){return t=>{"Enter"===t.key&&e(t)}}function of(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function op(e){return ol(e)&&!(oo.x||oo.y)}let om=new WeakSet;function og(e){return nu(e)&&"ownerSVGElement"in e}let ob=new WeakMap,oy=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:og(i)&&"getBBox"in i?i.getBBox()[t]:i[n],ov=oy("inline","width","offsetWidth"),ow=oy("block","height","offsetHeight");function ox({target:e,borderBoxSize:t}){ob.get(e)?.forEach(n=>{n(e,{get width(){return ov(e,t)},get height(){return ow(e,t)}})})}function ok(e){e.forEach(ox)}let oS=new Set;function o$(e,t){let n;return"function"==typeof e?(oS.add(e),a||(a=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};oS.forEach(t=>t(e))},window.addEventListener("resize",a)),()=>{oS.delete(e),oS.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(o||typeof ResizeObserver>
1"u"||(o=new ResizeObserver(ok)),(n=ot(e)).forEach(e=>{let n=ob.get(e);n||(n=new Set,ob.set(e,n)),n.add(t),o?.observe(e)}),()=>{n.forEach(e=>{let n=ob.get(e);n?.delete(t),n?.size||o?.unobserve(e)})})}let oR=[...rK,io,ih],oT=()=>({translate:0,scale:1,origin:0,originPoint:0}),oE=()=>({x:oT(),y:oT()}),oC=()=>({min:0,max:0}),oA=()=>({x:oC(),y:oC()}),o_=new WeakMap;function oj(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function oM(e){return"string"==typeof e||Array.isArray(e)}let oI=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oP=["initial",...oI];function oV(e){return oj(e.animate)||oP.some(t=>oM(e[t]))}function oz(e){return!!(oV(e)||e.variants)}let oL={current:null},oN={current:!1},oO="u">typeof window,oD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],oB={};class oF{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=rl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=nF.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,nL.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=oV(t),this.isVariantNode=oz(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&rH(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,o_.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(oN.current||function(){if(oN.current=!0,oO)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oL.current=e.matches;e.addEventListener("change",t),t()}else oL.current=!1}(),this.shouldReduceMotion=oL.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),nN(this.notifyUpdate),nN(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&rk.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:r,ease:o,duration:a}=t.accelerate,s=new rb({element:this.current,name:e,keyframes:i,times:r,ease:o,duration:ng(a)}),l=n(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let i=i7.has(e);i&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&nL.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";
1for(e in oB){let t=oB[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oA()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<oD.length;t++){let n=oD[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let r=t[i],o=n[i];if(rH(r))e.addValue(i,r);else if(rH(o))e.addValue(i,rA(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,rA(void 0!==t?t:r,{owner:e}))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=rA(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n,i,r,o=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=o&&("string"==typeof o&&(n=o,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=o,/^0[^.\s]+$/u.test(i)))?o=parseFloat(o):(r=o,!oR.find(rq(r))&&ih.test(t)&&(o=r9(e,t))),this.setBaseTarget(e,rH(o)?o.get():o)),rH(o)?o.get():o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=rO(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rH(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new nm),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){or.render(this.render)}}class oH extends oF{constructor(){super(...arguments),this.KeyframeResolver=oe}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;rH(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class oW{constructor(e){this.isMounted=!1,this.node=e}update(){}}function oU({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function oY(e){return void 0===e||1===e}function oX({scale:e,scaleX:t,scaleY:n}){return!oY(e)||!oY(t)||!oY(n)}function oG(e){return oX(e)||oq(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oq(e){var t,n;
1return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function oK(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function oZ(e,t=0,n=1,i,r){e.min=oK(e.min,t,n,i,r),e.max=oK(e.max,t,n,i,r)}function oJ(e,{x:t,y:n}){oZ(e.x,t.translate,t.scale,t.originPoint),oZ(e.y,n.translate,n.scale,n.originPoint)}function oQ(e,t){e.min+=t,e.max+=t}function o0(e,t,n,i,r=.5){let o=ig(e.min,e.max,r);oZ(e,t,n,o,i)}function o1(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function o2(e,t,n){let i=n??e;o0(e.x,o1(t.x,i.x),t.scaleX,t.scale,t.originX),o0(e.y,o1(t.y,i.y),t.scaleY,t.scale,t.originY)}function o3(e,t){return oU(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let o5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o4=i6.length;function o6(e,t,n){let{style:i,vars:r,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(i7.has(e)){a=!0;continue}if(nW(e)){r[e]=n;continue}{let t=on(n,r5[e]);e.startsWith("origin")?(s=!0,o[e]=t):i[e]=t}}if(t.transform||(a||n?i.transform=function(e,t,n){let i="",r=!0;for(let o=0;o<o4;o++){let a=i6[o],s=e[a];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!a.startsWith("scale");else{let e=parseFloat(s);l=a.startsWith("scale")?1===e:0===e}if(!l||n){let e=on(s,r5[a]);if(!l){r=!1;let t=o5[a]||a;i+=`${t}(${e}) `}n&&(t[a]=e)}}let o=e.pathRotation;return o&&(r=!1,i+=`rotate(${on(o,r5.pathRotation)}) `),i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;i.transformOrigin=`${e} ${t} ${n}`}}function o7(e,{style:t,vars:n},i,r){let o,a=e.style;for(o in t)a[o]=t[o];for(o in r?.applyProjectionStyles(a,i),n)a.setProperty(o,n[o])}function o9(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let o8={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!n8.test(e))return e;else e=parseFloat(e);let n=o9(e,t.target.x),i=o9(e,t.target.y);return`${n}% ${i}%`}},ae={borderRadius:{...o8,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:o8,borderTopRightRadius:o8,borderBottomLeftRadius:o8,borderBottomRightRadius:o8,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=ih.parse(e);if(i.length>5)return e;let r=ih.createTransformer(e),o=+("number"!=typeof i[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=s;let l=ig(a,s,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};function at(e,{layout:t,layoutId:n}){return i7.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!ae[e]||"opacity"===e)}function an(e,t,n){let i=e.style,r=t?.style,o={};if(!i)return o;for(let t in i)(rH(i[t])||r&&rH(r[t])||at(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=i[t]);return o}class ai extends oH{constructor(){super(...arguments),this.type="html",this.renderInstance=o7}readValueFromInstance(e,t){if(i7.has(t))return this.projection?.isProjecting?i3(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return i5(n,t)})(e,t);{let n=window.getComputedStyle(e),i=(nW(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return o3(e,t)}build(e,t,n){o6(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return an(e,t,n)}}let ar={offset:"stroke-dashoffset",array:"stroke-dasharray"},ao={offset:"strokeDashoffset",array:"strokeDasharray"},aa=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function as(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:a=0,...s},l,d,u){if(o6(e,s,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:h}=e;for(let e of(c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),aa))void 0!==c[e]&&(h[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==n&&(c.y=n),void 0!==i&&(c.scale=i),void 0!==r&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?ar:ao;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}(c,r,o,a,!1)}let al=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ad=e=>"string"==typeof e&&"svg"===e.toLowerCase();function au(e,t,n){let i=an(e,t,n);for(let n in e)(rH(e[n])||rH(t[n]))&&(i[-1!==i6.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}class ac extends oH{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=oA}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(i7.has(t)){let e=r6(t);return e&&e.default||0}return t=al.has(t)?t:rU(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return au(e,t,n)}
1build(e,t,n){as(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){for(let n in o7(e,t,void 0,i),t.attrs)e.setAttribute(al.has(n)?n:rU(n),t.attrs[n])}mount(e){this.isSVGTag=ad(e.tagName),super.mount(e)}}let ah=oP.length;function af(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let ap=[...oI].reverse(),am=oI.length;function ag(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ab(){return{animate:ag(!0),whileInView:ag(),whileHover:ag(),whileTap:ag(),whileDrag:ag(),whileFocus:ag(),exit:ag()}}function ay(e,t){e.min=t.min,e.max=t.max}function av(e,t){ay(e.x,t.x),ay(e.y,t.y)}function aw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ax(e){return e.max-e.min}function ak(e,t,n,i=.5){e.origin=i,e.originPoint=ig(t.min,t.max,e.origin),e.scale=ax(n)/ax(t),e.translate=ig(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function aS(e,t,n,i){ak(e.x,t.x,n.x,i?i.originX:void 0),ak(e.y,t.y,n.y,i?i.originY:void 0)}function a$(e,t,n,i=0){e.min=(i?ig(n.min,n.max,i):n.min)+t.min,e.max=e.min+ax(t)}function aR(e,t,n,i=0){let r=i?ig(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+ax(t)}function aT(e,t,n,i){aR(e.x,t.x,n.x,i?.x),aR(e.y,t.y,n.y,i?.y)}function aE(e,t,n,i,r){return e-=t,e=i+1/n*(e-i),void 0!==r&&(e=i+1/r*(e-i)),e}function aC(e,t,[n,i,r],o,a){!function(e,t=0,n=1,i=.5,r,o=e,a=e){if(n9.test(t)&&(t=parseFloat(t),t=ig(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=ig(o.min,o.max,i);e===o&&(s-=t),e.min=aE(e.min,t,n,s,r),e.max=aE(e.max,t,n,s,r)}(e,t[n],t[i],t[r],t.scale,o,a)}let aA=["x","scaleX","originX"],a_=["y","scaleY","originY"];function aj(e,t,n,i){aC(e.x,t,aA,n?n.x:void 0,i?i.x:void 0),aC(e.y,t,a_,n?n.y:void 0,i?i.y:void 0)}function aM(e){return 0===e.translate&&1===e.scale}function aI(e){return aM(e.x)&&aM(e.y)}function aP(e,t){return e.min===t.min&&e.max===t.max}function aV(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function az(e,t){return aV(e.x,t.x)&&aV(e.y,t.y)}function aL(e){return ax(e.x)/ax(e.y)}function aN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function aO(e){return[e("x"),e("y")]}let aD=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],aB=aD.length,aF=e=>"string"==typeof e?parseFloat(e):e,aH=e=>"number"==typeof e||n8.test(e);function aW(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let aU=aX(0,.5,nE),aY=aX(.5,.95,nh);function aX(e,t,n){return i=>i<e?0:i>t?1:n(np(e,t,i))}function aG(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}let aq=(e,t)=>e.depth-t.depth;class aK{constructor(){this.children=[],this.isDirty=!1}add(e){nr(this.children,e),this.isDirty=!0}remove(e){no(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(aq),this.isDirty=!1,this.children.forEach(e)}}function aZ(e){return rH(e)?e.get():e}class aJ{constructor(){this.members=[]}add(e){nr(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1!==i.isConnected||n.snapshot||(no(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(no(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:r}=e.options;(void 0===i||i!==r)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isU
1pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let aQ={hasAnimatedSinceResize:!0,hasEverUpdated:!1},a0=["","X","Y","Z"],a1=0;function a2(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function a3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=a1++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(a6),this.nodes.forEach(so),this.nodes.forEach(sa),this.nodes.forEach(a7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new aK)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nm),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=og(t)&&!(og(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n,i=0,r=()=>this.root.updateBlockedByResize=!1;nL.read(()=>{i=window.innerWidth}),e(t,()=>{let e,t,o=window.innerWidth;o!==i&&(i=o,this.root.updateBlockedByResize=!0,n&&n(),e=nF.now(),t=({timestamp:n})=>{let i=n-e;i>=250&&(nN(t),r(i-250))},nL.setup(t,!0),n=()=>
1nN(t),aQ.hasAnimatedSinceResize&&(aQ.hasAnimatedSinceResize=!1,this.nodes.forEach(sr)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||sh,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=r.getProps(),l=!this.targetLayout||!az(this.targetLayout,i),d=!t&&n;if(this.options.layoutRoot||this.resumeFrom||d||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...rj(o,"layout"),onPlay:a,onComplete:s};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,d,t.path)}else t||sr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),nN(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ss),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=n.props[rY];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",nL,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(se),this.nodes.forEach(a8);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(st);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sn),this.nodes.forEach(si),this.nodes.forEach(a5),this.nodes.forEach(a4)):this.nodes.forEach(st),this.clearAllSnapshots();let e=nF.now();nO.delta=na(0,1e3/60,e-nO.timestamp),nO.timestamp=e,nO.isProcessing=!0,nD.update.process(nO),nD.preRender.process(nO),nD.render.process(nO),nO.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,or.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(a9),this.sharedNodes.forEach(sl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nL.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nL.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||ax(this.snapshot.measuredBox.x)||ax(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=oA()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!aI(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||oG(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),sm((t=i).x),sm(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return oA();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sb))){let{scroll:e}=this.root;e&&(oQ(t.x,e.offset.x),oQ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=oA();if(av(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&av(t,e),oQ(t.x,r.offset.x),oQ(t.y,r.offset.y))}return t}applyTransform(e,t=!1,n){let i=n||oA();av(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(oQ(i.x,-n.scroll.offset.x),oQ(i.y,-n.scroll.offset.y)),oG(n.latestValues)&&o2(i,n.latestValues,n.layout?.layoutBox)}return oG(this.latestValues)&&o2(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=oA();av(t,e);for(let e=0;e<this.path.length;e++){let n,i=this.path[e];oG(i.latestValues)&&(i.instance&&(oX(i.latestValues)&&i.updateSnapshot(),av(n=oA(),i.measurePageBox())),aj(t,i.latestValues,i.snapshot?.layoutBox,n))}return oG(this.latestValues)&&aj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==nO.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,i,r;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:l}=this.options;if(!this.layout||!(s||l))return;this.resolvedRelativeTargetAt=nO.timestamp;let d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=oA(),this.targetWithTransforms=oA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),t=this.target,n=this.relativeTarget,i=this.relativeParent.target,r=this.options.layoutAnchor||void 0,a$(t.x,n.x,i.x,r?.x),a$(t.y,n.y,i.y,r?.y)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):av(this.target,this.layout.layoutBox),oJ(this.target,this.targetDelta)):av(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&1!==this.animationProgress?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||oX(this.parent.latestValues)||oq(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oA(),this.relativeTargetOrigin=oA(),aT(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),av(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===nO.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;av(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(function(e,t,n,i=!1){let r,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(r=n[s]).projectionDelta;let{visualElement:a}=r.options;a&&a.props.style&&"contents"===a.props.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(oQ(e.x,-r.scroll.offset.x),oQ(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,oJ(e,o)),i&&oG(r.latestValues)&&o2(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}})(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=oA());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(aw(this.prevProjectionDelta.x,this.projectionDelta.x),aw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),aS(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&aN(this.projectionDelta.x,this.prevProjectionDelta.x)&&aN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=oE(),this.projectionDelta=oE(),this.projectionDeltaWithTransform=oE()}setAnimationOrigin(e,t=!1,n){let i,r=this.snapshot,o=r?r.latestValues:{},a={...this.latestValues},s=oE();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=oA(),d=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(d&&!c&&!0===this.options.crossfade&&!this.path.some(sc));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{var n,r,u,p,m,g;let b=t/1e3,y=f?.(b);y?(s.x.translate=y.x,s.x.scale=ig(e.x.scale,1,b),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=y.y,s.y.scale=ig(e.y.scale,1,b),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(sd(s.x,e.x,b),sd(s.y,e.y,b)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(aT(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),u=this.relativeTarget,p=this.relativeTargetOrigin,m=l,g=b,su(u.x,p.x,m.x,g),su(u.y,p.y,m.y,g),i&&(n=this.relativeTarget,r=i,aP(n.x,r.x)&&aP(n.y,r.y))&&(this.isProjectionDirty=!1),i||(i=oA()),av(i,this.relativeTarget)),d&&(this.animationValues=a,function(e,t,n,i,r,o){r?(e.opacity=ig(0,n.opacity??1,aU(i)),e.opacityExit=ig(t.opacity??1,0,aY(i))):o&&(e.opacity=ig(t.opacity??1,n.opacity??1,i));for(let r=0;r<aB;r++){let o=aD[r],a=aW(t,o),s=aW(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||aH(a)===aH(s)?(e[o]=Math.max(ig(aF(a),aF(s),i),0),(n9.test(s)||n9.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=ig(t.rotate||0,n.rotate||0,i))}(a,o,this.latestValues,b,h,c)),y&&void 0!==y.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=y.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(nN(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nL.update(()=>{var t,n,i;let r;aQ.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=rA(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],i={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}
1,(r=rH(t)?t:rA(t)).start(rz("",r,n,i)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(!(!t||!n||!i)){if(this!==e&&this.layout&&i&&sg(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||oA();let t=ax(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=ax(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}av(t,n),o2(t,r),aS(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new aJ),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&a2("z",e,i,this.animationValues);for(let t=0;t<a0.length;t++)a2(`rotate${a0[t]}`,e,i,this.animationValues),a2(`skew${a0[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=aZ(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=aZ(t?.pointerEvents)||""),this.hasProjected&&!oG(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();
1let o=function(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((r||o||a)&&(i=`translate3d(${r}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:r,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotate(${r}deg) `),o&&(i+=`rotateX(${o}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(i+=`scale(${s}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,i.animationValues?e.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ae){if(void 0===r[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=ae[t],l="none"===o?r[t]:n(r[t],i);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?aZ(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(a8),this.root.sharedNodes.clear()}}}function a5(e){e.updateLayout()}function a4(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if("size"===r)aO(e=>{let i=o?t.measuredBox[e]:t.layoutBox[e],r=ax(i);i.min=n[e].min,i.max=i.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";ay(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else sg(r,t.layoutBox,n)&&aO(i=>{let r=o?t.measuredBox[i]:t.layoutBox[i],a=ax(n[i]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});let a=oE();aS(a,n,t.layoutBox);let s=oE();o?aS(s,e.applyTransform(i,!0),t.measuredBox):aS(s,n,t.layoutBox);let l=!aI(a),d=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let a=e.options.layoutAnchor||void 0,s=oA();aT(s,t.layoutBox,r.layoutBox,a);let l=oA();aT(l,n,o.layoutBox,a),az(s,l)||(d=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function a6(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function a7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function a9(e){e.clearSnapshot()}function a8(e){e.clearMeasurements()}function se(e){e.isLayoutDirty=!0,e.updateLayout()}function st(e){e.isLayoutDirty=!1}function sn(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function si(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function so(e){e.resolveTargetDelta()}function sa(e){e.calcProjection()}function ss(e){e.resetSkewAndRotation()}function sl(e){e.removeLeadSnapshot()}function sd(e,t,n){e.translate=ig(t.translate,0,n),e.scale=ig(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function su(e,t,n,i){e.min=ig(t.min,n.min,i),e.max=ig(t.max,n.max,i)}function sc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sh={duration:.45,ease:[.4,0,.1,1]},sf=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sp=sf("applewebkit/")&&!sf("chrome/")?Math.round:nh;function sm(e){e.min=sp(e.min),e.max=sp(e.max)}function sg(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(aL(t)-aL(n)))}
1function sb(e){return e!==e.root&&e.scroll?.wasRoot}let sy=a3({attachResizeListener:(e,t)=>aG(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sv={current:void 0},sw=a3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sv.current){let e=new sy({});e.mount(window),e.setOptions({layoutScroll:!0}),sv.current=e}return sv.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sx=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sk(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class sS extends b.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(oi(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=oi(e)&&e.offsetWidth||0,i=oi(e)&&e.offsetHeight||0,r=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(r.height),o.width=parseFloat(r.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=i-o.height-o.top,o.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function s$({children:e,isPresent:t,anchorX:n,anchorY:i,root:r,pop:o}){let a=(0,b.useId)(),s=(0,b.useRef)(null),l=(0,b.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,b.useContext)(sx),u=function(...e){return b.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=sk(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():sk(e[t],null)}}}}(...e),e)}(s,e.props?.ref??e?.ref);return(0,b.useInsertionEffect)(()=>{let{width:e,height:u,top:c,left:h,right:f,bottom:p,direction:m}=l.current;if(t||!1===o||!s.current||!e||!u)return;let g="rtl"===m,b="left"===n?g?`right: ${f}`:`left: ${h}`:g?`left: ${h}`:`right: ${f}`,y="bottom"===i?`bottom: ${p}`:`top: ${c}`;s.current.dataset.motionPopId=a;let v=document.createElement("style");d&&(v.nonce=d);let w=r??document.head;return w.appendChild(v),v.sheet&&v.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${u}px !important;
6            ${b}px !important;
7            ${y}px !important;
8          }
9        `),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(v)&&w.removeChild(v)}},[t]),(0,g.jsx)(sS,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:!1===o?e:b.cloneElement(e,{ref:u})})}let sR=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:a,anchorX:s,anchorY:l,root:d})=>{let u=nt(sT),c=(0,b.useId)(),h=(0,b.useRef)(n),f=(0,b.useRef)(i);nn(()=>{h.current=n,f.current=i});let p=!0,m=(0,b.useMemo)(()=>(p=!1,{id:c,initial:t,isPresent:n,custom:r,onExitComplete:e=>
9{for(let t of(u.set(e,!0),u.values()))if(!t)return;i&&i()},register:e=>(u.set(e,!1),()=>{u.delete(e),h.current||u.size||f.current?.()})}),[n,u,i]);return o&&p&&(m={...m}),(0,b.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),b.useEffect(()=>{n||u.size||!i||i()},[n]),e=(0,g.jsx)(s$,{pop:"popLayout"===a,isPresent:n,anchorX:s,anchorY:l,root:d,children:e}),(0,g.jsx)(ni.Provider,{value:m,children:e})};function sT(){return new Map}function sE(e=!0){let t=(0,b.useContext)(ni);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:i,register:r}=t,o=(0,b.useId)();(0,b.useEffect)(()=>{if(e)return r(o)},[e]);let a=(0,b.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,a]:[!0]}let sC=e=>e.key||"";function sA(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}let s_=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:o="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:d})=>{let[u,c]=sE(a),h=(0,b.useMemo)(()=>sA(e),[e]),f=a&&!u?[]:h.map(sC),p=(0,b.useRef)(!0),m=(0,b.useRef)(h),y=nt(()=>new Map),v=(0,b.useRef)(new Set),[w,x]=(0,b.useState)(h),[k,S]=(0,b.useState)(h);nn(()=>{p.current=!1,m.current=h;for(let e=0;e<k.length;e++){let t=sC(k[e]);f.includes(t)?(y.delete(t),v.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[k,f.length,f.join("-")]);let $=[];if(h!==w){let e=[...h];for(let t=0;t<k.length;t++){let n=k[t],i=sC(n);f.includes(i)||(e.splice(t,0,n),$.push(n))}return"wait"===o&&$.length&&(e=$),S(sA(e)),x(h),null}let{forceRender:R}=(0,b.useContext)(ne);return(0,g.jsx)(g.Fragment,{children:k.map(e=>{let b=sC(e),w=(!a||!!u)&&(h===k||f.includes(b));return(0,g.jsx)(sR,{isPresent:w,initial:(!p.current||!!n)&&void 0,custom:t,presenceAffectsLayout:r,mode:o,root:d,onExitComplete:w?void 0:()=>{if(v.current.has(b)||!y.has(b))return;v.current.add(b),y.set(b,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(R?.(),S(m.current),a&&c?.(),i&&i())},anchorX:s,anchorY:l,children:e},b)})})},sj=(0,b.createContext)({strict:!1}),sM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sI=!1;function sP(){return function(){if(sI)return;let e={};for(let t in sM)e[t]={isEnabled:e=>sM[t].some(t=>!!e[t])};oB=e,sI=!0}(),oB}let sV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function sz(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sV.has(e)}let sL=e=>!sz(e);try{lE=require("@emotion/is-prop-valid").default,"function"==typeof lE&&(sL=e=>e.startsWith("on")?!sz(e):lE(e))}catch{}let sN=(0,b.createContext)({});function sO(e){return Array.isArray(e)?e.join(" "):e}let sD=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sB(e,t,n){for(let i in t)rH(t[i])||at(i,n)||(e[i]=t[i])}let sF=()=>({...sD(),attrs:{}}),sH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sW(e){return!("string"!=typeof e||e.includes("-"))&&!!(sH.indexOf(e)>-1||/[A-Z]/u.test(e))}let sU=e=>(t,n)=>{let i=(0,b.useContext)(sN),r=(0,b.useContext)(ni),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:function(e,t,n,i){let r={},o=i(e,{});for(let e in o)r[e]=aZ(o[e]);let{initial:a,animate:s}=e,l=oV(e),d=oz(e);t&&d&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial,c=(u=u||!1===a)?s:a;if(c&&"boolean"!=typeof c&&!oj(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let i=rO(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(n,i,r,e),renderState:t()}})(e,t,i,r);return n?o():nt(o)},sY=sU({scrapeMotionValuesFromProps:an,createRenderState:sD}),sX=sU({scrapeMotionValuesFromProps:au,createRenderState:sF}),sG=Symbol.for("motionComponentSymbol"),sq=(0,b.createContext)({});function sK(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function sZ(e,{forwardMotionProps:t=!1,type:n}={},i,r){i&&function(e){let t=sP();for(let n in e)t[n]={...t[n],...e[n]};oB=t}(i);let o=n?"svg"===n:sW(e),a=o?sX:sY;function s(n,i){var s;let l,d,u,c={...(0,b.useContext)(sx),...n,layoutId:function({layoutId:e}){let t=(0,b.useContext)(ne).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:h}=c,f=function(e){let{initial:t,animate:n}=function(e,t){if(oV(e)){let{initial:t,animate:n}=e;return{initial:!1===t||oM(t)?t:void 0,animate:oM(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(sN));return(0,b.useMemo)(()=>({initial:t,animate:n}),[sO(t),sO(n)])}(n),p=a(n,h);if(!h&&"u">typeof window){(0,b.useContext)(sj).strict;let t=function(e){let{drag:t,layout:n}=sP();if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
9(c);l=t.MeasureLayout,f.visualElement=function(e,t,n,i,r,o){let{visualElement:a}=(0,b.useContext)(sN),s=(0,b.useContext)(sj),l=(0,b.useContext)(ni),d=(0,b.useContext)(sx),u=d.reducedMotion,c=d.skipAnimations,h=(0,b.useRef)(null),f=(0,b.useRef)(!1);i=i||s.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:c,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let p=h.current,m=(0,b.useContext)(sq);p&&!p.projection&&r&&("html"===p.type||"svg"===p.type)&&function(e,t,n,i){let{layoutId:r,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:d,layoutAnchor:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!a||s&&sK(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:d,layoutAnchor:u})}(h.current,n,r,m);let g=(0,b.useRef)(!1);(0,b.useInsertionEffect)(()=>{p&&g.current&&p.update(n,l)});let y=n[rY],v=(0,b.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return nn(()=>{f.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,b.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(e,p,c,r,t.ProjectionNode,o)}return(0,g.jsxs)(sN.Provider,{value:f,children:[l&&f.visualElement?(0,g.jsx)(l,{visualElement:f.visualElement,...c}):null,function(e,t,n,{latestValues:i},r,o=!1,a){let s=(a??sW(e)?function(e,t,n,i){let r=(0,b.useMemo)(()=>{let n=sF();return as(n,t,ad(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};sB(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let n,i,r={},o=(n=e.style||{},sB(i={},n,e),Object.assign(i,function({transformTemplate:e},t){return(0,b.useMemo)(()=>{let n=sD();return o6(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),i);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r})(t,i,r,e),l=function(e,t,n){let i={};for(let r in e)"values"===r&&"object"==typeof e.values||rH(e[r])||(sL(r)||!0===n&&sz(r)||!t&&!sz(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(t,"string"==typeof e,o),d=e!==b.Fragment?{...l,...s,ref:n}:{},{children:u}=t,c=(0,b.useMemo)(()=>rH(u)?u.get():u,[u]);return(0,b.createElement)(e,{...d,children:c})}(e,n,(s=f.visualElement,d=(0,b.useRef)(i),(0,b.useInsertionEffect)(()=>{d.current=i}),u=(0,b.useRef)(null),(0,b.useCallback)(e=>{e&&p.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=d.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(u.current=n)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[s])),p,h,t,o)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,b.forwardRef)(s);return l[sG]=e,l}class sJ extends oW{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>rG(e,t,n)));else if("string"==typeof t)i=rG(e,t,n);else{let r="function"==typeof t?rD(e,t,n.custom):t;i=Promise.all(rX(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=ab(),i=!0,r=!1,o=t=>(n,i)=>{let r=rD(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function a(a){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<ah;e++){let i=oP[e],r=t.props[i];(oM(r)||!1===r)&&(n[i]=r)}return n}(e.parent)||{},d=[],u=new Set,c={},h=1/0;for(let t=0;t<am;t++){var f,p;let m=ap[t],g=n[m],b=void 0!==s[m]?s[m]:l[m],y=oM(b),v=m===a?g.isActive:null;!1===v&&(h=t);let w=b===l[m]&&b!==s[m]&&y;if(w&&(i||r)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...c},!g.isActive&&null===v||!b&&!g.prevProp||oj(b)||"boolean"==typeof b)continue;if("exit"===m&&g.isActive&&!0!==v){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let x=(f=g.prevProp,"string"==typeof(p=b)?p!==f:!!Array.isArray(p)&&!af(p,f)),k=x||m===a&&g.isActive&&!w&&y||t>h&&y,S=!1,$=Array.isArray(b)?b:[b],R=$.reduce(o(m),{});!1===v&&(R={});let{prevResolvedValues:T={}}=g,E={...T,...R},C=t=>{k=!0,u.has(t)&&(S=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in E){let t=R[e],n=T[e];
9if(!c.hasOwnProperty(e))(rF(t)&&rF(n)?!af(t,n)||x:t!==n)?null!=t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):g.protectedKeys[e]=!0}g.prevProp=b,g.prevResolvedValues=R,g.isActive&&(c={...c,...R}),(i||r)&&e.blockInitialAnimation&&(k=!1);let A=w&&x;k&&(!A||S)&&d.push(...$.map(t=>{let n={type:m};if("string"==typeof t&&(i||r)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,r=rD(i,t);if(i.enteringChildren&&r){let{delayChildren:t}=r.transition||{};n.delay=rE(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof s.initial){let n=rD(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),d.push({animation:t})}let m=!!d.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,r=!1,m?t(d):Promise.resolve()}return{animateChanges:a,setActive:function(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=a(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ab(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();oj(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sQ=0;class s0 extends oW{constructor(){super(...arguments),this.id=sQ++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=rD(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}function s1(e){return{point:{x:e.pageX,y:e.pageY}}}function s2(e,t,n,i){return aG(e,t,e=>ol(e)&&n(e,s1(e)),i)}let s3=({current:e})=>e?e.ownerDocument.defaultView:null,s5=(e,t)=>Math.abs(e-t),s4=new Set(["auto","scroll"]);class s6{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=s7(this.lastRawMoveEventInfo,this.transformPagePoint));let n=s8(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(e=n.offset,t={x:0,y:0},Math.sqrt(s5(e.x,t.x)**2+s5(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!r)return;let{point:o}=n,{timestamp:a}=nO;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;
9i||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=s7(t,this.transformPagePoint),nL.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=s8("pointercancel"===e.type?this.lastMoveEventInfo:s7(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!ol(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const s=s7(s1(e),this.transformPagePoint),{point:l}=s,{timestamp:d}=nO;this.history=[{...l,timestamp:d}];const{onSessionStart:u}=t;u&&u(e,s8(s,this.history));const c={passive:!0,capture:!0};this.removeListeners=nf(s2(this.contextWindow,"pointermove",this.handlePointerMove,c),s2(this.contextWindow,"pointerup",this.handlePointerUp,c),s2(this.contextWindow,"pointercancel",this.handlePointerUp,c)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(s4.has(e.overflowX)||s4.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-t.x,y:i.y-t.y};0===r.x&&0===r.y||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),nL.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),nN(this.updatePoint)}}function s7(e,t){return t?{point:t(e.point)}:e}function s9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s8({point:e},t){return{point:e,delta:s9(e,le(t)),offset:s9(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,i=le(e);for(;t>=0&&(n=e[t],!(i.timestamp-n.timestamp>ng(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>2*ng(.1)&&(n=e[1]);let r=(i.timestamp-n.timestamp)/1e3;if(0===r)return{x:0,y:0};let o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function le(e){return e[e.length-1]}function lt(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ln(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function li(e,t,n){return{min:lr(e,t),max:lr(e,n)}}function lr(e,t){return"number"==typeof e?e:e[t]||0}let lo=new WeakMap;class la{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=oA(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{t&&this.snapToCursor(s1(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?oo[n]?null:(oo[n]=!0,()=>{oo[n]=!1}):oo.x||oo.y?null:(oo.x=oo.y=!0,()=>{oo.x=oo.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aO(e=>{let t=this.getAxisMotionValue(e).get()||0;if(n9.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];i&&(t=ax(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&nL.update(()=>r(e,t),!1,!0),rW(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&nL.update(()=>o(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();
9this.panSession=new s6(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:s3(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,i=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&nL.postRender(()=>a(n,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!ll(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?ig(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?ig(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&sK(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:lt(e.x,n,r),y:lt(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:li(e,"left","right"),y:li(e,"top","bottom")}}(t),i!==this.constraints&&!sK(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&aO(e=>{var t,i;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],i=this.constraints[e],r={},void 0!==i.min&&(r.min=i.min-t.min),void 0!==i.max&&(r.max=i.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!sK(t))return!1;let i=t.current;nl(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let o=function(e,t,n){let i=o3(e,n),{scroll:r}=t;return r&&(oQ(i.x,r.offset.x),oQ(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:ln(e.x,o.x),y:ln(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=oU(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(aO(a=>{if(!ll(a,t,this.currentDirection))return;let l=s&&s[a]||{};(!0===o||o===a)&&(l={min:0,max:0});let d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,d)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return rW(this.visualElement,e),n.start(rz(e,n,0,t,this.visualElement,!1))}stopAnimation(){aO(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){aO(t=>{let{drag:n}=this.getProps();if(!ll(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-ig(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!sK(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aO(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,r;let o,a,s,l=t.get();i[e]=(n={min:l,max:l}
9,r=this.constraints[e],o=.5,a=ax(n),(s=ax(r))>a?o=np(r.min,r.max-a,n.min):a>s&&(o=np(n.min,n.max-s,r.min)),na(0,1,o))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),aO(t=>{if(!ll(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(ig(r,o,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;lo.set(this.visualElement,this);let t=this.visualElement.current,n=s2(t,"pointerdown",e=>{let{drag:n,dragListener:i=!0}=this.getProps(),r=e.target,o=r!==t&&(ou.has(r.tagName)||!0===r.isContentEditable);n&&i&&!o&&this.start(e)}),i=()=>{var n,i,r;let o,a,{dragConstraints:s}=this.getProps();sK(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,i=s.current,o=o$(n,ls(r=()=>this.scalePositionWithinConstraints())),a=o$(i,ls(r)),e=()=>{o(),a()}))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),nL.read(i);let a=aG(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aO(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function ls(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ll(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class ld extends oW{constructor(e){super(e),this.removeGroupControls=nh,this.removeListeners=nh,this.controls=new la(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nh}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let lu=e=>(t,n)=>{e&&nL.update(()=>e(t,n),!1,!0)};class lc extends oW{constructor(){super(...arguments),this.removePointerDownListener=nh}onPointerDown(e){this.session=new s6(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s3(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:lu(e),onStart:lu(t),onMove:lu(n),onEnd:(e,t)=>{delete this.session,i&&nL.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=s2(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let lh=!1;class lf extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),lh&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),aQ.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),lh=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||nL.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),or.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;lh=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function lp(e){let[t,n]=sE(),i=(0,b.useContext)(ne);return(0,g.jsx)(lf,{...e,layoutGroup:i,switchLayoutGroup:(0,b.useContext)(sq),isPresent:t,safeToRemove:n})}function lm(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&nL.postRender(()=>r(t,s1(t)))}class lg extends oW{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,r,o]=oa(e,n);
9return i.forEach(e=>{let n=!1,i=!1,o,a=t=>{o&&(o(t),o=void 0),e.removeEventListener("pointerleave",l)},s=e=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(n){i=!0;return}a(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||oo.x||oo.y)return;i=!1;let a=t(e,n);"function"==typeof a&&(o=a,e.addEventListener("pointerleave",l,r))},r),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,r),window.addEventListener("pointercancel",s,r)},r)}),o}(e,(e,t)=>(lm(this.node,t,"Start"),e=>lm(this.node,e,"End"))))}unmount(){}}class lb extends oW{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nf(aG(this.node.current,"focus",()=>this.onFocus()),aG(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ly(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&nL.postRender(()=>r(t,s1(t)))}class lv extends oW{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[i,r,o]=oa(e,n),a=e=>{let i=e.currentTarget;if(!op(e)||om.has(e))return;oc.add(i),n.stopPropagation&&om.add(e);let o=t(i,e),a={...r,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",d,a),oc.has(i)&&oc.delete(i),op(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{s(e,i===window||i===document||n.useGlobalTarget||os(i,e.target))},d=e=>{s(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",d,a)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),oi(e)&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let i=oh(()=>{if(oc.has(n))return;of(n,"down");let e=oh(()=>{of(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>of(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)})(e,r)),od.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ly(this.node,t,"Start"),(e,{success:t})=>ly(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let lw=new WeakMap,lx=new WeakMap,lk=e=>{let t=lw.get(e.target);t&&t(e)},lS=e=>{e.forEach(lk)},l$={some:0,all:1};class lR extends oW{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:a}=n,s={root:i?i.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:l$[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=t?n:i;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;lx.has(n)||lx.set(n,{});let i=lx.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(lS,{root:e,...t})),i[r]}(s),lw.set(e,l),t.observe(e),()=>{lw.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let lT=function(e,t){if(typeof Proxy>"u")return sZ;let n=new Map,i=(n,i)=>sZ(n,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,sZ(o,void 0,e,t)),n.get(o))})}({animation:{Feature:sJ},exit:{Feature:s0},inView:{Feature:lR},tap:{Feature:lv},focus:{Feature:lb},hover:{Feature:lg},pan:{Feature:lc},drag:{Feature:ld,ProjectionNode:sw,MeasureLayout:lp},layout:{ProjectionNode:sw,MeasureLayout:lp}},(e,t)=>t.isSVG??sW(e)?new ac(t):new ai(t,{allowProjection:e!==b.Fragment}));var lE,lC,lA,l_,lj,lM,lI=[],lP="ResizeObserver loop completed with undelivered notifications.",lV=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:lP}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=lP),window.dispatchEvent(e)};(lz=lM||(lM={})).BORDER_BOX="border-box",lz.CONTENT_BOX="content-box",lz.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var lz,lL,lN=function(e){return Object.freeze(e)},lO=function(e,t){this.inlineSize=e,this.blockSize=t,lN(this)},lD=function(){function e(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,lN(this)}return e.prototype.toJSON=function(){var e=this.x,t=this.y,n=this.top,i=this.right,r=this.bottom,o=this.left;return{x:e,y:t,top:n,right:i,bottom:r,left:o,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),lB=function(e){return e instanceof SVGElement&&"getBBox"in e},lF=function(e){if(lB(e)){var t=e.getBBox(),n=t.width,i=t.height;return!n&&!i}var r=e.offsetWidth,o=e.offsetHeight;return!(r||o||e.getClientRects().length)},lH=function(e){if(e instanceof Element)return!0;var t,n=null==(t=e?.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},lW=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;
9case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},lU="u">typeof window?window:{},lY=new WeakMap,lX=/auto|scroll/,lG=/^tb|vertical/,lq=/msie|trident/i.test(lU.navigator&&lU.navigator.userAgent),lK=function(e){return parseFloat(e||"0")},lZ=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new lO((n?t:e)||0,(n?e:t)||0)},lJ=lN({devicePixelContentBoxSize:lZ(),borderBoxSize:lZ(),contentBoxSize:lZ(),contentRect:new lD(0,0,0,0)}),lQ=function(e,t){if(void 0===t&&(t=!1),lY.has(e)&&!t)return lY.get(e);if(lF(e))return lY.set(e,lJ),lJ;var n=getComputedStyle(e),i=lB(e)&&e.ownerSVGElement&&e.getBBox(),r=!lq&&"border-box"===n.boxSizing,o=lG.test(n.writingMode||""),a=!i&&lX.test(n.overflowY||""),s=!i&&lX.test(n.overflowX||""),l=i?0:lK(n.paddingTop),d=i?0:lK(n.paddingRight),u=i?0:lK(n.paddingBottom),c=i?0:lK(n.paddingLeft),h=i?0:lK(n.borderTopWidth),f=i?0:lK(n.borderRightWidth),p=i?0:lK(n.borderBottomWidth),m=i?0:lK(n.borderLeftWidth),g=c+d,b=l+u,y=m+f,v=h+p,w=s?e.offsetHeight-v-e.clientHeight:0,x=a?e.offsetWidth-y-e.clientWidth:0,k=i?i.width:lK(n.width)-(r?g+y:0)-x,S=i?i.height:lK(n.height)-(r?b+v:0)-w,$=k+g+x+y,R=S+b+w+v,T=lN({devicePixelContentBoxSize:lZ(Math.round(k*devicePixelRatio),Math.round(S*devicePixelRatio),o),borderBoxSize:lZ($,R,o),contentBoxSize:lZ(k,S,o),contentRect:new lD(c,l,k,S)});return lY.set(e,T),T},l0=function(e,t,n){var i=lQ(e,n),r=i.borderBoxSize,o=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case lM.DEVICE_PIXEL_CONTENT_BOX:return a;case lM.BORDER_BOX:return r;default:return o}},l1=function(e){var t=lQ(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=lN([t.borderBoxSize]),this.contentBoxSize=lN([t.contentBoxSize]),this.devicePixelContentBoxSize=lN([t.devicePixelContentBoxSize])},l2=function(e){if(lF(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},l3=function(){var e=1/0,t=[];lI.forEach(function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach(function(t){var n=new l1(t.target),r=l2(t.target);i.push(n),t.lastReportedSize=l0(t.target,t.observedBox),r<e&&(e=r)}),t.push(function(){n.callback.call(n.observer,i,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},l5=function(e){lI.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(l2(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},l4=function(){var e=0;for(l5(0);lI.some(function(e){return e.activeTargets.length>0});)l5(e=l3());return lI.some(function(e){return e.skippedTargets.length>0})&&lV(),e>0},l6=[],l7=function(e){if(!lL){var t=0,n=document.createTextNode("");new MutationObserver(function(){return l6.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),lL=function(){n.textContent="".concat(t?t--:t++)}}l6.push(e),lL()},l9=function(e){l7(function(){requestAnimationFrame(e)})},l8=0,de={attributes:!0,characterData:!0,childList:!0,subtree:!0},dt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],dn=function(e){return void 0===e&&(e=0),Date.now()+e},di=!1,dr=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!di){di=!0;var n=dn(e);l9(function(){var i=!1;try{i=l4()}finally{if(di=!1,e=n-dn(),!l8)return;i?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,de)};document.body?t():lU.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dt.forEach(function(t){return lU.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),dt.forEach(function(t){return lU.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),da=function(e){!l8&&e>0&&dr.start(),(l8+=e)||dr.stop()},ds=function(){function e(e,t){this.target=e,this.observedBox=t||lM.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=l0(this.target,this.observedBox,!0);return lB(e=this.target)||lW(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),dl=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},dd=new WeakMap,du=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},dc=function(){function e(){}return e.connect=function(e,t){var n=new dl(e,t);dd.set(e,n)},e.observe=function(e,t,n){var i=dd.get(e),r=0===i.observationTargets.length;0>du(i.observationTargets,t)&&(r&&lI.push(i),i.observationTargets.push(new ds(t,n&&n.box)),da(1),dr.schedule())},e.unobserve=function(e,t){var n=dd.get(e),i=du(n.observationTargets,t),r=1===n.observationTargets.length;i>=0&&(r&&lI.splice(lI.indexOf(n),1),n.observationTargets.splice(i,1),da(-1))},e.disconnect=function(e){var t=this,n=dd.get(e);
9n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),dh=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");dc.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lH(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");dc.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lH(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");dc.unobserve(this,e)},e.prototype.disconnect=function(){dc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();let df=b.createContext(!0);function dp(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}function dm(e){let t=b.useRef(dp);return b.useInsertionEffect(()=>{t.current=e},[e]),(...e)=>((()=>{try{return b.use(df)}catch{return!1}})()&&dp(),(0,t.current)(...e))}p=void 0,u={color:{base:function(e){let t={};for(let n of Q)t[n]=function(e,t){let n=ef(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:E.reduce((e,t)=>({...e,[t]:ef({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:ee.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(d=ef(ec,p?.color)),button:function(e){let t={};for(let n of en)t[n]=function(e,t){let n={};for(let i of ee)n[i]=function(e,t,n){let i={};for(let r of et)i[r]=function(e,t,n,i){let r=ef(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),o=r._hue||e?.base?.[t]?._hue;return{...r,_hue:o,avatar:E.reduce((e,t)=>({...e,[t]:ef({_hue:t},r.avatar?.["*"],r.avatar?.[t])}),{}),badge:ee.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...r.badge?.["*"],...r.badge?.[n]}}),{})}}(e,n,t,r);return i}(e,t,i);return n}(e,n);return t}(d),input:function(e){let t={};for(let n of ei)t[n]=function(e,t){let n={};for(let i of er)n[i]=function(e,t,n){let i=ef(e?.input?.["*"]?.["*"],e?.
9input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),r=i._hue||e?.input?.[t]?._hue;return{...i,_hue:r}}(e,t,i);return n}(e,n);return t}(d),selectable:function(e){let t={};for(let n of ee)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of et)n[i]=function(e,t,n){let i=ef(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),r=i._hue||e?.base?.[t]?._hue;return{...i,_hue:r,avatar:E.reduce((e,t)=>({...e,[t]:ef({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:ee.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||r,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(d),syntax:d.syntax}},U(c={},"light",()=>em({scheme:"light"},u)),U(c,"dark",()=>em({scheme:"dark"},u)),q({_version:2,avatar:_,button:j,card:M,color:(l=c,U(s={},"light",()=>ej(A,l.light)),U(s,"dark",()=>ej(A,l.dark)),s),container:[320,640,960,1280,1600,1920],font:{code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},input:P,layer:I,media:[360,600,900,1200,1800,2400],radius:[0,1,3,6,9,12,21],shadow:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:[0,4,8,12,20,32,52,84,136,220],style:{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}});let dg=[],db={},dy={initial:{scale:.97,willChange:"transform"},hidden:{opacity:0}
9,visible:{opacity:1,transition:{when:"beforeChildren",duration:.1}},scaleIn:{scale:1},scaleOut:{scale:.97}},dv={hidden:{opacity:0},visible:{opacity:1}},dw={type:"spring",visualDuration:.2,bounce:.25};function dx(e){return e instanceof Node&&e.nodeType===Node.ELEMENT_NODE}function dk(e){return dx(e)&&"A"===e.nodeName}function dS(e){return dx(e)&&"BUTTON"===e.nodeName}function d$(e,t){return e.contains(t)||e===t}function dR(e){return 0===e?0:`${e/16}rem`}function dT(e,t,n){return(t?.map(n)||[]).map((t,n)=>0===n?t:{[`@media screen and (min-width: ${e[n-1]}px)`]:t})}function dE(e,t){return void 0===e?t||dg:Array.isArray(e)?e:[e]}function dC(e,t,n=dg){if(!Array.isArray(n))throw Error("the property must be array of numbers");if(0===n.length)return null;let{media:i,space:r}=F(e);return dT(i,n,e=>{var n;return n=dR(r[e]),t.reduce((e,t)=>(e[t]=n,e),{})})}function dA(e,t){let{$size:n,$weight:i}=t,{font:r,media:o}=F(t.theme),{family:a,sizes:s,weights:l}=r[e],d=i&&l[i]||l.regular,u=s[2],c={position:"relative",fontFamily:a,fontWeight:`${d}`,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"}};return n?[c,...dT(o,n,e=>(function(e){let{ascenderHeight:t,descenderHeight:n,fontSize:i,iconSize:r,letterSpacing:o,lineHeight:a}=e,s=t+n,l=a-s,d=2*Math.floor(1.125*i/2)+1;return{fontSize:dR(i),lineHeight:`calc(${a} / ${i})`,letterSpacing:dR(o),transform:`translateY(${dR(n)})`,"&:before":{marginTop:`calc(${dR(0-s)} - 1px)`},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:`calc(${d} / 16 * 1rem)`,margin:dR((l-d)/2)},"& [data-sanity-icon]":{fontSize:`calc(${r} / 16 * 1rem)`,margin:dR((l-r)/2)}}})(s[e]||u))]:(dA.warned||(console.warn("No size specified for responsive font",{fontKey:e,$size:n,props:t,base:c}),dA.warned=!0),[c])}function d_(e){let{media:t}=F(e.theme);return dT(t,e.$align,e=>({textAlign:e}))}let dj=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 dM(e,t){let n=Symbol.for(e);if(typeof document>"u"){let n=(0,b.createContext)(t);return n.displayName=e,n}return dj[n]=dj[n]||(0,b.createContext)(t),dj[n]}let dI=dM("@sanity/ui/context/theme",null);function dP(e){let t,n,i,r,o=eD.c(15),a=(0,b.useContext)(dI),{children:s}=e,l=e.scheme??(a?.scheme||"light"),d=e.theme??(a?.theme||null),u=e.tone??(a?.tone||"default");e:{let e;if(!d){t=null;break e}o[0]!==d||o[1]!==l||o[2]!==u?(e={version:0,theme:d,scheme:l,tone:u},o[0]=d,o[1]=l,o[2]=u,o[3]=e):e=o[3],t=e}let c=t;t:{let e;if(!d){n=null;break t}o[4]!==d||o[5]!==l||o[6]!==u?(e=function(e,t,n){var i,r,o,a,s;let l,d=function(e,t,n){let i=eO.get(t);if(!i)return;let r=i.get(n);if(r)return r.get(e)}(e,t,n);if(d)return d;let u=H(e)?q(e):e,c=H(e)?e:function(e){if(e.v2)return e.v2;let t=W.get(e);if(t)return t;let{avatar:n,button:i,color:r,container:o,fonts:a,input:s,layer:l,media:d,radius:u,shadows:c,space:h,styles:f}=e,p={_version:2,avatar:{..._,...n},button:{...j,...i},card:M,color:{light:{transparent:z(r.light.transparent),default:z(r.light.default),neutral:z(r.light.transparent),primary:z(r.light.primary),suggest:z(r.light.primary),positive:z(r.light.positive),caution:z(r.light.caution),critical:z(r.light.critical)},dark:{transparent:z(r.dark.transparent),default:z(r.dark.default),neutral:z(r.dark.transparent),primary:z(r.dark.primary),suggest:z(r.dark.primary),positive:z(r.dark.positive),caution:z(r.dark.caution),critical:z(r.dark.critical)}},container:o,font:a,input:{...P,...s,checkbox:{...P.checkbox,...s.checkbox},radio:{...P.radio,...s.radio},switch:{...P.switch,...s.switch}},layer:l??I,media:d,radius:u,shadow:c,space:h,style:f};return W.set(e,p),p}(e),h=u.layer||I,f=c.color[t]||c.color.light,p="neutral"in(i=f[n]||f.default).badge?i:{...i,badge:{...i.badge,neutral:i.badge.default,suggest:i.badge.primary},button:{bleed:{...i.button.bleed,neutral:i.button.bleed.default,suggest:i.button.bleed.primary},default:{...i.button.default,neutral:i.button.default.default,suggest:i.button.default.primary},ghost:{...i.button.ghost,neutral:i.button.ghost.default,suggest:i.button.ghost.primary}},selectable:{...i.selectable,neutral:i.selectable.default,suggest:i.selectable.primary}},m=c.layer||I,{color:g,...b}=u,y={...b,layer:h,v2:{...c,_resolved:!0,color:p,layer:m}};U(y,"color",()=>{let e=u.color[t]||u.color.light;return e[n]||e.default});let v={sanity:y};return r=e,o=t,a=n,s=v,eO.has(o)||eO.set(o,new Map),(l=eO.get(o)).has(a)||l.set(a,new WeakMap),l.get(a).set(r,s),v}(d,l,u),o[4]=d,o[5]=l,o[6]=u,o[7]=e):e=o[7],n=e}let h=n;if(!h){let e;return o[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,g.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'}),o[8]=e):e=o[8],e}return o[9]!==s||o[10]!==h?(i=(0,g.jsx)(y.NP,{theme:h,children:s}),o[9]=s,o[10]=h,o[11]=i):i=o[11],o[12]!==i||o[13]!==c?(r=(0,g.jsx)(dI.Provider,{value:c,children:i}),o[12]=i,o[13]=c,o[14]=r):r=o[14],r}function dV(){let e=(0,b.useContext)(dI);
9if(!e)throw Error("useRootTheme(): missing context value");return e}function dz(e){let t,n=eD.c(5),{children:i,scheme:r,tone:o}=e,a=dV(),s=r||a.scheme;return n[0]!==i||n[1]!==a.theme||n[2]!==s||n[3]!==o?(t=(0,g.jsx)(dP,{scheme:s,theme:a.theme,tone:o,children:i}),n[0]=i,n[1]=a.theme,n[2]=s,n[3]=o,n[4]=t):t=n[4],t}function dL(){let e,t=eD.c(2),n=(0,y.DP)();return t[0]!==n?(e=F(n),t[0]=n,t[1]=e):e=t[1],e}function dN(e){let{card:t,media:n}=F(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return dT(n,e.$border,e=>e?{"&&":{border:i}}:{"&&":{border:0}})}function dO(e){let{card:t,media:n}=F(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return dT(n,e.$borderTop,e=>e?{"&&":{borderTop:i}}:{"&&":{borderTop:0}})}function dD(e){let{card:t,media:n}=F(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return dT(n,e.$borderRight,e=>e?{"&&":{borderRight:i}}:{"&&":{borderRight:0}})}function dB(e){let{card:t,media:n}=F(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return dT(n,e.$borderBottom,e=>e?{"&&":{borderBottom:i}}:{"&&":{borderBottom:0}})}function dF(e){let{card:t,media:n}=F(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return dT(n,e.$borderLeft,e=>e?{"&&":{borderLeft:i}}:{"&&":{borderLeft:0}})}dP.displayName="ThemeProvider",dz.displayName="ThemeColorProvider";let dH={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},dW={content:"content-box",border:"border-box"},dU={stretch:"stretch",fill:"100%"};function dY(e){let{media:t}=F(e.theme);return dT(t,e.$display,e=>({"&:not([hidden])":{display:e}}))}function dX(e){let{media:t}=F(e.theme);return dT(t,e.$sizing,e=>({boxSizing:dW[e]}))}function dG(e){let{media:t}=F(e.theme);return dT(t,e.$height,e=>({height:dU[e]}))}function dq(e){let{media:t}=F(e.theme);return dT(t,e.$overflow,e=>({overflow:e}))}let dK={minWidth:0,minHeight:0};function dZ(){return[dK,dJ]}function dJ(e){let{media:t}=F(e.theme);return e.$flex?dT(t,e.$flex,e=>({flex:`${e}`})):dg}let dQ={"&&:not([hidden])":{display:"flex"}};function d0(e){let{media:t}=F(e.theme);return dT(t,e.$align,e=>({alignItems:e}))}function d1(e){let{media:t,space:n}=F(e.theme);return dT(t,e.$gap,e=>({gap:e?dR(n[e]):void 0}))}function d2(e){let{media:t}=F(e.theme);return dT(t,e.$wrap,e=>({flexWrap:e}))}function d3(e){let{media:t}=F(e.theme);return dT(t,e.$justify,e=>({justifyContent:e}))}function d5(e){let{media:t}=F(e.theme);return dT(t,e.$direction,e=>({flexDirection:e}))}function d4(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function d6(e){let{base:t,border:n,focusRing:i}=e,r=i.offset+i.width,o=0-i.offset,a=t?t.bg:"var(--card-bg-color)";return[o>0&&`inset 0 0 0 ${o}px var(--card-focus-ring-color)`,n&&d4(n),o<0&&`0 0 0 ${0-o}px ${a}`,r>0&&`0 0 0 ${r}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}let d7={auto:"auto",full:"1 / -1"},d9={auto:"auto",full:"1 / -1"};function d8(e){let{media:t}=F(e.theme);return dT(t,e.$row,e=>"number"==typeof e?{gridRow:`span ${e} / span ${e}`}:{gridRow:d7[e]})}function ue(e){let{media:t}=F(e.theme);return dT(t,e.$rowStart,e=>({gridRowStart:`${e}`}))}function ut(e){let{media:t}=F(e.theme);return dT(t,e.$rowEnd,e=>({gridRowEnd:`${e}`}))}function un(e){let{media:t}=F(e.theme);return dT(t,e.$column,e=>"number"==typeof e?{gridColumn:`span ${e} / span ${e}`}:{gridColumn:d9[e]})}function ui(e){let{media:t}=F(e.theme);return dT(t,e.$columnStart,e=>({gridColumnStart:`${e}`}))}function ur(e){let{media:t}=F(e.theme);return dT(t,e.$columnEnd,e=>({gridColumnEnd:`${e}`}))}let uo={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},ua={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},us={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};function ul(e){let{media:t}=F(e.theme);return dT(t,e.$autoFlow,e=>({gridAutoFlow:e}))}function ud(e){let{media:t}=F(e.theme);return dT(t,e.$autoRows,e=>({gridAutoRows:e&&us[e]}))}function uu(e){let{media:t}=F(e.theme);return dT(t,e.$autoCols,e=>({gridAutoColumns:e&&ua[e]}))}function uc(e){let{media:t}=F(e.theme);return dT(t,e.$columns,e=>({gridTemplateColumns:e&&`repeat(${e},minmax(0,1fr));`}))}function uh(e){let{media:t}=F(e.theme);return dT(t,e.$rows,e=>({gridTemplateRows:e&&`repeat(${e},minmax(0,1fr));`}))}
9function uf(e){let{media:t,space:n}=F(e.theme);return dT(t,e.$gap,e=>({gridGap:e?dR(n[e]):void 0}))}function up(e){let{media:t,space:n}=F(e.theme);return dT(t,e.$gapX,e=>({columnGap:e?dR(n[e]):void 0}))}function um(e){let{media:t,space:n}=F(e.theme);return dT(t,e.$gapY,e=>({rowGap:e?dR(n[e]):void 0}))}function ug(e){let{$fontSize:t,$iconLeft:n,$iconRight:i,$padding:r,$space:o}=e,{font:a,media:s,space:l}=F(e.theme),d=Math.max(r.length,o.length,t.length),u=[],c=[],h=[];for(let e=0;e<d;e+=1)h[e]=void 0===t[e]?h[e-1]:t[e],u[e]=void 0===r[e]?u[e-1]:r[e],c[e]=void 0===o[e]?c[e-1]:o[e];return dT(s,u,(e,t)=>{let r=a.text.sizes[h[t]]||a.text.sizes[2],o=r.lineHeight-r.ascenderHeight-r.descenderHeight,s=l[u[t]],d=l[c[t]],f={paddingTop:dR(s-r.ascenderHeight),paddingRight:dR(s),paddingBottom:dR(s-r.descenderHeight),paddingLeft:dR(s)};return i&&(f.paddingRight=dR(s+o+d)),n&&(f.paddingLeft=dR(s+o+d)),f})}function ub(e){return ug({...e,$iconRight:!0})}let uy=(0,y.AH)`
10  &:not([hidden]) {
11    display: flex;
12  }
13
14  align-items: center;
15`;function uv(){return uy}function uw(e){let{$scheme:t,$tone:n,$weight:i}=e,{color:r,font:o}=F(e.theme);return(0,y.AH)`
16    appearance: none;
17    background: none;
18    border: 0;
19    border-radius: 0;
20    outline: none;
21    width: 100%;
22    box-sizing: border-box;
23    font-family: ${o.text.family};
24    font-weight: ${i&&o.text.weights[i]||o.text.weights.regular};
25    margin: 0;
26    position: relative;
27    z-index: 1;
28    display: block;
29
30    /* NOTE: This is a hack to disable Chrome’s autofill styles */
31    &:-webkit-autofill,
32    &:-webkit-autofill:hover,
33    &:-webkit-autofill:focus,
34    &:-webkit-autofill:active {
35      -webkit-text-fill-color: var(--input-fg-color) !important;
36      transition: background-color 5000s;
37      transition-delay: 86400s /* 24h */;
38    }
39
40    /* &:is(textarea) */
41    &[data-as='textarea'] {
42      resize: none;
43    }
44
45    color: var(--input-fg-color);
46
47    &::placeholder {
48      color: var(--input-placeholder-color);
49    }
50
51    &[data-scheme='${t}'][data-tone='${n}'] {
52      --input-fg-color: ${r.input.default.enabled.fg};
53      --input-placeholder-color: ${r.input.default.enabled.placeholder};
54
55      /* enabled */
56      &:not(:invalid):not(:disabled):not(:read-only) {
57        --input-fg-color: ${r.input.default.enabled.fg};
58        --input-placeholder-color: ${r.input.default.enabled.placeholder};
59      }
60
61      /* disabled */
62      &:not(:invalid):disabled {
63        --input-fg-color: ${r.input.default.disabled.fg};
64        --input-placeholder-color: ${r.input.default.disabled.placeholder};
65      }
66
67      /* invalid */
68      &:invalid {
69        --input-fg-color: ${r.input.invalid.enabled.fg};
70        --input-placeholder-color: ${r.input.invalid.enabled.placeholder};
71      }
72
73      /* readOnly */
74      &:read-only {
75        --input-fg-color: ${r.input.default.readOnly.fg};
76        --input-placeholder-color: ${r.input.default.readOnly.placeholder};
77      }
78    }
79  `}function ux(e){let{font:t,media:n}=F(e.theme);return dT(n,e.$fontSize,e=>{let n=t.text.sizes[e]||t.text.sizes[2];return{fontSize:dR(n.fontSize),lineHeight:`${n.lineHeight/n.fontSize}`}})}function uk(e){let{$hasPrefix:t,$hasSuffix:n,$scheme:i,$tone:r,$unstableDisableFocusRing:o}=e,{color:a,input:s}=F(e.theme);return(0,y.AH)`
80    --input-box-shadow: none;
81
82    position: absolute;
83    top: 0;
84    left: 0;
85    right: 0;
86    bottom: 0;
87    display: block;
88    pointer-events: none;
89    z-index: 0;
90
91    background-color: var(--card-bg-color);
92    box-shadow: var(--input-box-shadow);
93
94    border-top-left-radius: ${t?0:void 0};
95    border-bottom-left-radius: ${t?0:void 0};
96    border-top-right-radius: ${n?0:void 0};
97    border-bottom-right-radius: ${n?0:void 0};
98
99    &[data-scheme='${i}'][data-tone='${r}'] {
100      --card-bg-color: ${a.input.default.enabled.bg};
101      --card-fg-color: ${a.input.default.enabled.fg};
102
103      /* enabled */
104      *:not(:disabled) + &[data-border] {
105        --input-box-shadow: ${d4({color:a.input.default.enabled.border,width:s.border.width})};
106      }
107
108      /* invalid */
109      *:not(:disabled):invalid + & {
110        --card-bg-color: ${a.input.invalid.enabled.bg};
111        --card-fg-color: ${a.input.invalid.enabled.fg};
112
113        &[data-border] {
114          --input-box-shadow: ${d4({color:a.input.invalid.enabled.border,width:s.border.width})};
115        }
116      }
117
118      /* focused */
119      *:not(:disabled):focus + & {
120        &[data-border] {
121          --input-box-shadow: ${o?void 0:d6({border:{color:a.input.default.enabled.border,width:s.border.width},focusRing:s.text.focusRing})};
122        }
123
124        &:not([data-border]) {
125          --input-box-shadow: ${o?void 0:d6({focusRing:s.text.focusRing})};
126        }
127      }
128
129      /* disabled */
130      *:not(:invalid):disabled + & {
131        --card-bg-color: ${a.input.default.disabled.bg} !important;
132        --card-fg-color: ${a.input.default.disabled.fg} !important;
133        --card-icon-color: ${a.input.default.disabled.fg} !important;
134
135        &[data-border] {
136          --input-box-shadow: ${d4({color:a.input.default.disabled.border,width:s.border.width})};
137        }
138      }
139
140      *:invalid:disabled + & {
141        --card-bg-color: ${a.input.invalid.disabled.bg} !important;
142        --card-fg-color: ${a.input.invalid.disabled.fg} !important;
143        --card-icon-color: ${a.input.invalid.disabled.fg} !important;
144
145        &[data-border] {
146          --input-box-shadow: ${d4({color:a.input.invalid.disabled.border,width:s.border.width})};
147        }
148      }
149
150      /* readOnly */
151      *:not(:invalid):read-only + & {
152        --card-bg-color: ${a.input.default.readOnly.bg} !important;
153        --card-fg-color: ${a.input.default.readOnly.fg} !important;
154      }
155
156      *:invalid:read-only + & {
157        --card-bg-color: ${a.input.invalid.readOnly.bg} !important;
158        --card-fg-color: ${a.input.invalid.readOnly.fg} !important;
159      }
160
161      /* hovered */
162      @media (hover: hover) {
163        *:not(:disabled):not(:read-only):not(:invalid):hover + & {
164          --card-bg-color: ${a.input.default.hovered.bg};
165          --card-fg-color: ${a.input.default.hovered.fg};
166        }
167
168        *:invalid:not(:disabled):not(:read-only):hover + & {
169          --card-bg-color: ${a.input.invalid.hovered.bg};
170          --card-fg-color: ${a.input.invalid.hovered.fg};
171        }
172
173        *:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border] {
174          --input-box-shadow: ${d4({color:a.input.default.hovered.border,width:s.border.width})};
175        }
176
177        *:invalid:not(:disabled):not(:read-only):not(:focus):hover + &[data-border] {
178          --input-box-shadow: ${d4({color:a.input.invalid.hovered.border,width:s.border.width})};
179        }
180      }
181    }
182  `}function uS(e){let{theme:t}=e;return[dC(t,["padding"],e.$padding),dC(t,["paddingLeft","paddingRight"],e.$paddingX),dC(t,["paddingTop","paddingBottom"],e.$paddingY),dC(t,["paddingTop"],e.$paddingTop),dC(t,["paddingRight"],e.$paddingRight),dC(t,["paddingBottom"],e.$paddingBottom),dC(t,["paddingLeft"],e.$paddingLeft)].filter(Boolean)}function u$(e){let{media:t,radius:n}=F(e.theme);return dT(t,e.$radius,e=>{let t=0;return"number"==typeof e&&(t=dR(n[e])),"full"===e&&(t="9999px"),{borderRadius:t}})}function uR(e,t){return`${e.map(dR).join(" ")} ${t}`}let uT=y.I4.span.withConfig({displayName:"SpanWithTextOverflow",componentId:"sc-ol2i3b-0"})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`,uE=y.I4.div.withConfig({displayName:"StyledLabel",componentId:"sc-1luap7z-0"})(function(e){return dA("label",e)},d_,function(e){let{$accent:t,$muted:n}=e,{font:i}=F(e.theme);return(0,y.AH)`
183    text-transform: uppercase;
184
185    ${t&&(0,y.AH)`
186      color: var(--card-accent-fg-color);
187    `}
188
189    ${n&&(0,y.AH)`
190      color: var(--card-muted-fg-color);
191    `}
192
193    & code {
194      font-family: ${i.code.family};
195      border-radius: 1px;
196    }
197
198    & a {
199      text-decoration: none;
200      border-radius: 1px;
201    }
202
203    & svg {
204      /* Certain popular CSS libraries changes the defaults for SVG display */
205      /* Make sure SVGs are rendered as inline elements */
206      display: inline;
207    }
208
209    & [data-sanity-icon] {
210      vertical-align: baseline;
211    }
212  `}),uC=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f=eD.c(26);f[0]!==e?({accent:n,align:i,children:r,muted:a,size:s,textOverflow:l,weight:d,...o}=e,f[0]=e,f[1]=n,f[2]=i,f[3]=r,f[4]=o,f[5]=a,f[6]=s,f[7]=l,f[8]=d):(n=f[1],i=f[2],r=f[3],o=f[4],a=f[5],s=f[6],l=f[7],d=f[8]);let p=void 0!==a&&a,m=void 0===s?2:s,b=r;if("ellipsis"===l){let e;f[9]!==b?(e=(0,g.jsx)(uT,{children:b}),f[9]=b,f[10]=e):e=f[10],b=e}else{let e;f[11]!==b?(e=(0,g.jsx)("span",{children:b}),f[11]=b,f[12]=e):e=f[12],b=e}return f[13]!==i?(u=dE(i),f[13]=i,f[14]=u):u=f[14],f[15]!==m?(c=dE(m),f[15]=m,f[16]=c):c=f[16],f[17]!==n||f[18]!==b||f[19]!==p||f[20]!==t||f[21]!==o||f[22]!==u||f[23]!==c||f[24]!==d?(h=(0,g.jsx)(uE,{"data-ui":"Label",...o,$accent:n,$align:u,$muted:p,$size:c,$weight:d,ref:t,children:b}),f[17]=n,f[18]=b,f[19]=p,f[20]=t,f[21]=o,f[22]=u,f[23]=c,f[24]=d,f[25]=h):h=f[25],h});uC.displayName="ForwardRef(Label)";let uA=y.I4.div.withConfig({displayName:"StyledAvatar",componentId:"sc-1rj7kl0-0"})(function(e){let{avatar:t,media:n}=F(e.theme);return dT(n,e.$size,e=>{let n=t.sizes[e]||t.sizes[0];return{width:dR(n.size),height:dR(n.size),borderRadius:dR(n.size/2),"&>svg":{width:dR(n.size),height:dR(n.size),borderRadius:dR(n.size/2)}}})},function(e){let{$color:t}=e,{avatar:n}=F(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"]':{o
212pacity:"0.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:d6({focusRing:n.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:"none"}}}}),u_=y.I4.div.withConfig({displayName:"Arrow",componentId:"sc-1rj7kl0-1"})(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"},"[data-arrow-position='top'] > &":{opacity:"1",transform:"rotate(0deg)"},"[data-arrow-position='bottom'] > &":{opacity:"1",transform:"rotate(-180deg)"}}}),uj=y.I4.ellipse.withConfig({displayName:"BgStroke",componentId:"sc-1rj7kl0-2"})(function(){return{strokeWidth:"4px",stroke:"var(--card-bg-color)"}}),uM=y.I4.ellipse.withConfig({displayName:"Stroke",componentId:"sc-1rj7kl0-3"})(function(){return{strokeWidth:"2px",stroke:"var(--avatar-bg-color)",'[data-status="editing"] &':{strokeDasharray:"2 4",strokeLinecap:"round"}}}),uI=y.I4.div.withConfig({displayName:"Initials",componentId:"sc-1rj7kl0-4"})(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"}}}),uP=(0,y.I4)(uC).withConfig({displayName:"InitialsLabel",componentId:"sc-1rj7kl0-5"})({color:"inherit"}),uV=y.I4.svg.withConfig({displayName:"AvatarImage",componentId:"sc-1rj7kl0-6"})(function(){return{position:"relative"}});function uz(e){return 1===e?1:2===e?3:5*(3===e)}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$=eD.c(46);$[0]!==e?({__unstable_hideInnerStroke:n,as:o,color:u,src:d,title:f,initials:a,onImageLoadError:s,arrowPosition:r,animateArrowFrom:i,status:c,size:h,...l}=e,$[0]=e,$[1]=n,$[2]=i,$[3]=r,$[4]=o,$[5]=a,$[6]=s,$[7]=l,$[8]=d,$[9]=u,$[10]=c,$[11]=h,$[12]=f):(n=$[1],i=$[2],r=$[3],o=$[4],a=$[5],s=$[6],l=$[7],d=$[8],u=$[9],c=$[10],h=$[11],f=$[12]);let R=void 0===u?"gray":u,T=void 0===c?"online":c,E=void 0===h?1:h,{avatar:C}=dL(),A=eW.isValidElementType(o)?o:"div",_=dE(E),j=(C.sizes[_[0]]||C.sizes[0]).size,M=j/2,I=(0,b.useId)(),[P,V]=(0,b.useState)(i||r||"inside"),[z,L]=(0,b.useState)(!1),N=`avatar-image-${I}`;$[13]!==P||$[14]!==r?(p=()=>{if(P===r)return;let e=requestAnimationFrame(()=>V(r));return()=>cancelAnimationFrame(e)},m=[P,r],$[13]=P,$[14]=r,$[15]=p,$[16]=m):(p=$[15],m=$[16]),(0,b.useEffect)(p,m),$[17]!==d?(y=()=>{d&&L(!1)},v=[d],$[17]=d,$[18]=y,$[19]=v):(y=$[18],v=$[19]),(0,b.useEffect)(y,v),$[20]!==s?(w=()=>{L(!0),s&&s(Error("Avatar: the image failed to load"))},$[20]=s,$[21]=w):w=$[21];let O=w,D="string"==typeof A?A:void 0;$[22]!==R?(x=(0,g.jsx)(u_,{children:(0,g.jsx)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",children:(0,g.jsx)("path",{d:"M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",fill:R})})}),$[22]=R,$[23]=x):x=$[23],$[24]!==n||$[25]!==M||$[26]!==j||$[27]!==O||$[28]!==z||$[29]!==N||$[30]!==d?(k=!z&&d&&(0,g.jsxs)(uV,{viewBox:`0 0 ${j} ${j}`,fill:"none",children:[(0,g.jsx)("defs",{children:(0,g.jsx)("pattern",{id:N,patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,g.jsx)("image",{href:d,width:"1",height:"1",onError:O})})}),(0,g.jsx)("circle",{cx:M,cy:M,r:M,fill:`url(#${N})`}),!n&&(0,g.jsx)(uj,{cx:M,cy:M,rx:M,ry:M,vectorEffect:"non-scaling-stroke"}),(0,g.jsx)(uM,{cx:M,cy:M,rx:M,ry:M,vectorEffect:"non-scaling-stroke"})]}),$[24]=n,$[25]=M,$[26]=j,$[27]=O,$[28]=z,$[29]=N,$[30]=d,$[31]=k):k=$[31];let B=(z||!d)&&a&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(uI,{children:(0,g.jsx)(uP,{forwardedAs:"span",size:_.map(uz),weight:"medium",children:a})})});return $[32]!==uA||$[33]!==P||$[34]!==A||$[35]!==R||$[36]!==t||$[37]!==l||$[38]!==_||$[39]!==T||$[40]!==x||$[41]!==k||$[42]!==B||$[43]!==D||$[44]!==f?(S=(0,g.jsxs)(uA,{as:A,"data-as":D,"data-ui":"Avatar",...l,$color:R,$size:_,"aria-label":f,"data-arrow-position":P,"data-status":T,ref:t,title:f,children:[x,k,B]}),$[32]=uA,$[33]=P,$[34]=A,$[35]=R,$[36]=t,$[37]=l,$[38]=_,$[39]=T,$[40]=x,$[41]=k,$[42]=B,$[43]=D,$[44]=f,$[45]=S):S=$[45],S}).displayName="ForwardRef(Avatar)";let uL=y.I4.div.withConfig({displayName:"StyledAvatarCounter",componentId:"sc-1ydx86y-0"})(function(e){let{avatar:t,media:n}=F(e.theme);return dT(n,e.$size,e=>{let n=t.sizes[e];return n?{borderRadius:dR(n.size/2),minWidth:dR(n.size),height:dR(n.size)}:db})},function(e){let{space:t}=F(e.theme);return(0,y.AH)`
213    align-items: center;
214    justify-content: center;
215    box-sizing: border-box;
216    user-select: none;
217    color: inherit;
218    color: var(--card-fg-color);
219    background: var(--card-bg-color);
220    box-shadow:
221      0 0 0 1px var(--card-bg-color),
222      inset 0 0 0 1px var(--card-hairline-hard-color);
223    padding: 0 ${dR(t[2])};
224
225    &:not([hidden]) {
226      display: flex;
227    }
228  `}),uN=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c=eD.c(20),{count:h,size:f}=e,p=void 0===f?1:f;if(c[0]!==t||c[1]!==p){let e=dE(p);i=uL,a=e,s="AvatarCounter",l=t,n=uC,r="span",o=e.map(uO),c[0]=t,c[1]=p,c[2]=n,c[3]=i,c[4]=r,c[5]=o,c[6]=a,c[7]=s,c[8]=l}else n=c[2],i=c[3],r=c[4],o=c[5],a=c[6],s=c[7],l=c[8];return c[9]!==n||c[10]!==h||c[11]!==r||c[12]!==o?(d=(0,g.jsx)(n,{as:r,size:o,weight:"medium",children:h}),c[9]=n,c[10]=h,c[11]=r,c[12]=o,c[13]=d):d=c[13],c[14]!==i||c[15]!==a||c[16]!==s||c[17]!==l||c[18]!==d?(u=(0,g.jsx)(i,{$size:a,"data-ui":s,ref:l,children:d}),c[14]=i,c[15]=a,c[16]=s,c[17]=l,c[18]=d,c[19]=u):u=c[19],u});function uO(e){return 1===e?1:2===e?3:5*(3===e)}uN.displayName="ForwardRef(AvatarCounter)";let uD=(0,y.AH)`
229  white-space: nowrap;
230
231  & > div {
232    vertical-align: top;
233
234    &:not([hidden]) {
235      display: inline-block;
236    }
237  }
238`,uB=y.I4.div.withConfig({displayName:"StyledAvatarStack",componentId:"sc-cysmbb-0"})(function(e){let{avatar:t,media:n}=F(e.theme);return dT(n,e.$size,e=>{let n=t.sizes[e];return n?{"& > div + div":{marginLeft:dR(n.distance)}}:db})},function(){return uD});(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m=eD.c(38);m[0]!==e?({children:n,maxLength:r,size:o,...i}=e,m[0]=e,m[1]=n,m[2]=i,m[3]=r,m[4]=o):(n=m[1],i=m[2],r=m[3],o=m[4]);let y=void 0===r?4:r,v=void 0===o?1:o;if(m[5]!==n||m[6]!==y||m[7]!==t||m[8]!==i||m[9]!==v){let e,r,o=b.Children.toArray(n).filter(b.isValidElement),p=Math.max(y,0);m[18]!==v?(e=dE(v),m[18]=v,m[19]=e):e=m[19];let w=e,x=o.length,k=x-(p-1),S=k>1?o.slice(k,x):o;a=uB,s="AvatarStack",l=i,d=t,u=w,m[20]!==x||m[21]!==w?(c=0===x&&(0,g.jsx)("div",{children:(0,g.jsx)(uN,{count:x,size:w})}),m[20]=x,m[21]=w,m[22]=c):c=m[22],m[23]!==k||m[24]!==x||m[25]!==w?(h=0!==x&&k>1&&(0,g.jsx)("div",{children:(0,g.jsx)(uN,{count:k,size:w})}),m[23]=k,m[24]=x,m[25]=w,m[26]=h):h=m[26],m[27]!==w?(r=(e,t)=>
238(0,g.jsx)("div",{children:(0,b.cloneElement)(e,{size:w})},String(t)),m[27]=w,m[28]=r):r=m[28],f=S.map(r),m[5]=n,m[6]=y,m[7]=t,m[8]=i,m[9]=v,m[10]=a,m[11]=s,m[12]=l,m[13]=d,m[14]=u,m[15]=c,m[16]=h,m[17]=f}else a=m[10],s=m[11],l=m[12],d=m[13],u=m[14],c=m[15],h=m[16],f=m[17];return m[29]!==a||m[30]!==s||m[31]!==l||m[32]!==d||m[33]!==u||m[34]!==c||m[35]!==h||m[36]!==f?(p=(0,g.jsxs)(a,{"data-ui":s,...l,ref:d,$size:u,children:[c,h,f]}),m[29]=a,m[30]=s,m[31]=l,m[32]=d,m[33]=u,m[34]=c,m[35]=h,m[36]=f,m[37]=p):p=m[37],p}).displayName="ForwardRef(AvatarStack)";let uF=y.I4.div.withConfig({displayName:"StyledBox",componentId:"sc-1hhky9f-0"})(function(){return dH},dZ,function(){return[dX,dG,dq,dY]},function(){return[d8,ue,ut,un,ui,ur]},function(e){let{theme:t}=e;return[dC(t,["margin"],e.$margin),dC(t,["marginLeft","marginRight"],e.$marginX),dC(t,["marginTop","marginBottom"],e.$marginY),dC(t,["marginTop"],e.$marginTop),dC(t,["marginRight"],e.$marginRight),dC(t,["marginBottom"],e.$marginBottom),dC(t,["marginLeft"],e.$marginLeft)].filter(Boolean)},uS),uH=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,b,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O,D,B,F,H,W,U,Y,X,G,q,K,Z,J,Q,ee,et,en,ei,er,eo,ea,es,el=eD.c(115);el[0]!==e?({as:M,gridColumn:d,column:n,gridColumnStart:c,columnStart:r,gridColumnEnd:u,columnEnd:i,display:I,flex:l,height:m,margin:P,marginX:x,marginY:k,marginTop:w,marginRight:v,marginBottom:b,marginLeft:y,overflow:S,padding:V,paddingX:C,paddingY:A,paddingTop:E,paddingRight:T,paddingBottom:$,paddingLeft:R,gridRow:h,row:o,gridRowStart:p,rowStart:s,gridRowEnd:f,rowEnd:a,sizing:j,..._}=e,el[0]=e,el[1]=n,el[2]=i,el[3]=r,el[4]=o,el[5]=a,el[6]=s,el[7]=l,el[8]=d,el[9]=u,el[10]=c,el[11]=h,el[12]=f,el[13]=p,el[14]=m,el[15]=b,el[16]=y,el[17]=v,el[18]=w,el[19]=x,el[20]=k,el[21]=S,el[22]=$,el[23]=R,el[24]=T,el[25]=E,el[26]=C,el[27]=A,el[28]=_,el[29]=j,el[30]=M,el[31]=I,el[32]=P,el[33]=V):(n=el[1],i=el[2],r=el[3],o=el[4],a=el[5],s=el[6],l=el[7],d=el[8],u=el[9],c=el[10],h=el[11],f=el[12],p=el[13],m=el[14],b=el[15],y=el[16],v=el[17],w=el[18],x=el[19],k=el[20],S=el[21],$=el[22],R=el[23],T=el[24],E=el[25],C=el[26],A=el[27],_=el[28],j=el[29],M=el[30],I=el[31],P=el[32],V=el[33]);let ed=void 0===M?"div":M,eu=void 0===I?"block":I,ec=void 0===P?0:P,eh=void 0===V?0:V,ef=void 0===d?n:d,ep=void 0===c?r:c,em=void 0===u?i:u,eg=void 0===h?o:h,eb=void 0===p?s:p,ey=void 0===f?a:f,ev="string"==typeof ed?ed:void 0;return el[34]!==ef?(z=dE(ef),el[34]=ef,el[35]=z):z=el[35],el[36]!==ep?(L=dE(ep),el[36]=ep,el[37]=L):L=el[37],el[38]!==em?(N=dE(em),el[38]=em,el[39]=N):N=el[39],el[40]!==eu?(O=dE(eu),el[40]=eu,el[41]=O):O=el[41],el[42]!==l?(D=dE(l),el[42]=l,el[43]=D):D=el[43],el[44]!==m?(B=dE(m),el[44]=m,el[45]=B):B=el[45],el[46]!==ec?(F=dE(ec),el[46]=ec,el[47]=F):F=el[47],el[48]!==x?(H=dE(x),el[48]=x,el[49]=H):H=el[49],el[50]!==k?(W=dE(k),el[50]=k,el[51]=W):W=el[51],el[52]!==w?(U=dE(w),el[52]=w,el[53]=U):U=el[53],el[54]!==v?(Y=dE(v),el[54]=v,el[55]=Y):Y=el[55],el[56]!==b?(X=dE(b),el[56]=b,el[57]=X):X=el[57],el[58]!==y?(G=dE(y),el[58]=y,el[59]=G):G=el[59],el[60]!==S?(q=dE(S),el[60]=S,el[61]=q):q=el[61],el[62]!==eh?(K=dE(eh),el[62]=eh,el[63]=K):K=el[63],el[64]!==C?(Z=dE(C),el[64]=C,el[65]=Z):Z=el[65],el[66]!==A?(J=dE(A),el[66]=A,el[67]=J):J=el[67],el[68]!==E?(Q=dE(E),el[68]=E,el[69]=Q):Q=el[69],el[70]!==T?(ee=dE(T),el[70]=T,el[71]=ee):ee=el[71],el[72]!==$?(et=dE($),el[72]=$,el[73]=et):et=el[73],el[74]!==R?(en=dE(R),el[74]=R,el[75]=en):en=el[75],el[76]!==eg?(ei=dE(eg),el[76]=eg,el[77]=ei):ei=el[77],el[78]!==eb?(er=dE(eb),el[78]=eb,el[79]=er):er=el[79],el[80]!==ey?(eo=dE(ey),el[80]=ey,el[81]=eo):eo=el[81],el[82]!==j?(ea=dE(j),el[82]=j,el[83]=ea):ea=el[83],el[84]!==ed||el[85]!==e.children||el[86]!==t||el[87]!==_||el[88]!==B||el[89]!==F||el[90]!==H||el[91]!==W||el[92]!==U||el[93]!==Y||el[94]!==X||el[95]!==G||el[96]!==q||el[97]!==K||el[98]!==Z||el[99]!==J||el[100]!==Q||el[101]!==ee||el[102]!==et||el[103]!==en||el[104]!==ei||el[105]!==er||el[106]!==eo||el[107]!==ea||el[108]!==ev||el[109]!==z||el[110]!==L||el[111]!==N||el[112]!==O||el[113]!==D?(es=(0,g.jsx)(uF,{"data-as":ev,"data-ui":"Box",..._,$column:z,$columnStart:L,$columnEnd:N,$display:O,$flex:D,$height:B,$margin:F,$marginX:H,$marginY:W,$marginTop:U,$marginRight:Y,$marginBottom:X,$marginLeft:G,$overflow:q,$padding:K,$paddingX:Z,$paddingY:J,$paddingTop:Q,$paddingRight:ee,$paddingBottom:et,$paddingLeft:en,$row:ei,$rowStart:er,$rowEnd:eo,$sizing:ea,as:ed,ref:t,children:e.children}),el[84]=ed,el[85]=e.children,el[86]=t,el[87]=_,el[88]=B,el[89]=F,el[90]=H,el[91]=W,el[92]=U,el[93]=Y,el[94]=X,el[95]=G,el[96]=q,el[97]=K,el[98]=Z,el[99]=J,el[100]=Q,el[101]=ee,el[102]=et,el[103]=en,el[104]=ei,el[105]=er,el[106]=eo,el[107]=ea,el[108]=ev,el[109]=z,el[110]=L,el[111]=N,el[112]=O,el[113]=D,el[114]=es):es=el[114],es});uH.displayName="ForwardRef(Box)";let uW=y.I4.div.withConfig({displayName:"StyledText",componentId:"sc-11ov82j-0"})(function(e){return dA("text",e)},d_,function(e){let{$accent:t,$muted:n}=e,{font:i}=F(e.theme);return(0,y.AH)`
239    color: var(--card-fg-color);
240
241    ${t&&(0,y.AH)`
242      color: var(--card-accent-fg-color);
243    `}
244
245    ${n&&(0,y.AH)`
246      color: var(--card-muted-fg-color);
247    `}
248
249    & code {
250      font-family: ${i.code.family};
251      border-radius: 1px;
252      background-color: var(--card-code-bg-color);
253      color: var(--card-code-fg-color);
254    }
255
256    & a {
257      text-decoration: none;
258      border-radius: 1px;
259      color: var(--card-link-color);
260      outline: none;
261
262      @media (hover: hover) {
263        &:hover {
264          text-decoration: underline;
265        }
266      }
267
268      &:focus {
269        box-shadow:
270          0 0 0 1px var(--card-bg-color),
271          0 0 0 3px var(--card-focus-ring-color);
272      }
273
274      &:focus:not(:focus-visible) {
275        box-shadow: none;
276      }
277    }
278
279    & strong {
280      font-weight: ${i.text.weights.bold};
281    }
282
283    & svg {
284      /* Certain popular CSS libraries changes the defaults for SVG display */
285      /* Make sure SVGs are rendered as inline elements */
286      display: inline;
287    }
288
289    & [data-sanity-icon] {
290      vertical-align: baseline;
291      color: var(--card-icon-color);
292
293      & path {
294        vector-effect: non-scaling-stroke !important;
295      }
296    }
297  `}),uU=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p=eD.c(26);p[0]!==e?({accent:o,align:n,children:i,muted:a,size:s,textOverflow:l,weight:d,...r}=e,p[0]=e,p[1]=n,p[2]=i,p[3]=r,p[4]=o,p[5]=a,p[6]=s,p[7]=l,p[8]=d):(n=p[1],i=p[2],r=p[3],o=p[4],a=p[5],s=p[6],l=p[7],d=p[8]);let m=void 0!==o&&o,b=void 0!==a&&a,y=void 0===s?2:s,v=i;if("ellipsis"===l){let e;p[9]!==v?(e=(0,g.jsx)(uT,{children:v}),p[9]=v,p[10]=e):e=p[10],v=e}return p[11]!==n?(u=dE(n),p[11]=n,p[12]=u):u=p[12],p[13]!==y?(c=dE(y),p[13]=y,p[14]=c):c=p[14],p[15]!==v?(h=(0,g.jsx)("span",{children:v}),p[15]=v,p[16]=h):h=p[16],p[17]!==m||p[18]!==b||p[19]!==t||p[20]!==r||p[21]!==u||p[22]!==c||p[23]!==h||p[24]!==d?(f=(0,g.jsx)(uW,{"data-ui":"Text",...r,$accent:m,$align:u,$muted:b,ref:t,$size:c,$weight:d,children:h}),p[17]=m,p[18]=b,p[19]=t,p[20]=r,p[21]=u,p[22]=c,p[23]=h,p[24]=d,p[25]=f):f=p[25],f});uU.displayName="ForwardRef(Text)";let uY=(0,y.I4)(uH).withConfig({displayName:"StyledBadge",componentId:"sc-5u140l-0"})(u$,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"}}});(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h=eD.c(21);if(h[0]!==e){let{children:t,fontSize:l,mode:d,padding:u,radius:c,tone:f,...p}=e;n=t,r=l,o=u,a=c,s=f,i=p,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=o,h[5]=a,h[6]=s}else n=h[1],i=h[2],r=h[3],o=h[4],a=h[5],s=h[6];let f=void 0===r?1:r,p=void 0===o?1:o,m=void 0===a?"full":a,b=void 0===s?"default":s;return h[7]!==m?(l=dE(m),h[7]=m,h[8]=l):l=h[8],h[9]!==p?(d=dE(p),h[9]=p,h[10]=d):d=h[10],h[11]!==n||h[12]!==f?(u=(0,g.jsx)(uU,{size:f,children:n}),h[11]=n,h[12]=f,h[13]=u):u=h[13],h[14]!==t||h[15]!==i||h[16]!==l||h[17]!==d||h[18]!==u||h[19]!==b?(c=(0,g.jsx)(uY,{"data-ui":"Badge",...i,$tone:b,$radius:l,padding:d,ref:t,children:u}),h[14]=t,h[15]=i,h[16]=l,h[17]=d,h[18]=u,h[19]=b,h[20]=c):c=h[20],c}).displayName="ForwardRef(Badge)";let uX=(0,y.I4)(uH).withConfig({displayName:"StyledFlex",componentId:"sc-oxesg3-0"})(dZ,function(){return[dQ,d0,d1,d2,d3,d5]}),uG=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m=eD.c(27);m[0]!==e?({align:n,as:i,direction:s,gap:r,justify:o,wrap:l,...a}=e,m[0]=e,m[1]=n,m[2]=i,m[3]=r,m[4]=o,m[5]=a,m[6]=s,m[7]=l):(n=m[1],i=m[2],r=m[3],o=m[4],a=m[5],s=m[6],l=m[7]);let b=void 0===s?"row":s;return m[8]!==n?(d=dE(n),m[8]=n,m[9]=d):d=m[9],m[10]!==b?(u=dE(b),m[10]=b,m[11]=u):u=m[11],m[12]!==r?(c=dE(r),m[12]=r,m[13]=c):c=m[13],m[14]!==o?(h=dE(o),m[14]=o,m[15]=h):h=m[15],m[16]!==l?(f=dE(l),m[16]=l,m[17]=f):f=m[17],m[18]!==i||m[19]!==t||m[20]!==a||m[21]!==d||m[22]!==u||m[23]!==c||m[24]!==h||m[25]!==f?(p=(0,g.jsx)(uX,{"data-ui":"Flex",...a,$align:d,$direction:u,$gap:c,$justify:h,$wrap:f,forwardedAs:i,ref:t}),m[18]=i,m[19]=t,m[20]=a,m[21]=d,m[22]=u,m[23]=c,m[24]=h,m[25]=f,m[26]=p):p=m[26],p});uG.displayName="ForwardRef(Flex)";let uq=(0,y.i7)`
298  from {
299    transform: rotate(0deg);
300  }
301
302  to {
303    transform: rotate(360deg);
304  }
305`,uK=(0,y.I4)(uU).withConfig({displayName:"StyledSpinner",componentId:"sc-124hnd0-0"})`& > span > svg{animation:${uq} 500ms linear infinite;}`,uZ=(0,b.forwardRef)(function(e,t){let n,i,r=eD.c(4);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,g.jsx)(eq,{}),r[0]=n):n=r[0],r[1]!==e||r[2]!==t?(i=(0,g.jsx)(uK,{"data-ui":"Spinner",...e,ref:t,children:n}),r[1]=e,r[2]=t,r[3]=i):i=r[3],i});function uJ(e,t,n=!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":n?`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 uQ(...e){return e.filter(Boolean).join(",")}uZ.displayName="ForwardRef(Spinner)";let u0=y.I4.button.withConfig({displayName:"StyledButton",componentId:"sc-aaekt4-0"})(u$,function(e){let{$width:t}=e,{style:n}=F(e.theme);return(0,y.AH)`
306    ${n?.button};
307
308    -webkit-font-smoothing: inherit;
309    appearance: none;
310    display: inline-flex;
311    align-items: center;
312    font: inherit;
313    border: 0;
314    outline: none;
315    user-select: none;
316    text-decoration: none;
317    border: 0;
318    box-sizing: border-box;
319    padding: 0;
320    margin: 0;
321    white-space: nowrap;
322    text-align: left;
323    position: relative;
324    vertical-align: top;
325
326    ${"fill"===t&&(0,y.AH)`
327      width: -moz-available;
328      width: -webkit-fill-available;
329      width: stretch;
330    `}
331
332    & > span {
333      display: block;
334      flex: 1;
335      min-width: 0;
336      border-radius: inherit;
337    }
338
339    &::-moz-focus-inner {
340      border: 0;
341      padding: 0;
342    }
343  `},function(e){let{$mode:t}=e,{button:n,color:i,style:r}=F(e.theme),o="ghost"===e.$mode,a=i.button[t]||i.button.default,s=a[e.$tone]||a.default,l={width:n.border.width,color:"var(--card-border-color)"},d;return[uJ(i,s.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:d4(l),'&:disabled, &[data-disabled="true"]':uJ(i,s.disabled),"&:not([data-disabled='true'])":{boxShadow:uQ(d4(l),o?d:void 0),"&:focus":{boxShadow:d6({base:i,border:{width:2,color:i.bg},focusRing:n.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:uQ(d4(l),o?d:void 0)},"@media (hover: hover)":{"&:hover":uJ(i,s.hovered),"&:active":uJ(i,s.pressed),"&[data-hovered]":uJ(i,s.hovered)},"&[data-selected]":uJ(i,s.pressed)}}
343,r?.button?.root].filter(Boolean)}),u1=y.I4.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;`,u2=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O,D,B,F,H,W,U,Y=eD.c(87);Y[0]!==e?({children:r,disabled:o,fontSize:y,icon:n,iconRight:i,justify:v,loading:s,mode:w,padding:x,paddingX:h,paddingY:f,paddingTop:c,paddingBottom:l,paddingLeft:d,paddingRight:u,radius:k,selected:m,gap:a,space:S,text:E,textAlign:C,textWeight:A,tone:$,type:R,muted:T,width:_,...p}=e,Y[0]=e,Y[1]=n,Y[2]=i,Y[3]=r,Y[4]=o,Y[5]=a,Y[6]=s,Y[7]=l,Y[8]=d,Y[9]=u,Y[10]=c,Y[11]=h,Y[12]=f,Y[13]=p,Y[14]=m,Y[15]=y,Y[16]=v,Y[17]=w,Y[18]=x,Y[19]=k,Y[20]=S,Y[21]=$,Y[22]=R,Y[23]=T,Y[24]=E,Y[25]=C,Y[26]=A,Y[27]=_):(n=Y[1],i=Y[2],r=Y[3],o=Y[4],a=Y[5],s=Y[6],l=Y[7],d=Y[8],u=Y[9],c=Y[10],h=Y[11],f=Y[12],p=Y[13],m=Y[14],y=Y[15],v=Y[16],w=Y[17],x=Y[18],k=Y[19],S=Y[20],$=Y[21],R=Y[22],T=Y[23],E=Y[24],C=Y[25],A=Y[26],_=Y[27]);let X=void 0===y?1:y,G=void 0===v?"center":v,q=void 0===w?"default":w,K=void 0===x?3:x,Z=void 0===k?2:k,J=void 0===S?3:S,Q=void 0===$?"default":$,ee=void 0===R?"button":R,et=void 0!==T&&T,{button:en}=dL();Y[28]!==G?(j=dE(G),Y[28]=G,Y[29]=j):j=Y[29];let ei=j;Y[30]!==K?(M=dE(K),Y[30]=K,Y[31]=M):M=Y[31];let er=M;Y[32]!==h?(I=dE(h),Y[32]=h,Y[33]=I):I=Y[33];let eo=I;Y[34]!==f?(P=dE(f),Y[34]=f,Y[35]=P):P=Y[35];let ea=P;Y[36]!==c?(V=dE(c),Y[36]=c,Y[37]=V):V=Y[37];let es=V;Y[38]!==l?(z=dE(l),Y[38]=l,Y[39]=z):z=Y[39];let el=z;Y[40]!==d?(L=dE(d),Y[40]=d,Y[41]=L):L=Y[41];let ed=L;Y[42]!==u?(N=dE(u),Y[42]=u,Y[43]=N):N=Y[43];let eu=N;Y[44]!==Z?(O=dE(Z),Y[44]=Z,Y[45]=O):O=Y[45];let ec=O,eh=void 0===a?J:a;Y[46]!==eh?(D=dE(eh),Y[46]=eh,Y[47]=D):D=Y[47];let ef=D;Y[48]!==er||Y[49]!==el||Y[50]!==ed||Y[51]!==eu||Y[52]!==es||Y[53]!==eo||Y[54]!==ea?(B={padding:er,paddingX:eo,paddingY:ea,paddingTop:es,paddingBottom:el,paddingLeft:ed,paddingRight:eu},Y[48]=er,Y[49]=el,Y[50]=ed,Y[51]=eu,Y[52]=es,Y[53]=eo,Y[54]=ea,Y[55]=B):B=Y[55];let ep=B,em=!!(s||o),eg=m?"":void 0,eb=!!(s||o);return Y[56]!==s?(F=!!s&&(0,g.jsx)(u1,{children:(0,g.jsx)(uZ,{})}),Y[56]=s,Y[57]=F):F=Y[57],Y[58]!==n||Y[59]!==i||Y[60]!==ep||Y[61]!==en||Y[62]!==X||Y[63]!==ei||Y[64]!==et||Y[65]!==ef||Y[66]!==E||Y[67]!==C||Y[68]!==A?(H=(n||E||i)&&(0,g.jsx)(uH,{as:"span",...ep,children:(0,g.jsxs)(uG,{as:"span",justify:ei,gap:ef,children:[n&&(0,g.jsxs)(uU,{size:X,children:[(0,b.isValidElement)(n)&&n,eH.isValidElementType(n)&&(0,g.jsx)(n,{})]}),E&&(0,g.jsx)(uH,{children:(0,g.jsx)(uU,{muted:et,align:C,size:X,textOverflow:"ellipsis",weight:A??en.textWeight,children:E})}),i&&(0,g.jsxs)(uU,{size:X,children:[(0,b.isValidElement)(i)&&i,eH.isValidElementType(i)&&(0,g.jsx)(i,{})]})]})}),Y[58]=n,Y[59]=i,Y[60]=ep,Y[61]=en,Y[62]=X,Y[63]=ei,Y[64]=et,Y[65]=ef,Y[66]=E,Y[67]=C,Y[68]=A,Y[69]=H):H=Y[69],Y[70]!==ep||Y[71]!==r?(W=r&&(0,g.jsx)(uH,{as:"span",...ep,children:r}),Y[70]=ep,Y[71]=r,Y[72]=W):W=Y[72],Y[73]!==q||Y[74]!==ec||Y[75]!==t||Y[76]!==p||Y[77]!==em||Y[78]!==eg||Y[79]!==eb||Y[80]!==F||Y[81]!==H||Y[82]!==W||Y[83]!==Q||Y[84]!==ee||Y[85]!==_?(U=(0,g.jsxs)(u0,{"data-ui":"Button",...p,$mode:q,$radius:ec,$tone:Q,"data-disabled":em,"data-selected":eg,disabled:eb,ref:t,type:ee,$width:_,children:[F,H,W]}),Y[73]=q,Y[74]=ec,Y[75]=t,Y[76]=p,Y[77]=em,Y[78]=eg,Y[79]=eb,Y[80]=F,Y[81]=H,Y[82]=W,Y[83]=Q,Y[84]=ee,Y[85]=_,Y[86]=U):U=Y[86],U});u2.displayName="ForwardRef(Button)";let u3=(0,y.I4)(uH).withConfig({displayName:"StyledCard",componentId:"sc-osnro2-0"})(function(){return[dN,dO,dD,dB,dF]},u$,function(e){let{card:t,media:n,shadow:i}=F(e.theme);return dT(n,e.$shadow,e=>(function(e,t=1){if(!e)return db;let n=`0 0 0 ${dR(t)} var(--card-shadow-outline-color)`,i=uR(e.umbra,"var(--card-shadow-umbra-color)"),r=uR(e.penumbra,"var(--card-shadow-penumbra-color)"),o=uR(e.ambient,"var(--card-shadow-ambient-color)");return{boxShadow:`${n}, ${i}, ${r}, ${o}`}})(i[e],t.shadow.outline))},function(e){return[function(e){let{$checkered:t}=e,{space:n}=F(e.theme);return(0,y.AH)`
344    ${t&&(0,y.AH)`
345      background-size: ${n[3]}px ${n[3]}px;
346      background-position: 50% 50%;
347      background-image: var(--card-bg-image);
348    `}
349
350    &[data-as='button'] {
351      -webkit-font-smoothing: inherit;
352      appearance: none;
353      outline: none;
354      font: inherit;
355      text-align: inherit;
356      border: 0;
357      width: -moz-available;
358      width: -webkit-fill-available;
359      width: stretch;
360    }
361
362    /* &:is(a) */
363    &[data-as='a'] {
364      outline: none;
365      text-decoration: none;
366    }
367
368    /* &:is(pre) */
369    &[data-as='pre'] {
370      font: inherit;
371    }
372  `}(e),function(e){let{$checkered:t,$focusRing:n,$muted:i}=e,{card:r,color:o,style:a}=F(e.theme),s={width:r.border.width,color:"var(--card-border-color)"};return(0,y.AH)`
373    color-scheme: ${o._dark?"dark":"light"};
374
375    ${uJ(o,o,t)}
376
377    background-color: ${i?"var(--card-muted-bg-color)":"var(--card-bg-color)"};
378    color: var(--card-fg-color);
379
380    /* &:is(button) */
381    &[data-as='button'] {
382      --card-focus-ring-box-shadow: none;
383
384      cursor: default;
385      box-shadow: var(--card-focus-ring-box-shadow);
386
387      &:disabled {
388        ${uJ(o,o.selectable.default.disabled,t)}
389      }
390
391      &:not(:disabled) {
392        &[data-pressed] {
393          ${uJ(o,o.selectable.default.pressed,t)}
394        }
395
396        &[data-selected] {
397          ${uJ(o,o.selectable.default.selected,t)}
398        }
399
400        @media (hover: hover) {
401          &:not([data-pressed]):not([data-selected]) {
402            &[data-hovered],
403            &:hover {
404              ${uJ(o,o.selectable.default.hovered,t)}
405            }
406
407            &:active {
408              ${uJ(o,o.selectable.default.pressed,t)}
409            }
410          }
411        }
412
413        &:focus-visible {
414          --card-focus-ring-box-shadow: ${n?d6({base:o,border:s,focusRing:r.focusRing}):void 0};
415        }
416      }
417    }
418
419    /* &:is(a) */
420    &[data-as='a'] {
421      cursor: pointer;
422      box-shadow: var(--card-focus-ring-box-shadow);
423
424      &[data-disabled] {
425        ${uJ(o,o.selectable.default.disabled,t)}
426      }
427
428      &:not([data-disabled]) {
429        &[data-pressed] {
430          ${uJ(o,o.selectable.default.pressed,t)}
431        }
432
433        &[data-selected] {
434          ${uJ(o,o.selectable.default.selected,t)}
435        }
436
437        @media (hover: hover) {
438          &:not([data-pressed]):not([data-selected]) {
439            &[data-hovered],
440            &:hover {
441              ${uJ(o,o.selectable.default.hovered,t)}
442            }
443
444            &:active {
445              ${uJ(o,o.selectable.default.pressed,t)}
446            }
447          }
448        }
449
450        &:focus-visible {
451          --card-focus-ring-box-shadow: ${n?d6({base:o,border:s,focusRing:r.focusRing}):void 0};
452        }
453      }
454    }
455
456    ${a?.card?.root}
457  `}(e)]}),u5=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,b,y,v,w,x,k,S,$,R,T,E,C=eD.c(56);C[0]!==e?({__unstable_checkered:p,__unstable_focusRing:m,as:n,border:i,borderTop:s,borderRight:a,borderBottom:r,borderLeft:o,muted:l,pressed:d,radius:b,scheme:c,selected:h,shadow:f,tone:y,...u}=e,C[0]=e,C[1]=n,C[2]=i,C[3]=r,C[4]=o,C[5]=a,C[6]=s,C[7]=l,C[8]=d,C[9]=u,C[10]=c,C[11]=h,C[12]=f,C[13]=p,C[14]=m,C[15]=b,C[16]=y):(n=C[1],i=C[2],r=C[3],o=C[4],a=C[5],s=C[6],l=C[7],d=C[8],u=C[9],c=C[10],h=C[11],f=C[12],p=C[13],m=C[14],b=C[15],y=C[16]);let A=void 0!==p&&p,_=void 0!==m&&m,j=void 0===b?0:b,M=void 0===y?"default":y,I=eH.isValidElementType(n)?n:"div",P=dV(),V="inherit"===M?P.tone:M,z="string"==typeof I?I:void 0,L=P.scheme;C[17]!==i?(v=dE(i),C[17]=i,C[18]=v):v=C[18],C[19]!==s?(w=dE(s),C[19]=s,C[20]=w):w=C[20],C[21]!==a?(x=dE(a),C[21]=a,C[22]=x):x=C[22],C[23]!==r?(k=dE(r),C[23]=r,C[24]=k):k=C[24],C[25]!==o?(S=dE(o),C[25]=o,C[26]=S):S=C[26],C[27]!==j?($=dE(j),C[27]=j,C[28]=$):$=C[28],C[29]!==f?(R=dE(f),C[29]=f,C[30]=R):R=C[30];let N=A?"":void 0,O=d?"":void 0,D=h?"":void 0;return C[31]!==I||C[32]!==A||C[33]!==_||C[34]!==l||C[35]!==t||C[36]!==u||C[37]!==P.scheme||C[38]!==h||C[39]!==S||C[40]!==$||C[41]!==R||C[42]!==N||C[43]!==O||C[44]!==D||C[45]!==z||C[46]!==v||C[47]!==w||C[48]!==x||C[49]!==k||C[50]!==V?(T=(0,g.jsx)(u3,{"data-as":z,"data-scheme":L,"data-ui":"Card","data-tone":V,...u,$border:v,$borderTop:w,$borderRight:x,$borderBottom:k,$borderLeft:S,$checkered:A,$focusRing:_,$muted:l,$radius:$,$shadow:R,$tone:V,"data-checkered":N,"data-pressed":O,"data-selected":D,forwardedAs:I,ref:t,selected:h}),C[31]=I,C[32]=A,C[33]=_,C[34]=l,C[35]=t,C[36]=u,C[37]=P.scheme,C[38]=h,C[39]=S,C[40]=$,C[41]=R,C[42]=N,C[43]=O,C[44]=D,C[45]=z,C[46]=v,C[47]=w,C[48]=x,C[49]=k,C[50]=V,C[51]=T):T=C[51],C[52]!==c||C[53]!==T||C[54]!==V?(E=(0,g.jsx)(dz,{scheme:c,tone:V,children:T}),C[52]=c,C[53]=T,C[54]=V,C[55]=E):E=C[55],E});function u4(e,t,n){let i,r,o,a=eD.c(9),s=void 0===t?u6:t;a[0]!==n||a[1]!==s||a[2]!==e?(i=t=>{if(!e)return;let n=t.target;if(n instanceof Node){for(let e of s().flat())if(e&&(n===e||e.contains(n)))return;e(t)}},a[0]=n,a[1]=s,a[2]=e,a[3]=i):i=a[3];let l=dm(i),d=!!e;a[4]!==d||a[5]!==l?(r=()=>{if(!d)return;let e=e=>l(e);return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},a[4]=d,a[5]=l,a[6]=r):r=a[6],a[7]!==d?(o=[d],a[7]=d,a[8]=o):o=a[8],(0,b.useEffect)(r,o),(0,b.useDebugValue)(e?"MouseDown On":"MouseDown Off")}function u6(){return dg}function u7(e,t){let n,i,r=eD.c(4);r[0]!==t||r[1]!==e?(n=()=>{e.current?.setCustomValidity(t||"")},i=[t,e],r[0]=t,r[1]=e,r[2]=n,r[3]=i):(n=r[2],i=r[3]),(0,b.useEffect)(n,i)}u5.displayName="ForwardRef(Card)";let u9="u">typeof document&&"u">typeof window&&window.ResizeObserver?window.ResizeObserver:dh,u8=(h=new WeakMap,f=new WeakMap,{subscribe(e,t){let n=f.get(e)||[],i=h.get(e);return f.has(e)||(f.set(e,n),i=({subscribe(e,t){let n=new u9(([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 n.observe(e),()=>{n.unobserve(e),n.disconnect()}}}).subscribe(e,e=>{for(let t of n)t(e)})),n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1),0===n.length&&i&&i()}}});function ce(e){let t,n,i=eD.c(3),[r,o]=(0,b.useState)(null);return i[0]!==e?(t=()=>{if(e)return u8.subscribe(e,o)},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,b.useEffect)(t,n),r}function ct(e,t){let n,i,r,o=eD.c(7);o[0]!==e?(n=t=>e(t),o[0]=e,o[1]=n):n=o[1];let a=dm(n);o[2]!==a||o[3]!==t?(i=()=>{let e=e=>a(e);return window.addEventListener("keydown",e,t),()=>window.removeEventListener("keydown",e,t)},o[2]=a,o[3]=t,o[4]=i):i=o[4],o[5]!==t?(r=[t],o[5]=t,o[6]=r):r=o[6],(0,b.useEffect)(i,r)}function cn(e,t){let n,i,r=eD.c(4);return(0,b.useDebugValue)(e),r[0]!==e?(n=t=>{let n=window.matchMedia(e);return n.addEventListener("change",t),()=>n.removeEventListener("change",t)},r[0]=e,r[1]=n):n=r[1],r[2]!==e?(i=()=>window.matchMedia(e).matches,r[2]=e,r[3]=i):i=r[3],(0,b.useSyncExternalStore)(n,i,t)}function ci(){return 0}function cr(){let e,t,n,i,r=eD.c(2),{media:o}=dL();r[0]!==o?(n=o.length,i=()=>
457{if(!t){t=[];for(let i=n;i>-1;i-=1){var e;let n=0===(e=i)?`screen and (max-width: ${o[e]-1}px)`:e===o.length?`screen and (min-width: ${o[e-1]}px)`:`screen and (min-width: ${o[e-1]}px) and (max-width: ${o[e]-1}px)`;t.push({index:i,mq:window.matchMedia(n)})}}return t},e={getSnapshot:()=>{for(let{index:e,mq:t}of i())if(t.matches)return e;return 0},subscribe:e=>{let t=[];for(let{mq:n}of i()){let i=()=>{n.matches&&e()};n.addEventListener("change",i),t.push(()=>n.removeEventListener("change",i))}return()=>{for(let e of t)e()}}},r[0]=o,r[1]=e):e=r[1];let a=e;return(0,b.useSyncExternalStore)(a.subscribe,a.getSnapshot,ci)}function co(){return!1}function ca(e){return cn("(prefers-reduced-motion: reduce)",cs)}function cs(){return!1}let cl=y.I4.div.withConfig({displayName:"StyledCheckbox",componentId:"sc-1l5mt2l-0"})(function(){return(0,y.AH)`
458    position: relative;
459    display: inline-block;
460  `}),cd=y.I4.input.withConfig({displayName:"Input",componentId:"sc-1l5mt2l-1"})(function(e){let{color:t,input:n,radius:i}=F(e.theme),{focusRing:r}=n.checkbox;return(0,y.AH)`
461    position: absolute;
462    top: 0;
463    left: 0;
464    width: 100%;
465    height: 100%;
466    outline: none;
467    opacity: 0;
468    z-index: 1;
469    padding: 0;
470    margin: 0;
471
472    & + span {
473      position: relative;
474      display: block;
475      height: ${dR(n.checkbox.size)};
476      width: ${dR(n.checkbox.size)};
477      box-sizing: border-box;
478      box-shadow: ${d4({color:t.input.default.enabled.border,width:n.border.width})};
479      border-radius: ${dR(i[2])};
480      line-height: 1;
481      background-color: ${t.input.default.enabled.bg};
482
483      & > svg {
484        display: block;
485        position: absolute;
486        opacity: 0;
487        height: 100%;
488        width: 100%;
489
490        & > path {
491          vector-effect: non-scaling-stroke;
492          stroke-width: 1.5px !important;
493        }
494      }
495    }
496
497    &:checked + span {
498      background: ${t.input.default.enabled.fg};
499      box-shadow: ${d4({color:t.input.default.enabled.fg,width:n.border.width})};
500      color: ${t.input.default.enabled.bg};
501    }
502
503    /* focus */
504    &:not(:disabled):focus:focus-visible + span {
505      box-shadow: ${d6({focusRing:r})};
506    }
507
508    /* focus when checked - uses a different offset */
509    &:not(:disabled):focus:focus-visible&:checked + span {
510      box-shadow: ${d6({focusRing:{width:1,offset:1}})};
511    }
512
513    &[data-error] + span {
514      background-color: ${t.input.invalid.enabled.border};
515      box-shadow: ${d4({width:n.border.width,color:t.input.invalid.enabled.muted.bg})};
516      color: ${t.input.default.disabled.fg};
517    }
518    &[data-error]&:checked + span {
519      background-color: ${t.input.invalid.enabled.muted.bg};
520      color: ${t.input.default.enabled.bg};
521    }
522    &[data-error]&:checked&:not(:disabled):focus:focus-visible + span {
523      box-shadow: ${d6({border:{width:n.border.width,color:t.input.invalid.readOnly.muted.bg},focusRing:{width:1,offset:1}})};
524    }
525
526    &:disabled + span {
527      background-color: ${t.input.default.disabled.bg};
528      box-shadow: ${d4({width:n.border.width,color:t.input.default.disabled.border})};
529      color: ${t.input.default.disabled.fg};
530    }
531    &:disabled&:checked + span {
532      background-color: ${t.input.default.disabled.muted.bg};
533    }
534
535    &[data-read-only] + span {
536      background-color: ${t.input.default.readOnly.bg};
537      box-shadow: ${d4({width:n.border.width,color:t.input.default.readOnly.border})};
538      color: ${t.input.default.readOnly.fg};
539    }
540
541    &[data-read-only]&:checked + span {
542      background-color: ${t.input.default.readOnly.muted.bg};
543    }
544
545    &:checked + span > svg:first-child {
546      opacity: 1;
547    }
548    &:indeterminate + span > svg:last-child {
549      opacity: 1;
550    }
551  `});function cu({theme:e}){let{color:{syntax:t}}=F(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}}}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y=eD.c(25);y[0]!==e?({checked:n,className:i,disabled:o,indeterminate:a,customValidity:r,readOnly:s,style:d,...l}=e,y[0]=e,y[1]=n,y[2]=i,y[3]=r,y[4]=o,y[5]=a,y[6]=s,y[7]=l,y[8]=d):(n=y[1],i=y[2],r=y[3],o=y[4],a=y[5],s=y[6],l=y[7],d=y[8]);let v=(0,b.useRef)(null);y[9]===Symbol.for("react.memo_cache_sentinel")?(u=()=>v.current,y[9]=u):u=y[9],(0,b.useImperativeHandle)(t,u),y[10]!==a?(c=()=>{v.current&&(v.current.indeterminate=a||!1)},h=[a],y[10]=a,y[11]=c,y[12]=h):(c=y[11],h=y[12]),(0,b.useEffect)(c,h),u7(v,r);let w=!o&&s?"":void 0,x=r?"":void 0,k=o||s;return y[13]!==n||y[14]!==s||y[15]!==l||y[16]!==w||y[17]!==x||y[18]!==k?(f=(0,g.jsx)(cd,{"data-read-only":w,"data-error":x,...l,checked:n,disabled:k,type:"checkbox",readOnly:s,ref:v}),y[13]=n,y[14]=s,y[15]=l,y[16]=w,y[17]=x,y[18]=k,y[19]=f):f=y[19],y[20]===Symbol.for("react.memo_cache_sentinel")?(p=(0,g.jsxs)("span",{children:[(0,g.jsx)(eU,{}),(0,g.jsx)(eG,{})]}),y[20]=p):p=y[20],y[21]!==i||y[22]!==d||y[23]!==f?(m=(0,g.jsxs)(cl,{className:i,"data-ui":"Checkbox",style:d,children:[f,p]}),y[21]=i,y[22]=d,y[23]=f,y[24]=m):m=y[24],m}).displayName="ForwardRef(Checkbox)";let cc=(0,b.lazy)(()=>n.e(653).then(n.bind(n,10653))),ch=y.I4.pre.withConfig({displayName:"StyledCode",componentId:"sc-4dymyn-0"})(function(){return(0,y.AH)`
552    color: var(--card-code-fg-color);
553
554    & code {
555      font-family: inherit;
556
557      &.refractor .token {
558        ${cu}
559      }
560    }
561
562    & a {
563      color: inherit;
564      text-decoration: underline;
565      border-radius: 1px;
566    }
567
568    & svg {
569      /* Certain popular CSS libraries changes the defaults for SVG display */
570      /* Make sure SVGs are rendered as inline elements */
571      display: inline;
572    }
573
574    & [data-sanity-icon] {
575      vertical-align: baseline;
576    }
577  `},function(e){return dA("code",e)});(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h=eD.c(22);h[0]!==e?({children:n,language:i,size:o,weight:a,...r}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=o,h[5]=a):(n=h[1],i=h[2],r=h[3],o=h[4],a=h[5]);let f=void 0===o?2:o;return h[6]!==f?(s=dE(f),h[6]=f,h[7]=s):s=h[7],h[8]!==n?(l=(0,g.jsx)("code",{children:n}),h[8]=n,h[9]=l):l=h[9],h[10]!==n||h[11]!==i?(d=(0,g.jsx)(cc,{language:i,value:n}),h[10]=n,h[11]=i,h[12]=d):d=h[12],h[13]!==l||h[14]!==d?(u=(0,g.jsx)(b.Suspense,{fallback:l,children:d}),h[13]=l,h[14]=d,h[15]=u):u=h[15],h[16]!==t||h[17]!==r||h[18]!==s||h[19]!==u||h[20]!==a?(c=(0,g.jsx)(ch,{"data-ui":"Code",...r,$size:s,$weight:a,ref:t,children:u}),h[16]=t,h[17]=r,h[18]=s,h[19]=u,h[20]=a,h[21]=c):c=h[21],c}).displayName="ForwardRef(Code)";let cf={width:"100%",margin:"0 auto"},cp=(0,y.I4)(uH).withConfig({displayName:"StyledContainer",componentId:"sc-wyroop-0"})(function(){return cf}
577,function(e){let{container:t,media:n}=F(e.theme);return dT(n,e.$width,e=>({maxWidth:"auto"===e?"none":dR(t[e])}))}),cm=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s=eD.c(11);s[0]!==e?({as:n,width:r,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=r):(n=s[1],i=s[2],r=s[3]);let l=void 0===r?2:r;return s[4]!==l?(o=dE(l),s[4]=l,s[5]=o):o=s[5],s[6]!==n||s[7]!==t||s[8]!==i||s[9]!==o?(a=(0,g.jsx)(cp,{"data-ui":"Container",...i,$width:o,forwardedAs:n,ref:t}),s[6]=n,s[7]=t,s[8]=i,s[9]=o,s[10]=a):a=s[10],a});cm.displayName="ForwardRef(Container)";let cg=(0,y.I4)(uH).withConfig({displayName:"StyledGrid",componentId:"sc-v8t8oz-0"})(function(){return[uo,ul,ud,uu,uc,uh,uf,up,um]}),cb=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,b,y,v,w,x,k,S,$,R=eD.c(44);R[0]!==e?({as:n,autoRows:o,autoCols:i,autoFlow:r,columns:s,gridTemplateColumns:c,gap:l,gapX:d,gapY:u,rows:p,gridTemplateRows:h,children:a,...f}=e,R[0]=e,R[1]=n,R[2]=i,R[3]=r,R[4]=o,R[5]=a,R[6]=s,R[7]=l,R[8]=d,R[9]=u,R[10]=c,R[11]=h,R[12]=f,R[13]=p):(n=R[1],i=R[2],r=R[3],o=R[4],a=R[5],s=R[6],l=R[7],d=R[8],u=R[9],c=R[10],h=R[11],f=R[12],p=R[13]);let T="string"==typeof n?n:void 0;R[14]!==o?(m=dE(o),R[14]=o,R[15]=m):m=R[15],R[16]!==i?(b=dE(i),R[16]=i,R[17]=b):b=R[17],R[18]!==r?(y=dE(r),R[18]=r,R[19]=y):y=R[19];let E=void 0===c?s:c;R[20]!==E?(v=dE(E),R[20]=E,R[21]=v):v=R[21],R[22]!==l?(w=dE(l),R[22]=l,R[23]=w):w=R[23],R[24]!==d?(x=dE(d),R[24]=d,R[25]=x):x=R[25],R[26]!==u?(k=dE(u),R[26]=u,R[27]=k):k=R[27];let C=void 0===h?p:h;return R[28]!==C?(S=dE(C),R[28]=C,R[29]=S):S=R[29],R[30]!==n||R[31]!==a||R[32]!==t||R[33]!==f||R[34]!==T||R[35]!==m||R[36]!==S||R[37]!==b||R[38]!==y||R[39]!==v||R[40]!==w||R[41]!==x||R[42]!==k?($=(0,g.jsx)(cg,{"data-as":T,"data-ui":"Grid",...f,$autoRows:m,$autoCols:b,$autoFlow:y,$columns:v,$gap:w,$gapX:x,$gapY:k,$rows:S,forwardedAs:n,ref:t,children:a}),R[30]=n,R[31]=a,R[32]=t,R[33]=f,R[34]=T,R[35]=m,R[36]=S,R[37]=b,R[38]=y,R[39]=v,R[40]=w,R[41]=x,R[42]=k,R[43]=$):$=R[43],$});cb.displayName="ForwardRef(Grid)";let cy=y.I4.div.withConfig({displayName:"StyledHeading",componentId:"sc-137lwim-0"})(function(e){let{$accent:t,$muted:n}=e,{font:i}=F(e.theme);return(0,y.AH)`
578    ${t&&(0,y.AH)`
579      color: var(--card-accent-fg-color);
580    `}
581
582    ${n&&(0,y.AH)`
583      color: var(--card-muted-fg-color);
584    `}
585
586    & code {
587      font-family: ${i.code.family};
588      border-radius: 1px;
589    }
590
591    & a {
592      text-decoration: none;
593      border-radius: 1px;
594      color: var(--card-link-color);
595      outline: none;
596
597      @media (hover: hover) {
598        &:hover {
599          text-decoration: underline;
600        }
601      }
602
603      &:focus {
604        box-shadow:
605          0 0 0 1px var(--card-bg-color),
606          0 0 0 3px var(--card-focus-ring-color);
607      }
608
609      &:focus:not(:focus-visible) {
610        box-shadow: none;
611      }
612    }
613
614    & strong {
615      font-weight: ${i.heading.weights.bold};
616    }
617
618    & svg {
619      /* Certain popular CSS libraries changes the defaults for SVG display */
620      /* Make sure SVGs are rendered as inline elements */
621      display: inline;
622    }
623
624    & [data-sanity-icon] {
625      vertical-align: baseline;
626    }
627  `},d_,function(e){return dA("heading",e)});(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p=eD.c(26);p[0]!==e?({accent:o,align:n,children:i,muted:a,size:s,textOverflow:l,weight:d,...r}=e,p[0]=e,p[1]=n,p[2]=i,p[3]=r,p[4]=o,p[5]=a,p[6]=s,p[7]=l,p[8]=d):(n=p[1],i=p[2],r=p[3],o=p[4],a=p[5],s=p[6],l=p[7],d=p[8]);let m=void 0!==o&&o,b=void 0!==a&&a,y=void 0===s?2:s,v=i;if("ellipsis"===l){let e;p[9]!==v?(e=(0,g.jsx)(uT,{children:v}),p[9]=v,p[10]=e):e=p[10],v=e}return p[11]!==n?(u=dE(n),p[11]=n,p[12]=u):u=p[12],p[13]!==y?(c=dE(y),p[13]=y,p[14]=c):c=p[14],p[15]!==v?(h=(0,g.jsx)("span",{children:v}),p[15]=v,p[16]=h):h=p[16],p[17]!==m||p[18]!==b||p[19]!==t||p[20]!==r||p[21]!==u||p[22]!==c||p[23]!==h||p[24]!==d?(f=(0,g.jsx)(cy,{"data-ui":"Heading",...r,$accent:m,$align:u,$muted:b,$size:c,$weight:d,ref:t,children:h}),p[17]=m,p[18]=b,p[19]=t,p[20]=r,p[21]=u,p[22]=c,p[23]=h,p[24]=d,p[25]=f):f=p[25],f}).displayName="ForwardRef(Heading)";let cv=(0,y.I4)(uH).withConfig({displayName:"StyledInline",componentId:"sc-1pkiy6j-0"})(function(){return{lineHeight:"0","&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}}
627,function(e){let{media:t,space:n}=F(e.theme);return dT(t,e.$space,e=>{let t=dR(.5===e?n[1]/2:n[e]);return{margin:`-${t} 0 0 -${t}`,"& > div":{padding:`${t} 0 0 ${t}`}}})}),cw=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u=eD.c(16);u[0]!==e?({as:n,children:i,gap:o,space:r,...a}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=r,u[4]=o,u[5]=a):(n=u[1],i=u[2],r=u[3],o=u[4],a=u[5]);let c=void 0===o?r:o;u[6]!==i?(s=b.Children.map(i,cx),u[6]=i,u[7]=s):s=u[7];let h=s;return u[8]!==c?(l=dE(c),u[8]=c,u[9]=l):l=u[9],u[10]!==n||u[11]!==h||u[12]!==a||u[13]!==l||u[14]!==t?(d=(0,g.jsx)(cv,{"data-ui":"Inline",...a,$space:l,forwardedAs:n,ref:t,children:h}),u[10]=n,u[11]=h,u[12]=a,u[13]=l,u[14]=t,u[15]=d):d=u[15],d});function cx(e){return e&&(0,g.jsx)("div",{children:e})}cw.displayName="ForwardRef(Inline)";let ck=y.I4.kbd.withConfig({displayName:"StyledKBD",componentId:"sc-1w7yd8w-0"})(u$,function(){return(0,y.AH)`
628    --card-bg-color: var(--card-kbd-bg-color);
629    --card-border-color: var(--card-kbd-border-color);
630    --card-fg-color: var(--card-kbd-fg-color);
631
632    box-shadow: inset 0 0 0 1px var(--card-border-color);
633    background: var(--card-bg-color);
634    font: inherit;
635
636    vertical-align: top;
637
638    &:not([hidden]) {
639      display: inline-block;
640    }
641  `}),cS=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c=eD.c(19);c[0]!==e?({children:n,fontSize:r,padding:o,radius:a,...i}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=r,c[4]=o,c[5]=a):(n=c[1],i=c[2],r=c[3],o=c[4],a=c[5]);let h=void 0===r?0:r,f=void 0===o?1:o,p=void 0===a?2:a;return c[6]!==p?(s=dE(p),c[6]=p,c[7]=s):s=c[7],c[8]!==n||c[9]!==h?(l=(0,g.jsx)(uU,{as:"span",size:h,weight:"semibold",children:n}),c[8]=n,c[9]=h,c[10]=l):l=c[10],c[11]!==f||c[12]!==l?(d=(0,g.jsx)(uH,{as:"span",padding:f,children:l}),c[11]=f,c[12]=l,c[13]=d):d=c[13],c[14]!==t||c[15]!==i||c[16]!==s||c[17]!==d?(u=(0,g.jsx)(ck,{"data-ui":"KBD",...i,$radius:s,ref:t,children:d}),c[14]=t,c[15]=i,c[16]=s,c[17]=d,c[18]=u):u=c[18],u});cS.displayName="ForwardRef(KBD)";let c$={name:"@sanity/ui/origin",fn({middlewareData:e,placement:t,rects:n}){let[i]=t.split("-"),r=n.floating.width,o=n.floating.height,a=e.shift?.x||0,s=e.shift?.y||0;if(r<=0||o<=0)return{};let{originX:l,originY:d}=["bottom","top"].includes(i)?{originX:cR(.5-a/r,0,1),originY:+("bottom"!==i)}:{originX:+("left"===i),originY:cR(.5-s/o,0,1)};return{data:{originX:l,originY:d}}}};function cR(e,t,n){return Math.min(Math.max(e,t),n)}function cT(e,t,n){let i=t.x-e.x,r=t.y-e.y;return cE(e,t,Math.min(1,n/Math.sqrt(i*i+r*r)))}function cE(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}let cC=y.I4.div.withConfig({displayName:"StyledArrow",componentId:"sc-12vzy6c-0"})(({$w:e})=>(0,y.AH)`
642    position: absolute;
643    width: ${e}px;
644    height: ${e}px;
645
646    :empty + & {
647      display: none;
648    }
649
650    & > svg {
651      display: block;
652      line-height: 0;
653      transform-origin: ${e/2}px ${e/2}px;
654    }
655
656    [data-placement^='top'] > & {
657      bottom: -${e}px;
658
659      & > svg {
660        transform: rotate(0);
661      }
662    }
663
664    [data-placement^='right'] > & {
665      left: -${e}px;
666
667      & > svg {
668        transform: rotate(90deg);
669      }
670    }
671
672    [data-placement^='left'] > & {
673      right: -${e}px;
674
675      & > svg {
676        transform: rotate(-90deg);
677      }
678    }
679
680    [data-placement^='bottom'] > & {
681      top: -${e}px;
682
683      & > svg {
684        transform: rotate(180deg);
685      }
686    }
687  `),cA=y.I4.path.withConfig({displayName:"StrokePath",componentId:"sc-12vzy6c-1"})`stroke:var(--card-shadow-outline-color);`,c_=y.I4.path.withConfig({displayName:"ShapePath",componentId:"sc-12vzy6c-2"})`fill:var(--card-bg-color);`,cj=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h=eD.c(29);h[0]!==e?({width:o,height:n,radius:r,...i}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=o):(n=h[1],i=h[2],r=h[3],o=h[4]);let f=void 0===r?0:r,{card:p}=dL(),m=p.shadow.outline,b=o/2;h[5]!==b||h[6]!==n||h[7]!==f||h[8]!==o?(a=(function(e){let t=e.length,n=[];for(let i=0;i<t;i+=1){let t=e[i],r=e[i-1],o=e[i+1];if(r&&t.radius){let e=cT(t,r,t.radius),i=cT(t,o,t.radius),a=cE(e,t,.5),s=cE(t,i,.5);n.push({type:"point",...e}),n.push({type:"curve",curveEnd:i,startControl:a,endControl:s})}else n.push({type:"point",...t})}return n})([{x:0,y:0},{x:f,y:0,radius:f},{x:b,y:n-1,radius:f},{x:o-f,y:0,radius:f},{x:o,y:0}]).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(" "),h[5]=b,h[6]=n,h[7]=f,h[8]=o,h[9]=a):a=h[9];let y=a,v=`${y}`,w=`${y} M ${o} -1 M 0 -1 Z`,x=`0 0 ${o} ${o}`;h[10]!==m||h[11]!==o?(s=(0,g.jsx)("mask",{id:"stroke-mask",children:(0,g.jsx)("rect",{x:0,y:m,width:o,height:o,fill:"white"})}),h[10]=m,h[11]=o,h[12]=s):s=h[12];let k=2*m;return h[13]!==v||h[14]!==k?(l=(0,g.jsx)(cA,{d:v,mask:"url(#stroke-mask)",strokeWidth:k}),h[13]=v,h[14]=k,h[15]=l):l=h[15],h[16]!==w?(d=(0,g.jsx)(c_,{d:w}),h[16]=w,h[17]=d):d=h[17],h[18]!==x||h[19]!==s||h[20]!==l||h[21]!==d||h[22]!==o?(u=(0,g.jsxs)("svg",{width:o,height:o,viewBox:x,children:[s,l,d]}),h[18]=x,h[19]=s,h[20]=l,h[21]=d,h[22]=o,h[23]=u):u=h[23],h[24]!==t||h[25]!==i||h[26]!==u||h[27]!==o?(c=(0,g.jsx)(cC,{...i,$w:o,ref:t,children:u}),h[24]=t,h[25]=i,h[26]=u,h[27]=o,h[28]=c):c=h[28],c});cj.displayName="ForwardRef(Arrow)";let cM=dM("@sanity/ui/context/boundaryElement",null);function cI(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}let cP={version:0,element:null};function cV(){let e=(0,b.useContext)(cM);if(e&&(!cI(e)||0!==e.version))throw Error("useBoundaryElement(): the context value is not compatible");return e||cP}function cz(e){if(!cI(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>.");
687if(0===e.version)return e;throw Error("could not get layer context")}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u=eD.c(18),c=dL();u[0]!==e?({children:i,media:n,...r}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=r):(n=u[1],i=u[2],r=u[3]);let h=n??c.media,[f,p]=(0,b.useState)(null),m=ce(f)?.border.width??window.innerWidth;if(u[4]!==h||u[5]!==m){let e=function(e,t){let n=[];for(let i=0;i<e.length;i+=1)e[i]>t&&n.push(i);return n}(h,m);o=e.length?e.join(" "):void 0,u[4]=h,u[5]=m,u[6]=o}else o=u[6];let y=o;if(u[7]!==h||u[8]!==m){let e=function(e,t){let n=[];for(let i=0;i<e.length;i+=1)e[i]<=t&&n.push(i);return n}(h,m);a=e.length?e.join(" "):void 0,u[7]=h,u[8]=m,u[9]=a}else a=u[9];let v=a;return u[10]!==f?(s=()=>f,l=[f],u[10]=f,u[11]=s,u[12]=l):(s=u[11],l=u[12]),(0,b.useImperativeHandle)(t,s,l),u[13]!==i||u[14]!==y||u[15]!==v||u[16]!==r?(d=(0,g.jsx)("div",{"data-ui":"ElementQuery",...r,"data-eq-max":y,"data-eq-min":v,ref:p,children:i}),u[13]=i,u[14]=y,u[15]=v,u[16]=r,u[17]=d):d=u[17],d}).displayName="ForwardRef(ElementQuery)";let cL=dM("@sanity/ui/context/layer",null);function cN(e){let t,n,i,r,o,a,s,l,d=eD.c(21),{children:u,zOffset:c}=e,h=void 0===c?0:c,f=(0,b.useContext)(cL);d[0]!==f?(t=f&&cz(f),d[0]=f,d[1]=t):t=d[1];let p=t,m=p?.registerChild,y=(p?.level??0)+1;d[2]!==h?(n=dE(h),d[2]=h,d[3]=n):n=d[3];let v=n,w=v.length-1,x=Math.min(cr(),w),k=p?p.zIndex+v[x]:v[x];d[4]===Symbol.for("react.memo_cache_sentinel")?(i={},d[4]=i):i=d[4];let[,S]=(0,b.useState)(i),[$,R]=(0,b.useState)(0),T=0===$;d[5]!==m||d[6]!==S?(r=e=>{let t=m?.(e);return void 0!==e?S(t=>{let n=t[e]??0,i={...t,[e]:n+1};return R(Object.keys(i).length),i}):R(cD),()=>{void 0!==e?S(t=>{let n={...t};return 1===n[e]?(delete n[e],R(Object.keys(n).length)):n[e]=n[e]-1,n}):R(cO),t?.()}},d[5]=m,d[6]=S,d[7]=r):r=d[7];let E=r;d[8]!==y||d[9]!==m?(o=()=>m?.(y),a=[y,m],d[8]=y,d[9]=m,d[10]=o,d[11]=a):(o=d[10],a=d[11]),(0,b.useEffect)(o,a),d[12]!==T||d[13]!==y||d[14]!==E||d[15]!==$||d[16]!==k?(s={version:0,isTopLayer:T,level:y,registerChild:E,size:$,zIndex:k},d[12]=T,d[13]=y,d[14]=E,d[15]=$,d[16]=k,d[17]=s):s=d[17];let C=s;return d[18]!==u||d[19]!==C?(l=(0,g.jsx)(cL.Provider,{value:C,children:u}),d[18]=u,d[19]=C,d[20]=l):l=d[20],l}function cO(e){return e-1}function cD(e){return e+1}function cB(){let e=eD.c(2),t=(0,b.useContext)(cL);if(!t)throw Error("useLayer(): missing context value");try{let n;return e[0]!==t?(n=cz(t),e[0]=t,e[1]=n):n=e[1],n}catch(e){throw e instanceof Error?Error(`useLayer(): ${e.message}`):Error(`useLayer(): ${e}`)}}cN.displayName="LayerProvider";let cF=y.I4.div.withConfig({displayName:"StyledLayer",componentId:"sc-16kojrv-0"})({position:"relative"}),cH=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f=eD.c(22);f[0]!==e?({children:n,onActivate:i,onFocus:r,style:a,...o}=e,f[0]=e,f[1]=n,f[2]=i,f[3]=r,f[4]=o,f[5]=a):(n=f[1],i=f[2],r=f[3],o=f[4],a=f[5]);let p=void 0===a?db:a,{zIndex:m,isTopLayer:y}=cB(),v=(0,b.useRef)(null),w=(0,b.useRef)(null),x=(0,b.useRef)(y);f[6]===Symbol.for("react.memo_cache_sentinel")?(s=()=>w.current,f[6]=s):s=f[6],(0,b.useImperativeHandle)(t,s),f[7]!==y||f[8]!==i?(l=()=>{x.current!==y&&y&&i?.({activeElement:v.current}),x.current=y},d=[y,i],f[7]=y,f[8]=i,f[9]=l,f[10]=d):(l=f[9],d=f[10]),(0,b.useEffect)(l,d),f[11]!==y||f[12]!==r?(u=e=>{r?.(e);let t=w.current,n=document.activeElement;!y||!t||!n||dx(n)&&d$(t,n)&&(v.current=n)},f[11]=y,f[12]=r,f[13]=u):u=f[13];let k=u;return f[14]!==p||f[15]!==m?(c={...p,zIndex:m},f[14]=p,f[15]=m,f[16]=c):c=f[16],f[17]!==n||f[18]!==k||f[19]!==o||f[20]!==c?(h=(0,g.jsx)(cF,{...o,"data-ui":"Layer",onFocus:k,ref:w,style:c,children:n}),f[17]=n,f[18]=k,f[19]=o,f[20]=c,f[21]=h):h=f[21],h}),cW=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s=eD.c(11);s[0]!==e?({children:n,zOffset:r,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=r):(n=s[1],i=s[2],r=s[3]);let l=void 0===r?1:r;return s[4]!==n||s[5]!==t||s[6]!==i?(o=(0,g.jsx)(cH,{...i,ref:t,children:n}),s[4]=n,s[5]=t,s[6]=i,s[7]=o):o=s[7],s[8]!==o||s[9]!==l?(a=(0,g.jsx)(cN,{zOffset:l,children:o}),s[8]=o,s[9]=l,s[10]=a):a=s[10],a});cW.displayName="ForwardRef(Layer)";let cU="@sanity/ui/context/portal",cY=Symbol.for(`${cU}/element`);dj[cY]=null;
687let cX=dM(cU,{version:0,boundaryElement:null,get element(){return typeof document>"u"?null:(dj[cY]||(dj[cY]=document.createElement("div"),dj[cY].setAttribute("data-portal",""),document.body.appendChild(dj[cY])),dj[cY])}});function cG(){let e=(0,b.useContext)(cX);if(!e)throw Error("usePortal(): missing context value");if(!cI(e)||0!==e.version)throw Error("usePortal(): the context value is not compatible");return e}function cq(e){let t,n=eD.c(3),{children:i,__unstable_name:r}=e,o=cG(),a=(r?o.elements&&o.elements[r]:o.element)||o.elements?.default;return a?(n[0]!==i||n[1]!==a?(t=(0,v.createPortal)(i,a),n[0]=i,n[1]=a,n[2]=t):t=n[2],t):null}cq.displayName="Portal";let cK=y.I4.div.withConfig({displayName:"StyledSrOnly",componentId:"sc-mubr0c-0"})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`;(0,b.forwardRef)(function(e,t){let n,i=eD.c(4),{as:r,children:o}=e;return i[0]!==r||i[1]!==o||i[2]!==t?(n=(0,g.jsx)(cK,{"aria-hidden":!0,as:r,"data-ui":"SrOnly",ref:t,children:o}),i[0]=r,i[1]=o,i[2]=t,i[3]=n):n=i[3],n}).displayName="ForwardRef(SrOnly)";let cZ=y.I4.div.withConfig({displayName:"StyledVirtualList",componentId:"sc-dlqsj4-0"})`position:relative;`,cJ=y.I4.div.withConfig({displayName:"ItemWrapper",componentId:"sc-dlqsj4-1"})`position:absolute;left:0;right:0;`;function cQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S=eD.
687c(44);S[0]!==e?({as:a,gap:s,getItemKey:n,items:l,onChange:i,renderItem:r,...o}=e,S[0]=e,S[1]=n,S[2]=i,S[3]=r,S[4]=o,S[5]=a,S[6]=s,S[7]=l):(n=S[1],i=S[2],r=S[3],o=S[4],a=S[5],s=S[6],l=S[7]);let $=void 0===a?"div":a,R=void 0===s?0:s;S[8]!==l?(d=void 0===l?[]:l,S[8]=l,S[9]=d):d=S[9];let T=d,{space:E}=dL(),C=(0,b.useRef)(null),A=(0,b.useRef)(null),[_,j]=(0,b.useState)(0),[M,I]=(0,b.useState)(0),[P,V]=(0,b.useState)(-1);S[10]===Symbol.for("react.memo_cache_sentinel")?(u=()=>C.current,S[10]=u):u=S[10],(0,b.useImperativeHandle)(t,u),S[11]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{if(!A.current)return;let e=A.current.firstChild;e instanceof HTMLElement&&V(e.offsetHeight)},S[11]=c):c=S[11],S[12]!==r?(h=[r],S[12]=r,S[13]=h):h=S[13],(0,b.useEffect)(c,h),S[14]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{if(!C.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}(C.current.parentNode);if(e){if(!(e instanceof HTMLElement))return;let t=()=>{j(e.scrollTop)};e.addEventListener("scroll",t,{passive:!0});let n=new u9(e=>{I(e[0].contentRect.height)});return n.observe(e),t(),()=>{e.removeEventListener("scroll",t),n.unobserve(e),n.disconnect()}}let t=()=>{j(window.scrollY)},n=()=>{I(window.innerHeight)};return window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",n),I(window.innerHeight),t(),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",n)}},p=[],S[14]=f,S[15]=p):(f=S[14],p=S[15]),(0,b.useEffect)(f,p);let z=T.length,L=P?z*(P+E[R])-E[R]:0,N=L?Math.max(Math.floor(_/L*z)-2,0):0,O=L?Math.ceil((_+M)/L*z)+1:0;S[16]!==N||S[17]!==R||S[18]!==P||S[19]!==i||S[20]!==M||S[21]!==_||S[22]!==E||S[23]!==O?(y=()=>{i&&i({fromIndex:N,gap:E[R],itemHeight:P,scrollHeight:M,scrollTop:_,toIndex:O})},m=[N,R,P,i,M,_,E,O],S[16]=N,S[17]=R,S[18]=P,S[19]=i,S[20]=M,S[21]=_,S[22]=E,S[23]=O,S[24]=m,S[25]=y):(m=S[24],y=S[25]),(0,b.useEffect)(y,m),S[26]!==N||S[27]!==R||S[28]!==n||S[29]!==P||S[30]!==T||S[31]!==r||S[32]!==E||S[33]!==O?(v={fromIndex:N,gap:R,itemHeight:P,space:E,toIndex:O,getItemKey:n,items:T,renderItem:r},S[26]=N,S[27]=R,S[28]=n,S[29]=P,S[30]=T,S[31]=r,S[32]=E,S[33]=O,S[34]=v):v=S[34];let D=function(e){let t,n=eD.c(21),{fromIndex:i,gap:r,getItemKey:o,itemHeight:a,items:s,renderItem:l,space:d,toIndex:u}=e;if(!l||0===s.length)return null;if(-1===a){let e,t;return n[0]!==s[0]||n[1]!==l?(e=l(s[0]),n[0]=s[0],n[1]=l,n[2]=e):e=n[2],n[3]!==e?(t=[(0,g.jsx)(cJ,{children:e},0)],n[3]=e,n[4]=t):t=n[4],t}if(n[5]!==i||n[6]!==r||n[7]!==o||n[8]!==a||n[9]!==s||n[10]!==l||n[11]!==d||n[12]!==u){let e;n[14]!==i||n[15]!==r||n[16]!==o||n[17]!==a||n[18]!==l||n[19]!==d?(e=(e,t)=>{let n=i+t,s=l(e),u=o?o(e,n):n;return(0,g.jsx)(cJ,{style:{top:n*(a+d[r])},children:s},u)},n[14]=i,n[15]=r,n[16]=o,n[17]=a,n[18]=l,n[19]=d,n[20]=e):e=n[20],t=s.slice(i,u).map(e),n[5]=i,n[6]=r,n[7]=o,n[8]=a,n[9]=s,n[10]=l,n[11]=d,n[12]=u,n[13]=t}else t=n[13];return t}(v);return S[35]!==L?(w={height:L},S[35]=L,S[36]=w):w=S[36],S[37]!==D||S[38]!==w?(x=(0,g.jsx)("div",{ref:A,style:w,children:D}),S[37]=D,S[38]=w,S[39]=x):x=S[39],S[40]!==$||S[41]!==o||S[42]!==x?(k=(0,g.jsx)(cZ,{as:$,"data-ui":"VirtualList",...o,ref:C,children:x}),S[40]=$,S[41]=o,S[42]=x,S[43]=k):k=S[43],k}).displayName="ForwardRef(VirtualList)";let c0=[0,0,0,0],c1={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"]},c2=(0,y.I4)(lT.create(u5)).withConfig({displayName:"MotionCard",componentId:"sc-ihg31s-0"})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`,c3=(0,y.I4)(lT.create(uG)).withConfig({displayName:"MotionFlex",componentId:"sc-ihg31s-1"})`will-change:opacity;`,c5=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,b,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P=eD.c(66);P[0]!==e?({__unstable_margins:l,animate:n,arrow:i,arrowRef:r,arrowX:o,arrowY:a,children:s,padding:h,placement:f,originX:d,originY:u,overflow:c,radius:p,scheme:b,shadow:y,strategy:v,style:w,tone:x,width:k,x:S,y:$,...m}=e,P[0]=e,P[1]=n,P[2]=i,P[3]=r,P[4]=o,P[5]=a,P[6]=s,P[7]=l,P[8]=d,P[9]=u,P[10]=c,P[11]=h,P[12]=f,P[13]=p,P[14]=m,P[15]=b,P[16]=y,P[17]=v,P[18]=w,P[19]=x,P[20]=k,P[21]=S,P[22]=$):(n=P[1],i=P[2],r=P[3],o=P[4],a=P[5],s=P[6],l=P[7],d=P[8],u=P[9],c=P[10],h=P[11],f=P[12],p=P[13],m=P[14],b=P[15],y=P[16],v=P[17],w=P[18],x=P[19],k=P[20],S=P[21],$=P[22]);let{zIndex:V}=cB(),z=l||c0,L=(S??0)+z[3],N=($??0)+z[0],O=n?"transform":void 0;P[23]!==d||P[24]!==u||P[25]!==v||P[26]!==w||P[27]!==O||P[28]!==k||P[29]!==L||P[30]!==N||P[31]!==V?(R={left:L,originX:d,originY:u,position:v,top:N,width:k,zIndex:V,willChange:O,...w},P[23]=d,P[24]=u,P[25]=v,P[26]=w,P[27]=O,P[28]=k,P[29]=L,P[30]=N,P[31]=V,P[32]=R):R=P[32];let D=R,B=null!==o?o:void 0,F=null!==a?a:void 0;P[33]!==B||P[34]!==F?(T={left:B,top:F,right:void 0,bottom:void 0},P[33]=B,P[34]=F,P[35]=T):T=P[35];let H=T,W=m;return P[36]!==n?(E=n?["hidden","initial"]:void 0,P[36]=n,P[37]=E):E=P[37],P[38]!==n?(C=n?["visible","scaleIn"]:void 0,P[38]=n,P[39]=C):C=P[39],P[40]!==n?(A=n?["hidden","scaleOut"]:void 0,P[40]=n,P[41]=A):A=P[41],P[42]!==s||P[43]!==h?(_=(0,g.jsx)(uG,{direction:"column",flex:1,padding:h,children:s}
687),P[42]=s,P[43]=h,P[44]=_):_=P[44],P[45]!==c||P[46]!==_?(j=(0,g.jsx)(c3,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:c,variants:dv,transition:dw,children:_}),P[45]=c,P[46]=_,P[47]=j):j=P[47],P[48]!==i||P[49]!==r||P[50]!==H?(M=i&&(0,g.jsx)(cj,{ref:r,style:H,width:19,height:8,radius:2}),P[48]=i,P[49]=r,P[50]=H,P[51]=M):M=P[51],P[52]!==f||P[53]!==p||P[54]!==t||P[55]!==D||P[56]!==b||P[57]!==y||P[58]!==j||P[59]!==M||P[60]!==W||P[61]!==E||P[62]!==C||P[63]!==A||P[64]!==x?(I=(0,g.jsxs)(c2,{"data-ui":"Popover",...W,"data-placement":f,radius:p,ref:t,scheme:b,shadow:y,sizing:"border",style:D,tone:x,variants:dy,transition:dw,initial:E,animate:C,exit:A,children:[j,M]}),P[52]=f,P[53]=p,P[54]=t,P[55]=D,P[56]=b,P[57]=y,P[58]=j,P[59]=M,P[60]=W,P[61]=E,P[62]=C,P[63]=A,P[64]=x,P[65]=I):I=P[65],I});c5.displayName="ForwardRef(PopoverCard)";let c4=()=>{let e,t=eD.c(2),{zIndex:n}=cB();return t[0]!==n?(e=(0,g.jsx)("div",{style:{height:"100vh",inset:0,position:"fixed",width:"100vw",zIndex:n}}),t[0]=n,t[1]=e):e=t[1],e},c6=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O,D,B,F,H,W,U,Y,X,G,q,K,Z,J,Q,ee,et,en,ei,er,eo,ea,es=eD.c(126),{container:el,layer:ed}=dL(),eu=cV();
687if(es[0]!==e){let{__unstable_margins:t,animate:g,arrow:b,boundaryElement:I,children:P,constrainSize:V,content:z,disabled:L,fallbackPlacements:N,matchReferenceWidth:O,floatingBoundary:D,modal:B,onActivate:F,open:H,overflow:W,padding:U,placement:Y,placementStrategy:X,portal:G,preventOverflow:q,radius:K,referenceBoundary:Z,referenceElement:J,scheme:Q,shadow:ee,tone:et,width:en,zOffset:ei,updateRef:er,...eo}=e;w=t,x=g,$=b,n=I,s=P,R=V,l=z,d=L,i=N,u=O,r=D,c=B,h=H,T=W,f=U,E=Y,C=X,p=G,A=q,_=K,o=Z,m=J,v=Q,j=ee,k=et,S=en,a=ei,M=er,y=eo,es[0]=e,es[1]=n,es[2]=i,es[3]=r,es[4]=o,es[5]=a,es[6]=s,es[7]=l,es[8]=d,es[9]=u,es[10]=c,es[11]=h,es[12]=f,es[13]=p,es[14]=m,es[15]=y,es[16]=v,es[17]=w,es[18]=x,es[19]=k,es[20]=S,es[21]=$,es[22]=R,es[23]=T,es[24]=E,es[25]=C,es[26]=A,es[27]=_,es[28]=j,es[29]=M}else n=es[1],i=es[2],r=es[3],o=es[4],a=es[5],s=es[6],l=es[7],d=es[8],u=es[9],c=es[10],h=es[11],f=es[12],p=es[13],m=es[14],y=es[15],v=es[16],w=es[17],x=es[18],k=es[19],S=es[20],$=es[21],R=es[22],T=es[23],E=es[24],C=es[25],A=es[26],_=es[27],j=es[28],M=es[29];let ec=void 0===w?c0:w,eh=void 0!==x&&x,ef=void 0!==$&&$,ep=void 0!==R&&R,em=void 0===T?"hidden":T,eg=void 0===E?"bottom":E,eb=void 0===C?"flip":C,ey=void 0===A||A,ev=void 0===_?3:_,ew=void 0===j?3:j,ex=void 0===k?"inherit":k,ek=void 0===S?"auto":S,eS=n??eu?.element,e$=i??c1[e.placement??"bottom"],eR=r??e.boundaryElement??eu.element,eT=o??e.boundaryElement??eu.element,eE=a??ed.popover.zOffset,eC=!ca()&&eh,eA=ce(eS)?.border;es[30]!==f?(I=dE(f),es[30]=f,es[31]=I):I=es[31];let e_=I;es[32]!==ev?(P=dE(ev),es[32]=ev,es[33]=P):P=es[33];let ej=P;es[34]!==ew?(V=dE(ew),es[34]=ew,es[35]=V):V=es[35];let eM=V,eI=dE(ek);es[36]!==eE?(z=dE(eE),es[36]=eE,es[37]=z):z=es[37];let eP=z,eV=(0,b.useRef)(null),ez=(0,b.useRef)(null);es[38]===Symbol.for("react.memo_cache_sentinel")?(L=()=>eV.current,es[38]=L):L=es[38],(0,b.useImperativeHandle)(t,L);let eL=cr(),eN=ep||ey?eA?.width:void 0,eO=function(e){let{container:t,mediaIndex:n,width:i}=e,r=i[n],o=void 0===r?i[i.length-1]:r;return"number"==typeof o?t[o]:void 0}({container:el,mediaIndex:eL,width:eI}),eB=(0,b.useRef)(eO);es[39]!==eO?(N=()=>{eB.current=eO},O=[eO],es[39]=eO,es[40]=N,es[41]=O):(N=es[40],O=es[41]),(0,b.useEffect)(N,O),es[42]!==eN||es[43]!==eO?(D=function(e){let{boundaryWidth:t,currentWidth:n}=e;if(void 0!==n||void 0!==t)return Math.min(n??1/0,(t||1/0)-8)}({boundaryWidth:eN,currentWidth:eO}),es[42]=eN,es[43]=eO,es[44]=D):D=es[44];let eF=D,eH=(0,b.useRef)(eF);es[45]!==eF?(B=()=>{eH.current=eF},F=[eF],es[45]=eF,es[46]=B,es[47]=F):(B=es[46],F=es[47]),(0,b.useEffect)(B,F);let eW=(0,b.useRef)(void 0);es[48]!==u||es[49]!==eF||es[50]!==h||es[51]!==eO?(H=()=>{let e=eV.current;if(!h||!e)return;let t=eW.current;u?void 0!==t&&(e.style.width=`${t}px`):void 0!==eO&&(e.style.width=`${eO}px`),"number"==typeof eF&&(e.style.maxWidth=`${eF}px`)},W=[eO,u,eF,h],es[48]=u,es[49]=eF,es[50]=h,es[51]=eO,es[52]=H,es[53]=W):(H=es[52],W=es[53]),(0,b.useEffect)(H,W);let[eU,eY]=(0,b.useState)(void 0);es[54]!==eC||es[55]!==ef||es[56]!==ep||es[57]!==e$||es[58]!==eR||es[59]!==ec||es[60]!==u||es[61]!==eg||es[62]!==eb||es[63]!==ey||es[64]!==eT?(U={animate:eC,arrowProp:ef,arrowRef:ez,constrainSize:ep,fallbackPlacements:e$,floatingBoundary:eR,margins:ec,matchReferenceWidth:u,maxWidthRef:eH,placementProp:eg,placementStrategy:eb,preventOverflow:ey,referenceBoundary:eT,referenceWidthRef:eW,rootBoundary:"viewport",setReferenceWidth:eY,widthRef:eB},es[54]=eC,es[55]=ef,es[56]=ep,es[57]=e$,es[58]=eR,es[59]=ec,es[60]=u,es[61]=eg,es[62]=eb,es[63]=ey,es[64]=eT,es[65]=U):U=es[65];let eX=function(e){let t,n=eD.c(42),{animate:i,arrowProp:r,arrowRef:o,constrainSize:a,fallbackPlacements:s,floatingBoundary:l,margins:d,matchReferenceWidth:u,maxWidthRef:c,placementProp:h,placementStrategy:f,preventOverflow:p,referenceBoundary:m,referenceWidthRef:g,rootBoundary:b,setReferenceWidth:y,widthRef:v}=e;if(n[0]!==i||n[1]!==r||n[2]!==o||n[3]!==a||n[4]!==s||n[5]!==l||n[6]!==d||n[7]!==u||n[8]!==c||n[9]!==h||n[10]!==f||n[11]!==p||n[12]!==m||n[13]!==g||n[14]!==b||n[15]!==y||n[16]!==v){var w,x,k,S,$,R;let e,T,E;if(t=[],a||p)if("autoPlacement"===f){let e,i;n[18]!==s||n[19]!==h?(e={name:(i={name:"autoPlacement",options:k=w={allowedPlacements:[h].concat(s)},async fn(e){var t,n,i,r;let{rects:o,middlewareData:a,placement:s,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:c,allowedPlacements:h=eZ,autoAlignment:f=!0,...p}=e5(k,e),m=void 0!==c||h===eZ?((r=c||null)?[...h.filter(e=>e6(e)===r),...h.filter(e=>e6(e)!==r)]:h.filter(e=>e4(e)===e)).filter(e=>!r||e6(e)===r||!!f&&tt(e)!==e):h,g=await l.detectOverflow(e,p),b=(null==(t=a.autoPlacement)?void 0:t.index)||0,y=m[b];if(null==y)return{};let v=te(y,o,await (null==l.isRTL?void 0:l.isRTL(d.floating)));if(s!==y)return{reset:{placement:m[0]}};let w=[g[e4(y)],g[v[0]],g[v[1]]],x=[...(null==(n=a.autoPlacement)?void 0:n.overflows)||[],{placement:y,overflows:w}],S=m[b+1];if(S)return{data:{index:b+1,overflows:x},reset:{placement:S}};let $=x.map(e=>{let t=e6(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce((e,t)=>
687e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),R=(null==(i=$.filter(e=>e[2].slice(0,e6(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||$[0][0];return R!==s?{data:{index:b+1,overflows:x},reset:{placement:R}}:{}}}).name,fn:i.fn,options:[w,x]},n[18]=s,n[19]=h,n[20]=e):e=n[20],t.push(e)}else{let e,i=l||void 0;n[21]!==s||n[22]!==b||n[23]!==i?(e=t9({boundary:i,fallbackPlacements:s,padding:4,rootBoundary:b}),n[21]=s,n[22]=b,n[23]=i,n[24]=e):e=n[24],t.push(e)}if(n[25]===Symbol.for("react.memo_cache_sentinel")?(e=t6({mainAxis:4}),n[25]=e):e=n[25],t.push(e),a||u){let e,i=l||void 0;n[26]!==a||n[27]!==d||n[28]!==u||n[29]!==c||n[30]!==g||n[31]!==y||n[32]!==i||n[33]!==v?(e=function(e){let{constrainSize:t,margins:n,matchReferenceWidth:i,maxWidthRef:r,padding:o=0,referenceWidthRef:a,setReferenceWidth:s,widthRef:l}=e;return{name:"@sanity/ui/size",async fn(d){let{elements:u,placement:c,platform:h,rects:f}=d,{floating:p,reference:m}=f,g=await tu(d,{altBoundary:!0,boundary:e.boundaryElement||void 0,elementContext:"floating",padding:o,rootBoundary:"viewport"}),b=1/0,y=1/0,v=p.width,w=p.height;c.includes("top")&&(b=v-(g.left+g.right),y=w-g.top),c.includes("right")&&(b=v-g.right,y=w-(g.top+g.bottom)),c.includes("bottom")&&(b=v-(g.left+g.right),y=w-g.bottom),c.includes("left")&&(b=v-g.left,y=w-(g.top+g.bottom));let x=b-n[1]-n[3],k=y-n[0]-n[2],S=m.width-n[1]-n[3];a.current=S,s(S),i?u.floating.style.width=`${S}px`:void 0!==l.current&&(u.floating.style.width=`${l.current}px`),t&&(u.floating.style.maxWidth=`${Math.min(x,r.current??1/0)}px`,u.floating.style.maxHeight=`${k}px`);let $=await h.getDimensions(u.floating),R=$.height;return v!==$.width||w!==R?{reset:{rects:!0}}:{}}}}({boundaryElement:i,constrainSize:a,margins:d,matchReferenceWidth:u,maxWidthRef:c,padding:4,referenceWidthRef:g,setReferenceWidth:y,widthRef:v}),n[26]=a,n[27]=d,n[28]=u,n[29]=c,n[30]=g,n[31]=y,n[32]=i,n[33]=v,n[34]=e):e=n[34],t.push(e)}if(p){let e,i=l||void 0;n[35]!==b||n[36]!==i?(e=t7({boundary:i,rootBoundary:b,padding:4}),n[35]=b,n[36]=i,n[37]=e):e=n[37],t.push(e)}if(r){let e;n[38]!==o?(e=t8({element:o,padding:4}),n[38]=o,n[39]=e):e=n[39],t.push(e)}i&&t.push(c$);let C=m||void 0;n[40]!==C?(T={name:(E={name:"hide",options:R=S={boundary:C,padding:4,strategy:"referenceHidden"},async fn(e){let{rects:t,platform:n}=e,{strategy:i="referenceHidden",...r}=e5(R,e);switch(i){case"referenceHidden":{let i=th(await n.detectOverflow(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:tf(i)}}}case"escaped":{let i=th(await n.detectOverflow(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:i,escaped:tf(i)}}}default:return{}}}}).name,fn:E.fn,options:[S,$]},n[40]=C,n[41]=T):T=n[41],t.push(T),n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n[6]=d,n[7]=u,n[8]=c,n[9]=h,n[10]=f,n[11]=p,n[12]=m,n[13]=g,n[14]=b,n[15]=y,n[16]=v,n[17]=t}else t=n[17];return t}(U);es[66]!==m?(Y=m?{reference:m}:void 0,es[66]=m,es[67]=Y):Y=es[67],es[68]!==eX||es[69]!==eg||es[70]!==Y?(X={middleware:eX,placement:eg,whileElementsMounted:tJ,elements:Y},es[68]=eX,es[69]=eg,es[70]=Y,es[71]=X):X=es[71];let{x:eG,y:eq,middlewareData:eK,placement:eJ,refs:eQ,strategy:e0,update:e1}=t4(X),e2=eK.hide?.referenceHidden,e3=eK.arrow?.x,e7=eK.arrow?.y,e9=eK["@sanity/ui/origin"]?.originX,e8=eK["@sanity/ui/origin"]?.originY;es[72]===Symbol.for("react.memo_cache_sentinel")?(G=e=>{ez.current=e},es[72]=G):G=es[72];let tn=G;es[73]!==eQ?(q=e=>{eV.current=e,eQ.setFloating(e)},es[73]=eQ,es[74]=q):q=es[74];let ti=q;es[75]!==s?(K=s?cQ(s):null,es[75]=s,es[76]=K):K=es[76],es[77]!==eQ.reference.current?(Z=()=>eQ.reference.current,es[77]=eQ.reference.current,es[78]=Z):Z=es[78],(0,b.useImperativeHandle)(K,Z);e:{let e;if(m){J=s;break e}if(!s){J=null;break e}es[79]!==s||es[80]!==eQ.setReference?(e=(0,b.cloneElement)(s,{ref:eQ.setReference}),es[79]=s,es[80]=eQ.setReference,es[81]=e):e=es[81],J=e}let tr=J;if(es[82]!==e1?(Q=()=>e1,ee=[e1],es[82]=e1,es[83]=Q,es[84]=ee):(Q=es[83],ee=es[84]),(0,b.useImperativeHandle)(M,Q,ee),d){let e;return es[85]!==s?(e=s||(0,g.jsx)(g.Fragment,{}),es[85]=s,es[86]=e):e=es[86],e}es[87]!==c?(et=c&&(0,g.jsx)(c4,{}),es[87]=c,es[88]=et):et=es[88];let to=u?eU:eO;es[89]!==eC||es[90]!==ef||es[91]!==e3||es[92]!==e7||es[93]!==l||es[94]!==ec||es[95]!==e9||es[96]!==e8||es[97]!==em||es[98]!==e_||es[99]!==eJ||es[100]!==ej||es[101]!==e2||es[102]!==y||es[103]!==v||es[104]!==ti||es[105]!==eM||es[106]!==e0||es[107]!==to||es[108]!==ex||es[109]!==eG||es[110]!==eq?(en=(0,g.jsx)(c5,{...y,__unstable_margins:ec,animate:eC,arrow:ef,arrowRef:tn,arrowX:e3,arrowY:e7,hidden:e2,overflow:em,padding:e_,placement:eJ,radius:ej,ref:ti,scheme:v,shadow:eM,originX:e9,originY:e8,strategy:e0,tone:ex,width:to,x:eG,y:eq,children:l}),es[89]=eC,es[90]=ef,es[91]=e3,es[92]=e7,es[93]=l,es[94]=ec,es[95]=e9,es[96]=e8,es[97]=em,es[98]=e_,es[99]=eJ,es[100]=ej,es[101]=e2,es[102]=y,es[103]=v,es[104]=ti,es[105]=eM,es[106]=e0,es[107]=to,es[108]=ex,es[109]=eG,es[110]=eq,es[111]=en):en=es[111],es[112]!==et||es[113]!==en||es[114]!==eP?(ei=(0,g.jsxs)(cN,{zOffset:eP,children:[et,en]}),es[112]=et,es[113]=en,es[114]=eP,es[115]=ei):ei=es[115];let ta=ei;es[116]!==h||es[117]!==ta||es[118]!==p?(er=h&&(p?(0,g.jsx)(cq,{__unstable_name:"string"==typeof p?p:void 0,children:ta}):ta),es[116]=h,es[117]=ta,es[118]=p,es[119]=er):er=es[119];let ts=er;return es[120]!==eC||es[121]!==ts?(eo=eC?(0,g.jsx)(s_,{children:ts}
687):ts,es[120]=eC,es[121]=ts,es[122]=eo):eo=es[122],es[123]!==tr||es[124]!==eo?(ea=(0,g.jsxs)(g.Fragment,{children:[eo,tr]}),es[123]=tr,es[124]=eo,es[125]=ea):ea=es[125],ea});c6.displayName="ForwardRef(Popover)";let c7=y.I4.div.withConfig({displayName:"StyledRadio",componentId:"sc-ccrwkf-0"})(function(){return(0,y.AH)`
688    position: relative;
689
690    &:not([hidden]) {
691      display: inline-block;
692    }
693
694    &[data-read-only] {
695      outline: 1px solid red;
696    }
697  `}),c9=y.I4.input.withConfig({displayName:"Input",componentId:"sc-ccrwkf-1"})(function(e){let{color:t,input:n}=F(e.theme),i=(n.radio.size-n.radio.markSize)/2;return(0,y.AH)`
698    appearance: none;
699    position: absolute;
700    top: 0;
701    left: 0;
702    opacity: 0;
703    height: 100%;
704    width: 100%;
705    outline: none;
706    z-index: 1;
707    padding: 0;
708    margin: 0;
709    border-radius: ${dR(n.radio.size/2)};
710    border: none;
711
712    /* enabled */
713    & + span {
714      display: block;
715      position: relative;
716      height: ${dR(n.radio.size)};
717      width: ${dR(n.radio.size)};
718      border-radius: ${dR(n.radio.size/2)};
719      background: ${t.input.default.enabled.bg};
720      box-shadow: ${d4({color:t.input.default.enabled.border,width:n.border.width})};
721
722      &::after {
723        content: '';
724        position: absolute;
725        top: ${dR(i)};
726        left: ${dR(i)};
727        height: ${dR(n.radio.markSize)};
728        width: ${dR(n.radio.markSize)};
729        border-radius: ${dR(n.radio.markSize/2)};
730        background: ${t.input.default.enabled.fg};
731        opacity: 0;
732      }
733    }
734
735    /* focused */
736    &:not(:disabled):focus + span {
737      box-shadow: ${d6({border:{width:n.border.width,color:t.input.default.enabled.border},focusRing:n.radio.focusRing})};
738    }
739
740    &:not(:disabled):focus:not(:focus-visible) + span {
741      box-shadow: ${d4({color:t.input.default.enabled.border,width:n.border.width})};
742    }
743
744    &:checked + span::after {
745      opacity: 1;
746    }
747
748    /* customValidity */
749    &[data-error] + span {
750      background-color: ${t.input.invalid.enabled.border};
751      box-shadow: ${d4({width:n.border.width,color:t.input.invalid.enabled.muted.bg})};
752      &::after {
753        background: ${t.input.invalid.enabled.muted.bg};
754      }
755    }
756
757    /* read only */
758    &[data-read-only] + span {
759      box-shadow: 0 0 0 1px ${t.input.default.readOnly.border};
760      background: ${t.input.default.readOnly.bg};
761
762      &::after {
763        background: ${t.input.default.readOnly.border};
764      }
765    }
766
767    /* disabled */
768    &:not([data-read-only]):disabled + span {
769      box-shadow: 0 0 0 1px ${t.input.default.disabled.border};
770      background: ${t.input.default.disabled.bg};
771
772      &::after {
773        background: ${t.input.default.disabled.border};
774      }
775    }
776  `});function c8(e){let{font:t}=F(e.theme);return(0,y.AH)`
777    -webkit-font-smoothing: antialiased;
778    appearance: none;
779    border: 0;
780    font-family: ${t.text.family};
781    color: inherit;
782    width: 100%;
783    outline: none;
784    margin: 0;
785
786    &:disabled {
787      opacity: 1;
788    }
789  `}function he(e){let{color:t,input:n}=F(e.theme);return(0,y.AH)`
790    /* enabled */
791    background-color: ${t.input.default.enabled.bg};
792    color: ${t.input.default.enabled.fg};
793    box-shadow: ${d4({color:t.input.default.enabled.border,width:n.border.width})};
794
795    /* hovered */
796    @media (hover: hover) {
797      &:not(:disabled):hover {
798        background-color: ${t.input.default.hovered.bg};
799        color: ${t.input.default.hovered.fg};
800        box-shadow: ${d4({color:t.input.default.hovered.border,width:n.border.width})};
801      }
802    }
803
804    /* focused */
805    &:not(:disabled):focus {
806      box-shadow: ${d6({border:{width:n.border.width,color:t.input.default.enabled.border},focusRing:n.select.focusRing})};
807    }
808
809    /* read-only */
810    &[data-read-only] {
811      background-color: ${t.input.default.readOnly.bg};
812      color: ${t.input.default.readOnly.fg};
813      box-shadow: ${d4({color:t.input.default.readOnly.border,width:n.border.width})};
814    }
815
816    /* disabled */
817    &:not([data-read-only]):disabled {
818      background-color: ${t.input.default.disabled.bg};
819      color: ${t.input.default.disabled.fg};
820      box-shadow: ${d4({color:t.input.default.disabled.border,width:n.border.width})};
821    }
822  `}function ht(e){let{$fontSize:t}=e,{font:n,media:i}=F(e.theme);return dT(i,t,e=>{var t;return{fontSize:dR((t=n.text.sizes[e]||n.text.sizes[2]).fontSize),lineHeight:`${dR(t.lineHeight)}`}})}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h=eD.c(19);h[0]!==e?({className:n,disabled:r,style:s,customValidity:i,readOnly:o,...a}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=o,h[5]=a,h[6]=s):(n=h[1],i=h[2],r=h[3],o=h[4],a=h[5],s=h[6]);let f=(0,b.useRef)(null);h[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>f.current,h[7]=l):l=h[7],(0,b.useImperativeHandle)(t,l),u7(f,i);let p=!r&&o?"":void 0,m=i?"":void 0,y=r||o;return h[8]!==o||h[9]!==a||h[10]!==p||h[11]!==m||h[12]!==y?(d=(0,g.jsx)(c9,{"data-read-only":p,"data-error":m,...a,disabled:y,readOnly:o,ref:f,type:"radio"}),h[8]=o,h[9]=a,h[10]=p,h[11]=m,h[12]=y,h[13]=d):d=h[13],h[14]===Symbol.for("react.memo_cache_sentinel")?(u=(0,g.jsx)("span",{}),h[14]=u):u=h[14],h[15]!==n||h[16]!==s||h[17]!==d?(c=(0,g.jsxs)(c7,{className:n,"data-ui":"Radio",style:s,children:[d,u]}),h[15]=n,h[16]=s,h[17]=d,h[18]=c):c=h[18],c}).displayName="ForwardRef(Radio)";let hn=y.I4.div.withConfig({displayName:"StyledSelect",componentId:"sc-5mxno7-0"})(function(){return(0,y.AH)`
823    position: relative;
824    width: -moz-available;
825    width: -webkit-fill-available;
826    width: stretch;
827
828    &:not([hidden]) {
829      display: inline-block;
830    }
831  `}),hi=y.I4.select.withConfig({displayName:"Input",componentId:"sc-5mxno7-1"})(function(){return[u$,c8,he,ht,ub]}),hr=(0,y.I4)(uH).withConfig({displayName:"IconBox",componentId:"sc-5mxno7-2"}
831)(function(e){let{color:t}=F(e.theme);return(0,y.AH)`
832    pointer-events: none;
833    position: absolute;
834    top: 0;
835    right: 0;
836
837    /* enabled */
838    --card-fg-color: ${t.input.default.enabled.fg};
839
840    /* hover */
841    @media (hover: hover) {
842      select:not(disabled):not(:read-only):hover + && {
843        --card-fg-color: ${t.input.default.hovered.fg};
844      }
845    }
846
847    /* disabled */
848    select:disabled + && {
849      --card-fg-color: ${t.input.default.disabled.fg};
850    }
851
852    /* read-only */
853    select[data-read-only] + && {
854      --card-fg-color: ${t.input.default.readOnly.fg};
855    }
856  `});(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$=eD.c(38);$[0]!==e?({children:n,customValidity:i,disabled:r,fontSize:l,gap:o,padding:d,radius:u,readOnly:a,space:c,...s}=e,$[0]=e,$[1]=n,$[2]=i,$[3]=r,$[4]=o,$[5]=a,$[6]=s,$[7]=l,$[8]=d,$[9]=u,$[10]=c):(n=$[1],i=$[2],r=$[3],o=$[4],a=$[5],s=$[6],l=$[7],d=$[8],u=$[9],c=$[10]);let R=void 0===l?2:l,T=void 0===d?3:d,E=void 0===u?2:u,C=void 0===o?void 0===c?3:c:o,A=(0,b.useRef)(null);$[11]===Symbol.for("react.memo_cache_sentinel")?(h=()=>A.current,$[11]=h):h=$[11],(0,b.useImperativeHandle)(t,h),u7(A,i);let _=!r&&a?"":void 0;$[12]!==R?(f=dE(R),$[12]=R,$[13]=f):f=$[13],$[14]!==T?(p=dE(T),$[14]=T,$[15]=p):p=$[15],$[16]!==E?(m=dE(E),$[16]=E,$[17]=m):m=$[17],$[18]!==C?(y=dE(C),$[18]=C,$[19]=y):y=$[19];let j=r||a;return $[20]!==n||$[21]!==s||$[22]!==j||$[23]!==_||$[24]!==f||$[25]!==p||$[26]!==m||$[27]!==y?(v=(0,g.jsx)(hi,{"data-read-only":_,"data-ui":"Select",...s,$fontSize:f,$padding:p,$radius:m,$space:y,disabled:j,ref:A,children:n}),$[20]=n,$[21]=s,$[22]=j,$[23]=_,$[24]=f,$[25]=p,$[26]=m,$[27]=y,$[28]=v):v=$[28],$[29]===Symbol.for("react.memo_cache_sentinel")?(w=(0,g.jsx)(eY,{}),$[29]=w):w=$[29],$[30]!==R?(x=(0,g.jsx)(uU,{size:R,children:w}),$[30]=R,$[31]=x):x=$[31],$[32]!==T||$[33]!==x?(k=(0,g.jsx)(hr,{padding:T,children:x}),$[32]=T,$[33]=x,$[34]=k):k=$[34],$[35]!==v||$[36]!==k?(S=(0,g.jsxs)(hn,{"data-ui":"Select",children:[v,k]}),$[35]=v,$[36]=k,$[37]=S):S=$[37],S}).displayName="ForwardRef(Select)";let ho={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"},ha=(0,y.I4)(uH).withConfig({displayName:"StyledStack",componentId:"sc-8dpfq2-0"})(function(){return ho},function(e){let{media:t,space:n}=F(e.theme);return dT(t,e.$space,e=>({gridGap:dR(n[e])}))}),hs=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l=eD.c(13);l[0]!==e?({as:n,gap:r,space:i,...o}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=r,l[4]=o):(n=l[1],i=l[2],r=l[3],o=l[4]);let d=void 0===r?i:r,u="string"==typeof n?n:void 0;return l[5]!==d?(a=dE(d),l[5]=d,l[6]=a):a=l[6],l[7]!==n||l[8]!==t||l[9]!==o||l[10]!==u||l[11]!==a?(s=(0,g.jsx)(ha,{"data-as":u,"data-ui":"Stack",...o,$space:a,forwardedAs:n,ref:t}),l[7]=n,l[8]=t,l[9]=o,l[10]=u,l[11]=a,l[12]=s):s=l[12],s});hs.displayName="ForwardRef(Stack)";let hl=y.I4.span.withConfig({displayName:"StyledSwitch",componentId:"sc-dw1foe-0"})(function(){return(0,y.AH)`
857    position: relative;
858    &:not([hidden]) {
859      display: inline-block;
860    }
861  `}),hd=y.I4.input.withConfig({displayName:"Input",componentId:"sc-dw1foe-1"})(function(){return(0,y.AH)`
862    position: absolute;
863    top: 0;
864    right: 0;
865    bottom: 0;
866    left: 0;
867    opacity: 0;
868    height: 100%;
869    width: 100%;
870    outline: none;
871    padding: 0;
872    margin: 0;
873
874    /* Place the input element above the representation element */
875    z-index: 1;
876  `}),hu=y.I4.span.withConfig({displayName:"Representation",componentId:"sc-dw1foe-2"})(function(e){let{color:t,input:n}=F(e.theme);return(0,y.AH)`
877    --switch-bg-color: ${t.input.default.enabled.border};
878    --switch-fg-color: ${t.input.default.enabled.bg};
879    --switch-box-shadow: none;
880
881    &:not([hidden]) {
882      display: block;
883    }
884    position: relative;
885    width: ${dR(n.switch.width)};
886    height: ${dR(n.switch.height)};
887    border-radius: ${dR(n.switch.height/2)};
888
889    /* Make sure it’s not possible to interact with the wrapper element */
890    pointer-events: none;
891
892    &:after {
893      content: '';
894      display: block;
895      position: absolute;
896      top: 0;
897      left: 0;
898      right: 0;
899      bottom: 0;
900      z-index: 1;
901      box-shadow: var(--switch-box-shadow);
902      border-radius: inherit;
903    }
904
905    /* Focus styles */
906    input:focus + && {
907      --switch-box-shadow: ${d6({focusRing:n.switch.focusRing})};
908    }
909
910    input:focus:not(:focus-visible) + && {
911      --switch-box-shadow: none;
912    }
913
914    input:checked + && {
915      --switch-bg-color: ${t.input.default.enabled.fg};
916      --switch-fg-color: ${t.input.default.enabled.bg};
917    }
918
919    @media (hover: hover) {
920      input:not(:disabled):hover + && {
921        --switch-bg-color: ${t.input.default.hovered.border};
922        --switch-fg-color: ${t.input.default.hovered.bg};
923      }
924
925      input:not(:disabled):checked:hover + && {
926        --switch-bg-color: ${t.input.default.enabled.fg};
927        --switch-fg-color: ${t.input.default.enabled.bg};
928      }
929    }
930
931    input:not([data-read-only]):disabled + && {
932      --switch-bg-color: ${t.input.default.disabled.border};
933      --switch-fg-color: ${t.input.default.disabled.bg};
934    }
935
936    input[data-read-only]:disabled + && {
937      --switch-bg-color: ${t.input.default.readOnly.border};
938      --switch-fg-color: ${t.input.default.readOnly.bg};
939    }
940
941    input:checked[data-read-only]:disabled + && {
942      --switch-bg-color: ${t.input.default.readOnly.fg};
943      --switch-fg-color: ${t.input.default.readOnly.bg};
944    }
945  `}),hc=y.I4.span.withConfig({displayName:"Track",componentId:"sc-dw1foe-3"})(function(e){let{input:t}=F(e.theme);return(0,y.AH)`
946    &:not([hidden]) {
947      display: block;
948    }
949    background-color: var(--switch-bg-color);
950    position: absolute;
951    left: 0;
952    top: 0;
953    width: ${dR(t.switch.width)};
954    height: ${dR(t.switch.height)};
955    border-radius: ${dR(t.switch.height/2)};
956  `}),hh=y.I4.span.withConfig({displayName:"Thumb",componentId:"sc-dw1foe-4"})(function(e){let{$indeterminate:t}=e,{input:n}=F(e.theme),i=n.switch.width,r=n.switch.height,o=n.switch.padding,a=r-2*n.switch.padding,s=i-2*o-a,l=i/2-a/2-o,d=!0!==t&&!0===e.$checked;return(0,y.AH)`
957    &:not([hidden]) {
958      display: block;
959    }
960    position: absolute;
961    left: ${dR(o)};
962    top: ${dR(o)};
963    height: ${dR(a)};
964    width: ${dR(a)};
965    border-radius: ${dR(a/2)};
966    transition-property: transform;
967    transition-duration: ${n.switch.transitionDurationMs}ms;
968    transition-timing-function: ${n.switch.transitionTimingFunction};
969    background: var(--switch-fg-color);
970    transform: translate3d(0, 0, 0);
971    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
972
973    ${d&&(0,y.AH)`
974      transform: translate3d(${s}px, 0, 0);
975    `}
976
977    ${t&&(0,y.AH)`
978      transform: translate3d(${l}px, 0, 0);
979    `}
980  `});(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y=eD.c(26);y[0]!==e?({checked:n,className:i,disabled:r,indeterminate:o,readOnly:a,style:l,...s}=e,y[0]=e,y[1]=n,y[2]=i,y[3]=r,y[4]=o,y[5]=a,y[6]=s,y[7]=l):(n=y[1],i=y[2],r=y[3],o=y[4],a=y[5],s=y[6],l=y[7]);let v=(0,b.useRef)(null);y[8]===Symbol.for("react.memo_cache_sentinel")?(d=()=>v.current,y[8]=d):d=y[8],(0,b.useImperativeHandle)(t,d),y[9]!==o?(u=()=>{v.current&&(v.current.indeterminate=o||!1)},c=[o],y[9]=o,y[10]=u,y[11]=c):(u=y[10],c=y[11]),(0,b.useEffect)(u,c);let w=!r&&a?"":void 0,x=!0!==o&&n,k=r||a;return y[12]!==s||y[13]!==w||y[14]!==x||y[15]!==k?(h=(0,g.jsx)(hd,{"data-read-only":w,...s,checked:x,disabled:k,type:"checkbox",ref:v}),y[12]=s,y[13]=w,y[14]=x,y[15]=k,y[16]=h):h=y[16],y[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,g.jsx)(hc,{}),y[17]=f):f=y[17],y[18]!==n||y[19]!==o?(p=(0,g.jsxs)(hu,{"aria-hidden":!0,"data-name":"representation",children:[f,(0,g.jsx)(hh,{$checked:n,$indeterminate:o})]}),y[18]=n,y[19]=o,y[20]=p):p=y[20],y[21]!==i||y[22]!==l||y[23]!==h||y[24]!==p?(m=(0,g.jsxs)(hl,{className:i,"data-ui":"Switch",style:l,children:[h,p]}),y[21]=i,y[22]=l,y[23]=h,y[24]=p,y[25]=m):m=y[25],m}).displayName="ForwardRef(Switch)";let hf=y.I4.span.withConfig({displayName:"StyledTextArea",componentId:"sc-1d6h1o8-0"})(uv),hp=y.I4.span.withConfig({displayName:"InputRoot",componentId:"sc-1d6h1o8-1"})`flex:1;min-width:0;display:block;position:relative;`,hm=y.I4.textarea.withConfig({displayName:"Input",componentId:"sc-1d6h1o8-2"})(ug,uw,ux),hg=y.I4.div.withConfig({displayName:"Presentation",componentId:"sc-1d6h1o8-3"})(u$,uk);(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x=eD.c(35);x[0]!==e?({border:o,customValidity:i,disabled:a,fontSize:s,padding:l,radius:d,weight:u,__unstable_disableFocusRing:n,...r}=e,x[0]=e,x[1]=n,x[2]=i,x[3]=r,x[4]=o,x[5]=a,x[6]=s,x[7]=l,x[8]=d,x[9]=u):(n=x[1],i=x[2],r=x[3],o=x[4],a=x[5],s=x[6],l=x[7],d=x[8],u=x[9]);let k=void 0===o||o,S=void 0!==a&&a,$=void 0===s?2:s,R=void 0===l?3:l,T=void 0===d?2:d,E=(0,b.useRef)(null),C=dV();x[10]===Symbol.for("react.memo_cache_sentinel")?(c=()=>E.current,x[10]=c):c=x[10],(0,b.useImperativeHandle)(t,c),u7(E,i);let A=C.scheme,_=C.tone;x[11]!==$?(h=dE($),x[11]=$,x[12]=h):h=x[12],x[13]!==R?(f=dE(R),x[13]=R,x[14]=f):f=x[14];let j=C.scheme;x[15]===Symbol.for("react.memo_cache_sentinel")?(p=dE(0),x[15]=p):p=x[15],x[16]!==S||x[17]!==r||x[18]!==C.scheme||x[19]!==C.tone||x[20]!==h||x[21]!==f||x[22]!==u?(m=(0,g.jsx)(hm,{"data-as":"textarea","data-scheme":A,"data-tone":_,...r,$fontSize:h,$padding:f,$scheme:j,$space:p,$tone:C.tone,$weight:u,disabled:S,ref:E}),x[16]=S,x[17]=r,x[18]=C.scheme,x[19]=C.tone,x[20]=h,x[21]=f,x[22]=u,x[23]=m):m=x[23],x[24]!==T?(y=dE(T),x[24]=T,x[25]=y):y=x[25];let M=k?"":void 0;return x[26]!==n||x[27]!==C.scheme||x[28]!==C.tone||x[29]!==y||x[30]!==M?(v=(0,g.jsx)(hg,{$radiu
980s:y,$unstableDisableFocusRing:n,$scheme:C.scheme,$tone:C.tone,"data-border":M,"data-scheme":C.scheme,"data-tone":C.tone}),x[26]=n,x[27]=C.scheme,x[28]=C.tone,x[29]=y,x[30]=M,x[31]=v):v=x[31],x[32]!==m||x[33]!==v?(w=(0,g.jsx)(hf,{"data-ui":"TextArea",children:(0,g.jsxs)(hp,{children:[m,v]})}),x[32]=m,x[33]=v,x[34]=w):w=x[34],w}).displayName="ForwardRef(TextArea)";let hb={zIndex:2},hy=(0,y.I4)(u5).attrs({forwardedAs:"span"}).withConfig({displayName:"StyledTextInput",componentId:"sc-h62wco-0"})(uv),hv=y.I4.span.withConfig({displayName:"InputRoot",componentId:"sc-h62wco-1"})`flex:1;min-width:0;display:block;position:relative;`,hw=(0,y.I4)(u5).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;}`,hx=(0,y.I4)(u5).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;}`,hk=y.I4.input.withConfig({displayName:"Input",componentId:"sc-h62wco-4"})(ug,uw,ux),hS=y.I4.span.withConfig({displayName:"Presentation",componentId:"sc-h62wco-5"})(u$,uk),h$=(0,y.I4)(uH).withConfig({displayName:"LeftBox",componentId:"sc-h62wco-6"})`position:absolute;top:0;left:0;`,hR=(0,y.I4)(uH).withConfig({displayName:"RightBox",componentId:"sc-h62wco-7"})`position:absolute;top:0;right:0;`,hT=(0,y.I4)(u5).withConfig({displayName:"RightCard",componentId:"sc-h62wco-8"})`background-color:transparent;position:absolute;top:0;right:0;`,hE=(0,y.I4)(u2).withConfig({displayName:"TextInputClearButton",componentId:"sc-h62wco-9"})({"&:not([hidden])":{display:"block"}}),hC=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O,D=eD.c(93);D[0]!==e?({__unstable_disableFocusRing:r,border:f,clearButton:o,disabled:p,fontSize:m,gap:s,icon:n,iconRight:i,onClear:l,padding:y,prefix:d,radius:v,readOnly:u,space:w,suffix:h,customValidity:a,type:x,weight:k,...c}=e,D[0]=e,D[1]=n,D[2]=i,D[3]=r,D[4]=o,D[5]=a,D[6]=s,D[7]=l,D[8]=d,D[9]=u,D[10]=c,D[11]=h,D[12]=f,D[13]=p,D[14]=m,D[15]=y,D[16]=v,D[17]=w,D[18]=x,D[19]=k):(n=D[1],i=D[2],r=D[3],o=D[4],a=D[5],s=D[6],l=D[7],d=D[8],u=D[9],c=D[10],h=D[11],f=D[12],p=D[13],m=D[14],y=D[15],v=D[16],w=D[17],x=D[18],k=D[19]);let B=void 0===f||f,F=void 0!==p&&p,H=void 0===m?2:m,W=void 0===y?3:y,U=void 0===v?2:v,Y=void 0===w?3:w,X=void 0===x?"text":x,G=(0,b.useRef)(null),q=dV();D[20]!==H?(S=dE(H),D[20]=H,D[21]=S):S=D[21];let K=S;D[22]!==W?($=dE(W),D[22]=W,D[23]=$):$=D[23];let Z=$;D[24]!==U?(R=dE(U),D[24]=U,D[25]=R):R=D[25];let J=R,Q=void 0===s?Y:s;D[26]!==Q?(T=dE(Q),D[26]=Q,D[27]=T):T=D[27];let ee=T,et=!!o,en=!!n,ei=!!i,er=!!h,eo=!!d;D[28]===Symbol.for("react.memo_cache_sentinel")?(E=()=>G.current,D[28]=E):E=D[28],(0,b.useImperativeHandle)(t,E),u7(G,a),D[29]!==l?(C=e=>{e.preventDefault(),e.stopPropagation(),l&&l(),G.current?.focus()},D[29]=l,D[30]=C):C=D[30];let ea=C;D[31]!==d||D[32]!==J?(A=d&&(0,g.jsx)(hw,{borderTop:!0,borderLeft:!0,borderBottom:!0,radius:J,sizing:"border",tone:"inherit",children:(0,g.jsx)("span",{children:d})}),D[31]=d,D[32]=J,D[33]=A):A=D[33];let es=A,el=B?"":void 0;D[34]!==n||D[35]!==K||D[36]!==Z?(_=n&&(0,g.jsx)(h$,{padding:Z,children:(0,g.jsxs)(uU,{size:K,children:[(0,b.isValidElement)(n)&&n,eH.isValidElementType(n)&&(0,g.jsx)(n,{})]})}),D[34]=n,D[35]=K,D[36]=Z,D[37]=_):_=D[37],D[38]!==et||D[39]!==i||D[40]!==K||D[41]!==Z?(j=!et&&i&&(0,g.jsx)(hR,{padding:Z,children:(0,g.jsxs)(uU,{size:K,children:[(0,b.isValidElement)(i)&&i,eH.isValidElementType(i)&&(0,g.jsx)(i,{})]})}),D[38]=et,D[39]=i,D[40]=K,D[41]=Z,D[42]=j):j=D[42],D[43]!==eo||D[44]!==er||D[45]!==r||D[46]!==J||D[47]!==q.scheme||D[48]!==q.tone||D[49]!==el||D[50]!==_||D[51]!==j?(M=(0,g.jsxs)(hS,{$hasPrefix:eo,$unstableDisableFocusRing:r,$hasSuffix:er,$radius:J,$scheme:q.scheme,$tone:q.tone,"data-border":el,"data-scheme":q.scheme,"data-tone":q.tone,children:[_,j]}),D[43]=eo,D[44]=er,D[45]=r,D[46]=J,D[47]=q.scheme,D[48]=q.tone,D[49]=el,D[50]=_,D[51]=j,D[52]=M):M=D[52];let ed=M;D[53]!==Z?(I=Z.map(h_),D[53]=Z,D[54]=I):I=D[54];let eu=I;D[55]!==Z?(P=Z.map(hj),D[55]=Z,D[56]=P):P=D[56];let ec=P,eh="object"==typeof o?o:db;D[57]!==o||D[58]!==eu||D[59]!==ec||D[60]!==eh||D[61]!==a||D[62]!==F||D[63]!==K||D[64]!==ea||D[65]!==J||D[66]!==u?(V=!F&&!u&&o&&(0,g.jsx)(hT,{forwardedAs:"span",padding:eu,style:hb,tone:a?"critical":"inherit",children:(0,g.jsx)(hE,{"aria-label":"Clear","data-qa":"clear-button",fontSize:K,icon:eX,mode:"bleed",padding:ec,radius:J,...eh,onClick:ea,onMouseDown:hA})}),D[57]=o,D[58]=eu,D[59]=ec,D[60]=eh,D[61]=a,D[62]=F,D[63]=K,D[64]=ea,D[65]=J,D[66]=u,D[67]=V):V=D[67];let ef=V;D[68]!==J||D[69]!==h?(z=h&&(0,g.jsx)(hx,{borderTop:!0,borderRight:!0,borderBottom:!0,radius:J,sizing:"border",tone:"inherit",children:(0,g.jsx)("span",{children:h})}),D[68]=J,D[69]=h,D[70]=z):z=D[70];let ep=z,em=ei||et;return D[71]!==en||D[72]!==F||D[73]!==K||D[74]!==Z||D[75]!==u||D[76]!==c||D[77]!==q.scheme||D[78]!==q.tone||D[79]!==ee||D[80]!==em||D[81]!==X||D[82]!==k?(L=(0,g.jsx)(hk,{"data-as":"input","data-scheme":q.scheme,"data-tone":q.tone,...c,$fontSize:K,$iconLeft:en,$iconRight:em,$padding:Z,$scheme:q.sc
980heme,$space:ee,$tone:q.tone,$weight:k,disabled:F,readOnly:u,ref:G,type:X}),D[71]=en,D[72]=F,D[73]=K,D[74]=Z,D[75]=u,D[76]=c,D[77]=q.scheme,D[78]=q.tone,D[79]=ee,D[80]=em,D[81]=X,D[82]=k,D[83]=L):L=D[83],D[84]!==ef||D[85]!==ed||D[86]!==L?(N=(0,g.jsxs)(hv,{children:[L,ed,ef]}),D[84]=ef,D[85]=ed,D[86]=L,D[87]=N):N=D[87],D[88]!==es||D[89]!==q.tone||D[90]!==ep||D[91]!==N?(O=(0,g.jsxs)(hy,{"data-ui":"TextInput",tone:q.tone,children:[es,N,ep]}),D[88]=es,D[89]=q.tone,D[90]=ep,D[91]=N,D[92]=O):O=D[92],O});function hA(e){e.preventDefault(),e.stopPropagation()}function h_(e){return 0===e?0:1===e||2===e?1:e-2}function hj(e){return 0===e||1===e?0:2===e?1:e-1}hC.displayName="ForwardRef(TextInput)";let hM={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"]},hI=(0,y.I4)(lT.create(u5)).withConfig({displayName:"MotionCard",componentId:"sc-1xn138w-0"})`will-change:transform;`,hP=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,b,y,v,w,x,k,S,$,R=eD.c(48);R[0]!==e?({animate:n,arrow:i,arrowRef:r,arrowX:o,arrowY:a,children:s,originX:l,originY:d,padding:u,placement:c,radius:h,scheme:p,shadow:m,style:b,...f}=e,R[0]=e,R[1]=n,R[2]=i,R[3]=r,R[4]=o,R[5]=a,R[6]=s,R[7]=l,R[8]=d,R[9]=u,R[10]=c,R[11]=h,R[12]=f,R[13]=p,R[14]=m,R[15]=b):(n=R[1],i=R[2],r=R[3],o=R[4],a=R[5],s=R[6],l=R[7],d=R[8],u=R[9],c=R[10],h=R[11],f=R[12],p=R[13],m=R[14],b=R[15]);let T=n?"transform":void 0;R[16]!==l||R[17]!==d||R[18]!==b||R[19]!==T?(y={originX:l,originY:d,willChange:T,...b},R[16]=l,R[17]=d,R[18]=b,R[19]=T,R[20]=y):y=R[20];let E=y,C=null!==o?o:void 0,A=null!==a?a:void 0;R[21]!==C||R[22]!==A?(v={left:C,top:A,right:void 0,bottom:void 0},R[21]=C,R[22]=A,R[23]=v):v=R[23];let _=v,j=f;return R[24]!==n?(w=n?["hidden","initial"]:void 0,R[24]=n,R[25]=w):w=R[25],R[26]!==n?(x=n?["visible","scaleIn"]:void 0,R[26]=n,R[27]=x):x=R[27],R[28]!==n?(k=n?["hidden","scaleOut"]:void 0,R[28]=n,R[29]=k):k=R[29],R[30]!==i||R[31]!==r||R[32]!==_?(S=i&&(0,g.jsx)(cj,{ref:r,style:_,width:15,height:6,radius:2}),R[30]=i,R[31]=r,R[32]=_,R[33]=S):S=R[33],R[34]!==s||R[35]!==u||R[36]!==c||R[37]!==h||R[38]!==t||R[39]!==E||R[40]!==p||R[41]!==m||R[42]!==j||R[43]!==w||R[44]!==x||R[45]!==k||R[46]!==S?($=(0,g.jsxs)(hI,{"data-ui":"Tooltip__card",...j,"data-placement":c,padding:u,radius:h,ref:t,scheme:p,shadow:m,style:E,variants:dy,transition:dw,initial:w,animate:x,exit:k,children:[s,S]}),R[34]=s,R[35]=u,R[36]=c,R[37]=h,R[38]=t,R[39]=E,R[40]=p,R[41]=m,R[42]=j,R[43]=w,R[44]=x,R[45]=k,R[46]=S,R[47]=$):$=R[47],$});hP.displayName="ForwardRef(TooltipCard)";let hV=dM("@sanity/ui/context/tooltipDelayGroup",null),hz=(0,y.I4)(cW).withConfig({displayName:"StyledTooltip",componentId:"sc-13f2zvh-0"})`pointer-events:none;`;(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O,D,B,F,H,W,U,Y,X,G,q,K,Z,J,Q,ee=eD.c(137),et=cV(),{layer:en}=dL();ee[0]!==e?({animate:h,arrow:f,boundaryElement:n,children:o,content:a,disabled:l,fallbackPlacements:i,padding:p,placement:m,portal:d,radius:y,scheme:c,shadow:v,zOffset:r,delay:s,...u}=e,ee[0]=e,ee[1]=n,ee[2]=i,ee[3]=r,ee[4]=o,ee[5]=a,ee[6]=s,ee[7]=l,ee[8]=d,ee[9]=u,ee[10]=c,ee[11]=h,ee[12]=f,ee[13]=p,ee[14]=m,ee[15]=y,ee[16]=v):(n=ee[1],i=ee[2],r=ee[3],o=ee[4],a=ee[5],s=ee[6],l=ee[7],d=ee[8],u=ee[9],c=ee[10],h=ee[11],f=ee[12],p=ee[13],m=ee[14],y=ee[15],v=ee[16]);let ei=void 0!==h&&h,er=void 0!==f&&f,eo=void 0===p?2:p,ea=void 0===m?"bottom":m,es=void 0===y?2:y,el=void 0===v?2:v,ed=n??et?.element,eu=i??hM[e.placement??"bottom"],ec=r??en.tooltip.zOffset,eh=!ca()&&ei;ee[17]!==eu?(w=dE(eu),ee[17]=eu,ee[18]=w):w=ee[18];let ef=w,ep=(0,b.useRef)(null),[em,eg]=(0,b.useState)(null),eb=(0,b.useRef)(null),[ey,ev]=(0,b.useState)(0);ee[19]===Symbol.for("react.memo_cache_sentinel")?(x=()=>ep.current,ee[19]=x):x=ee[19],(0,b.useImperativeHandle)(t,x);let ew=cG(),ex="string"==typeof d?ew.elements?.[d]||null:ew.element;ee[20]!==eh||ee[21]!==er||ee[22]!==ed||ee[23]!==ef?(k={animate:eh,arrowProp:er,arrowRef:eb,boundaryElement:ed,fallbackPlacements:ef,rootBoundary:"viewport"},ee[20]=eh,ee[21]=er,ee[22]=ed,ee[23]=ef,ee[24]=k):k=ee[24];let ek=function(e){let t,n=eD.c(17),{animate:i,arrowProp:r,arrowRef:o,boundaryElement:a,fallbackPlacements:s,rootBoundary:l}=e;if(n[0]!==i||n[1]!==r||n[2]!==o||n[3]!==a||n[4]!==s||n[5]!==l){let e,d,u;t=[];let c=a||void 0;n[7]!==s||n[8]!==l||n[9]!==c?(e=t9({boundary:c,fallbackPlacements:s,padding:4,rootBoundary:l}),n[7]=s,n[8]=l,n[9]=c,n[10]=e):e=n[10],t.push(e),n[11]===Symbol.for("react.memo_cache_sentinel")?(d=t6({mainAxis:4}),n[11]=d):d=n[11],t.push(d);let h=a||void 0;if(n[12]!==l||n[13]!==h?(u=t7({boundary:h,rootBoundary:l,padding:4}),n[12]=l,n[13]=h,n[14]=u):u=n[14],t.push(u),r){let e;n[15]!==o?(e=t8({element:o,padding:4}),n[15]=o,n[16]=e):e=n[16],t.push(e)}i&&t.push(c$),n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n[6]=t}else t=n[6];return t}(k);ee[25]!==em?(S={reference:em},ee[25]=em,ee[26]=S):S=ee[26],ee[27]!==ek||ee[28]!==ea||ee[29]!==S?($={middleware:ek,placement:ea,whileElementsMounted:tJ,elements:S},ee[27]=ek,ee[28]=ea,ee[29]=S,ee[30]=$):$=ee[30];let{floatingStyles:eS,placement:e$,middlewareData:eR,refs:eT,update:eE}=t4($),eC=eR.arrow?.x,eA=eR.arrow?.y,e_=eR["@sanity/ui/origin"]?.originX,ej=eR["@sanity/ui/origin"]?.originY,eM=(0,b.useId)(),[eI,eP]=function(e){let t,n,i,r,o=eD.c(5),[a,s]=(0,b.useState)(e),l=(0,b.useRef)(void 0);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>
980{let n=()=>{s(e)};if(l.current&&(clearTimeout(l.current),l.current=void 0),!t)return n();l.current=setTimeout(n,t)},o[0]=t):t=o[0];let d=t;return o[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>()=>{l.current&&clearTimeout(l.current)},i=[],o[1]=n,o[2]=i):(n=o[1],i=o[2]),(0,b.useEffect)(n,i),o[3]!==a?(r=[a,d],o[3]=a,o[4]=r):r=o[4],r}(!1),eV=(0,b.useContext)(hV);ee[31]!==eV?(R=eV||{},ee[31]=eV,ee[32]=R):R=ee[32];let{setIsGroupActive:ez,setOpenTooltipId:eL}=R,eN=eI||eV?.openTooltipId===eM,eO=null!==eV,eB="number"==typeof s?s:s?.open||0,eF="number"==typeof s?s:s?.close||0,eH=eO?eV.openDelay:eB,eW=eO?eV.closeDelay:eF;ee[33]!==eW||ee[34]!==eO||ee[35]!==eH||ee[36]!==ez||ee[37]!==eP||ee[38]!==eL||ee[39]!==eM?(T=(e,t)=>{if(eO)if(e){let n=t?0:eH;ez?.(e,n),eL?.(eM,n)}else{let n=eW>200?eW:200;ez?.(e,n),eL?.(null,t?0:eW)}else eP(e,t?0:e?eH:eW)},ee[33]=eW,ee[34]=eO,ee[35]=eH,ee[36]=ez,ee[37]=eP,ee[38]=eL,ee[39]=eM,ee[40]=T):T=ee[40];let eU=T;ee[41]!==o?.props||ee[42]!==eU?(E=e=>{eU(!1),o?.props?.onBlur?.(e)},ee[41]=o?.props,ee[42]=eU,ee[43]=E):E=ee[43];let eY=E;ee[44]!==o?.props||ee[45]!==eU?(C=e=>{eU(!1,!0),o?.props.onClick?.(e)},ee[44]=o?.props,ee[45]=eU,ee[46]=C):C=ee[46];let eX=C;ee[47]!==o?.props||ee[48]!==eU?(A=e=>{eU(!1,!0),o?.props.onContextMenu?.(e)},ee[47]=o?.props,ee[48]=eU,ee[49]=A):A=ee[49];let eG=A;ee[50]!==o?.props||ee[51]!==eU?(_=e=>{eU(!0),o?.props?.onFocus?.(e)},ee[50]=o?.props,ee[51]=eU,ee[52]=_):_=ee[52];let eq=_;ee[53]!==o?.props||ee[54]!==eU?(j=e=>{eU(!0),o?.props?.onMouseEnter?.(e)},ee[53]=o?.props,ee[54]=eU,ee[55]=j):j=ee[55];let eK=j;ee[56]!==o?.props||ee[57]!==eU?(M=e=>{eU(!1),o?.props?.onMouseLeave?.(e)},ee[56]=o?.props,ee[57]=eU,ee[58]=M):M=ee[58];let eZ=M;ee[59]!==eU||ee[60]!==eO||ee[61]!==em||ee[62]!==eN?(I={handleIsOpenChange:eU,referenceElement:em,showTooltip:eN,isInsideGroup:eO},ee[59]=eU,ee[60]=eO,ee[61]=em,ee[62]=eN,ee[63]=I):I=ee[63],function(e){let t,n,i,r=eD.c(10),{handleIsOpenChange:o,referenceElement:a,showTooltip:s,isInsideGroup:l}=e;r[0]!==o||r[1]!==a?(t=(e,t)=>{a&&(a===e||e instanceof Node&&a.contains(e)||(o(!1),t()))},r[0]=o,r[1]=a,r[2]=t):t=r[2];let d=dm(t);r[3]!==l||r[4]!==d||r[5]!==s?(n=()=>{if(!s||l)return;let e=t=>{d(t.target,()=>window.removeEventListener("mousemove",e))};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},r[3]=l,r[4]=d,r[5]=s,r[6]=n):n=r[6],r[7]!==l||r[8]!==s?(i=[l,s],r[7]=l,r[8]=s,r[9]=i):i=r[9],(0,b.useEffect)(n,i)}(I),ee[64]!==l||ee[65]!==eU||ee[66]!==eN?(P=()=>{l&&eN&&eU(!1)},V=[l,eU,eN],ee[64]=l,ee[65]=eU,ee[66]=eN,ee[67]=P,ee[68]=V):(P=ee[67],V=ee[68]),(0,b.useEffect)(P,V),ee[69]!==a||ee[70]!==eU||ee[71]!==eN?(z=()=>{!a&&eN&&eU(!1)},L=[a,eU,eN],ee[69]=a,ee[70]=eU,ee[71]=eN,ee[72]=z,ee[73]=L):(z=ee[72],L=ee[73]),(0,b.useEffect)(z,L),ee[74]!==eU||ee[75]!==eN?(N=()=>{if(!eN)return;let e=function(e){"Escape"===e.key&&eU(!1,!0)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},O=[eU,eN],ee[74]=eU,ee[75]=eN,ee[76]=N,ee[77]=O):(N=ee[76],O=ee[77]),(0,b.useEffect)(N,O),ee[78]!==ed||ee[79]!==ex?.offsetWidth?(D=()=>{ev(Math.min(...ed?[ed.offsetWidth]:[],ex?.offsetWidth||document.body.offsetWidth)-8)},ee[78]=ed,ee[79]=ex?.offsetWidth,ee[80]=D):D=ee[80],ee[81]!==ed||ee[82]!==ex?(B=[ed,ex],ee[81]=ed,ee[82]=ex,ee[83]=B):B=ee[83],(0,b.useLayoutEffect)(D,B),ee[84]!==eE?(F=e=>{eb.current=e,eE()},ee[84]=eE,ee[85]=F):F=ee[85];let eJ=F;ee[86]!==eT?(H=e=>{ep.current=e,eT.setFloating(e)},ee[86]=eT,ee[87]=H):H=ee[87];let eQ=H;e:{let e;if(!o){W=null;break e}ee[88]!==o||ee[89]!==eY||ee[90]!==eX||ee[91]!==eG||ee[92]!==eq||ee[93]!==eK||ee[94]!==eZ?(e=(0,b.cloneElement)(o,{onBlur:eY,onFocus:eq,onMouseEnter:eK,onMouseLeave:eZ,onClick:eX,onContextMenu:eG,ref:eg}),ee[88]=o,ee[89]=eY,ee[90]=eX,ee[91]=eG,ee[92]=eq,ee[93]=eK,ee[94]=eZ,ee[95]=e):e=ee[95],W=e}let e0=W;if(ee[96]!==o?(U=o?cQ(o):null,ee[96]=o,ee[97]=U):U=ee[97],ee[98]!==em?(Y=()=>em,X=[em],ee[98]=em,ee[99]=Y,ee[100]=X):(Y=ee[99],X=ee[100]),(0,b.useImperativeHandle)(U,Y,X),!e0){let e;return ee[101]===Symbol.for("react.memo_cache_sentinel")?(e=(0,g.jsx)(g.Fragment,{}
980),ee[101]=e):e=ee[101],e}if(l)return e0;let e1=ey>0?`${ey}px`:void 0;ee[102]!==eS||ee[103]!==e1?(G={...eS,maxWidth:e1},ee[102]=eS,ee[103]=e1,ee[104]=G):G=ee[104],ee[105]!==eh||ee[106]!==er||ee[107]!==eC||ee[108]!==eA||ee[109]!==a||ee[110]!==e_||ee[111]!==ej||ee[112]!==eo||ee[113]!==e$||ee[114]!==es||ee[115]!==u||ee[116]!==c||ee[117]!==eJ||ee[118]!==eQ||ee[119]!==el?(q=(0,g.jsx)(hP,{...u,animate:eh,arrow:er,arrowRef:eJ,arrowX:eC,arrowY:eA,originX:e_,originY:ej,padding:eo,placement:e$,radius:es,ref:eQ,scheme:c,shadow:el,children:a}),ee[105]=eh,ee[106]=er,ee[107]=eC,ee[108]=eA,ee[109]=a,ee[110]=e_,ee[111]=ej,ee[112]=eo,ee[113]=e$,ee[114]=es,ee[115]=u,ee[116]=c,ee[117]=eJ,ee[118]=eQ,ee[119]=el,ee[120]=q):q=ee[120],ee[121]!==u||ee[122]!==eQ||ee[123]!==G||ee[124]!==q||ee[125]!==ec?(K=(0,g.jsx)(hz,{"data-ui":"Tooltip",...u,ref:eQ,style:G,zOffset:ec,children:q}),ee[121]=u,ee[122]=eQ,ee[123]=G,ee[124]=q,ee[125]=ec,ee[126]=K):K=ee[126];let e2=K;ee[127]!==d||ee[128]!==eN||ee[129]!==e2?(Z=eN&&(d?(0,g.jsx)(cq,{__unstable_name:"string"==typeof d?d:void 0,children:e2}):e2),ee[127]=d,ee[128]=eN,ee[129]=e2,ee[130]=Z):Z=ee[130];let e3=Z;return ee[131]!==eh||ee[132]!==e3?(J=eh?(0,g.jsx)(s_,{children:e3}):e3,ee[131]=eh,ee[132]=e3,ee[133]=J):J=ee[133],ee[134]!==e0||ee[135]!==J?(Q=(0,g.jsxs)(g.Fragment,{children:[J,e0]}),ee[134]=e0,ee[135]=J,ee[136]=Q):Q=ee[136],Q}).displayName="ForwardRef(Tooltip)";let hL=y.I4.kbd.withConfig({displayName:"StyledHotkeys",componentId:"sc-b37mge-0"})`font:inherit;padding:1px;&:not([hidden]){display:block;}`,hN=(0,y.I4)(cS).withConfig({displayName:"Key",componentId:"sc-b37mge-1"})`&:not([hidden]){display:block;}`,hO=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f=eD.c(27);f[0]!==e?({fontSize:n,gap:i,keys:r,padding:o,radius:a,space:l,...s}=e,f[0]=e,f[1]=n,f[2]=i,f[3]=r,f[4]=o,f[5]=a,f[6]=s,f[7]=l):(n=f[1],i=f[2],r=f[3],o=f[4],a=f[5],s=f[6],l=f[7]);let p=void 0===i?void 0===l?.5:l:i;f[8]!==p?(d=dE(p),f[8]=p,f[9]=d):d=f[9];let m=d;if(!r||0===r.length){let e;return f[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,g.jsx)(g.Fragment,{}),f[10]=e):e=f[10],e}if(f[11]!==n||f[12]!==r||f[13]!==o||f[14]!==a){let e;f[16]!==n||f[17]!==o||f[18]!==a?(e=(e,t)=>(0,g.jsx)(hN,{fontSize:n,padding:o,radius:a,children:e},t),f[16]=n,f[17]=o,f[18]=a,f[19]=e):e=f[19],u=r.map(e),f[11]=n,f[12]=r,f[13]=o,f[14]=a,f[15]=u}else u=f[15];return f[20]!==m||f[21]!==u?(c=(0,g.jsx)(cw,{as:"span",gap:m,children:u}),f[20]=m,f[21]=u,f[22]=c):c=f[22],f[23]!==t||f[24]!==s||f[25]!==c?(h=(0,g.jsx)(hL,{"data-ui":"Hotkeys",...s,ref:t,children:c}),f[23]=t,f[24]=s,f[25]=c,f[26]=h):h=f[26],h});hO.displayName="ForwardRef(Hotkeys)";let hD=dM("@sanity/ui/context/menu",null);function hB(e){return dk(e)&&"true"!==e.getAttribute("data-disabled")||dS(e)&&!e.disabled}function hF(e){return e.filter(hB)}let hH=[];function hW(){}let hU=(0,y.I4)(uH).withConfig({displayName:"StyledMenu",componentId:"sc-xt0tnv-0"})`outline:none;overflow:auto;`;(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C=eD.c(50);if(C[0]!==e){let{children:t,focusFirst:m,focusLast:g,onClickOutside:b,onEscape:y,onItemClick:v,onItemSelect:w,onKeyDown:x,originElement:k,padding:S,registerElement:$,shouldFocus:R,gap:T,space:E,...A}=e;i=t,o=b,a=y,s=v,l=w,d=x,u=k,f=S,c=$,n=R,r=T,p=E,h=A,C[0]=e,C[1]=n,C[2]=i,C[3]=r,C[4]=o,C[5]=a,C[6]=s,C[7]=l,C[8]=d,C[9]=u,C[10]=c,C[11]=h,C[12]=f,C[13]=p}else n=C[1],i=C[2],r=C[3],o=C[4],a=C[5],s=C[6],l=C[7],d=C[8],u=C[9],c=C[10],h=C[11],f=C[12],p=C[13];let A=void 0===f?1:f,_=void 0===r?void 0===p?1:p:r,j=n??(e.focusFirst&&"first"||e.focusLast&&"last"||null),M=(0,b.useRef)(null);C[14]===Symbol.for("react.memo_cache_sentinel")?(m=()=>M.current,C[14]=m):m=C[14],(0,b.useImperativeHandle)(t,m);let{isTopLayer:I}=cB();C[15]!==d||C[16]!==u||C[17]!==j?(y={onKeyDown:d,originElement:u,shouldFocus:j,rootElementRef:M},C[15]=d,C[16]=u,C[17]=j,C[18]=y):y=C[18];let{activeElement:P,activeIndex:V,handleItemMouseEnter:z,handleItemMouseLeave:L,handleKeyDown:N,mount:O}=function(e){let t,n,i,r,o,a,s,l,d,u=eD.c(21),{onKeyDown:c,originElement:h,shouldFocus:f,rootElementRef:p}=e;u[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],u[0]=t):t=u[0];let m=(0,b.useRef)(t),[g,y]=(0,b.useState)(-1),v=(0,b.useRef)(g),[w,x]=(0,b.useState)(null);u[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{y(e),v.current=e,x(m.current[e]||null)},u[1]=n):n=u[1];let k=n;u[2]!==p?(i=(e,t)=>e?(-1===m.current.indexOf(e)&&(m.current.push(e),function(e,t){if(!e)return;let n=new WeakMap;for(let i of t)n.set(i,function(e,t){let n=[],i=t;for(;i!==e;){let t=i.parentElement;if(!t)break;let r=Array.from(t.childNodes).indexOf(i);if(n.unshift(r),t===e)break;i=t}return n}(e,i));t.sort((e,t)=>
980{let i=n.get(e)||hH,r=n.get(t)||hH,o=Math.max(i.length,r.length);for(let e=0;e<o;e+=1){let t=i[e]||-1,n=r[e]||-1;if(t!==n)return t-n}return 0})}(p.current,m.current)),t&&k(m.current.indexOf(e)),()=>{let t=m.current.indexOf(e);t>-1&&m.current.splice(t,1)}):hW,u[2]=p,u[3]=i):i=u[3];let S=i;u[4]!==c||u[5]!==h?(r=e=>{if("Tab"===e.key){h&&h.focus();return}if("Home"===e.key){e.preventDefault(),e.stopPropagation();let t=hF(m.current)[0];if(!t)return;k(m.current.indexOf(t));return}if("End"===e.key){e.preventDefault(),e.stopPropagation();let t=hF(m.current),n=t[t.length-1];if(!n)return;k(m.current.indexOf(n));return}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=hF(m.current),n=t.length;if(0===n)return;let i=m.current[v.current],r=t.indexOf(i),o=t[r=(r-1+n)%n];k(m.current.indexOf(o));return}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=hF(m.current),n=t.length;if(0===n)return;let i=m.current[v.current],r=t.indexOf(i),o=t[r=(r+1)%n];k(m.current.indexOf(o));return}c&&c(e)},u[4]=c,u[5]=h,u[6]=r):r=u[6];let $=r;u[7]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{let t=e.currentTarget;k(m.current.indexOf(t))},u[7]=o):o=u[7];let R=o;u[8]!==p?(a=()=>{k(-2),p.current?.focus()},u[8]=p,u[9]=a):a=u[9];let T=a;return u[10]!==g||u[11]!==p||u[12]!==f?(s=()=>{if(!p.current)return;let e=requestAnimationFrame(()=>{if(-1===g){if("first"===f){let e=hF(m.current)[0];e&&k(m.current.indexOf(e))}if("last"===f){let e=hF(m.current),t=e[e.length-1];t&&k(m.current.indexOf(t))}return}(m.current[g]||null)?.focus()});return()=>cancelAnimationFrame(e)},l=[g,p,k,f],u[10]=g,u[11]=p,u[12]=f,u[13]=s,u[14]=l):(s=u[13],l=u[14]),(0,b.useEffect)(s,l),u[15]!==w||u[16]!==g||u[17]!==T||u[18]!==$||u[19]!==S?(d={activeElement:w,activeIndex:g,handleItemMouseEnter:R,handleItemMouseLeave:T,handleKeyDown:$,mount:S},u[15]=w,u[16]=g,u[17]=T,u[18]=$,u[19]=S,u[20]=d):d=u[20],d}(y),D=(0,b.useRef)(null);C[19]!==c?(v=e=>{D.current&&(D.current(),D.current=null),M.current=e,M.current&&c&&(D.current=c(M.current))},C[19]=c,C[20]=v):v=C[20];let B=v;C[21]!==V||C[22]!==l?(w=()=>{l&&l(V)},x=[V,l],C[21]=V,C[22]=l,C[23]=w,C[24]=x):(w=C[23],x=C[24]),(0,b.useEffect)(w,x),C[25]===Symbol.for("react.memo_cache_sentinel")?(k=()=>[M.current],C[25]=k):k=C[25],u4(I&&o,k),C[26]!==I||C[27]!==a?(S=e=>{I&&"Escape"===e.key&&(e.stopPropagation(),a&&a())},C[26]=I,C[27]=a,C[28]=S):S=C[28],ct(S),C[29]!==P||C[30]!==z||C[31]!==L||C[32]!==O||C[33]!==o||C[34]!==a||C[35]!==s||C[36]!==c?($={version:2,activeElement:P,mount:O,onClickOutside:o,onEscape:a,onItemClick:s,onItemMouseEnter:z,onItemMouseLeave:L,registerElement:c},C[29]=P,C[30]=z,C[31]=L,C[32]=O,C[33]=o,C[34]=a,C[35]=s,C[36]=c,C[37]=$):$=C[37];let F=$;return C[38]!==i||C[39]!==_?(R=(0,g.jsx)(hs,{gap:_,children:i}),C[38]=i,C[39]=_,C[40]=R):R=C[40],C[41]!==N||C[42]!==B||C[43]!==A||C[44]!==h||C[45]!==R?(T=(0,g.jsx)(hU,{"data-ui":"Menu",...h,onKeyDown:N,padding:A,ref:B,role:"menu",tabIndex:-1,children:R}),C[41]=N,C[42]=B,C[43]=A,C[44]=h,C[45]=R,C[46]=T):T=C[46],C[47]!==T||C[48]!==F?(E=(0,g.jsx)(hD.Provider,{value:F,children:T}),C[47]=T,C[48]=F,C[49]=E):E=C[49],E}).displayName="ForwardRef(Menu)",y.I4.hr.withConfig({displayName:"MenuDivider",componentId:"sc-uhoxwu-0"})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`.displayName="MenuDivider";let hY=(0,y.I4)(uH).withConfig({displayName:"Selectable",componentId:"sc-1w01ang-0"})(u$,function(){return(0,y.AH)`
981    background-color: inherit;
982    color: inherit;
983
984    &[data-as='button'] {
985      -webkit-font-smoothing: inherit;
986      appearance: none;
987      outline: none;
988      font: inherit;
989      text-align: inherit;
990      border: 0;
991      width: -moz-available;
992      width: -webkit-fill-available;
993      width: stretch;
994    }
995
996    /* &:is(a) */
997    &[data-as='a'] {
998      text-decoration: none;
999    }
1000  `},function(e){let{$tone:t}=e,{color:n,style:i}=F(e.theme),r=n.selectable[t];return(0,y.AH)`
1001    ${uJ(n,r.enabled)}
1002
1003    background-color: var(--card-bg-color);
1004    color: var(--card-fg-color);
1005    outline: none;
1006
1007    /* &:is(button) */
1008    &[data-as='button'] {
1009      &:disabled {
1010        ${uJ(n,r.disabled)}
1011      }
1012
1013      &:not(:disabled) {
1014        &[aria-pressed='true'] {
1015          ${uJ(n,r.pressed)}
1016        }
1017
1018        &[data-selected],
1019        &[aria-selected='true'] > & {
1020          ${uJ(n,r.selected)}
1021        }
1022
1023        @media (hover: hover) {
1024          &:not([data-selected]) {
1025            &[data-hovered],
1026            &:hover {
1027              ${uJ(n,r.hovered)}
1028            }
1029
1030            &:active {
1031              ${uJ(n,r.pressed)}
1032            }
1033          }
1034        }
1035      }
1036    }
1037
1038    /* &:is(a) */
1039    &[data-as='a'] {
1040      &[data-disabled] {
1041        ${uJ(n,r.disabled)}
1042      }
1043
1044      &:not([data-disabled]) {
1045        &[data-pressed] {
1046          ${uJ(n,r.pressed)}
1047        }
1048
1049        &[data-selected] {
1050          ${uJ(n,r.selected)}
1051        }
1052
1053        @media (hover: hover) {
1054          &:not([data-selected]) {
1055            &[data-hovered],
1056            &:hover {
1057              ${uJ(n,r.hovered)}
1058            }
1059            &:active {
1060              ${uJ(n,r.pressed)}
1061            }
1062          }
1063        }
1064      }
1065    }
1066
1067    ${i?.card?.root}
1068  `});function hX(e){return e-1}hY.displayName="Selectable",(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O=eD.c(76);O[0]!==e?({as:w,children:r,disabled:o,fontSize:x,hotkeys:s,icon:n,iconRight:i,onClick:l,padding:k,paddingX:f,paddingY:p,paddingTop:h,paddingRight:c,paddingBottom:d,paddingLeft:u,pressed:m,radiu
1068s:S,selected:v,gap:a,space:$,text:T,tone:R,...y}=e,O[0]=e,O[1]=n,O[2]=i,O[3]=r,O[4]=o,O[5]=a,O[6]=s,O[7]=l,O[8]=d,O[9]=u,O[10]=c,O[11]=h,O[12]=f,O[13]=p,O[14]=m,O[15]=y,O[16]=v,O[17]=w,O[18]=x,O[19]=k,O[20]=S,O[21]=$,O[22]=R,O[23]=T):(n=O[1],i=O[2],r=O[3],o=O[4],a=O[5],s=O[6],l=O[7],d=O[8],u=O[9],c=O[10],h=O[11],f=O[12],p=O[13],m=O[14],y=O[15],v=O[16],w=O[17],x=O[18],k=O[19],S=O[20],$=O[21],R=O[22],T=O[23]);let D=void 0===w?"button":w,B=void 0===x?1:x,F=void 0===k?3:k,H=void 0===S?2:S,W=void 0===$?3:$,U=void 0===R?"default":R,Y=void 0===a?W:a,{scheme:X}=dV(),G=function(){let e=(0,b.useContext)(hD);if(!e)throw Error("useMenu(): missing context value");if(!cI(e)||2!==e.version)throw Error("useMenu(): the context value is not compatible");return e}(),{activeElement:q,mount:K,onItemClick:Z,onItemMouseEnter:J,onItemMouseLeave:Q}=G,ee=J??G.onItemMouseEnter,et=Q??G.onItemMouseLeave,[en,ei]=(0,b.useState)(null),er=!!q&&q===en,eo=(0,b.useRef)(null);O[24]===Symbol.for("react.memo_cache_sentinel")?(E=()=>eo.current,O[24]=E):E=O[24],(0,b.useImperativeHandle)(t,E),O[25]!==K||O[26]!==en||O[27]!==v?(C=()=>K(en,v),A=[K,en,v],O[25]=K,O[26]=en,O[27]=v,O[28]=C,O[29]=A):(C=O[28],A=O[29]),(0,b.useEffect)(C,A),O[30]!==o||O[31]!==l||O[32]!==Z?(_=e=>{o||(l&&l(e),Z&&Z())},O[30]=o,O[31]=l,O[32]=Z,O[33]=_):_=O[33];let ea=_;O[34]!==F||O[35]!==d||O[36]!==u||O[37]!==c||O[38]!==h||O[39]!==f||O[40]!==p?(j={padding:F,paddingX:f,paddingY:p,paddingTop:h,paddingRight:c,paddingBottom:d,paddingLeft:u},O[34]=F,O[35]=d,O[36]=u,O[37]=c,O[38]=h,O[39]=f,O[40]=p,O[41]=j):j=O[41];let es=j;O[42]!==B?(M=dE(B).map(hX),O[42]=B,O[43]=M):M=O[43];let el=M;O[44]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{eo.current=e,ei(e)},O[44]=I):I=O[44];let ed=I,eu="button"!==D&&m?"":void 0,ec=er?"":void 0,eh=o?"":void 0;O[45]!==H?(P=dE(H),O[45]=H,O[46]=P):P=O[46],O[47]===Symbol.for("react.memo_cache_sentinel")?(V=dE(0),O[47]=V):V=O[47];let ef=o?"default":U,ep="button"===D?"button":void 0;return O[48]!==n||O[49]!==i||O[50]!==B||O[51]!==s||O[52]!==el||O[53]!==es||O[54]!==Y||O[55]!==T?(z=(n||T||i)&&(0,g.jsxs)(uG,{as:"span",gap:Y,align:"center",...es,children:[n&&(0,g.jsxs)(uU,{size:B,children:[(0,b.isValidElement)(n)&&n,eH.isValidElementType(n)&&(0,g.jsx)(n,{})]}),T&&(0,g.jsx)(uH,{flex:1,children:(0,g.jsx)(uU,{size:B,textOverflow:"ellipsis",weight:"medium",children:T})}),s&&(0,g.jsx)(hO,{fontSize:el,keys:s,style:{marginTop:-4,marginBottom:-4}}),i&&(0,g.jsxs)(uU,{size:B,children:[(0,b.isValidElement)(i)&&i,eH.isValidElementType(i)&&(0,g.jsx)(i,{})]})]}),O[48]=n,O[49]=i,O[50]=B,O[51]=s,O[52]=el,O[53]=es,O[54]=Y,O[55]=T,O[56]=z):z=O[56],O[57]!==r||O[58]!==es?(L=r&&(0,g.jsx)(uH,{as:"span",...es,children:r}),O[57]=r,O[58]=es,O[59]=L):L=O[59],O[60]!==D||O[61]!==o||O[62]!==ea||O[63]!==ee||O[64]!==et||O[65]!==y||O[66]!==X||O[67]!==eu||O[68]!==ec||O[69]!==eh||O[70]!==P||O[71]!==ef||O[72]!==ep||O[73]!==z||O[74]!==L?(N=(0,g.jsxs)(hY,{"data-ui":"MenuItem",role:"menuitem",...y,"data-pressed":eu,"data-selected":ec,"data-disabled":eh,forwardedAs:D,$radius:P,$padding:V,$tone:ef,$scheme:X,disabled:o,onClick:ea,onMouseEnter:ee,onMouseLeave:et,ref:ed,tabIndex:-1,type:ep,children:[z,L]}),O[60]=D,O[61]=o,O[62]=ea,O[63]=ee,O[64]=et,O[65]=y,O[66]=X,O[67]=eu,O[68]=ec,O[69]=eh,O[70]=P,O[71]=ef,O[72]=ep,O[73]=z,O[74]=L,O[75]=N):N=O[75],N}).displayName="ForwardRef(MenuItem)";let hG=(0,y.I4)(u2).withConfig({displayName:"CustomButton",componentId:"sc-1kns779-0"})`max-width:100%;`;(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w=eD.c(30);w[0]!==e?({icon:i,id:r,focused:n,fontSize:u,label:o,onClick:a,onFocus:s,padding:c,selected:d,...l}
1068=e,w[0]=e,w[1]=n,w[2]=i,w[3]=r,w[4]=o,w[5]=a,w[6]=s,w[7]=l,w[8]=d,w[9]=u,w[10]=c):(n=w[1],i=w[2],r=w[3],o=w[4],a=w[5],s=w[6],l=w[7],d=w[8],u=w[9],c=w[10]);let x=void 0===u?1:u,k=void 0===c?2:c,S=(0,b.useRef)(null),$=(0,b.useRef)(!1);w[11]===Symbol.for("react.memo_cache_sentinel")?(h=()=>S.current,w[11]=h):h=w[11],(0,b.useImperativeHandle)(t,h),w[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{$.current=!1},w[12]=f):f=w[12];let R=f;w[13]!==s?(p=e=>{$.current=!0,s&&s(e)},w[13]=s,w[14]=p):p=w[14];let T=p;w[15]!==n?(m=()=>{n&&!$.current&&(S.current&&S.current.focus(),$.current=!0)},y=[n],w[15]=n,w[16]=m,w[17]=y):(m=w[16],y=w[17]),(0,b.useEffect)(m,y);let E=d?"true":"false",C=d?0:-1;return w[18]!==x||w[19]!==T||w[20]!==i||w[21]!==r||w[22]!==o||w[23]!==a||w[24]!==k||w[25]!==l||w[26]!==d||w[27]!==E||w[28]!==C?(v=(0,g.jsx)(hG,{"data-ui":"Tab",...l,"aria-selected":E,fontSize:x,icon:i,id:r,mode:"bleed",onClick:a,onBlur:R,onFocus:T,padding:k,ref:S,role:"tab",selected:d,tabIndex:C,text:o,type:"button"}),w[18]=x,w[19]=T,w[20]=i,w[21]=r,w[22]=o,w[23]=a,w[24]=k,w[25]=l,w[26]=d,w[27]=E,w[28]=C,w[29]=v):v=w[29],v}).displayName="ForwardRef(Tab)";let hq=(0,y.I4)(cw).withConfig({displayName:"CustomInline",componentId:"sc-5cm04m-0"})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`;function hK(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||(dk(e)?!!e.href&&"ignore"!==e.rel:dx(e)&&"INPUT"===e.nodeName?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!(dS(e)||dx(e)&&"SELECT"===e.nodeName||dx(e)&&"TEXTAREA"===e.nodeName)&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function hZ(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(dx(n)&&(hK(n)||hZ(n)))return!0}return!1}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s=eD.c(15);s[0]!==e?({children:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]);let[l,d]=(0,b.useState)(-1);if(s[3]!==n||s[4]!==l){let e,t=b.Children.toArray(n).filter(b.isValidElement);s[6]!==l?(e=(e,t)=>(0,b.cloneElement)(e,{focused:l===t,key:t,onFocus:()=>d(t)}),s[6]=l,s[7]=e):e=s[7],r=t.map(e),s[3]=n,s[4]=l,s[5]=r}else r=s[5];let u=r,c=u.length;s[8]!==c?(o=e=>{"ArrowLeft"===e.key&&d(e=>(e+c-1)%c),"ArrowRight"===e.key&&d(e=>(e+1)%c)},s[8]=c,s[9]=o):o=s[9];let h=o;return s[10]!==h||s[11]!==t||s[12]!==i||s[13]!==u?(a=(0,g.jsx)(hq,{"data-ui":"TabList",...i,onKeyDown:h,ref:t,role:"tablist",children:u}),s[10]=h,s[11]=t,s[12]=i,s[13]=u,s[14]=a):a=s[14],a}).displayName="ForwardRef(TabList)";let hJ=y.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,hQ=(0,y.I4)(uH).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,h0=(0,y.i7)`
1069  from {
1070    transform: rotate(0deg);
1071  }
1072
1073  to {
1074    transform: rotate(360deg);
1075  }
1076`,h1=(0,y.I4)(eq).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${h0} 500ms linear infinite;`;function h2(e){let t,n,i,r=eD.c(11),{children:o,id:a,onSelect:s,selected:l,value:d}=e;r[0]!==s||r[1]!==d?(t=()=>{setTimeout(()=>{s(d)},0)},r[0]=s,r[1]=d,r[2]=t):t=r[2];let u=t;r[3]!==u?(n=e=>{var t;"Enter"!==e.key||dk(t=e.currentTarget)||dS(t)||u()},r[3]=u,r[4]=n):n=r[4];let c=n;return r[5]!==o||r[6]!==u||r[7]!==c||r[8]!==a||r[9]!==l?(i=(0,g.jsx)("li",{"aria-selected":l,"data-ui":"AutocompleteOption",id:a,role:"option",onClick:u,onKeyDown:c,children:o}),r[5]=o,r[6]=u,r[7]=c,r[8]=a,r[9]=l,r[10]=i):i=r[10],i}function h3(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let h5=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],h4=["bottom-start","to
1076p-start"],h6=(e,t)=>t?t.value:e,h7=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1;function h9({renderPopover:e,content:t,hidden:n,inputElement:i,onMouseEnter:r,onMouseLeave:o,resultsPopoverElementRef:a}){return e({content:t,hidden:n,inputElement:i,onMouseEnter:r,onMouseLeave:o},a)}function h8(e){return 0===e?0:1===e||2===e?1:e-2}function fe(e){return Math.max(e-1,0)}(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L,N,O,D,B,F,H,W,U,Y,X,G,q,K,Z,J,Q,ee,et,en,ei,er,eo,ea,es,el,ed,eu,ec,eh,ef,ep=eD.c(181);ep[0]!==e?({border:R,customValidity:n,disabled:i,filterOption:r,fontSize:T,icon:o,id:a,listBox:E,loading:s,onBlur:l,onChange:d,onFocus:u,onQueryChange:c,onSelect:h,openButton:f,openOnFocus:p,options:m,padding:C,popover:A,prefix:y,radius:_,readOnly:v,relatedElements:w,renderOption:x,renderPopover:k,renderValue:j,suffix:$,value:M,...S}=e,ep[0]=e,ep[1]=n,ep[2]=i,ep[3]=r,ep[4]=o,ep[5]=a,ep[6]=s,ep[7]=l,ep[8]=d,ep[9]=u,ep[10]=c,ep[11]=h,ep[12]=f,ep[13]=p,ep[14]=m,ep[15]=y,ep[16]=v,ep[17]=w,ep[18]=x,ep[19]=k,ep[20]=S,ep[21]=$,ep[22]=R,ep[23]=T,ep[24]=E,ep[25]=C,ep[26]=A,ep[27]=_,ep[28]=j,ep[29]=M):(n=ep[1],i=ep[2],r=ep[3],o=ep[4],a=ep[5],s=ep[6],l=ep[7],d=ep[8],u=ep[9],c=ep[10],h=ep[11],f=ep[12],p=ep[13],m=ep[14],y=ep[15],v=ep[16],w=ep[17],x=ep[18],k=ep[19],S=ep[20],$=ep[21],R=ep[22],T=ep[23],E=ep[24],C=ep[25],A=ep[26],_=ep[27],j=ep[28],M=ep[29]);let em=void 0===R||R,eg=void 0===T?2:T,eb=void 0===E?db:E,ey=void 0===C?3:C,ev=void 0===A?db:A,ew=void 0===_?2:_,ex=void 0===j?h6:j,ek=M||null,eS=M||null;ep[30]!==ek||ep[31]!==eS?(I={activeValue:ek,focused:!1,listFocused:!1,query:null,value:eS},ep[30]=ek,ep[31]=eS,ep[32]=I):I=ep[32];let[e$,eR]=(0,b.useReducer)(h3,I),{activeValue:eT,focused:eE,listFocused:eC,query:eA,value:e_}=e$;ep[33]!==eg||ep[34]!==ey?(P=e=>{let{value:t}=e;return(0,g.jsx)(u5,{"data-as":"button",padding:ey,radius:2,tone:"inherit",children:(0,g.jsx)(uU,{size:eg,textOverflow:"ellipsis",children:t})})},ep[33]=eg,ep[34]=ey,ep[35]=P):P=ep[35];let ej="function"==typeof x?x:P,eM="function"==typeof r?r:h7,eI=(0,b.useRef)(null),eP=(0,b.useRef)(null),eV=(0,b.useRef)(null),ez=(0,b.useRef)(null),[eL,eN]=(0,b.useState)(null);ep[36]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{(0,b.startTransition)(()=>eN(e))},ep[36]=V):V=ep[36];let eO=V,eB=(0,b.useRef)(!1),eF=(0,b.useRef)(e_),eH=(0,b.useRef)(M),eW=(0,b.useRef)(!1);ep[37]!==eL?(z=()=>eL,L=[eL],ep[37]=eL,ep[38]=z,ep[39]=L):(z=ep[38],L=ep[39]),(0,b.useImperativeHandle)(eV,z,L),ep[40]!==eL?(N=()=>eL,O=[eL],ep[40]=eL,ep[41]=N,ep[42]=O):(N=ep[41],O=ep[42]),(0,b.useImperativeHandle)(t,N,O);let eU=`${a}-listbox`,eX=Array.isArray(m)?m:dg,eG=dE(ey);ep[43]!==eX||ep[44]!==e_?(D=null!==e_?eX.find(e=>e.value===e_):void 0,ep[43]=eX,ep[44]=e_,ep[45]=D):D=ep[45];let eq=D;if(ep[46]!==eM||ep[47]!==eX||ep[48]!==eA){let e;ep[50]!==eM||ep[51]!==eA?(e=e=>!eA||eM(eA,e),ep[50]=eM,ep[51]=eA,ep[52]=e):e=ep[52],B=eX.filter(e),ep[46]=eM,ep[47]=eX,ep[48]=eA,ep[49]=B}else B=ep[49];let eK=B,eZ=eK.length,eJ=eT?`${a}-option-${eT}`:void 0,eQ=null!==eA&&s||eE&&null!==eA;ep[53]!==l||ep[54]!==c||ep[55]!==w?(F=e=>{setTimeout(()=>{if(eW.current)return;let t=(w||[]).concat(eI.current?[eI.current]:[],eP.current?[eP.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(eR({type:"root/blur"}),eW.current=!1,c&&c(null),l&&l(e))},0)},ep[53]=l,ep[54]=c,ep[55]=w,ep[56]=F):F=ep[56];let e0=F;ep[57]===Symbol.for("react.memo_cache_sentinel")?(H=e=>{let t=ez.current,n=e.target instanceof HTMLElement?e.target:null,i=t?.contains(n)||!1;i!==eB.current&&(eB.current=i,eR({type:"root/setListFocused",listFocused:i}))},ep[57]=H):H=ep[57];let e1=H;ep[58]!==d||ep[59]!==c||ep[60]!==h?(W=e=>{eR({type:"value/change",value:e}),eW.current=!1,h&&h(e),eF.current=e,d&&d(e),c&&c(null),eV.current?.focus()},ep[58]=d,ep[59]=c,ep[60]=h,ep[61]=W):W=ep[61];let e2=W;ep[62]!==eT||ep[63]!==eK||ep[64]!==eZ||ep[65]!==c?(U=e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eZ)return;let t=eK.find(e=>e.value===eT),n=t?eK.indexOf(t):-1,i=eK[(n+1)%eZ];i&&eR({type:"root/setActiveValue",value:i.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eZ)return;let t=eK.find(e=>e.value===eT),n=t?eK.indexOf(t):-1,i=eK[-1===n?eZ-1:(eZ+n-1)%eZ];i&&eR({type:"root/setActiveValue",value:i.value,listFocused:!0});return}if("Escape"===e.key){eR({type:"root/escape"}),eW.current=!1,c&&c(null),eV.current?.focus();return}let t=e.target,n=ez.current;
1076if((n===t||n?.contains(t))&&!h5.includes(e.key))return void eV.current?.focus()},ep[62]=eT,ep[63]=eK,ep[64]=eZ,ep[65]=c,ep[66]=U):U=ep[66];let e3=U;ep[67]!==c?(Y=e=>{let t=e.currentTarget.value;eR({type:"input/change",query:t}),c&&c(t)},ep[67]=c,ep[68]=Y):Y=ep[68];let e5=Y;ep[69]!==eq||ep[70]!==ex||ep[71]!==e_?(X=()=>{eR({type:"root/open",query:e_?ex(e_,eq):""})},ep[69]=eq,ep[70]=ex,ep[71]=e_,ep[72]=X):X=ep[72];let e4=X;ep[73]!==e4||ep[74]!==eE||ep[75]!==u||ep[76]!==p?(G=e=>{eE||(eR({type:"input/focus"}),u&&u(e),p&&e4())},ep[73]=e4,ep[74]=eE,ep[75]=u,ep[76]=p,ep[77]=G):G=ep[77];let e6=G;ep[78]===Symbol.for("react.memo_cache_sentinel")?(q=()=>{eW.current=!0},ep[78]=q):q=ep[78];let e7=q;ep[79]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{eW.current=!1},ep[79]=K):K=ep[79];let e9=K;ep[80]!==d||ep[81]!==c?(Z=()=>{eR({type:"root/clear"}),eF.current="",d&&d(""),c&&c(null),eV.current?.focus()},ep[80]=d,ep[81]=c,ep[82]=Z):Z=ep[82];let e8=Z;ep[83]===Symbol.for("react.memo_cache_sentinel")?(J=()=>{eR({type:"input/focus"})},ep[83]=J):J=ep[83];let te=J;ep[84]!==M?(Q=()=>{if(M!==eH.current){eH.current=M,void 0!==M&&(eR({type:"value/change",value:M}),eF.current=M);return}M!==eF.current&&(eF.current=M||null,eR({type:"value/change",value:M||null}))},ee=[M],ep[84]=M,ep[85]=Q,ep[86]=ee):(Q=ep[85],ee=ep[86]),(0,b.useEffect)(Q,ee),ep[87]!==eE?(et=()=>{!eE&&eF.current&&eR({type:"root/setActiveValue",value:eF.current})},en=[eE],ep[87]=eE,ep[88]=et,ep[89]=en):(et=ep[88],en=ep[89]),(0,b.useEffect)(et,en),ep[90]!==eT||ep[91]!==eK?(ei=()=>{let e=ez.current;if(!e)return;let t=eK.find(e=>e.value===eT);if(t){let n=eK.indexOf(t),i=e.childNodes[n];if(i){if(document.activeElement&&i.contains(document.activeElement))return;hZ(i)}}},er=[eT,eK],ep[90]=eT,ep[91]=eK,ep[92]=ei,ep[93]=er):(ei=ep[92],er=ep[93]),(0,b.useEffect)(ei,er);e:{if(!s&&!i&&e_){let e;ep[94]===Symbol.for("react.memo_cache_sentinel")?(e={"aria-label":"Clear",onFocus:te},ep[94]=e):e=ep[94],eo=e;break e}eo=void 0}let tt=eo,tn=eG.map(h8),ti=eG.map(fe),tr="object"==typeof f?f:db;ep[95]!==e4||ep[96]!==tr?(ea=e=>{e4(),tr.onClick&&tr.onClick(e),requestAnimationFrame(()=>eV.current?.focus())},ep[95]=e4,ep[96]=tr,ep[97]=ea):ea=ep[97];let to=ea;ep[98]!==i||ep[99]!==eQ||ep[100]!==eg||ep[101]!==to||ep[102]!==f||ep[103]!==tn||ep[104]!==ti||ep[105]!==tr||ep[106]!==v?(es=i||v||!f?void 0:(0,g.jsx)(uH,{"aria-hidden":eQ,padding:tn,children:(0,g.jsx)(u2,{"aria-label":"Open",disabled:eQ,fontSize:eg,icon:eY,mode:"bleed",padding:ti,...tr,onClick:to})}),ep[98]=i,ep[99]=eQ,ep[100]=eg,ep[101]=to,ep[102]=f,ep[103]=tn,ep[104]=ti,ep[105]=tr,ep[106]=v,ep[107]=es):es=ep[107];let ta=es;t:{if(null===eA){if(null!==e_){let e;ep[108]!==eq||ep[109]!==ex||ep[110]!==e_?(e=ex(e_,eq),ep[108]=eq,ep[109]=ex,ep[110]=e_,ep[111]=e):e=ep[111],el=e;break t}el="";break t}el=eA}let ts=el;ep[112]!==eC?(ed=e=>{"Tab"===e.key&&eC&&eV.current?.focus()},ep[112]=eC,ep[113]=ed):ed=ep[113];let tl=ed;n:{let e,t,n;if(0===eK.length){eu=null;break n}if(ep[114]!==eT||ep[115]!==eq||ep[116]!==eK||ep[117]!==e2||ep[118]!==a||ep[119]!==eC||ep[120]!==s||ep[121]!==ej){let t;ep[123]!==eT||ep[124]!==eq||ep[125]!==e2||ep[126]!==a||ep[127]!==eC||ep[128]!==s||ep[129]!==ej?(t=e=>{let t=null!==eT?e.value===eT:eq===e;return(0,g.jsx)(h2,{id:`${a}-option-${e.value}`,onSelect:e2,selected:t,value:e.value,children:(0,b.cloneElement)(ej(e),{disabled:s,selected:t,tabIndex:eC&&t?0:-1})},e.value)},ep[123]=eT,ep[124]=eq,ep[125]=e2,ep[126]=a,ep[127]=eC,ep[128]=s,ep[129]=ej,ep[130]=t):t=ep[130],e=eK.map(t),ep[114]=eT,ep[115]=eq,ep[116]=eK,ep[117]=e2,ep[118]=a,ep[119]=eC,ep[120]=s,ep[121]=ej,ep[122]=e}else e=ep[122];ep[131]!==eU||ep[132]!==e?(t=(0,g.jsx)(hs,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:eU,ref:ez,role:"listbox",space:1,children:e}),ep[131]=eU,ep[132]=e,ep[133]=t):t=ep[133],ep[134]!==tl||ep[135]!==eb||ep[136]!==t?(n=(0,g.jsx)(hQ,{"data-ui":"AutoComplete__results",onKeyDown:tl,padding:1,...eb,tabIndex:-1,children:t}),ep[134]=tl,ep[135]=eb,ep[136]=t,ep[137]=n):n=ep[137],eu=n}let td=eu;i:{let e;if(k){let e,t=!eQ;ep[138]!==td||ep[139]!==e7||ep[140]!==e9||ep[141]!==eL||ep[142]!==k||ep[143]!==t?(e=(0,g.jsx)(h9,{content:td,hidden:t,inputElement:eL,onMouseEnter:e7,onMouseLeave:e9,resultsPopoverElementRef:eP,renderPopover:k}),ep[138]=td,ep[139]=e7,ep[140]=e9,ep[141]=eL,ep[142]=k,ep[143]=t,ep[144]=e):e=ep[144],ec=e;break i}if(0===eZ){ec=null;break i}ep[145]!==td||ep[146]!==eQ||ep[147]!==e7||ep[148]!==e9||ep[149]!==eL||ep[150]!==ev||ep[151]!==ew?(e=(0,g.jsx)(c6,{arrow:!1,constrainSize:!0,content:td,fallbackPlacements:h4,matchReferenceWidth:!0,onMouseEnter:e7,onMouseLeave:e9,open:eQ,overflow:"auto",placement:"bottom-start",portal:!0,radius:ew,ref:eP,referenceElement:eL,...ev}),ep[145]=td,ep[146]=eQ,ep[147]=e7,ep[148]=e9,ep[149]=eL,ep[150]=ev,ep[151]=ew,ep[152]=e):e=ep[152],ec=e}let tu=ec,tc=s&&h1,th=$||ta;return ep[153]!==eJ||ep[154]!==em||ep[155]!==tt||ep[156]!==n||ep[157]!==i||ep[158]!==eQ||ep[159]!==eg||ep[160]!==e8||ep[161]!==e5||ep[162]!==e6||ep[163]!==o||ep[164]!==a||ep[165]!==ts||ep[166]!==eU||ep[167]!==eG||ep[168]!==y||ep[169]!==ew||ep[170
1076]!==v||ep[171]!==S||ep[172]!==tc||ep[173]!==th?(eh=(0,g.jsx)(hC,{...S,"aria-activedescendant":eJ,"aria-autocomplete":"list","aria-expanded":eQ,"aria-owns":eU,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:em,clearButton:tt,customValidity:n,disabled:i,fontSize:eg,icon:o,iconRight:tc,id:a,inputMode:"search",onChange:e5,onClear:e8,onFocus:e6,padding:eG,prefix:y,radius:ew,readOnly:v,ref:eO,role:"combobox",spellCheck:!1,suffix:th,value:ts}),ep[153]=eJ,ep[154]=em,ep[155]=tt,ep[156]=n,ep[157]=i,ep[158]=eQ,ep[159]=eg,ep[160]=e8,ep[161]=e5,ep[162]=e6,ep[163]=o,ep[164]=a,ep[165]=ts,ep[166]=eU,ep[167]=eG,ep[168]=y,ep[169]=ew,ep[170]=v,ep[171]=S,ep[172]=tc,ep[173]=th,ep[174]=eh):eh=ep[174],ep[175]!==e0||ep[176]!==e1||ep[177]!==e3||ep[178]!==tu||ep[179]!==eh?(ef=(0,g.jsxs)(hJ,{"data-ui":"Autocomplete",onBlur:e0,onFocus:e1,onKeyDown:e3,ref:eI,children:[eh,tu]}),ep[175]=e0,ep[176]=e1,ep[177]=e3,ep[178]=tu,ep[179]=eh,ep[180]=ef):ef=ep[180],ef}).displayName="ForwardRef(Autocomplete)";let ft=y.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,fn=(0,y.I4)(u2).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`;(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y=eD.c(30);y[0]!==e?({children:n,gap:i,maxLength:r,separator:a,space:s,...o}=e,y[0]=e,y[1]=n,y[2]=i,y[3]=r,y[4]=o,y[5]=a,y[6]=s):(n=y[1],i=y[2],r=y[3],o=y[4],a=y[5],s=y[6]);let v=void 0===i?void 0===s?2:s:i;y[7]!==v?(l=dE(v),y[7]=v,y[8]=l):l=y[8];let w=l,[x,k]=(0,b.useState)(!1),S=(0,b.useRef)(null),$=(0,b.useRef)(null);y[9]===Symbol.for("react.memo_cache_sentinel")?(d=()=>k(!1),y[9]=d):d=y[9];let R=d;y[10]===Symbol.for("react.memo_cache_sentinel")?(u=()=>k(!0),y[10]=u):u=y[10];let T=u;y[11]===Symbol.for("react.memo_cache_sentinel")?(c=()=>[S.current,$.current],y[11]=c):c=y[11],u4(R,c),y[12]!==n?(h=b.Children.toArray(n).filter(b.isValidElement),y[12]=n,y[13]=h):h=y[13];let E=h;y[14]!==r||y[15]!==x||y[16]!==E||y[17]!==w?(f={collapse:R,expand:T,expandElementRef:S,maxLength:r,open:x,popoverElementRef:$,rawItems:E,space:w},y[14]=r,y[15]=x,y[16]=E,y[17]=w,y[18]=f):f=y[18];let C=function(e){let t=eD.c(28),{collapse:n,expand:i,expandElementRef:r,maxLength:o,open:a,popoverElementRef:s,rawItems:l,space:d}=e,u=l.length;if(o&&u>o){let e,c=Math.ceil(o/2),h=Math.floor(o/2);if(t[0]!==h||t[1]!==c||t[2]!==n||t[3]!==i||t[4]!==r||t[5]!==u||t[6]!==a||t[7]!==s||t[8]!==l||t[9]!==d){let o,f,p,m,b=l.slice(0,c-1);t[11]!==h||t[12]!==c||t[13]!==u||t[14]!==l?(o=l.slice(c-1,u-h),t[11]=h,t[12]=c,t[13]=u,t[14]=l,t[15]=o):o=t[15],t[16]!==d||t[17]!==o?(f=(0,g.jsx)(hs,{as:"ol",overflow:"auto",padding:d,gap:d,children:o}),t[16]=d,t[17]=o,t[18]=f):f=t[18];let y=a?n:i;t[19]!==r||t[20]!==a||t[21]!==y?(p=(0,g.jsx)(fn,{fontSize:1,mode:"bleed",onClick:y,padding:1,ref:r,selected:a,text:"…"}),t[19]=r,t[20]=a,t[21]=y,t[22]=p):p=t[22],t[23]!==a||t[24]!==s||t[25]!==f||t[26]!==p?(m=(0,g.jsx)(c6,{constrainSize:!0,content:f,open:a,placement:"top",portal:!0,ref:s,children:p},"button"),t[23]=a,t[24]=s,t[25]=f,t[26]=p,t[27]=m):m=t[27],e=[...b,m,...l.slice(u-h)],t[0]=h,t[1]=c,t[2]=n,t[3]=i,t[4]=r,t[5]=u,t[6]=a,t[7]=s,t[8]=l,t[9]=d,t[10]=e}else e=t[10];return e}return l}(f);if(y[19]!==C||y[20]!==a||y[21]!==w){let e;y[23]!==a||y[24]!==w?(e=(e,t)=>(0,g.jsxs)(b.Fragment,{children:[t>0&&(0,g.jsx)(uH,{"aria-hidden":!0,as:"li",paddingX:w,children:a||(0,g.jsx)(uU,{muted:!0,children:"/"})}),(0,g.jsx)(uH,{as:"li",children:e})]},t),y[23]=a,y[24]=w,y[25]=e):e=y[25],p=C.map(e),y[19]=C,y[20]=a,y[21]=w,y[22]=p}else p=y[22];return y[26]!==t||y[27]!==o||y[28]!==p?(m=(0,g.jsx)(ft,{"data-ui":"Breadcrumbs",...o,ref:t,children:p}),y[26]=t,y[27]=o,y[28]=p,y[29]=m):m=y[29],m}).displayName="ForwardRef(Breadcrumbs)";let fi=dM("@sanity/ui/context/dialog",{version:0});function fr(e,t,n){return!e||!t||d$(e,n)||d$(t,n)}let fo=(0,y.I4)(cW).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(uS,function({theme:e}){let{color:t}=F(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=F(e.theme);return dT(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,y.AH)`
1077    @keyframes zoomIn {
1078      from {
1079        opacity: 0;
1080        transform: scale(0.95);
1081      }
1082      to {
1083        opacity: 1;
1084        transform: scale(1);
1085      }
1086    }
1087    @keyframes fadeIn {
1088      from {
1089        opacity: 0;
1090      }
1091      to {
1092        opacity: 1;
1093      }
1094    }
1095
1096    animation: fadeIn 200ms ease-out;
1097    // Animates the dialog card.
1098    & > [data-ui='DialogCard'] {
1099      animation: zoomIn 200ms ease-out;
1100    }
1101  `:(0,y.AH)``}),fa=(0,y.I4)(cm).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,fs=(0,y.I4)(u5).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,fl=(0,y.I4)(uG).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,fd=(0,y.I4)(uH).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,fu=(0,y.I4)(uH).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,fc=(0,y.I4)(uH).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,fh=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w=eD.c(44),{__unstable_autoFocus:x,__unstable_hideCloseButton:k,children:S,contentRef:$,footer:R,header:T,id:E,onClickOutside:C,onClose:A,portal:_,radius:j,scheme:M,shadow:I,width:P}=e,V=cG(),z=_?V.elements?.[_]||null:V.element,L=cV().element;w[0]!==j?(n=dE(j),w[0]=j,w[1]=n):n=w[1];let N=n;w[2]!==I?(i=dE(I),w[2]=I,w[3]=i):i=w[3];let O=i;w[4]!==P?(r=dE(P),w[4]=P,w[5]=r):r=w[5];let D=r,B=(0,b.useRef)(null),F=(0,b.useRef)(null),{isTopLayer:H}=cB(),W=`${E}_label`,U=!!A&&!1===k,Y=!!T||U;return w[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>B.current,w[6]=o):o=w[6],(0,b.useImperativeHandle)(t,o),w[7]===Symbol.for("react.memo_cache_sentinel")?(a=()=>F.current,w[7]=a):a=w[7],(0,b.useImperativeHandle)($,a),w[8]!==x?(s=()=>{x&&B.current&&hZ(B.current)},l=[x,B],w[8]=x,w[9]=s,w[10]=l):(s=w[9],l=w[10]),(0,b.useEffect)(s,l),w[11]!==L||w[12]!==H||w[13]!==A||w[14]!==z?(d=e=>{if(!H||!A)return;let t=document.activeElement;t&&!fr(L,z,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),A())},w[11]=L,w[12]=H,w[13]=A,w[14]=z,w[15]=d):d=w[15],ct(d),w[16]!==L||w[17]!==H||w[18]!==C||w[19]!==z?(u=H&&C&&(e=>{let t=e.target;t&&!fr(L,z,t)||C()}),w[16]=L,w[17]=H,w[18]=C,w[19]=z,w[20]=u):u=w[20],w[21]===Symbol.for("react.memo_cache_sentinel")?(c=()=>[B.current],w[21]=c):c=w[21],u4(u,c),w[22]!==T||w[23]!==W||w[24]!==A||w[25]!==U||w[26]!==Y?(h=Y&&(0,g.jsx)(fd,{children:(0,g.jsxs)(uG,{align:"flex-start",padding:3,children:[(0,g.jsx)(uH,{flex:1,padding:2,children:T&&(0,g.jsx)(uU,{id:W,size:1,weight:"semibold",children:T})}),U&&(0,g.jsx)(uH,{flex:"none",children:(0,g.jsx)(u2,{"aria-label":"Close dialog",disabled:!A,icon:eX,mode:"bleed",onClick:A,padding:2})})]})}),w[22]=T,w[23]=W,w[24]=A,w[25]=U,w[26]=Y,w[27]=h):h=w[27],w[28]!==S?(f=(0,g.jsx)(fu,{flex:1,ref:F,tabIndex:-1,children:S}),w[28]=S,w[29]=f):f=w[29],w[30]!==R?(p=R&&(0,g.jsx)(fc,{children:R}),w[30]=R,w[31]=p):p=w[31],w[32]!==h||w[33]!==f||w[34]!==p?(m=(0,g.jsxs)(fl,{direction:"column",children:[h,f,p]}),w[32]=h,w[33]=f,w[34]=p,w[35]=m):m=w[35],w[36]!==N||w[37]!==M||w[38]!==O||w[39]!==m?(y=(0,g.jsx)(fs,{radius:N,ref:B,scheme:M,shadow:O,children:m}),w[36]=N,w[37]=M,w[38]=O,w[39]=m,w[40]=y):y=w[40],w[41]!==y||w[42]!==D?(v=(0,g.jsx)(fa,{"data-ui":"DialogCard",width:D,children:y}),w[41]=y,w[42]=D,w[43]=v):v=w[43],v});function ff(e){return!e}fh.displayName="ForwardRef(DialogCard)",(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E,C,A,_,j,M,I,P,V,z,L=eD.c(70),N=(0,b.useContext)(fi),{layer:O}=dL();L[0]!==e?({__unstable_autoFocus:y,__unstable_hideCloseButton:v,cardRadius:w,cardShadow:x,children:r,contentRef:o,footer:a,header:s,id:l,onActivate:d,onClickOutside:u,onClose:c,onFocus:h,padding:k,portal:f,position:n,scheme:m,width:S,zOffset:i,animate:$,...p}=e,L[0]=e,L[1]=n,L[2]=i,L[3]=r,L[4]=o,L[5]=a,L[6]=s,L[7]=l,L[8]=d,L[9]=u,L[10]=c,L[11]=h,L[12]=f,L[13]=p,L[14]=m,L[15]=y,L[16]=v,L[17]=w,L[18]=x,L[19]=k,L[20]=S,L[21]=$):(n=L[1],i=L[2],r=L[3],o=L[4],a=L[5
1101],s=L[6],l=L[7],d=L[8],u=L[9],c=L[10],h=L[11],f=L[12],p=L[13],m=L[14],y=L[15],v=L[16],w=L[17],x=L[18],k=L[19],S=L[20],$=L[21]);let D=void 0===y||y,B=void 0!==v&&v,F=void 0===w?4:w,H=void 0===x?3:x,W=void 0===k?3:k,U=void 0===S?0:S,Y=void 0!==$&&$,X=n??(N.position||"fixed"),G=i??(N.zOffset||O.dialog.zOffset),q=!ca()&&Y,K=cG(),Z=f?K.elements?.[f]||null:K.element,J=cV().element;L[22]!==F?(R=dE(F),L[22]=F,L[23]=R):R=L[23];let Q=R;L[24]!==W?(T=dE(W),L[24]=W,L[25]=T):T=L[25];let ee=T;L[26]!==X?(E=dE(X),L[26]=X,L[27]=E):E=L[27];let et=E;L[28]!==U?(C=dE(U),L[28]=U,L[29]=C):C=L[29];let en=C;L[30]!==G?(A=dE(G),L[30]=G,L[31]=A):A=L[31];let ei=A,er=(0,b.useRef)(null),eo=(0,b.useRef)(null),ea=(0,b.useRef)(null),es=(0,b.useRef)(null);L[32]!==h?(_=e=>{h?.(e);let t=e.target,n=ea.current;n&&t===er.current?function e(t){for(let n=t.childNodes.length-1;n>=0;n--){let i=t.childNodes[n];if(dx(i)&&(hK(i)||e(i)))return!0}return!1}(n):n&&t===eo.current?hZ(n):dx(e.target)&&(es.current=e.target)},L[32]=h,L[33]=_):_=L[33];let el=_,ed=`${l}_label`,eu=(0,b.useRef)(void 0);L[34]!==J||L[35]!==Z?(j=()=>{eu.current&&clearTimeout(eu.current),eu.current=setTimeout(()=>{let e=document.activeElement;if(e&&!fr(J,Z,e)){let e=es.current;if(!e||!document.body.contains(e)){let e=ea.current;e&&hZ(e);return}
1101e.focus()}},0)},L[34]=J,L[35]=Z,L[36]=j):j=L[36];let ec=j;return L[37]===Symbol.for("react.memo_cache_sentinel")?(M=(0,g.jsx)("div",{ref:er,tabIndex:0}),L[37]=M):M=L[37],L[38]!==D||L[39]!==Q||L[40]!==H||L[41]!==r||L[42]!==o||L[43]!==a||L[44]!==s||L[45]!==B||L[46]!==l||L[47]!==u||L[48]!==c||L[49]!==f||L[50]!==m||L[51]!==en?(I=(0,g.jsx)(fh,{__unstable_autoFocus:D,__unstable_hideCloseButton:B,contentRef:o,footer:a,header:s,id:l,onClickOutside:u,onClose:c,portal:f,radius:Q,ref:ea,scheme:m,shadow:H,width:en,children:r}),L[38]=D,L[39]=Q,L[40]=H,L[41]=r,L[42]=o,L[43]=a,L[44]=s,L[45]=B,L[46]=l,L[47]=u,L[48]=c,L[49]=f,L[50]=m,L[51]=en,L[52]=I):I=L[52],L[53]===Symbol.for("react.memo_cache_sentinel")?(P=(0,g.jsx)("div",{ref:eo,tabIndex:0}),L[53]=P):P=L[53],L[54]!==q||L[55]!==el||L[56]!==ec||L[57]!==l||L[58]!==ed||L[59]!==d||L[60]!==ee||L[61]!==et||L[62]!==t||L[63]!==p||L[64]!==I||L[65]!==ei?(V=(0,g.jsxs)(fo,{...p,$animate:q,$padding:ee,$position:et,"aria-labelledby":ed,"aria-modal":!0,"data-ui":"Dialog",id:l,onActivate:d,onClick:ec,onFocus:el,ref:t,role:"dialog",zOffset:ei,children:[M,I,P]}),L[54]=q,L[55]=el,L[56]=ec,L[57]=l,L[58]=ed,L[59]=d,L[60]=ee,L[61]=et,L[62]=t,L[63]=p,L[64]=I,L[65]=ei,L[66]=V):V=L[66],L[67]!==f||L[68]!==V?(z=(0,g.jsx)(cq,{__unstable_name:f,children:V}),L[67]=f,L[68]=V,L[69]=z):z=L[69],z}).displayName="ForwardRef(Dialog)",(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T,E=eD.c(62),{__unstable_disableRestoreFocusOnClose:C,boundaryElement:A,button:_,id:j,menu:M,onClose:I,onOpen:P,placement:V,popoverScheme:z,portal:L,popover:N,popoverRadius:O,preventOverflow:D}=e,B=void 0!==C&&C,F=void 0===L||L,[H,W]=(0,b.useState)(!1),[U,Y]=(0,b.useState)(null),[X,G]=(0,b.useState)(null);E[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],E[0]=n):n=E[0];let[q,K]=(0,b.useState)(n),Z=(0,b.useRef)(H);E[1]!==P||E[2]!==H?(i=()=>{P&&H&&!Z.current&&P()},r=[P,H],E[1]=P,E[2]=H,E[3]=i,E[4]=r):(i=E[3],r=E[4]),(0,b.useEffect)(i,r),E[5]!==I||E[6]!==H?(o=()=>{I&&!H&&Z.current&&I()},a=[I,H],E[5]=I,E[6]=H,E[7]=o,E[8]=a):(o=E[7],a=E[8]),(0,b.useEffect)(o,a),E[9]!==H?(s=()=>{Z.current=H},l=[H],E[9]=H,E[10]=s,E[11]=l):(s=E[10],l=E[11]),(0,b.useEffect)(s,l),E[12]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{W(ff),Y(null)},E[12]=d):d=E[12];let J=d;E[13]!==H?(u=e=>{H&&e.preventDefault()},E[13]=H,E[14]=u):u=E[14];let Q=u;E[15]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),W(!0),Y("first");return}if("ArrowUp"===e.key){e.preventDefault(),W(!0),Y("last");return}},E[15]=c):c=E[15];let ee=c;E[16]!==X||E[17]!==q?(h=e=>{let t=e.target;if(t instanceof Node&&!(X&&(t===X||X.contains(t)))){for(let e of q)if(t===e||e.contains(t))return;W(!1)}},E[16]=X,E[17]=q,E[18]=h):h=E[18];let et=h;E[19]!==X||E[20]!==B?(f=()=>{W(!1),!B&&X&&X.focus()},E[19]=X,E[20]=B,E[21]=f):f=E[21];let en=f;E[22]!==q?(p=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of q)if(e===t||e.contains(t))return;W(!1)}},E[22]=q,E[23]=p):p=E[23];let ei=p;E[24]!==X||E[25]!==B?(m=()=>{W(!1),!B&&X&&X.focus()},E[24]=X,E[25]=B,E[26]=m):m=E[26];let er=m;E[27]===Symbol.for("react.memo_cache_sentinel")?(y=e=>(K(t=>t.concat([e])),()=>K(t=>t.filter(t=>t!==e))),E[27]=y):y=E[27];let eo=y;E[28]!==X||E[29]!==ei||E[30]!==er||E[31]!==et||E[32]!==en||E[33]!==j||E[34]!==M||E[35]!==U?(v=M&&(0,b.cloneElement)(M,{"aria-labelledby":j,onBlurCapture:ei,onClickOutside:et,onEscape:en,onItemClick:er,originElement:X,registerElement:eo,shouldFocus:U}),E[28]=X,E[29]=ei,E[30]=er,E[31]=et,E[32]=en,E[33]=j,E[34]=M,E[35]=U,E[36]=v):v=E[36];let ea=v;E[37]!==_||E[38]!==Q||E[39]!==j||E[40]!==H?(w=_&&(0,b.cloneElement)(_,{"data-ui":"MenuButton",id:j,onClick:J,onKeyDown:ee,onMouseDown:Q,"aria-haspopup":!0,"aria-expanded":H,ref:G,selected:_.props.selected??H}),E[37]=_,E[38]=Q,E[39]=j,E[40]=H,E[41]=w):w=E[41];let es=w;E[42]!==X?(x=()=>X,k=[X],E[42]=X,E[43]=x,E[44]=k):(x=E[43],k=E[44]),(0,b.useImperativeHandle)(t,x,k),E[45]!==N?(S=N||{},E[45]=N,E[46]=S):S=E[46],E[47]!==A||E[48]!==V||E[49]!==O||E[50]!==z||E[51]!==F||E[52]!==D||E[53]!==S?($={boundaryElement:A,overflow:"auto",placement:V,portal:F,preventOverflow:D,radius:O,scheme:z,...S},E[47]=A,E[48]=V,E[49]=O,E[50]=z,E[51]=F,E[52]=D,E[53]=S,E[54]=$):$=E[54];let el=$;return E[55]!==es?(R=es||(0,g.jsx)(g.Fragment,{}),E[55]=es,E[56]=R):R=E[56],E[57]!==ea||E[58]!==H||E[59]!==el||E[60]!==R?(T=(0,g.jsx)(c6,{"data-ui":"MenuButton__popover",...el,content:ea,open:H,children:R}),E[57]=ea,E[58]=H,E[59]=el,E[60]=R,E[61]=T):T=E[61],T}).displayName="ForwardRef(MenuButton)";let fp=(0,y.i7)`
1102  0% {
1103    background-position: 100%;
1104  }
1105  100% {
1106    background-position: -100%;
1107  }
1108`,fm=(0,y.AH)`
1109  background-image: linear-gradient(
1110    to right,
1111    var(--card-skeleton-color-from),
1112    var(--card-skeleton-color-to),
1113    var(--card-skeleton-color-from),
1114    var(--card-skeleton-color-from),
1115    var(--card-skeleton-color-from)
1116  );
1117  background-position: 100%;
1118  background-size: 200% 100%;
1119  background-attachment: fixed;
1120  animation-name: ${fp};
1121  animation-timing-function: ease-in-out;
1122  animation-iteration-count: infinite;
1123  animation-duration: 2000ms;
1124`,fg=(0,y.AH)`
1125  opacity: ${({$visible:e})=>+!!e};
1126  transition: opacity 200ms ease-in;
1127
1128  @media screen and (prefers-reduced-motion: no-preference) {
1129    ${({$animated:e})=>e?fm:(0,y.AH)`
1130            background-color: var(--card-skeleton-color-from);
1131          `}
1132  }
1133
1134  @media screen and (prefers-reduced-motion: reduce) {
1135    background-color: var(--card-skeleton-color-from);
1136  }
1137`,fb=(0,y.I4)(uH).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(u$,fg),fy=(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u=eD.c(16);u[0]!==e?({animated:o,delay:n,radius:i,...r}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=r,u[4]=o):(n=u[1],i=u[2],r=u[3],o=u[4]);let c=void 0!==o&&o,[h,f]=(0,b.useState)(!n);u[5]!==n?(a=()=>
1137{if(!n)return;let e=setTimeout(()=>{f(!0)},n);return()=>{clearTimeout(e)}},s=[n],u[5]=n,u[6]=a,u[7]=s):(a=u[6],s=u[7]),(0,b.useEffect)(a,s),u[8]!==i?(l=dE(i),u[8]=i,u[9]=l):l=u[9];let p=!n||h;return u[10]!==c||u[11]!==t||u[12]!==r||u[13]!==l||u[14]!==p?(d=(0,g.jsx)(fb,{...r,$animated:c,$radius:l,$visible:p,ref:t}),u[10]=c,u[11]=t,u[12]=r,u[13]=l,u[14]=p,u[15]=d):d=u[15],d});fy.displayName="ForwardRef(Skeleton)";let fv=(0,y.I4)(fy).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:r}=F(e.theme),o=i[n];return dT(r,t,e=>{let t=o.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})});(0,b.forwardRef)(function(e,t){let n,i,r,o,a=eD.c(9);a[0]!==e?({size:i,...n}=e,a[0]=e,a[1]=n,a[2]=i):(n=a[1],i=a[2]);let s=void 0===i?2:i;a[3]!==s?(r=dE(s),a[3]=s,a[4]=r):r=a[4];let l=r;return a[5]!==l||a[6]!==t||a[7]!==n?(o=(0,g.jsx)(fv,{...n,$size:l,ref:t,$style:"text"}),a[5]=l,a[6]=t,a[7]=n,a[8]=o):o=a[8],o}).displayName="ForwardRef(TextSkeleton)",(0,b.forwardRef)(function(e,t){let n,i,r,o,a=eD.c(9);a[0]!==e?({size:i,...n}=e,a[0]=e,a[1]=n,a[2]=i):(n=a[1],i=a[2]);let s=void 0===i?2:i;a[3]!==s?(r=dE(s),a[3]=s,a[4]=r):r=a[4];let l=r;return a[5]!==l||a[6]!==t||a[7]!==n?(o=(0,g.jsx)(fv,{...n,$size:l,ref:t,$style:"label"}),a[5]=l,a[6]=t,a[7]=n,a[8]=o):o=a[8],o}).displayName="ForwardRef(LabelSkeleton)",(0,b.forwardRef)(function(e,t){let n,i,r,o,a=eD.c(9);a[0]!==e?({size:i,...n}=e,a[0]=e,a[1]=n,a[2]=i):(n=a[1],i=a[2]);let s=void 0===i?2:i;a[3]!==s?(r=dE(s),a[3]=s,a[4]=r):r=a[4];let l=r;return a[5]!==l||a[6]!==t||a[7]!==n?(o=(0,g.jsx)(fv,{...n,$size:l,ref:t,$style:"heading"}),a[5]=l,a[6]=t,a[7]=n,a[8]=o):o=a[8],o}).displayName="ForwardRef(HeadingSkeleton)",(0,b.forwardRef)(function(e,t){let n,i,r,o,a=eD.c(9);a[0]!==e?({size:i,...n}=e,a[0]=e,a[1]=n,a[2]=i):(n=a[1],i=a[2]);let s=void 0===i?2:i;a[3]!==s?(r=dE(s),a[3]=s,a[4]=r):r=a[4];let l=r;return a[5]!==l||a[6]!==t||a[7]!==n?(o=(0,g.jsx)(fv,{...n,$size:l,ref:t,$style:"code"}),a[5]=l,a[6]=t,a[7]=n,a[8]=o):o=a[8],o}).displayName="ForwardRef(CodeSkeleton)",(0,b.forwardRef)(function(e,t){let n,i,r,o=eD.c(9);o[0]!==e?({flex:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]);let a=void 0===e.tabIndex?0:e.tabIndex;return o[3]!==n||o[4]!==e.children||o[5]!==t||o[6]!==i||o[7]!==a?(r=(0,g.jsx)(uH,{"data-ui":"TabPanel",...i,flex:n,ref:t,role:"tabpanel",tabIndex:a,children:e.children}),o[3]=n,o[4]=e.children,o[5]=t,o[6]=i,o[7]=a,o[8]=r):r=o[8],r}).displayName="ForwardRef(TabPanel)",(0,y.I4)(uG).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`;let fw=(0,y.I4)(u5).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,fx=y.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`;(0,y.I4)(u5).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`;let fk=(0,y.I4)(u5).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=F(e.theme);return t.button.default[e.tone].enabled.bg}};`;function fS(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}lT.create(fw),lT.create(uG),lT.create(uU),lT.create(fx),lT.create(fk),dM("@sanity/ui/context/toast",null),(0,y.I4)(cb).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`;let f$=dM("@sanity/ui/context/tree",null);(0,b.forwardRef)(function(e,t){let n,i,r,o,a,s,l,d,u,c,h,f,p,m,y,v,w,x,k,S,$,R,T=eD.c(38);T[0]!==e?({children:n,gap:i,space:a,onFocus:r,...o}=e,T[0]=e,T[1]=n,T[2]=i,T[3]=r,T[4]=o,T[5]=a):(n=T[1],i=T[2],r=T[3],o=T[4],a=T[5]);let E=void 0===i?void 0===a?1:a:i,C=(0,b.useRef)(null),[A,_]=(0,b.useState)(null),j=(0,b.useRef)(A);T[6]===Symbol.for("react.memo_cache_sentinel")?(s=[],T[6]=s):s=T[6];let M=s;T[7]===Symbol.for("react.memo_cache_sentinel")?(l=[],T[7]=l):l=T[7];let[I,P]=(0,b.useState)(l);T[8]===Symbol.for("react.memo_cache_sentinel")?(d={},T[8]=d):d=T[8];let[V,z]=(0,b.useState)(d),L=(0,b.useRef)(V);T[9]===Symbol.for("react.memo_cache_sentinel")?(u=()=>C.current,T[9]=u):u=T[9],(0,b.useImperativeHandle)(t,u),T[10]!==A?(c=()=>{j.current=A},h=[A],T[10]=A,T[11]=c,T[12]=h):(c=T[11],h=T[12]),(0,b.useEffect)(c,h),T[13]!==V?(f=()=>{L.current=V},p=[V],T[13]=V,T[14]=f,T[15]=p):(f=T[14],p=T[15]),(0,b.useEffect)(f,p),T[16]===Symbol.for("react.memo_cache_sentinel")?(m=(e,t,n,i)=>(z(i=>({...i,[t]:{element:e,expanded:n}})),i&&_(e),()=>{z(e=>{let n={...e};return delete n[t],n})}),T[16]=m):m=T[16];let N=m;T[17]===Symbol.for("react.memo_cache_sentinel")?(y=(e,t)=>{z(n=>{let i=n[e];return i?{...n,[e]:{...i,expanded:t}}:n})},T[17]=y):y=T[17];let O=y,D=A||I[0]||null;T[18]!==E||T[19]!==V||T[20]!==D?(v={version:0,focusedElement:D,level:0,path:M,registerItem:N,setExpanded:O,setFocusedElement:_,gap:E,space:E,state:V},T[18]=E,T[19]=V,T[20]=D,T[21]=v):v=T[21];let B=v;T[22]!==I?(w=e=>{if(j.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let i=t.indexOf(n),r=t.slice(i),o=t.length;for(let t=1;t<o;t+=1){if(!r[t])continue;let n=r[t].getAttribute("data-tree-key");if(!n)continue;let i=n.split("/");i.pop();let o=[],a=!0;for(let t=0;t<i.length;t+=1){o.push(i[t]);let n=o.join("/");if(!e[n]?.expanded){a=!1;break}}if(a)return r[t]}return null}(L.current,I,j.current);t&&(fS(t),_(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let i=t.indexOf(n),r=t.slice(0,i),o=r.length;for(let t=o-1;t>=0;t-=1){let n=r[t].getAttribute("data-tree-key");if(!n)continue;let i=n.split("/");i.pop();let o=[],a=!0;for(let t=0;t<i.length;t+=1){o.push(i[t]);let n=o.join("/");if(!e[n]?.expanded){a=!1;break}}if(a)return r[t]}return null}(L.current,I,j.current);t&&(fS(t),_(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=j.current.getAttribute("data-tree-key");if(!t)return;let n=L.current[t];if(!n)return;if(n.expanded)z(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),i=n&&L.current[n];i&&(i.element.focus(),_(i.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=j.current.getAttribute("data-tree-key");if(!t)return;L.current[t]?.expanded||z(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},T[22]=I,T[23]=w):w=T[23];let F=w;T[24]!==r?(x=e=>{_(e.target),r?.(e)},T[24]=r,T[25]=x):x=T[25];let H=x;return T[26]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{C.current&&P(Array.from(C.current.querySelectorAll('[data-ui="TreeItem"]')))},T[26]=k):k=T[26],T[27]!==n?(S=[n],T[27]=n,T[28]=S):S=T[28],(0,b.useEffect)(k,S),T[29]!==n||T[30]!==H||T[31]!==F||T[32]!==o||T[33]!==E?($=(0,g.jsx)(hs,{as:"ul","data-ui":"Tree",...o,onFocus:H,onKeyDown:F,ref:C,role:"tree",gap:E,children:n}),T[29]=n,T[30]=H,T[31]=F,T[32]=o,T[33]=E,T[34]=$):$=T[34],T[35]!==B||T[36]!==$?(R=(0,g.jsx)(f$.Provider,{value:B,children:$}),T[35]=B,T[36]=$,T[37]=R):R=T[37],R}).displayName="ForwardRef(Tree)",(0,y.I4)(uU).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;let fR={includeResult:!1,includePreviousRevision:!1,visibility:"query",events:["welcome","mutation","reconnect"]},fT=(e=[])=>
1137e.flat(1/0).filter((t,n)=>{let i=JSON.stringify({label:t.label,value:t.value});return n===e.flat(1/0).findIndex(e=>JSON.stringify({label:e.label,value:e.value})===i)}),fE=(e,t,n)=>{if(!e)return n;let i=!1,r;if(Array.isArray(t)&&(i=t.slice(0)),"string"==typeof t&&(i=t.split(".")),!Array.isArray(i))throw Error("path must be an array or a string");let o=e;for(;i.length;){if(!(r=i.shift())||!o||null===o||"object"!=typeof o||Array.isArray(o)||!(r in o))return n;o=o[r]}return o};function fC(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}let fA=(e,t,n)=>{let i=!1;if(Array.isArray(t)&&(i=t.slice(0)),"string"==typeof t&&(i=t.split(".")),!Array.isArray(i))throw Error("path must be an array or a string");let r=i.pop();if(!r)return!1;if(!fC(r))throw Error("setting of prototype values not supported");let o,a=e;for(;o=i.shift();){if(!fC(o))throw Error("setting of prototype values not supported");if(!o||(o in a||(a[o]={}),!(a=a[o])||"object"!=typeof a))return!1}return a[r]=n,!0};function f_(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)}let fj=async({client:e,tags:t,customLabel:n="label",customValue:i="value"})=>{let r=(({customLabel:e="label",customValue:t="value"})=>n=>{let i=fE(n,e),r=fE(n,t),o=i??n.label,a=r??n.value,s=null===o?"":String(o),l=null===a?"":String(a);return{...n,_type:"tag",_key:l,_labelTemp:n.label,_valueTemp:n.value,label:s,value:l}})({customLabel:n,customValue:i});if(null!=t){if(Array.isArray(t)&&!t.length)return[];if(Array.isArray(t)&&t.length&&!f_(t[0]))return t.map(e=>{let t=String(e),r={label:t,value:t};return fA(r,n,t),fA(r,i,t),r}).map(r);if(Array.isArray(t)&&f_(t[0])&&"_ref"in t[0]&&"_type"in t[0])return(await e.fetch("*[_id in $refs]",{refs:t.map(e=>e._ref)})).map(r);if(Array.isArray(t))return t.map(r);if(!f_(t)){let e=String(t),o={label:e,value:e};return fA(o,n,e),fA(o,i,e),r(o)}return r(f_(t)&&"_ref"in t&&"_type"in t?await e.fetch("*[_id == $ref][0]",{ref:t._ref}):t)}},fM=async e=>{let t=await fj(e);return void 0===t?[]:Array.isArray(t)?t:[t]},fI=({client:e,customLabel:t="label",customValue:n="value"})=>(0,k.F)((0,R.T)(e=>Array.isArray(e)?e.flat(1/0):e),(0,T.n)(i=>fM({client:e,tags:i,customLabel:t,customValue:n})),(0,R.T)(e=>fT(e))),fP=({client:e,query:t,params:n,customLabel:i="label",customValue:r="value"})=>e.listen(t,n,fR).pipe((0,T.n)(()=>e.fetch(t,n)),fI({client:e,customLabel:i,customValue:r})),fV=async e=>{let t=await e();return Array.isArray(t)?t:[t]},fz=()=>(0,g.jsxs)(u5,{padding:[3,3,4],marginBottom:[3,3,4],radius:2,shadow:1,tone:"caution",children:["Tag References cannot be created inline. Please set the ",(0,g.jsx)("code",{children:"allowCreate"})," option explicitly to ",(0,g.jsx)("code",{children:"false"})," to remove this warning message."]}),fL=()=>(0,g.jsxs)(u5,{padding:[3,3,4],marginBottom:[3,3,4],radius:2,shadow:1,tone:"caution",children:["Tag References cannot have predefined tags. Please unset the ",(0,g.jsx)("code",{children:"predefinedTags"})," option to remove this warning message."]});var fN={control:"TagsInput-module_control__Om-kz",input:"TagsInput-module_input__fdTrV",menu:"TagsInput-module_menu__l2H-i",option:"TagsInput-module_option__cqS2H",indicatorSeparator:"TagsInput-module_indicatorSeparator__koEIb",placeholder:"TagsInput-module_placeholder__ZjU5A",singleValue:"TagsInput-module_singleValue__bIhOY",multiValue:"TagsInput-module_multiValue__zq4m6",multiValueLabel:"TagsInput-module_multiValueLabel__R9vFQ",multiValueRemove:"TagsInput-module_multiValueRemove__2zX5H"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(`.TagsInput-module_control__Om-kz {
1138  background-color: var(--card-bg-color) !important;
1139  border-color: var(--card-border-color) !important;
1140  transition: none !important;
1141}
1142
1143.TagsInput-module_input__fdTrV {
1144  color: var(--input-fg-color) !important;
1145}
1146
1147.TagsInput-module_control__Om-kz:hover {
1148  border-color: var(--card-border-color) !important;
1149}
1150
1151.TagsInput-module_menu__l2H-i {
1152  background-color: var(--card-bg-color) !important;
1153  border: 1px solid var(--card-border-color) !important;
1154}
1155
1156.TagsInput-module_option__cqS2H {
1157  background-color: var(--card-bg-color) !important;
1158  color: var(--input-fg-color) !important;
1159}
1160
1161.TagsInput-module_option__cqS2H:hover {
1162  background-color: var(--card-border-color) !important;
1163}
1164
1165.TagsInput-module_indicatorSeparator__koEIb {
1166  background-color: var(--card-border-color) !important;
1167}
1168
1169.TagsInput-module_placeholder__ZjU5A,
1170.TagsInput-module_singleValue__bIhOY {
1171  color: var(--input-fg-color) !important;
1172}
1173
1174.TagsInput-module_multiValue__zq4m6 {
1175  background-color: var(--card-border-color) !important;
1176}
1177
1178.TagsInput-module_multiValueLabel__R9vFQ {
1179  color: var(--card-fg-color) !important;
1180}
1181
1182.TagsInput-module_multiValueRemove__2zX5H {
1183  color: var(--card-fg-color) !important;
1184}
1185
1186.TagsInput-module_multiValueRemove__2zX5H:hover {
1187  color: #de350b !important;
1188}
1189`);let fO=(0,b.forwardRef)((e,t)=>{let n=(0,m.tH7)({apiVersion:"2023-02-01"}),i=(0,m.FlV)(["_type"]),[r,o]=b.useState(void 0),[a,,s]=(({initialLoadingOptions:e={},initialState:t=!0})=>{let[n,i]=b.useState(e),[r,o]=b.useState(t);return b.useMemo(()=>{let e=!1;if(Object.keys(n).length)for(let t in n)n[t]&&(e=!0);o(e)},[n]),[r,n,b.useCallback(e=>{i(t=>({...t,...e}))},[])]})({}),[l,,d]=(({initialState:e=[]})=>{let[t,n]=b.useState(e),[i,r]=b.useState({});return b.useMemo(()=>{let e=[];for(let t in i)Array.isArray(i[t])&&e.push(...i[t]);n(fT(e))},[i]),[t,i,b.useCallback(e=>{r(t=>({...t,...e}))},[])]})({}),{schemaType:u,value:c,readOnly:h,onChange:f}=(cn("(prefers-color-scheme: dark)",co),e),p="object"!==u.jsonType,y="to"in u||"of"in u&&u.of[0]&&"to"in u.of[0],{predefinedTags:v,includeFromReference:k=!1,includeFromRelated:T=!1,customLabel:E="label",customValue:C="value",allowCreate:A=!0,onCreate:_=async e=>{let t={};return fA(t,E,e),fA(t,C,e),t},checkValid:j=(e,t)=>!t.includes(e)&&!!e&&e.trim()===e,reactSelectOptions:M={}}=u.options?u.options:{},I=Array.isArray(v)&&!v.length?void 0:v,P=u.options&&A&&y,V=u.options&&!!I&&y;(0,b.useEffect)(()=>{let e={unsubscribe:()=>{}},t=e,r=e,a=e,l=e;return s({selectedTags:!0,predefinedTags:!0,referenceTags:!0,relatedTags:!0}),t=(function({client:e,tags:t,isMulti:n,customLabel:i="label",customValue:r="value"}){let o=async()=>t;return(0,S.v)(()=>(0,$.H)(o())).pipe(fI({client:e,customLabel:i,customValue:r}),(0,R.T)(e=>n?e:e[0]))})({client:n,tags:c,customLabel:E,customValue:C,isMulti:p}).subscribe(e=>{o(e),s({selectedTags:!1})}),void 0===I?(d({predefinedTags:[]}),s({predefinedTags:!1})):r=(({client:e,predefinedTags:t,customLabel:n="label",customValue:i="value"})=>{let r=t instanceof Function?t:async()=>t;return(0,S.v)(()=>(0,$.H)(fV(r)).pipe(fI({client:e,customLabel:n,customValue:i})))})({client:n,predefinedTags:I,customLabel:E,customValue:C}).subscribe(e=>{d({predefinedTags:e}),s({predefinedTags:!1})}),"string"==typeof k?l=(({client:e,document:t,customLabel:n="label",customValue:i="value"})=>fP({client:e,query:`
1190  *[ _type == $document && defined(@[$customLabel]) && defined(@[$customValue])] {
1191    _id,
1192    "value": coalesce(@[$customValue].current,@[$customValue]),
1193    "label": @[$customLabel]
1194  }
1195  `,params:{document:t,customLabel:n.split(".")[0],customValue:i.split(".")[0]},customLabel:n,customValue:i}))({client:n,document:k,customLabel:E,customValue:C}).subscribe(e=>{d({referenceTags:e}),s({referenceTags:!1})}):s({referenceTags:!1}),"string"==typeof T?a=(({client:e,documentType:t,field:n,isMulti:i,customLabel:r="label",customValue:o="value"})=>fP({client:e,query:`
1196  *[
1197    _type == $documentType &&
1198    defined(@[$field]) &&
1199    defined(@[$field][]) == $isMulti &&
1200    (
1201      (!$isMulti && defined(@[$field]->[$customLabel]) && defined(@[$field]->[$customValue])) ||
1202      (!$isMulti && defined(@[$field][$customLabel]) && defined(@[$field][$customValue])) ||
1203      ($isMulti && defined(@[$field][]->[$customLabel]) && defined(@[$field][]->[$customValue])) ||
1204      ($isMulti && defined(@[$field][][$customLabel]) && defined(@[$field][][$customValue]))
1205    )
1206  ][$field]
1207  `,params:{documentType:t,field:n,isMulti:i,customLabel:r.split(".")[0],customValue:o.split(".")[0]},customLabel:r,customValue:o}))({client:n,documentType:i,field:T,isMulti:p,customLabel:E,customValue:C}).subscribe(e=>{d({relatedTags:e}),s({relatedTags:!1})}):s({relatedTags:!1}),()=>{t.unsubscribe(),r.unsubscribe(),a.unsubscribe(),l.unsubscribe()}},[n,c,E,C,p,I,k,T,i,s,d]);let z=(0,b.useCallback)(e=>{let t=e??void 0;o(t);let n=function({tags:e,customLabel:t="label",customValue:n="value",isMulti:i,isReference:r}){let o=function({customLabel:e="label",customValue:t="value",isReference:n}){return i=>{if(!0===n)return{_ref:i._id,_type:"reference"};let r={...i,label:i._labelTemp,value:i._valueTemp};return fA(r,e,i.label),fA(r,t,i.value),delete r._labelTemp,delete r._valueTemp,void 0===r.label&&delete r.label,void 0===r.value&&delete r.value,r}}({customLabel:t,customValue:n,isReference:r});return null==e?void 0:i?(Array.isArray(e)?e:[e]).map(o):o(Array.isArray(e)?e[0]:e)}({tags:t,customLabel:E,customValue:C,isMulti:p,isReference:y});f(n?(0,m.hZp)(n):(0,m.wCX)(n))},[f,E,C,p,y]),L=b.useCallback(async e=>{s({handleCreate:!0});let t=await fj({client:n,customLabel:E,customValue:C,tags:await _(e)});Array.isArray(r)?z([...r,t]):z(t),s({handleCreate:!1})},[n,E,C,_,r,z,s]),N={isLoading:a,ref:t,isMulti:p,options:l,value:r,isValidNewOption:(e,t,n)=>j(e,[...n.map(e=>e.value),...t.map(e=>e.value)]),onCreateOption:L,onChange:z,isDisabled:h||a,styles:{menu:e=>({...e,zIndex:15})},classNames:{container:()=>fN.container,control:()=>fN.control,input:()=>fN.input,menu:()=>fN.menu,option:()=>fN.option,indicatorSeparator:()=>fN.indicatorSeparator,placeholder:()=>fN.placeholder,singleValue:()=>fN.singleValue,multiValue:()=>fN.multiValue,multiValueLabel:()=>fN.multiValueLabel,multiValueRemove:()=>fN.multiValueRemove},...M};return(0,g.jsxs)(g.Fragment,{children:[P&&(0,g.jsx)(fz,{}),V&&(0,g.jsx)(fL,{}),A&&!y?(0,g.jsx)(x.A,{...N}):(0,g.jsx)(w.Ay,{...N})]})});
1207fO.displayName="TagsInput";let fD={name:"tag",title:"Tag",type:"object",components:{input:fO},fields:[{name:"value",type:"string"},{name:"label",type:"string"}]},fB={name:"tags",title:"Tags",type:"array",components:{input:fO},of:[{type:"tag"}]},fF=(0,m.bzQ)(()=>({name:"sanity-plugin-tags",schema:{types:[fD,fB]}}))}}]);

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.