@primer/react 36.14.0 → 36.15.0

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/browser.esm.js +1 -1
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +1 -1
  5. package/dist/browser.umd.js.map +1 -1
  6. package/generated/components.json +71 -15
  7. package/lib/ActionList/Item.d.ts.map +1 -1
  8. package/lib/ActionList/Item.js +2 -1
  9. package/lib/FeatureFlags/DefaultFeatureFlags.d.ts +3 -0
  10. package/lib/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -0
  11. package/lib/FeatureFlags/DefaultFeatureFlags.js +7 -0
  12. package/lib/FeatureFlags/FeatureFlagContext.d.ts +4 -0
  13. package/lib/FeatureFlags/FeatureFlagContext.d.ts.map +1 -0
  14. package/lib/FeatureFlags/FeatureFlagContext.js +8 -0
  15. package/lib/FeatureFlags/FeatureFlagScope.d.ts +22 -0
  16. package/lib/FeatureFlags/FeatureFlagScope.d.ts.map +1 -0
  17. package/lib/FeatureFlags/FeatureFlagScope.js +44 -0
  18. package/lib/FeatureFlags/FeatureFlags.d.ts +7 -0
  19. package/lib/FeatureFlags/FeatureFlags.d.ts.map +1 -0
  20. package/lib/FeatureFlags/FeatureFlags.js +26 -0
  21. package/lib/FeatureFlags/index.d.ts +4 -0
  22. package/lib/FeatureFlags/index.d.ts.map +1 -0
  23. package/lib/FeatureFlags/useFeatureFlag.d.ts +5 -0
  24. package/lib/FeatureFlags/useFeatureFlag.d.ts.map +1 -0
  25. package/lib/Stack/Stack.d.ts +65 -0
  26. package/lib/Stack/Stack.d.ts.map +1 -0
  27. package/lib/Stack/Stack.js +52 -0
  28. package/lib/Stack/index.d.ts +6 -0
  29. package/lib/Stack/index.d.ts.map +1 -0
  30. package/lib/Stack/index.js +9 -0
  31. package/lib/drafts/ActionBar/ActionBar.d.ts +8 -2
  32. package/lib/drafts/ActionBar/ActionBar.d.ts.map +1 -1
  33. package/lib/drafts/ActionBar/ActionBar.js +1 -0
  34. package/lib/drafts/ActionBar/index.js +6 -4
  35. package/lib/drafts/TabPanels/TabPanels.js +2 -2
  36. package/lib/drafts/index.d.ts +3 -0
  37. package/lib/drafts/index.d.ts.map +1 -1
  38. package/lib/drafts/index.js +4 -1
  39. package/lib/experimental/index.d.ts +2 -0
  40. package/lib/experimental/index.d.ts.map +1 -1
  41. package/lib/experimental/index.js +8 -1
  42. package/lib/internal/utils/__tests__/getResponsiveAttributes.test.d.ts +2 -0
  43. package/lib/internal/utils/__tests__/getResponsiveAttributes.test.d.ts.map +1 -0
  44. package/lib/internal/utils/getResponsiveAttributes.d.ts +19 -0
  45. package/lib/internal/utils/getResponsiveAttributes.d.ts.map +1 -0
  46. package/lib/internal/utils/getResponsiveAttributes.js +40 -0
  47. package/lib/internal/utils/getResponsiveControlValues.d.ts +8 -0
  48. package/lib/internal/utils/getResponsiveControlValues.d.ts.map +1 -0
  49. package/lib-esm/ActionList/Item.js +2 -1
  50. package/lib-esm/FeatureFlags/DefaultFeatureFlags.d.ts +3 -0
  51. package/lib-esm/FeatureFlags/DefaultFeatureFlags.js +5 -0
  52. package/lib-esm/FeatureFlags/FeatureFlagContext.d.ts +4 -0
  53. package/lib-esm/FeatureFlags/FeatureFlagContext.js +6 -0
  54. package/lib-esm/FeatureFlags/FeatureFlagScope.d.ts +22 -0
  55. package/lib-esm/FeatureFlags/FeatureFlagScope.js +42 -0
  56. package/lib-esm/FeatureFlags/FeatureFlags.d.ts +7 -0
  57. package/lib-esm/FeatureFlags/FeatureFlags.js +20 -0
  58. package/lib-esm/FeatureFlags/index.d.ts +4 -0
  59. package/lib-esm/FeatureFlags/useFeatureFlag.d.ts +5 -0
  60. package/lib-esm/Stack/Stack.d.ts +65 -0
  61. package/lib-esm/Stack/Stack.js +44 -0
  62. package/lib-esm/Stack/index.d.ts +6 -0
  63. package/lib-esm/Stack/index.js +7 -0
  64. package/lib-esm/drafts/ActionBar/ActionBar.d.ts +8 -2
  65. package/lib-esm/drafts/ActionBar/ActionBar.js +1 -0
  66. package/lib-esm/drafts/ActionBar/index.js +4 -2
  67. package/lib-esm/drafts/index.d.ts +3 -0
  68. package/lib-esm/drafts/index.js +2 -1
  69. package/lib-esm/experimental/index.d.ts +2 -0
  70. package/lib-esm/experimental/index.js +5 -1
  71. package/lib-esm/internal/utils/__tests__/getResponsiveAttributes.test.d.ts +2 -0
  72. package/lib-esm/internal/utils/getResponsiveAttributes.d.ts +19 -0
  73. package/lib-esm/internal/utils/getResponsiveAttributes.js +38 -0
  74. package/lib-esm/internal/utils/getResponsiveControlValues.d.ts +8 -0
  75. package/package.json +1 -1
  76. /package/lib/{packages/react/node_modules → node_modules}/@github/tab-container-element/dist/tab-container-element-define.js +0 -0
  77. /package/lib/{packages/react/node_modules → node_modules}/@github/tab-container-element/dist/tab-container-element.js +0 -0
@@ -4,7 +4,7 @@ object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
6
  */
7
- var R=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var P=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var t=Object.getOwnPropertyNames(r).map((function(e){return r[e]}));if("0123456789"!==t.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var o,t,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),n=1;n<arguments.length;n++){for(var l in o=Object(arguments[n]))D.call(o,l)&&(a[l]=o[l]);if(R){t=R(o);for(var i=0;i<t.length;i++)z.call(o,t[i])&&(a[t[i]]=o[t[i]])}}return a},_=E(P),H=function(e,r){var o=_({},e,r);for(var t in e){var a;e[t]&&"object"==typeof r[t]&&_(o,((a={})[t]=_(e[t],r[t]),a))}return o},F={breakpoints:[40,52,64].map((function(e){return e+"em"}))},V=function(e){return"@media screen and (min-width: "+e+")"},W=function(e,r){return $(r,e,e)},$=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},Z=function e(r){var o={},t=function(e){var t,a,n={},l=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var c in e)if(r[c]){var s=r[c],d=e[c],g=$(e.theme,s.scale,s.defaults);if("object"!=typeof d)_(n,s(d,g,e));else{if(o.breakpoints=!i&&o.breakpoints||$(e.theme,"breakpoints",F.breakpoints),Array.isArray(d)){o.media=!i&&o.media||[null].concat(o.breakpoints.map(V)),n=H(n,K(o.media,s,g,d,e));continue}null!==d&&(n=H(n,G(o.breakpoints,s,g,d,e)),l=!0)}}return l&&(t=n,a={},Object.keys(t).sort((function(e,r){return e.localeCompare(r,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){a[e]=t[e]})),n=a),n};t.config=r,t.propNames=Object.keys(r),t.cache=o;var a=Object.keys(r).filter((function(e){return"config"!==e}));return a.length>1&&a.forEach((function(o){var a;t[o]=e(((a={})[o]=r[o],a))})),t},K=function(e,r,o,t,a){var n={};return t.slice(0,e.length).forEach((function(t,l){var i,c=e[l],s=r(t,o,a);c?_(n,((i={})[c]=_({},n[c],s),i)):_(n,s)})),n},G=function(e,r,o,t,a){var n={};for(var l in t){var i=e[l],c=r(t[l],o,a);if(i){var s,d=V(i);_(n,((s={})[d]=_({},n[d],c),s))}else _(n,c)}return n},U=function(e){var r=e.properties,o=e.property,t=e.scale,a=e.transform,n=void 0===a?W:a,l=e.defaultScale;r=r||[o];var i=function(e,o,t){var a={},l=n(e,o,t);if(null!==l)return r.forEach((function(e){a[e]=l})),a};return i.scale=t,i.defaults=l,i},q=function(e){void 0===e&&(e={});var r={};return Object.keys(e).forEach((function(o){var t=e[o];r[o]=!0!==t?"function"!=typeof t?U(t):t:U({property:o,scale:o})})),Z(r)},Y=function(){for(var e={},r=arguments.length,o=new Array(r),t=0;t<r;t++)o[t]=arguments[t];return o.forEach((function(r){r&&r.config&&_(e,r.config)})),Z(e)},X={width:{property:"width",scale:"sizes",transform:function(e,r){return $(r,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},J=q(X),Q={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Q.bg=Q.backgroundColor;var ee=q(Q),re=q({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),oe=q({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),te={space:[0,4,8,16,32,64,128,256,512]},ae=q({gridGap:{property:"gridGap",scale:"space",defaultScale:te.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:te.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:te.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),ne={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};ne.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},ne.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},ne.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},ne.borderBottomColor={property:"borderBottomColor",scale:"colors"},ne.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},ne.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},ne.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},ne.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},ne.borderLeftColor={property:"borderLeftColor",scale:"colors"},ne.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},ne.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},ne.borderRightColor={property:"borderRightColor",scale:"colors"},ne.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var le=q(ne),ie={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};ie.bgImage=ie.backgroundImage,ie.bgSize=ie.backgroundSize,ie.bgPosition=ie.backgroundPosition,ie.bgRepeat=ie.backgroundRepeat;var ce=q(ie),se={space:[0,4,8,16,32,64,128,256,512]},de=q({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:se.space},right:{property:"right",scale:"space",defaultScale:se.space},bottom:{property:"bottom",scale:"space",defaultScale:se.space},left:{property:"left",scale:"space",defaultScale:se.space}}),ge={space:[0,4,8,16,32,64,128,256,512]},be=function(e){return"number"==typeof e&&!isNaN(e)},ve=function(e,r){if(!be(e))return $(r,e,e);var o=e<0,t=Math.abs(e),a=$(r,t,t);return be(a)?a*(o?-1:1):o?"-"+a:a},ue={};ue.margin={margin:{property:"margin",scale:"space",transform:ve,defaultScale:ge.space},marginTop:{property:"marginTop",scale:"space",transform:ve,defaultScale:ge.space},marginRight:{property:"marginRight",scale:"space",transform:ve,defaultScale:ge.space},marginBottom:{property:"marginBottom",scale:"space",transform:ve,defaultScale:ge.space},marginLeft:{property:"marginLeft",scale:"space",transform:ve,defaultScale:ge.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:ve,defaultScale:ge.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:ve,defaultScale:ge.space}},ue.margin.m=ue.margin.margin,ue.margin.mt=ue.margin.marginTop,ue.margin.mr=ue.margin.marginRight,ue.margin.mb=ue.margin.marginBottom,ue.margin.ml=ue.margin.marginLeft,ue.margin.mx=ue.margin.marginX,ue.margin.my=ue.margin.marginY,ue.padding={padding:{property:"padding",scale:"space",defaultScale:ge.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:ge.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:ge.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:ge.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:ge.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:ge.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:ge.space}},ue.padding.p=ue.padding.padding,ue.padding.pt=ue.padding.paddingTop,ue.padding.pr=ue.padding.paddingRight,ue.padding.pb=ue.padding.paddingBottom,ue.padding.pl=ue.padding.paddingLeft,ue.padding.px=ue.padding.paddingX,ue.padding.py=ue.padding.paddingY;var fe=q(ue.margin),he=q(ue.padding),pe=Y(fe,he),me=q({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function ye(){return ye=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ye.apply(this,arguments)}var xe=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},Ce=[40,52,64].map((function(e){return e+"em"})),we={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},ke={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},Be={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},Ee={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},Te=function(e,r){if("number"!=typeof r||r>=0)return xe(e,r,r);var o=Math.abs(r),t=xe(e,o,o);return"string"==typeof t?"-"+t:-1*t},Se=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,r){var o;return ye({},e,((o={})[r]=Te,o))}),{}),Ie=function e(r){return function(o){void 0===o&&(o={});var t=ye({},we,{},o.theme||o),a={},n=function(e){return function(r){var o={},t=xe(r,"breakpoints",Ce),a=[null].concat(t.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var n in e){var l="function"==typeof e[n]?e[n](r):e[n];if(null!=l)if(Array.isArray(l))for(var i=0;i<l.slice(0,a.length).length;i++){var c=a[i];c?(o[c]=o[c]||{},null!=l[i]&&(o[c][n]=l[i])):o[n]=l[i]}else o[n]=l}return o}}("function"==typeof r?r(t):r)(t);for(var l in n){var i=n[l],c="function"==typeof i?i(t):i;if("variant"!==l)if(c&&"object"==typeof c)a[l]=e(c)(t);else{var s=xe(ke,l,l),d=xe(Ee,s),g=xe(t,d,xe(t,s,{})),b=xe(Se,s,xe)(g,c,c);if(Be[s])for(var v=Be[s],u=0;u<v.length;u++)a[v[u]]=b;else a[s]=b}else a=ye({},a,{},e(xe(t,c))(t))}return a}},Me=function(e){var r,o,t=e.scale,a=e.prop,n=void 0===a?"variant":a,l=e.variants,i=void 0===l?{}:l,c=e.key;o=Object.keys(i).length?function(e,r,o){return Ie($(r,e,null))(o.theme)}:function(e,r){return $(r,e,null)},o.scale=t||c,o.defaults=i;var s=((r={})[n]=o,r);return Z(s)},Ne=Me({key:"buttons"}),Ae=Me({key:"textStyles",prop:"textStyle"}),Oe=Me({key:"colorStyles",prop:"colors"}),Le=J.width,je=J.height,Re=J.minWidth,De=J.minHeight,ze=J.maxWidth,Pe=J.maxHeight,_e=J.size,He=J.verticalAlign,Fe=J.display,Ve=J.overflow,We=J.overflowX,$e=J.overflowY,Ze=ee.opacity,Ke=re.fontSize,Ge=re.fontFamily,Ue=re.fontWeight,qe=re.lineHeight,Ye=re.textAlign,Xe=re.fontStyle,Je=re.letterSpacing,Qe=oe.alignItems,er=oe.alignContent,rr=oe.justifyItems,or=oe.justifyContent,tr=oe.flexWrap,ar=oe.flexDirection,nr=oe.flex,lr=oe.flexGrow,ir=oe.flexShrink,cr=oe.flexBasis,sr=oe.justifySelf,dr=oe.alignSelf,gr=oe.order,br=ae.gridGap,vr=ae.gridColumnGap,ur=ae.gridRowGap,fr=ae.gridColumn,hr=ae.gridRow,pr=ae.gridAutoFlow,mr=ae.gridAutoColumns,yr=ae.gridAutoRows,xr=ae.gridTemplateColumns,Cr=ae.gridTemplateRows,wr=ae.gridTemplateAreas,kr=ae.gridArea,Br=le.borderWidth,Er=le.borderStyle,Tr=le.borderColor,Sr=le.borderTop,Ir=le.borderRight,Mr=le.borderBottom,Nr=le.borderLeft,Ar=le.borderRadius,Or=ce.backgroundImage,Lr=ce.backgroundSize,jr=ce.backgroundPosition,Rr=ce.backgroundRepeat,Dr=de.zIndex,zr=de.top,Pr=de.right,_r=de.bottom,Hr=de.left,Fr=function(e){var r=e.prop,o=e.cssProperty,t=e.alias,a=e.key,n=e.transformValue,l=e.scale,i=e.properties,c={};return c[r]=U({properties:i,property:o||r,scale:a,defaultScale:l,transform:n}),t&&(c[t]=c[r]),Z(c)},Vr=Object.freeze({__proto__:null,alignContent:er,alignItems:Qe,alignSelf:dr,background:ce,backgroundImage:Or,backgroundPosition:jr,backgroundRepeat:Rr,backgroundSize:Lr,border:le,borderBottom:Mr,borderColor:Tr,borderLeft:Nr,borderRadius:Ar,borderRight:Ir,borderStyle:Er,borderTop:Sr,borderWidth:Br,borders:le,bottom:_r,boxShadow:me,buttonStyle:Ne,color:ee,colorStyle:Oe,compose:Y,createParser:Z,createStyleFunction:U,display:Fe,flex:nr,flexBasis:cr,flexDirection:ar,flexGrow:lr,flexShrink:ir,flexWrap:tr,flexbox:oe,fontFamily:Ge,fontSize:Ke,fontStyle:Xe,fontWeight:Ue,get:$,grid:ae,gridArea:kr,gridAutoColumns:mr,gridAutoFlow:pr,gridAutoRows:yr,gridColumn:fr,gridColumnGap:vr,gridGap:br,gridRow:hr,gridRowGap:ur,gridTemplateAreas:wr,gridTemplateColumns:xr,gridTemplateRows:Cr,height:je,justifyContent:or,justifyItems:rr,justifySelf:sr,layout:J,left:Hr,letterSpacing:Je,lineHeight:qe,margin:fe,maxHeight:Pe,maxWidth:ze,minHeight:De,minWidth:Re,opacity:Ze,order:gr,overflow:Ve,overflowX:We,overflowY:$e,padding:he,position:de,right:Pr,shadow:me,size:_e,space:pe,style:Fr,system:q,textAlign:Ye,textShadow:me,textStyle:Ae,top:zr,typography:re,variant:Me,verticalAlign:He,width:Le,zIndex:Dr});const{get:Wr,compose:$r,system:Zr}=Vr,Kr=e=>{return r=e,void 0===(o=Wr(j,e))&&(o=null),function(e){return $(e.theme,r,o)};var r,o},Gr=$r(pe,ee,Fe),Ur=$r(re,Zr({whiteSpace:{property:"whiteSpace"}}));$r(le,me);var qr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===Yr}(e)}(e)};var Yr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?oo((o=e,Array.isArray(o)?[]:{}),e,r):e;var o}function Jr(e,r,o){return e.concat(r).map((function(e){return Xr(e,o)}))}function Qr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return e.propertyIsEnumerable(r)})):[]}(e))}function eo(e,r){try{return r in e}catch(e){return!1}}function ro(e,r,o){var t={};return o.isMergeableObject(e)&&Qr(e).forEach((function(r){t[r]=Xr(e[r],o)})),Qr(r).forEach((function(a){(function(e,r){return eo(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(eo(e,a)&&o.isMergeableObject(r[a])?t[a]=function(e,r){if(!r.customMerge)return oo;var o=r.customMerge(e);return"function"==typeof o?o:oo}(a,o)(e[a],r[a],o):t[a]=Xr(r[a],o))})),t}function oo(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||Jr,o.isMergeableObject=o.isMergeableObject||qr,o.cloneUnlessOtherwiseSpecified=Xr;var t=Array.isArray(r);return t===Array.isArray(e)?t?o.arrayMerge(e,r,o):ro(e,r,o):Xr(r,o)}oo.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return oo(e,o,r)}),{})};var to=E(oo);const ao=!0;function no(e){if(!e.defaultPrevented)for(const r of Object.values(lo).reverse())if(r(e)===ao||e.defaultPrevented)break}const lo={};let io=0;const co=({containerRef:e,ignoreClickRefs:r,onClickOutside:n})=>{const l=o((()=>io++),[]),i=t((o=>{var t;return o instanceof MouseEvent&&o.button>0||null!==(t=e.current)&&void 0!==t&&t.contains(o.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(o.target)))?ao:void n(o)}),[e,r,n]);a((()=>(0===Object.keys(lo).length&&document.addEventListener("mousedown",no,{capture:!0}),function(e,r){lo[e]=r}(l,i),()=>{!function(e){delete lo[e]}(l),0===Object.keys(lo).length&&document.removeEventListener("mousedown",no,{capture:!0})})),[l,i])};function so(e){const o=r.useRef(null);return null!=e?e:o}function go(e){if(!e.defaultPrevented)for(const r of Object.values(bo).reverse())if(r(e),e.defaultPrevented)break}const bo={};let vo=0;const uo=(e,r=[e])=>{const n=t(e,r),l=t((e=>{"Escape"===e.key&&n(e)}),[n]),i=o((()=>vo++),[]);a((()=>(0===Object.keys(bo).length&&document.addEventListener("keydown",go),function(e,r){bo[e]=r}(i,l),()=>{!function(e){delete bo[e]}(i),0===Object.keys(bo).length&&document.removeEventListener("keydown",go)})),[i,l])};function*fo(e,r={}){var o,t;const a=null!==(o=r.strict)&&void 0!==o&&o,n=null!==(t=r.onlyTabbable)&&void 0!==t&&t?mo:po,l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let i=null;if(!r.reverse&&n(e,a)&&(yield e),r.reverse){let e=l.lastChild();for(;e;)i=e,e=l.lastChild()}else i=l.firstChild();for(;i instanceof HTMLElement;)yield i,i=r.reverse?l.previousNode():l.nextNode();r.reverse&&n(e,a)&&(yield e)}function ho(e,r=!1){return fo(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function po(e,r=!1){const o=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,t=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type,n=e.classList.contains("sentinel");if(o||t||a||n)return!1;if(r){const r=getComputedStyle(e),o=0===e.offsetWidth||0===e.offsetHeight,t=["hidden","collapse"].includes(r.visibility),a="none"===r.display||!e.offsetParent,n=0===e.getClientRects().length;if(o||t||n||a)return!1}return null!=e.getAttribute("tabindex")||("true"===e.getAttribute("contenteditable")||"plaintext-only"===e.getAttribute("contenteditable")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex)}function mo(e,r=!1){return po(e,r)&&"-1"!==e.getAttribute("tabindex")}let yo,xo=1e4;function Co(){return void 0===yo&&(yo=/^mac/i.test(window.navigator.platform)),yo}function wo({initialFocusRef:e,returnFocusRef:r,containerRef:o,preventFocusOnOpen:t}){a((()=>{if(t)return;const a=r.current;if(e&&e.current)e.current.focus();else if(o.current){const e=fo(o.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,r,o,t])}const ko={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},Bo={start:["end","center"],end:["start","center"],center:["end","start"]};function Eo(e,r,o={}){const t=function(e){if(function(e){var r;if("DIALOG"===e.tagName)return!0;try{if(e.matches(":popover-open")&&/native code/.test(null===(r=document.body.showPopover)||void 0===r?void 0:r.toString()))return!0}catch(e){return!1}return!1}(e))return document.body;let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),a=function(e){let r=e;for(;null!==r&&r instanceof Element;){if("visible"!==getComputedStyle(r).overflow)break;r=r.parentNode}const o=r!==document.body&&r instanceof HTMLElement?r:document.body,t=o.getBoundingClientRect(),a=getComputedStyle(o),[n,l,i,c]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:t.top+n,left:t.left+l,width:t.width-i-l,height:Math.max(t.height-n-c,o===document.body?window.innerHeight:-1/0)}}(t),n=getComputedStyle(t),l=t.getBoundingClientRect(),[i,c]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,o,t,{side:a,align:n,allowOutOfBounds:l,anchorOffset:i,alignmentOffset:c}){const s={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let d=So(o,t,a,n,i,c),g=a,b=n;if(d.top-=r.top,d.left-=r.left,!l){const l=ko[a];let v=0;if(l){let e=a;for(;v<l.length&&Io(e,d,s,o);){const a=l[v++];e=a,d=So(o,t,a,n,i,c),d.top-=r.top,d.left-=r.left,g=a}}const u=Bo[n];let f=0;if(u){let e=n;for(;f<u.length&&Mo(e,d,s,o);){const a=u[f++];e=a,d=So(o,t,g,a,i,c),d.top-=r.top,d.left-=r.left,b=a}}d.top<s.top&&(d.top=s.top),d.left<s.left&&(d.left=s.left),d.left+o.width>e.width+s.left&&(d.left=e.width+s.left-o.width),l&&v<l.length&&d.top+o.height>e.height+s.top&&(d.top=Math.max(e.height+s.top-o.height,0))}return Object.assign(Object.assign({},d),{anchorSide:g,anchorAlign:b})}(a,{top:l.top+i,left:l.left+c},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,o,t,a,n;const l=null!==(r=e.side)&&void 0!==r?r:To.side,i=null!==(o=e.align)&&void 0!==o?o:To.align;return{side:l,align:i,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===l?0:To.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==i&&l.startsWith("inside")?To.alignmentOffset:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:To.allowOutOfBounds}}(o))}const To={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function So(e,r,o,t,a,n){const l=r.left+r.width,i=r.top+r.height;let c=-1,s=-1;return"outside-top"===o?c=r.top-a-e.height:"outside-bottom"===o?c=i+a:"outside-left"===o?s=r.left-a-e.width:"outside-right"===o&&(s=l+a),"outside-top"!==o&&"outside-bottom"!==o||(s="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n),"outside-left"!==o&&"outside-right"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),"inside-top"===o?c=r.top+a:"inside-bottom"===o?c=i-a-e.height:"inside-left"===o?s=r.left+a:"inside-right"===o?s=l-a-e.width:"inside-center"===o&&(s=(l+r.left)/2-e.width/2+a),"inside-top"===o||"inside-bottom"===o?s="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n:"inside-left"!==o&&"inside-right"!==o&&"inside-center"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),{top:c,left:s}}function Io(e,r,o,t){return"outside-top"===e||"outside-bottom"===e?r.top<o.top||r.top+t.height>o.height+o.top:r.left<o.left||r.left+t.width>o.width+o.left}function Mo(e,r,o,t){return"end"===e?r.left<o.left:"start"===e||"center"===e?r.left+t.width>o.left+o.width||r.left<o.left:void 0}let No=!1;function Ao(){}try{const e=Object.create({},{signal:{get(){No=!0}}});window.addEventListener("test",Ao,e),window.removeEventListener("test",Ao,e)}catch(Db){}function Oo(){No||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,o,t){return"object"==typeof t&&"signal"in t&&t.signal instanceof AbortSignal&&e.call(t.signal,"abort",(()=>{this.removeEventListener(r,o,t)})),e.call(this,r,o,t)}}(),No=!0)}Oo();const Lo=[];let jo;function Ro(e,r,o){const t=new AbortController,a=null!=o?o:t.signal;e.setAttribute("data-focus-trap","active");const n=document.createElement("span");n.setAttribute("class","sentinel"),n.setAttribute("tabindex","0"),n.setAttribute("aria-hidden","true"),n.onfocus=()=>{const r=ho(e,!0);null==r||r.focus()};const l=document.createElement("span");let i;function c(o){if(o instanceof HTMLElement&&document.contains(e)){if(e.contains(o))return void(i=o);if(i&&mo(i)&&e.contains(i))return void i.focus();if(r&&e.contains(r))return void r.focus();{const r=ho(e);return void(null==r||r.focus())}}}l.setAttribute("class","sentinel"),l.setAttribute("tabindex","0"),l.setAttribute("aria-hidden","true"),l.onfocus=()=>{const r=ho(e);null==r||r.focus()},e.prepend(n),e.append(l);const s=function(e){const r=new AbortController;return e.addEventListener("abort",(()=>{r.abort()})),r}(a);if(jo){const e=jo;jo.container.setAttribute("data-focus-trap","suspended"),jo.controller.abort(),Lo.push(e)}s.signal.addEventListener("abort",(()=>{jo=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=e.getElementsByClassName("sentinel");for(;r.length>0;)r[0].remove();const o=Lo.findIndex((r=>r.container===e));o>=0&&Lo.splice(o,1),function(){const e=Lo.pop();e&&Ro(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{c(e.target)}),{signal:s.signal,capture:!0}),c(document.activeElement),jo={container:e,controller:s,initialFocus:r,originalSignal:a};const d=Lo.findIndex((r=>r.container===e));if(d>=0&&Lo.splice(d,1),!o)return t}var Do;Oo(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(Do||(Do={}));const zo={ArrowLeft:Do.ArrowHorizontal,ArrowDown:Do.ArrowVertical,ArrowUp:Do.ArrowVertical,ArrowRight:Do.ArrowHorizontal,h:Do.HL,j:Do.JK,k:Do.JK,l:Do.HL,a:Do.AD,s:Do.WS,w:Do.WS,d:Do.AD,Tab:Do.Tab,Home:Do.HomeAndEnd,End:Do.HomeAndEnd,PageUp:Do.PageUpDown,PageDown:Do.PageUpDown,Backspace:Do.Backspace},Po={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function _o(e){const r=Po[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const o=Co();if(o&&e.metaKey||!o&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}const Ho="data-is-active-descendant",Fo="activated-directly",Vo="activated-indirectly",Wo="data-has-active-descendant";function $o(e,r){var o,t,a,n,l;const i=[],c=new WeakMap,s=null!==(o=null==r?void 0:r.bindKeys)&&void 0!==o?o:((null==r?void 0:r.getNextFocusable)?Do.ArrowAll:Do.ArrowVertical)|Do.HomeAndEnd,d=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",g=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",b=null==r?void 0:r.activeDescendantControl,v=null==r?void 0:r.onActiveDescendantChanged;let u;const f=null!==(n=null==r?void 0:r.preventScroll)&&void 0!==n&&n;function h(){return i[0]}function p(e,r=!1){const o=u;u=e,b?e&&document.activeElement===b?m(o,e,r):y():(o&&o!==e&&c.has(o)&&o.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(r,o,t=!1){o.id||o.setAttribute("id","__primer_id_"+xo++),r&&r!==o&&r.removeAttribute(Ho),b&&(t||b.getAttribute("aria-activedescendant")!==o.id)&&(b.setAttribute("aria-activedescendant",o.id),e.setAttribute(Wo,o.id),o.setAttribute(Ho,t?Fo:Vo),null==v||v(o,r,t))}function y(r=u){"first"===g&&(u=void 0),null==b||b.removeAttribute("aria-activedescendant"),e.removeAttribute(Wo),null==r||r.removeAttribute(Ho),null==v||v(void 0,r,!1)}function x(...e){const o=e.filter((e=>{var o,t;return null===(t=null===(o=null==r?void 0:r.focusableElementFilter)||void 0===o?void 0:o.call(r,e))||void 0===t||t}));if(0!==o.length){i.splice(function(e){const r=e[0];if(0===i.length)return 0;let o=0,t=i.length-1;for(;o<=t;){const e=Math.floor((o+t)/2);C(r,i[e])?t=e-1:o=e+1}return o}(o),0,...o);for(const e of o)c.has(e)||c.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");u||p(h())}}function C(e,r){return(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)>0}function w(...e){for(const r of e){const e=i.indexOf(r);e>=0&&i.splice(e,1);const o=c.get(r);if(void 0!==o&&(null===o?r.removeAttribute("tabindex"):r.setAttribute("tabindex",o),c.delete(r)),r===u){p(h())}}}const k={reverse:null==r?void 0:r.reverse,strict:null==r?void 0:r.strict,onlyTabbable:null==r?void 0:r.onlyTabbable};x(...fo(e,k));p("function"==typeof g?g(document.body):h());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...fo(e,k));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...fo(e,k))})).observe(e,{subtree:!0,childList:!0});const B=new AbortController,E=null!==(l=null==r?void 0:r.abortSignal)&&void 0!==l?l:B.signal;let T;E.addEventListener("abort",(()=>{w(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(T=i.indexOf(e.target))}),{signal:E}),b?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(b.focus({preventScroll:f}),p(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=i.find((r=>r.contains(e)));r&&p(r)}),{signal:E,capture:!0}),b.addEventListener("focusin",(()=>{u?m(void 0,u):p(h())})),b.addEventListener("focusout",(()=>{y()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==T)T>=0&&i[T]!==u&&p(i[T]),T=void 0;else if("previous"===g)p(r.target);else if("closest"===g||"first"===g){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===I?i.length-1:0,r=i[e];return void(null==r||r.focus({preventScroll:f}))}p(r.target)}else if("function"==typeof g)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=g(r.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:f});console.warn("Element requested is not a known focusable element.")}else p(r.target);I=void 0}),{signal:E});const S=null!=b?b:e;let I;return"closest"===g&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=_o(e))}),{signal:E,capture:!0}),S.addEventListener("keydown",(o=>{var t;if(o.key in Po){const a=zo[o.key];if(!o.defaultPrevented&&(a&s)>0&&!function(e,r){const o=e.key,t=[...o].length,a=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(a&&(1===t||"Home"===o||"End"===o))return!0;if(r instanceof HTMLSelectElement){if(1===t)return!0;if("ArrowDown"===o&&Co()&&!e.metaKey)return!0;if("ArrowDown"===o&&!Co()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===o||"PageDown"===o))return!0;if(a){const e=r,t=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===o&&!t)return!0;if("ArrowRight"===o&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===o&&!t)return!0;if("ArrowDown"===o&&!a)return!0}}return!1}(o,document.activeElement)){const a=_o(o);let n;if((null==r?void 0:r.getNextFocusable)&&(n=r.getNextFocusable(a,null!==(t=document.activeElement)&&void 0!==t?t:void 0,o)),!n){const r=function(){if(!u)return 0;const r=i.indexOf(u);return-1!==r?r:u===e?-1:0}();let t=r;"previous"===a?t-=1:"start"===a?t=0:"next"===a?t+=1:t=i.length-1,t<0&&(t="wrap"===d&&"Tab"!==o.key?i.length-1:0),t>=i.length&&(t="wrap"===d&&"Tab"!==o.key?0:i.length-1),r!==t&&(n=i[t])}b?p(n||u,!0):n&&(I=a,n.focus({preventScroll:f})),("Tab"!==o.key||n)&&o.preventDefault()}}}),{signal:E}),B}function Zo(e,r,{direction:o="vertical",startMargin:t=0,endMargin:a=0,behavior:n="smooth"}={}){const l="vertical"===o?"top":"left",i="vertical"===o?"bottom":"right",c="vertical"===o?"scrollTop":"scrollLeft",{[l]:s,[i]:d}=e.getBoundingClientRect(),{[l]:g,[i]:b}=r.getBoundingClientRect(),v=d>b-a;if(s<g+t){const e=s-g+r[c];r.scrollTo({behavior:n,[l]:e-t})}else if(v){const e=d-b+r[c];r.scrollTo({behavior:n,[l]:e+a})}}const Ko="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n:a;function Go(e,r){const o=l(e);Ko((()=>{o.current=e})),Ko((()=>{const e=r&&"current"in r?r.current:document.documentElement;if(!e)return;const t=new ResizeObserver((e=>{o.current(e)}));return t.observe(e),()=>{t.disconnect()}}),[r])}function Uo(e,o=[]){const t=so(null==e?void 0:e.floatingElementRef),a=so(null==e?void 0:e.anchorElementRef),[n,l]=r.useState(void 0),i=r.useCallback((()=>{t.current instanceof Element&&a.current instanceof Element?l(Eo(t.current,a.current,e)):l(void 0)}),[t,a,...o]);return Ko(i,[i]),Go(i),{floatingElementRef:t,anchorElementRef:a,position:n}}const qo=({overlayRef:e,returnFocusRef:r,initialFocusRef:o,onEscape:t,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:l})=>{const i=so(e);wo({containerRef:i,returnFocusRef:r,initialFocusRef:o,preventFocusOnOpen:l}),co({containerRef:i,ignoreClickRefs:a,onClickOutside:n});return uo((e=>{t(e),e.preventDefault()})),{ref:i}};function Yo(e){const[r,o]=i(e||null),a=l(null);a.current=r;const n=t((e=>{a.current=e,o(e)}),[a]);return[a,n]}function Xo(e,r,o){const[a,n]=i(o),l=null!=e?e:a,c=t((e=>{n(e),r&&r(e)}),[r]);return[l,c]}const Jo=(e,o,t,a)=>{((e,o,t)=>{const[a,n]=r.useState(void 0);r.useEffect((function(){const e=t.current,r=e=>{0!==e.detail&&n("mouse-click")},o=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&n(e.code)};return null==e||e.addEventListener("click",r),null==e||e.addEventListener("keydown",o),()=>{null==e||e.removeEventListener("click",r),null==e||e.removeEventListener("keydown",o)}}),[t]),r.useEffect((function(){if(!e||!o.current)return;const r=fo(o.current);if("mouse-click"===a){if(!t.current)throw new Error("For focus management, please attach anchorRef");t.current.focus()}else if(a&&["ArrowDown","Space","Enter"].includes(a)){const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===a){const e=[...r],o=e[e.length-1];setTimeout((()=>o.focus()))}else{const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,a,t])})(e,t,a),((e,o)=>{const t=so(o);r.useEffect((function(){e&&t.current&&[...fo(t.current)].map((e=>{var r;if(e.getAttribute("aria-keyshortcuts"))return;const o=null===(r=e.textContent)||void 0===r?void 0:r.toLowerCase()[0];o&&e.setAttribute("aria-keyshortcuts",o)}))}),[e,t]),r.useEffect((function(){if(!e||!t.current)return;const r=t.current,o=e=>{var o;const t=document.activeElement;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!a(e))return;e.stopPropagation();const n=e.key.toLowerCase();let l;const i=[...fo(r)].filter((e=>{var r;const o=null===(r=e.getAttribute("aria-keyshortcuts"))||void 0===r?void 0:r.split(" ").map((e=>e.toLowerCase()));return o&&o.includes(n)})),c=i.indexOf(t);l=c===i.length-1?i[0]:i.find(((e,r)=>r>c)),null===(o=l)||void 0===o||o.focus()};return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)}),[e,t]);const a=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,t),Qo(e,o,t,a),et(e,t,a)},Qo=(e,o,t,a)=>{r.useEffect((()=>{const r=t.current,n=a.current,l=r=>{e&&"Tab"===r.key&&(null==o||o("tab"))};return null==r||r.addEventListener("keydown",l),null==n||n.addEventListener("keydown",l),()=>{null==r||r.removeEventListener("keydown",l),null==n||n.removeEventListener("keydown",l)}}),[e,o,t,a])},et=(e,o,t)=>{r.useEffect((()=>{const r=o.current,a=t.current,n=o=>{if(!e||!r)return;const t=fo(r);if("ArrowDown"===o.key){const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===o.key){const e=[...t],r=e[e.length-1];setTimeout((()=>r.focus()))}};return null==a||a.addEventListener("keydown",n),()=>null==a?void 0:a.addEventListener("keydown",n)}),[e,o,t])};function rt(e,r){c(e,(()=>r.current))}function ot(e){const r=s();return e||r}const tt="light",at="dark",nt=r.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),lt=({children:e,...o})=>{var t,a,n,l,i,c,s,d;const{theme:g,colorMode:b,dayScheme:v,nightScheme:u}=it(),f=null!==(t=null!==(a=o.theme)&&void 0!==a?a:g)&&void 0!==t?t:j,h=ot(),{resolvedServerColorMode:m}=(e=>{try{var r;const o=null===(r=document.getElementById(`__PRIMER_DATA_${e}__`))||void 0===r?void 0:r.textContent;if(o)return JSON.parse(o)}catch(e){}return{}})(h),y=r.useRef(m),[x,C]=r.useState(null!==(n=null!==(l=o.colorMode)&&void 0!==l?l:b)&&void 0!==n?n:"day"),[k,B]=r.useState(null!==(i=null!==(c=o.dayScheme)&&void 0!==c?c:v)&&void 0!==i?i:tt),[E,T]=r.useState(null!==(s=null!==(d=o.nightScheme)&&void 0!==d?d:u)&&void 0!==s?s:at),S=function(){const[e,o]=r.useState(st);return r.useEffect((()=>{var e,r;const t=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function a(e){return e?"night":"day"}function n(e){const r=e.matches;o(a(r))}if(t){const e=t.matches;if(o(a(e)),void 0!==t.addEventListener)return t.addEventListener("change",n),function(){t.removeEventListener("change",n)};if(void 0!==t.addListener)return t.addListener(n),function(){t.removeListener(n)}}}),[]),e}(),I=y.current||dt(x,S),M=function(e,r,o){switch(e){case"day":case"light":return r;case"dark":case"night":return o}}(I,k,E),{resolvedTheme:N,resolvedColorScheme:A}=r.useMemo((()=>function(e,r){if(!e.colorSchemes)return{resolvedTheme:e,resolvedColorScheme:void 0};if(!e.colorSchemes[r]){console.error(`\`${r}\` scheme not defined in \`theme.colorSchemes\``);const o=Object.keys(e.colorSchemes)[0];return{resolvedTheme:to(e,e.colorSchemes[o]),resolvedColorScheme:o}}return{resolvedTheme:to(e,e.colorSchemes[r]),resolvedColorScheme:r}}(f,M)),[f,M]);return r.useEffect((function(){const e=dt(x,S);y.current&&(y.current!==e&&window.setTimeout((()=>{w.flushSync((()=>{C(e)})),C(x)})),y.current=null)}),[x,S]),r.useEffect((()=>{var e,r;C(null!==(e=null!==(r=o.colorMode)&&void 0!==r?r:b)&&void 0!==e?e:"day")}),[o.colorMode,b]),r.useEffect((()=>{var e,r;B(null!==(e=null!==(r=o.dayScheme)&&void 0!==r?r:v)&&void 0!==e?e:tt)}),[o.dayScheme,v]),r.useEffect((()=>{var e,r;T(null!==(e=null!==(r=o.nightScheme)&&void 0!==r?r:u)&&void 0!==e?e:at)}),[o.nightScheme,u]),r.createElement(nt.Provider,{value:{theme:N,colorScheme:M,colorMode:x,resolvedColorMode:I,resolvedColorScheme:A,dayScheme:k,nightScheme:E,setColorMode:C,setDayScheme:B,setNightScheme:T}},r.createElement(p,{theme:N},e,o.preventSSRMismatch?r.createElement("script",{type:"application/json",id:`__PRIMER_DATA_${h}__`,dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:I})}}):null))};function it(){return r.useContext(nt)}function ct(e,r){var o;const{colorScheme:t=""}=it();return null!==(o=e[t])&&void 0!==o?o:r}function st(){var e,r,o;return"undefined"!=typeof window&&null!==(e=(r=window).matchMedia)&&void 0!==e&&null!==(o=e.call(r,"(prefers-color-scheme: dark)"))&&void 0!==o&&o.matches?"night":"day"}function dt(e,r){return"auto"===e?r:e}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gt.apply(this,arguments)}lt.displayName="ThemeProvider",function(){function e(e){var r=!0,o=!1,t=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function n(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function l(e){var r=e.type,o=e.tagName;return!("INPUT"!==o||!a[r]||e.readOnly)||"TEXTAREA"===o&&!e.readOnly||!!e.isContentEditable}function i(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function s(o){o.metaKey||o.altKey||o.ctrlKey||(n(e.activeElement)&&i(e.activeElement),r=!0)}function d(e){r=!1}function g(e){n(e.target)&&(r||l(e.target))&&i(e.target)}function b(e){n(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(t),t=window.setTimeout((function(){o=!1}),100),c(e.target))}function v(e){"hidden"===document.visibilityState&&(o&&(r=!0),u())}function u(){document.addEventListener("mousemove",h),document.addEventListener("mousedown",h),document.addEventListener("mouseup",h),document.addEventListener("pointermove",h),document.addEventListener("pointerdown",h),document.addEventListener("pointerup",h),document.addEventListener("touchmove",h),document.addEventListener("touchstart",h),document.addEventListener("touchend",h)}function f(){document.removeEventListener("mousemove",h),document.removeEventListener("mousedown",h),document.removeEventListener("mouseup",h),document.removeEventListener("pointermove",h),document.removeEventListener("pointerdown",h),document.removeEventListener("pointerup",h),document.removeEventListener("touchmove",h),document.removeEventListener("touchstart",h),document.removeEventListener("touchend",h)}function h(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r=!1,f())}document.addEventListener("keydown",s,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",v,!0),u(),e.addEventListener("focus",g,!0),e.addEventListener("blur",b,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var r;window.applyFocusVisiblePolyfill=e;try{r=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(r)}"undefined"!=typeof document&&e(document)}();const bt=m(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}input{color-scheme:",';}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}'],(e=>e.colorScheme)),vt=h.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Ur,Gr);function ut(e){const{children:o,color:t="fg.default",fontFamily:a="normal",lineHeight:n="default",...l}=e,{colorScheme:i,dayScheme:c,nightScheme:s}=it();return r.createElement(vt,gt({},l,{color:t,fontFamily:a,lineHeight:n,"data-portal-root":!0,"data-color-mode":null!=i&&i.includes("dark")?"dark":"light","data-light-theme":c,"data-dark-theme":s}),r.createElement(bt,{colorScheme:null!=i&&i.includes("dark")?"dark":"light"}),o)}ut.displayName="BaseStyles";const ft=e=>Ie(e.sx),ht=h.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(pe,ee,re,J,oe,ae,ce,le,de,me,ft),pt=y(["box-shadow:none;outline:2px solid ",";"],Kr("colors.accent.fg")),mt=e=>y(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],pt,void 0===e?"2px":e,pt,void 0===e?"2px":e),yt=h.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],mt("-2px"),ft),xt=(e="default",r)=>({default:{color:"btn.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}, ${null==r?void 0:r.shadows.btn.insetShadow}`,"&:hover:not([disabled]):not([data-inactive])":{backgroundColor:"btn.hoverBg",borderColor:`var(--button-default-borderColor-hover, ${null==r?void 0:r.colors.btn.hoverBorder})`},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},"&:disabled":{color:"primer.fg.disabled",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:`var(--button-default-bgColor-disabled, ${null==r?void 0:r.colors.input.disabledBg})`,"[data-component=ButtonCounter]":{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},'[data-component="leadingVisual"], [data-component="trailingVisual"], [data-component="trailingAction"]':{color:`var(--button-color, ${null==r?void 0:r.colors.fg.muted})`},"[data-component=ButtonCounter]":{backgroundColor:"btn.counterBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"}},primary:{color:"btn.primary.text",backgroundColor:"btn.primary.bg",borderColor:"btn.primary.border",boxShadow:`${null==r?void 0:r.shadows.btn.primary.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.primary.hoverText",backgroundColor:"btn.primary.hoverBg"},"&:focus:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:focus-visible:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`},"&:disabled":{color:"btn.primary.disabledText",backgroundColor:"btn.primary.disabledBg",borderColor:"btn.primary.disabledBorder","[data-component=ButtonCounter]":{color:"inherit"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.primary.counterBg",color:"btn.primary.text"},"&[aria-expanded=true]":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`}},danger:{color:"btn.danger.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.danger.hoverText",backgroundColor:"btn.danger.hoverBg",borderColor:"btn.danger.hoverBorder",boxShadow:`${null==r?void 0:r.shadows.btn.danger.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.danger.hoverCounterBg",color:"btn.danger.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"},"&:disabled":{color:"btn.danger.disabledText",backgroundColor:"btn.danger.disabledBg",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,"[data-component=ButtonCounter]":{color:"btn.danger.disabledCounterFg",backgroundColor:"btn.danger.disabledCounterBg"}},"[data-component=ButtonCounter]":{color:"btn.danger.counterFg",backgroundColor:"btn.danger.counterBg"},"&[aria-expanded=true]":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"}},invisible:{color:"btn.text",backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none","&:hover:not([disabled])":{backgroundColor:"actionListItem.default.hoverBg"},"&:active:not([disabled])":{backgroundColor:"actionListItem.default.activeBg"},"&:disabled":{color:"primer.fg.disabled",'[data-component=ButtonCounter], [data-component="leadingVisual"], [data-component="trailingAction"]':{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"actionListItem.default.selectedBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"},'[data-component="trailingAction"]':{color:"fg.muted"},'[data-component="leadingVisual"]':{color:"fg.muted"},"&[data-no-visuals]":{color:"accent.fg"},'&:has([data-component="ButtonCounter"])':{color:"btn.text"},"&:disabled[data-no-visuals]":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}}},outline:{color:"btn.outline.text",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,borderColor:`var(--button-default-borderColor-rest, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:"btn.bg","&:hover:not([disabled]):not([data-inactive])":{color:"btn.outline.hoverText",backgroundColor:"btn.outline.hoverBg",borderColor:`${null==r?void 0:r.colors.btn.outline.hoverBorder}`,boxShadow:`${null==r?void 0:r.shadows.btn.outline.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.hoverCounterBg",color:"btn.outline.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`${null==r?void 0:r.colors.btn.outline.selectedBorder}`},"&:disabled":{color:"btn.outline.disabledText",backgroundColor:"btn.outline.disabledBg",borderColor:"btn.border","[data-component=ButtonCounter]":{backgroundColor:"btn.outline.disabledCounterBg",color:"btn.outline.disabledCounterFg"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.counterBg",color:"btn.outline.counterFg"},"&[aria-expanded=true]":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.outline.selectedBorder})`}}}[e]),Ct=e=>({borderRadius:"2",border:"1px solid",borderColor:`var(--button-default-borderColor-rest, ${null==e?void 0:e.colors.btn.border})`,fontFamily:"inherit",fontWeight:"semibold",fontSize:"1",cursor:"pointer",appearance:"none",userSelect:"none",textDecoration:"none",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px",padding:"0 12px",gap:"8px",minWidth:"max-content",transition:"80ms cubic-bezier(0.65, 0, 0.35, 1)",transitionProperty:"color, fill, background-color, border-color","&[href]":{display:"inline-flex","&:hover":{textDecoration:"none"}},"&:hover":{transitionDuration:"80ms"},"&:active":{transition:"none"},"&[data-inactive]":{cursor:"auto"},"&:disabled":{cursor:"not-allowed",boxShadow:"none"},"@media (forced-colors: active)":{"&:focus":{outline:"solid 1px transparent"}},"[data-component=ButtonCounter]":{fontSize:"0"},"&[data-component=IconButton]":{display:"inline-grid",padding:"unset",placeContent:"center",width:"32px",minWidth:"unset"},'&[data-size="small"]':{padding:"0 8px",height:"28px",gap:"4px",fontSize:"0",'[data-component="text"]':{lineHeight:"calc(20 / 12)"},"[data-component=ButtonCounter]":{fontSize:"0"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"4px"},"&[data-component=IconButton]":{width:"28px",padding:"unset"}},'&[data-size="large"]':{padding:"0 16px",height:"40px",gap:"8px",'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"},"&[data-component=IconButton]":{width:"40px",padding:"unset"}}}),wt=e=>({...Ct(e),'&[data-block="block"]':{width:"100%"},"&[data-inactive]:not([disabled])":{backgroundColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,borderColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,color:`var(--button-inactive-fgColor, ${null==e?void 0:e.colors.btn.inactive.text})`},"&[data-inactive]:not([disabled]):focus-visible":{boxShadow:"none"},'[data-component="leadingVisual"]':{gridArea:"leadingVisual"},'[data-component="text"]':{gridArea:"text",lineHeight:"calc(20/14)",whiteSpace:"nowrap"},'[data-component="trailingVisual"]':{gridArea:"trailingVisual"},'[data-component="trailingAction"]':{marginRight:"-4px"},'[data-component="buttonContent"]':{flex:"1 0 auto",display:"grid",gridTemplateAreas:'"leadingVisual text trailingVisual"',gridTemplateColumns:"min-content minmax(0, auto) min-content",alignItems:"center",alignContent:"center"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"}}),kt=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"}),Bt={},Et=h.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?ft:"\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n "));function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tt.apply(this,arguments)}const St=d((({scheme:e="secondary",sx:o=Bt,children:t,...a},n)=>r.createElement(r.Fragment,null,r.createElement(ht,Tt({"aria-hidden":"true",sx:to({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",border:"var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--counter-borderColor,var(--color-counter-border))",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},o)},a,{as:"span",ref:n}),t),r.createElement(Et,null," (",t,")"))));function It(){return It=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},It.apply(this,arguments)}St.displayName="CounterLabel";const Mt=d((({children:e,as:t="button",sx:a=Bt,...n},l)=>{const{leadingVisual:i,trailingVisual:c,trailingAction:s,count:d,icon:g,variant:b="default",size:v="medium",alignContent:u="center",block:f=!1,inactive:h,...p}=n,m=r.useRef(null);rt(l,m);const{theme:y}=it(),x=o((()=>to.all([wt(y),xt(b,y)])),[y,b]),C=o((()=>to(x,a)),[x,a]),w={display:"flex",pointerEvents:"none"};return r.createElement(yt,It({as:t,sx:C},p,{ref:m,"data-block":f?"block":null,"data-size":"small"===v||"large"===v?v:void 0,"data-no-visuals":!(i||c||s)||void 0,"data-inactive":!!h||void 0}),g?r.createElement(g,null):r.createElement(r.Fragment,null,r.createElement(ht,{as:"span","data-component":"buttonContent",sx:kt(u)},i&&r.createElement(ht,{as:"span","data-component":"leadingVisual",sx:{...w}},r.createElement(i,null)),e&&r.createElement("span",{"data-component":"text"},e),void 0===d||c?c?r.createElement(ht,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(c,null)):null:r.createElement(ht,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(St,{"data-component":"ButtonCounter"},d))),s&&r.createElement(ht,{as:"span","data-component":"trailingAction",sx:{...w}},r.createElement(s,null))))}));function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Nt.apply(this,arguments)}const At=d((({children:e,sx:o=Bt,...t},a)=>{const{block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:s}=t;let d=o;const g={};if(null!==o&&Object.keys(o).length>0){d=Ot({block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:s},o);const{color:e}=o;e&&(g["--button-color"]=e)}return r.createElement(Mt,Nt({ref:a,as:"button",sx:d,style:g,type:"button"},t),e)}));function Ot(e,r){const o=e.size&&"medium"!==e.size?`[data-size="${e.size}"]`:"",t=e.block?'[data-block="block"]':"",a=e.leadingVisual||e.trailingVisual||e.trailingAction?"":"[data-no-visuals]",n={};return r?(n[`&${o}${t}${a}`]=r,n):n}At.displayName="Button";const Lt=function(){};var jt=class extends Event{oldState;newState;constructor(e,{oldState:r="",newState:o="",...t}={}){super(e,t),this.oldState=String(r||""),this.newState=String(o||"")}},Rt=new WeakMap;function Dt(e,r,o){Rt.set(e,setTimeout((()=>{Rt.has(e)&&e.dispatchEvent(new jt("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var zt=globalThis.ShadowRoot||function(){},Pt=globalThis.HTMLDialogElement||function(){},_t=new WeakMap,Ht=new WeakMap,Ft=new WeakMap;function Vt(e){return Ft.get(e)||"hidden"}var Wt=new WeakMap;function $t(e,r){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!r||"showing"===Vt(e))&&(!(!r&&"hidden"!==Vt(e))&&(!(e instanceof Pt&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Zt(e){return e?Array.from(Ht.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Kt(e){const r=qt(e),o=function(e){for(;e;){const r=e.popoverTargetElement;if(r instanceof HTMLElement)return r;if((e=e.parentElement||Ut(e))instanceof zt&&(e=e.host),e instanceof Document)return}}(e);return Zt(r)>Zt(o)?r:o}function Gt(e){const r=Ht.get(e);for(const e of r||[]){if(e.isConnected)return e;r.delete(e)}return null}function Ut(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?Ut(e.parentNode):e}function qt(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===Ft.get(e))return e;if((e=e.parentElement||Ut(e))instanceof zt&&(e=e.host),e instanceof Document)return}}function Yt(e){return!(e.hidden||e instanceof zt)&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&("number"==typeof e.tabIndex&&-1!==e.tabIndex))))}function Xt(e){(function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let r=e;r.shadowRoot&&(r=r.shadowRoot);let o=r.querySelector("[autofocus]");if(o)return o;{const e=r.querySelectorAll("slot");for(const r of e){const e=r.assignedElements({flatten:!0});for(const r of e){if(r.hasAttribute("autofocus"))return r;if(o=r.querySelector("[autofocus]"),o)return o}}}const t=e.ownerDocument.createTreeWalker(r,NodeFilter.SHOW_ELEMENT);let a=t.currentNode;for(;a;){if(Yt(a))return a;a=t.nextNode()}})(e)?.focus()}var Jt=new WeakMap;function Qt(e){if(!$t(e,!1))return;const r=e.ownerDocument;if(!e.dispatchEvent(new jt("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!$t(e,!1))return;let o=!1;if("auto"===e.popover){const o=e.getAttribute("popover"),t=function(e){const r=new Map;let o=0;const t=e.ownerDocument;for(const e of Ht.get(t)||[])r.set(e,o),o+=1;r.set(e,o),o+=1;let a=null;return function(e){const o=qt(e);if(null===o)return null;const t=r.get(o);(null===a||r.get(a)<t)&&(a=o)}(e?.parentElement),a}(e)||r;if(oa(t,!1,!0),o!==e.getAttribute("popover")||!$t(e,!1))return}Gt(r)||(o=!0),Jt.delete(e);const t=r.activeElement;e.classList.add(":popover-open"),Ft.set(e,"showing"),_t.has(r)||_t.set(r,new Set),_t.get(r).add(e),Xt(e),"auto"===e.popover&&(Ht.has(r)||Ht.set(r,new Set),Ht.get(r).add(e),la(Wt.get(e),!0)),o&&t&&"auto"===e.popover&&Jt.set(e,t),Dt(e,"closed","open")}function ea(e,r=!1,o=!1){if(!$t(e,!0))return;const t=e.ownerDocument;if("auto"===e.popover&&(oa(e,r,o),!$t(e,!0)))return;if(la(Wt.get(e),!1),Wt.delete(e),o&&(e.dispatchEvent(new jt("beforetoggle",{oldState:"open",newState:"closed"})),!$t(e,!0)))return;_t.get(t)?.delete(e),Ht.get(t)?.delete(e),e.classList.remove(":popover-open"),Ft.set(e,"hidden"),o&&Dt(e,"open","closed");const a=Jt.get(e);a&&(Jt.delete(e),r&&a.focus())}function ra(e,r=!1,o=!1){let t=Gt(e);for(;t;)ea(t,r,o),t=Gt(e)}function oa(e,r,o){const t=e.ownerDocument||e;if(e instanceof Document)return ra(t,r,o);let a=null,n=!1;for(const r of Ht.get(t)||[])if(r===e)n=!0;else if(n){a=r;break}if(!n)return ra(t,r,o);for(;a&&"showing"===Vt(a)&&Ht.get(t)?.size;)ea(a,r,o)}var ta=new WeakMap;function aa(e){if(!e.isTrusted)return;const r=e.composedPath()[0];if(!r)return;const o=r.ownerDocument;if(!Gt(o))return;const t=Kt(r);if(t&&"pointerdown"===e.type)ta.set(o,t);else if("pointerup"===e.type){const e=ta.get(o)===t;ta.delete(o),e&&oa(t||o,!1,!0)}}var na=new WeakMap;function la(e,r=!1){if(!e)return;na.has(e)||na.set(e,e.getAttribute("aria-expanded"));const o=e.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)e.setAttribute("aria-expanded",String(r));else{const r=na.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var ia=globalThis.ShadowRoot||function(){};function ca(e,r,o){const t=e[r];Object.defineProperty(e,r,{value(e){return t.call(this,o(e))}})}var sa=/(^|[^\\]):popover-open\b/g,da="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",ga=null;function ba(e){if(null===ga)try{(ga=new CSSStyleSheet).replaceSync(da)}catch{ga=!1}if(!1===ga){const r=document.createElement("style");r.textContent=da,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[ga,...e.adoptedStyleSheets]}function va(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(sa,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||jt,ca(Document.prototype,"querySelector",e),ca(Document.prototype,"querySelectorAll",e),ca(Element.prototype,"querySelector",e),ca(Element.prototype,"querySelectorAll",e),ca(Element.prototype,"matches",e),ca(Element.prototype,"closest",e),ca(DocumentFragment.prototype,"querySelectorAll",e),ca(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){Qt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){ea(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===Ft.get(this)&&void 0===e||!1===e?ea(this,!0,!0):void 0!==e&&!0!==e||Qt(this)}}});const r=Element.prototype.attachShadow;r&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const o=r.call(this,e);return ba(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=o.call(this);return e.shadowRoot&&ba(e.shadowRoot),e}}});const t=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),t.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),t.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=t.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return t.delete(this),null;const r=Ut(this),o=this.getAttribute("popovertarget");return(r instanceof Document||r instanceof ia)&&o&&r.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}a(HTMLButtonElement),a(HTMLInputElement);const n=e=>{const r=e.composedPath()[0];if(!(r instanceof Element)||r?.shadowRoot)return;const o=Ut(r);if(!(o instanceof ia||o instanceof Document))return;const t=r.closest("[popovertargetaction],[popovertarget]");return t?(function(e){const r=e.popoverTargetElement;if(!(r instanceof HTMLElement))return;const o=Vt(r);"show"===e.popoverTargetAction&&"showing"===o||"hide"===e.popoverTargetAction&&"hidden"===o||("showing"===o?ea(r,!0,!0):$t(r,!1)&&(Wt.set(r,e),Qt(r)))}(t),void e.preventDefault()):void 0},l=e=>{const r=e.key,o=e.target;e.defaultPrevented||!o||"Escape"!==r&&"Esc"!==r||oa(o.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",n),e.addEventListener("keydown",l),e.addEventListener("pointerdown",aa),e.addEventListener("pointerup",aa)})(document),ba(document)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ua.apply(this,arguments)}const fa="\n animation-name: tooltip-appear;\n animation-duration: 0.1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n",ha=h.span.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-e45c7z-0"})(["display:none;&[popover]{position:absolute;padding:0.5em 0.75em;width:max-content;margin:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;word-wrap:break-word;background:",";border-radius:",";border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}&[popover]:popover-open{display:block;}&[popover].\\:popover-open{display:block;}@media (forced-colors:active){outline:1px solid transparent;}&::after{position:absolute;display:block;right:0;left:0;height:var(--overlay-offset,0.25rem);content:'';}&[data-direction='n']::after,&[data-direction='ne']::after,&[data-direction='nw']::after{top:100%;}&[data-direction='s']::after,&[data-direction='se']::after,&[data-direction='sw']::after{bottom:100%;}&[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}&[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:popover-open,&:popover-open::before{","}&.\\:popover-open,&.\\:popover-open::before{","}",";"],Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),fa,fa,ft),pa={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},ma={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},ya=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],xa=e=>ya.some((r=>e.matches(r)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),Ca=r.createContext({}),wa=r.forwardRef((({direction:e="s",text:t,type:n="description",children:c,id:s,...d},b)=>{const v=ot(s),u=g.only(c),f=so(b),h=l(null),[p,m]=i(e),[y,x]=i(!1),C=()=>{if(h.current&&f.current&&h.current.hasAttribute("popover")&&!h.current.matches(":popover-open")){const r=h.current,o=f.current;r.showPopover(),x(!0);const t={side:pa[e].side,align:pa[e].align},{top:a,left:n,anchorAlign:l,anchorSide:i}=Eo(r,o,t);m(ma[`${i}-${l}`]),r.style.top=`${a}px`,r.style.left=`${n}px`}},w=()=>{h.current&&f.current&&h.current.hasAttribute("popover")&&h.current.matches(":popover-open")&&(h.current.hidePopover(),x(!1))},k=o((()=>({tooltipId:v})),[v]);return a((()=>{if(!h.current||!f.current)return;const e=xa(f.current),r=f.current.childNodes,o=Array.from(r).some((e=>e instanceof HTMLElement&&xa(e)));if(e||o||Lt(!1),"label"===n){f.current.hasAttribute("aria-label"),Array.from(f.current.childNodes).some((e=>e instanceof HTMLElement&&e.hasAttribute("aria-label")))}"undefined"!=typeof window&&("undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||va());h.current.setAttribute("popover","auto")}),[h,f,e,n]),uo((e=>{y&&(e.stopImmediatePropagation(),e.preventDefault(),w())}),[y]),r.createElement(Ca.Provider,{value:k},r.createElement(r.Fragment,null,r.isValidElement(u)&&r.cloneElement(u,{ref:f,"aria-describedby":"description"===n?v:u.props["aria-describedby"],"aria-labelledby":"label"===n?v:u.props["aria-labelledby"],onBlur:e=>{var r,o;w(),null===(r=(o=u.props).onBlur)||void 0===r||r.call(o,e)},onFocus:e=>{var r,o;try{if(!e.target.matches(":focus-visible"))return}catch(e){}C(),null===(r=(o=u.props).onFocus)||void 0===r||r.call(o,e)},onMouseEnter:e=>{var r,o;C(),null===(r=(o=u.props).onMouseEnter)||void 0===r||r.call(o,e)},onMouseLeave:e=>{var r,o;w(),null===(r=(o=u.props).onMouseLeave)||void 0===r||r.call(o,e)}}),r.createElement(ha,ua({ref:h,"data-direction":p},d,{role:"description"===n?"tooltip":void 0,"aria-hidden":"label"===n||void 0,id:v,onMouseEnter:C,onMouseLeave:w}),t)))}));function ka(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=ka(e[r]))&&(t&&(t+=" "),t+=o);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Ba(){for(var e,r,o=0,t="";o<arguments.length;)(e=arguments[o++])&&(r=ka(e))&&(t&&(t+=" "),t+=r);return t}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ea.apply(this,arguments)}const Ta=h.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus,&:focus-within{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus,&.tooltipped-multiline:focus-within{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}",";"],Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),Kr("space.3"),Kr("space.3"),Kr("space.3"),Kr("space.3"),ft),Sa=r.createContext({});function Ia({direction:e="n",children:t,className:a,text:n,noDelay:l,align:i,wrap:c,id:s,...d}){const g=ot(s),b=Ba(a,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,l&&"tooltipped-no-delay",c&&"tooltipped-multiline"),v=o((()=>({tooltipId:g})),[g]);return r.createElement(Sa.Provider,{value:v},r.createElement(Ta,Ea({role:"tooltip","aria-label":n,id:g},d,{className:b}),t))}function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ma.apply(this,arguments)}Ia.displayName="Tooltip",Ia.alignments=["left","right"],Ia.directions=["n","ne","e","se","s","sw","w","nw"];const Na=d((({sx:e=Bt,icon:o,"aria-label":t,description:a,disabled:n,tooltipDirection:l,unsafeDisableTooltip:i=!0,...c},s)=>{let d=e;const{size:g}=c;null!==e&&Object.keys(e).length>0&&(d=Ot({size:g},e));const{tooltipId:b}=r.useContext(Ca),{tooltipId:v}=r.useContext(Sa);return i||n||void 0===t||""===t||(b||v)?r.createElement(Mt,Ma({icon:o,"data-component":"IconButton",sx:d,type:"button","aria-label":t,disabled:n},c,{ref:s})):r.createElement(wa,{ref:s,text:null!=a?a:t,type:a?void 0:"label",direction:l},r.createElement(Mt,Ma({icon:o,"data-component":"IconButton",sx:d,type:"button","aria-label":a?t:void 0},c)))}));function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Aa.apply(this,arguments)}const Oa=d((({children:e,as:o="a",sx:t=Bt,...a},n)=>r.createElement(Mt,Aa({as:o,ref:n,sx:t},a),e))),La=!("undefined"==typeof window||!window.document||!window.document.createElement);function ja(e,o){const t=b(Ra),[n,l]=r.useState((()=>void 0!==t[e]?t[e]:void 0!==o?o:!!La&&window.matchMedia(e).matches));return a((()=>{void 0!==t[e]&&l(t[e])}),[t,e]),a((()=>{if(void 0!==t[e])return;function r(e){l(e.matches)}const o=window.matchMedia(e);return o.addEventListener?o.addEventListener("change",r):o.addListener(r),l(o.matches),()=>{o.addEventListener?o.removeEventListener("change",r):o.removeListener(r)}}),[t,e]),n}const Ra=v({}),Da={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function za(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function Pa(e,r){const o=ja(Da.narrow,!1),t=ja(Da.regular,!1),a=ja(Da.wide,!1);if(za(e)){const n=e;return o&&"narrow"in n?n.narrow:a&&"wide"in n?n.wide:t&&"regular"in n?n.regular:r}return e}function _a(e,o){const t=(a=o,n=()=>{},Object.keys(a).reduce(((e,r)=>(e[r]=n(a[r]),e)),{}));var a,n;const l=[],i=Object.keys(o),c=Object.values(o);return r.Children.forEach(e,(e=>{if(!r.isValidElement(e))return void l.push(e);const o=c.findIndex((r=>{if(Array.isArray(r)){const[o,t]=r;return e.type===o&&t(e.props)}return e.type===r}));if(-1===o)return void l.push(e);const a=i[o];t[a]||(t[a]=e)})),[t,l]}function Ha(e){const[r,o]=i(!1);return a((()=>{if(null===e.current)return;const r=new ResizeObserver((e=>{for(const r of e)o(r.target.scrollHeight>r.target.clientHeight||r.target.scrollWidth>r.target.clientWidth)}));return r.observe(e.current),()=>{r.disconnect()}}),[e]),r}var Fa=new Map,Va=new WeakMap,Wa=0,$a=void 0;function Za(e){return Object.keys(e).sort().filter((r=>void 0!==e[r])).map((r=>`${r}_${"root"===r?function(e){return e?(Va.has(e)||(Wa+=1,Va.set(e,Wa.toString())),Va.get(e)):"0"}(e.root):e[r]}`)).toString()}function Ka(e,r,o={},t=$a){if(void 0===window.IntersectionObserver&&void 0!==t){const a=e.getBoundingClientRect();return r(t,{isIntersecting:t,target:e,intersectionRatio:"number"==typeof o.threshold?o.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:n,elements:l}=function(e){const r=Za(e);let o=Fa.get(r);if(!o){const t=new Map;let a;const n=new IntersectionObserver((r=>{r.forEach((r=>{var o;const n=r.isIntersecting&&a.some((e=>r.intersectionRatio>=e));e.trackVisibility&&void 0===r.isVisible&&(r.isVisible=n),null==(o=t.get(r.target))||o.forEach((e=>{e(n,r)}))}))}),e);a=n.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:r,observer:n,elements:t},Fa.set(r,o)}return o}(o),i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(r),n.observe(e),function(){i.splice(i.indexOf(r),1),0===i.length&&(l.delete(e),n.unobserve(e)),0===l.size&&(n.disconnect(),Fa.delete(a))}}function Ga({threshold:r,delay:o,trackVisibility:t,rootMargin:a,root:n,triggerOnce:l,skip:i,initialInView:c,fallbackInView:s,onChange:d}={}){var g;const[b,v]=e.useState(null),u=e.useRef(),[f,h]=e.useState({inView:!!c,entry:void 0});u.current=d,e.useEffect((()=>{if(i||!b)return;let e;return e=Ka(b,((r,o)=>{h({inView:r,entry:o}),u.current&&u.current(r,o),o.isIntersecting&&l&&e&&(e(),e=void 0)}),{root:n,rootMargin:a,threshold:r,trackVisibility:t,delay:o},s),()=>{e&&e()}}),[Array.isArray(r)?r.toString():r,b,n,a,l,i,t,s,o]);const p=null==(g=f.entry)?void 0:g.target,m=e.useRef();b||!p||l||i||m.current===p||(m.current=p,h({inView:!!c,entry:void 0}));const y=[v,f.inView,f.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function Ua(e){return e&&e!==document.body?function(e){const r=e.scrollHeight>e.clientHeight;return r&&!(-1!==window.getComputedStyle(e).overflowY.indexOf("hidden"))}(e)?e:Ua(e.parentElement):null}const qa=!!La&&CSS.supports("-webkit-touch-callout","none"),Ya=!!La&&(CSS.supports("max-height","100dvh")&&qa);function Xa(e){return Ya?`${e}dvh`:`${e}vh`}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ja.apply(this,arguments)}const Qa=1,en=2,rn=3,on=4,tn={none:0,condensed:3,normal:[3,null,null,4]},an=r.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),nn={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},ln=({containerWidth:e="xlarge",padding:o="normal",rowGap:t="normal",columnGap:a="normal",children:n,sx:i={},_slotsConfig:c})=>{const{rootRef:s,enableStickyPane:d,disableStickyPane:g,contentTopRef:b,contentBottomRef:v,stickyPaneHeight:u}=function(){const e=r.useRef(null),[o,t]=r.useState(Xa(100)),[a,n]=r.useState(0),[l,i,c]=Ga(),[s,d]=Ga(),g=r.useCallback((()=>{let r="";const o=Ua(e.current),n=null==c?void 0:c.target.getBoundingClientRect(),l="number"==typeof a?`${a}px`:a;if(o){const e=o.getBoundingClientRect(),t=n?Math.max(n.top-e.top,0):0;r=`calc(${e.height}px - (max(${t}px, ${l})))`}else{const e=n?Math.max(n.top,0):0;r=`calc(${Xa(100)} - (max(${e}px, ${l})))`}t(r)}),[c,a]),[b,v]=r.useState(!1);return Ko((()=>{const r=Ua(e.current);return b&&(i||d)&&(g(),r?r.addEventListener("scroll",g):window.addEventListener("scroll",g),window.addEventListener("resize",g)),()=>{r?r.removeEventListener("scroll",g):window.removeEventListener("scroll",g),window.removeEventListener("resize",g)}}),[b,i,d,g]),{rootRef:e,enableStickyPane:function(e){v(!0),n(e)},disableStickyPane:function(){v(!1)},contentTopRef:l,contentBottomRef:s,stickyPaneHeight:o}}(),f=l(null),[h,p]=_a(n,null!=c?c:{header:vn,footer:wn});return r.createElement(an.Provider,{value:{padding:o,rowGap:t,columnGap:a,enableStickyPane:d,disableStickyPane:g,contentTopRef:b,contentBottomRef:v,paneRef:f}},r.createElement(ht,{ref:s,style:{"--sticky-pane-height":u},sx:to({padding:tn[o]},i)},r.createElement(ht,{sx:{maxWidth:nn[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},h.header,r.createElement(ht,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},p),h.footer)))};ln.displayName="Root",ln.displayName="PageLayout";const cn={none:{display:"none"},line:{display:"block",height:1,backgroundColor:"border.default"},filled:{display:"block",height:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset 0 -1px 0 0 ${e.colors.border.default}, inset 0 1px 0 0 ${e.colors.border.default}`}};const sn=({variant:e="none",sx:o={}})=>{const{padding:t}=r.useContext(an),a=Pa(e,"none");return r.createElement(ht,{sx:e=>{return to({marginX:(r=tn[t],Array.isArray(r)?r.map((e=>null===e?null:-e)):null===r?null:-r),...cn[a],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},o);var r}})};sn.displayName="HorizontalDivider";const dn={none:{display:"none"},line:{display:"block",width:1,backgroundColor:"border.default"},filled:{display:"block",width:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset -1px 0 0 0 ${e.colors.border.default}, inset 1px 0 0 0 ${e.colors.border.default}`}},gn=m(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),bn=({variant:e="none",draggable:o=!1,onDragStart:t,onDrag:a,onDragEnd:n,onDoubleClick:l,sx:i={}})=>{const[c,s]=r.useState(!1),[d,g]=r.useState(!1),b=Pa(e,"none"),v=r.useRef(a),u=r.useRef(n),{paneRef:f}=r.useContext(an),[h,p]=r.useState(0),[m,y]=r.useState(0),[x,C]=r.useState(0);return r.useEffect((()=>{if(null!==f.current){const e=getComputedStyle(f.current),r=e.getPropertyValue("--pane-max-width-diff"),o=e.getPropertyValue("--pane-min-width"),t=f.current.getBoundingClientRect().width,a=Number(r.split("px")[0]),n=Number(o.split("px")[0]),l=window.innerWidth,i=l>a?l-a:l;p(n),y(i),C(t||0)}}),[f,d,c]),r.useEffect((()=>{v.current=a}),[a]),r.useEffect((()=>{u.current=n}),[n]),r.useEffect((()=>{function e(e){var r;null===(r=v.current)||void 0===r||r.call(v,e.movementX,!1),e.preventDefault()}function r(e){var r;s(!1),null===(r=u.current)||void 0===r||r.call(u),e.preventDefault()}function o(e){var r;let o=0;if(("ArrowLeft"===e.key||"ArrowDown"===e.key)&&x>h)o=-3;else{if("ArrowRight"!==e.key&&"ArrowUp"!==e.key||!(x<m))return;o=3}C(x+o),null===(r=v.current)||void 0===r||r.call(v,o,!0),e.preventDefault()}function t(e){var r;g(!1),null===(r=u.current)||void 0===r||r.call(u),e.preventDefault()}return c||d?(window.addEventListener("mousemove",e),window.addEventListener("keydown",o),window.addEventListener("mouseup",r),window.addEventListener("keyup",t),document.body.setAttribute("data-page-layout-dragging","true")):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")}}),[c,d,x,h,m]),r.createElement(ht,{sx:to({height:"100%",position:"relative",...dn[b]},i)},o?r.createElement(r.Fragment,null,r.createElement(ht,{sx:{position:"absolute",inset:"0 -2px",cursor:"col-resize",bg:c||d?"accent.fg":"transparent",transitionDelay:"0.1s","&:hover":{bg:c||d?"accent.fg":"neutral.muted"}},role:"slider","aria-label":"Draggable pane splitter","aria-valuemin":h,"aria-valuemax":m,"aria-valuenow":x,"aria-valuetext":`Pane width ${x} pixels`,tabIndex:0,onMouseDown:e=>{0===e.button&&(s(!0),null==t||t())},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(g(!0),null==t||t())},onDoubleClick:l}),r.createElement(gn,null)):null)};bn.displayName="VerticalDivider";const vn=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const s=Pa(za(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),d=Pa(l,!1),{rowGap:g}=r.useContext(an);return r.createElement(ht,{as:"header","aria-label":e,"aria-labelledby":o,hidden:d,sx:to({width:"100%",marginBottom:tn[g]},c)},r.createElement(ht,{sx:{padding:tn[t]}},i),r.createElement(sn,{variant:s,sx:{marginTop:tn[g]}}))};vn.displayName="Header",vn.displayName="PageLayout.Header";const un={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},fn=({as:e="main","aria-label":o,"aria-labelledby":t,width:a="full",padding:n="none",hidden:l=!1,children:i,sx:c={}})=>{const s=Pa(l,!1),{contentTopRef:d,contentBottomRef:g}=r.useContext(an);return r.createElement(ht,{as:e,"aria-label":o,"aria-labelledby":t,sx:to({display:s?"none":"flex",flexDirection:"column",order:en,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},c)},r.createElement(ht,{ref:d}),r.createElement(ht,{sx:{width:"100%",maxWidth:un[a],marginX:"auto",flexGrow:1,padding:tn[n]}},i),r.createElement(ht,{ref:g}))};fn.displayName="Content",fn.displayName="PageLayout.Content";const hn=e=>void 0!==e.default,pn=e=>["small","medium","large"].includes(e),mn={start:Qa,end:rn},yn={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},xn={small:256,medium:296,large:320},Cn=r.forwardRef((({"aria-label":e,"aria-labelledby":o,position:t="end",positionWhenNarrow:a="inherit",width:n="medium",minWidth:l=256,padding:i="none",resizable:c=!1,widthStorageKey:s="paneWidth",divider:d="none",dividerWhenNarrow:g="inherit",sticky:b=!1,offsetHeader:v=0,hidden:u=!1,children:f,id:h,sx:p={}},m)=>{const y=Pa(za(t)||"inherit"===a?t:{regular:t,narrow:a},"end"),x=Pa(za(d)||"inherit"===g?d:{regular:d,narrow:g},"none"),C=Pa(u,!1),{rowGap:w,columnGap:k,enableStickyPane:B,disableStickyPane:E,paneRef:T}=r.useContext(an);r.useEffect((()=>{b?null==B||B(v):null==E||E()}),[b,B,E,v]);const S=e=>pn(e)?xn[e]:hn(e)?Number(e.default.split("px")[0]):0,[I,M]=r.useState((()=>{if(!La)return S(n);let e;try{e=localStorage.getItem(s)}catch(r){e=null}return e&&!isNaN(Number(e))?Number(e):S(n)})),N=e=>{M(e);try{localStorage.setItem(s,e.toString())}catch(e){}};rt(m,T);const A=Ha(T),O=ot(h),L={};return A&&(o?L["aria-labelledby"]=o:e&&(L["aria-label"]=e)),r.createElement(ht,{sx:e=>to({display:C?"none":"flex",order:mn[y],width:"100%",marginX:0,..."end"===y?{flexDirection:"column",marginTop:tn[w]}:{flexDirection:"column-reverse",marginBottom:tn[w]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...b?{position:"sticky",top:"number"==typeof v?`${v}px`:v,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===y?{flexDirection:"row-reverse",marginLeft:tn[k]}:{flexDirection:"row",marginRight:tn[k]}}},p)},r.createElement(sn,{variant:{narrow:x,regular:"none"},sx:{["end"===y?"marginBottom":"marginTop"]:tn[w]}}),r.createElement(ht,Ja({ref:T,style:{"--pane-width":`${I}px`},sx:e=>({"--pane-min-width":hn(n)?n.min:`${l}px`,"--pane-max-width-diff":"511px","--pane-max-width":hn(n)?n.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:pn(n)?yn[n]:n.default,padding:tn[i],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},A&&{tabIndex:0,role:"region"},L,h&&{id:O}),f),r.createElement(bn,{variant:{narrow:"none",regular:c?"line":x},draggable:c,sx:{["end"===y?"marginRight":"marginLeft"]:tn[k]},onDrag:(e,r=!1)=>{let o;o=r?e:"end"===y?-e:e,N(I+o)},onDragEnd:()=>{var e;const r=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();r&&N(r.width)},onDoubleClick:()=>N(S(n))}))}));Cn.displayName="PageLayout.Pane";const wn=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const s=Pa(za(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),d=Pa(l,!1),{rowGap:g}=r.useContext(an);return r.createElement(ht,{as:"footer","aria-label":e,"aria-labelledby":o,hidden:d,sx:to({order:on,width:"100%",marginTop:tn[g]},c)},r.createElement(sn,{variant:s,sx:{marginBottom:tn[g]}}),r.createElement(ht,{sx:{padding:tn[t]}},i))};wn.displayName="Footer",wn.displayName="PageLayout.Footer";const kn=Object.assign(ln,{Header:vn,Content:fn,Pane:Cn,Footer:wn});function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bn.apply(this,arguments)}const En=e=>r.createElement(kn,Bn({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:Tn,footer:Mn}},e));En.displayName="Root",En.displayName="SplitPageLayout";const Tn=({padding:e="normal",divider:o="line",...t})=>r.createElement(kn.Header,Bn({padding:e,divider:o},t));Tn.displayName="Header",Tn.displayName="SplitPageLayout.Header";const Sn=({width:e="large",padding:o="normal",...t})=>r.createElement(kn.Content,Bn({width:e,padding:o},t));Sn.displayName="Content",Sn.displayName="SplitPageLayout.Content";const In=({position:e="start",sticky:o=!0,padding:t="normal",divider:a="line",...n})=>r.createElement(kn.Pane,Bn({position:e,sticky:o,padding:t,divider:a},n));In.displayName="Pane",In.displayName="SplitPageLayout.Pane";const Mn=({padding:e="normal",divider:o="line",...t})=>r.createElement(kn.Footer,Bn({padding:e,divider:o},t));Mn.displayName="Footer",Mn.displayName="SplitPageLayout.Footer";const Nn=Object.assign(En,{Header:Tn,Content:Sn,Pane:In,Footer:Mn});function An({ref:e,closeOnOutsideClick:r,defaultOpen:o,onClickOutside:n}){const[c,s]=i(o),d=l(null),g=null!=e?e:d,b=t((e=>{const{current:r}=g;e.target.closest("details")!==r&&(n&&n(e),e.defaultPrevented||s(!1))}),[g,s,n]);a((()=>{if(c&&r)return document.addEventListener("click",b),()=>{document.removeEventListener("click",b)}}),[c,r,b]);const v=e=>{if(!e.defaultPrevented){const r=e.target;s(r.open)}};return{open:c,setOpen:s,getDetailsProps:()=>({onToggle:v,open:c,ref:g})}}function On(){const e=l(new Set),r=t(((r,o,...t)=>{const a=window.setTimeout(r,o,...t);return e.current.add(a),a}),[]),o=t((r=>{clearTimeout(r),e.current.delete(r)}),[]);return a((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:r,safeClearTimeout:o}}var Ln,jn=w;function Rn(e,o=[]){const t=so(null==e?void 0:e.containerRef),a=so(null==e?void 0:e.initialFocusRef),n=null==e?void 0:e.disabled,l=r.useRef(),i=r.useRef(null);function c(){var r;null===(r=l.current)||void 0===r||r.abort(),null!=e&&e.returnFocusRef&&e.returnFocusRef.current instanceof HTMLElement?e.returnFocusRef.current.focus():null!=e&&e.restoreFocusOnCleanUp&&i.current instanceof HTMLElement&&(i.current.focus(),i.current=null)}return i.current||null!=e&&e.disabled||(i.current=document.activeElement),r.useEffect((()=>{if(t.current instanceof HTMLElement){var e;if(!n)return l.current=Ro(t.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{c()};c()}}),[t,a,n,...o]),{containerRef:t,initialFocusRef:a}}function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dn.apply(this,arguments)}Ln=jn.createRoot,jn.hydrateRoot;const zn=h(r.forwardRef(((e,o)=>{const{icon:t,...a}=e;return r.createElement(t,Dn({},a,{ref:o}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>ft({sx:{color:e,...r}})));var Pn={small:16,medium:32,large:64};function _n(e,o,t){var a=t(),n=Object.keys(a),l=r.forwardRef((function(e,t){var l=e["aria-label"],i=e["aria-labelledby"],c=e.tabIndex,s=e.className,d=void 0===s?o:s,g=e.fill,b=void 0===g?"currentColor":g,v=e.size,u=void 0===v?16:v,f=e.verticalAlign,h=void 0===f?"text-bottom":f,p=e.id,m=e.title,y=Pn[u]||u,x=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,o){return o<=r?o:e}),e[0])}(n,y),C=a[x].width,w=y*(C/x),k=a[x].path,B=l||i,E=B?"img":void 0;return r.createElement("svg",{ref:t,"aria-hidden":B?void 0:"true",tabIndex:c,focusable:c>=0?"true":"false","aria-label":l,"aria-labelledby":i,className:d,role:E,viewBox:"0 0 ".concat(C," ").concat(x),width:w,height:y,fill:b,id:p,style:{display:"inline-block",userSelect:"none",verticalAlign:h,overflow:"visible"}},m?r.createElement("title",null,m):null,k)}));return l.displayName=e,l}var Hn=_n("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:r.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"}),r.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"}))}}})),Fn=_n("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:r.createElement("path",{d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})},16:{width:16,path:r.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})},24:{width:24,path:r.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})}}})),Vn=_n("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:r.createElement("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})},24:{width:24,path:r.createElement("path",{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"})}}})),Wn=_n("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:r.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"})},16:{width:16,path:r.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"})},24:{width:24,path:r.createElement("path",{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"})}}})),$n=_n("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:r.createElement("path",{d:"M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:r.createElement("path",{d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"})},24:{width:24,path:r.createElement("path",{d:"M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"})}}})),Zn=_n("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:r.createElement("path",{d:"M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:r.createElement("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:r.createElement("path",{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"})}}})),Kn=_n("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:r.createElement("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"})},24:{width:24,path:r.createElement("path",{d:"M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"})}}})),Gn=_n("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:r.createElement("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"})}}})),Un=_n("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:r.createElement("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z"}),r.createElement("path",{d:"M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z"}),r.createElement("path",{d:"M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"}))}}})),qn=_n("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:r.createElement("path",{d:"M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})},24:{width:24,path:r.createElement("path",{d:"M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"})}}})),Yn=_n("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:r.createElement("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"}),r.createElement("path",{d:"M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"}))}}})),Xn=_n("GitPullRequestClosedIcon","octicon octicon-git-pull-request-closed",(function(){return{16:{width:16,path:r.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"})},24:{width:24,path:r.createElement("path",{d:"M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"})}}})),Jn=_n("GitPullRequestDraftIcon","octicon octicon-git-pull-request-draft",(function(){return{16:{width:16,path:r.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"})},24:{width:24,path:r.createElement("path",{d:"M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z"})}}})),Qn=_n("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),r.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"}))},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z"}),r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),el=_n("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:r.createElement("path",{d:"M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"})},24:{width:24,path:r.createElement("path",{d:"M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"})}}})),rl=_n("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),r.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"}))},24:{width:24,path:r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"})}}})),ol=_n("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:r.createElement("path",{d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"})},24:{width:24,path:r.createElement("path",{d:"M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"})}}})),tl=_n("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:r.createElement("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),al=_n("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:r.createElement("path",{d:"M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"})},24:{width:24,path:r.createElement("path",{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"})}}})),nl=_n("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:r.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z"}),r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),ll=_n("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:r.createElement("path",{d:"m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"})},24:{width:24,path:r.createElement("path",{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"})}}})),il=_n("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:r.createElement("path",{d:"M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"})},16:{width:16,path:r.createElement("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:r.createElement("path",{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"})}}}));function cl(e={},o=[]){const t=so(e.containerRef),n=!!e.activeDescendantFocus,l=so("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),i=e.disabled,c=r.useRef();return a((()=>{if(t.current instanceof HTMLElement&&(!n||l.current instanceof HTMLElement)){if(!i){var r;const o={...e,activeDescendantControl:null!==(r=l.current)&&void 0!==r?r:void 0};return c.current=$o(t.current,o),()=>{var e;null===(e=c.current)||void 0===e||e.abort()}}var o;null===(o=c.current)||void 0===o||o.abort()}}),[i,...o]),{containerRef:t,activeDescendantControlRef:l}}const sl="__primerPortalRoot__",dl="__default__",gl={};function bl(e,r=dl){gl[r]=e}const vl=({children:e,onMount:o,containerName:t})=>{const a=r.useRef(null);if(!a.current){const e=document.createElement("div");e.style.position="relative",e.style.zIndex="1",a.current=e}const n=a.current;return Ko((()=>{let e=t;void 0===e&&(e=dl,function(){const e=gl[dl];if(!e||!document.body.contains(e)){let e=document.getElementById(sl);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",sl),e.style.position="absolute",e.style.top="0",e.style.left="0";const r=document.querySelector("[data-portal-root]");r?r.appendChild(e):document.body.appendChild(e)}bl(e)}}());const r=gl[e];if(!r)throw new Error(`Portal container '${t}' is not yet registered. Container must be registered with registerPortal before use.`);return r.appendChild(n),null==o||o(),()=>{r.removeChild(n)}}),[n]),k(e,n)};function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ul.apply(this,arguments)}const fl={position:"relative",overflow:"auto"};function hl({"aria-labelledby":e,children:o,...t}){const a=r.useRef(null),n=Ha(a)?{"aria-labelledby":e,role:"region",tabIndex:0}:{};return r.createElement(ht,ul({},t,n,{ref:a,sx:fl}),o)}function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pl.apply(this,arguments)}hl.displayName="ScrollableRegion";const ml=h("div").withConfig({displayName:"Dialog__Backdrop",componentId:"sc-uaxjsn-0"})(["position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:",";animation:dialog-backdrop-appear 200ms ",";&[data-position-regular='center']{align-items:center;justify-content:center;}&[data-position-regular='left']{align-items:center;justify-content:flex-start;}&[data-position-regular='right']{align-items:center;justify-content:flex-end;}.DialogOverflowWrapper{flex-grow:1;}@media (max-width:767px){&[data-position-narrow='center']{align-items:center;justify-content:center;}&[data-position-narrow='bottom']{align-items:end;justify-content:center;}}@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Kr("colors.primer.canvas.backdrop"),Kr("animation.easeOutCubic")),yl={small:"480px",large:"640px",auto:"auto"},xl={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},Cl=h.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";width:",";height:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);border-radius:12px;opacity:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}&[data-position-regular='center']{border-radius:var(--borderRadius-large,0.75rem);@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='left']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-left-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInRight 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='right']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-right-radius:0;border-bottom-right-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInLeft 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}@media (max-width:767px){&[data-position-narrow='center']{border-radius:var(--borderRadius-large,0.75rem);width:",";height:",";}&[data-position-narrow='bottom']{width:100vw;height:auto;max-width:100vw;max-height:calc(100vh - 64px);border-radius:var(--borderRadius-large,0.75rem);border-bottom-right-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideUp 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-narrow='fullscreen']{width:100%;max-width:100vw;height:100%;max-height:100vh;border-radius:unset !important;flex-grow:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}}@keyframes Overlay--motion-scaleFade{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}@keyframes Overlay--motion-slideUp{from{transform:translateY(100%);}}@keyframes Overlay--motion-slideInRight{from{transform:translateX(-100%);}}@keyframes Overlay--motion-slideInLeft{from{transform:translateX(100%);}}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>{var r;return xl[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return yl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),(e=>{var r;return xl[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return yl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),ft),wl=({dialogLabelId:e,title:o,subtitle:a,dialogDescriptionId:n,onClose:l})=>{const i=t((()=>{l("close-button")}),[l]);return r.createElement(jl.Header,null,r.createElement(ht,{display:"flex"},r.createElement(ht,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},r.createElement(jl.Title,{id:e},null!=o?o:"Dialog"),a&&r.createElement(jl.Subtitle,{id:n},a)),r.createElement(jl.CloseButton,{onClose:i})))};wl.displayName="DefaultHeader";const kl=({children:e})=>r.createElement(jl.Body,null,e);kl.displayName="DefaultBody";const Bl=({footerButtons:e})=>{const{containerRef:o}=cl({bindKeys:Do.ArrowHorizontal|Do.Tab,focusInStrategy:"closest"});return e?r.createElement(jl.Footer,{ref:o},r.createElement(jl.Buttons,{buttons:e})):null},El={narrow:"center",regular:"center"},Tl=r.forwardRef(((e,o)=>{const{title:t="Dialog",subtitle:a="",renderHeader:n,renderBody:i,renderFooter:c,onClose:s,role:d="dialog",width:g="xlarge",height:b="auto",footerButtons:v=[],position:u=El,returnFocusRef:f,sx:h}=e,p=ot(),m=ot(),y=l(null);for(const e of v)e.autoFocus&&(e.ref=y);const x={...e,title:t,subtitle:a,role:d,dialogLabelId:p,dialogDescriptionId:m},C=l(null);rt(o,C);const w=l(null);Rn({containerRef:C,initialFocusRef:y,restoreFocusOnCleanUp:null==f||!f.current,returnFocusRef:f}),uo((e=>{s("escape"),e.preventDefault()}),[s]),r.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const k=(null!=n?n:wl)(x),B=(null!=i?i:kl)(x),E=(null!=c?c:Bl)(x),T="string"==typeof u?{"data-position-regular":u}:Object.fromEntries(Object.entries(u).map((([e,r])=>[`data-position-${e}`,r])));return r.createElement(r.Fragment,null,r.createElement(vl,null,r.createElement(ml,pl({ref:w},T),r.createElement(Cl,pl({width:g,height:b,ref:C,role:d,"aria-labelledby":p,"aria-describedby":m,"aria-modal":!0},T,{sx:h}),k,r.createElement(hl,{"aria-labelledby":p,className:"DialogOverflowWrapper"},B),E))))}));Tl.displayName="Dialog";const Sl=h.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;",";"],Kr("colors.border.default"),Kr("space.2"),ft),Il=h.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Kr("fontSizes.1"),Kr("fontWeights.bold"),ft),Ml=h.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";font-weight:normal;",";"],Kr("fontSizes.0"),Kr("colors.fg.muted"),Kr("space.1"),ft),Nl=h.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Kr("space.3"),ft),Al=h.div.withConfig({displayName:"Dialog__Footer",componentId:"sc-uaxjsn-6"})(["box-shadow:0 -1px 0 ",";padding:",";display:flex;flex-flow:wrap;justify-content:flex-end;gap:",";z-index:1;flex-shrink:0;",";"],Kr("colors.border.default"),Kr("space.3"),Kr("space.2"),ft),Ol=h(At).withConfig({displayName:"Dialog__DialogCloseButton",componentId:"sc-uaxjsn-7"})(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:",";padding:",";align-self:flex-start;line-height:normal;box-shadow:none;"],Kr("colors.fg.muted"),Kr("space.2")),Ll=({onClose:e})=>r.createElement(Ol,{"aria-label":"Close",onClick:e},r.createElement(zn,{icon:il}));Ll.displayName="CloseButton";const jl=Object.assign(Tl,{Header:Sl,Title:Il,Subtitle:Ml,Body:Nl,Footer:Al,Buttons:({buttons:e})=>{var o;const t=so(null===(o=e.find((e=>e.autoFocus)))||void 0===o?void 0:o.ref);let n=0;const[l,c]=i(0);return a((()=>{var e;1===l?null===(e=t.current)||void 0===e||e.focus():c(l+1)}),[t,l]),r.createElement(r.Fragment,null,e.map(((e,o)=>{const{content:a,buttonType:l="default",autoFocus:i=!1,...c}=e;return r.createElement(At,pl({key:o},c,{variant:"normal"===l?"default":l,ref:i&&0===n?(n++,t):null}),a)})))},CloseButton:Ll});function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Rl.apply(this,arguments)}const Dl=h.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Kr("space.2")),zl=h(ht).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Kr("fontSizes.3"),Kr("fontWeights.bold"),Kr("space.2")),Pl=({title:e,onClose:o,dialogLabelId:a})=>{const n=t((()=>{o("close-button")}),[o]);return r.createElement(Dl,null,r.createElement(zl,{id:a},e),r.createElement(jl.CloseButton,{onClose:n}))};Pl.displayName="ConfirmationHeader";const _l=h(ht).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Kr("fontSizes.1"),Kr("space.3"),Kr("space.3"),Kr("space.3"),Kr("colors.fg.muted")),Hl=({children:e})=>r.createElement(_l,null,e);Hl.displayName="ConfirmationBody";const Fl=h(ht).withConfig({displayName:"ConfirmationDialog__StyledConfirmationFooter",componentId:"sc-11fz0jh-3"})(["display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-gap:",";align-items:end;justify-content:end;padding:"," "," ",";"],Kr("space.2"),Kr("space.1"),Kr("space.3"),Kr("space.3")),Vl=({footerButtons:e})=>{const{containerRef:o}=cl({bindKeys:Do.ArrowHorizontal|Do.Tab,focusInStrategy:"closest"});return r.createElement(Fl,{ref:o},r.createElement(jl.Buttons,{buttons:null!=e?e:[]}))};Vl.displayName="ConfirmationFooter";const Wl=e=>{const{onClose:o,title:a,cancelButtonContent:n="Cancel",confirmButtonContent:l="OK",confirmButtonType:i="normal",children:c}=e,s="danger"===i,d=[{content:n,onClick:t((()=>{o("cancel")}),[o]),autoFocus:s},{content:l,buttonType:i,onClick:t((()=>{o("confirm")}),[o]),autoFocus:!s}];return r.createElement(jl,{onClose:o,title:a,footerButtons:d,role:"alertdialog",width:"medium",renderHeader:Pl,renderBody:Hl,renderFooter:Vl},c)};Wl.displayName="ConfirmationDialog";let $l=null;function Zl(){const{theme:e,colorMode:o,dayScheme:a,nightScheme:n}=it(),l=t((t=>async function(e,o){const{content:t,...a}=o;return new Promise((o=>{$l||=document.createElement("div"),$l.isConnected||document.body.append($l);const n=Ln($l);n.render(r.createElement(lt,e,r.createElement(ut,null,r.createElement(Wl,Rl({},a,{onClose:e=>{n.unmount(),o("confirm"===e)}}),t))))}))}({theme:e,colorMode:o,dayScheme:a,nightScheme:n},t)),[e,o,a,n]);return l}const Kl=x(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Gl=h.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&y(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Kl))),Ul=({show:e,children:o})=>{const[t,n]=i(e);a((()=>{e&&n(!0)}),[e]);return t?r.createElement(ht,{height:e?"auto":0,overflow:"hidden"},r.createElement(Gl,{show:e,onAnimationEnd:()=>{e||n(!1)}},o)):null},ql=h.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Ur,Gr,ft),Yl=r.createContext({}),Xl=({children:e,sx:o})=>{const{disabled:t,captionId:a}=r.useContext(Yl);return r.createElement(ql,{color:t?"fg.muted":"fg.subtle",fontSize:1,id:a,sx:o},e)};Xl.displayName="CheckboxOrRadioGroupCaption";const Jl=({children:e,visuallyHidden:o=!1,sx:t})=>{const{required:a,disabled:n}=r.useContext(Yl);return r.createElement(Et,{isVisible:!o,title:a?"required field":void 0,sx:{display:"block",color:n?"fg.muted":void 0,fontSize:2,...t}},a?r.createElement(ht,{display:"flex",as:"span"},r.createElement(ht,{mr:1},e),r.createElement("span",null,"*")):e)};Jl.displayName="CheckboxOrRadioGroupLabel";const Ql={success:Wn,error:Fn},ei={success:"success.fg",error:"danger.fg"},ri=({children:e,id:o,validationStatus:t,sx:a})=>{const n=t?Ql[t]:void 0,l=t?ei[t]:void 0,i=16/12;return r.createElement(ql,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:l,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...a},"aria-live":"polite"},n&&r.createElement(ht,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},r.createElement(n,{size:12,fill:"currentColor"})),r.createElement(ht,{as:"span",id:o,sx:{lineHeight:i}},e))};ri.displayName="InputValidation";const oi=({children:e,variant:o,sx:t})=>{const{validationMessageId:a=""}=r.useContext(Yl);return r.createElement(ri,{validationStatus:o,id:a,sx:t},e)};function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ti.apply(this,arguments)}oi.displayName="CheckboxOrRadioGroupValidation";const ai=h.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Kr("space.2")),ni=({"aria-labelledby":e,children:o,disabled:t=!1,id:a,required:n=!1,sx:l})=>{const[i,c]=_a(o,{caption:Xl,label:Jl,validation:oi}),s=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===Jl)),d=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===oi?e:null)),g=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===Xl?e:null)),b=ot(a),v=d?`${b}-validationMessage`:void 0,u=g?`${b}-caption`:void 0;s||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const f=r.isValidElement(s)&&!s.props.visuallyHidden;return r.createElement(Yl.Provider,{value:{disabled:t,required:n,captionId:u,validationMessageId:v}},r.createElement("div",null,r.createElement(ht,ti({border:"none",margin:0,mb:d?2:void 0,padding:0},s&&{as:"fieldset",disabled:t},{sx:l}),s?r.createElement(ht,{as:"legend",mb:f?2:void 0,padding:0},i.label,i.caption,r.isValidElement(i.validation)&&i.validation.props.children&&r.createElement(Et,null,i.validation.props.children)):i.caption,r.createElement(ai,!s&&{"aria-labelledby":e,"aria-describedby":[v,u].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(c).filter((e=>r.isValidElement(e))))),d&&r.createElement(Ul,{"aria-hidden":Boolean(s),show:!0},i.validation)))};ni.displayName="CheckboxOrRadioGroup";var li=Object.assign(ni,{Caption:Xl,Label:Jl,Validation:oi});function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ii.apply(this,arguments)}const ci=v(null),si=({children:e,disabled:o,onChange:t,name:a,...n})=>{const[l,i]=Yo(null);return r.createElement(ci.Provider,{value:{disabled:o,name:a,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;o&&i(r)})(e),t(l.current,e))}}},r.createElement(li,ii({disabled:o},n),e))};si.displayName="RadioGroup";var di=Object.assign(si,{Caption:Xl,Label:Jl,Validation:oi});const gi=y(["appearance:none;border-color:",";border-style:solid;border-width:",";cursor:pointer;display:grid;height:var(--base-size-16,16px);margin:0;margin-top:0.125rem;place-content:center;position:relative;width:var(--base-size-16,16px);&:disabled{background-color:",";border-color:var(--control-borderColor-disabled,",");}"],Kr("colors.neutral.emphasis"),Kr("borderWidths.1"),Kr("colors.input.disabledBg"),Kr("colors.border.default"));function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bi.apply(this,arguments)}const vi=h.input.withConfig({displayName:"Radio__StyledRadio",componentId:"sc-1tx0ht9-0"})(["",";border-radius:var(--borderRadius-full,100vh);transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&:checked{border-color:",";border-width:var(--base-size-4,4px);&:disabled{cursor:not-allowed;border-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],gi,Kr("colors.accent.fg"),Kr("colors.fg.muted"),mt(),ft),ui=r.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:l,validationStatus:i,value:c,...s},d)=>{const g=b(ci),v=t||(null==g?void 0:g.name);return v||console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop"),r.createElement(vi,bi({type:"radio",value:c,name:v,ref:d,disabled:o,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===i?"true":"false",sx:n,onChange:e=>{(null==g?void 0:g.onChange)&&g.onChange(e),a&&a(e)}},s))}));ui.displayName="Radio";const fi=r.createContext({});function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},hi.apply(this,arguments)}const pi=h.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Kr("fontWeights.bold"),Kr("fontSizes.5"),ft),mi=d((({as:e="h2",...o},t)=>{const a=r.useRef(null);return rt(t,a),r.createElement(pi,hi({as:e},o,{ref:a}))}));mi.displayName="Heading";const yi=r.createContext({}),xi=(e,r,o)=>r?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:o?{color:"fg.muted",iconColor:"fg.muted",annotationColor:"fg.muted"}:"danger"===e?{color:"danger.fg",iconColor:"danger.fg",annotationColor:"fg.muted",hoverColor:"actionListItem.danger.hoverText"}:{color:"fg.default",iconColor:"fg.muted",annotationColor:"fg.muted",hoverColor:"fg.default"},Ci="20px",wi=r.createContext({});function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ki.apply(this,arguments)}const Bi=d((({as:e,children:o,sx:t=Bt,visuallyHidden:a=!1,...n},l)=>{var i;const c=r.useRef(null);rt(l,c);const{headingId:s,variant:d}=r.useContext(wi),{container:g}=r.useContext(fi);"ActionMenu"===g&&Lt(!1);const b={marginBottom:2,marginX:"full"===d?2:3};return r.createElement(Et,{isVisible:!a},r.createElement(mi,ki({as:e,ref:c,id:null!==(i=n.id)&&void 0!==i?i:s,sx:to(b,t)},n),o))}));function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ei.apply(this,arguments)}Bi.displayName="ActionList.Heading";const Ti=h.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(ft),Si=r.forwardRef((({variant:e="inset",selectionVariant:o,showDividers:t=!1,role:a,sx:n=Bt,...l},i)=>{var c;const s={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[d,g]=_a(l.children,{heading:Bi}),b=ot(),{listRole:v,listLabelledBy:u,selectionVariant:f,enableFocusZone:h}=r.useContext(fi),p=d.heading?null!==(c=d.heading.props.id)&&void 0!==c?c:b:u,m=so(i);return cl({disabled:!h,containerRef:m,bindKeys:Do.ArrowVertical|Do.HomeAndEnd|Do.PageUpDown}),r.createElement(wi.Provider,{value:{variant:e,selectionVariant:o||f,showDividers:t,role:a||v,headingId:b}},d.heading,r.createElement(Ti,Ei({sx:to(s,n),role:a||v,"aria-labelledby":p},l,{ref:m}),g))}));function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ii.apply(this,arguments)}Si.displayName="ActionList";const Mi=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Ni=({title:e,variant:o="subtle",auxiliaryText:t,selectionVariant:a,role:n,sx:l={},...i})=>{var c;const s=ot(),{role:d}=r.useContext(wi),[g,b]=_a(i.children,{groupHeading:Ai});let v;var u;g.groupHeading&&(v=null!==(u=g.groupHeading.props.id)&&void 0!==u?u:s);return e&&(v=s),r.createElement(ht,Ii({as:"li",role:d?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Mi.Provider,{value:{selectionVariant:a,groupHeadingId:v}},e&&!g.groupHeading?r.createElement(Ai,{variant:o,auxiliaryText:t,_internalBackwardCompatibleTitle:e}):null,!e&&g.groupHeading?r.cloneElement(g.groupHeading):null,r.createElement(ht,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":d?void 0:v,"aria-label":d?null!=e?e:null===(c=g.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:n||d&&"group"},g.groupHeading?b:i.children)))};Ni.displayName="Group";const Ai=({as:e,variant:o,_internalBackwardCompatibleTitle:t,auxiliaryText:a,children:n,sx:l=Bt,...i})=>{const{variant:c,role:s}=r.useContext(wi),{groupHeadingId:d}=r.useContext(Mi),g=void 0!==s&&"list"!==s&&void 0!==n&&void 0!==e;(void 0===s||"list"===s)&&void 0!==n&&void 0===e&&Lt(!1),g&&Lt(!1);const b={paddingY:"6px",paddingX:"full"===c?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===o&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return r.createElement(r.Fragment,null,s&&"list"!==s?r.createElement(ht,Ii({sx:b,role:"presentation","aria-hidden":"true"},i),r.createElement("span",{id:d},null!=t?t:n),a&&r.createElement("span",null,a)):r.createElement(r.Fragment,null,r.createElement(mi,Ii({as:e||"h3",id:d,sx:to(b,l)},i),null!=t?t:n),a&&r.createElement("span",null,a)))};function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Oi.apply(this,arguments)}const Li=h.div.withConfig({displayName:"Truncate__StyledTruncate",componentId:"sc-23o1d2-0"})(["display:",";overflow:hidden;text-overflow:ellipsis;vertical-align:",";white-space:nowrap;"," "," ",";"],(e=>e.inline?"inline-block":"inherit"),(e=>e.inline?"top":"initial"),ze,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),ft),ji=r.forwardRef((function({as:e,expandable:o=!1,inline:t=!1,maxWidth:a=125,...n},l){return r.createElement(Li,Oi({ref:l,as:e,expandable:o,inline:t,maxWidth:a},n))}));const Ri=({variant:e="inline",sx:o={},...t})=>{const a={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:0,minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &':{color:"inherit"},'li[data-variant="danger"]:hover &, li[data-variant="danger"]:active &':{color:"inherit"}},{blockDescriptionId:n,inlineDescriptionId:l}=r.useContext(yi);return"block"===e?r.createElement(ht,{as:"span",sx:to(a,o),id:n},t.children):r.createElement(ji,{id:l,sx:to(a,o),title:t.children,inline:!0,maxWidth:"100%"},t.children)};function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Di.apply(this,arguments)}const zi=({sx:e={},...o})=>r.createElement(ht,Di({as:"span",sx:to({height:Ci,minWidth:Kr("space.3"),maxWidth:Ci,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},o));zi.displayName="LeadingVisualContainer";const Pi=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(yi);return r.createElement(zi,Di({sx:to({color:xi(t,a,n).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:xi(t,a,n).hoverColor}},e)},o),o.children)};Pi.displayName="LeadingVisual";const _i=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(yi);return r.createElement(ht,Di({as:"span",sx:to({height:"20px",flexShrink:0,color:xi(t,a,n).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:xi(t,a,n).hoverColor}},e)},o),o.children)};_i.displayName="TrailingVisual";const Hi=({selected:e})=>{const{selectionVariant:o,role:t}=r.useContext(wi),{selectionVariant:a}=r.useContext(Mi);let n;if(n=void 0!==a?a:o,!n){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===n||"menu"===t)return r.createElement(zi,{"data-component":"ActionList.Selection"},e&&r.createElement(Vn,null));return r.createElement(zi,{"data-component":"ActionList.Selection"},r.createElement(ht,{sx:{borderColor:e?"accent.fg":"neutral.emphasis",borderStyle:"solid",borderWidth:"1",borderRadius:"1",cursor:"pointer",display:"grid",height:"var(--base-size-16, 16px)",margin:"0",placeContent:"center",width:"var(--base-size-16, 16px)",backgroundColor:e?"accent.fg":"canvas.default",transition:e?"background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1)":"background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms","::before":{width:"var(--base-size-16, 16px)",height:"var(--base-size-16, 16px)",visibility:e?"visible":"hidden",content:'""',backgroundColor:"fg.onEmphasis",transition:e?"visibility 0s linear 0s":"visibility 0s linear 230ms",clipPath:"inset(var(--base-size-16, 16px) 0 0 0)",maskImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')",maskSize:"75%",maskRepeat:"no-repeat",maskPosition:"center",animation:e?"checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms":"checkmarkOut 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards","@keyframes checkmarkIn":{from:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},"@keyframes checkmarkOut":{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"}}}},"data-component":"ActionList.Checkbox"}))};Hi.displayName="Selection";const Fi=e=>{const{if:o,...t}=e;return o?r.createElement(ht,t,e.children):r.createElement(r.Fragment,null,e.children)};function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vi.apply(this,arguments)}const Wi=h.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(ft),$i=({labelId:e,text:o,visualComponent:t})=>r.createElement(wa,{text:o},r.createElement(ht,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer",display:"flex"},"aria-labelledby":e},r.createElement(t,null,r.createElement(Hn,null))));$i.displayName="InactiveIndicator";const Zi=r.forwardRef((({variant:e="default",disabled:o=!1,inactiveText:t,selected:a,active:n=!1,onSelect:l,sx:i=Bt,id:c,role:s,_PrivateItemWrapper:d,...g},b)=>{const[v,u]=_a(g.children,{leadingVisual:Pi,trailingVisual:_i,blockDescription:[Ri,e=>"block"===e.variant],inlineDescription:[Ri,e=>"block"!==e.variant]}),{variant:f,role:h,showDividers:p,selectionVariant:m}=r.useContext(wi),{selectionVariant:y}=r.useContext(Mi),{container:x,afterSelect:C,selectionAttribute:w}=r.useContext(fi),k=Boolean(t),B=k&&void 0===x,E=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[l]),T=y||m;let S;"ActionMenu"===x?S="single"===T?"menuitemradio":"multiple"===T?"menuitemcheckbox":"menuitem":"SelectPanel"===x&&"listbox"===h&&void 0!==T&&(S="option");const I=s||S;let M;"menuitemradio"===I||"menuitemcheckbox"===I?M="aria-checked":"option"===I&&(M="aria-selected");const N=w||M,{theme:A}=it(),O={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Ci,minHeight:5,marginX:"inset"===f?2:0,borderRadius:2,transition:"background 33.333ms linear",color:xi(e,o,k).color,cursor:"pointer","&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"}},appearance:"none",background:"unset",border:"unset",width:"inset"===f?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (hover: hover) and (pointer: fine)":{":hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:xi(e,o,k).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==A?void 0:A.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==A?void 0:A.colors.accent.emphasis}`},":active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:xi(e,o,k).hoverColor}},"@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible":{outline:"solid 1px transparent !important"}},'[data-component="ActionList.Item--DividerContainer"]':{position:"relative"},'[data-component="ActionList.Item--DividerContainer"]::before':{content:'" "',display:"block",position:"absolute",width:"100%",top:"-7px",border:"0 solid",borderTopWidth:p?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==A?void 0:A.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]), &:focus:not([aria-disabled]):not([data-inactive]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...n?{fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"accent.fg",borderRadius:2}}:{}},L=r.useCallback((e=>{o||k||E(e,C)}),[E,o,k,C]),j=r.useCallback((e=>{o||k||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),E(e,C))}),[E,o,k,C]),R=ot(c),D=`${R}--label`,z=`${R}--inline-description`,P=`${R}--block-description`,_=k&&!B?`${R}--warning-message`:void 0,H=d||r.Fragment,F=N&&I&&["menuitemradio","menuitemcheckbox","option"].includes(I),V={onClick:L,onKeyPress:j,"aria-disabled":!!o||void 0,"data-inactive":!!k||void 0,tabIndex:o||B?void 0:0,"aria-labelledby":`${D} ${v.inlineDescription?z:""}`,"aria-describedby":v.blockDescription?[P,_].join(" "):_,...F&&{[N]:a},role:I,id:R},W=d?{role:I?"none":void 0}:V,$=d?V:{};return r.createElement(yi.Provider,{value:{variant:e,disabled:o,inactive:Boolean(t),inlineDescriptionId:z,blockDescriptionId:P}},r.createElement(Wi,Vi({ref:b,sx:to(O,i),"data-variant":"danger"===e?e:void 0},W,g),r.createElement(H,$,r.createElement(Hi,{selected:a}),B&&v.leadingVisual?r.createElement($i,{labelId:D,text:t,visualComponent:Pi}):v.leadingVisual,r.createElement(ht,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Fi,{if:Boolean(v.trailingVisual)||B&&!v.leadingVisual,sx:{display:"flex",flexGrow:1}},r.createElement(Fi,{if:!!v.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(ht,{as:"span",id:D,sx:{flexGrow:v.inlineDescription?0:1,fontWeight:v.inlineDescription||v.blockDescription||n?"bold":"normal",marginBlockEnd:v.blockDescription?"4px":void 0}},u),v.inlineDescription),B&&!v.leadingVisual?r.createElement($i,{labelId:D,text:t,visualComponent:_i}):v.trailingVisual),k&&x?r.createElement(ht,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:_},t):null,v.blockDescription))))}));function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ki.apply(this,arguments)}Zi.displayName="ActionList.Item";const Gi=q({hoverColor:{property:"color",scale:"colors"}}),Ui=h.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-14289xe-0"})(["color:",";text-decoration:none;text-decoration:",";[data-a11y-link-underlines='true'] &[data-inline='true']{text-decoration:underline;}&:hover{text-decoration:",";",";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}",";"],(e=>e.muted?Kr("colors.fg.muted")(e):Kr("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Gi:e.muted?`color: ${Kr("colors.accent.fg")(e)}`:""),ft),qi=d((({as:e="a",...o},t)=>{const a=r.useRef(null);return rt(t,a),r.createElement(Ui,Ki({as:e,"data-inline":o.inline},o,{ref:a}))}));function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yi.apply(this,arguments)}qi.displayName="Link";const Xi=r.forwardRef((({sx:e={},active:o,inactiveText:t,as:a,...n},l)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return r.createElement(Zi,{active:o,sx:{paddingY:0,paddingX:0},inactiveText:t,"data-inactive":!!t||void 0,_PrivateItemWrapper:({children:o,onClick:c,...s})=>t?r.createElement(ht,Yi({sx:to(i,e)},s),o):r.createElement(qi,Yi({as:a,sx:to(i,e)},s,n,{onClick:e=>{c&&c(e),n.onClick&&n.onClick(e)},ref:l}),o)},n.children)})),Ji=({sx:e={}})=>r.createElement(ht,{as:"li","aria-hidden":"true",sx:to({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Kr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});Ji.displayName="Divider";const Qi=Object.assign(Si,{Group:Ni,Item:Zi,LinkItem:Xi,Divider:Ji,Description:Ri,LeadingVisual:Pi,TrailingVisual:_i,Heading:Bi,GroupHeading:Ai});function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ec.apply(this,arguments)}const rc={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},oc={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const tc=h.div.withConfig({displayName:"Overlay__StyledOverlay",componentId:"sc-51280t-0"})(["background-color:",";box-shadow:",";position:absolute;min-width:192px;max-width:",";height:",";max-height:",";width:",";border-radius:12px;overflow:",";animation:overlay-appear ","ms ",";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}@media (forced-colors:active){outline:solid 1px transparent;}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>e.maxWidth&&oc[e.maxWidth]),(e=>rc[e.height||"auto"]),(e=>e.maxHeight&&rc[e.maxHeight]),(e=>oc[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Kr("animation.easeOutCubic"),ft),ac=r.forwardRef((({onClickOutside:e,role:o="none",initialFocusRef:t,returnFocusRef:n,ignoreClickRefs:i,onEscape:c,visibility:s="visible",height:d="auto",width:g="auto",top:b,left:v,right:u,bottom:f,anchorSide:h,portalContainerName:p,preventFocusOnOpen:m,position:y,...x},C)=>{const w=l(null);rt(C,w);const{theme:k}=it(),B=parseInt(Kr("space.2")(k).replace("px","")),E=Kr("animation.easeOutCubic")(k);qo({overlayRef:w,returnFocusRef:n,onEscape:c,ignoreClickRefs:i,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:m}),a((()=>{var e;"initial"===d&&null!==(e=w.current)&&void 0!==e&&e.clientHeight&&(w.current.style.height=`${w.current.clientHeight}px`)}),[d]),Ko((()=>{var e;const{x:r,y:o}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(h);(r||o)&&null!==(e=w.current)&&void 0!==e&&e.animate&&"hidden"!==s&&w.current.animate({transform:[`translate(${B*r}px, ${B*o}px)`,"translate(0, 0)"]},{duration:200,easing:E})}),[h,B,E,s]);const T=void 0===v&&void 0===u?{left:0}:{left:v};return r.createElement(vl,{containerName:p},r.createElement(tc,ec({height:d,width:g,role:o},x,{ref:w,style:{...T,right:u,top:b,bottom:f,position:y,"--styled-overlay-visibility":s}})))}));function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},nc.apply(this,arguments)}const lc=({renderAnchor:e,anchorRef:o,anchorId:n,children:l,open:i,onOpen:c,onClose:s,height:d,width:g,overlayProps:b,focusTrapSettings:v,focusZoneSettings:u,side:f="outside-bottom",align:h="start",alignmentOffset:p,anchorOffset:m})=>{const y=so(o),[x,C]=Yo(),w=ot(n),k=t((()=>null==s?void 0:s("click-outside")),[s]),B=t((()=>null==s?void 0:s("escape")),[s]),E=t((e=>{e.defaultPrevented||!i&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press",e),e.preventDefault())}),[i,c]),T=t((e=>{e.defaultPrevented||0!==e.button||(i?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[i,c,s]),{position:S}=Uo({anchorElementRef:y,floatingElementRef:x,side:f,align:h,alignmentOffset:p,anchorOffset:m},[x.current]);return a((()=>{!i&&x.current&&C(null)}),[i,x,C]),cl({containerRef:x,disabled:!i||!S,...u}),Rn({containerRef:x,disabled:!i||!S,...v}),r.createElement(r.Fragment,null,e&&e({ref:y,id:w,"aria-haspopup":"true","aria-expanded":i?"true":void 0,tabIndex:0,onClick:T,onKeyDown:E}),i?r.createElement(ac,nc({returnFocusRef:y,onClickOutside:k,ignoreClickRefs:[y],onEscape:B,ref:C,role:"none",visibility:S?"visible":"hidden",height:d,width:g,top:(null==S?void 0:S.top)||0,left:(null==S?void 0:S.left)||0,anchorSide:null==S?void 0:S.anchorSide},b),l):null)};function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ic.apply(this,arguments)}lc.displayName="AnchoredOverlay";const cc=r.createContext({renderAnchor:null,open:!1}),sc=({anchorRef:e,open:o,onOpenChange:t,children:a})=>{const[n,l]=Xo(o,t,!1),i=r.useCallback((()=>l(!0)),[l]),c=r.useCallback((()=>l(!1)),[l]),s=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===gc||e.type===dc))),d=r.isValidElement(s)?s.props.id:void 0,g=so(e),b=ot(d);let v=null;const u=r.Children.map(a,(e=>{if(e.type===wa){const o=e.props.children;return o.type===gc&&(v=t=>{const a=r.cloneElement(o,{...t});return r.cloneElement(e,{children:a,ref:g})}),null}if(e.type===dc){const o=e.props.children;return void 0!==o&&o.type===wa?null!==o.props.children&&(v=t=>{const a=o.props.children,n=r.cloneElement(a,{...t}),l=r.cloneElement(o,{children:n});return r.cloneElement(e,{children:l,ref:g})}):v=o=>r.cloneElement(e,o),null}return e.type===gc?(v=o=>r.cloneElement(e,o),null):e}));return r.createElement(cc.Provider,{value:{anchorRef:g,renderAnchor:v,anchorId:b,open:n,onOpen:i,onClose:c}},u)};sc.displayName="Menu";const dc=r.forwardRef((({children:e,...o},t)=>r.cloneElement(e,{...o,ref:t}))),gc=r.forwardRef((({...e},o)=>r.createElement(dc,{ref:o},r.createElement(At,ic({type:"button",trailingAction:ll},e))))),bc=({children:e,align:o="start",side:t="outside-bottom","aria-labelledby":n,...l})=>{const{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:b,onClose:v}=r.useContext(cc),u=r.useRef(null);Jo(g,v,u,c);const[f,h]=i(null);return a((()=>{if(c.current){const e=c.current.getAttribute("aria-labelledby");e&&h(e)}}),[c]),r.createElement(lc,{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:b,onClose:v,align:o,side:t,overlayProps:l,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:u},r.createElement(fi.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:n||f||d,selectionAttribute:"aria-checked",afterSelect:v}},e)))};bc.displayName="Overlay",sc.displayName="ActionMenu";const vc=Object.assign(sc,{Button:gc,Anchor:dc,Overlay:bc,Divider:Ji}),uc=v(null);var fc,hc={exports:{}},pc={},mc=Symbol.for("react.element"),yc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),Cc=Symbol.for("react.strict_mode"),wc=Symbol.for("react.profiler"),kc=Symbol.for("react.provider"),Bc=Symbol.for("react.context"),Ec=Symbol.for("react.server_context"),Tc=Symbol.for("react.forward_ref"),Sc=Symbol.for("react.suspense"),Ic=Symbol.for("react.suspense_list"),Mc=Symbol.for("react.memo"),Nc=Symbol.for("react.lazy"),Ac=Symbol.for("react.offscreen");function Oc(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case mc:switch(e=e.type){case xc:case wc:case Cc:case Sc:case Ic:return e;default:switch(e=e&&e.$$typeof){case Ec:case Bc:case Tc:case Nc:case Mc:case kc:return e;default:return r}}case yc:return r}}}fc=Symbol.for("react.module.reference"),pc.ContextConsumer=Bc,pc.ContextProvider=kc,pc.Element=mc,pc.ForwardRef=Tc,pc.Fragment=xc,pc.Lazy=Nc,pc.Memo=Mc,pc.Portal=yc,pc.Profiler=wc,pc.StrictMode=Cc,pc.Suspense=Sc,pc.SuspenseList=Ic,pc.isAsyncMode=function(){return!1},pc.isConcurrentMode=function(){return!1},pc.isContextConsumer=function(e){return Oc(e)===Bc},pc.isContextProvider=function(e){return Oc(e)===kc},pc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===mc},pc.isForwardRef=function(e){return Oc(e)===Tc},pc.isFragment=function(e){return Oc(e)===xc},pc.isLazy=function(e){return Oc(e)===Nc},pc.isMemo=function(e){return Oc(e)===Mc},pc.isPortal=function(e){return Oc(e)===yc},pc.isProfiler=function(e){return Oc(e)===wc},pc.isStrictMode=function(e){return Oc(e)===Cc},pc.isSuspense=function(e){return Oc(e)===Sc},pc.isSuspenseList=function(e){return Oc(e)===Ic},pc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===xc||e===wc||e===Cc||e===Sc||e===Ic||e===Ac||"object"==typeof e&&null!==e&&(e.$$typeof===Nc||e.$$typeof===Mc||e.$$typeof===kc||e.$$typeof===Bc||e.$$typeof===Tc||e.$$typeof===fc||void 0!==e.getModuleId)},pc.typeOf=Oc,hc.exports=pc;var Lc=hc.exports;function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jc.apply(this,arguments)}const Rc={small:"16px",medium:"32px",large:"64px"};function Dc({size:e="medium",...o}){const t=Rc[e];return r.createElement("svg",jc({height:t,width:t,viewBox:"0 0 16 16",fill:"none"},o),r.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),r.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}Dc.displayName="Spinner";const zc=h(Dc).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],ft);zc.displayName="Spinner";const Pc=({children:e,hasLoadingIndicator:o,showLoadingIndicator:t,visualPosition:a})=>!e&&!o||"leading"===a&&!e&&!t?null:o?r.createElement("span",{className:"TextInput-icon"},r.createElement(ht,{display:"flex",position:"relative"},e&&r.createElement(ht,{sx:{visibility:t?"hidden":"visible"}},e),r.createElement(zc,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:t?"visible":"hidden",..."leading"===a?{left:0}:{right:0}}:{visibility:t?"visible":"hidden"},size:e?void 0:"small"}))):r.createElement("span",{className:"TextInput-icon"},e);Pc.displayName="TextInputInnerVisualSlot";const _c=Me({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Hc=Me({prop:"size",variants:{small:{"--inner-action-size":"20px",minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},medium:{"--inner-action-size":"24px"},large:{"--inner-action-size":"28px",px:2,py:"10px",height:"40px"}}}),Fc="12px",Vc=Fc,Wc=(e,r)=>e?r&&y(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Kr("colors.accent.fg"),Kr("colors.accent.fg")):y(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Kr("colors.accent.fg"),Kr("colors.accent.fg")),$c=h.span.withConfig({displayName:"TextInputWrapper__TextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:20px;color:",";vertical-align:middle;background-color:",";border:1px solid var(--control-borderColor-rest,",");border-radius:",";outline:none;box-shadow:",";display:inline-flex;align-items:stretch;min-height:32px;overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("colors.canvas.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("shadows.primer.shadow.inset"),Kr("colors.fg.muted"),(e=>Wc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Fc,(e=>e.contrast&&y(["background-color:",";"],Kr("colors.canvas.inset"))),(e=>e.disabled&&y(["color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}"],Kr("colors.primer.fg.disabled"),Kr("colors.input.disabledBg"),Kr("colors.border.default"))),(e=>e.monospace&&y(["font-family:",";"],Kr("fonts.mono"))),(e=>"error"===e.validationStatus&&y(["border-color:",";",""],Kr("colors.danger.emphasis"),Wc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&y(["border-color:",";"],Kr("colors.success.emphasis"))),(e=>e.block&&y(["width:100%;display:flex;align-self:stretch;"])),Kr("breakpoints.1"),Kr("fontSizes.1"),Le,Re,ze,_c,Hc,ft),Zc=h($c).withConfig({displayName:"TextInputWrapper",componentId:"sc-1mqhpbi-1"})(["background-repeat:no-repeat;background-position:right 8px center;& > :not(:last-child){margin-right:",";}.TextInput-icon,.TextInput-action{align-self:center;color:",";flex-shrink:0;}"," ",";"],Kr("space.2"),Kr("colors.fg.muted"),(e=>y(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?Vc:0,e.hasTrailingVisual&&!e.hasTrailingAction?Vc:0,e.hasLeadingVisual?0:Vc,e.hasTrailingVisual||e.hasTrailingAction?0:Vc)),ft);function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Kc.apply(this,arguments)}const Gc={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",'&[data-component="IconButton"]':{width:"var(--inner-action-size)",height:"var(--inner-action-size)"},"@media (pointer: coarse)":{":after":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}},Uc=({"aria-label":e,children:o,tooltipDirection:t})=>r.createElement(r.Fragment,null,e?r.createElement(wa,{text:e,direction:t,sx:{display:"inline-block"}},o):o),qc=d((({"aria-label":e,tooltipDirection:o,children:t,icon:a,sx:n,variant:l="invisible",...i},c)=>{const s="invisible"===l?to(Gc,n||{}):n||{};return(a&&!e||!t&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),r.createElement(ht,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},a&&!t?r.createElement(wa,{direction:null!=o?o:"s",text:null!=e?e:"",type:"label"},r.createElement(Na,Kc({variant:l,type:"button",icon:a,size:"small",sx:s},i,{ref:c}))):r.createElement(Uc,{"aria-label":e},r.createElement(At,Kc({variant:l,type:"button",sx:s},i,{ref:c}),t)))})),Yc=h.input.withConfig({displayName:"UnstyledTextInput",componentId:"sc-14ypya-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}",";"],ft);function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Xc.apply(this,arguments)}const Jc=r.forwardRef((({icon:e,leadingVisual:o,trailingVisual:a,trailingAction:n,block:l,className:c,contrast:s,disabled:d,loading:g,loaderPosition:b="auto",monospace:v,validationStatus:u,sx:f,size:h,onFocus:p,onBlur:m,width:y,minWidth:x,maxWidth:C,variant:w,type:k="text",required:B,...E},T)=>{const[S,I]=i(!1),M=so(T),N=Ba(c,"TextInput-wrapper"),A=g&&("leading"===b||Boolean(o&&"trailing"!==b)),O=g&&("trailing"===b||Boolean("auto"===b&&!o)),L=t((e=>{I(!0),p&&p(e)}),[p]),j=t((e=>{I(!1),m&&m(e)}),[m]);return r.createElement(Zc,{block:l,className:N,validationStatus:u,contrast:s,disabled:d,monospace:v,sx:f,size:h,width:y,minWidth:x,maxWidth:C,variant:w,hasLeadingVisual:Boolean(o||A),hasTrailingVisual:Boolean(a||O),hasTrailingAction:Boolean(n),isInputFocused:S,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},"aria-busy":Boolean(g)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pc,{visualPosition:"leading",showLoadingIndicator:A,hasLoadingIndicator:"boolean"==typeof g},"string"!=typeof o&&Lc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(Yc,Xc({ref:M,disabled:d,onFocus:L,onBlur:j,type:k,"aria-required":B,"aria-invalid":"error"===u?"true":void 0},E,{"data-component":"input"})),r.createElement(Pc,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof g},"string"!=typeof a&&Lc.isValidElementType(a)?r.createElement(a,null):a),n)}));Jc.displayName="TextInput";var Qc=Object.assign(Jc,{Action:qc});function es(){return es=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},es.apply(this,arguments)}const rs=r.forwardRef((({as:e=Qc,onFocus:o,onBlur:n,onChange:l,onKeyDown:c,onKeyUp:s,onKeyPress:d,value:g,...v},u)=>{const f=b(uc);if(null===f)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:h,autocompleteSuggestion:p="",id:m,inputRef:y,inputValue:x="",isMenuDirectlyActivated:C,setInputValue:w,setShowMenu:k,showMenu:B}=f;rt(u,y);const[E,T]=i(!0),{safeSetTimeout:S}=On(),I=t((e=>{o&&o(e),k(!0)}),[o,k]),M=t((e=>{n&&n(e),S((()=>{document.activeElement!==y.current&&k(!1)}),0)}),[n,k,y,S]),N=t((e=>{l&&l(e),w(e.currentTarget.value),B||k(!0)}),[l,w,k,B]),A=t((e=>{var r;c&&c(e),"Backspace"===e.key&&T(!1),"Escape"===e.key&&null!==(r=y.current)&&void 0!==r&&r.value&&(w(""),y.current.value="")}),[y,w,T,c]),O=t((e=>{s&&s(e),"Backspace"===e.key&&T(!0)}),[T,s]),L=t((e=>{if(d&&d(e),B&&"Enter"===e.key&&h.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);h.current.dispatchEvent(r)}}),[h,B,d]);return a((()=>{y.current&&(p||(y.current.value=x),E&&p&&(x||C)&&(y.current.value=p,0===p.toLowerCase().indexOf(x.toLowerCase())&&y.current.setSelectionRange(x.length,p.length)))}),[p,x,y,C]),a((()=>{w(void 0!==g?g.toString():"")}),[g,w]),r.createElement(e,es({onFocus:I,onBlur:M,onChange:N,onKeyDown:A,onKeyPress:L,onKeyUp:O,ref:y,"aria-controls":`${m}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-owns":`${m}-listbox`,autoComplete:"off",id:m},v))}));function os(){return os=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},os.apply(this,arguments)}rs.displayName="AutocompleteInput";const ts={startMargin:0,endMargin:8};function as(e){const t=b(uc);if(null===t)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:c,inputRef:s,inputValue:d="",scrollContainerRef:g,setAutocompleteSuggestion:v,setShowMenu:u,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:p,showMenu:m}=t,{items:y,selectedItemIds:x,sortOnCloseFn:C,emptyStateText:w="No selectable options",addNewItem:k,loading:B,selectionVariant:E="single",filterFn:T,"aria-labelledby":S,onOpenChange:I,onSelectedChange:M,customScrollContainerRef:N}=e,A=l(null),O=l([]),[L,j]=i(),[R,D]=i(y.map((({id:e})=>e))),z=ot(c),P=o((()=>y.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===E?x.includes(e.id):void 0,onAction:e=>{const r=x.filter((r=>r!==e.id)),o=x.includes(e.id)?r:[...r,e.id];var t,a;((M||(t=f,function(e){const{text:r=""}=Array.isArray(e)?e.slice(-1)[0]:e;t(r)}))(o.map((e=>function(e,r){return r.find((r=>r.id===e))}(e,y)))),"multiple"===E)?(f(""),v("")):(u(!1),null===(a=s.current)||void 0===a||a.setSelectionRange(s.current.value.length,s.current.value.length))}})))),[L,y,x,s,M,E,v,f,u]),_=o((()=>R.reduce(((e,r,o)=>(e[r]=o,e)),{})),[R]),H=o((()=>{return P.filter(T||(e=d,function(r,o){var t;return Boolean(null===(t=r.text)||void 0===t?void 0:t.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>_[e.id]-_[r.id]));var e}),[P,_,T,d]),F=o((()=>[...H,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===E?x.includes(k.id):void 0,leadingVisual:()=>r.createElement(ol,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===E&&(f(""),v(""))}}]:[]]),[H,k,v,E,f,z,L,x]);if(r.useEffect((()=>{O.current=F})),cl({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:s,onActiveDescendantChanged:(e,r,o)=>{if(n.current=e||null,e){const r=O.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));j(r),h(o)}e&&N&&N.current&&o?Zo(e,N.current,ts):e&&g.current&&o&&Zo(e,g.current,ts)}},[B]),a((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(d)&&!x.includes(L.id)?v(L.text):v("")}),[L,d,x,v]),a((()=>{const e=[...R].sort(C||(r=e=>((e,r)=>r.includes(e))(e,x),(e,o)=>r(e)===r(o)?0:r(e)?-1:1));var r;const o=e.length===R.length&&e.every(((e,r)=>e===R[r]));!1!==m||o||D(e),I&&I(Boolean(m))}),[m,I,x,C,R]),a((()=>{x.length&&p(x.length)}),[x,p]),"single"===E&&x.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return r.createElement(Et,{isVisible:m},B?r.createElement(ht,{p:3,display:"flex",justifyContent:"center"},r.createElement(zc,null)):r.createElement("div",{ref:A},F.length?r.createElement(Qi,{selectionVariant:E,role:"listbox",id:`${c}-listbox`,"aria-labelledby":S},F.map((e=>{const{id:o,onAction:t,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(Qi.Item,os({key:o,onSelect:()=>t(e)},c,{id:o,"data-id":o}),l&&r.createElement(Qi.LeadingVisual,null,r.createElement(l,null)),null!=a?a:n,i&&r.createElement(Qi.TrailingVisual,null,r.createElement(i,null)))}))):!1!==w&&null!==w?r.createElement(ht,{p:3},w):null))}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ns.apply(this,arguments)}function ls({menuAnchorRef:e,overlayProps:o,children:a,...n}){const l=b(uc);if(null===l)throw new Error("AutocompleteContext returned null values");const i={...o,...n},{inputRef:c,scrollContainerRef:s,selectedItemLength:d,setShowMenu:g,showMenu:v=!1}=l,{floatingElementRef:u,position:f}=Uo({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,d]);rt(s,u);const h=t((()=>{g(!1)}),[g]);return"undefined"==typeof window?null:v?r.createElement(ac,ns({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:u,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:{overflow:"auto"}},i),a):r.createElement(Et,{"aria-hidden":"true"},a)}as.displayName="AutocompleteMenu",as.displayName="AutocompleteMenu",ls.displayName="AutocompleteOverlay";const is={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},cs=(e,r)=>{const{type:o,payload:t}=r;switch(o){case"inputValue":return{...e,inputValue:t};case"showMenu":return{...e,showMenu:t};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:t};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:t};case"selectedItemLength":return{...e,selectedItemLength:t};default:return e}},ss=({children:e,id:o})=>{const a=l(null),n=l(null),i=l(null),[c,s]=u(cs,is),{inputValue:d,showMenu:g,autocompleteSuggestion:b,isMenuDirectlyActivated:v,selectedItemLength:f}=c,h=t((e=>{s({type:"inputValue",payload:e})}),[]),p=t((e=>{s({type:"showMenu",payload:e})}),[]),m=t((e=>{s({type:"autocompleteSuggestion",payload:e})}),[]),y=t((e=>{s({type:"isMenuDirectlyActivated",payload:e})}),[]),x=t((e=>{s({type:"selectedItemLength",payload:e})}),[]),C=ot(o);return r.createElement(uc.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:b,id:C,inputRef:i,inputValue:d,isMenuDirectlyActivated:v,scrollContainerRef:n,selectedItemLength:f,setAutocompleteSuggestion:m,setInputValue:h,setIsMenuDirectlyActivated:y,setShowMenu:p,setSelectedItemLength:x,showMenu:g}},e)};ss.displayName="Autocomplete";var ds=Object.assign(ss,{Context:uc,Input:rs,Menu:as,Overlay:ls});const gs={xsmall:{width:"320px"},small:{width:j.breakpoints[0]},medium:{width:j.breakpoints[1]},large:{width:j.breakpoints[2]},xlarge:{width:j.breakpoints[3]},xxlarge:{width:"1400px"}};function bs(e){return`@media screen and (min-width: ${e})`}const vs=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(gs.medium.width),us=bs(gs.medium.width),fs=bs(gs.xxlarge.width);function hs(e,r,o){if(za(e)){const t=e,a="narrow"in t?{[vs]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[us]:{[r]:o(t.regular)}}:{},l="wide"in t?{[fs]:{[r]:o(t.wide)}}:{};return function(e){if("narrow"in e&&"regular"in e&&"wide"in e){const r=Object.values(e);return r.every((e=>e===r[0]))}return!1}(t)?{[r]:o(t.narrow)}:function(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}(t)?{...a,...n}:{...a,...n,...l}}return{[r]:o(e)}}function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ps.apply(this,arguments)}const ms=20,ys=h.img.attrs((e=>({height:e.size,width:e.size}))).withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-2lv0r8-0"})(["display:inline-block;overflow:hidden;line-height:",";vertical-align:middle;border-radius:",";box-shadow:0 0 0 1px ",";height:var(--avatar-size);width:var(--avatar-size);",""],Kr("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Kr("colors.avatar.border"),ft),xs=r.forwardRef((function({alt:e="",size:o=20,square:t=!1,sx:a=Bt,...n},l){const i=za(o)?to(hs(o,"--avatar-size",(e=>`${e||ms}px`)),a):to({"--avatar-size":`${o}px`},a);return r.createElement(ys,ps({ref:l,alt:e,size:o,square:t,sx:i},n))}));function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cs.apply(this,arguments)}const ws=h(xs).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Kr("shadows.avatar.childShadow")),ks=({children:e,...o})=>{const t=r.Children.map(e,((e,o)=>r.isValidElement(e)?0===o?r.cloneElement(e,{size:40}):r.createElement(ws,Cs({bg:"canvas.default"},e.props,{size:20})):e));return r.createElement(ht,Cs({position:"relative",display:"inline-flex"},o),t)};ks.displayName="AvatarPair",ks.displayName="AvatarPair";const Bs=h.span.withConfig({displayName:"AvatarStack__AvatarStackWrapper",componentId:"sc-4pdg6v-0"})(["--avatar-border-width:1px;--avatar-two-margin:calc(var(--avatar-stack-size) * -0.55);--avatar-three-margin:calc(var(--avatar-stack-size) * -0.85);display:flex;position:relative;height:var(--avatar-stack-size);min-width:var(--avatar-stack-size);.pc-AvatarStackBody{display:flex;position:absolute;}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);box-shadow:0 0 0 var(--avatar-border-width) ",";position:relative;overflow:hidden;&:first-child{margin-left:0;z-index:10;}&:nth-child(n + 2){margin-left:var(--avatar-two-margin);z-index:9;}&:nth-child(n + 3){margin-left:var(--avatar-three-margin);opacity:","%;z-index:8;}&:nth-child(n + 4){opacity:","%;z-index:7;}&:nth-child(n + 5){opacity:","%;z-index:6;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}&.pc-AvatarStack--two{min-width:calc( var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width) );}&.pc-AvatarStack--three{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) ) );}&.pc-AvatarStack--three-plus{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) * 2 ) );}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;&:first-child{margin-right:0;}&:nth-child(n + 2){margin-right:var(--avatar-two-margin);}&:nth-child(n + 3){margin-right:var(--avatar-three-margin);}}.pc-AvatarStackBody{flex-direction:row-reverse;&:not(.pc-AvatarStack--disableExpand):hover{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover{width:auto;.pc-AvatarItem{margin-left:",";opacity:100%;visibility:visible;"," transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;&:first-child{margin-left:0;}}}.pc-AvatarStack--disableExpand{position:relative;}",";"],(e=>1===e.count?Kr("colors.avatar.border"):Kr("colors.canvas.default")),55,40,25,Kr("space.1"),Kr("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Kr("colors.canvas.default")};`),ft),Es=({children:e,alignRight:o,disableExpand:t,size:a,sx:n=Bt})=>{const l=r.Children.count(e),i=Ba({"pc-AvatarStack--two":2===l,"pc-AvatarStack--three":3===l,"pc-AvatarStack--three-plus":l>3,"pc-AvatarStack--right":o}),c=Ba("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":t}),s=to(a?za(a)?hs(a,"--avatar-stack-size",(e=>`${e||ms}px`)):{"--avatar-stack-size":`${a}px`}:hs((()=>{const o={narrow:[],regular:[],wide:[]};return r.Children.toArray(e).reduce(((e,t)=>{if(!r.isValidElement(t))return e;for(const r of Object.keys(o))za(t.props.size)?o[r].push(t.props.size[r]||ms):o[r].push(t.props.size||ms),e[r]=Math.min(...o[r]);return e}),{narrow:ms,regular:ms,wide:ms})})(),"--avatar-stack-size",(e=>`${e}px`)),n);return r.createElement(Bs,{count:l,className:i,sx:s},r.createElement(ht,{className:c}," ",(e=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Ba(e.props.className,"pc-AvatarItem")}):e)))(e)))};Es.displayName="AvatarStack";const Ts=h.a.withConfig({displayName:"BranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:",";font-family:",";color:",";background-color:",";border-radius:",";text-decoration:none;",";"],Kr("fontSizes.0"),Kr("fonts.mono"),Kr("colors.accent.fg"),Kr("colors.accent.subtle"),Kr("radii.2"),ft),Ss=h.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{font-size:",";content:'';display:inline-block;height:0.8em;margin:0 0.5em;border-right:0.1em solid;border-color:",";transform:rotate(15deg) translateY(0.0625em);}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Kr("fontSizes.1"),Kr("colors.fg.muted")),Is=h.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],ft);function Ms({className:e,children:o,sx:t}){const a=r.Children.map(o,(e=>r.createElement(Ss,null,e)));return r.createElement(Is,{className:e,"aria-label":"Breadcrumbs",sx:t},r.createElement(ht,{as:"ol",my:0,pl:0},a))}Ms.displayName="Breadcrumbs";const Ns=h.a.attrs((e=>({className:Ba(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null}))).withConfig({displayName:"Breadcrumbs__BreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover,&:focus{text-decoration:underline;}&.selected{color:",";pointer-events:none;}&.selected:focus{text-decoration:none;}",";"],Kr("colors.accent.fg"),Kr("fontSizes.1"),Kr("colors.fg.default"),ft);Ms.displayName="Breadcrumbs",Ns.displayName="Breadcrumbs.Item";var As=Object.assign(Ms,{Item:Ns});const Os=Object.assign(Ms,{Item:Ns}),Ls=h.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *{margin-inline-end:-1px;position:relative;border-radius:0;:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}:focus,:active,:hover{z-index:1;}}",";"],Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),ft),js={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Rs={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Ds(e,r,o){const t=js[e].toLowerCase(),a=Rs[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const zs=Fr({prop:"bg",key:"colors"}),Ps=Fr({prop:"borderColor",key:"colors"}),_s=Fr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Hs(e){var o;const t=r.useContext(C),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(o=e.theme)&&void 0!==o?o:t},{bg:n}=zs(a),{borderColor:l}=Ps(a),{borderWidth:i}=_s(a),{size:c=8,location:s="bottom"}=e,[d,g]=function(e){const[r,o]=e.split("-");return[r,o]}(s),b=Rs[d],v=[-c,0],u=[0,c],f=[c,0],h=`M${v}L${u}L${f}L${v}Z`,p=`M${v}L${u}L${f}`,m={top:`translate(${[c,2*c]}) rotate(180)`,right:`translate(${[0,c]}) rotate(-90)`,bottom:`translate(${[c,0]})`,left:`translate(${[2*c,c]}) rotate(90)`}[d];return r.createElement("svg",{width:2*c,height:2*c,style:{pointerEvents:"none",position:"absolute",...Ds(d,g,c),[`margin${b}`]:g?null:-c},role:"presentation"},r.createElement("g",{transform:m},r.createElement("path",{d:h,fill:null==t?void 0:t.colors.canvas.default}),r.createElement("path",{d:h,fill:n}),r.createElement("path",{d:p,fill:"none",stroke:l,strokeWidth:i})))}function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Fs.apply(this,arguments)}function Vs(e){const{size:o=32,as:t,icon:a,bg:n,...l}=e;return r.createElement(ht,{as:t,bg:n,overflow:"hidden",borderWidth:0,size:o,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},r.createElement(ht,Fs({display:"flex",as:t,size:o},l,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:o})))}Hs.displayName="Caret",Hs.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Vs.displayName="CircleOcticon";const Ws=v(null),$s=Ws.Provider;function Zs(){var e;return null!==(e=b(Ws))&&void 0!==e?e:{}}function Ks(e={}){const r=b(Ws);return r?{disabled:r.disabled,id:r.id,required:r.required,validationStatus:r.validationStatus,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const Gs=v({});function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Us.apply(this,arguments)}const qs=h.input.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1ga3qj3-0"})(["",";border-radius:",";transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&::before{width:var(--base-size-16,16px);height:var(--base-size-16,16px);visibility:hidden;content:'';background-color:",";transition:visibility 0s linear 230ms;clip-path:inset(var(--base-size-16,16px) 0 0 0);mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');mask-size:75%;mask-repeat:no-repeat;mask-position:center;animation:checkmarkOut 80ms cubic-bezier(0.65,0,0.35,1) forwards;}&:checked,&:indeterminate{background:",";border-color:",";&::before{animation:checkmarkIn 80ms cubic-bezier(0.65,0,0.35,1) forwards 80ms;}}&:disabled{cursor:not-allowed;}&:checked{transition:background-color,border-color 80ms cubic-bezier(0.32,0,0.67,0) 0ms;&::before{visibility:visible;transition:visibility 0s linear 0s;}&:disabled{background-color:",";border-color:",";opacity:1;&::before{background-color:",";}}@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}}&:indeterminate{background:",";&::before{mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');visibility:visible;}}",";",";@keyframes checkmarkIn{from{clip-path:inset(var(--base-size-16,16px) 0 0 0);}to{clip-path:inset(0 0 0 0);}}@keyframes checkmarkOut{from{clip-path:inset(0 0 0 0);}to{clip-path:inset(var(--base-size-16,16px) 0 0 0);}}"],gi,Kr("radii.1"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),Kr("colors.accent.fg"),Kr("colors.fg.muted"),Kr("colors.fg.muted"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),mt(),ft),Ys=r.forwardRef((({checked:e,defaultChecked:o,indeterminate:t,disabled:n,onChange:l,sx:i,required:c,validationStatus:s,value:d,...g},v)=>{const u=so(v),f=b(Gs);return Ko((()=>{u.current&&(u.current.indeterminate=t||!1)}),[t,e,u]),a((()=>{const{current:e}=u;e&&(t?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),r.createElement(qs,Us({type:"checkbox",disabled:n,ref:u,checked:!t&&e,defaultChecked:o,sx:i,required:c,"aria-required":c?"true":"false","aria-invalid":"error"===s?"true":"false",onChange:e=>{f.onChange&&f.onChange(e),l&&l(e)},value:d,name:d},g))}));function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Xs.apply(this,arguments)}Ys.displayName="Checkbox";const Js=h.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-li6bhs-0"})(["appearance:none;border-radius:inherit;border:0;color:currentColor;font-size:inherit;outline:none;width:100%;background-color:inherit;margin-top:1px;margin-left:1px;margin-bottom:1px;&:disabled{background-color:transparent;}@media screen and (forced-colors:active){&:disabled{background-color:-moz-combobox;}}"]),Qs=({className:e})=>r.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},r.createElement("path",{d:"m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z"}));Qs.displayName="ArrowIndicatorSVG";const ed=h(Qs).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),rd=r.forwardRef((({block:e,children:o,contrast:t,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,sx:s={},...d},g)=>r.createElement(Zc,{block:e,contrast:t,disabled:a,size:l,validationStatus:c,sx:to({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},s)},r.createElement(Js,Xs({ref:g,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},d),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(ed,null)))),od=e=>r.createElement("option",e);od.displayName="Option";const td=e=>r.createElement("optgroup",e);td.displayName="OptGroup";var ad=Object.assign(rd,{Option:od,OptGroup:td}),nd=Y(pe,re,ee,J,oe,le,ce,de,ae,me,Ne,Ae,Oe),ld=new RegExp("^("+nd.propNames.join("|")+")$");function id(){return id=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},id.apply(this,arguments)}const cd={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},sd="medium",dd=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),gd=Me({prop:"size",variants:{small:{fontSize:0,height:cd.small,lineHeight:cd.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:cd.medium,lineHeight:cd.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:cd.large,lineHeight:cd.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:cd.xlarge,lineHeight:cd.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),bd=h.span.withConfig({displayName:"TokenBase__StyledTokenBase",componentId:"sc-1ju9l7y-0"})(["align-items:center;border-radius:999px;cursor:",";display:inline-flex;font-weight:",";font-family:inherit;text-decoration:none;position:relative;white-space:nowrap;"," ",""],(e=>dd(e)?"pointer":"auto"),Kr("fontWeights.bold"),gd,ft),vd=r.forwardRef((({onRemove:e,onKeyDown:o,id:t,size:a=sd,...n},l)=>r.createElement(bd,id({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},id:null==t?void 0:t.toString(),size:a},n,{ref:l}))));function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ud.apply(this,arguments)}const fd=Me({prop:"size",variants:{small:{height:cd.small,width:cd.small},medium:{height:cd.medium,width:cd.medium},large:{height:cd.large,width:cd.large},xlarge:{height:cd.xlarge,width:cd.xlarge}}}),hd=e=>.75*parseInt(cd[e||sd],10),pd=h.span.withConfig({displayName:"_RemoveTokenButton__StyledTokenButton",componentId:"sc-urhpr1-0"})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:",";align-self:baseline;border:0;border-radius:999px;"," &:hover,&:focus{background-color:",";}&:active{background-color:",";}"," ",""],(e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`),(e=>{switch(e.size){case"large":case"xlarge":return y(["margin-left:",";"],Kr("space.2"));default:return y(["margin-left:",";"],Kr("space.1"))}}),Kr("colors.neutral.muted"),Kr("colors.neutral.subtle"),fd,ft),md=({"aria-label":e,isParentInteractive:o,size:t=sd,...a})=>(delete a.children,r.createElement(pd,ud({as:o?"span":"button",tabIndex:o?-1:void 0,"aria-label":o?e:"Remove token",size:t},a),r.createElement(il,{size:hd(t)})));md.displayName="RemoveTokenButton";const yd=h("span").withConfig({displayName:"_TokenTextContainer__TokenTextContainer",componentId:"sc-6l9eri-0"})(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;line-height:normal;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex='0']){cursor:pointer;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}}"]);function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xd.apply(this,arguments)}const Cd=({children:e,size:o})=>r.createElement(ht,{sx:{flexShrink:0,lineHeight:0,marginRight:o&&["large","xlarge"].includes(o)?2:1}},e);Cd.displayName="LeadingVisualContainer";const wd=d(((e,o)=>{const{as:t,onRemove:a,id:n,leadingVisual:l,text:i,size:c=sd,hideRemoveButton:s,href:d,onClick:g,sx:b=Bt,...v}=e,u=dd(e)&&Boolean(a)&&!s,f={as:t,href:d,onClick:g},h=to({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!s&&a?0:void 0,...dd(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},b);return r.createElement(vd,xd({onRemove:a,id:null==n?void 0:n.toString(),text:i,size:c,sx:h},u?{}:f,v,{ref:o}),l?r.createElement(Cd,{size:c},r.createElement(l,null)):null,r.createElement(yd,u?f:{},i),a&&r.createElement(Et,null," (press backspace or delete to remove)"),!s&&a?r.createElement(md,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:c,isParentInteractive:dd(e),"aria-hidden":u?"true":"false"}):null)}));function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},kd.apply(this,arguments)}wd.displayName="Token";const Bd={small:0,medium:1,large:1,xlarge:2};function Ed({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:c,className:s,block:d,disabled:g,sx:b,tokens:v,onTokenRemove:u,tokenComponent:f=wd,preventTokenWrapping:h=!1,size:p="xlarge",hideTokenRemoveButtons:m=!1,maxHeight:y,width:x,minWidth:C,maxWidth:w,validationStatus:k,variant:B,visibleTokenCount:E,...T},S){const{onBlur:I,onFocus:M,onKeyDown:N,...A}=function(e){var r={};for(var o in e)ld.test(o)||(r[o]=e[o]);return r}(T),O=l(null);rt(S,O);const[L,j]=i(),[R,D]=i(Boolean(E)),{containerRef:z}=cl({focusOutBehavior:"wrap",bindKeys:Do.ArrowHorizontal|Do.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!L&&0!==L)return;let o=L+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>v.length||o<1?O.current||void 0:null===(r=z.current)||void 0===r?void 0:r.children[o]}},[L]),P=e=>{u(e),setTimeout((()=>{var e,r;const o=null===(e=z.current)||void 0===e?void 0:e.children[L||0],t=o&&po(o)?o:Array.from((null===(r=z.current)||void 0===r?void 0:r.children)||[]).find((e=>po(e)));var a;t?t.focus():null===(a=O.current)||void 0===a||a.focus()}),0)},_=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},H=e=>{var r;"Escape"===e.key&&(null===(r=O.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},V=R?v.slice(0,E):v,W=a&&("leading"===n||Boolean(o&&"trailing"!==n)),$=a&&("trailing"===n||"auto"===n&&!o);return r.createElement(Zc,{block:d,className:s,contrast:c,disabled:g,hasLeadingVisual:Boolean(o||W),hasTrailingVisual:Boolean(t||$),width:x,minWidth:C,maxWidth:w,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[p],validationStatus:k,variant:B,onClick:()=>{var e;null===(e=O.current)||void 0===e||e.focus()},sx:{paddingLeft:Vc,py:`calc(${Vc} / 2)`,...d?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...b}},e&&!o&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:W},"string"!=typeof o&&Lc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(ht,{ref:z,display:"flex",sx:{alignItems:"center",flexWrap:h?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},r.createElement(ht,{sx:{order:1,flexGrow:1}},r.createElement(Yc,kd({ref:O,disabled:g,onFocus:e=>{M&&M(e),j(void 0),E&&D(!1)},onBlur:e=>{I&&I(e),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},onKeyDown:e=>{var r;if(N&&N(e),null!==(r=O.current)&&void 0!==r&&r.value)return;const o=v[v.length-1];"Backspace"===e.key&&o&&(P(o.id),O.current&&(O.current.value=`${o.text} `),setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"},"aria-invalid":"error"===k?"true":"false"},A))),V.map((({id:e,...o},t)=>{return r.createElement(f,kd({disabled:g,key:e,onFocus:(a=t,()=>{g||j(a)}),onBlur:_,onKeyUp:H,onClick:F,isSelected:L===t,onRemove:()=>{P(e)},hideRemoveButton:g||m,size:p,tabIndex:0},o));var a})),R&&v.length-V.length?r.createElement(ql,{color:"fg.muted",fontSize:Bd[p]},"+",v.length-V.length):null),r.createElement(Pc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:$},"string"!=typeof t&&Lc.isValidElementType(t)?r.createElement(t,null):t))}Ed.displayName="TextInputWithTokensInnerComponent";const Td=r.forwardRef(Ed);function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Sd.apply(this,arguments)}Td.displayName="TextInputWithTokens";const Id=h.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-1lf8it-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;resize:both;&:focus{outline:0;}"," "," ",";"],(e=>e.resize&&y(["resize:",";"],e.resize)),(e=>e.disabled&&y(["resize:none;"])),ft),Md=r.forwardRef((({value:e,disabled:o,sx:t,required:a,validationStatus:n,rows:l=7,cols:i=30,resize:c="both",block:s,contrast:d,...g},b)=>r.createElement($c,{sx:t,validationStatus:n,disabled:o,block:s,contrast:d},r.createElement(Id,Sd({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:b,disabled:o,rows:l,cols:i},g)))));Md.displayName="Textarea";const Nd=({children:e,disabled:o,id:t,sx:a})=>r.createElement(ql,{color:o?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:t,sx:a},e);Nd.displayName="InputCaption";const Ad=({children:e,sx:o,id:t})=>{const{captionId:a,disabled:n}=Zs();return r.createElement(Nd,{id:t||a||"",disabled:n,sx:o},e)};function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Od.apply(this,arguments)}Ad.displayName="FormControlCaption";const Ld=({children:e,disabled:o,htmlFor:t,id:a,required:n,visuallyHidden:l,sx:i,as:c="label",...s})=>r.createElement(Et,Od({isVisible:!l,as:c,htmlFor:t,id:a,sx:{fontWeight:"bold",fontSize:1,display:"block",color:o?"fg.muted":"fg.default",cursor:o?"not-allowed":"pointer",alignSelf:"flex-start",...i}},s),n?r.createElement(ht,{display:"flex",as:"span"},r.createElement(ht,{mr:1},e),r.createElement("span",null,"*")):e);Ld.displayName="InputLabel";const jd=({as:e,children:o,htmlFor:t,id:a,visuallyHidden:n,sx:l,...i})=>{const{disabled:c,id:s,required:d}=Zs(),g="legend"===e||"span"===e?{as:e,id:a,visuallyHidden:n,required:d,disabled:c,sx:l,...i}:{as:e,id:a,visuallyHidden:n,htmlFor:t||s,required:d,disabled:c,sx:l,...i};return r.createElement(Ld,g,o)};jd.displayName="FormControlLabel";const Rd=({children:e,sx:o})=>{const{disabled:t,captionId:a}=Zs();return r.createElement(ht,{color:t?"fg.muted":"fg.default",sx:{"> *":{minWidth:Kr(a?"fontSizes.4":"fontSizes.2"),minHeight:Kr(a?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...o},ml:2},e)};Rd.displayName="FormControlLeadingVisual";const Dd=({children:e,variant:o,sx:t,id:a})=>{const{validationMessageId:n}=Zs();return r.createElement(ri,{validationStatus:o,id:a||n||"",sx:t},e)};Dd.displayName="FormControlValidation";const zd=r.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:l},i)=>{var c,s,d;const[g,v]=_a(e,{caption:Ad,label:jd,leadingVisual:Rd,validation:Dd}),u=[ds,Ys,ui,ad,Qc,Td,Md],f=b(Yl).disabled||o,h=ot(a),p=g.validation?`${h}-validationMessage`:void 0,m=g.caption?`${h}-caption`:void 0,y=null===(c=g.validation)||void 0===c?void 0:c.props.variant,x=v.find((e=>u.some((o=>r.isValidElement(e)&&e.type===o)))),C=r.isValidElement(x)&&x.props,w=r.isValidElement(x)&&(x.type===Ys||x.type===ui);x&&(null!=C&&C.id&&console.warn("instead of passing the 'id' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.disabled&&console.warn("instead of passing the 'disabled' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.required&&console.warn("instead of passing the 'required' prop directly to the input component, it should be passed to the parent component, <FormControl>")),g.label||console.error(`The input field with the id ${h} MUST have a FormControl.Label child.\n\nIf you want to hide the label, pass the 'visuallyHidden' prop to the FormControl.Label component.`),w?(g.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),v.find((e=>{var o;return r.isValidElement(e)&&(null===(o=e.props)||void 0===o?void 0:o.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):g.leadingVisual&&console.warn("A leading visual is only rendered for a checkbox or radio form control. If you want to render a leading visual inside of your input, check if your input supports a leading visual.");const k=null===(s=g.label)||void 0===s?void 0:s.props.visuallyHidden;return r.createElement($s,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?r.createElement(ht,{ref:i,display:"flex",alignItems:g.leadingVisual?"center":void 0,sx:l},r.createElement(ht,{sx:{"> input":{marginLeft:0,marginRight:0}}},r.isValidElement(x)&&r.cloneElement(x,{id:h,disabled:f,"aria-describedby":m}),v.filter((e=>r.isValidElement(e)&&![Ys,ui].some((r=>e.type===r))))),g.leadingVisual&&r.createElement(ht,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:g.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),minHeight:g.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),fill:"currentColor"}},ml:2},g.leadingVisual),null===(d=g.label)||void 0===d||!d.props.visuallyHidden||g.caption?r.createElement(ht,{display:"flex",flexDirection:"column",ml:2},g.label,g.caption):r.createElement(r.Fragment,null,g.label,g.caption)):r.createElement(ht,{ref:i,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l}},g.label,r.isValidElement(x)&&r.cloneElement(x,Object.assign({id:h,required:n,disabled:f,validationStatus:y,"aria-describedby":[p,m].filter(Boolean).join(" ")},x.props)),v.filter((e=>r.isValidElement(e)&&!u.some((r=>e.type===r)))),g.validation?r.createElement(Ul,{show:!0},g.validation):null,g.caption))}));var Pd=Object.assign(zd,{Caption:Ad,Label:jd,LeadingVisual:Rd,Validation:Dd});function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_d.apply(this,arguments)}const Hd=({children:e,disabled:o,onChange:t,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===Pd)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Ys)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=Yo(l);return r.createElement(Gs.Provider,{value:{disabled:o,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;c(o?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),t(i.current||[],e))}}},r.createElement(li,_d({disabled:o},a),e))};Hd.displayName="CheckboxGroup";var Fd=Object.assign(Hd,{Caption:Xl,Label:Jl,Validation:oi});const Vd={small:56,medium:96,large:128},Wd=h.div.withConfig({displayName:"CircleBadge",componentId:"sc-nywehb-0"})(["display:",";align-items:center;justify-content:center;background-color:",";border-radius:50%;box-shadow:",";",";",";"],(({inline:e=!1})=>e?"inline-flex":"flex"),Kr("colors.canvas.default"),Kr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Vd[r];return{width:o,height:o}}),ft),$d=h(zn).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);$d.displayName="CircleBadge.Icon";var Zd=Object.assign(Wd,{Icon:$d});const Kd=h.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],ft);Kd.displayName="Details";const Gd=()=>null;function Ud(e){const r=e;return r.tabIndex>=0&&!r.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(r)}function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qd.apply(this,arguments)}const Yd=()=>null,Xd=h.div.withConfig({displayName:"Dialog__DialogBase",componentId:"sc-13rdxb7-0"})(["box-shadow:",";border-radius:",";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:",";width:",";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}",";"],Kr("shadows.shadow.large"),Kr("radii.2"),Kr("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),ft),Jd=h(ht).withConfig({displayName:"Dialog__DialogHeaderBase",componentId:"sc-13rdxb7-1"})(["border-radius:"," "," 0px 0px;border-bottom:1px solid ",";display:flex;@media screen and (max-width:750px){border-radius:0px;}",";"],Kr("radii.2"),Kr("radii.2"),Kr("colors.border.default"),ft);function Qd({theme:e,children:o,backgroundColor:t="canvas.subtle",...a}){return r.Children.toArray(o).every((e=>"string"==typeof e))&&(o=r.createElement(ql,{fontSize:1,fontWeight:"bold"},o)),r.createElement(Jd,qd({theme:e,p:3,backgroundColor:t},a),o)}Qd.displayName="DialogHeader";const eg=h.span.withConfig({displayName:"Dialog__Overlay",componentId:"sc-13rdxb7-2"})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:",";}"],Kr("colors.primer.canvas.backdrop")),rg=d((({children:e,onDismiss:o=Yd,isOpen:n,initialFocusRef:i,returnFocusRef:c,...s},d)=>{const g=l(null),b=l(null);rt(d,b);const v=l(null),u=()=>{o(),c&&c.current&&c.current.focus()},{getDialogProps:f}=function({modalRef:e,overlayRef:r,isOpen:o,onDismiss:n=Gd,initialFocusRef:l,closeButtonRef:i}){const c=t((o=>{e.current&&r.current&&o.target instanceof Node&&!e.current.contains(o.target)&&r.current.contains(o.target)&&n()}),[n,e,r]);a((()=>{if(o)return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}}),[o,c]),a((()=>{o&&(l&&l.current?l.current.focus():i&&i.current&&i.current.focus())}),[o,l,i]);const s=t(((r,o)=>{if(e.current){const t=Array.from(e.current.querySelectorAll("*")).filter(Ud);if(0===t.length)return;r.preventDefault();const a=document.activeElement;if(!a)return;const n=t.indexOf(a)+o,l=1===o?0:t.length-1;return t[n]||t[l]}}),[e]),d=t((e=>{const r=e.shiftKey?-1:1,o=s(e,r);o&&o.focus()}),[s]),g=t((e=>{"Tab"===e.key&&d(e)}),[d]);return uo((e=>{o&&(n(),e.preventDefault())}),[o,n]),{getDialogProps:()=>({onKeyDown:g})}}({modalRef:b,onDismiss:u,isOpen:n,initialFocusRef:i,closeButtonRef:v,returnFocusRef:c,overlayRef:g});return n?r.createElement(r.Fragment,null,r.createElement(eg,{ref:g}),r.createElement(Xd,qd({tabIndex:-1,ref:b,role:"dialog","aria-modal":"true"},s,f()),r.createElement(Na,{icon:il,ref:v,onClick:u,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));Qd.propTypes={...ht.propTypes},Qd.displayName="Dialog.Header",rg.displayName="Dialog";var og=Object.assign(rg,{Header:Qd});function tg(){return tg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},tg.apply(this,arguments)}const ag=Me({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),ng=h.div.withConfig({displayName:"Flash__StyledFlash",componentId:"sc-hzrzfc-0"})(["position:relative;color:",";padding:",";border-style:solid;border-width:",";border-radius:",";margin-top:",";p:last-child{margin-bottom:0;}svg{margin-right:",";}",";",";"],Kr("colors.fg.default"),Kr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Kr("radii.2")),(e=>e.full?"-1px":"0"),Kr("space.2"),ag,ft),lg=r.forwardRef((function({as:e,variant:o="default",...t},a){return r.createElement(ng,tg({ref:a,as:e,variant:o},t))}));const ig=h.header.withConfig({displayName:"Header",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;",";"],Kr("space.3"),Kr("fontSizes.1"),Kr("lineHeights.default"),Kr("colors.header.text"),Kr("colors.header.bg"),ft),cg=h.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Kr("space.3"),(({full:e})=>e&&y(["flex:auto;"])),ft);cg.displayName="Header.Item";const sg=h.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__HeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Kr("fontWeights.bold"),Kr("colors.header.logo"),Kr("colors.header.text"),ft);sg.displayName="Header.Link";var dg=Object.assign(ig,{Link:sg,Item:cg});function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gg.apply(this,arguments)}const bg=h.span.withConfig({displayName:"Label__StyledLabel",componentId:"sc-1dgcne-0"})(["align-items:center;background-color:transparent;border-width:1px;border-radius:999px;border-style:solid;display:inline-flex;font-weight:",";font-size:",";line-height:1;white-space:nowrap;",";",";",";"],Kr("fontWeights.bold"),Kr("fontSizes.0"),Me({variants:{default:{borderColor:"border.default"},primary:{borderColor:"fg.default"},secondary:{borderColor:"border.muted",color:"fg.muted"},accent:{borderColor:"accent.emphasis",color:"accent.fg"},success:{borderColor:"success.emphasis",color:"success.fg"},attention:{borderColor:"attention.emphasis",color:"attention.fg"},severe:{borderColor:"severe.emphasis",color:"severe.fg"},danger:{borderColor:"danger.emphasis",color:"danger.fg"},done:{borderColor:"done.emphasis",color:"done.fg"},sponsors:{borderColor:"sponsors.emphasis",color:"sponsors.fg"}}}),Me({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),ft),vg=r.forwardRef((function({as:e,size:o="small",variant:t="default",...a},n){return r.createElement(bg,gg({as:e,size:o,variant:t,ref:n},a))}));function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ug.apply(this,arguments)}const fg=h.div.withConfig({displayName:"LabelGroup__StyledLabelGroupContainer",componentId:"sc-6tqg8q-0"})(["display:flex;flex-wrap:nowrap;gap:",";line-height:1;max-width:100%;overflow:hidden;&[data-overflow='inline']{flex-wrap:wrap;}",";"],Kr("space.1"),ft),hg=h.div.withConfig({displayName:"LabelGroup__ItemWrapper",componentId:"sc-6tqg8q-1"})(["display:flex;align-items:center;min-height:28px;&.ItemWrapper--hidden{order:9999;pointer-events:none;visibility:hidden;}"]),pg=({collapseButtonRef:e,collapseInlineExpandedChildren:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l,totalLength:i})=>n?r.createElement(At,{ref:e,onClick:o,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(At,{ref:t,variant:"invisible",size:"small",onClick:l},r.createElement(Et,null,"Show all ",i),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,mg=({children:e,closeOverflowOverlay:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c,totalLength:s})=>a.length?r.createElement(lc,{open:n,onOpen:l,onClose:o,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:t,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>r.createElement(At,ug({variant:"invisible",size:"small"},e,{ref:t}),r.createElement(Et,null,"Show all ",s),r.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},r.createElement(ht,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},r.createElement(ht,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),r.createElement(Na,{onClick:o,icon:il,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,yg=({children:e,visibleChildCount:o,overflowStyle:t="overlay",sx:a})=>{const n=r.useRef(null),l=r.useRef(null),i=r.useRef(void 0),[c,s]=r.useState({}),[d,g]=r.useState(!1),[b,v]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:u}=it(),f=parseInt(Kr("space.2")(u),10),h=Object.keys(c).filter((e=>!c[e])),p=h.length&&"overlay"===t?((e,r,o)=>{var t;return o+e.right-((null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect().left)||0)})(b,n,f):void 0,m=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===b.width&&r.right===b.right||v(r),m.current=e}}),[b]),y=r.useCallback((e=>{var r;const o=(null===(r=n.current)||void 0===r?void 0:r.children)||[],t={};for(const r of o){const o=r.getAttribute("data-index");o&&(t[o]=parseInt(o,10)<e)}s(t)}),[]),x=r.useCallback((()=>g(!0)),[g]),C=r.useCallback((()=>{g(!1)}),[g]),w=r.useCallback((()=>{g(!1),o&&"number"==typeof o&&y(o),setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),10)}),[m,y,o]),k=r.useCallback((()=>{s({}),g(!0)}),[s,g]);return r.useEffect((()=>{if(o&&!d){if("auto"===o){const r=new IntersectionObserver((e=>{const r={};for(const o of e){const e=o.target.getAttribute("data-index");e&&(r[e]=o.isIntersecting)}s((e=>({...e,...r})))}),{root:n.current,rootMargin:`0px -${b.width}px 0px 0px`,threshold:1});for(const o of(null===(e=n.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}y(o)}}),[b,o,y,d]),r.useEffect((()=>{"overlay"!==t&&h.length&&(i.current=parseInt(h[0],10))}),[h,t,d]),r.useEffect((()=>{if("overlay"===t)return;const e=document.querySelector(`[data-index="${i.current}"]`),r=e?ho(e):null;var o;d&&(r?r.focus():null===(o=l.current)||void 0===o||o.focus())}),[t,d]),o?r.createElement(fg,{ref:n,"data-overflow":"inline"===t&&d?"inline":void 0,sx:a},r.Children.map(e,((e,o)=>r.createElement(hg,{"data-index":o,className:h.includes(o.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===t?r.createElement(pg,{collapseButtonRef:l,collapseInlineExpandedChildren:w,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:d,showAllTokensInline:k,totalLength:r.Children.toArray(e).length}):r.createElement(mg,{closeOverflowOverlay:C,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:d,openOverflowOverlay:x,overlayPaddingPx:f,overlayWidth:p,totalLength:r.Children.toArray(e).length},e)):r.createElement(fg,{"data-overflow":"inline",sx:a},e)};function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xg.apply(this,arguments)}yg.displayName="LabelGroup";const Cg=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),wg=h.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(ft),kg=r.forwardRef((({children:e,...o},t)=>r.createElement(wg,xg({},o,{ref:t}),r.createElement(Qi,null,e))));kg.displayName="NavList";const Bg=r.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=Bt,...n},l)=>{const{depth:i}=r.useContext(Sg),c=r.Children.toArray(o).find((e=>f(e)&&e.type===Ig)),s=r.Children.toArray(o).filter((e=>!f(e)||e.type!==Ig));return!f(c)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),c&&f(c)?r.createElement(Tg,{subNav:c,depth:i,defaultOpen:t,sx:a},s):r.createElement(Qi.LinkItem,xg({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:to(Cg(i),a)},n),o)}));Bg.displayName="NavList.Item";const Eg=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function Tg({children:e,subNav:o,depth:t,defaultOpen:a,sx:n=Bt}){var l;const i=ot(),c=ot(),[s,d]=r.useState(null!==(l=a||null)&&void 0!==l&&l),g=r.useRef(null),[b,v]=r.useState(!1);return Ko((()=>{if(g.current){g.current.querySelector("[aria-current]:not([aria-current=false])")&&(v(!0),d(!0))}}),[o,i]),r.createElement(Eg.Provider,{value:{buttonId:i,subNavId:c,isOpen:s}},r.createElement(ht,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},r.createElement(Qi.Item,{as:"button",id:i,"aria-expanded":s,"aria-controls":c,active:!s&&b,onClick:()=>d((e=>!e)),sx:to({...Cg(t),fontWeight:b?"bold":null},n)},e,r.createElement(Qi.TrailingVisual,null,r.createElement(zn,{icon:$n,sx:{transform:s?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:g},o)))}Tg.displayName="ItemWithSubNav";const Sg=r.createContext({depth:0}),Ig=({children:e,sx:o=Bt})=>{const{buttonId:t,subNavId:a,isOpen:n}=r.useContext(Eg),{depth:l}=r.useContext(Sg);return t&&a||console.error("NavList.SubNav must be a child of a NavList.Item"),l>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):r.createElement(Sg.Provider,{value:{depth:l+1}},r.createElement(ht,{as:"ul",id:a,"aria-labelledby":t,sx:to({padding:0,margin:0,display:n?"block":"none"},o)},e))};Ig.displayName="SubNav",Ig.displayName="NavList.SubNav";const Mg=Qi.LeadingVisual;Mg.displayName="NavList.LeadingVisual";const Ng=Qi.TrailingVisual;Ng.displayName="NavList.TrailingVisual";const Ag=Qi.Divider;Ag.displayName="NavList.Divider";const Og={},Lg=({title:e,children:o,sx:t=Og,...a})=>r.createElement(r.Fragment,null,r.createElement(Qi.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(Qi.Group,xg({},a,{title:e,sx:t}),o));Lg.displayName="NavList.Group";const jg=Object.assign(kg,{Item:Bg,SubNav:Ig,LeadingVisual:Mg,TrailingVisual:Ng,Divider:Ag,Group:Lg}),Rg=h.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Kr("space.4"),Kr("space.4"),Kr("space.4"),Kr("colors.border.default"),ft);function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dg.apply(this,arguments)}const zg=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(Da),Pg=h.a.withConfig({displayName:"Pagination__Page",componentId:"sc-cp45c9-0"})(["display:inline-block;min-width:32px;height:32px;padding:0.5rem calc((2rem - 1.25rem) / 2);font-style:normal;line-height:1;color:",";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:",";&:last-child{margin-right:0;}background-color:transparent;border-radius:",";transition:background-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;background-color:",";outline:0;transition-duration:0.1s;}",";&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:",";cursor:default;background-color:transparent;border-color:transparent;font-size:inherit;font-family:inherit;padding-top:inherit;padding-bottom:inherit;}&[aria-disabled],&[aria-disabled]:hover,&[role='presentation'],&[role='presentation']:hover{color:",";cursor:default;background-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:",";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:",";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"],Kr("colors.fg.default"),Kr("space.1"),Kr("radii.2"),Kr("colors.actionListItem.default.hoverBg"),mt(0),Kr("colors.border.muted"),Kr("colors.accent.fg"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.emphasis"),Kr("colors.primer.fg.disabled"),Kr("colors.primer.fg.disabled"),Kr("space.1"),Kr("space.1"));function _g({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}){const s=r.useCallback((e=>r=>a(r,e)),[a]),d=r.useMemo((()=>function(e,r,o,t,a){const n=[];if(o){const o=[],l=r=>{r>=1&&r<=e&&o.push(r)};let i=r-a,c=r+a;if(i<1&&c>e)i=1,c=e;else if(i<1)for(;i<1;)i++,c++;else if(c>e)for(;c>e;)i--,c--;for(let r=1;r<=t;r++){const o=e-(r-1);r>=i?c++:l(r),o<=c?i--:l(o)}for(let e=i;e<=c;e++)l(e);const s=o.slice().sort(((e,r)=>e-r)).filter(((e,r,o)=>!r||e!==o[r-1]));for(let e=0;e<s.length;e++){const o=s[e],t=o===r,a=o-s[e-1],l=-1!=o-s[e+1];0===e?(1!==o&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:l})):1===a?n.push({type:"NUM",num:o,selected:t,precedesBreak:l}):(n.push({type:"BREAK",num:o-1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:!1}))}const d=n[n.length-1];"NUM"===d.type&&d.num!==e&&n.push({type:"BREAK",num:e})}const l={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,l]}(o,t,!!i,l,c)),[o,t,i,l,c]),g=r.useMemo((()=>d.map((o=>{const{props:t,key:a,content:l}=function(e,r,o){const t={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:o});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:o});break;case"NUM":n=`page-${e.num}`,a=String(e.num),Object.assign(t,{href:r(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:o,"aria-current":e.selected?"page":void 0});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(t,{as:"span",role:"presentation"})}return{props:t,key:n,content:a}}(o,n,s(o.num));return r.createElement(Pg,Dg({},t,{key:a,theme:e}),l)}))),[d,n,s,e]);return g}const Hg=h.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Da).map((e=>`\n @media (${Da[e]}) {\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:not(:first-child):not(:last-child) {\n display: none;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:first-child {\n margin-inline-end: 0;\n }\n \n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:last-child {\n margin-inline-start: 0;\n }\n }\n `)).join(""),ft);function Fg({theme:e,pageCount:o,currentPage:t,onPageChange:a=Wg,hrefBuilder:n=Vg,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...s}){const d=_g({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c});return r.createElement(Hg,Dg({"aria-label":"Pagination"},s,{theme:e}),r.createElement(ht,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":zg(i).join(" ")},d))}function Vg(e){return`#${e}`}function Wg(){}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$g.apply(this,arguments)}function Zg(e){const o=r.useContext(C),{bg:t,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:s,...d}=e,{bg:g,backgroundColor:b,...v}=i||{},u=l||o,f=t||g||b,h={bg:t||(null==i?void 0:i.bg)||(null==i?void 0:i.backgroundColor),borderColor:n||(null==i?void 0:i.borderColor),borderWidth:a,location:c,theme:u};return r.createElement(ht,$g({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},d,{sx:{...v,"--custom-bg":Kr(`colors.${f}`)({theme:u}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${u.colors.canvas.default}, ${u.colors.canvas.default})`:void 0,position:"relative"}}),s,r.createElement(Hs,h))}Fg.displayName="Pagination",Zg.displayName="PointerBox";const Kg=h.div.attrs((({className:e,caret:r="top"})=>({className:Ba(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),ft),Gg=h.div.withConfig({displayName:"Popover__PopoverContent",componentId:"sc-q9r75g-1"})(["border:1px solid ",";border-radius:",";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:",";background-color:",";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-",";margin-left:-9px;border:"," solid transparent;border-bottom-color:",";}&::after{top:-14px;margin-left:-",";border:7px solid transparent;border-bottom-color:",";}",".caret-pos--bottom &,",".caret-pos--bottom-right &,",".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-",";border-top-color:",";}&::after{bottom:-14px;border-top-color:",";}}",".caret-pos--top-right &,",".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}",".caret-pos--top-left &,",".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:",";margin-left:0;}&::after{left:calc("," + 1px);}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &,",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc(("," + 1px) * -1);}&::after{margin-top:-",";}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &{&::before{right:-",";border-left-color:",";}&::after{right:-14px;border-left-color:",";}}",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before{left:-",";border-right-color:",";}&::after{left:-14px;border-right-color:",";}}",".caret-pos--right-top &,",".caret-pos--left-top &{&::before,&::after{top:",";}}",".caret-pos--right-bottom &,",".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:",";}&::after{bottom:calc("," + 1px);}}",";"],Kr("colors.border.default"),Kr("radii.2"),Kr("space.4"),Kr("colors.canvas.overlay"),Kr("space.3"),Kr("space.2"),Kr("colors.border.default"),Kr("space.2"),Kr("colors.canvas.overlay"),Kg,Kg,Kg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Kg,Kg,Kg,Kg,Kr("space.4"),Kr("space.4"),Kg,Kg,Kg,Kg,Kg,Kg,Kr("space.2"),Kr("space.2"),Kg,Kg,Kg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Kg,Kg,Kg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Kg,Kg,Kr("space.4"),Kg,Kg,Kr("space.3"),Kr("space.3"),ft);Gg.displayName="Popover.Content";var Ug=Object.assign(Kg,{Content:Gg});function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qg.apply(this,arguments)}const Yg=x(["from{mask-position:200%;}to{mask-position:0%;}"]),Xg=h.span.withConfig({displayName:"ProgressBar__Item",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";@media (prefers-reduced-motion:no-preference){&[data-animated='true']{mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}}",";"],(e=>e.progress?`${e.progress}%`:0),Kr("colors.success.emphasis"),Yg,ft);Xg.displayName="ProgressBar.Item";const Jg={small:"5px",large:"10px",default:"8px"},Qg=h.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Kr("colors.border.default"),Kr("radii.1"),(e=>Jg[e.barSize||"default"]),Le,ft),eb=d((({animated:e,progress:o,bg:t="success.emphasis",barSize:a="default",children:n,...l},i)=>{if(n&&o)throw new Error("You should pass `progress` or children, not both.");const c="string"==typeof o?parseInt(o,10):o,s={"aria-valuenow":c?Math.round(c):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!c&&100!==c};return r.createElement(Qg,qg({ref:i,role:"progressbar",barSize:a},s,l),null!=n?n:r.createElement(Xg,{"data-animated":e,progress:o,sx:{backgroundColor:t}}))}));eb.displayName="ProgressBar";const rb=Object.assign(eb,{Item:Xg});var ob,tb=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},ab=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};const nb="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const r=[];for(const o of e)r.push({type:"element",value:o}),r.push({type:"literal",value:", "});return r.slice(0,-1)}},lb=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],ib={minimumIntegerDigits:2};class cb{constructor(e,r={}){ob.set(this,void 0);let o=String(r.style||"short");"long"!==o&&"short"!==o&&"narrow"!==o&&"digital"!==o&&(o="short");let t="digital"===o?"numeric":o;const a=r.hours||t;t="2-digit"===a?"numeric":a;const n=r.minutes||t;t="2-digit"===n?"numeric":n;const l=r.seconds||t;t="2-digit"===l?"numeric":l;const i=r.milliseconds||t;tb(this,ob,{locale:e,style:o,years:r.years||"digital"===o?"short":o,yearsDisplay:"always"===r.yearsDisplay?"always":"auto",months:r.months||"digital"===o?"short":o,monthsDisplay:"always"===r.monthsDisplay?"always":"auto",weeks:r.weeks||"digital"===o?"short":o,weeksDisplay:"always"===r.weeksDisplay?"always":"auto",days:r.days||"digital"===o?"short":o,daysDisplay:"always"===r.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===r.hoursDisplay||"digital"===o?"always":"auto",minutes:n,minutesDisplay:"always"===r.minutesDisplay||"digital"===o?"always":"auto",seconds:l,secondsDisplay:"always"===r.secondsDisplay||"digital"===o?"always":"auto",milliseconds:i,millisecondsDisplay:"always"===r.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return ab(this,ob,"f")}formatToParts(e){const r=[],o=ab(this,ob,"f"),t=o.style,a=o.locale;for(const[t,n]of lb){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?ib:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new nb(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}ob=new WeakMap;const sb=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,db=["year","month","week","day","hour","minute","second","millisecond"];class gb{constructor(e=0,r=0,o=0,t=0,a=0,n=0,l=0,i=0){this.years=e,this.months=r,this.weeks=o,this.days=t,this.hours=a,this.minutes=n,this.seconds=l,this.milliseconds=i,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new gb(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(e){var r;if("string"==typeof e){const o=String(e).trim(),t=o.startsWith("-")?-1:1,a=null===(r=o.match(sb))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new gb(...a):new gb}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new gb(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(bb(o,gb.from(e)).getTime()-o),a=Math.abs(bb(o,gb.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new cb(e,r).format(this)}}function bb(e,r){const o=new Date(e);return o.setFullYear(o.getFullYear()+r.years),o.setMonth(o.getMonth()+r.months),o.setDate(o.getDate()+7*r.weeks+r.days),o.setHours(o.getHours()+r.hours),o.setMinutes(o.getMinutes()+r.minutes),o.setSeconds(o.getSeconds()+r.seconds),o}function vb(e,{relativeTo:r=Date.now()}={}){if(r=new Date(r),e.blank)return e;const o=e.sign;let t=Math.abs(e.years),a=Math.abs(e.months),n=Math.abs(e.weeks),l=Math.abs(e.days),i=Math.abs(e.hours),c=Math.abs(e.minutes),s=Math.abs(e.seconds),d=Math.abs(e.milliseconds);d>=900&&(s+=Math.round(d/1e3)),(s||c||i||l||n||a||t)&&(d=0),s>=55&&(c+=Math.round(s/60)),(c||i||l||n||a||t)&&(s=0),c>=55&&(i+=Math.round(c/60)),(i||l||n||a||t)&&(c=0),l&&i>=12&&(l+=Math.round(i/24)),!l&&i>=21&&(l+=Math.round(i/24)),(l||n||a||t)&&(i=0);const g=r.getFullYear();let b=r.getMonth();const v=r.getDate();if(l>=27||t+a+l){const e=new Date(r);e.setFullYear(g+t*o),e.setMonth(b+a*o),e.setDate(v+l*o);const i=e.getFullYear()-r.getFullYear(),c=e.getMonth()-r.getMonth(),s=Math.abs(Math.round((Number(e)-Number(r))/864e5)),d=Math.abs(12*i+c);s<27?(l>=6?(n+=Math.round(l/7),l=0):l=s,a=t=0):d<11?(a=d,t=0):(a=0,t=i*o),(a||t)&&(l=0),b=r.getMonth()}return t&&(a=0),n>=4&&(a+=Math.round(n/4)),(a||t)&&(n=0),l&&n&&!a&&!t&&(n+=Math.round(l/7),l=0),new gb(t*o,a*o,n*o,l*o,i*o,c*o,s*o,d*o)}var ub,fb,hb,pb,mb,yb,xb,Cb,wb,kb,Bb,Eb=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)},Tb=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o};const Sb=globalThis.HTMLElement||null,Ib=new gb,Mb=new gb(0,0,0,0,0,1);class Nb extends Event{constructor(e,r,o,t){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=r,this.oldTitle=o,this.newTitle=t}}function Ab(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const r=e.precision;if("second"===r)return 1e3;if("minute"===r)return 6e4}const r=Math.abs(Date.now()-e.date.getTime());return r<6e4?1e3:r<36e5?6e4:36e5}const Ob=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);const r=e.date;if(r&&r.getTime()){const r=Ab(e),o=Date.now()+r;o<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),r),this.time=o)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(const r of this.elements)e=Math.min(e,Ab(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class Lb extends Sb{constructor(){super(...arguments),ub.add(this),fb.set(this,!1),hb.set(this,!1),mb.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Bb.set(this,null)}static define(e="relative-time",r=customElements){return r.define(e,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","datetime","lang","title"]}get onRelativeTimeUpdated(){return Eb(this,Bb,"f")}set onRelativeTimeUpdated(e){Eb(this,Bb,"f")&&this.removeEventListener("relative-time-updated",Eb(this,Bb,"f")),Tb(this,Bb,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("relative-time-updated",e)}get second(){const e=this.getAttribute("second");if("numeric"===e||"2-digit"===e)return e}set second(e){this.setAttribute("second",e||"")}get minute(){const e=this.getAttribute("minute");if("numeric"===e||"2-digit"===e)return e}set minute(e){this.setAttribute("minute",e||"")}get hour(){const e=this.getAttribute("hour");if("numeric"===e||"2-digit"===e)return e}set hour(e){this.setAttribute("hour",e||"")}get weekday(){const e=this.getAttribute("weekday");return"long"===e||"short"===e||"narrow"===e?e:"datetime"===this.format&&""!==e?this.formatStyle:void 0}set weekday(e){this.setAttribute("weekday",e||"")}get day(){var e;const r=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===r||"2-digit"===r)return r}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let r=this.getAttribute("month");if(""!==r)return null!=r||(r="datetime"===e?this.formatStyle:"short"),"numeric"===r||"2-digit"===r||"short"===r||"long"===r||"narrow"===r?r:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const r=this.getAttribute("year");return"numeric"===r||"2-digit"===r?r:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(e=this.date)||void 0===e?void 0:e.getUTCFullYear())?void 0:"numeric"}set year(e){this.setAttribute("year",e||"")}get timeZoneName(){const e=this.getAttribute("time-zone-name");if("long"===e||"short"===e||"shortOffset"===e||"longOffset"===e||"shortGeneric"===e||"longGeneric"===e)return e}set timeZoneName(e){this.setAttribute("time-zone-name",e||"")}get prefix(){var e;return null!==(e=this.getAttribute("prefix"))&&void 0!==e?e:"datetime"===this.format?"":"on"}set prefix(e){this.setAttribute("prefix",e)}get threshold(){const e=this.getAttribute("threshold");return e&&(r=e,sb.test(r))?e:"P30D";var r}set threshold(e){this.setAttribute("threshold",e)}get tense(){const e=this.getAttribute("tense");return"past"===e?"past":"future"===e?"future":"auto"}set tense(e){this.setAttribute("tense",e)}get precision(){const e=this.getAttribute("precision");return db.includes(e)?e:"micro"===this.format?"minute":"second"}set precision(e){this.setAttribute("precision",e)}get format(){const e=this.getAttribute("format");return"datetime"===e?"datetime":"relative"===e?"relative":"duration"===e?"duration":"micro"===e?"micro":"elapsed"===e?"elapsed":"auto"}set format(e){this.setAttribute("format",e)}get formatStyle(){const e=this.getAttribute("format-style");if("long"===e)return"long";if("short"===e)return"short";if("narrow"===e)return"narrow";const r=this.format;return"elapsed"===r||"micro"===r?"narrow":"datetime"===r?"short":"long"}set formatStyle(e){this.setAttribute("format-style",e)}get datetime(){return this.getAttribute("datetime")||""}set datetime(e){this.setAttribute("datetime",e)}get date(){const e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=(null==e?void 0:e.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){Ob.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&Tb(this,fb,null!==o&&(this.date&&Eb(this,ub,"m",yb).call(this,this.date))!==o,"f"),Eb(this,hb,"f")||"title"===e&&Eb(this,fb,"f")||Tb(this,hb,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=Eb(this,mb,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(Eb(this,mb,"f").textContent=e);const a=Date.now();Eb(this,fb,"f")||(o=Eb(this,ub,"m",yb).call(this,t)||"",o&&this.setAttribute("title",o));const n=function(e,r="second",o=Date.now()){const t=e.getTime()-o;if(0===t)return new gb;const a=Math.sign(t),n=Math.abs(t),l=Math.floor(n/1e3),i=Math.floor(l/60),c=Math.floor(i/60),s=Math.floor(c/24),d=Math.floor(s/30),g=Math.floor(d/12),b=db.indexOf(r)||db.length;return new gb(b>=0?g*a:0,b>=1?(d-12*g)*a:0,0,b>=3?(s-30*d)*a:0,b>=4?(c-24*s)*a:0,b>=5?(i-60*c)*a:0,b>=6?(l-60*i)*a:0,b>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=Eb(this,ub,"m",xb).call(this,n);let i=e;i="duration"===l?Eb(this,ub,"m",Cb).call(this,n):"relative"===l?Eb(this,ub,"m",wb).call(this,n):Eb(this,ub,"m",kb).call(this,t),i?Eb(this,mb,"f").textContent=i:this.shadowRoot===Eb(this,mb,"f")&&this.textContent&&(Eb(this,mb,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new Nb(e,i,r,o)),"relative"===l||"duration"===l?Ob.observe(this):Ob.unobserve(this),Tb(this,hb,!1,"f")}}fb=new WeakMap,hb=new WeakMap,mb=new WeakMap,Bb=new WeakMap,ub=new WeakSet,pb=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},yb=function(e){return new Intl.DateTimeFormat(Eb(this,ub,"a",pb),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},xb=function(e){const r=this.format;if("datetime"===r)return"datetime";if("duration"===r)return"duration";if("elapsed"===r)return"duration";if("micro"===r)return"duration";if(("auto"===r||"relative"===r)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const r=this.tense;if("past"===r||"future"===r)return"relative";if(1===gb.compare(e,this.threshold))return"relative"}return"datetime"},Cb=function(e){const r=Eb(this,ub,"a",pb),o=this.format,t=this.formatStyle,a=this.tense;let n=Ib;"micro"===o?(e=vb(e),n=Mb,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=Mb)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=n);const l=`${this.precision}sDisplay`;return e.blank?n.toLocaleString(r,{style:t,[l]:"always"}):e.abs().toLocaleString(r,{style:t})},wb=function(e){const r=new Intl.RelativeTimeFormat(Eb(this,ub,"a",pb),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=Ib),"past"===o&&-1!==e.sign&&(e=Ib);const[t,a]=function(e,r){const o=vb(e,r);if(o.blank)return[0,"second"];for(const e of db){if("millisecond"===e)continue;const r=o[`${e}s`];if(r)return[r,e]}return[0,"second"]}(e);return"second"===a&&t<10?r.format(0,"second"):r.format(t,a)},kb=function(e){const r=new Intl.DateTimeFormat(Eb(this,ub,"a",pb),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${r.format(e)}`.trim()};const jb="undefined"!=typeof globalThis?globalThis:window;try{jb.RelativeTimeElement=Lb.define()}catch(Db){if(!(jb.DOMException&&Db instanceof DOMException&&"NotSupportedError"===Db.name||Db instanceof ReferenceError))throw Db}
7
+ var R=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var P=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var t=Object.getOwnPropertyNames(r).map((function(e){return r[e]}));if("0123456789"!==t.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var o,t,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),n=1;n<arguments.length;n++){for(var l in o=Object(arguments[n]))D.call(o,l)&&(a[l]=o[l]);if(R){t=R(o);for(var i=0;i<t.length;i++)z.call(o,t[i])&&(a[t[i]]=o[t[i]])}}return a},_=E(P),H=function(e,r){var o=_({},e,r);for(var t in e){var a;e[t]&&"object"==typeof r[t]&&_(o,((a={})[t]=_(e[t],r[t]),a))}return o},F={breakpoints:[40,52,64].map((function(e){return e+"em"}))},V=function(e){return"@media screen and (min-width: "+e+")"},W=function(e,r){return $(r,e,e)},$=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},Z=function e(r){var o={},t=function(e){var t,a,n={},l=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var c in e)if(r[c]){var s=r[c],d=e[c],g=$(e.theme,s.scale,s.defaults);if("object"!=typeof d)_(n,s(d,g,e));else{if(o.breakpoints=!i&&o.breakpoints||$(e.theme,"breakpoints",F.breakpoints),Array.isArray(d)){o.media=!i&&o.media||[null].concat(o.breakpoints.map(V)),n=H(n,K(o.media,s,g,d,e));continue}null!==d&&(n=H(n,G(o.breakpoints,s,g,d,e)),l=!0)}}return l&&(t=n,a={},Object.keys(t).sort((function(e,r){return e.localeCompare(r,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){a[e]=t[e]})),n=a),n};t.config=r,t.propNames=Object.keys(r),t.cache=o;var a=Object.keys(r).filter((function(e){return"config"!==e}));return a.length>1&&a.forEach((function(o){var a;t[o]=e(((a={})[o]=r[o],a))})),t},K=function(e,r,o,t,a){var n={};return t.slice(0,e.length).forEach((function(t,l){var i,c=e[l],s=r(t,o,a);c?_(n,((i={})[c]=_({},n[c],s),i)):_(n,s)})),n},G=function(e,r,o,t,a){var n={};for(var l in t){var i=e[l],c=r(t[l],o,a);if(i){var s,d=V(i);_(n,((s={})[d]=_({},n[d],c),s))}else _(n,c)}return n},U=function(e){var r=e.properties,o=e.property,t=e.scale,a=e.transform,n=void 0===a?W:a,l=e.defaultScale;r=r||[o];var i=function(e,o,t){var a={},l=n(e,o,t);if(null!==l)return r.forEach((function(e){a[e]=l})),a};return i.scale=t,i.defaults=l,i},q=function(e){void 0===e&&(e={});var r={};return Object.keys(e).forEach((function(o){var t=e[o];r[o]=!0!==t?"function"!=typeof t?U(t):t:U({property:o,scale:o})})),Z(r)},Y=function(){for(var e={},r=arguments.length,o=new Array(r),t=0;t<r;t++)o[t]=arguments[t];return o.forEach((function(r){r&&r.config&&_(e,r.config)})),Z(e)},X={width:{property:"width",scale:"sizes",transform:function(e,r){return $(r,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},J=q(X),Q={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Q.bg=Q.backgroundColor;var ee=q(Q),re=q({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),oe=q({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),te={space:[0,4,8,16,32,64,128,256,512]},ae=q({gridGap:{property:"gridGap",scale:"space",defaultScale:te.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:te.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:te.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),ne={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};ne.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},ne.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},ne.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},ne.borderBottomColor={property:"borderBottomColor",scale:"colors"},ne.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},ne.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},ne.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},ne.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},ne.borderLeftColor={property:"borderLeftColor",scale:"colors"},ne.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},ne.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},ne.borderRightColor={property:"borderRightColor",scale:"colors"},ne.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var le=q(ne),ie={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};ie.bgImage=ie.backgroundImage,ie.bgSize=ie.backgroundSize,ie.bgPosition=ie.backgroundPosition,ie.bgRepeat=ie.backgroundRepeat;var ce=q(ie),se={space:[0,4,8,16,32,64,128,256,512]},de=q({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:se.space},right:{property:"right",scale:"space",defaultScale:se.space},bottom:{property:"bottom",scale:"space",defaultScale:se.space},left:{property:"left",scale:"space",defaultScale:se.space}}),ge={space:[0,4,8,16,32,64,128,256,512]},be=function(e){return"number"==typeof e&&!isNaN(e)},ve=function(e,r){if(!be(e))return $(r,e,e);var o=e<0,t=Math.abs(e),a=$(r,t,t);return be(a)?a*(o?-1:1):o?"-"+a:a},ue={};ue.margin={margin:{property:"margin",scale:"space",transform:ve,defaultScale:ge.space},marginTop:{property:"marginTop",scale:"space",transform:ve,defaultScale:ge.space},marginRight:{property:"marginRight",scale:"space",transform:ve,defaultScale:ge.space},marginBottom:{property:"marginBottom",scale:"space",transform:ve,defaultScale:ge.space},marginLeft:{property:"marginLeft",scale:"space",transform:ve,defaultScale:ge.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:ve,defaultScale:ge.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:ve,defaultScale:ge.space}},ue.margin.m=ue.margin.margin,ue.margin.mt=ue.margin.marginTop,ue.margin.mr=ue.margin.marginRight,ue.margin.mb=ue.margin.marginBottom,ue.margin.ml=ue.margin.marginLeft,ue.margin.mx=ue.margin.marginX,ue.margin.my=ue.margin.marginY,ue.padding={padding:{property:"padding",scale:"space",defaultScale:ge.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:ge.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:ge.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:ge.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:ge.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:ge.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:ge.space}},ue.padding.p=ue.padding.padding,ue.padding.pt=ue.padding.paddingTop,ue.padding.pr=ue.padding.paddingRight,ue.padding.pb=ue.padding.paddingBottom,ue.padding.pl=ue.padding.paddingLeft,ue.padding.px=ue.padding.paddingX,ue.padding.py=ue.padding.paddingY;var fe=q(ue.margin),he=q(ue.padding),pe=Y(fe,he),me=q({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function ye(){return ye=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ye.apply(this,arguments)}var xe=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},Ce=[40,52,64].map((function(e){return e+"em"})),we={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},ke={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},Be={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},Ee={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},Te=function(e,r){if("number"!=typeof r||r>=0)return xe(e,r,r);var o=Math.abs(r),t=xe(e,o,o);return"string"==typeof t?"-"+t:-1*t},Se=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,r){var o;return ye({},e,((o={})[r]=Te,o))}),{}),Ie=function e(r){return function(o){void 0===o&&(o={});var t=ye({},we,{},o.theme||o),a={},n=function(e){return function(r){var o={},t=xe(r,"breakpoints",Ce),a=[null].concat(t.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var n in e){var l="function"==typeof e[n]?e[n](r):e[n];if(null!=l)if(Array.isArray(l))for(var i=0;i<l.slice(0,a.length).length;i++){var c=a[i];c?(o[c]=o[c]||{},null!=l[i]&&(o[c][n]=l[i])):o[n]=l[i]}else o[n]=l}return o}}("function"==typeof r?r(t):r)(t);for(var l in n){var i=n[l],c="function"==typeof i?i(t):i;if("variant"!==l)if(c&&"object"==typeof c)a[l]=e(c)(t);else{var s=xe(ke,l,l),d=xe(Ee,s),g=xe(t,d,xe(t,s,{})),b=xe(Se,s,xe)(g,c,c);if(Be[s])for(var v=Be[s],u=0;u<v.length;u++)a[v[u]]=b;else a[s]=b}else a=ye({},a,{},e(xe(t,c))(t))}return a}},Me=function(e){var r,o,t=e.scale,a=e.prop,n=void 0===a?"variant":a,l=e.variants,i=void 0===l?{}:l,c=e.key;o=Object.keys(i).length?function(e,r,o){return Ie($(r,e,null))(o.theme)}:function(e,r){return $(r,e,null)},o.scale=t||c,o.defaults=i;var s=((r={})[n]=o,r);return Z(s)},Ne=Me({key:"buttons"}),Ae=Me({key:"textStyles",prop:"textStyle"}),Oe=Me({key:"colorStyles",prop:"colors"}),Le=J.width,je=J.height,Re=J.minWidth,De=J.minHeight,ze=J.maxWidth,Pe=J.maxHeight,_e=J.size,He=J.verticalAlign,Fe=J.display,Ve=J.overflow,We=J.overflowX,$e=J.overflowY,Ze=ee.opacity,Ke=re.fontSize,Ge=re.fontFamily,Ue=re.fontWeight,qe=re.lineHeight,Ye=re.textAlign,Xe=re.fontStyle,Je=re.letterSpacing,Qe=oe.alignItems,er=oe.alignContent,rr=oe.justifyItems,or=oe.justifyContent,tr=oe.flexWrap,ar=oe.flexDirection,nr=oe.flex,lr=oe.flexGrow,ir=oe.flexShrink,cr=oe.flexBasis,sr=oe.justifySelf,dr=oe.alignSelf,gr=oe.order,br=ae.gridGap,vr=ae.gridColumnGap,ur=ae.gridRowGap,fr=ae.gridColumn,hr=ae.gridRow,pr=ae.gridAutoFlow,mr=ae.gridAutoColumns,yr=ae.gridAutoRows,xr=ae.gridTemplateColumns,Cr=ae.gridTemplateRows,wr=ae.gridTemplateAreas,kr=ae.gridArea,Br=le.borderWidth,Er=le.borderStyle,Tr=le.borderColor,Sr=le.borderTop,Ir=le.borderRight,Mr=le.borderBottom,Nr=le.borderLeft,Ar=le.borderRadius,Or=ce.backgroundImage,Lr=ce.backgroundSize,jr=ce.backgroundPosition,Rr=ce.backgroundRepeat,Dr=de.zIndex,zr=de.top,Pr=de.right,_r=de.bottom,Hr=de.left,Fr=function(e){var r=e.prop,o=e.cssProperty,t=e.alias,a=e.key,n=e.transformValue,l=e.scale,i=e.properties,c={};return c[r]=U({properties:i,property:o||r,scale:a,defaultScale:l,transform:n}),t&&(c[t]=c[r]),Z(c)},Vr=Object.freeze({__proto__:null,alignContent:er,alignItems:Qe,alignSelf:dr,background:ce,backgroundImage:Or,backgroundPosition:jr,backgroundRepeat:Rr,backgroundSize:Lr,border:le,borderBottom:Mr,borderColor:Tr,borderLeft:Nr,borderRadius:Ar,borderRight:Ir,borderStyle:Er,borderTop:Sr,borderWidth:Br,borders:le,bottom:_r,boxShadow:me,buttonStyle:Ne,color:ee,colorStyle:Oe,compose:Y,createParser:Z,createStyleFunction:U,display:Fe,flex:nr,flexBasis:cr,flexDirection:ar,flexGrow:lr,flexShrink:ir,flexWrap:tr,flexbox:oe,fontFamily:Ge,fontSize:Ke,fontStyle:Xe,fontWeight:Ue,get:$,grid:ae,gridArea:kr,gridAutoColumns:mr,gridAutoFlow:pr,gridAutoRows:yr,gridColumn:fr,gridColumnGap:vr,gridGap:br,gridRow:hr,gridRowGap:ur,gridTemplateAreas:wr,gridTemplateColumns:xr,gridTemplateRows:Cr,height:je,justifyContent:or,justifyItems:rr,justifySelf:sr,layout:J,left:Hr,letterSpacing:Je,lineHeight:qe,margin:fe,maxHeight:Pe,maxWidth:ze,minHeight:De,minWidth:Re,opacity:Ze,order:gr,overflow:Ve,overflowX:We,overflowY:$e,padding:he,position:de,right:Pr,shadow:me,size:_e,space:pe,style:Fr,system:q,textAlign:Ye,textShadow:me,textStyle:Ae,top:zr,typography:re,variant:Me,verticalAlign:He,width:Le,zIndex:Dr});const{get:Wr,compose:$r,system:Zr}=Vr,Kr=e=>{return r=e,void 0===(o=Wr(j,e))&&(o=null),function(e){return $(e.theme,r,o)};var r,o},Gr=$r(pe,ee,Fe),Ur=$r(re,Zr({whiteSpace:{property:"whiteSpace"}}));$r(le,me);var qr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===Yr}(e)}(e)};var Yr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?oo((o=e,Array.isArray(o)?[]:{}),e,r):e;var o}function Jr(e,r,o){return e.concat(r).map((function(e){return Xr(e,o)}))}function Qr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return e.propertyIsEnumerable(r)})):[]}(e))}function eo(e,r){try{return r in e}catch(e){return!1}}function ro(e,r,o){var t={};return o.isMergeableObject(e)&&Qr(e).forEach((function(r){t[r]=Xr(e[r],o)})),Qr(r).forEach((function(a){(function(e,r){return eo(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(eo(e,a)&&o.isMergeableObject(r[a])?t[a]=function(e,r){if(!r.customMerge)return oo;var o=r.customMerge(e);return"function"==typeof o?o:oo}(a,o)(e[a],r[a],o):t[a]=Xr(r[a],o))})),t}function oo(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||Jr,o.isMergeableObject=o.isMergeableObject||qr,o.cloneUnlessOtherwiseSpecified=Xr;var t=Array.isArray(r);return t===Array.isArray(e)?t?o.arrayMerge(e,r,o):ro(e,r,o):Xr(r,o)}oo.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return oo(e,o,r)}),{})};var to=E(oo);const ao=!0;function no(e){if(!e.defaultPrevented)for(const r of Object.values(lo).reverse())if(r(e)===ao||e.defaultPrevented)break}const lo={};let io=0;const co=({containerRef:e,ignoreClickRefs:r,onClickOutside:n})=>{const l=o((()=>io++),[]),i=t((o=>{var t;return o instanceof MouseEvent&&o.button>0||null!==(t=e.current)&&void 0!==t&&t.contains(o.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(o.target)))?ao:void n(o)}),[e,r,n]);a((()=>(0===Object.keys(lo).length&&document.addEventListener("mousedown",no,{capture:!0}),function(e,r){lo[e]=r}(l,i),()=>{!function(e){delete lo[e]}(l),0===Object.keys(lo).length&&document.removeEventListener("mousedown",no,{capture:!0})})),[l,i])};function so(e){const o=r.useRef(null);return null!=e?e:o}function go(e){if(!e.defaultPrevented)for(const r of Object.values(bo).reverse())if(r(e),e.defaultPrevented)break}const bo={};let vo=0;const uo=(e,r=[e])=>{const n=t(e,r),l=t((e=>{"Escape"===e.key&&n(e)}),[n]),i=o((()=>vo++),[]);a((()=>(0===Object.keys(bo).length&&document.addEventListener("keydown",go),function(e,r){bo[e]=r}(i,l),()=>{!function(e){delete bo[e]}(i),0===Object.keys(bo).length&&document.removeEventListener("keydown",go)})),[i,l])};function*fo(e,r={}){var o,t;const a=null!==(o=r.strict)&&void 0!==o&&o,n=null!==(t=r.onlyTabbable)&&void 0!==t&&t?mo:po,l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let i=null;if(!r.reverse&&n(e,a)&&(yield e),r.reverse){let e=l.lastChild();for(;e;)i=e,e=l.lastChild()}else i=l.firstChild();for(;i instanceof HTMLElement;)yield i,i=r.reverse?l.previousNode():l.nextNode();r.reverse&&n(e,a)&&(yield e)}function ho(e,r=!1){return fo(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function po(e,r=!1){const o=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,t=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type,n=e.classList.contains("sentinel");if(o||t||a||n)return!1;if(r){const r=getComputedStyle(e),o=0===e.offsetWidth||0===e.offsetHeight,t=["hidden","collapse"].includes(r.visibility),a="none"===r.display||!e.offsetParent,n=0===e.getClientRects().length;if(o||t||n||a)return!1}return null!=e.getAttribute("tabindex")||("true"===e.getAttribute("contenteditable")||"plaintext-only"===e.getAttribute("contenteditable")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex)}function mo(e,r=!1){return po(e,r)&&"-1"!==e.getAttribute("tabindex")}let yo,xo=1e4;function Co(){return void 0===yo&&(yo=/^mac/i.test(window.navigator.platform)),yo}function wo({initialFocusRef:e,returnFocusRef:r,containerRef:o,preventFocusOnOpen:t}){a((()=>{if(t)return;const a=r.current;if(e&&e.current)e.current.focus();else if(o.current){const e=fo(o.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,r,o,t])}const ko={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},Bo={start:["end","center"],end:["start","center"],center:["end","start"]};function Eo(e,r,o={}){const t=function(e){if(function(e){var r;if("DIALOG"===e.tagName)return!0;try{if(e.matches(":popover-open")&&/native code/.test(null===(r=document.body.showPopover)||void 0===r?void 0:r.toString()))return!0}catch(e){return!1}return!1}(e))return document.body;let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),a=function(e){let r=e;for(;null!==r&&r instanceof Element;){if("visible"!==getComputedStyle(r).overflow)break;r=r.parentNode}const o=r!==document.body&&r instanceof HTMLElement?r:document.body,t=o.getBoundingClientRect(),a=getComputedStyle(o),[n,l,i,c]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:t.top+n,left:t.left+l,width:t.width-i-l,height:Math.max(t.height-n-c,o===document.body?window.innerHeight:-1/0)}}(t),n=getComputedStyle(t),l=t.getBoundingClientRect(),[i,c]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,o,t,{side:a,align:n,allowOutOfBounds:l,anchorOffset:i,alignmentOffset:c}){const s={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let d=So(o,t,a,n,i,c),g=a,b=n;if(d.top-=r.top,d.left-=r.left,!l){const l=ko[a];let v=0;if(l){let e=a;for(;v<l.length&&Io(e,d,s,o);){const a=l[v++];e=a,d=So(o,t,a,n,i,c),d.top-=r.top,d.left-=r.left,g=a}}const u=Bo[n];let f=0;if(u){let e=n;for(;f<u.length&&Mo(e,d,s,o);){const a=u[f++];e=a,d=So(o,t,g,a,i,c),d.top-=r.top,d.left-=r.left,b=a}}d.top<s.top&&(d.top=s.top),d.left<s.left&&(d.left=s.left),d.left+o.width>e.width+s.left&&(d.left=e.width+s.left-o.width),l&&v<l.length&&d.top+o.height>e.height+s.top&&(d.top=Math.max(e.height+s.top-o.height,0))}return Object.assign(Object.assign({},d),{anchorSide:g,anchorAlign:b})}(a,{top:l.top+i,left:l.left+c},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,o,t,a,n;const l=null!==(r=e.side)&&void 0!==r?r:To.side,i=null!==(o=e.align)&&void 0!==o?o:To.align;return{side:l,align:i,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===l?0:To.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==i&&l.startsWith("inside")?To.alignmentOffset:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:To.allowOutOfBounds}}(o))}const To={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function So(e,r,o,t,a,n){const l=r.left+r.width,i=r.top+r.height;let c=-1,s=-1;return"outside-top"===o?c=r.top-a-e.height:"outside-bottom"===o?c=i+a:"outside-left"===o?s=r.left-a-e.width:"outside-right"===o&&(s=l+a),"outside-top"!==o&&"outside-bottom"!==o||(s="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n),"outside-left"!==o&&"outside-right"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),"inside-top"===o?c=r.top+a:"inside-bottom"===o?c=i-a-e.height:"inside-left"===o?s=r.left+a:"inside-right"===o?s=l-a-e.width:"inside-center"===o&&(s=(l+r.left)/2-e.width/2+a),"inside-top"===o||"inside-bottom"===o?s="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n:"inside-left"!==o&&"inside-right"!==o&&"inside-center"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),{top:c,left:s}}function Io(e,r,o,t){return"outside-top"===e||"outside-bottom"===e?r.top<o.top||r.top+t.height>o.height+o.top:r.left<o.left||r.left+t.width>o.width+o.left}function Mo(e,r,o,t){return"end"===e?r.left<o.left:"start"===e||"center"===e?r.left+t.width>o.left+o.width||r.left<o.left:void 0}let No=!1;function Ao(){}try{const e=Object.create({},{signal:{get(){No=!0}}});window.addEventListener("test",Ao,e),window.removeEventListener("test",Ao,e)}catch(Db){}function Oo(){No||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,o,t){return"object"==typeof t&&"signal"in t&&t.signal instanceof AbortSignal&&e.call(t.signal,"abort",(()=>{this.removeEventListener(r,o,t)})),e.call(this,r,o,t)}}(),No=!0)}Oo();const Lo=[];let jo;function Ro(e,r,o){const t=new AbortController,a=null!=o?o:t.signal;e.setAttribute("data-focus-trap","active");const n=document.createElement("span");n.setAttribute("class","sentinel"),n.setAttribute("tabindex","0"),n.setAttribute("aria-hidden","true"),n.onfocus=()=>{const r=ho(e,!0);null==r||r.focus()};const l=document.createElement("span");let i;function c(o){if(o instanceof HTMLElement&&document.contains(e)){if(e.contains(o))return void(i=o);if(i&&mo(i)&&e.contains(i))return void i.focus();if(r&&e.contains(r))return void r.focus();{const r=ho(e);return void(null==r||r.focus())}}}l.setAttribute("class","sentinel"),l.setAttribute("tabindex","0"),l.setAttribute("aria-hidden","true"),l.onfocus=()=>{const r=ho(e);null==r||r.focus()},e.prepend(n),e.append(l);const s=function(e){const r=new AbortController;return e.addEventListener("abort",(()=>{r.abort()})),r}(a);if(jo){const e=jo;jo.container.setAttribute("data-focus-trap","suspended"),jo.controller.abort(),Lo.push(e)}s.signal.addEventListener("abort",(()=>{jo=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=e.getElementsByClassName("sentinel");for(;r.length>0;)r[0].remove();const o=Lo.findIndex((r=>r.container===e));o>=0&&Lo.splice(o,1),function(){const e=Lo.pop();e&&Ro(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{c(e.target)}),{signal:s.signal,capture:!0}),c(document.activeElement),jo={container:e,controller:s,initialFocus:r,originalSignal:a};const d=Lo.findIndex((r=>r.container===e));if(d>=0&&Lo.splice(d,1),!o)return t}var Do;Oo(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(Do||(Do={}));const zo={ArrowLeft:Do.ArrowHorizontal,ArrowDown:Do.ArrowVertical,ArrowUp:Do.ArrowVertical,ArrowRight:Do.ArrowHorizontal,h:Do.HL,j:Do.JK,k:Do.JK,l:Do.HL,a:Do.AD,s:Do.WS,w:Do.WS,d:Do.AD,Tab:Do.Tab,Home:Do.HomeAndEnd,End:Do.HomeAndEnd,PageUp:Do.PageUpDown,PageDown:Do.PageUpDown,Backspace:Do.Backspace},Po={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function _o(e){const r=Po[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const o=Co();if(o&&e.metaKey||!o&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}const Ho="data-is-active-descendant",Fo="activated-directly",Vo="activated-indirectly",Wo="data-has-active-descendant";function $o(e,r){var o,t,a,n,l;const i=[],c=new WeakMap,s=null!==(o=null==r?void 0:r.bindKeys)&&void 0!==o?o:((null==r?void 0:r.getNextFocusable)?Do.ArrowAll:Do.ArrowVertical)|Do.HomeAndEnd,d=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",g=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",b=null==r?void 0:r.activeDescendantControl,v=null==r?void 0:r.onActiveDescendantChanged;let u;const f=null!==(n=null==r?void 0:r.preventScroll)&&void 0!==n&&n;function h(){return i[0]}function p(e,r=!1){const o=u;u=e,b?e&&document.activeElement===b?m(o,e,r):y():(o&&o!==e&&c.has(o)&&o.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(r,o,t=!1){o.id||o.setAttribute("id","__primer_id_"+xo++),r&&r!==o&&r.removeAttribute(Ho),b&&(t||b.getAttribute("aria-activedescendant")!==o.id)&&(b.setAttribute("aria-activedescendant",o.id),e.setAttribute(Wo,o.id),o.setAttribute(Ho,t?Fo:Vo),null==v||v(o,r,t))}function y(r=u){"first"===g&&(u=void 0),null==b||b.removeAttribute("aria-activedescendant"),e.removeAttribute(Wo),null==r||r.removeAttribute(Ho),null==v||v(void 0,r,!1)}function x(...e){const o=e.filter((e=>{var o,t;return null===(t=null===(o=null==r?void 0:r.focusableElementFilter)||void 0===o?void 0:o.call(r,e))||void 0===t||t}));if(0!==o.length){i.splice(function(e){const r=e[0];if(0===i.length)return 0;let o=0,t=i.length-1;for(;o<=t;){const e=Math.floor((o+t)/2);C(r,i[e])?t=e-1:o=e+1}return o}(o),0,...o);for(const e of o)c.has(e)||c.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");u||p(h())}}function C(e,r){return(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)>0}function w(...e){for(const r of e){const e=i.indexOf(r);e>=0&&i.splice(e,1);const o=c.get(r);if(void 0!==o&&(null===o?r.removeAttribute("tabindex"):r.setAttribute("tabindex",o),c.delete(r)),r===u){p(h())}}}const k={reverse:null==r?void 0:r.reverse,strict:null==r?void 0:r.strict,onlyTabbable:null==r?void 0:r.onlyTabbable};x(...fo(e,k));p("function"==typeof g?g(document.body):h());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...fo(e,k));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...fo(e,k))})).observe(e,{subtree:!0,childList:!0});const B=new AbortController,E=null!==(l=null==r?void 0:r.abortSignal)&&void 0!==l?l:B.signal;let T;E.addEventListener("abort",(()=>{w(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(T=i.indexOf(e.target))}),{signal:E}),b?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(b.focus({preventScroll:f}),p(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=i.find((r=>r.contains(e)));r&&p(r)}),{signal:E,capture:!0}),b.addEventListener("focusin",(()=>{u?m(void 0,u):p(h())})),b.addEventListener("focusout",(()=>{y()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==T)T>=0&&i[T]!==u&&p(i[T]),T=void 0;else if("previous"===g)p(r.target);else if("closest"===g||"first"===g){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===I?i.length-1:0,r=i[e];return void(null==r||r.focus({preventScroll:f}))}p(r.target)}else if("function"==typeof g)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=g(r.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:f});console.warn("Element requested is not a known focusable element.")}else p(r.target);I=void 0}),{signal:E});const S=null!=b?b:e;let I;return"closest"===g&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=_o(e))}),{signal:E,capture:!0}),S.addEventListener("keydown",(o=>{var t;if(o.key in Po){const a=zo[o.key];if(!o.defaultPrevented&&(a&s)>0&&!function(e,r){const o=e.key,t=[...o].length,a=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(a&&(1===t||"Home"===o||"End"===o))return!0;if(r instanceof HTMLSelectElement){if(1===t)return!0;if("ArrowDown"===o&&Co()&&!e.metaKey)return!0;if("ArrowDown"===o&&!Co()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===o||"PageDown"===o))return!0;if(a){const e=r,t=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===o&&!t)return!0;if("ArrowRight"===o&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===o&&!t)return!0;if("ArrowDown"===o&&!a)return!0}}return!1}(o,document.activeElement)){const a=_o(o);let n;if((null==r?void 0:r.getNextFocusable)&&(n=r.getNextFocusable(a,null!==(t=document.activeElement)&&void 0!==t?t:void 0,o)),!n){const r=function(){if(!u)return 0;const r=i.indexOf(u);return-1!==r?r:u===e?-1:0}();let t=r;"previous"===a?t-=1:"start"===a?t=0:"next"===a?t+=1:t=i.length-1,t<0&&(t="wrap"===d&&"Tab"!==o.key?i.length-1:0),t>=i.length&&(t="wrap"===d&&"Tab"!==o.key?0:i.length-1),r!==t&&(n=i[t])}b?p(n||u,!0):n&&(I=a,n.focus({preventScroll:f})),("Tab"!==o.key||n)&&o.preventDefault()}}}),{signal:E}),B}function Zo(e,r,{direction:o="vertical",startMargin:t=0,endMargin:a=0,behavior:n="smooth"}={}){const l="vertical"===o?"top":"left",i="vertical"===o?"bottom":"right",c="vertical"===o?"scrollTop":"scrollLeft",{[l]:s,[i]:d}=e.getBoundingClientRect(),{[l]:g,[i]:b}=r.getBoundingClientRect(),v=d>b-a;if(s<g+t){const e=s-g+r[c];r.scrollTo({behavior:n,[l]:e-t})}else if(v){const e=d-b+r[c];r.scrollTo({behavior:n,[l]:e+a})}}const Ko="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n:a;function Go(e,r){const o=l(e);Ko((()=>{o.current=e})),Ko((()=>{const e=r&&"current"in r?r.current:document.documentElement;if(!e)return;const t=new ResizeObserver((e=>{o.current(e)}));return t.observe(e),()=>{t.disconnect()}}),[r])}function Uo(e,o=[]){const t=so(null==e?void 0:e.floatingElementRef),a=so(null==e?void 0:e.anchorElementRef),[n,l]=r.useState(void 0),i=r.useCallback((()=>{t.current instanceof Element&&a.current instanceof Element?l(Eo(t.current,a.current,e)):l(void 0)}),[t,a,...o]);return Ko(i,[i]),Go(i),{floatingElementRef:t,anchorElementRef:a,position:n}}const qo=({overlayRef:e,returnFocusRef:r,initialFocusRef:o,onEscape:t,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:l})=>{const i=so(e);wo({containerRef:i,returnFocusRef:r,initialFocusRef:o,preventFocusOnOpen:l}),co({containerRef:i,ignoreClickRefs:a,onClickOutside:n});return uo((e=>{t(e),e.preventDefault()})),{ref:i}};function Yo(e){const[r,o]=i(e||null),a=l(null);a.current=r;const n=t((e=>{a.current=e,o(e)}),[a]);return[a,n]}function Xo(e,r,o){const[a,n]=i(o),l=null!=e?e:a,c=t((e=>{n(e),r&&r(e)}),[r]);return[l,c]}const Jo=(e,o,t,a)=>{((e,o,t)=>{const[a,n]=r.useState(void 0);r.useEffect((function(){const e=t.current,r=e=>{0!==e.detail&&n("mouse-click")},o=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&n(e.code)};return null==e||e.addEventListener("click",r),null==e||e.addEventListener("keydown",o),()=>{null==e||e.removeEventListener("click",r),null==e||e.removeEventListener("keydown",o)}}),[t]),r.useEffect((function(){if(!e||!o.current)return;const r=fo(o.current);if("mouse-click"===a){if(!t.current)throw new Error("For focus management, please attach anchorRef");t.current.focus()}else if(a&&["ArrowDown","Space","Enter"].includes(a)){const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===a){const e=[...r],o=e[e.length-1];setTimeout((()=>o.focus()))}else{const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,a,t])})(e,t,a),((e,o)=>{const t=so(o);r.useEffect((function(){e&&t.current&&[...fo(t.current)].map((e=>{var r;if(e.getAttribute("aria-keyshortcuts"))return;const o=null===(r=e.textContent)||void 0===r?void 0:r.toLowerCase()[0];o&&e.setAttribute("aria-keyshortcuts",o)}))}),[e,t]),r.useEffect((function(){if(!e||!t.current)return;const r=t.current,o=e=>{var o;const t=document.activeElement;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!a(e))return;e.stopPropagation();const n=e.key.toLowerCase();let l;const i=[...fo(r)].filter((e=>{var r;const o=null===(r=e.getAttribute("aria-keyshortcuts"))||void 0===r?void 0:r.split(" ").map((e=>e.toLowerCase()));return o&&o.includes(n)})),c=i.indexOf(t);l=c===i.length-1?i[0]:i.find(((e,r)=>r>c)),null===(o=l)||void 0===o||o.focus()};return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)}),[e,t]);const a=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,t),Qo(e,o,t,a),et(e,t,a)},Qo=(e,o,t,a)=>{r.useEffect((()=>{const r=t.current,n=a.current,l=r=>{e&&"Tab"===r.key&&(null==o||o("tab"))};return null==r||r.addEventListener("keydown",l),null==n||n.addEventListener("keydown",l),()=>{null==r||r.removeEventListener("keydown",l),null==n||n.removeEventListener("keydown",l)}}),[e,o,t,a])},et=(e,o,t)=>{r.useEffect((()=>{const r=o.current,a=t.current,n=o=>{if(!e||!r)return;const t=fo(r);if("ArrowDown"===o.key){const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===o.key){const e=[...t],r=e[e.length-1];setTimeout((()=>r.focus()))}};return null==a||a.addEventListener("keydown",n),()=>null==a?void 0:a.addEventListener("keydown",n)}),[e,o,t])};function rt(e,r){c(e,(()=>r.current))}function ot(e){const r=s();return e||r}const tt="light",at="dark",nt=r.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),lt=({children:e,...o})=>{var t,a,n,l,i,c,s,d;const{theme:g,colorMode:b,dayScheme:v,nightScheme:u}=it(),f=null!==(t=null!==(a=o.theme)&&void 0!==a?a:g)&&void 0!==t?t:j,h=ot(),{resolvedServerColorMode:m}=(e=>{try{var r;const o=null===(r=document.getElementById(`__PRIMER_DATA_${e}__`))||void 0===r?void 0:r.textContent;if(o)return JSON.parse(o)}catch(e){}return{}})(h),y=r.useRef(m),[x,C]=r.useState(null!==(n=null!==(l=o.colorMode)&&void 0!==l?l:b)&&void 0!==n?n:"day"),[k,B]=r.useState(null!==(i=null!==(c=o.dayScheme)&&void 0!==c?c:v)&&void 0!==i?i:tt),[E,T]=r.useState(null!==(s=null!==(d=o.nightScheme)&&void 0!==d?d:u)&&void 0!==s?s:at),S=function(){const[e,o]=r.useState(st);return r.useEffect((()=>{var e,r;const t=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function a(e){return e?"night":"day"}function n(e){const r=e.matches;o(a(r))}if(t){const e=t.matches;if(o(a(e)),void 0!==t.addEventListener)return t.addEventListener("change",n),function(){t.removeEventListener("change",n)};if(void 0!==t.addListener)return t.addListener(n),function(){t.removeListener(n)}}}),[]),e}(),I=y.current||dt(x,S),M=function(e,r,o){switch(e){case"day":case"light":return r;case"dark":case"night":return o}}(I,k,E),{resolvedTheme:N,resolvedColorScheme:A}=r.useMemo((()=>function(e,r){if(!e.colorSchemes)return{resolvedTheme:e,resolvedColorScheme:void 0};if(!e.colorSchemes[r]){console.error(`\`${r}\` scheme not defined in \`theme.colorSchemes\``);const o=Object.keys(e.colorSchemes)[0];return{resolvedTheme:to(e,e.colorSchemes[o]),resolvedColorScheme:o}}return{resolvedTheme:to(e,e.colorSchemes[r]),resolvedColorScheme:r}}(f,M)),[f,M]);return r.useEffect((function(){const e=dt(x,S);y.current&&(y.current!==e&&window.setTimeout((()=>{w.flushSync((()=>{C(e)})),C(x)})),y.current=null)}),[x,S]),r.useEffect((()=>{var e,r;C(null!==(e=null!==(r=o.colorMode)&&void 0!==r?r:b)&&void 0!==e?e:"day")}),[o.colorMode,b]),r.useEffect((()=>{var e,r;B(null!==(e=null!==(r=o.dayScheme)&&void 0!==r?r:v)&&void 0!==e?e:tt)}),[o.dayScheme,v]),r.useEffect((()=>{var e,r;T(null!==(e=null!==(r=o.nightScheme)&&void 0!==r?r:u)&&void 0!==e?e:at)}),[o.nightScheme,u]),r.createElement(nt.Provider,{value:{theme:N,colorScheme:M,colorMode:x,resolvedColorMode:I,resolvedColorScheme:A,dayScheme:k,nightScheme:E,setColorMode:C,setDayScheme:B,setNightScheme:T}},r.createElement(p,{theme:N},e,o.preventSSRMismatch?r.createElement("script",{type:"application/json",id:`__PRIMER_DATA_${h}__`,dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:I})}}):null))};function it(){return r.useContext(nt)}function ct(e,r){var o;const{colorScheme:t=""}=it();return null!==(o=e[t])&&void 0!==o?o:r}function st(){var e,r,o;return"undefined"!=typeof window&&null!==(e=(r=window).matchMedia)&&void 0!==e&&null!==(o=e.call(r,"(prefers-color-scheme: dark)"))&&void 0!==o&&o.matches?"night":"day"}function dt(e,r){return"auto"===e?r:e}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gt.apply(this,arguments)}lt.displayName="ThemeProvider",function(){function e(e){var r=!0,o=!1,t=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function n(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function l(e){var r=e.type,o=e.tagName;return!("INPUT"!==o||!a[r]||e.readOnly)||"TEXTAREA"===o&&!e.readOnly||!!e.isContentEditable}function i(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function s(o){o.metaKey||o.altKey||o.ctrlKey||(n(e.activeElement)&&i(e.activeElement),r=!0)}function d(e){r=!1}function g(e){n(e.target)&&(r||l(e.target))&&i(e.target)}function b(e){n(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(t),t=window.setTimeout((function(){o=!1}),100),c(e.target))}function v(e){"hidden"===document.visibilityState&&(o&&(r=!0),u())}function u(){document.addEventListener("mousemove",h),document.addEventListener("mousedown",h),document.addEventListener("mouseup",h),document.addEventListener("pointermove",h),document.addEventListener("pointerdown",h),document.addEventListener("pointerup",h),document.addEventListener("touchmove",h),document.addEventListener("touchstart",h),document.addEventListener("touchend",h)}function f(){document.removeEventListener("mousemove",h),document.removeEventListener("mousedown",h),document.removeEventListener("mouseup",h),document.removeEventListener("pointermove",h),document.removeEventListener("pointerdown",h),document.removeEventListener("pointerup",h),document.removeEventListener("touchmove",h),document.removeEventListener("touchstart",h),document.removeEventListener("touchend",h)}function h(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r=!1,f())}document.addEventListener("keydown",s,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",v,!0),u(),e.addEventListener("focus",g,!0),e.addEventListener("blur",b,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var r;window.applyFocusVisiblePolyfill=e;try{r=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(r)}"undefined"!=typeof document&&e(document)}();const bt=m(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}input{color-scheme:",';}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}'],(e=>e.colorScheme)),vt=h.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Ur,Gr);function ut(e){const{children:o,color:t="fg.default",fontFamily:a="normal",lineHeight:n="default",...l}=e,{colorScheme:i,dayScheme:c,nightScheme:s}=it();return r.createElement(vt,gt({},l,{color:t,fontFamily:a,lineHeight:n,"data-portal-root":!0,"data-color-mode":null!=i&&i.includes("dark")?"dark":"light","data-light-theme":c,"data-dark-theme":s}),r.createElement(bt,{colorScheme:null!=i&&i.includes("dark")?"dark":"light"}),o)}ut.displayName="BaseStyles";const ft=e=>Ie(e.sx),ht=h.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(pe,ee,re,J,oe,ae,ce,le,de,me,ft),pt=y(["box-shadow:none;outline:2px solid ",";"],Kr("colors.accent.fg")),mt=e=>y(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],pt,void 0===e?"2px":e,pt,void 0===e?"2px":e),yt=h.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],mt("-2px"),ft),xt=(e="default",r)=>({default:{color:"btn.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}, ${null==r?void 0:r.shadows.btn.insetShadow}`,"&:hover:not([disabled]):not([data-inactive])":{backgroundColor:"btn.hoverBg",borderColor:`var(--button-default-borderColor-hover, ${null==r?void 0:r.colors.btn.hoverBorder})`},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},"&:disabled":{color:"primer.fg.disabled",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:`var(--button-default-bgColor-disabled, ${null==r?void 0:r.colors.input.disabledBg})`,"[data-component=ButtonCounter]":{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},'[data-component="leadingVisual"], [data-component="trailingVisual"], [data-component="trailingAction"]':{color:`var(--button-color, ${null==r?void 0:r.colors.fg.muted})`},"[data-component=ButtonCounter]":{backgroundColor:"btn.counterBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"}},primary:{color:"btn.primary.text",backgroundColor:"btn.primary.bg",borderColor:"btn.primary.border",boxShadow:`${null==r?void 0:r.shadows.btn.primary.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.primary.hoverText",backgroundColor:"btn.primary.hoverBg"},"&:focus:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:focus-visible:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`},"&:disabled":{color:"btn.primary.disabledText",backgroundColor:"btn.primary.disabledBg",borderColor:"btn.primary.disabledBorder","[data-component=ButtonCounter]":{color:"inherit"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.primary.counterBg",color:"btn.primary.text"},"&[aria-expanded=true]":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`}},danger:{color:"btn.danger.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.danger.hoverText",backgroundColor:"btn.danger.hoverBg",borderColor:"btn.danger.hoverBorder",boxShadow:`${null==r?void 0:r.shadows.btn.danger.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.danger.hoverCounterBg",color:"btn.danger.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"},"&:disabled":{color:"btn.danger.disabledText",backgroundColor:"btn.danger.disabledBg",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,"[data-component=ButtonCounter]":{color:"btn.danger.disabledCounterFg",backgroundColor:"btn.danger.disabledCounterBg"}},"[data-component=ButtonCounter]":{color:"btn.danger.counterFg",backgroundColor:"btn.danger.counterBg"},"&[aria-expanded=true]":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"}},invisible:{color:"btn.text",backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none","&:hover:not([disabled])":{backgroundColor:"actionListItem.default.hoverBg"},"&:active:not([disabled])":{backgroundColor:"actionListItem.default.activeBg"},"&:disabled":{color:"primer.fg.disabled",'[data-component=ButtonCounter], [data-component="leadingVisual"], [data-component="trailingAction"]':{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"actionListItem.default.selectedBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"},'[data-component="trailingAction"]':{color:"fg.muted"},'[data-component="leadingVisual"]':{color:"fg.muted"},"&[data-no-visuals]":{color:"accent.fg"},'&:has([data-component="ButtonCounter"])':{color:"btn.text"},"&:disabled[data-no-visuals]":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}}},outline:{color:"btn.outline.text",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,borderColor:`var(--button-default-borderColor-rest, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:"btn.bg","&:hover:not([disabled]):not([data-inactive])":{color:"btn.outline.hoverText",backgroundColor:"btn.outline.hoverBg",borderColor:`${null==r?void 0:r.colors.btn.outline.hoverBorder}`,boxShadow:`${null==r?void 0:r.shadows.btn.outline.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.hoverCounterBg",color:"btn.outline.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`${null==r?void 0:r.colors.btn.outline.selectedBorder}`},"&:disabled":{color:"btn.outline.disabledText",backgroundColor:"btn.outline.disabledBg",borderColor:"btn.border","[data-component=ButtonCounter]":{backgroundColor:"btn.outline.disabledCounterBg",color:"btn.outline.disabledCounterFg"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.counterBg",color:"btn.outline.counterFg"},"&[aria-expanded=true]":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.outline.selectedBorder})`}}}[e]),Ct=e=>({borderRadius:"2",border:"1px solid",borderColor:`var(--button-default-borderColor-rest, ${null==e?void 0:e.colors.btn.border})`,fontFamily:"inherit",fontWeight:"semibold",fontSize:"1",cursor:"pointer",appearance:"none",userSelect:"none",textDecoration:"none",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px",padding:"0 12px",gap:"8px",minWidth:"max-content",transition:"80ms cubic-bezier(0.65, 0, 0.35, 1)",transitionProperty:"color, fill, background-color, border-color","&[href]":{display:"inline-flex","&:hover":{textDecoration:"none"}},"&:hover":{transitionDuration:"80ms"},"&:active":{transition:"none"},"&[data-inactive]":{cursor:"auto"},"&:disabled":{cursor:"not-allowed",boxShadow:"none"},"@media (forced-colors: active)":{"&:focus":{outline:"solid 1px transparent"}},"[data-component=ButtonCounter]":{fontSize:"0"},"&[data-component=IconButton]":{display:"inline-grid",padding:"unset",placeContent:"center",width:"32px",minWidth:"unset"},'&[data-size="small"]':{padding:"0 8px",height:"28px",gap:"4px",fontSize:"0",'[data-component="text"]':{lineHeight:"calc(20 / 12)"},"[data-component=ButtonCounter]":{fontSize:"0"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"4px"},"&[data-component=IconButton]":{width:"28px",padding:"unset"}},'&[data-size="large"]':{padding:"0 16px",height:"40px",gap:"8px",'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"},"&[data-component=IconButton]":{width:"40px",padding:"unset"}}}),wt=e=>({...Ct(e),'&[data-block="block"]':{width:"100%"},"&[data-inactive]:not([disabled])":{backgroundColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,borderColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,color:`var(--button-inactive-fgColor, ${null==e?void 0:e.colors.btn.inactive.text})`},"&[data-inactive]:not([disabled]):focus-visible":{boxShadow:"none"},'[data-component="leadingVisual"]':{gridArea:"leadingVisual"},'[data-component="text"]':{gridArea:"text",lineHeight:"calc(20/14)",whiteSpace:"nowrap"},'[data-component="trailingVisual"]':{gridArea:"trailingVisual"},'[data-component="trailingAction"]':{marginRight:"-4px"},'[data-component="buttonContent"]':{flex:"1 0 auto",display:"grid",gridTemplateAreas:'"leadingVisual text trailingVisual"',gridTemplateColumns:"min-content minmax(0, auto) min-content",alignItems:"center",alignContent:"center"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"}}),kt=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"}),Bt={},Et=h.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?ft:"\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n "));function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tt.apply(this,arguments)}const St=d((({scheme:e="secondary",sx:o=Bt,children:t,...a},n)=>r.createElement(r.Fragment,null,r.createElement(ht,Tt({"aria-hidden":"true",sx:to({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",border:"var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--counter-borderColor,var(--color-counter-border))",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},o)},a,{as:"span",ref:n}),t),r.createElement(Et,null," (",t,")"))));function It(){return It=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},It.apply(this,arguments)}St.displayName="CounterLabel";const Mt=d((({children:e,as:t="button",sx:a=Bt,...n},l)=>{const{leadingVisual:i,trailingVisual:c,trailingAction:s,count:d,icon:g,variant:b="default",size:v="medium",alignContent:u="center",block:f=!1,inactive:h,...p}=n,m=r.useRef(null);rt(l,m);const{theme:y}=it(),x=o((()=>to.all([wt(y),xt(b,y)])),[y,b]),C=o((()=>to(x,a)),[x,a]),w={display:"flex",pointerEvents:"none"};return r.createElement(yt,It({as:t,sx:C},p,{ref:m,"data-block":f?"block":null,"data-size":"small"===v||"large"===v?v:void 0,"data-no-visuals":!(i||c||s)||void 0,"data-inactive":!!h||void 0}),g?r.createElement(g,null):r.createElement(r.Fragment,null,r.createElement(ht,{as:"span","data-component":"buttonContent",sx:kt(u)},i&&r.createElement(ht,{as:"span","data-component":"leadingVisual",sx:{...w}},r.createElement(i,null)),e&&r.createElement("span",{"data-component":"text"},e),void 0===d||c?c?r.createElement(ht,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(c,null)):null:r.createElement(ht,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(St,{"data-component":"ButtonCounter"},d))),s&&r.createElement(ht,{as:"span","data-component":"trailingAction",sx:{...w}},r.createElement(s,null))))}));function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Nt.apply(this,arguments)}const At=d((({children:e,sx:o=Bt,...t},a)=>{const{block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:s}=t;let d=o;const g={};if(null!==o&&Object.keys(o).length>0){d=Ot({block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:s},o);const{color:e}=o;e&&(g["--button-color"]=e)}return r.createElement(Mt,Nt({ref:a,as:"button",sx:d,style:g,type:"button"},t),e)}));function Ot(e,r){const o=e.size&&"medium"!==e.size?`[data-size="${e.size}"]`:"",t=e.block?'[data-block="block"]':"",a=e.leadingVisual||e.trailingVisual||e.trailingAction?"":"[data-no-visuals]",n={};return r?(n[`&${o}${t}${a}`]=r,n):n}At.displayName="Button";const Lt=function(){};var jt=class extends Event{oldState;newState;constructor(e,{oldState:r="",newState:o="",...t}={}){super(e,t),this.oldState=String(r||""),this.newState=String(o||"")}},Rt=new WeakMap;function Dt(e,r,o){Rt.set(e,setTimeout((()=>{Rt.has(e)&&e.dispatchEvent(new jt("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var zt=globalThis.ShadowRoot||function(){},Pt=globalThis.HTMLDialogElement||function(){},_t=new WeakMap,Ht=new WeakMap,Ft=new WeakMap;function Vt(e){return Ft.get(e)||"hidden"}var Wt=new WeakMap;function $t(e,r){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!r||"showing"===Vt(e))&&(!(!r&&"hidden"!==Vt(e))&&(!(e instanceof Pt&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Zt(e){return e?Array.from(Ht.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Kt(e){const r=qt(e),o=function(e){for(;e;){const r=e.popoverTargetElement;if(r instanceof HTMLElement)return r;if((e=e.parentElement||Ut(e))instanceof zt&&(e=e.host),e instanceof Document)return}}(e);return Zt(r)>Zt(o)?r:o}function Gt(e){const r=Ht.get(e);for(const e of r||[]){if(e.isConnected)return e;r.delete(e)}return null}function Ut(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?Ut(e.parentNode):e}function qt(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===Ft.get(e))return e;if((e=e.parentElement||Ut(e))instanceof zt&&(e=e.host),e instanceof Document)return}}function Yt(e){return!(e.hidden||e instanceof zt)&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&("number"==typeof e.tabIndex&&-1!==e.tabIndex))))}function Xt(e){(function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let r=e;r.shadowRoot&&(r=r.shadowRoot);let o=r.querySelector("[autofocus]");if(o)return o;{const e=r.querySelectorAll("slot");for(const r of e){const e=r.assignedElements({flatten:!0});for(const r of e){if(r.hasAttribute("autofocus"))return r;if(o=r.querySelector("[autofocus]"),o)return o}}}const t=e.ownerDocument.createTreeWalker(r,NodeFilter.SHOW_ELEMENT);let a=t.currentNode;for(;a;){if(Yt(a))return a;a=t.nextNode()}})(e)?.focus()}var Jt=new WeakMap;function Qt(e){if(!$t(e,!1))return;const r=e.ownerDocument;if(!e.dispatchEvent(new jt("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!$t(e,!1))return;let o=!1;if("auto"===e.popover){const o=e.getAttribute("popover"),t=function(e){const r=new Map;let o=0;const t=e.ownerDocument;for(const e of Ht.get(t)||[])r.set(e,o),o+=1;r.set(e,o),o+=1;let a=null;return function(e){const o=qt(e);if(null===o)return null;const t=r.get(o);(null===a||r.get(a)<t)&&(a=o)}(e?.parentElement),a}(e)||r;if(oa(t,!1,!0),o!==e.getAttribute("popover")||!$t(e,!1))return}Gt(r)||(o=!0),Jt.delete(e);const t=r.activeElement;e.classList.add(":popover-open"),Ft.set(e,"showing"),_t.has(r)||_t.set(r,new Set),_t.get(r).add(e),Xt(e),"auto"===e.popover&&(Ht.has(r)||Ht.set(r,new Set),Ht.get(r).add(e),la(Wt.get(e),!0)),o&&t&&"auto"===e.popover&&Jt.set(e,t),Dt(e,"closed","open")}function ea(e,r=!1,o=!1){if(!$t(e,!0))return;const t=e.ownerDocument;if("auto"===e.popover&&(oa(e,r,o),!$t(e,!0)))return;if(la(Wt.get(e),!1),Wt.delete(e),o&&(e.dispatchEvent(new jt("beforetoggle",{oldState:"open",newState:"closed"})),!$t(e,!0)))return;_t.get(t)?.delete(e),Ht.get(t)?.delete(e),e.classList.remove(":popover-open"),Ft.set(e,"hidden"),o&&Dt(e,"open","closed");const a=Jt.get(e);a&&(Jt.delete(e),r&&a.focus())}function ra(e,r=!1,o=!1){let t=Gt(e);for(;t;)ea(t,r,o),t=Gt(e)}function oa(e,r,o){const t=e.ownerDocument||e;if(e instanceof Document)return ra(t,r,o);let a=null,n=!1;for(const r of Ht.get(t)||[])if(r===e)n=!0;else if(n){a=r;break}if(!n)return ra(t,r,o);for(;a&&"showing"===Vt(a)&&Ht.get(t)?.size;)ea(a,r,o)}var ta=new WeakMap;function aa(e){if(!e.isTrusted)return;const r=e.composedPath()[0];if(!r)return;const o=r.ownerDocument;if(!Gt(o))return;const t=Kt(r);if(t&&"pointerdown"===e.type)ta.set(o,t);else if("pointerup"===e.type){const e=ta.get(o)===t;ta.delete(o),e&&oa(t||o,!1,!0)}}var na=new WeakMap;function la(e,r=!1){if(!e)return;na.has(e)||na.set(e,e.getAttribute("aria-expanded"));const o=e.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)e.setAttribute("aria-expanded",String(r));else{const r=na.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var ia=globalThis.ShadowRoot||function(){};function ca(e,r,o){const t=e[r];Object.defineProperty(e,r,{value(e){return t.call(this,o(e))}})}var sa=/(^|[^\\]):popover-open\b/g,da="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",ga=null;function ba(e){if(null===ga)try{(ga=new CSSStyleSheet).replaceSync(da)}catch{ga=!1}if(!1===ga){const r=document.createElement("style");r.textContent=da,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[ga,...e.adoptedStyleSheets]}function va(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(sa,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||jt,ca(Document.prototype,"querySelector",e),ca(Document.prototype,"querySelectorAll",e),ca(Element.prototype,"querySelector",e),ca(Element.prototype,"querySelectorAll",e),ca(Element.prototype,"matches",e),ca(Element.prototype,"closest",e),ca(DocumentFragment.prototype,"querySelectorAll",e),ca(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){Qt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){ea(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===Ft.get(this)&&void 0===e||!1===e?ea(this,!0,!0):void 0!==e&&!0!==e||Qt(this)}}});const r=Element.prototype.attachShadow;r&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const o=r.call(this,e);return ba(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=o.call(this);return e.shadowRoot&&ba(e.shadowRoot),e}}});const t=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),t.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),t.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=t.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return t.delete(this),null;const r=Ut(this),o=this.getAttribute("popovertarget");return(r instanceof Document||r instanceof ia)&&o&&r.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}a(HTMLButtonElement),a(HTMLInputElement);const n=e=>{const r=e.composedPath()[0];if(!(r instanceof Element)||r?.shadowRoot)return;const o=Ut(r);if(!(o instanceof ia||o instanceof Document))return;const t=r.closest("[popovertargetaction],[popovertarget]");return t?(function(e){const r=e.popoverTargetElement;if(!(r instanceof HTMLElement))return;const o=Vt(r);"show"===e.popoverTargetAction&&"showing"===o||"hide"===e.popoverTargetAction&&"hidden"===o||("showing"===o?ea(r,!0,!0):$t(r,!1)&&(Wt.set(r,e),Qt(r)))}(t),void e.preventDefault()):void 0},l=e=>{const r=e.key,o=e.target;e.defaultPrevented||!o||"Escape"!==r&&"Esc"!==r||oa(o.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",n),e.addEventListener("keydown",l),e.addEventListener("pointerdown",aa),e.addEventListener("pointerup",aa)})(document),ba(document)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ua.apply(this,arguments)}const fa="\n animation-name: tooltip-appear;\n animation-duration: 0.1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n",ha=h.span.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-e45c7z-0"})(["display:none;&[popover]{position:absolute;padding:0.5em 0.75em;width:max-content;margin:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;word-wrap:break-word;background:",";border-radius:",";border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}&[popover]:popover-open{display:block;}&[popover].\\:popover-open{display:block;}@media (forced-colors:active){outline:1px solid transparent;}&::after{position:absolute;display:block;right:0;left:0;height:var(--overlay-offset,0.25rem);content:'';}&[data-direction='n']::after,&[data-direction='ne']::after,&[data-direction='nw']::after{top:100%;}&[data-direction='s']::after,&[data-direction='se']::after,&[data-direction='sw']::after{bottom:100%;}&[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}&[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:popover-open,&:popover-open::before{","}&.\\:popover-open,&.\\:popover-open::before{","}",";"],Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),fa,fa,ft),pa={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},ma={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},ya=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],xa=e=>ya.some((r=>e.matches(r)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),Ca=r.createContext({}),wa=r.forwardRef((({direction:e="s",text:t,type:n="description",children:c,id:s,...d},b)=>{const v=ot(s),u=g.only(c),f=so(b),h=l(null),[p,m]=i(e),[y,x]=i(!1),C=()=>{if(h.current&&f.current&&h.current.hasAttribute("popover")&&!h.current.matches(":popover-open")){const r=h.current,o=f.current;r.showPopover(),x(!0);const t={side:pa[e].side,align:pa[e].align},{top:a,left:n,anchorAlign:l,anchorSide:i}=Eo(r,o,t);m(ma[`${i}-${l}`]),r.style.top=`${a}px`,r.style.left=`${n}px`}},w=()=>{h.current&&f.current&&h.current.hasAttribute("popover")&&h.current.matches(":popover-open")&&(h.current.hidePopover(),x(!1))},k=o((()=>({tooltipId:v})),[v]);return a((()=>{if(!h.current||!f.current)return;const e=xa(f.current),r=f.current.childNodes,o=Array.from(r).some((e=>e instanceof HTMLElement&&xa(e)));if(e||o||Lt(!1),"label"===n){f.current.hasAttribute("aria-label"),Array.from(f.current.childNodes).some((e=>e instanceof HTMLElement&&e.hasAttribute("aria-label")))}"undefined"!=typeof window&&("undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||va());h.current.setAttribute("popover","auto")}),[h,f,e,n]),uo((e=>{y&&(e.stopImmediatePropagation(),e.preventDefault(),w())}),[y]),r.createElement(Ca.Provider,{value:k},r.createElement(r.Fragment,null,r.isValidElement(u)&&r.cloneElement(u,{ref:f,"aria-describedby":"description"===n?v:u.props["aria-describedby"],"aria-labelledby":"label"===n?v:u.props["aria-labelledby"],onBlur:e=>{var r,o;w(),null===(r=(o=u.props).onBlur)||void 0===r||r.call(o,e)},onFocus:e=>{var r,o;try{if(!e.target.matches(":focus-visible"))return}catch(e){}C(),null===(r=(o=u.props).onFocus)||void 0===r||r.call(o,e)},onMouseEnter:e=>{var r,o;C(),null===(r=(o=u.props).onMouseEnter)||void 0===r||r.call(o,e)},onMouseLeave:e=>{var r,o;w(),null===(r=(o=u.props).onMouseLeave)||void 0===r||r.call(o,e)}}),r.createElement(ha,ua({ref:h,"data-direction":p},d,{role:"description"===n?"tooltip":void 0,"aria-hidden":"label"===n||void 0,id:v,onMouseEnter:C,onMouseLeave:w}),t)))}));function ka(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=ka(e[r]))&&(t&&(t+=" "),t+=o);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Ba(){for(var e,r,o=0,t="";o<arguments.length;)(e=arguments[o++])&&(r=ka(e))&&(t&&(t+=" "),t+=r);return t}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ea.apply(this,arguments)}const Ta=h.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus,&:focus-within{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus,&.tooltipped-multiline:focus-within{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}",";"],Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),Kr("space.3"),Kr("space.3"),Kr("space.3"),Kr("space.3"),ft),Sa=r.createContext({});function Ia({direction:e="n",children:t,className:a,text:n,noDelay:l,align:i,wrap:c,id:s,...d}){const g=ot(s),b=Ba(a,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,l&&"tooltipped-no-delay",c&&"tooltipped-multiline"),v=o((()=>({tooltipId:g})),[g]);return r.createElement(Sa.Provider,{value:v},r.createElement(Ta,Ea({role:"tooltip","aria-label":n,id:g},d,{className:b}),t))}function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ma.apply(this,arguments)}Ia.displayName="Tooltip",Ia.alignments=["left","right"],Ia.directions=["n","ne","e","se","s","sw","w","nw"];const Na=d((({sx:e=Bt,icon:o,"aria-label":t,description:a,disabled:n,tooltipDirection:l,unsafeDisableTooltip:i=!0,...c},s)=>{let d=e;const{size:g}=c;null!==e&&Object.keys(e).length>0&&(d=Ot({size:g},e));const{tooltipId:b}=r.useContext(Ca),{tooltipId:v}=r.useContext(Sa);return i||n||void 0===t||""===t||(b||v)?r.createElement(Mt,Ma({icon:o,"data-component":"IconButton",sx:d,type:"button","aria-label":t,disabled:n},c,{ref:s})):r.createElement(wa,{ref:s,text:null!=a?a:t,type:a?void 0:"label",direction:l},r.createElement(Mt,Ma({icon:o,"data-component":"IconButton",sx:d,type:"button","aria-label":a?t:void 0},c)))}));function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Aa.apply(this,arguments)}const Oa=d((({children:e,as:o="a",sx:t=Bt,...a},n)=>r.createElement(Mt,Aa({as:o,ref:n,sx:t},a),e))),La=!("undefined"==typeof window||!window.document||!window.document.createElement);function ja(e,o){const t=b(Ra),[n,l]=r.useState((()=>void 0!==t[e]?t[e]:void 0!==o?o:!!La&&window.matchMedia(e).matches));return a((()=>{void 0!==t[e]&&l(t[e])}),[t,e]),a((()=>{if(void 0!==t[e])return;function r(e){l(e.matches)}const o=window.matchMedia(e);return o.addEventListener?o.addEventListener("change",r):o.addListener(r),l(o.matches),()=>{o.addEventListener?o.removeEventListener("change",r):o.removeListener(r)}}),[t,e]),n}const Ra=v({}),Da={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function za(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function Pa(e,r){const o=ja(Da.narrow,!1),t=ja(Da.regular,!1),a=ja(Da.wide,!1);if(za(e)){const n=e;return o&&"narrow"in n?n.narrow:a&&"wide"in n?n.wide:t&&"regular"in n?n.regular:r}return e}function _a(e,o){const t=(a=o,n=()=>{},Object.keys(a).reduce(((e,r)=>(e[r]=n(a[r]),e)),{}));var a,n;const l=[],i=Object.keys(o),c=Object.values(o);return r.Children.forEach(e,(e=>{if(!r.isValidElement(e))return void l.push(e);const o=c.findIndex((r=>{if(Array.isArray(r)){const[o,t]=r;return e.type===o&&t(e.props)}return e.type===r}));if(-1===o)return void l.push(e);const a=i[o];t[a]||(t[a]=e)})),[t,l]}function Ha(e){const[r,o]=i(!1);return a((()=>{if(null===e.current)return;const r=new ResizeObserver((e=>{for(const r of e)o(r.target.scrollHeight>r.target.clientHeight||r.target.scrollWidth>r.target.clientWidth)}));return r.observe(e.current),()=>{r.disconnect()}}),[e]),r}var Fa=new Map,Va=new WeakMap,Wa=0,$a=void 0;function Za(e){return Object.keys(e).sort().filter((r=>void 0!==e[r])).map((r=>`${r}_${"root"===r?function(e){return e?(Va.has(e)||(Wa+=1,Va.set(e,Wa.toString())),Va.get(e)):"0"}(e.root):e[r]}`)).toString()}function Ka(e,r,o={},t=$a){if(void 0===window.IntersectionObserver&&void 0!==t){const a=e.getBoundingClientRect();return r(t,{isIntersecting:t,target:e,intersectionRatio:"number"==typeof o.threshold?o.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:n,elements:l}=function(e){const r=Za(e);let o=Fa.get(r);if(!o){const t=new Map;let a;const n=new IntersectionObserver((r=>{r.forEach((r=>{var o;const n=r.isIntersecting&&a.some((e=>r.intersectionRatio>=e));e.trackVisibility&&void 0===r.isVisible&&(r.isVisible=n),null==(o=t.get(r.target))||o.forEach((e=>{e(n,r)}))}))}),e);a=n.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:r,observer:n,elements:t},Fa.set(r,o)}return o}(o),i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(r),n.observe(e),function(){i.splice(i.indexOf(r),1),0===i.length&&(l.delete(e),n.unobserve(e)),0===l.size&&(n.disconnect(),Fa.delete(a))}}function Ga({threshold:r,delay:o,trackVisibility:t,rootMargin:a,root:n,triggerOnce:l,skip:i,initialInView:c,fallbackInView:s,onChange:d}={}){var g;const[b,v]=e.useState(null),u=e.useRef(),[f,h]=e.useState({inView:!!c,entry:void 0});u.current=d,e.useEffect((()=>{if(i||!b)return;let e;return e=Ka(b,((r,o)=>{h({inView:r,entry:o}),u.current&&u.current(r,o),o.isIntersecting&&l&&e&&(e(),e=void 0)}),{root:n,rootMargin:a,threshold:r,trackVisibility:t,delay:o},s),()=>{e&&e()}}),[Array.isArray(r)?r.toString():r,b,n,a,l,i,t,s,o]);const p=null==(g=f.entry)?void 0:g.target,m=e.useRef();b||!p||l||i||m.current===p||(m.current=p,h({inView:!!c,entry:void 0}));const y=[v,f.inView,f.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function Ua(e){return e&&e!==document.body?function(e){const r=e.scrollHeight>e.clientHeight;return r&&!(-1!==window.getComputedStyle(e).overflowY.indexOf("hidden"))}(e)?e:Ua(e.parentElement):null}const qa=!!La&&CSS.supports("-webkit-touch-callout","none"),Ya=!!La&&(CSS.supports("max-height","100dvh")&&qa);function Xa(e){return Ya?`${e}dvh`:`${e}vh`}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ja.apply(this,arguments)}const Qa=1,en=2,rn=3,on=4,tn={none:0,condensed:3,normal:[3,null,null,4]},an=r.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),nn={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},ln=({containerWidth:e="xlarge",padding:o="normal",rowGap:t="normal",columnGap:a="normal",children:n,sx:i={},_slotsConfig:c})=>{const{rootRef:s,enableStickyPane:d,disableStickyPane:g,contentTopRef:b,contentBottomRef:v,stickyPaneHeight:u}=function(){const e=r.useRef(null),[o,t]=r.useState(Xa(100)),[a,n]=r.useState(0),[l,i,c]=Ga(),[s,d]=Ga(),g=r.useCallback((()=>{let r="";const o=Ua(e.current),n=null==c?void 0:c.target.getBoundingClientRect(),l="number"==typeof a?`${a}px`:a;if(o){const e=o.getBoundingClientRect(),t=n?Math.max(n.top-e.top,0):0;r=`calc(${e.height}px - (max(${t}px, ${l})))`}else{const e=n?Math.max(n.top,0):0;r=`calc(${Xa(100)} - (max(${e}px, ${l})))`}t(r)}),[c,a]),[b,v]=r.useState(!1);return Ko((()=>{const r=Ua(e.current);return b&&(i||d)&&(g(),r?r.addEventListener("scroll",g):window.addEventListener("scroll",g),window.addEventListener("resize",g)),()=>{r?r.removeEventListener("scroll",g):window.removeEventListener("scroll",g),window.removeEventListener("resize",g)}}),[b,i,d,g]),{rootRef:e,enableStickyPane:function(e){v(!0),n(e)},disableStickyPane:function(){v(!1)},contentTopRef:l,contentBottomRef:s,stickyPaneHeight:o}}(),f=l(null),[h,p]=_a(n,null!=c?c:{header:vn,footer:wn});return r.createElement(an.Provider,{value:{padding:o,rowGap:t,columnGap:a,enableStickyPane:d,disableStickyPane:g,contentTopRef:b,contentBottomRef:v,paneRef:f}},r.createElement(ht,{ref:s,style:{"--sticky-pane-height":u},sx:to({padding:tn[o]},i)},r.createElement(ht,{sx:{maxWidth:nn[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},h.header,r.createElement(ht,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},p),h.footer)))};ln.displayName="Root",ln.displayName="PageLayout";const cn={none:{display:"none"},line:{display:"block",height:1,backgroundColor:"border.default"},filled:{display:"block",height:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset 0 -1px 0 0 ${e.colors.border.default}, inset 0 1px 0 0 ${e.colors.border.default}`}};const sn=({variant:e="none",sx:o={}})=>{const{padding:t}=r.useContext(an),a=Pa(e,"none");return r.createElement(ht,{sx:e=>{return to({marginX:(r=tn[t],Array.isArray(r)?r.map((e=>null===e?null:-e)):null===r?null:-r),...cn[a],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},o);var r}})};sn.displayName="HorizontalDivider";const dn={none:{display:"none"},line:{display:"block",width:1,backgroundColor:"border.default"},filled:{display:"block",width:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset -1px 0 0 0 ${e.colors.border.default}, inset 1px 0 0 0 ${e.colors.border.default}`}},gn=m(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),bn=({variant:e="none",draggable:o=!1,onDragStart:t,onDrag:a,onDragEnd:n,onDoubleClick:l,sx:i={}})=>{const[c,s]=r.useState(!1),[d,g]=r.useState(!1),b=Pa(e,"none"),v=r.useRef(a),u=r.useRef(n),{paneRef:f}=r.useContext(an),[h,p]=r.useState(0),[m,y]=r.useState(0),[x,C]=r.useState(0);return r.useEffect((()=>{if(null!==f.current){const e=getComputedStyle(f.current),r=e.getPropertyValue("--pane-max-width-diff"),o=e.getPropertyValue("--pane-min-width"),t=f.current.getBoundingClientRect().width,a=Number(r.split("px")[0]),n=Number(o.split("px")[0]),l=window.innerWidth,i=l>a?l-a:l;p(n),y(i),C(t||0)}}),[f,d,c]),r.useEffect((()=>{v.current=a}),[a]),r.useEffect((()=>{u.current=n}),[n]),r.useEffect((()=>{function e(e){var r;null===(r=v.current)||void 0===r||r.call(v,e.movementX,!1),e.preventDefault()}function r(e){var r;s(!1),null===(r=u.current)||void 0===r||r.call(u),e.preventDefault()}function o(e){var r;let o=0;if(("ArrowLeft"===e.key||"ArrowDown"===e.key)&&x>h)o=-3;else{if("ArrowRight"!==e.key&&"ArrowUp"!==e.key||!(x<m))return;o=3}C(x+o),null===(r=v.current)||void 0===r||r.call(v,o,!0),e.preventDefault()}function t(e){var r;g(!1),null===(r=u.current)||void 0===r||r.call(u),e.preventDefault()}return c||d?(window.addEventListener("mousemove",e),window.addEventListener("keydown",o),window.addEventListener("mouseup",r),window.addEventListener("keyup",t),document.body.setAttribute("data-page-layout-dragging","true")):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")}}),[c,d,x,h,m]),r.createElement(ht,{sx:to({height:"100%",position:"relative",...dn[b]},i)},o?r.createElement(r.Fragment,null,r.createElement(ht,{sx:{position:"absolute",inset:"0 -2px",cursor:"col-resize",bg:c||d?"accent.fg":"transparent",transitionDelay:"0.1s","&:hover":{bg:c||d?"accent.fg":"neutral.muted"}},role:"slider","aria-label":"Draggable pane splitter","aria-valuemin":h,"aria-valuemax":m,"aria-valuenow":x,"aria-valuetext":`Pane width ${x} pixels`,tabIndex:0,onMouseDown:e=>{0===e.button&&(s(!0),null==t||t())},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(g(!0),null==t||t())},onDoubleClick:l}),r.createElement(gn,null)):null)};bn.displayName="VerticalDivider";const vn=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const s=Pa(za(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),d=Pa(l,!1),{rowGap:g}=r.useContext(an);return r.createElement(ht,{as:"header","aria-label":e,"aria-labelledby":o,hidden:d,sx:to({width:"100%",marginBottom:tn[g]},c)},r.createElement(ht,{sx:{padding:tn[t]}},i),r.createElement(sn,{variant:s,sx:{marginTop:tn[g]}}))};vn.displayName="Header",vn.displayName="PageLayout.Header";const un={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},fn=({as:e="main","aria-label":o,"aria-labelledby":t,width:a="full",padding:n="none",hidden:l=!1,children:i,sx:c={}})=>{const s=Pa(l,!1),{contentTopRef:d,contentBottomRef:g}=r.useContext(an);return r.createElement(ht,{as:e,"aria-label":o,"aria-labelledby":t,sx:to({display:s?"none":"flex",flexDirection:"column",order:en,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},c)},r.createElement(ht,{ref:d}),r.createElement(ht,{sx:{width:"100%",maxWidth:un[a],marginX:"auto",flexGrow:1,padding:tn[n]}},i),r.createElement(ht,{ref:g}))};fn.displayName="Content",fn.displayName="PageLayout.Content";const hn=e=>void 0!==e.default,pn=e=>["small","medium","large"].includes(e),mn={start:Qa,end:rn},yn={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},xn={small:256,medium:296,large:320},Cn=r.forwardRef((({"aria-label":e,"aria-labelledby":o,position:t="end",positionWhenNarrow:a="inherit",width:n="medium",minWidth:l=256,padding:i="none",resizable:c=!1,widthStorageKey:s="paneWidth",divider:d="none",dividerWhenNarrow:g="inherit",sticky:b=!1,offsetHeader:v=0,hidden:u=!1,children:f,id:h,sx:p={}},m)=>{const y=Pa(za(t)||"inherit"===a?t:{regular:t,narrow:a},"end"),x=Pa(za(d)||"inherit"===g?d:{regular:d,narrow:g},"none"),C=Pa(u,!1),{rowGap:w,columnGap:k,enableStickyPane:B,disableStickyPane:E,paneRef:T}=r.useContext(an);r.useEffect((()=>{b?null==B||B(v):null==E||E()}),[b,B,E,v]);const S=e=>pn(e)?xn[e]:hn(e)?Number(e.default.split("px")[0]):0,[I,M]=r.useState((()=>{if(!La)return S(n);let e;try{e=localStorage.getItem(s)}catch(r){e=null}return e&&!isNaN(Number(e))?Number(e):S(n)})),N=e=>{M(e);try{localStorage.setItem(s,e.toString())}catch(e){}};rt(m,T);const A=Ha(T),O=ot(h),L={};return A&&(o?L["aria-labelledby"]=o:e&&(L["aria-label"]=e)),r.createElement(ht,{sx:e=>to({display:C?"none":"flex",order:mn[y],width:"100%",marginX:0,..."end"===y?{flexDirection:"column",marginTop:tn[w]}:{flexDirection:"column-reverse",marginBottom:tn[w]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...b?{position:"sticky",top:"number"==typeof v?`${v}px`:v,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===y?{flexDirection:"row-reverse",marginLeft:tn[k]}:{flexDirection:"row",marginRight:tn[k]}}},p)},r.createElement(sn,{variant:{narrow:x,regular:"none"},sx:{["end"===y?"marginBottom":"marginTop"]:tn[w]}}),r.createElement(ht,Ja({ref:T,style:{"--pane-width":`${I}px`},sx:e=>({"--pane-min-width":hn(n)?n.min:`${l}px`,"--pane-max-width-diff":"511px","--pane-max-width":hn(n)?n.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:pn(n)?yn[n]:n.default,padding:tn[i],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},A&&{tabIndex:0,role:"region"},L,h&&{id:O}),f),r.createElement(bn,{variant:{narrow:"none",regular:c?"line":x},draggable:c,sx:{["end"===y?"marginRight":"marginLeft"]:tn[k]},onDrag:(e,r=!1)=>{let o;o=r?e:"end"===y?-e:e,N(I+o)},onDragEnd:()=>{var e;const r=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();r&&N(r.width)},onDoubleClick:()=>N(S(n))}))}));Cn.displayName="PageLayout.Pane";const wn=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const s=Pa(za(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),d=Pa(l,!1),{rowGap:g}=r.useContext(an);return r.createElement(ht,{as:"footer","aria-label":e,"aria-labelledby":o,hidden:d,sx:to({order:on,width:"100%",marginTop:tn[g]},c)},r.createElement(sn,{variant:s,sx:{marginBottom:tn[g]}}),r.createElement(ht,{sx:{padding:tn[t]}},i))};wn.displayName="Footer",wn.displayName="PageLayout.Footer";const kn=Object.assign(ln,{Header:vn,Content:fn,Pane:Cn,Footer:wn});function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bn.apply(this,arguments)}const En=e=>r.createElement(kn,Bn({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:Tn,footer:Mn}},e));En.displayName="Root",En.displayName="SplitPageLayout";const Tn=({padding:e="normal",divider:o="line",...t})=>r.createElement(kn.Header,Bn({padding:e,divider:o},t));Tn.displayName="Header",Tn.displayName="SplitPageLayout.Header";const Sn=({width:e="large",padding:o="normal",...t})=>r.createElement(kn.Content,Bn({width:e,padding:o},t));Sn.displayName="Content",Sn.displayName="SplitPageLayout.Content";const In=({position:e="start",sticky:o=!0,padding:t="normal",divider:a="line",...n})=>r.createElement(kn.Pane,Bn({position:e,sticky:o,padding:t,divider:a},n));In.displayName="Pane",In.displayName="SplitPageLayout.Pane";const Mn=({padding:e="normal",divider:o="line",...t})=>r.createElement(kn.Footer,Bn({padding:e,divider:o},t));Mn.displayName="Footer",Mn.displayName="SplitPageLayout.Footer";const Nn=Object.assign(En,{Header:Tn,Content:Sn,Pane:In,Footer:Mn});function An({ref:e,closeOnOutsideClick:r,defaultOpen:o,onClickOutside:n}){const[c,s]=i(o),d=l(null),g=null!=e?e:d,b=t((e=>{const{current:r}=g;e.target.closest("details")!==r&&(n&&n(e),e.defaultPrevented||s(!1))}),[g,s,n]);a((()=>{if(c&&r)return document.addEventListener("click",b),()=>{document.removeEventListener("click",b)}}),[c,r,b]);const v=e=>{if(!e.defaultPrevented){const r=e.target;s(r.open)}};return{open:c,setOpen:s,getDetailsProps:()=>({onToggle:v,open:c,ref:g})}}function On(){const e=l(new Set),r=t(((r,o,...t)=>{const a=window.setTimeout(r,o,...t);return e.current.add(a),a}),[]),o=t((r=>{clearTimeout(r),e.current.delete(r)}),[]);return a((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:r,safeClearTimeout:o}}var Ln,jn=w;function Rn(e,o=[]){const t=so(null==e?void 0:e.containerRef),a=so(null==e?void 0:e.initialFocusRef),n=null==e?void 0:e.disabled,l=r.useRef(),i=r.useRef(null);function c(){var r;null===(r=l.current)||void 0===r||r.abort(),null!=e&&e.returnFocusRef&&e.returnFocusRef.current instanceof HTMLElement?e.returnFocusRef.current.focus():null!=e&&e.restoreFocusOnCleanUp&&i.current instanceof HTMLElement&&(i.current.focus(),i.current=null)}return i.current||null!=e&&e.disabled||(i.current=document.activeElement),r.useEffect((()=>{if(t.current instanceof HTMLElement){var e;if(!n)return l.current=Ro(t.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{c()};c()}}),[t,a,n,...o]),{containerRef:t,initialFocusRef:a}}function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dn.apply(this,arguments)}Ln=jn.createRoot,jn.hydrateRoot;const zn=h(r.forwardRef(((e,o)=>{const{icon:t,...a}=e;return r.createElement(t,Dn({},a,{ref:o}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>ft({sx:{color:e,...r}})));var Pn={small:16,medium:32,large:64};function _n(e,o,t){var a=t(),n=Object.keys(a),l=r.forwardRef((function(e,t){var l=e["aria-label"],i=e["aria-labelledby"],c=e.tabIndex,s=e.className,d=void 0===s?o:s,g=e.fill,b=void 0===g?"currentColor":g,v=e.size,u=void 0===v?16:v,f=e.verticalAlign,h=void 0===f?"text-bottom":f,p=e.id,m=e.title,y=Pn[u]||u,x=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,o){return o<=r?o:e}),e[0])}(n,y),C=a[x].width,w=y*(C/x),k=a[x].path,B=l||i,E=B?"img":void 0;return r.createElement("svg",{ref:t,"aria-hidden":B?void 0:"true",tabIndex:c,focusable:c>=0?"true":"false","aria-label":l,"aria-labelledby":i,className:d,role:E,viewBox:"0 0 ".concat(C," ").concat(x),width:w,height:y,fill:b,id:p,style:{display:"inline-block",userSelect:"none",verticalAlign:h,overflow:"visible"}},m?r.createElement("title",null,m):null,k)}));return l.displayName=e,l}var Hn=_n("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:r.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"}),r.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"}))}}})),Fn=_n("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:r.createElement("path",{d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})},16:{width:16,path:r.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})},24:{width:24,path:r.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})}}})),Vn=_n("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:r.createElement("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})},24:{width:24,path:r.createElement("path",{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"})}}})),Wn=_n("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:r.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"})},16:{width:16,path:r.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"})},24:{width:24,path:r.createElement("path",{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"})}}})),$n=_n("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:r.createElement("path",{d:"M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:r.createElement("path",{d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"})},24:{width:24,path:r.createElement("path",{d:"M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"})}}})),Zn=_n("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:r.createElement("path",{d:"M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:r.createElement("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:r.createElement("path",{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"})}}})),Kn=_n("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:r.createElement("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"})},24:{width:24,path:r.createElement("path",{d:"M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"})}}})),Gn=_n("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:r.createElement("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"})}}})),Un=_n("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:r.createElement("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z"}),r.createElement("path",{d:"M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z"}),r.createElement("path",{d:"M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"}))}}})),qn=_n("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:r.createElement("path",{d:"M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})},24:{width:24,path:r.createElement("path",{d:"M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"})}}})),Yn=_n("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:r.createElement("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"}),r.createElement("path",{d:"M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"}))}}})),Xn=_n("GitPullRequestClosedIcon","octicon octicon-git-pull-request-closed",(function(){return{16:{width:16,path:r.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"})},24:{width:24,path:r.createElement("path",{d:"M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"})}}})),Jn=_n("GitPullRequestDraftIcon","octicon octicon-git-pull-request-draft",(function(){return{16:{width:16,path:r.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"})},24:{width:24,path:r.createElement("path",{d:"M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z"})}}})),Qn=_n("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),r.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"}))},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z"}),r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),el=_n("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:r.createElement("path",{d:"M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"})},24:{width:24,path:r.createElement("path",{d:"M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"})}}})),rl=_n("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),r.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"}))},24:{width:24,path:r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"})}}})),ol=_n("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:r.createElement("path",{d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"})},24:{width:24,path:r.createElement("path",{d:"M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"})}}})),tl=_n("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:r.createElement("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),al=_n("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:r.createElement("path",{d:"M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"})},24:{width:24,path:r.createElement("path",{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"})}}})),nl=_n("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:r.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"})},24:{width:24,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z"}),r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),ll=_n("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:r.createElement("path",{d:"m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"})},24:{width:24,path:r.createElement("path",{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"})}}})),il=_n("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:r.createElement("path",{d:"M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"})},16:{width:16,path:r.createElement("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:r.createElement("path",{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"})}}}));function cl(e={},o=[]){const t=so(e.containerRef),n=!!e.activeDescendantFocus,l=so("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),i=e.disabled,c=r.useRef();return a((()=>{if(t.current instanceof HTMLElement&&(!n||l.current instanceof HTMLElement)){if(!i){var r;const o={...e,activeDescendantControl:null!==(r=l.current)&&void 0!==r?r:void 0};return c.current=$o(t.current,o),()=>{var e;null===(e=c.current)||void 0===e||e.abort()}}var o;null===(o=c.current)||void 0===o||o.abort()}}),[i,...o]),{containerRef:t,activeDescendantControlRef:l}}const sl="__primerPortalRoot__",dl="__default__",gl={};function bl(e,r=dl){gl[r]=e}const vl=({children:e,onMount:o,containerName:t})=>{const a=r.useRef(null);if(!a.current){const e=document.createElement("div");e.style.position="relative",e.style.zIndex="1",a.current=e}const n=a.current;return Ko((()=>{let e=t;void 0===e&&(e=dl,function(){const e=gl[dl];if(!e||!document.body.contains(e)){let e=document.getElementById(sl);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",sl),e.style.position="absolute",e.style.top="0",e.style.left="0";const r=document.querySelector("[data-portal-root]");r?r.appendChild(e):document.body.appendChild(e)}bl(e)}}());const r=gl[e];if(!r)throw new Error(`Portal container '${t}' is not yet registered. Container must be registered with registerPortal before use.`);return r.appendChild(n),null==o||o(),()=>{r.removeChild(n)}}),[n]),k(e,n)};function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ul.apply(this,arguments)}const fl={position:"relative",overflow:"auto"};function hl({"aria-labelledby":e,children:o,...t}){const a=r.useRef(null),n=Ha(a)?{"aria-labelledby":e,role:"region",tabIndex:0}:{};return r.createElement(ht,ul({},t,n,{ref:a,sx:fl}),o)}function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pl.apply(this,arguments)}hl.displayName="ScrollableRegion";const ml=h("div").withConfig({displayName:"Dialog__Backdrop",componentId:"sc-uaxjsn-0"})(["position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:",";animation:dialog-backdrop-appear 200ms ",";&[data-position-regular='center']{align-items:center;justify-content:center;}&[data-position-regular='left']{align-items:center;justify-content:flex-start;}&[data-position-regular='right']{align-items:center;justify-content:flex-end;}.DialogOverflowWrapper{flex-grow:1;}@media (max-width:767px){&[data-position-narrow='center']{align-items:center;justify-content:center;}&[data-position-narrow='bottom']{align-items:end;justify-content:center;}}@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Kr("colors.primer.canvas.backdrop"),Kr("animation.easeOutCubic")),yl={small:"480px",large:"640px",auto:"auto"},xl={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},Cl=h.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";width:",";height:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);border-radius:12px;opacity:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}&[data-position-regular='center']{border-radius:var(--borderRadius-large,0.75rem);@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='left']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-left-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInRight 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='right']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-right-radius:0;border-bottom-right-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInLeft 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}@media (max-width:767px){&[data-position-narrow='center']{border-radius:var(--borderRadius-large,0.75rem);width:",";height:",";}&[data-position-narrow='bottom']{width:100vw;height:auto;max-width:100vw;max-height:calc(100vh - 64px);border-radius:var(--borderRadius-large,0.75rem);border-bottom-right-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideUp 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-narrow='fullscreen']{width:100%;max-width:100vw;height:100%;max-height:100vh;border-radius:unset !important;flex-grow:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}}@keyframes Overlay--motion-scaleFade{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}@keyframes Overlay--motion-slideUp{from{transform:translateY(100%);}}@keyframes Overlay--motion-slideInRight{from{transform:translateX(-100%);}}@keyframes Overlay--motion-slideInLeft{from{transform:translateX(100%);}}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>{var r;return xl[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return yl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),(e=>{var r;return xl[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return yl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),ft),wl=({dialogLabelId:e,title:o,subtitle:a,dialogDescriptionId:n,onClose:l})=>{const i=t((()=>{l("close-button")}),[l]);return r.createElement(jl.Header,null,r.createElement(ht,{display:"flex"},r.createElement(ht,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},r.createElement(jl.Title,{id:e},null!=o?o:"Dialog"),a&&r.createElement(jl.Subtitle,{id:n},a)),r.createElement(jl.CloseButton,{onClose:i})))};wl.displayName="DefaultHeader";const kl=({children:e})=>r.createElement(jl.Body,null,e);kl.displayName="DefaultBody";const Bl=({footerButtons:e})=>{const{containerRef:o}=cl({bindKeys:Do.ArrowHorizontal|Do.Tab,focusInStrategy:"closest"});return e?r.createElement(jl.Footer,{ref:o},r.createElement(jl.Buttons,{buttons:e})):null},El={narrow:"center",regular:"center"},Tl=r.forwardRef(((e,o)=>{const{title:t="Dialog",subtitle:a="",renderHeader:n,renderBody:i,renderFooter:c,onClose:s,role:d="dialog",width:g="xlarge",height:b="auto",footerButtons:v=[],position:u=El,returnFocusRef:f,sx:h}=e,p=ot(),m=ot(),y=l(null);for(const e of v)e.autoFocus&&(e.ref=y);const x={...e,title:t,subtitle:a,role:d,dialogLabelId:p,dialogDescriptionId:m},C=l(null);rt(o,C);const w=l(null);Rn({containerRef:C,initialFocusRef:y,restoreFocusOnCleanUp:null==f||!f.current,returnFocusRef:f}),uo((e=>{s("escape"),e.preventDefault()}),[s]),r.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const k=(null!=n?n:wl)(x),B=(null!=i?i:kl)(x),E=(null!=c?c:Bl)(x),T="string"==typeof u?{"data-position-regular":u}:Object.fromEntries(Object.entries(u).map((([e,r])=>[`data-position-${e}`,r])));return r.createElement(r.Fragment,null,r.createElement(vl,null,r.createElement(ml,pl({ref:w},T),r.createElement(Cl,pl({width:g,height:b,ref:C,role:d,"aria-labelledby":p,"aria-describedby":m,"aria-modal":!0},T,{sx:h}),k,r.createElement(hl,{"aria-labelledby":p,className:"DialogOverflowWrapper"},B),E))))}));Tl.displayName="Dialog";const Sl=h.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;",";"],Kr("colors.border.default"),Kr("space.2"),ft),Il=h.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Kr("fontSizes.1"),Kr("fontWeights.bold"),ft),Ml=h.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";font-weight:normal;",";"],Kr("fontSizes.0"),Kr("colors.fg.muted"),Kr("space.1"),ft),Nl=h.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Kr("space.3"),ft),Al=h.div.withConfig({displayName:"Dialog__Footer",componentId:"sc-uaxjsn-6"})(["box-shadow:0 -1px 0 ",";padding:",";display:flex;flex-flow:wrap;justify-content:flex-end;gap:",";z-index:1;flex-shrink:0;",";"],Kr("colors.border.default"),Kr("space.3"),Kr("space.2"),ft),Ol=h(At).withConfig({displayName:"Dialog__DialogCloseButton",componentId:"sc-uaxjsn-7"})(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:",";padding:",";align-self:flex-start;line-height:normal;box-shadow:none;"],Kr("colors.fg.muted"),Kr("space.2")),Ll=({onClose:e})=>r.createElement(Ol,{"aria-label":"Close",onClick:e},r.createElement(zn,{icon:il}));Ll.displayName="CloseButton";const jl=Object.assign(Tl,{Header:Sl,Title:Il,Subtitle:Ml,Body:Nl,Footer:Al,Buttons:({buttons:e})=>{var o;const t=so(null===(o=e.find((e=>e.autoFocus)))||void 0===o?void 0:o.ref);let n=0;const[l,c]=i(0);return a((()=>{var e;1===l?null===(e=t.current)||void 0===e||e.focus():c(l+1)}),[t,l]),r.createElement(r.Fragment,null,e.map(((e,o)=>{const{content:a,buttonType:l="default",autoFocus:i=!1,...c}=e;return r.createElement(At,pl({key:o},c,{variant:"normal"===l?"default":l,ref:i&&0===n?(n++,t):null}),a)})))},CloseButton:Ll});function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Rl.apply(this,arguments)}const Dl=h.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Kr("space.2")),zl=h(ht).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Kr("fontSizes.3"),Kr("fontWeights.bold"),Kr("space.2")),Pl=({title:e,onClose:o,dialogLabelId:a})=>{const n=t((()=>{o("close-button")}),[o]);return r.createElement(Dl,null,r.createElement(zl,{id:a},e),r.createElement(jl.CloseButton,{onClose:n}))};Pl.displayName="ConfirmationHeader";const _l=h(ht).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Kr("fontSizes.1"),Kr("space.3"),Kr("space.3"),Kr("space.3"),Kr("colors.fg.muted")),Hl=({children:e})=>r.createElement(_l,null,e);Hl.displayName="ConfirmationBody";const Fl=h(ht).withConfig({displayName:"ConfirmationDialog__StyledConfirmationFooter",componentId:"sc-11fz0jh-3"})(["display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-gap:",";align-items:end;justify-content:end;padding:"," "," ",";"],Kr("space.2"),Kr("space.1"),Kr("space.3"),Kr("space.3")),Vl=({footerButtons:e})=>{const{containerRef:o}=cl({bindKeys:Do.ArrowHorizontal|Do.Tab,focusInStrategy:"closest"});return r.createElement(Fl,{ref:o},r.createElement(jl.Buttons,{buttons:null!=e?e:[]}))};Vl.displayName="ConfirmationFooter";const Wl=e=>{const{onClose:o,title:a,cancelButtonContent:n="Cancel",confirmButtonContent:l="OK",confirmButtonType:i="normal",children:c}=e,s="danger"===i,d=[{content:n,onClick:t((()=>{o("cancel")}),[o]),autoFocus:s},{content:l,buttonType:i,onClick:t((()=>{o("confirm")}),[o]),autoFocus:!s}];return r.createElement(jl,{onClose:o,title:a,footerButtons:d,role:"alertdialog",width:"medium",renderHeader:Pl,renderBody:Hl,renderFooter:Vl},c)};Wl.displayName="ConfirmationDialog";let $l=null;function Zl(){const{theme:e,colorMode:o,dayScheme:a,nightScheme:n}=it(),l=t((t=>async function(e,o){const{content:t,...a}=o;return new Promise((o=>{$l||=document.createElement("div"),$l.isConnected||document.body.append($l);const n=Ln($l);n.render(r.createElement(lt,e,r.createElement(ut,null,r.createElement(Wl,Rl({},a,{onClose:e=>{n.unmount(),o("confirm"===e)}}),t))))}))}({theme:e,colorMode:o,dayScheme:a,nightScheme:n},t)),[e,o,a,n]);return l}const Kl=x(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Gl=h.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&y(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Kl))),Ul=({show:e,children:o})=>{const[t,n]=i(e);a((()=>{e&&n(!0)}),[e]);return t?r.createElement(ht,{height:e?"auto":0,overflow:"hidden"},r.createElement(Gl,{show:e,onAnimationEnd:()=>{e||n(!1)}},o)):null},ql=h.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Ur,Gr,ft),Yl=r.createContext({}),Xl=({children:e,sx:o})=>{const{disabled:t,captionId:a}=r.useContext(Yl);return r.createElement(ql,{color:t?"fg.muted":"fg.subtle",fontSize:1,id:a,sx:o},e)};Xl.displayName="CheckboxOrRadioGroupCaption";const Jl=({children:e,visuallyHidden:o=!1,sx:t})=>{const{required:a,disabled:n}=r.useContext(Yl);return r.createElement(Et,{isVisible:!o,title:a?"required field":void 0,sx:{display:"block",color:n?"fg.muted":void 0,fontSize:2,...t}},a?r.createElement(ht,{display:"flex",as:"span"},r.createElement(ht,{mr:1},e),r.createElement("span",null,"*")):e)};Jl.displayName="CheckboxOrRadioGroupLabel";const Ql={success:Wn,error:Fn},ei={success:"success.fg",error:"danger.fg"},ri=({children:e,id:o,validationStatus:t,sx:a})=>{const n=t?Ql[t]:void 0,l=t?ei[t]:void 0,i=16/12;return r.createElement(ql,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:l,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...a},"aria-live":"polite"},n&&r.createElement(ht,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},r.createElement(n,{size:12,fill:"currentColor"})),r.createElement(ht,{as:"span",id:o,sx:{lineHeight:i}},e))};ri.displayName="InputValidation";const oi=({children:e,variant:o,sx:t})=>{const{validationMessageId:a=""}=r.useContext(Yl);return r.createElement(ri,{validationStatus:o,id:a,sx:t},e)};function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ti.apply(this,arguments)}oi.displayName="CheckboxOrRadioGroupValidation";const ai=h.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Kr("space.2")),ni=({"aria-labelledby":e,children:o,disabled:t=!1,id:a,required:n=!1,sx:l})=>{const[i,c]=_a(o,{caption:Xl,label:Jl,validation:oi}),s=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===Jl)),d=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===oi?e:null)),g=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===Xl?e:null)),b=ot(a),v=d?`${b}-validationMessage`:void 0,u=g?`${b}-caption`:void 0;s||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const f=r.isValidElement(s)&&!s.props.visuallyHidden;return r.createElement(Yl.Provider,{value:{disabled:t,required:n,captionId:u,validationMessageId:v}},r.createElement("div",null,r.createElement(ht,ti({border:"none",margin:0,mb:d?2:void 0,padding:0},s&&{as:"fieldset",disabled:t},{sx:l}),s?r.createElement(ht,{as:"legend",mb:f?2:void 0,padding:0},i.label,i.caption,r.isValidElement(i.validation)&&i.validation.props.children&&r.createElement(Et,null,i.validation.props.children)):i.caption,r.createElement(ai,!s&&{"aria-labelledby":e,"aria-describedby":[v,u].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(c).filter((e=>r.isValidElement(e))))),d&&r.createElement(Ul,{"aria-hidden":Boolean(s),show:!0},i.validation)))};ni.displayName="CheckboxOrRadioGroup";var li=Object.assign(ni,{Caption:Xl,Label:Jl,Validation:oi});function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ii.apply(this,arguments)}const ci=v(null),si=({children:e,disabled:o,onChange:t,name:a,...n})=>{const[l,i]=Yo(null);return r.createElement(ci.Provider,{value:{disabled:o,name:a,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;o&&i(r)})(e),t(l.current,e))}}},r.createElement(li,ii({disabled:o},n),e))};si.displayName="RadioGroup";var di=Object.assign(si,{Caption:Xl,Label:Jl,Validation:oi});const gi=y(["appearance:none;border-color:",";border-style:solid;border-width:",";cursor:pointer;display:grid;height:var(--base-size-16,16px);margin:0;margin-top:0.125rem;place-content:center;position:relative;width:var(--base-size-16,16px);&:disabled{background-color:",";border-color:var(--control-borderColor-disabled,",");}"],Kr("colors.neutral.emphasis"),Kr("borderWidths.1"),Kr("colors.input.disabledBg"),Kr("colors.border.default"));function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bi.apply(this,arguments)}const vi=h.input.withConfig({displayName:"Radio__StyledRadio",componentId:"sc-1tx0ht9-0"})(["",";border-radius:var(--borderRadius-full,100vh);transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&:checked{border-color:",";border-width:var(--base-size-4,4px);&:disabled{cursor:not-allowed;border-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],gi,Kr("colors.accent.fg"),Kr("colors.fg.muted"),mt(),ft),ui=r.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:l,validationStatus:i,value:c,...s},d)=>{const g=b(ci),v=t||(null==g?void 0:g.name);return v||console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop"),r.createElement(vi,bi({type:"radio",value:c,name:v,ref:d,disabled:o,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===i?"true":"false",sx:n,onChange:e=>{(null==g?void 0:g.onChange)&&g.onChange(e),a&&a(e)}},s))}));ui.displayName="Radio";const fi=r.createContext({});function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},hi.apply(this,arguments)}const pi=h.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Kr("fontWeights.bold"),Kr("fontSizes.5"),ft),mi=d((({as:e="h2",...o},t)=>{const a=r.useRef(null);return rt(t,a),r.createElement(pi,hi({as:e},o,{ref:a}))}));mi.displayName="Heading";const yi=r.createContext({}),xi=(e,r,o)=>r?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:o?{color:"fg.muted",iconColor:"fg.muted",annotationColor:"fg.muted"}:"danger"===e?{color:"danger.fg",iconColor:"danger.fg",annotationColor:"fg.muted",hoverColor:"actionListItem.danger.hoverText"}:{color:"fg.default",iconColor:"fg.muted",annotationColor:"fg.muted",hoverColor:"fg.default"},Ci="20px",wi=r.createContext({});function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ki.apply(this,arguments)}const Bi=d((({as:e,children:o,sx:t=Bt,visuallyHidden:a=!1,...n},l)=>{var i;const c=r.useRef(null);rt(l,c);const{headingId:s,variant:d}=r.useContext(wi),{container:g}=r.useContext(fi);"ActionMenu"===g&&Lt(!1);const b={marginBottom:2,marginX:"full"===d?2:3};return r.createElement(Et,{isVisible:!a},r.createElement(mi,ki({as:e,ref:c,id:null!==(i=n.id)&&void 0!==i?i:s,sx:to(b,t)},n),o))}));function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ei.apply(this,arguments)}Bi.displayName="ActionList.Heading";const Ti=h.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(ft),Si=r.forwardRef((({variant:e="inset",selectionVariant:o,showDividers:t=!1,role:a,sx:n=Bt,...l},i)=>{var c;const s={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[d,g]=_a(l.children,{heading:Bi}),b=ot(),{listRole:v,listLabelledBy:u,selectionVariant:f,enableFocusZone:h}=r.useContext(fi),p=d.heading?null!==(c=d.heading.props.id)&&void 0!==c?c:b:u,m=so(i);return cl({disabled:!h,containerRef:m,bindKeys:Do.ArrowVertical|Do.HomeAndEnd|Do.PageUpDown}),r.createElement(wi.Provider,{value:{variant:e,selectionVariant:o||f,showDividers:t,role:a||v,headingId:b}},d.heading,r.createElement(Ti,Ei({sx:to(s,n),role:a||v,"aria-labelledby":p},l,{ref:m}),g))}));function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ii.apply(this,arguments)}Si.displayName="ActionList";const Mi=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Ni=({title:e,variant:o="subtle",auxiliaryText:t,selectionVariant:a,role:n,sx:l={},...i})=>{var c;const s=ot(),{role:d}=r.useContext(wi),[g,b]=_a(i.children,{groupHeading:Ai});let v;var u;g.groupHeading&&(v=null!==(u=g.groupHeading.props.id)&&void 0!==u?u:s);return e&&(v=s),r.createElement(ht,Ii({as:"li",role:d?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Mi.Provider,{value:{selectionVariant:a,groupHeadingId:v}},e&&!g.groupHeading?r.createElement(Ai,{variant:o,auxiliaryText:t,_internalBackwardCompatibleTitle:e}):null,!e&&g.groupHeading?r.cloneElement(g.groupHeading):null,r.createElement(ht,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":d?void 0:v,"aria-label":d?null!=e?e:null===(c=g.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:n||d&&"group"},g.groupHeading?b:i.children)))};Ni.displayName="Group";const Ai=({as:e,variant:o,_internalBackwardCompatibleTitle:t,auxiliaryText:a,children:n,sx:l=Bt,...i})=>{const{variant:c,role:s}=r.useContext(wi),{groupHeadingId:d}=r.useContext(Mi),g=void 0!==s&&"list"!==s&&void 0!==n&&void 0!==e;(void 0===s||"list"===s)&&void 0!==n&&void 0===e&&Lt(!1),g&&Lt(!1);const b={paddingY:"6px",paddingX:"full"===c?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===o&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return r.createElement(r.Fragment,null,s&&"list"!==s?r.createElement(ht,Ii({sx:b,role:"presentation","aria-hidden":"true"},i),r.createElement("span",{id:d},null!=t?t:n),a&&r.createElement("span",null,a)):r.createElement(r.Fragment,null,r.createElement(mi,Ii({as:e||"h3",id:d,sx:to(b,l)},i),null!=t?t:n),a&&r.createElement("span",null,a)))};function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Oi.apply(this,arguments)}const Li=h.div.withConfig({displayName:"Truncate__StyledTruncate",componentId:"sc-23o1d2-0"})(["display:",";overflow:hidden;text-overflow:ellipsis;vertical-align:",";white-space:nowrap;"," "," ",";"],(e=>e.inline?"inline-block":"inherit"),(e=>e.inline?"top":"initial"),ze,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),ft),ji=r.forwardRef((function({as:e,expandable:o=!1,inline:t=!1,maxWidth:a=125,...n},l){return r.createElement(Li,Oi({ref:l,as:e,expandable:o,inline:t,maxWidth:a},n))}));const Ri=({variant:e="inline",sx:o={},...t})=>{const a={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:0,minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &':{color:"inherit"},'li[data-variant="danger"]:hover &, li[data-variant="danger"]:active &':{color:"inherit"}},{blockDescriptionId:n,inlineDescriptionId:l}=r.useContext(yi);return"block"===e?r.createElement(ht,{as:"span",sx:to(a,o),id:n},t.children):r.createElement(ji,{id:l,sx:to(a,o),title:t.children,inline:!0,maxWidth:"100%"},t.children)};function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Di.apply(this,arguments)}const zi=({sx:e={},...o})=>r.createElement(ht,Di({as:"span",sx:to({height:Ci,minWidth:Kr("space.3"),maxWidth:Ci,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},o));zi.displayName="LeadingVisualContainer";const Pi=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(yi);return r.createElement(zi,Di({sx:to({color:xi(t,a,n).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:xi(t,a,n).hoverColor}},e)},o),o.children)};Pi.displayName="LeadingVisual";const _i=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(yi);return r.createElement(ht,Di({as:"span",sx:to({height:"20px",flexShrink:0,color:xi(t,a,n).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:xi(t,a,n).hoverColor}},e)},o),o.children)};_i.displayName="TrailingVisual";const Hi=({selected:e})=>{const{selectionVariant:o,role:t}=r.useContext(wi),{selectionVariant:a}=r.useContext(Mi);let n;if(n=void 0!==a?a:o,!n){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===n||"menu"===t)return r.createElement(zi,{"data-component":"ActionList.Selection"},e&&r.createElement(Vn,null));return r.createElement(zi,{"data-component":"ActionList.Selection"},r.createElement(ht,{sx:{borderColor:e?"accent.fg":"neutral.emphasis",borderStyle:"solid",borderWidth:"1",borderRadius:"1",cursor:"pointer",display:"grid",height:"var(--base-size-16, 16px)",margin:"0",placeContent:"center",width:"var(--base-size-16, 16px)",backgroundColor:e?"accent.fg":"canvas.default",transition:e?"background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1)":"background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms","::before":{width:"var(--base-size-16, 16px)",height:"var(--base-size-16, 16px)",visibility:e?"visible":"hidden",content:'""',backgroundColor:"fg.onEmphasis",transition:e?"visibility 0s linear 0s":"visibility 0s linear 230ms",clipPath:"inset(var(--base-size-16, 16px) 0 0 0)",maskImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')",maskSize:"75%",maskRepeat:"no-repeat",maskPosition:"center",animation:e?"checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms":"checkmarkOut 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards","@keyframes checkmarkIn":{from:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},"@keyframes checkmarkOut":{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"}}}},"data-component":"ActionList.Checkbox"}))};Hi.displayName="Selection";const Fi=e=>{const{if:o,...t}=e;return o?r.createElement(ht,t,e.children):r.createElement(r.Fragment,null,e.children)};function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vi.apply(this,arguments)}const Wi=h.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(ft),$i=({labelId:e,text:o,visualComponent:t})=>r.createElement(wa,{text:o},r.createElement(ht,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer",display:"flex"},"aria-labelledby":e},r.createElement(t,null,r.createElement(Hn,null))));$i.displayName="InactiveIndicator";const Zi=r.forwardRef((({variant:e="default",disabled:o=!1,inactiveText:t,selected:a,active:n=!1,onSelect:l,sx:i=Bt,id:c,role:s,_PrivateItemWrapper:d,...g},b)=>{const[v,u]=_a(g.children,{leadingVisual:Pi,trailingVisual:_i,blockDescription:[Ri,e=>"block"===e.variant],inlineDescription:[Ri,e=>"block"!==e.variant]}),{variant:f,role:h,showDividers:p,selectionVariant:m}=r.useContext(wi),{selectionVariant:y}=r.useContext(Mi),{container:x,afterSelect:C,selectionAttribute:w}=r.useContext(fi),k=Boolean(t),B=k&&void 0===x,E=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[l]),T=y||m;let S;"ActionMenu"===x?S="single"===T?"menuitemradio":"multiple"===T?"menuitemcheckbox":"menuitem":"SelectPanel"===x&&"listbox"===h&&void 0!==T&&(S="option");const I=s||S;let M;"menuitemradio"===I||"menuitemcheckbox"===I?M="aria-checked":"option"===I&&(M="aria-selected");const N=w||M,{theme:A}=it(),O={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Ci,minHeight:5,marginX:"inset"===f?2:0,borderRadius:2,transition:"background 33.333ms linear",color:xi(e,o,k).color,cursor:"pointer","&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"}},appearance:"none",background:"unset",border:"unset",width:"inset"===f?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (hover: hover) and (pointer: fine)":{":hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:xi(e,o,k).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==A?void 0:A.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==A?void 0:A.colors.accent.emphasis}`},":active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:xi(e,o,k).hoverColor}},"@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible":{outline:"solid 1px transparent !important"}},'[data-component="ActionList.Item--DividerContainer"]':{position:"relative"},'[data-component="ActionList.Item--DividerContainer"]::before':{content:'" "',display:"block",position:"absolute",width:"100%",top:"-7px",border:"0 solid",borderTopWidth:p?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==A?void 0:A.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]), &:focus:not([aria-disabled]):not([data-inactive]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...n?{fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"accent.fg",borderRadius:2}}:{}},L=r.useCallback((e=>{o||k||E(e,C)}),[E,o,k,C]),j=r.useCallback((e=>{o||k||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),E(e,C))}),[E,o,k,C]),R=ot(c),D=`${R}--label`,z=`${R}--inline-description`,P=`${R}--block-description`,_=k&&!B?`${R}--warning-message`:void 0,H=d||r.Fragment,F=N&&I&&["menuitemradio","menuitemcheckbox","option"].includes(I),V={onClick:L,onKeyPress:j,"aria-disabled":!!o||void 0,"data-inactive":!!k||void 0,tabIndex:o||B?void 0:0,"aria-labelledby":`${D} ${v.inlineDescription?z:""}`,"aria-describedby":v.blockDescription?[P,_].join(" "):_,...F&&{[N]:a},role:I,id:R},W=d?{role:I?"none":void 0}:V,$=d?V:{};return r.createElement(yi.Provider,{value:{variant:e,disabled:o,inactive:Boolean(t),inlineDescriptionId:z,blockDescriptionId:P}},r.createElement(Wi,Vi({ref:b,sx:to(O,i),"data-variant":"danger"===e?e:void 0},W,g),r.createElement(H,$,r.createElement(Hi,{selected:a}),B&&v.leadingVisual?r.createElement($i,{labelId:D,text:t,visualComponent:Pi}):v.leadingVisual,r.createElement(ht,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Fi,{if:Boolean(v.trailingVisual)||B&&!v.leadingVisual,sx:{display:"flex",flexGrow:1}},r.createElement(Fi,{if:!!v.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(ht,{as:"span",id:D,sx:{flexGrow:v.inlineDescription?0:1,fontWeight:v.inlineDescription||v.blockDescription||n?"bold":"normal",marginBlockEnd:v.blockDescription?"4px":void 0,wordBreak:"break-word"}},u),v.inlineDescription),B&&!v.leadingVisual?r.createElement($i,{labelId:D,text:t,visualComponent:_i}):v.trailingVisual),k&&x?r.createElement(ht,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:_},t):null,v.blockDescription))))}));function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ki.apply(this,arguments)}Zi.displayName="ActionList.Item";const Gi=q({hoverColor:{property:"color",scale:"colors"}}),Ui=h.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-14289xe-0"})(["color:",";text-decoration:none;text-decoration:",";[data-a11y-link-underlines='true'] &[data-inline='true']{text-decoration:underline;}&:hover{text-decoration:",";",";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}",";"],(e=>e.muted?Kr("colors.fg.muted")(e):Kr("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Gi:e.muted?`color: ${Kr("colors.accent.fg")(e)}`:""),ft),qi=d((({as:e="a",...o},t)=>{const a=r.useRef(null);return rt(t,a),r.createElement(Ui,Ki({as:e,"data-inline":o.inline},o,{ref:a}))}));function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yi.apply(this,arguments)}qi.displayName="Link";const Xi=r.forwardRef((({sx:e={},active:o,inactiveText:t,as:a,...n},l)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return r.createElement(Zi,{active:o,sx:{paddingY:0,paddingX:0},inactiveText:t,"data-inactive":!!t||void 0,_PrivateItemWrapper:({children:o,onClick:c,...s})=>t?r.createElement(ht,Yi({sx:to(i,e)},s),o):r.createElement(qi,Yi({as:a,sx:to(i,e)},s,n,{onClick:e=>{c&&c(e),n.onClick&&n.onClick(e)},ref:l}),o)},n.children)})),Ji=({sx:e={}})=>r.createElement(ht,{as:"li","aria-hidden":"true",sx:to({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Kr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});Ji.displayName="Divider";const Qi=Object.assign(Si,{Group:Ni,Item:Zi,LinkItem:Xi,Divider:Ji,Description:Ri,LeadingVisual:Pi,TrailingVisual:_i,Heading:Bi,GroupHeading:Ai});function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ec.apply(this,arguments)}const rc={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},oc={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const tc=h.div.withConfig({displayName:"Overlay__StyledOverlay",componentId:"sc-51280t-0"})(["background-color:",";box-shadow:",";position:absolute;min-width:192px;max-width:",";height:",";max-height:",";width:",";border-radius:12px;overflow:",";animation:overlay-appear ","ms ",";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}@media (forced-colors:active){outline:solid 1px transparent;}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>e.maxWidth&&oc[e.maxWidth]),(e=>rc[e.height||"auto"]),(e=>e.maxHeight&&rc[e.maxHeight]),(e=>oc[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Kr("animation.easeOutCubic"),ft),ac=r.forwardRef((({onClickOutside:e,role:o="none",initialFocusRef:t,returnFocusRef:n,ignoreClickRefs:i,onEscape:c,visibility:s="visible",height:d="auto",width:g="auto",top:b,left:v,right:u,bottom:f,anchorSide:h,portalContainerName:p,preventFocusOnOpen:m,position:y,...x},C)=>{const w=l(null);rt(C,w);const{theme:k}=it(),B=parseInt(Kr("space.2")(k).replace("px","")),E=Kr("animation.easeOutCubic")(k);qo({overlayRef:w,returnFocusRef:n,onEscape:c,ignoreClickRefs:i,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:m}),a((()=>{var e;"initial"===d&&null!==(e=w.current)&&void 0!==e&&e.clientHeight&&(w.current.style.height=`${w.current.clientHeight}px`)}),[d]),Ko((()=>{var e;const{x:r,y:o}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(h);(r||o)&&null!==(e=w.current)&&void 0!==e&&e.animate&&"hidden"!==s&&w.current.animate({transform:[`translate(${B*r}px, ${B*o}px)`,"translate(0, 0)"]},{duration:200,easing:E})}),[h,B,E,s]);const T=void 0===v&&void 0===u?{left:0}:{left:v};return r.createElement(vl,{containerName:p},r.createElement(tc,ec({height:d,width:g,role:o},x,{ref:w,style:{...T,right:u,top:b,bottom:f,position:y,"--styled-overlay-visibility":s}})))}));function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},nc.apply(this,arguments)}const lc=({renderAnchor:e,anchorRef:o,anchorId:n,children:l,open:i,onOpen:c,onClose:s,height:d,width:g,overlayProps:b,focusTrapSettings:v,focusZoneSettings:u,side:f="outside-bottom",align:h="start",alignmentOffset:p,anchorOffset:m})=>{const y=so(o),[x,C]=Yo(),w=ot(n),k=t((()=>null==s?void 0:s("click-outside")),[s]),B=t((()=>null==s?void 0:s("escape")),[s]),E=t((e=>{e.defaultPrevented||!i&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press",e),e.preventDefault())}),[i,c]),T=t((e=>{e.defaultPrevented||0!==e.button||(i?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[i,c,s]),{position:S}=Uo({anchorElementRef:y,floatingElementRef:x,side:f,align:h,alignmentOffset:p,anchorOffset:m},[x.current]);return a((()=>{!i&&x.current&&C(null)}),[i,x,C]),cl({containerRef:x,disabled:!i||!S,...u}),Rn({containerRef:x,disabled:!i||!S,...v}),r.createElement(r.Fragment,null,e&&e({ref:y,id:w,"aria-haspopup":"true","aria-expanded":i?"true":void 0,tabIndex:0,onClick:T,onKeyDown:E}),i?r.createElement(ac,nc({returnFocusRef:y,onClickOutside:k,ignoreClickRefs:[y],onEscape:B,ref:C,role:"none",visibility:S?"visible":"hidden",height:d,width:g,top:(null==S?void 0:S.top)||0,left:(null==S?void 0:S.left)||0,anchorSide:null==S?void 0:S.anchorSide},b),l):null)};function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ic.apply(this,arguments)}lc.displayName="AnchoredOverlay";const cc=r.createContext({renderAnchor:null,open:!1}),sc=({anchorRef:e,open:o,onOpenChange:t,children:a})=>{const[n,l]=Xo(o,t,!1),i=r.useCallback((()=>l(!0)),[l]),c=r.useCallback((()=>l(!1)),[l]),s=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===gc||e.type===dc))),d=r.isValidElement(s)?s.props.id:void 0,g=so(e),b=ot(d);let v=null;const u=r.Children.map(a,(e=>{if(e.type===wa){const o=e.props.children;return o.type===gc&&(v=t=>{const a=r.cloneElement(o,{...t});return r.cloneElement(e,{children:a,ref:g})}),null}if(e.type===dc){const o=e.props.children;return void 0!==o&&o.type===wa?null!==o.props.children&&(v=t=>{const a=o.props.children,n=r.cloneElement(a,{...t}),l=r.cloneElement(o,{children:n});return r.cloneElement(e,{children:l,ref:g})}):v=o=>r.cloneElement(e,o),null}return e.type===gc?(v=o=>r.cloneElement(e,o),null):e}));return r.createElement(cc.Provider,{value:{anchorRef:g,renderAnchor:v,anchorId:b,open:n,onOpen:i,onClose:c}},u)};sc.displayName="Menu";const dc=r.forwardRef((({children:e,...o},t)=>r.cloneElement(e,{...o,ref:t}))),gc=r.forwardRef((({...e},o)=>r.createElement(dc,{ref:o},r.createElement(At,ic({type:"button",trailingAction:ll},e))))),bc=({children:e,align:o="start",side:t="outside-bottom","aria-labelledby":n,...l})=>{const{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:b,onClose:v}=r.useContext(cc),u=r.useRef(null);Jo(g,v,u,c);const[f,h]=i(null);return a((()=>{if(c.current){const e=c.current.getAttribute("aria-labelledby");e&&h(e)}}),[c]),r.createElement(lc,{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:b,onClose:v,align:o,side:t,overlayProps:l,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:u},r.createElement(fi.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:n||f||d,selectionAttribute:"aria-checked",afterSelect:v}},e)))};bc.displayName="Overlay",sc.displayName="ActionMenu";const vc=Object.assign(sc,{Button:gc,Anchor:dc,Overlay:bc,Divider:Ji}),uc=v(null);var fc,hc={exports:{}},pc={},mc=Symbol.for("react.element"),yc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),Cc=Symbol.for("react.strict_mode"),wc=Symbol.for("react.profiler"),kc=Symbol.for("react.provider"),Bc=Symbol.for("react.context"),Ec=Symbol.for("react.server_context"),Tc=Symbol.for("react.forward_ref"),Sc=Symbol.for("react.suspense"),Ic=Symbol.for("react.suspense_list"),Mc=Symbol.for("react.memo"),Nc=Symbol.for("react.lazy"),Ac=Symbol.for("react.offscreen");function Oc(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case mc:switch(e=e.type){case xc:case wc:case Cc:case Sc:case Ic:return e;default:switch(e=e&&e.$$typeof){case Ec:case Bc:case Tc:case Nc:case Mc:case kc:return e;default:return r}}case yc:return r}}}fc=Symbol.for("react.module.reference"),pc.ContextConsumer=Bc,pc.ContextProvider=kc,pc.Element=mc,pc.ForwardRef=Tc,pc.Fragment=xc,pc.Lazy=Nc,pc.Memo=Mc,pc.Portal=yc,pc.Profiler=wc,pc.StrictMode=Cc,pc.Suspense=Sc,pc.SuspenseList=Ic,pc.isAsyncMode=function(){return!1},pc.isConcurrentMode=function(){return!1},pc.isContextConsumer=function(e){return Oc(e)===Bc},pc.isContextProvider=function(e){return Oc(e)===kc},pc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===mc},pc.isForwardRef=function(e){return Oc(e)===Tc},pc.isFragment=function(e){return Oc(e)===xc},pc.isLazy=function(e){return Oc(e)===Nc},pc.isMemo=function(e){return Oc(e)===Mc},pc.isPortal=function(e){return Oc(e)===yc},pc.isProfiler=function(e){return Oc(e)===wc},pc.isStrictMode=function(e){return Oc(e)===Cc},pc.isSuspense=function(e){return Oc(e)===Sc},pc.isSuspenseList=function(e){return Oc(e)===Ic},pc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===xc||e===wc||e===Cc||e===Sc||e===Ic||e===Ac||"object"==typeof e&&null!==e&&(e.$$typeof===Nc||e.$$typeof===Mc||e.$$typeof===kc||e.$$typeof===Bc||e.$$typeof===Tc||e.$$typeof===fc||void 0!==e.getModuleId)},pc.typeOf=Oc,hc.exports=pc;var Lc=hc.exports;function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jc.apply(this,arguments)}const Rc={small:"16px",medium:"32px",large:"64px"};function Dc({size:e="medium",...o}){const t=Rc[e];return r.createElement("svg",jc({height:t,width:t,viewBox:"0 0 16 16",fill:"none"},o),r.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),r.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}Dc.displayName="Spinner";const zc=h(Dc).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],ft);zc.displayName="Spinner";const Pc=({children:e,hasLoadingIndicator:o,showLoadingIndicator:t,visualPosition:a})=>!e&&!o||"leading"===a&&!e&&!t?null:o?r.createElement("span",{className:"TextInput-icon"},r.createElement(ht,{display:"flex",position:"relative"},e&&r.createElement(ht,{sx:{visibility:t?"hidden":"visible"}},e),r.createElement(zc,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:t?"visible":"hidden",..."leading"===a?{left:0}:{right:0}}:{visibility:t?"visible":"hidden"},size:e?void 0:"small"}))):r.createElement("span",{className:"TextInput-icon"},e);Pc.displayName="TextInputInnerVisualSlot";const _c=Me({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Hc=Me({prop:"size",variants:{small:{"--inner-action-size":"20px",minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},medium:{"--inner-action-size":"24px"},large:{"--inner-action-size":"28px",px:2,py:"10px",height:"40px"}}}),Fc="12px",Vc=Fc,Wc=(e,r)=>e?r&&y(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Kr("colors.accent.fg"),Kr("colors.accent.fg")):y(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Kr("colors.accent.fg"),Kr("colors.accent.fg")),$c=h.span.withConfig({displayName:"TextInputWrapper__TextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:20px;color:",";vertical-align:middle;background-color:",";border:1px solid var(--control-borderColor-rest,",");border-radius:",";outline:none;box-shadow:",";display:inline-flex;align-items:stretch;min-height:32px;overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("colors.canvas.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("shadows.primer.shadow.inset"),Kr("colors.fg.muted"),(e=>Wc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Fc,(e=>e.contrast&&y(["background-color:",";"],Kr("colors.canvas.inset"))),(e=>e.disabled&&y(["color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}"],Kr("colors.primer.fg.disabled"),Kr("colors.input.disabledBg"),Kr("colors.border.default"))),(e=>e.monospace&&y(["font-family:",";"],Kr("fonts.mono"))),(e=>"error"===e.validationStatus&&y(["border-color:",";",""],Kr("colors.danger.emphasis"),Wc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&y(["border-color:",";"],Kr("colors.success.emphasis"))),(e=>e.block&&y(["width:100%;display:flex;align-self:stretch;"])),Kr("breakpoints.1"),Kr("fontSizes.1"),Le,Re,ze,_c,Hc,ft),Zc=h($c).withConfig({displayName:"TextInputWrapper",componentId:"sc-1mqhpbi-1"})(["background-repeat:no-repeat;background-position:right 8px center;& > :not(:last-child){margin-right:",";}.TextInput-icon,.TextInput-action{align-self:center;color:",";flex-shrink:0;}"," ",";"],Kr("space.2"),Kr("colors.fg.muted"),(e=>y(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?Vc:0,e.hasTrailingVisual&&!e.hasTrailingAction?Vc:0,e.hasLeadingVisual?0:Vc,e.hasTrailingVisual||e.hasTrailingAction?0:Vc)),ft);function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Kc.apply(this,arguments)}const Gc={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",'&[data-component="IconButton"]':{width:"var(--inner-action-size)",height:"var(--inner-action-size)"},"@media (pointer: coarse)":{":after":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}},Uc=({"aria-label":e,children:o,tooltipDirection:t})=>r.createElement(r.Fragment,null,e?r.createElement(wa,{text:e,direction:t,sx:{display:"inline-block"}},o):o),qc=d((({"aria-label":e,tooltipDirection:o,children:t,icon:a,sx:n,variant:l="invisible",...i},c)=>{const s="invisible"===l?to(Gc,n||{}):n||{};return(a&&!e||!t&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),r.createElement(ht,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},a&&!t?r.createElement(wa,{direction:null!=o?o:"s",text:null!=e?e:"",type:"label"},r.createElement(Na,Kc({variant:l,type:"button",icon:a,size:"small",sx:s},i,{ref:c}))):r.createElement(Uc,{"aria-label":e},r.createElement(At,Kc({variant:l,type:"button",sx:s},i,{ref:c}),t)))})),Yc=h.input.withConfig({displayName:"UnstyledTextInput",componentId:"sc-14ypya-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}",";"],ft);function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Xc.apply(this,arguments)}const Jc=r.forwardRef((({icon:e,leadingVisual:o,trailingVisual:a,trailingAction:n,block:l,className:c,contrast:s,disabled:d,loading:g,loaderPosition:b="auto",monospace:v,validationStatus:u,sx:f,size:h,onFocus:p,onBlur:m,width:y,minWidth:x,maxWidth:C,variant:w,type:k="text",required:B,...E},T)=>{const[S,I]=i(!1),M=so(T),N=Ba(c,"TextInput-wrapper"),A=g&&("leading"===b||Boolean(o&&"trailing"!==b)),O=g&&("trailing"===b||Boolean("auto"===b&&!o)),L=t((e=>{I(!0),p&&p(e)}),[p]),j=t((e=>{I(!1),m&&m(e)}),[m]);return r.createElement(Zc,{block:l,className:N,validationStatus:u,contrast:s,disabled:d,monospace:v,sx:f,size:h,width:y,minWidth:x,maxWidth:C,variant:w,hasLeadingVisual:Boolean(o||A),hasTrailingVisual:Boolean(a||O),hasTrailingAction:Boolean(n),isInputFocused:S,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},"aria-busy":Boolean(g)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pc,{visualPosition:"leading",showLoadingIndicator:A,hasLoadingIndicator:"boolean"==typeof g},"string"!=typeof o&&Lc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(Yc,Xc({ref:M,disabled:d,onFocus:L,onBlur:j,type:k,"aria-required":B,"aria-invalid":"error"===u?"true":void 0},E,{"data-component":"input"})),r.createElement(Pc,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof g},"string"!=typeof a&&Lc.isValidElementType(a)?r.createElement(a,null):a),n)}));Jc.displayName="TextInput";var Qc=Object.assign(Jc,{Action:qc});function es(){return es=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},es.apply(this,arguments)}const rs=r.forwardRef((({as:e=Qc,onFocus:o,onBlur:n,onChange:l,onKeyDown:c,onKeyUp:s,onKeyPress:d,value:g,...v},u)=>{const f=b(uc);if(null===f)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:h,autocompleteSuggestion:p="",id:m,inputRef:y,inputValue:x="",isMenuDirectlyActivated:C,setInputValue:w,setShowMenu:k,showMenu:B}=f;rt(u,y);const[E,T]=i(!0),{safeSetTimeout:S}=On(),I=t((e=>{o&&o(e),k(!0)}),[o,k]),M=t((e=>{n&&n(e),S((()=>{document.activeElement!==y.current&&k(!1)}),0)}),[n,k,y,S]),N=t((e=>{l&&l(e),w(e.currentTarget.value),B||k(!0)}),[l,w,k,B]),A=t((e=>{var r;c&&c(e),"Backspace"===e.key&&T(!1),"Escape"===e.key&&null!==(r=y.current)&&void 0!==r&&r.value&&(w(""),y.current.value="")}),[y,w,T,c]),O=t((e=>{s&&s(e),"Backspace"===e.key&&T(!0)}),[T,s]),L=t((e=>{if(d&&d(e),B&&"Enter"===e.key&&h.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);h.current.dispatchEvent(r)}}),[h,B,d]);return a((()=>{y.current&&(p||(y.current.value=x),E&&p&&(x||C)&&(y.current.value=p,0===p.toLowerCase().indexOf(x.toLowerCase())&&y.current.setSelectionRange(x.length,p.length)))}),[p,x,y,C]),a((()=>{w(void 0!==g?g.toString():"")}),[g,w]),r.createElement(e,es({onFocus:I,onBlur:M,onChange:N,onKeyDown:A,onKeyPress:L,onKeyUp:O,ref:y,"aria-controls":`${m}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-owns":`${m}-listbox`,autoComplete:"off",id:m},v))}));function os(){return os=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},os.apply(this,arguments)}rs.displayName="AutocompleteInput";const ts={startMargin:0,endMargin:8};function as(e){const t=b(uc);if(null===t)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:c,inputRef:s,inputValue:d="",scrollContainerRef:g,setAutocompleteSuggestion:v,setShowMenu:u,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:p,showMenu:m}=t,{items:y,selectedItemIds:x,sortOnCloseFn:C,emptyStateText:w="No selectable options",addNewItem:k,loading:B,selectionVariant:E="single",filterFn:T,"aria-labelledby":S,onOpenChange:I,onSelectedChange:M,customScrollContainerRef:N}=e,A=l(null),O=l([]),[L,j]=i(),[R,D]=i(y.map((({id:e})=>e))),z=ot(c),P=o((()=>y.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===E?x.includes(e.id):void 0,onAction:e=>{const r=x.filter((r=>r!==e.id)),o=x.includes(e.id)?r:[...r,e.id];var t,a;((M||(t=f,function(e){const{text:r=""}=Array.isArray(e)?e.slice(-1)[0]:e;t(r)}))(o.map((e=>function(e,r){return r.find((r=>r.id===e))}(e,y)))),"multiple"===E)?(f(""),v("")):(u(!1),null===(a=s.current)||void 0===a||a.setSelectionRange(s.current.value.length,s.current.value.length))}})))),[L,y,x,s,M,E,v,f,u]),_=o((()=>R.reduce(((e,r,o)=>(e[r]=o,e)),{})),[R]),H=o((()=>{return P.filter(T||(e=d,function(r,o){var t;return Boolean(null===(t=r.text)||void 0===t?void 0:t.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>_[e.id]-_[r.id]));var e}),[P,_,T,d]),F=o((()=>[...H,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===E?x.includes(k.id):void 0,leadingVisual:()=>r.createElement(ol,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===E&&(f(""),v(""))}}]:[]]),[H,k,v,E,f,z,L,x]);if(r.useEffect((()=>{O.current=F})),cl({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:s,onActiveDescendantChanged:(e,r,o)=>{if(n.current=e||null,e){const r=O.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));j(r),h(o)}e&&N&&N.current&&o?Zo(e,N.current,ts):e&&g.current&&o&&Zo(e,g.current,ts)}},[B]),a((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(d)&&!x.includes(L.id)?v(L.text):v("")}),[L,d,x,v]),a((()=>{const e=[...R].sort(C||(r=e=>((e,r)=>r.includes(e))(e,x),(e,o)=>r(e)===r(o)?0:r(e)?-1:1));var r;const o=e.length===R.length&&e.every(((e,r)=>e===R[r]));!1!==m||o||D(e),I&&I(Boolean(m))}),[m,I,x,C,R]),a((()=>{x.length&&p(x.length)}),[x,p]),"single"===E&&x.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return r.createElement(Et,{isVisible:m},B?r.createElement(ht,{p:3,display:"flex",justifyContent:"center"},r.createElement(zc,null)):r.createElement("div",{ref:A},F.length?r.createElement(Qi,{selectionVariant:E,role:"listbox",id:`${c}-listbox`,"aria-labelledby":S},F.map((e=>{const{id:o,onAction:t,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(Qi.Item,os({key:o,onSelect:()=>t(e)},c,{id:o,"data-id":o}),l&&r.createElement(Qi.LeadingVisual,null,r.createElement(l,null)),null!=a?a:n,i&&r.createElement(Qi.TrailingVisual,null,r.createElement(i,null)))}))):!1!==w&&null!==w?r.createElement(ht,{p:3},w):null))}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ns.apply(this,arguments)}function ls({menuAnchorRef:e,overlayProps:o,children:a,...n}){const l=b(uc);if(null===l)throw new Error("AutocompleteContext returned null values");const i={...o,...n},{inputRef:c,scrollContainerRef:s,selectedItemLength:d,setShowMenu:g,showMenu:v=!1}=l,{floatingElementRef:u,position:f}=Uo({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,d]);rt(s,u);const h=t((()=>{g(!1)}),[g]);return"undefined"==typeof window?null:v?r.createElement(ac,ns({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:u,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:{overflow:"auto"}},i),a):r.createElement(Et,{"aria-hidden":"true"},a)}as.displayName="AutocompleteMenu",as.displayName="AutocompleteMenu",ls.displayName="AutocompleteOverlay";const is={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},cs=(e,r)=>{const{type:o,payload:t}=r;switch(o){case"inputValue":return{...e,inputValue:t};case"showMenu":return{...e,showMenu:t};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:t};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:t};case"selectedItemLength":return{...e,selectedItemLength:t};default:return e}},ss=({children:e,id:o})=>{const a=l(null),n=l(null),i=l(null),[c,s]=u(cs,is),{inputValue:d,showMenu:g,autocompleteSuggestion:b,isMenuDirectlyActivated:v,selectedItemLength:f}=c,h=t((e=>{s({type:"inputValue",payload:e})}),[]),p=t((e=>{s({type:"showMenu",payload:e})}),[]),m=t((e=>{s({type:"autocompleteSuggestion",payload:e})}),[]),y=t((e=>{s({type:"isMenuDirectlyActivated",payload:e})}),[]),x=t((e=>{s({type:"selectedItemLength",payload:e})}),[]),C=ot(o);return r.createElement(uc.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:b,id:C,inputRef:i,inputValue:d,isMenuDirectlyActivated:v,scrollContainerRef:n,selectedItemLength:f,setAutocompleteSuggestion:m,setInputValue:h,setIsMenuDirectlyActivated:y,setShowMenu:p,setSelectedItemLength:x,showMenu:g}},e)};ss.displayName="Autocomplete";var ds=Object.assign(ss,{Context:uc,Input:rs,Menu:as,Overlay:ls});const gs={xsmall:{width:"320px"},small:{width:j.breakpoints[0]},medium:{width:j.breakpoints[1]},large:{width:j.breakpoints[2]},xlarge:{width:j.breakpoints[3]},xxlarge:{width:"1400px"}};function bs(e){return`@media screen and (min-width: ${e})`}const vs=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(gs.medium.width),us=bs(gs.medium.width),fs=bs(gs.xxlarge.width);function hs(e,r,o){if(za(e)){const t=e,a="narrow"in t?{[vs]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[us]:{[r]:o(t.regular)}}:{},l="wide"in t?{[fs]:{[r]:o(t.wide)}}:{};return function(e){if("narrow"in e&&"regular"in e&&"wide"in e){const r=Object.values(e);return r.every((e=>e===r[0]))}return!1}(t)?{[r]:o(t.narrow)}:function(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}(t)?{...a,...n}:{...a,...n,...l}}return{[r]:o(e)}}function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ps.apply(this,arguments)}const ms=20,ys=h.img.attrs((e=>({height:e.size,width:e.size}))).withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-2lv0r8-0"})(["display:inline-block;overflow:hidden;line-height:",";vertical-align:middle;border-radius:",";box-shadow:0 0 0 1px ",";height:var(--avatar-size);width:var(--avatar-size);",""],Kr("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Kr("colors.avatar.border"),ft),xs=r.forwardRef((function({alt:e="",size:o=20,square:t=!1,sx:a=Bt,...n},l){const i=za(o)?to(hs(o,"--avatar-size",(e=>`${e||ms}px`)),a):to({"--avatar-size":`${o}px`},a);return r.createElement(ys,ps({ref:l,alt:e,size:o,square:t,sx:i},n))}));function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cs.apply(this,arguments)}const ws=h(xs).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Kr("shadows.avatar.childShadow")),ks=({children:e,...o})=>{const t=r.Children.map(e,((e,o)=>r.isValidElement(e)?0===o?r.cloneElement(e,{size:40}):r.createElement(ws,Cs({bg:"canvas.default"},e.props,{size:20})):e));return r.createElement(ht,Cs({position:"relative",display:"inline-flex"},o),t)};ks.displayName="AvatarPair",ks.displayName="AvatarPair";const Bs=h.span.withConfig({displayName:"AvatarStack__AvatarStackWrapper",componentId:"sc-4pdg6v-0"})(["--avatar-border-width:1px;--avatar-two-margin:calc(var(--avatar-stack-size) * -0.55);--avatar-three-margin:calc(var(--avatar-stack-size) * -0.85);display:flex;position:relative;height:var(--avatar-stack-size);min-width:var(--avatar-stack-size);.pc-AvatarStackBody{display:flex;position:absolute;}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);box-shadow:0 0 0 var(--avatar-border-width) ",";position:relative;overflow:hidden;&:first-child{margin-left:0;z-index:10;}&:nth-child(n + 2){margin-left:var(--avatar-two-margin);z-index:9;}&:nth-child(n + 3){margin-left:var(--avatar-three-margin);opacity:","%;z-index:8;}&:nth-child(n + 4){opacity:","%;z-index:7;}&:nth-child(n + 5){opacity:","%;z-index:6;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}&.pc-AvatarStack--two{min-width:calc( var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width) );}&.pc-AvatarStack--three{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) ) );}&.pc-AvatarStack--three-plus{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) * 2 ) );}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;&:first-child{margin-right:0;}&:nth-child(n + 2){margin-right:var(--avatar-two-margin);}&:nth-child(n + 3){margin-right:var(--avatar-three-margin);}}.pc-AvatarStackBody{flex-direction:row-reverse;&:not(.pc-AvatarStack--disableExpand):hover{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover{width:auto;.pc-AvatarItem{margin-left:",";opacity:100%;visibility:visible;"," transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;&:first-child{margin-left:0;}}}.pc-AvatarStack--disableExpand{position:relative;}",";"],(e=>1===e.count?Kr("colors.avatar.border"):Kr("colors.canvas.default")),55,40,25,Kr("space.1"),Kr("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Kr("colors.canvas.default")};`),ft),Es=({children:e,alignRight:o,disableExpand:t,size:a,sx:n=Bt})=>{const l=r.Children.count(e),i=Ba({"pc-AvatarStack--two":2===l,"pc-AvatarStack--three":3===l,"pc-AvatarStack--three-plus":l>3,"pc-AvatarStack--right":o}),c=Ba("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":t}),s=to(a?za(a)?hs(a,"--avatar-stack-size",(e=>`${e||ms}px`)):{"--avatar-stack-size":`${a}px`}:hs((()=>{const o={narrow:[],regular:[],wide:[]};return r.Children.toArray(e).reduce(((e,t)=>{if(!r.isValidElement(t))return e;for(const r of Object.keys(o))za(t.props.size)?o[r].push(t.props.size[r]||ms):o[r].push(t.props.size||ms),e[r]=Math.min(...o[r]);return e}),{narrow:ms,regular:ms,wide:ms})})(),"--avatar-stack-size",(e=>`${e}px`)),n);return r.createElement(Bs,{count:l,className:i,sx:s},r.createElement(ht,{className:c}," ",(e=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Ba(e.props.className,"pc-AvatarItem")}):e)))(e)))};Es.displayName="AvatarStack";const Ts=h.a.withConfig({displayName:"BranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:",";font-family:",";color:",";background-color:",";border-radius:",";text-decoration:none;",";"],Kr("fontSizes.0"),Kr("fonts.mono"),Kr("colors.accent.fg"),Kr("colors.accent.subtle"),Kr("radii.2"),ft),Ss=h.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{font-size:",";content:'';display:inline-block;height:0.8em;margin:0 0.5em;border-right:0.1em solid;border-color:",";transform:rotate(15deg) translateY(0.0625em);}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Kr("fontSizes.1"),Kr("colors.fg.muted")),Is=h.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],ft);function Ms({className:e,children:o,sx:t}){const a=r.Children.map(o,(e=>r.createElement(Ss,null,e)));return r.createElement(Is,{className:e,"aria-label":"Breadcrumbs",sx:t},r.createElement(ht,{as:"ol",my:0,pl:0},a))}Ms.displayName="Breadcrumbs";const Ns=h.a.attrs((e=>({className:Ba(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null}))).withConfig({displayName:"Breadcrumbs__BreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover,&:focus{text-decoration:underline;}&.selected{color:",";pointer-events:none;}&.selected:focus{text-decoration:none;}",";"],Kr("colors.accent.fg"),Kr("fontSizes.1"),Kr("colors.fg.default"),ft);Ms.displayName="Breadcrumbs",Ns.displayName="Breadcrumbs.Item";var As=Object.assign(Ms,{Item:Ns});const Os=Object.assign(Ms,{Item:Ns}),Ls=h.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *{margin-inline-end:-1px;position:relative;border-radius:0;:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}:focus,:active,:hover{z-index:1;}}",";"],Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),ft),js={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Rs={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Ds(e,r,o){const t=js[e].toLowerCase(),a=Rs[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const zs=Fr({prop:"bg",key:"colors"}),Ps=Fr({prop:"borderColor",key:"colors"}),_s=Fr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Hs(e){var o;const t=r.useContext(C),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(o=e.theme)&&void 0!==o?o:t},{bg:n}=zs(a),{borderColor:l}=Ps(a),{borderWidth:i}=_s(a),{size:c=8,location:s="bottom"}=e,[d,g]=function(e){const[r,o]=e.split("-");return[r,o]}(s),b=Rs[d],v=[-c,0],u=[0,c],f=[c,0],h=`M${v}L${u}L${f}L${v}Z`,p=`M${v}L${u}L${f}`,m={top:`translate(${[c,2*c]}) rotate(180)`,right:`translate(${[0,c]}) rotate(-90)`,bottom:`translate(${[c,0]})`,left:`translate(${[2*c,c]}) rotate(90)`}[d];return r.createElement("svg",{width:2*c,height:2*c,style:{pointerEvents:"none",position:"absolute",...Ds(d,g,c),[`margin${b}`]:g?null:-c},role:"presentation"},r.createElement("g",{transform:m},r.createElement("path",{d:h,fill:null==t?void 0:t.colors.canvas.default}),r.createElement("path",{d:h,fill:n}),r.createElement("path",{d:p,fill:"none",stroke:l,strokeWidth:i})))}function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Fs.apply(this,arguments)}function Vs(e){const{size:o=32,as:t,icon:a,bg:n,...l}=e;return r.createElement(ht,{as:t,bg:n,overflow:"hidden",borderWidth:0,size:o,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},r.createElement(ht,Fs({display:"flex",as:t,size:o},l,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:o})))}Hs.displayName="Caret",Hs.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Vs.displayName="CircleOcticon";const Ws=v(null),$s=Ws.Provider;function Zs(){var e;return null!==(e=b(Ws))&&void 0!==e?e:{}}function Ks(e={}){const r=b(Ws);return r?{disabled:r.disabled,id:r.id,required:r.required,validationStatus:r.validationStatus,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const Gs=v({});function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Us.apply(this,arguments)}const qs=h.input.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1ga3qj3-0"})(["",";border-radius:",";transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&::before{width:var(--base-size-16,16px);height:var(--base-size-16,16px);visibility:hidden;content:'';background-color:",";transition:visibility 0s linear 230ms;clip-path:inset(var(--base-size-16,16px) 0 0 0);mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');mask-size:75%;mask-repeat:no-repeat;mask-position:center;animation:checkmarkOut 80ms cubic-bezier(0.65,0,0.35,1) forwards;}&:checked,&:indeterminate{background:",";border-color:",";&::before{animation:checkmarkIn 80ms cubic-bezier(0.65,0,0.35,1) forwards 80ms;}}&:disabled{cursor:not-allowed;}&:checked{transition:background-color,border-color 80ms cubic-bezier(0.32,0,0.67,0) 0ms;&::before{visibility:visible;transition:visibility 0s linear 0s;}&:disabled{background-color:",";border-color:",";opacity:1;&::before{background-color:",";}}@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}}&:indeterminate{background:",";&::before{mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');visibility:visible;}}",";",";@keyframes checkmarkIn{from{clip-path:inset(var(--base-size-16,16px) 0 0 0);}to{clip-path:inset(0 0 0 0);}}@keyframes checkmarkOut{from{clip-path:inset(0 0 0 0);}to{clip-path:inset(var(--base-size-16,16px) 0 0 0);}}"],gi,Kr("radii.1"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),Kr("colors.accent.fg"),Kr("colors.fg.muted"),Kr("colors.fg.muted"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),mt(),ft),Ys=r.forwardRef((({checked:e,defaultChecked:o,indeterminate:t,disabled:n,onChange:l,sx:i,required:c,validationStatus:s,value:d,...g},v)=>{const u=so(v),f=b(Gs);return Ko((()=>{u.current&&(u.current.indeterminate=t||!1)}),[t,e,u]),a((()=>{const{current:e}=u;e&&(t?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),r.createElement(qs,Us({type:"checkbox",disabled:n,ref:u,checked:!t&&e,defaultChecked:o,sx:i,required:c,"aria-required":c?"true":"false","aria-invalid":"error"===s?"true":"false",onChange:e=>{f.onChange&&f.onChange(e),l&&l(e)},value:d,name:d},g))}));function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Xs.apply(this,arguments)}Ys.displayName="Checkbox";const Js=h.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-li6bhs-0"})(["appearance:none;border-radius:inherit;border:0;color:currentColor;font-size:inherit;outline:none;width:100%;background-color:inherit;margin-top:1px;margin-left:1px;margin-bottom:1px;&:disabled{background-color:transparent;}@media screen and (forced-colors:active){&:disabled{background-color:-moz-combobox;}}"]),Qs=({className:e})=>r.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},r.createElement("path",{d:"m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z"}));Qs.displayName="ArrowIndicatorSVG";const ed=h(Qs).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),rd=r.forwardRef((({block:e,children:o,contrast:t,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,sx:s={},...d},g)=>r.createElement(Zc,{block:e,contrast:t,disabled:a,size:l,validationStatus:c,sx:to({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},s)},r.createElement(Js,Xs({ref:g,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},d),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(ed,null)))),od=e=>r.createElement("option",e);od.displayName="Option";const td=e=>r.createElement("optgroup",e);td.displayName="OptGroup";var ad=Object.assign(rd,{Option:od,OptGroup:td}),nd=Y(pe,re,ee,J,oe,le,ce,de,ae,me,Ne,Ae,Oe),ld=new RegExp("^("+nd.propNames.join("|")+")$");function id(){return id=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},id.apply(this,arguments)}const cd={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},sd="medium",dd=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),gd=Me({prop:"size",variants:{small:{fontSize:0,height:cd.small,lineHeight:cd.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:cd.medium,lineHeight:cd.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:cd.large,lineHeight:cd.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:cd.xlarge,lineHeight:cd.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),bd=h.span.withConfig({displayName:"TokenBase__StyledTokenBase",componentId:"sc-1ju9l7y-0"})(["align-items:center;border-radius:999px;cursor:",";display:inline-flex;font-weight:",";font-family:inherit;text-decoration:none;position:relative;white-space:nowrap;"," ",""],(e=>dd(e)?"pointer":"auto"),Kr("fontWeights.bold"),gd,ft),vd=r.forwardRef((({onRemove:e,onKeyDown:o,id:t,size:a=sd,...n},l)=>r.createElement(bd,id({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},id:null==t?void 0:t.toString(),size:a},n,{ref:l}))));function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ud.apply(this,arguments)}const fd=Me({prop:"size",variants:{small:{height:cd.small,width:cd.small},medium:{height:cd.medium,width:cd.medium},large:{height:cd.large,width:cd.large},xlarge:{height:cd.xlarge,width:cd.xlarge}}}),hd=e=>.75*parseInt(cd[e||sd],10),pd=h.span.withConfig({displayName:"_RemoveTokenButton__StyledTokenButton",componentId:"sc-urhpr1-0"})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:",";align-self:baseline;border:0;border-radius:999px;"," &:hover,&:focus{background-color:",";}&:active{background-color:",";}"," ",""],(e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`),(e=>{switch(e.size){case"large":case"xlarge":return y(["margin-left:",";"],Kr("space.2"));default:return y(["margin-left:",";"],Kr("space.1"))}}),Kr("colors.neutral.muted"),Kr("colors.neutral.subtle"),fd,ft),md=({"aria-label":e,isParentInteractive:o,size:t=sd,...a})=>(delete a.children,r.createElement(pd,ud({as:o?"span":"button",tabIndex:o?-1:void 0,"aria-label":o?e:"Remove token",size:t},a),r.createElement(il,{size:hd(t)})));md.displayName="RemoveTokenButton";const yd=h("span").withConfig({displayName:"_TokenTextContainer__TokenTextContainer",componentId:"sc-6l9eri-0"})(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;line-height:normal;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex='0']){cursor:pointer;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}}"]);function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xd.apply(this,arguments)}const Cd=({children:e,size:o})=>r.createElement(ht,{sx:{flexShrink:0,lineHeight:0,marginRight:o&&["large","xlarge"].includes(o)?2:1}},e);Cd.displayName="LeadingVisualContainer";const wd=d(((e,o)=>{const{as:t,onRemove:a,id:n,leadingVisual:l,text:i,size:c=sd,hideRemoveButton:s,href:d,onClick:g,sx:b=Bt,...v}=e,u=dd(e)&&Boolean(a)&&!s,f={as:t,href:d,onClick:g},h=to({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!s&&a?0:void 0,...dd(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},b);return r.createElement(vd,xd({onRemove:a,id:null==n?void 0:n.toString(),text:i,size:c,sx:h},u?{}:f,v,{ref:o}),l?r.createElement(Cd,{size:c},r.createElement(l,null)):null,r.createElement(yd,u?f:{},i),a&&r.createElement(Et,null," (press backspace or delete to remove)"),!s&&a?r.createElement(md,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:c,isParentInteractive:dd(e),"aria-hidden":u?"true":"false"}):null)}));function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},kd.apply(this,arguments)}wd.displayName="Token";const Bd={small:0,medium:1,large:1,xlarge:2};function Ed({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:c,className:s,block:d,disabled:g,sx:b,tokens:v,onTokenRemove:u,tokenComponent:f=wd,preventTokenWrapping:h=!1,size:p="xlarge",hideTokenRemoveButtons:m=!1,maxHeight:y,width:x,minWidth:C,maxWidth:w,validationStatus:k,variant:B,visibleTokenCount:E,...T},S){const{onBlur:I,onFocus:M,onKeyDown:N,...A}=function(e){var r={};for(var o in e)ld.test(o)||(r[o]=e[o]);return r}(T),O=l(null);rt(S,O);const[L,j]=i(),[R,D]=i(Boolean(E)),{containerRef:z}=cl({focusOutBehavior:"wrap",bindKeys:Do.ArrowHorizontal|Do.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!L&&0!==L)return;let o=L+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>v.length||o<1?O.current||void 0:null===(r=z.current)||void 0===r?void 0:r.children[o]}},[L]),P=e=>{u(e),setTimeout((()=>{var e,r;const o=null===(e=z.current)||void 0===e?void 0:e.children[L||0],t=o&&po(o)?o:Array.from((null===(r=z.current)||void 0===r?void 0:r.children)||[]).find((e=>po(e)));var a;t?t.focus():null===(a=O.current)||void 0===a||a.focus()}),0)},_=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},H=e=>{var r;"Escape"===e.key&&(null===(r=O.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},V=R?v.slice(0,E):v,W=a&&("leading"===n||Boolean(o&&"trailing"!==n)),$=a&&("trailing"===n||"auto"===n&&!o);return r.createElement(Zc,{block:d,className:s,contrast:c,disabled:g,hasLeadingVisual:Boolean(o||W),hasTrailingVisual:Boolean(t||$),width:x,minWidth:C,maxWidth:w,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[p],validationStatus:k,variant:B,onClick:()=>{var e;null===(e=O.current)||void 0===e||e.focus()},sx:{paddingLeft:Vc,py:`calc(${Vc} / 2)`,...d?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...b}},e&&!o&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:W},"string"!=typeof o&&Lc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(ht,{ref:z,display:"flex",sx:{alignItems:"center",flexWrap:h?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},r.createElement(ht,{sx:{order:1,flexGrow:1}},r.createElement(Yc,kd({ref:O,disabled:g,onFocus:e=>{M&&M(e),j(void 0),E&&D(!1)},onBlur:e=>{I&&I(e),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},onKeyDown:e=>{var r;if(N&&N(e),null!==(r=O.current)&&void 0!==r&&r.value)return;const o=v[v.length-1];"Backspace"===e.key&&o&&(P(o.id),O.current&&(O.current.value=`${o.text} `),setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"},"aria-invalid":"error"===k?"true":"false"},A))),V.map((({id:e,...o},t)=>{return r.createElement(f,kd({disabled:g,key:e,onFocus:(a=t,()=>{g||j(a)}),onBlur:_,onKeyUp:H,onClick:F,isSelected:L===t,onRemove:()=>{P(e)},hideRemoveButton:g||m,size:p,tabIndex:0},o));var a})),R&&v.length-V.length?r.createElement(ql,{color:"fg.muted",fontSize:Bd[p]},"+",v.length-V.length):null),r.createElement(Pc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:$},"string"!=typeof t&&Lc.isValidElementType(t)?r.createElement(t,null):t))}Ed.displayName="TextInputWithTokensInnerComponent";const Td=r.forwardRef(Ed);function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Sd.apply(this,arguments)}Td.displayName="TextInputWithTokens";const Id=h.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-1lf8it-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;resize:both;&:focus{outline:0;}"," "," ",";"],(e=>e.resize&&y(["resize:",";"],e.resize)),(e=>e.disabled&&y(["resize:none;"])),ft),Md=r.forwardRef((({value:e,disabled:o,sx:t,required:a,validationStatus:n,rows:l=7,cols:i=30,resize:c="both",block:s,contrast:d,...g},b)=>r.createElement($c,{sx:t,validationStatus:n,disabled:o,block:s,contrast:d},r.createElement(Id,Sd({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:b,disabled:o,rows:l,cols:i},g)))));Md.displayName="Textarea";const Nd=({children:e,disabled:o,id:t,sx:a})=>r.createElement(ql,{color:o?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:t,sx:a},e);Nd.displayName="InputCaption";const Ad=({children:e,sx:o,id:t})=>{const{captionId:a,disabled:n}=Zs();return r.createElement(Nd,{id:t||a||"",disabled:n,sx:o},e)};function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Od.apply(this,arguments)}Ad.displayName="FormControlCaption";const Ld=({children:e,disabled:o,htmlFor:t,id:a,required:n,visuallyHidden:l,sx:i,as:c="label",...s})=>r.createElement(Et,Od({isVisible:!l,as:c,htmlFor:t,id:a,sx:{fontWeight:"bold",fontSize:1,display:"block",color:o?"fg.muted":"fg.default",cursor:o?"not-allowed":"pointer",alignSelf:"flex-start",...i}},s),n?r.createElement(ht,{display:"flex",as:"span"},r.createElement(ht,{mr:1},e),r.createElement("span",null,"*")):e);Ld.displayName="InputLabel";const jd=({as:e,children:o,htmlFor:t,id:a,visuallyHidden:n,sx:l,...i})=>{const{disabled:c,id:s,required:d}=Zs(),g="legend"===e||"span"===e?{as:e,id:a,visuallyHidden:n,required:d,disabled:c,sx:l,...i}:{as:e,id:a,visuallyHidden:n,htmlFor:t||s,required:d,disabled:c,sx:l,...i};return r.createElement(Ld,g,o)};jd.displayName="FormControlLabel";const Rd=({children:e,sx:o})=>{const{disabled:t,captionId:a}=Zs();return r.createElement(ht,{color:t?"fg.muted":"fg.default",sx:{"> *":{minWidth:Kr(a?"fontSizes.4":"fontSizes.2"),minHeight:Kr(a?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...o},ml:2},e)};Rd.displayName="FormControlLeadingVisual";const Dd=({children:e,variant:o,sx:t,id:a})=>{const{validationMessageId:n}=Zs();return r.createElement(ri,{validationStatus:o,id:a||n||"",sx:t},e)};Dd.displayName="FormControlValidation";const zd=r.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:l},i)=>{var c,s,d;const[g,v]=_a(e,{caption:Ad,label:jd,leadingVisual:Rd,validation:Dd}),u=[ds,Ys,ui,ad,Qc,Td,Md],f=b(Yl).disabled||o,h=ot(a),p=g.validation?`${h}-validationMessage`:void 0,m=g.caption?`${h}-caption`:void 0,y=null===(c=g.validation)||void 0===c?void 0:c.props.variant,x=v.find((e=>u.some((o=>r.isValidElement(e)&&e.type===o)))),C=r.isValidElement(x)&&x.props,w=r.isValidElement(x)&&(x.type===Ys||x.type===ui);x&&(null!=C&&C.id&&console.warn("instead of passing the 'id' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.disabled&&console.warn("instead of passing the 'disabled' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.required&&console.warn("instead of passing the 'required' prop directly to the input component, it should be passed to the parent component, <FormControl>")),g.label||console.error(`The input field with the id ${h} MUST have a FormControl.Label child.\n\nIf you want to hide the label, pass the 'visuallyHidden' prop to the FormControl.Label component.`),w?(g.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),v.find((e=>{var o;return r.isValidElement(e)&&(null===(o=e.props)||void 0===o?void 0:o.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):g.leadingVisual&&console.warn("A leading visual is only rendered for a checkbox or radio form control. If you want to render a leading visual inside of your input, check if your input supports a leading visual.");const k=null===(s=g.label)||void 0===s?void 0:s.props.visuallyHidden;return r.createElement($s,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?r.createElement(ht,{ref:i,display:"flex",alignItems:g.leadingVisual?"center":void 0,sx:l},r.createElement(ht,{sx:{"> input":{marginLeft:0,marginRight:0}}},r.isValidElement(x)&&r.cloneElement(x,{id:h,disabled:f,"aria-describedby":m}),v.filter((e=>r.isValidElement(e)&&![Ys,ui].some((r=>e.type===r))))),g.leadingVisual&&r.createElement(ht,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:g.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),minHeight:g.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),fill:"currentColor"}},ml:2},g.leadingVisual),null===(d=g.label)||void 0===d||!d.props.visuallyHidden||g.caption?r.createElement(ht,{display:"flex",flexDirection:"column",ml:2},g.label,g.caption):r.createElement(r.Fragment,null,g.label,g.caption)):r.createElement(ht,{ref:i,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l}},g.label,r.isValidElement(x)&&r.cloneElement(x,Object.assign({id:h,required:n,disabled:f,validationStatus:y,"aria-describedby":[p,m].filter(Boolean).join(" ")},x.props)),v.filter((e=>r.isValidElement(e)&&!u.some((r=>e.type===r)))),g.validation?r.createElement(Ul,{show:!0},g.validation):null,g.caption))}));var Pd=Object.assign(zd,{Caption:Ad,Label:jd,LeadingVisual:Rd,Validation:Dd});function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_d.apply(this,arguments)}const Hd=({children:e,disabled:o,onChange:t,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===Pd)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Ys)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=Yo(l);return r.createElement(Gs.Provider,{value:{disabled:o,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;c(o?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),t(i.current||[],e))}}},r.createElement(li,_d({disabled:o},a),e))};Hd.displayName="CheckboxGroup";var Fd=Object.assign(Hd,{Caption:Xl,Label:Jl,Validation:oi});const Vd={small:56,medium:96,large:128},Wd=h.div.withConfig({displayName:"CircleBadge",componentId:"sc-nywehb-0"})(["display:",";align-items:center;justify-content:center;background-color:",";border-radius:50%;box-shadow:",";",";",";"],(({inline:e=!1})=>e?"inline-flex":"flex"),Kr("colors.canvas.default"),Kr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Vd[r];return{width:o,height:o}}),ft),$d=h(zn).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);$d.displayName="CircleBadge.Icon";var Zd=Object.assign(Wd,{Icon:$d});const Kd=h.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],ft);Kd.displayName="Details";const Gd=()=>null;function Ud(e){const r=e;return r.tabIndex>=0&&!r.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(r)}function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qd.apply(this,arguments)}const Yd=()=>null,Xd=h.div.withConfig({displayName:"Dialog__DialogBase",componentId:"sc-13rdxb7-0"})(["box-shadow:",";border-radius:",";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:",";width:",";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}",";"],Kr("shadows.shadow.large"),Kr("radii.2"),Kr("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),ft),Jd=h(ht).withConfig({displayName:"Dialog__DialogHeaderBase",componentId:"sc-13rdxb7-1"})(["border-radius:"," "," 0px 0px;border-bottom:1px solid ",";display:flex;@media screen and (max-width:750px){border-radius:0px;}",";"],Kr("radii.2"),Kr("radii.2"),Kr("colors.border.default"),ft);function Qd({theme:e,children:o,backgroundColor:t="canvas.subtle",...a}){return r.Children.toArray(o).every((e=>"string"==typeof e))&&(o=r.createElement(ql,{fontSize:1,fontWeight:"bold"},o)),r.createElement(Jd,qd({theme:e,p:3,backgroundColor:t},a),o)}Qd.displayName="DialogHeader";const eg=h.span.withConfig({displayName:"Dialog__Overlay",componentId:"sc-13rdxb7-2"})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:",";}"],Kr("colors.primer.canvas.backdrop")),rg=d((({children:e,onDismiss:o=Yd,isOpen:n,initialFocusRef:i,returnFocusRef:c,...s},d)=>{const g=l(null),b=l(null);rt(d,b);const v=l(null),u=()=>{o(),c&&c.current&&c.current.focus()},{getDialogProps:f}=function({modalRef:e,overlayRef:r,isOpen:o,onDismiss:n=Gd,initialFocusRef:l,closeButtonRef:i}){const c=t((o=>{e.current&&r.current&&o.target instanceof Node&&!e.current.contains(o.target)&&r.current.contains(o.target)&&n()}),[n,e,r]);a((()=>{if(o)return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}}),[o,c]),a((()=>{o&&(l&&l.current?l.current.focus():i&&i.current&&i.current.focus())}),[o,l,i]);const s=t(((r,o)=>{if(e.current){const t=Array.from(e.current.querySelectorAll("*")).filter(Ud);if(0===t.length)return;r.preventDefault();const a=document.activeElement;if(!a)return;const n=t.indexOf(a)+o,l=1===o?0:t.length-1;return t[n]||t[l]}}),[e]),d=t((e=>{const r=e.shiftKey?-1:1,o=s(e,r);o&&o.focus()}),[s]),g=t((e=>{"Tab"===e.key&&d(e)}),[d]);return uo((e=>{o&&(n(),e.preventDefault())}),[o,n]),{getDialogProps:()=>({onKeyDown:g})}}({modalRef:b,onDismiss:u,isOpen:n,initialFocusRef:i,closeButtonRef:v,returnFocusRef:c,overlayRef:g});return n?r.createElement(r.Fragment,null,r.createElement(eg,{ref:g}),r.createElement(Xd,qd({tabIndex:-1,ref:b,role:"dialog","aria-modal":"true"},s,f()),r.createElement(Na,{icon:il,ref:v,onClick:u,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));Qd.propTypes={...ht.propTypes},Qd.displayName="Dialog.Header",rg.displayName="Dialog";var og=Object.assign(rg,{Header:Qd});function tg(){return tg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},tg.apply(this,arguments)}const ag=Me({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),ng=h.div.withConfig({displayName:"Flash__StyledFlash",componentId:"sc-hzrzfc-0"})(["position:relative;color:",";padding:",";border-style:solid;border-width:",";border-radius:",";margin-top:",";p:last-child{margin-bottom:0;}svg{margin-right:",";}",";",";"],Kr("colors.fg.default"),Kr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Kr("radii.2")),(e=>e.full?"-1px":"0"),Kr("space.2"),ag,ft),lg=r.forwardRef((function({as:e,variant:o="default",...t},a){return r.createElement(ng,tg({ref:a,as:e,variant:o},t))}));const ig=h.header.withConfig({displayName:"Header",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;",";"],Kr("space.3"),Kr("fontSizes.1"),Kr("lineHeights.default"),Kr("colors.header.text"),Kr("colors.header.bg"),ft),cg=h.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Kr("space.3"),(({full:e})=>e&&y(["flex:auto;"])),ft);cg.displayName="Header.Item";const sg=h.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__HeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Kr("fontWeights.bold"),Kr("colors.header.logo"),Kr("colors.header.text"),ft);sg.displayName="Header.Link";var dg=Object.assign(ig,{Link:sg,Item:cg});function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gg.apply(this,arguments)}const bg=h.span.withConfig({displayName:"Label__StyledLabel",componentId:"sc-1dgcne-0"})(["align-items:center;background-color:transparent;border-width:1px;border-radius:999px;border-style:solid;display:inline-flex;font-weight:",";font-size:",";line-height:1;white-space:nowrap;",";",";",";"],Kr("fontWeights.bold"),Kr("fontSizes.0"),Me({variants:{default:{borderColor:"border.default"},primary:{borderColor:"fg.default"},secondary:{borderColor:"border.muted",color:"fg.muted"},accent:{borderColor:"accent.emphasis",color:"accent.fg"},success:{borderColor:"success.emphasis",color:"success.fg"},attention:{borderColor:"attention.emphasis",color:"attention.fg"},severe:{borderColor:"severe.emphasis",color:"severe.fg"},danger:{borderColor:"danger.emphasis",color:"danger.fg"},done:{borderColor:"done.emphasis",color:"done.fg"},sponsors:{borderColor:"sponsors.emphasis",color:"sponsors.fg"}}}),Me({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),ft),vg=r.forwardRef((function({as:e,size:o="small",variant:t="default",...a},n){return r.createElement(bg,gg({as:e,size:o,variant:t,ref:n},a))}));function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ug.apply(this,arguments)}const fg=h.div.withConfig({displayName:"LabelGroup__StyledLabelGroupContainer",componentId:"sc-6tqg8q-0"})(["display:flex;flex-wrap:nowrap;gap:",";line-height:1;max-width:100%;overflow:hidden;&[data-overflow='inline']{flex-wrap:wrap;}",";"],Kr("space.1"),ft),hg=h.div.withConfig({displayName:"LabelGroup__ItemWrapper",componentId:"sc-6tqg8q-1"})(["display:flex;align-items:center;min-height:28px;&.ItemWrapper--hidden{order:9999;pointer-events:none;visibility:hidden;}"]),pg=({collapseButtonRef:e,collapseInlineExpandedChildren:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l,totalLength:i})=>n?r.createElement(At,{ref:e,onClick:o,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(At,{ref:t,variant:"invisible",size:"small",onClick:l},r.createElement(Et,null,"Show all ",i),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,mg=({children:e,closeOverflowOverlay:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c,totalLength:s})=>a.length?r.createElement(lc,{open:n,onOpen:l,onClose:o,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:t,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>r.createElement(At,ug({variant:"invisible",size:"small"},e,{ref:t}),r.createElement(Et,null,"Show all ",s),r.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},r.createElement(ht,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},r.createElement(ht,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),r.createElement(Na,{onClick:o,icon:il,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,yg=({children:e,visibleChildCount:o,overflowStyle:t="overlay",sx:a})=>{const n=r.useRef(null),l=r.useRef(null),i=r.useRef(void 0),[c,s]=r.useState({}),[d,g]=r.useState(!1),[b,v]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:u}=it(),f=parseInt(Kr("space.2")(u),10),h=Object.keys(c).filter((e=>!c[e])),p=h.length&&"overlay"===t?((e,r,o)=>{var t;return o+e.right-((null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect().left)||0)})(b,n,f):void 0,m=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===b.width&&r.right===b.right||v(r),m.current=e}}),[b]),y=r.useCallback((e=>{var r;const o=(null===(r=n.current)||void 0===r?void 0:r.children)||[],t={};for(const r of o){const o=r.getAttribute("data-index");o&&(t[o]=parseInt(o,10)<e)}s(t)}),[]),x=r.useCallback((()=>g(!0)),[g]),C=r.useCallback((()=>{g(!1)}),[g]),w=r.useCallback((()=>{g(!1),o&&"number"==typeof o&&y(o),setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),10)}),[m,y,o]),k=r.useCallback((()=>{s({}),g(!0)}),[s,g]);return r.useEffect((()=>{if(o&&!d){if("auto"===o){const r=new IntersectionObserver((e=>{const r={};for(const o of e){const e=o.target.getAttribute("data-index");e&&(r[e]=o.isIntersecting)}s((e=>({...e,...r})))}),{root:n.current,rootMargin:`0px -${b.width}px 0px 0px`,threshold:1});for(const o of(null===(e=n.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}y(o)}}),[b,o,y,d]),r.useEffect((()=>{"overlay"!==t&&h.length&&(i.current=parseInt(h[0],10))}),[h,t,d]),r.useEffect((()=>{if("overlay"===t)return;const e=document.querySelector(`[data-index="${i.current}"]`),r=e?ho(e):null;var o;d&&(r?r.focus():null===(o=l.current)||void 0===o||o.focus())}),[t,d]),o?r.createElement(fg,{ref:n,"data-overflow":"inline"===t&&d?"inline":void 0,sx:a},r.Children.map(e,((e,o)=>r.createElement(hg,{"data-index":o,className:h.includes(o.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===t?r.createElement(pg,{collapseButtonRef:l,collapseInlineExpandedChildren:w,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:d,showAllTokensInline:k,totalLength:r.Children.toArray(e).length}):r.createElement(mg,{closeOverflowOverlay:C,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:d,openOverflowOverlay:x,overlayPaddingPx:f,overlayWidth:p,totalLength:r.Children.toArray(e).length},e)):r.createElement(fg,{"data-overflow":"inline",sx:a},e)};function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xg.apply(this,arguments)}yg.displayName="LabelGroup";const Cg=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),wg=h.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(ft),kg=r.forwardRef((({children:e,...o},t)=>r.createElement(wg,xg({},o,{ref:t}),r.createElement(Qi,null,e))));kg.displayName="NavList";const Bg=r.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=Bt,...n},l)=>{const{depth:i}=r.useContext(Sg),c=r.Children.toArray(o).find((e=>f(e)&&e.type===Ig)),s=r.Children.toArray(o).filter((e=>!f(e)||e.type!==Ig));return!f(c)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),c&&f(c)?r.createElement(Tg,{subNav:c,depth:i,defaultOpen:t,sx:a},s):r.createElement(Qi.LinkItem,xg({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:to(Cg(i),a)},n),o)}));Bg.displayName="NavList.Item";const Eg=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function Tg({children:e,subNav:o,depth:t,defaultOpen:a,sx:n=Bt}){var l;const i=ot(),c=ot(),[s,d]=r.useState(null!==(l=a||null)&&void 0!==l&&l),g=r.useRef(null),[b,v]=r.useState(!1);return Ko((()=>{if(g.current){g.current.querySelector("[aria-current]:not([aria-current=false])")&&(v(!0),d(!0))}}),[o,i]),r.createElement(Eg.Provider,{value:{buttonId:i,subNavId:c,isOpen:s}},r.createElement(ht,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},r.createElement(Qi.Item,{as:"button",id:i,"aria-expanded":s,"aria-controls":c,active:!s&&b,onClick:()=>d((e=>!e)),sx:to({...Cg(t),fontWeight:b?"bold":null},n)},e,r.createElement(Qi.TrailingVisual,null,r.createElement(zn,{icon:$n,sx:{transform:s?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:g},o)))}Tg.displayName="ItemWithSubNav";const Sg=r.createContext({depth:0}),Ig=({children:e,sx:o=Bt})=>{const{buttonId:t,subNavId:a,isOpen:n}=r.useContext(Eg),{depth:l}=r.useContext(Sg);return t&&a||console.error("NavList.SubNav must be a child of a NavList.Item"),l>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):r.createElement(Sg.Provider,{value:{depth:l+1}},r.createElement(ht,{as:"ul",id:a,"aria-labelledby":t,sx:to({padding:0,margin:0,display:n?"block":"none"},o)},e))};Ig.displayName="SubNav",Ig.displayName="NavList.SubNav";const Mg=Qi.LeadingVisual;Mg.displayName="NavList.LeadingVisual";const Ng=Qi.TrailingVisual;Ng.displayName="NavList.TrailingVisual";const Ag=Qi.Divider;Ag.displayName="NavList.Divider";const Og={},Lg=({title:e,children:o,sx:t=Og,...a})=>r.createElement(r.Fragment,null,r.createElement(Qi.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(Qi.Group,xg({},a,{title:e,sx:t}),o));Lg.displayName="NavList.Group";const jg=Object.assign(kg,{Item:Bg,SubNav:Ig,LeadingVisual:Mg,TrailingVisual:Ng,Divider:Ag,Group:Lg}),Rg=h.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Kr("space.4"),Kr("space.4"),Kr("space.4"),Kr("colors.border.default"),ft);function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dg.apply(this,arguments)}const zg=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(Da),Pg=h.a.withConfig({displayName:"Pagination__Page",componentId:"sc-cp45c9-0"})(["display:inline-block;min-width:32px;height:32px;padding:0.5rem calc((2rem - 1.25rem) / 2);font-style:normal;line-height:1;color:",";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:",";&:last-child{margin-right:0;}background-color:transparent;border-radius:",";transition:background-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;background-color:",";outline:0;transition-duration:0.1s;}",";&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:",";cursor:default;background-color:transparent;border-color:transparent;font-size:inherit;font-family:inherit;padding-top:inherit;padding-bottom:inherit;}&[aria-disabled],&[aria-disabled]:hover,&[role='presentation'],&[role='presentation']:hover{color:",";cursor:default;background-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:",";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:",";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"],Kr("colors.fg.default"),Kr("space.1"),Kr("radii.2"),Kr("colors.actionListItem.default.hoverBg"),mt(0),Kr("colors.border.muted"),Kr("colors.accent.fg"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.emphasis"),Kr("colors.primer.fg.disabled"),Kr("colors.primer.fg.disabled"),Kr("space.1"),Kr("space.1"));function _g({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}){const s=r.useCallback((e=>r=>a(r,e)),[a]),d=r.useMemo((()=>function(e,r,o,t,a){const n=[];if(o){const o=[],l=r=>{r>=1&&r<=e&&o.push(r)};let i=r-a,c=r+a;if(i<1&&c>e)i=1,c=e;else if(i<1)for(;i<1;)i++,c++;else if(c>e)for(;c>e;)i--,c--;for(let r=1;r<=t;r++){const o=e-(r-1);r>=i?c++:l(r),o<=c?i--:l(o)}for(let e=i;e<=c;e++)l(e);const s=o.slice().sort(((e,r)=>e-r)).filter(((e,r,o)=>!r||e!==o[r-1]));for(let e=0;e<s.length;e++){const o=s[e],t=o===r,a=o-s[e-1],l=-1!=o-s[e+1];0===e?(1!==o&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:l})):1===a?n.push({type:"NUM",num:o,selected:t,precedesBreak:l}):(n.push({type:"BREAK",num:o-1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:!1}))}const d=n[n.length-1];"NUM"===d.type&&d.num!==e&&n.push({type:"BREAK",num:e})}const l={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,l]}(o,t,!!i,l,c)),[o,t,i,l,c]),g=r.useMemo((()=>d.map((o=>{const{props:t,key:a,content:l}=function(e,r,o){const t={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:o});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:o});break;case"NUM":n=`page-${e.num}`,a=String(e.num),Object.assign(t,{href:r(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:o,"aria-current":e.selected?"page":void 0});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(t,{as:"span",role:"presentation"})}return{props:t,key:n,content:a}}(o,n,s(o.num));return r.createElement(Pg,Dg({},t,{key:a,theme:e}),l)}))),[d,n,s,e]);return g}const Hg=h.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Da).map((e=>`\n @media (${Da[e]}) {\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:not(:first-child):not(:last-child) {\n display: none;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:first-child {\n margin-inline-end: 0;\n }\n \n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:last-child {\n margin-inline-start: 0;\n }\n }\n `)).join(""),ft);function Fg({theme:e,pageCount:o,currentPage:t,onPageChange:a=Wg,hrefBuilder:n=Vg,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...s}){const d=_g({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c});return r.createElement(Hg,Dg({"aria-label":"Pagination"},s,{theme:e}),r.createElement(ht,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":zg(i).join(" ")},d))}function Vg(e){return`#${e}`}function Wg(){}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$g.apply(this,arguments)}function Zg(e){const o=r.useContext(C),{bg:t,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:s,...d}=e,{bg:g,backgroundColor:b,...v}=i||{},u=l||o,f=t||g||b,h={bg:t||(null==i?void 0:i.bg)||(null==i?void 0:i.backgroundColor),borderColor:n||(null==i?void 0:i.borderColor),borderWidth:a,location:c,theme:u};return r.createElement(ht,$g({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},d,{sx:{...v,"--custom-bg":Kr(`colors.${f}`)({theme:u}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${u.colors.canvas.default}, ${u.colors.canvas.default})`:void 0,position:"relative"}}),s,r.createElement(Hs,h))}Fg.displayName="Pagination",Zg.displayName="PointerBox";const Kg=h.div.attrs((({className:e,caret:r="top"})=>({className:Ba(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),ft),Gg=h.div.withConfig({displayName:"Popover__PopoverContent",componentId:"sc-q9r75g-1"})(["border:1px solid ",";border-radius:",";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:",";background-color:",";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-",";margin-left:-9px;border:"," solid transparent;border-bottom-color:",";}&::after{top:-14px;margin-left:-",";border:7px solid transparent;border-bottom-color:",";}",".caret-pos--bottom &,",".caret-pos--bottom-right &,",".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-",";border-top-color:",";}&::after{bottom:-14px;border-top-color:",";}}",".caret-pos--top-right &,",".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}",".caret-pos--top-left &,",".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:",";margin-left:0;}&::after{left:calc("," + 1px);}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &,",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc(("," + 1px) * -1);}&::after{margin-top:-",";}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &{&::before{right:-",";border-left-color:",";}&::after{right:-14px;border-left-color:",";}}",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before{left:-",";border-right-color:",";}&::after{left:-14px;border-right-color:",";}}",".caret-pos--right-top &,",".caret-pos--left-top &{&::before,&::after{top:",";}}",".caret-pos--right-bottom &,",".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:",";}&::after{bottom:calc("," + 1px);}}",";"],Kr("colors.border.default"),Kr("radii.2"),Kr("space.4"),Kr("colors.canvas.overlay"),Kr("space.3"),Kr("space.2"),Kr("colors.border.default"),Kr("space.2"),Kr("colors.canvas.overlay"),Kg,Kg,Kg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Kg,Kg,Kg,Kg,Kr("space.4"),Kr("space.4"),Kg,Kg,Kg,Kg,Kg,Kg,Kr("space.2"),Kr("space.2"),Kg,Kg,Kg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Kg,Kg,Kg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Kg,Kg,Kr("space.4"),Kg,Kg,Kr("space.3"),Kr("space.3"),ft);Gg.displayName="Popover.Content";var Ug=Object.assign(Kg,{Content:Gg});function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qg.apply(this,arguments)}const Yg=x(["from{mask-position:200%;}to{mask-position:0%;}"]),Xg=h.span.withConfig({displayName:"ProgressBar__Item",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";@media (prefers-reduced-motion:no-preference){&[data-animated='true']{mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}}",";"],(e=>e.progress?`${e.progress}%`:0),Kr("colors.success.emphasis"),Yg,ft);Xg.displayName="ProgressBar.Item";const Jg={small:"5px",large:"10px",default:"8px"},Qg=h.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Kr("colors.border.default"),Kr("radii.1"),(e=>Jg[e.barSize||"default"]),Le,ft),eb=d((({animated:e,progress:o,bg:t="success.emphasis",barSize:a="default",children:n,...l},i)=>{if(n&&o)throw new Error("You should pass `progress` or children, not both.");const c="string"==typeof o?parseInt(o,10):o,s={"aria-valuenow":c?Math.round(c):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!c&&100!==c};return r.createElement(Qg,qg({ref:i,role:"progressbar",barSize:a},s,l),null!=n?n:r.createElement(Xg,{"data-animated":e,progress:o,sx:{backgroundColor:t}}))}));eb.displayName="ProgressBar";const rb=Object.assign(eb,{Item:Xg});var ob,tb=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},ab=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};const nb="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const r=[];for(const o of e)r.push({type:"element",value:o}),r.push({type:"literal",value:", "});return r.slice(0,-1)}},lb=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],ib={minimumIntegerDigits:2};class cb{constructor(e,r={}){ob.set(this,void 0);let o=String(r.style||"short");"long"!==o&&"short"!==o&&"narrow"!==o&&"digital"!==o&&(o="short");let t="digital"===o?"numeric":o;const a=r.hours||t;t="2-digit"===a?"numeric":a;const n=r.minutes||t;t="2-digit"===n?"numeric":n;const l=r.seconds||t;t="2-digit"===l?"numeric":l;const i=r.milliseconds||t;tb(this,ob,{locale:e,style:o,years:r.years||"digital"===o?"short":o,yearsDisplay:"always"===r.yearsDisplay?"always":"auto",months:r.months||"digital"===o?"short":o,monthsDisplay:"always"===r.monthsDisplay?"always":"auto",weeks:r.weeks||"digital"===o?"short":o,weeksDisplay:"always"===r.weeksDisplay?"always":"auto",days:r.days||"digital"===o?"short":o,daysDisplay:"always"===r.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===r.hoursDisplay||"digital"===o?"always":"auto",minutes:n,minutesDisplay:"always"===r.minutesDisplay||"digital"===o?"always":"auto",seconds:l,secondsDisplay:"always"===r.secondsDisplay||"digital"===o?"always":"auto",milliseconds:i,millisecondsDisplay:"always"===r.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return ab(this,ob,"f")}formatToParts(e){const r=[],o=ab(this,ob,"f"),t=o.style,a=o.locale;for(const[t,n]of lb){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?ib:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new nb(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}ob=new WeakMap;const sb=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,db=["year","month","week","day","hour","minute","second","millisecond"];class gb{constructor(e=0,r=0,o=0,t=0,a=0,n=0,l=0,i=0){this.years=e,this.months=r,this.weeks=o,this.days=t,this.hours=a,this.minutes=n,this.seconds=l,this.milliseconds=i,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new gb(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(e){var r;if("string"==typeof e){const o=String(e).trim(),t=o.startsWith("-")?-1:1,a=null===(r=o.match(sb))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new gb(...a):new gb}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new gb(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(bb(o,gb.from(e)).getTime()-o),a=Math.abs(bb(o,gb.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new cb(e,r).format(this)}}function bb(e,r){const o=new Date(e);return o.setFullYear(o.getFullYear()+r.years),o.setMonth(o.getMonth()+r.months),o.setDate(o.getDate()+7*r.weeks+r.days),o.setHours(o.getHours()+r.hours),o.setMinutes(o.getMinutes()+r.minutes),o.setSeconds(o.getSeconds()+r.seconds),o}function vb(e,{relativeTo:r=Date.now()}={}){if(r=new Date(r),e.blank)return e;const o=e.sign;let t=Math.abs(e.years),a=Math.abs(e.months),n=Math.abs(e.weeks),l=Math.abs(e.days),i=Math.abs(e.hours),c=Math.abs(e.minutes),s=Math.abs(e.seconds),d=Math.abs(e.milliseconds);d>=900&&(s+=Math.round(d/1e3)),(s||c||i||l||n||a||t)&&(d=0),s>=55&&(c+=Math.round(s/60)),(c||i||l||n||a||t)&&(s=0),c>=55&&(i+=Math.round(c/60)),(i||l||n||a||t)&&(c=0),l&&i>=12&&(l+=Math.round(i/24)),!l&&i>=21&&(l+=Math.round(i/24)),(l||n||a||t)&&(i=0);const g=r.getFullYear();let b=r.getMonth();const v=r.getDate();if(l>=27||t+a+l){const e=new Date(r);e.setFullYear(g+t*o),e.setMonth(b+a*o),e.setDate(v+l*o);const i=e.getFullYear()-r.getFullYear(),c=e.getMonth()-r.getMonth(),s=Math.abs(Math.round((Number(e)-Number(r))/864e5)),d=Math.abs(12*i+c);s<27?(l>=6?(n+=Math.round(l/7),l=0):l=s,a=t=0):d<11?(a=d,t=0):(a=0,t=i*o),(a||t)&&(l=0),b=r.getMonth()}return t&&(a=0),n>=4&&(a+=Math.round(n/4)),(a||t)&&(n=0),l&&n&&!a&&!t&&(n+=Math.round(l/7),l=0),new gb(t*o,a*o,n*o,l*o,i*o,c*o,s*o,d*o)}var ub,fb,hb,pb,mb,yb,xb,Cb,wb,kb,Bb,Eb=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)},Tb=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o};const Sb=globalThis.HTMLElement||null,Ib=new gb,Mb=new gb(0,0,0,0,0,1);class Nb extends Event{constructor(e,r,o,t){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=r,this.oldTitle=o,this.newTitle=t}}function Ab(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const r=e.precision;if("second"===r)return 1e3;if("minute"===r)return 6e4}const r=Math.abs(Date.now()-e.date.getTime());return r<6e4?1e3:r<36e5?6e4:36e5}const Ob=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);const r=e.date;if(r&&r.getTime()){const r=Ab(e),o=Date.now()+r;o<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),r),this.time=o)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(const r of this.elements)e=Math.min(e,Ab(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class Lb extends Sb{constructor(){super(...arguments),ub.add(this),fb.set(this,!1),hb.set(this,!1),mb.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Bb.set(this,null)}static define(e="relative-time",r=customElements){return r.define(e,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","datetime","lang","title"]}get onRelativeTimeUpdated(){return Eb(this,Bb,"f")}set onRelativeTimeUpdated(e){Eb(this,Bb,"f")&&this.removeEventListener("relative-time-updated",Eb(this,Bb,"f")),Tb(this,Bb,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("relative-time-updated",e)}get second(){const e=this.getAttribute("second");if("numeric"===e||"2-digit"===e)return e}set second(e){this.setAttribute("second",e||"")}get minute(){const e=this.getAttribute("minute");if("numeric"===e||"2-digit"===e)return e}set minute(e){this.setAttribute("minute",e||"")}get hour(){const e=this.getAttribute("hour");if("numeric"===e||"2-digit"===e)return e}set hour(e){this.setAttribute("hour",e||"")}get weekday(){const e=this.getAttribute("weekday");return"long"===e||"short"===e||"narrow"===e?e:"datetime"===this.format&&""!==e?this.formatStyle:void 0}set weekday(e){this.setAttribute("weekday",e||"")}get day(){var e;const r=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===r||"2-digit"===r)return r}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let r=this.getAttribute("month");if(""!==r)return null!=r||(r="datetime"===e?this.formatStyle:"short"),"numeric"===r||"2-digit"===r||"short"===r||"long"===r||"narrow"===r?r:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const r=this.getAttribute("year");return"numeric"===r||"2-digit"===r?r:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(e=this.date)||void 0===e?void 0:e.getUTCFullYear())?void 0:"numeric"}set year(e){this.setAttribute("year",e||"")}get timeZoneName(){const e=this.getAttribute("time-zone-name");if("long"===e||"short"===e||"shortOffset"===e||"longOffset"===e||"shortGeneric"===e||"longGeneric"===e)return e}set timeZoneName(e){this.setAttribute("time-zone-name",e||"")}get prefix(){var e;return null!==(e=this.getAttribute("prefix"))&&void 0!==e?e:"datetime"===this.format?"":"on"}set prefix(e){this.setAttribute("prefix",e)}get threshold(){const e=this.getAttribute("threshold");return e&&(r=e,sb.test(r))?e:"P30D";var r}set threshold(e){this.setAttribute("threshold",e)}get tense(){const e=this.getAttribute("tense");return"past"===e?"past":"future"===e?"future":"auto"}set tense(e){this.setAttribute("tense",e)}get precision(){const e=this.getAttribute("precision");return db.includes(e)?e:"micro"===this.format?"minute":"second"}set precision(e){this.setAttribute("precision",e)}get format(){const e=this.getAttribute("format");return"datetime"===e?"datetime":"relative"===e?"relative":"duration"===e?"duration":"micro"===e?"micro":"elapsed"===e?"elapsed":"auto"}set format(e){this.setAttribute("format",e)}get formatStyle(){const e=this.getAttribute("format-style");if("long"===e)return"long";if("short"===e)return"short";if("narrow"===e)return"narrow";const r=this.format;return"elapsed"===r||"micro"===r?"narrow":"datetime"===r?"short":"long"}set formatStyle(e){this.setAttribute("format-style",e)}get datetime(){return this.getAttribute("datetime")||""}set datetime(e){this.setAttribute("datetime",e)}get date(){const e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=(null==e?void 0:e.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){Ob.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&Tb(this,fb,null!==o&&(this.date&&Eb(this,ub,"m",yb).call(this,this.date))!==o,"f"),Eb(this,hb,"f")||"title"===e&&Eb(this,fb,"f")||Tb(this,hb,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=Eb(this,mb,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(Eb(this,mb,"f").textContent=e);const a=Date.now();Eb(this,fb,"f")||(o=Eb(this,ub,"m",yb).call(this,t)||"",o&&this.setAttribute("title",o));const n=function(e,r="second",o=Date.now()){const t=e.getTime()-o;if(0===t)return new gb;const a=Math.sign(t),n=Math.abs(t),l=Math.floor(n/1e3),i=Math.floor(l/60),c=Math.floor(i/60),s=Math.floor(c/24),d=Math.floor(s/30),g=Math.floor(d/12),b=db.indexOf(r)||db.length;return new gb(b>=0?g*a:0,b>=1?(d-12*g)*a:0,0,b>=3?(s-30*d)*a:0,b>=4?(c-24*s)*a:0,b>=5?(i-60*c)*a:0,b>=6?(l-60*i)*a:0,b>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=Eb(this,ub,"m",xb).call(this,n);let i=e;i="duration"===l?Eb(this,ub,"m",Cb).call(this,n):"relative"===l?Eb(this,ub,"m",wb).call(this,n):Eb(this,ub,"m",kb).call(this,t),i?Eb(this,mb,"f").textContent=i:this.shadowRoot===Eb(this,mb,"f")&&this.textContent&&(Eb(this,mb,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new Nb(e,i,r,o)),"relative"===l||"duration"===l?Ob.observe(this):Ob.unobserve(this),Tb(this,hb,!1,"f")}}fb=new WeakMap,hb=new WeakMap,mb=new WeakMap,Bb=new WeakMap,ub=new WeakSet,pb=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},yb=function(e){return new Intl.DateTimeFormat(Eb(this,ub,"a",pb),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},xb=function(e){const r=this.format;if("datetime"===r)return"datetime";if("duration"===r)return"duration";if("elapsed"===r)return"duration";if("micro"===r)return"duration";if(("auto"===r||"relative"===r)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const r=this.tense;if("past"===r||"future"===r)return"relative";if(1===gb.compare(e,this.threshold))return"relative"}return"datetime"},Cb=function(e){const r=Eb(this,ub,"a",pb),o=this.format,t=this.formatStyle,a=this.tense;let n=Ib;"micro"===o?(e=vb(e),n=Mb,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=Mb)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=n);const l=`${this.precision}sDisplay`;return e.blank?n.toLocaleString(r,{style:t,[l]:"always"}):e.abs().toLocaleString(r,{style:t})},wb=function(e){const r=new Intl.RelativeTimeFormat(Eb(this,ub,"a",pb),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=Ib),"past"===o&&-1!==e.sign&&(e=Ib);const[t,a]=function(e,r){const o=vb(e,r);if(o.blank)return[0,"second"];for(const e of db){if("millisecond"===e)continue;const r=o[`${e}s`];if(r)return[r,e]}return[0,"second"]}(e);return"second"===a&&t<10?r.format(0,"second"):r.format(t,a)},kb=function(e){const r=new Intl.DateTimeFormat(Eb(this,ub,"a",pb),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${r.format(e)}`.trim()};const jb="undefined"!=typeof globalThis?globalThis:window;try{jb.RelativeTimeElement=Lb.define()}catch(Db){if(!(jb.DOMException&&Db instanceof DOMException&&"NotSupportedError"===Db.name||Db instanceof ReferenceError))throw Db}
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2018 Google LLC