@primer/react 37.7.0 → 37.7.1

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.
@@ -9,5 +9,5 @@ var A=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,O=Object.pr
9
9
  * @license
10
10
  * Copyright 2018 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */const zs=new Set(["children","localName","ref","style","className"]),Ps=new WeakMap,Ds=(e,r,o,t,a)=>{const n=null==a?void 0:a[r];void 0===n||o===t?null==o&&r in HTMLElement.prototype?e.removeAttribute(r):e[r]=o:((e,r,o)=>{let t=Ps.get(e);void 0===t&&Ps.set(e,t=new Map);let a=t.get(r);void 0!==o?void 0===a?(t.set(r,a={handleEvent:o}),e.addEventListener(r,a)):a.handleEvent=o:void 0!==a&&(t.delete(r),e.removeEventListener(r,a))})(e,n,o)};const Hs=e=>e[0].toUpperCase()+e.slice(1).replace(/(-\w)/g,(e=>e[1].toUpperCase())),Vs=(e,o,t=void 0)=>{const a=Object.assign(Object.assign(m(function(e=window.React,r,o,t,a){let n,l,i;{const r=e;({tagName:l,elementClass:i,events:t,displayName:a}=r),n=r.react}const c=n.Component,s=n.createElement,d=new Set(Object.keys(null!=t?t:{}));class g extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(const r in this.i)Ds(this.o,r,this.props[r],e?e[r]:void 0,t)}componentDidMount(){var e;this.t(),null===(e=this.o)||void 0===e||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){const{_$Gl:e,...r}=this.props;this.h!==e&&(this.u=r=>{null!==e&&((e,r)=>{"function"==typeof e?e(r):e.current=r})(e,r),this.o=r,this.h=e}),this.i={};const o={ref:this.u};for(const[e,t]of Object.entries(r))zs.has(e)?o["className"===e?"class":e]=t:d.has(e)||e in i.prototype?this.i[e]=t:o[e]=t;return o.suppressHydrationWarning=!0,s(l,o)}}g.displayName=null!=a?a:i.name;const u=n.forwardRef(((e,r)=>s(g,{...e,_$Gl:r},null==e?void 0:e.children)));return u.displayName=g.displayName,u}({tagName:o,elementClass:e,react:r,events:t})),{displayName:Hs(o)})(ft),{displayName:Hs(o)});return a},Fs=w(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Ws=m.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&C(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Fs))),$s=({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(Ws,{show:e,onAnimationEnd:()=>{e||n(!1)}},o)):null},Zs=r.createContext({});var Ks="prc_Body_cNQoa",Gs="prc_GroupFieldset_0NZzG",qs="prc_GroupLegend_HW4-c",Us="prc_CheckboxOrRadioGroupCaption_9GgyY",Ys="prc_RadioGroupLabel_anQ3U",Xs="prc_GroupLabelChildren_j5sBI";const Qs="primer_react_css_modules_staff",Js=({className:e,children:o,sx:t})=>{const{disabled:a,captionId:n}=r.useContext(Zs);return bt(Qs)?t?r.createElement(kl,{className:Gr(e,Us),id:n,sx:t},o):r.createElement("span",{className:Gr(e,Us),id:n},o):r.createElement(kl,{color:a?"fg.muted":"fg.subtle",fontSize:1,id:n,sx:t,className:e},o)};function ed(e,r){if(null!=r)return"object"==typeof r?Object.fromEntries(Object.entries(r).map((([r,o])=>rd(`data-${e}-${r}`,o)))):Object.fromEntries([rd(`data-${e}`,r)])}function rd(e,r){return[e,r]}Js.displayName="CheckboxOrRadioGroupCaption";var od="prc_Stack_WJVsK",td="prc_StackItem_CweWT";function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ad.apply(null,arguments)}const nd="primer_react_css_modules_staff",ld=yt(nd,"div",m.div.withConfig({displayName:"Stack__StyledStack",componentId:"sc-x3xa2i-0"})(["display:flex;flex-flow:column;align-items:stretch;align-content:flex-start;gap:var(--stack-gap,var(--stack-gap-normal,1rem));&[data-padding='none'],&[data-padding-narrow='none']{padding:0;}&[data-padding='condensed'],&[data-padding-narrow='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding='normal'],&[data-padding-narrow='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding='spacious'],&[data-padding-narrow='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction='horizontal'],&[data-direction-narrow='horizontal']{flex-flow:row;}&[data-direction='vertical'],&[data-direction-narrow='vertical']{flex-flow:column;}&[data-gap='none'],&[data-gap-narrow='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap='condensed'],&[data-gap-narrow='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap='normal'],&[data-gap-narrow='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap='spacious'],&[data-gap-narrow='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align='start'],&[data-align-narrow='start']{align-items:flex-start;}&[data-align='center'],&[data-align-narrow='center']{align-items:center;}&[data-align='end'],&[data-align-narrow='end']{align-items:flex-end;}&[data-align='baseline'],&[data-align-narrow='baseline']{align-items:baseline;}&[data-justify='start'],&[data-justify-narrow='start']{justify-content:flex-start;}&[data-justify='center'],&[data-justify-narrow='center']{justify-content:center;}&[data-justify='end'],&[data-justify-narrow='end']{justify-content:flex-end;}&[data-justify='space-between'],&[data-justify-narrow='space-between']{justify-content:space-between;}&[data-justify='space-evenly'],&[data-justify-narrow='space-evenly']{justify-content:space-evenly;}&[data-wrap='wrap'],&[data-wrap-narrow='wrap']{flex-wrap:wrap;}&[data-wrap='nowrap'],&[data-wrap-narrow='nowrap']{flex-wrap:nowrap;}@media (min-width:48rem){&[data-padding-regular='none']{padding:0;}&[data-padding-regular='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-regular='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-regular='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-regular='horizontal']{flex-flow:row;}&[data-direction-regular='vertical']{flex-flow:column;}&[data-gap-regular='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-regular='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-regular='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-regular='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-regular='start']{align-items:flex-start;}&[data-align-regular='center']{align-items:center;}&[data-align-regular='end']{align-items:flex-end;}&[data-align-regular='baseline']{align-items:baseline;}&[data-justify-regular='start']{justify-content:flex-start;}&[data-justify-regular='center']{justify-content:center;}&[data-justify-regular='end']{justify-content:flex-end;}&[data-justify-regular='space-between']{justify-content:space-between;}&[data-justify-regular='space-evenly']{justify-content:space-evenly;}&[data-wrap-regular='wrap']{flex-wrap:wrap;}&[data-wrap-regular='nowrap']{flex-wrap:nowrap;}}@media (min-width:87.5rem){&[data-padding-wide='none']{padding:0;}&[data-padding-wide='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-wide='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-wide='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-wide='horizontal']{flex-flow:row;}&[data-direction-wide='vertical']{flex-flow:column;}&[data-gap-wide='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-wide='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-wide='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-wide='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-wide='start']{align-items:flex-start;}&[data-align-wide='center']{align-items:center;}&[data-align-wide='end']{align-items:flex-end;}&[data-align-wide='baseline']{align-items:baseline;}&[data-justify-wide='start']{justify-content:flex-start;}&[data-justify-wide='center']{justify-content:center;}&[data-justify-wide='end']{justify-content:flex-end;}&[data-justify-wide='space-between']{justify-content:space-between;}&[data-justify-wide='space-evenly']{justify-content:space-evenly;}&[data-wrap-wide='wrap']{flex-wrap:wrap;}&[data-wrap-wide='nowrap']{flex-wrap:nowrap;}}"]));function id({as:e,children:o,align:t="stretch",direction:a="vertical",gap:n,justify:l="start",padding:i="none",wrap:c="nowrap",className:s,...d}){const g=null!=e?e:"div",u=bt(nd);return r.createElement(ld,ad({},d,{as:g,className:Gr(s,{[od]:u})},ed("gap",n),ed("direction",a),ed("align",t),ed("wrap",c),ed("justify",l),ed("padding",i)),o)}id.displayName="Stack";const cd=yt(nd,"div",m.div.withConfig({displayName:"Stack__StyledStackItem",componentId:"sc-x3xa2i-1"})(["flex:0 1 auto;min-inline-size:0;&[data-grow='true'],&[data-grow-narrow='true']{flex-grow:1;}@media (min-width:48rem){&[data-grow-regular='true']{flex-grow:1;}&[data-grow-regular='false']{flex-grow:0;}}@media (min-width:87.5rem){&[data-grow-wide='true']{flex-grow:1;}&[data-grow-wide='false']{flex-grow:0;}}"]));function sd({as:e,children:o,grow:t,className:a,...n}){const l=null!=e?e:"div",i=bt(nd);return r.createElement(cd,ad({},n,{as:l,className:Gr(a,{[td]:i})},ed("grow",t)),o)}sd.displayName="StackItem";const dd=Object.assign(id,{Item:sd}),gd=({children:e,className:o,visuallyHidden:t=!1,sx:a})=>{const{required:n,disabled:l}=r.useContext(Zs);return bt(Qs)?a?r.createElement(Bl,{className:Gr(o,Ys),isVisible:!t,title:n?"required field":void 0,"data-label-disabled":l?"":void 0,sx:a},n?r.createElement(dd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:Xs},e),r.createElement("span",null,"*")):e):r.createElement(Bl,{className:Gr(o,Ys),isVisible:!t,title:n?"required field":void 0,"data-label-disabled":l?"":void 0},n?r.createElement(dd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:Xs},e),r.createElement("span",null,"*")):e):r.createElement(Bl,{className:o,isVisible:!t,title:n?"required field":void 0,sx:{display:"block",color:l?"fg.muted":void 0,fontSize:1,fontWeight:"bold",...a}},n?r.createElement(ht,{display:"flex",as:"span"},r.createElement(ht,{mr:1},e),r.createElement("span",null,"*")):e)};gd.displayName="CheckboxOrRadioGroupLabel";const ud={success:wc,error:mc},vd=({children:e,id:o,validationStatus:t,sx:a})=>{const n=t?ud[t]:void 0,l=16/12;return r.createElement(bd,{"data-validation-status":t,sx:a},n?r.createElement(fd,{"aria-hidden":"true",style:{"--inputValidation-iconSize":16}},r.createElement(n,{size:12,fill:"currentColor"})):null,r.createElement(hd,{id:o,style:{"--inputValidation-lineHeight":l}},e))};vd.displayName="InputValidation";const bd=m(kl).withConfig({displayName:"InputValidation__StyledInputValidation",componentId:"sc-1b199hv-0"})(["color:var(--inputValidation-fgColor);display:flex;font-size:",";font-weight:600;& :where(a){color:currentColor;text-dectoration:underline;}&:where([data-validation-status='success']){--inputValidation-fgColor:",";}&:where([data-validation-status='error']){--inputValidation-fgColor:",";}",""],Wr("fontSizes.0"),Wr("colors.success.fg"),Wr("colors.danger.fg"),ft),fd=m.span.withConfig({displayName:"InputValidation__StyledValidationIcon",componentId:"sc-1b199hv-1"})(["align-items:center;display:flex;margin-inline-end:",";min-height:var(--inputValidation-iconSize);"],Wr("space.1")),hd=m.span.withConfig({displayName:"InputValidation__StyledValidationText",componentId:"sc-1b199hv-2"})(["line-height:var(--inputValidation-lineHeight);"]),pd=({children:e,variant:o,sx:t})=>{const{validationMessageId:a=""}=r.useContext(Zs);return r.createElement(vd,{validationStatus:o,id:a,sx:t},e)};function md(){return md=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},md.apply(null,arguments)}pd.displayName="CheckboxOrRadioGroupValidation";const yd=yt(Qs,"div",m.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Wr("space.2"))),xd=({"aria-labelledby":e,children:o,disabled:t=!1,id:a,required:n=!1,className:l,sx:i})=>{const[c,s]=oi(o,{caption:Js,label:gd,validation:pd}),d=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===gd)),g=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===pd?e:null)),u=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===Js?e:null)),v=ot(a),b=g?`${v}-validationMessage`:void 0,f=u?`${v}-caption`:void 0;d||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const h=r.isValidElement(d)&&!d.props.visuallyHidden;return bt(Qs)?i?r.createElement(Zs.Provider,{value:{disabled:t,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ht,md({className:Gr(l,Gs),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:t},{sx:i}),d?r.createElement("legend",{className:qs,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(Bl,null,c.validation.props.children)):c.caption,r.createElement(yd,md({className:Ks},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement($s,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(Zs.Provider,{value:{disabled:t,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement("fieldset",md({className:Gr(l,Gs),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:t}),d?r.createElement("legend",{className:qs,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(Bl,null,c.validation.props.children)):c.caption,r.createElement(yd,md({className:Ks},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement($s,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(Zs.Provider,{value:{disabled:t,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ht,md({border:"none",margin:0,mb:g?2:void 0,padding:0},d&&{as:"fieldset",disabled:t},{className:l,sx:i}),d?r.createElement(ht,{as:"legend",mb:h?2:void 0,padding:0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(Bl,null,c.validation.props.children)):c.caption,r.createElement(yd,!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement($s,{"aria-hidden":Boolean(d),show:!0},c.validation)))};xd.displayName="CheckboxOrRadioGroup";var wd=Object.assign(xd,{Caption:Js,Label:gd,Validation:pd});function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cd.apply(null,arguments)}const kd=d(null),Bd=({children:e,disabled:o,onChange:t,name:a,...n})=>{const[l,i]=Uo(null);return r.createElement(kd.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(wd,Cd({disabled:o},n),e))};Bd.displayName="RadioGroup";var Ed=Object.assign(Bd,{Caption:Js,Label:gd,Validation:pd});const Td=C(["box-shadow:none;outline:2px solid ",";"],Wr("colors.accent.fg")),Sd=e=>C(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],Td,void 0===e?"2px":e,Td,void 0===e?"2px":e),Nd=C(["appearance:none;border-color:var(--control-borderColor-emphasis,",");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);background-color:",";&:disabled{background-color:",";border-color:var(--control-borderColor-disabled,",");}"],Wr("colors.neutral.emphasis"),Wr("borderWidths.1"),Wr("colors.canvas.default"),Wr("colors.input.disabledBg"),Wr("colors.border.default"));var _d="prc_Radio_Ly4MR",Id="prc_Input_mxggT";function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Md.apply(null,arguments)}const Ad=yt("primer_react_css_modules_ga","input",m.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-width:var(--base-size-4,4px);border-color:var( --control-checked-bgColor-rest,"," );background-color:var(--control-checked-fgColor-rest,",");&:disabled{cursor:not-allowed;border-color:",";background-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],Nd,Wr("colors.accent.fg"),Wr("colors.fg.onEmphasis"),Wr("colors.fg.muted"),Wr("colors.fg.muted"),Sd(),ft)),Ld=r.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:l,validationStatus:i,value:c,className:s,...d},u)=>{const v=g(kd),b=bt("primer_react_css_modules_ga"),f=t||(null==v?void 0:v.name);return f||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(Ad,Md({type:"radio",value:c,name:f,ref:u,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==v?void 0:v.onChange)&&v.onChange(e),a&&a(e)},className:Gr(s,{[Id]:b,[_d]:b})},d))}));Ld.displayName="Radio";const Od=r.createContext({});var Rd="prc_Heading_6CmGO";function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jd.apply(null,arguments)}const zd=u((({as:e="h2",className:o,variant:t,...a},n)=>{const l=r.useRef(null);return rt(n,l),a.sx?r.createElement(ht,jd({as:e,className:Gr(o,Rd),"data-variant":t},a,{ref:l})):r.createElement(e,jd({className:Gr(o,Rd),"data-variant":t},a,{ref:l}))}));zd.displayName="Heading";const Pd=r.createContext({}),Dd=(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"},Hd="20px",Vd=r.createContext({});var Fd="prc_ActionListHeader_lEr8v";function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Wd.apply(null,arguments)}const $d=u((({as:e,size:o,children:t,sx:a=pt,visuallyHidden:n=!1,className:l,...i},c)=>{var s,d,g;const u=r.useRef(null);rt(c,u);const v=bt("primer_react_css_modules_team"),{headingId:b,variant:f}=r.useContext(Vd),{container:h}=r.useContext(Od);"ActionMenu"===h&&On(!1);const p={marginBottom:2,marginX:"full"===f?2:3};return r.createElement(Bl,{isVisible:!n},v?a!==pt?r.createElement(zd,Wd({as:e,variant:o,ref:u,id:null!==(s=i.id)&&void 0!==s?s:b,className:Gr(l,Fd),"data-list-variant":f,sx:a},i),t):r.createElement(zd,Wd({as:e,variant:o,ref:u,id:null!==(d=i.id)&&void 0!==d?d:b,className:Gr(l,Fd),"data-list-variant":f},i),t):r.createElement(zd,Wd({as:e,variant:o,ref:u,id:null!==(g=i.id)&&void 0!==g?g:b,sx:oo(p,a),className:l},i),t))}));$d.displayName="ActionList.Heading";var Zd="prc_ActionList_X4RiC",Kd="prc_Divider_rsZFG";function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gd.apply(null,arguments)}const qd=m.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(ft),Ud=r.forwardRef((({variant:e="inset",selectionVariant:o,showDividers:t=!1,role:a,sx:n=pt,className:l,...i},c)=>{var s;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[g,u]=oi(i.children,{heading:$d}),v=ot(),{listRole:b,listLabelledBy:f,selectionVariant:h,enableFocusZone:p}=r.useContext(Od),m=g.heading?null!==(s=g.heading.props.id)&&void 0!==s?s:v:f,y=a||b,x=co(c);let w=!1;void 0!==p?w=p:y&&(w=["menu","menubar","listbox"].includes(y)),Vc({disabled:!w,containerRef:x,bindKeys:Ro.ArrowVertical|Ro.HomeAndEnd|Ro.PageUpDown,focusOutBehavior:"menu"===y?"wrap":void 0});const C=bt("primer_react_css_modules_team");return r.createElement(Vd.Provider,{value:{variant:e,selectionVariant:o||h,showDividers:t,role:y,headingId:v}},g.heading,C?n!==pt?r.createElement(qd,Gd({sx:oo(d,n),className:Gr(Zd,l),role:y,"aria-labelledby":m,ref:x,"data-dividers":t,"data-variant":e},i),u):r.createElement("ul",Gd({className:Gr(Zd,l),role:y,"aria-labelledby":m,ref:x,"data-dividers":t,"data-variant":e},i),u):r.createElement(qd,Gd({sx:oo(d,n),role:y,"aria-labelledby":m},i,{ref:x,className:l}),u))}));function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yd.apply(null,arguments)}Ud.displayName="ActionList";const Xd=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Qd=({title:e,variant:o="subtle",auxiliaryText:t,selectionVariant:a,role:n,sx:l={},...i})=>{var c;const s=ot(),{role:d}=r.useContext(Vd),[g,u]=oi(i.children,{groupHeading:Jd});let v;var b;g.groupHeading&&(v=null!==(b=g.groupHeading.props.id)&&void 0!==b?b:s);return e&&(v=s),r.createElement(ht,Yd({as:"li",role:d?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Xd.Provider,{value:{selectionVariant:a,groupHeadingId:v}},e&&!g.groupHeading?r.createElement(Jd,{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?u:i.children)))};Qd.displayName="Group";const Jd=({as:e,variant:o,_internalBackwardCompatibleTitle:t,auxiliaryText:a,children:n,className:l,sx:i=pt,...c})=>{const{variant:s,role:d}=r.useContext(Vd),{groupHeadingId:g}=r.useContext(Xd),u=void 0!==d&&"list"!==d&&void 0!==n&&void 0!==e;(void 0===d||"list"===d)&&void 0!==n&&void 0===e&&On(!1),u&&On(!1);const v={paddingY:"6px",paddingX:"full"===s?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"},".ActionListGroupHeading":{fontSize:"var(--text-body-size-small), 12px",fontWeight:"var(--base-text-weight-semibold, 600)",lineHeight:"var(--text-body-lineHeight-small, 1.6666)",color:"var(--fgColor-muted)"},".ActionListGroupHeadingDescription":{fontSize:"var(--text-body-size-small, 12px)",fontWeight:"var(--base-text-weight-normal, 400)",lineHeight:"var(--text-body-lineHeight-small, 1.6666)",color:"var(--fgColor-muted)"}};return r.createElement(r.Fragment,null,d&&"list"!==d?r.createElement(ht,Yd({sx:v,role:"presentation","aria-hidden":"true"},c),r.createElement("span",{id:g},null!=t?t:n),a&&r.createElement("div",{className:"ActionListGroupHeadingDescription"},a)):r.createElement(ht,{sx:v},r.createElement(zd,Yd({className:Gr(l,"ActionListGroupHeading"),as:e||"h3",id:g,sx:i},c),null!=t?t:n),a&&r.createElement("div",{className:"ActionListGroupHeadingDescription"},a)))};function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},eg.apply(null,arguments)}const rg=m.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"),Oe,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),ft),og=r.forwardRef((function({as:e,expandable:o=!1,inline:t=!1,maxWidth:a=125,...n},l){return r.createElement(rg,eg({ref:l,as:e,expandable:o,inline:t,maxWidth:a},n))}));const tg=({variant:e="inline",sx:o={},className:t,truncate:a,...n})=>{const l={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:"inline"!==e||a?0:"auto",minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &[data-component="ActionList.Description"]':{color:"inherit"},'li[data-variant="danger"]:hover &[data-component="ActionList.Description"], li[data-variant="danger"]:active &[data-component="ActionList.Description"]':{color:"inherit"}},{blockDescriptionId:i,inlineDescriptionId:c}=r.useContext(Pd);return"block"!==e&&a?r.createElement(og,{id:c,className:t,sx:oo(l,o),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description"},n.children):r.createElement(ht,{as:"span",sx:oo(l,o),id:"block"===e?i:c,className:t,"data-component":"ActionList.Description"},n.children)};function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ag.apply(null,arguments)}const ng=({sx:e={},...o})=>r.createElement(ht,ag({as:"span",sx:oo({height:Hd,minWidth:Wr("space.3"),maxWidth:Hd,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2,color:"fg.muted"},e)},o));ng.displayName="LeadingVisualContainer";const lg=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(Pd);return r.createElement(ng,ag({sx:oo({color:Dd(t,a,n).iconColor,svg:{fontSize:0},'[data-variant="danger"]:not([aria-disabled]):not([data-inactive]):hover &, [data-variant="danger"]:active &':{color:Dd(t,a,n).hoverColor}},e)},o),o.children)};lg.displayName="LeadingVisual";const ig=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n,trailingVisualId:l}=r.useContext(Pd);return r.createElement(ht,ag({id:l,as:"span",sx:oo({height:"20px",flexShrink:0,color:Dd(t,a,n).annotationColor,marginLeft:2,fontWeight:"initial",display:"grid",alignContent:"center",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:Dd(t,a,n).hoverColor}},e)},o),o.children)};ig.displayName="TrailingVisual";const cg=({children:e,labelId:o,loading:t,inactiveText:a,itemHasLeadingVisual:n,position:l})=>{const i="leading"===l?lg:ig;return t||a?n&&"trailing"===l||!n&&"leading"===l?e:a?r.createElement(Zl,{text:a,type:"label"},r.createElement(ht,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer"},"aria-describedby":o},r.createElement(i,null,r.createElement(pc,null)))):r.createElement(i,null,r.createElement(Dt,{size:"small"})):e},sg=({selected:e})=>{const{selectionVariant:o,role:t}=r.useContext(Vd),{selectionVariant:a}=r.useContext(Xd);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(ng,{"data-component":"ActionList.Selection"},e&&r.createElement(xc,null));return r.createElement(ng,{"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)"}}},"@media (forced-colors: active)":{borderWidth:e?"8px":"1px"}},"data-component":"ActionList.Checkbox"}))};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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},dg.apply(null,arguments)}sg.displayName="Selection";const gg=u((({as:e="button",icon:o,label:t,href:a=null,...n},l)=>o?r.createElement(ht,{as:"span","data-component":"ActionList.TrailingAction",sx:{flexShrink:0}},r.createElement(ql,dg({as:e,"aria-label":t,icon:o,variant:"invisible",tooltipDirection:"w",href:a,ref:l},n))):r.createElement(ht,{"data-component":"ActionList.TrailingAction",as:"span",sx:{flexShrink:0}},r.createElement(An,dg({variant:"invisible",as:e,href:a,ref:l},n),t))));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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ug.apply(null,arguments)}gg.displayName="ActionList.TrailingAction";const vg=m.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(ft),bg=r.forwardRef((({as:e="button",children:o,styles:t,...a},n)=>r.createElement(ht,ug({as:e,ref:n,sx:t},a),o))),fg=r.forwardRef((({variant:e="default",disabled:o=!1,inactiveText:t,selected:a,active:n=!1,onSelect:l,sx:i=pt,id:c,role:s,loading:d,_PrivateItemWrapper:g,...u},v)=>{var b;const[f,h]=oi(u.children,{leadingVisual:lg,trailingVisual:ig,trailingAction:gg,blockDescription:[tg,e=>"block"===e.variant],inlineDescription:[tg,e=>"block"!==e.variant]}),{container:p,afterSelect:m,selectionAttribute:y,defaultTrailingVisual:x}=r.useContext(Od),w=bt("primer_react_action_list_item_as_button"),C=x?r.createElement(ig,null,x):null,k=null!==(b=f.trailingVisual)&&void 0!==b?b:C,{variant:B,role:E,showDividers:T,selectionVariant:S}=r.useContext(Vd),{selectionVariant:N}=r.useContext(Xd),_=Boolean(t),I=_&&void 0===p,M=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[l]),A=N||S;let L;"ActionMenu"===p?L="single"===A?"menuitemradio":"multiple"===A?"menuitemcheckbox":"menuitem":"SelectPanel"===p&&"listbox"===E&&void 0!==A&&(L="option");const O=s||L,R="ActionMenu"===p||"SelectPanel"===p;let j;f.trailingAction&&R&&On(!1),"menuitemradio"===O||"menuitemcheckbox"===O?j="aria-checked":"option"===O&&(j="aria-selected");const z=y||j,P="option"===s||"menuitem"===s||"menuitemradio"===s||"menuitemcheckbox"===s,D=E&&["listbox","menu","list"].includes(E)||_||"NavList"===p||P,H=!D&&!g&&w,{theme:V}=ct(),F={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}},W={"@media (hover: hover) and (pointer: fine)":{"&:hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:Dd(e,o,_).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==V?void 0:V.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==V?void 0:V.colors.accent.emphasis}`},"&:active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:Dd(e,o,_).hoverColor}}},$={display:"flex",":not(:first-of-type)":{"--divider-color":null==V?void 0:V.colors.actionListItem.inlineDivider},width:H&&"full"!==B?"calc(100% - 16px)":"100%",marginX:H&&"full"!==B?"2":"0",borderRadius:2,...H?W:{}},Z={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Hd,minHeight:5,marginX:"inset"!==B||H?0:2,borderRadius:2,transition:"background 33.333ms linear",color:Dd(e,o,_||d).color,cursor:"pointer","&[data-loading]":{cursor:"default"},"&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--control-bgColor-disabled, rgba(175, 184, 193, 0.2))",borderColor:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"},'[data-component="ActionList.Selection"]':{color:"primer.fg.disabled"}},appearance:"none",background:"unset",border:"unset",width:"inset"!==B||H?"100%":"calc(100% - 16px)",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible, &[data-is-active-descendant]":{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:T?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==V?void 0:V.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...n?F:{},"&[data-is-active-descendant]":{...F,fontWeight:"normal"},...H?{}:W},K=r.useCallback((e=>{o||_||d||M(e,m)}),[M,o,_,m,d]),G=r.useCallback((e=>{o||_||d||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),M(e,m))}),[M,o,d,_,m]),q=ot(c),U=`${q}--label`,Y=`${q}--inline-description`,X=`${q}--block-description`,Q=`${q}--trailing-visual`,J=_&&!I?`${q}--warning-message`:void 0;let ee=r.Fragment;w&&(ee=D?r.Fragment:bg);const re=g||ee,oe=z&&O&&["menuitemradio","menuitemcheckbox","option"].includes(O),te={onClick:K,onKeyPress:H?void 0:G,"aria-disabled":!!o||void 0,"data-inactive":!!_||void 0,"data-loading":!(!d||_)||void 0,tabIndex:o||I?void 0:0,"aria-labelledby":`${U} ${f.trailingVisual?Q:""} ${f.inlineDescription?Y:""}`,"aria-describedby":[f.blockDescription?X:void 0,null!=J?J:void 0].filter(String).join(" ").trim()||void 0,...oe&&{[z]:a},role:O,id:q};let ae,ne;return w?(ae=g?{role:O?"none":void 0,...u}:D&&{...te,...u,ref:v}||{},ne=g?te:!D&&{...te,...u,styles:oo(Z,i),ref:v}):(ae=g?{role:O?"none":void 0}:{...te,...u},ne=g?te:{}),r.createElement(Pd.Provider,{value:{variant:e,disabled:o,inactive:Boolean(t),inlineDescriptionId:Y,blockDescriptionId:X,trailingVisualId:Q}},r.createElement(vg,ug({ref:!w||D?v:null,sx:w?oo(D||g?Z:$,D||g?i:{}):oo(Z,i),"data-variant":"danger"===e?e:void 0},ae),r.createElement(re,ne,r.createElement(sg,{selected:a}),r.createElement(cg,{inactiveText:I?t:void 0,itemHasLeadingVisual:Boolean(f.leadingVisual),labelId:U,loading:d,position:"leading"},f.leadingVisual),r.createElement(ht,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Wt,{if:Boolean(k||(I||d)&&!f.leadingVisual),sx:{display:"flex",flexGrow:1}},r.createElement(Wt,{if:!!f.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(ht,{as:"span",id:U,sx:{flexGrow:f.inlineDescription?0:1,fontWeight:f.inlineDescription||f.blockDescription||n?"bold":"normal",marginBlockEnd:f.blockDescription?"4px":void 0,wordBreak:f.inlineDescription?"normal":"break-word",lineHeight:"20px"}},h,!0===d&&r.createElement(Bl,null,"Loading")),f.inlineDescription),r.createElement(cg,{inactiveText:I?t:void 0,itemHasLeadingVisual:Boolean(f.leadingVisual),labelId:U,loading:d,position:"trailing"},k)),_&&p?r.createElement(ht,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:J},t):null,f.blockDescription)),!_&&!d&&!R&&Boolean(f.trailingAction)&&f.trailingAction))}));fg.displayName="ActionList.Item";var hg="prc_Link_85e08";function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pg.apply(null,arguments)}const mg=u((({as:e="a",className:o,inline:t,underline:a,hoverColor:n,...l},i)=>{const c=r.useRef(null);return rt(i,c),l.sx?r.createElement(ht,pg({as:e,className:Gr(o,hg),"data-muted":l.muted,"data-inline":t,"data-underline":a,"data-hover-color":n},l,{ref:c})):r.createElement(e,pg({className:Gr(o,hg),"data-muted":l.muted,"data-inline":t,"data-underline":a,"data-hover-color":n},l,{ref:c}))}));function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yg.apply(null,arguments)}mg.displayName="Link";const xg=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(fg,{active:o,sx:{paddingY:0,paddingX:0},inactiveText:t,"data-inactive":!!t||void 0,_PrivateItemWrapper:({children:o,onClick:c,...s})=>t?r.createElement(ht,yg({sx:oo(i,e)},s),o):r.createElement(mg,yg({as:a,sx:oo(i,e)},s,n,{onClick:e=>{c&&c(e),n.onClick&&n.onClick(e)},ref:l}),o)},n.children)})),wg=({sx:e=pt,className:o})=>bt("primer_react_css_modules_team")?e!==pt?r.createElement(ht,{className:Gr(o,Kd),as:"li","aria-hidden":"true",sx:e,"data-component":"ActionList.Divider"}):r.createElement("li",{className:Gr(o,Kd),"aria-hidden":"true","data-component":"ActionList.Divider"}):r.createElement(ht,{as:"li","aria-hidden":"true",sx:oo({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Wr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none",marginRight:"calc(-1 * var(--base-size-8))",marginLeft:"calc(-1 * var(--base-size-8))"},e),className:o,"data-component":"ActionList.Divider"});wg.displayName="Divider";const Cg=Object.assign(Ud,{Group:Qd,Item:fg,LinkItem:xg,Divider:wg,Description:tg,LeadingVisual:lg,TrailingVisual:ig,Heading:$d,GroupHeading:Jd,TrailingAction:gg});function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},kg.apply(null,arguments)}const Bg={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},Eg={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Tg=m.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;}&[data-reflow-container='true']{max-width:calc(100vw - 2rem);}",";"],Wr("colors.canvas.overlay"),Wr("shadows.overlay.shadow"),(e=>e.maxWidth&&Eg[e.maxWidth]),(e=>Bg[e.height||"auto"]),(e=>e.maxHeight&&Bg[e.maxHeight]),(e=>Eg[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Wr("animation.easeOutCubic"),ft),Sg=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:u,left:v,right:b,bottom:f,anchorSide:h,portalContainerName:p,preventFocusOnOpen:m,position:y,style:x={},preventOverflow:w=!0,...C},k)=>{const B=l(null);rt(k,B);const{theme:E}=ct(),T=parseInt(Wr("space.2")(E).replace("px","")),S=Wr("animation.easeOutCubic")(E);qo({overlayRef:B,returnFocusRef:n,onEscape:c,ignoreClickRefs:i,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:m}),a((()=>{var e;"initial"===d&&null!==(e=B.current)&&void 0!==e&&e.clientHeight&&(B.current.style.height=`${B.current.clientHeight}px`)}),[d]),Zo((()=>{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=B.current)&&void 0!==e&&e.animate&&"hidden"!==s&&B.current.animate({transform:[`translate(${T*r}px, ${T*o}px)`,"translate(0, 0)"]},{duration:200,easing:S})}),[h,T,S,s]);const N=void 0===v&&void 0===b?{left:0}:{left:v},_=bt("primer_react_overlay_overflow");return r.createElement(Kc,{containerName:p},r.createElement(Tg,kg({height:d,width:g,role:o},C,{ref:B,style:{...N,right:b,top:u,bottom:f,position:y,"--styled-overlay-visibility":s,...x},"data-reflow-container":!(!_&&w)||void 0})))}));function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ng.apply(null,arguments)}const _g=({renderAnchor:e,anchorRef:o,anchorId:n,children:l,open:i,onOpen:c,onClose:s,height:d,width:g,overlayProps:u,focusTrapSettings:v,focusZoneSettings:b,side:f="outside-bottom",align:h="start",alignmentOffset:p,anchorOffset:m,className:y,preventOverflow:x=!0})=>{const w=co(o),[C,k]=Uo(),B=ot(n),E=t((()=>null==s?void 0:s("click-outside")),[s]),T=t((()=>null==s?void 0:s("escape")),[s]),S=t((e=>{e.defaultPrevented||!i&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press",e),e.preventDefault())}),[i,c]),N=t((e=>{e.defaultPrevented||0!==e.button||(i?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[i,c,s]),{position:_}=Go({anchorElementRef:w,floatingElementRef:C,side:f,align:h,alignmentOffset:p,anchorOffset:m},[C.current]);return a((()=>{!i&&C.current&&k(null)}),[i,C,k]),Vc({containerRef:C,disabled:!i||!_,...b}),bc({containerRef:C,disabled:!i||!_,...v}),r.createElement(r.Fragment,null,e&&e({ref:w,id:B,"aria-haspopup":"true","aria-expanded":i,tabIndex:0,onClick:N,onKeyDown:S}),i?r.createElement(Sg,Ng({returnFocusRef:w,onClickOutside:E,ignoreClickRefs:[w],onEscape:T,ref:k,role:"none",visibility:_?"visible":"hidden",height:d,width:g,top:(null==_?void 0:_.top)||0,left:(null==_?void 0:_.left)||0,anchorSide:null==_?void 0:_.anchorSide,className:y,preventOverflow:x},u),l):null)};function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ig.apply(null,arguments)}_g.displayName="AnchoredOverlay";const Mg=r.createContext({renderAnchor:null,open:!1}),Ag=(e,r)=>{const o={...e};if("function"==typeof r.onClick){const t=e.onClick,a=e=>{var o;null===(o=r.onClick)||void 0===o||o.call(r,e),null==t||t(e)};o.onClick=a}if("function"==typeof r.onKeyDown){const t=e.onKeyDown,a=e=>{var o;null===(o=r.onKeyDown)||void 0===o||o.call(r,e),null==t||t(e)};o.onKeyDown=a}return o},Lg=({anchorRef:e,open:o,onOpenChange:t,children:a})=>{const n=g(Mg),[l,i]=Yo(o,t,!1),c=r.useCallback((()=>i(!0)),[i]),s=r.useCallback((e=>{var r;switch(i(!1),e){case"tab":case"item-select":null===(r=n.onClose)||void 0===r||r.call(n,e)}}),[i,n]),d=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===Rg||e.type===Og))),u=r.isValidElement(d)?d.props.id:void 0,v=co(e),b=ot(u);let f=null;const h=r.Children.map(a,(e=>{if(e.type===Zl){const o=e.props.children;return o.type===Rg&&(f=t=>{const a=r.cloneElement(o,Ag({...t},o.props));return r.cloneElement(e,{children:a,ref:v})}),null}if(e.type===Og){const o=e.props.children;return void 0!==o&&o.type===Zl?null!==o.props.children&&(f=t=>{const a=o.props.children,n=r.cloneElement(a,Ag({...t},a.props)),l=r.cloneElement(o,{children:n});return r.cloneElement(e,{children:l,ref:v})}):f=o=>r.cloneElement(e,o),null}return e.type===Rg?(f=o=>r.cloneElement(e,Ag(o,e.props)),null):e}));return r.createElement(Mg.Provider,{value:{anchorRef:v,renderAnchor:f,anchorId:b,open:l,onOpen:c,onClose:s,isSubmenu:void 0!==n.isSubmenu}},h)};Lg.displayName="Menu";const Og=r.forwardRef((({children:e,...a},n)=>{const{onOpen:l,isSubmenu:i}=r.useContext(Mg),c=t((e=>{i&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==l||l("anchor-key-press"))}),[i,l]),s=g(Od),d=o((()=>i?{...s,defaultTrailingVisual:r.createElement(kc,null),afterSelect:()=>null==l?void 0:l("anchor-click")}:s),[i,l,s]);return r.createElement(Od.Provider,{value:d},r.cloneElement(e,{...a,ref:n,onClick:r=>{var o,t,n;null===(o=(t=e.props).onClick)||void 0===o||o.call(t,r),null===(n=a.onClick)||void 0===n||n.call(a,r)},onKeyDown:r=>{var o,t,n;null===(o=(t=e.props).onKeyDown)||void 0===o||o.call(t,r),c(r),null===(n=a.onKeyDown)||void 0===n||n.call(a,r)}}))})),Rg=r.forwardRef((({...e},o)=>r.createElement(Og,{ref:o},r.createElement(An,Ig({type:"button",trailingAction:Dc},e))))),jg=({children:e,align:o="start",side:t,"aria-labelledby":n,...l})=>{const{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,isSubmenu:b=!1}=r.useContext(Mg),f=r.useRef(null);Xo(g,v,f,c,b);const[h,p]=i(null);return a((()=>{if(null!=c&&c.current){const e=c.current.getAttribute("aria-labelledby");e&&p(e)}}),[c]),r.createElement(_g,{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,align:o,side:null!=t?t:b?"outside-right":"outside-bottom",overlayProps:l,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:f},r.createElement(Od.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:n||h||d,selectionAttribute:"aria-checked",afterSelect:()=>null==v?void 0:v("item-select"),enableFocusZone:!1}},e)))};jg.displayName="Overlay",Lg.displayName="ActionMenu";const zg=Object.assign(Lg,{Button:Rg,Anchor:Og,Overlay:jg,Divider:wg}),Pg=d(null);var Dg="prc_Spinner_Azb7p",Hg="prc_SpinnerLeading_s-LyA",Vg="prc_SpinnerHidden_GG1PJ",Fg="prc_SpinnerVisible_w5g8l",Wg="prc_Input_Ic-y8";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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$g.apply(null,arguments)}const Zg="primer_react_css_modules_staff",Kg=yt(Zg,"input",m.input.withConfig({displayName:"UnstyledTextInput__ToggledUnstyledTextInput",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)),Gg=r.forwardRef((function({className:e,...o},t){const a=bt(Zg);return r.createElement(Kg,$g({ref:t},o,{className:Gr(e,a&&Wg)}))}));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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qg.apply(null,arguments)}Gg.displayName="UnstyledTextInput";const Ug=({children:e,hasLoadingIndicator:o,showLoadingIndicator:t,visualPosition:a,id:n})=>{const l=bt(Zg),i="leading"===a;if(!e&&!o||i&&!e&&!t)return null;if(!o)return r.createElement("span",{className:"TextInput-icon",id:n,"aria-hidden":"true"},e);const c=l?{className:Gr(t?Vg:Fg)}:{sx:{visibility:t?"hidden":"visible"}},s=l?{className:Gr(t?Fg:Vg,e&&Dg,e&&i&&Hg)}:{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:t?"visible":"hidden",...i?{left:0}:{right:0}}:{visibility:t?"visible":"hidden"}};return r.createElement("span",{className:"TextInput-icon"},r.createElement(ht,{display:"flex",position:"relative",id:n},e&&r.createElement(ht,c,e),r.createElement(Dt,qg({srText:null},s,{size:e?void 0:"small"}))))};Ug.displayName="TextInputInnerVisualSlot";var Yg="prc_TextInputBaseWrapper_ueK9q",Xg="prc_TextInputWrapper_i1ofR";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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Qg.apply(null,arguments)}const Jg=yt(Zg,"span",m.span.withConfig({displayName:"TextInputWrapper__StyledTextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:var(--base-size-20);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:var(--base-size-32);overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action]):focus-within){border-color:",";outline:2px solid ",";outline-offset:-1px;}> textarea{padding:var(--base-size-12);}&:where([data-contrast]){background-color:",";}&:where([data-disabled]){color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}}&:where([data-monospace]){font-family:",";}&:where([data-validation='error']){border-color:",";&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action])):focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}}&:where([data-validation='success']){border-color:",";}&:where([data-block]){width:100%;display:flex;align-self:stretch;}@media (min-width:","){font-size:var(--text-body-size-medium);}--inner-action-size:var(--base-size-24);&:where([data-size='small']){--inner-action-size:var(--base-size-20);min-height:var(--base-size-28);padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:var(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-size='large']){--inner-action-size:var(--base-size-28);height:var(--base-size-40);padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);}&:where([data-variant='small']){min-height:28px;padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-variant='large']){padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);font-size:var(--text-title-size-medium);}&{"," "," "," ","}"],Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.canvas.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("shadows.primer.shadow.inset"),Wr("colors.fg.muted"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.canvas.inset"),Wr("colors.primer.fg.disabled"),Wr("colors.input.disabledBg"),Wr("colors.border.default"),Wr("fonts.mono"),Wr("colors.danger.emphasis"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.success.emphasis"),Wr("breakpoints.1"),Ie,Ae,Oe,ft)),eu=r.forwardRef((function({className:e,style:o,variant:t,size:a,isInputFocused:n,hasTrailingAction:l,validationStatus:i,disabled:c,contrast:s,monospace:d,block:g,width:u,minWidth:v,maxWidth:b,...f},h){const p=bt(Zg),m=p?{}:{width:u,minWidth:v,maxWidth:b};return r.createElement(Jg,Qg({ref:h,className:Gr(e,p&&Yg),"data-block":g||void 0,"data-contrast":s||void 0,"data-disabled":c||void 0,"data-focused":n||void 0,"data-monospace":d||void 0,"data-size":a||void 0,"data-trailing-action":l||void 0,"data-validation":i||void 0,"data-variant":t||void 0,style:p&&"string"==typeof u?{width:u,...o}:o},m,f))}));eu.displayName="TextInputBaseWrapper";const ru=yt(Zg,eu,m(eu).withConfig({displayName:"TextInputWrapper__StyledTextInputWrapper",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;}padding-right:0;padding-left:0;> input,> select{padding-right:0;padding-left:0;}&:where([data-leading-visual]){padding-left:var(--base-size-12);}&:where([data-trailing-visual]:not([data-trailing-action])){padding-right:var(--base-size-12);}&:where(:not([data-leading-visual])) > input,&:where(:not([data-leading-visual])) > select{padding-left:var(--base-size-12);}&:where(:not([data-trailing-visual]):not([data-trailing-action])) > input,&:where(:not([data-trailing-visual]):not([data-trailing-action])) > select{padding-right:var(--base-size-12);}&{","}"],Wr("space.2"),Wr("colors.fg.muted"),ft)),ou=r.forwardRef((function({className:e,hasLeadingVisual:o,hasTrailingVisual:t,...a},n){return bt(Zg)?r.createElement(eu,Qg({ref:n,className:Gr(e,Xg),"data-leading-visual":o||void 0,"data-trailing-visual":t||void 0},a)):r.createElement(ru,Qg({ref:n,className:e,"data-leading-visual":o||void 0,"data-trailing-visual":t||void 0},a))}));var tu="prc_Invisible_uIWry";function au(){return au=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},au.apply(null,arguments)}const nu={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",backgroundColor:"transparent",color:"fg.subtle","&:hover, &:focus":{color:"fg.default"},'&[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"}}},lu=({"aria-label":e,children:o,tooltipDirection:t})=>r.createElement(r.Fragment,null,e?r.createElement(Zl,{text:e,direction:t,sx:{display:"inline-block"}},o):o),iu=u((({"aria-label":e,"aria-labelledby":o,tooltipDirection:t,children:a,icon:n,sx:l,className:i,variant:c="invisible",...s},d)=>{const g=bt(Zg)?{className:Gr("invisible"===c&&tu,i),sx:l||{}}:{className:i,sx:"invisible"===c?oo(nu,l||{}):l||{}};(n&&!e||!a&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology");const u=e?{"aria-label":e}:o?{"aria-labelledby":o}:{"aria-label":""};return r.createElement(ht,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},n&&!a&&e?r.createElement(ql,au({},u,{tooltipDirection:null!=t?t:"s",variant:c,type:"button",icon:n,size:"small"},g,s,{ref:d})):r.createElement(lu,{"aria-label":e},r.createElement(An,au({variant:c,type:"button"},g,s,{ref:d}),a)))}));function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},cu.apply(null,arguments)}const su=r.forwardRef((({icon:e,leadingVisual:o,trailingVisual:a,trailingAction:n,block:l,className:c,contrast:d,disabled:g,loading:u,loaderPosition:v="auto",loaderText:b="Loading",monospace:f,validationStatus:h,sx:p,size:m,onFocus:y,onBlur:x,width:w,minWidth:C,maxWidth:k,variant:B,type:E="text",required:T,...S},N)=>{const[_,I]=i(!1),M=co(N),A=Gr(c,"TextInput-wrapper"),L=u&&("leading"===v||Boolean(o&&"trailing"!==v)),O=u&&("trailing"===v||Boolean("auto"===v&&!o)),R=s(),j=s(),z=s(),P=Gr(S["aria-describedby"],o&&R,a&&j,u&&z)||void 0,D=t((e=>{I(!0),y&&y(e)}),[y]),H=t((e=>{I(!1),x&&x(e)}),[x]);return r.createElement(ou,{block:l,className:A,validationStatus:h,contrast:d,disabled:g,monospace:f,sx:p,size:m,width:w,minWidth:C,maxWidth:k,variant:B,hasLeadingVisual:Boolean(o||L),hasTrailingVisual:Boolean(a||O),hasTrailingAction:Boolean(n),isInputFocused:_,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},"aria-busy":Boolean(u)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Ug,{visualPosition:"leading",showLoadingIndicator:L,hasLoadingIndicator:"boolean"==typeof u,id:R,"data-testid":"text-input-leading-visual"},"string"!=typeof o&&Sn.isValidElementType(o)?r.createElement(o,null):o),r.createElement(Gg,cu({ref:M,disabled:g,onFocus:D,onBlur:H,type:E,"aria-required":T,"aria-invalid":"error"===h?"true":void 0},S,{"aria-describedby":P,"data-component":"input"})),u&&r.createElement(Bl,{id:z},b),r.createElement(Ug,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof u,id:j,"data-testid":"text-input-trailing-visual"},"string"!=typeof a&&Sn.isValidElementType(a)?r.createElement(a,null):a),n)}));su.displayName="TextInput";var du=Object.assign(su,{Action:iu});function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gu.apply(null,arguments)}const uu=new Set(["ArrowUp","ArrowDown"]),vu=r.forwardRef((({as:e=du,onFocus:o,onBlur:n,onChange:l,onKeyDown:c,onKeyUp:s,onKeyPress:d,value:u,openOnFocus:v=!1,...b},f)=>{const h=g(Pg);if(null===h)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:p,autocompleteSuggestion:m="",id:y,inputRef:x,inputValue:w="",isMenuDirectlyActivated:C,setInputValue:k,setShowMenu:B,showMenu:E}=h;rt(f,x);const[T,S]=i(!0),{safeSetTimeout:N}=gc(),_=t((e=>{n&&n(e),N((()=>{document.activeElement!==x.current&&B(!1)}),0)}),[n,B,x,N]),I=t((e=>{var r;c&&c(e),"Backspace"===e.key&&S(!1),"Escape"===e.key&&null!==(r=x.current)&&void 0!==r&&r.value&&(k(""),x.current.value=""),E||!uu.has(e.key)||e.altKey||B(!0)}),[x,k,S,c,E,B]),M=t((e=>{s&&s(e),"Backspace"===e.key&&S(!0)}),[S,s]),A=t((e=>{if(d&&d(e),E&&"Enter"===e.key&&p.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);p.current.dispatchEvent(r)}}),[p,E,d]);return a((()=>{x.current&&(m||(x.current.value=w),T&&m&&(w||C)&&(x.current.value=m,0===m.toLowerCase().indexOf(w.toLowerCase())&&x.current.setSelectionRange(w.length,m.length)))}),[m,w,x,C]),a((()=>{k(void 0!==u?u.toString():"")}),[u,k]),r.createElement(e,gu({onFocus:e=>{null==o||o(e),v&&B(!0)},onBlur:_,onChange:e=>{l&&l(e),k(e.currentTarget.value),E||B(!0)},onKeyDown:I,onKeyPress:A,onKeyUp:M,ref:x,"aria-controls":`${y}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":`${y}-listbox`,autoComplete:"off",id:y},b))}));function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bu.apply(null,arguments)}vu.displayName="AutocompleteInput";const fu={startMargin:0,endMargin:8};function hu(e){const t=g(Pg);if(null===t)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:c,inputRef:s,inputValue:d="",scrollContainerRef:u,setAutocompleteSuggestion:v,setShowMenu:b,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:p,showMenu:m}=t,{items:y,selectedItemIds:x,sortOnCloseFn:w,emptyStateText:C="No selectable options",addNewItem:k,loading:B,selectionVariant:E="single",filterFn:T,"aria-labelledby":S,onOpenChange:N,onSelectedChange:_,customScrollContainerRef:I}=e,M=l(null),A=l([]),[L,O]=i(),[R,j]=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;((_||(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("")):(b(!1),null===(a=s.current)||void 0===a||a.setSelectionRange(s.current.value.length,s.current.value.length))}})))),[L,y,x,s,_,E,v,f,b]),D=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)=>D[e.id]-D[r.id]));var e}),[P,D,T,d]),V=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(Rc,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((()=>{A.current=V})),Vc({containerRef:M,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:s,onActiveDescendantChanged:(e,r,o)=>{if(n.current=e||null,e){const r=A.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));O(r),h(o)}e&&I&&I.current&&o?$o(e,I.current,fu):e&&u.current&&o&&$o(e,u.current,fu)}},[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(w||(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||j(e),N&&N(Boolean(m))}),[m,N,x,w,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(Bl,{isVisible:m},B?r.createElement(ht,{p:3,display:"flex",justifyContent:"center"},r.createElement(Dt,null)):r.createElement("div",{ref:M},V.length?r.createElement(Cg,{selectionVariant:E,role:"listbox",id:`${c}-listbox`,"aria-labelledby":S},V.map((e=>{const{id:o,onAction:t,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(Cg.Item,bu({key:o,onSelect:()=>t(e)},c,{id:o,"data-id":o}),l&&r.createElement(Cg.LeadingVisual,null,Sn.isElement(l)?l:r.createElement(l,null)),null!=a?a:n,i&&r.createElement(Cg.TrailingVisual,null,Sn.isElement(i)?i:r.createElement(i,null)))}))):!1!==C&&null!==C?r.createElement(ht,{p:3},C):null))}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pu.apply(null,arguments)}function mu({menuAnchorRef:e,overlayProps:o,children:a,...n}){const l=g(Pg);if(null===l)throw new Error("AutocompleteContext returned null values");const i={...o,...n},{inputRef:c,scrollContainerRef:s,selectedItemLength:d,setShowMenu:u,showMenu:v=!1}=l,{floatingElementRef:b,position:f}=Go({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,d]);rt(s,b);const h=t((()=>{u(!1)}),[u]);return"undefined"==typeof window?null:v?r.createElement(Sg,pu({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:b,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:{overflow:"auto"}},i),a):r.createElement(Bl,{"aria-hidden":"true"},a)}hu.displayName="AutocompleteMenu",hu.displayName="AutocompleteMenu",mu.displayName="AutocompleteOverlay";const yu={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},xu=(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}},wu=({children:e,id:o})=>{const a=l(null),n=l(null),i=l(null),[c,s]=h(xu,yu),{inputValue:d,showMenu:g,autocompleteSuggestion:u,isMenuDirectlyActivated:v,selectedItemLength:b}=c,f=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})}),[]),w=ot(o);return r.createElement(Pg.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:u,id:w,inputRef:i,inputValue:d,isMenuDirectlyActivated:v,scrollContainerRef:n,selectedItemLength:b,setAutocompleteSuggestion:m,setInputValue:f,setIsMenuDirectlyActivated:y,setShowMenu:p,setSelectedItemLength:x,showMenu:g}},e)};wu.displayName="Autocomplete";var Cu=Object.assign(wu,{Context:Pg,Input:vu,Menu:hu,Overlay:mu}),ku="prc_Avatar_ZRS-m";function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bu.apply(null,arguments)}const Eu=20,Tu=r.forwardRef((function({alt:e="",size:o=20,square:t=!1,sx:a=pt,className:n,...l},i){const c=ei(o),s={};if(c)for(const[e,r]of Object.entries(o))s[`--avatarSize-${e}`]=`${r}px`;else s["--avatarSize-regular"]=`${o}px`;return a!==pt?r.createElement(ht,Bu({as:"img","data-component":"Avatar",className:Gr(n,ku),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":t?"":void 0,width:c?void 0:o,height:c?void 0:o,style:s,sx:a},l)):r.createElement("img",Bu({"data-component":"Avatar",className:Gr(n,ku),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":t?"":void 0,width:c?void 0:o,height:c?void 0:o,style:s},l))}));const Su={xsmall:{width:"320px"},small:{width:M.breakpoints[0]},medium:{width:M.breakpoints[1]},large:{width:M.breakpoints[2]},xlarge:{width:M.breakpoints[3]},xxlarge:{width:"1400px"}};function Nu(e){return`@media screen and (min-width: ${e})`}const _u=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(Su.medium.width),Iu=Nu(Su.medium.width),Mu=Nu(Su.xxlarge.width);function Au(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}function Lu(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}function Ou(e,r,o){if(ei(e)){const t=e,a="narrow"in t?{[_u]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[Iu]:{[r]:o(t.regular)}}:{},l="wide"in t?{[Mu]:{[r]:o(t.wide)}}:{};return Au(t)?{[r]:o(t.narrow)}:Lu(t)?{...a,...n}:{...a,...n,...l}}return{[r]:o(e)}}var Ru="prc_SkeletonBox_HR9PH";const ju="primer_react_css_modules_staff";function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zu.apply(null,arguments)}const Pu=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Du=yt(ju,"div",m.div.withConfig({displayName:"SkeletonBox__StyledSkeletonBox",componentId:"sc-ovy911-0"})(["animation:",";display:block;background-color:var(--bgColor-muted,",");border-radius:3px;height:",";width:",";@media (prefers-reduced-motion:no-preference){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;}@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}",";"],Pu,Wr("colors.canvas.subtle"),(e=>e.height||"1rem"),(e=>e.width),Pu,ft)),Hu=r.forwardRef((function({height:e,width:o,className:t,style:a,...n},l){const i=bt(ju);return r.createElement(Du,zu({height:i?void 0:e,width:i?void 0:o,className:Gr(t,{[Ru]:i}),style:i?oo(a,{height:e,width:o}):a},n,{ref:l}))}));var Vu="prc_SkeletonAvatar_TYNvX";function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Fu.apply(null,arguments)}const Wu={'&[data-component="SkeletonAvatar"]':{borderRadius:"50%",boxShadow:`0 0 0 1px ${Wr("colors.avatar.border")}`,display:"inline-block",lineHeight:Wr("lineHeights.condensedUltra"),height:"var(--avatar-size)",width:"var(--avatar-size)"},"&[data-square]":{borderRadius:"clamp(4px, var(--avatar-size) - 24px, 6px)"}},$u=({size:e=20,square:o,className:t,style:a,...n})=>{const l=ei(e),i={},c=bt(ju),s=l?{...Ou(e,"--avatar-size",(e=>`${e||Eu}px`)),...Wu}:{"--avatar-size":`${e}px`,...Wu};if(c)if(l)for(const[r,o]of Object.entries(e))i[`--avatarSize-${r}`]=`${o}px`;else i["--avatarSize-regular"]=`${e}px`;return r.createElement(Hu,Fu({sx:c?void 0:s,className:Gr(t,{[Vu]:c})},n,{"data-component":"SkeletonAvatar","data-responsive":l?"":void 0,"data-square":o?"":void 0,style:oo(a,c?i:{})}))};$u.displayName="SkeletonAvatar";var Zu="prc_AvatarPair_Av0UV",Ku="prc_AvatarChild_icdQd";function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gu.apply(null,arguments)}const qu=({children:e,className:o,...t})=>{const a=r.Children.map(e,((e,o)=>r.isValidElement(e)?0===o?r.cloneElement(e,{size:40}):e.type===$u?r.createElement($u,Gu({},e.props,{size:20})):r.createElement(Tu,Gu({className:Gr(e.props.className,Ku)},e.props,{size:20})):e));return r.createElement("div",Gu({className:Gr(o,Zu)},t),a)};qu.displayName="AvatarPair",qu.displayName="AvatarPair";var Uu="prc_AvatarStack_N-r3C",Yu="prc_AvatarItem_nS1mt",Xu="prc_AvatarStackBody_mSyoJ";const Qu={disabled:"[disabled]",hidden:"[hidden]",inert:"[inert]",negativeTabIndex:'[tabindex="-1"]'},Ju=["a[href]","button","summary","select","input:not([type=hidden])","textarea",'[tabindex="0"]',"audio[controls]","video[controls]","[contenteditable]"].map((e=>`${e}:not(${Object.values(Qu).join("):not(")})`));function ev(e,r){if(!e||rv(e))return!1;const o=ov(e,[e]);return Boolean(o)}function rv(e){const r=getComputedStyle(e),o=e.matches("[disabled], [hidden], [inert]"),t="none"===r.display||"hidden"===r.visibility;return o||t}function ov(e,r){if(!e)return;const o=r.find((r=>r===e)),t=rv(e);if(e.matches(Ju.join(", "))&&!o&&!t)return e;for(const o of e.children){if(ov(o,r))return!0}}const tv="primer_react_css_modules_team",av=yt(tv,"span",m.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);position:relative;overflow:hidden;display:flex;&:is(img){box-shadow:0 0 0 var(--avatar-border-width) ",";}&: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,&:not(.pc-AvatarStack--disableExpand):focus-within{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover,.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):focus-within{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;}",";"],Sd("1px"),(e=>1===e.count?Wr("colors.avatar.border"):Wr("colors.canvas.default")),55,40,25,Wr("space.1"),Wr("space.1"),(e=>1===e.count?"":`box-shadow: inset 0 0 0 4px ${Wr("colors.canvas.default")};`),Sd("1px"),ft)),nv=({disableExpand:e,hasInteractiveChildren:o,stackContainer:t,children:a})=>{const n=Gr("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":e});return bt(tv)?r.createElement("div",{"data-disable-expand":e?"":void 0,className:Gr(n,Xu),tabIndex:o||e?void 0:0,ref:t},a):r.createElement(ht,{className:n,tabIndex:o||e?void 0:0,ref:t},a)};nv.displayName="AvatarStackBody";const lv=({children:e,alignRight:o,disableExpand:t,size:n,className:c,sx:s=pt})=>{const d=bt(tv),[g,u]=i(!1),v=l(null),b=r.Children.count(e),f=Gr({"pc-AvatarStack--two":2===b,"pc-AvatarStack--three":3===b,"pc-AvatarStack--three-plus":b>3,"pc-AvatarStack--right":o},c),h=(()=>{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))ei(t.props.size)?o[r].push(t.props.size[r]||Eu):o[r].push(t.props.size||Eu),e[r]=Math.min(...o[r]);return e}),{narrow:Eu,regular:Eu,wide:Eu})})();a((()=>{if(v.current){const e=()=>{u(ev(v.current))},r=new MutationObserver(e);return r.observe(v.current,{childList:!0}),e(),()=>{r.disconnect()}}}),[]);const p=()=>n?ei(n)?d?{"--stackSize-narrow":`${n.narrow||Eu}px`,"--stackSize-regular":`${n.regular||Eu}px`,"--stackSize-wide":`${n.wide||Eu}px`}:Ou(n,"--avatar-stack-size",(e=>`${e||Eu}px`)):{"--avatar-stack-size":`${n}px`}:d?{"--stackSize-narrow":`${h.narrow}px`,"--stackSize-regular":`${h.regular}px`,"--stackSize-wide":`${h.wide}px`}:Ou(h,"--avatar-stack-size",(e=>`${e}px`)),m=oo(!d&&p(),s);return r.createElement(av,{count:d?void 0:b,"data-avatar-count":d?b>3?"3+":b:void 0,"data-align-right":d&&o?"":void 0,"data-responsive":!d||n&&!ei(n)?void 0:"",className:Gr(f,{[Uu]:d}),style:d?p():void 0,sx:m},r.createElement(nv,{disableExpand:t,hasInteractiveChildren:g,stackContainer:v}," ",((e,o)=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Gr(e.props.className,"pc-AvatarItem",{[Yu]:o})}):e)))(e,d)))};lv.displayName="AvatarStack";var iv="prc_BranchName_jFtg-";function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},cv.apply(null,arguments)}const sv=m.a.withConfig({displayName:"BranchName__StyledBranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:var(--text-body-size-small,",");font-family:var(--fontStack-monospace,",");color:var(--fgColor-link,",");background-color:var(--bgColor-accent-muted,",");border-radius:var(--borderRadius-medium,",");text-decoration:none;&:is(:not(a)){color:var(--fgColor-muted);}",";"],Wr("fontSizes.0"),Wr("fonts.mono"),Wr("colors.accent.fg"),Wr("colors.accent.subtle"),Wr("radii.2"),ft);function dv(e,o){const{as:t="a",className:a,children:n,sx:l,...i}=e;return bt("primer_react_css_modules_staff")?l?r.createElement(ht,cv({},i,{ref:o,as:t,className:Gr(a,iv),sx:l}),n):r.createElement(t,cv({},i,{ref:o,className:Gr(a,iv)}),n):r.createElement(sv,cv({},i,{as:t,ref:o,className:a,sx:l}),n)}dv.displayName="BranchName";const gv=r.forwardRef;dv.displayName="BranchName";var uv=gv(dv),vv="prc_BreadcrumbsBase_6gqOz",bv="prc_BreadcrumbsList_K7eeK",fv="prc_ItemWrapper_Mfwuj",hv="prc_Item_7BKO-",pv="prc_ItemSelected_9ZYcW";function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},mv.apply(null,arguments)}const yv="selected",xv="primer_react_css_modules_team",wv=yt(xv,"li",m.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;}}"],Wr("fontSizes.1"),Wr("colors.fg.muted"))),Cv=yt(xv,"nav",m.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],ft)),kv=({children:e})=>bt(xv)?r.createElement("ol",{className:bv},e):r.createElement(ht,{as:"ol",my:0,pl:0},e);function Bv({className:e,children:o,sx:t}){const a=bt(xv),n=r.Children.map(o,(e=>r.createElement(wv,{className:Gr({[fv]:a})},e)));return r.createElement(Cv,{className:Gr(e,{[vv]:a}),"aria-label":"Breadcrumbs",sx:t},r.createElement(kv,null,n))}kv.displayName="BreadcrumbsList",Bv.displayName="Breadcrumbs";const Ev=yt(xv,"a",m.a.withConfig({displayName:"Breadcrumbs__StyledBreadcrumbsItem",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;}",";"],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),ft)),Tv=r.forwardRef((({selected:e,className:o,...t},a)=>{const n=bt(xv);return r.createElement(Ev,mv({className:Gr(o,{[yv]:e,[hv]:n,[pv]:n&&e}),"aria-current":e?"page":null,ref:a},t))}));Bv.displayName="Breadcrumbs",Tv.displayName="Breadcrumbs.Item";var Sv=Object.assign(Bv,{Item:Tv});const Nv=Object.assign(Bv,{Item:Tv});var _v="prc_ButtonGroup_vcMeG";function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Iv.apply(null,arguments)}const Mv=r.forwardRef((function({className:e,role:o,sx:t,...a},n){const l=co(n);return Vc({containerRef:l,disabled:"toolbar"!==o,bindKeys:Ro.ArrowHorizontal,focusOutBehavior:"wrap"}),t!==pt?r.createElement(ht,Iv({as:"div",className:Gr(e,_v),role:o},a,{sx:t,ref:l})):r.createElement("div",Iv({ref:l,className:Gr(e,_v),role:o},a))}));Mv.displayName="ButtonGroup";const Av={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Lv={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Ov(e,r,o){const t=Av[e].toLowerCase(),a=Lv[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const Rv=Pr({prop:"bg",key:"colors"}),jv=Pr({prop:"borderColor",key:"colors"}),zv=Pr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Pv(e){var o;const t=r.useContext(k),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}=Rv(a),{borderColor:l}=jv(a),{borderWidth:i}=zv(a),{size:c=8,location:s="bottom"}=e,[d,g]=function(e){const[r,o]=e.split("-");return[r,o]}(s),u=Lv[d],v=[-c,0],b=[0,c],f=[c,0],h=`M${v}L${b}L${f}L${v}Z`,p=`M${v}L${b}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",...Ov(d,g,c),[`margin${u}`]: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 Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dv.apply(null,arguments)}function Hv(e){const{size:o=32,as:t,icon:a,bg:n,"aria-label":l,...i}=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,Dv({display:"flex",as:t,size:o},i,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:o,"aria-label":l})))}Pv.displayName="Caret",Pv.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Hv.displayName="CircleOcticon";const Vv=d(null),Fv=Vv.Provider;function Wv(){var e;return null!==(e=g(Vv))&&void 0!==e?e:{}}function $v(e){const r=g(Vv);return r?{disabled:r.disabled,id:r.id,required:r.required,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const Zv=d({});var Kv="prc_Checkbox_gIwWX";function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gv.apply(null,arguments)}const qv=r.forwardRef((({checked:e,className:o,defaultChecked:t,indeterminate:n,disabled:l,onChange:i,sx:c,required:s,validationStatus:d,value:u,...v},b)=>{const f=co(b),h=g(Zv),p={type:"checkbox",disabled:l,ref:f,checked:!n&&e,defaultChecked:t,required:s,"aria-required":s?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{h.onChange&&h.onChange(e),i&&i(e)},value:u,name:u,...v};return Zo((()=>{f.current&&(f.current.indeterminate=n||!1)}),[n,e,f]),a((()=>{const{current:e}=f;e&&(n?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),c?r.createElement(ht,Gv({as:"input"},p,{className:Gr(o,Id,Kv),sx:c})):r.createElement("input",Gv({},p,{className:Gr(o,Id,Kv)}))}));qv.displayName="Checkbox";var Uv={Select:"prc_Select_F7Flx",TextInputWrapper:"prc_TextInputWrapper_eBxmL",disabled:"prc_disabled_qvF9B",ArrowIndicator:"prc_ArrowIndicator_vtddB"};function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yv.apply(null,arguments)}const Xv="primer_react_css_modules_staff",Qv=yt(Xv,"select",m.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-124jcjr-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;}}"])),Jv=({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"}));Jv.displayName="ArrowIndicatorSVG";const eb=m(Jv).withConfig({displayName:"Select__StyledArrowIndicatorSVG",componentId:"sc-124jcjr-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),rb=({className:e})=>bt(Xv)?r.createElement(Jv,{className:Gr(Uv.ArrowIndicator,e)}):r.createElement(eb,null);rb.displayName="ArrowIndicator";const ob=r.forwardRef((({block:e,children:o,contrast:t,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,...s},d)=>bt(Xv)?r.createElement(ou,{block:e,contrast:t,disabled:a,size:l,validationStatus:c,className:Uv.TextInputWrapper,sx:s.sx},r.createElement(Qv,Yv({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0,className:Gr(Uv.Select,a&&Uv.Disabled)},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(rb,{className:Uv.ArrowIndicator})):r.createElement(ou,{sx:{overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},block:e,contrast:t,disabled:a,size:l,validationStatus:c},r.createElement(Qv,Yv({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(rb,null)))),tb=e=>r.createElement("option",e);tb.displayName="Option";const ab=e=>r.createElement("optgroup",e);ab.displayName="OptGroup";var nb=Object.assign(ob,{Option:tb,OptGroup:ab});function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},lb.apply(null,arguments)}const ib=m.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-cjezay-0"})(["{}padding:6px ",";font-size:",";font-weight:",";color:",";"," ",""],Wr("space.3"),Wr("fontSizes.0"),Wr("fontWeights.bold"),Wr("colors.fg.muted"),(({variant:e})=>"filled"===e&&C(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Wr("colors.canvas.subtle"),Wr("space.2"),Wr("colors.neutral.muted"),Wr("colors.neutral.muted"))),ft);function cb({variant:e="subtle",title:o,auxiliaryText:t,children:a,...n}){return r.createElement(ib,lb({role:"heading",variant:e},n),o,t&&r.createElement("span",null,t))}cb.displayName="Header";const sb=m.div.withConfig({displayName:"Group__StyledGroup",componentId:"sc-1s2aw76-0"})(["",""],ft);function db({header:e,items:o,...t}){return r.createElement(sb,t,e&&r.createElement(cb,e),o)}db.displayName="Group";const gb=m.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1s7tlfq-0"})(["height:1px;background:",";margin-top:calc("," - 1px);margin-bottom:",";"],Wr("colors.border.muted"),Wr("space.2"),Wr("space.2"));function ub(){return r.createElement(gb,null)}function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vb.apply(null,arguments)}ub.displayName="Divider",ub.renderItem=ub;const bb=(e="default",r)=>r?{color:Wr("colors.primer.fg.disabled"),iconColor:Wr("colors.primer.fg.disabled"),annotationColor:Wr("colors.primer.fg.disabled"),hoverCursor:"default"}:"danger"===e?{color:Wr("colors.danger.fg"),iconColor:Wr("colors.danger.fg"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.danger.hoverBg"),focusBg:Wr("colors.actionListItem.danger.activeBg"),hoverText:Wr("colors.actionListItem.danger.hoverText")}:{color:Wr("colors.fg.default"),iconColor:Wr("colors.fg.muted"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.default.hoverBg"),focusBg:Wr("colors.actionListItem.default.activeBg")},fb=m.div.withConfig({displayName:"Item__DividedContent",componentId:"sc-y6iv6t-0"})(["display:flex;min-width:0;position:relative;flex-grow:1;"]),hb=m.div.withConfig({displayName:"Item__MainContent",componentId:"sc-y6iv6t-1"})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]),pb=m.div.withConfig({displayName:"Item__StyledItem",componentId:"sc-y6iv6t-2"})(["padding:6px ",";display:flex;border-radius:",";color:",";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,"," );color:",";cursor:",";}}:not(:first-of-type):not("," + &):not("," + &){margin-top:",";","::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ",";border-top-width:",";}}&:hover ","::before,:hover + * ","::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ","::before,:focus + * ","::before,&[","] ","::before,[","] + & ","::before{border-color:transparent !important;}&[","='","']{background:",";}&[","='","']{background:",";}&:focus{background:",";outline:none;}&:active{background:",";}",""],Wr("space.2"),Wr("radii.2"),(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).color),(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).hoverText),(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).hoverCursor),gb,ib,(({showDivider:e})=>e?"1px":"0"),fb,Wr("colors.border.muted"),(({showDivider:e})=>e?"1px":"0"),fb,fb,fb,fb,Do,fb,Do,fb,Do,Ho,(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).focusBg),Do,Vo,(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).focusBg),(({variant:e,item:r})=>bb(e,null==r?void 0:r.disabled).focusBg),ft),mb=m.span.withConfig({displayName:"Item__TextContainer",componentId:"sc-y6iv6t-3"})([""]),yb=m.div.withConfig({displayName:"Item__BaseVisualContainer",componentId:"sc-y6iv6t-4"})(["height:20px;width:",";margin-right:",";display:flex;justify-content:center;align-items:center;flex-shrink:0;"],Wr("space.3"),Wr("space.2")),xb=m(yb).withConfig({displayName:"Item__ColoredVisualContainer",componentId:"sc-y6iv6t-5"})(["svg{fill:",";font-size:",";}"],(({variant:e,disabled:r})=>bb(e,r).iconColor),Wr("fontSizes.0")),wb=m(xb).withConfig({displayName:"Item__LeadingVisualContainer",componentId:"sc-y6iv6t-6"})(["display:flex;flex-direction:column;justify-content:center;"]),Cb=m(xb).withConfig({displayName:"Item__TrailingContent",componentId:"sc-y6iv6t-7"})(["color:",";margin-left:",";margin-right:0;width:auto;div:nth-child(2){margin-left:",";}"],(({variant:e,disabled:r})=>bb(e,r).annotationColor),Wr("space.2"),Wr("space.2")),kb=m.span.withConfig({displayName:"Item__DescriptionContainer",componentId:"sc-y6iv6t-8"})(["color:",";font-size:",";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"],Wr("colors.fg.muted"),Wr("fontSizes.0")),Bb=m.svg.withConfig({displayName:"Item__MultiSelectIcon",componentId:"sc-y6iv6t-9"})(["rect{fill:",";stroke:",";shape-rendering:auto;}path{fill:",";boxshadow:",";opacity:",";}"],(({selected:e})=>Wr(e?"colors.accent.fg":"colors.canvas.default")),(({selected:e})=>Wr(e?"colors.accent.fg":"colors.border.default")),Wr("colors.fg.onEmphasis"),Wr("shadow.small"),(({selected:e})=>e?1:0)),Eb=r.forwardRef(((e,o)=>{const{as:a,text:n,description:l,descriptionVariant:i="inline",selected:c,selectionVariant:s,leadingVisual:d,trailingIcon:g,trailingVisual:u,trailingText:v,variant:b="default",showDivider:f,disabled:h,onAction:p,onKeyPress:m,children:y,onClick:x,id:w,...C}=e,k=ot(),B=ot(),E=t((r=>{h||(null==m||m(r),!r.defaultPrevented&&[" ","Enter"].includes(r.key)&&(null==p||p(e,r)))}),[p,h,e,m]),T=t((r=>{h||(null==x||x(r),r.defaultPrevented||null==p||p(e,r))}),[p,h,e,x]),{theme:S}=ct();return r.createElement(pb,vb({ref:o,as:a,tabIndex:h?void 0:-1,variant:b,showDivider:f,"aria-selected":c,"aria-labelledby":n?k:void 0,"aria-describedby":l?B:void 0},C,{"data-id":w,onKeyPress:E,onClick:T}),!!c===c&&r.createElement(yb,null,"multiple"===s?r.createElement(r.Fragment,null,r.createElement(Bb,{selected:c,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r.createElement("rect",{x:"2",y:"2",width:"12",height:"12",rx:"4"}),r.createElement("path",{fillRule:"evenodd",strokeWidth:"0",d:"M4.03231 8.69862C3.84775 8.20646 4.49385 7.77554 4.95539 7.77554C5.41693 7.77554 6.80154 9.85246 6.80154 9.85246C6.80154 9.85246 10.2631 4.314 10.4938 4.08323C10.7246 3.85246 11.8785 4.08323 11.4169 5.00631C11.0081 5.82388 7.26308 11.4678 7.26308 11.4678C7.26308 11.4678 6.80154 12.1602 6.34 11.4678C5.87846 10.7755 4.21687 9.19077 4.03231 8.69862Z"}))):c&&r.createElement(xc,{fill:null==S?void 0:S.colors.fg.default})),d&&r.createElement(wb,{variant:b,disabled:h},r.createElement(d,null)),r.createElement(fb,null,r.createElement(hb,{style:{"--main-content-flex-direction":"inline"===i?"row":"column"}},y,n?r.createElement(mb,{id:k},n):null,l?r.createElement(kb,{id:B,style:{"--description-container-margin-left":"inline"===i?Wr("space.2")(S):0,"--description-container-flex-basis":"inline"===i?0:"auto"}},"block"===i?l:r.createElement(og,{title:l,inline:!0,maxWidth:"100%"},l)):null),u?r.createElement(Cb,{variant:b,disabled:h},"string"!=typeof u&&Sn.isValidElementType(u)?r.createElement(u,null):u):g||v?r.createElement(Cb,{variant:b,disabled:h},v,g&&r.createElement(g,null)):null))}));function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tb.apply(null,arguments)}Eb.displayName="ActionList.Item";const Sb=m.div.withConfig({displayName:"List__StyledList",componentId:"sc-hkz3q0-0"})(["font-size:",";line-height:20px;&[","],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:",";}"],Wr("fontSizes.1"),Fo,Wr("colors.border.muted"));const Nb=r.forwardRef(((e,o)=>{const{firstGroupStyle:t,lastGroupStyle:a,headerStyle:n,itemStyle:l}=function(e="inset"){return"full"===e?{headerStyle:{paddingX:Wr("space.2")},itemStyle:{borderRadius:0}}:{firstGroupStyle:{marginTop:Wr("space.2")},lastGroupStyle:{marginBottom:Wr("space.2")},itemStyle:{marginX:Wr("space.2")}}}(e.variant),i=(o,t,a)=>{var n,i,c;const s="renderItem"in o&&o.renderItem||e.renderItem||Eb,d=null!==(n=null!==(i="key"in o?o.key:void 0)&&void 0!==i?i:null===(c=o.id)||void 0===c?void 0:c.toString())&&void 0!==n?n:a.toString();return r.createElement(s,Tb({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},o,{key:d,sx:{...l,...o.sx},item:t}))};let c=[];if(function(e){return"groupMetadata"in e}(e)){const r=e.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const o of e.items){var s,d,g;const e=r.get(o.groupId),t=null!==(s=null==e||null===(d=e.items)||void 0===d?void 0:d.length)&&void 0!==s?s:0;r.set(o.groupId,{...e,items:[...null!==(g=null==e?void 0:e.items)&&void 0!==g?g:[],i({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...o},o,t)]})}c=[...r.values()]}else c=[{items:e.items.map(((e,r)=>i(e,e,r))),groupId:"0"}];return r.createElement(Sb,Tb({},e,{ref:o}),c.map((({header:o,...l},i)=>{const s="filled"===(null==o?void 0:o.variant),d=i>0&&!s;return r.createElement(r.Fragment,{key:l.groupId},d?r.createElement(ub,{key:`${l.groupId}-divider`}):null,(o=>{var t;const a=(null!==(t="renderGroup"in o&&o.renderGroup)&&void 0!==t?t:e.renderGroup)||db;return r.createElement(a,Tb({},o,{key:o.groupId}))})({sx:{...0===i&&t,...i===c.length-1&&a,...i>0&&!d&&{mt:2}},...o&&{header:{...o,sx:{...n,...o.sx}}},...l}))})))}));Nb.displayName="ActionList";const _b=Object.assign(Nb,{Group:db,Item:Eb,Divider:ub});function Ib(e){a((()=>{const r=e.current;if(!r)return;const o=r.scrollTop,t=r.scrollHeight,a=o<Math.min(1,t)?o+1:o-1;r.scrollTop=a,r.scrollTop=o}),[e])}function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Mb.apply(null,arguments)}const Ab={startMargin:0,endMargin:8},Lb=m.div.withConfig({displayName:"FilteredActionListWithDeprecatedActionList__StyledHeader",componentId:"sc-o1spcd-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function Ob({loading:e=!1,placeholderText:o,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,className:u,...v}){const[b,f]=Yo(n,void 0,""),h=t((e=>{const r=e.target.value;i(r,e),f(r)}),[i,f]),p=l(null),m=l(null),y=co(d),x=l(),w=ot(),C=ot(),k=t((e=>{if("Enter"===e.key&&x.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);x.current.dispatchEvent(r)}}),[x]);return Vc({containerRef:m,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:y,onActiveDescendantChanged:(e,r,o)=>{x.current=e,e&&p.current&&o&&$o(e,p.current,Ab)}},[e]),a((()=>{x.current&&p.current&&$o(x.current,p.current,{...Ab,behavior:"auto"})}),[c]),Ib(p),r.createElement(ht,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:u,"data-testid":"filtered-action-list"},r.createElement(Lb,null,r.createElement(du,Mb({ref:y,block:!0,width:"auto",color:"fg.default",value:b,onChange:h,onKeyPress:k,placeholder:o,"aria-label":o,"aria-controls":w,"aria-describedby":C},s))),r.createElement(Mt,{id:C},"Items will be filtered as you type"),r.createElement(ht,{ref:p,overflow:"auto"},e?r.createElement(ht,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Dt,null)):r.createElement(_b,Mb({ref:m,items:c},v,{role:"listbox",id:w}))))}Ob.displayName="FilteredActionList",Ob.displayName="FilteredActionList";const Rb=(e,r)=>{const o=e.current,t=null==o?void 0:o.querySelector("[data-is-active-descendant]");if(!o||null==t||!t.textContent)return;const a=o.querySelectorAll('[role="option"]'),n=Array.from(a).indexOf(t),l=r[n];return{index:n,text:l.text,selected:l.selected}},jb=(e,r,o)=>{const t=document.querySelector("live-region");a((function(){const a=()=>{window.requestAnimationFrame((()=>{const o=Rb(r,e);if(!o)return;const{index:a,text:n,selected:l}=o;$a(["Focus on filter text box and list of items",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:t||void 0})}))},n=o.current;return null==n||n.addEventListener("focus",a),()=>null==n?void 0:n.removeEventListener("focus",a)}),[r,o,e,t]);const n=(()=>{const e=l(!0);return a((()=>{e.current=!1}),[]),e.current})();a((function(){n||(null==t||t.clear(),0!==e.length?window.requestAnimationFrame((()=>{const o=Rb(r,e);if(!o)return;const{index:a,text:n,selected:l}=o;$a(["List updated",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:t||void 0})})):$a("No matching items.",{delayMs:500}))}),[n,e,r,t])};function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zb.apply(null,arguments)}const Pb={startMargin:0,endMargin:8},Db=m.div.withConfig({displayName:"FilteredActionListWithModernActionList__StyledHeader",componentId:"sc-1d2kw5v-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function Hb({loading:e=!1,placeholderText:o,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,groupMetadata:u,showItemDividers:v,className:b,...f}){const[h,p]=Yo(n,void 0,""),m=t((e=>{const r=e.target.value;i(r,e),p(r)}),[i,p]),y=l(null),x=l(null),w=co(d),C=l(),k=ot(),B=ot(),E=t((e=>{if("Enter"===e.key&&C.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);C.current.dispatchEvent(r)}}),[C]);return Vc({containerRef:x,bindKeys:Ro.ArrowVertical|Ro.PageUpDown,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:w,onActiveDescendantChanged:(e,r,o)=>{C.current=e,e&&y.current&&o&&$o(e,y.current,Pb)}},[e]),a((()=>{C.current&&y.current&&$o(C.current,y.current,{...Pb,behavior:"auto"})}),[c]),Ib(y),jb(c,x,w),r.createElement(ht,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:b,"data-testid":"filtered-action-list"},r.createElement(Db,null,r.createElement(du,zb({ref:w,block:!0,width:"auto",color:"fg.default",value:h,onChange:m,onKeyPress:E,placeholder:o,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":k,"aria-label":o,"aria-describedby":B},s))),r.createElement(Mt,{id:B},"Items will be filtered as you type"),r.createElement(ht,{ref:y,overflow:"auto"},e?r.createElement(ht,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Dt,null)):r.createElement(Cg,zb({ref:x,showDividers:v},f,{role:"listbox",id:k}),null!=u&&u.length?u.map(((e,o)=>{var t,a;return r.createElement(Cg.Group,{key:o},r.createElement(Cg.GroupHeading,{variant:null!==(t=e.header)&&void 0!==t&&t.variant?e.header.variant:void 0},null!==(a=e.header)&&void 0!==a&&a.title?e.header.title:`Group ${e.groupId}`),function(e){const r=[];for(const o of c)o.groupId===e&&r.push(o);return r}(e.groupId).map(((e,o)=>r.createElement(Vb,zb({key:o},e,{renderItem:f.renderItem})))))})):c.map(((e,o)=>r.createElement(Vb,zb({key:o},e,{renderItem:f.renderItem})))))))}function Vb(e){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:o,description:t,descriptionVariant:a,text:n,trailingVisual:l,leadingVisual:i,trailingText:c,trailingIcon:s,onAction:d,children:g,...u}=e;return r.createElement(Cg.Item,zb({role:"option",onSelect:r=>{"function"==typeof d&&d(e,r)},"data-id":o},u),i?r.createElement(Cg.LeadingVisual,null,r.createElement(i,null)):null,g,n,t?r.createElement(Cg.Description,{variant:a},t):null,l?r.createElement(Cg.TrailingVisual,null,"string"!=typeof l&&Sn.isValidElementType(l)?r.createElement(l,null):l):s||c?r.createElement(Cg.TrailingVisual,null,c,s&&r.createElement(s,null)):null)}function Fb(e){return bt("primer_react_select_panel_with_modern_action_list")?r.createElement(Hb,e):r.createElement(Ob,e)}Hb.displayName="FilteredActionList",Vb.displayName="MappedActionListItem",Hb.displayName="FilteredActionList",Fb.displayName="FilteredActionList";const Wb=r.createContext(null);function $b(){const e=r.useContext(Wb);if(!e)throw new Error("useLiveRegion() must be used within a <LiveRegion>");return e}function Zb({children:e}){const[o,t]=r.useState(""),a=r.useMemo((()=>({announce:t,message:o})),[o]);return r.createElement(Wb.Provider,{value:a},e)}function Kb(){const e=$b();return r.createElement(Mt,{role:"status","aria-live":"polite","aria-atomic":!0},e.message)}function Gb({value:e}){const o=$b(),t=r.useRef(o),a=r.useRef(!1);return r.useEffect((()=>{t.current=o}),[o]),r.useEffect((()=>{if(!0!==a.current)return;const r=setTimeout((()=>{t.current.announce(e)}),750);return()=>{clearTimeout(r)}}),[e]),r.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),null}Zb.displayName="LiveRegion",Kb.displayName="LiveRegionOutlet";var qb="prc_Wrapper_43Iz8",Ub="prc_Content_rbAGw",Yb="prc_Title_-CZN1",Xb="prc_Subtitle_tMSzu",Qb="prc_Footer_78rgp",Jb="prc_FilteredActionList_wzS7m";function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ef.apply(null,arguments)}function rf(e){return Array.isArray(e)}const of={disabled:!0},tf=(e,r)=>void 0!==e.id?e.id===r.id:e===r,af=(e,r)=>e.some((e=>tf(e,r)));function nf({open:e,onOpenChange:a,renderAnchor:n=e=>{const{children:o,...t}=e;return r.createElement(An,ef({trailingAction:Dc},t),o)},anchorRef:l,placeholder:i,placeholderText:c="Filter items",inputLabel:s=c,selected:d,title:g=(rf(d)?"Select items":"Select an item"),subtitle:u,onSelectedChange:v,filterValue:b,onFilterChange:f,items:h,footer:p,textInputProps:m,overlayProps:y,sx:x,className:w,...C}){const k=ot(),B=ot(),[E,T]=Yo(b,void 0,""),S=t(((e,r)=>{f(e,r),T(e)}),[f,T]),N=bt("primer_react_css_modules_team"),_=co(l),I=t((e=>a(!0,e)),[a]),M=t((e=>{a(!1,e)}),[a]),A=o((()=>{if(null===n)return null;const e=Array.isArray(d)?d:[...d?[d]:[]];return r=>n({...r,children:e.length?e.map((e=>e.text)).join(", "):i})}),[i,n,d]),L=o((()=>h.map((e=>{const r=rf(d)?af(d,e):d===e;return{...e,role:"option",selected:"selected"in e&&void 0===e.selected?void 0:r,onAction:(r,o)=>{var t;if(null===(t=e.onAction)||void 0===t||t.call(e,r,o),o.defaultPrevented)return;if(rf(d)){const r=d.filter((r=>!tf(r,e))),o=af(d,e)?r:[...r,e];return void v(o)}v(e===d?void 0:e),M("selection")}}}))),[M,v,h,d]),O=r.useRef(null),R={initialFocusRef:O},j=o((()=>({sx:{m:2},contrast:!0,leadingVisual:zc,"aria-label":s,...m})),[s,m]),z=bt("primer_react_select_panel_with_modern_action_list");return r.createElement(Zb,null,r.createElement(_g,{renderAnchor:A,anchorRef:_,open:e,onOpen:I,onClose:M,overlayProps:{role:"dialog","aria-labelledby":k,"aria-describedby":u?B:void 0,...y},focusTrapSettings:R,focusZoneSettings:of},r.createElement(Kb,null),z?null:r.createElement(Gb,{value:""===E?"Showing all items":h.length<=0?"No matching items":`${h.length} matching ${1===h.length?"item":"items"}`}),r.createElement(ht,{sx:N?void 0:{display:"flex",flexDirection:"column",height:"inherit",maxHeight:"inherit"},className:N?qb:void 0},r.createElement(ht,{sx:N?void 0:{pt:2,px:3},className:N?Ub:void 0},r.createElement(zd,{as:"h1",id:k,sx:N?void 0:{fontSize:1},className:N?Yb:void 0},g),u?r.createElement(ht,{id:B,sx:N?void 0:{fontSize:0,color:"fg.muted"},className:N?Xb:void 0},u):null),r.createElement(Fb,ef({filterValue:E,onFilterChange:S,placeholderText:c},C,{role:"listbox","aria-labelledby":C["aria-label"]?void 0:k,"aria-multiselectable":rf(d)?"true":"false",selectionVariant:rf(d)?"multiple":"single",items:L,textInputProps:j,inputRef:O,sx:N?x:{...x,height:"inherit",maxHeight:"inherit"},className:N?Gr(w,Jb):w})),p&&r.createElement(ht,{sx:N?void 0:{display:"flex",borderTop:"1px solid",borderColor:"border.default",padding:2},className:N?Qb:void 0},p))))}nf.displayName="SelectPanel",nf.displayName="SelectPanel";var lf=G(be,Q,X,U,J,te,ne,ie,re,fe,Se,Ne,_e),cf=new RegExp("^("+lf.propNames.join("|")+")$"),sf="prc_TokenBase_PfQzJ";function df(){return df=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},df.apply(null,arguments)}const gf={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},uf="medium",vf=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),bf=Te({prop:"size",variants:{small:{fontSize:0,height:gf.small,lineHeight:gf.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:gf.medium,lineHeight:gf.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:gf.large,lineHeight:gf.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:gf.xlarge,lineHeight:gf.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),ff="primer_react_css_modules_team",hf=yt(ff,"span",m.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=>vf(e)?"pointer":"auto"),Wr("fontWeights.bold"),bf,ft)),pf=r.forwardRef((({onRemove:e,onKeyDown:o,id:t,className:a,size:n=uf,...l},i)=>bt(ff)?r.createElement(hf,df({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},className:Gr(sf,a),"data-cursor-is-interactive":vf(l),"data-size":n,id:null==t?void 0:t.toString()},l,{ref:i})):r.createElement(hf,df({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},id:null==t?void 0:t.toString(),size:n},l,{ref:i}))));var mf="prc_TokenButton_F4Y8h";function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yf.apply(null,arguments)}const xf="primer_react_css_modules_team",wf=Te({prop:"size",variants:{small:{height:gf.small,width:gf.small},medium:{height:gf.medium,width:gf.medium},large:{height:gf.large,width:gf.large},xlarge:{height:gf.xlarge,width:gf.xlarge}}}),Cf=e=>.75*parseInt(gf[e||uf],10),kf=yt(xf,"span",m.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 C(["margin-left:",";"],Wr("space.2"));default:return C(["margin-left:",";"],Wr("space.1"))}}),Wr("colors.neutral.muted"),Wr("colors.neutral.subtle"),wf,ft)),Bf=({"aria-label":e,isParentInteractive:o,size:t=uf,className:a,...n})=>{delete n.children;const l=bt(xf);return r.createElement(kf,yf({as:o?"span":"button",tabIndex:o?-1:void 0,"aria-label":o?e:"Remove token",size:t,"data-size":t,className:Gr(l&&mf,a),style:l?{transform:`translate(${n.borderOffset}px, -${n.borderOffset}px)`}:{}},n),r.createElement(Hc,{size:Cf(t)}))};Bf.displayName="RemoveTokenButton";var Ef="prc_TokenTextContainer_-rlDJ";function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tf.apply(null,arguments)}const Sf="primer_react_css_modules_team",Nf=yt(Sf,"span",m("span").withConfig({displayName:"_TokenTextContainer__StyledTokenTextContainer",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;}}"])),_f=({children:e,...o})=>{const t=bt(Sf);return r.createElement(Nf,Tf({className:Gr(t&&Ef)},o),e)};_f.displayName="TokenTextContainer";var If="prc_Token_L2-At";function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Mf.apply(null,arguments)}const Af=({children:e,size:o})=>r.createElement(ht,{sx:{flexShrink:0,lineHeight:0,marginRight:o&&["large","xlarge"].includes(o)?2:1}},e);Af.displayName="LeadingVisualContainer";const Lf=u(((e,o)=>{const t=bt("primer_react_css_modules_team"),{as:a,onRemove:n,id:l,leadingVisual:i,text:c,size:s=uf,hideRemoveButton:d,href:g,onClick:u,sx:v=pt,className:b,style:f,...h}=e,p=vf(e)&&Boolean(n)&&!d,m=e=>{e.stopPropagation(),n&&n()},y={as:a,href:g,onClick:u},x=oo({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!d&&n?0:void 0,...vf(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},v);return t?r.createElement(pf,Mf({onRemove:n,id:null==l?void 0:l.toString(),className:Gr(b,If),text:c,size:s,sx:v,"data-is-selected":e.isSelected,"data-is-remove-btn":!(d||!n)},p?{}:y,h,{ref:o,style:{borderWidth:"1px",...f}}),i?r.createElement(Af,{size:s},r.createElement(i,null)):null,r.createElement(_f,p?y:{},c,n&&r.createElement(Bl,null," (press backspace or delete to remove)")),!d&&n?r.createElement(Bf,{borderOffset:1,onClick:m,size:s,isParentInteractive:vf(e),"aria-hidden":p?"true":"false"}):null):r.createElement(pf,Mf({onRemove:n,id:null==l?void 0:l.toString(),text:c,size:s,sx:x},p?{}:y,h,{ref:o,style:f}),i?r.createElement(Af,{size:s},r.createElement(i,null)):null,r.createElement(_f,p?y:{},c,n&&r.createElement(Bl,null," (press backspace or delete to remove)")),!d&&n?r.createElement(Bf,{borderOffset:1,onClick:m,size:s,isParentInteractive:vf(e),"aria-hidden":p?"true":"false"}):null)}));Lf.displayName="Token";var Of="prc_TextInputWrapper_kj1cB",Rf="prc_UnstyledTextInput_F582M";function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jf.apply(null,arguments)}const zf={small:0,medium:1,large:1,xlarge:2};function Pf({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:c,className:s,block:d,disabled:g,sx:u,tokens:v,onTokenRemove:b,tokenComponent:f=Lf,preventTokenWrapping:h=!1,size:p="xlarge",hideTokenRemoveButtons:m=!1,maxHeight:y,width:x,minWidth:w,maxWidth:C,validationStatus:k,variant:B,visibleTokenCount:E,style:T,...S},N){const{onBlur:_,onFocus:I,onKeyDown:M,...A}=function(e){var r={};for(var o in e)cf.test(o)||(r[o]=e[o]);return r}(S),L=l(null);rt(N,L);const[O,R]=i(),[j,z]=i(Boolean(E)),{containerRef:P}=Vc({focusOutBehavior:"wrap",bindKeys:Ro.ArrowHorizontal|Ro.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!O&&0!==O)return;let o=O+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>v.length||o<1?L.current||void 0:null===(r=P.current)||void 0===r?void 0:r.children[o]}},[O]),D=e=>{b(e),setTimeout((()=>{var e,r;const o=null===(e=P.current)||void 0===e?void 0:e.children[O||0],t=o&&ho(o)?o:Array.from((null===(r=P.current)||void 0===r?void 0:r.children)||[]).find((e=>ho(e)));var a;t?t.focus():null===(a=L.current)||void 0===a||a.focus()}),0)},H=()=>{R(void 0),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!E||z(!0)}),0)},V=e=>{var r;"Escape"===e.key&&(null===(r=L.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},W=j?v.slice(0,E):v,$=a&&("leading"===n||Boolean(o&&"trailing"!==n)),Z=a&&("trailing"===n||"auto"===n&&!o),K=bt(Zg),G=r.useMemo((()=>K?{className:Gr(s,Of),style:y?{maxHeight:y,...T}:T,sx:u}:{className:s,style:T,sx:{paddingLeft:"12px",py:"6px",...d?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...u}}),[d,s,K,y,h,T,u]);return r.createElement(ou,jf({block:d,contrast:c,disabled:g,hasLeadingVisual:Boolean(o||$),hasTrailingVisual:Boolean(t||Z),width:x,minWidth:w,maxWidth:C,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[p],validationStatus:k,variant:B,onClick:()=>{var e;null===(e=L.current)||void 0===e||e.focus()},"data-token-wrapping":Boolean(h||y)||void 0},G),e&&!o&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Ug,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:$},"string"!=typeof o&&Sn.isValidElementType(o)?r.createElement(o,null):o),r.createElement(ht,{ref:P,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(Gg,jf({ref:L,disabled:g,onFocus:e=>{I&&I(e),R(void 0),E&&z(!1)},onBlur:e=>{_&&_(e),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!E||z(!0)}),0)},onKeyDown:e=>{var r;if(M&&M(e),null!==(r=L.current)&&void 0!==r&&r.value)return;const o=v[v.length-1];"Backspace"===e.key&&o&&(D(o.id),L.current&&(L.current.value=`${o.text} `),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.select()}),0))},type:"text",sx:K?void 0:{height:"100%"},className:K?Rf:void 0,"aria-invalid":"error"===k?"true":"false"},A))),W.map((({id:e,...o},t)=>{return r.createElement(f,jf({disabled:g,key:e,onFocus:(a=t,()=>{g||R(a)}),onBlur:H,onKeyUp:V,onClick:F,isSelected:O===t,onRemove:()=>{D(e)},hideRemoveButton:g||m,size:p,tabIndex:0},o));var a})),j&&v.length-W.length?r.createElement(kl,{color:"fg.muted",fontSize:zf[p]},"+",v.length-W.length):null),r.createElement(Ug,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:Z},"string"!=typeof t&&Sn.isValidElementType(t)?r.createElement(t,null):t))}Pf.displayName="TextInputWithTokensInnerComponent";const Df=r.forwardRef(Pf);Df.displayName="TextInputWithTokens";var Hf="prc_TextArea_13q4j";function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vf.apply(null,arguments)}const Ff="primer_react_css_modules_staff",Wf=yt(Ff,"textarea",m.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&&C(["resize:",";"],e.resize)),(e=>e.disabled&&C(["resize:none;"])),ft)),$f=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,className:g,...u},v)=>{const b=bt(Ff);return r.createElement(eu,{sx:t,validationStatus:n,disabled:o,block:s,contrast:d,className:g},r.createElement(Wf,Vf({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:v,disabled:o,rows:l,cols:i,className:Gr(b&&Hf,g)},u)))}));$f.displayName="Textarea";const Zf=m(kl).withConfig({displayName:"FormControlCaption__StyledCaption",componentId:"sc-u5w2b2-0"})(["color:var(--fgColor-muted);display:block;font-size:",";&:where([data-control-disabled]){color:var(--control-fgColor-disabled);}",""],Wr("fontSizes.0"),ft);function Kf({id:e,children:o,sx:t}){const{captionId:a,disabled:n}=Wv();return r.createElement(Zf,{id:null!=e?e:a,"data-control-disabled":n?"":void 0,sx:t},o)}function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gf.apply(null,arguments)}function qf({children:e,disabled:o,htmlFor:t,id:a,required:n,requiredText:l,requiredIndicator:i,visuallyHidden:c,sx:s,as:d="label",className:g,...u}){return r.createElement(Yf,Gf({as:d,"data-control-disabled":o?"":void 0,"data-visually-hidden":c?"":void 0,htmlFor:t,id:a,className:g,sx:s},u),n||l?r.createElement(Uf,null,r.createElement("span",null,e),r.createElement("span",{"aria-hidden":!i||void 0},null!=l?l:"*")):e)}Kf.displayName="FormControlCaption",qf.displayName="InputLabel";const Uf=m.span.withConfig({displayName:"InputLabel__StyledRequiredText",componentId:"sc-l3hcqt-0"})(["display:flex;column-gap:",";"],Wr("space.1")),Yf=m.label.withConfig({displayName:"InputLabel__StyledLabel",componentId:"sc-l3hcqt-1"})(["align-self:flex-start;display:block;color:var(--fgColor-default);cursor:pointer;font-weight:600;font-size:",";&:where([data-control-disabled]){color:var(--fgColor-muted);cursor:not-allowed;}&:where([data-visually-hidden]){border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}",""],Wr("fontSizes.1"),ft),Xf=({as:e,children:o,htmlFor:t,id:a,visuallyHidden:n,requiredIndicator:l=!0,requiredText:i,sx:c,className:s,...d})=>{const{disabled:g,id:u,required:v}=Wv(),b="legend"===e||"span"===e?{as:e,id:a,className:s,visuallyHidden:n,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d}:{as:e,id:a,className:s,visuallyHidden:n,htmlFor:t||u,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d};return r.createElement(qf,b,o)};Xf.displayName="FormControlLabel";const Qf=({children:e,sx:o})=>{const{disabled:t,captionId:a}=Wv();return r.createElement(Jf,{"data-control-disabled":t?"":void 0,"data-has-caption":a?"":void 0,sx:o},e)};Qf.displayName="FormControlLeadingVisual";const Jf=m.div.withConfig({displayName:"FormControlLeadingVisual__StyledLeadingVisual",componentId:"sc-1c26i0t-0"})(["--leadingVisual-size:",";color:var(--fgColor-default);margin-inline-start:",";&:where([data-control-disabled]){color:var(--fgColor-muted);}& > *{min-width:var(--leadingVisual-size);min-height:var(--leadingVisual-size);fill:currentColor;}&:where([data-has-caption]){--leadingVisual-size:",";}",""],Wr("fontSizes.2"),Wr("space.2"),Wr("fontSizes.4"),ft),eh=({children:e,variant:o,sx:t,id:a})=>{const{validationMessageId:n}=Wv();return r.createElement(vd,{validationStatus:o,id:a||n||"",sx:t},e)};eh.displayName="FormControlValidation";const rh=r.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:l,className:i},c)=>{var s,d;const[u,v]=oi(e,{caption:Kf,label:Xf,leadingVisual:Qf,validation:eh}),b=[Cu,qv,Ld,nb,du,Df,$f,nf],f=g(Zs).disabled||o,h=ot(a),p=u.validation?`${h}-validationMessage`:void 0,m=u.caption?`${h}-caption`:void 0,y=null===(s=u.validation)||void 0===s?void 0:s.props.variant,x=v.find((e=>b.some((o=>r.isValidElement(e)&&e.type===o)))),w=(r.isValidElement(x)&&x.props,r.isValidElement(x)&&(x.type===qv||x.type===Ld)),C=r.isValidElement(x)&&x.type===Ld;u.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.`);const k=null===(d=u.label)||void 0===d?void 0:d.props.visuallyHidden;return r.createElement(Fv,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?r.createElement(ht,{ref:c,display:"flex",alignItems:u.leadingVisual?"center":void 0,sx:l,className:i},r.createElement(ht,{sx:{"> input":{marginLeft:0,marginRight:0}}},r.isValidElement(x)&&r.cloneElement(x,{id:h,disabled:f,required:n&&!C,"aria-describedby":m}),v.filter((e=>r.isValidElement(e)&&![qv,Ld].some((r=>e.type===r))))),u.leadingVisual&&r.createElement(ht,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:u.caption?Wr("fontSizes.4"):Wr("fontSizes.2"),minHeight:u.caption?Wr("fontSizes.4"):Wr("fontSizes.2"),fill:"currentColor"}},ml:2},u.leadingVisual),r.createElement(ht,{sx:{"> *":{paddingLeft:"var(--stack-gap-condensed)"},"> label":{fontWeight:"var(--base-text-weight-normal)"}}},u.label,u.caption)):r.createElement(ht,{ref:c,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l},className:i},u.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)&&!b.some((r=>e.type===r)))),u.validation?r.createElement($s,{show:!0},u.validation):null,u.caption))}));var oh=Object.assign(rh,{Caption:Kf,Label:Xf,LeadingVisual:Qf,Validation:eh});function th(){return th=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},th.apply(null,arguments)}const ah=({children:e,disabled:o,onChange:t,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===oh)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===qv)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=Uo(l);return r.createElement(Zv.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(wd,th({disabled:o},a),e))};ah.displayName="CheckboxGroup";var nh=Object.assign(ah,{Caption:Js,Label:gd,Validation:pd});function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},lh.apply(null,arguments)}const ih=m(r.forwardRef(((e,o)=>{const{icon:t,...a}=e;return r.createElement(t,lh({},a,{ref:o}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>ft({sx:{color:e,...r}})));const ch={small:56,medium:96,large:128},sh=m.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"),Wr("colors.canvas.default"),Wr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:ch[r];return{width:o,height:o}}),ft),dh=m(ih).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);dh.displayName="CircleBadge.Icon";var gh=Object.assign(sh,{Icon:dh}),uh="prc_Details_XJobb";function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vh.apply(null,arguments)}const bh="primer_react_css_modules_ga",fh=yt(bh,"details",m.details.withConfig({displayName:"Details__StyledDetails",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],ft)),hh=r.forwardRef((({className:e,children:o,...n},l)=>{const c=bt(bh),s=r.useRef(null),d=function(...e){return t((r=>{for(const o of e)"function"==typeof o?o(r):o&&(o.current=r)}),e)}(l,s),[g,u]=i(!1);return a((()=>{const{current:e}=s;if(!e)return;const r=()=>{const r=e.querySelector("summary:not([data-default-summary])");u(!!r)};r();const o=new MutationObserver((()=>{r()}));return o.observe(e,{childList:!0,subtree:!0}),()=>{o.disconnect()}}),[]),r.createElement(fh,vh({className:Gr(e,{[uh]:c})},n,{ref:d}),!g&&r.createElement(mh.Summary,{"data-default-summary":!0},"See Details"),o)}));function ph({as:e,children:o,...t}){const a=null!=e?e:"summary";return r.createElement(a,vh({as:"summary"===a?null:"summary"},t),o)}hh.displayName="Details",ph.displayName="Summary",ph.displayName="Summary";const mh=Object.assign(hh,{Summary:ph});function yh(){return yh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yh.apply(null,arguments)}const xh=Te({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"}}}}),wh=m.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:",";}",";",";"],Wr("colors.fg.default"),Wr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Wr("radii.2")),(e=>e.full?"-1px":"0"),Wr("space.2"),xh,ft),Ch=r.forwardRef((function({as:e,variant:o="default",...t},a){return r.createElement(wh,yh({ref:a,as:e,variant:o},t))}));var kh="prc_Header_RoCS8",Bh="prc_HeaderItem_0wRcu",Eh="prc_HeaderLink_2Q6pd";function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Th.apply(null,arguments)}const Sh="primer_react_css_modules_staff",Nh=yt(Sh,"header",m.header.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;overflow:auto;",";"],Wr("space.3"),Wr("fontSizes.1"),Wr("lineHeights.default"),Wr("colors.header.text"),Wr("colors.header.bg"),ft)),_h=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(Sh);return r.createElement(Nh,Th({ref:a,className:Gr(o,{[kh]:n})},t),e)}));_h.displayName="Header";const Ih=yt(Sh,"div",m.div.withConfig({displayName:"Header__StyledHeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Wr("space.3"),(({full:e})=>e&&C(["flex:auto;"])),ft)),Mh=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(Sh);return r.createElement(Ih,Th({ref:a,className:Gr(o,n&&Bh),"data-full":t.full},t),e)}));Mh.displayName="Header.Item";const Ah=yt(Sh,"a",m.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__StyledHeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Wr("fontWeights.bold"),Wr("colors.header.logo"),Wr("colors.header.text"),ft)),Lh=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(Sh);return r.createElement(Ah,Th({ref:a,className:Gr(o,n&&Eh)},t),e)}));Lh.displayName="Header.Link";var Oh=Object.assign(_h,{Link:Lh,Item:Mh}),Rh="prc_Label_-LG6X";function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jh.apply(null,arguments)}const zh=r.forwardRef((function({as:e,size:o="small",variant:t="default",className:a,...n},l){const i=e||"span";return n.sx?r.createElement(ht,jh({as:i,className:Gr(a,Rh),"data-size":o,"data-variant":t,ref:l},n)):r.createElement(i,jh({className:Gr(a,Rh),"data-size":o,"data-variant":t},n))}));function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ph.apply(null,arguments)}const Dh=m.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;}&[data-list]{padding-inline-start:0;margin-block-start:0;margin-block-end:0;list-style-type:none;}",";"],Wr("space.1"),ft),Hh=m.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;}"]),Vh=({collapseButtonRef:e,collapseInlineExpandedChildren:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l})=>n?r.createElement(An,{ref:e,onClick:o,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(An,{ref:t,variant:"invisible",size:"small",onClick:l},r.createElement(Bl,null,"Show +",a.length," more"),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,Fh=({children:e,closeOverflowOverlay:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c})=>a.length?r.createElement(_g,{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(An,Ph({variant:"invisible",size:"small"},e,{ref:t}),r.createElement(Bl,null,"Show +",a.length," more"),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(ql,{onClick:o,icon:Hc,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,Wh=({children:e,visibleChildCount:o,overflowStyle:t="overlay",sx:a,as:n="ul"})=>{const l=r.useRef(null),i=r.useRef(null),c=r.useRef(void 0),[s,d]=r.useState({}),[g,u]=r.useState(!1),[v,b]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:f}=ct(),h=parseInt(Wr("space.2")(f),10),p=Object.keys(s).filter((e=>!s[e])),m=p.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)})(v,l,h):void 0,y=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===v.width&&r.right===v.right||b(r),y.current=e}}),[v]),x=r.useCallback((e=>{var r;const o=(null===(r=l.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)}d(t)}),[]),w=r.useCallback((()=>u(!0)),[u]),C=r.useCallback((()=>{u(!1)}),[u]),k=r.useCallback((()=>{u(!1),o&&"number"==typeof o&&x(o),setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),10)}),[y,x,o]),B=r.useCallback((()=>{d({}),u(!0)}),[d,u]);r.useEffect((()=>{if(o&&!g){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)}d((e=>({...e,...r})))}),{root:l.current,rootMargin:`0px -${v.width}px 0px 0px`,threshold:1});for(const o of(null===(e=l.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}x(o)}}),[v,o,x,g]),r.useEffect((()=>{"overlay"!==t&&p.length&&(c.current=parseInt(p[0],10))}),[p,t,g]),r.useEffect((()=>{if("overlay"===t)return;const e=document.querySelector(`[data-index="${c.current}"]`),r=e?fo(e):null;var o;g&&(r?r.focus():null===(o=i.current)||void 0===o||o.focus())}),[t,g]);const E="ul"===n||"ol"===n,T=E?"li":r.Fragment;return o?r.createElement(Dh,{ref:l,"data-overflow":"inline"===t&&g?"inline":void 0,"data-list":E||void 0,sx:a,as:n},r.Children.map(e,((e,o)=>r.createElement(Hh,{"data-index":o,className:p.includes(o.toString())?"ItemWrapper--hidden":void 0,as:E?"li":"span",key:o},e))),r.createElement(T,null,"inline"===t?r.createElement(Vh,{collapseButtonRef:i,collapseInlineExpandedChildren:k,expandButtonRef:y,hiddenItemIds:p,isOverflowShown:g,showAllTokensInline:B,totalLength:r.Children.toArray(e).length}):r.createElement(Fh,{closeOverflowOverlay:C,expandButtonRef:y,hiddenItemIds:p,isOverflowShown:g,openOverflowOverlay:w,overlayPaddingPx:h,overlayWidth:m,totalLength:r.Children.toArray(e).length},e))):r.createElement(Dh,{"data-overflow":"inline","data-list":E||void 0,sx:a,as:n},E?r.Children.map(e,((e,o)=>r.createElement("li",{key:o},e))):e)};function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$h.apply(null,arguments)}Wh.displayName="LabelGroup";const Zh=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),Kh=m.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(ft),Gh=r.forwardRef((({children:e,...o},t)=>r.createElement(Kh,$h({},o,{ref:t}),r.createElement(Od.Provider,{value:{container:"NavList"}},r.createElement(Cg,null,e)))));Gh.displayName="NavList";const qh=r.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=pt,...n},l)=>{const{depth:i}=r.useContext(Xh),c=r.Children.toArray(o).find((e=>p(e)&&e.type===Qh)),s=r.Children.toArray(o).filter((e=>!p(e)||e.type!==Qh&&e.type!==op));return!p(c)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),c&&p(c)?r.createElement(Yh,{subNav:c,depth:i,defaultOpen:t,sx:a},s):r.createElement(Cg.LinkItem,$h({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:oo(Zh(i),a)},n),o)}));qh.displayName="NavList.Item";const Uh=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function Yh({children:e,subNav:o,depth:t,defaultOpen:a,sx:n=pt}){var l;const i=ot(),c=ot(),[s,d]=r.useState(null!==(l=a||null)&&void 0!==l&&l),g=r.useRef(null),[u,v]=r.useState(!1);return Zo((()=>{if(g.current){g.current.querySelector("[aria-current]:not([aria-current=false])")&&(v(!0),d(!0))}}),[o,i]),r.createElement(Uh.Provider,{value:{buttonId:i,subNavId:c,isOpen:s}},r.createElement(ht,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},r.createElement(Cg.Item,{as:"button",id:i,"aria-expanded":s,"aria-controls":c,active:!s&&u,onClick:()=>d((e=>!e)),sx:oo({...Zh(t),fontWeight:u?"bold":null},n)},e,r.createElement(Cg.TrailingVisual,null,r.createElement(ih,{icon:Cc,sx:{transform:s?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:g},o)))}Yh.displayName="ItemWithSubNav";const Xh=r.createContext({depth:0}),Qh=({children:e,sx:o=pt})=>{const{buttonId:t,subNavId:a,isOpen:n}=r.useContext(Uh),{depth:l}=r.useContext(Xh);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(Xh.Provider,{value:{depth:l+1}},r.createElement(ht,{as:"ul",id:a,"aria-labelledby":t,sx:oo({padding:0,margin:0,display:n?"block":"none"},o)},e))};Qh.displayName="SubNav",Qh.displayName="NavList.SubNav";const Jh=Cg.LeadingVisual;Jh.displayName="NavList.LeadingVisual";const ep=Cg.TrailingVisual;ep.displayName="NavList.TrailingVisual";const rp=Cg.Divider;rp.displayName="NavList.Divider";const op=Cg.TrailingAction;op.displayName="NavList.TrailingAction";const tp={},ap=({title:e,children:o,sx:t=tp,...a})=>r.createElement(r.Fragment,null,r.createElement(Cg.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(Cg.Group,$h({},a,{sx:oo(t,{':has([data-component="NavList.GroupHeading"]):has([data-component="ActionList.GroupHeading"])':{'[data-component="ActionList.GroupHeading"]':{display:"none"}}})}),e?r.createElement(Cg.GroupHeading,{as:"h3","data-component":"ActionList.GroupHeading"},e):null,o));ap.displayName="NavList.Group";const np=({as:e="h3",sx:o=pt,...t})=>r.createElement(Cg.GroupHeading,$h({as:e,sx:oo({"> a {":{color:"var(--fgColor-default)",textDecoration:"inherit",":hover":{textDecoration:"underline"}}},o),"data-component":"NavList.GroupHeading"},t));np.displayName="GroupHeading";const lp=Object.assign(Gh,{Item:qh,SubNav:Qh,LeadingVisual:Jh,TrailingVisual:ep,TrailingAction:op,Divider:rp,Group:ap,GroupHeading:np});var ip="prc_Page_yoEQf",cp="prc_PaginationContainer_yNDPO",sp="prc_TablePaginationSteps_RRjtg";function dp(){return dp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},dp.apply(null,arguments)}const gp="primer_react_css_modules_team",up=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(Jl),vp=yt(gp,"a",m.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;}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-current]:focus-visible{outline:2px solid ",";outline-offset:-2px;box-shadow:inset 0 0 0 3px ",";}&[aria-disabled],&[aria-disabled]:hover{margin:0 2px;&:first-child{margin-right:6px;}}&[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 );}}"],Wr("colors.fg.default"),Wr("space.1"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.accent.emphasis"),Wr("colors.border.muted"),Wr("colors.accent.fg"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),Wr("colors.fg.onEmphasis"),Wr("colors.primer.fg.disabled"),Wr("space.1"),Wr("space.1")));function bp({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=bt(gp),g=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]),u=r.useMemo((()=>g.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,{"aria-disabled":"true",role:"link"}):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,{"aria-disabled":"true",role:"link"}):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(vp,dp({},t,{key:a,theme:e,className:Gr(d&&ip)}),l)}))),[g,n,s,e,d]);return u}const fp=yt(gp,"nav",m.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Jl).map((e=>`\n @media (${Jl[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 hp({theme:e,pageCount:o,currentPage:t,onPageChange:a=mp,hrefBuilder:n=pp,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...s}){const d=bp({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}),g=bt(gp);return r.createElement(fp,dp({className:Gr(g&&cp),"aria-label":"Pagination"},s,{theme:e}),r.createElement(ht,{display:"inline-block",theme:e,className:sp,"data-hidden-viewport-ranges":up(i).join(" ")},d))}function pp(e){return`#${e}`}function mp(){}function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yp.apply(null,arguments)}function xp(e){const o=r.useContext(k),{bg:t,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:s,...d}=e,{bg:g,backgroundColor:u,...v}=i||{},b=l||o,f=t||g||u,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:b};return r.createElement(ht,yp({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},d,{sx:{...v,"--custom-bg":Wr(`colors.${f}`)({theme:b}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${b.colors.canvas.default}, ${b.colors.canvas.default})`:void 0,position:"relative"}}),s,r.createElement(Pv,h))}hp.displayName="Pagination",xp.displayName="PointerBox";var wp="prc_Popover_v1ShS",Cp="prc_PopoverContent_nMzFS";function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},kp.apply(null,arguments)}const Bp="primer_react_css_modules_staff",Ep=m.div.attrs((({className:e,caret:r="top"})=>({className:Gr(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover__StyledPopover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),ft),Tp=yt(Bp,"div",Ep),Sp=r.forwardRef((function({className:e,caret:o="top",open:t,relative:a,...n},l){return bt(Bp)?r.createElement(Tp,kp({},n,{ref:l,"data-open":t?"":void 0,"data-relative":a?"":void 0,"data-caret":o,className:Gr(e,wp)})):r.createElement(Tp,kp({},n,{className:e,caret:o,open:t,relative:a}))}));Sp.displayName="Popover";const Np=yt(Bp,"div",m.div.withConfig({displayName:"Popover__StyledPopoverContent",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);}}",";"],Wr("colors.border.default"),Wr("radii.2"),Wr("space.4"),Wr("colors.canvas.overlay"),Wr("space.3"),Wr("space.2"),Wr("colors.border.default"),Wr("space.2"),Wr("colors.canvas.overlay"),Ep,Ep,Ep,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),Ep,Ep,Ep,Ep,Wr("space.4"),Wr("space.4"),Ep,Ep,Ep,Ep,Ep,Ep,Wr("space.2"),Wr("space.2"),Ep,Ep,Ep,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),Ep,Ep,Ep,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),Ep,Ep,Wr("space.4"),Ep,Ep,Wr("space.3"),Wr("space.3"),ft)),_p=({className:e,...o})=>bt(Bp)?r.createElement(Np,kp({},o,{className:Gr(e,Cp)})):r.createElement(Np,kp({},o,{className:e}));_p.displayName="PopoverContent",_p.displayName="Popover.Content";var Ip=Object.assign(Sp,{Content:_p}),Mp="prc_ProgressBarItem_stL6O",Ap="prc_ProgressBarContainer_E-z8S";function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Lp.apply(null,arguments)}const Op=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Rp="primer_react_css_modules_staff",jp=yt(Rp,"span",m.span.withConfig({displayName:"ProgressBar__ProgressItem",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),(e=>Wr(`colors.${e.bg||"success.emphasis"}`)),Op,ft)),zp={small:"5px",large:"10px",default:"8px"},Pp=yt(Rp,"span",m.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";gap:2px;"," ",";"],(e=>e.inline?"inline-flex":"flex"),Wr("colors.border.default"),Wr("radii.1"),(e=>zp[e.barSize||"default"]),Ie,ft)),Dp=u((({progress:e,"aria-label":o,"aria-valuenow":t,"aria-valuetext":a,className:n,...l},i)=>{const c="string"==typeof e?parseInt(e,10):e,s={"aria-valuenow":null!=t?t:void 0!==c&&c>=0?Math.round(c):0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":a},d=bt(Rp),g={},u=l.bg&&l.bg.split(".");return g["--progress-width"]=e?`${e}%`:"0%",g["--progress-bg"]=u&&`var(--bgColor-${u[0]}-${u[1]})`||"var(--bgColor-success-emphasis)",r.createElement(jp,Lp({className:Gr(n,{[Mp]:d})},l,{role:"progressbar","aria-label":o,ref:i,progress:e,style:d?g:void 0},s))}));Dp.displayName="ProgressBar.Item";const Hp=u((({animated:e,progress:o,bg:t="success.emphasis",barSize:a="default",children:n,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,className:s,...d},g)=>{if(n&&o)throw new Error("You should pass `progress` or children, not both.");const u=r.Children.toArray(n).length,v=bt(Rp),b=v?{"data-progress-display":d.inline?"inline":"block","data-progress-bar-size":a}:{barSize:a};return r.createElement(Pp,Lp({ref:g,className:Gr(s,{[Ap]:v})},b,d),u?n:r.createElement(Dp,{"data-animated":e,progress:o,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,bg:t}))}));Hp.displayName="ProgressBar";const Vp=Object.assign(Hp,{Item:Dp});var Fp,Wp=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},$p=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 Zp="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)}},Kp=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Gp={minimumIntegerDigits:2};class qp{constructor(e,r={}){Fp.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;Wp(this,Fp,{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 $p(this,Fp,"f")}formatToParts(e){const r=[],o=$p(this,Fp,"f"),t=o.style,a=o.locale;for(const[t,n]of Kp){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?Gp:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new Zp(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Fp=new WeakMap;const Up=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Yp=["year","month","week","day","hour","minute","second","millisecond"];class Xp{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 Xp(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(Up))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new Xp(...a):new Xp}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new Xp(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(Qp(o,Xp.from(e)).getTime()-o),a=Math.abs(Qp(o,Xp.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new qp(e,r).format(this)}}function Qp(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 Jp(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(),u=r.getMonth(),v=r.getDate();if(l>=27||t+a+l){const e=new Date(r);e.setDate(1),e.setMonth(u+a*o+1),e.setDate(0);const i=Math.max(0,v-e.getDate()),c=new Date(r);c.setFullYear(g+t*o),c.setDate(v-i),c.setMonth(u+a*o),c.setDate(v-i+l*o);const s=c.getFullYear()-r.getFullYear(),d=c.getMonth()-r.getMonth(),b=Math.abs(Math.round((Number(c)-Number(r))/864e5))+i,f=Math.abs(12*s+d);b<27?(l>=6?(n+=Math.round(l/7),l=0):l=b,a=t=0):f<11?(a=f,t=0):(a=0,t=s*o),(a||t)&&(l=0)}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 Xp(t*o,a*o,n*o,l*o,i*o,c*o,s*o,d*o)}var em,rm,om,tm,am,nm,lm,im,cm,sm,dm,gm=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)},um=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 vm=globalThis.HTMLElement||null,bm=new Xp,fm=new Xp(0,0,0,0,0,1);class hm 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 pm(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 mm=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=pm(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,pm(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class ym extends vm{constructor(){super(...arguments),em.add(this),rm.set(this,!1),om.set(this,!1),am.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),dm.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","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return gm(this,dm,"f")}set onRelativeTimeUpdated(e){gm(this,dm,"f")&&this.removeEventListener("relative-time-updated",gm(this,dm,"f")),um(this,dm,"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,Up.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 Yp.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 noTitle(){return this.hasAttribute("no-title")}set noTitle(e){this.toggleAttribute("no-title",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(){mm.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&um(this,rm,null!==o&&(this.date&&gm(this,em,"m",nm).call(this,this.date))!==o,"f"),gm(this,om,"f")||"title"===e&&gm(this,rm,"f")||um(this,om,(async()=>{await Promise.resolve(),this.update(),um(this,om,!1,"f")})(),"f"))}update(){const e=gm(this,am,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(gm(this,am,"f").textContent=e);const a=Date.now();gm(this,rm,"f")||(o=gm(this,em,"m",nm).call(this,t)||"",o&&!this.noTitle&&this.setAttribute("title",o));const n=function(e,r="second",o=Date.now()){const t=e.getTime()-o;if(0===t)return new Xp;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),u=Yp.indexOf(r)||Yp.length;return new Xp(u>=0?g*a:0,u>=1?(d-12*g)*a:0,0,u>=3?(s-30*d)*a:0,u>=4?(c-24*s)*a:0,u>=5?(i-60*c)*a:0,u>=6?(l-60*i)*a:0,u>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=gm(this,em,"m",lm).call(this,n);let i=e;i="duration"===l?gm(this,em,"m",im).call(this,n):"relative"===l?gm(this,em,"m",cm).call(this,n):gm(this,em,"m",sm).call(this,t),i?gm(this,am,"f").textContent=i:this.shadowRoot===gm(this,am,"f")&&this.textContent&&(gm(this,am,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new hm(e,i,r,o)),"relative"===l||"duration"===l?mm.observe(this):mm.unobserve(this)}}rm=new WeakMap,om=new WeakMap,am=new WeakMap,dm=new WeakMap,em=new WeakSet,tm=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},nm=function(e){return new Intl.DateTimeFormat(gm(this,em,"a",tm),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},lm=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===Xp.compare(e,this.threshold))return"relative"}return"datetime"},im=function(e){const r=gm(this,em,"a",tm),o=this.format,t=this.formatStyle,a=this.tense;let n=bm;"micro"===o?(e=Jp(e),n=fm,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=fm)):("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})},cm=function(e){const r=new Intl.RelativeTimeFormat(gm(this,em,"a",tm),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=bm),"past"===o&&-1!==e.sign&&(e=bm);const[t,a]=function(e,r){const o=Jp(e,r);if(o.blank)return[0,"second"];for(const e of Yp){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,"millisecond"===this.precision?"second":this.precision):r.format(t,a)},sm=function(e){const r=new Intl.DateTimeFormat(gm(this,em,"a",tm),{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 xm="undefined"!=typeof globalThis?globalThis:window;try{xm.RelativeTimeElement=ym.define()}catch(Ps){if(!(xm.DOMException&&Ps instanceof DOMException&&"NotSupportedError"===Ps.name||Ps instanceof ReferenceError))throw Ps}function wm(){return wm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},wm.apply(null,arguments)}const Cm=Vs(ym,"relative-time"),km={month:"short",day:"numeric",year:"numeric"};function Bm({date:e,datetime:o,children:t,noTitle:a,...n}){var l;return o&&(e=new Date(o)),r.createElement(Cm,wm({},n,{date:e,"no-title":a?"":void 0}),t||(null===(l=e)||void 0===l?void 0:l.toLocaleDateString("en",km))||"")}Bm.displayName="RelativeTime";const Em="primer_react_css_modules_team",Tm={":first-child":{marginLeft:"-1px"},":last-child":{marginRight:"-1px"}},Sm={marginRight:"1px",":after":{backgroundColor:"var(--separator-color)",content:'""',position:"absolute",right:"-2px",top:2,bottom:2,width:"1px"}},Nm=e=>({"--segmented-control-button-inner-padding":"12px","--segmented-control-button-bg-inset":"4px","--segmented-control-outer-radius":Wr("radii.2")(e),backgroundColor:"transparent",borderColor:"transparent",borderRadius:"var(--segmented-control-outer-radius)",borderWidth:0,color:"currentColor",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",fontWeight:null!=e&&e.selected?"bold":"normal",padding:null!=e&&e.selected?0:"var(--segmented-control-button-bg-inset)",height:"100%",width:"100%",".segmentedControl-content":{alignItems:"center",backgroundColor:null!=e&&e.selected?"segmentedControl.button.bg":"transparent",borderColor:null!=e&&e.selected?"segmentedControl.button.selected.border":"transparent",borderStyle:"solid",borderWidth:1,borderRadius:null!=e&&e.selected?"var(--segmented-control-outer-radius)":"calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2)",display:"flex",height:"100%",justifyContent:"center",paddingLeft:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))",paddingRight:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))"},svg:{fill:"fg.muted"},":hover .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.hover.bg"},":active .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.active.bg"},":focus:focus-visible:not(:last-child):after":{width:0},".segmentedControl-text":{":after":{content:`"${null==e?void 0:e.children}"`,display:"block",fontWeight:"bold",height:0,overflow:"hidden",pointerEvents:"none",userSelect:"none",visibility:"hidden"}},"@media (pointer: coarse)":{":before":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}}),_m=()=>({display:"block",position:"relative",flexGrow:1,marginTop:"-1px",marginBottom:"-1px",":not(:last-child)":Sm,":focus-within:has(:focus-visible)":{"--separator-color":"transparent"},...Tm});var Im="prc_SegmentedControl_e7570",Mm="prc_Item_7Aq6h",Am="prc_Button_ojWXD",Lm="prc_IconButton_O80Eh",Om="prc_Content_gnQ4n",Rm="prc_Text_c5gSh";function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jm.apply(null,arguments)}const zm=yt(Em,"button",m.button.withConfig({displayName:"SegmentedControlButton__SegmentedControlButtonStyled",componentId:"sc-8lkgxl-0"})(["",";",";"],Sd("-1px"),ft)),Pm=({children:e,leadingIcon:o,selected:t,sx:a=pt,className:n,...l})=>{const i=bt(Em),c=i?a:oo(_m(),a);return r.createElement(ht,{as:"li",sx:c,className:Gr(i&&Mm),"data-selected":t||void 0},r.createElement(zm,jm({"aria-current":t,sx:i?void 0:Nm({selected:t,children:e}),className:Gr(i&&Am,n),type:"button"},l),r.createElement("span",{className:Gr(i?Om:"segmentedControl-content")},o&&r.createElement(ht,{mr:1},Sn.isElement(o)?o:r.createElement(o,null)),r.createElement(ht,{className:Gr(i?Rm:"segmentedControl-text"),"data-text":e},e))))};function Dm(){return Dm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dm.apply(null,arguments)}Pm.displayName="SegmentedControlButton";const Hm=yt(Em,"button",m.button.withConfig({displayName:"SegmentedControlIconButton__SegmentedControlIconButtonStyled",componentId:"sc-oxh6a9-0"})(["",";",";"],Sd("-1px"),ft)),Vm=({"aria-label":e,icon:o,selected:t,sx:a=pt,className:n,...l})=>{const i=bt(Em),c=i?a:oo({width:"32px",..._m()},a);return r.createElement(ht,{as:"li",sx:c,className:Gr(i&&Mm,n),"data-selected":t||void 0},r.createElement(Hm,Dm({"aria-label":e,"aria-current":t,sx:i?void 0:Nm({selected:t}),className:Gr(i&&Am,i&&Lm)},l),r.createElement("span",{className:Gr(i?Om:"segmentedControl-content")},Sn.isElement(o)?o:r.createElement(o,null))))};function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Fm.apply(null,arguments)}Vm.displayName="SegmentedControlIconButton";const Wm=yt(Em,"ul",m.ul.withConfig({displayName:"SegmentedControl__SegmentedControlList",componentId:"sc-1rzig82-0"})(["",";"],ft)),$m=({"aria-label":e,"aria-labelledby":o,children:t,fullWidth:a,onChange:n,size:c,sx:s=pt,variant:d="default",className:g,...u})=>{const v=l(null),{theme:b}=ct(),f=void 0===n||r.Children.toArray(t).some((e=>r.isValidElement(e)&&void 0!==e.props.defaultSelected)),h=ri(d,"default"),p=ri(a,!1),m=r.Children.toArray(t).map((e=>r.isValidElement(e)&&(e.props.defaultSelected||e.props.selected))),y=m.some((e=>e))?m.indexOf(!0):0,[x,w]=i(y),C=f?x:y,k=r.isValidElement(r.Children.toArray(t)[C])?r.Children.toArray(t)[C]:void 0,B=e=>{if(r.isValidElement(e)&&e.type===Pm&&e.props.leadingIcon){if(Sn.isElement(e.props.leadingIcon))return e.props.leadingIcon;{const o=e.props.leadingIcon;return r.createElement(o,null)}}if(r.isValidElement(e)&&e.type===Vm){if(!Sn.isElement(e.props.icon)){const o=e.props.icon;return r.createElement(o,null)}e.props.icon}return null},E=e=>r.isValidElement(e)&&e.type===Pm?e.props.children:r.isValidElement(e)?e.props["aria-label"]:null,T=bt(Em),S=T?s:oo({backgroundColor:"segmentedControl.bg",borderRadius:2,border:"1px solid",borderColor:"var(--controlTrack-borderColor-rest, transparent)",display:(N={isFullWidth:p,size:c}).isFullWidth?"flex":"inline-flex",fontSize:"small"===N.size?0:1,height:"small"===N.size?"28px":"32px",margin:0,padding:0,width:N.isFullWidth?"100%":void 0},s);var N;return e||o||console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies"),"dropdown"===h?r.createElement(r.Fragment,null,r.createElement(zg,null,r.createElement(zg.Button,{"aria-label":e&&`${E(k)}, ${e}`,leadingVisual:B(k)},E(k)),r.createElement(zg.Overlay,{"aria-labelledby":o},r.createElement(Cg,{selectionVariant:"single"},r.Children.map(t,((e,o)=>{const t=B(e);return r.isValidElement(e)?r.createElement(Cg.Item,{key:`segmented-control-action-btn-${o}`,selected:o===C,onSelect:r=>{f&&w(o),n&&n(o),e.props.onClick&&e.props.onClick(r)}},t," ",E(e)):null})))))):r.createElement(Wm,Fm({sx:S,"aria-label":e,"aria-labelledby":o,ref:v,className:Gr(T&&Im,g),"data-full-width":p||void 0,"data-size":c},u),r.Children.map(t,((e,o)=>{if(!r.isValidElement(e))return null;const t={onClick:n?r=>{n(o),f&&w(o),e.props.onClick&&e.props.onClick(r)}:r=>{e.props.onClick&&e.props.onClick(r),f&&w(o)},selected:o===C,sx:{"--separator-color":o===C||o===C-1?"transparent":null==b?void 0:b.colors.border.default,...e.props.sx}};if("hideLabels"===h&&r.isValidElement(e)&&e.type===Pm){const{"aria-label":o,leadingIcon:a,children:n,...l}=e.props,{sx:i,...c}=t;if(a)return r.createElement(Vm,Fm({"aria-label":o||n,icon:a,sx:{...i,width:p?"100%":"32px"}},c,l));console.warn("A `leadingIcon` prop is required when hiding visible labels")}return r.cloneElement(e,t)})))};$m.displayName="SegmentedControl";const Zm=Object.assign($m,{Button:Pm,IconButton:Vm});function Km({variant:e="normal",className:o,bordered:t,children:a,"aria-label":n}){const l=Gr(o,`variant-${"lightweight"===e?"lightweight":"normal"}`);return r.createElement(ht,{borderWidth:t?"1px":0,borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:l,"aria-label":n},a)}Km.displayName="SideNavBase";const Gm=m(Km).withConfig({displayName:"SideNav",componentId:"sc-11f1jdr-0"})(["background-color:",";"," ",";"],Wr("colors.canvas.subtle"),(e=>e.bordered&&C(["& > &{border-left:0;border-right:0;border-bottom:0;}"])),ft),qm=C(["background-color:",";text-decoration:none;"],Wr("colors.neutral.subtle")),Um=C(["color:",";text-decoration:none;"],Wr("colors.fg.default")),Ym=m(mg).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{})).withConfig({displayName:"SideNav__SideNavLink",componentId:"sc-11f1jdr-1"})(["position:relative;display:block;"," width:100%;text-align:left;font-size:",";& > ","{border-bottom:none;}",".variant-normal > &{color:",";padding:",";border:0;border-top:"," solid ",";&:first-child{border-top:0;border-top-right-radius:",";border-top-left-radius:",";}&:last-child{border-bottom-right-radius:",";border-bottom-left-radius:",";}&::before{position:absolute;top:0;bottom:0;left:0;z-index:1;width:3px;pointer-events:none;content:'';}&:hover{","}&:focus{"," outline:solid 2px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{background-color:",";&::before{background-color:",";}}}",".variant-lightweight > &{padding:"," 0;color:",";&:hover{","}&:focus{"," outline:solid 1px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{color:",";font-weight:",";}}",";"],(e=>"full"===e.variant&&C(["display:flex;align-items:center;justify-content:space-between;"])),Wr("fontSizes.1"),Gm,Gm,Wr("colors.fg.default"),Wr("space.3"),Wr("borderWidths.1"),Wr("colors.border.muted"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),qm,qm,Wr("colors.accent.fg"),Wr("colors.sidenav.selectedBg"),Wr("colors.primer.border.active"),Gm,Wr("space.1"),Wr("colors.accent.fg"),Um,Um,Wr("colors.accent.fg"),Wr("colors.fg.default"),Wr("fontWeights.semibold"),ft);Ym.displayName="SideNav.Link";var Xm=Object.assign(Gm,{Link:Ym});function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Qm.apply(null,arguments)}const Jm={issueOpened:Lc,pullOpened:Nc,issueClosed:Mc,issueClosedNotPlanned:Pc,pullClosed:_c,pullMerged:Tc,draft:Ic,issueDraft:Ac,pullQueued:Sc,unavailable:pc},ey={issueOpened:"Issue",pullOpened:"Pull request",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",pullClosed:"Pull request",pullMerged:"Pull request",draft:"Pull request",issueDraft:"Issue",pullQueued:"Pull request",unavailable:""},ry=Te({prop:"status",variants:{issueClosed:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},issueClosedNotPlanned:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},pullClosed:{backgroundColor:"closed.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-closed-emphasis, transparent)"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},pullQueued:{backgroundColor:"attention.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-attention-emphasis, transparent)"},issueOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},pullOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},unavailable:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"}}}),oy=Te({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),ty=m.span.withConfig({displayName:"StateLabel__StateLabelBase",componentId:"sc-qthdln-0"})(["display:inline-flex;align-items:center;font-weight:",";line-height:16px;color:",";text-align:center;border-radius:",";",";",";",";"],Wr("fontWeights.bold"),Wr("colors.canvas.default"),Wr("radii.3"),ry,oy,ft);function ay({children:e,status:o,variant:t="normal",...a}){const n="small"===t?{width:"1em"}:{};return r.createElement(ty,Qm({},a,{variant:t,status:o}),o&&r.createElement(ih,Qm({},n,{icon:Jm[o]||jc,"aria-label":ey[o],sx:{mr:1}})),e)}ay.displayName="StateLabel";var ny="prc_SubNav_rjui0",ly="prc_Body_Nw122",iy="prc_Actions_-IUp-",cy="prc_Links_5Qn65",sy="prc_Link_X843-";function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},dy.apply(null,arguments)}const gy="primer_react_css_modules_team",uy=yt(gy,"nav",m.nav.withConfig({displayName:"SubNav__StyledSubNav",componentId:"sc-1t692wx-0"})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:",";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}",";"],Wr("space.2"),ft)),vy=r.forwardRef((function({actions:e,className:o,children:t,label:a,...n},l){const i=bt(gy);return r.createElement(uy,dy({ref:l,className:Gr(o,"SubNav",{[ny]:i}),"aria-label":a},n),r.createElement("div",{className:Gr("SubNav-body",{[ly]:i})},t),e&&r.createElement("div",{className:Gr("SubNav-actions",{[iy]:i})},e))}));vy.displayName="SubNav";const by=yt(gy,"div",m.div.withConfig({displayName:"SubNav__StyledSubNavLinks",componentId:"sc-1t692wx-1"})(["display:flex;",";"],ft)),fy=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(gy);return r.createElement(by,dy({ref:a,className:Gr(o,n&&cy)},t),e)}));fy.displayName="SubNav.Links";const hy=yt(gy,"a",m.a.attrs((e=>({className:Gr("SubNav-item",e.selected&&"selected",e.className)}))).withConfig({displayName:"SubNav__StyledSubNavLink",componentId:"sc-1t692wx-2"})(["padding-left:",";padding-right:",";font-weight:",";font-size:",";line-height:20px;min-height:34px;color:",";text-align:center;text-decoration:none;border-top:1px solid ",";border-bottom:1px solid ",";border-right:1px solid ",";display:flex;align-items:center;&:first-of-type{border-top-left-radius:",";border-bottom-left-radius:",";border-left:1px solid ",";}&:last-of-type{border-top-right-radius:",";border-bottom-right-radius:",";}&:hover,&:focus{text-decoration:none;background-color:",";transition:background-color 0.2s ease;}&.selected{color:",";background-color:",";border-color:",";}",";"],Wr("space.3"),Wr("space.3"),Wr("fontWeights.semibold"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.canvas.subtle"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),ft)),py=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(gy);return r.createElement(hy,dy({ref:a,className:Gr(o,n&&sy),"data-selected":t.selected},t),e)}));py.displayName="SubNav.Link";var my=Object.assign(vy,{Link:py,Links:fy});function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yy.apply(null,arguments)}const xy="80ms",wy="cubic-bezier(0.5, 1, 0.89, 1)",Cy=Te({prop:"size",variants:{small:{height:"24px",width:"48px"}}}),ky=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"}));ky.displayName="CircleIcon";const By=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"}));By.displayName="LineIcon";const Ey=m.button.withConfig({displayName:"ToggleSwitch__SwitchButton",componentId:"sc-e6gszy-0"})(["vertical-align:middle;cursor:pointer;user-select:none;appearance:none;text-decoration:none;padding:0;transition-property:background-color,border-color;transition-duration:",";transition-timing-function:",";border-radius:",";border-style:solid;border-width:1px;display:block;height:32px;width:64px;position:relative;overflow:hidden;",";@media (pointer:coarse){&:before{content:'';position:absolute;left:0;right:0;transform:translateY(-50%);top:50%;min-height:44px;}}@media (prefers-reduced-motion){transition:none;*{transition:none;}}&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"," "," ",""],xy,wy,Wr("radii.2"),Sd("3px"),Wr("colors.switchTrack.hoverBg"),Wr("colors.switchTrack.activeBg"),(e=>e.disabled?C(["background-color:",";border-color:transparent;cursor:not-allowed;transition-property:none;"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["background-color:",";border-color:var(--control-checked-borderColor-rest,transparent);&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"],Wr("colors.switchTrack.checked.bg"),Wr("colors.switchTrack.checked.hoverBg"),Wr("colors.switchTrack.checked.activeBg")):C(["background-color:",";border-color:var(--controlTrack-borderColor-rest,transparent);&:active{background-color:",";}"],Wr("colors.switchTrack.bg"),Wr("colors.switchTrack.activeBg"))),ft,Cy),Ty=m.div.withConfig({displayName:"ToggleSwitch__ToggleKnob",componentId:"sc-e6gszy-1"})(["background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:calc("," - 1px);width:50%;position:absolute;top:0;bottom:0;transition-property:transform;transition-duration:",";transition-timing-function:",";transform:",";z-index:1;@media (prefers-reduced-motion){transition:none;}",""],Wr("colors.switchKnob.bg"),(e=>e.disabled?Wr("colors.switchTrack.disabledBg"):Wr("colors.switchKnob.border")),Wr("radii.2"),xy,wy,(e=>`translateX(${e.checked?"100%":"0px"})`),(e=>e.disabled?C(["border-color:",";"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["border-color:",";"],Wr("colors.switchKnob.checked.border")):void 0)),Sy={visibility:"hidden",height:0},Ny=r.forwardRef((function(e,o){const{"aria-labelledby":n,"aria-describedby":l,defaultChecked:i,disabled:c,loading:s,checked:d,onChange:g,onClick:u,size:v="medium",statusLabelPosition:b="start",sx:f,...h}=e,p=void 0!==d,[m,y]=Yo(d,g,Boolean(i)),x=!c&&!s,w=t((e=>{p||y(!m),u&&u(e)}),[u,p,m,y]);return a((()=>{g&&p&&g(Boolean(d))}),[g,d,p]),r.createElement(ht,yy({display:"inline-flex",alignItems:"center",flexDirection:"start"===b?"row":"row-reverse",sx:f},h),s?r.createElement(Dt,{size:"small"}):null,r.createElement(kl,{color:x?"fg.default":"fg.muted",fontSize:"small"===v?0:1,mx:2,"aria-hidden":"true",sx:{position:"relative",cursor:"pointer"},onClick:w},r.createElement(ht,{textAlign:"right",sx:m?null:Sy},"On"),r.createElement(ht,{textAlign:"right",sx:m?Sy:null},"Off")),r.createElement(Ey,{ref:o,onClick:w,"aria-labelledby":n,"aria-describedby":l,"aria-pressed":m,checked:m,size:v,disabled:!x},r.createElement(ht,{"aria-hidden":"true",display:"flex",alignItems:"center",width:"100%",height:"100%",overflow:"hidden"},r.createElement(ht,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.checked.fg":"switchTrack.checked.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"0":"-100%"})`,transitionProperty:"transform",transitionDuration:xy}},r.createElement(By,{size:v})),r.createElement(ht,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.fg":"switchTrack.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"100%":"0"})`,transitionProperty:"transform",transitionDuration:xy}},r.createElement(ky,{size:v}))),r.createElement(Ty,{"aria-hidden":"true",disabled:!x,checked:m})))}));var _y="prc_Timeline_iQjcc",Iy="prc_TimelineItem_Sd-t-",My="prc_TimelineBadge_BqMiN",Ay="prc_TimelineBadgeWrapper_75vYD",Ly="prc_TimelineBody_WWZY0",Oy="prc_TimelineBreak_dPnDJ";function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ry.apply(null,arguments)}const jy="primer_react_css_modules_staff",zy=yt(jy,"div",m.div.withConfig({displayName:"Timeline__ToggleTimeline",componentId:"sc-1nkzbnu-0"})(["display:flex;flex-direction:column;"," ",";"],(e=>e.clipSidebar&&C([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])),ft)),Py=r.forwardRef((function({clipSidebar:e,className:o,...t},a){return bt(jy)?r.createElement(zy,Ry({},t,{className:Gr(o,_y),ref:a,"data-clip-sidebar":e?"":void 0})):r.createElement(zy,Ry({},t,{className:o,ref:a,clipSidebar:e}))}));Py.displayName="Timeline";const Dy=yt(jy,"div",m.div.attrs((e=>({className:Gr("Timeline-Item",e.className)}))).withConfig({displayName:"Timeline__ToggleTimelineItem",componentId:"sc-1nkzbnu-1"})(["display:flex;position:relative;padding:"," 0;margin-left:",";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:",";}"," ",";"],Wr("space.3"),Wr("space.3"),Wr("colors.border.muted"),(e=>e.condensed&&C(["padding-top:",";padding-bottom:0;&:last-child{padding-bottom:",";}.TimelineItem-Badge{height:16px;margin-top:",";margin-bottom:",";color:",";background-color:",";border:0;}"],Wr("space.1"),Wr("space.3"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.canvas.default"))),ft)),Hy=r.forwardRef((function({condensed:e,className:o,...t},a){return bt(jy)?r.createElement(Dy,Ry({},t,{className:Gr(o,Iy),ref:a,"data-condensed":e?"":void 0})):r.createElement(Dy,Ry({},t,{className:o,ref:a,condensed:e}))}));Hy.displayName="TimelineItem";const Vy=({sx:e,className:o,...t})=>bt(jy)?e!==pt?r.createElement("div",{className:Ay},r.createElement(ht,Ry({},t,{sx:e,className:Gr(o,My)}))):r.createElement("div",{className:Ay},r.createElement("div",Ry({},t,{className:Gr(o,My)}))):r.createElement(ht,{position:"relative",zIndex:1},r.createElement(ht,{display:"flex",className:"TimelineItem-Badge",flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center",sx:e},t.children));Vy.displayName="TimelineBadge",Vy.displayName="Timeline.Badge";const Fy=yt(jy,"div",m.div.withConfig({displayName:"Timeline__ToggleTimelineBody",componentId:"sc-1nkzbnu-2"})(["min-width:0;max-width:100%;margin-top:",";color:",";flex:auto;font-size:",";",";"],Wr("space.1"),Wr("colors.fg.muted"),Wr("fontSizes.1"),ft)),Wy=r.forwardRef((function({className:e,...o},t){return bt(jy)?r.createElement(Fy,Ry({},o,{className:Gr(e,Ly),ref:t})):r.createElement(Fy,Ry({},o,{className:e,ref:t}))}));Wy.displayName="TimelineBody";const $y=yt(jy,"div",m.div.withConfig({displayName:"Timeline__ToggleTimelineBreak",componentId:"sc-1nkzbnu-3"})(["position:relative;z-index:1;height:24px;margin:0;margin-bottom:-",";margin-left:0;background-color:",";border:0;border-top:"," solid ",";",";"],Wr("space.3"),Wr("colors.canvas.default"),Wr("space.1"),Wr("colors.border.default"),ft)),Zy=r.forwardRef((function({className:e,...o},t){return bt(jy)?r.createElement($y,Ry({},o,{className:Gr(e,Oy),ref:t})):r.createElement($y,Ry({},o,{className:e,ref:t}))}));Zy.displayName="TimelineBreak";var Ky=Object.assign(Py,{Item:Hy,Badge:Vy,Body:Wy,Break:Zy});function Gy(e,r,o){return Math.min(Math.max(e,o),r)}class qy extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Uy=qy;function Yy(e){if("string"!=typeof e)throw new Uy(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let r=e.trim();r=ax.test(e)?function(e){const r=e.toLowerCase().trim(),o=Qy[function(e){let r=5381,o=e.length;for(;o;)r=33*r^e.charCodeAt(--o);return(r>>>0)%2341}(r)];if(!o)throw new Uy(e);return`#${o}`}(e):e;const o=ex.exec(r);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(Jy(e,2),16))),parseInt(Jy(e[3]||"f",2),16)/255]}const t=rx.exec(r);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=ox.exec(r);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=tx.exec(r);if(n){const[r,o,t,a]=Array.from(n).slice(1).map(parseFloat);if(Gy(0,100,o)!==o)throw new Uy(e);if(Gy(0,100,t)!==t)throw new Uy(e);return[...lx(r,o,t),Number.isNaN(a)?1:a]}throw new Uy(e)}const Xy=e=>parseInt(e.replace(/_/g,""),36),Qy="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,r)=>{const o=Xy(r.substring(0,3)),t=Xy(r.substring(3)).toString(16);let a="";for(let e=0;e<6-t.length;e++)a+="0";return e[o]=`${a}${t}`,e}),{});const Jy=(e,r)=>Array.from(Array(r)).map((()=>e)).join(""),ex=new RegExp(`^#${Jy("([a-f0-9])",3)}([a-f0-9])?$`,"i"),rx=new RegExp(`^#${Jy("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ox=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Jy(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),tx=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ax=/^[a-z]+$/i,nx=e=>Math.round(255*e),lx=(e,r,o)=>{let t=o/100;if(0===r)return[t,t,t].map(nx);const a=(e%360+360)%360/60,n=(1-Math.abs(2*t-1))*(r/100),l=n*(1-Math.abs(a%2-1));let i=0,c=0,s=0;a>=0&&a<1?(i=n,c=l):a>=1&&a<2?(i=l,c=n):a>=2&&a<3?(c=n,s=l):a>=3&&a<4?(c=l,s=n):a>=4&&a<5?(i=l,s=n):a>=5&&a<6&&(i=n,s=l);const d=t-n/2;return[i+d,c+d,s+d].map(nx)};var ix="prc_IssueLabel_ZuoEW",cx="prc_RemoveButton_H4Dmg";function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},sx.apply(null,arguments)}const dx={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},gx={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},ux=u(((e,t)=>{const a=bt("primer_react_css_modules_team"),{as:n,fillColor:l="#999",onRemove:i,id:c,isSelected:s,text:d,size:g=uf,hideRemoveButton:u,href:v,onClick:b,className:f,...h}=e,p={as:n,href:v,onClick:b},{resolvedColorScheme:m}=ct(),y=vf(e)&&Boolean(i)&&!u,x=e=>{e.stopPropagation(),i&&i()},w=o((()=>{const[r,o,t]=Yy(l),[a,n,c]=function(e){const[r,o,t,a]=Yy(e).map(((e,r)=>3===r?e:e/255)),n=Math.max(r,o,t),l=Math.min(r,o,t),i=(n+l)/2;if(n===l)return[0,0,i,a];const c=n-l;return[60*(r===n?(o-t)/c+(o<t?6:0):o===n?(t-r)/c+2:(r-o)/c+4),i>.5?c/(2-n-l):c/(n+l),i,a]}(l),d=!(null!=m&&m.startsWith("dark"));return{"--label-r":String(r),"--label-g":String(o),"--label-b":String(t),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*n)),"--label-l":String(Math.round(100*c)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:u||!i?void 0:0,position:"relative",...d?dx:gx,...s?{background:d?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":gx.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+(d?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{},...vf(e)?{"&:hover":{...d?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), linear-gradient(rgb(var(--label-r),var(--label-g),var(--label-b)), rgb(var(--label-r),var(--label-g),var(--label-b)))"}:{background:"hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);"},boxShadow:"shadow.medium"}}:{}}}),[l,m,u,i,s,e]);return a?r.createElement(pf,sx({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,className:Gr(ix,f),text:d,size:g,style:w,"data-has-remove-button":!u&&!!i},y?{}:p,h,{ref:t}),r.createElement(_f,y?p:{},d),!u&&i?r.createElement(Bf,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:vf(e),"data-has-multiple-action-targets":y,className:cx}):null):r.createElement(pf,sx({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,text:d,size:g,sx:w},y?{}:p,h,{ref:t}),r.createElement(_f,y?p:{},d),!u&&i?r.createElement(Bf,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:vf(e),sx:y?{position:"relative",zIndex:"1"}:{}}):null)}));ux.displayName="IssueLabelToken";var vx="prc_AvatarContainer_dBasr",bx="prc_Avatar_A1uRI",fx="prc_Token_8GtFN";function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},hx.apply(null,arguments)}const px="primer_react_css_modules_team",mx=yt(px,"span",m.span.withConfig({displayName:"AvatarToken__AvatarContainer",componentId:"sc-62sih1-0"})(["--spacing:calc("," * 2);display:block;height:",";width:",";"],Wr("space.1"),(e=>`calc(${gf[e.avatarSize]} - var(--spacing))`),(e=>`calc(${gf[e.avatarSize]} - var(--spacing))`))),yx=u((({avatarSrc:e,id:o,size:t=uf,className:a,...n},l)=>bt(px)?r.createElement(Lf,hx({leadingVisual:()=>r.createElement(mx,{avatarSize:t,className:vx,"data-size":t},r.createElement(Tu,{src:e,size:parseInt(gf[t],10),className:bx})),size:t,id:null==o?void 0:o.toString(),className:Gr(fx,a)},n,{ref:l})):r.createElement(Lf,hx({leadingVisual:()=>r.createElement(mx,{avatarSize:t},r.createElement(Tu,{src:e,size:parseInt(gf[t],10),sx:{width:"100%",height:"100%"}})),size:t,id:null==o?void 0:o.toString(),sx:{paddingLeft:Wr("space.1")}},n,{ref:l}))));yx.displayName="AvatarToken";var xx={TreeViewRootUlStyles:"prc_TreeViewRootUlStyles_eZtxW",TreeViewItem:"prc_TreeViewItem_ShJr0","focus-visible":"prc_focus-visible_VRVfB",TreeViewItemContainer:"prc_TreeViewItemContainer_-2Rkn",TreeViewItemSkeleton:"prc_TreeViewItemSkeleton_fqk59",TreeViewItemToggle:"prc_TreeViewItemToggle_gWUdE",TreeViewItemToggleHover:"prc_TreeViewItemToggleHover_nEgP-",TreeViewItemToggleEnd:"prc_TreeViewItemToggleEnd_t-AEB",TreeViewItemContent:"prc_TreeViewItemContent_f0r0b",TreeViewItemContentText:"prc_TreeViewItemContentText_smZM-",TreeViewItemVisual:"prc_TreeViewItemVisual_dRlGq",TreeViewItemLeadingAction:"prc_TreeViewItemLeadingAction_VXx8I",TreeViewItemLevelLine:"prc_TreeViewItemLevelLine_KPSSL",TreeViewDirectoryIcon:"prc_TreeViewDirectoryIcon_PHbeP",TreeViewVisuallyHidden:"prc_TreeViewVisuallyHidden_4-mPv",TreeViewSkeletonItemContainerStyle:"prc_TreeViewSkeletonItemContainerStyle_EB7p0",TreeItemSkeletonTextStyles:"prc_TreeItemSkeletonTextStyles_wnBY9"};function wx(e){var r,o,t;const a=e.getAttribute("aria-label"),n=e.getAttribute("aria-labelledby");return a||(n?null!==(r=null===(o=document.getElementById(n))||void 0===o?void 0:o.textContent)&&void 0!==r?r:"":null!==(t=e.textContent)&&void 0!==t?t:"")}function Cx({containerRef:e,mouseDownRef:r}){Vc({containerRef:e,bindKeys:Ro.ArrowVertical|Ro.ArrowHorizontal|Ro.HomeAndEnd|Ro.Backspace|Ro.PageUpDown,preventScroll:!0,getNextFocusable:(e,r,o)=>{var t;if(r instanceof HTMLElement){try{if(r.closest("dialog:modal"))return}catch{}return null!==(t=function(e,r){switch(`${function(e){if("treeitem"!==e.getAttribute("role"))throw new Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e)} ${r.key}`){case"open ArrowRight":return Bx(e);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return Ex(e)}switch(r.key){case"ArrowUp":return kx(e,"previous");case"ArrowDown":return kx(e,"next");case"Backspace":return Ex(e);case"Home":return function(e){const r=e.closest("[role=tree]"),o=null==r?void 0:r.querySelector("[role=treeitem]");return o instanceof HTMLElement?o:void 0}(e);case"End":return function(e){const r=e.closest("[role=tree]"),o=Array.from((null==r?void 0:r.querySelectorAll("[role=treeitem]"))||[]);if(0===o.length)return;let t=o.length-1,a=o[t];for(;t>0&&a instanceof HTMLElement&&null!==(n=a.parentElement)&&void 0!==n&&n.closest("[role=treeitem][aria-expanded=false]");){var n;t-=1,a=o[t]}return a instanceof HTMLElement?a:void 0}(e);case"PageUp":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=Sx(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.max(0,(n-1)*a+l)]}(e);case"PageDown":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=Sx(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.min(o.length-1,(n+1)*a+l)]}(e)}}(r,o))&&void 0!==t?t:r}},focusInStrategy:()=>{var o,t,a;if(r.current)return;const n=null===(o=e.current)||void 0===o?void 0:o.querySelector("[aria-current]"),l=null===(t=e.current)||void 0===t?void 0:t.querySelector('[role="treeitem"]');return n instanceof HTMLElement?n:document.activeElement instanceof HTMLElement&&null!==(a=e.current)&&void 0!==a&&a.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:l instanceof HTMLElement?l:void 0}})}function kx(e,r){const o=e.closest("[role=tree]");if(!o)return;const t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,(e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let a=t.firstChild();for(;a!==e;)a=t.nextNode();let n="next"===r?t.nextNode():t.previousNode();for(;n instanceof HTMLElement&&null!==(l=n.parentElement)&&void 0!==l&&l.closest("[role=treeitem][aria-expanded=false]");){var l;n="next"===r?t.nextNode():t.previousNode()}return n instanceof HTMLElement?n:void 0}function Bx(e){const r=e.querySelector("[role=treeitem]");return r instanceof HTMLElement?r:void 0}function Ex(e){const r=e.closest("[role=group]"),o=null==r?void 0:r.closest("[role=treeitem]");return o instanceof HTMLElement?o:void 0}const Tx={height:32};function Sx(e,r){var o,t;const a=di(e),{height:n}=null!==(o=null==r?void 0:r.getBoundingClientRect())&&void 0!==o?o:Tx,l=null!==(t=null==a?void 0:a.clientHeight)&&void 0!==t?t:window.innerHeight;return Math.floor(l/n)}var Nx="prc_SkeletonText_o0dUS";function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_x.apply(null,arguments)}const Ix={'&[data-component="SkeletonText"]':{"--font-size":"var(--text-body-size-medium, 0.875rem)","--line-height":"var(--text-body-lineHeight-medium, 1.4285)","--leading":"calc(var(--font-size) * var(--line-height) - var(--font-size))",borderRadius:"var(--borderRadius-small, 0.1875rem)",height:"var(--font-size)",marginBlock:"calc(var(--leading) / 2)"},'&[data-in-multiline="true"]':{marginBlockEnd:"calc(var(--leading) * 2)"},'&[data-in-multiline="true"]:last-child':{maxWidth:"65%",minWidth:"50px",marginBottom:0},"@supports (margin-block: mod(1px, 1px))":{'&[data-component="SkeletonText"]':{"--leading":"mod(var(--font-size) * var(--line-height), var(--font-size))"}},'&[data-text-skeleton-size="display"], &[data-text-skeleton-size="titleLarge"]':{borderRadius:"var(--borderRadius-medium, 0.375rem)"},'&[data-text-skeleton-size="display"]':{"--font-size":"var(--text-display-size, 2.5rem)","--line-height":"var(--text-display-lineHeight, 1.4)"},'&[data-text-skeleton-size="titleLarge"]':{"--font-size":"var(--text-title-size-large, 2.5rem)","--line-height":"var(--text-title-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="titleMedium"]':{"--font-size":"var(--text-title-size-medium, 1.25rem)","--line-height":"var(--text-title-lineHeight-medium, 1.6)"},'&[data-text-skeleton-size="titleSmall"]':{"--font-size":"var(--text-title-size-small, 1rem)","--line-height":"var(--text-title-lineHeight-small, 1.5)"},'&[data-text-skeleton-size="subtitle"]':{"--font-size":"var(--text-subtitle-size, 1.25rem)","--line-height":"var(--text-subtitle-lineHeight, 1.6)"},'&[data-text-skeleton-size="bodyLarge"]':{"--font-size":"var(--text-body-size-large, 1rem)","--line-height":"var(--text-body-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="bodySmall"]':{"--font-size":"var(--text-body-size-small, 0.75rem)","--line-height":"var(--text-body-lineHeight-small, 1.6666)"}},Mx=({lines:e=1,maxWidth:o,size:t="bodyMedium",className:a,style:n,...l})=>{const i=bt(ju);return e<2?r.createElement(Hu,_x({"data-component":"SkeletonText","data-text-skeleton-size":t,width:"100%",className:Gr(a,{[Nx]:i}),sx:i?{}:{maxWidth:o,...Ix},style:i?oo(n,{maxWidth:o}):n},l)):r.createElement(ht,{"data-component":"multilineContainer",sx:{maxWidth:o,paddingBlock:"0.1px"},style:i?oo(n,{maxWidth:o,paddingBlock:"0.1px"}):n},Array.from({length:e},((e,o)=>r.createElement(Hu,_x({key:o,"data-component":"SkeletonText","data-in-multiline":"true","data-text-skeleton-size":t,sx:i?{}:Ix,className:Gr(a,{[Nx]:i})},l)))))},Ax=r.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map}}),Lx=r.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:""}),Ox=yt("primer_react_css_modules_team","ul",m.ul.withConfig({displayName:"TreeView__UlBox",componentId:"sc-4ex6b6-0"})(["list-style:none;padding:0;margin:0;.PRIVATE_TreeView-item{outline:none;&:focus-visible > div,&.focus-visible > div{box-shadow:inset 0 0 0 2px ",";@media (forced-colors:active){outline:2px solid HighlightText;outline-offset:-2;}}&[data-has-leading-action]{--has-leading-action:1;}}.PRIVATE_TreeView-item-container{--level:1;--toggle-width:1rem;--min-item-height:2rem;position:relative;display:grid;--leading-action-width:calc(var(--has-leading-action,0) * 1.5rem);--spacer-width:calc(calc(var(--level) - 1) * (var(--toggle-width) / 2));grid-template-columns:var(--spacer-width) var(--leading-action-width) var(--toggle-width) 1fr;grid-template-areas:'spacer leadingAction toggle content';width:100%;font-size:",";color:",";border-radius:",";cursor:pointer;&:hover{background-color:",";@media (forced-colors:active){outline:2px solid transparent;outline-offset:-2px;}}@media (pointer:coarse){--toggle-width:1.5rem;--min-item-height:2.75rem;}&:has(.PRIVATE_TreeView-item-skeleton):hover{background-color:transparent;cursor:default;@media (forced-colors:active){outline:none;}}}&[data-omit-spacer='true'] .PRIVATE_TreeView-item-container{grid-template-columns:0 0 0 1fr;}.PRIVATE_TreeView-item[aria-current='true'] > .PRIVATE_TreeView-item-container{background-color:",";&::after{content:'';position:absolute;top:calc(50% - 0.75rem);left:-",";width:0.25rem;height:1.5rem;background-color:",";border-radius:",";@media (forced-colors:active){background-color:HighlightText;}}}.PRIVATE_TreeView-item-toggle{grid-area:toggle;display:flex;justify-content:center;align-items:flex-start;padding-top:calc(var(--min-item-height) / 2 - ","px / 2);height:100%;color:",";}.PRIVATE_TreeView-item-toggle--hover:hover{background-color:",";}.PRIVATE_TreeView-item-toggle--end{border-top-left-radius:",";border-bottom-left-radius:",";}.PRIVATE_TreeView-item-content{grid-area:content;display:flex;height:100%;padding:0 ",";gap:",";line-height:var(--custom-line-height,var(--text-body-lineHeight-medium,1.4285));padding-top:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);padding-bottom:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);}.PRIVATE_TreeView-item-content-text{flex:1 1 auto;width:0;}&[data-truncate-text='true'] .PRIVATE_TreeView-item-content-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&[data-truncate-text='false'] .PRIVATE_TreeView-item-content-text{word-break:break-word;}.PRIVATE_TreeView-item-visual{display:flex;align-items:center;color:",";height:var(--custom-line-height,1.3rem);}.PRIVATE_TreeView-item-leading-action{display:flex;color:",";grid-area:leadingAction;}.PRIVATE_TreeView-item-level-line{width:100%;height:100%;border-right:1px solid;border-color:",";}@media (hover:hover){.PRIVATE_TreeView-item-level-line{border-color:transparent;}&:hover .PRIVATE_TreeView-item-level-line,&:focus-within .PRIVATE_TreeView-item-level-line{border-color:",";}}.PRIVATE_TreeView-directory-icon{display:grid;color:",";}.PRIVATE_VisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}",""],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.actionListItem.default.selectedBg"),Wr("space.2"),Wr("colors.accent.fg"),Wr("radii.2"),12,Wr("colors.fg.muted"),Wr("colors.treeViewItem.chevron.hoverBg"),Wr("radii.2"),Wr("radii.2"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.fg.muted"),Wr("colors.border.subtle"),Wr("colors.border.subtle"),Wr("colors.treeViewItem.directory.fill"),ft)),Rx=({"aria-label":e,"aria-labelledby":o,children:n,flat:l,truncate:i=!0,className:c,style:s})=>{const d=r.useRef(null),g=r.useRef(!1),[u,v]=r.useState(""),b=r.useCallback((e=>{v(e)}),[]),f=t((()=>{g.current=!0}),[]);a((()=>{function e(){g.current=!1}return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]),Cx({containerRef:d,mouseDownRef:g}),function({containerRef:e,onFocusChange:o}){const t=r.useRef(""),a=r.useRef(0),n=r.useRef(o),{safeSetTimeout:l,safeClearTimeout:i}=gc();r.useEffect((()=>{n.current=o}),[o]);const c=r.useCallback((r=>{if(!r)return;if(!e.current)return;const o=e.current,t=Array.from(o.querySelectorAll('[role="treeitem"]')),a=t.findIndex((e=>e===document.activeElement));let l=(c=a,(i=t).map(((e,r)=>i[(c+r)%i.length])));var i,c;1===r.length&&(l=l.slice(1));const s=l.find((e=>wx(e).toLowerCase().startsWith(r.toLowerCase())));s&&n.current(s)}),[e]);r.useEffect((()=>{if(!e.current)return;const r=e.current;function o(e){!e.key||e.key.length>1||" "===e.key||e.ctrlKey||e.altKey||e.metaKey||(t.current+=e.key,c(t.current),i(a.current),a.current=l((()=>t.current=""),300),e.preventDefault(),e.stopPropagation())}return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)}),[e,c,i,l])}({containerRef:d,onFocusChange:e=>{e instanceof HTMLElement&&e.focus()}});const h=r.useRef(null);null===h.current&&(h.current=new Map);const p=bt("primer_react_css_modules_team");return r.createElement(Ax.Provider,{value:{announceUpdate:b,expandedStateCache:h}},r.createElement(r.Fragment,null,r.createElement(Bl,{role:"status","aria-live":"polite","aria-atomic":"true"},u),r.createElement(Ox,{ref:d,role:"tree","aria-label":e,"aria-labelledby":o,"data-omit-spacer":l,"data-truncate-text":i||!1,onMouseDown:f,className:Gr(c,{[xx.TreeViewRootUlStyles]:p}),style:s},n)))};Rx.displayName="Root",Rx.displayName="TreeView";const jx=r.forwardRef((({id:e,containIntrinsicSize:o,current:t=!1,defaultExpanded:a,expanded:n,onExpandedChange:l,onSelect:i,children:c,className:s,"aria-label":d,"aria-labelledby":g},u)=>{const[v,b]=oi(c,{leadingAction:Kx,leadingVisual:$x,trailingVisual:Zx}),{expandedStateCache:f}=r.useContext(Ax),h=ot(),p=ot(),m=ot(),[y,x]=function({name:e="custom",defaultValue:o,value:t,onChange:a}){const[n,l]=r.useState(null!=t?t:o),i=r.useRef(null),c=r.useRef(a);r.useEffect((()=>{c.current=a})),null===i.current&&(i.current=void 0!==t);const s=r.useCallback((e=>{var r;const o="function"==typeof e?e(n):e;!1===i.current&&l(o),null===(r=c.current)||void 0===r||r.call(c,o)}),[n]);return r.useEffect((()=>{i.current,i.current}),[e,t]),!0===i.current?[t,s]:[n,s]}({name:e,defaultValue:()=>{var r,o,n;return null!==(r=null!==(o=null===(n=f.current)||void 0===n?void 0:n.get(e))&&void 0!==o?o:a)&&void 0!==r?r:t},value:null!==n&&n,onChange:l}),{level:w}=r.useContext(Lx),{hasSubTree:C,subTree:k,childrenWithoutSubTree:B}=function(e){return r.useMemo((()=>{const o=r.Children.toArray(e).find((e=>r.isValidElement(e)&&e.type===Px));return{subTree:o,childrenWithoutSubTree:r.Children.toArray(e).filter((e=>!(r.isValidElement(e)&&e.type===Px))),hasSubTree:Boolean(o)}}),[e])}(b),[E,T]=r.useState(!C),[S,N]=r.useState(!1),_=r.useCallback((r=>{var o;x(r),null===(o=f.current)||void 0===o||o.set(e,r)}),[e,x,f]),I=r.useCallback((e=>{_(!y),null==e||e.stopPropagation()}),[y,_]),M=r.useCallback((e=>{switch(e.key){case"Enter":case" ":i?i(e):I(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!1)}}),[i,_,I]),A=[v.leadingVisual?p:null,v.trailingVisual?m:null].filter(Boolean),L=bt("primer_react_css_modules_team");return r.createElement(Lx.Provider,{value:{itemId:e,level:w+1,isSubTreeEmpty:E,setIsSubTreeEmpty:T,isExpanded:y,setIsExpanded:_,leadingVisualId:p,trailingVisualId:m}},r.createElement("li",{className:Gr("PRIVATE_TreeView-item",s,{[xx.TreeViewItem]:L}),ref:u,tabIndex:0,id:e,role:"treeitem","aria-label":d,"aria-labelledby":d?void 0:g||h,"aria-describedby":A.length?A.join(" "):void 0,"aria-level":w,"aria-expanded":(!E||y&&C)&&null!==n?y:void 0,"aria-current":t?"true":void 0,"aria-selected":S?"true":"false","data-has-leading-action":!!v.leadingAction||void 0,onKeyDown:M,onFocus:e=>{var r;null===(r=e.currentTarget.firstElementChild)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),N(!0),e.stopPropagation()},onBlur:()=>N(!1),onClick:e=>{i?i(e):I(e),e.stopPropagation()},onAuxClick:e=>{i&&1===e.button&&i(e),e.stopPropagation()}},r.createElement("div",{className:Gr("PRIVATE_TreeView-item-container",{[xx.TreeViewItemContainer]:L}),style:{"--level":w,contentVisibility:o?"auto":void 0,containIntrinsicSize:o}},r.createElement("div",{style:{gridArea:"spacer",display:"flex"}},r.createElement(zx,{level:w})),v.leadingAction,C?r.createElement("div",{className:Gr("PRIVATE_TreeView-item-toggle",i&&"PRIVATE_TreeView-item-toggle--hover",1===w&&"PRIVATE_TreeView-item-toggle--end",{[xx.TreeViewItemToggle]:L,[xx.TreeViewItemToggleHover]:L,[xx.TreeViewItemToggleEnd]:L}),onClick:e=>{i&&I(e)}},y?r.createElement(Cc,{size:12}):r.createElement(kc,{size:12})):null,r.createElement("div",{id:h,className:Gr("PRIVATE_TreeView-item-content",{[xx.TreeViewItemContent]:L})},v.leadingVisual,r.createElement("span",{className:Gr("PRIVATE_TreeView-item-content-text",{[xx.TreeViewItemContentText]:L})},B),v.trailingVisual)),k))})),zx=({level:e})=>{const o=bt("primer_react_css_modules_team");return r.createElement("div",{style:{width:"100%",display:"flex"}},Array.from({length:e-1}).map(((e,t)=>r.createElement("div",{key:t,className:Gr("PRIVATE_TreeView-item-level-line",{[xx.TreeViewItemLevelLine]:o})}))))};zx.displayName="LevelIndicatorLines",jx.displayName="TreeView.Item";const Px=({count:e,state:o,children:t})=>{const{announceUpdate:a}=r.useContext(Ax),{itemId:n,isExpanded:l,isSubTreeEmpty:i,setIsSubTreeEmpty:c}=r.useContext(Lx),s=r.useRef(null),d=r.useRef(null),[g,u]=r.useState(!1),v=function(e){const o=r.useRef(e);return r.useEffect((()=>{o.current=e}),[e]),o.current}(o),{safeSetTimeout:b}=gc();return r.useEffect((()=>{void 0!==o&&"done"!==o||(i||t?i&&t&&c(!1):c(!0))}),[o,i,c,t]),r.useEffect((()=>{const e=document.getElementById(n);if(e)if("loading"===v&&"done"===o){var r;const o=wx(e);if(null!==(r=d.current)&&void 0!==r&&r.childElementCount?a(`${o} content loaded`):a(`${o} is empty`),g){const r=Bx(e);b(r?()=>{r.focus()}:()=>{e.focus()}),u(!1)}}else if("loading"===o){const r=wx(e);a(`${r} content loading`)}}),[g,v,o,n,a,d,b]),r.useEffect((()=>{function e(){u(!0)}function r(e){e.relatedTarget&&u(!1)}const o=s.current;if(o)return o.addEventListener("focus",e),o.addEventListener("blur",r),()=>{o.removeEventListener("focus",e),o.removeEventListener("blur",r)}}),[s,o]),l?r.createElement("ul",{role:"group",style:{listStyle:"none",padding:0,margin:0},ref:d},"loading"===o?r.createElement(Fx,{ref:s,count:e}):t,i&&"loading"!==o?r.createElement(Wx,null):null):null};Px.displayName="SubTree",Px.displayName="TreeView.SubTree";const Dx=yt("primer_react_css_modules_team","span",m.span.attrs({className:"PRIVATE_TreeView-item-skeleton"}).withConfig({displayName:"TreeView__StyledSkeletonItemContainer",componentId:"sc-4ex6b6-1"})(["display:flex;align-items:center;column-gap:0.5rem;height:2rem;@media (pointer:coarse){height:2.75rem;}&:nth-of-type(5n + 1){--tree-item-loading-width:67%;}&:nth-of-type(5n + 2){--tree-item-loading-width:47%;}&:nth-of-type(5n + 3){--tree-item-loading-width:73%;}&:nth-of-type(5n + 4){--tree-item-loading-width:64%;}&:nth-of-type(5n + 5){--tree-item-loading-width:50%;}"])),Hx=yt("primer_react_css_modules_team",Mx,m(Mx).withConfig({displayName:"TreeView__StyledSkeletonText",componentId:"sc-4ex6b6-2"})(["width:var(--tree-item-loading-width,67%);"])),Vx=()=>{const e=bt("primer_react_css_modules_team");return r.createElement(Dx,{className:Gr({[xx.TreeViewSkeletonItemContainerStyles]:e,[xx.TreeViewItemSkeleton]:e},"PRIVATE_TreeView-item-skeleton")},r.createElement($u,{size:16,square:!0}),r.createElement(Hx,{className:Gr({[xx.TreeItemSkeletonTextStyles]:e})}))};Vx.displayName="SkeletonItem";const Fx=r.forwardRef((({count:e},o)=>{const t=ot(),a=bt("primer_react_css_modules_team");return e?r.createElement(jx,{id:t,ref:o},Array.from({length:e}).map(((e,o)=>r.createElement(Vx,{"aria-hidden":!0,key:o}))),r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[xx.TreeViewVisuallyHidden]:a})},"Loading ",e," items")):r.createElement(jx,{id:t,ref:o},r.createElement($x,null,r.createElement(Dt,{size:"small"})),r.createElement(kl,{className:"fgColor-muted"},"Loading..."))})),Wx=r.forwardRef(((e,o)=>r.createElement(jx,{expanded:null,id:ot(),ref:o},r.createElement(kl,{className:"fgColor-muted"},"No items found"))));const $x=e=>{const o=bt("primer_react_css_modules_team"),{isExpanded:t,leadingVisualId:a}=r.useContext(Lx),n="function"==typeof e.children?e.children({isExpanded:t}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[xx.TreeViewVisuallyHidden]:o}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[xx.TreeViewItemVisual]:o}),"aria-hidden":!0},n))};$x.displayName="TreeView.LeadingVisual";const Zx=e=>{const o=bt("primer_react_css_modules_team"),{isExpanded:t,trailingVisualId:a}=r.useContext(Lx),n="function"==typeof e.children?e.children({isExpanded:t}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[xx.TreeViewVisuallyHidden]:o}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[xx.TreeViewItemVisual]:o}),"aria-hidden":!0},n))};Zx.displayName="TreeView.TrailingVisual";const Kx=e=>{const o=bt("primer_react_css_modules_team"),{isExpanded:t}=r.useContext(Lx),a="function"==typeof e.children?e.children({isExpanded:t}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[xx.TreeViewVisuallyHidden]:o}),"aria-hidden":!0},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-leading-action",{[xx.TreeViewItemLeadingAction]:o}),"aria-hidden":!0},a))};Kx.displayName="TreeView.LeadingAction";const Gx=()=>{const e=bt("primer_react_css_modules_team"),{isExpanded:o}=r.useContext(Lx),t=o?Ec:Bc;return r.createElement("div",{className:Gr("PRIVATE_TreeView-directory-icon",{[xx.TreeViewDirectoryIcon]:e})},r.createElement(t,null))};Gx.displayName="DirectoryIcon";const qx=({title:e="Error",children:o,onRetry:t,onDismiss:a})=>{const{itemId:n,setIsExpanded:l}=r.useContext(Lx);return r.createElement("div",{onKeyDown:e=>{["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"].includes(e.key)&&e.stopPropagation()}},r.createElement(Os,{title:e,onClose:e=>{setTimeout((()=>{const e=document.getElementById(n);null==e||e.focus()})),"confirm"===e?null==t||t():(l(!1),null==a||a())},confirmButtonContent:"Retry",cancelButtonContent:"Dismiss"},o))};qx.displayName="ErrorDialog",qx.displayName="TreeView.ErrorDialog";const Ux=Object.assign(Rx,{Item:jx,SubTree:Px,LeadingAction:Kx,LeadingVisual:$x,TrailingVisual:Zx,DirectoryIcon:Gx,ErrorDialog:qx}),Yx=d({theme:{},setChildrenWidth:()=>null,setNoIconChildrenWidth:()=>null,loadingCounters:!1,iconsVisible:!0}),Xx=e=>({display:"inline-block",borderLeft:"1px solid",width:"1px",borderLeftColor:`${null==e?void 0:e.colors.border.muted}`,marginRight:1,height:"24px"}),Qx={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2,'& > span[data-component="trailingVisual"]':{marginLeft:0}},Jx={"& > span":{display:"none"},textDecoration:"none"},ew={position:"absolute",zIndex:1,top:"90%",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",borderRadius:"12px",backgroundColor:"canvas.overlay",listStyle:"none",minWidth:"192px",maxWidth:"640px",right:"0"},rw=(e,r)=>{if(e&&r){const{left:o}=Bo(e,r,{align:"start",side:"outside-bottom"}),{right:t,...a}=ew;return{...a,left:o}}return ew};function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ow.apply(null,arguments)}const tw=m.div.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineWrapper",componentId:"sc-4ilrg0-0"})(["display:flex;padding-inline:var(--stack-padding-normal,",");justify-content:flex-start;align-items:center;min-height:var(--control-xlarge-size,48px);box-shadow:inset 0px -1px var(--borderColor-muted,",");",";"],Wr("space.3"),Wr("colors.border.muted"),ft),aw=m.ul.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineItemList",componentId:"sc-4ilrg0-1"})(["display:flex;list-style:none;white-space:nowrap;padding:0;margin:0;align-items:center;gap:","px;position:relative;"],8),nw=m.div.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineItem",componentId:"sc-4ilrg0-2"})(["appearance:none;background-color:transparent;border:0;cursor:pointer;font:inherit;position:relative;display:inline-flex;color:",";text-align:center;text-decoration:none;line-height:var(--text-body-lineHeight-medium,1.4285);border-radius:var(--borderRadius-medium,",");font-size:var(--text-body-size-medium,",");padding-inline:var(--control-medium-paddingInline-condensed,",");padding-block:var(--control-medium-paddingBlock,6px);align-items:center;@media (hover:hover){&:hover{background-color:var(--bgColor-neutral-muted,",");transition:background 0.12s ease-out;text-decoration:none;}}&:focus:{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");&:not(:focus-visible){box-shadow:none;}}&:focus-visible{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");}[data-content]::before{content:attr(data-content);display:block;height:0;font-weight:var(--base-text-weight-semibold,",");visibility:hidden;white-space:nowrap;}[data-component='icon']{color:var(--fgColor-muted,",");align-items:center;display:inline-flex;margin-inline-end:var(--control-medium-gap,",");}[data-component='counter']{margin-inline-start:var(--control-medium-gap,",");display:flex;align-items:center;}&::after{position:absolute;right:50%;bottom:calc(50% - calc(var(--control-xlarge-size,48px) / 2 + 1px));width:100%;height:2px;content:'';background-color:transparent;border-radius:0;transform:translate(50%,-50%);}&[aria-current]:not([aria-current='false']),&[aria-selected='true']{[data-component='text']{font-weight:var(--base-text-weight-semibold,",");}&::after{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73));}}@media (forced-colors:active){&[aria-current]:not([aria-current='false']),&[aria-selected='true']{::after{background-color:LinkText;}}}",";"],Wr("colors.fg.default"),Wr("radii.2"),Wr("fontSizes.1"),Wr("space.2"),Wr("colors.neutral.subtle"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("fontWeights.semibold"),Wr("colors.fg.muted"),Wr("space.2"),Wr("space.2"),Wr("fontWeights.semibold"),ft),lw=w(["from{opacity:1;}to{opacity:0.2;}"]),iw=m.span.withConfig({displayName:"UnderlineTabbedInterface__LoadingCounter",componentId:"sc-4ilrg0-3"})(["animation:"," 1.2s ease-in-out infinite alternate;background-color:var(--bgColor-neutral-muted,",");border-color:var(--borderColor-default,",");width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"],lw,Wr("colors.neutral.subtle"),Wr("colors.border.default")),cw=u((({as:e="a",children:o,counter:t,icon:a,iconsVisible:n,loadingCounters:l,sx:i=pt,...c},s)=>r.createElement(nw,ow({ref:s,as:e,sx:i},c),n&&a&&r.createElement("span",{"data-component":"icon"},Sn.isElement(a)?a:r.createElement(a,null)),o&&r.createElement("span",{"data-component":"text","data-content":o},o),void 0!==t?l?r.createElement("span",{"data-component":"counter"},r.createElement(iw,null)):r.createElement("span",{"data-component":"counter"},r.createElement(Ft,null,t)):null)));function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},sw.apply(null,arguments)}m.ul.withConfig({displayName:"UnderlineNav__NavigationList",componentId:"sc-1jfr31k-0"})(["",";"],ft);const dw=m.li.withConfig({displayName:"UnderlineNav__MoreMenuListItem",componentId:"sc-1jfr31k-1"})(["display:flex;align-items:center;height:","px;"],45),gw=(e,r,o=0)=>{const t=r-o;let a=e.length,n=0;for(const[r,o]of e.entries())if(n=n+o.width+8,n>t){a=r;break}return a},uw=u((({as:e="nav","aria-label":o,sx:a=pt,loadingCounters:n=!1,children:c},s)=>{var d;const g=l(null),u=null!=s?s:g,v=l(null),b=l(null),f=l(null),h=r.useRef(null),p=ot(),{theme:m}=ct(),[y,x]=i(!1),[w,C]=i(!0),[k,B]=i([]),[E,T]=i([]),S=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(c),[N,_]=i({items:S,menuItems:[]}),I=N.items.map((e=>{var r;return null!==(r=S.find((r=>r.key===e.key)))&&void 0!==r?r:e})),M=N.menuItems.map((e=>{var r;return null!==(r=S.find((r=>r.key===e.key)))&&void 0!==r?r:e})),A=0===N.items.length;function L(e){var r,o;return null!==(r=null===(o=E.find((r=>r.text===e)))||void 0===o?void 0:o.width)&&void 0!==r?r:0}const O=(e,r,o,t)=>{var a,n;const l=function(e,r){let o=0,t=0;for(const[a,n]of[...N.items].reverse().entries())if(o+=L(n.props.children),e<o+r){t=a;break}return t}(L(e.props.children),u.current.getBoundingClientRect().width-(null!==(a=null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect().width)&&void 0!==a?a:0)),i=N.items.length-1-l,c=[...[...N.items].slice(0,i),e],s=[...N.items].slice(i),d=[...M];d.splice(r,1,...s),t({items:c,menuItems:d},!1)};const R=t(((e,r)=>{_(e),C(r)}),[]),j=t((e=>{B((r=>[...r,e]))}),[]),z=t((e=>{T((r=>[...r,e]))}),[]),P=r.useCallback((()=>{x(!1)}),[x]),D=r.useCallback((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}),[]),H=t((e=>{e.defaultPrevented||0!==e.button||x((e=>!e))}),[]);return vo((e=>{y&&(e.preventDefault(),P(),D())}),[y]),io({onClickOutside:P,containerRef:h,ignoreClickRefs:[f]}),Ko((e=>{var r,o;const t=e[0].contentRect.width,a=null!==(r=null===(o=b.current)||void 0===o?void 0:o.getBoundingClientRect().width)&&void 0!==r?r:0;0!==t&&((e,r,o,t,a,n)=>{let l=!0;0===t.length&&n({items:o,menuItems:[]},l);const i=gw(t,e),c=gw(a,e),s=gw(a,e,r||86),d=[],g=[];if(o.length<=i)d.push(...o);else if(o.length<=c)l=!1,d.push(...o);else{l=!1;const e=1==o.length-s?s-1:s;for(const[r,t]of o.entries())if(r<e)d.push(t);else{const r=t.props["aria-current"];if(Boolean(r)&&"false"!==r&&e>0){const r=e-1,o=d.splice(r,1,t)[0];g.push(o)}else g.push(t)}}n({items:d,menuItems:g},l)})(t,a,S,k,E,R)}),u),r.createElement(Yx.Provider,{value:{theme:m,setChildrenWidth:j,setNoIconChildrenWidth:z,loadingCounters:n,iconsVisible:w}},o&&r.createElement(Bl,{as:"h2"},`${o} navigation`),r.createElement(tw,{as:e,"aria-label":o,ref:u,sx:a},r.createElement(aw,{ref:v,role:"list"},I,M.length>0&&r.createElement(dw,{ref:b},!A&&r.createElement(ht,{sx:Xx(m)}),r.createElement(An,{ref:f,sx:Qx,"aria-controls":p,"aria-expanded":y,onClick:H,trailingAction:Dc},r.createElement(ht,{as:"span"},A?r.createElement(r.Fragment,null,r.createElement(Bl,{as:"span"},`${o}`," "),"Menu"):r.createElement(r.Fragment,null,"More",r.createElement(Bl,{as:"span"}," ",`${o} items`)))),r.createElement(Cg,{selectionVariant:"single",ref:h,id:p,sx:null!==(d=v.current)&&void 0!==d&&d.clientWidth&&v.current.clientWidth>=192?ew:rw(h.current,v.current),style:{display:y?"block":"none"}},M.map(((e,o)=>{const{children:t,counter:a,"aria-current":l,onSelect:i,...c}=e.props;if(Boolean(l)&&"false"!==l){new MouseEvent("click");!A&&O(e,o,0,R)}return r.createElement(Cg.LinkItem,sw({key:t,sx:Jx,onClick:r=>{!A&&O(e,o,0,R),P(),D(),"function"==typeof i&&i(r)}},c),r.createElement(ht,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},t,n?r.createElement(iw,null):void 0!==a&&r.createElement(ht,{as:"span","data-component":"counter"},r.createElement(Ft,null,a))))})))))))}));function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vw.apply(null,arguments)}uw.displayName="UnderlineNav";const bw=u((({sx:e=pt,as:o="a",href:t="#",children:a,counter:n,onSelect:i,"aria-current":c,icon:s,...d},u)=>{const v=l(null),b=null!=u?u:v,{setChildrenWidth:f,setNoIconChildrenWidth:h,loadingCounters:p,iconsVisible:m}=g(Yx);Zo((()=>{if(b.current){const e=b.current.getBoundingClientRect(),r=Array.from(b.current.children).find((e=>"icon"===e.getAttribute("data-component"))),o=Array.from(b.current.children).find((e=>"text"===e.getAttribute("data-component"))).textContent,t=r?r.getBoundingClientRect().width+Number(getComputedStyle(r).marginRight.slice(0,-2))+Number(getComputedStyle(r).marginLeft.slice(0,-2)):0;f({text:o,width:e.width}),h({text:o,width:e.width-t})}}),[b,f,h]);const y=r.useCallback((e=>{" "!==e.key&&"Enter"!==e.key||e.defaultPrevented||"function"!=typeof i||i(e)}),[i]),x=r.useCallback((e=>{e.defaultPrevented||"function"!=typeof i||i(e)}),[i]);return r.createElement(ht,{as:"li",sx:{display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(cw,vw({ref:b,as:o,href:t,"aria-current":c,onKeyDown:y,onClick:x,counter:n,icon:s,loadingCounters:p,iconsVisible:m,sx:e},d),a))}));bw.displayName="UnderlineNavItem";const fw=Object.assign(uw,{Item:bw});function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},hw.apply(null,arguments)}const pw=r.createContext({size:"medium",setChildrenWidth:()=>null}),mw=m.div.withConfig({displayName:"ActionBar__NavigationList",componentId:"sc-ygrb3t-0"})(["",";"],ft),yw={display:"flex",minWidth:0,listStyle:"none",whiteSpace:"nowrap",paddingY:0,paddingX:0,margin:0,marginBottom:"-1px",alignItems:"center",gap:"8px",position:"relative"},xw={display:"flex",paddingX:3,justifyContent:"flex-end",align:"row",alignItems:"center",maxHeight:"32px"},ww={textDecoration:"none"},Cw={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2},kw=(e,r,o=0)=>{const t=r-o;let a=e.length,n=0;for(const[r,o]of e.entries())if(n+=o.width,n>t){a=r;break}return a},Bw=e=>{const{size:o="medium",children:a,"aria-label":n}=e,[c,s]=i([]),d=t((e=>{s((r=>[...r,e]))}),[]),g=l(null),u=l(null),v=l(null),b=l(null),f=r.useRef(null),h=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(a),[p,m]=i({items:h,menuItems:[]}),y=p.items.map((e=>{var r;return null!==(r=h.find((r=>r.key===e.key)))&&void 0!==r?r:e})),x=p.menuItems.map((e=>{var r;return null!==(r=h.find((r=>r.key===e.key)))&&void 0!==r?r:e})),w=t((e=>{m(e)}),[]);Ko((e=>{var o,t;const a=e[0].contentRect.width,n=null!==(o=null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==o?o:0;0!==a&&((e,o,t,a,n)=>{0===a.length&&n({items:t,menuItems:[]});const l=kw(a,e),i=kw(a,e,o||86),c=[],s=[];if(t.length>l){const e=1==t.length-i?i-1:i;for(const[o,n]of t.entries())if(o<e)c.push(n);else if("divider"===a[o].text){if(o===e-1||o===e)continue;{const e=r.createElement(Cg.Divider,{key:o});s.push(e)}}else s.push(n);n({items:c,menuItems:s})}})(a,n,h,c,w)}),g);const[C,k]=i(!1),B=r.useCallback((()=>{k(!1)}),[k]),E=r.useCallback((()=>{var e;null===(e=b.current)||void 0===e||e.focus()}),[]);return vo((e=>{C&&(e.preventDefault(),B(),E())}),[C]),io({onClickOutside:B,containerRef:f,ignoreClickRefs:[b]}),Vc({containerRef:u,bindKeys:Ro.ArrowHorizontal|Ro.HomeAndEnd,focusOutBehavior:"wrap"}),r.createElement(pw.Provider,{value:{size:o,setChildrenWidth:d}},r.createElement(ht,{ref:g,sx:xw},r.createElement(mw,{sx:yw,ref:u,role:"toolbar"},y,x.length>0&&r.createElement(zg,null,r.createElement(zg.Anchor,null,r.createElement(ql,{sx:Cw,"aria-label":`More ${n} items`,icon:Oc})),r.createElement(zg.Overlay,null,r.createElement(Cg,null,x.map(((e,o)=>{if(e.type===Cg.Divider)return r.createElement(Cg.Divider,{key:o});{const{children:o,onClick:t,icon:a,"aria-label":n}=e.props;return r.createElement(Cg.LinkItem,{key:o,sx:ww,onClick:e=>{B(),E(),"function"==typeof t&&t(e)}},a?r.createElement(Cg.LeadingVisual,null,r.createElement(a,null)):null,n)}}))))))))};Bw.displayName="ActionBar";const Ew=u(((e,o)=>{const t=l(null),a=null!=o?o:t,{size:n,setChildrenWidth:i}=r.useContext(pw);return Zo((()=>{const r=e["aria-label"]?e["aria-label"]:"",o=a.current.getBoundingClientRect();i({text:r,width:o.width})}),[a,i]),r.createElement(ql,hw({ref:a,size:n},e,{variant:"invisible"}))})),Tw={small:"24px",medium:"28px",large:"32px"},Sw=()=>{const e=l(null),{size:o,setChildrenWidth:t}=r.useContext(pw);return Zo((()=>{const r=e.current.getBoundingClientRect();t({text:"divider",width:r.width})}),[e,t]),r.createElement(ht,{ref:e,"data-component":"ActionBar.VerticalDivider","aria-hidden":"true",sx:{display:"inline-block",borderLeft:"1px solid",borderColor:"actionListItem.inlineDivider",height:Tw[o],mx:2}})};Sw.displayName="VerticalDivider";const Nw=Object.assign(Bw,{IconButton:Ew,Divider:Sw});var _w="prc_PageHeader_sT1Hp",Iw="prc_ContextArea_6ykSJ",Mw="prc_ParentLink_BvDS0",Aw="prc_ContextBar_XQ8Q0",Lw="prc_ContextAreaActions_RTJRk",Ow="prc_TitleArea_jxJZy",Rw="prc_LeadingAction_88LQ0",jw="prc_Breadcrumbs_3c6ig",zw="prc_LeadingVisual_7zjCx",Pw="prc_Title_LKOsd",Dw="prc_TrailingVisual_7Ft0D",Hw="prc_TrailingAction_QOaow",Vw="prc_Actions_ygtmj",Fw="prc_Description_kFg8r",Ww="prc_Navigation_9Uvch";function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$w.apply(null,arguments)}const Zw=1,Kw=2,Gw=2,qw=2,Uw=2,Yw=2,Xw=3,Qw=4,Jw=0,eC=1,rC=2,oC=0,tC=1,aC=2,nC={narrow:!1,regular:!0,wide:!0},lC={narrow:!0,regular:!1,wide:!1},iC="primer_react_css_modules_team",cC=r.forwardRef((({children:e,className:o,sx:t={},as:n="div","aria-label":l,role:i},c)=>{const s=bt(iC),d={display:"grid",gridTemplateColumns:"auto auto auto auto 1fr",gridTemplateAreas:"\n 'context-area context-area context-area context-area context-area'\n 'leading-action breadcrumbs title-area trailing-action actions'\n 'description description description description description'\n 'navigation navigation navigation navigation navigation'\n ",'&:has([data-component="TitleArea"][data-size-variant="large"])':{fontSize:"var(--custom-font-size, var(--text-title-size-large, 2rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))"},'&:has([data-component="TitleArea"][data-size-variant="medium"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-semibold, 600))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'&:has([data-component="TitleArea"][data-size-variant="subtitle"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'[data-component="PH_LeadingAction"], [data-component="PH_TrailingAction"],[data-component="PH_Actions"], [data-component="PH_LeadingVisual"], [data-component="PH_TrailingVisual"]':{height:"calc(var(--title-line-height) * 1em)"}},g=co(c);return a((function(){}),[e,g]),r.createElement(ht,{ref:g,as:n,className:Gr(s&&_w,o),sx:s?t:oo(d,t),"aria-label":l,role:i},e)})),sC=({children:e,className:o,hidden:t=nC,sx:a={}})=>{const n=bt(iC),l={gridRow:Zw,gridArea:"context-area",display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:"0.5rem",gap:"0.5rem",...Ou(t,"display",(e=>e?"none":"flex")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"};return r.createElement(ht,$w({className:Gr(n&&Iw,o),sx:n?a:oo(l,a)},kC(n,t)),e)};sC.displayName="ContextArea";const dC=r.forwardRef((({children:e,className:o,sx:t={},href:a,"aria-label":n,as:l="a",hidden:i=nC},c)=>{const s=bt(iC);return r.createElement(r.Fragment,null,r.createElement(mg,$w({ref:c,as:l,"aria-label":n,muted:!0,className:Gr(s&&Mw,o),sx:s?t:oo({display:"flex",alignItems:"center",order:oC,gap:"0.5rem",...Ou(i,"display",(e=>e?"none":"flex"))},t)},kC(s,i),{href:a}),r.createElement(yc,null),r.createElement(ht,null,e)))}));dC.displayName="ParentLink";const gC=({children:e,className:o,sx:t={},hidden:a=nC})=>{const n=bt(iC);return r.createElement(ht,$w({className:Gr(n&&Aw,o),sx:n?t:oo({display:"flex",order:tC,...Ou(a,"display",(e=>e?"none":"flex"))},t)},kC(n,a)),e)};gC.displayName="ContextBar";const uC=({children:e,className:o,sx:t={},hidden:a=nC})=>{const n=bt(iC);return r.createElement(ht,$w({className:Gr(n&&Lw,o)},kC(n,a),{sx:n?t:oo({display:"flex",flexDirection:"row",order:aC,alignItems:"center",gap:"0.5rem",flexGrow:"1",justifyContent:"right",...Ou(a,"display",(e=>e?"none":"flex"))},t)},kC(n,a)),e)};uC.displayName="ContextAreaActions";const vC=r.forwardRef((({children:e,className:o,sx:t={},hidden:a=!1,variant:n="medium"},l)=>{const i=bt(iC),c=co(l),s=ri(n,"medium");return r.createElement(ht,$w({className:Gr(i&&Ow,o),ref:c,"data-component":"TitleArea","data-size-variant":s,sx:i?t:oo({gridRow:qw,gridArea:"title-area",display:"flex",gap:"0.5rem",...Ou(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"flex-start"},t)},kC(i,a)),e)}));vC.displayName="TitleArea";const bC=({children:e,className:o,sx:t={},hidden:a=lC})=>{const n=bt(iC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,$w({className:Gr(n&&Rw,o),"data-component":"PH_LeadingAction",sx:n?t:oo({gridRow:Kw,gridArea:"leading-action",paddingRight:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},kC(n,a)),e)};bC.displayName="LeadingAction";const fC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(iC);return r.createElement(ht,$w({className:Gr(n&&jw,o),"data-component":"PH_Breadcrumbs",sx:n?t:oo({gridRow:Gw,gridArea:"breadcrumbs",paddingRight:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},t)},kC(n,a)),e)};fC.displayName="Breadcrumbs";const hC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(iC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,$w({className:Gr(n&&zw,o),"data-component":"PH_LeadingVisual",sx:n?t:oo({display:"flex",order:Jw,...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},kC(n,a)),e)};hC.displayName="LeadingVisual";const pC=({children:e,className:o,sx:t={},hidden:a=!1,as:n="h2"})=>{const l=bt(iC),i={},{fontSize:c,lineHeight:s,fontWeight:d}=t;return c&&(i["--custom-font-size"]=c),s&&(i["--custom-line-height"]=s),d&&(i["--custom-font-weight"]=d),r.createElement(zd,$w({className:Gr(l&&Pw,o),"data-component":"PH_Title",as:n,style:i,sx:l?t:oo({display:"flex",order:eC,...Ou(a,"display",(e=>e?"none":"block")),fontSize:"inherit",fontWeight:"inherit"},t)},kC(l,a)),e)};pC.displayName="Title";const mC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(iC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,$w({className:Gr(n&&Dw,o),"data-component":"PH_TrailingVisual",sx:n?t:oo({display:"flex",order:rC,...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},kC(n,a)),e)};mC.displayName="TrailingVisual";const yC=({children:e,className:o,sx:t={},hidden:a=lC})=>{const n=bt(iC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,$w({className:Gr(n&&Hw,o),"data-component":"PH_TrailingAction",sx:n?t:oo({gridRow:Uw,gridArea:"trailing-action",paddingLeft:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},kC(n,a)),e)};yC.displayName="TrailingAction";const xC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(iC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,$w({className:Gr(n&&Vw,o),"data-component":"PH_Actions",sx:n?t:oo({gridRow:Yw,gridArea:"actions",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),flexDirection:"row",paddingLeft:"0.5rem",gap:"0.5rem",minWidth:"max-content",justifyContent:"right",alignItems:"center"},t),style:l},kC(n,a)),e)};xC.displayName="Actions";const wC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(iC);return r.createElement(ht,$w({className:Gr(n&&Fw,o),sx:n?t:oo({gridRow:Xw,gridArea:"description",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"center",paddingTop:"0.5rem",gap:"0.5rem",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},t)},kC(n,a)),e)};wC.displayName="Description";const CC=({children:e,className:o,sx:t={},hidden:a=!1,as:n,"aria-label":l,"aria-labelledby":i})=>{const c=bt(iC);return r.createElement(ht,$w({as:n,"aria-label":"nav"===n?l:void 0,"aria-labelledby":"nav"===n?i:void 0,className:Gr(c&&Ww,o),sx:c?t:oo({gridRow:Qw,gridArea:"navigation",paddingTop:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"block")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},t)},kC(c,a)),e)};function kC(e,r){if(!e)return{};if(ei(r)){const e=r,o="narrow"in e?{"data-hidden-narrow":e.narrow||void 0}:{},t="regular"in e?{"data-hidden-regular":e.regular||void 0}:{},a="wide"in e?{"data-hidden-wide":e.wide||void 0}:{};return Au(e)?{"data-hidden-all":e.narrow||void 0}:Lu(e)?{...o,...t}:{...o,...t,...a}}return{"data-hidden-all":r||void 0}}CC.displayName="Navigation";const BC=Object.assign(cC,{ContextArea:sC,ParentLink:dC,ContextBar:gC,TitleArea:vC,ContextAreaActions:uC,LeadingAction:bC,Breadcrumbs:fC,LeadingVisual:hC,Title:pC,TrailingVisual:mC,TrailingAction:yC,Actions:xC,Description:wC,Navigation:CC});BC.displayName="PageHeader";export{Nw as ActionBar,Cg as ActionList,zg as ActionMenu,_g as AnchoredOverlay,Cu as Autocomplete,Tu as Avatar,qu as AvatarPair,lv as AvatarStack,yx as AvatarToken,Et as BaseStyles,ht as Box,uv as BranchName,Nv as Breadcrumb,Sv as Breadcrumbs,An as Button,In as ButtonBase,Mv as ButtonGroup,Pv as Caret,qv as Checkbox,nh as CheckboxGroup,gh as CircleBadge,Hv as CircleOcticon,Os as ConfirmationDialog,Ft as CounterLabel,mh as Details,Es as Dialog,Ch as Flash,oh as FormControl,Oh as Header,zd as Heading,ql as IconButton,ux as IssueLabelToken,zh as Label,Wh as LabelGroup,mg as Link,Yl as LinkButton,lp as NavList,Sg as Overlay,BC as PageHeader,oc as PageLayout,hp as Pagination,xp as PointerBox,Ip as Popover,Kc as Portal,Vp as ProgressBar,Ld as Radio,Ed as RadioGroup,Bm as RelativeTime,Zm as SegmentedControl,nb as Select,nf as SelectPanel,Xm as SideNav,Dt as Spinner,sc as SplitPageLayout,dd as Stack,ay as StateLabel,my as SubNav,kl as Text,du as TextInput,Df as TextInputWithTokens,$f as Textarea,it as ThemeProvider,Ky as Timeline,Ny as ToggleSwitch,Lf as Token,Zl as Tooltip,Ux as TreeView,og as Truncate,fw as UnderlineNav,Mt as VisuallyHidden,Vs as createComponent,oo as merge,Zc as registerPortalRoot,ft as sx,M as theme,Wr as themeGet,st as useColorSchemeVar,js as useConfirm,dc as useDetails,bc as useFocusTrap,Vc as useFocusZone,$v as useFormControlForwardedProps,Zo as useIsomorphicLayoutEffect,vo as useOnEscapePress,io as useOnOutsideClick,wo as useOpenAndCloseFocus,qo as useOverlay,co as useProvidedRefOrCreate,rt as useRefObjectAsForwardedRef,Ko as useResizeObserver,ri as useResponsiveValue,gc as useSafeTimeout,ct as useTheme};
12
+ */const zs=new Set(["children","localName","ref","style","className"]),Ps=new WeakMap,Ds=(e,r,o,t,a)=>{const n=null==a?void 0:a[r];void 0===n||o===t?null==o&&r in HTMLElement.prototype?e.removeAttribute(r):e[r]=o:((e,r,o)=>{let t=Ps.get(e);void 0===t&&Ps.set(e,t=new Map);let a=t.get(r);void 0!==o?void 0===a?(t.set(r,a={handleEvent:o}),e.addEventListener(r,a)):a.handleEvent=o:void 0!==a&&(t.delete(r),e.removeEventListener(r,a))})(e,n,o)};const Hs=e=>e[0].toUpperCase()+e.slice(1).replace(/(-\w)/g,(e=>e[1].toUpperCase())),Vs=(e,o,t=void 0)=>{const a=Object.assign(Object.assign(m(function(e=window.React,r,o,t,a){let n,l,i;{const r=e;({tagName:l,elementClass:i,events:t,displayName:a}=r),n=r.react}const c=n.Component,s=n.createElement,d=new Set(Object.keys(null!=t?t:{}));class g extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(const r in this.i)Ds(this.o,r,this.props[r],e?e[r]:void 0,t)}componentDidMount(){var e;this.t(),null===(e=this.o)||void 0===e||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){const{_$Gl:e,...r}=this.props;this.h!==e&&(this.u=r=>{null!==e&&((e,r)=>{"function"==typeof e?e(r):e.current=r})(e,r),this.o=r,this.h=e}),this.i={};const o={ref:this.u};for(const[e,t]of Object.entries(r))zs.has(e)?o["className"===e?"class":e]=t:d.has(e)||e in i.prototype?this.i[e]=t:o[e]=t;return o.suppressHydrationWarning=!0,s(l,o)}}g.displayName=null!=a?a:i.name;const u=n.forwardRef(((e,r)=>s(g,{...e,_$Gl:r},null==e?void 0:e.children)));return u.displayName=g.displayName,u}({tagName:o,elementClass:e,react:r,events:t})),{displayName:Hs(o)})(ft),{displayName:Hs(o)});return a},Fs=w(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Ws=m.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&C(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Fs))),$s=({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(Ws,{show:e,onAnimationEnd:()=>{e||n(!1)}},o)):null},Zs=r.createContext({});var Ks="prc_Body_cNQoa",Gs="prc_GroupFieldset_0NZzG",qs="prc_GroupLegend_HW4-c",Us="prc_CheckboxOrRadioGroupCaption_9GgyY",Ys="prc_RadioGroupLabel_anQ3U",Xs="prc_GroupLabelChildren_j5sBI";const Qs="primer_react_css_modules_staff",Js=({className:e,children:o,sx:t})=>{const{disabled:a,captionId:n}=r.useContext(Zs);return bt(Qs)?t?r.createElement(kl,{className:Gr(e,Us),id:n,sx:t},o):r.createElement("span",{className:Gr(e,Us),id:n},o):r.createElement(kl,{color:a?"fg.muted":"fg.subtle",fontSize:1,id:n,sx:t,className:e},o)};function ed(e,r){if(null!=r)return"object"==typeof r?Object.fromEntries(Object.entries(r).map((([r,o])=>rd(`data-${e}-${r}`,o)))):Object.fromEntries([rd(`data-${e}`,r)])}function rd(e,r){return[e,r]}Js.displayName="CheckboxOrRadioGroupCaption";var od="prc_Stack_WJVsK",td="prc_StackItem_CweWT";function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ad.apply(null,arguments)}const nd="primer_react_css_modules_staff",ld=yt(nd,"div",m.div.withConfig({displayName:"Stack__StyledStack",componentId:"sc-x3xa2i-0"})(["display:flex;flex-flow:column;align-items:stretch;align-content:flex-start;gap:var(--stack-gap,var(--stack-gap-normal,1rem));&[data-padding='none'],&[data-padding-narrow='none']{padding:0;}&[data-padding='condensed'],&[data-padding-narrow='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding='normal'],&[data-padding-narrow='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding='spacious'],&[data-padding-narrow='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction='horizontal'],&[data-direction-narrow='horizontal']{flex-flow:row;}&[data-direction='vertical'],&[data-direction-narrow='vertical']{flex-flow:column;}&[data-gap='none'],&[data-gap-narrow='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap='condensed'],&[data-gap-narrow='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap='normal'],&[data-gap-narrow='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap='spacious'],&[data-gap-narrow='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align='start'],&[data-align-narrow='start']{align-items:flex-start;}&[data-align='center'],&[data-align-narrow='center']{align-items:center;}&[data-align='end'],&[data-align-narrow='end']{align-items:flex-end;}&[data-align='baseline'],&[data-align-narrow='baseline']{align-items:baseline;}&[data-justify='start'],&[data-justify-narrow='start']{justify-content:flex-start;}&[data-justify='center'],&[data-justify-narrow='center']{justify-content:center;}&[data-justify='end'],&[data-justify-narrow='end']{justify-content:flex-end;}&[data-justify='space-between'],&[data-justify-narrow='space-between']{justify-content:space-between;}&[data-justify='space-evenly'],&[data-justify-narrow='space-evenly']{justify-content:space-evenly;}&[data-wrap='wrap'],&[data-wrap-narrow='wrap']{flex-wrap:wrap;}&[data-wrap='nowrap'],&[data-wrap-narrow='nowrap']{flex-wrap:nowrap;}@media (min-width:48rem){&[data-padding-regular='none']{padding:0;}&[data-padding-regular='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-regular='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-regular='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-regular='horizontal']{flex-flow:row;}&[data-direction-regular='vertical']{flex-flow:column;}&[data-gap-regular='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-regular='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-regular='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-regular='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-regular='start']{align-items:flex-start;}&[data-align-regular='center']{align-items:center;}&[data-align-regular='end']{align-items:flex-end;}&[data-align-regular='baseline']{align-items:baseline;}&[data-justify-regular='start']{justify-content:flex-start;}&[data-justify-regular='center']{justify-content:center;}&[data-justify-regular='end']{justify-content:flex-end;}&[data-justify-regular='space-between']{justify-content:space-between;}&[data-justify-regular='space-evenly']{justify-content:space-evenly;}&[data-wrap-regular='wrap']{flex-wrap:wrap;}&[data-wrap-regular='nowrap']{flex-wrap:nowrap;}}@media (min-width:87.5rem){&[data-padding-wide='none']{padding:0;}&[data-padding-wide='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-wide='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-wide='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-wide='horizontal']{flex-flow:row;}&[data-direction-wide='vertical']{flex-flow:column;}&[data-gap-wide='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-wide='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-wide='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-wide='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-wide='start']{align-items:flex-start;}&[data-align-wide='center']{align-items:center;}&[data-align-wide='end']{align-items:flex-end;}&[data-align-wide='baseline']{align-items:baseline;}&[data-justify-wide='start']{justify-content:flex-start;}&[data-justify-wide='center']{justify-content:center;}&[data-justify-wide='end']{justify-content:flex-end;}&[data-justify-wide='space-between']{justify-content:space-between;}&[data-justify-wide='space-evenly']{justify-content:space-evenly;}&[data-wrap-wide='wrap']{flex-wrap:wrap;}&[data-wrap-wide='nowrap']{flex-wrap:nowrap;}}"]));function id({as:e,children:o,align:t="stretch",direction:a="vertical",gap:n,justify:l="start",padding:i="none",wrap:c="nowrap",className:s,...d}){const g=null!=e?e:"div",u=bt(nd);return r.createElement(ld,ad({},d,{as:g,className:Gr(s,{[od]:u})},ed("gap",n),ed("direction",a),ed("align",t),ed("wrap",c),ed("justify",l),ed("padding",i)),o)}id.displayName="Stack";const cd=yt(nd,"div",m.div.withConfig({displayName:"Stack__StyledStackItem",componentId:"sc-x3xa2i-1"})(["flex:0 1 auto;min-inline-size:0;&[data-grow='true'],&[data-grow-narrow='true']{flex-grow:1;}@media (min-width:48rem){&[data-grow-regular='true']{flex-grow:1;}&[data-grow-regular='false']{flex-grow:0;}}@media (min-width:87.5rem){&[data-grow-wide='true']{flex-grow:1;}&[data-grow-wide='false']{flex-grow:0;}}"]));function sd({as:e,children:o,grow:t,className:a,...n}){const l=null!=e?e:"div",i=bt(nd);return r.createElement(cd,ad({},n,{as:l,className:Gr(a,{[td]:i})},ed("grow",t)),o)}sd.displayName="StackItem";const dd=Object.assign(id,{Item:sd}),gd=({children:e,className:o,visuallyHidden:t=!1,sx:a})=>{const{required:n,disabled:l}=r.useContext(Zs);return bt(Qs)?a?r.createElement(Bl,{className:Gr(o,Ys),isVisible:!t,title:n?"required field":void 0,"data-label-disabled":l?"":void 0,sx:a},n?r.createElement(dd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:Xs},e),r.createElement("span",null,"*")):e):r.createElement(Bl,{className:Gr(o,Ys),isVisible:!t,title:n?"required field":void 0,"data-label-disabled":l?"":void 0},n?r.createElement(dd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:Xs},e),r.createElement("span",null,"*")):e):r.createElement(Bl,{className:o,isVisible:!t,title:n?"required field":void 0,sx:{display:"block",color:l?"fg.muted":void 0,fontSize:1,fontWeight:"bold",...a}},n?r.createElement(ht,{display:"flex",as:"span"},r.createElement(ht,{mr:1},e),r.createElement("span",null,"*")):e)};gd.displayName="CheckboxOrRadioGroupLabel";const ud={success:wc,error:mc},vd=({children:e,id:o,validationStatus:t,sx:a})=>{const n=t?ud[t]:void 0,l=16/12;return r.createElement(bd,{"data-validation-status":t,sx:a},n?r.createElement(fd,{"aria-hidden":"true",style:{"--inputValidation-iconSize":16}},r.createElement(n,{size:12,fill:"currentColor"})):null,r.createElement(hd,{id:o,style:{"--inputValidation-lineHeight":l}},e))};vd.displayName="InputValidation";const bd=m(kl).withConfig({displayName:"InputValidation__StyledInputValidation",componentId:"sc-1b199hv-0"})(["color:var(--inputValidation-fgColor);display:flex;font-size:",";font-weight:600;& :where(a){color:currentColor;text-dectoration:underline;}&:where([data-validation-status='success']){--inputValidation-fgColor:",";}&:where([data-validation-status='error']){--inputValidation-fgColor:",";}",""],Wr("fontSizes.0"),Wr("colors.success.fg"),Wr("colors.danger.fg"),ft),fd=m.span.withConfig({displayName:"InputValidation__StyledValidationIcon",componentId:"sc-1b199hv-1"})(["align-items:center;display:flex;margin-inline-end:",";min-height:var(--inputValidation-iconSize);"],Wr("space.1")),hd=m.span.withConfig({displayName:"InputValidation__StyledValidationText",componentId:"sc-1b199hv-2"})(["line-height:var(--inputValidation-lineHeight);"]),pd=({children:e,variant:o,sx:t})=>{const{validationMessageId:a=""}=r.useContext(Zs);return r.createElement(vd,{validationStatus:o,id:a,sx:t},e)};function md(){return md=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},md.apply(null,arguments)}pd.displayName="CheckboxOrRadioGroupValidation";const yd=yt(Qs,"div",m.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Wr("space.2"))),xd=({"aria-labelledby":e,children:o,disabled:t=!1,id:a,required:n=!1,className:l,sx:i})=>{const[c,s]=oi(o,{caption:Js,label:gd,validation:pd}),d=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===gd)),g=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===pd?e:null)),u=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===Js?e:null)),v=ot(a),b=g?`${v}-validationMessage`:void 0,f=u?`${v}-caption`:void 0;d||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const h=r.isValidElement(d)&&!d.props.visuallyHidden;return bt(Qs)?i?r.createElement(Zs.Provider,{value:{disabled:t,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ht,md({className:Gr(l,Gs),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:t},{sx:i}),d?r.createElement("legend",{className:qs,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(Bl,null,c.validation.props.children)):c.caption,r.createElement(yd,md({className:Ks},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement($s,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(Zs.Provider,{value:{disabled:t,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement("fieldset",md({className:Gr(l,Gs),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:t}),d?r.createElement("legend",{className:qs,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(Bl,null,c.validation.props.children)):c.caption,r.createElement(yd,md({className:Ks},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement($s,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(Zs.Provider,{value:{disabled:t,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ht,md({border:"none",margin:0,mb:g?2:void 0,padding:0},d&&{as:"fieldset",disabled:t},{className:l,sx:i}),d?r.createElement(ht,{as:"legend",mb:h?2:void 0,padding:0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(Bl,null,c.validation.props.children)):c.caption,r.createElement(yd,!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement($s,{"aria-hidden":Boolean(d),show:!0},c.validation)))};xd.displayName="CheckboxOrRadioGroup";var wd=Object.assign(xd,{Caption:Js,Label:gd,Validation:pd});function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cd.apply(null,arguments)}const kd=d(null),Bd=({children:e,disabled:o,onChange:t,name:a,...n})=>{const[l,i]=Uo(null);return r.createElement(kd.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(wd,Cd({disabled:o},n),e))};Bd.displayName="RadioGroup";var Ed=Object.assign(Bd,{Caption:Js,Label:gd,Validation:pd});const Td=C(["box-shadow:none;outline:2px solid ",";"],Wr("colors.accent.fg")),Sd=e=>C(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],Td,void 0===e?"2px":e,Td,void 0===e?"2px":e),Nd=C(["appearance:none;border-color:var(--control-borderColor-emphasis,",");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);background-color:",";&:disabled{background-color:",";border-color:var(--control-borderColor-disabled,",");}"],Wr("colors.neutral.emphasis"),Wr("borderWidths.1"),Wr("colors.canvas.default"),Wr("colors.input.disabledBg"),Wr("colors.border.default"));var _d="prc_Radio_Ly4MR",Id="prc_Input_mxggT";function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Md.apply(null,arguments)}const Ad=yt("primer_react_css_modules_ga","input",m.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-width:var(--base-size-4,4px);border-color:var( --control-checked-bgColor-rest,"," );background-color:var(--control-checked-fgColor-rest,",");&:disabled{cursor:not-allowed;border-color:",";background-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],Nd,Wr("colors.accent.fg"),Wr("colors.fg.onEmphasis"),Wr("colors.fg.muted"),Wr("colors.fg.muted"),Sd(),ft)),Ld=r.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:l,validationStatus:i,value:c,className:s,...d},u)=>{const v=g(kd),b=bt("primer_react_css_modules_ga"),f=t||(null==v?void 0:v.name);return f||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(Ad,Md({type:"radio",value:c,name:f,ref:u,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==v?void 0:v.onChange)&&v.onChange(e),a&&a(e)},className:Gr(s,{[Id]:b,[_d]:b})},d))}));Ld.displayName="Radio";const Od=r.createContext({});var Rd="prc_Heading_6CmGO";function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jd.apply(null,arguments)}const zd=u((({as:e="h2",className:o,variant:t,...a},n)=>{const l=r.useRef(null);return rt(n,l),a.sx?r.createElement(ht,jd({as:e,className:Gr(o,Rd),"data-variant":t},a,{ref:l})):r.createElement(e,jd({className:Gr(o,Rd),"data-variant":t},a,{ref:l}))}));zd.displayName="Heading";const Pd=r.createContext({}),Dd=(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"},Hd="20px",Vd=r.createContext({});var Fd="prc_ActionListHeader_lEr8v";function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Wd.apply(null,arguments)}const $d=u((({as:e,size:o,children:t,sx:a=pt,visuallyHidden:n=!1,className:l,...i},c)=>{var s,d,g;const u=r.useRef(null);rt(c,u);const v=bt("primer_react_css_modules_team"),{headingId:b,variant:f}=r.useContext(Vd),{container:h}=r.useContext(Od);"ActionMenu"===h&&On(!1);const p={marginBottom:2,marginX:"full"===f?2:3};return r.createElement(Bl,{isVisible:!n},v?a!==pt?r.createElement(zd,Wd({as:e,variant:o,ref:u,id:null!==(s=i.id)&&void 0!==s?s:b,className:Gr(l,Fd),"data-list-variant":f,sx:a},i),t):r.createElement(zd,Wd({as:e,variant:o,ref:u,id:null!==(d=i.id)&&void 0!==d?d:b,className:Gr(l,Fd),"data-list-variant":f},i),t):r.createElement(zd,Wd({as:e,variant:o,ref:u,id:null!==(g=i.id)&&void 0!==g?g:b,sx:oo(p,a),className:l},i),t))}));$d.displayName="ActionList.Heading";var Zd="prc_ActionList_X4RiC",Kd="prc_Divider_rsZFG";function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gd.apply(null,arguments)}const qd=m.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(ft),Ud=r.forwardRef((({variant:e="inset",selectionVariant:o,showDividers:t=!1,role:a,sx:n=pt,className:l,...i},c)=>{var s;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[g,u]=oi(i.children,{heading:$d}),v=ot(),{listRole:b,listLabelledBy:f,selectionVariant:h,enableFocusZone:p}=r.useContext(Od),m=g.heading?null!==(s=g.heading.props.id)&&void 0!==s?s:v:f,y=a||b,x=co(c);let w=!1;void 0!==p?w=p:y&&(w=["menu","menubar","listbox"].includes(y)),Vc({disabled:!w,containerRef:x,bindKeys:Ro.ArrowVertical|Ro.HomeAndEnd|Ro.PageUpDown,focusOutBehavior:"menu"===y?"wrap":void 0});const C=bt("primer_react_css_modules_team");return r.createElement(Vd.Provider,{value:{variant:e,selectionVariant:o||h,showDividers:t,role:y,headingId:v}},g.heading,C?n!==pt?r.createElement(qd,Gd({sx:oo(d,n),className:Gr(Zd,l),role:y,"aria-labelledby":m,ref:x,"data-dividers":t,"data-variant":e},i),u):r.createElement("ul",Gd({className:Gr(Zd,l),role:y,"aria-labelledby":m,ref:x,"data-dividers":t,"data-variant":e},i),u):r.createElement(qd,Gd({sx:oo(d,n),role:y,"aria-labelledby":m},i,{ref:x,className:l}),u))}));function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yd.apply(null,arguments)}Ud.displayName="ActionList";const Xd=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Qd=({title:e,variant:o="subtle",auxiliaryText:t,selectionVariant:a,role:n,sx:l={},...i})=>{var c;const s=ot(),{role:d}=r.useContext(Vd),[g,u]=oi(i.children,{groupHeading:Jd});let v;var b;g.groupHeading&&(v=null!==(b=g.groupHeading.props.id)&&void 0!==b?b:s);return e&&(v=s),r.createElement(ht,Yd({as:"li",role:d?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Xd.Provider,{value:{selectionVariant:a,groupHeadingId:v}},e&&!g.groupHeading?r.createElement(Jd,{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?u:i.children)))};Qd.displayName="Group";const Jd=({as:e,variant:o,_internalBackwardCompatibleTitle:t,auxiliaryText:a,children:n,className:l,sx:i=pt,...c})=>{const{variant:s,role:d}=r.useContext(Vd),{groupHeadingId:g}=r.useContext(Xd),u=void 0!==d&&"list"!==d&&void 0!==n&&void 0!==e;(void 0===d||"list"===d)&&void 0!==n&&void 0===e&&On(!1),u&&On(!1);const v={paddingY:"6px",paddingX:"full"===s?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"},".ActionListGroupHeading":{fontSize:"var(--text-body-size-small), 12px",fontWeight:"var(--base-text-weight-semibold, 600)",lineHeight:"var(--text-body-lineHeight-small, 1.6666)",color:"var(--fgColor-muted)"},".ActionListGroupHeadingDescription":{fontSize:"var(--text-body-size-small, 12px)",fontWeight:"var(--base-text-weight-normal, 400)",lineHeight:"var(--text-body-lineHeight-small, 1.6666)",color:"var(--fgColor-muted)"}};return r.createElement(r.Fragment,null,d&&"list"!==d?r.createElement(ht,Yd({sx:v,role:"presentation","aria-hidden":"true"},c),r.createElement("span",{id:g},null!=t?t:n),a&&r.createElement("div",{className:"ActionListGroupHeadingDescription"},a)):r.createElement(ht,{sx:v},r.createElement(zd,Yd({className:Gr(l,"ActionListGroupHeading"),as:e||"h3",id:g,sx:i},c),null!=t?t:n),a&&r.createElement("div",{className:"ActionListGroupHeadingDescription"},a)))};function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},eg.apply(null,arguments)}const rg=m.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"),Oe,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),ft),og=r.forwardRef((function({as:e,expandable:o=!1,inline:t=!1,maxWidth:a=125,...n},l){return r.createElement(rg,eg({ref:l,as:e,expandable:o,inline:t,maxWidth:a},n))}));const tg=({variant:e="inline",sx:o={},className:t,truncate:a,...n})=>{const l={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:"inline"!==e||a?0:"auto",minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &[data-component="ActionList.Description"]':{color:"inherit"},'li[data-variant="danger"]:hover &[data-component="ActionList.Description"], li[data-variant="danger"]:active &[data-component="ActionList.Description"]':{color:"inherit"}},{blockDescriptionId:i,inlineDescriptionId:c}=r.useContext(Pd);return"block"!==e&&a?r.createElement(og,{id:c,className:t,sx:oo(l,o),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description"},n.children):r.createElement(ht,{as:"span",sx:oo(l,o),id:"block"===e?i:c,className:t,"data-component":"ActionList.Description"},n.children)};function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ag.apply(null,arguments)}const ng=({sx:e={},...o})=>r.createElement(ht,ag({as:"span",sx:oo({height:Hd,minWidth:Wr("space.3"),maxWidth:Hd,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2,color:"fg.muted"},e)},o));ng.displayName="LeadingVisualContainer";const lg=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(Pd);return r.createElement(ng,ag({sx:oo({color:Dd(t,a,n).iconColor,svg:{fontSize:0},'[data-variant="danger"]:not([aria-disabled]):not([data-inactive]):hover &, [data-variant="danger"]:active &':{color:Dd(t,a,n).hoverColor}},e)},o),o.children)};lg.displayName="LeadingVisual";const ig=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n,trailingVisualId:l}=r.useContext(Pd);return r.createElement(ht,ag({id:l,as:"span",sx:oo({height:"20px",flexShrink:0,color:Dd(t,a,n).annotationColor,marginLeft:2,fontWeight:"initial",display:"grid",alignContent:"center",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:Dd(t,a,n).hoverColor}},e)},o),o.children)};ig.displayName="TrailingVisual";const cg=({children:e,labelId:o,loading:t,inactiveText:a,itemHasLeadingVisual:n,position:l})=>{const i="leading"===l?lg:ig;return t||a?n&&"trailing"===l||!n&&"leading"===l?e:a?r.createElement(Zl,{text:a,type:"label"},r.createElement(ht,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer"},"aria-describedby":o},r.createElement(i,null,r.createElement(pc,null)))):r.createElement(i,null,r.createElement(Dt,{size:"small"})):e},sg=({selected:e})=>{const{selectionVariant:o,role:t}=r.useContext(Vd),{selectionVariant:a}=r.useContext(Xd);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(ng,{"data-component":"ActionList.Selection"},e&&r.createElement(xc,null));return r.createElement(ng,{"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)"}}},"@media (forced-colors: active)":{borderWidth:e?"8px":"1px"}},"data-component":"ActionList.Checkbox"}))};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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},dg.apply(null,arguments)}sg.displayName="Selection";const gg=u((({as:e="button",icon:o,label:t,href:a=null,...n},l)=>o?r.createElement(ht,{as:"span","data-component":"ActionList.TrailingAction",sx:{flexShrink:0}},r.createElement(ql,dg({as:e,"aria-label":t,icon:o,variant:"invisible",tooltipDirection:"w",href:a,ref:l},n))):r.createElement(ht,{"data-component":"ActionList.TrailingAction",as:"span",sx:{flexShrink:0}},r.createElement(An,dg({variant:"invisible",as:e,href:a,ref:l},n),t))));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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ug.apply(null,arguments)}gg.displayName="ActionList.TrailingAction";const vg=m.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(ft),bg=r.forwardRef((({as:e="button",children:o,styles:t,...a},n)=>r.createElement(ht,ug({as:e,ref:n,sx:t},a),o))),fg=r.forwardRef((({variant:e="default",disabled:o=!1,inactiveText:t,selected:a,active:n=!1,onSelect:l,sx:i=pt,id:c,role:s,loading:d,_PrivateItemWrapper:g,...u},v)=>{var b;const[f,h]=oi(u.children,{leadingVisual:lg,trailingVisual:ig,trailingAction:gg,blockDescription:[tg,e=>"block"===e.variant],inlineDescription:[tg,e=>"block"!==e.variant]}),{container:p,afterSelect:m,selectionAttribute:y,defaultTrailingVisual:x}=r.useContext(Od),w=bt("primer_react_action_list_item_as_button"),C=x?r.createElement(ig,null,x):null,k=null!==(b=f.trailingVisual)&&void 0!==b?b:C,{variant:B,role:E,showDividers:T,selectionVariant:S}=r.useContext(Vd),{selectionVariant:N}=r.useContext(Xd),_=Boolean(t),I=_&&void 0===p,M=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[l]),A=N||S;let L;"ActionMenu"===p?L="single"===A?"menuitemradio":"multiple"===A?"menuitemcheckbox":"menuitem":"SelectPanel"===p&&"listbox"===E&&void 0!==A&&(L="option");const O=s||L,R="ActionMenu"===p||"SelectPanel"===p;let j;f.trailingAction&&R&&On(!1),"menuitemradio"===O||"menuitemcheckbox"===O?j="aria-checked":"option"===O&&(j="aria-selected");const z=y||j,P="option"===s||"menuitem"===s||"menuitemradio"===s||"menuitemcheckbox"===s,D=E&&["listbox","menu","list"].includes(E)||_||"NavList"===p||P,H=!D&&!g&&w,{theme:V}=ct(),F={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}},W={"@media (hover: hover) and (pointer: fine)":{"&:hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:Dd(e,o,_).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==V?void 0:V.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==V?void 0:V.colors.accent.emphasis}`},"&:active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:Dd(e,o,_).hoverColor}}},$={display:"flex",":not(:first-of-type)":{"--divider-color":null==V?void 0:V.colors.actionListItem.inlineDivider},width:H&&"full"!==B?"calc(100% - 16px)":"100%",marginX:H&&"full"!==B?"2":"0",borderRadius:2,...H?W:{}},Z={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Hd,minHeight:5,marginX:"inset"!==B||H?0:2,borderRadius:2,transition:"background 33.333ms linear",color:Dd(e,o,_||d).color,cursor:"pointer","&[data-loading]":{cursor:"default"},"&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--control-bgColor-disabled, rgba(175, 184, 193, 0.2))",borderColor:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"},'[data-component="ActionList.Selection"]':{color:"primer.fg.disabled"}},appearance:"none",background:"unset",border:"unset",width:"inset"!==B||H?"100%":"calc(100% - 16px)",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible, &[data-is-active-descendant]":{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:T?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==V?void 0:V.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...n?F:{},"&[data-is-active-descendant]":{...F,fontWeight:"normal"},...H?{}:W},K=r.useCallback((e=>{o||_||d||M(e,m)}),[M,o,_,m,d]),G=r.useCallback((e=>{o||_||d||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),M(e,m))}),[M,o,d,_,m]),q=ot(c),U=`${q}--label`,Y=`${q}--inline-description`,X=`${q}--block-description`,Q=`${q}--trailing-visual`,J=_&&!I?`${q}--warning-message`:void 0;let ee=r.Fragment;w&&(ee=D?r.Fragment:bg);const re=g||ee,oe=z&&O&&["menuitemradio","menuitemcheckbox","option"].includes(O),te={onClick:K,onKeyPress:H?void 0:G,"aria-disabled":!!o||void 0,"data-inactive":!!_||void 0,"data-loading":!(!d||_)||void 0,tabIndex:o||I?void 0:0,"aria-labelledby":`${U} ${f.trailingVisual?Q:""} ${f.inlineDescription?Y:""}`,"aria-describedby":[f.blockDescription?X:void 0,null!=J?J:void 0].filter(String).join(" ").trim()||void 0,...oe&&{[z]:a},role:O,id:q};let ae,ne;return w?(ae=g?{role:O?"none":void 0,...u}:D&&{...te,...u,ref:v}||{},ne=g?te:!D&&{...te,...u,styles:oo(Z,i),ref:v}):(ae=g?{role:O?"none":void 0}:{...te,...u},ne=g?te:{}),r.createElement(Pd.Provider,{value:{variant:e,disabled:o,inactive:Boolean(t),inlineDescriptionId:Y,blockDescriptionId:X,trailingVisualId:Q}},r.createElement(vg,ug({ref:!w||D?v:null,sx:w?oo(D||g?Z:$,D||g?i:{}):oo(Z,i),"data-variant":"danger"===e?e:void 0},ae),r.createElement(re,ne,r.createElement(sg,{selected:a}),r.createElement(cg,{inactiveText:I?t:void 0,itemHasLeadingVisual:Boolean(f.leadingVisual),labelId:U,loading:d,position:"leading"},f.leadingVisual),r.createElement(ht,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Wt,{if:Boolean(k||(I||d)&&!f.leadingVisual),sx:{display:"flex",flexGrow:1}},r.createElement(Wt,{if:!!f.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(ht,{as:"span",id:U,sx:{flexGrow:f.inlineDescription?0:1,fontWeight:f.inlineDescription||f.blockDescription||n?"bold":"normal",marginBlockEnd:f.blockDescription?"4px":void 0,wordBreak:f.inlineDescription?"normal":"break-word",lineHeight:"20px"}},h,!0===d&&r.createElement(Bl,null,"Loading")),f.inlineDescription),r.createElement(cg,{inactiveText:I?t:void 0,itemHasLeadingVisual:Boolean(f.leadingVisual),labelId:U,loading:d,position:"trailing"},k)),_&&p?r.createElement(ht,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:J},t):null,f.blockDescription)),!_&&!d&&!R&&Boolean(f.trailingAction)&&f.trailingAction))}));fg.displayName="ActionList.Item";var hg="prc_Link_85e08";function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pg.apply(null,arguments)}const mg=u((({as:e="a",className:o,inline:t,underline:a,hoverColor:n,...l},i)=>{const c=r.useRef(null);return rt(i,c),l.sx?r.createElement(ht,pg({as:e,className:Gr(o,hg),"data-muted":l.muted,"data-inline":t,"data-underline":a,"data-hover-color":n},l,{ref:c})):r.createElement(e,pg({className:Gr(o,hg),"data-muted":l.muted,"data-inline":t,"data-underline":a,"data-hover-color":n},l,{ref:c}))}));function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yg.apply(null,arguments)}mg.displayName="Link";const xg=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(fg,{active:o,sx:{paddingY:0,paddingX:0},inactiveText:t,"data-inactive":!!t||void 0,_PrivateItemWrapper:({children:o,onClick:c,...s})=>t?r.createElement(ht,yg({sx:oo(i,e)},s),o):r.createElement(mg,yg({as:a,sx:oo(i,e)},s,n,{onClick:e=>{c&&c(e),n.onClick&&n.onClick(e)},ref:l}),o)},n.children)})),wg=({sx:e=pt,className:o})=>bt("primer_react_css_modules_team")?e!==pt?r.createElement(ht,{className:Gr(o,Kd),as:"li","aria-hidden":"true",sx:e,"data-component":"ActionList.Divider"}):r.createElement("li",{className:Gr(o,Kd),"aria-hidden":"true","data-component":"ActionList.Divider"}):r.createElement(ht,{as:"li","aria-hidden":"true",sx:oo({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Wr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none",marginRight:"calc(-1 * var(--base-size-8))",marginLeft:"calc(-1 * var(--base-size-8))"},e),className:o,"data-component":"ActionList.Divider"});wg.displayName="Divider";const Cg=Object.assign(Ud,{Group:Qd,Item:fg,LinkItem:xg,Divider:wg,Description:tg,LeadingVisual:lg,TrailingVisual:ig,Heading:$d,GroupHeading:Jd,TrailingAction:gg});function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},kg.apply(null,arguments)}const Bg={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},Eg={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Tg=m.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;}&[data-reflow-container='true']{max-width:calc(100vw - 2rem);}",";"],Wr("colors.canvas.overlay"),Wr("shadows.overlay.shadow"),(e=>e.maxWidth&&Eg[e.maxWidth]),(e=>Bg[e.height||"auto"]),(e=>e.maxHeight&&Bg[e.maxHeight]),(e=>Eg[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Wr("animation.easeOutCubic"),ft),Sg=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:u,left:v,right:b,bottom:f,anchorSide:h,portalContainerName:p,preventFocusOnOpen:m,position:y,style:x={},preventOverflow:w=!0,...C},k)=>{const B=l(null);rt(k,B);const{theme:E}=ct(),T=parseInt(Wr("space.2")(E).replace("px","")),S=Wr("animation.easeOutCubic")(E);qo({overlayRef:B,returnFocusRef:n,onEscape:c,ignoreClickRefs:i,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:m}),a((()=>{var e;"initial"===d&&null!==(e=B.current)&&void 0!==e&&e.clientHeight&&(B.current.style.height=`${B.current.clientHeight}px`)}),[d]),Zo((()=>{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=B.current)&&void 0!==e&&e.animate&&"hidden"!==s&&B.current.animate({transform:[`translate(${T*r}px, ${T*o}px)`,"translate(0, 0)"]},{duration:200,easing:S})}),[h,T,S,s]);const N=void 0===v&&void 0===b?{left:0}:{left:v},_=bt("primer_react_overlay_overflow");return r.createElement(Kc,{containerName:p},r.createElement(Tg,kg({height:d,width:g,role:o},C,{ref:B,style:{...N,right:b,top:u,bottom:f,position:y,"--styled-overlay-visibility":s,...x},"data-reflow-container":!(!_&&w)||void 0})))}));function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ng.apply(null,arguments)}const _g=({renderAnchor:e,anchorRef:o,anchorId:n,children:l,open:i,onOpen:c,onClose:s,height:d,width:g,overlayProps:u,focusTrapSettings:v,focusZoneSettings:b,side:f="outside-bottom",align:h="start",alignmentOffset:p,anchorOffset:m,className:y,preventOverflow:x=!0})=>{const w=co(o),[C,k]=Uo(),B=ot(n),E=t((()=>null==s?void 0:s("click-outside")),[s]),T=t((()=>null==s?void 0:s("escape")),[s]),S=t((e=>{e.defaultPrevented||!i&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press",e),e.preventDefault())}),[i,c]),N=t((e=>{e.defaultPrevented||0!==e.button||(i?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[i,c,s]),{position:_}=Go({anchorElementRef:w,floatingElementRef:C,side:f,align:h,alignmentOffset:p,anchorOffset:m},[C.current]);return a((()=>{!i&&C.current&&k(null)}),[i,C,k]),Vc({containerRef:C,disabled:!i||!_,...b}),bc({containerRef:C,disabled:!i||!_,...v}),r.createElement(r.Fragment,null,e&&e({ref:w,id:B,"aria-haspopup":"true","aria-expanded":i,tabIndex:0,onClick:N,onKeyDown:S}),i?r.createElement(Sg,Ng({returnFocusRef:w,onClickOutside:E,ignoreClickRefs:[w],onEscape:T,ref:k,role:"none",visibility:_?"visible":"hidden",height:d,width:g,top:(null==_?void 0:_.top)||0,left:(null==_?void 0:_.left)||0,anchorSide:null==_?void 0:_.anchorSide,className:y,preventOverflow:x},u),l):null)};function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ig.apply(null,arguments)}_g.displayName="AnchoredOverlay";const Mg=r.createContext({renderAnchor:null,open:!1}),Ag=(e,r)=>{const o={...e};if("function"==typeof r.onClick){const t=e.onClick,a=e=>{var o;null===(o=r.onClick)||void 0===o||o.call(r,e),null==t||t(e)};o.onClick=a}if("function"==typeof r.onKeyDown){const t=e.onKeyDown,a=e=>{var o;null===(o=r.onKeyDown)||void 0===o||o.call(r,e),null==t||t(e)};o.onKeyDown=a}return o},Lg=({anchorRef:e,open:o,onOpenChange:t,children:a})=>{const n=g(Mg),[l,i]=Yo(o,t,!1),c=r.useCallback((()=>i(!0)),[i]),s=r.useCallback((e=>{var r;switch(i(!1),e){case"tab":case"item-select":null===(r=n.onClose)||void 0===r||r.call(n,e)}}),[i,n]),d=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===Rg||e.type===Og))),u=r.isValidElement(d)?d.props.id:void 0,v=co(e),b=ot(u);let f=null;const h=r.Children.map(a,(e=>{if(e.type===Zl){const o=e.props.children;return o.type===Rg&&(f=t=>{const a=r.cloneElement(o,Ag({...t},o.props));return r.cloneElement(e,{children:a,ref:v})}),null}if(e.type===Og){const o=e.props.children;return void 0!==o&&o.type===Zl?null!==o.props.children&&(f=t=>{const a=o.props.children,n=r.cloneElement(a,Ag({...t},a.props)),l=r.cloneElement(o,{children:n});return r.cloneElement(e,{children:l,ref:v})}):f=o=>r.cloneElement(e,o),null}return e.type===Rg?(f=o=>r.cloneElement(e,Ag(o,e.props)),null):e}));return r.createElement(Mg.Provider,{value:{anchorRef:v,renderAnchor:f,anchorId:b,open:l,onOpen:c,onClose:s,isSubmenu:void 0!==n.isSubmenu}},h)};Lg.displayName="Menu";const Og=r.forwardRef((({children:e,...a},n)=>{const{onOpen:l,isSubmenu:i}=r.useContext(Mg),c=t((e=>{i&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==l||l("anchor-key-press"))}),[i,l]),s=g(Od),d=o((()=>i?{...s,defaultTrailingVisual:r.createElement(kc,null),afterSelect:()=>null==l?void 0:l("anchor-click")}:s),[i,l,s]);return r.createElement(Od.Provider,{value:d},r.cloneElement(e,{...a,ref:n,onClick:r=>{var o,t,n;null===(o=(t=e.props).onClick)||void 0===o||o.call(t,r),null===(n=a.onClick)||void 0===n||n.call(a,r)},onKeyDown:r=>{var o,t,n;null===(o=(t=e.props).onKeyDown)||void 0===o||o.call(t,r),c(r),null===(n=a.onKeyDown)||void 0===n||n.call(a,r)}}))})),Rg=r.forwardRef((({...e},o)=>r.createElement(Og,{ref:o},r.createElement(An,Ig({type:"button",trailingAction:Dc},e))))),jg=({children:e,align:o="start",side:t,"aria-labelledby":n,...l})=>{const{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,isSubmenu:b=!1}=r.useContext(Mg),f=r.useRef(null);Xo(g,v,f,c,b);const[h,p]=i(null);return a((()=>{if(null!=c&&c.current){const e=c.current.getAttribute("aria-labelledby");e&&p(e)}}),[c]),r.createElement(_g,{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,align:o,side:null!=t?t:b?"outside-right":"outside-bottom",overlayProps:l,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:f},r.createElement(Od.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:n||h||d,selectionAttribute:"aria-checked",afterSelect:()=>null==v?void 0:v("item-select"),enableFocusZone:!1}},e)))};jg.displayName="Overlay",Lg.displayName="ActionMenu";const zg=Object.assign(Lg,{Button:Rg,Anchor:Og,Overlay:jg,Divider:wg}),Pg=d(null);var Dg="prc_Spinner_Azb7p",Hg="prc_SpinnerLeading_s-LyA",Vg="prc_SpinnerHidden_GG1PJ",Fg="prc_SpinnerVisible_w5g8l",Wg="prc_Input_Ic-y8";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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$g.apply(null,arguments)}const Zg="primer_react_css_modules_staff",Kg=yt(Zg,"input",m.input.withConfig({displayName:"UnstyledTextInput__ToggledUnstyledTextInput",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)),Gg=r.forwardRef((function({className:e,...o},t){const a=bt(Zg);return r.createElement(Kg,$g({ref:t},o,{className:Gr(e,a&&Wg)}))}));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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qg.apply(null,arguments)}Gg.displayName="UnstyledTextInput";const Ug=({children:e,hasLoadingIndicator:o,showLoadingIndicator:t,visualPosition:a,id:n})=>{const l=bt(Zg),i="leading"===a;if(!e&&!o||i&&!e&&!t)return null;if(!o)return r.createElement("span",{className:"TextInput-icon",id:n,"aria-hidden":"true"},e);const c=l?{className:Gr(t?Vg:Fg)}:{sx:{visibility:t?"hidden":"visible"}},s=l?{className:Gr(t?Fg:Vg,e&&Dg,e&&i&&Hg)}:{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:t?"visible":"hidden",...i?{left:0}:{right:0}}:{visibility:t?"visible":"hidden"}};return r.createElement("span",{className:"TextInput-icon"},r.createElement(ht,{display:"flex",position:"relative",id:n},e&&r.createElement(ht,c,e),r.createElement(Dt,qg({srText:null},s,{size:e?void 0:"small"}))))};Ug.displayName="TextInputInnerVisualSlot";var Yg="prc_TextInputBaseWrapper_ueK9q",Xg="prc_TextInputWrapper_i1ofR";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)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Qg.apply(null,arguments)}const Jg=yt(Zg,"span",m.span.withConfig({displayName:"TextInputWrapper__StyledTextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:var(--base-size-20);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:var(--base-size-32);overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action]):focus-within){border-color:",";outline:2px solid ",";outline-offset:-1px;}> textarea{padding:var(--base-size-12);}&:where([data-contrast]){background-color:",";}&:where([data-disabled]){color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}}&:where([data-monospace]){font-family:",";}&:where([data-validation='error']){border-color:",";&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action])):focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}}&:where([data-validation='success']){border-color:",";}&:where([data-block]){width:100%;display:flex;align-self:stretch;}@media (min-width:","){font-size:var(--text-body-size-medium);}--inner-action-size:var(--base-size-24);&:where([data-size='small']){--inner-action-size:var(--base-size-20);min-height:var(--base-size-28);padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:var(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-size='large']){--inner-action-size:var(--base-size-28);height:var(--base-size-40);padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);}&:where([data-variant='small']){min-height:28px;padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-variant='large']){padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);font-size:var(--text-title-size-medium);}&{"," "," "," ","}"],Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.canvas.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("shadows.primer.shadow.inset"),Wr("colors.fg.muted"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.canvas.inset"),Wr("colors.primer.fg.disabled"),Wr("colors.input.disabledBg"),Wr("colors.border.default"),Wr("fonts.mono"),Wr("colors.danger.emphasis"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.success.emphasis"),Wr("breakpoints.1"),Ie,Ae,Oe,ft)),eu=r.forwardRef((function({className:e,style:o,variant:t,size:a,isInputFocused:n,hasTrailingAction:l,validationStatus:i,disabled:c,contrast:s,monospace:d,block:g,width:u,minWidth:v,maxWidth:b,...f},h){const p=bt(Zg),m=p?{}:{width:u,minWidth:v,maxWidth:b};return r.createElement(Jg,Qg({ref:h,className:Gr(e,p&&Yg),"data-block":g||void 0,"data-contrast":s||void 0,"data-disabled":c||void 0,"data-focused":n||void 0,"data-monospace":d||void 0,"data-size":a||void 0,"data-trailing-action":l||void 0,"data-validation":i||void 0,"data-variant":t||void 0,style:p&&"string"==typeof u?{width:u,...o}:o},m,f))}));eu.displayName="TextInputBaseWrapper";const ru=yt(Zg,eu,m(eu).withConfig({displayName:"TextInputWrapper__StyledTextInputWrapper",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;}padding-right:0;padding-left:0;> input,> select{padding-right:0;padding-left:0;}&:where([data-leading-visual]){padding-left:var(--base-size-12);}&:where([data-trailing-visual]:not([data-trailing-action])){padding-right:var(--base-size-12);}&:where(:not([data-leading-visual])) > input,&:where(:not([data-leading-visual])) > select{padding-left:var(--base-size-12);}&:where(:not([data-trailing-visual]):not([data-trailing-action])) > input,&:where(:not([data-trailing-visual]):not([data-trailing-action])) > select{padding-right:var(--base-size-12);}&{","}"],Wr("space.2"),Wr("colors.fg.muted"),ft)),ou=r.forwardRef((function({className:e,hasLeadingVisual:o,hasTrailingVisual:t,...a},n){return bt(Zg)?r.createElement(eu,Qg({ref:n,className:Gr(e,Xg),"data-leading-visual":o||void 0,"data-trailing-visual":t||void 0},a)):r.createElement(ru,Qg({ref:n,className:e,"data-leading-visual":o||void 0,"data-trailing-visual":t||void 0},a))}));var tu="prc_Invisible_uIWry";function au(){return au=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},au.apply(null,arguments)}const nu={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",backgroundColor:"transparent",color:"fg.subtle","&:hover, &:focus":{color:"fg.default"},'&[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"}}},lu=({"aria-label":e,children:o,tooltipDirection:t})=>r.createElement(r.Fragment,null,e?r.createElement(Zl,{text:e,direction:t,sx:{display:"inline-block"}},o):o),iu=u((({"aria-label":e,"aria-labelledby":o,tooltipDirection:t,children:a,icon:n,sx:l,className:i,variant:c="invisible",...s},d)=>{const g=bt(Zg)?{className:Gr("invisible"===c&&tu,i),sx:l||{}}:{className:i,sx:"invisible"===c?oo(nu,l||{}):l||{}};(n&&!e||!a&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology");const u=e?{"aria-label":e}:o?{"aria-labelledby":o}:{"aria-label":""};return r.createElement(ht,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},n&&!a&&e?r.createElement(ql,au({},u,{tooltipDirection:null!=t?t:"s",variant:c,type:"button",icon:n,size:"small"},g,s,{ref:d})):r.createElement(lu,{"aria-label":e},r.createElement(An,au({variant:c,type:"button"},g,s,{ref:d}),a)))}));function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},cu.apply(null,arguments)}const su=r.forwardRef((({icon:e,leadingVisual:o,trailingVisual:a,trailingAction:n,block:l,className:c,contrast:d,disabled:g,loading:u,loaderPosition:v="auto",loaderText:b="Loading",monospace:f,validationStatus:h,sx:p,size:m,onFocus:y,onBlur:x,width:w,minWidth:C,maxWidth:k,variant:B,type:E="text",required:T,...S},N)=>{const[_,I]=i(!1),M=co(N),A=Gr(c,"TextInput-wrapper"),L=u&&("leading"===v||Boolean(o&&"trailing"!==v)),O=u&&("trailing"===v||Boolean("auto"===v&&!o)),R=s(),j=s(),z=s(),P=Gr(S["aria-describedby"],o&&R,a&&j,u&&z)||void 0,D=t((e=>{I(!0),y&&y(e)}),[y]),H=t((e=>{I(!1),x&&x(e)}),[x]);return r.createElement(ou,{block:l,className:A,validationStatus:h,contrast:d,disabled:g,monospace:f,sx:p,size:m,width:w,minWidth:C,maxWidth:k,variant:B,hasLeadingVisual:Boolean(o||L),hasTrailingVisual:Boolean(a||O),hasTrailingAction:Boolean(n),isInputFocused:_,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},"aria-busy":Boolean(u)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Ug,{visualPosition:"leading",showLoadingIndicator:L,hasLoadingIndicator:"boolean"==typeof u,id:R,"data-testid":"text-input-leading-visual"},"string"!=typeof o&&Sn.isValidElementType(o)?r.createElement(o,null):o),r.createElement(Gg,cu({ref:M,disabled:g,onFocus:D,onBlur:H,type:E,"aria-required":T,"aria-invalid":"error"===h?"true":void 0},S,{"aria-describedby":P,"data-component":"input"})),u&&r.createElement(Bl,{id:z},b),r.createElement(Ug,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof u,id:j,"data-testid":"text-input-trailing-visual"},"string"!=typeof a&&Sn.isValidElementType(a)?r.createElement(a,null):a),n)}));su.displayName="TextInput";var du=Object.assign(su,{Action:iu});function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gu.apply(null,arguments)}const uu=new Set(["ArrowUp","ArrowDown"]),vu=r.forwardRef((({as:e=du,onFocus:o,onBlur:n,onChange:l,onKeyDown:c,onKeyUp:s,onKeyPress:d,value:u,openOnFocus:v=!1,...b},f)=>{const h=g(Pg);if(null===h)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:p,autocompleteSuggestion:m="",id:y,inputRef:x,inputValue:w="",isMenuDirectlyActivated:C,setInputValue:k,setShowMenu:B,showMenu:E}=h;rt(f,x);const[T,S]=i(!0),{safeSetTimeout:N}=gc(),_=t((e=>{n&&n(e),N((()=>{document.activeElement!==x.current&&B(!1)}),0)}),[n,B,x,N]),I=t((e=>{var r;c&&c(e),"Backspace"===e.key&&S(!1),"Escape"===e.key&&null!==(r=x.current)&&void 0!==r&&r.value&&(k(""),x.current.value=""),E||!uu.has(e.key)||e.altKey||B(!0)}),[x,k,S,c,E,B]),M=t((e=>{s&&s(e),"Backspace"===e.key&&S(!0)}),[S,s]),A=t((e=>{if(d&&d(e),E&&"Enter"===e.key&&p.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);p.current.dispatchEvent(r)}}),[p,E,d]);return a((()=>{x.current&&(m||(x.current.value=w),T&&m&&(w||C)&&(x.current.value=m,0===m.toLowerCase().indexOf(w.toLowerCase())&&x.current.setSelectionRange(w.length,m.length)))}),[m,w,x,C]),a((()=>{k(void 0!==u?u.toString():"")}),[u,k]),r.createElement(e,gu({onFocus:e=>{null==o||o(e),v&&B(!0)},onBlur:_,onChange:e=>{l&&l(e),k(e.currentTarget.value),E||B(!0)},onKeyDown:I,onKeyPress:A,onKeyUp:M,ref:x,"aria-controls":`${y}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":`${y}-listbox`,autoComplete:"off",id:y},b))}));function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bu.apply(null,arguments)}vu.displayName="AutocompleteInput";const fu={startMargin:0,endMargin:8};function hu(e){const t=g(Pg);if(null===t)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:c,inputRef:s,inputValue:d="",scrollContainerRef:u,setAutocompleteSuggestion:v,setShowMenu:b,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:p,showMenu:m}=t,{items:y,selectedItemIds:x,sortOnCloseFn:w,emptyStateText:C="No selectable options",addNewItem:k,loading:B,selectionVariant:E="single",filterFn:T,"aria-labelledby":S,onOpenChange:N,onSelectedChange:_,customScrollContainerRef:I}=e,M=l(null),A=l([]),[L,O]=i(),[R,j]=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;((_||(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("")):(b(!1),null===(a=s.current)||void 0===a||a.setSelectionRange(s.current.value.length,s.current.value.length))}})))),[L,y,x,s,_,E,v,f,b]),D=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)=>D[e.id]-D[r.id]));var e}),[P,D,T,d]),V=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(Rc,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((()=>{A.current=V})),Vc({containerRef:M,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:s,onActiveDescendantChanged:(e,r,o)=>{if(n.current=e||null,e){const r=A.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));O(r),h(o)}e&&I&&I.current&&o?$o(e,I.current,fu):e&&u.current&&o&&$o(e,u.current,fu)}},[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(w||(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||j(e),N&&N(Boolean(m))}),[m,N,x,w,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(Bl,{isVisible:m},B?r.createElement(ht,{p:3,display:"flex",justifyContent:"center"},r.createElement(Dt,null)):r.createElement("div",{ref:M},V.length?r.createElement(Cg,{selectionVariant:E,role:"listbox",id:`${c}-listbox`,"aria-labelledby":S},V.map((e=>{const{id:o,onAction:t,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(Cg.Item,bu({key:o,onSelect:()=>t(e)},c,{id:o,"data-id":o}),l&&r.createElement(Cg.LeadingVisual,null,Sn.isElement(l)?l:r.createElement(l,null)),null!=a?a:n,i&&r.createElement(Cg.TrailingVisual,null,Sn.isElement(i)?i:r.createElement(i,null)))}))):!1!==C&&null!==C?r.createElement(ht,{p:3},C):null))}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pu.apply(null,arguments)}function mu({menuAnchorRef:e,overlayProps:o,children:a,...n}){const l=g(Pg);if(null===l)throw new Error("AutocompleteContext returned null values");const i={...o,...n},{inputRef:c,scrollContainerRef:s,selectedItemLength:d,setShowMenu:u,showMenu:v=!1}=l,{floatingElementRef:b,position:f}=Go({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,d]);rt(s,b);const h=t((()=>{u(!1)}),[u]);return"undefined"==typeof window?null:v?r.createElement(Sg,pu({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:b,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:{overflow:"auto"}},i),a):r.createElement(Bl,{"aria-hidden":"true"},a)}hu.displayName="AutocompleteMenu",hu.displayName="AutocompleteMenu",mu.displayName="AutocompleteOverlay";const yu={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},xu=(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}},wu=({children:e,id:o})=>{const a=l(null),n=l(null),i=l(null),[c,s]=h(xu,yu),{inputValue:d,showMenu:g,autocompleteSuggestion:u,isMenuDirectlyActivated:v,selectedItemLength:b}=c,f=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})}),[]),w=ot(o);return r.createElement(Pg.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:u,id:w,inputRef:i,inputValue:d,isMenuDirectlyActivated:v,scrollContainerRef:n,selectedItemLength:b,setAutocompleteSuggestion:m,setInputValue:f,setIsMenuDirectlyActivated:y,setShowMenu:p,setSelectedItemLength:x,showMenu:g}},e)};wu.displayName="Autocomplete";var Cu=Object.assign(wu,{Context:Pg,Input:vu,Menu:hu,Overlay:mu}),ku="prc_Avatar_ZRS-m";function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bu.apply(null,arguments)}const Eu=20,Tu=r.forwardRef((function({alt:e="",size:o=20,square:t=!1,sx:a=pt,className:n,...l},i){const c=ei(o),s={};if(c)for(const[e,r]of Object.entries(o))s[`--avatarSize-${e}`]=`${r}px`;else s["--avatarSize-regular"]=`${o}px`;return a!==pt?r.createElement(ht,Bu({as:"img","data-component":"Avatar",className:Gr(n,ku),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":t?"":void 0,width:c?void 0:o,height:c?void 0:o,style:s,sx:a},l)):r.createElement("img",Bu({"data-component":"Avatar",className:Gr(n,ku),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":t?"":void 0,width:c?void 0:o,height:c?void 0:o,style:s},l))}));const Su={xsmall:{width:"320px"},small:{width:M.breakpoints[0]},medium:{width:M.breakpoints[1]},large:{width:M.breakpoints[2]},xlarge:{width:M.breakpoints[3]},xxlarge:{width:"1400px"}};function Nu(e){return`@media screen and (min-width: ${e})`}const _u=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(Su.medium.width),Iu=Nu(Su.medium.width),Mu=Nu(Su.xxlarge.width);function Au(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}function Lu(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}function Ou(e,r,o){if(ei(e)){const t=e,a="narrow"in t?{[_u]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[Iu]:{[r]:o(t.regular)}}:{},l="wide"in t?{[Mu]:{[r]:o(t.wide)}}:{};return Au(t)?{[r]:o(t.narrow)}:Lu(t)?{...a,...n}:{...a,...n,...l}}return{[r]:o(e)}}var Ru="prc_SkeletonBox_HR9PH";const ju="primer_react_css_modules_staff";function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zu.apply(null,arguments)}const Pu=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Du=yt(ju,"div",m.div.withConfig({displayName:"SkeletonBox__StyledSkeletonBox",componentId:"sc-ovy911-0"})(["animation:",";display:block;background-color:var(--bgColor-muted,",");border-radius:3px;height:",";width:",";@media (prefers-reduced-motion:no-preference){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;}@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}",";"],Pu,Wr("colors.canvas.subtle"),(e=>e.height||"1rem"),(e=>e.width),Pu,ft)),Hu=r.forwardRef((function({height:e,width:o,className:t,style:a,...n},l){const i=bt(ju);return r.createElement(Du,zu({height:i?void 0:e,width:i?void 0:o,className:Gr(t,{[Ru]:i}),style:i?oo(a,{height:e,width:o}):a},n,{ref:l}))}));var Vu="prc_SkeletonAvatar_TYNvX";function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Fu.apply(null,arguments)}const Wu={'&[data-component="SkeletonAvatar"]':{borderRadius:"50%",boxShadow:`0 0 0 1px ${Wr("colors.avatar.border")}`,display:"inline-block",lineHeight:Wr("lineHeights.condensedUltra"),height:"var(--avatar-size)",width:"var(--avatar-size)"},"&[data-square]":{borderRadius:"clamp(4px, var(--avatar-size) - 24px, 6px)"}},$u=({size:e=20,square:o,className:t,style:a,...n})=>{const l=ei(e),i={},c=bt(ju),s=l?{...Ou(e,"--avatar-size",(e=>`${e||Eu}px`)),...Wu}:{"--avatar-size":`${e}px`,...Wu};if(c)if(l)for(const[r,o]of Object.entries(e))i[`--avatarSize-${r}`]=`${o}px`;else i["--avatarSize-regular"]=`${e}px`;return r.createElement(Hu,Fu({sx:c?void 0:s,className:Gr(t,{[Vu]:c})},n,{"data-component":"SkeletonAvatar","data-responsive":l?"":void 0,"data-square":o?"":void 0,style:oo(a,c?i:{})}))};$u.displayName="SkeletonAvatar";var Zu="prc_AvatarPair_Av0UV",Ku="prc_AvatarChild_icdQd";function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gu.apply(null,arguments)}const qu=({children:e,className:o,...t})=>{const a=r.Children.map(e,((e,o)=>r.isValidElement(e)?0===o?r.cloneElement(e,{size:40}):e.type===$u?r.createElement($u,Gu({},e.props,{size:20})):r.createElement(Tu,Gu({className:Gr(e.props.className,Ku)},e.props,{size:20})):e));return r.createElement("div",Gu({className:Gr(o,Zu)},t),a)};qu.displayName="AvatarPair",qu.displayName="AvatarPair";var Uu="prc_AvatarStack_N-r3C",Yu="prc_AvatarItem_nS1mt",Xu="prc_AvatarStackBody_mSyoJ";const Qu={disabled:"[disabled]",hidden:"[hidden]",inert:"[inert]",negativeTabIndex:'[tabindex="-1"]'},Ju=["a[href]","button","summary","select","input:not([type=hidden])","textarea",'[tabindex="0"]',"audio[controls]","video[controls]","[contenteditable]"].map((e=>`${e}:not(${Object.values(Qu).join("):not(")})`));function ev(e,r){if(!e||rv(e))return!1;const o=ov(e,[e]);return Boolean(o)}function rv(e){const r=getComputedStyle(e),o=e.matches("[disabled], [hidden], [inert]"),t="none"===r.display||"hidden"===r.visibility;return o||t}function ov(e,r){if(!e)return;const o=r.find((r=>r===e)),t=rv(e);if(e.matches(Ju.join(", "))&&!o&&!t)return e;for(const o of e.children){if(ov(o,r))return!0}}const tv="primer_react_css_modules_team",av=yt(tv,"span",m.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);position:relative;overflow:hidden;display:flex;&:is(img){box-shadow:0 0 0 var(--avatar-border-width) ",";}&: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,&:not(.pc-AvatarStack--disableExpand):focus-within{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover,.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):focus-within{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;}",";"],Sd("1px"),(e=>1===e.count?Wr("colors.avatar.border"):Wr("colors.canvas.default")),55,40,25,Wr("space.1"),Wr("space.1"),(e=>1===e.count?"":`box-shadow: inset 0 0 0 4px ${Wr("colors.canvas.default")};`),Sd("1px"),ft)),nv=({disableExpand:e,hasInteractiveChildren:o,stackContainer:t,children:a})=>{const n=Gr("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":e});return bt(tv)?r.createElement("div",{"data-disable-expand":e?"":void 0,className:Gr(n,Xu),tabIndex:o||e?void 0:0,ref:t},a):r.createElement(ht,{className:n,tabIndex:o||e?void 0:0,ref:t},a)};nv.displayName="AvatarStackBody";const lv=({children:e,alignRight:o,disableExpand:t,size:n,className:c,sx:s=pt})=>{const d=bt(tv),[g,u]=i(!1),v=l(null),b=r.Children.count(e),f=Gr({"pc-AvatarStack--two":2===b,"pc-AvatarStack--three":3===b,"pc-AvatarStack--three-plus":b>3,"pc-AvatarStack--right":o},c),h=(()=>{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))ei(t.props.size)?o[r].push(t.props.size[r]||Eu):o[r].push(t.props.size||Eu),e[r]=Math.min(...o[r]);return e}),{narrow:Eu,regular:Eu,wide:Eu})})();a((()=>{if(v.current){const e=()=>{u(ev(v.current))},r=new MutationObserver(e);return r.observe(v.current,{childList:!0}),e(),()=>{r.disconnect()}}}),[]);const p=()=>n?ei(n)?d?{"--stackSize-narrow":`${n.narrow||Eu}px`,"--stackSize-regular":`${n.regular||Eu}px`,"--stackSize-wide":`${n.wide||Eu}px`}:Ou(n,"--avatar-stack-size",(e=>`${e||Eu}px`)):{"--avatar-stack-size":`${n}px`}:d?{"--stackSize-narrow":`${h.narrow}px`,"--stackSize-regular":`${h.regular}px`,"--stackSize-wide":`${h.wide}px`}:Ou(h,"--avatar-stack-size",(e=>`${e}px`)),m=oo(!d&&p(),s);return r.createElement(av,{count:d?void 0:b,"data-avatar-count":d?b>3?"3+":b:void 0,"data-align-right":d&&o?"":void 0,"data-responsive":!d||n&&!ei(n)?void 0:"",className:Gr(f,{[Uu]:d}),style:d?p():void 0,sx:m},r.createElement(nv,{disableExpand:t,hasInteractiveChildren:g,stackContainer:v}," ",((e,o)=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Gr(e.props.className,"pc-AvatarItem",{[Yu]:o})}):e)))(e,d)))};lv.displayName="AvatarStack";var iv="prc_BranchName_jFtg-";function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},cv.apply(null,arguments)}const sv=m.a.withConfig({displayName:"BranchName__StyledBranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:var(--text-body-size-small,",");font-family:var(--fontStack-monospace,",");color:var(--fgColor-link,",");background-color:var(--bgColor-accent-muted,",");border-radius:var(--borderRadius-medium,",");text-decoration:none;&:is(:not(a)){color:var(--fgColor-muted);}",";"],Wr("fontSizes.0"),Wr("fonts.mono"),Wr("colors.accent.fg"),Wr("colors.accent.subtle"),Wr("radii.2"),ft);function dv(e,o){const{as:t="a",className:a,children:n,sx:l,...i}=e;return bt("primer_react_css_modules_staff")?l?r.createElement(ht,cv({},i,{ref:o,as:t,className:Gr(a,iv),sx:l}),n):r.createElement(t,cv({},i,{ref:o,className:Gr(a,iv)}),n):r.createElement(sv,cv({},i,{as:t,ref:o,className:a,sx:l}),n)}dv.displayName="BranchName";const gv=r.forwardRef;dv.displayName="BranchName";var uv=gv(dv),vv="prc_BreadcrumbsBase_6gqOz",bv="prc_BreadcrumbsList_K7eeK",fv="prc_ItemWrapper_Mfwuj",hv="prc_Item_7BKO-",pv="prc_ItemSelected_9ZYcW";function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},mv.apply(null,arguments)}const yv="selected",xv="primer_react_css_modules_team",wv=yt(xv,"li",m.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;}}"],Wr("fontSizes.1"),Wr("colors.fg.muted"))),Cv=yt(xv,"nav",m.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],ft)),kv=({children:e})=>bt(xv)?r.createElement("ol",{className:bv},e):r.createElement(ht,{as:"ol",my:0,pl:0},e);function Bv({className:e,children:o,sx:t}){const a=bt(xv),n=r.Children.map(o,(e=>r.createElement(wv,{className:Gr({[fv]:a})},e)));return r.createElement(Cv,{className:Gr(e,{[vv]:a}),"aria-label":"Breadcrumbs",sx:t},r.createElement(kv,null,n))}kv.displayName="BreadcrumbsList",Bv.displayName="Breadcrumbs";const Ev=yt(xv,"a",m.a.withConfig({displayName:"Breadcrumbs__StyledBreadcrumbsItem",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;}",";"],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),ft)),Tv=r.forwardRef((({selected:e,className:o,...t},a)=>{const n=bt(xv);return r.createElement(Ev,mv({className:Gr(o,{[yv]:e,[hv]:n,[pv]:n&&e}),"aria-current":e?"page":null,ref:a},t))}));Bv.displayName="Breadcrumbs",Tv.displayName="Breadcrumbs.Item";var Sv=Object.assign(Bv,{Item:Tv});const Nv=Object.assign(Bv,{Item:Tv});var _v="prc_ButtonGroup_vcMeG";function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Iv.apply(null,arguments)}const Mv=yt("primer_react_css_modules_ga","div",m.div.withConfig({displayName:"ButtonGroup__StyledButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *:not([data-loading-wrapper]){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;}}[data-loading-wrapper]{:first-child{button,a{border-top-left-radius:",";border-bottom-left-radius:",";}}:last-child{button,a{border-top-right-radius:",";border-bottom-right-radius:",";}}}[data-loading-wrapper] > *{margin-inline-end:-1px;position:relative;border-radius:0;:focus,:active,:hover{z-index:1;}}",";"],Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),ft)),Av=r.forwardRef((function({children:e,className:o,role:t,...a},n){const l=bt("primer_react_css_modules_ga"),i=co(n);return Vc({containerRef:i,disabled:"toolbar"!==t,bindKeys:Ro.ArrowHorizontal,focusOutBehavior:"wrap"}),r.createElement(Mv,Iv({ref:i,className:Gr(o,{[_v]:l}),role:t},a),e)}));Av.displayName="ButtonGroup";const Lv={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Ov={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Rv(e,r,o){const t=Lv[e].toLowerCase(),a=Ov[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const jv=Pr({prop:"bg",key:"colors"}),zv=Pr({prop:"borderColor",key:"colors"}),Pv=Pr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Dv(e){var o;const t=r.useContext(k),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}=jv(a),{borderColor:l}=zv(a),{borderWidth:i}=Pv(a),{size:c=8,location:s="bottom"}=e,[d,g]=function(e){const[r,o]=e.split("-");return[r,o]}(s),u=Ov[d],v=[-c,0],b=[0,c],f=[c,0],h=`M${v}L${b}L${f}L${v}Z`,p=`M${v}L${b}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",...Rv(d,g,c),[`margin${u}`]: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 Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Hv.apply(null,arguments)}function Vv(e){const{size:o=32,as:t,icon:a,bg:n,"aria-label":l,...i}=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,Hv({display:"flex",as:t,size:o},i,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:o,"aria-label":l})))}Dv.displayName="Caret",Dv.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Vv.displayName="CircleOcticon";const Fv=d(null),Wv=Fv.Provider;function $v(){var e;return null!==(e=g(Fv))&&void 0!==e?e:{}}function Zv(e){const r=g(Fv);return r?{disabled:r.disabled,id:r.id,required:r.required,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const Kv=d({});var Gv="prc_Checkbox_gIwWX";function qv(){return qv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qv.apply(null,arguments)}const Uv=r.forwardRef((({checked:e,className:o,defaultChecked:t,indeterminate:n,disabled:l,onChange:i,sx:c,required:s,validationStatus:d,value:u,...v},b)=>{const f=co(b),h=g(Kv),p={type:"checkbox",disabled:l,ref:f,checked:!n&&e,defaultChecked:t,required:s,"aria-required":s?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{h.onChange&&h.onChange(e),i&&i(e)},value:u,name:u,...v};return Zo((()=>{f.current&&(f.current.indeterminate=n||!1)}),[n,e,f]),a((()=>{const{current:e}=f;e&&(n?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),c?r.createElement(ht,qv({as:"input"},p,{className:Gr(o,Id,Gv),sx:c})):r.createElement("input",qv({},p,{className:Gr(o,Id,Gv)}))}));Uv.displayName="Checkbox";var Yv={Select:"prc_Select_F7Flx",TextInputWrapper:"prc_TextInputWrapper_eBxmL",disabled:"prc_disabled_qvF9B",ArrowIndicator:"prc_ArrowIndicator_vtddB"};function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Xv.apply(null,arguments)}const Qv="primer_react_css_modules_staff",Jv=yt(Qv,"select",m.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-124jcjr-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;}}"])),eb=({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"}));eb.displayName="ArrowIndicatorSVG";const rb=m(eb).withConfig({displayName:"Select__StyledArrowIndicatorSVG",componentId:"sc-124jcjr-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),ob=({className:e})=>bt(Qv)?r.createElement(eb,{className:Gr(Yv.ArrowIndicator,e)}):r.createElement(rb,null);ob.displayName="ArrowIndicator";const tb=r.forwardRef((({block:e,children:o,contrast:t,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,...s},d)=>bt(Qv)?r.createElement(ou,{block:e,contrast:t,disabled:a,size:l,validationStatus:c,className:Yv.TextInputWrapper,sx:s.sx},r.createElement(Jv,Xv({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0,className:Gr(Yv.Select,a&&Yv.Disabled)},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(ob,{className:Yv.ArrowIndicator})):r.createElement(ou,{sx:{overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},block:e,contrast:t,disabled:a,size:l,validationStatus:c},r.createElement(Jv,Xv({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(ob,null)))),ab=e=>r.createElement("option",e);ab.displayName="Option";const nb=e=>r.createElement("optgroup",e);nb.displayName="OptGroup";var lb=Object.assign(tb,{Option:ab,OptGroup:nb});function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ib.apply(null,arguments)}const cb=m.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-cjezay-0"})(["{}padding:6px ",";font-size:",";font-weight:",";color:",";"," ",""],Wr("space.3"),Wr("fontSizes.0"),Wr("fontWeights.bold"),Wr("colors.fg.muted"),(({variant:e})=>"filled"===e&&C(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Wr("colors.canvas.subtle"),Wr("space.2"),Wr("colors.neutral.muted"),Wr("colors.neutral.muted"))),ft);function sb({variant:e="subtle",title:o,auxiliaryText:t,children:a,...n}){return r.createElement(cb,ib({role:"heading",variant:e},n),o,t&&r.createElement("span",null,t))}sb.displayName="Header";const db=m.div.withConfig({displayName:"Group__StyledGroup",componentId:"sc-1s2aw76-0"})(["",""],ft);function gb({header:e,items:o,...t}){return r.createElement(db,t,e&&r.createElement(sb,e),o)}gb.displayName="Group";const ub=m.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1s7tlfq-0"})(["height:1px;background:",";margin-top:calc("," - 1px);margin-bottom:",";"],Wr("colors.border.muted"),Wr("space.2"),Wr("space.2"));function vb(){return r.createElement(ub,null)}function bb(){return bb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bb.apply(null,arguments)}vb.displayName="Divider",vb.renderItem=vb;const fb=(e="default",r)=>r?{color:Wr("colors.primer.fg.disabled"),iconColor:Wr("colors.primer.fg.disabled"),annotationColor:Wr("colors.primer.fg.disabled"),hoverCursor:"default"}:"danger"===e?{color:Wr("colors.danger.fg"),iconColor:Wr("colors.danger.fg"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.danger.hoverBg"),focusBg:Wr("colors.actionListItem.danger.activeBg"),hoverText:Wr("colors.actionListItem.danger.hoverText")}:{color:Wr("colors.fg.default"),iconColor:Wr("colors.fg.muted"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.default.hoverBg"),focusBg:Wr("colors.actionListItem.default.activeBg")},hb=m.div.withConfig({displayName:"Item__DividedContent",componentId:"sc-y6iv6t-0"})(["display:flex;min-width:0;position:relative;flex-grow:1;"]),pb=m.div.withConfig({displayName:"Item__MainContent",componentId:"sc-y6iv6t-1"})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]),mb=m.div.withConfig({displayName:"Item__StyledItem",componentId:"sc-y6iv6t-2"})(["padding:6px ",";display:flex;border-radius:",";color:",";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,"," );color:",";cursor:",";}}:not(:first-of-type):not("," + &):not("," + &){margin-top:",";","::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ",";border-top-width:",";}}&:hover ","::before,:hover + * ","::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ","::before,:focus + * ","::before,&[","] ","::before,[","] + & ","::before{border-color:transparent !important;}&[","='","']{background:",";}&[","='","']{background:",";}&:focus{background:",";outline:none;}&:active{background:",";}",""],Wr("space.2"),Wr("radii.2"),(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).color),(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).hoverText),(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).hoverCursor),ub,cb,(({showDivider:e})=>e?"1px":"0"),hb,Wr("colors.border.muted"),(({showDivider:e})=>e?"1px":"0"),hb,hb,hb,hb,Do,hb,Do,hb,Do,Ho,(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).focusBg),Do,Vo,(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).focusBg),(({variant:e,item:r})=>fb(e,null==r?void 0:r.disabled).focusBg),ft),yb=m.span.withConfig({displayName:"Item__TextContainer",componentId:"sc-y6iv6t-3"})([""]),xb=m.div.withConfig({displayName:"Item__BaseVisualContainer",componentId:"sc-y6iv6t-4"})(["height:20px;width:",";margin-right:",";display:flex;justify-content:center;align-items:center;flex-shrink:0;"],Wr("space.3"),Wr("space.2")),wb=m(xb).withConfig({displayName:"Item__ColoredVisualContainer",componentId:"sc-y6iv6t-5"})(["svg{fill:",";font-size:",";}"],(({variant:e,disabled:r})=>fb(e,r).iconColor),Wr("fontSizes.0")),Cb=m(wb).withConfig({displayName:"Item__LeadingVisualContainer",componentId:"sc-y6iv6t-6"})(["display:flex;flex-direction:column;justify-content:center;"]),kb=m(wb).withConfig({displayName:"Item__TrailingContent",componentId:"sc-y6iv6t-7"})(["color:",";margin-left:",";margin-right:0;width:auto;div:nth-child(2){margin-left:",";}"],(({variant:e,disabled:r})=>fb(e,r).annotationColor),Wr("space.2"),Wr("space.2")),Bb=m.span.withConfig({displayName:"Item__DescriptionContainer",componentId:"sc-y6iv6t-8"})(["color:",";font-size:",";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"],Wr("colors.fg.muted"),Wr("fontSizes.0")),Eb=m.svg.withConfig({displayName:"Item__MultiSelectIcon",componentId:"sc-y6iv6t-9"})(["rect{fill:",";stroke:",";shape-rendering:auto;}path{fill:",";boxshadow:",";opacity:",";}"],(({selected:e})=>Wr(e?"colors.accent.fg":"colors.canvas.default")),(({selected:e})=>Wr(e?"colors.accent.fg":"colors.border.default")),Wr("colors.fg.onEmphasis"),Wr("shadow.small"),(({selected:e})=>e?1:0)),Tb=r.forwardRef(((e,o)=>{const{as:a,text:n,description:l,descriptionVariant:i="inline",selected:c,selectionVariant:s,leadingVisual:d,trailingIcon:g,trailingVisual:u,trailingText:v,variant:b="default",showDivider:f,disabled:h,onAction:p,onKeyPress:m,children:y,onClick:x,id:w,...C}=e,k=ot(),B=ot(),E=t((r=>{h||(null==m||m(r),!r.defaultPrevented&&[" ","Enter"].includes(r.key)&&(null==p||p(e,r)))}),[p,h,e,m]),T=t((r=>{h||(null==x||x(r),r.defaultPrevented||null==p||p(e,r))}),[p,h,e,x]),{theme:S}=ct();return r.createElement(mb,bb({ref:o,as:a,tabIndex:h?void 0:-1,variant:b,showDivider:f,"aria-selected":c,"aria-labelledby":n?k:void 0,"aria-describedby":l?B:void 0},C,{"data-id":w,onKeyPress:E,onClick:T}),!!c===c&&r.createElement(xb,null,"multiple"===s?r.createElement(r.Fragment,null,r.createElement(Eb,{selected:c,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r.createElement("rect",{x:"2",y:"2",width:"12",height:"12",rx:"4"}),r.createElement("path",{fillRule:"evenodd",strokeWidth:"0",d:"M4.03231 8.69862C3.84775 8.20646 4.49385 7.77554 4.95539 7.77554C5.41693 7.77554 6.80154 9.85246 6.80154 9.85246C6.80154 9.85246 10.2631 4.314 10.4938 4.08323C10.7246 3.85246 11.8785 4.08323 11.4169 5.00631C11.0081 5.82388 7.26308 11.4678 7.26308 11.4678C7.26308 11.4678 6.80154 12.1602 6.34 11.4678C5.87846 10.7755 4.21687 9.19077 4.03231 8.69862Z"}))):c&&r.createElement(xc,{fill:null==S?void 0:S.colors.fg.default})),d&&r.createElement(Cb,{variant:b,disabled:h},r.createElement(d,null)),r.createElement(hb,null,r.createElement(pb,{style:{"--main-content-flex-direction":"inline"===i?"row":"column"}},y,n?r.createElement(yb,{id:k},n):null,l?r.createElement(Bb,{id:B,style:{"--description-container-margin-left":"inline"===i?Wr("space.2")(S):0,"--description-container-flex-basis":"inline"===i?0:"auto"}},"block"===i?l:r.createElement(og,{title:l,inline:!0,maxWidth:"100%"},l)):null),u?r.createElement(kb,{variant:b,disabled:h},"string"!=typeof u&&Sn.isValidElementType(u)?r.createElement(u,null):u):g||v?r.createElement(kb,{variant:b,disabled:h},v,g&&r.createElement(g,null)):null))}));function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Sb.apply(null,arguments)}Tb.displayName="ActionList.Item";const Nb=m.div.withConfig({displayName:"List__StyledList",componentId:"sc-hkz3q0-0"})(["font-size:",";line-height:20px;&[","],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:",";}"],Wr("fontSizes.1"),Fo,Wr("colors.border.muted"));const _b=r.forwardRef(((e,o)=>{const{firstGroupStyle:t,lastGroupStyle:a,headerStyle:n,itemStyle:l}=function(e="inset"){return"full"===e?{headerStyle:{paddingX:Wr("space.2")},itemStyle:{borderRadius:0}}:{firstGroupStyle:{marginTop:Wr("space.2")},lastGroupStyle:{marginBottom:Wr("space.2")},itemStyle:{marginX:Wr("space.2")}}}(e.variant),i=(o,t,a)=>{var n,i,c;const s="renderItem"in o&&o.renderItem||e.renderItem||Tb,d=null!==(n=null!==(i="key"in o?o.key:void 0)&&void 0!==i?i:null===(c=o.id)||void 0===c?void 0:c.toString())&&void 0!==n?n:a.toString();return r.createElement(s,Sb({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},o,{key:d,sx:{...l,...o.sx},item:t}))};let c=[];if(function(e){return"groupMetadata"in e}(e)){const r=e.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const o of e.items){var s,d,g;const e=r.get(o.groupId),t=null!==(s=null==e||null===(d=e.items)||void 0===d?void 0:d.length)&&void 0!==s?s:0;r.set(o.groupId,{...e,items:[...null!==(g=null==e?void 0:e.items)&&void 0!==g?g:[],i({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...o},o,t)]})}c=[...r.values()]}else c=[{items:e.items.map(((e,r)=>i(e,e,r))),groupId:"0"}];return r.createElement(Nb,Sb({},e,{ref:o}),c.map((({header:o,...l},i)=>{const s="filled"===(null==o?void 0:o.variant),d=i>0&&!s;return r.createElement(r.Fragment,{key:l.groupId},d?r.createElement(vb,{key:`${l.groupId}-divider`}):null,(o=>{var t;const a=(null!==(t="renderGroup"in o&&o.renderGroup)&&void 0!==t?t:e.renderGroup)||gb;return r.createElement(a,Sb({},o,{key:o.groupId}))})({sx:{...0===i&&t,...i===c.length-1&&a,...i>0&&!d&&{mt:2}},...o&&{header:{...o,sx:{...n,...o.sx}}},...l}))})))}));_b.displayName="ActionList";const Ib=Object.assign(_b,{Group:gb,Item:Tb,Divider:vb});function Mb(e){a((()=>{const r=e.current;if(!r)return;const o=r.scrollTop,t=r.scrollHeight,a=o<Math.min(1,t)?o+1:o-1;r.scrollTop=a,r.scrollTop=o}),[e])}function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ab.apply(null,arguments)}const Lb={startMargin:0,endMargin:8},Ob=m.div.withConfig({displayName:"FilteredActionListWithDeprecatedActionList__StyledHeader",componentId:"sc-o1spcd-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function Rb({loading:e=!1,placeholderText:o,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,className:u,...v}){const[b,f]=Yo(n,void 0,""),h=t((e=>{const r=e.target.value;i(r,e),f(r)}),[i,f]),p=l(null),m=l(null),y=co(d),x=l(),w=ot(),C=ot(),k=t((e=>{if("Enter"===e.key&&x.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);x.current.dispatchEvent(r)}}),[x]);return Vc({containerRef:m,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:y,onActiveDescendantChanged:(e,r,o)=>{x.current=e,e&&p.current&&o&&$o(e,p.current,Lb)}},[e]),a((()=>{x.current&&p.current&&$o(x.current,p.current,{...Lb,behavior:"auto"})}),[c]),Mb(p),r.createElement(ht,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:u,"data-testid":"filtered-action-list"},r.createElement(Ob,null,r.createElement(du,Ab({ref:y,block:!0,width:"auto",color:"fg.default",value:b,onChange:h,onKeyPress:k,placeholder:o,"aria-label":o,"aria-controls":w,"aria-describedby":C},s))),r.createElement(Mt,{id:C},"Items will be filtered as you type"),r.createElement(ht,{ref:p,overflow:"auto"},e?r.createElement(ht,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Dt,null)):r.createElement(Ib,Ab({ref:m,items:c},v,{role:"listbox",id:w}))))}Rb.displayName="FilteredActionList",Rb.displayName="FilteredActionList";const jb=(e,r)=>{const o=e.current,t=null==o?void 0:o.querySelector("[data-is-active-descendant]");if(!o||null==t||!t.textContent)return;const a=o.querySelectorAll('[role="option"]'),n=Array.from(a).indexOf(t),l=r[n];return{index:n,text:l.text,selected:l.selected}},zb=(e,r,o)=>{const t=document.querySelector("live-region");a((function(){const a=()=>{window.requestAnimationFrame((()=>{const o=jb(r,e);if(!o)return;const{index:a,text:n,selected:l}=o;$a(["Focus on filter text box and list of items",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:t||void 0})}))},n=o.current;return null==n||n.addEventListener("focus",a),()=>null==n?void 0:n.removeEventListener("focus",a)}),[r,o,e,t]);const n=(()=>{const e=l(!0);return a((()=>{e.current=!1}),[]),e.current})();a((function(){n||(null==t||t.clear(),0!==e.length?window.requestAnimationFrame((()=>{const o=jb(r,e);if(!o)return;const{index:a,text:n,selected:l}=o;$a(["List updated",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:t||void 0})})):$a("No matching items.",{delayMs:500}))}),[n,e,r,t])};function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Pb.apply(null,arguments)}const Db={startMargin:0,endMargin:8},Hb=m.div.withConfig({displayName:"FilteredActionListWithModernActionList__StyledHeader",componentId:"sc-1d2kw5v-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function Vb({loading:e=!1,placeholderText:o,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,groupMetadata:u,showItemDividers:v,className:b,...f}){const[h,p]=Yo(n,void 0,""),m=t((e=>{const r=e.target.value;i(r,e),p(r)}),[i,p]),y=l(null),x=l(null),w=co(d),C=l(),k=ot(),B=ot(),E=t((e=>{if("Enter"===e.key&&C.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);C.current.dispatchEvent(r)}}),[C]);return Vc({containerRef:x,bindKeys:Ro.ArrowVertical|Ro.PageUpDown,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:w,onActiveDescendantChanged:(e,r,o)=>{C.current=e,e&&y.current&&o&&$o(e,y.current,Db)}},[e]),a((()=>{C.current&&y.current&&$o(C.current,y.current,{...Db,behavior:"auto"})}),[c]),Mb(y),zb(c,x,w),r.createElement(ht,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:b,"data-testid":"filtered-action-list"},r.createElement(Hb,null,r.createElement(du,Pb({ref:w,block:!0,width:"auto",color:"fg.default",value:h,onChange:m,onKeyPress:E,placeholder:o,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":k,"aria-label":o,"aria-describedby":B},s))),r.createElement(Mt,{id:B},"Items will be filtered as you type"),r.createElement(ht,{ref:y,overflow:"auto"},e?r.createElement(ht,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Dt,null)):r.createElement(Cg,Pb({ref:x,showDividers:v},f,{role:"listbox",id:k}),null!=u&&u.length?u.map(((e,o)=>{var t,a;return r.createElement(Cg.Group,{key:o},r.createElement(Cg.GroupHeading,{variant:null!==(t=e.header)&&void 0!==t&&t.variant?e.header.variant:void 0},null!==(a=e.header)&&void 0!==a&&a.title?e.header.title:`Group ${e.groupId}`),function(e){const r=[];for(const o of c)o.groupId===e&&r.push(o);return r}(e.groupId).map(((e,o)=>r.createElement(Fb,Pb({key:o},e,{renderItem:f.renderItem})))))})):c.map(((e,o)=>r.createElement(Fb,Pb({key:o},e,{renderItem:f.renderItem})))))))}function Fb(e){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:o,description:t,descriptionVariant:a,text:n,trailingVisual:l,leadingVisual:i,trailingText:c,trailingIcon:s,onAction:d,children:g,...u}=e;return r.createElement(Cg.Item,Pb({role:"option",onSelect:r=>{"function"==typeof d&&d(e,r)},"data-id":o},u),i?r.createElement(Cg.LeadingVisual,null,r.createElement(i,null)):null,g,n,t?r.createElement(Cg.Description,{variant:a},t):null,l?r.createElement(Cg.TrailingVisual,null,"string"!=typeof l&&Sn.isValidElementType(l)?r.createElement(l,null):l):s||c?r.createElement(Cg.TrailingVisual,null,c,s&&r.createElement(s,null)):null)}function Wb(e){return bt("primer_react_select_panel_with_modern_action_list")?r.createElement(Vb,e):r.createElement(Rb,e)}Vb.displayName="FilteredActionList",Fb.displayName="MappedActionListItem",Vb.displayName="FilteredActionList",Wb.displayName="FilteredActionList";const $b=r.createContext(null);function Zb(){const e=r.useContext($b);if(!e)throw new Error("useLiveRegion() must be used within a <LiveRegion>");return e}function Kb({children:e}){const[o,t]=r.useState(""),a=r.useMemo((()=>({announce:t,message:o})),[o]);return r.createElement($b.Provider,{value:a},e)}function Gb(){const e=Zb();return r.createElement(Mt,{role:"status","aria-live":"polite","aria-atomic":!0},e.message)}function qb({value:e}){const o=Zb(),t=r.useRef(o),a=r.useRef(!1);return r.useEffect((()=>{t.current=o}),[o]),r.useEffect((()=>{if(!0!==a.current)return;const r=setTimeout((()=>{t.current.announce(e)}),750);return()=>{clearTimeout(r)}}),[e]),r.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),null}Kb.displayName="LiveRegion",Gb.displayName="LiveRegionOutlet";var Ub="prc_Wrapper_43Iz8",Yb="prc_Content_rbAGw",Xb="prc_Title_-CZN1",Qb="prc_Subtitle_tMSzu",Jb="prc_Footer_78rgp",ef="prc_FilteredActionList_wzS7m";function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},rf.apply(null,arguments)}function of(e){return Array.isArray(e)}const tf={disabled:!0},af=(e,r)=>void 0!==e.id?e.id===r.id:e===r,nf=(e,r)=>e.some((e=>af(e,r)));function lf({open:e,onOpenChange:a,renderAnchor:n=e=>{const{children:o,...t}=e;return r.createElement(An,rf({trailingAction:Dc},t),o)},anchorRef:l,placeholder:i,placeholderText:c="Filter items",inputLabel:s=c,selected:d,title:g=(of(d)?"Select items":"Select an item"),subtitle:u,onSelectedChange:v,filterValue:b,onFilterChange:f,items:h,footer:p,textInputProps:m,overlayProps:y,sx:x,className:w,...C}){const k=ot(),B=ot(),[E,T]=Yo(b,void 0,""),S=t(((e,r)=>{f(e,r),T(e)}),[f,T]),N=bt("primer_react_css_modules_team"),_=co(l),I=t((e=>a(!0,e)),[a]),M=t((e=>{a(!1,e)}),[a]),A=o((()=>{if(null===n)return null;const e=Array.isArray(d)?d:[...d?[d]:[]];return r=>n({...r,children:e.length?e.map((e=>e.text)).join(", "):i})}),[i,n,d]),L=o((()=>h.map((e=>{const r=of(d)?nf(d,e):d===e;return{...e,role:"option",selected:"selected"in e&&void 0===e.selected?void 0:r,onAction:(r,o)=>{var t;if(null===(t=e.onAction)||void 0===t||t.call(e,r,o),o.defaultPrevented)return;if(of(d)){const r=d.filter((r=>!af(r,e))),o=nf(d,e)?r:[...r,e];return void v(o)}v(e===d?void 0:e),M("selection")}}}))),[M,v,h,d]),O=r.useRef(null),R={initialFocusRef:O},j=o((()=>({sx:{m:2},contrast:!0,leadingVisual:zc,"aria-label":s,...m})),[s,m]),z=bt("primer_react_select_panel_with_modern_action_list");return r.createElement(Kb,null,r.createElement(_g,{renderAnchor:A,anchorRef:_,open:e,onOpen:I,onClose:M,overlayProps:{role:"dialog","aria-labelledby":k,"aria-describedby":u?B:void 0,...y},focusTrapSettings:R,focusZoneSettings:tf},r.createElement(Gb,null),z?null:r.createElement(qb,{value:""===E?"Showing all items":h.length<=0?"No matching items":`${h.length} matching ${1===h.length?"item":"items"}`}),r.createElement(ht,{sx:N?void 0:{display:"flex",flexDirection:"column",height:"inherit",maxHeight:"inherit"},className:N?Ub:void 0},r.createElement(ht,{sx:N?void 0:{pt:2,px:3},className:N?Yb:void 0},r.createElement(zd,{as:"h1",id:k,sx:N?void 0:{fontSize:1},className:N?Xb:void 0},g),u?r.createElement(ht,{id:B,sx:N?void 0:{fontSize:0,color:"fg.muted"},className:N?Qb:void 0},u):null),r.createElement(Wb,rf({filterValue:E,onFilterChange:S,placeholderText:c},C,{role:"listbox","aria-labelledby":C["aria-label"]?void 0:k,"aria-multiselectable":of(d)?"true":"false",selectionVariant:of(d)?"multiple":"single",items:L,textInputProps:j,inputRef:O,sx:N?x:{...x,height:"inherit",maxHeight:"inherit"},className:N?Gr(w,ef):w})),p&&r.createElement(ht,{sx:N?void 0:{display:"flex",borderTop:"1px solid",borderColor:"border.default",padding:2},className:N?Jb:void 0},p))))}lf.displayName="SelectPanel",lf.displayName="SelectPanel";var cf=G(be,Q,X,U,J,te,ne,ie,re,fe,Se,Ne,_e),sf=new RegExp("^("+cf.propNames.join("|")+")$"),df="prc_TokenBase_PfQzJ";function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gf.apply(null,arguments)}const uf={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},vf="medium",bf=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),ff=Te({prop:"size",variants:{small:{fontSize:0,height:uf.small,lineHeight:uf.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:uf.medium,lineHeight:uf.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:uf.large,lineHeight:uf.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:uf.xlarge,lineHeight:uf.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),hf="primer_react_css_modules_team",pf=yt(hf,"span",m.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=>bf(e)?"pointer":"auto"),Wr("fontWeights.bold"),ff,ft)),mf=r.forwardRef((({onRemove:e,onKeyDown:o,id:t,className:a,size:n=vf,...l},i)=>bt(hf)?r.createElement(pf,gf({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},className:Gr(df,a),"data-cursor-is-interactive":bf(l),"data-size":n,id:null==t?void 0:t.toString()},l,{ref:i})):r.createElement(pf,gf({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},id:null==t?void 0:t.toString(),size:n},l,{ref:i}))));var yf="prc_TokenButton_F4Y8h";function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xf.apply(null,arguments)}const wf="primer_react_css_modules_team",Cf=Te({prop:"size",variants:{small:{height:uf.small,width:uf.small},medium:{height:uf.medium,width:uf.medium},large:{height:uf.large,width:uf.large},xlarge:{height:uf.xlarge,width:uf.xlarge}}}),kf=e=>.75*parseInt(uf[e||vf],10),Bf=yt(wf,"span",m.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 C(["margin-left:",";"],Wr("space.2"));default:return C(["margin-left:",";"],Wr("space.1"))}}),Wr("colors.neutral.muted"),Wr("colors.neutral.subtle"),Cf,ft)),Ef=({"aria-label":e,isParentInteractive:o,size:t=vf,className:a,...n})=>{delete n.children;const l=bt(wf);return r.createElement(Bf,xf({as:o?"span":"button",tabIndex:o?-1:void 0,"aria-label":o?e:"Remove token",size:t,"data-size":t,className:Gr(l&&yf,a),style:l?{transform:`translate(${n.borderOffset}px, -${n.borderOffset}px)`}:{}},n),r.createElement(Hc,{size:kf(t)}))};Ef.displayName="RemoveTokenButton";var Tf="prc_TokenTextContainer_-rlDJ";function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Sf.apply(null,arguments)}const Nf="primer_react_css_modules_team",_f=yt(Nf,"span",m("span").withConfig({displayName:"_TokenTextContainer__StyledTokenTextContainer",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;}}"])),If=({children:e,...o})=>{const t=bt(Nf);return r.createElement(_f,Sf({className:Gr(t&&Tf)},o),e)};If.displayName="TokenTextContainer";var Mf="prc_Token_L2-At";function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Af.apply(null,arguments)}const Lf=({children:e,size:o})=>r.createElement(ht,{sx:{flexShrink:0,lineHeight:0,marginRight:o&&["large","xlarge"].includes(o)?2:1}},e);Lf.displayName="LeadingVisualContainer";const Of=u(((e,o)=>{const t=bt("primer_react_css_modules_team"),{as:a,onRemove:n,id:l,leadingVisual:i,text:c,size:s=vf,hideRemoveButton:d,href:g,onClick:u,sx:v=pt,className:b,style:f,...h}=e,p=bf(e)&&Boolean(n)&&!d,m=e=>{e.stopPropagation(),n&&n()},y={as:a,href:g,onClick:u},x=oo({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!d&&n?0:void 0,...bf(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},v);return t?r.createElement(mf,Af({onRemove:n,id:null==l?void 0:l.toString(),className:Gr(b,Mf),text:c,size:s,sx:v,"data-is-selected":e.isSelected,"data-is-remove-btn":!(d||!n)},p?{}:y,h,{ref:o,style:{borderWidth:"1px",...f}}),i?r.createElement(Lf,{size:s},r.createElement(i,null)):null,r.createElement(If,p?y:{},c,n&&r.createElement(Bl,null," (press backspace or delete to remove)")),!d&&n?r.createElement(Ef,{borderOffset:1,onClick:m,size:s,isParentInteractive:bf(e),"aria-hidden":p?"true":"false"}):null):r.createElement(mf,Af({onRemove:n,id:null==l?void 0:l.toString(),text:c,size:s,sx:x},p?{}:y,h,{ref:o,style:f}),i?r.createElement(Lf,{size:s},r.createElement(i,null)):null,r.createElement(If,p?y:{},c,n&&r.createElement(Bl,null," (press backspace or delete to remove)")),!d&&n?r.createElement(Ef,{borderOffset:1,onClick:m,size:s,isParentInteractive:bf(e),"aria-hidden":p?"true":"false"}):null)}));Of.displayName="Token";var Rf="prc_TextInputWrapper_kj1cB",jf="prc_UnstyledTextInput_F582M";function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zf.apply(null,arguments)}const Pf={small:0,medium:1,large:1,xlarge:2};function Df({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:c,className:s,block:d,disabled:g,sx:u,tokens:v,onTokenRemove:b,tokenComponent:f=Of,preventTokenWrapping:h=!1,size:p="xlarge",hideTokenRemoveButtons:m=!1,maxHeight:y,width:x,minWidth:w,maxWidth:C,validationStatus:k,variant:B,visibleTokenCount:E,style:T,...S},N){const{onBlur:_,onFocus:I,onKeyDown:M,...A}=function(e){var r={};for(var o in e)sf.test(o)||(r[o]=e[o]);return r}(S),L=l(null);rt(N,L);const[O,R]=i(),[j,z]=i(Boolean(E)),{containerRef:P}=Vc({focusOutBehavior:"wrap",bindKeys:Ro.ArrowHorizontal|Ro.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!O&&0!==O)return;let o=O+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>v.length||o<1?L.current||void 0:null===(r=P.current)||void 0===r?void 0:r.children[o]}},[O]),D=e=>{b(e),setTimeout((()=>{var e,r;const o=null===(e=P.current)||void 0===e?void 0:e.children[O||0],t=o&&ho(o)?o:Array.from((null===(r=P.current)||void 0===r?void 0:r.children)||[]).find((e=>ho(e)));var a;t?t.focus():null===(a=L.current)||void 0===a||a.focus()}),0)},H=()=>{R(void 0),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!E||z(!0)}),0)},V=e=>{var r;"Escape"===e.key&&(null===(r=L.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},W=j?v.slice(0,E):v,$=a&&("leading"===n||Boolean(o&&"trailing"!==n)),Z=a&&("trailing"===n||"auto"===n&&!o),K=bt(Zg),G=r.useMemo((()=>K?{className:Gr(s,Rf),style:y?{maxHeight:y,...T}:T,sx:u}:{className:s,style:T,sx:{paddingLeft:"12px",py:"6px",...d?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...u}}),[d,s,K,y,h,T,u]);return r.createElement(ou,zf({block:d,contrast:c,disabled:g,hasLeadingVisual:Boolean(o||$),hasTrailingVisual:Boolean(t||Z),width:x,minWidth:w,maxWidth:C,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[p],validationStatus:k,variant:B,onClick:()=>{var e;null===(e=L.current)||void 0===e||e.focus()},"data-token-wrapping":Boolean(h||y)||void 0},G),e&&!o&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Ug,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:$},"string"!=typeof o&&Sn.isValidElementType(o)?r.createElement(o,null):o),r.createElement(ht,{ref:P,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(Gg,zf({ref:L,disabled:g,onFocus:e=>{I&&I(e),R(void 0),E&&z(!1)},onBlur:e=>{_&&_(e),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!E||z(!0)}),0)},onKeyDown:e=>{var r;if(M&&M(e),null!==(r=L.current)&&void 0!==r&&r.value)return;const o=v[v.length-1];"Backspace"===e.key&&o&&(D(o.id),L.current&&(L.current.value=`${o.text} `),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.select()}),0))},type:"text",sx:K?void 0:{height:"100%"},className:K?jf:void 0,"aria-invalid":"error"===k?"true":"false"},A))),W.map((({id:e,...o},t)=>{return r.createElement(f,zf({disabled:g,key:e,onFocus:(a=t,()=>{g||R(a)}),onBlur:H,onKeyUp:V,onClick:F,isSelected:O===t,onRemove:()=>{D(e)},hideRemoveButton:g||m,size:p,tabIndex:0},o));var a})),j&&v.length-W.length?r.createElement(kl,{color:"fg.muted",fontSize:Pf[p]},"+",v.length-W.length):null),r.createElement(Ug,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:Z},"string"!=typeof t&&Sn.isValidElementType(t)?r.createElement(t,null):t))}Df.displayName="TextInputWithTokensInnerComponent";const Hf=r.forwardRef(Df);Hf.displayName="TextInputWithTokens";var Vf="prc_TextArea_13q4j";function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ff.apply(null,arguments)}const Wf="primer_react_css_modules_staff",$f=yt(Wf,"textarea",m.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&&C(["resize:",";"],e.resize)),(e=>e.disabled&&C(["resize:none;"])),ft)),Zf=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,className:g,...u},v)=>{const b=bt(Wf);return r.createElement(eu,{sx:t,validationStatus:n,disabled:o,block:s,contrast:d,className:g},r.createElement($f,Ff({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:v,disabled:o,rows:l,cols:i,className:Gr(b&&Vf,g)},u)))}));Zf.displayName="Textarea";const Kf=m(kl).withConfig({displayName:"FormControlCaption__StyledCaption",componentId:"sc-u5w2b2-0"})(["color:var(--fgColor-muted);display:block;font-size:",";&:where([data-control-disabled]){color:var(--control-fgColor-disabled);}",""],Wr("fontSizes.0"),ft);function Gf({id:e,children:o,sx:t}){const{captionId:a,disabled:n}=$v();return r.createElement(Kf,{id:null!=e?e:a,"data-control-disabled":n?"":void 0,sx:t},o)}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qf.apply(null,arguments)}function Uf({children:e,disabled:o,htmlFor:t,id:a,required:n,requiredText:l,requiredIndicator:i,visuallyHidden:c,sx:s,as:d="label",className:g,...u}){return r.createElement(Xf,qf({as:d,"data-control-disabled":o?"":void 0,"data-visually-hidden":c?"":void 0,htmlFor:t,id:a,className:g,sx:s},u),n||l?r.createElement(Yf,null,r.createElement("span",null,e),r.createElement("span",{"aria-hidden":!i||void 0},null!=l?l:"*")):e)}Gf.displayName="FormControlCaption",Uf.displayName="InputLabel";const Yf=m.span.withConfig({displayName:"InputLabel__StyledRequiredText",componentId:"sc-l3hcqt-0"})(["display:flex;column-gap:",";"],Wr("space.1")),Xf=m.label.withConfig({displayName:"InputLabel__StyledLabel",componentId:"sc-l3hcqt-1"})(["align-self:flex-start;display:block;color:var(--fgColor-default);cursor:pointer;font-weight:600;font-size:",";&:where([data-control-disabled]){color:var(--fgColor-muted);cursor:not-allowed;}&:where([data-visually-hidden]){border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}",""],Wr("fontSizes.1"),ft),Qf=({as:e,children:o,htmlFor:t,id:a,visuallyHidden:n,requiredIndicator:l=!0,requiredText:i,sx:c,className:s,...d})=>{const{disabled:g,id:u,required:v}=$v(),b="legend"===e||"span"===e?{as:e,id:a,className:s,visuallyHidden:n,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d}:{as:e,id:a,className:s,visuallyHidden:n,htmlFor:t||u,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d};return r.createElement(Uf,b,o)};Qf.displayName="FormControlLabel";const Jf=({children:e,sx:o})=>{const{disabled:t,captionId:a}=$v();return r.createElement(eh,{"data-control-disabled":t?"":void 0,"data-has-caption":a?"":void 0,sx:o},e)};Jf.displayName="FormControlLeadingVisual";const eh=m.div.withConfig({displayName:"FormControlLeadingVisual__StyledLeadingVisual",componentId:"sc-1c26i0t-0"})(["--leadingVisual-size:",";color:var(--fgColor-default);margin-inline-start:",";&:where([data-control-disabled]){color:var(--fgColor-muted);}& > *{min-width:var(--leadingVisual-size);min-height:var(--leadingVisual-size);fill:currentColor;}&:where([data-has-caption]){--leadingVisual-size:",";}",""],Wr("fontSizes.2"),Wr("space.2"),Wr("fontSizes.4"),ft),rh=({children:e,variant:o,sx:t,id:a})=>{const{validationMessageId:n}=$v();return r.createElement(vd,{validationStatus:o,id:a||n||"",sx:t},e)};rh.displayName="FormControlValidation";const oh=r.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:l,className:i},c)=>{var s,d;const[u,v]=oi(e,{caption:Gf,label:Qf,leadingVisual:Jf,validation:rh}),b=[Cu,Uv,Ld,lb,du,Hf,Zf,lf],f=g(Zs).disabled||o,h=ot(a),p=u.validation?`${h}-validationMessage`:void 0,m=u.caption?`${h}-caption`:void 0,y=null===(s=u.validation)||void 0===s?void 0:s.props.variant,x=v.find((e=>b.some((o=>r.isValidElement(e)&&e.type===o)))),w=(r.isValidElement(x)&&x.props,r.isValidElement(x)&&(x.type===Uv||x.type===Ld)),C=r.isValidElement(x)&&x.type===Ld;u.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.`);const k=null===(d=u.label)||void 0===d?void 0:d.props.visuallyHidden;return r.createElement(Wv,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?r.createElement(ht,{ref:c,display:"flex",alignItems:u.leadingVisual?"center":void 0,sx:l,className:i},r.createElement(ht,{sx:{"> input":{marginLeft:0,marginRight:0}}},r.isValidElement(x)&&r.cloneElement(x,{id:h,disabled:f,required:n&&!C,"aria-describedby":m}),v.filter((e=>r.isValidElement(e)&&![Uv,Ld].some((r=>e.type===r))))),u.leadingVisual&&r.createElement(ht,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:u.caption?Wr("fontSizes.4"):Wr("fontSizes.2"),minHeight:u.caption?Wr("fontSizes.4"):Wr("fontSizes.2"),fill:"currentColor"}},ml:2},u.leadingVisual),r.createElement(ht,{sx:{"> *":{paddingLeft:"var(--stack-gap-condensed)"},"> label":{fontWeight:"var(--base-text-weight-normal)"}}},u.label,u.caption)):r.createElement(ht,{ref:c,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l},className:i},u.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)&&!b.some((r=>e.type===r)))),u.validation?r.createElement($s,{show:!0},u.validation):null,u.caption))}));var th=Object.assign(oh,{Caption:Gf,Label:Qf,LeadingVisual:Jf,Validation:rh});function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ah.apply(null,arguments)}const nh=({children:e,disabled:o,onChange:t,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===th)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Uv)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=Uo(l);return r.createElement(Kv.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(wd,ah({disabled:o},a),e))};nh.displayName="CheckboxGroup";var lh=Object.assign(nh,{Caption:Js,Label:gd,Validation:pd});function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ih.apply(null,arguments)}const ch=m(r.forwardRef(((e,o)=>{const{icon:t,...a}=e;return r.createElement(t,ih({},a,{ref:o}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>ft({sx:{color:e,...r}})));const sh={small:56,medium:96,large:128},dh=m.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"),Wr("colors.canvas.default"),Wr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:sh[r];return{width:o,height:o}}),ft),gh=m(ch).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);gh.displayName="CircleBadge.Icon";var uh=Object.assign(dh,{Icon:gh}),vh="prc_Details_XJobb";function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bh.apply(null,arguments)}const fh="primer_react_css_modules_ga",hh=yt(fh,"details",m.details.withConfig({displayName:"Details__StyledDetails",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],ft)),ph=r.forwardRef((({className:e,children:o,...n},l)=>{const c=bt(fh),s=r.useRef(null),d=function(...e){return t((r=>{for(const o of e)"function"==typeof o?o(r):o&&(o.current=r)}),e)}(l,s),[g,u]=i(!1);return a((()=>{const{current:e}=s;if(!e)return;const r=()=>{const r=e.querySelector("summary:not([data-default-summary])");u(!!r)};r();const o=new MutationObserver((()=>{r()}));return o.observe(e,{childList:!0,subtree:!0}),()=>{o.disconnect()}}),[]),r.createElement(hh,bh({className:Gr(e,{[vh]:c})},n,{ref:d}),!g&&r.createElement(yh.Summary,{"data-default-summary":!0},"See Details"),o)}));function mh({as:e,children:o,...t}){const a=null!=e?e:"summary";return r.createElement(a,bh({as:"summary"===a?null:"summary"},t),o)}ph.displayName="Details",mh.displayName="Summary",mh.displayName="Summary";const yh=Object.assign(ph,{Summary:mh});function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xh.apply(null,arguments)}const wh=Te({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"}}}}),Ch=m.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:",";}",";",";"],Wr("colors.fg.default"),Wr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Wr("radii.2")),(e=>e.full?"-1px":"0"),Wr("space.2"),wh,ft),kh=r.forwardRef((function({as:e,variant:o="default",...t},a){return r.createElement(Ch,xh({ref:a,as:e,variant:o},t))}));var Bh="prc_Header_RoCS8",Eh="prc_HeaderItem_0wRcu",Th="prc_HeaderLink_2Q6pd";function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Sh.apply(null,arguments)}const Nh="primer_react_css_modules_staff",_h=yt(Nh,"header",m.header.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;overflow:auto;",";"],Wr("space.3"),Wr("fontSizes.1"),Wr("lineHeights.default"),Wr("colors.header.text"),Wr("colors.header.bg"),ft)),Ih=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(Nh);return r.createElement(_h,Sh({ref:a,className:Gr(o,{[Bh]:n})},t),e)}));Ih.displayName="Header";const Mh=yt(Nh,"div",m.div.withConfig({displayName:"Header__StyledHeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Wr("space.3"),(({full:e})=>e&&C(["flex:auto;"])),ft)),Ah=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(Nh);return r.createElement(Mh,Sh({ref:a,className:Gr(o,n&&Eh),"data-full":t.full},t),e)}));Ah.displayName="Header.Item";const Lh=yt(Nh,"a",m.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__StyledHeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Wr("fontWeights.bold"),Wr("colors.header.logo"),Wr("colors.header.text"),ft)),Oh=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(Nh);return r.createElement(Lh,Sh({ref:a,className:Gr(o,n&&Th)},t),e)}));Oh.displayName="Header.Link";var Rh=Object.assign(Ih,{Link:Oh,Item:Ah}),jh="prc_Label_-LG6X";function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zh.apply(null,arguments)}const Ph=r.forwardRef((function({as:e,size:o="small",variant:t="default",className:a,...n},l){const i=e||"span";return n.sx?r.createElement(ht,zh({as:i,className:Gr(a,jh),"data-size":o,"data-variant":t,ref:l},n)):r.createElement(i,zh({className:Gr(a,jh),"data-size":o,"data-variant":t},n))}));function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Dh.apply(null,arguments)}const Hh=m.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;}&[data-list]{padding-inline-start:0;margin-block-start:0;margin-block-end:0;list-style-type:none;}",";"],Wr("space.1"),ft),Vh=m.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;}"]),Fh=({collapseButtonRef:e,collapseInlineExpandedChildren:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l})=>n?r.createElement(An,{ref:e,onClick:o,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(An,{ref:t,variant:"invisible",size:"small",onClick:l},r.createElement(Bl,null,"Show +",a.length," more"),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,Wh=({children:e,closeOverflowOverlay:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c})=>a.length?r.createElement(_g,{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(An,Dh({variant:"invisible",size:"small"},e,{ref:t}),r.createElement(Bl,null,"Show +",a.length," more"),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(ql,{onClick:o,icon:Hc,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,$h=({children:e,visibleChildCount:o,overflowStyle:t="overlay",sx:a,as:n="ul"})=>{const l=r.useRef(null),i=r.useRef(null),c=r.useRef(void 0),[s,d]=r.useState({}),[g,u]=r.useState(!1),[v,b]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:f}=ct(),h=parseInt(Wr("space.2")(f),10),p=Object.keys(s).filter((e=>!s[e])),m=p.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)})(v,l,h):void 0,y=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===v.width&&r.right===v.right||b(r),y.current=e}}),[v]),x=r.useCallback((e=>{var r;const o=(null===(r=l.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)}d(t)}),[]),w=r.useCallback((()=>u(!0)),[u]),C=r.useCallback((()=>{u(!1)}),[u]),k=r.useCallback((()=>{u(!1),o&&"number"==typeof o&&x(o),setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),10)}),[y,x,o]),B=r.useCallback((()=>{d({}),u(!0)}),[d,u]);r.useEffect((()=>{if(o&&!g){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)}d((e=>({...e,...r})))}),{root:l.current,rootMargin:`0px -${v.width}px 0px 0px`,threshold:1});for(const o of(null===(e=l.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}x(o)}}),[v,o,x,g]),r.useEffect((()=>{"overlay"!==t&&p.length&&(c.current=parseInt(p[0],10))}),[p,t,g]),r.useEffect((()=>{if("overlay"===t)return;const e=document.querySelector(`[data-index="${c.current}"]`),r=e?fo(e):null;var o;g&&(r?r.focus():null===(o=i.current)||void 0===o||o.focus())}),[t,g]);const E="ul"===n||"ol"===n,T=E?"li":r.Fragment;return o?r.createElement(Hh,{ref:l,"data-overflow":"inline"===t&&g?"inline":void 0,"data-list":E||void 0,sx:a,as:n},r.Children.map(e,((e,o)=>r.createElement(Vh,{"data-index":o,className:p.includes(o.toString())?"ItemWrapper--hidden":void 0,as:E?"li":"span",key:o},e))),r.createElement(T,null,"inline"===t?r.createElement(Fh,{collapseButtonRef:i,collapseInlineExpandedChildren:k,expandButtonRef:y,hiddenItemIds:p,isOverflowShown:g,showAllTokensInline:B,totalLength:r.Children.toArray(e).length}):r.createElement(Wh,{closeOverflowOverlay:C,expandButtonRef:y,hiddenItemIds:p,isOverflowShown:g,openOverflowOverlay:w,overlayPaddingPx:h,overlayWidth:m,totalLength:r.Children.toArray(e).length},e))):r.createElement(Hh,{"data-overflow":"inline","data-list":E||void 0,sx:a,as:n},E?r.Children.map(e,((e,o)=>r.createElement("li",{key:o},e))):e)};function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Zh.apply(null,arguments)}$h.displayName="LabelGroup";const Kh=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),Gh=m.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(ft),qh=r.forwardRef((({children:e,...o},t)=>r.createElement(Gh,Zh({},o,{ref:t}),r.createElement(Od.Provider,{value:{container:"NavList"}},r.createElement(Cg,null,e)))));qh.displayName="NavList";const Uh=r.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=pt,...n},l)=>{const{depth:i}=r.useContext(Qh),c=r.Children.toArray(o).find((e=>p(e)&&e.type===Jh)),s=r.Children.toArray(o).filter((e=>!p(e)||e.type!==Jh&&e.type!==tp));return!p(c)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),c&&p(c)?r.createElement(Xh,{subNav:c,depth:i,defaultOpen:t,sx:a},s):r.createElement(Cg.LinkItem,Zh({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:oo(Kh(i),a)},n),o)}));Uh.displayName="NavList.Item";const Yh=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function Xh({children:e,subNav:o,depth:t,defaultOpen:a,sx:n=pt}){var l;const i=ot(),c=ot(),[s,d]=r.useState(null!==(l=a||null)&&void 0!==l&&l),g=r.useRef(null),[u,v]=r.useState(!1);return Zo((()=>{if(g.current){g.current.querySelector("[aria-current]:not([aria-current=false])")&&(v(!0),d(!0))}}),[o,i]),r.createElement(Yh.Provider,{value:{buttonId:i,subNavId:c,isOpen:s}},r.createElement(ht,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},r.createElement(Cg.Item,{as:"button",id:i,"aria-expanded":s,"aria-controls":c,active:!s&&u,onClick:()=>d((e=>!e)),sx:oo({...Kh(t),fontWeight:u?"bold":null},n)},e,r.createElement(Cg.TrailingVisual,null,r.createElement(ch,{icon:Cc,sx:{transform:s?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:g},o)))}Xh.displayName="ItemWithSubNav";const Qh=r.createContext({depth:0}),Jh=({children:e,sx:o=pt})=>{const{buttonId:t,subNavId:a,isOpen:n}=r.useContext(Yh),{depth:l}=r.useContext(Qh);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(Qh.Provider,{value:{depth:l+1}},r.createElement(ht,{as:"ul",id:a,"aria-labelledby":t,sx:oo({padding:0,margin:0,display:n?"block":"none"},o)},e))};Jh.displayName="SubNav",Jh.displayName="NavList.SubNav";const ep=Cg.LeadingVisual;ep.displayName="NavList.LeadingVisual";const rp=Cg.TrailingVisual;rp.displayName="NavList.TrailingVisual";const op=Cg.Divider;op.displayName="NavList.Divider";const tp=Cg.TrailingAction;tp.displayName="NavList.TrailingAction";const ap={},np=({title:e,children:o,sx:t=ap,...a})=>r.createElement(r.Fragment,null,r.createElement(Cg.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(Cg.Group,Zh({},a,{sx:oo(t,{':has([data-component="NavList.GroupHeading"]):has([data-component="ActionList.GroupHeading"])':{'[data-component="ActionList.GroupHeading"]':{display:"none"}}})}),e?r.createElement(Cg.GroupHeading,{as:"h3","data-component":"ActionList.GroupHeading"},e):null,o));np.displayName="NavList.Group";const lp=({as:e="h3",sx:o=pt,...t})=>r.createElement(Cg.GroupHeading,Zh({as:e,sx:oo({"> a {":{color:"var(--fgColor-default)",textDecoration:"inherit",":hover":{textDecoration:"underline"}}},o),"data-component":"NavList.GroupHeading"},t));lp.displayName="GroupHeading";const ip=Object.assign(qh,{Item:Uh,SubNav:Jh,LeadingVisual:ep,TrailingVisual:rp,TrailingAction:tp,Divider:op,Group:np,GroupHeading:lp});var cp="prc_Page_yoEQf",sp="prc_PaginationContainer_yNDPO",dp="prc_TablePaginationSteps_RRjtg";function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gp.apply(null,arguments)}const up="primer_react_css_modules_team",vp=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(Jl),bp=yt(up,"a",m.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;}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-current]:focus-visible{outline:2px solid ",";outline-offset:-2px;box-shadow:inset 0 0 0 3px ",";}&[aria-disabled],&[aria-disabled]:hover{margin:0 2px;&:first-child{margin-right:6px;}}&[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 );}}"],Wr("colors.fg.default"),Wr("space.1"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.accent.emphasis"),Wr("colors.border.muted"),Wr("colors.accent.fg"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),Wr("colors.fg.onEmphasis"),Wr("colors.primer.fg.disabled"),Wr("space.1"),Wr("space.1")));function fp({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=bt(up),g=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]),u=r.useMemo((()=>g.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,{"aria-disabled":"true",role:"link"}):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,{"aria-disabled":"true",role:"link"}):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(bp,gp({},t,{key:a,theme:e,className:Gr(d&&cp)}),l)}))),[g,n,s,e,d]);return u}const hp=yt(up,"nav",m.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Jl).map((e=>`\n @media (${Jl[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 pp({theme:e,pageCount:o,currentPage:t,onPageChange:a=yp,hrefBuilder:n=mp,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...s}){const d=fp({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}),g=bt(up);return r.createElement(hp,gp({className:Gr(g&&sp),"aria-label":"Pagination"},s,{theme:e}),r.createElement(ht,{display:"inline-block",theme:e,className:dp,"data-hidden-viewport-ranges":vp(i).join(" ")},d))}function mp(e){return`#${e}`}function yp(){}function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xp.apply(null,arguments)}function wp(e){const o=r.useContext(k),{bg:t,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:s,...d}=e,{bg:g,backgroundColor:u,...v}=i||{},b=l||o,f=t||g||u,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:b};return r.createElement(ht,xp({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},d,{sx:{...v,"--custom-bg":Wr(`colors.${f}`)({theme:b}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${b.colors.canvas.default}, ${b.colors.canvas.default})`:void 0,position:"relative"}}),s,r.createElement(Dv,h))}pp.displayName="Pagination",wp.displayName="PointerBox";var Cp="prc_Popover_v1ShS",kp="prc_PopoverContent_nMzFS";function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bp.apply(null,arguments)}const Ep="primer_react_css_modules_staff",Tp=m.div.attrs((({className:e,caret:r="top"})=>({className:Gr(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover__StyledPopover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),ft),Sp=yt(Ep,"div",Tp),Np=r.forwardRef((function({className:e,caret:o="top",open:t,relative:a,...n},l){return bt(Ep)?r.createElement(Sp,Bp({},n,{ref:l,"data-open":t?"":void 0,"data-relative":a?"":void 0,"data-caret":o,className:Gr(e,Cp)})):r.createElement(Sp,Bp({},n,{className:e,caret:o,open:t,relative:a}))}));Np.displayName="Popover";const _p=yt(Ep,"div",m.div.withConfig({displayName:"Popover__StyledPopoverContent",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);}}",";"],Wr("colors.border.default"),Wr("radii.2"),Wr("space.4"),Wr("colors.canvas.overlay"),Wr("space.3"),Wr("space.2"),Wr("colors.border.default"),Wr("space.2"),Wr("colors.canvas.overlay"),Tp,Tp,Tp,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),Tp,Tp,Tp,Tp,Wr("space.4"),Wr("space.4"),Tp,Tp,Tp,Tp,Tp,Tp,Wr("space.2"),Wr("space.2"),Tp,Tp,Tp,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),Tp,Tp,Tp,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),Tp,Tp,Wr("space.4"),Tp,Tp,Wr("space.3"),Wr("space.3"),ft)),Ip=({className:e,...o})=>bt(Ep)?r.createElement(_p,Bp({},o,{className:Gr(e,kp)})):r.createElement(_p,Bp({},o,{className:e}));Ip.displayName="PopoverContent",Ip.displayName="Popover.Content";var Mp=Object.assign(Np,{Content:Ip}),Ap="prc_ProgressBarItem_stL6O",Lp="prc_ProgressBarContainer_E-z8S";function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Op.apply(null,arguments)}const Rp=w(["from{mask-position:200%;}to{mask-position:0%;}"]),jp="primer_react_css_modules_staff",zp=yt(jp,"span",m.span.withConfig({displayName:"ProgressBar__ProgressItem",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),(e=>Wr(`colors.${e.bg||"success.emphasis"}`)),Rp,ft)),Pp={small:"5px",large:"10px",default:"8px"},Dp=yt(jp,"span",m.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";gap:2px;"," ",";"],(e=>e.inline?"inline-flex":"flex"),Wr("colors.border.default"),Wr("radii.1"),(e=>Pp[e.barSize||"default"]),Ie,ft)),Hp=u((({progress:e,"aria-label":o,"aria-valuenow":t,"aria-valuetext":a,className:n,...l},i)=>{const c="string"==typeof e?parseInt(e,10):e,s={"aria-valuenow":null!=t?t:void 0!==c&&c>=0?Math.round(c):0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":a},d=bt(jp),g={},u=l.bg&&l.bg.split(".");return g["--progress-width"]=e?`${e}%`:"0%",g["--progress-bg"]=u&&`var(--bgColor-${u[0]}-${u[1]})`||"var(--bgColor-success-emphasis)",r.createElement(zp,Op({className:Gr(n,{[Ap]:d})},l,{role:"progressbar","aria-label":o,ref:i,progress:e,style:d?g:void 0},s))}));Hp.displayName="ProgressBar.Item";const Vp=u((({animated:e,progress:o,bg:t="success.emphasis",barSize:a="default",children:n,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,className:s,...d},g)=>{if(n&&o)throw new Error("You should pass `progress` or children, not both.");const u=r.Children.toArray(n).length,v=bt(jp),b=v?{"data-progress-display":d.inline?"inline":"block","data-progress-bar-size":a}:{barSize:a};return r.createElement(Dp,Op({ref:g,className:Gr(s,{[Lp]:v})},b,d),u?n:r.createElement(Hp,{"data-animated":e,progress:o,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,bg:t}))}));Vp.displayName="ProgressBar";const Fp=Object.assign(Vp,{Item:Hp});var Wp,$p=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},Zp=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 Kp="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)}},Gp=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],qp={minimumIntegerDigits:2};class Up{constructor(e,r={}){Wp.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;$p(this,Wp,{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 Zp(this,Wp,"f")}formatToParts(e){const r=[],o=Zp(this,Wp,"f"),t=o.style,a=o.locale;for(const[t,n]of Gp){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?qp:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new Kp(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Wp=new WeakMap;const Yp=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Xp=["year","month","week","day","hour","minute","second","millisecond"];class Qp{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 Qp(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(Yp))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new Qp(...a):new Qp}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new Qp(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(Jp(o,Qp.from(e)).getTime()-o),a=Math.abs(Jp(o,Qp.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new Up(e,r).format(this)}}function Jp(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 em(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(),u=r.getMonth(),v=r.getDate();if(l>=27||t+a+l){const e=new Date(r);e.setDate(1),e.setMonth(u+a*o+1),e.setDate(0);const i=Math.max(0,v-e.getDate()),c=new Date(r);c.setFullYear(g+t*o),c.setDate(v-i),c.setMonth(u+a*o),c.setDate(v-i+l*o);const s=c.getFullYear()-r.getFullYear(),d=c.getMonth()-r.getMonth(),b=Math.abs(Math.round((Number(c)-Number(r))/864e5))+i,f=Math.abs(12*s+d);b<27?(l>=6?(n+=Math.round(l/7),l=0):l=b,a=t=0):f<11?(a=f,t=0):(a=0,t=s*o),(a||t)&&(l=0)}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 Qp(t*o,a*o,n*o,l*o,i*o,c*o,s*o,d*o)}var rm,om,tm,am,nm,lm,im,cm,sm,dm,gm,um=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)},vm=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 bm=globalThis.HTMLElement||null,fm=new Qp,hm=new Qp(0,0,0,0,0,1);class pm 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 mm(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 ym=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=mm(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,mm(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class xm extends bm{constructor(){super(...arguments),rm.add(this),om.set(this,!1),tm.set(this,!1),nm.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),gm.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","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return um(this,gm,"f")}set onRelativeTimeUpdated(e){um(this,gm,"f")&&this.removeEventListener("relative-time-updated",um(this,gm,"f")),vm(this,gm,"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,Yp.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 Xp.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 noTitle(){return this.hasAttribute("no-title")}set noTitle(e){this.toggleAttribute("no-title",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(){ym.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&vm(this,om,null!==o&&(this.date&&um(this,rm,"m",lm).call(this,this.date))!==o,"f"),um(this,tm,"f")||"title"===e&&um(this,om,"f")||vm(this,tm,(async()=>{await Promise.resolve(),this.update(),vm(this,tm,!1,"f")})(),"f"))}update(){const e=um(this,nm,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(um(this,nm,"f").textContent=e);const a=Date.now();um(this,om,"f")||(o=um(this,rm,"m",lm).call(this,t)||"",o&&!this.noTitle&&this.setAttribute("title",o));const n=function(e,r="second",o=Date.now()){const t=e.getTime()-o;if(0===t)return new Qp;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),u=Xp.indexOf(r)||Xp.length;return new Qp(u>=0?g*a:0,u>=1?(d-12*g)*a:0,0,u>=3?(s-30*d)*a:0,u>=4?(c-24*s)*a:0,u>=5?(i-60*c)*a:0,u>=6?(l-60*i)*a:0,u>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=um(this,rm,"m",im).call(this,n);let i=e;i="duration"===l?um(this,rm,"m",cm).call(this,n):"relative"===l?um(this,rm,"m",sm).call(this,n):um(this,rm,"m",dm).call(this,t),i?um(this,nm,"f").textContent=i:this.shadowRoot===um(this,nm,"f")&&this.textContent&&(um(this,nm,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new pm(e,i,r,o)),"relative"===l||"duration"===l?ym.observe(this):ym.unobserve(this)}}om=new WeakMap,tm=new WeakMap,nm=new WeakMap,gm=new WeakMap,rm=new WeakSet,am=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},lm=function(e){return new Intl.DateTimeFormat(um(this,rm,"a",am),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},im=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===Qp.compare(e,this.threshold))return"relative"}return"datetime"},cm=function(e){const r=um(this,rm,"a",am),o=this.format,t=this.formatStyle,a=this.tense;let n=fm;"micro"===o?(e=em(e),n=hm,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=hm)):("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})},sm=function(e){const r=new Intl.RelativeTimeFormat(um(this,rm,"a",am),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=fm),"past"===o&&-1!==e.sign&&(e=fm);const[t,a]=function(e,r){const o=em(e,r);if(o.blank)return[0,"second"];for(const e of Xp){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,"millisecond"===this.precision?"second":this.precision):r.format(t,a)},dm=function(e){const r=new Intl.DateTimeFormat(um(this,rm,"a",am),{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 wm="undefined"!=typeof globalThis?globalThis:window;try{wm.RelativeTimeElement=xm.define()}catch(Ps){if(!(wm.DOMException&&Ps instanceof DOMException&&"NotSupportedError"===Ps.name||Ps instanceof ReferenceError))throw Ps}function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cm.apply(null,arguments)}const km=Vs(xm,"relative-time"),Bm={month:"short",day:"numeric",year:"numeric"};function Em({date:e,datetime:o,children:t,noTitle:a,...n}){var l;return o&&(e=new Date(o)),r.createElement(km,Cm({},n,{date:e,"no-title":a?"":void 0}),t||(null===(l=e)||void 0===l?void 0:l.toLocaleDateString("en",Bm))||"")}Em.displayName="RelativeTime";const Tm="primer_react_css_modules_team",Sm={":first-child":{marginLeft:"-1px"},":last-child":{marginRight:"-1px"}},Nm={marginRight:"1px",":after":{backgroundColor:"var(--separator-color)",content:'""',position:"absolute",right:"-2px",top:2,bottom:2,width:"1px"}},_m=e=>({"--segmented-control-button-inner-padding":"12px","--segmented-control-button-bg-inset":"4px","--segmented-control-outer-radius":Wr("radii.2")(e),backgroundColor:"transparent",borderColor:"transparent",borderRadius:"var(--segmented-control-outer-radius)",borderWidth:0,color:"currentColor",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",fontWeight:null!=e&&e.selected?"bold":"normal",padding:null!=e&&e.selected?0:"var(--segmented-control-button-bg-inset)",height:"100%",width:"100%",".segmentedControl-content":{alignItems:"center",backgroundColor:null!=e&&e.selected?"segmentedControl.button.bg":"transparent",borderColor:null!=e&&e.selected?"segmentedControl.button.selected.border":"transparent",borderStyle:"solid",borderWidth:1,borderRadius:null!=e&&e.selected?"var(--segmented-control-outer-radius)":"calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2)",display:"flex",height:"100%",justifyContent:"center",paddingLeft:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))",paddingRight:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))"},svg:{fill:"fg.muted"},":hover .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.hover.bg"},":active .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.active.bg"},":focus:focus-visible:not(:last-child):after":{width:0},".segmentedControl-text":{":after":{content:`"${null==e?void 0:e.children}"`,display:"block",fontWeight:"bold",height:0,overflow:"hidden",pointerEvents:"none",userSelect:"none",visibility:"hidden"}},"@media (pointer: coarse)":{":before":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}}),Im=()=>({display:"block",position:"relative",flexGrow:1,marginTop:"-1px",marginBottom:"-1px",":not(:last-child)":Nm,":focus-within:has(:focus-visible)":{"--separator-color":"transparent"},...Sm});var Mm="prc_SegmentedControl_e7570",Am="prc_Item_7Aq6h",Lm="prc_Button_ojWXD",Om="prc_IconButton_O80Eh",Rm="prc_Content_gnQ4n",jm="prc_Text_c5gSh";function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zm.apply(null,arguments)}const Pm=yt(Tm,"button",m.button.withConfig({displayName:"SegmentedControlButton__SegmentedControlButtonStyled",componentId:"sc-8lkgxl-0"})(["",";",";"],Sd("-1px"),ft)),Dm=({children:e,leadingIcon:o,selected:t,sx:a=pt,className:n,...l})=>{const i=bt(Tm),c=i?a:oo(Im(),a);return r.createElement(ht,{as:"li",sx:c,className:Gr(i&&Am),"data-selected":t||void 0},r.createElement(Pm,zm({"aria-current":t,sx:i?void 0:_m({selected:t,children:e}),className:Gr(i&&Lm,n),type:"button"},l),r.createElement("span",{className:Gr(i?Rm:"segmentedControl-content")},o&&r.createElement(ht,{mr:1},Sn.isElement(o)?o:r.createElement(o,null)),r.createElement(ht,{className:Gr(i?jm:"segmentedControl-text"),"data-text":e},e))))};function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Hm.apply(null,arguments)}Dm.displayName="SegmentedControlButton";const Vm=yt(Tm,"button",m.button.withConfig({displayName:"SegmentedControlIconButton__SegmentedControlIconButtonStyled",componentId:"sc-oxh6a9-0"})(["",";",";"],Sd("-1px"),ft)),Fm=({"aria-label":e,icon:o,selected:t,sx:a=pt,className:n,...l})=>{const i=bt(Tm),c=i?a:oo({width:"32px",...Im()},a);return r.createElement(ht,{as:"li",sx:c,className:Gr(i&&Am,n),"data-selected":t||void 0},r.createElement(Vm,Hm({"aria-label":e,"aria-current":t,sx:i?void 0:_m({selected:t}),className:Gr(i&&Lm,i&&Om)},l),r.createElement("span",{className:Gr(i?Rm:"segmentedControl-content")},Sn.isElement(o)?o:r.createElement(o,null))))};function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Wm.apply(null,arguments)}Fm.displayName="SegmentedControlIconButton";const $m=yt(Tm,"ul",m.ul.withConfig({displayName:"SegmentedControl__SegmentedControlList",componentId:"sc-1rzig82-0"})(["",";"],ft)),Zm=({"aria-label":e,"aria-labelledby":o,children:t,fullWidth:a,onChange:n,size:c,sx:s=pt,variant:d="default",className:g,...u})=>{const v=l(null),{theme:b}=ct(),f=void 0===n||r.Children.toArray(t).some((e=>r.isValidElement(e)&&void 0!==e.props.defaultSelected)),h=ri(d,"default"),p=ri(a,!1),m=r.Children.toArray(t).map((e=>r.isValidElement(e)&&(e.props.defaultSelected||e.props.selected))),y=m.some((e=>e))?m.indexOf(!0):0,[x,w]=i(y),C=f?x:y,k=r.isValidElement(r.Children.toArray(t)[C])?r.Children.toArray(t)[C]:void 0,B=e=>{if(r.isValidElement(e)&&e.type===Dm&&e.props.leadingIcon){if(Sn.isElement(e.props.leadingIcon))return e.props.leadingIcon;{const o=e.props.leadingIcon;return r.createElement(o,null)}}if(r.isValidElement(e)&&e.type===Fm){if(!Sn.isElement(e.props.icon)){const o=e.props.icon;return r.createElement(o,null)}e.props.icon}return null},E=e=>r.isValidElement(e)&&e.type===Dm?e.props.children:r.isValidElement(e)?e.props["aria-label"]:null,T=bt(Tm),S=T?s:oo({backgroundColor:"segmentedControl.bg",borderRadius:2,border:"1px solid",borderColor:"var(--controlTrack-borderColor-rest, transparent)",display:(N={isFullWidth:p,size:c}).isFullWidth?"flex":"inline-flex",fontSize:"small"===N.size?0:1,height:"small"===N.size?"28px":"32px",margin:0,padding:0,width:N.isFullWidth?"100%":void 0},s);var N;return e||o||console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies"),"dropdown"===h?r.createElement(r.Fragment,null,r.createElement(zg,null,r.createElement(zg.Button,{"aria-label":e&&`${E(k)}, ${e}`,leadingVisual:B(k)},E(k)),r.createElement(zg.Overlay,{"aria-labelledby":o},r.createElement(Cg,{selectionVariant:"single"},r.Children.map(t,((e,o)=>{const t=B(e);return r.isValidElement(e)?r.createElement(Cg.Item,{key:`segmented-control-action-btn-${o}`,selected:o===C,onSelect:r=>{f&&w(o),n&&n(o),e.props.onClick&&e.props.onClick(r)}},t," ",E(e)):null})))))):r.createElement($m,Wm({sx:S,"aria-label":e,"aria-labelledby":o,ref:v,className:Gr(T&&Mm,g),"data-full-width":p||void 0,"data-size":c},u),r.Children.map(t,((e,o)=>{if(!r.isValidElement(e))return null;const t={onClick:n?r=>{n(o),f&&w(o),e.props.onClick&&e.props.onClick(r)}:r=>{e.props.onClick&&e.props.onClick(r),f&&w(o)},selected:o===C,sx:{"--separator-color":o===C||o===C-1?"transparent":null==b?void 0:b.colors.border.default,...e.props.sx}};if("hideLabels"===h&&r.isValidElement(e)&&e.type===Dm){const{"aria-label":o,leadingIcon:a,children:n,...l}=e.props,{sx:i,...c}=t;if(a)return r.createElement(Fm,Wm({"aria-label":o||n,icon:a,sx:{...i,width:p?"100%":"32px"}},c,l));console.warn("A `leadingIcon` prop is required when hiding visible labels")}return r.cloneElement(e,t)})))};Zm.displayName="SegmentedControl";const Km=Object.assign(Zm,{Button:Dm,IconButton:Fm});function Gm({variant:e="normal",className:o,bordered:t,children:a,"aria-label":n}){const l=Gr(o,`variant-${"lightweight"===e?"lightweight":"normal"}`);return r.createElement(ht,{borderWidth:t?"1px":0,borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:l,"aria-label":n},a)}Gm.displayName="SideNavBase";const qm=m(Gm).withConfig({displayName:"SideNav",componentId:"sc-11f1jdr-0"})(["background-color:",";"," ",";"],Wr("colors.canvas.subtle"),(e=>e.bordered&&C(["& > &{border-left:0;border-right:0;border-bottom:0;}"])),ft),Um=C(["background-color:",";text-decoration:none;"],Wr("colors.neutral.subtle")),Ym=C(["color:",";text-decoration:none;"],Wr("colors.fg.default")),Xm=m(mg).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{})).withConfig({displayName:"SideNav__SideNavLink",componentId:"sc-11f1jdr-1"})(["position:relative;display:block;"," width:100%;text-align:left;font-size:",";& > ","{border-bottom:none;}",".variant-normal > &{color:",";padding:",";border:0;border-top:"," solid ",";&:first-child{border-top:0;border-top-right-radius:",";border-top-left-radius:",";}&:last-child{border-bottom-right-radius:",";border-bottom-left-radius:",";}&::before{position:absolute;top:0;bottom:0;left:0;z-index:1;width:3px;pointer-events:none;content:'';}&:hover{","}&:focus{"," outline:solid 2px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{background-color:",";&::before{background-color:",";}}}",".variant-lightweight > &{padding:"," 0;color:",";&:hover{","}&:focus{"," outline:solid 1px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{color:",";font-weight:",";}}",";"],(e=>"full"===e.variant&&C(["display:flex;align-items:center;justify-content:space-between;"])),Wr("fontSizes.1"),qm,qm,Wr("colors.fg.default"),Wr("space.3"),Wr("borderWidths.1"),Wr("colors.border.muted"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Wr("radii.2"),Um,Um,Wr("colors.accent.fg"),Wr("colors.sidenav.selectedBg"),Wr("colors.primer.border.active"),qm,Wr("space.1"),Wr("colors.accent.fg"),Ym,Ym,Wr("colors.accent.fg"),Wr("colors.fg.default"),Wr("fontWeights.semibold"),ft);Xm.displayName="SideNav.Link";var Qm=Object.assign(qm,{Link:Xm});function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Jm.apply(null,arguments)}const ey={issueOpened:Lc,pullOpened:Nc,issueClosed:Mc,issueClosedNotPlanned:Pc,pullClosed:_c,pullMerged:Tc,draft:Ic,issueDraft:Ac,pullQueued:Sc,unavailable:pc},ry={issueOpened:"Issue",pullOpened:"Pull request",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",pullClosed:"Pull request",pullMerged:"Pull request",draft:"Pull request",issueDraft:"Issue",pullQueued:"Pull request",unavailable:""},oy=Te({prop:"status",variants:{issueClosed:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},issueClosedNotPlanned:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},pullClosed:{backgroundColor:"closed.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-closed-emphasis, transparent)"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},pullQueued:{backgroundColor:"attention.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-attention-emphasis, transparent)"},issueOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},pullOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},unavailable:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"}}}),ty=Te({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),ay=m.span.withConfig({displayName:"StateLabel__StateLabelBase",componentId:"sc-qthdln-0"})(["display:inline-flex;align-items:center;font-weight:",";line-height:16px;color:",";text-align:center;border-radius:",";",";",";",";"],Wr("fontWeights.bold"),Wr("colors.canvas.default"),Wr("radii.3"),oy,ty,ft);function ny({children:e,status:o,variant:t="normal",...a}){const n="small"===t?{width:"1em"}:{};return r.createElement(ay,Jm({},a,{variant:t,status:o}),o&&r.createElement(ch,Jm({},n,{icon:ey[o]||jc,"aria-label":ry[o],sx:{mr:1}})),e)}ny.displayName="StateLabel";var ly="prc_SubNav_rjui0",iy="prc_Body_Nw122",cy="prc_Actions_-IUp-",sy="prc_Links_5Qn65",dy="prc_Link_X843-";function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gy.apply(null,arguments)}const uy="primer_react_css_modules_team",vy=yt(uy,"nav",m.nav.withConfig({displayName:"SubNav__StyledSubNav",componentId:"sc-1t692wx-0"})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:",";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}",";"],Wr("space.2"),ft)),by=r.forwardRef((function({actions:e,className:o,children:t,label:a,...n},l){const i=bt(uy);return r.createElement(vy,gy({ref:l,className:Gr(o,"SubNav",{[ly]:i}),"aria-label":a},n),r.createElement("div",{className:Gr("SubNav-body",{[iy]:i})},t),e&&r.createElement("div",{className:Gr("SubNav-actions",{[cy]:i})},e))}));by.displayName="SubNav";const fy=yt(uy,"div",m.div.withConfig({displayName:"SubNav__StyledSubNavLinks",componentId:"sc-1t692wx-1"})(["display:flex;",";"],ft)),hy=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(uy);return r.createElement(fy,gy({ref:a,className:Gr(o,n&&sy)},t),e)}));hy.displayName="SubNav.Links";const py=yt(uy,"a",m.a.attrs((e=>({className:Gr("SubNav-item",e.selected&&"selected",e.className)}))).withConfig({displayName:"SubNav__StyledSubNavLink",componentId:"sc-1t692wx-2"})(["padding-left:",";padding-right:",";font-weight:",";font-size:",";line-height:20px;min-height:34px;color:",";text-align:center;text-decoration:none;border-top:1px solid ",";border-bottom:1px solid ",";border-right:1px solid ",";display:flex;align-items:center;&:first-of-type{border-top-left-radius:",";border-bottom-left-radius:",";border-left:1px solid ",";}&:last-of-type{border-top-right-radius:",";border-bottom-right-radius:",";}&:hover,&:focus{text-decoration:none;background-color:",";transition:background-color 0.2s ease;}&.selected{color:",";background-color:",";border-color:",";}",";"],Wr("space.3"),Wr("space.3"),Wr("fontWeights.semibold"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.canvas.subtle"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),ft)),my=r.forwardRef((function({children:e,className:o,...t},a){const n=bt(uy);return r.createElement(py,gy({ref:a,className:Gr(o,n&&dy),"data-selected":t.selected},t),e)}));my.displayName="SubNav.Link";var yy=Object.assign(by,{Link:my,Links:hy});function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},xy.apply(null,arguments)}const wy="80ms",Cy="cubic-bezier(0.5, 1, 0.89, 1)",ky=Te({prop:"size",variants:{small:{height:"24px",width:"48px"}}}),By=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"}));By.displayName="CircleIcon";const Ey=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"}));Ey.displayName="LineIcon";const Ty=m.button.withConfig({displayName:"ToggleSwitch__SwitchButton",componentId:"sc-e6gszy-0"})(["vertical-align:middle;cursor:pointer;user-select:none;appearance:none;text-decoration:none;padding:0;transition-property:background-color,border-color;transition-duration:",";transition-timing-function:",";border-radius:",";border-style:solid;border-width:1px;display:block;height:32px;width:64px;position:relative;overflow:hidden;",";@media (pointer:coarse){&:before{content:'';position:absolute;left:0;right:0;transform:translateY(-50%);top:50%;min-height:44px;}}@media (prefers-reduced-motion){transition:none;*{transition:none;}}&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"," "," ",""],wy,Cy,Wr("radii.2"),Sd("3px"),Wr("colors.switchTrack.hoverBg"),Wr("colors.switchTrack.activeBg"),(e=>e.disabled?C(["background-color:",";border-color:transparent;cursor:not-allowed;transition-property:none;"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["background-color:",";border-color:var(--control-checked-borderColor-rest,transparent);&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"],Wr("colors.switchTrack.checked.bg"),Wr("colors.switchTrack.checked.hoverBg"),Wr("colors.switchTrack.checked.activeBg")):C(["background-color:",";border-color:var(--controlTrack-borderColor-rest,transparent);&:active{background-color:",";}"],Wr("colors.switchTrack.bg"),Wr("colors.switchTrack.activeBg"))),ft,ky),Sy=m.div.withConfig({displayName:"ToggleSwitch__ToggleKnob",componentId:"sc-e6gszy-1"})(["background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:calc("," - 1px);width:50%;position:absolute;top:0;bottom:0;transition-property:transform;transition-duration:",";transition-timing-function:",";transform:",";z-index:1;@media (prefers-reduced-motion){transition:none;}",""],Wr("colors.switchKnob.bg"),(e=>e.disabled?Wr("colors.switchTrack.disabledBg"):Wr("colors.switchKnob.border")),Wr("radii.2"),wy,Cy,(e=>`translateX(${e.checked?"100%":"0px"})`),(e=>e.disabled?C(["border-color:",";"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["border-color:",";"],Wr("colors.switchKnob.checked.border")):void 0)),Ny={visibility:"hidden",height:0},_y=r.forwardRef((function(e,o){const{"aria-labelledby":n,"aria-describedby":l,defaultChecked:i,disabled:c,loading:s,checked:d,onChange:g,onClick:u,size:v="medium",statusLabelPosition:b="start",sx:f,...h}=e,p=void 0!==d,[m,y]=Yo(d,g,Boolean(i)),x=!c&&!s,w=t((e=>{p||y(!m),u&&u(e)}),[u,p,m,y]);return a((()=>{g&&p&&g(Boolean(d))}),[g,d,p]),r.createElement(ht,xy({display:"inline-flex",alignItems:"center",flexDirection:"start"===b?"row":"row-reverse",sx:f},h),s?r.createElement(Dt,{size:"small"}):null,r.createElement(kl,{color:x?"fg.default":"fg.muted",fontSize:"small"===v?0:1,mx:2,"aria-hidden":"true",sx:{position:"relative",cursor:"pointer"},onClick:w},r.createElement(ht,{textAlign:"right",sx:m?null:Ny},"On"),r.createElement(ht,{textAlign:"right",sx:m?Ny:null},"Off")),r.createElement(Ty,{ref:o,onClick:w,"aria-labelledby":n,"aria-describedby":l,"aria-pressed":m,checked:m,size:v,disabled:!x},r.createElement(ht,{"aria-hidden":"true",display:"flex",alignItems:"center",width:"100%",height:"100%",overflow:"hidden"},r.createElement(ht,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.checked.fg":"switchTrack.checked.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"0":"-100%"})`,transitionProperty:"transform",transitionDuration:wy}},r.createElement(Ey,{size:v})),r.createElement(ht,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.fg":"switchTrack.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"100%":"0"})`,transitionProperty:"transform",transitionDuration:wy}},r.createElement(By,{size:v}))),r.createElement(Sy,{"aria-hidden":"true",disabled:!x,checked:m})))}));var Iy="prc_Timeline_iQjcc",My="prc_TimelineItem_Sd-t-",Ay="prc_TimelineBadge_BqMiN",Ly="prc_TimelineBadgeWrapper_75vYD",Oy="prc_TimelineBody_WWZY0",Ry="prc_TimelineBreak_dPnDJ";function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jy.apply(null,arguments)}const zy="primer_react_css_modules_staff",Py=yt(zy,"div",m.div.withConfig({displayName:"Timeline__ToggleTimeline",componentId:"sc-1nkzbnu-0"})(["display:flex;flex-direction:column;"," ",";"],(e=>e.clipSidebar&&C([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])),ft)),Dy=r.forwardRef((function({clipSidebar:e,className:o,...t},a){return bt(zy)?r.createElement(Py,jy({},t,{className:Gr(o,Iy),ref:a,"data-clip-sidebar":e?"":void 0})):r.createElement(Py,jy({},t,{className:o,ref:a,clipSidebar:e}))}));Dy.displayName="Timeline";const Hy=yt(zy,"div",m.div.attrs((e=>({className:Gr("Timeline-Item",e.className)}))).withConfig({displayName:"Timeline__ToggleTimelineItem",componentId:"sc-1nkzbnu-1"})(["display:flex;position:relative;padding:"," 0;margin-left:",";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:",";}"," ",";"],Wr("space.3"),Wr("space.3"),Wr("colors.border.muted"),(e=>e.condensed&&C(["padding-top:",";padding-bottom:0;&:last-child{padding-bottom:",";}.TimelineItem-Badge{height:16px;margin-top:",";margin-bottom:",";color:",";background-color:",";border:0;}"],Wr("space.1"),Wr("space.3"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.canvas.default"))),ft)),Vy=r.forwardRef((function({condensed:e,className:o,...t},a){return bt(zy)?r.createElement(Hy,jy({},t,{className:Gr(o,My),ref:a,"data-condensed":e?"":void 0})):r.createElement(Hy,jy({},t,{className:o,ref:a,condensed:e}))}));Vy.displayName="TimelineItem";const Fy=({sx:e,className:o,...t})=>bt(zy)?e!==pt?r.createElement("div",{className:Ly},r.createElement(ht,jy({},t,{sx:e,className:Gr(o,Ay)}))):r.createElement("div",{className:Ly},r.createElement("div",jy({},t,{className:Gr(o,Ay)}))):r.createElement(ht,{position:"relative",zIndex:1},r.createElement(ht,{display:"flex",className:"TimelineItem-Badge",flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center",sx:e},t.children));Fy.displayName="TimelineBadge",Fy.displayName="Timeline.Badge";const Wy=yt(zy,"div",m.div.withConfig({displayName:"Timeline__ToggleTimelineBody",componentId:"sc-1nkzbnu-2"})(["min-width:0;max-width:100%;margin-top:",";color:",";flex:auto;font-size:",";",";"],Wr("space.1"),Wr("colors.fg.muted"),Wr("fontSizes.1"),ft)),$y=r.forwardRef((function({className:e,...o},t){return bt(zy)?r.createElement(Wy,jy({},o,{className:Gr(e,Oy),ref:t})):r.createElement(Wy,jy({},o,{className:e,ref:t}))}));$y.displayName="TimelineBody";const Zy=yt(zy,"div",m.div.withConfig({displayName:"Timeline__ToggleTimelineBreak",componentId:"sc-1nkzbnu-3"})(["position:relative;z-index:1;height:24px;margin:0;margin-bottom:-",";margin-left:0;background-color:",";border:0;border-top:"," solid ",";",";"],Wr("space.3"),Wr("colors.canvas.default"),Wr("space.1"),Wr("colors.border.default"),ft)),Ky=r.forwardRef((function({className:e,...o},t){return bt(zy)?r.createElement(Zy,jy({},o,{className:Gr(e,Ry),ref:t})):r.createElement(Zy,jy({},o,{className:e,ref:t}))}));Ky.displayName="TimelineBreak";var Gy=Object.assign(Dy,{Item:Vy,Badge:Fy,Body:$y,Break:Ky});function qy(e,r,o){return Math.min(Math.max(e,o),r)}class Uy extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Yy=Uy;function Xy(e){if("string"!=typeof e)throw new Yy(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let r=e.trim();r=nx.test(e)?function(e){const r=e.toLowerCase().trim(),o=Jy[function(e){let r=5381,o=e.length;for(;o;)r=33*r^e.charCodeAt(--o);return(r>>>0)%2341}(r)];if(!o)throw new Yy(e);return`#${o}`}(e):e;const o=rx.exec(r);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(ex(e,2),16))),parseInt(ex(e[3]||"f",2),16)/255]}const t=ox.exec(r);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=tx.exec(r);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=ax.exec(r);if(n){const[r,o,t,a]=Array.from(n).slice(1).map(parseFloat);if(qy(0,100,o)!==o)throw new Yy(e);if(qy(0,100,t)!==t)throw new Yy(e);return[...ix(r,o,t),Number.isNaN(a)?1:a]}throw new Yy(e)}const Qy=e=>parseInt(e.replace(/_/g,""),36),Jy="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,r)=>{const o=Qy(r.substring(0,3)),t=Qy(r.substring(3)).toString(16);let a="";for(let e=0;e<6-t.length;e++)a+="0";return e[o]=`${a}${t}`,e}),{});const ex=(e,r)=>Array.from(Array(r)).map((()=>e)).join(""),rx=new RegExp(`^#${ex("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ox=new RegExp(`^#${ex("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),tx=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ex(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ax=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,nx=/^[a-z]+$/i,lx=e=>Math.round(255*e),ix=(e,r,o)=>{let t=o/100;if(0===r)return[t,t,t].map(lx);const a=(e%360+360)%360/60,n=(1-Math.abs(2*t-1))*(r/100),l=n*(1-Math.abs(a%2-1));let i=0,c=0,s=0;a>=0&&a<1?(i=n,c=l):a>=1&&a<2?(i=l,c=n):a>=2&&a<3?(c=n,s=l):a>=3&&a<4?(c=l,s=n):a>=4&&a<5?(i=l,s=n):a>=5&&a<6&&(i=n,s=l);const d=t-n/2;return[i+d,c+d,s+d].map(lx)};var cx="prc_IssueLabel_ZuoEW",sx="prc_RemoveButton_H4Dmg";function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},dx.apply(null,arguments)}const gx={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},ux={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},vx=u(((e,t)=>{const a=bt("primer_react_css_modules_team"),{as:n,fillColor:l="#999",onRemove:i,id:c,isSelected:s,text:d,size:g=vf,hideRemoveButton:u,href:v,onClick:b,className:f,...h}=e,p={as:n,href:v,onClick:b},{resolvedColorScheme:m}=ct(),y=bf(e)&&Boolean(i)&&!u,x=e=>{e.stopPropagation(),i&&i()},w=o((()=>{const[r,o,t]=Xy(l),[a,n,c]=function(e){const[r,o,t,a]=Xy(e).map(((e,r)=>3===r?e:e/255)),n=Math.max(r,o,t),l=Math.min(r,o,t),i=(n+l)/2;if(n===l)return[0,0,i,a];const c=n-l;return[60*(r===n?(o-t)/c+(o<t?6:0):o===n?(t-r)/c+2:(r-o)/c+4),i>.5?c/(2-n-l):c/(n+l),i,a]}(l),d=!(null!=m&&m.startsWith("dark"));return{"--label-r":String(r),"--label-g":String(o),"--label-b":String(t),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*n)),"--label-l":String(Math.round(100*c)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:u||!i?void 0:0,position:"relative",...d?gx:ux,...s?{background:d?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":ux.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+(d?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{},...bf(e)?{"&:hover":{...d?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), linear-gradient(rgb(var(--label-r),var(--label-g),var(--label-b)), rgb(var(--label-r),var(--label-g),var(--label-b)))"}:{background:"hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);"},boxShadow:"shadow.medium"}}:{}}}),[l,m,u,i,s,e]);return a?r.createElement(mf,dx({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,className:Gr(cx,f),text:d,size:g,style:w,"data-has-remove-button":!u&&!!i},y?{}:p,h,{ref:t}),r.createElement(If,y?p:{},d),!u&&i?r.createElement(Ef,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:bf(e),"data-has-multiple-action-targets":y,className:sx}):null):r.createElement(mf,dx({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,text:d,size:g,sx:w},y?{}:p,h,{ref:t}),r.createElement(If,y?p:{},d),!u&&i?r.createElement(Ef,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:bf(e),sx:y?{position:"relative",zIndex:"1"}:{}}):null)}));vx.displayName="IssueLabelToken";var bx="prc_AvatarContainer_dBasr",fx="prc_Avatar_A1uRI",hx="prc_Token_8GtFN";function px(){return px=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},px.apply(null,arguments)}const mx="primer_react_css_modules_team",yx=yt(mx,"span",m.span.withConfig({displayName:"AvatarToken__AvatarContainer",componentId:"sc-62sih1-0"})(["--spacing:calc("," * 2);display:block;height:",";width:",";"],Wr("space.1"),(e=>`calc(${uf[e.avatarSize]} - var(--spacing))`),(e=>`calc(${uf[e.avatarSize]} - var(--spacing))`))),xx=u((({avatarSrc:e,id:o,size:t=vf,className:a,...n},l)=>bt(mx)?r.createElement(Of,px({leadingVisual:()=>r.createElement(yx,{avatarSize:t,className:bx,"data-size":t},r.createElement(Tu,{src:e,size:parseInt(uf[t],10),className:fx})),size:t,id:null==o?void 0:o.toString(),className:Gr(hx,a)},n,{ref:l})):r.createElement(Of,px({leadingVisual:()=>r.createElement(yx,{avatarSize:t},r.createElement(Tu,{src:e,size:parseInt(uf[t],10),sx:{width:"100%",height:"100%"}})),size:t,id:null==o?void 0:o.toString(),sx:{paddingLeft:Wr("space.1")}},n,{ref:l}))));xx.displayName="AvatarToken";var wx={TreeViewRootUlStyles:"prc_TreeViewRootUlStyles_eZtxW",TreeViewItem:"prc_TreeViewItem_ShJr0","focus-visible":"prc_focus-visible_VRVfB",TreeViewItemContainer:"prc_TreeViewItemContainer_-2Rkn",TreeViewItemSkeleton:"prc_TreeViewItemSkeleton_fqk59",TreeViewItemToggle:"prc_TreeViewItemToggle_gWUdE",TreeViewItemToggleHover:"prc_TreeViewItemToggleHover_nEgP-",TreeViewItemToggleEnd:"prc_TreeViewItemToggleEnd_t-AEB",TreeViewItemContent:"prc_TreeViewItemContent_f0r0b",TreeViewItemContentText:"prc_TreeViewItemContentText_smZM-",TreeViewItemVisual:"prc_TreeViewItemVisual_dRlGq",TreeViewItemLeadingAction:"prc_TreeViewItemLeadingAction_VXx8I",TreeViewItemLevelLine:"prc_TreeViewItemLevelLine_KPSSL",TreeViewDirectoryIcon:"prc_TreeViewDirectoryIcon_PHbeP",TreeViewVisuallyHidden:"prc_TreeViewVisuallyHidden_4-mPv",TreeViewSkeletonItemContainerStyle:"prc_TreeViewSkeletonItemContainerStyle_EB7p0",TreeItemSkeletonTextStyles:"prc_TreeItemSkeletonTextStyles_wnBY9"};function Cx(e){var r,o,t;const a=e.getAttribute("aria-label"),n=e.getAttribute("aria-labelledby");return a||(n?null!==(r=null===(o=document.getElementById(n))||void 0===o?void 0:o.textContent)&&void 0!==r?r:"":null!==(t=e.textContent)&&void 0!==t?t:"")}function kx({containerRef:e,mouseDownRef:r}){Vc({containerRef:e,bindKeys:Ro.ArrowVertical|Ro.ArrowHorizontal|Ro.HomeAndEnd|Ro.Backspace|Ro.PageUpDown,preventScroll:!0,getNextFocusable:(e,r,o)=>{var t;if(r instanceof HTMLElement){try{if(r.closest("dialog:modal"))return}catch{}return null!==(t=function(e,r){switch(`${function(e){if("treeitem"!==e.getAttribute("role"))throw new Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e)} ${r.key}`){case"open ArrowRight":return Ex(e);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return Tx(e)}switch(r.key){case"ArrowUp":return Bx(e,"previous");case"ArrowDown":return Bx(e,"next");case"Backspace":return Tx(e);case"Home":return function(e){const r=e.closest("[role=tree]"),o=null==r?void 0:r.querySelector("[role=treeitem]");return o instanceof HTMLElement?o:void 0}(e);case"End":return function(e){const r=e.closest("[role=tree]"),o=Array.from((null==r?void 0:r.querySelectorAll("[role=treeitem]"))||[]);if(0===o.length)return;let t=o.length-1,a=o[t];for(;t>0&&a instanceof HTMLElement&&null!==(n=a.parentElement)&&void 0!==n&&n.closest("[role=treeitem][aria-expanded=false]");){var n;t-=1,a=o[t]}return a instanceof HTMLElement?a:void 0}(e);case"PageUp":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=Nx(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.max(0,(n-1)*a+l)]}(e);case"PageDown":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=Nx(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.min(o.length-1,(n+1)*a+l)]}(e)}}(r,o))&&void 0!==t?t:r}},focusInStrategy:()=>{var o,t,a;if(r.current)return;const n=null===(o=e.current)||void 0===o?void 0:o.querySelector("[aria-current]"),l=null===(t=e.current)||void 0===t?void 0:t.querySelector('[role="treeitem"]');return n instanceof HTMLElement?n:document.activeElement instanceof HTMLElement&&null!==(a=e.current)&&void 0!==a&&a.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:l instanceof HTMLElement?l:void 0}})}function Bx(e,r){const o=e.closest("[role=tree]");if(!o)return;const t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,(e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let a=t.firstChild();for(;a!==e;)a=t.nextNode();let n="next"===r?t.nextNode():t.previousNode();for(;n instanceof HTMLElement&&null!==(l=n.parentElement)&&void 0!==l&&l.closest("[role=treeitem][aria-expanded=false]");){var l;n="next"===r?t.nextNode():t.previousNode()}return n instanceof HTMLElement?n:void 0}function Ex(e){const r=e.querySelector("[role=treeitem]");return r instanceof HTMLElement?r:void 0}function Tx(e){const r=e.closest("[role=group]"),o=null==r?void 0:r.closest("[role=treeitem]");return o instanceof HTMLElement?o:void 0}const Sx={height:32};function Nx(e,r){var o,t;const a=di(e),{height:n}=null!==(o=null==r?void 0:r.getBoundingClientRect())&&void 0!==o?o:Sx,l=null!==(t=null==a?void 0:a.clientHeight)&&void 0!==t?t:window.innerHeight;return Math.floor(l/n)}var _x="prc_SkeletonText_o0dUS";function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ix.apply(null,arguments)}const Mx={'&[data-component="SkeletonText"]':{"--font-size":"var(--text-body-size-medium, 0.875rem)","--line-height":"var(--text-body-lineHeight-medium, 1.4285)","--leading":"calc(var(--font-size) * var(--line-height) - var(--font-size))",borderRadius:"var(--borderRadius-small, 0.1875rem)",height:"var(--font-size)",marginBlock:"calc(var(--leading) / 2)"},'&[data-in-multiline="true"]':{marginBlockEnd:"calc(var(--leading) * 2)"},'&[data-in-multiline="true"]:last-child':{maxWidth:"65%",minWidth:"50px",marginBottom:0},"@supports (margin-block: mod(1px, 1px))":{'&[data-component="SkeletonText"]':{"--leading":"mod(var(--font-size) * var(--line-height), var(--font-size))"}},'&[data-text-skeleton-size="display"], &[data-text-skeleton-size="titleLarge"]':{borderRadius:"var(--borderRadius-medium, 0.375rem)"},'&[data-text-skeleton-size="display"]':{"--font-size":"var(--text-display-size, 2.5rem)","--line-height":"var(--text-display-lineHeight, 1.4)"},'&[data-text-skeleton-size="titleLarge"]':{"--font-size":"var(--text-title-size-large, 2.5rem)","--line-height":"var(--text-title-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="titleMedium"]':{"--font-size":"var(--text-title-size-medium, 1.25rem)","--line-height":"var(--text-title-lineHeight-medium, 1.6)"},'&[data-text-skeleton-size="titleSmall"]':{"--font-size":"var(--text-title-size-small, 1rem)","--line-height":"var(--text-title-lineHeight-small, 1.5)"},'&[data-text-skeleton-size="subtitle"]':{"--font-size":"var(--text-subtitle-size, 1.25rem)","--line-height":"var(--text-subtitle-lineHeight, 1.6)"},'&[data-text-skeleton-size="bodyLarge"]':{"--font-size":"var(--text-body-size-large, 1rem)","--line-height":"var(--text-body-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="bodySmall"]':{"--font-size":"var(--text-body-size-small, 0.75rem)","--line-height":"var(--text-body-lineHeight-small, 1.6666)"}},Ax=({lines:e=1,maxWidth:o,size:t="bodyMedium",className:a,style:n,...l})=>{const i=bt(ju);return e<2?r.createElement(Hu,Ix({"data-component":"SkeletonText","data-text-skeleton-size":t,width:"100%",className:Gr(a,{[_x]:i}),sx:i?{}:{maxWidth:o,...Mx},style:i?oo(n,{maxWidth:o}):n},l)):r.createElement(ht,{"data-component":"multilineContainer",sx:{maxWidth:o,paddingBlock:"0.1px"},style:i?oo(n,{maxWidth:o,paddingBlock:"0.1px"}):n},Array.from({length:e},((e,o)=>r.createElement(Hu,Ix({key:o,"data-component":"SkeletonText","data-in-multiline":"true","data-text-skeleton-size":t,sx:i?{}:Mx,className:Gr(a,{[_x]:i})},l)))))},Lx=r.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map}}),Ox=r.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:""}),Rx=yt("primer_react_css_modules_team","ul",m.ul.withConfig({displayName:"TreeView__UlBox",componentId:"sc-4ex6b6-0"})(["list-style:none;padding:0;margin:0;.PRIVATE_TreeView-item{outline:none;&:focus-visible > div,&.focus-visible > div{box-shadow:inset 0 0 0 2px ",";@media (forced-colors:active){outline:2px solid HighlightText;outline-offset:-2;}}&[data-has-leading-action]{--has-leading-action:1;}}.PRIVATE_TreeView-item-container{--level:1;--toggle-width:1rem;--min-item-height:2rem;position:relative;display:grid;--leading-action-width:calc(var(--has-leading-action,0) * 1.5rem);--spacer-width:calc(calc(var(--level) - 1) * (var(--toggle-width) / 2));grid-template-columns:var(--spacer-width) var(--leading-action-width) var(--toggle-width) 1fr;grid-template-areas:'spacer leadingAction toggle content';width:100%;font-size:",";color:",";border-radius:",";cursor:pointer;&:hover{background-color:",";@media (forced-colors:active){outline:2px solid transparent;outline-offset:-2px;}}@media (pointer:coarse){--toggle-width:1.5rem;--min-item-height:2.75rem;}&:has(.PRIVATE_TreeView-item-skeleton):hover{background-color:transparent;cursor:default;@media (forced-colors:active){outline:none;}}}&[data-omit-spacer='true'] .PRIVATE_TreeView-item-container{grid-template-columns:0 0 0 1fr;}.PRIVATE_TreeView-item[aria-current='true'] > .PRIVATE_TreeView-item-container{background-color:",";&::after{content:'';position:absolute;top:calc(50% - 0.75rem);left:-",";width:0.25rem;height:1.5rem;background-color:",";border-radius:",";@media (forced-colors:active){background-color:HighlightText;}}}.PRIVATE_TreeView-item-toggle{grid-area:toggle;display:flex;justify-content:center;align-items:flex-start;padding-top:calc(var(--min-item-height) / 2 - ","px / 2);height:100%;color:",";}.PRIVATE_TreeView-item-toggle--hover:hover{background-color:",";}.PRIVATE_TreeView-item-toggle--end{border-top-left-radius:",";border-bottom-left-radius:",";}.PRIVATE_TreeView-item-content{grid-area:content;display:flex;height:100%;padding:0 ",";gap:",";line-height:var(--custom-line-height,var(--text-body-lineHeight-medium,1.4285));padding-top:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);padding-bottom:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);}.PRIVATE_TreeView-item-content-text{flex:1 1 auto;width:0;}&[data-truncate-text='true'] .PRIVATE_TreeView-item-content-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&[data-truncate-text='false'] .PRIVATE_TreeView-item-content-text{word-break:break-word;}.PRIVATE_TreeView-item-visual{display:flex;align-items:center;color:",";height:var(--custom-line-height,1.3rem);}.PRIVATE_TreeView-item-leading-action{display:flex;color:",";grid-area:leadingAction;}.PRIVATE_TreeView-item-level-line{width:100%;height:100%;border-right:1px solid;border-color:",";}@media (hover:hover){.PRIVATE_TreeView-item-level-line{border-color:transparent;}&:hover .PRIVATE_TreeView-item-level-line,&:focus-within .PRIVATE_TreeView-item-level-line{border-color:",";}}.PRIVATE_TreeView-directory-icon{display:grid;color:",";}.PRIVATE_VisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}",""],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.actionListItem.default.selectedBg"),Wr("space.2"),Wr("colors.accent.fg"),Wr("radii.2"),12,Wr("colors.fg.muted"),Wr("colors.treeViewItem.chevron.hoverBg"),Wr("radii.2"),Wr("radii.2"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.fg.muted"),Wr("colors.border.subtle"),Wr("colors.border.subtle"),Wr("colors.treeViewItem.directory.fill"),ft)),jx=({"aria-label":e,"aria-labelledby":o,children:n,flat:l,truncate:i=!0,className:c,style:s})=>{const d=r.useRef(null),g=r.useRef(!1),[u,v]=r.useState(""),b=r.useCallback((e=>{v(e)}),[]),f=t((()=>{g.current=!0}),[]);a((()=>{function e(){g.current=!1}return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]),kx({containerRef:d,mouseDownRef:g}),function({containerRef:e,onFocusChange:o}){const t=r.useRef(""),a=r.useRef(0),n=r.useRef(o),{safeSetTimeout:l,safeClearTimeout:i}=gc();r.useEffect((()=>{n.current=o}),[o]);const c=r.useCallback((r=>{if(!r)return;if(!e.current)return;const o=e.current,t=Array.from(o.querySelectorAll('[role="treeitem"]')),a=t.findIndex((e=>e===document.activeElement));let l=(c=a,(i=t).map(((e,r)=>i[(c+r)%i.length])));var i,c;1===r.length&&(l=l.slice(1));const s=l.find((e=>Cx(e).toLowerCase().startsWith(r.toLowerCase())));s&&n.current(s)}),[e]);r.useEffect((()=>{if(!e.current)return;const r=e.current;function o(e){!e.key||e.key.length>1||" "===e.key||e.ctrlKey||e.altKey||e.metaKey||(t.current+=e.key,c(t.current),i(a.current),a.current=l((()=>t.current=""),300),e.preventDefault(),e.stopPropagation())}return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)}),[e,c,i,l])}({containerRef:d,onFocusChange:e=>{e instanceof HTMLElement&&e.focus()}});const h=r.useRef(null);null===h.current&&(h.current=new Map);const p=bt("primer_react_css_modules_team");return r.createElement(Lx.Provider,{value:{announceUpdate:b,expandedStateCache:h}},r.createElement(r.Fragment,null,r.createElement(Bl,{role:"status","aria-live":"polite","aria-atomic":"true"},u),r.createElement(Rx,{ref:d,role:"tree","aria-label":e,"aria-labelledby":o,"data-omit-spacer":l,"data-truncate-text":i||!1,onMouseDown:f,className:Gr(c,{[wx.TreeViewRootUlStyles]:p}),style:s},n)))};jx.displayName="Root",jx.displayName="TreeView";const zx=r.forwardRef((({id:e,containIntrinsicSize:o,current:t=!1,defaultExpanded:a,expanded:n,onExpandedChange:l,onSelect:i,children:c,className:s,"aria-label":d,"aria-labelledby":g},u)=>{const[v,b]=oi(c,{leadingAction:Gx,leadingVisual:Zx,trailingVisual:Kx}),{expandedStateCache:f}=r.useContext(Lx),h=ot(),p=ot(),m=ot(),[y,x]=function({name:e="custom",defaultValue:o,value:t,onChange:a}){const[n,l]=r.useState(null!=t?t:o),i=r.useRef(null),c=r.useRef(a);r.useEffect((()=>{c.current=a})),null===i.current&&(i.current=void 0!==t);const s=r.useCallback((e=>{var r;const o="function"==typeof e?e(n):e;!1===i.current&&l(o),null===(r=c.current)||void 0===r||r.call(c,o)}),[n]);return r.useEffect((()=>{i.current,i.current}),[e,t]),!0===i.current?[t,s]:[n,s]}({name:e,defaultValue:()=>{var r,o,n;return null!==(r=null!==(o=null===(n=f.current)||void 0===n?void 0:n.get(e))&&void 0!==o?o:a)&&void 0!==r?r:t},value:null!==n&&n,onChange:l}),{level:w}=r.useContext(Ox),{hasSubTree:C,subTree:k,childrenWithoutSubTree:B}=function(e){return r.useMemo((()=>{const o=r.Children.toArray(e).find((e=>r.isValidElement(e)&&e.type===Dx));return{subTree:o,childrenWithoutSubTree:r.Children.toArray(e).filter((e=>!(r.isValidElement(e)&&e.type===Dx))),hasSubTree:Boolean(o)}}),[e])}(b),[E,T]=r.useState(!C),[S,N]=r.useState(!1),_=r.useCallback((r=>{var o;x(r),null===(o=f.current)||void 0===o||o.set(e,r)}),[e,x,f]),I=r.useCallback((e=>{_(!y),null==e||e.stopPropagation()}),[y,_]),M=r.useCallback((e=>{switch(e.key){case"Enter":case" ":i?i(e):I(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!1)}}),[i,_,I]),A=[v.leadingVisual?p:null,v.trailingVisual?m:null].filter(Boolean),L=bt("primer_react_css_modules_team");return r.createElement(Ox.Provider,{value:{itemId:e,level:w+1,isSubTreeEmpty:E,setIsSubTreeEmpty:T,isExpanded:y,setIsExpanded:_,leadingVisualId:p,trailingVisualId:m}},r.createElement("li",{className:Gr("PRIVATE_TreeView-item",s,{[wx.TreeViewItem]:L}),ref:u,tabIndex:0,id:e,role:"treeitem","aria-label":d,"aria-labelledby":d?void 0:g||h,"aria-describedby":A.length?A.join(" "):void 0,"aria-level":w,"aria-expanded":(!E||y&&C)&&null!==n?y:void 0,"aria-current":t?"true":void 0,"aria-selected":S?"true":"false","data-has-leading-action":!!v.leadingAction||void 0,onKeyDown:M,onFocus:e=>{var r;null===(r=e.currentTarget.firstElementChild)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),N(!0),e.stopPropagation()},onBlur:()=>N(!1),onClick:e=>{i?i(e):I(e),e.stopPropagation()},onAuxClick:e=>{i&&1===e.button&&i(e),e.stopPropagation()}},r.createElement("div",{className:Gr("PRIVATE_TreeView-item-container",{[wx.TreeViewItemContainer]:L}),style:{"--level":w,contentVisibility:o?"auto":void 0,containIntrinsicSize:o}},r.createElement("div",{style:{gridArea:"spacer",display:"flex"}},r.createElement(Px,{level:w})),v.leadingAction,C?r.createElement("div",{className:Gr("PRIVATE_TreeView-item-toggle",i&&"PRIVATE_TreeView-item-toggle--hover",1===w&&"PRIVATE_TreeView-item-toggle--end",{[wx.TreeViewItemToggle]:L,[wx.TreeViewItemToggleHover]:L,[wx.TreeViewItemToggleEnd]:L}),onClick:e=>{i&&I(e)}},y?r.createElement(Cc,{size:12}):r.createElement(kc,{size:12})):null,r.createElement("div",{id:h,className:Gr("PRIVATE_TreeView-item-content",{[wx.TreeViewItemContent]:L})},v.leadingVisual,r.createElement("span",{className:Gr("PRIVATE_TreeView-item-content-text",{[wx.TreeViewItemContentText]:L})},B),v.trailingVisual)),k))})),Px=({level:e})=>{const o=bt("primer_react_css_modules_team");return r.createElement("div",{style:{width:"100%",display:"flex"}},Array.from({length:e-1}).map(((e,t)=>r.createElement("div",{key:t,className:Gr("PRIVATE_TreeView-item-level-line",{[wx.TreeViewItemLevelLine]:o})}))))};Px.displayName="LevelIndicatorLines",zx.displayName="TreeView.Item";const Dx=({count:e,state:o,children:t})=>{const{announceUpdate:a}=r.useContext(Lx),{itemId:n,isExpanded:l,isSubTreeEmpty:i,setIsSubTreeEmpty:c}=r.useContext(Ox),s=r.useRef(null),d=r.useRef(null),[g,u]=r.useState(!1),v=function(e){const o=r.useRef(e);return r.useEffect((()=>{o.current=e}),[e]),o.current}(o),{safeSetTimeout:b}=gc();return r.useEffect((()=>{void 0!==o&&"done"!==o||(i||t?i&&t&&c(!1):c(!0))}),[o,i,c,t]),r.useEffect((()=>{const e=document.getElementById(n);if(e)if("loading"===v&&"done"===o){var r;const o=Cx(e);if(null!==(r=d.current)&&void 0!==r&&r.childElementCount?a(`${o} content loaded`):a(`${o} is empty`),g){const r=Ex(e);b(r?()=>{r.focus()}:()=>{e.focus()}),u(!1)}}else if("loading"===o){const r=Cx(e);a(`${r} content loading`)}}),[g,v,o,n,a,d,b]),r.useEffect((()=>{function e(){u(!0)}function r(e){e.relatedTarget&&u(!1)}const o=s.current;if(o)return o.addEventListener("focus",e),o.addEventListener("blur",r),()=>{o.removeEventListener("focus",e),o.removeEventListener("blur",r)}}),[s,o]),l?r.createElement("ul",{role:"group",style:{listStyle:"none",padding:0,margin:0},ref:d},"loading"===o?r.createElement(Wx,{ref:s,count:e}):t,i&&"loading"!==o?r.createElement($x,null):null):null};Dx.displayName="SubTree",Dx.displayName="TreeView.SubTree";const Hx=yt("primer_react_css_modules_team","span",m.span.attrs({className:"PRIVATE_TreeView-item-skeleton"}).withConfig({displayName:"TreeView__StyledSkeletonItemContainer",componentId:"sc-4ex6b6-1"})(["display:flex;align-items:center;column-gap:0.5rem;height:2rem;@media (pointer:coarse){height:2.75rem;}&:nth-of-type(5n + 1){--tree-item-loading-width:67%;}&:nth-of-type(5n + 2){--tree-item-loading-width:47%;}&:nth-of-type(5n + 3){--tree-item-loading-width:73%;}&:nth-of-type(5n + 4){--tree-item-loading-width:64%;}&:nth-of-type(5n + 5){--tree-item-loading-width:50%;}"])),Vx=yt("primer_react_css_modules_team",Ax,m(Ax).withConfig({displayName:"TreeView__StyledSkeletonText",componentId:"sc-4ex6b6-2"})(["width:var(--tree-item-loading-width,67%);"])),Fx=()=>{const e=bt("primer_react_css_modules_team");return r.createElement(Hx,{className:Gr({[wx.TreeViewSkeletonItemContainerStyles]:e,[wx.TreeViewItemSkeleton]:e},"PRIVATE_TreeView-item-skeleton")},r.createElement($u,{size:16,square:!0}),r.createElement(Vx,{className:Gr({[wx.TreeItemSkeletonTextStyles]:e})}))};Fx.displayName="SkeletonItem";const Wx=r.forwardRef((({count:e},o)=>{const t=ot(),a=bt("primer_react_css_modules_team");return e?r.createElement(zx,{id:t,ref:o},Array.from({length:e}).map(((e,o)=>r.createElement(Fx,{"aria-hidden":!0,key:o}))),r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[wx.TreeViewVisuallyHidden]:a})},"Loading ",e," items")):r.createElement(zx,{id:t,ref:o},r.createElement(Zx,null,r.createElement(Dt,{size:"small"})),r.createElement(kl,{className:"fgColor-muted"},"Loading..."))})),$x=r.forwardRef(((e,o)=>r.createElement(zx,{expanded:null,id:ot(),ref:o},r.createElement(kl,{className:"fgColor-muted"},"No items found"))));const Zx=e=>{const o=bt("primer_react_css_modules_team"),{isExpanded:t,leadingVisualId:a}=r.useContext(Ox),n="function"==typeof e.children?e.children({isExpanded:t}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[wx.TreeViewVisuallyHidden]:o}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[wx.TreeViewItemVisual]:o}),"aria-hidden":!0},n))};Zx.displayName="TreeView.LeadingVisual";const Kx=e=>{const o=bt("primer_react_css_modules_team"),{isExpanded:t,trailingVisualId:a}=r.useContext(Ox),n="function"==typeof e.children?e.children({isExpanded:t}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[wx.TreeViewVisuallyHidden]:o}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[wx.TreeViewItemVisual]:o}),"aria-hidden":!0},n))};Kx.displayName="TreeView.TrailingVisual";const Gx=e=>{const o=bt("primer_react_css_modules_team"),{isExpanded:t}=r.useContext(Ox),a="function"==typeof e.children?e.children({isExpanded:t}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[wx.TreeViewVisuallyHidden]:o}),"aria-hidden":!0},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-leading-action",{[wx.TreeViewItemLeadingAction]:o}),"aria-hidden":!0},a))};Gx.displayName="TreeView.LeadingAction";const qx=()=>{const e=bt("primer_react_css_modules_team"),{isExpanded:o}=r.useContext(Ox),t=o?Ec:Bc;return r.createElement("div",{className:Gr("PRIVATE_TreeView-directory-icon",{[wx.TreeViewDirectoryIcon]:e})},r.createElement(t,null))};qx.displayName="DirectoryIcon";const Ux=({title:e="Error",children:o,onRetry:t,onDismiss:a})=>{const{itemId:n,setIsExpanded:l}=r.useContext(Ox);return r.createElement("div",{onKeyDown:e=>{["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"].includes(e.key)&&e.stopPropagation()}},r.createElement(Os,{title:e,onClose:e=>{setTimeout((()=>{const e=document.getElementById(n);null==e||e.focus()})),"confirm"===e?null==t||t():(l(!1),null==a||a())},confirmButtonContent:"Retry",cancelButtonContent:"Dismiss"},o))};Ux.displayName="ErrorDialog",Ux.displayName="TreeView.ErrorDialog";const Yx=Object.assign(jx,{Item:zx,SubTree:Dx,LeadingAction:Gx,LeadingVisual:Zx,TrailingVisual:Kx,DirectoryIcon:qx,ErrorDialog:Ux}),Xx=d({theme:{},setChildrenWidth:()=>null,setNoIconChildrenWidth:()=>null,loadingCounters:!1,iconsVisible:!0}),Qx=e=>({display:"inline-block",borderLeft:"1px solid",width:"1px",borderLeftColor:`${null==e?void 0:e.colors.border.muted}`,marginRight:1,height:"24px"}),Jx={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2,'& > span[data-component="trailingVisual"]':{marginLeft:0}},ew={"& > span":{display:"none"},textDecoration:"none"},rw={position:"absolute",zIndex:1,top:"90%",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",borderRadius:"12px",backgroundColor:"canvas.overlay",listStyle:"none",minWidth:"192px",maxWidth:"640px",right:"0"},ow=(e,r)=>{if(e&&r){const{left:o}=Bo(e,r,{align:"start",side:"outside-bottom"}),{right:t,...a}=rw;return{...a,left:o}}return rw};function tw(){return tw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},tw.apply(null,arguments)}const aw=m.div.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineWrapper",componentId:"sc-4ilrg0-0"})(["display:flex;padding-inline:var(--stack-padding-normal,",");justify-content:flex-start;align-items:center;min-height:var(--control-xlarge-size,48px);box-shadow:inset 0px -1px var(--borderColor-muted,",");",";"],Wr("space.3"),Wr("colors.border.muted"),ft),nw=m.ul.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineItemList",componentId:"sc-4ilrg0-1"})(["display:flex;list-style:none;white-space:nowrap;padding:0;margin:0;align-items:center;gap:","px;position:relative;"],8),lw=m.div.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineItem",componentId:"sc-4ilrg0-2"})(["appearance:none;background-color:transparent;border:0;cursor:pointer;font:inherit;position:relative;display:inline-flex;color:",";text-align:center;text-decoration:none;line-height:var(--text-body-lineHeight-medium,1.4285);border-radius:var(--borderRadius-medium,",");font-size:var(--text-body-size-medium,",");padding-inline:var(--control-medium-paddingInline-condensed,",");padding-block:var(--control-medium-paddingBlock,6px);align-items:center;@media (hover:hover){&:hover{background-color:var(--bgColor-neutral-muted,",");transition:background 0.12s ease-out;text-decoration:none;}}&:focus:{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");&:not(:focus-visible){box-shadow:none;}}&:focus-visible{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");}[data-content]::before{content:attr(data-content);display:block;height:0;font-weight:var(--base-text-weight-semibold,",");visibility:hidden;white-space:nowrap;}[data-component='icon']{color:var(--fgColor-muted,",");align-items:center;display:inline-flex;margin-inline-end:var(--control-medium-gap,",");}[data-component='counter']{margin-inline-start:var(--control-medium-gap,",");display:flex;align-items:center;}&::after{position:absolute;right:50%;bottom:calc(50% - calc(var(--control-xlarge-size,48px) / 2 + 1px));width:100%;height:2px;content:'';background-color:transparent;border-radius:0;transform:translate(50%,-50%);}&[aria-current]:not([aria-current='false']),&[aria-selected='true']{[data-component='text']{font-weight:var(--base-text-weight-semibold,",");}&::after{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73));}}@media (forced-colors:active){&[aria-current]:not([aria-current='false']),&[aria-selected='true']{::after{background-color:LinkText;}}}",";"],Wr("colors.fg.default"),Wr("radii.2"),Wr("fontSizes.1"),Wr("space.2"),Wr("colors.neutral.subtle"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("fontWeights.semibold"),Wr("colors.fg.muted"),Wr("space.2"),Wr("space.2"),Wr("fontWeights.semibold"),ft),iw=w(["from{opacity:1;}to{opacity:0.2;}"]),cw=m.span.withConfig({displayName:"UnderlineTabbedInterface__LoadingCounter",componentId:"sc-4ilrg0-3"})(["animation:"," 1.2s ease-in-out infinite alternate;background-color:var(--bgColor-neutral-muted,",");border-color:var(--borderColor-default,",");width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"],iw,Wr("colors.neutral.subtle"),Wr("colors.border.default")),sw=u((({as:e="a",children:o,counter:t,icon:a,iconsVisible:n,loadingCounters:l,sx:i=pt,...c},s)=>r.createElement(lw,tw({ref:s,as:e,sx:i},c),n&&a&&r.createElement("span",{"data-component":"icon"},Sn.isElement(a)?a:r.createElement(a,null)),o&&r.createElement("span",{"data-component":"text","data-content":o},o),void 0!==t?l?r.createElement("span",{"data-component":"counter"},r.createElement(cw,null)):r.createElement("span",{"data-component":"counter"},r.createElement(Ft,null,t)):null)));function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},dw.apply(null,arguments)}m.ul.withConfig({displayName:"UnderlineNav__NavigationList",componentId:"sc-1jfr31k-0"})(["",";"],ft);const gw=m.li.withConfig({displayName:"UnderlineNav__MoreMenuListItem",componentId:"sc-1jfr31k-1"})(["display:flex;align-items:center;height:","px;"],45),uw=(e,r,o=0)=>{const t=r-o;let a=e.length,n=0;for(const[r,o]of e.entries())if(n=n+o.width+8,n>t){a=r;break}return a},vw=u((({as:e="nav","aria-label":o,sx:a=pt,loadingCounters:n=!1,children:c},s)=>{var d;const g=l(null),u=null!=s?s:g,v=l(null),b=l(null),f=l(null),h=r.useRef(null),p=ot(),{theme:m}=ct(),[y,x]=i(!1),[w,C]=i(!0),[k,B]=i([]),[E,T]=i([]),S=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(c),[N,_]=i({items:S,menuItems:[]}),I=N.items.map((e=>{var r;return null!==(r=S.find((r=>r.key===e.key)))&&void 0!==r?r:e})),M=N.menuItems.map((e=>{var r;return null!==(r=S.find((r=>r.key===e.key)))&&void 0!==r?r:e})),A=0===N.items.length;function L(e){var r,o;return null!==(r=null===(o=E.find((r=>r.text===e)))||void 0===o?void 0:o.width)&&void 0!==r?r:0}const O=(e,r,o,t)=>{var a,n;const l=function(e,r){let o=0,t=0;for(const[a,n]of[...N.items].reverse().entries())if(o+=L(n.props.children),e<o+r){t=a;break}return t}(L(e.props.children),u.current.getBoundingClientRect().width-(null!==(a=null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect().width)&&void 0!==a?a:0)),i=N.items.length-1-l,c=[...[...N.items].slice(0,i),e],s=[...N.items].slice(i),d=[...M];d.splice(r,1,...s),t({items:c,menuItems:d},!1)};const R=t(((e,r)=>{_(e),C(r)}),[]),j=t((e=>{B((r=>[...r,e]))}),[]),z=t((e=>{T((r=>[...r,e]))}),[]),P=r.useCallback((()=>{x(!1)}),[x]),D=r.useCallback((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}),[]),H=t((e=>{e.defaultPrevented||0!==e.button||x((e=>!e))}),[]);return vo((e=>{y&&(e.preventDefault(),P(),D())}),[y]),io({onClickOutside:P,containerRef:h,ignoreClickRefs:[f]}),Ko((e=>{var r,o;const t=e[0].contentRect.width,a=null!==(r=null===(o=b.current)||void 0===o?void 0:o.getBoundingClientRect().width)&&void 0!==r?r:0;0!==t&&((e,r,o,t,a,n)=>{let l=!0;0===t.length&&n({items:o,menuItems:[]},l);const i=uw(t,e),c=uw(a,e),s=uw(a,e,r||86),d=[],g=[];if(o.length<=i)d.push(...o);else if(o.length<=c)l=!1,d.push(...o);else{l=!1;const e=1==o.length-s?s-1:s;for(const[r,t]of o.entries())if(r<e)d.push(t);else{const r=t.props["aria-current"];if(Boolean(r)&&"false"!==r&&e>0){const r=e-1,o=d.splice(r,1,t)[0];g.push(o)}else g.push(t)}}n({items:d,menuItems:g},l)})(t,a,S,k,E,R)}),u),r.createElement(Xx.Provider,{value:{theme:m,setChildrenWidth:j,setNoIconChildrenWidth:z,loadingCounters:n,iconsVisible:w}},o&&r.createElement(Bl,{as:"h2"},`${o} navigation`),r.createElement(aw,{as:e,"aria-label":o,ref:u,sx:a},r.createElement(nw,{ref:v,role:"list"},I,M.length>0&&r.createElement(gw,{ref:b},!A&&r.createElement(ht,{sx:Qx(m)}),r.createElement(An,{ref:f,sx:Jx,"aria-controls":p,"aria-expanded":y,onClick:H,trailingAction:Dc},r.createElement(ht,{as:"span"},A?r.createElement(r.Fragment,null,r.createElement(Bl,{as:"span"},`${o}`," "),"Menu"):r.createElement(r.Fragment,null,"More",r.createElement(Bl,{as:"span"}," ",`${o} items`)))),r.createElement(Cg,{selectionVariant:"single",ref:h,id:p,sx:null!==(d=v.current)&&void 0!==d&&d.clientWidth&&v.current.clientWidth>=192?rw:ow(h.current,v.current),style:{display:y?"block":"none"}},M.map(((e,o)=>{const{children:t,counter:a,"aria-current":l,onSelect:i,...c}=e.props;if(Boolean(l)&&"false"!==l){new MouseEvent("click");!A&&O(e,o,0,R)}return r.createElement(Cg.LinkItem,dw({key:t,sx:ew,onClick:r=>{!A&&O(e,o,0,R),P(),D(),"function"==typeof i&&i(r)}},c),r.createElement(ht,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},t,n?r.createElement(cw,null):void 0!==a&&r.createElement(ht,{as:"span","data-component":"counter"},r.createElement(Ft,null,a))))})))))))}));function bw(){return bw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},bw.apply(null,arguments)}vw.displayName="UnderlineNav";const fw=u((({sx:e=pt,as:o="a",href:t="#",children:a,counter:n,onSelect:i,"aria-current":c,icon:s,...d},u)=>{const v=l(null),b=null!=u?u:v,{setChildrenWidth:f,setNoIconChildrenWidth:h,loadingCounters:p,iconsVisible:m}=g(Xx);Zo((()=>{if(b.current){const e=b.current.getBoundingClientRect(),r=Array.from(b.current.children).find((e=>"icon"===e.getAttribute("data-component"))),o=Array.from(b.current.children).find((e=>"text"===e.getAttribute("data-component"))).textContent,t=r?r.getBoundingClientRect().width+Number(getComputedStyle(r).marginRight.slice(0,-2))+Number(getComputedStyle(r).marginLeft.slice(0,-2)):0;f({text:o,width:e.width}),h({text:o,width:e.width-t})}}),[b,f,h]);const y=r.useCallback((e=>{" "!==e.key&&"Enter"!==e.key||e.defaultPrevented||"function"!=typeof i||i(e)}),[i]),x=r.useCallback((e=>{e.defaultPrevented||"function"!=typeof i||i(e)}),[i]);return r.createElement(ht,{as:"li",sx:{display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(sw,bw({ref:b,as:o,href:t,"aria-current":c,onKeyDown:y,onClick:x,counter:n,icon:s,loadingCounters:p,iconsVisible:m,sx:e},d),a))}));fw.displayName="UnderlineNavItem";const hw=Object.assign(vw,{Item:fw});function pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pw.apply(null,arguments)}const mw=r.createContext({size:"medium",setChildrenWidth:()=>null}),yw=m.div.withConfig({displayName:"ActionBar__NavigationList",componentId:"sc-ygrb3t-0"})(["",";"],ft),xw={display:"flex",minWidth:0,listStyle:"none",whiteSpace:"nowrap",paddingY:0,paddingX:0,margin:0,marginBottom:"-1px",alignItems:"center",gap:"8px",position:"relative"},ww={display:"flex",paddingX:3,justifyContent:"flex-end",align:"row",alignItems:"center",maxHeight:"32px"},Cw={textDecoration:"none"},kw={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2},Bw=(e,r,o=0)=>{const t=r-o;let a=e.length,n=0;for(const[r,o]of e.entries())if(n+=o.width,n>t){a=r;break}return a},Ew=e=>{const{size:o="medium",children:a,"aria-label":n}=e,[c,s]=i([]),d=t((e=>{s((r=>[...r,e]))}),[]),g=l(null),u=l(null),v=l(null),b=l(null),f=r.useRef(null),h=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(a),[p,m]=i({items:h,menuItems:[]}),y=p.items.map((e=>{var r;return null!==(r=h.find((r=>r.key===e.key)))&&void 0!==r?r:e})),x=p.menuItems.map((e=>{var r;return null!==(r=h.find((r=>r.key===e.key)))&&void 0!==r?r:e})),w=t((e=>{m(e)}),[]);Ko((e=>{var o,t;const a=e[0].contentRect.width,n=null!==(o=null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==o?o:0;0!==a&&((e,o,t,a,n)=>{0===a.length&&n({items:t,menuItems:[]});const l=Bw(a,e),i=Bw(a,e,o||86),c=[],s=[];if(t.length>l){const e=1==t.length-i?i-1:i;for(const[o,n]of t.entries())if(o<e)c.push(n);else if("divider"===a[o].text){if(o===e-1||o===e)continue;{const e=r.createElement(Cg.Divider,{key:o});s.push(e)}}else s.push(n);n({items:c,menuItems:s})}})(a,n,h,c,w)}),g);const[C,k]=i(!1),B=r.useCallback((()=>{k(!1)}),[k]),E=r.useCallback((()=>{var e;null===(e=b.current)||void 0===e||e.focus()}),[]);return vo((e=>{C&&(e.preventDefault(),B(),E())}),[C]),io({onClickOutside:B,containerRef:f,ignoreClickRefs:[b]}),Vc({containerRef:u,bindKeys:Ro.ArrowHorizontal|Ro.HomeAndEnd,focusOutBehavior:"wrap"}),r.createElement(mw.Provider,{value:{size:o,setChildrenWidth:d}},r.createElement(ht,{ref:g,sx:ww},r.createElement(yw,{sx:xw,ref:u,role:"toolbar"},y,x.length>0&&r.createElement(zg,null,r.createElement(zg.Anchor,null,r.createElement(ql,{sx:kw,"aria-label":`More ${n} items`,icon:Oc})),r.createElement(zg.Overlay,null,r.createElement(Cg,null,x.map(((e,o)=>{if(e.type===Cg.Divider)return r.createElement(Cg.Divider,{key:o});{const{children:o,onClick:t,icon:a,"aria-label":n}=e.props;return r.createElement(Cg.LinkItem,{key:o,sx:Cw,onClick:e=>{B(),E(),"function"==typeof t&&t(e)}},a?r.createElement(Cg.LeadingVisual,null,r.createElement(a,null)):null,n)}}))))))))};Ew.displayName="ActionBar";const Tw=u(((e,o)=>{const t=l(null),a=null!=o?o:t,{size:n,setChildrenWidth:i}=r.useContext(mw);return Zo((()=>{const r=e["aria-label"]?e["aria-label"]:"",o=a.current.getBoundingClientRect();i({text:r,width:o.width})}),[a,i]),r.createElement(ql,pw({ref:a,size:n},e,{variant:"invisible"}))})),Sw={small:"24px",medium:"28px",large:"32px"},Nw=()=>{const e=l(null),{size:o,setChildrenWidth:t}=r.useContext(mw);return Zo((()=>{const r=e.current.getBoundingClientRect();t({text:"divider",width:r.width})}),[e,t]),r.createElement(ht,{ref:e,"data-component":"ActionBar.VerticalDivider","aria-hidden":"true",sx:{display:"inline-block",borderLeft:"1px solid",borderColor:"actionListItem.inlineDivider",height:Sw[o],mx:2}})};Nw.displayName="VerticalDivider";const _w=Object.assign(Ew,{IconButton:Tw,Divider:Nw});var Iw="prc_PageHeader_sT1Hp",Mw="prc_ContextArea_6ykSJ",Aw="prc_ParentLink_BvDS0",Lw="prc_ContextBar_XQ8Q0",Ow="prc_ContextAreaActions_RTJRk",Rw="prc_TitleArea_jxJZy",jw="prc_LeadingAction_88LQ0",zw="prc_Breadcrumbs_3c6ig",Pw="prc_LeadingVisual_7zjCx",Dw="prc_Title_LKOsd",Hw="prc_TrailingVisual_7Ft0D",Vw="prc_TrailingAction_QOaow",Fw="prc_Actions_ygtmj",Ww="prc_Description_kFg8r",$w="prc_Navigation_9Uvch";function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Zw.apply(null,arguments)}const Kw=1,Gw=2,qw=2,Uw=2,Yw=2,Xw=2,Qw=3,Jw=4,eC=0,rC=1,oC=2,tC=0,aC=1,nC=2,lC={narrow:!1,regular:!0,wide:!0},iC={narrow:!0,regular:!1,wide:!1},cC="primer_react_css_modules_team",sC=r.forwardRef((({children:e,className:o,sx:t={},as:n="div","aria-label":l,role:i},c)=>{const s=bt(cC),d={display:"grid",gridTemplateColumns:"auto auto auto auto 1fr",gridTemplateAreas:"\n 'context-area context-area context-area context-area context-area'\n 'leading-action breadcrumbs title-area trailing-action actions'\n 'description description description description description'\n 'navigation navigation navigation navigation navigation'\n ",'&:has([data-component="TitleArea"][data-size-variant="large"])':{fontSize:"var(--custom-font-size, var(--text-title-size-large, 2rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))"},'&:has([data-component="TitleArea"][data-size-variant="medium"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-semibold, 600))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'&:has([data-component="TitleArea"][data-size-variant="subtitle"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'[data-component="PH_LeadingAction"], [data-component="PH_TrailingAction"],[data-component="PH_Actions"], [data-component="PH_LeadingVisual"], [data-component="PH_TrailingVisual"]':{height:"calc(var(--title-line-height) * 1em)"}},g=co(c);return a((function(){}),[e,g]),r.createElement(ht,{ref:g,as:n,className:Gr(s&&Iw,o),sx:s?t:oo(d,t),"aria-label":l,role:i},e)})),dC=({children:e,className:o,hidden:t=lC,sx:a={}})=>{const n=bt(cC),l={gridRow:Kw,gridArea:"context-area",display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:"0.5rem",gap:"0.5rem",...Ou(t,"display",(e=>e?"none":"flex")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"};return r.createElement(ht,Zw({className:Gr(n&&Mw,o),sx:n?a:oo(l,a)},BC(n,t)),e)};dC.displayName="ContextArea";const gC=r.forwardRef((({children:e,className:o,sx:t={},href:a,"aria-label":n,as:l="a",hidden:i=lC},c)=>{const s=bt(cC);return r.createElement(r.Fragment,null,r.createElement(mg,Zw({ref:c,as:l,"aria-label":n,muted:!0,className:Gr(s&&Aw,o),sx:s?t:oo({display:"flex",alignItems:"center",order:tC,gap:"0.5rem",...Ou(i,"display",(e=>e?"none":"flex"))},t)},BC(s,i),{href:a}),r.createElement(yc,null),r.createElement(ht,null,e)))}));gC.displayName="ParentLink";const uC=({children:e,className:o,sx:t={},hidden:a=lC})=>{const n=bt(cC);return r.createElement(ht,Zw({className:Gr(n&&Lw,o),sx:n?t:oo({display:"flex",order:aC,...Ou(a,"display",(e=>e?"none":"flex"))},t)},BC(n,a)),e)};uC.displayName="ContextBar";const vC=({children:e,className:o,sx:t={},hidden:a=lC})=>{const n=bt(cC);return r.createElement(ht,Zw({className:Gr(n&&Ow,o)},BC(n,a),{sx:n?t:oo({display:"flex",flexDirection:"row",order:nC,alignItems:"center",gap:"0.5rem",flexGrow:"1",justifyContent:"right",...Ou(a,"display",(e=>e?"none":"flex"))},t)},BC(n,a)),e)};vC.displayName="ContextAreaActions";const bC=r.forwardRef((({children:e,className:o,sx:t={},hidden:a=!1,variant:n="medium"},l)=>{const i=bt(cC),c=co(l),s=ri(n,"medium");return r.createElement(ht,Zw({className:Gr(i&&Rw,o),ref:c,"data-component":"TitleArea","data-size-variant":s,sx:i?t:oo({gridRow:Uw,gridArea:"title-area",display:"flex",gap:"0.5rem",...Ou(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"flex-start"},t)},BC(i,a)),e)}));bC.displayName="TitleArea";const fC=({children:e,className:o,sx:t={},hidden:a=iC})=>{const n=bt(cC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,Zw({className:Gr(n&&jw,o),"data-component":"PH_LeadingAction",sx:n?t:oo({gridRow:Gw,gridArea:"leading-action",paddingRight:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},BC(n,a)),e)};fC.displayName="LeadingAction";const hC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(cC);return r.createElement(ht,Zw({className:Gr(n&&zw,o),"data-component":"PH_Breadcrumbs",sx:n?t:oo({gridRow:qw,gridArea:"breadcrumbs",paddingRight:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},t)},BC(n,a)),e)};hC.displayName="Breadcrumbs";const pC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(cC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,Zw({className:Gr(n&&Pw,o),"data-component":"PH_LeadingVisual",sx:n?t:oo({display:"flex",order:eC,...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},BC(n,a)),e)};pC.displayName="LeadingVisual";const mC=({children:e,className:o,sx:t={},hidden:a=!1,as:n="h2"})=>{const l=bt(cC),i={},{fontSize:c,lineHeight:s,fontWeight:d}=t;return c&&(i["--custom-font-size"]=c),s&&(i["--custom-line-height"]=s),d&&(i["--custom-font-weight"]=d),r.createElement(zd,Zw({className:Gr(l&&Dw,o),"data-component":"PH_Title",as:n,style:i,sx:l?t:oo({display:"flex",order:rC,...Ou(a,"display",(e=>e?"none":"block")),fontSize:"inherit",fontWeight:"inherit"},t)},BC(l,a)),e)};mC.displayName="Title";const yC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(cC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,Zw({className:Gr(n&&Hw,o),"data-component":"PH_TrailingVisual",sx:n?t:oo({display:"flex",order:oC,...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},BC(n,a)),e)};yC.displayName="TrailingVisual";const xC=({children:e,className:o,sx:t={},hidden:a=iC})=>{const n=bt(cC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,Zw({className:Gr(n&&Vw,o),"data-component":"PH_TrailingAction",sx:n?t:oo({gridRow:Yw,gridArea:"trailing-action",paddingLeft:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),alignItems:"center"},t),style:l},BC(n,a)),e)};xC.displayName="TrailingAction";const wC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(cC),l={},{height:i}=t;return i&&(l["--custom-height"]=i),r.createElement(ht,Zw({className:Gr(n&&Fw,o),"data-component":"PH_Actions",sx:n?t:oo({gridRow:Xw,gridArea:"actions",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),flexDirection:"row",paddingLeft:"0.5rem",gap:"0.5rem",minWidth:"max-content",justifyContent:"right",alignItems:"center"},t),style:l},BC(n,a)),e)};wC.displayName="Actions";const CC=({children:e,className:o,sx:t={},hidden:a=!1})=>{const n=bt(cC);return r.createElement(ht,Zw({className:Gr(n&&Ww,o),sx:n?t:oo({gridRow:Qw,gridArea:"description",display:"flex",...Ou(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"center",paddingTop:"0.5rem",gap:"0.5rem",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},t)},BC(n,a)),e)};CC.displayName="Description";const kC=({children:e,className:o,sx:t={},hidden:a=!1,as:n,"aria-label":l,"aria-labelledby":i})=>{const c=bt(cC);return r.createElement(ht,Zw({as:n,"aria-label":"nav"===n?l:void 0,"aria-labelledby":"nav"===n?i:void 0,className:Gr(c&&$w,o),sx:c?t:oo({gridRow:Jw,gridArea:"navigation",paddingTop:"0.5rem",display:"flex",...Ou(a,"display",(e=>e?"none":"block")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},t)},BC(c,a)),e)};function BC(e,r){if(!e)return{};if(ei(r)){const e=r,o="narrow"in e?{"data-hidden-narrow":e.narrow||void 0}:{},t="regular"in e?{"data-hidden-regular":e.regular||void 0}:{},a="wide"in e?{"data-hidden-wide":e.wide||void 0}:{};return Au(e)?{"data-hidden-all":e.narrow||void 0}:Lu(e)?{...o,...t}:{...o,...t,...a}}return{"data-hidden-all":r||void 0}}kC.displayName="Navigation";const EC=Object.assign(sC,{ContextArea:dC,ParentLink:gC,ContextBar:uC,TitleArea:bC,ContextAreaActions:vC,LeadingAction:fC,Breadcrumbs:hC,LeadingVisual:pC,Title:mC,TrailingVisual:yC,TrailingAction:xC,Actions:wC,Description:CC,Navigation:kC});EC.displayName="PageHeader";export{_w as ActionBar,Cg as ActionList,zg as ActionMenu,_g as AnchoredOverlay,Cu as Autocomplete,Tu as Avatar,qu as AvatarPair,lv as AvatarStack,xx as AvatarToken,Et as BaseStyles,ht as Box,uv as BranchName,Nv as Breadcrumb,Sv as Breadcrumbs,An as Button,In as ButtonBase,Av as ButtonGroup,Dv as Caret,Uv as Checkbox,lh as CheckboxGroup,uh as CircleBadge,Vv as CircleOcticon,Os as ConfirmationDialog,Ft as CounterLabel,yh as Details,Es as Dialog,kh as Flash,th as FormControl,Rh as Header,zd as Heading,ql as IconButton,vx as IssueLabelToken,Ph as Label,$h as LabelGroup,mg as Link,Yl as LinkButton,ip as NavList,Sg as Overlay,EC as PageHeader,oc as PageLayout,pp as Pagination,wp as PointerBox,Mp as Popover,Kc as Portal,Fp as ProgressBar,Ld as Radio,Ed as RadioGroup,Em as RelativeTime,Km as SegmentedControl,lb as Select,lf as SelectPanel,Qm as SideNav,Dt as Spinner,sc as SplitPageLayout,dd as Stack,ny as StateLabel,yy as SubNav,kl as Text,du as TextInput,Hf as TextInputWithTokens,Zf as Textarea,it as ThemeProvider,Gy as Timeline,_y as ToggleSwitch,Of as Token,Zl as Tooltip,Yx as TreeView,og as Truncate,hw as UnderlineNav,Mt as VisuallyHidden,Vs as createComponent,oo as merge,Zc as registerPortalRoot,ft as sx,M as theme,Wr as themeGet,st as useColorSchemeVar,js as useConfirm,dc as useDetails,bc as useFocusTrap,Vc as useFocusZone,Zv as useFormControlForwardedProps,Zo as useIsomorphicLayoutEffect,vo as useOnEscapePress,io as useOnOutsideClick,wo as useOpenAndCloseFocus,qo as useOverlay,co as useProvidedRefOrCreate,rt as useRefObjectAsForwardedRef,Ko as useResizeObserver,ri as useResponsiveValue,gc as useSafeTimeout,ct as useTheme};
13
13
  //# sourceMappingURL=browser.esm.js.map