@workday/canvas-kit-mcp 15.0.1 → 15.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -297,7 +297,7 @@ ${s}
297
297
  </svg>`,filename:"wd-icon-search.svg",category:"Core",tags:["magnifying","glass","mag","refine","look","hunt","seek","explore"]},Cne={name:"select",type:ta.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-select" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M4.5 19a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM8.5 19a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM12.5 19a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM4.5 15a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM4.5 11a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM20.5 11a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM4.5 7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM20.5 7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM4.5 3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM8.5 3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM12.5 3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM16.5 3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM20.5 3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5z" class="wd-icon-fill"/><path fill="oklch(0.3523 0 0 / 1)" d="M12.976 13.63a.5.5 0 0 1 .654-.654l7.211 3.036a.5.5 0 0 1-.018.929l-1.796.672 1.826 1.826a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0l-1.826-1.826-.672 1.796a.5.5 0 0 1-.929.018z" class="wd-icon-accent"/>
298
298
  </svg>`,filename:"wd-icon-select.svg",category:"Core",tags:["cursor"]},Nne={name:"share",type:ta.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-share" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M18 2a4 4 0 1 1-3.098 6.53l-5.967 2.754q.064.349.065.716-.002.366-.065.714l5.967 2.755a4 4 0 1 1-.838 1.815L8.098 14.53a4 4 0 1 1 0-5.063l5.968-2.754A4 4 0 0 1 18 2m0 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m13-6a2 2 0 1 0 0 4 2 2 0 0 0 0-4" class="wd-icon-fill"/>
299
299
  </svg>`,filename:"wd-icon-share.svg",category:"Core",tags:["social media","link"]},One={name:"star",type:ta.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-star" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="transparent" d="M11.552 3.408a.5.5 0 0 1 .896 0l2.492 5.047 5.568.81a.5.5 0 0 1 .277.852l-4.03 3.928.952 5.547a.5.5 0 0 1-.726.527l-4.98-2.619-4.982 2.62a.5.5 0 0 1-.725-.528l.951-5.547-4.03-3.928a.5.5 0 0 1 .277-.852l5.57-.81z" class="wd-icon-background"/><path fill="oklch(0.3523 0 0 / 1)" d="M10.655 2.965c.534-1.08 2.041-1.112 2.635-.1l.055.1 2.258 4.576 5.048.734c1.23.179 1.723 1.69.832 2.558l-3.653 3.56.863 5.03.015.114c.114 1.168-1.126 2.027-2.191 1.468l-.001-.001L12 18.629l-4.515 2.375h-.001c-1.102.578-2.385-.357-2.175-1.581l.861-5.03-3.653-3.56c-.89-.869-.397-2.379.832-2.558l5.049-.734zm-.697 5.932a1 1 0 0 1-.753.547l-4.567.663 3.305 3.222a1 1 0 0 1 .288.885l-.78 4.548 4.083-2.147.113-.05c.265-.101.564-.084.819.05l4.084 2.148-.78-4.55a1 1 0 0 1 .288-.884l3.303-3.222-4.565-.663a1 1 0 0 1-.753-.547L12 4.76z" class="wd-icon-fill"/>
300
- </svg>`,filename:"wd-icon-star.svg",category:"Core",tags:["favorite","favourite","bookmark","rate","rank"]},pe=Ye({extends:Nz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,accentColor:t,backgroundColor:n,color:a})=>({"& svg":{width:H(e,Kn.systemIcon.size.lg),height:H(e,Kn.systemIcon.size.lg)},".wd-icon .wd-icon-fill":{fill:H(a,Kn.systemIcon.color.fill)},".wd-icon .wd-icon-accent, & .wd-icon-accent2":{fill:H(t,H(a,Kn.systemIcon.color.accent))},".wd-icon .wd-icon-background":{fill:H(n,"transparent")},"@media (prefers-contrast: more)":{".wd-icon .wd-icon-fill, .wd-icon .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),Ll=He("span")({displayName:"SystemIcon",Component:({accent:e,background:t,color:n,icon:a,size:r,...i},o,s)=>v.jsx(Tne,{as:s,src:a,type:ta.System,ref:o,...kn(i,pe({size:kne(r,Kn.systemIcon.size),color:n,accentColor:e,backgroundColor:t}))})}),$ne=kX(Cw.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),Lne=He("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>v.jsx($ne,{as:a,ref:n,...t,children:e})}),Dne=Ye({base:{display:"inline-block"},modifiers:{size:{extraSmall:{[pe.vars.size]:Kn.systemIcon.size.xs},small:{[pe.vars.size]:Kn.systemIcon.size.md},medium:{[pe.vars.size]:Kn.systemIcon.size.md},large:{[pe.vars.size]:Kn.systemIcon.size.lg}}}}),Pne=He("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>e===void 0?null:v.jsx(Ll,{ref:i,as:o,icon:e,shouldMirror:n,shouldMirrorInRTL:a,...kn(r,Dne({size:t}))})}),se={default:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},X=Ye({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:Xe.default,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,fontWeight:Ve.bold,backgroundColor:H(se.default.background,H(e,"transparent")),color:H(se.default.label,H(r,$.fg.strong)),borderWidth:Ge(1),borderStyle:"solid",gap:k.gap.sm,borderColor:H(se.default.border,H(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",outline:`${Ge(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:H(se.default.borderRadius,H(o,k.shape.full)),position:"relative",verticalAlign:"middle",overflow:"hidden",[pe.vars.color]:H(se.default.icon,$.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:H(se.default.opacity,H(i,fn.full))},"&:focus-visible, &.focus":{backgroundColor:H(se.focus.background,H(e,"transparent")),borderColor:H(se.focus.border,H(t,"transparent")),color:H(se.focus.label,H(r,$.fg.strong)),[pe.vars.color]:H(se.focus.icon,$.fg.strong),outline:`${Ge(2)} solid transparent`,outlineOffset:Ge(2),boxShadow:`0 0 0 ${Ge(2)} ${H(se.focus.boxShadowInner,H(n,k.color.border.inverse.default))},0 0 0 ${Ge(4)} ${H(se.focus.boxShadowOuter,H(a,k.color.brand.focus.primary))}`},"&:hover, &.hover":{backgroundColor:H(se.hover.background,H(e,k.color.surface.contrast.strong)),borderColor:H(se.hover.border,H(t,"transparent")),color:H(se.hover.label,H(r,$.fg.stronger)),[pe.vars.color]:H(se.hover.icon,$.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:H(se.active.background,H(e,"transparent")),borderColor:H(se.active.border,H(t,"transparent")),color:H(se.active.label,H(r,$.fg.strong)),[pe.vars.color]:H(se.active.icon,$.fg.strong)},"&:disabled, &.disabled":{backgroundColor:H(se.disabled.background,H(e,"transparent")),borderColor:H(se.disabled.border,H(t,"transparent")),color:H(se.disabled.label,H(r,$.fg.strong)),[pe.vars.color]:H(se.disabled.icon,"currentColor")},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${Ge(2)} solid transparent`,outlineOffset:`-${Ge(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${Ge(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{fontSize:k.fontSize.body.sm,lineHeight:k.lineHeight.body.sm,letterSpacing:k.letterSpacing.body.sm,height:k.size.lg,paddingInline:k.padding.xxl,minWidth:Zn.size1400},medium:{fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,minWidth:Zn.size1200,paddingInline:k.padding.xl,height:k.size.md},small:{fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,height:k.size.sm,minWidth:Zn.size1000,paddingInline:k.padding.md,gap:k.gap.xs},extraSmall:{fontSize:k.fontSize.subtext.md,lineHeight:k.lineHeight.subtext.md,letterSpacing:k.letterSpacing.subtext.md,height:k.size.xs,minWidth:"auto",paddingInline:k.padding.sm,gap:k.gap.xs}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:0},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:k.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:k.padding.xl,paddingInlineEnd:k.padding.xxl}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:k.padding.xxl,paddingInlineEnd:k.padding.xl}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:k.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:k.padding.lg,paddingInlineEnd:k.padding.xl}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:k.padding.xl,paddingInlineEnd:k.padding.lg}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:k.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:k.padding.sm,paddingInlineEnd:k.padding.md}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:k.padding.md,paddingInlineEnd:k.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:k.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:k.padding.xs,paddingInlineEnd:k.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:k.padding.sm,paddingInlineEnd:k.padding.xs}}]}),ai=He("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>v.jsx(u,{ref:l,type:"button",...Tt(s,[X({size:t,iconPosition:r,grow:a}),se.default((o==null?void 0:o.default)||{}),se.focus((o==null?void 0:o.focus)||{}),se.hover((o==null?void 0:o.hover)||{}),se.active((o==null?void 0:o.active)||{}),se.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:Pne,Label:Lne}}),Mne=He("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return v.jsxs(ai,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&v.jsx(ai.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&v.jsx(ai.Label,{children:e}),t&&c&&["only","end"].includes(c)&&v.jsx(ai.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Une=Ye({extends:X,base:{[X.vars.background]:k.color.surface.transparent,[X.vars.borderRadius]:k.shape.full,[X.vars.border]:$.border.input.default,[X.vars.label]:$.fg.default,[pe.vars.color]:H(se.default.icon,"currentColor"),"&:focus-visible, &.focus":{[X.vars.background]:k.color.surface.default,[X.vars.label]:$.fg.strong,[X.vars.boxShadowInner]:k.color.focus.inverse,[X.vars.boxShadowOuter]:k.color.brand.focus.primary,[pe.vars.color]:H(se.focus.icon,"currentColor")},"&:hover, &.hover":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.hover}),[X.vars.label]:$.fg.strong,[X.vars.border]:k.color.border.input.hover,[pe.vars.color]:H(se.hover.icon,"currentColor")},"&:active, &.active":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.pressed}),[X.vars.label]:$.fg.strong,[X.vars.border]:k.color.border.input.hover,[pe.vars.color]:H(se.active.icon,"currentColor")},"&:disabled, &.disabled":{[X.vars.opacity]:fn.disabled,[X.vars.background]:k.color.surface.transparent,[X.vars.label]:$.fg.default,[pe.vars.color]:H(se.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[X.vars.background]:k.color.surface.transparent,[X.vars.border]:k.color.border.inverse.default,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.default.icon,"currentColor"),"&:hover, &.hover":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.hover}),[X.vars.border]:k.color.border.inverse.default,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[X.vars.background]:k.color.surface.inverse,[X.vars.border]:$.border.transparent,[X.vars.label]:$.fg.contrast.default,[X.vars.boxShadowInner]:$.border.contrast.default,[X.vars.boxShadowOuter]:k.color.focus.inverse,[pe.vars.color]:H(se.focus.icon,"currentColor")},"&:active, &.active":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.pressed}),[X.vars.border]:k.color.border.inverse.default,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.active.icon,"currentColor")},"&:disabled, &.disabled":{[X.vars.opacity]:fn.disabled,[X.vars.background]:k.color.surface.transparent,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.default.icon,"currentColor")}}}}}),Lw=He("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>v.jsx(Mne,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Une({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})});var yn="top",Mn="bottom",Un="right",Sn="left",Dw="auto",Dl=[yn,Mn,Un,Sn],Pi="start",Pw="end",zne="clippingParents",Oz="viewport",To="popper",Fne="reference",UC=Dl.reduce(function(e,t){return e.concat([t+"-"+Pi,t+"-"+Pw])},[]),$z=[].concat(Dl,[Dw]).reduce(function(e,t){return e.concat([t,t+"-"+Pi,t+"-"+Pw])},[]),jne="beforeRead",Bne="read",qne="afterRead",Gne="beforeMain",Hne="main",Wne="afterMain",Vne="beforeWrite",Zne="write",Yne="afterWrite",Kne=[jne,Bne,qne,Gne,Hne,Wne,Vne,Zne,Yne];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ys(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xne(e){var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!nr(i)||!Fn(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Qne(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!nr(r)||!Fn(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const ere={name:"applyStyles",enabled:!0,phase:"write",fn:Jne,effect:Qne,requires:["computeStyles"]};function er(e){return e.split("-")[0]}function Mw(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Lz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xne(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function vr(e){return jn(e).getComputedStyle(e)}function tre(e){return["table","td","th"].indexOf(Fn(e))>=0}function Ar(e){return((ys(e)?e.ownerDocument:e.document)||window.document).documentElement}function dp(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Ar(e)}function zC(e){if(!nr(e)||vr(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=Ar(t);if(Fn(t)==="body"&&vr(t).position==="static"&&vr(n).position!=="static")return n}return t}function nre(e){for(var t=dp(e);nr(t)&&["html","body"].indexOf(Fn(t))<0;){var n=vr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Pl(e){for(var t=jn(e),n=zC(e);n&&tre(n)&&vr(n).position==="static";)n=zC(n);return n&&Fn(n)==="body"&&vr(n).position==="static"?t:n||nre(e)||t}function Uw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pu(e,t,n){return Math.max(e,Math.min(t,n))}function Dz(){return{top:0,right:0,bottom:0,left:0}}function Pz(e){return Object.assign(Object.assign({},Dz()),e)}function Mz(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function rre(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=er(n.placement),s=Uw(o),l=[Sn,Un].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Mw(r),p=s==="y"?yn:Sn,g=s==="y"?Mn:Un,b=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],S=i[s]-n.rects.reference[s],T=Pl(r),h=T?s==="y"?T.clientHeight||0:T.clientWidth||0:0,f=b/2-S/2,m=c[p],y=h-d[u]-c[g],_=h/2-d[u]/2+f,w=Pu(m,_,y),I=s;n.modifiersData[a]=(t={},t[I]=w,t.centerOffset=w-_,t)}}function are(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Lz(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:Pz(typeof s!="number"?s:Mz(s,Dl))}))}const ire={name:"arrow",enabled:!0,phase:"main",fn:rre,effect:are,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var ore={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sre(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function FC(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=sre(i),c=u.x,d=u.y,p=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Sn,S=yn,T=window;if(l){var h=Pl(n);h===jn(n)&&(h=Ar(n)),r===yn&&(S=Mn,d-=h.clientHeight-a.height,d*=s?1:-1),r===Sn&&(b=Un,c-=h.clientWidth-a.width,c*=s?1:-1)}var f=Object.assign({position:o},l&&ore);if(s){var m;return Object.assign(Object.assign({},f),{},(m={},m[S]=g?"0":"",m[b]=p?"0":"",m.transform=(T.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",m))}return Object.assign(Object.assign({},f),{},(t={},t[S]=g?d+"px":"",t[b]=p?c+"px":"",t.transform="",t))}function lre(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:er(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),FC(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),FC(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const ure={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lre,data:{}};var bu={passive:!0};function cre(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=jn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,bu)}),s&&l.addEventListener("resize",n.update,bu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,bu)}),s&&l.removeEventListener("resize",n.update,bu)}}const dre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cre,data:{}};var pre={left:"right",right:"left",bottom:"top",top:"bottom"};function Mu(e){return e.replace(/left|right|bottom|top/g,function(t){return pre[t]})}var fre={start:"end",end:"start"};function jC(e){return e.replace(/start|end/g,function(t){return fre[t]})}function Ss(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function zw(e){var t=jn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Fw(e){return Ss(Ar(e)).left+zw(e).scrollLeft}function mre(e){var t=jn(e),n=Ar(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+Fw(e),y:s}}function gre(e){var t=Ar(e),n=zw(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+Fw(e),s=-n.scrollTop;return vr(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function jw(e){var t=vr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function Uz(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:nr(e)&&jw(e)?e:Uz(dp(e))}function Wo(e,t){t===void 0&&(t=[]);var n=Uz(e),a=Fn(n)==="body",r=jn(n),i=a?[r].concat(r.visualViewport||[],jw(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Wo(dp(i)))}function iy(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hre(e){var t=Ss(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function BC(e,t){return t===Oz?iy(mre(e)):nr(t)?hre(t):iy(gre(Ar(e)))}function bre(e){var t=Wo(dp(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,a=n&&nr(e)?Pl(e):e;return ys(a)?t.filter(function(r){return ys(r)&&Lz(r,a)&&Fn(r)!=="body"}):[]}function vre(e,t,n){var a=t==="clippingParents"?bre(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=BC(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},BC(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Es(e){return e.split("-")[1]}function zz(e){var t=e.reference,n=e.element,a=e.placement,r=a?er(a):null,i=a?Es(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case yn:l={x:o,y:t.y-n.height};break;case Mn:l={x:o,y:t.y+t.height};break;case Un:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?Uw(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Pi:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Pw:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function Mi(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?zne:i,s=n.rootBoundary,l=s===void 0?Oz:s,u=n.elementContext,c=u===void 0?To:u,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,b=g===void 0?0:g,S=Pz(typeof b!="number"?b:Mz(b,Dl)),T=c===To?Fne:To,h=e.elements.reference,f=e.rects.popper,m=e.elements[p?T:c],y=vre(ys(m)?m:m.contextElement||Ar(e.elements.popper),o,l),_=Ss(h),w=zz({reference:_,element:f,placement:r}),I=iy(Object.assign(Object.assign({},f),w)),N=c===To?I:_,O={top:y.top-N.top+S.top,bottom:N.bottom-y.bottom+S.bottom,left:y.left-N.left+S.left,right:N.right-y.right+S.right},U=e.modifiersData.offset;if(c===To&&U){var V=U[r];Object.keys(O).forEach(function(te){var ne=[Un,Mn].indexOf(te)>=0?1:-1,Se=[yn,Mn].indexOf(te)>=0?"y":"x";O[te]+=V[Se]*ne})}return O}function yre(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$z:l,c=Es(a),d=c?s?UC:UC.filter(function(b){return Es(b)===c}):Dl,p=d.filter(function(b){return u.indexOf(b)>=0});p.length===0&&(p=d);var g=p.reduce(function(b,S){return b[S]=Mi(e,{placement:S,boundary:r,rootBoundary:i,padding:o})[er(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function Sre(e){if(er(e)===Dw)return[];var t=Mu(e);return[jC(e),t,jC(t)]}function Ere(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,h=er(T),f=h===T,m=l||(f||!b?[Mu(T)]:Sre(T)),y=[T].concat(m).reduce(function(be,Oe){return be.concat(er(Oe)===Dw?yre(t,{placement:Oe,boundary:c,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:S}):Oe)},[]),_=t.rects.reference,w=t.rects.popper,I=new Map,N=!0,O=y[0],U=0;U<y.length;U++){var V=y[U],te=er(V),ne=Es(V)===Pi,Se=[yn,Mn].indexOf(te)>=0,ke=Se?"width":"height",he=Mi(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Te=Se?ne?Un:Sn:ne?Mn:yn;_[ke]>w[ke]&&(Te=Mu(Te));var D=Mu(Te),B=[];if(i&&B.push(he[te]<=0),s&&B.push(he[Te]<=0,he[D]<=0),B.every(function(be){return be})){O=V,N=!1;break}I.set(V,B)}if(N)for(var q=b?3:1,Z=function(Oe){var Le=y.find(function(tt){var sn=I.get(tt);if(sn)return sn.slice(0,Oe).every(function($a){return $a})});if(Le)return O=Le,"break"},K=q;K>0;K--){var We=Z(K);if(We==="break")break}t.placement!==O&&(t.modifiersData[a]._skip=!0,t.placement=O,t.reset=!0)}}const _re={name:"flip",enabled:!0,phase:"main",fn:Ere,requiresIfExists:["offset"],data:{_skip:!1}};function qC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function GC(e){return[yn,Un,Mn,Sn].some(function(t){return e[t]>=0})}function wre(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=Mi(t,{elementContext:"reference"}),s=Mi(t,{altBoundary:!0}),l=qC(o,a),u=qC(s,r,i),c=GC(l),d=GC(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const kre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wre};function Tre(e,t,n){var a=er(e),r=[Sn,yn].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[Sn,Un].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function Ire(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=$z.reduce(function(c,d){return c[d]=Tre(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const xre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ire};function Rre(e){var t=e.state,n=e.name;t.modifiersData[n]=zz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Are={name:"popperOffsets",enabled:!0,phase:"read",fn:Rre,data:{}};function Cre(e){return e==="x"?"y":"x"}function Nre(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,b=n.tetherOffset,S=b===void 0?0:b,T=Mi(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),h=er(t.placement),f=Es(t.placement),m=!f,y=Uw(h),_=Cre(y),w=t.modifiersData.popperOffsets,I=t.rects.reference,N=t.rects.popper,O=typeof S=="function"?S(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):S,U={x:0,y:0};if(w){if(i){var V=y==="y"?yn:Sn,te=y==="y"?Mn:Un,ne=y==="y"?"height":"width",Se=w[y],ke=w[y]+T[V],he=w[y]-T[te],Te=g?-N[ne]/2:0,D=f===Pi?I[ne]:N[ne],B=f===Pi?-N[ne]:-I[ne],q=t.elements.arrow,Z=g&&q?Mw(q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dz(),We=K[V],be=K[te],Oe=Pu(0,I[ne],Z[ne]),Le=m?I[ne]/2-Te-Oe-We-O:D-Oe-We-O,tt=m?-I[ne]/2+Te+Oe+be+O:B+Oe+be+O,sn=t.elements.arrow&&Pl(t.elements.arrow),$a=sn?y==="y"?sn.clientTop||0:sn.clientLeft||0:0,La=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,Da=w[y]+Le-La-$a,fp=w[y]+tt-La,Pa=Pu(g?Math.min(ke,Da):ke,Se,g?Math.max(he,fp):he);w[y]=Pa,U[y]=Pa-Se}if(s){var SF=y==="x"?yn:Sn,EF=y==="x"?Mn:Un,zl=w[_],_F=zl+T[SF],wF=zl-T[EF],Gw=Pu(_F,zl,wF);w[_]=Gw,U[_]=Gw-zl}t.modifiersData[a]=U}}const Ore={name:"preventOverflow",enabled:!0,phase:"main",fn:Nre,requiresIfExists:["offset"]};function $re(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lre(e){return e===jn(e)||!nr(e)?zw(e):$re(e)}function Dre(e,t,n){n===void 0&&(n=!1);var a=Ar(t),r=Ss(e),i=nr(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((Fn(t)!=="body"||jw(a))&&(o=Lre(t)),nr(t)?(s=Ss(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Fw(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Pre(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function Mre(e){var t=Pre(e);return Kne.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function Ure(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zre(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var HC={placement:"bottom",modifiers:[],strategy:"absolute"};function WC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Fre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?HC:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},HC),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:c,setOptions:function(h){S(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),h),c.scrollParents={reference:ys(s)?Wo(s):s.contextElement?Wo(s.contextElement):[],popper:Wo(l)};var f=Mre(zre([].concat(a,c.options.modifiers)));return c.orderedModifiers=f.filter(function(m){return m.enabled}),b(),g.update()},forceUpdate:function(){if(!p){var h=c.elements,f=h.reference,m=h.popper;if(WC(f,m)){c.rects={reference:Dre(f,Pl(m),c.options.strategy==="fixed"),popper:Mw(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(U){return c.modifiersData[U.name]=Object.assign({},U.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var _=c.orderedModifiers[y],w=_.fn,I=_.options,N=I===void 0?{}:I,O=_.name;typeof w=="function"&&(c=w({state:c,options:N,name:O,instance:g})||c)}}}},update:Ure(function(){return new Promise(function(T){g.forceUpdate(),T(c)})}),destroy:function(){S(),p=!0}};if(!WC(s,l))return g;g.setOptions(u).then(function(T){!p&&u.onFirstUpdate&&u.onFirstUpdate(T)});function b(){c.orderedModifiers.forEach(function(T){var h=T.name,f=T.options,m=f===void 0?{}:f,y=T.effect;if(typeof y=="function"){var _=y({state:c,name:h,instance:g,options:m}),w=function(){};d.push(_||w)}})}function S(){d.forEach(function(T){return T()}),d=[]}return g}}var jre=[dre,Are,ure,ere,xre,_re,Ore,ire,kre],Bre=Fre({defaultModifiers:jre});const qre=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],Gre=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=qre.find(r=>r.includes(`${a}-${n}`))??a),a},Fz=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=Mi({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:Fz(e.slice(1),t,n)},VC="fallbackModifier",ZC={name:VC,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,Gre(n),...a||[]],i=Fz(r,e,n);e.placement!==i&&(e.modifiersData[VC]._skip=!0,e.placement=i,e.reset=!0)}},Bw=["top","right","bottom","left"],Ml=W.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?v.jsx(Vre,{ref:a,portal:e,...n}):null),Hre=e=>{if(e!==null)return"current"in e?e.current||void 0:e},Wre={},Vre=W.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=Wre,placement:a="bottom",fallbackPlacements:r=Bw,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=W.useRef(!0),{localRef:d,elementRef:p}=Rr(l),[g,b]=W.useState(a),S=Sne(u,e),T=W.useRef(a);T.current=g;const h=W.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:m}){b(m.placement),i==null||i(m.placement)}}),[b,i]);W.useLayoutEffect(()=>{const m=t?{getBoundingClientRect:t}:Hre(e??null);if(!m){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(S.current){const y=Bre(m,S.current,{placement:a,...n,modifiers:[h,{...ZC,options:{fallbackPlacements:r}},...n.modifiers||[]]});return p(y),()=>{y==null||y.destroy()}}},[e,t,S]),W.useLayoutEffect(()=>{var m;c.current||(m=d.current)==null||m.setOptions({placement:a,...n,modifiers:[h,{...ZC,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,h,d]);const f=v.jsx(v.Fragment,{children:Zre(o)?o({placement:g}):o});return s?eS.createPortal(f,S.current):f});function Zre(e){return typeof e=="function"}const dt=zn({defaultConfig:{...$n.defaultConfig,...sa.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...$n.requiredConfig,...sa.requiredConfig},contextOverride:sa.Context})(e=>{const t=$n($n.mergeConfig(e,{selection:e.mode==="single"?tz:rte})),n=sa(sa.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));Tz(n),Iz(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),Yre=Ye({vars:{minWidth:Ge(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({fontFamily:Xe.default,fontWeight:Ve.normal,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,color:$.fg.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:k.padding.xxs,borderRadius:k.shape.xxl,maxWidth:dn.subtract("100vw",k.size.sm),boxShadow:UU[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),Kre=ce()(()=>({})),jz=Ke("div")({displayName:"Menu.Card",modelHook:dt,elemPropsHook:Kre})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=W.useMemo(()=>$w(r.state.placement||"bottom"),[r.state.placement]);return v.jsx(fne,{as:a,...Tt(n,Yre({minWidth:typeof e=="number"?Ge(e):e,maxHeight:typeof t=="number"?Ge(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Xre=Ye({base:{display:"block",height:Ge(1),border:"none",borderTop:`${Ge(1)} solid ${k.color.border.default}`,margin:`${k.gap.sm} ${k.gap.md}`}}),Bz=He("hr")({displayName:"Menu.Divider",Component({...e},t,n){return v.jsx(n,{ref:t,...kn(e,Xre())})}});var Jre=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},Qre=function(e,t){return e+_s(t)},_s=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(Qre,""):Jre(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?_s(e.props.children):""};_s.default=_s;var eae=_s;const tae=Tc(eae),YC={vertical:"bottom",horizontal:"center"},oy=qa("positionX","positionY"),nae=UQ({"0%":{opacity:0,transform:`translate(${oy.positionX}, ${oy.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),rae=Ye({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({fontFamily:Xe.default,fontWeight:Ve.normal,fontSize:k.fontSize.subtext.md,lineHeight:k.lineHeight.subtext.md,letterSpacing:k.letterSpacing.subtext.md,display:"inline-flex",position:"relative",padding:k.padding.sm,color:$.fg.inverse,animationName:nae,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:$.fg.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:k.shape.md,outline:`${Ge(1)} solid transparent`,outlineOffset:`-${Ge(1)}`,zIndex:-1,margin:k.gap.xs,backgroundColor:k.color.surface.contrast.default,position:"absolute",top:0,left:0,right:0,bottom:0,boxShadow:UU[2]},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:dn.negate(Zn.size50)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:dn.negate(Zn.size50)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:dn.negate(Zn.size50)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:dn.negate(Zn.size50)}}),modifiers:{elementHasFocus:{true:{padding:dn.subtract(k.padding.md,dn.divide(k.padding.xxs,2)),"&:before":{margin:Zn.size75}}}}}),qz=He("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=YC,elementHasFocus:n=!1,...a},r,i)=>{const o=oee(t||YC,k.gap.sm);return v.jsx(i,{ref:r,...Tt(a,[rae({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),oy({positionX:o.x,positionY:o.y})]),children:e})}}),KC=(e,t=0)=>{const n=W.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return W.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},aae=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Gz({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=W.useRef(!1),i=sa(),[o,s]=W.useState(null),l=sp(),u=KC(i.events.hide,a),c=KC(i.events.show,n),d=()=>{u.start(),c.clear()},p=()=>{c.start(),u.clear()},g=f=>{s(f.currentTarget),p()},b=f=>{r.current||g(f),r.current=!1},S=f=>{r.current=!0,aae(f.currentTarget)&&i.events.hide()};Iz(i),Tz(i),bne(i),vne(i);const T=i.state.visibility!=="hidden",h={"aria-describedby":e==="describe"&&T?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:g,onMouseLeave:d,onMouseDown:S,onFocus:b,onBlur:d};return h["aria-describedby"]===void 0&&delete h["aria-describedby"],{targetProps:h,popperProps:{open:T,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&T?l:void 0,role:"tooltip",onMouseEnter:p,onMouseLeave:d}}}function iae(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=ww(t[r],e[r]):a[r]=t[r],a),{})}const oae=He("div")({displayName:"Tooltip",Component({type:e="label",placement:t="top",title:n,children:a,showDelay:r=300,hideDelay:i=100,fallbackPlacements:o=Bw,...s}){const l=tae(n),{targetProps:u,popperProps:c,tooltipProps:d}=Gz({type:e,titleText:l,showDelay:r,hideDelay:i}),[p,g]=W.useState(!1),{localRef:b}=Rr();return W.useEffect(()=>{const S=b.current;if(!S)return;const T=()=>{g(S.matches(":focus-visible")||S.classList.contains("focus"))};return T(),S.addEventListener("focus",T),S.addEventListener("blur",T),()=>{S.removeEventListener("focus",T),S.removeEventListener("blur",T)}},[b]),v.jsxs(W.Fragment,{children:[W.cloneElement(a,{...u,...iae(a.props,u),.../^(muted|describe)$/.test(e)&&a.props["aria-label"]?{"aria-label":a.props["aria-label"]}:{}}),v.jsx(Ml,{placement:t,fallbackPlacements:o,...c,children:({placement:S})=>{const T=$w(S);return v.jsx(qz,{transformOrigin:T,...kn(s),...d,elementHasFocus:p,children:n})}})]})}}),Hz=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=Hz(e.children[n]);if(a)return a}return null}return null},Wz=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=Wz(e.children[n]);if(a)return a}return null},XC=e=>{const t=Wz(e)||Hz(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function sae(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=ww(t[r],e[r]):a[r]=t[r],a),{})}const pp=({placement:e="top",fallbackPlacements:t=Bw,children:n,...a})=>{const[r,i]=W.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Gz({type:"muted"}),u=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),XC(p)&&o.onMouseEnter(d)},c=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),XC(p)&&o.onFocus(d)};return v.jsxs(W.Fragment,{children:[W.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...sae({...o,onMouseEnter:u,onFocus:c},n.props)}),v.jsx(Ml,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const p=$w(d);return v.jsx(qz,{transformOrigin:p,...l,...a,children:r})}})]})},Vz=zn({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:sp(e.id)},events:{}})),lae=Ye({base:{fontFamily:Xe.default,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,fontWeight:Ve.bold,display:"flex",alignItems:"center",width:"100%",gap:k.gap.md,padding:`${k.padding.xs} ${k.padding.md}`}}),uae=ce()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),cae=ce()(e=>({id:e.state.id})),JC=Ke("div")({modelHook:Vz,elemPropsHook:cae})(({children:e,...t},n)=>v.jsx(pp,{children:v.jsx(n,{...Tt(t,lae()),children:e})})),Zz=io("div")({displayName:"Menu.Group",modelHook:Vz,elemPropsHook:uae,subComponents:{Heading:JC}})(({children:e,title:t,...n},a)=>v.jsxs(a,{...Tt(n),children:[t?v.jsx(JC,{children:t}):null,e]})),Ul=Ye({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({fontFamily:Xe.default,fontWeight:Ve.normal,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,display:"flex",alignItems:"center",width:"100%",gap:k.gap.md,padding:`${k.padding.sm} ${k.padding.md}`,boxSizing:"border-box",cursor:"pointer",color:$.fg.default,borderWidth:0,borderRadius:k.shape.xxl,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:k.size.md,overflowWrap:"anywhere",[pe.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:fn.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:k.color.brand.fg.primary.strong,backgroundColor:k.color.brand.surface.primary.strong,[`& :where(${n})`]:{opacity:fn.full},"&:where(.focus, :focus-visible)":{[pe.vars.color]:"currentColor",outline:"none",backgroundColor:k.color.brand.accent.primary,color:$.fg.inverse}},"&:is(.hover, :hover)":{color:$.fg.strong,backgroundColor:k.color.surface.overlay.hover.default},"&:is(.focus, :focus-visible)":{color:$.fg.inverse,backgroundColor:k.color.brand.accent.primary,outline:`${Ge(2)} solid transparent`,outlineOffset:`-${Ge(2)}`},"&:is(:disabled, [aria-disabled=true])":{cursor:"default",opacity:fn.disabled,"&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:k.color.brand.accent.primary,opacity:fn.disabled}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),dae=e=>v.jsx(Ll,{...Ul.parts.icon,...e}),Yz=He("span")({Component:({...e},t,n)=>v.jsx(n,{ref:t,...Ul.parts.text,...kn(e)})}),Kz=He("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>v.jsx(r,{ref:a,"aria-disabled":t,...Tt(n,Ul({})),children:typeof e=="string"?v.jsx(Yz,{children:e}):e})}),Xz=ce()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),Jz=ce()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=Rr(t),i=n["data-id"];return W.useLayoutEffect(()=>{e.state.mode==="single"&&Ta(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:Ta(e.state,n["data-id"])?"focus":void 0}});function Qz(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),Qz(e.UNSTABLE_parentModel))}const pae=sr(ce()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),Qz(e))}:void 0})),Jz,Xz,Rw,xw,so),Ui=Ke("button")({displayName:"Menu.Item",modelHook:dt,elemPropsHook:pae,subComponents:{Icon:dae,Text:Yz}})(({children:e,...t},n)=>v.jsx(pp,{placement:"left",children:v.jsx(Kz,{as:n,...t,children:e})})),fae=sr(ce()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),wne,yne),mae=Ye({base:{background:k.color.surface.popover,borderRadius:k.shape.xxl,padding:0,gap:k.gap.xs},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),eF=Ke("div")({displayName:"Menu.List",modelHook:dt,elemPropsHook:fae})(({children:e,...t},n,a)=>v.jsx(one,{as:n,model:a,marginY:k.gap.none,...kn(t,mae({orientation:a.state.orientation})),children:e})),tF=He("span")({Component:({...e},t,n)=>v.jsxs(v.Fragment,{children:[v.jsx(Ui.Text,{ref:t,as:n,...e}),v.jsx(Ll,{...Ul.parts.selected,icon:Ine})]})}),gae=He("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>v.jsx(a,{ref:n,...Tt(t,Ul()),children:typeof e=="string"?v.jsx(tF,{children:e}):e})}),hae=sr(ce()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":Iw(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),fte,so),nF=Ke("li")({displayName:"Menu.Item",modelHook:dt,elemPropsHook:hae,subComponents:{Icon:Ui.Icon,Text:tF}})(({children:e,...t},n)=>v.jsx(pp,{placement:"left",children:v.jsx(gae,{as:n,...t,children:e})})),rF=Rz,aF={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},bae=Ke("div")({modelHook:dt,elemPropsHook:rF})(({children:e,...t})=>v.jsx(Ml,{placement:"bottom-start",popperOptions:aF,...t,children:e})),iF=ce()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),oF=sr(iF,Ene),vae=sr(iF,_ne),yae=Ke(Lw)({displayName:"Menu.Target",modelHook:dt,elemPropsHook:oF})(({children:e,...t},n)=>v.jsx(n,{...t,children:e})),Sae=Ke(Lw)({displayName:"Menu.Target",modelHook:dt,elemPropsHook:vae})(({children:e,...t},n)=>v.jsx(n,{...t,children:e})),Eae=Ke("div")({modelHook:dt,elemPropsHook:rF})(({children:e,...t})=>v.jsx(Ml,{placement:"right-start",popperOptions:aF,...t,children:e})),_ae=(e,t=0)=>{const n=P.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return P.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},wae=sr(fu(e=>e.UNSTABLE_parentModel,Jz),fu(e=>e.UNSTABLE_parentModel,Xz),fu(e=>e.UNSTABLE_parentModel,xw),ce()((e,t)=>({ref:oo(t,e.state.targetRef)})),fu(e=>e.UNSTABLE_parentModel,so),ce()(e=>{const t=P.useRef(),n=_ae(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),kae=Ke("button")({modelHook:dt,elemPropsHook:wae})(({children:e,...t},n)=>v.jsxs(Kz,{as:n,...t,children:[typeof e=="string"?v.jsx(Ui.Text,{children:e}):e,v.jsx(Ui.Icon,{icon:Rne})]})),Tae=Ke()({modelHook:dt,subComponents:{Card:jz,List:eF,Item:Ui,TargetItem:kae,Group:Zz,Option:nF,Divider:Bz,Popper:Eae}})(({children:e,model:t,...n},a,r)=>{const i=dt(dt.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=dt.Context;return v.jsx(o.Provider,{value:i,children:e})}),QC=io()({displayName:"Menu",modelHook:dt,subComponents:{Target:yae,Card:jz,List:eF,Item:Ui,Group:Zz,Option:nF,Divider:Bz,TargetContext:Sae,Popper:bae,Submenu:Tae}})(({children:e})=>v.jsx(v.Fragment,{children:e})),lr=zn({defaultConfig:{...ko.defaultConfig,id:"",initialTab:"",orientation:"horizontal",menuConfig:{}},requiredConfig:ko.requiredConfig,contextOverride:ko.Context})(e=>{var c;const t=P.useRef(e.initialTab),n=e.getId||Go,a=Tw(),r=ko(ko.mergeConfig(e,{shouldCalculateOverflow:a!=="touch",orientation:e.orientation||"horizontal",onRegisterItem(d){t.current||(t.current=d.id,l.select({id:t.current}))},initialSelectedIds:e.initialTab?[e.initialTab]:(c=e.items)!=null&&c.length?[n(e.items[0])]:[],shouldVirtualize:!1})),i=$n(),o={...r.state,getId:n,orientation:e.orientation||"horizontal",panels:i.state.items,panelIndexRef:i.state.indexRef},s=P.useMemo(()=>e.items?e.items.filter(d=>o.hiddenIds.includes(n(d))):void 0,[o.hiddenIds,e.items]),l={...r.events,registerPanel:i.events.registerItem,unregisterPanel:i.events.unregisterItem},u=dt(dt.mergeConfig(e.menuConfig,{id:`menu-${r.state.id}`,items:s,nonInteractiveIds:o.nonInteractiveIds.filter(d=>!o.hiddenIds.includes(d)),onSelect(d){u.events.hide(),l.select(d)},onShow(){u.events.goToFirst()}}));return{...r,state:o,events:l,menu:u}}),Iae=Ye({base:{fontFamily:Xe.default,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,fontWeight:Ve.medium,border:"none",backgroundColor:k.color.surface.transparent,flex:"0 0 auto",minWidth:0,alignItems:"center",padding:`0 ${k.padding.md}`,height:k.size.lg,cursor:"pointer",color:$.fg.muted.default,position:"relative",borderRadius:`${k.shape.md} ${k.shape.md} ${k.shape.none} ${k.shape.none}`,transition:"background 150ms ease, color 150ms ease",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[pe.vars.color]:"currentColor",[pe.vars.size]:Kn.systemIcon.size.md,"&:has(span)":{display:"flex",gap:k.gap.sm},"&:hover, &.hover, &:focus-visible, &.focus":{backgroundColor:k.color.surface.overlay.hover.default,color:$.fg.muted.strong,[pe.vars.color]:$.fg.muted.strong},"&:focus-visible, &.focus":{outline:`${Ge(2)} solid transparent`,...ZQ({inset:"outer",width:0,separation:2}),[X.vars.boxShadowInner]:k.color.focus.inverse,[X.vars.boxShadowOuter]:k.color.brand.focus.primary,color:$.fg.strong,[pe.vars.color]:$.fg.strong},"&:disabled, &.disabled, &[aria-disabled]":{opacity:fn.disabled,"&:hover":{cursor:"auto",backgroundColor:k.color.surface.transparent,[pe.vars.color]:$.fg.muted.default}},"&[aria-selected=true]":{color:k.color.brand.fg.primary.default,cursor:"default",[pe.vars.color]:k.color.brand.fg.primary.default,"&:after":{position:"absolute",borderBottom:`${Zn.size50} solid transparent`,borderRadius:`${k.shape.md} ${k.shape.md} ${k.shape.none} ${k.shape.none}`,backgroundColor:k.color.brand.fg.primary.default,bottom:0,content:"''",left:0,marginBlockStart:`${dn.negate(dn.divide(k.padding.xs,k.padding.xxs))}`,width:"100%"},"&:hover, &.hover, &:focus-visible, &.focus":{backgroundColor:k.color.surface.transparent,color:k.color.brand.fg.primary.default}}}}),sF=He("button")({displayName:"StyledTabItem",Component:({children:e,...t},n,a)=>v.jsx(a,{ref:n,...Tt(t,Iae()),children:e})}),xae=sr(ce()(({state:e},t,n={})=>{const a=n["data-id"]||"";return{type:"button",role:"tab","aria-selected":!!n["data-id"]&&Iw(a,e),"aria-controls":Di(`tabpanel-${e.id}-${a}`)}}),Rw,ote,xw,so),Rae=Ke("button")({displayName:"Tabs.Item",modelHook:lr,elemPropsHook:xae,subComponents:{Icon:Ll,Text:Dee}})(({children:e,...t},n)=>{const a=Tw();return v.jsx(pp,{children:v.jsx(sF,{as:n,maxWidth:a==="touch"?void 0:280,...t,children:e})})});function Aae(e,t){return t==="vertical"?e.scrollHeight>e.clientHeight?e.scrollTop/(e.scrollHeight-e.clientHeight):-1:e.scrollWidth>e.clientWidth?e.scrollLeft/(e.scrollWidth-e.clientWidth):-1}function eN(e,t){const n=Aae(e,t);return n<=-1?void 0:n>.99?"end":n>.01?"middle":"start"}function tN(e,t){t?e.setAttribute("data-scroll-position",t):e.removeAttribute("data-scroll-position")}const Cae=ce()((e,t,n={})=>{const a=n["aria-orientation"]||"vertical",{localRef:r,elementRef:i}=Rr(t);return W.useLayoutEffect(()=>{r.current&&tN(r.current,eN(r.current,a))},[r,a]),{ref:i,onScroll:o=>{const s=o.currentTarget;tN(s,eN(s,a))}}}),Nae=sr(Cae,ce()(e=>({role:"tablist","aria-orientation":e.state.orientation})),ate,dte),Oae=Ye({base:{display:"flex",position:"relative",borderBottom:`${Ge(1)} solid ${k.color.border.default}`,gap:k.gap.xs,paddingInline:Zn.size500,"@media screen and (max-width: 768px)":{paddingInline:k.padding.md}},modifiers:{modality:{touch:{overflowX:"auto",paddingInline:0,'&[data-scroll-position="start"]':{maskImage:"linear-gradient(to right, white 80%, transparent)"},'&[data-scroll-position="middle"]':{maskImage:"linear-gradient(to left, white 80%, transparent), linear-gradient(to right, white 80%, transparent)",maskComposite:"intersect"},'&[data-scroll-position="end"]':{maskImage:"linear-gradient(to left, white 80%, transparent)"}},mouse:{},pen:{}},isDragging:{true:{},false:{}},direction:{left:{},right:{}}}}),$ae=Ke("div")({displayName:"Tabs.List",modelHook:lr,elemPropsHook:Nae})(({children:e,overflowButton:t,...n},a,r)=>{const i=Tw();return v.jsxs(a,{...Tt(n,Oae({modality:i})),children:[cp(r,e),t]})}),Lae=Rz,Dae=Ke("div")({displayName:"Tabs.MenuPopper",modelHook:dt,elemPropsHook:Lae})(({children:e,...t})=>v.jsx(Ml,{...t,children:e})),Pae=Ye({base:{'&:has([data-part="tabs-overflow-button-icon"])':{display:"flex",gap:0}}}),Mae=sr(ce()(()=>({"aria-haspopup":!0})),lte,gee()(e=>e.menu,oF)),Uae=Ke("button")({displayName:"Tabs.OverflowButton",modelHook:lr,elemPropsHook:Mae})(({children:e,...t},n)=>v.jsxs(sF,{type:"button",as:n,...Tt(t,Pae()),children:[v.jsx("span",{children:e}),v.jsx(Ll,{"data-part":"tabs-overflow-button-icon",icon:xne})]})),zae=ka(Cw)(),Fae=ce()(({state:e,events:t},n,a={})=>{const{item:r}=P.useContext(Ho),[i,o]=P.useState(a["data-id"]||(r==null?void 0:r.id)||"");return ao(()=>{if(r)return;const s=e.panelIndexRef.current,l=i||String(s);return t.registerPanel({id:l,textValue:""}),o(l),()=>{t.unregisterPanel({id:l})}}),{role:"tabpanel","aria-labelledby":Di(`${e.id}-${i}`),hidden:!!i&&i!==e.selectedIds[0],id:Di(`tabpanel-${e.id}-${i}`),tabIndex:0}}),jae=Ke("div")({displayName:"Tabs.Panel",modelHook:lr,elemPropsHook:Fae})(({children:e,...t},n)=>v.jsx(zae,{as:n,...t,children:e})),Bae=Ke()({displayName:"Tabs.Panels",modelHook:lr})(({children:e},t,n)=>v.jsx(v.Fragment,{children:cp(n,e)})),M=io()({displayName:"Tabs",modelHook:lr,subComponents:{List:$ae,Item:Rae,Panel:jae,Panels:Bae,OverflowButton:Uae,MenuPopper:Dae,Menu:QC}})(({children:e},t,n)=>v.jsx(QC,{model:n.menu,children:e})),lF=()=>v.jsxs(M,{children:[v.jsxs(M.List,{children:[v.jsx(M.Item,{children:"First Tab"}),v.jsx(M.Item,{children:"Second Tab"}),v.jsx(M.Item,{children:"Third Tab"})]}),v.jsxs("div",{style:{marginTop:H(ea.lg)},children:[v.jsxs(M.Panel,{tabIndex:void 0,children:[v.jsx("button",{children:"Focusable button"}),v.jsx("br",{}),"Contents of First Tab. The tab panel is no longer focusable, but the button is. It may be desirable to disable focus on the tab panel and allow focus to flow into the tab panel to the first focusable element."]}),v.jsx(M.Panel,{children:"Contents of Second Tab"}),v.jsx(M.Panel,{children:"Contents of Third Tab"})]})]});lF.__RAW__=`import {Tabs} from '@workday/canvas-kit-react/tabs';
300
+ </svg>`,filename:"wd-icon-star.svg",category:"Core",tags:["favorite","favourite","bookmark","rate","rank"]},pe=Ye({extends:Nz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,accentColor:t,backgroundColor:n,color:a})=>({"& svg":{width:H(e,Kn.systemIcon.size.lg),height:H(e,Kn.systemIcon.size.lg)},".wd-icon .wd-icon-fill":{fill:H(a,Kn.systemIcon.color.fill)},".wd-icon .wd-icon-accent, & .wd-icon-accent2":{fill:H(t,H(a,Kn.systemIcon.color.accent))},".wd-icon .wd-icon-background":{fill:H(n,"transparent")},"@media (prefers-contrast: more)":{".wd-icon .wd-icon-fill, .wd-icon .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),Ll=He("span")({displayName:"SystemIcon",Component:({accent:e,background:t,color:n,icon:a,size:r,...i},o,s)=>v.jsx(Tne,{as:s,src:a,type:ta.System,ref:o,...kn(i,pe({size:kne(r,Kn.systemIcon.size),color:n,accentColor:e,backgroundColor:t}))})}),$ne=kX(Cw.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),Lne=He("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>v.jsx($ne,{as:a,ref:n,...t,children:e})}),Dne=Ye({base:{display:"inline-block"},modifiers:{size:{extraSmall:{[pe.vars.size]:Kn.systemIcon.size.xs},small:{[pe.vars.size]:Kn.systemIcon.size.md},medium:{[pe.vars.size]:Kn.systemIcon.size.md},large:{[pe.vars.size]:Kn.systemIcon.size.lg}}}}),Pne=He("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>e===void 0?null:v.jsx(Ll,{ref:i,as:o,icon:e,shouldMirror:n,shouldMirrorInRTL:a,...kn(r,Dne({size:t}))})}),se={default:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},X=Ye({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:Xe.default,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,fontWeight:Ve.bold,backgroundColor:H(se.default.background,H(e,"transparent")),color:H(se.default.label,H(r,$.fg.strong)),borderWidth:Ge(1),borderStyle:"solid",gap:k.gap.sm,borderColor:H(se.default.border,H(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",outline:`${Ge(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:H(se.default.borderRadius,H(o,k.shape.full)),position:"relative",verticalAlign:"middle",overflow:"hidden",[pe.vars.color]:H(se.default.icon,$.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:H(se.default.opacity,H(i,fn.full))},"&:focus-visible, &.focus":{backgroundColor:H(se.focus.background,H(e,"transparent")),borderColor:H(se.focus.border,H(t,"transparent")),color:H(se.focus.label,H(r,$.fg.strong)),[pe.vars.color]:H(se.focus.icon,$.fg.strong),outline:`${Ge(2)} solid transparent`,outlineOffset:Ge(2),boxShadow:`0 0 0 ${Ge(2)} ${H(se.focus.boxShadowInner,H(n,k.color.border.inverse.default))},0 0 0 ${Ge(4)} ${H(se.focus.boxShadowOuter,H(a,k.color.brand.focus.primary))}`},"&:hover, &.hover":{backgroundColor:H(se.hover.background,H(e,k.color.surface.contrast.strong)),borderColor:H(se.hover.border,H(t,"transparent")),color:H(se.hover.label,H(r,$.fg.stronger)),[pe.vars.color]:H(se.hover.icon,$.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:H(se.active.background,H(e,"transparent")),borderColor:H(se.active.border,H(t,"transparent")),color:H(se.active.label,H(r,$.fg.strong)),[pe.vars.color]:H(se.active.icon,$.fg.strong)},"&:disabled, &.disabled":{backgroundColor:H(se.disabled.background,H(e,"transparent")),borderColor:H(se.disabled.border,H(t,"transparent")),color:H(se.disabled.label,H(r,$.fg.strong)),[pe.vars.color]:H(se.disabled.icon,"currentColor")},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${Ge(2)} solid transparent`,outlineOffset:`-${Ge(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${Ge(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{fontSize:k.fontSize.body.sm,lineHeight:k.lineHeight.body.sm,letterSpacing:k.letterSpacing.body.sm,height:k.size.lg,paddingInline:k.padding.xxl,minWidth:Zn.size1400},medium:{fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,minWidth:Zn.size1200,paddingInline:k.padding.xl,height:k.size.md},small:{fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,height:k.size.sm,minWidth:Zn.size1000,paddingInline:k.padding.md,gap:k.gap.xs},extraSmall:{fontSize:k.fontSize.subtext.md,lineHeight:k.lineHeight.subtext.md,letterSpacing:k.letterSpacing.subtext.md,height:k.size.xs,minWidth:"auto",paddingInline:k.padding.sm,gap:k.gap.xs}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:0},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:k.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:k.padding.xl,paddingInlineEnd:k.padding.xxl}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:k.padding.xxl,paddingInlineEnd:k.padding.xl}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:k.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:k.padding.lg,paddingInlineEnd:k.padding.xl}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:k.padding.xl,paddingInlineEnd:k.padding.lg}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:k.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:k.padding.sm,paddingInlineEnd:k.padding.md}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:k.padding.md,paddingInlineEnd:k.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:k.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:k.padding.xs,paddingInlineEnd:k.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:k.padding.sm,paddingInlineEnd:k.padding.xs}}]}),ai=He("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>v.jsx(u,{ref:l,type:"button",...Tt(s,[X({size:t,iconPosition:r,grow:a}),se.default((o==null?void 0:o.default)||{}),se.focus((o==null?void 0:o.focus)||{}),se.hover((o==null?void 0:o.hover)||{}),se.active((o==null?void 0:o.active)||{}),se.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:Pne,Label:Lne}}),Mne=He("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return v.jsxs(ai,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&v.jsx(ai.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&v.jsx(ai.Label,{children:e}),t&&c&&["only","end"].includes(c)&&v.jsx(ai.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Une=Ye({extends:X,base:{[X.vars.background]:k.color.surface.transparent,[X.vars.borderRadius]:k.shape.full,[X.vars.border]:$.border.input.default,[X.vars.label]:$.fg.default,[pe.vars.color]:H(se.default.icon,"currentColor"),"&:focus-visible, &.focus":{[X.vars.background]:k.color.surface.default,[X.vars.label]:$.fg.strong,[X.vars.boxShadowInner]:k.color.focus.inverse,[X.vars.boxShadowOuter]:k.color.brand.focus.primary,[pe.vars.color]:H(se.focus.icon,"currentColor")},"&:hover, &.hover":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.hover}),[X.vars.label]:$.fg.strong,[X.vars.border]:k.color.border.input.hover,[pe.vars.color]:H(se.hover.icon,"currentColor")},"&:active, &.active":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.pressed}),[X.vars.label]:$.fg.strong,[X.vars.border]:k.color.border.input.hover,[pe.vars.color]:H(se.active.icon,"currentColor")},"&:disabled, &.disabled":{[X.vars.opacity]:fn.disabled,[X.vars.background]:k.color.surface.transparent,[X.vars.label]:$.fg.default,[pe.vars.color]:H(se.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[X.vars.background]:k.color.surface.transparent,[X.vars.border]:k.color.border.inverse.default,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.default.icon,"currentColor"),"&:hover, &.hover":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.hover}),[X.vars.border]:k.color.border.inverse.default,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[X.vars.background]:k.color.surface.inverse,[X.vars.border]:$.border.transparent,[X.vars.label]:$.fg.contrast.default,[X.vars.boxShadowInner]:$.border.contrast.default,[X.vars.boxShadowOuter]:k.color.focus.inverse,[pe.vars.color]:H(se.focus.icon,"currentColor")},"&:active, &.active":{[X.vars.background]:ri.darken({color:k.color.surface.transparent,mixinColor:k.color.surface.overlay.mixin,mixinValue:k.opacity.surface.pressed}),[X.vars.border]:k.color.border.inverse.default,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.active.icon,"currentColor")},"&:disabled, &.disabled":{[X.vars.opacity]:fn.disabled,[X.vars.background]:k.color.surface.transparent,[X.vars.label]:$.fg.inverse,[pe.vars.color]:H(se.default.icon,"currentColor")}}}}}),Lw=He("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>v.jsx(Mne,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Une({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})});var yn="top",Mn="bottom",Un="right",Sn="left",Dw="auto",Dl=[yn,Mn,Un,Sn],Pi="start",Pw="end",zne="clippingParents",Oz="viewport",To="popper",Fne="reference",UC=Dl.reduce(function(e,t){return e.concat([t+"-"+Pi,t+"-"+Pw])},[]),$z=[].concat(Dl,[Dw]).reduce(function(e,t){return e.concat([t,t+"-"+Pi,t+"-"+Pw])},[]),jne="beforeRead",Bne="read",qne="afterRead",Gne="beforeMain",Hne="main",Wne="afterMain",Vne="beforeWrite",Zne="write",Yne="afterWrite",Kne=[jne,Bne,qne,Gne,Hne,Wne,Vne,Zne,Yne];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ys(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xne(e){var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!nr(i)||!Fn(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Qne(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!nr(r)||!Fn(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const ere={name:"applyStyles",enabled:!0,phase:"write",fn:Jne,effect:Qne,requires:["computeStyles"]};function er(e){return e.split("-")[0]}function Mw(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Lz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xne(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function vr(e){return jn(e).getComputedStyle(e)}function tre(e){return["table","td","th"].indexOf(Fn(e))>=0}function Ar(e){return((ys(e)?e.ownerDocument:e.document)||window.document).documentElement}function dp(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Ar(e)}function zC(e){if(!nr(e)||vr(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=Ar(t);if(Fn(t)==="body"&&vr(t).position==="static"&&vr(n).position!=="static")return n}return t}function nre(e){for(var t=dp(e);nr(t)&&["html","body"].indexOf(Fn(t))<0;){var n=vr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Pl(e){for(var t=jn(e),n=zC(e);n&&tre(n)&&vr(n).position==="static";)n=zC(n);return n&&Fn(n)==="body"&&vr(n).position==="static"?t:n||nre(e)||t}function Uw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pu(e,t,n){return Math.max(e,Math.min(t,n))}function Dz(){return{top:0,right:0,bottom:0,left:0}}function Pz(e){return Object.assign(Object.assign({},Dz()),e)}function Mz(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function rre(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=er(n.placement),s=Uw(o),l=[Sn,Un].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Mw(r),p=s==="y"?yn:Sn,g=s==="y"?Mn:Un,b=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],S=i[s]-n.rects.reference[s],T=Pl(r),h=T?s==="y"?T.clientHeight||0:T.clientWidth||0:0,f=b/2-S/2,m=c[p],y=h-d[u]-c[g],_=h/2-d[u]/2+f,w=Pu(m,_,y),I=s;n.modifiersData[a]=(t={},t[I]=w,t.centerOffset=w-_,t)}}function are(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Lz(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:Pz(typeof s!="number"?s:Mz(s,Dl))}))}const ire={name:"arrow",enabled:!0,phase:"main",fn:rre,effect:are,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var ore={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sre(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function FC(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=sre(i),c=u.x,d=u.y,p=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Sn,S=yn,T=window;if(l){var h=Pl(n);h===jn(n)&&(h=Ar(n)),r===yn&&(S=Mn,d-=h.clientHeight-a.height,d*=s?1:-1),r===Sn&&(b=Un,c-=h.clientWidth-a.width,c*=s?1:-1)}var f=Object.assign({position:o},l&&ore);if(s){var m;return Object.assign(Object.assign({},f),{},(m={},m[S]=g?"0":"",m[b]=p?"0":"",m.transform=(T.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",m))}return Object.assign(Object.assign({},f),{},(t={},t[S]=g?d+"px":"",t[b]=p?c+"px":"",t.transform="",t))}function lre(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:er(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),FC(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),FC(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const ure={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lre,data:{}};var bu={passive:!0};function cre(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=jn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,bu)}),s&&l.addEventListener("resize",n.update,bu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,bu)}),s&&l.removeEventListener("resize",n.update,bu)}}const dre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cre,data:{}};var pre={left:"right",right:"left",bottom:"top",top:"bottom"};function Mu(e){return e.replace(/left|right|bottom|top/g,function(t){return pre[t]})}var fre={start:"end",end:"start"};function jC(e){return e.replace(/start|end/g,function(t){return fre[t]})}function Ss(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function zw(e){var t=jn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Fw(e){return Ss(Ar(e)).left+zw(e).scrollLeft}function mre(e){var t=jn(e),n=Ar(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+Fw(e),y:s}}function gre(e){var t=Ar(e),n=zw(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+Fw(e),s=-n.scrollTop;return vr(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function jw(e){var t=vr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function Uz(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:nr(e)&&jw(e)?e:Uz(dp(e))}function Wo(e,t){t===void 0&&(t=[]);var n=Uz(e),a=Fn(n)==="body",r=jn(n),i=a?[r].concat(r.visualViewport||[],jw(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Wo(dp(i)))}function iy(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hre(e){var t=Ss(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function BC(e,t){return t===Oz?iy(mre(e)):nr(t)?hre(t):iy(gre(Ar(e)))}function bre(e){var t=Wo(dp(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,a=n&&nr(e)?Pl(e):e;return ys(a)?t.filter(function(r){return ys(r)&&Lz(r,a)&&Fn(r)!=="body"}):[]}function vre(e,t,n){var a=t==="clippingParents"?bre(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=BC(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},BC(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Es(e){return e.split("-")[1]}function zz(e){var t=e.reference,n=e.element,a=e.placement,r=a?er(a):null,i=a?Es(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case yn:l={x:o,y:t.y-n.height};break;case Mn:l={x:o,y:t.y+t.height};break;case Un:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?Uw(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Pi:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Pw:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function Mi(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?zne:i,s=n.rootBoundary,l=s===void 0?Oz:s,u=n.elementContext,c=u===void 0?To:u,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,b=g===void 0?0:g,S=Pz(typeof b!="number"?b:Mz(b,Dl)),T=c===To?Fne:To,h=e.elements.reference,f=e.rects.popper,m=e.elements[p?T:c],y=vre(ys(m)?m:m.contextElement||Ar(e.elements.popper),o,l),_=Ss(h),w=zz({reference:_,element:f,placement:r}),I=iy(Object.assign(Object.assign({},f),w)),N=c===To?I:_,O={top:y.top-N.top+S.top,bottom:N.bottom-y.bottom+S.bottom,left:y.left-N.left+S.left,right:N.right-y.right+S.right},U=e.modifiersData.offset;if(c===To&&U){var V=U[r];Object.keys(O).forEach(function(te){var ne=[Un,Mn].indexOf(te)>=0?1:-1,Se=[yn,Mn].indexOf(te)>=0?"y":"x";O[te]+=V[Se]*ne})}return O}function yre(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$z:l,c=Es(a),d=c?s?UC:UC.filter(function(b){return Es(b)===c}):Dl,p=d.filter(function(b){return u.indexOf(b)>=0});p.length===0&&(p=d);var g=p.reduce(function(b,S){return b[S]=Mi(e,{placement:S,boundary:r,rootBoundary:i,padding:o})[er(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function Sre(e){if(er(e)===Dw)return[];var t=Mu(e);return[jC(e),t,jC(t)]}function Ere(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,h=er(T),f=h===T,m=l||(f||!b?[Mu(T)]:Sre(T)),y=[T].concat(m).reduce(function(be,Oe){return be.concat(er(Oe)===Dw?yre(t,{placement:Oe,boundary:c,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:S}):Oe)},[]),_=t.rects.reference,w=t.rects.popper,I=new Map,N=!0,O=y[0],U=0;U<y.length;U++){var V=y[U],te=er(V),ne=Es(V)===Pi,Se=[yn,Mn].indexOf(te)>=0,ke=Se?"width":"height",he=Mi(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Te=Se?ne?Un:Sn:ne?Mn:yn;_[ke]>w[ke]&&(Te=Mu(Te));var D=Mu(Te),B=[];if(i&&B.push(he[te]<=0),s&&B.push(he[Te]<=0,he[D]<=0),B.every(function(be){return be})){O=V,N=!1;break}I.set(V,B)}if(N)for(var q=b?3:1,Z=function(Oe){var Le=y.find(function(tt){var sn=I.get(tt);if(sn)return sn.slice(0,Oe).every(function($a){return $a})});if(Le)return O=Le,"break"},K=q;K>0;K--){var We=Z(K);if(We==="break")break}t.placement!==O&&(t.modifiersData[a]._skip=!0,t.placement=O,t.reset=!0)}}const _re={name:"flip",enabled:!0,phase:"main",fn:Ere,requiresIfExists:["offset"],data:{_skip:!1}};function qC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function GC(e){return[yn,Un,Mn,Sn].some(function(t){return e[t]>=0})}function wre(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=Mi(t,{elementContext:"reference"}),s=Mi(t,{altBoundary:!0}),l=qC(o,a),u=qC(s,r,i),c=GC(l),d=GC(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const kre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wre};function Tre(e,t,n){var a=er(e),r=[Sn,yn].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[Sn,Un].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function Ire(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=$z.reduce(function(c,d){return c[d]=Tre(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const xre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ire};function Rre(e){var t=e.state,n=e.name;t.modifiersData[n]=zz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Are={name:"popperOffsets",enabled:!0,phase:"read",fn:Rre,data:{}};function Cre(e){return e==="x"?"y":"x"}function Nre(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,b=n.tetherOffset,S=b===void 0?0:b,T=Mi(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),h=er(t.placement),f=Es(t.placement),m=!f,y=Uw(h),_=Cre(y),w=t.modifiersData.popperOffsets,I=t.rects.reference,N=t.rects.popper,O=typeof S=="function"?S(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):S,U={x:0,y:0};if(w){if(i){var V=y==="y"?yn:Sn,te=y==="y"?Mn:Un,ne=y==="y"?"height":"width",Se=w[y],ke=w[y]+T[V],he=w[y]-T[te],Te=g?-N[ne]/2:0,D=f===Pi?I[ne]:N[ne],B=f===Pi?-N[ne]:-I[ne],q=t.elements.arrow,Z=g&&q?Mw(q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dz(),We=K[V],be=K[te],Oe=Pu(0,I[ne],Z[ne]),Le=m?I[ne]/2-Te-Oe-We-O:D-Oe-We-O,tt=m?-I[ne]/2+Te+Oe+be+O:B+Oe+be+O,sn=t.elements.arrow&&Pl(t.elements.arrow),$a=sn?y==="y"?sn.clientTop||0:sn.clientLeft||0:0,La=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,Da=w[y]+Le-La-$a,fp=w[y]+tt-La,Pa=Pu(g?Math.min(ke,Da):ke,Se,g?Math.max(he,fp):he);w[y]=Pa,U[y]=Pa-Se}if(s){var SF=y==="x"?yn:Sn,EF=y==="x"?Mn:Un,zl=w[_],_F=zl+T[SF],wF=zl-T[EF],Gw=Pu(_F,zl,wF);w[_]=Gw,U[_]=Gw-zl}t.modifiersData[a]=U}}const Ore={name:"preventOverflow",enabled:!0,phase:"main",fn:Nre,requiresIfExists:["offset"]};function $re(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lre(e){return e===jn(e)||!nr(e)?zw(e):$re(e)}function Dre(e,t,n){n===void 0&&(n=!1);var a=Ar(t),r=Ss(e),i=nr(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((Fn(t)!=="body"||jw(a))&&(o=Lre(t)),nr(t)?(s=Ss(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Fw(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Pre(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function Mre(e){var t=Pre(e);return Kne.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function Ure(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zre(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var HC={placement:"bottom",modifiers:[],strategy:"absolute"};function WC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Fre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?HC:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},HC),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:c,setOptions:function(h){S(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),h),c.scrollParents={reference:ys(s)?Wo(s):s.contextElement?Wo(s.contextElement):[],popper:Wo(l)};var f=Mre(zre([].concat(a,c.options.modifiers)));return c.orderedModifiers=f.filter(function(m){return m.enabled}),b(),g.update()},forceUpdate:function(){if(!p){var h=c.elements,f=h.reference,m=h.popper;if(WC(f,m)){c.rects={reference:Dre(f,Pl(m),c.options.strategy==="fixed"),popper:Mw(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(U){return c.modifiersData[U.name]=Object.assign({},U.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var _=c.orderedModifiers[y],w=_.fn,I=_.options,N=I===void 0?{}:I,O=_.name;typeof w=="function"&&(c=w({state:c,options:N,name:O,instance:g})||c)}}}},update:Ure(function(){return new Promise(function(T){g.forceUpdate(),T(c)})}),destroy:function(){S(),p=!0}};if(!WC(s,l))return g;g.setOptions(u).then(function(T){!p&&u.onFirstUpdate&&u.onFirstUpdate(T)});function b(){c.orderedModifiers.forEach(function(T){var h=T.name,f=T.options,m=f===void 0?{}:f,y=T.effect;if(typeof y=="function"){var _=y({state:c,name:h,instance:g,options:m}),w=function(){};d.push(_||w)}})}function S(){d.forEach(function(T){return T()}),d=[]}return g}}var jre=[dre,Are,ure,ere,xre,_re,Ore,ire,kre],Bre=Fre({defaultModifiers:jre});const qre=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],Gre=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=qre.find(r=>r.includes(`${a}-${n}`))??a),a},Fz=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=Mi({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:Fz(e.slice(1),t,n)},VC="fallbackModifier",ZC={name:VC,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,Gre(n),...a||[]],i=Fz(r,e,n);e.placement!==i&&(e.modifiersData[VC]._skip=!0,e.placement=i,e.reset=!0)}},Bw=["top","right","bottom","left"],Ml=W.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?v.jsx(Vre,{ref:a,portal:e,...n}):null),Hre=e=>{if(e!==null)return"current"in e?e.current||void 0:e},Wre={},Vre=W.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=Wre,placement:a="bottom",fallbackPlacements:r=Bw,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=W.useRef(!0),{localRef:d,elementRef:p}=Rr(l),[g,b]=W.useState(a),S=Sne(u,e),T=W.useRef(a);T.current=g;const h=W.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:m}){b(m.placement),i==null||i(m.placement)}}),[b,i]);W.useLayoutEffect(()=>{const m=t?{getBoundingClientRect:t}:Hre(e??null);if(!m){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(S.current){const y=Bre(m,S.current,{placement:a,...n,modifiers:[h,{...ZC,options:{fallbackPlacements:r}},...n.modifiers||[]]});return p(y),()=>{y==null||y.destroy()}}},[e,t,S]),W.useLayoutEffect(()=>{var m;c.current||(m=d.current)==null||m.setOptions({placement:a,...n,modifiers:[h,{...ZC,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,h,d]);const f=v.jsx(v.Fragment,{children:Zre(o)?o({placement:g}):o});return s?eS.createPortal(f,S.current):f});function Zre(e){return typeof e=="function"}const dt=zn({defaultConfig:{...$n.defaultConfig,...sa.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...$n.requiredConfig,...sa.requiredConfig},contextOverride:sa.Context})(e=>{const t=$n($n.mergeConfig(e,{selection:e.mode==="single"?tz:rte})),n=sa(sa.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));Tz(n),Iz(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),Yre=Ye({vars:{minWidth:Ge(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({fontFamily:Xe.default,fontWeight:Ve.normal,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,color:$.fg.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:k.padding.xxs,borderRadius:k.shape.xxl,maxWidth:dn.subtract("100vw",k.size.sm),boxShadow:UU[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),Kre=ce()(()=>({})),jz=Ke("div")({displayName:"Menu.Card",modelHook:dt,elemPropsHook:Kre})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=W.useMemo(()=>$w(r.state.placement||"bottom"),[r.state.placement]);return v.jsx(fne,{as:a,...Tt(n,Yre({minWidth:typeof e=="number"?Ge(e):e,maxHeight:typeof t=="number"?Ge(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Xre=Ye({base:{display:"block",height:Ge(1),border:"none",borderTop:`${Ge(1)} solid ${k.color.border.default}`,margin:`${k.gap.sm} ${k.gap.md}`}}),Bz=He("hr")({displayName:"Menu.Divider",Component({...e},t,n){return v.jsx(n,{ref:t,...kn(e,Xre())})}});var Jre=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},Qre=function(e,t){return e+_s(t)},_s=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(Qre,""):Jre(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?_s(e.props.children):""};_s.default=_s;var eae=_s;const tae=Tc(eae),YC={vertical:"bottom",horizontal:"center"},oy=qa("positionX","positionY"),nae=UQ({"0%":{opacity:0,transform:`translate(${oy.positionX}, ${oy.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),rae=Ye({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({fontFamily:Xe.default,fontWeight:Ve.normal,fontSize:k.fontSize.subtext.md,lineHeight:k.lineHeight.subtext.md,letterSpacing:k.letterSpacing.subtext.md,display:"inline-flex",position:"relative",padding:k.padding.sm,color:$.fg.inverse,animationName:nae,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:$.fg.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:k.shape.md,outline:`${Ge(1)} solid transparent`,outlineOffset:`-${Ge(1)}`,zIndex:-1,margin:k.gap.xs,backgroundColor:k.color.surface.contrast.default,position:"absolute",top:0,left:0,right:0,bottom:0,boxShadow:UU[2]},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:dn.negate(Zn.size50)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:dn.negate(Zn.size50)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:dn.negate(Zn.size50)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:dn.negate(Zn.size50)}}),modifiers:{elementHasFocus:{true:{padding:dn.subtract(k.padding.md,dn.divide(k.padding.xxs,2)),"&:before":{margin:Zn.size75}}}}}),qz=He("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=YC,elementHasFocus:n=!1,...a},r,i)=>{const o=oee(t||YC,k.gap.sm);return v.jsx(i,{ref:r,...Tt(a,[rae({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),oy({positionX:o.x,positionY:o.y})]),children:e})}}),KC=(e,t=0)=>{const n=W.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return W.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},aae=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Gz({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=W.useRef(!1),i=sa(),[o,s]=W.useState(null),l=sp(),u=KC(i.events.hide,a),c=KC(i.events.show,n),d=()=>{u.start(),c.clear()},p=()=>{c.start(),u.clear()},g=f=>{s(f.currentTarget),p()},b=f=>{r.current||g(f),r.current=!1},S=f=>{r.current=!0,aae(f.currentTarget)&&i.events.hide()};Iz(i),Tz(i),bne(i),vne(i);const T=i.state.visibility!=="hidden",h={"aria-describedby":e==="describe"&&T?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:g,onMouseLeave:d,onMouseDown:S,onFocus:b,onBlur:d};return h["aria-describedby"]===void 0&&delete h["aria-describedby"],{targetProps:h,popperProps:{open:T,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&T?l:void 0,role:"tooltip",onMouseEnter:p,onMouseLeave:d}}}function iae(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=ww(t[r],e[r]):a[r]=t[r],a),{})}const oae=He("div")({displayName:"Tooltip",Component({type:e="label",placement:t="top",title:n,children:a,showDelay:r=300,hideDelay:i=100,fallbackPlacements:o=Bw,...s}){const l=tae(n),{targetProps:u,popperProps:c,tooltipProps:d}=Gz({type:e,titleText:l,showDelay:r,hideDelay:i}),[p,g]=W.useState(!1),{localRef:b}=Rr();return W.useEffect(()=>{const S=b.current;if(!S)return;const T=()=>{g(S.matches(":focus-visible")||S.classList.contains("focus"))};return T(),S.addEventListener("focus",T),S.addEventListener("blur",T),()=>{S.removeEventListener("focus",T),S.removeEventListener("blur",T)}},[b]),v.jsxs(W.Fragment,{children:[W.cloneElement(a,{...u,...iae(a.props,u),.../^(muted|describe)$/.test(e)&&a.props["aria-label"]?{"aria-label":a.props["aria-label"]}:{}}),v.jsx(Ml,{placement:t,fallbackPlacements:o,...c,children:({placement:S})=>{const T=$w(S);return v.jsx(qz,{transformOrigin:T,...kn(s),...d,elementHasFocus:p,children:n})}})]})}}),Hz=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=Hz(e.children[n]);if(a)return a}return null}return null},Wz=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=Wz(e.children[n]);if(a)return a}return null},XC=e=>{const t=Wz(e)||Hz(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function sae(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=ww(t[r],e[r]):a[r]=t[r],a),{})}const pp=({placement:e="top",fallbackPlacements:t=Bw,children:n,...a})=>{const[r,i]=W.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Gz({type:"muted"}),u=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),XC(p)&&o.onMouseEnter(d)},c=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),XC(p)&&o.onFocus(d)};return v.jsxs(W.Fragment,{children:[W.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...sae({...o,onMouseEnter:u,onFocus:c},n.props)}),v.jsx(Ml,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const p=$w(d);return v.jsx(qz,{transformOrigin:p,...l,...a,children:r})}})]})},Vz=zn({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:sp(e.id)},events:{}})),lae=Ye({base:{fontFamily:Xe.default,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,fontWeight:Ve.bold,display:"flex",alignItems:"center",width:"100%",gap:k.gap.md,padding:`${k.padding.xs} ${k.padding.md}`}}),uae=ce()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),cae=ce()(e=>({id:e.state.id})),JC=Ke("div")({modelHook:Vz,elemPropsHook:cae})(({children:e,...t},n)=>v.jsx(pp,{children:v.jsx(n,{...Tt(t,lae()),children:e})})),Zz=io("div")({displayName:"Menu.Group",modelHook:Vz,elemPropsHook:uae,subComponents:{Heading:JC}})(({children:e,title:t,...n},a)=>v.jsxs(a,{...Tt(n),children:[t?v.jsx(JC,{children:t}):null,e]})),Ul=Ye({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({fontFamily:Xe.default,fontWeight:Ve.normal,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,display:"flex",alignItems:"center",width:"100%",gap:k.gap.md,padding:`${k.padding.sm} ${k.padding.md}`,boxSizing:"border-box",cursor:"pointer",color:$.fg.default,borderWidth:0,borderRadius:k.shape.xxl,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:k.size.md,overflowWrap:"anywhere",[pe.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:fn.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:k.color.brand.fg.primary.strong,backgroundColor:k.color.brand.surface.primary.strong,[`& :where(${n})`]:{opacity:fn.full},"&:where(.focus, :focus-visible)":{[pe.vars.color]:"currentColor",outline:"none",backgroundColor:k.color.brand.accent.primary,color:$.fg.inverse}},"&:is(.hover, :hover)":{color:$.fg.strong,backgroundColor:k.color.surface.overlay.hover.default},"&:is(.focus, :focus-visible)":{color:$.fg.inverse,backgroundColor:k.color.brand.accent.primary,outline:`${Ge(2)} solid transparent`,outlineOffset:`-${Ge(2)}`},"&:is(:disabled, [aria-disabled=true])":{cursor:"default",opacity:fn.disabled,"&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:k.color.brand.accent.primary,opacity:fn.disabled}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),dae=e=>v.jsx(Ll,{...Ul.parts.icon,...e}),Yz=He("span")({Component:({...e},t,n)=>v.jsx(n,{ref:t,...Ul.parts.text,...kn(e)})}),Kz=He("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>v.jsx(r,{ref:a,"aria-disabled":t,...Tt(n,Ul({})),children:typeof e=="string"?v.jsx(Yz,{children:e}):e})}),Xz=ce()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),Jz=ce()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=Rr(t),i=n["data-id"];return W.useLayoutEffect(()=>{e.state.mode==="single"&&Ta(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:Ta(e.state,n["data-id"])?"focus":void 0}});function Qz(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),Qz(e.UNSTABLE_parentModel))}const pae=sr(ce()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),Qz(e))}:void 0})),Jz,Xz,Rw,xw,so),Ui=Ke("button")({displayName:"Menu.Item",modelHook:dt,elemPropsHook:pae,subComponents:{Icon:dae,Text:Yz}})(({children:e,...t},n)=>v.jsx(pp,{placement:"left",children:v.jsx(Kz,{as:n,...t,children:e})})),fae=sr(ce()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),wne,yne),mae=Ye({base:{background:k.color.surface.popover,borderRadius:k.shape.xxl,padding:0,gap:k.gap.xs},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),eF=Ke("div")({displayName:"Menu.List",modelHook:dt,elemPropsHook:fae})(({children:e,...t},n,a)=>v.jsx(one,{as:n,model:a,marginY:k.gap.none,...kn(t,mae({orientation:a.state.orientation})),children:e})),tF=He("span")({Component:({...e},t,n)=>v.jsxs(v.Fragment,{children:[v.jsx(Ui.Text,{ref:t,as:n,...e}),v.jsx(Ll,{...Ul.parts.selected,icon:Ine})]})}),gae=He("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>v.jsx(a,{ref:n,...Tt(t,Ul()),children:typeof e=="string"?v.jsx(tF,{children:e}):e})}),hae=sr(ce()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":Iw(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.goTo({id:a}),e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),fte,so),nF=Ke("li")({displayName:"Menu.Item",modelHook:dt,elemPropsHook:hae,subComponents:{Icon:Ui.Icon,Text:tF}})(({children:e,...t},n)=>v.jsx(pp,{placement:"left",children:v.jsx(gae,{as:n,...t,children:e})})),rF=Rz,aF={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},bae=Ke("div")({modelHook:dt,elemPropsHook:rF})(({children:e,...t})=>v.jsx(Ml,{placement:"bottom-start",popperOptions:aF,...t,children:e})),iF=ce()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),oF=sr(iF,Ene),vae=sr(iF,_ne),yae=Ke(Lw)({displayName:"Menu.Target",modelHook:dt,elemPropsHook:oF})(({children:e,...t},n)=>v.jsx(n,{...t,children:e})),Sae=Ke(Lw)({displayName:"Menu.Target",modelHook:dt,elemPropsHook:vae})(({children:e,...t},n)=>v.jsx(n,{...t,children:e})),Eae=Ke("div")({modelHook:dt,elemPropsHook:rF})(({children:e,...t})=>v.jsx(Ml,{placement:"right-start",popperOptions:aF,...t,children:e})),_ae=(e,t=0)=>{const n=P.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return P.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},wae=sr(fu(e=>e.UNSTABLE_parentModel,Jz),fu(e=>e.UNSTABLE_parentModel,Xz),fu(e=>e.UNSTABLE_parentModel,xw),ce()((e,t)=>({ref:oo(t,e.state.targetRef)})),fu(e=>e.UNSTABLE_parentModel,so),ce()(e=>{const t=P.useRef(),n=_ae(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),kae=Ke("button")({modelHook:dt,elemPropsHook:wae})(({children:e,...t},n)=>v.jsxs(Kz,{as:n,...t,children:[typeof e=="string"?v.jsx(Ui.Text,{children:e}):e,v.jsx(Ui.Icon,{icon:Rne})]})),Tae=Ke()({modelHook:dt,subComponents:{Card:jz,List:eF,Item:Ui,TargetItem:kae,Group:Zz,Option:nF,Divider:Bz,Popper:Eae}})(({children:e,model:t,...n},a,r)=>{const i=dt(dt.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=dt.Context;return v.jsx(o.Provider,{value:i,children:e})}),QC=io()({displayName:"Menu",modelHook:dt,subComponents:{Target:yae,Card:jz,List:eF,Item:Ui,Group:Zz,Option:nF,Divider:Bz,TargetContext:Sae,Popper:bae,Submenu:Tae}})(({children:e})=>v.jsx(v.Fragment,{children:e})),lr=zn({defaultConfig:{...ko.defaultConfig,id:"",initialTab:"",orientation:"horizontal",menuConfig:{}},requiredConfig:ko.requiredConfig,contextOverride:ko.Context})(e=>{var c;const t=P.useRef(e.initialTab),n=e.getId||Go,a=Tw(),r=ko(ko.mergeConfig(e,{shouldCalculateOverflow:a!=="touch",orientation:e.orientation||"horizontal",onRegisterItem(d){t.current||(t.current=d.id,l.select({id:t.current}))},initialSelectedIds:e.initialTab?[e.initialTab]:(c=e.items)!=null&&c.length?[n(e.items[0])]:[],shouldVirtualize:!1})),i=$n(),o={...r.state,getId:n,orientation:e.orientation||"horizontal",panels:i.state.items,panelIndexRef:i.state.indexRef},s=P.useMemo(()=>e.items?e.items.filter(d=>o.hiddenIds.includes(n(d))):void 0,[o.hiddenIds,e.items]),l={...r.events,registerPanel:i.events.registerItem,unregisterPanel:i.events.unregisterItem},u=dt(dt.mergeConfig(e.menuConfig,{id:`menu-${r.state.id}`,items:s,nonInteractiveIds:o.nonInteractiveIds.filter(d=>!o.hiddenIds.includes(d)),onSelect(d){u.events.hide(),l.select(d)},onShow(){u.events.goToFirst()}}));return{...r,state:o,events:l,menu:u}}),Iae=Ye({base:{fontFamily:Xe.default,fontSize:k.fontSize.subtext.lg,lineHeight:k.lineHeight.subtext.lg,letterSpacing:k.letterSpacing.subtext.lg,fontWeight:Ve.medium,border:"none",backgroundColor:k.color.surface.transparent,flex:"0 0 auto",minWidth:0,alignItems:"center",padding:`0 ${k.padding.md}`,height:k.size.lg,cursor:"pointer",color:$.fg.muted.default,position:"relative",borderRadius:`${k.shape.md} ${k.shape.md} ${k.shape.none} ${k.shape.none}`,transition:"background 150ms ease, color 150ms ease",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[pe.vars.color]:"currentColor",[pe.vars.size]:Kn.systemIcon.size.md,"&:has(span)":{display:"flex",gap:k.gap.sm},"&:hover, &.hover, &:focus-visible, &.focus":{backgroundColor:k.color.surface.overlay.hover.default,color:$.fg.muted.strong,[pe.vars.color]:$.fg.muted.strong},"&:focus-visible, &.focus":{outline:`${Ge(2)} solid transparent`,...ZQ({inset:"outer",width:0,separation:2}),[X.vars.boxShadowInner]:k.color.focus.inverse,[X.vars.boxShadowOuter]:k.color.brand.focus.primary,color:$.fg.strong,[pe.vars.color]:$.fg.strong},"&:disabled, &.disabled, &[aria-disabled]":{opacity:fn.disabled,"&:hover":{cursor:"auto",backgroundColor:k.color.surface.transparent,[pe.vars.color]:$.fg.muted.default}},"&[aria-selected=true]":{color:k.color.brand.fg.primary.default,cursor:"default",[pe.vars.color]:k.color.brand.fg.primary.default,"&:after":{position:"absolute",borderBottom:`${Zn.size50} solid transparent`,borderRadius:`${k.shape.md} ${k.shape.md} ${k.shape.none} ${k.shape.none}`,backgroundColor:k.color.brand.fg.primary.default,bottom:0,content:"''",left:0,marginBlockStart:`${dn.negate(dn.divide(k.padding.xs,k.padding.xxs))}`,width:"100%"},"&:hover, &.hover, &:focus-visible, &.focus":{backgroundColor:k.color.surface.transparent,color:k.color.brand.fg.primary.default}}}}),sF=He("button")({displayName:"StyledTabItem",Component:({children:e,...t},n,a)=>v.jsx(a,{ref:n,...Tt(t,Iae()),children:e})}),xae=sr(ce()(({state:e},t,n={})=>{const a=n["data-id"]||"";return{type:"button",role:"tab","aria-selected":!!n["data-id"]&&Iw(a,e),"aria-controls":Di(`tabpanel-${e.id}-${a}`)}}),Rw,ote,xw,so),Rae=Ke("button")({displayName:"Tabs.Item",modelHook:lr,elemPropsHook:xae,subComponents:{Icon:Ll,Text:Dee}})(({children:e,...t},n)=>{const a=Tw();return v.jsx(pp,{children:v.jsx(sF,{as:n,maxWidth:a==="touch"?void 0:280,...t,children:e})})});function Aae(e,t){return t==="vertical"?e.scrollHeight>e.clientHeight?e.scrollTop/(e.scrollHeight-e.clientHeight):-1:e.scrollWidth>e.clientWidth?e.scrollLeft/(e.scrollWidth-e.clientWidth):-1}function eN(e,t){const n=Aae(e,t);return n<=-1?void 0:n>.99?"end":n>.01?"middle":"start"}function tN(e,t){t?e.setAttribute("data-scroll-position",t):e.removeAttribute("data-scroll-position")}const Cae=ce()((e,t,n={})=>{const a=n["aria-orientation"]||"vertical",{localRef:r,elementRef:i}=Rr(t);return W.useLayoutEffect(()=>{r.current&&tN(r.current,eN(r.current,a))},[r,a]),{ref:i,onScroll:o=>{const s=o.currentTarget;tN(s,eN(s,a))}}}),Nae=sr(Cae,ce()(e=>({role:"tablist","aria-orientation":e.state.orientation})),ate,dte),Oae=Ye({base:{display:"flex",position:"relative",borderBottom:`${Ge(1)} solid ${k.color.border.default}`,gap:k.gap.xs,paddingInline:Zn.size500,"@media screen and (max-width: 768px)":{paddingInline:k.padding.md}},modifiers:{modality:{touch:{overflowX:"auto",paddingInline:0,'&[data-scroll-position="start"]':{maskImage:"linear-gradient(to right, white 80%, transparent)"},'&[data-scroll-position="middle"]':{maskImage:"linear-gradient(to left, white 80%, transparent), linear-gradient(to right, white 80%, transparent)",maskComposite:"intersect"},'&[data-scroll-position="end"]':{maskImage:"linear-gradient(to left, white 80%, transparent)"}},mouse:{},pen:{}},isDragging:{true:{},false:{}},direction:{left:{},right:{}}}}),$ae=Ke("div")({displayName:"Tabs.List",modelHook:lr,elemPropsHook:Nae})(({children:e,overflowButton:t,...n},a,r)=>{const i=Tw();return v.jsxs(a,{...Tt(n,Oae({modality:i})),children:[cp(r,e),t]})}),Lae=Rz,Dae=Ke("div")({displayName:"Tabs.MenuPopper",modelHook:dt,elemPropsHook:Lae})(({children:e,...t})=>v.jsx(Ml,{...t,children:e})),Pae=Ye({base:{'&:has([data-part="tabs-overflow-button-icon"])':{display:"flex",gap:0}}}),Mae=sr(ce()(()=>({"aria-haspopup":!0})),lte,gee()(e=>e.menu,oF)),Uae=Ke("button")({displayName:"Tabs.OverflowButton",modelHook:lr,elemPropsHook:Mae})(({children:e,...t},n)=>v.jsxs(sF,{type:"button",as:n,...Tt(t,Pae()),children:[v.jsx("span",{children:e}),v.jsx(Ll,{"data-part":"tabs-overflow-button-icon",icon:xne})]})),zae=ka(Cw)(),Fae=ce()(({state:e,events:t},n,a={})=>{const{item:r}=P.useContext(Ho),[i,o]=P.useState(a["data-id"]||(r==null?void 0:r.id)||"");return ao(()=>{if(r)return;const s=e.panelIndexRef.current,l=i||String(s);return t.registerPanel({id:l,textValue:""}),o(l),()=>{t.unregisterPanel({id:l})}}),{role:"tabpanel","aria-labelledby":Di(`${e.id}-${i}`),hidden:!!i&&i!==e.selectedIds[0],id:Di(`tabpanel-${e.id}-${i}`),tabIndex:0}}),jae=Ke("div")({displayName:"Tabs.Panel",modelHook:lr,elemPropsHook:Fae})(({children:e,...t},n)=>v.jsx(zae,{as:n,...t,children:e})),Bae=Ke()({displayName:"Tabs.Panels",modelHook:lr})(({children:e},t,n)=>v.jsx(v.Fragment,{children:cp(n,e)})),M=io()({displayName:"Tabs",modelHook:lr,subComponents:{List:$ae,Item:Rae,Panel:jae,Panels:Bae,OverflowButton:Uae,MenuPopper:Dae,Menu:QC}})(({children:e},t,n)=>v.jsx(QC,{model:n.menu,children:e})),lF=()=>v.jsxs(M,{children:[v.jsxs(M.List,{children:[v.jsx(M.Item,{children:"First Tab"}),v.jsx(M.Item,{children:"Second Tab"}),v.jsx(M.Item,{children:"Third Tab"})]}),v.jsxs("div",{style:{marginTop:H(ea.lg)},children:[v.jsxs(M.Panel,{tabIndex:void 0,children:[v.jsx("button",{children:"Focusable button"}),v.jsx("br",{}),"Contents of First Tab. The tab panel is no longer focusable, but the button is. It may be desirable to disable focus on the tab panel and allow focus to flow into the tab panel to the first focusable element."]}),v.jsx(M.Panel,{children:"Contents of Second Tab"}),v.jsx(M.Panel,{children:"Contents of Third Tab"})]})]});lF.__RAW__=`import {Tabs} from '@workday/canvas-kit-react/tabs';
301
301
  import {cssVar} from '@workday/canvas-kit-styling';
302
302
  import {system} from '@workday/canvas-tokens-web';
303
303
 
package/dist/cli.js CHANGED
@@ -18,7 +18,7 @@ import { z } from "zod";
18
18
  // package.json
19
19
  var package_default = {
20
20
  name: "@workday/canvas-kit-mcp",
21
- version: "15.0.1",
21
+ version: "15.0.3",
22
22
  description: "MCP package for Canvas Kit",
23
23
  author: "Workday, Inc. (https://www.workday.com)",
24
24
  license: "Apache-2.0",
@@ -104,7 +104,6 @@ var config_default = {
104
104
  "tokens/color-roles.md",
105
105
  "tokens/color-scale.md",
106
106
  "llm-token-migration-14.txt",
107
- "llm-style-props-migration.txt",
108
107
  "tokens/v4/v4-token-migration.md",
109
108
  "tokens/v4/opacity.md",
110
109
  "tokens/v4/shape.md",