@primer/react-brand 0.15.1 → 0.15.2-rc.b47e2dd
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.
- package/lib/css/main.css +46 -40
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define("@primer/react-brand",[],r):"object"==typeof exports?exports["@primer/react-brand"]=r(require("react")):e["@primer/react-brand"]=r(e.React)}(this,(e=>(()=>{"use strict";var r={320:e=>{var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},a=0;a<10;a++)r["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var _,o,l=n(e),d=1;d<arguments.length;d++){for(var s in _=Object(arguments[d]))a.call(_,s)&&(l[s]=_[s]);if(r){o=r(_);for(var c=0;c<o.length;c++)t.call(_,o[c])&&(l[o[c]]=_[o[c]])}}return l}},866:(e,r)=>{var a=60103,t=60106,n=60107,i=60108,_=60114,o=60109,l=60110,d=60112,s=60113,c=60120,m=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;a=h("react.element"),t=h("react.portal"),n=h("react.fragment"),i=h("react.strict_mode"),_=h("react.profiler"),o=h("react.provider"),l=h("react.context"),d=h("react.forward_ref"),s=h("react.suspense"),c=h("react.suspense_list"),m=h("react.memo"),u=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}r.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case a:switch(e=e.type){case n:case _:case i:case s:case c:return e;default:switch(e=e&&e.$$typeof){case l:case d:case u:case m:case o:return e;default:return r}}case t:return r}}}(e)===n}},570:(e,r,a)=>{e.exports=a(866)},837:(e,r,a)=>{a(320);var t=a(697),n=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),r.Fragment=i("react.fragment")}var _=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,r,a){var t,i={},d=null,s=null;for(t in void 0!==a&&(d=""+a),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(s=r.ref),r)o.call(r,t)&&!l.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:e,key:d,ref:s,props:i,_owner:_.current}}r.jsx=d,r.jsxs=d},322:(e,r,a)=>{e.exports=a(837)},697:r=>{r.exports=e}},a={};function t(e){var n=a[e];if(void 0!==n)return n.exports;var i=a[e]={exports:{}};return r[e](i,i.exports,t),i.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{t.r(n),t.d(n,{Accordion:()=>Le,AccordionContent:()=>Ie,AccordionHeading:()=>Ee,AccordionRoot:()=>He,ActionMenu:()=>it,AnchorNav:()=>Qr,Avatar:()=>Ar,AvatarShapes:()=>Pr,AvatarSizes:()=>Sr,Button:()=>P,ButtonGroup:()=>D,ButtonSizes:()=>b,ButtonVariants:()=>x,CTABanner:()=>Zr,CTAForm:()=>da,Card:()=>ba,Checkbox:()=>Je,ColorModesEnum:()=>R,ComparisonTable:()=>Vr,DEFAULT_TEXTAREA_COLS:()=>Ye,DEFAULT_TEXTAREA_RESIZE:()=>er,DEFAULT_TEXTAREA_ROWS:()=>Ze,FAQ:()=>Ve,FormControl:()=>hr,Heading:()=>I,HeadingLetterSpacing:()=>C,HeadingSizes:()=>N,HeadingStretch:()=>j,HeadingTags:()=>A,HeadingWeights:()=>y,Hero:()=>L,InlineLink:()=>ye,Link:()=>Ce,MinimalFooter:()=>ga,MinimalFooterSocialLinks:()=>ca,OrderedList:()=>na,Radio:()=>dr,River:()=>Z,SectionIntro:()=>Na,Select:()=>lr,Stack:()=>Br,StackAlignItemVariants:()=>br,StackDirectionVariants:()=>pr,StackJustifyContentVariants:()=>wr,StackSpacingVariants:()=>vr,SubdomainNavBar:()=>Ae,Testimonial:()=>Lr,Text:()=>f,TextInput:()=>nr,TextSizes:()=>s,TextTags:()=>c,TextVariants:()=>m,TextWeights:()=>u,Textarea:()=>ar,ThemeContext:()=>F,ThemeProvider:()=>M,UnorderedList:()=>ta,_Button:()=>S,_ComparisonTable:()=>zr,classMap:()=>E,defaultButtonSize:()=>B,defaultButtonVariant:()=>w,defaultHeadingTag:()=>H,defaultRiverAlign:()=>U,defaultRiverImageTextRatio:()=>Q,defaultStackDirection:()=>fr,defaultStackSpacing:()=>xr,defaultTextSize:()=>g,defaultTextTag:()=>h,defaultTextVariant:()=>p,getHeadingWarning:()=>K,useTheme:()=>W});var e=t(322),r=t(697),a=t.n(r);function i(e){var r,a,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(a=i(e[r]))&&(t&&(t+=" "),t+=a);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function _(){for(var e,r,a=0,t="";a<arguments.length;)(e=arguments[a++])&&(r=i(e))&&(t&&(t+=" "),t+=r);return t}const o={Hero:"Primer_Brand__Hero-module__Hero___EM3jf","Hero--align-start":"Primer_Brand__Hero-module__Hero--align-start___m8GEr","Hero--align-center":"Primer_Brand__Hero-module__Hero--align-center___HUXm3","Hero-actions":"Primer_Brand__Hero-module__Hero-actions___oH1NT","Hero-heading":"Primer_Brand__Hero-module__Hero-heading___QuVBH","Hero-description":"Primer_Brand__Hero-module__Hero-description___vG4iA"};function l({className:r,expanded:a=!1,reverse:t=!1,hidden:n,...i}){return(0,e.jsxs)("svg",{className:_("Primer_Brand__ExpandableArrow-module__ExpandableArrow___rkfek",a&&"Primer_Brand__ExpandableArrow-module__ExpandableArrow--expanded___gajDr",t&&"Primer_Brand__ExpandableArrow-module__ExpandableArrow--reversed___LPFUS",r),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":n,focusable:n?"false":void 0,...i,children:[(0,e.jsx)("path",{fill:"currentColor",d:"M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"}),(0,e.jsx)("path",{className:_("Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___g4mdy",a&&"Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem--expanded___KwI_9"),stroke:"currentColor",d:"M1.75 8H11",strokeWidth:"1.5",strokeLinecap:"round"})]})}const d={Text:"Primer_Brand__Text-module__Text___pecHN","Text--default":"Primer_Brand__Text-module__Text--default___DChoE","Text--muted":"Primer_Brand__Text-module__Text--muted___lTaVa","Text--700":"Primer_Brand__Text-module__Text--700___cOggy","Text--600":"Primer_Brand__Text-module__Text--600___ThppA","Text--500":"Primer_Brand__Text-module__Text--500___orDRu","Text--400":"Primer_Brand__Text-module__Text--400___y7m4l","Text--300":"Primer_Brand__Text-module__Text--300___TBQTB","Text--200":"Primer_Brand__Text-module__Text--200___XAIGT","Text--100":"Primer_Brand__Text-module__Text--100___csEom","Text--weight-heavy":"Primer_Brand__Text-module__Text--weight-heavy___ege7O","Text-narrow--weight-heavy":"Primer_Brand__Text-module__Text-narrow--weight-heavy___EZzqD","Text--weight-extrabold":"Primer_Brand__Text-module__Text--weight-extrabold____UVFN","Text-narrow--weight-extrabold":"Primer_Brand__Text-module__Text-narrow--weight-extrabold___ts3be","Text--weight-bold":"Primer_Brand__Text-module__Text--weight-bold___jgFdL","Text-narrow--weight-bold":"Primer_Brand__Text-module__Text-narrow--weight-bold___Flbbf","Text--weight-semibold":"Primer_Brand__Text-module__Text--weight-semibold___Ns19j","Text-narrow--weight-semibold":"Primer_Brand__Text-module__Text-narrow--weight-semibold___jtFFh","Text--weight-medium":"Primer_Brand__Text-module__Text--weight-medium___E0iQL","Text-narrow--weight-medium":"Primer_Brand__Text-module__Text-narrow--weight-medium___tQs9y","Text--weight-normal":"Primer_Brand__Text-module__Text--weight-normal___siVLX","Text-narrow--weight-normal":"Primer_Brand__Text-module__Text-narrow--weight-normal___gb0q4","Text--weight-light":"Primer_Brand__Text-module__Text--weight-light___SpQAz","Text-narrow--weight-light":"Primer_Brand__Text-module__Text-narrow--weight-light___cIyjf","Text-regular--weight-heavy":"Primer_Brand__Text-module__Text-regular--weight-heavy___YumNc","Text-regular--weight-extrabold":"Primer_Brand__Text-module__Text-regular--weight-extrabold___uvNQM","Text-regular--weight-bold":"Primer_Brand__Text-module__Text-regular--weight-bold___E3xyf","Text-regular--weight-semibold":"Primer_Brand__Text-module__Text-regular--weight-semibold___Wwz9g","Text-regular--weight-medium":"Primer_Brand__Text-module__Text-regular--weight-medium___TnD35","Text-regular--weight-normal":"Primer_Brand__Text-module__Text-regular--weight-normal___FEkFF","Text-regular--weight-light":"Primer_Brand__Text-module__Text-regular--weight-light___MalyV","Text-wide--weight-heavy":"Primer_Brand__Text-module__Text-wide--weight-heavy___AXiAN","Text-wide--weight-extrabold":"Primer_Brand__Text-module__Text-wide--weight-extrabold___rggXv","Text-wide--weight-bold":"Primer_Brand__Text-module__Text-wide--weight-bold___CWJA2","Text-wide--weight-semibold":"Primer_Brand__Text-module__Text-wide--weight-semibold___LEBmW","Text-wide--weight-medium":"Primer_Brand__Text-module__Text-wide--weight-medium___QQ0IW","Text-wide--weight-normal":"Primer_Brand__Text-module__Text-wide--weight-normal___KpqrG","Text-wide--weight-light":"Primer_Brand__Text-module__Text-wide--weight-light___iYFr9"},s=["700","600","500","400","300","200","100"],c=["p","span","div","strong","em"],m=["default","muted"],u=["heavy","extrabold","bold","semibold","medium","normal","light"],h=c[1],g=s[3],p=m[0];function f({as:t=h,className:n,children:i,size:o=g,variant:l=p,weight:s,...c}){const m=(0,r.useMemo)((()=>s?"string"==typeof s?d[`Text--weight-${s}`]:Object.keys(s).map((e=>d[`Text-${e}--weight-${s[e]}`])).join(" "):null),[s]),u=_(d.Text,d[`Text--${l}`],d[`Text--${o}`],s&&m,n),f=a().Children.toArray(i).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===ye?a().cloneElement(e,{size:o}):e));return"p"===t?(0,e.jsx)("p",{className:u,...c,children:f}):"em"===t?(0,e.jsx)("em",{className:u,...c,children:f}):"div"===t?(0,e.jsx)("div",{className:u,...c,children:f}):"strong"===t?(0,e.jsx)("strong",{className:u,...c,children:f}):(0,e.jsx)("span",{className:u,...c,children:f})}const v={Button:"Primer_Brand__Button-module__Button___lDruK","Button--disabled":"Primer_Brand__Button-module__Button--disabled___Ba17E",Button__text:"Primer_Brand__Button-module__Button__text___Z3ocU","Button__icon-visual":"Primer_Brand__Button-module__Button__icon-visual___zR2Hi","Button__trailing-visual":"Primer_Brand__Button-module__Button__trailing-visual___zg8jd","Button__trailing-visual--arrow":"Primer_Brand__Button-module__Button__trailing-visual--arrow___XD9in","Button__leading-visual":"Primer_Brand__Button-module__Button__leading-visual___FIPvg","Button--label":"Primer_Brand__Button-module__Button--label___lUBc0","Button-label--disabled":"Primer_Brand__Button-module__Button-label--disabled___ZBpbj","Button__icon-visual--disabled":"Primer_Brand__Button-module__Button__icon-visual--disabled___j7aVy","Button--primary":"Primer_Brand__Button-module__Button--primary___xIC7G","Button-arrow--disabled":"Primer_Brand__Button-module__Button-arrow--disabled____UgPq","Button--secondary":"Primer_Brand__Button-module__Button--secondary___akMC2","Button--subtle":"Primer_Brand__Button-module__Button--subtle___UMmi9","Button--label-primary":"Primer_Brand__Button-module__Button--label-primary___Leisi","Button--label-secondary":"Primer_Brand__Button-module__Button--label-secondary___DRJoJ","Button--size-medium":"Primer_Brand__Button-module__Button--size-medium___EyCyw","Button--size-large":"Primer_Brand__Button-module__Button--size-large___REN1l"},x=["primary","secondary","subtle"],b=["medium","large"],w=x[1],B=b[0],T={root:"Button",get leadingVisual(){return`${this.root}-leading-visual`},get trailingVisual(){return`${this.root}-trailing-visual`},get expandableArrow(){return`${this.root}-expandable-arrow`}},S=(0,r.forwardRef)((({as:t,variant:n=w,size:i=B,hasArrow:o=!0,className:d,children:s,disabled:c,"aria-disabled":m,onMouseEnter:u,onMouseLeave:h,onFocus:g,onBlur:p,leadingVisual:x,trailingVisual:b,...S},P)=>{const[k,N]=a().useState(!1),[A,y]=a().useState(!1),j=t||"button",C=c||"true"===m||"boolean"==typeof m&&!0===m,H=(0,r.useCallback)((e=>a().isValidElement(e)?e:"function"==typeof e?a().createElement(e):void 0),[]),E=H(x),I=H(b),L=(0,r.useCallback)((e=>{C||(N(!0),u?.(e))}),[C,u]),R=(0,r.useCallback)((e=>{C||(N(!1),h?.(e))}),[C,h]),z=(0,r.useCallback)((e=>{C||(y(!0),g?.(e))}),[C,g]),F=(0,r.useCallback)((e=>{C||(y(!1),p?.(e))}),[C,p]);return(0,e.jsxs)(j,{ref:P,className:_(v.Button,v[`Button--${n}`],v[`Button--size-${i}`],C&&v["Button--disabled"],d),onMouseEnter:L,onMouseLeave:R,onFocus:z,onBlur:F,disabled:c,"aria-disabled":m,...S,children:[E&&(0,e.jsx)("span",{className:v["Button__leading-visual"],"data-testid":T.leadingVisual,children:a().cloneElement(E,{className:_(v["Button__icon-visual"],C&&v["Button__icon-visual--disabled"]),"aria-hidden":"true",focusable:"false"})}),(0,e.jsx)("span",{className:v.Button__text,children:(0,e.jsx)(f,{as:"span",size:"medium"===i?"300":"400",className:_(v["Button--label"],v[`Button--label-${n}`],C&&v["Button-label--disabled"]),children:s})}),!b&&o&&(0,e.jsx)("span",{className:_(v["Button__trailing-visual"],v["Button__trailing-visual--arrow"]),children:(0,e.jsx)(l,{hidden:!0,className:_(v["Button-arrow"],C&&v["Button-arrow--disabled"]),expanded:!C&&(k||A),"data-testid":T.expandableArrow})}),I&&(0,e.jsx)("span",{className:_(v["Button__trailing-visual"]),"data-testid":T.trailingVisual,children:a().cloneElement(I,{className:_(v["Button__icon-visual"],C&&v["Button__icon-visual--disabled"]),"aria-hidden":"true",focusable:"false"})})]})})),P=Object.assign(S,{testIds:T}),k={Heading:"Primer_Brand__Heading-module__Heading___IVpmp","Heading--1":"Primer_Brand__Heading-module__Heading--1___Ufc7G","Heading--2":"Primer_Brand__Heading-module__Heading--2___TFg09","Heading--3":"Primer_Brand__Heading-module__Heading--3___wsITu","Heading--4":"Primer_Brand__Heading-module__Heading--4___C9jDG","Heading--5":"Primer_Brand__Heading-module__Heading--5___HgypG","Heading--6":"Primer_Brand__Heading-module__Heading--6___FEQ_V","Heading--weight-heavy":"Primer_Brand__Heading-module__Heading--weight-heavy___ssSay","Heading-narrow--weight-heavy":"Primer_Brand__Heading-module__Heading-narrow--weight-heavy___s43iL","Heading--weight-extrabold":"Primer_Brand__Heading-module__Heading--weight-extrabold___SJAUw","Heading-narrow--weight-extrabold":"Primer_Brand__Heading-module__Heading-narrow--weight-extrabold___vmOAQ","Heading--weight-bold":"Primer_Brand__Heading-module__Heading--weight-bold___Zqsyk","Heading-narrow--weight-bold":"Primer_Brand__Heading-module__Heading-narrow--weight-bold___IXjRC","Heading--weight-semibold":"Primer_Brand__Heading-module__Heading--weight-semibold___NMvbh","Heading-narrow--weight-semibold":"Primer_Brand__Heading-module__Heading-narrow--weight-semibold___bAIHy","Heading--weight-medium":"Primer_Brand__Heading-module__Heading--weight-medium___II172","Heading-narrow--weight-medium":"Primer_Brand__Heading-module__Heading-narrow--weight-medium___q5O6L","Heading--weight-normal":"Primer_Brand__Heading-module__Heading--weight-normal___ZLGhx","Heading-narrow--weight-normal":"Primer_Brand__Heading-module__Heading-narrow--weight-normal___Q0Jkf","Heading--weight-light":"Primer_Brand__Heading-module__Heading--weight-light___aF2Rw","Heading-narrow--weight-light":"Primer_Brand__Heading-module__Heading-narrow--weight-light___mOWUt","Heading-regular--weight-heavy":"Primer_Brand__Heading-module__Heading-regular--weight-heavy___SwJ1c","Heading-regular--weight-extrabold":"Primer_Brand__Heading-module__Heading-regular--weight-extrabold___H5Gyr","Heading-regular--weight-bold":"Primer_Brand__Heading-module__Heading-regular--weight-bold___QMMCW","Heading-regular--weight-semibold":"Primer_Brand__Heading-module__Heading-regular--weight-semibold___h3bHv","Heading-regular--weight-medium":"Primer_Brand__Heading-module__Heading-regular--weight-medium___wC9qR","Heading-regular--weight-normal":"Primer_Brand__Heading-module__Heading-regular--weight-normal___joqMx","Heading-regular--weight-light":"Primer_Brand__Heading-module__Heading-regular--weight-light___CCVVF","Heading-wide--weight-heavy":"Primer_Brand__Heading-module__Heading-wide--weight-heavy___IiVTg","Heading-wide--weight-extrabold":"Primer_Brand__Heading-module__Heading-wide--weight-extrabold___CIRWW","Heading-wide--weight-bold":"Primer_Brand__Heading-module__Heading-wide--weight-bold___wMxlL","Heading-wide--weight-semibold":"Primer_Brand__Heading-module__Heading-wide--weight-semibold___IqaIc","Heading-wide--weight-medium":"Primer_Brand__Heading-module__Heading-wide--weight-medium___Uq302","Heading-wide--weight-normal":"Primer_Brand__Heading-module__Heading-wide--weight-normal___zWzeR","Heading-wide--weight-light":"Primer_Brand__Heading-module__Heading-wide--weight-light___Lh64A","Heading--stretch-condensed":"Primer_Brand__Heading-module__Heading--stretch-condensed____i8A2","Heading-narrow--stretch-condensed":"Primer_Brand__Heading-module__Heading-narrow--stretch-condensed___koHLR","Heading--stretch-normal":"Primer_Brand__Heading-module__Heading--stretch-normal___apWVy","Heading-narrow--stretch-normal":"Primer_Brand__Heading-module__Heading-narrow--stretch-normal___AP9Ba","Heading--stretch-expanded":"Primer_Brand__Heading-module__Heading--stretch-expanded___gzwLQ","Heading-narrow--stretch-expanded":"Primer_Brand__Heading-module__Heading-narrow--stretch-expanded___RHi1z","Heading-regular--stretch-condensed":"Primer_Brand__Heading-module__Heading-regular--stretch-condensed___CHFa4","Heading-regular--stretch-normal":"Primer_Brand__Heading-module__Heading-regular--stretch-normal___IX9Vl","Heading-regular--stretch-expanded":"Primer_Brand__Heading-module__Heading-regular--stretch-expanded___ozx5y","Heading-narrow--weight-expanded":"Primer_Brand__Heading-module__Heading-narrow--weight-expanded___jvotv","Heading-wide--stretch-condensed":"Primer_Brand__Heading-module__Heading-wide--stretch-condensed___d3GoN","Heading-wide--stretch-normal":"Primer_Brand__Heading-module__Heading-wide--stretch-normal___te0lW","Heading-wide--stretch-expanded":"Primer_Brand__Heading-module__Heading-wide--stretch-expanded___TlWrW","Heading--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading--letter-spacing-condensed___b6mZa","Heading-narrow--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading-narrow--letter-spacing-condensed___U6uGD","Heading--letter-spacing-normal":"Primer_Brand__Heading-module__Heading--letter-spacing-normal___Qhzoc","Heading-narrow--letter-spacing-normal":"Primer_Brand__Heading-module__Heading-narrow--letter-spacing-normal___gzn9r","Heading--letter-spacing-none":"Primer_Brand__Heading-module__Heading--letter-spacing-none___vuohz","Heading-narrow--letter-spacing-none":"Primer_Brand__Heading-module__Heading-narrow--letter-spacing-none___RR_W3","Heading-regular--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading-regular--letter-spacing-condensed___gEGJy","Heading-regular--letter-spacing-normal":"Primer_Brand__Heading-module__Heading-regular--letter-spacing-normal___GWmk5","Heading-regular--letter-spacing-none":"Primer_Brand__Heading-module__Heading-regular--letter-spacing-none____NH9r","Heading-narrow--weight-wide":"Primer_Brand__Heading-module__Heading-narrow--weight-wide___ikyG2","Heading-wide--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading-wide--letter-spacing-condensed___RhUHL","Heading-wide--letter-spacing-normal":"Primer_Brand__Heading-module__Heading-wide--letter-spacing-normal___qPBdW","Heading-wide--letter-spacing-none":"Primer_Brand__Heading-module__Heading-wide--letter-spacing-none___w4Oh2"},N=["1","2","3","4","5","6"],A=["h1","h2","h3","h4","h5","h6"],y=["heavy","extrabold","bold","semibold","medium","normal","light"],j=["condensed","normal","expanded"],C=["condensed","normal","none"],H=A[1],E={h1:N[0],h2:N[1],h3:N[2],h4:N[3],h5:N[4],h6:N[5]},I=(0,r.forwardRef)((({className:t,children:n,as:i=H,size:o,letterSpacing:l,weight:d,stretch:s,...c},m)=>{const u=(e,r)=>r?"string"==typeof r?k[`Heading--${e}-${r}`]:Object.keys(r).map((a=>k[`Heading-${a}--${e}-${r[a]}`])).join(" "):null,h=(0,r.useMemo)((()=>u("weight",d)),[d]),g=(0,r.useMemo)((()=>u("stretch",s)),[s]),p=(0,r.useMemo)((()=>u("letter-spacing",l)),[l]),f=_(k.Heading,!o&&k[`Heading--${E[i]}`],o&&k[`Heading--${o}`],d&&h,s&&g,p&&p,t),v=a().useCallback((({...e})=>A.includes(i)?a().createElement(i,e,n):(console.error(`Heading: 'as' prop must be one of ${A.join(", ")}`),null)),[i,n]);return(0,e.jsx)(v,{className:f,ref:m,...c,children:n})})),L=(0,r.forwardRef)((({className:r,heading:a,description:t,primaryAction:n,secondaryAction:i,align:l="start",headingId:d="hero-section-brand-heading","aria-labelledby":s,...c},m)=>(0,e.jsxs)("section",{"aria-labelledby":s||d,className:_(o.Hero,o[`Hero--align-${l}`],r),ref:m,...c,children:[(0,e.jsx)(I,{as:"h1",id:d,className:o["Hero-heading"],children:a}),t?(0,e.jsx)(f,{className:o["Hero-description"],as:"p",size:"400",variant:"muted",children:t}):null,(0,e.jsxs)("div",{className:o["Hero-actions"],children:[(0,e.jsx)(P,{as:"a",variant:"primary",size:"large",href:n.href,children:n.text}),i?(0,e.jsx)(P,{as:"a",variant:"secondary",size:"large",href:i.href,children:i.text}):null]})]})));var R;!function(e){e.LIGHT="light",e.DARK="dark",e.AUTO="auto"}(R||(R={}));const z=R.LIGHT,F=(0,r.createContext)({colorMode:z,availableColorModes:Object.values(R)});function M({colorMode:a=z,children:t,...n}){const[i,_]=(0,r.useState)(a),o=(0,r.useMemo)((()=>Object.values(R)),[]);return(0,r.useEffect)((()=>(a===R.AUTO?_(V()):i!==a&&_(a),$(_))),[a,i,_]),(0,e.jsx)(F.Provider,{value:{colorMode:i,availableColorModes:o},children:(0,e.jsx)("div",{"data-color-mode":i,...n,children:t})})}const O=()=>window.matchMedia(`(prefers-color-scheme: ${R.DARK})`),V=()=>O().matches?R.DARK:R.LIGHT,$=e=>{const r=O(),a=r=>e(r.matches?R.DARK:R.LIGHT);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},W=()=>(0,r.useContext)(F),D=(0,r.forwardRef)((({buttonSize:r="medium",buttonsAs:t,className:n,children:i,..._},o)=>{const l=a().Children.toArray(i).map(((e,n)=>{if(a().isValidElement(e)&&"string"!=typeof e.type&&e.type===P)return a().cloneElement(e,{size:r,as:t,variant:0===n?"primary":"secondary",hasArrow:0===n,...e.props})})).filter(Boolean).slice(0,2);return(0,e.jsx)("section",{ref:o,className:"Primer_Brand__ButtonGroup-module__ButtonGroup___QQSsj",..._,children:l})})),q={River:"Primer_Brand__River-module__River___VHPl5","River--align-center":"Primer_Brand__River-module__River--align-center___TH7xI",River__visual:"Primer_Brand__River-module__River__visual___sTe_U","River__visual--fill-media":"Primer_Brand__River-module__River__visual--fill-media___AVMgH","River__visual--has-shadow":"Primer_Brand__River-module__River__visual--has-shadow___cL9nP",River__heading:"Primer_Brand__River-module__River__heading___pwKXi","River__call-to-action":"Primer_Brand__River-module__River__call-to-action___GIOCe",River__text:"Primer_Brand__River-module__River__text___ZlR1K","River--50-50":"Primer_Brand__River-module__River--50-50___cpSFU","River--60-40":"Primer_Brand__River-module__River--60-40___XDKAU","River--align-start":"Primer_Brand__River-module__River--align-start___L0mn_","River--align-end":"Primer_Brand__River-module__River--align-end___UIM3e",River__content:"Primer_Brand__River-module__River__content___opQUA","River__body-text":"Primer_Brand__River-module__River__body-text___tt2Yf"},Q="50:50",U="start",G=(0,r.forwardRef)((({imageTextRatio:r=Q,align:t=U,className:n,children:i,...o},l)=>{const{Visual:d,Content:s}=a().Children.toArray(i).reduce(((e,r)=>(a().isValidElement(r)&&"string"!=typeof r.type&&(r.type===X&&(e.Visual=r),r.type===J&&(e.Content=r)),e)),{Visual:null,Content:null}),c="start"===t||"center"===t?[s,d]:[d,s];return(0,e.jsx)("section",{className:_(q.River,q[`River--${r.replace(":","-")}`],q[`River--align-${t}`],n),...o,ref:l,children:c})})),K=e=>`River.Content does not accept a Heading with as="${e}". River automatically applies as="h3" by default.`,J=(0,r.forwardRef)((({children:r,leadingComponent:t,trailingComponent:n,...i},o)=>{const l=a().Children.toArray(r).find((e=>a().isValidElement(e)&&e.type===I)),d=a().Children.toArray(r).find((e=>a().isValidElement(e)&&e.type===f)),s=a().Children.toArray(r).find((e=>a().isValidElement(e)&&e.type===Ce));return(0,e.jsxs)("div",{className:q.River__content,...i,ref:o,children:[t&&(0,e.jsx)("div",{children:(0,e.jsx)(t,{})}),a().isValidElement(l)&&(0,e.jsx)("div",{className:q.River__heading,children:a().cloneElement(l,{as:(e=>{const{as:r}=e.props;return r&&A.includes(r)&&"h3"!==r&&console.warn(K(r)),"h3"})(l)})}),a().isValidElement(d)&&(0,e.jsx)("div",{className:q["River__body-text"],children:a().cloneElement(d,{variant:"muted",as:"p",className:_(q.River__text,d.props.className)})}),a().isValidElement(s)&&(0,e.jsx)("div",{className:q["River__call-to-action"],children:a().cloneElement(s,{size:"large"})}),n&&(0,e.jsx)("div",{children:(0,e.jsx)(n,{})})]})})),X=(0,r.forwardRef)((({fillMedia:r=!0,children:a,className:t,hasShadow:n=!0,...i},o)=>(0,e.jsx)("div",{className:_(q.River__visual,n&&q["River__visual--has-shadow"],r&&q["River__visual--fill-media"],t),...i,ref:o,children:a}))),Z=Object.assign(G,{Visual:X,Content:J});var Y={small:16,medium:32,large:64};function ee(e,r,t){var n=t(),i=Object.keys(n);function _(e){var r=e["aria-label"],t=e.className,_=e.fill,o=void 0===_?"currentColor":_,l=e.size,d=e.verticalAlign,s=Y[l]||l,c=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,a){return a<=r?a:e}),e[0])}(i,s),m=n[c].width,u=s*(m/c),h=n[c].path;return a().createElement("svg",{"aria-hidden":r?"false":"true","aria-label":r,role:"img",className:t,viewBox:"0 0 ".concat(m," ").concat(c),width:u,height:s,fill:o,style:{display:"inline-block",userSelect:"none",verticalAlign:d,overflow:"visible"}},h)}return _.displayName=e,_.defaultProps={className:r,size:16,verticalAlign:"text-bottom"},_}var re=ee("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:a().createElement("path",{fillRule:"evenodd",d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 01-1.146 1.954H1.33A1.312 1.312 0 01.183 9.058L4.855.708zM7 7V3H5v4h2zm-1 3a1 1 0 100-2 1 1 0 000 2z"})},16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM8 5a.75.75 0 01.75.75v2.5a.75.75 0 01-1.5 0v-2.5A.75.75 0 018 5zm1 6a1 1 0 11-2 0 1 1 0 012 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752L9.836 3.244zM12 8.5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 8.5zm1 9a1 1 0 11-2 0 1 1 0 012 0z"})}}})),ae=ee("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"})}}})),te=ee("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:a().createElement("path",{fillRule:"evenodd",d:"M6 0a6 6 0 100 12A6 6 0 006 0zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938z"})},16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.75.75 0 00-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 00-1.06 1.06l3 3a.75.75 0 001.06 0l6.5-6.5z"})}}})),ne=ee("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:a().createElement("path",{d:"M6 8.8c-.2 0-.4-.1-.5-.2L2.2 5.3c-.3-.3-.3-.8 0-1.1s.8-.3 1.1 0L6 6.9l2.7-2.7c.3-.3.8-.3 1.1 0s.3.8 0 1.1L6.6 8.5c-.2.2-.4.3-.6.3z"})},16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M5.22 8.72a.75.75 0 000 1.06l6.25 6.25a.75.75 0 001.06 0l6.25-6.25a.75.75 0 00-1.06-1.06L12 14.44 6.28 8.72a.75.75 0 00-1.06 0z"})}}})),ie=ee("ChevronLeftIcon","octicon octicon-chevron-left",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M9.78 12.78a.75.75 0 01-1.06 0L4.47 8.53a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L6.06 8l3.72 3.72a.75.75 0 010 1.06z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M15.28 5.22a.75.75 0 00-1.06 0l-6.25 6.25a.75.75 0 000 1.06l6.25 6.25a.75.75 0 101.06-1.06L9.56 12l5.72-5.72a.75.75 0 000-1.06z"})}}})),_e=ee("ChevronUpIcon","octicon octicon-chevron-up",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M3.22 9.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L8 6.06 4.28 9.78a.75.75 0 01-1.06 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M18.78 15.28a.75.75 0 000-1.06l-6.25-6.25a.75.75 0 00-1.06 0l-6.25 6.25a.75.75 0 101.06 1.06L12 9.56l5.72 5.72a.75.75 0 001.06 0z"})}}})),oe=ee("DashIcon","octicon octicon-dash",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M4.5 12.75a.75.75 0 01.75-.75h13.5a.75.75 0 010 1.5H5.25a.75.75 0 01-.75-.75z"})}}})),le=ee("LogoGithubIcon","octicon octicon-logo-github",(function(){return{16:{width:45,path:a().createElement("path",{fillRule:"evenodd",d:"M18.53 12.03h-.02c.009 0 .015.01.024.011h.006l-.01-.01zm.004.011c-.093.001-.327.05-.574.05-.78 0-1.05-.36-1.05-.83V8.13h1.59c.09 0 .16-.08.16-.19v-1.7c0-.09-.08-.17-.16-.17h-1.59V3.96c0-.08-.05-.13-.14-.13h-2.16c-.09 0-.14.05-.14.13v2.17s-1.09.27-1.16.28c-.08.02-.13.09-.13.17v1.36c0 .11.08.19.17.19h1.11v3.28c0 2.44 1.7 2.69 2.86 2.69.53 0 1.17-.17 1.27-.22.06-.02.09-.09.09-.16v-1.5a.177.177 0 00-.146-.18zM42.23 9.84c0-1.81-.73-2.05-1.5-1.97-.6.04-1.08.34-1.08.34v3.52s.49.34 1.22.36c1.03.03 1.36-.34 1.36-2.25zm2.43-.16c0 3.43-1.11 4.41-3.05 4.41-1.64 0-2.52-.83-2.52-.83s-.04.46-.09.52c-.03.06-.08.08-.14.08h-1.48c-.1 0-.19-.08-.19-.17l.02-11.11c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v3.77s.82-.53 2.02-.53l-.01-.02c1.2 0 2.97.45 2.97 3.88zm-8.72-3.61h-2.1c-.11 0-.17.08-.17.19v5.44s-.55.39-1.3.39-.97-.34-.97-1.09V6.25c0-.09-.08-.17-.17-.17h-2.14c-.09 0-.17.08-.17.17v5.11c0 2.2 1.23 2.75 2.92 2.75 1.39 0 2.52-.77 2.52-.77s.05.39.08.45c.02.05.09.09.16.09h1.34c.11 0 .17-.08.17-.17l.02-7.47c0-.09-.08-.17-.19-.17zm-23.7-.01h-2.13c-.09 0-.17.09-.17.2v7.34c0 .2.13.27.3.27h1.92c.2 0 .25-.09.25-.27V6.23c0-.09-.08-.17-.17-.17zm-1.05-3.38c-.77 0-1.38.61-1.38 1.38 0 .77.61 1.38 1.38 1.38.75 0 1.36-.61 1.36-1.38 0-.77-.61-1.38-1.36-1.38zm16.49-.25h-2.11c-.09 0-.17.08-.17.17v4.09h-3.31V2.6c0-.09-.08-.17-.17-.17h-2.13c-.09 0-.17.08-.17.17v11.11c0 .09.09.17.17.17h2.13c.09 0 .17-.08.17-.17V8.96h3.31l-.02 4.75c0 .09.08.17.17.17h2.13c.09 0 .17-.08.17-.17V2.6c0-.09-.08-.17-.17-.17zM8.81 7.35v5.74c0 .04-.01.11-.06.13 0 0-1.25.89-3.31.89-2.49 0-5.44-.78-5.44-5.92S2.58 1.99 5.1 2c2.18 0 3.06.49 3.2.58.04.05.06.09.06.14L7.94 4.5c0 .09-.09.2-.2.17-.36-.11-.9-.33-2.17-.33-1.47 0-3.05.42-3.05 3.73s1.5 3.7 2.58 3.7c.92 0 1.25-.11 1.25-.11v-2.3H4.88c-.11 0-.19-.08-.19-.17V7.35c0-.09.08-.17.19-.17h3.74c.11 0 .19.08.19.17z"})}}})),de=ee("MarkGithubIcon","octicon octicon-mark-github",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}}})),se=ee("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M10.25 2a8.25 8.25 0 105.28 14.59l5.69 5.69a.75.75 0 101.06-1.06l-5.69-5.69A8.25 8.25 0 0010.25 2zM3.5 10.25a6.75 6.75 0 1113.5 0 6.75 6.75 0 01-13.5 0z"})}}})),ce=ee("XIcon","octicon octicon-x",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M5.72 5.72a.75.75 0 011.06 0L12 10.94l5.22-5.22a.75.75 0 111.06 1.06L13.06 12l5.22 5.22a.75.75 0 11-1.06 1.06L12 13.06l-5.22 5.22a.75.75 0 01-1.06-1.06L10.94 12 5.72 6.78a.75.75 0 010-1.06z"})}}}));function me(e,a,t){(0,r.useEffect)((()=>{const r=r=>{!e.current||e.current.contains(r.target)||t&&t.current&&t.current.contains(r.target)||a&&a(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r,{passive:!0}),document.addEventListener("focusin",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r),document.removeEventListener("focusin",r)}}),[e,a,t])}const ue="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-link___XmtPc",he="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-menu-button___hMy4J",ge="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-menu-button-bar___cUVZF",pe="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-menu-button--close___I0UtT",fe="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-cta-button___g_9BM",ve="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-result-item-desc___Rb5Tm";function xe(e){const a=(0,r.useCallback)((r=>{"Escape"===r.key&&e()}),[e]);(0,r.useEffect)((()=>(document.addEventListener("keydown",a,!1),()=>{document.removeEventListener("keydown",a,!1)})),[a])}function be(){const[e,a]=(0,r.useState)({width:void 0,height:void 0,isLarge:void 0});return(0,r.useEffect)((()=>{function e(){a({width:window.innerWidth,height:window.innerHeight,isLarge:window.innerWidth>=1012})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e}function we({children:t,className:n,...i}){const o=(0,r.useRef)(null),[l]=function(e,a){const[t,n]=(0,r.useState)({}),i=e=>{const r={};for(const a of e){const e=a.target.getAttribute("data-navitemid");e&&(a.isIntersecting?r[e]=!0:r[e]=!1)}n((e=>({...e,...r})))};return(0,r.useEffect)((()=>{const r=new IntersectionObserver(i,{root:e.current,threshold:1});if(e.current){const a=Array.from(e.current.children);for(const e of a)e.getAttribute("data-navitemid")&&r.observe(e)}return()=>r.disconnect()}),[e,a]),[t]}(o,t),{width:d}=be(),s=Object.values(l).includes(!1);return(0,e.jsxs)("ul",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list___iQd2r",n),ref:o,...i,children:[a().Children.map(t,(e=>a().cloneElement(e,{className:_(e.props.className,d&&d>=768&&!!l[e.props["data-navitemid"]]&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item--visible___oDmLP",d&&d>=768&&!l[e.props["data-navitemid"]]&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item--invisible___NioAh")}))),s&&(0,e.jsx)(Be,{visibilityMap:l,children:t})]})}function Be({children:t,className:n,visibilityMap:i}){const[o,l]=(0,r.useState)(null),d=(0,r.useRef)(null);me(d,(()=>c()));const s=Boolean(o),c=(0,r.useCallback)((()=>{l(null)}),[]);return xe(c),(0,e.jsxs)("li",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item--overflow___FXC7u",n),ref:d,children:[(0,e.jsxs)("button",{"aria-expanded":s?"true":"false","aria-label":"more","aria-controls":"more-navigation","aria-haspopup":"true",onClick:e=>{o?c():l(e.currentTarget)},className:_(ue,"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-more-link___GR7D2"),children:["More",(0,e.jsx)(ne,{})]}),(0,e.jsx)("nav",{id:"more-navigation",style:{display:s?"block":"none"},className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-overflow-menu___RXj_t"),children:(0,e.jsx)("ul",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-overflow-menu-list___EbzqG"),children:a().Children.map(t,(r=>{if(a().isValidElement(r)){const t=r.props["data-navitemid"];if(!i[t])return(0,e.jsx)(a().Fragment,{children:a().cloneElement(r,{onClick:c,className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-overflow-menu-item___sI1rx",r.props.className)})})}return null}))})})]})}const Te={root:"SubdomainNavBar",get innerContainer(){return`${this.root}-inner-container`},get menuButton(){return`${this.root}-menuButton`},get menuLinks(){return`${this.root}-menuLinks`}};function Se({href:r,className:a,children:t,...n}){return(0,e.jsx)("li",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item___sz8e9",a),...n,children:(0,e.jsx)("a",{href:r,className:_(ue),children:t})})}const Pe=(0,r.forwardRef)((({active:a,title:t,searchResults:n,searchTerm:i,handlerFn:o,onSubmit:l,onChange:d},s)=>{const c=(0,r.useRef)(null);return me(c,o),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{role:"search",className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-trigger___WyUIj"),"aria-label":"open search",children:(0,e.jsx)("button",{"aria-label":"search",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-button___Nzz4R",onClick:o,"data-testid":"toggle-search",children:(0,e.jsx)(se,{})})}),a&&(0,e.jsxs)("div",{ref:c,role:"dialog","aria-label":"search menu dialog",title:`Search ${t}`,"aria-modal":"true",className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-dialog___yqQl5"),children:[(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-dialog-control-area___KlFbq"),children:[(0,e.jsx)("form",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-form___zoZB5"),onSubmit:l,children:(0,e.jsxs)(hr,{fullWidth:!0,size:"large",children:[(0,e.jsx)(hr.Label,{visuallyHidden:!0,children:"Search"}),(0,e.jsx)(nr,{ref:s,className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-text-input___kDY_0"),autoFocus:!0,name:"search",role:"combobox","aria-expanded":"true","aria-controls":"listbox-search-results",placeholder:`Search ${t}`,onChange:d,defaultValue:i,invisible:!0,leadingVisual:(0,e.jsx)(se,{size:16})})]})}),(0,e.jsx)("button",{"aria-label":"Close",className:_(he,pe),onClick:o,children:(0,e.jsx)(ce,{size:24})})]}),(0,e.jsx)("div",{id:"listbox-search-results",children:n&&n.length>0&&(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-results-container___kow2P"),children:[(0,e.jsxs)(f,{id:"subdomainnavbar-search-results-heading",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-results-heading___FTzyR",children:["Results for “",i,"”"]}),(0,e.jsx)("ul",{role:"listbox","aria-label":"search results","aria-labelledby":"subdomainnavbar-search-results-heading","aria-activedescendant":"subdomainnavbar-search-result-1",className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-results___haCH9"),tabIndex:0,children:n.map(((r,a)=>(0,e.jsxs)("li",{id:`subdomainnavbar-search-result-${a}`,className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-result-item___YZV9z",children:[(0,e.jsx)(I,{as:"h6",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-result-item-heading___ErnwN",children:(0,e.jsx)("a",{href:r.url,children:r.title})}),(0,e.jsx)(f,{as:"p",size:"200",className:ve,children:r.description}),(0,e.jsxs)("div",{children:[(0,e.jsx)(f,{size:"100",className:ve,children:r.date}),r.category&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(f,{size:"100",className:ve,children:[" ","•"," "]}),(0,e.jsx)(f,{size:"100",className:ve,children:r.category})]})]})]},`${r.title}-${a}`)))})]})})]})]})}));function ke({children:r,href:a,...t}){return(0,e.jsx)(P,{as:"a",href:a,className:_(fe),variant:"primary",hasArrow:!1,...t,children:r})}function Ne({children:r,href:a,...t}){return(0,e.jsx)(P,{as:"a",href:a,className:_(fe,"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-cta-button--secondary___P0FJH"),hasArrow:!1,...t,children:r})}const Ae=Object.assign((function({children:t,className:n,fixed:i=!0,fullWidth:o=!1,logoHref:l="https://github.com",title:d,titleHref:s="/",...c}){const[m,u]=(0,r.useState)(!0),[h,g]=(0,r.useState)(!1),p=()=>g(!h),f=(0,r.useMemo)((()=>a().Children.toArray(t).filter((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===Se))),[]).length>0;return(0,e.jsx)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-outer-container___aE8uv",i&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-outer-container--fixed___ZhyZf"),children:(0,e.jsx)("header",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar___JNpcK",n),"data-testid":Te.root,...c,children:(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container___kdy5Y",h&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container--search-open___nhMNU",!o&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container--centered___FXUTh"),"data-testid":Te.innerContainer,children:[(0,e.jsx)("nav",{"aria-label":"global breadcrumb",children:(0,e.jsxs)("ol",{className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-title-area___W8IC5",children:[(0,e.jsx)("li",{children:(0,e.jsxs)("a",{href:l,"aria-label":"Github Home",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-logo-mark___pMn2_",children:[(0,e.jsx)("span",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-back-arrow___OOrj8"),children:(0,e.jsx)(ie,{fill:"currentColor",size:24})}),(0,e.jsx)(de,{fill:"currentColor",size:24})]})}),(0,e.jsx)("li",{role:"separator",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-title-separator___djrH2","aria-hidden":!0,children:"/"}),(0,e.jsx)("li",{children:(0,e.jsx)("a",{href:s,"aria-label":`${d} home`,className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-title___Zm_g2"),children:d})})]})}),f&&(0,e.jsx)("nav",{id:"menu-navigation","aria-label":d,className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav___rZwCn","data-testid":Te.menuLinks,children:(0,e.jsx)(we,{className:_(!m&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list--visible___ZeoFv"),children:a().Children.toArray(t).map(((e,r)=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===Se?a().cloneElement(e,{"data-navitemid":e.props.children,href:e.props.href,children:e.props.children,style:{"--animation-order":r}}):null})).filter(Boolean)})}),(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-secondary-nav___WHTTz"),children:[a().Children.toArray(t).map((e=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===Pe?a().cloneElement(e,{active:h,handlerFn:p,title:d}):null})).filter(Boolean),f&&(0,e.jsxs)("button",{"aria-expanded":"true","aria-label":"Menu","aria-controls":"menu-navigation","aria-haspopup":"true",className:_(he,"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-mobile-menu-button___CTbHW",!m&&pe),"data-testid":Te.menuButton,onClick:()=>u(!m),children:[(0,e.jsx)("div",{className:_(ge)}),(0,e.jsx)("div",{className:_(ge)}),(0,e.jsx)("div",{className:_(ge)})]}),(0,e.jsx)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-button-area___MbQys",!m&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-button-area--visible___fLvbf"),children:(0,e.jsxs)("div",{className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-button-area-inner___dbpYv",children:[a().Children.toArray(t).map((e=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===ke?e:null})).filter(Boolean),a().Children.toArray(t).map((e=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===Ne?e:null})).filter(Boolean)]})})]})]})})})}),{Link:Se,Search:Pe,PrimaryAction:ke,SecondaryAction:Ne,testIds:Te}),ye=(0,r.forwardRef)((({className:r,size:a=g,children:t,href:n,...i},o)=>{const l=_("Primer_Brand__InlineLink-module__InlineLink___U_Ama",r);return(0,e.jsx)("a",{href:n,className:l,...i,ref:o,children:(0,e.jsx)(f,{size:a,as:"span",children:t})})})),je={Link:"Primer_Brand__Link-module__Link___lvKjM","Link--label":"Primer_Brand__Link-module__Link--label___j8etE","Link-arrow":"Primer_Brand__Link-module__Link-arrow___HBMJ9","Link--large":"Primer_Brand__Link-module__Link--large___cXMt5","Link--arrow-start":"Primer_Brand__Link-module__Link--arrow-start___AT1uu"};function Ce({size:t="medium",className:n,children:i,onMouseEnter:o,onMouseLeave:d,onFocus:s,onBlur:c,arrowDirection:m="end",...u}){const[h,g]=a().useState(!1),[p,v]=a().useState(!1),x=(0,r.useCallback)((e=>{g(!h),o?.(e)}),[o,h]),b=(0,r.useCallback)((e=>{g(!h),d?.(e)}),[d,h]),w=(0,r.useCallback)((e=>{v(!p),s?.(e)}),[s,p]),B=(0,r.useCallback)((e=>{v(!p),c?.(e)}),[c,p]);return(0,e.jsxs)("a",{className:_(je.Link,je[`Link--${t}`],je[`Link--arrow-${m}`],n),onMouseEnter:x,onMouseLeave:b,onFocus:w,onBlur:B,...u,children:["start"===m&&(0,e.jsx)(l,{className:je["Link-arrow"],expanded:h||p,reverse:!0,hidden:!0}),(0,e.jsx)(f,{as:"span",size:{medium:"300",large:"400"}[t],className:_(je["Link--label"]),children:i}),"end"===m&&(0,e.jsx)(l,{className:je["Link-arrow"],expanded:h||p,hidden:!0})]})}const He=(0,r.forwardRef)((({children:r,className:t,open:n=!1,...i},o)=>{const{AccordionHeading:l,AccordionContent:d}=a().Children.toArray(r).reduce(((e,r)=>(a().isValidElement(r)&&"string"!=typeof r.type&&(r.type===Ie&&(e.AccordionContent=r),r.type===Ee&&(e.AccordionHeading=r)),e)),{AccordionHeading:null,AccordionContent:null});return(0,e.jsxs)("details",{className:_("Primer_Brand__Accordion-module__Accordion___M_LPt",t),open:n,...i,ref:o,children:[l,d]})})),Ee=(0,r.forwardRef)((({children:r,className:a,as:t="h4",...n},i)=>(0,e.jsx)("summary",{className:_("Primer_Brand__Accordion-module__Accordion__summary___NUIYc",a),ref:i,...n,children:(0,e.jsx)(I,{as:t,className:"Primer_Brand__Accordion-module__Accordion__summary-heading_____snF",children:r})})));function Ie({children:r,className:t,...n}){const i=a().isValidElement(r)&&r.type===a().Fragment?r.props.children:r,o=a().Children.map(i,(r=>a().isValidElement(r)&&"string"==typeof r.type&&["p","span"].includes(r.type)?a().cloneElement(r,{children:(0,e.jsx)(f,{variant:"muted",size:"300",as:"span",children:r.props.children})}):r));return(0,e.jsx)("section",{className:_("Primer_Brand__Accordion-module__Accordion__content___wMZGe",t),...n,children:a().Children.toArray(o).map((e=>a().isValidElement(e)&&a().cloneElement(e,{className:_("Primer_Brand__Accordion-module__Accordion__content-item___M_dlm",e.props.className)})))})}const Le=Object.assign(He,{Content:Ie,Heading:Ee});var Re=t(570);const ze={FAQ:"Primer_Brand__FAQ-module__FAQ___R3vLU",FAQ__heading:"Primer_Brand__FAQ-module__FAQ__heading___bH0aG",FAQ__subheading:"Primer_Brand__FAQ-module__FAQ__subheading___I4puv","FAQ__heading--start":"Primer_Brand__FAQ-module__FAQ__heading--start___eHaT3","FAQ__heading--center":"Primer_Brand__FAQ-module__FAQ__heading--center___xMpbW","FAQ__heading--large":"Primer_Brand__FAQ-module__FAQ__heading--large___pBEPT","FAQ__heading--with-margin":"Primer_Brand__FAQ-module__FAQ__heading--with-margin___S2_ET"},Fe=(0,r.forwardRef)((({children:r,className:t,...n},i)=>{const o=a().Children.toArray(r).filter((e=>!(!a().isValidElement(e)||"string"==typeof e.type||!(0,Re.isFragment)(e)&&e.type!==Me&&e.type!==Oe&&e.type!==He))),l=a().Children.toArray(r).some((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===Oe));return(0,e.jsx)("section",{className:_(ze.FAQ,t),ref:i,...n,children:a().Children.toArray(o).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===Me?a().cloneElement(e,{align:l?"start":e.props.align,size:l?"large":e.props.size,className:_(!l&&ze["FAQ__heading--with-margin"],e.props.className)}):e))})})),Me=(0,r.forwardRef)((({children:r,className:a,size:t="medium",align:n="center",as:i,...o},l)=>{const d="medium"===t?"h3":"h2";return(0,e.jsx)(I,{as:i||d,className:_(ze.FAQ__heading,"large"===t&&ze["FAQ__heading--large"],ze[`FAQ__heading--${n}`],a),ref:l,...o,children:r})}));function Oe({children:r,className:a,as:t="h3",...n}){return(0,e.jsx)(I,{as:t,className:_(ze.FAQ__subheading,a),...n,children:r})}const Ve=Object.assign(Fe,{Subheading:Oe,Heading:Me,Item:He,Question:Ee,Answer:Ie});function $e(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var We=$e()?r.useLayoutEffect:r.useEffect,De=!1,qe=0;function Qe(){return++qe}function Ue(e){var a;if("function"==typeof r.useId){var t=(0,r.useId)(e);return null!=e?e:t}var n=null!=e?e:De?Qe():null,i=(0,r.useState)(n),_=i[0],o=i[1];return We((function(){null===_&&o(Qe())}),[]),(0,r.useEffect)((function(){!1===De&&(De=!0)}),[]),null!=(a=null!=e?e:_)?a:void 0}const Ge="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Ke="Primer_Brand__Checkbox-module__Checkbox-checkmark___atiwt",Je=(0,r.forwardRef)((({checked:a,className:t,indeterminate:n,disabled:i,id:o,onChange:l,required:d,validationStatus:s,value:c,...m},u)=>{const h=(0,r.useRef)(u||null),g=Ue(o);return Ge((()=>{h.current&&(h.current.indeterminate=n||!1)}),[n,a,h]),(0,e.jsxs)("span",{className:"Primer_Brand__Checkbox-module__Checkbox-wrapper___qo8KL",children:[(0,e.jsx)("input",{id:g,"aria-checked":n?"mixed":a?"true":"false","aria-disabled":i?"true":"false","aria-invalid":"error"===s?"true":"false","aria-required":d?"true":"false",checked:!n&&a,className:_("Primer_Brand__Checkbox-module__Checkbox-input___sux6s"),disabled:i,name:c,onChange:l,ref:h,required:d,type:"checkbox",value:c,...m}),(0,e.jsxs)("label",{htmlFor:g,className:_("Primer_Brand__Checkbox-module__Checkbox___T8FJa",n&&"Primer_Brand__Checkbox-module__Checkbox--indeterminate___U5S6k",t),children:[!n&&(0,e.jsx)("svg",{viewBox:"0 0 100 100",className:_(Ke),children:(0,e.jsx)("path",{className:_("Primer_Brand__Checkbox-module__Checkbox-checkmark-path___qgsjb"),fill:"none",stroke:"#000",strokeWidth:"13",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M12.1 52.1l24.4 24.4 53-53"})}),n&&(0,e.jsx)("svg",{className:_(Ke),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:(0,e.jsx)("path",{fillRule:"evenodd",d:"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"})})]})]})})),Xe={Textarea:"Primer_Brand__Textarea-module__Textarea___xmKD5","Textarea-resize--vertical":"Primer_Brand__Textarea-module__Textarea-resize--vertical___uAPaM","Textarea-resize--horizontal":"Primer_Brand__Textarea-module__Textarea-resize--horizontal___gT0d4","Textarea-resize--none":"Primer_Brand__Textarea-module__Textarea-resize--none___VNofG","Textarea-resize--both":"Primer_Brand__Textarea-module__Textarea-resize--both___bDJp5","Textarea--medium":"Primer_Brand__Textarea-module__Textarea--medium___pMZGb","Textarea--large":"Primer_Brand__Textarea-module__Textarea--large___wCPXA","Textarea--fullWidth":"Primer_Brand__Textarea-module__Textarea--fullWidth___lPWcQ","Textarea-wrapper--disabled":"Primer_Brand__Textarea-module__Textarea-wrapper--disabled___fg8We","Textarea-wrapper":"Primer_Brand__Textarea-module__Textarea-wrapper___A4lsG","Textarea-wrapper--invisible":"Primer_Brand__Textarea-module__Textarea-wrapper--invisible___fF78K","Textarea-wrapper--fullWidth":"Primer_Brand__Textarea-module__Textarea-wrapper--fullWidth___EtLL9","Textarea-wrapper--monospace":"Primer_Brand__Textarea-module__Textarea-wrapper--monospace___lA41d","Textarea-wrapper--success":"Primer_Brand__Textarea-module__Textarea-wrapper--success___RaDVX","Textarea-wrapper--error":"Primer_Brand__Textarea-module__Textarea-wrapper--error___zcHSQ"},Ze=7,Ye=30,er="both",rr={root:"Textarea",get outerContainer(){return`${this.root}-outer-container`}},ar=(0,r.forwardRef)((({children:r,className:a,cols:t=Ye,disabled:n,fullWidth:i=!1,invisible:o=!1,monospace:l,placeholder:d,size:s="medium",validationStatus:c,required:m,resize:u=er,rows:h=Ze,...g},p)=>(0,e.jsx)("span",{className:_(Xe["Textarea-wrapper"],i&&Xe["Textarea-wrapper--fullWidth"],o&&Xe["Textarea-wrapper--invisible"],n&&Xe["Textarea-wrapper--disabled"],l&&Xe["Textarea-wrapper--monospace"],c&&Xe[`Textarea-wrapper--${c}`]),"data-testid":rr.outerContainer,children:(0,e.jsx)("textarea",{ref:p,className:_(Xe.Textarea,"Textarea",Xe[`Textarea--${s}`],Xe[`Textarea-resize--${u}`],i&&Xe["Textarea--fullWidth"],c&&Xe[`Textarea--${c}`],a),placeholder:d,disabled:n,"aria-invalid":"error"===c,"aria-required":m?"true":"false",rows:h,cols:t,...g,children:r})})));ar.displayName="Textarea";const tr={TextInput:"Primer_Brand__TextInput-module__TextInput___EtKj3","TextInput--medium":"Primer_Brand__TextInput-module__TextInput--medium___kJrew","TextInput--large":"Primer_Brand__TextInput-module__TextInput--large___zpUvY","TextInput--fullWidth":"Primer_Brand__TextInput-module__TextInput--fullWidth___rbllM","TextInput-wrapper--disabled":"Primer_Brand__TextInput-module__TextInput-wrapper--disabled___HWTx_","TextInput-wrapper":"Primer_Brand__TextInput-module__TextInput-wrapper___HgxNu","TextInput-wrapper--invisible":"Primer_Brand__TextInput-module__TextInput-wrapper--invisible___cKDcl","TextInput-wrapper--fullWidth":"Primer_Brand__TextInput-module__TextInput-wrapper--fullWidth___eclO4","TextInput-wrapper--monospace":"Primer_Brand__TextInput-module__TextInput-wrapper--monospace___y1fd6","TextInput-wrapper--success":"Primer_Brand__TextInput-module__TextInput-wrapper--success___g5ODK","TextInput-wrapper--error":"Primer_Brand__TextInput-module__TextInput-wrapper--error___V7qtN","TextInput--has-leading-visual--medium":"Primer_Brand__TextInput-module__TextInput--has-leading-visual--medium___i7gLS","TextInput--has-leading-visual--large":"Primer_Brand__TextInput-module__TextInput--has-leading-visual--large___nCVT9","TextInput--has-trailing-visual--medium":"Primer_Brand__TextInput-module__TextInput--has-trailing-visual--medium___pP4lM","TextInput--has-trailing-visual--large":"Primer_Brand__TextInput-module__TextInput--has-trailing-visual--large___n1U0P","TextInput-leading-visual":"Primer_Brand__TextInput-module__TextInput-leading-visual___tk7Yz","TextInput-trailing-visual":"Primer_Brand__TextInput-module__TextInput-trailing-visual___k0E6L","TextInput-leading-visual-icon--medium":"Primer_Brand__TextInput-module__TextInput-leading-visual-icon--medium___y_4Pu","TextInput-leading-visual-icon--large":"Primer_Brand__TextInput-module__TextInput-leading-visual-icon--large___VPOF7","TextInput-leading-text":"Primer_Brand__TextInput-module__TextInput-leading-text___H5Cfr","TextInput-trailing-text":"Primer_Brand__TextInput-module__TextInput-trailing-text___ikt8X","TextInput-leading-text--disabled":"Primer_Brand__TextInput-module__TextInput-leading-text--disabled___APVY0","TextInput-trailing-text--disabled":"Primer_Brand__TextInput-module__TextInput-trailing-text--disabled___oM2Ls","TextInput-leading-text-inner":"Primer_Brand__TextInput-module__TextInput-leading-text-inner___wsz6j","TextInput-trailing-text-inner":"Primer_Brand__TextInput-module__TextInput-trailing-text-inner___hHCPx","TextInput-leading-text-inner--medium":"Primer_Brand__TextInput-module__TextInput-leading-text-inner--medium___B7Rra","TextInput-trailing-text-inner--medium":"Primer_Brand__TextInput-module__TextInput-trailing-text-inner--medium___P9cYA","TextInput-leading-text-inner--large":"Primer_Brand__TextInput-module__TextInput-leading-text-inner--large___HfLcI","TextInput-trailing-text-inner--large":"Primer_Brand__TextInput-module__TextInput-trailing-text-inner--large___LTt33","TextInput-leading-text--medium":"Primer_Brand__TextInput-module__TextInput-leading-text--medium___AXLxn","TextInput-trailing-text--medium":"Primer_Brand__TextInput-module__TextInput-trailing-text--medium___o1pNj","TextInput-leading-text--large":"Primer_Brand__TextInput-module__TextInput-leading-text--large___z8lZE","TextInput-trailing-text--large":"Primer_Brand__TextInput-module__TextInput-trailing-text--large___nFFjq","TextInput--has-leading-text":"Primer_Brand__TextInput-module__TextInput--has-leading-text___u7qke","TextInput--has-trailing-text":"Primer_Brand__TextInput-module__TextInput--has-trailing-text___Rsoog","TextInput-leading-text--success":"Primer_Brand__TextInput-module__TextInput-leading-text--success___LLFx7","TextInput-trailing-text--success":"Primer_Brand__TextInput-module__TextInput-trailing-text--success___EfLVd","TextInput-leading-text--error":"Primer_Brand__TextInput-module__TextInput-leading-text--error___TM77D","TextInput-trailing-text--error":"Primer_Brand__TextInput-module__TextInput-trailing-text--error___R96jr"},nr=(0,r.forwardRef)((({className:r,disabled:t,fullWidth:n=!1,invisible:i=!1,leadingText:o,leadingVisual:l,monospace:d,placeholder:s,size:c="medium",trailingText:m,trailingVisual:u,validationStatus:h,...g},p)=>(0,e.jsxs)("span",{className:_(tr["TextInput-wrapper"],n&&tr["TextInput-wrapper--fullWidth"],i&&tr["TextInput-wrapper--invisible"],t&&tr["TextInput-wrapper--disabled"],d&&tr["TextInput-wrapper--monospace"],h&&tr[`TextInput-wrapper--${h}`]),children:[o&&!l&&(0,e.jsx)("span",{className:_(tr["TextInput-leading-text"],tr[`TextInput-leading-text--${c}`],t&&tr["TextInput-leading-text--disabled"],h&&tr[`TextInput-leading-text--${h}`]),children:(0,e.jsx)("span",{className:_(tr["TextInput-leading-text-inner"],tr[`TextInput-leading-text-inner--${c}`]),children:o})}),l&&!o&&(0,e.jsx)("span",{className:tr["TextInput-leading-visual"],children:"function"==typeof l?(0,e.jsx)(l,{className:_(tr["TextInput-leading-visual-icon"],tr[`TextInput-leading-visual-icon--${c}`])}):a().isValidElement(l)&&a().cloneElement(l,{className:_(tr["TextInput-leading-visual-icon"],tr[`TextInput-leading-visual-icon--${c}`]),width:"large"===c?20:16,height:"large"===c?20:16})}),(0,e.jsx)("input",{type:"text",ref:p,className:_(tr.TextInput,"TextInput",tr[`TextInput--${c}`],n&&tr["TextInput--fullWidth"],l&&tr[`TextInput--has-leading-visual--${c}`],u&&tr["TextInput--has-trailing-visual"],h&&tr[`TextInput--${h}`],o&&!l&&tr["TextInput--has-leading-text"],m&&!u&&tr["TextInput--has-trailing-text"],r),placeholder:s,disabled:t,"aria-invalid":"error"===h,...g}),u&&!m&&(0,e.jsx)("span",{className:tr["TextInput-trailing-visual"],children:"function"==typeof u?(0,e.jsx)(u,{className:_(tr["TextInput-trailing-visual-icon"],tr[`TextInput-trailing-visual-icon--${c}`])}):a().isValidElement(u)&&a().cloneElement(u,{className:_(tr["TextInput-trailing-visual-icon"],tr[`TextInput-trailing-visual-icon--${c}`]),width:"large"===c?20:16,height:"large"===c?20:16})}),m&&!u&&(0,e.jsx)("span",{className:_(tr["TextInput-trailing-text"],tr[`TextInput-trailing-text--${c}`],t&&tr["TextInput-trailing-text--disabled"],h&&tr[`TextInput-trailing-text--${h}`]),children:(0,e.jsx)("span",{className:_(tr["TextInput-trailing-text-inner"],tr[`TextInput-trailing-text-inner--${c}`]),children:m})})]})));nr.displayName="TextInput";const ir={Select:"Primer_Brand__Select-module__Select___Jqn1f","focus-visible":"Primer_Brand__Select-module__focus-visible___viA1m","Select-arrow-indicator":"Primer_Brand__Select-module__Select-arrow-indicator___LTpJz","Select-arrow-indicator--disabled":"Primer_Brand__Select-module__Select-arrow-indicator--disabled___dLMeI","Select--medium":"Primer_Brand__Select-module__Select--medium___kckBr","Select--large":"Primer_Brand__Select-module__Select--large___A7u6F","Select--fullWidth":"Primer_Brand__Select-module__Select--fullWidth___PLk5U","Select-wrapper":"Primer_Brand__Select-module__Select-wrapper___iV0Tg","Select-wrapper--disabled":"Primer_Brand__Select-module__Select-wrapper--disabled___Ka43y","Select-wrapper--fullWidth":"Primer_Brand__Select-module__Select-wrapper--fullWidth___oOOo4","Select--success":"Primer_Brand__Select-module__Select--success___pkmVg","Select--error":"Primer_Brand__Select-module__Select--error___A9JuG"},_r=(0,r.forwardRef)((({children:r,className:a,disabled:t,fullWidth:n=!1,placeholder:i,size:o="medium",validationStatus:l,...d},s)=>(0,e.jsxs)("span",{className:_(ir["Select-wrapper"],n&&ir["Select-wrapper--fullWidth"],l&&ir[`Select--${l}`],t&&ir["Select-wrapper--disabled"]),children:[(0,e.jsx)("select",{"aria-invalid":"error"===l,className:_(ir.Select,"Select",ir[`Select--${o}`],n&&ir["Select--fullWidth"],a),disabled:t,placeholder:i,ref:s,...d,children:r}),(0,e.jsx)("span",{className:_(ir["Select-arrow-indicator"],t&&ir["Select-arrow-indicator--disabled"]),children:(0,e.jsx)(or,{})})]}))),or=({className:r})=>(0,e.jsx)("svg",{width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:_(r),children:(0,e.jsx)("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"})}),lr=Object.assign(_r,{Option:({children:r,value:a,...t})=>(0,e.jsx)("option",{value:a,...t,children:r}),OptGroup:({children:r,label:a,...t})=>(0,e.jsx)("optgroup",{label:a,...t,children:r})}),dr=(0,r.forwardRef)((({checked:a,className:t,disabled:n,id:i,onChange:o,required:l,value:d,...s},c)=>{const m=(0,r.useRef)(c||null),u=Ue(i);return(0,e.jsxs)("span",{className:"Primer_Brand__Radio-module__Radio-wrapper___Gt9uM",children:[(0,e.jsx)("input",{id:u,"aria-checked":a?"true":"false","aria-disabled":n?"true":"false",checked:a,className:_("Primer_Brand__Radio-module__Radio-input___n3jX4"),disabled:n,name:d,onChange:o,ref:m,required:l,type:"radio",value:d,...s}),(0,e.jsx)("label",{htmlFor:u,className:_("Primer_Brand__Radio-module__Radio___JycTo",t),children:(0,e.jsx)("span",{className:"Primer_Brand__Radio-module__Radio-dot___rmEAJ"})})]})})),sr={FormControl:"Primer_Brand__FormControl-module__FormControl___ZJtXy","FormControl--fullWidth":"Primer_Brand__FormControl-module__FormControl--fullWidth___QyLCS","FormControl--checkbox":"Primer_Brand__FormControl-module__FormControl--checkbox___R2ng7","FormControl--border":"Primer_Brand__FormControl-module__FormControl--border___CRSaq","FormControl-label":"Primer_Brand__FormControl-module__FormControl-label___meeuB","FormControl-label--visually-hidden":"Primer_Brand__FormControl-module__FormControl-label--visually-hidden___cFizI","FormControl-label--medium":"Primer_Brand__FormControl-module__FormControl-label--medium___inrKd","FormControl-label--large":"Primer_Brand__FormControl-module__FormControl-label--large___okLn6","FormControl-label--checkbox":"Primer_Brand__FormControl-module__FormControl-label--checkbox___x2U9X","FormControl-control--radio":"Primer_Brand__FormControl-module__FormControl-control--radio___aSHRG","FormControl-hint":"Primer_Brand__FormControl-module__FormControl-hint___dbP0O","FormControl-validation":"Primer_Brand__FormControl-module__FormControl-validation___vG5tm","FormControl-validation--success":"Primer_Brand__FormControl-module__FormControl-validation--success___fGV4L","FormControl-validation--error":"Primer_Brand__FormControl-module__FormControl-validation--error___DJVR5","FormControl-validation-icon":"Primer_Brand__FormControl-module__FormControl-validation-icon___xh1go","FormControl-validation--animate-in":"Primer_Brand__FormControl-module__FormControl-validation--animate-in___C_pxB",FormControlValidationFadeIn:"Primer_Brand__FormControl-module__FormControlValidationFadeIn___hRw_R"},cr=({children:r,className:t,htmlFor:n,required:i,showRequiredIndicator:o=!0,size:l="medium",validationStatus:d,visuallyHidden:s,...c})=>(0,e.jsxs)("label",{htmlFor:n,className:_(sr["FormControl-label"],d&&sr[`FormControl-label--${d}`],sr[`FormControl-label--${l}`],s&&sr["FormControl-label--visually-hidden"],t),...c,children:[a().Children.map(r,(e=>a().isValidElement(e)&&e.type===ur?a().cloneElement(e,{className:_(sr["FormControl--visible"],e.props.className)}):e)),i&&o&&(0,e.jsxs)("span",{className:sr["FormControl-label-required"],"aria-hidden":!0,children:[" ","*"]})]}),mr=({children:r,validationStatus:a})=>(0,e.jsxs)("span",{className:_(sr["FormControl-validation"],a&&sr["FormControl-validation--animate-in"],a&&sr[`FormControl-validation--${a}`]),children:["error"===a&&(0,e.jsx)("span",{className:sr["FormControl-validation-icon"],children:(0,e.jsx)(re,{})}),"success"===a&&(0,e.jsx)("span",{className:sr["FormControl-validation-icon"],children:(0,e.jsx)(te,{})}),r]}),ur=({children:r,className:a,...t})=>(0,e.jsx)("span",{className:_(sr["FormControl-hint"],a),...t,children:r}),hr=Object.assign((({children:r,className:t,hasBorder:n,fullWidth:i,id:o,required:l,size:d="medium",validationStatus:s,...c})=>{const m=Ue(o),u=o||m,h=a().Children.toArray(r).some((e=>a().isValidElement(e)&&(e.type===Je||e.type===dr)));return(0,e.jsx)("section",{id:`FormControl--${u}`,className:_(sr.FormControl,i&&sr["FormControl--fullWidth"],h&&sr["FormControl--checkbox"],n&&sr["FormControl--border"],t),...c,children:a().Children.map(r,(e=>{if(e){const r=`${u}`;return e.type===nr||e.type===ar?a().cloneElement(e,{className:_(e.props.className),id:r,name:e.props.name||r,required:e.props.required||l,validationStatus:e.props.validationStatus||s,fullWidth:i,size:d}):e.type===lr?a().cloneElement(e,{className:_(e.props.className),id:r,name:r,required:e.props.required||l,validationStatus:e.props.validationStatus||s,fullWidth:i,size:d}):e.type===Je?a().cloneElement(e,{className:_(e.props.className),id:r,name:e.props.name||r,required:e.props.required||l,validationStatus:e.props.validationStatus||s}):e.type===dr?a().cloneElement(e,{className:_(h&&sr["FormControl-control--radio"],e.props.className),id:r,name:e.props.name,required:e.props.required||l,validationStatus:e.props.validationStatus||s}):e.type===cr?a().cloneElement(e,{className:_(h&&sr["FormControl-label--checkbox"],e.props.className),htmlFor:r,children:e.props.children,required:l,validationStatus:s,size:d,showRequiredIndicator:!h&&e.props.showRequiredIndicator}):e.type===mr?a().cloneElement(e,{validationStatus:s}):e}}))})}),{Label:cr,Validation:mr,Hint:ur}),gr={Stack:"Primer_Brand__Stack-module__Stack___tASKe","Stack--vertical":"Primer_Brand__Stack-module__Stack--vertical___CFzE7","Stack--horizontal":"Primer_Brand__Stack-module__Stack--horizontal___YJFas","Stack-narrow--vertical":"Primer_Brand__Stack-module__Stack-narrow--vertical___GDT_Z","Stack-narrow--horizontal":"Primer_Brand__Stack-module__Stack-narrow--horizontal___Co6IL","Stack-regular--vertical":"Primer_Brand__Stack-module__Stack-regular--vertical___TMpL8","Stack-regular--horizontal":"Primer_Brand__Stack-module__Stack-regular--horizontal___WDLyR","Stack-wide--vertical":"Primer_Brand__Stack-module__Stack-wide--vertical___G1Eu6","Stack-wide--horizontal":"Primer_Brand__Stack-module__Stack-wide--horizontal___cvxh3","Stack--gap-none":"Primer_Brand__Stack-module__Stack--gap-none___M7T_v","Stack--gap-condensed":"Primer_Brand__Stack-module__Stack--gap-condensed___Xe9jx","Stack--gap-normal":"Primer_Brand__Stack-module__Stack--gap-normal___JEO7_","Stack--gap-spacious":"Primer_Brand__Stack-module__Stack--gap-spacious___w5ugZ","Stack-narrow--gap-none":"Primer_Brand__Stack-module__Stack-narrow--gap-none___YtqsL","Stack-narrow--gap-condensed":"Primer_Brand__Stack-module__Stack-narrow--gap-condensed___zwHUG","Stack-narrow--gap-normal":"Primer_Brand__Stack-module__Stack-narrow--gap-normal___smNw5","Stack-narrow--gap-spacious":"Primer_Brand__Stack-module__Stack-narrow--gap-spacious___TX17G","Stack--padding-none":"Primer_Brand__Stack-module__Stack--padding-none___RCMh9","Stack--padding-condensed":"Primer_Brand__Stack-module__Stack--padding-condensed___mo7Aq","Stack--padding-normal":"Primer_Brand__Stack-module__Stack--padding-normal___ySRTI","Stack--padding-spacious":"Primer_Brand__Stack-module__Stack--padding-spacious___REyye","Stack-narrow--padding-none":"Primer_Brand__Stack-module__Stack-narrow--padding-none___ndsvs","Stack-narrow--padding-condensed":"Primer_Brand__Stack-module__Stack-narrow--padding-condensed___f1f4j","Stack-narrow--padding-normal":"Primer_Brand__Stack-module__Stack-narrow--padding-normal___TQe_D","Stack-narrow--padding-spacious":"Primer_Brand__Stack-module__Stack-narrow--padding-spacious___YeMDB","Stack-regular--gap-none":"Primer_Brand__Stack-module__Stack-regular--gap-none____ZDEx","Stack-regular--gap-condensed":"Primer_Brand__Stack-module__Stack-regular--gap-condensed___ZYYsD","Stack-regular--gap-normal":"Primer_Brand__Stack-module__Stack-regular--gap-normal___dRchQ","Stack-regular--gap-spacious":"Primer_Brand__Stack-module__Stack-regular--gap-spacious___oMqRv","Stack-regular--padding-none":"Primer_Brand__Stack-module__Stack-regular--padding-none____wmhn","Stack-regular--padding-condensed":"Primer_Brand__Stack-module__Stack-regular--padding-condensed___WxLyH","Stack-regular--padding-normal":"Primer_Brand__Stack-module__Stack-regular--padding-normal___oKpGh","Stack-regular--padding-spacious":"Primer_Brand__Stack-module__Stack-regular--padding-spacious___pL7HW","Stack-wide--gap-none":"Primer_Brand__Stack-module__Stack-wide--gap-none___V9yZQ","Stack-wide--gap-condensed":"Primer_Brand__Stack-module__Stack-wide--gap-condensed___TB7xm","Stack-wide--gap-normal":"Primer_Brand__Stack-module__Stack-wide--gap-normal___Et9_A","Stack-wide--gap-spacious":"Primer_Brand__Stack-module__Stack-wide--gap-spacious___WXQyb","Stack-wide--padding-none":"Primer_Brand__Stack-module__Stack-wide--padding-none___GEcfF","Stack-wide--padding-condensed":"Primer_Brand__Stack-module__Stack-wide--padding-condensed___heIOO","Stack-wide--padding-normal":"Primer_Brand__Stack-module__Stack-wide--padding-normal___Pdr2C","Stack-wide--padding-spacious":"Primer_Brand__Stack-module__Stack-wide--padding-spacious___d_AmA","Stack--align-items-flex-end":"Primer_Brand__Stack-module__Stack--align-items-flex-end___cJG6k","Stack--align-items-flex-start":"Primer_Brand__Stack-module__Stack--align-items-flex-start___Vh1Ca","Stack--align-items-center":"Primer_Brand__Stack-module__Stack--align-items-center___xWKxj","Stack-narrow--align-items-flex-end":"Primer_Brand__Stack-module__Stack-narrow--align-items-flex-end___bXiXc","Stack-narrow--align-items-flex-start":"Primer_Brand__Stack-module__Stack-narrow--align-items-flex-start___eBtSy","Stack-narrow--align-items-center":"Primer_Brand__Stack-module__Stack-narrow--align-items-center___jZIXU","Stack-regular--align-items-flex-end":"Primer_Brand__Stack-module__Stack-regular--align-items-flex-end___JlKOr","Stack-regular--align-items-flex-start":"Primer_Brand__Stack-module__Stack-regular--align-items-flex-start___jusm2","Stack-regular--align-items-center":"Primer_Brand__Stack-module__Stack-regular--align-items-center___tY013","Stack-wide--align-items-flex-end":"Primer_Brand__Stack-module__Stack-wide--align-items-flex-end___z5xxr","Stack-wide--align-items-flex-start":"Primer_Brand__Stack-module__Stack-wide--align-items-flex-start___QKRoP","Stack-wide--align-items-center":"Primer_Brand__Stack-module__Stack-wide--align-items-center___DUG9C","Stack--justify-content-flex-end":"Primer_Brand__Stack-module__Stack--justify-content-flex-end___mp2Ka","Stack--justify-content-flex-start":"Primer_Brand__Stack-module__Stack--justify-content-flex-start___VIkHJ","Stack--justify-content-center":"Primer_Brand__Stack-module__Stack--justify-content-center___uZGXl","Stack--justify-content-space-between":"Primer_Brand__Stack-module__Stack--justify-content-space-between___r8E3d","Stack--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack--justify-content-space-evenly___G1eGw","Stack--justify-content-space-around":"Primer_Brand__Stack-module__Stack--justify-content-space-around___kqm4D","Stack-narrow--justify-content-flex-end":"Primer_Brand__Stack-module__Stack-narrow--justify-content-flex-end___QUDo3","Stack-narrow--justify-content-flex-start":"Primer_Brand__Stack-module__Stack-narrow--justify-content-flex-start___fNLJd","Stack-narrow--justify-content-center":"Primer_Brand__Stack-module__Stack-narrow--justify-content-center___kdlmI","Stack-narrow--justify-content-space-between":"Primer_Brand__Stack-module__Stack-narrow--justify-content-space-between___w7Ki5","Stack-narrow--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack-narrow--justify-content-space-evenly___ntQwA","Stack-narrow--justify-content-space-around":"Primer_Brand__Stack-module__Stack-narrow--justify-content-space-around___NHZVk","Stack-regular--justify-content-flex-end":"Primer_Brand__Stack-module__Stack-regular--justify-content-flex-end___B0xmt","Stack-regular--justify-content-flex-start":"Primer_Brand__Stack-module__Stack-regular--justify-content-flex-start___DtA1j","Stack-regular--justify-content-center":"Primer_Brand__Stack-module__Stack-regular--justify-content-center___oEcdF","Stack-regular--justify-content-space-between":"Primer_Brand__Stack-module__Stack-regular--justify-content-space-between___F1gqO","Stack-regular--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack-regular--justify-content-space-evenly___xZdXl","Stack-regular--justify-content-space-around":"Primer_Brand__Stack-module__Stack-regular--justify-content-space-around___nSDM4","Stack-wide--justify-content-flex-end":"Primer_Brand__Stack-module__Stack-wide--justify-content-flex-end___Hztn5","Stack-wide--justify-content-flex-start":"Primer_Brand__Stack-module__Stack-wide--justify-content-flex-start___gnhnO","Stack-wide--justify-content-center":"Primer_Brand__Stack-module__Stack-wide--justify-content-center___XxA7G","Stack-wide--justify-content-space-between":"Primer_Brand__Stack-module__Stack-wide--justify-content-space-between___HEm_x","Stack-wide--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack-wide--justify-content-space-evenly___Hgs5B","Stack-wide--justify-content-space-around":"Primer_Brand__Stack-module__Stack-wide--justify-content-space-around___B30C2"},pr=["horizontal","vertical"],fr=pr[1],vr=["none","condensed","normal","spacious"],xr=vr[1],br=["center","flex-start","flex-end"],wr=[...br,"space-between","space-around","space-evenly"],Br=(0,r.forwardRef)((({children:a,direction:t=fr,gap:n=xr,alignItems:i,padding:o=xr,justifyContent:l,className:d,...s},c)=>{const m=(0,r.useMemo)((()=>"string"==typeof t?gr[`Stack--${t}`]:Object.keys(t).map((e=>gr[`Stack-${e}--${t[e]}`])).join(" ")),[t]),u=(0,r.useMemo)((()=>"string"==typeof n?gr[`Stack--gap-${n}`]:Object.keys(n).map((e=>gr[`Stack-${e}--gap-${n[e]}`])).join(" ")),[n]),h=(0,r.useMemo)((()=>"string"==typeof o?gr[`Stack--padding-${o}`]:Object.keys(o).map((e=>gr[`Stack-${e}--padding-${o[e]}`])).join(" ")),[o]),g=(0,r.useMemo)((()=>"string"==typeof i?gr[`Stack--align-items-${i}`]:"object"==typeof i?Object.keys(i).map((e=>gr[`Stack-${e}--align-items-${i[e]}`])).join(" "):null),[i]),p=(0,r.useMemo)((()=>"string"==typeof l?gr[`Stack--justify-content-${l}`]:"object"==typeof l?Object.keys(l).map((e=>gr[`Stack-${e}--justify-content-${l[e]}`])).join(" "):null),[l]);return(0,e.jsx)("div",{ref:c,className:_(gr.Stack,m,u,g,p,h,d),...s,children:a})})),Tr={Avatar:"Primer_Brand__Avatar-module__Avatar___QrJMw","Avatar--shape-circle":"Primer_Brand__Avatar-module__Avatar--shape-circle___VvaB7","Avatar--shape-square":"Primer_Brand__Avatar-module__Avatar--shape-square___hKak4",Avatar__image:"Primer_Brand__Avatar-module__Avatar__image___AajXN","Avatar--size-32":"Primer_Brand__Avatar-module__Avatar--size-32___vJxfW","Avatar--size-40":"Primer_Brand__Avatar-module__Avatar--size-40___RSkow","Avatar--size-48":"Primer_Brand__Avatar-module__Avatar--size-48___TvwXR","Avatar--size-64":"Primer_Brand__Avatar-module__Avatar--size-64___rovws","Avatar--size-80":"Primer_Brand__Avatar-module__Avatar--size-80___YDbIK","Avatar-narrow--size-32":"Primer_Brand__Avatar-module__Avatar-narrow--size-32___wmqNx","Avatar-narrow--size-40":"Primer_Brand__Avatar-module__Avatar-narrow--size-40___JnS3w","Avatar-narrow--size-48":"Primer_Brand__Avatar-module__Avatar-narrow--size-48___X8e2V","Avatar-regular--size-32":"Primer_Brand__Avatar-module__Avatar-regular--size-32___f5goH","Avatar-regular--size-40":"Primer_Brand__Avatar-module__Avatar-regular--size-40___Qaf20","Avatar-regular--size-48":"Primer_Brand__Avatar-module__Avatar-regular--size-48___db8dV","Avatar-regular--size-64":"Primer_Brand__Avatar-module__Avatar-regular--size-64___rBoTS","Avatar-regular--size-80":"Primer_Brand__Avatar-module__Avatar-regular--size-80___AKjNL","Avatar-wide--size-32":"Primer_Brand__Avatar-module__Avatar-wide--size-32___Kn8pg","Avatar-wide--size-40":"Primer_Brand__Avatar-module__Avatar-wide--size-40___DBSrS","Avatar-wide--size-48":"Primer_Brand__Avatar-module__Avatar-wide--size-48___ai2Hf","Avatar-wide--size-64":"Primer_Brand__Avatar-module__Avatar-wide--size-64___FLSak","Avatar-wide--size-80":"Primer_Brand__Avatar-module__Avatar-wide--size-80___h09bA"},Sr=[32,40,48,64,80],Pr=["circle","square"],kr={root:"Avatar",get image(){return`${this.root}__image`}},Nr=(0,r.forwardRef)((({alt:a,className:t,size:n=Sr[1],shape:i=Pr[0],"data-testid":o,src:l,...d},s)=>{const c=(0,r.useMemo)((()=>"number"==typeof n?Tr[`Avatar--size-${n}`]:Object.keys(n).map((e=>Tr[`Avatar-${e}--size-${n[e]}`])).join(" ")),[n]);return(0,e.jsx)("span",{ref:s,className:_(Tr.Avatar,c,Tr[`Avatar--shape-${i}`],t),"data-testid":o||kr.root,children:(0,e.jsx)("img",{className:_(Tr.Avatar__image),src:l,alt:a,"data-testid":kr.image,...d})})})),Ar=Object.assign(Nr,{testIds:kr}),yr={Testimonial:"Primer_Brand__Testimonial-module__Testimonial___UUywT","Testimonial--center":"Primer_Brand__Testimonial-module__Testimonial--center___NyPe5","Testimonial-quote":"Primer_Brand__Testimonial-module__Testimonial-quote___QXF1F","Testimonial-from":"Primer_Brand__Testimonial-module__Testimonial-from___Kfj__","Testimonial-logo-image":"Primer_Brand__Testimonial-module__Testimonial-logo-image___KQQfi"},jr=(0,r.forwardRef)((function({align:r,className:t,children:n,...i},o){return(0,e.jsxs)("figure",{ref:o,className:_(yr.Testimonial,r&&yr[`Testimonial--${r}`],t),...i,children:[a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Cr)return e})),a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Hr)return e})),a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Ir)return e})),a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Er)return e}))]})})),Cr=(0,r.forwardRef)((function({children:r,className:a},t){return(0,e.jsx)("blockquote",{ref:t,children:(0,e.jsx)(f,{size:"300",className:_(yr["Testimonial-quote"],a),children:r})})})),Hr=(0,r.forwardRef)((function({children:r,className:a,position:t},n){return(0,e.jsx)("figcaption",{ref:n,children:(0,e.jsxs)(f,{size:"200",className:_(yr["Testimonial-from"],a),variant:"muted",children:[r," ",t&&(0,e.jsxs)("span",{children:[" // ",t]})]})})})),Er=(0,r.forwardRef)((function({children:r,...t},n){return(0,e.jsx)("div",{className:yr["Testimonial-logo"],...t,children:a().Children.map(r,(e=>{if(a().isValidElement(e)&&"img"===e.type)return a().cloneElement(e,{className:_(yr["Testimonial-logo-image"]),ref:n})}))})})),Ir=function({size:r,...a}){return(0,e.jsx)(Ar,{size:48,...a})},Lr=Object.assign(jr,{Quote:Cr,Name:Hr,Avatar:Ir,Logo:Er}),Rr={"ComparisonTable--heading":"Primer_Brand__ComparisonTable-module__ComparisonTable--heading___CeSsH","ComparisonTable-footnote":"Primer_Brand__ComparisonTable-module__ComparisonTable-footnote___rf35Q",ComparisonTable:"Primer_Brand__ComparisonTable-module__ComparisonTable___N2YLX","ComparisonTable-cell":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell___kifYR","ComparisonTable-cell-heading":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading___QlGCM","ComparisonTable-cell-container":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-container___AHNr0","ComparisonTable-inline-cell-label":"Primer_Brand__ComparisonTable-module__ComparisonTable-inline-cell-label___hE3hL","ComparisonTable--hide-element-on-narrow":"Primer_Brand__ComparisonTable-module__ComparisonTable--hide-element-on-narrow___GnYyu","ComparisonTable-cell-heading--first":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading--first___Ps2aK","ComparisonTable-cell-heading-label--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading-label--featured___c_wMH","ComparisonTable-cell--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell--featured___f0LZk","ComparisonTable-cell-heading--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading--featured___tkzzb","ComparisonTable-cell--lastrow":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell--lastrow___zmShm","ComparisonTable-cell-container--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-container--featured___x6tKO"},zr=(0,r.forwardRef)((({as:t,children:n,heading:i,featuredColumn:o=1,variant:l="default",...d},s)=>{const c=t||"section",m=(0,r.useMemo)((()=>a().Children.toArray(n).filter((e=>a().isValidElement(e)&&"string"!=typeof e.type))),[n]),u=m.map(((r,t)=>{if(a().isValidElement(r)&&"string"!=typeof r.type&&r.type===Fr&&0===t)return a().cloneElement(r,{className:_(Rr["ComparisonTable-row"],r.props.className),children:a().Children.map(r.props.children,((t,n)=>{if(t.type===Mr)return a().cloneElement(t,{as:"th",className:_(Rr["ComparisonTable-cell"],Rr["ComparisonTable-cell-heading"],Rr[`ComparisonTable-cell-heading--${l}`],0===n&&Rr["ComparisonTable-cell-heading--first"],n===o&&Rr["ComparisonTable-cell-heading--featured"],r.props.className),children:(0,e.jsx)("span",{className:_(n===o&&Rr["ComparisonTable-cell-heading-label--featured"]),children:t.props.children})})}))})})).filter(Boolean),h=(0,r.useMemo)((()=>a().Children.map(n[0].props.children,(e=>{const{children:r=""}=e.props;return r}))),[n]),[,...g]=a().Children.map(n,(e=>a().isValidElement(e)&&e.type===Fr?e:null)),p=g.map(((r,t)=>a().cloneElement(r,{className:_(Rr["ComparisonTable-row"],`ComparisonTable-row--${t}`,r.props.className),children:a().Children.map(r.props.children,((a,n)=>{if(a.type===Mr)return(0,e.jsxs)(Mr,{...a.props,as:0===n?"th":"td",className:_(Rr["ComparisonTable-cell"],Rr[`ComparisonTable-cell--${l}`],0===n&&Rr["ComparisonTable-cell-heading"],0===n&&Rr[`ComparisonTable-cell-heading--${l}`],n===o&&Rr["ComparisonTable-cell--featured"],g.length-1===t&&Rr["ComparisonTable-cell--lastrow"],r.props.className),children:[n>=1&&(0,e.jsx)("span",{className:_(Rr["ComparisonTable-inline-cell-label"],Rr["ComparisonTable--hide-element-on-narrow"],n===o&&Rr["ComparisonTable-cell-heading-label--featured"]),children:h[n]}),(0,e.jsx)("span",{className:_(Rr["ComparisonTable-cell-container"],n===o&&Rr["ComparisonTable-cell-container--featured"]),children:a.props.children})]})}))}))),f=m.find((e=>a().isValidElement(e)&&e.type===Or));return(0,e.jsxs)(c,{ref:s,...d,children:[i&&(0,e.jsx)(I,{className:Rr["ComparisonTable--heading"],as:"h3",children:i}),(0,e.jsxs)("table",{className:_(Rr.ComparisonTable,`ComparisonTable--${l}`),children:[u.length&&(0,e.jsx)("thead",{children:u}),p.length&&(0,e.jsx)("tbody",{children:p})]}),f&&(0,e.jsx)("footer",{className:Rr["ComparisonTable-footnote"],children:f})]})})),Fr=({children:r,...a})=>(0,e.jsx)("tr",{...a,children:r}),Mr=({as:r,children:a,...t})=>{const n=r||"td";return(0,e.jsx)(n,{...t,children:a})},Or=({children:r,...a})=>"string"==typeof r?(0,e.jsx)(f,{as:"p",size:"200",variant:"muted",children:r}):(0,e.jsx)("div",{...a,children:r}),Vr=Object.assign(zr,{Row:Fr,Cell:Mr,Footnote:Or}),$r={AnchorNav:"Primer_Brand__AnchorNav-module__AnchorNav___bwgAJ","AnchorNav--with-default-background-color":"Primer_Brand__AnchorNav-module__AnchorNav--with-default-background-color___aFdXc","AnchorNav--stuck":"Primer_Brand__AnchorNav-module__AnchorNav--stuck___AtvLO","AnchorNav--expanded":"Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk","AnchorNav-link-container":"Primer_Brand__AnchorNav-module__AnchorNav-link-container___VpHV2","AnchorNav-inner-container":"Primer_Brand__AnchorNav-module__AnchorNav-inner-container___lshlZ","AnchorNav-inner-container--expanded":"Primer_Brand__AnchorNav-module__AnchorNav-inner-container--expanded____aoje","AnchorNav-link":"Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2","fade-in":"Primer_Brand__AnchorNav-module__fade-in___KfA_2","AnchorNav-link--is-active":"Primer_Brand__AnchorNav-module__AnchorNav-link--is-active___xbYDS","AnchorNav-link--center":"Primer_Brand__AnchorNav-module__AnchorNav-link--center___aryYq","AnchorNav-link--start":"Primer_Brand__AnchorNav-module__AnchorNav-link--start___COZM3","AnchorNav-link-label":"Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK","AnchorNav-link-label--is-active":"Primer_Brand__AnchorNav-module__AnchorNav-link-label--is-active___DyUFY","focus-visible":"Primer_Brand__AnchorNav-module__focus-visible___dsg4c","AnchorNav-menu-button":"Primer_Brand__AnchorNav-module__AnchorNav-menu-button___tputP","AnchorNav-menu-button-arrow":"Primer_Brand__AnchorNav-module__AnchorNav-menu-button-arrow___v5tcA","AnchorNav-overlay--expanded":"Primer_Brand__AnchorNav-module__AnchorNav-overlay--expanded___xXv6O","AnchorNav-action":"Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE"},Wr={root:"AnchorNav",get menuButton(){return`${this.root}-menu-button`},get menuLinks(){return`${this.root}-menu-links`},get action(){return`${this.root}-action`}};function Dr({alignment:a="start",children:t,href:n,isActive:i,toggleMenuCallback:o,prefersReducedMotion:l,intersectionOptions:d={rootMargin:"middle"},updateCurrentActiveNav:s,...c}){const[m,u]=(0,r.useState)(),{isLarge:h}=be(),[g,p]=(0,r.useState)(),v=/^#/.test(n),x=v?n.replace(/^#/,""):n,b=!!g?.isIntersecting,w=([e])=>{p(e)};(0,r.useEffect)((()=>{const e=document.querySelector(v?n:`#${n}`);if(!window.IntersectionObserver||!e)return;const r="start"===d.rootMargin?"0px 0px -100%":"-50% 0% -50% 0%",a=new IntersectionObserver(w,{threshold:0,root:null,rootMargin:r});return a.observe(e),()=>a.disconnect()}),[n,d.rootMargin,v]),(0,r.useEffect)((()=>{const e=document.querySelector(v?n:`#${n}`);if(!e)return;const r=document.body.getBoundingClientRect().top,a=e.getBoundingClientRect().top;u(a-r+0)}),[n,v]),(0,r.useEffect)((()=>{b&&s&&"string"==typeof t&&s(t)}),[b,t,s]);const B=(0,r.useCallback)((e=>{e.preventDefault();const r=l?"auto":"smooth";o&&!h&&o(),window.scrollTo({top:m,behavior:r})}),[h,m,o,l]);return(0,e.jsx)("a",{className:_($r["AnchorNav-link"],$r[`AnchorNav-link--${a}`],b&&$r["AnchorNav-link--is-active"]),href:v?n:`#${n}`,"aria-describedby":x,"aria-current":b&&"true","data-first":i,"data-active":b?"true":"false",onClick:B,...c,children:(0,e.jsx)(f,{as:"span",className:_($r["AnchorNav-link-label"],b&&$r["AnchorNav-link-label--is-active"]),children:t})})}function qr({children:r,href:a,...t}){return(0,e.jsx)(P,{as:"a",variant:"secondary",className:_($r["AnchorNav-action"]),href:a,hasArrow:!1,"data-testid":Wr.action,...t,children:r})}const Qr=Object.assign((function({children:t,enableDefaultBgColor:n=!1,...i}){const[o,l]=(0,r.useState)(!1),[d,s]=(0,r.useState)(!1),[c,m]=(0,r.useState)(),[u,h]=(0,r.useState)(),[g,p]=(0,r.useState)(),[v,x]=(0,r.useState)(!1),b=(0,r.useRef)(null),w=(0,r.useRef)(null),B=(0,r.useRef)(null),{isLarge:T}=be(),S=Ue(),P=(0,r.useCallback)((()=>l(!1)),[l]),k=(0,r.useCallback)((()=>l(!o)),[o]),N=(0,r.useMemo)((()=>a().Children.toArray(t).filter((e=>a().isValidElement(e)&&"string"!=typeof e.type))),[t]);(0,r.useEffect)((()=>{void 0===g&&u&&p(u.boundingClientRect.y)}),[g,u]);const A=([e])=>{h(e)};var y,j,C,H;xe(P),y=o,j=B,C=w,H=!T,(0,r.useEffect)((()=>{y&&H?document.body.classList.add("AnchorNav--no-bg-scroll"):document.body.classList.remove("AnchorNav--no-bg-scroll")}),[y,H]),(0,r.useEffect)((()=>{if(y){const e=j.current?.firstChild;e.focus()}}),[y,j]),(0,r.useEffect)((()=>{const e=C.current,r=j.current,a=r?.nextSibling,t=r?.children;let n=0;const i=i=>{if(!y||!r||!t||t.length<=1)return;const _=t[t.length-1],o=t.length-1;if("Tab"===i.key&&(i.preventDefault(),a?.focus()),i.shiftKey&&"Tab"===i.key&&(i.preventDefault(),e?.focus()),"ArrowDown"===i.key){if(i.preventDefault(),n===o)return t[0].focus(),void(n=0);if(n<o)return t[n+1].focus(),void(n+=1)}else if("ArrowUp"===i.key)return i.preventDefault(),0===n?(_.focus(),void(n=o)):(t[n-1].focus(),void n--)};return r?.addEventListener("keydown",i),()=>r?.addEventListener("keydown",i)}),[y,j,C]),(0,r.useEffect)((()=>{const e=window.matchMedia("(prefers-reduced-motion: reduce)");s(e.matches)}),[]),(0,r.useEffect)((()=>{const e=()=>{if(g){const e=window.pageYOffset>g;x(!!e)}};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[g]),(0,r.useEffect)((()=>{const e=b.current;if(!window.IntersectionObserver||!e)return;const r=new IntersectionObserver(A,{threshold:0,root:null,rootMargin:"0px 0px -100%"});return r.observe(e),()=>r.disconnect()}),[]);const E=(0,r.useCallback)((e=>{e?.preventDefault(),k()}),[k]),I=(0,r.useCallback)((e=>{m(e)}),[m]),L=N.filter((e=>a().isValidElement(e)&&e.type===Dr)).length,R=N.map(((e,r)=>{if(a().isValidElement(e)&&e.type===Dr){const t={toggleMenuCallback:k,prefersReducedMotion:d,updateCurrentActiveNav:I,alignment:L<4?"start":"center"};return a().cloneElement(e,{isActive:0===r,...t})}return null})).filter(Boolean).slice(0,5),z=N.map((e=>a().isValidElement(e)&&e.type===qr?a().cloneElement(e):null)).filter(Boolean);return(0,e.jsxs)("nav",{ref:b,className:_($r.AnchorNav,v&&$r["AnchorNav--stuck"],o&&$r["AnchorNav--expanded"],n&&$r["AnchorNav--with-default-background-color"]),...i,children:[(0,e.jsxs)("div",{className:_($r["AnchorNav-inner-container"],o&&$r["AnchorNav-inner-container--expanded"]),children:[(0,e.jsxs)("button",{ref:w,onClick:E,className:_($r["AnchorNav-menu-button"]),"aria-expanded":o?"true":"false","aria-controls":S,"aria-label":(o?"close":"open")+" anchor navigation menu","data-testid":Wr.menuButton,children:[o?(0,e.jsx)(_e,{size:16,className:$r["AnchorNav-menu-button-arrow"],fill:"currentcolor"}):(0,e.jsx)(ne,{size:16,className:$r["AnchorNav-menu-button-arrow"],fill:"currentcolor"}),(0,e.jsx)(f,{as:"span",className:_($r["AnchorNav-link-label"]),children:c})]}),(0,e.jsx)("div",{id:S,"data-testid":Wr.menuLinks,className:$r["AnchorNav-link-container"],ref:B,children:R}),z]}),(0,e.jsx)("span",{className:_(o&&$r["AnchorNav-overlay--expanded"]),onClick:P,"aria-hidden":!0})]})}),{Link:Dr,Action:qr,testIds:Wr}),Ur=(0,r.forwardRef)((({align:r="start",hasBorder:a=!1,hasShadow:t=!0,hasBackground:n=!0,className:i,children:o,...l},d)=>(0,e.jsx)("section",{ref:d,className:_("Primer_Brand__CTABanner-module__CTABanner___m0t8s",t&&"Primer_Brand__CTABanner-module__CTABanner--shadow___BA030",i),...l,children:(0,e.jsx)("div",{className:_("Primer_Brand__CTABanner-module__CTABanner-container___iRzd1",a&&"Primer_Brand__CTABanner-module__CTABanner-container--border___FbAer",n&&"Primer_Brand__CTABanner-module__CTABanner-container--background___v1yTH"),children:(0,e.jsx)("div",{className:_("Primer_Brand__CTABanner-module__CTABanner-content___sZo6_","center"===r&&"Primer_Brand__CTABanner-module__CTABanner-content--center___S0ChQ"),children:o})})}))),Gr=A[2],Kr=(0,r.forwardRef)((({as:r=Gr,size:a="2",className:t,children:n,...i},_)=>(0,e.jsx)(I,{ref:_,className:t,size:a,as:r,...i,children:n}))),Jr=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(f,{ref:n,className:_("Primer_Brand__CTABanner-module__CTABanner-description___I7md6",r),size:"400",as:"p",...t,children:a}))),Xr=(0,r.forwardRef)((({className:r,buttonSize:a="large",buttonsAs:t,children:n,...i},_)=>(0,e.jsx)(D,{buttonSize:a,buttonsAs:t,className:r,ref:_,...i,children:n}))),Zr=Object.assign(Ur,{Heading:Kr,Description:Jr,ButtonGroup:Xr}),Yr=(0,r.createContext)({variant:"default"}),ea={ListItem:"Primer_Brand__ListItem-module__ListItem___aFf5u","ListItem__leading-visual":"Primer_Brand__ListItem-module__ListItem__leading-visual___Fu5ba",OrderedList__item:"Primer_Brand__ListItem-module__OrderedList__item___BJsQo"},ra=Object.assign((function({className:a,children:t,...n}){const{variant:i}=(0,r.useContext)(Yr);return(0,e.jsxs)("li",{className:_(ea.ListItem,!i&&ea.OrderedList__item,a),...n,children:[(()=>{switch(i){case"checked":return(0,e.jsx)(ae,{className:_(ea["ListItem__leading-visual"],ea.ListItem__checked)});case"default":return(0,e.jsx)(oe,{className:_(ea["ListItem__leading-visual"],ea.ListItem__default)});default:return null}})(),t]})})),aa="Primer_Brand__list-shared-module__List___dFefs",ta=Object.assign((function({variant:r="default",children:a,...t}){return(0,e.jsx)("ul",{className:_(aa,t.className),...t,children:(0,e.jsx)(Yr.Provider,{value:{variant:r},children:a})})}),{Item:ra}),na=Object.assign((function({children:r,...a}){return(0,e.jsx)("ol",{className:_(aa,"Primer_Brand__OrderedList-module__OrderedList___eCBYV",a.className),...a,children:(0,e.jsx)(Yr.Provider,{value:{variant:""},children:r})})}),{Item:ra}),ia=(0,r.forwardRef)((({className:r,...a},t)=>(0,e.jsx)("form",{ref:t,className:_("Primer_Brand__CTAForm-module__CTAForm___oOV3J",r),...a}))),_a=(0,r.forwardRef)((({className:r,children:t,...n},i)=>{const o=a().Children.toArray(t).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===hr?a().cloneElement(e,{fullWidth:!0,size:"large",required:!0,...e.props}):e));return(0,e.jsx)("div",{ref:i,className:_("Primer_Brand__CTAForm-module__CTAForm-input___sR5r3",r),...n,children:o})})),oa=(0,r.forwardRef)((({className:r,children:t,...n},i)=>{const o=a().Children.toArray(t).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===hr?a().cloneElement(e,{fullWidth:!0,size:"large",...e.props}):e));return(0,e.jsx)("div",{ref:i,className:_("Primer_Brand__CTAForm-module__CTAForm-confirm___yTThl",r),...n,children:o})})),la=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(P,{type:"submit",variant:"secondary",className:_("Primer_Brand__CTAForm-module__CTAForm-button___dWqAC",r),ref:n,...t,children:a}))),da=Object.assign(ia,{Input:_a,Confirm:oa,Action:la}),sa="Primer_Brand__MinimalFooter-module__Footer__container___UqVWS",ca=["twitter","github","linkedin","youtube","facebook","twitch","tiktok"];function ma({children:r,className:t}){const n=a().Children.map(r,(e=>a().isValidElement(e)?e.type&&e.type===f?a().cloneElement(e,{as:"p",variant:"muted",size:200,className:_("Primer_Brand__MinimalFooter-module__Footer__terms-item___Z1f1_",e.props.className),...e.props}):void 0:e));return(0,e.jsx)("section",{className:sa,children:(0,e.jsx)("div",{className:_("Primer_Brand__MinimalFooter-module__Footer__terms___ACl36",t),children:n})})}function ua({socialLinks:r,logoHref:a}){const{colorMode:t}=W();return(0,e.jsx)("section",{className:_("Primer_Brand__MinimalFooter-module__Footer__logomarks___Weh9I"),children:(0,e.jsx)("div",{className:sa,children:(0,e.jsxs)(Br,{alignItems:"center",direction:{narrow:"vertical",regular:"horizontal"},gap:"normal",padding:"none",justifyContent:"space-between",children:[(0,e.jsx)("div",{children:(0,e.jsx)("a",{href:a,"data-analytics-event":'{"category":"Footer","action":"go to home","label":"text:home"}',"aria-label":"Go to GitHub homepage",children:(0,e.jsx)(le,{fill:t===R.DARK?"white":"black",size:"medium"})})}),!1!==r?(0,e.jsx)("ul",{className:"Primer_Brand__MinimalFooter-module__Footer__social-links___hRWfd",children:[{name:"twitter",fullName:"Twitter",url:"https://twitter.com/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/twitter.svg",iconWidth:22,iconHeight:18},{name:"github",fullName:"GitHub",url:"https://github.com/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/github-mark.svg",iconWidth:20,iconHeight:20},{name:"linkedin",fullName:"LinkedIn",url:"https://www.linkedin.com/company/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/linkedin.svg",iconWidth:19,iconHeight:18},{name:"youtube",fullName:"YouTube",url:"https://www.youtube.com/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/youtube.svg",iconWidth:23,iconHeight:16},{name:"facebook",fullName:"Facebook",url:"https://www.facebook.com/GitHub",icon:"https://github.githubassets.com/images/modules/site/icons/footer/facebook.svg",iconWidth:18,iconHeight:18},{name:"twitch",fullName:"Twitch",url:"https://www.twitch.tv/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/twitch.svg",iconWidth:18,iconHeight:18},{name:"tiktok",fullName:"TikTok",url:"https://www.tiktok.com/@github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/tiktok.svg",iconWidth:18,iconHeight:18}].map((a=>r&&!r.includes(a.name)?null:(r=>(0,e.jsx)("li",{children:(0,e.jsxs)("a",{href:r.url,"data-analytics-event":`{"category":"Footer","action":"go to ${r.fullName}","label":"text:${r.name}"}`,children:[(0,e.jsx)("img",{className:"Primer_Brand__MinimalFooter-module__Footer__social-icon___SxNsP",src:r.icon,height:r.iconHeight,width:r.iconWidth,loading:"lazy",decoding:"async",alt:""}),(0,e.jsxs)("span",{className:"visually-hidden",children:["GitHub on ",r.fullName]})]})},r.name))(a)))}):(0,e.jsx)(e.Fragment,{})]})})})}function ha({href:r,children:a}){return(0,e.jsx)("a",{href:r,className:"Primer_Brand__MinimalFooter-module__Footer__link___K13BH","data-analytics-event":`{"category":"Footer","action":"go to ${r}","label":"text:${a}"}`,children:(0,e.jsx)(f,{variant:"muted",size:"300",children:a})})}const ga=Object.assign((function({className:r,children:t,copyrightStatement:n,logoHref:i="https://github.com",socialLinks:o,...l}){const d=a().Children.toArray(t).filter((e=>{if(a().isValidElement(e)&&e.type===ha)return e})).slice(0,5),s=(new Date).getFullYear();return(0,e.jsxs)("footer",{className:_("Primer_Brand__MinimalFooter-module__Footer___oqJdA",r),...l,children:[a().Children.toArray(t).find((e=>!!a().isValidElement(e)&&(!(!e.type||e.type!==ma)||void 0))),(0,e.jsx)(ua,{socialLinks:o,logoHref:i}),(0,e.jsx)("section",{children:(0,e.jsx)("div",{className:"Primer_Brand__MinimalFooter-module__Footer__legal-and-links___gaF8g",children:(0,e.jsx)("div",{className:sa,children:(0,e.jsxs)(Br,{direction:{narrow:"vertical",regular:"horizontal"},gap:"normal",padding:"none",justifyContent:"space-between",children:[(0,e.jsx)(Br,{padding:"none",gap:"condensed",justifyContent:{narrow:"center",regular:"flex-end"},direction:{narrow:"vertical",regular:"horizontal"},className:"Primer_Brand__MinimalFooter-module__Footer__links___sXNki",children:(0,e.jsx)(e.Fragment,{children:d})}),(0,e.jsx)(f,{as:"p",size:"300",variant:"muted",className:"Primer_Brand__MinimalFooter-module__Footer__copyright___c9JB5",children:n||`© ${s} GitHub. All rights reserved.`})]})})})})]})}),{Footnotes:ma,Link:ha}),pa=(0,r.forwardRef)((({onMouseEnter:t,onMouseLeave:n,onFocus:i,onBlur:o,children:d,className:s,ctaText:c="Learn more",href:m,...u},h)=>{const[g,p]=a().useState(!1),[v,x]=a().useState(!1),b=(0,r.useCallback)((e=>{p(!g),t?.(e)}),[t,g]),w=(0,r.useCallback)((e=>{p(!g),n?.(e)}),[n,g]),B=(0,r.useCallback)((e=>{x(!v),i?.(e)}),[i,v]),T=(0,r.useCallback)((e=>{x(!v),o?.(e)}),[o,v]),S=a().Children.toArray(d).filter((e=>!(!a().isValidElement(e)||"string"==typeof e.type||!(0,Re.isFragment)(e)&&e.type!==fa&&e.type!==va&&e.type!==xa)));return(0,e.jsxs)("a",{href:m,className:_("Primer_Brand__Card-module__Card___ByGEk",s),onMouseEnter:b,onMouseLeave:w,onFocus:B,onBlur:T,ref:h,...u,children:[S,(0,e.jsxs)("div",{className:"Primer_Brand__Card-module__Card__action___C6sRY",children:[(0,e.jsx)(f,{as:"span",size:"300",className:_(je["Link--label"]),children:c}),(0,e.jsx)(l,{className:je["Link-arrow"],expanded:g||v})]})]})})),fa=(0,r.forwardRef)((({children:r,className:a,...t},n)=>(0,e.jsx)("span",{className:_("Primer_Brand__Card-module__Card__label___EAot7",a),ref:n,...t,children:(0,e.jsx)(f,{as:"span",size:"200",className:"Primer_Brand__Card-module__Card__label--text___xDz7u",children:r})}))),va=(0,r.forwardRef)((({children:r,as:a=A[2],className:t,...n},i)=>(0,e.jsx)(I,{size:"6",className:_("Primer_Brand__Card-module__Card__heading___INFhp",t),ref:i,as:a,...n,children:r}))),xa=(0,r.forwardRef)((({children:r,className:a,...t},n)=>(0,e.jsx)(f,{variant:"muted",ref:n,size:"300",as:"p",className:_("Primer_Brand__Card-module__Card__description___KN9CH",a),...t,children:r}))),ba=Object.assign(pa,{Label:fa,Heading:va,Description:xa}),wa={SectionIntro:"Primer_Brand__SectionIntro-module__SectionIntro___RduRB","SectionIntro--align-start":"Primer_Brand__SectionIntro-module__SectionIntro--align-start___C59mu","SectionIntro--align-center":"Primer_Brand__SectionIntro-module__SectionIntro--align-center___qU_a9","SectionIntro-heading":"Primer_Brand__SectionIntro-module__SectionIntro-heading___u6_Wl","SectionIntro-description":"Primer_Brand__SectionIntro-module__SectionIntro-description___Sz93l","SectionIntro-link":"Primer_Brand__SectionIntro-module__SectionIntro-link___dePuF"},Ba=(0,r.forwardRef)((({align:r="start",className:a,children:t,...n},i)=>(0,e.jsx)("header",{ref:i,className:_(wa.SectionIntro,wa[`SectionIntro--align-${r}`],a),...n,children:t}))),Ta=A[1],Sa=(0,r.forwardRef)((({as:r=Ta,size:a="2",className:t,children:n,...i},o)=>(0,e.jsx)(I,{ref:o,className:_(wa["SectionIntro-heading"],t),size:a,as:r,...i,children:n}))),Pa=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(f,{ref:n,className:_(wa["SectionIntro-description"],r),size:"400",as:"p",...t,children:a}))),ka=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(Ce,{ref:n,className:_(wa["SectionIntro-link"],r),size:"large",...t,children:a}))),Na=Object.assign(Ba,{Heading:Sa,Description:Pa,Link:ka}),Aa={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},ya={start:["end","center"],end:["start","center"],center:["end","start"]};const ja="outside-bottom",Ca="start",Ha=4,Ea=4,Ia=!1;function La(e,r,a,t,n,i){const _=r.left+r.width,o=r.top+r.height;let l=-1,d=-1;return"outside-top"===a?l=r.top-n-e.height:"outside-bottom"===a?l=o+n:"outside-left"===a?d=r.left-n-e.width:"outside-right"===a&&(d=_+n),"outside-top"!==a&&"outside-bottom"!==a||(d="start"===t?r.left+i:"center"===t?r.left-(e.width-r.width)/2+i:_-e.width-i),"outside-left"!==a&&"outside-right"!==a||(l="start"===t?r.top+i:"center"===t?r.top-(e.height-r.height)/2+i:o-e.height-i),"inside-top"===a?l=r.top+n:"inside-bottom"===a?l=o-n-e.height:"inside-left"===a?d=r.left+n:"inside-right"===a?d=_-n-e.width:"inside-center"===a&&(d=(_+r.left)/2-e.width/2+n),"inside-top"===a||"inside-bottom"===a?d="start"===t?r.left+i:"center"===t?r.left-(e.width-r.width)/2+i:_-e.width-i:"inside-left"!==a&&"inside-right"!==a&&"inside-center"!==a||(l="start"===t?r.top+i:"center"===t?r.top-(e.height-r.height)/2+i:o-e.height-i),{top:l,left:d}}function Ra(e,r,a,t){return"outside-top"===e||"outside-bottom"===e?r.top<a.top||r.top+t.height>a.height+a.top:r.left<a.left||r.left+t.width>a.width+a.left}function za(e,r,a,t){return"end"===e?r.left<a.left:"start"===e||"center"===e?r.left+t.width>a.left+a.width||r.left<a.left:void 0}function Fa(e,a=[]){const t=e?.floatingElementRef,n=e?.anchorElementRef,[i,_]=(0,r.useState)(void 0),o=(0,r.useCallback)((()=>{t.current instanceof Element&&n.current instanceof Element?_(function(e,r,a={}){const t=function(e){let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),n=function(e){let r=e;for(;null!==r&&r!==document.body&&"visible"===getComputedStyle(r).overflow;)r=r.parentNode;const a=r!==document.body&&r instanceof HTMLElement?r:document.body,t=a.getBoundingClientRect(),n=getComputedStyle(a),[i,_,o,l]=[n.borderTopWidth,n.borderLeftWidth,n.borderRightWidth,n.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:t.top+i,left:t.left+_,width:t.width-o-_,height:Math.max(t.height-i-l,a===document.body?window.innerHeight:-1/0)}}(t),i=getComputedStyle(t),_=t.getBoundingClientRect(),[o,l]=[i.borderTopWidth,i.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,a,t,{side:n,align:i,allowOutOfBounds:_,anchorOffset:o,alignmentOffset:l}){const d={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let s=La(a,t,n,i,o,l),c=n,m=i;if(s.top-=r.top,s.left-=r.left,!_){const _=Aa[n];let u=0;if(_){let e=n;for(;u<_.length&&Ra(e,s,d,a);){const n=_[u++];e=n,s=La(a,t,n,i,o,l),s.top-=r.top,s.left-=r.left,c=n}}const h=ya[i];let g=0;if(h){let e=i;for(;g<h.length&&za(e,s,d,a);){const n=h[g++];e=n,s=La(a,t,c,n,o,l),s.top-=r.top,s.left-=r.left,m=n}}s.top<d.top&&(s.top=d.top),s.left<d.left&&(s.left=d.left),s.left+a.width>e.width+d.left&&(s.left=e.width+d.left-a.width),_&&u<_.length&&s.top+a.height>e.height+d.top&&(s.top=e.height+d.top-a.height)}return Object.assign(Object.assign({},s),{anchorSide:c,anchorAlign:m})}(n,{top:_.top+o,left:_.left+l},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,a,t,n,i;const _=null!==(r=e.side)&&void 0!==r?r:ja,o=null!==(a=e.align)&&void 0!==a?a:Ca;return{side:_,align:o,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===_?0:Ha,alignmentOffset:null!==(n=e.alignmentOffset)&&void 0!==n?n:"center"!==o&&_.startsWith("inside")?Ea:0,allowOutOfBounds:null!==(i=e.allowOutOfBounds)&&void 0!==i?i:Ia}}(a))}(t.current,n.current,e)):_(void 0)}),[t,n,...a]);return(0,r.useEffect)(o,[o]),function(e,a){const t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e})),(0,r.useEffect)((()=>{const e=document.documentElement;if(!e)return;const r=new ResizeObserver((e=>{t.current(e)}));return r.observe(e),()=>{r.disconnect()}}),[a])}(o),{floatingElementRef:t,anchorElementRef:n,position:i}}let Ma,Oa=!1;function Va(){}try{const e=Object.create({},{signal:{get(){Oa=!0}}});window.addEventListener("test",Va,e),window.removeEventListener("test",Va,e)}catch(e){}function $a(){return void 0===Ma&&(Ma=/^mac/i.test(window.navigator.platform)),Ma}function*Wa(e,r={}){var a,t;const n=null!==(a=r.strict)&&void 0!==a&&a,i=null!==(t=r.onlyTabbable)&&void 0!==t&&t?qa:Da,_=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&i(e,n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let o=null;if(!r.reverse&&i(e,n)&&(yield e),r.reverse){let e=_.lastChild();for(;e;)o=e,e=_.lastChild()}else o=_.firstChild();for(;o instanceof HTMLElement;)yield o,o=r.reverse?_.previousNode():_.nextNode();r.reverse&&i(e,n)&&(yield e)}function Da(e,r=!1){const a=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,t=e.hidden,n=e instanceof HTMLInputElement&&"hidden"===e.type,i=e.classList.contains("sentinel");if(a||t||n||i)return!1;if(r){const r=0===e.offsetWidth||0===e.offsetHeight,a=["hidden","collapse"].includes(getComputedStyle(e).visibility),t=0===e.getClientRects().length;if(r||a||t)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function qa(e,r=!1){return Da(e,r)&&"-1"!==e.getAttribute("tabindex")}let Qa=1e4;var Ua;Oa||(function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,a,t){return"object"==typeof t&&"signal"in t&&t.signal instanceof AbortSignal&&e.call(t.signal,"abort",(()=>{this.removeEventListener(r,a,t)})),e.call(this,r,a,t)}}(),Oa=!0),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(Ua||(Ua={}));const Ga={ArrowLeft:Ua.ArrowHorizontal,ArrowDown:Ua.ArrowVertical,ArrowUp:Ua.ArrowVertical,ArrowRight:Ua.ArrowHorizontal,h:Ua.HL,j:Ua.JK,k:Ua.JK,l:Ua.HL,a:Ua.AD,s:Ua.WS,w:Ua.WS,d:Ua.AD,Tab:Ua.Tab,Home:Ua.HomeAndEnd,End:Ua.HomeAndEnd,PageUp:Ua.PageUpDown,PageDown:Ua.PageUpDown,Backspace:Ua.Backspace},Ka={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function Ja(e){const r=Ka[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const a=$a();if(a&&e.metaKey||!a&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}const Xa="data-is-active-descendant",Za="data-has-active-descendant";const Ya={ActionMenu:"Primer_Brand__ActionMenu-module__ActionMenu___xAoB5","ActionMenu--disabled":"Primer_Brand__ActionMenu-module__ActionMenu--disabled___Ic5nl",ActionMenu__button:"Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG","focus-visible":"Primer_Brand__ActionMenu-module__focus-visible___hVXW3",ActionMenu__menu:"Primer_Brand__ActionMenu-module__ActionMenu__menu____B9HP","ActionMenu__menu--visible":"Primer_Brand__ActionMenu-module__ActionMenu__menu--visible___dIcw5","overlay-appear":"Primer_Brand__ActionMenu-module__overlay-appear___hIYSP",ActionMenu__item:"Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr","ActionMenu__item--selection-type-single":"Primer_Brand__ActionMenu-module__ActionMenu__item--selection-type-single___ZdivU","ActionMenu__button--active":"Primer_Brand__ActionMenu-module__ActionMenu__button--active___HOEZK","ActionMenu__item-leadingVisual":"Primer_Brand__ActionMenu-module__ActionMenu__item-leadingVisual___UWjE1","ActionMenu__item-text":"Primer_Brand__ActionMenu-module__ActionMenu__item-text___K_1vl","ActionMenu__item-icon":"Primer_Brand__ActionMenu-module__ActionMenu__item-icon___JyMwz","ActionMenu__item-content--disabled":"Primer_Brand__ActionMenu-module__ActionMenu__item-content--disabled___WrxPY","ActionMenu__item-icon--disabled":"Primer_Brand__ActionMenu-module__ActionMenu__item-icon--disabled___Ebefz"},et={root:"ActionMenu",get button(){return`${this.root}-button`},get overlay(){return`${this.root}-overlay`},get list(){return`${this.root}-list`},get item(){return`${this.root}-list-item`}},rt=(0,r.memo)((({id:a,children:t,"data-testid":n,disabled:i,open:o=!1,selectionVariant:l="none",menuAlignment:d="start",onSelect:s})=>{const[c,m]=(0,r.useState)(o),u=(0,r.useRef)(null),h=(0,r.useRef)(null),g=Ue(a);me(u,(()=>m(!1)),h),xe((0,r.useCallback)((()=>{m(!1)}),[]));const p=(0,r.useCallback)((()=>{m(!c)}),[c]),f=(0,r.useCallback)((e=>{s&&s(e),p()}),[s,p]),v=(0,r.useCallback)((e=>{e&&(f(e),p(),h.current?.focus())}),[f,p,h]);(0,r.useEffect)((()=>{if(c&&u.current){const e=u.current;(function(e,r){var a,t,n,i,_;const o=[],l=new WeakMap,d=null!==(a=null==r?void 0:r.bindKeys)&&void 0!==a?a:((null==r?void 0:r.getNextFocusable)?Ua.ArrowAll:Ua.ArrowVertical)|Ua.HomeAndEnd,s=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",c=null!==(n=null==r?void 0:r.focusInStrategy)&&void 0!==n?n:"previous",m=null==r?void 0:r.activeDescendantControl,u=null==r?void 0:r.onActiveDescendantChanged;let h;const g=null!==(i=null==r?void 0:r.preventScroll)&&void 0!==i&&i;function p(){return o[0]}function f(e,r=!1){const a=h;h=e,m?e&&document.activeElement===m?v(a,e,r):x():(a&&a!==e&&l.has(a)&&a.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function v(r,a,t=!1){a.id||a.setAttribute("id","__primer_id_"+Qa++),r&&r!==a&&r.removeAttribute(Xa),m&&(t||m.getAttribute("aria-activedescendant")!==a.id)&&(m.setAttribute("aria-activedescendant",a.id),e.setAttribute(Za,a.id),a.setAttribute(Xa,t?"activated-directly":"activated-indirectly"),null==u||u(a,r,t))}function x(r=h){"first"===c&&(h=void 0),null==m||m.removeAttribute("aria-activedescendant"),e.removeAttribute(Za),null==r||r.removeAttribute(Xa),null==u||u(void 0,r,!1)}function b(...e){const a=e.filter((e=>{var a,t;return null===(t=null===(a=null==r?void 0:r.focusableElementFilter)||void 0===a?void 0:a.call(r,e))||void 0===t||t}));if(0!==a.length){o.splice(function(e){const r=e[0];if(0===o.length)return 0;let a=0,t=o.length-1;for(;a<=t;){const e=Math.floor((a+t)/2);n=r,(o[e].compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)>0?t=e-1:a=e+1}var n;return a}(a),0,...a);for(const e of a)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");h||f(p())}}function w(...e){for(const r of e){const e=o.indexOf(r);e>=0&&o.splice(e,1);const a=l.get(r);void 0!==a&&(null===a?r.removeAttribute("tabindex"):r.setAttribute("tabindex",a),l.delete(r)),r===h&&f(p())}}b(...Wa(e)),f("function"==typeof c?c(document.body):p()),new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...Wa(e));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&b(...Wa(e))})).observe(e,{subtree:!0,childList:!0});const B=new AbortController,T=null!==(_=null==r?void 0:r.abortSignal)&&void 0!==_?_:B.signal;let S;T.addEventListener("abort",(()=>{w(...o)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(S=o.indexOf(e.target))}),{signal:T}),m?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&o.includes(e.target)&&(m.focus({preventScroll:g}),f(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=o.find((r=>r.contains(e)));r&&f(r)}),{signal:T,capture:!0}),m.addEventListener("focusin",(()=>{h?v(void 0,h):f(p())})),m.addEventListener("focusout",(()=>{x()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==S)S>=0&&o[S]!==h&&f(o[S]),S=void 0;else if("previous"===c)f(r.target);else if("closest"===c||"first"===c){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===k?o.length-1:0,r=o[e];return void(null==r||r.focus({preventScroll:g}))}f(r.target)}else if("function"==typeof c)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=c(r.relatedTarget);if((e?o.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:g});console.warn("Element requested is not a known focusable element.")}else f(r.target);k=void 0}),{signal:T});const P=null!=m?m:e;let k;"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(k=Ja(e))}),{signal:T,capture:!0}),P.addEventListener("keydown",(a=>{var t;if(a.key in Ka){const n=Ga[a.key];if(!a.defaultPrevented&&(n&d)>0&&!function(e,r){const a=e.key,t=[...a].length,n=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(n&&(1===t||"Home"===a||"End"===a))return!0;if(r instanceof HTMLSelectElement){if(1===t)return!0;if("ArrowDown"===a&&$a()&&!e.metaKey)return!0;if("ArrowDown"===a&&!$a()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===a||"PageDown"===a))return!0;if(n){const e=r,t=0===e.selectionStart&&0===e.selectionEnd,n=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===a&&!t)return!0;if("ArrowRight"===a&&!n)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===a&&!t)return!0;if("ArrowDown"===a&&!n)return!0}}return!1}(a,document.activeElement)){const n=Ja(a);let i;if((null==r?void 0:r.getNextFocusable)&&(i=r.getNextFocusable(n,null!==(t=document.activeElement)&&void 0!==t?t:void 0,a)),!i){const r=function(){if(!h)return 0;const r=o.indexOf(h);return-1!==r?r:h===e?-1:0}();let t=r;"previous"===n?t-=1:"start"===n?t=0:"next"===n?t+=1:t=o.length-1,t<0&&(t="wrap"===s&&"Tab"!==a.key?o.length-1:0),t>=o.length&&(t="wrap"===s&&"Tab"!==a.key?0:o.length-1),r!==t&&(i=o[t])}m?f(i||h,!0):i&&(k=n,i.focus({preventScroll:g})),("Tab"!==a.key||i)&&a.preventDefault()}}}),{signal:T})})(u.current,{bindKeys:Ua.ArrowVertical}),e.addEventListener("keydown",(e=>{if("Enter"===e.key){const r=e.target;if("true"===r.getAttribute("aria-disabled"))return;const a=r.getAttribute("data-value");a&&(f(a),m(!1),setTimeout((()=>{h.current?.focus()}),10))}}));const r=u.current.querySelector("li");r&&setTimeout((()=>{r.focus()}),10);const a=e.querySelectorAll("li")[e.querySelectorAll("li").length-1];a.addEventListener("keydown",(e=>{"ArrowDown"===e.key&&(e.preventDefault(),r?.focus())})),r?.addEventListener("keydown",(e=>{"ArrowUp"===e.key&&(e.preventDefault(),a.focus())})),e.addEventListener("keydown",(e=>{"Escape"===e.key&&h.current?.focus()}))}}),[c,u,v,p,f]);const{position:x}=Fa({floatingElementRef:u,anchorElementRef:h,side:"outside-bottom",align:d,allowOutOfBounds:!0},[c]),{Button:b,Overlay:w}=r.Children.toArray(t).reduce(((e,a)=>((0,r.isValidElement)(a)&&(a.type===at?e.Button=(0,r.cloneElement)(a,{onClick:p,ref:h,className:_(a.props.className,c&&Ya["ActionMenu__button--active"]),menuOpen:c,disabled:i,id:`${g}-button`}):a.type===nt&&(e.Overlay=(0,r.cloneElement)(a,{ref:u,className:_(Ya.ActionMenu__menu,x&&Ya["ActionMenu__menu--visible"]),style:{top:`${x?.top??0}px`,left:`${x?.left??0}px`},id:`${g}-menu`,children:r.Children.map(a.props.children,(e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{handler:v,type:l}):e))}))),e)),{});return(0,e.jsxs)("div",{id:g,className:_(Ya.ActionMenu,i&&Ya["ActionMenu--disabled"]),"data-testid":n||et.root,children:[b,c?w:null]})})),at=(0,r.forwardRef)((({children:r,className:a,"data-testid":t,disabled:n,menuOpen:i,...o},l)=>(0,e.jsx)(P,{ref:l,className:_(Ya.ActionMenu__button,a),hasArrow:!1,"aria-haspopup":"true","aria-expanded":i?"true":"false",trailingVisual:ne,disabled:n,"data-testid":t||et.button,...o,children:(0,e.jsx)("span",{className:Ya["ActionMenu__button-text"],children:r})}))),tt={none:"menuitem",single:"menuitemradio"},nt=(0,r.forwardRef)((({children:r,className:a,"data-testid":t,menuOpen:n,...i},o)=>(0,e.jsx)("ul",{ref:o,className:_(a),role:"menu","data-testid":t||et.list,...i,children:r}))),it=Object.assign(rt,{Button:at,Item:({children:r,className:a,disabled:t,handler:n,selected:i,type:o,value:l,...d})=>(0,e.jsxs)("li",{className:_(Ya.ActionMenu__item,"single"===o&&Ya[`ActionMenu__item--selection-type-${o}`],a),role:tt[o||"single"],"aria-checked":"none"===o?void 0:i?"true":"false","aria-disabled":t?"true":"false",onClick:n&&!t?()=>n(l):void 0,tabIndex:0,"data-value":l,...d,children:["none"!==o&&(0,e.jsx)("span",{className:Ya["ActionMenu__item-leadingVisual"],children:i&&(0,e.jsx)(ae,{className:_(Ya["ActionMenu__item-icon"],t&&Ya["ActionMenu__item-icon--disabled"]),size:16})}),(0,e.jsx)("span",{className:Ya["ActionMenu__item-text"],children:(0,e.jsx)(f,{variant:t?"muted":"default",size:"300",className:_(t&&Ya["ActionMenu__item-content--disabled"]),children:r})})]}),Overlay:nt,testIds:et})})(),n})()));
|
|
2
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define("@primer/react-brand",[],r):"object"==typeof exports?exports["@primer/react-brand"]=r(require("react")):e["@primer/react-brand"]=r(e.React)}(this,(e=>(()=>{"use strict";var r={320:e=>{var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},a=0;a<10;a++)r["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var _,o,l=n(e),d=1;d<arguments.length;d++){for(var s in _=Object(arguments[d]))a.call(_,s)&&(l[s]=_[s]);if(r){o=r(_);for(var c=0;c<o.length;c++)t.call(_,o[c])&&(l[o[c]]=_[o[c]])}}return l}},866:(e,r)=>{var a=60103,t=60106,n=60107,i=60108,_=60114,o=60109,l=60110,d=60112,s=60113,c=60120,m=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;a=h("react.element"),t=h("react.portal"),n=h("react.fragment"),i=h("react.strict_mode"),_=h("react.profiler"),o=h("react.provider"),l=h("react.context"),d=h("react.forward_ref"),s=h("react.suspense"),c=h("react.suspense_list"),m=h("react.memo"),u=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}r.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case a:switch(e=e.type){case n:case _:case i:case s:case c:return e;default:switch(e=e&&e.$$typeof){case l:case d:case u:case m:case o:return e;default:return r}}case t:return r}}}(e)===n}},570:(e,r,a)=>{e.exports=a(866)},837:(e,r,a)=>{a(320);var t=a(697),n=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),r.Fragment=i("react.fragment")}var _=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,r,a){var t,i={},d=null,s=null;for(t in void 0!==a&&(d=""+a),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(s=r.ref),r)o.call(r,t)&&!l.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:e,key:d,ref:s,props:i,_owner:_.current}}r.jsx=d,r.jsxs=d},322:(e,r,a)=>{e.exports=a(837)},697:r=>{r.exports=e}},a={};function t(e){var n=a[e];if(void 0!==n)return n.exports;var i=a[e]={exports:{}};return r[e](i,i.exports,t),i.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{t.r(n),t.d(n,{Accordion:()=>Le,AccordionContent:()=>Ie,AccordionHeading:()=>Ee,AccordionRoot:()=>He,ActionMenu:()=>it,AnchorNav:()=>Qr,Avatar:()=>Ar,AvatarShapes:()=>Pr,AvatarSizes:()=>Sr,Button:()=>P,ButtonGroup:()=>D,ButtonSizes:()=>b,ButtonVariants:()=>x,CTABanner:()=>Zr,CTAForm:()=>da,Card:()=>ba,Checkbox:()=>Je,ColorModesEnum:()=>R,ComparisonTable:()=>Vr,DEFAULT_TEXTAREA_COLS:()=>Ye,DEFAULT_TEXTAREA_RESIZE:()=>er,DEFAULT_TEXTAREA_ROWS:()=>Ze,FAQ:()=>Ve,FormControl:()=>hr,Heading:()=>I,HeadingLetterSpacing:()=>C,HeadingSizes:()=>N,HeadingStretch:()=>j,HeadingTags:()=>A,HeadingWeights:()=>y,Hero:()=>L,InlineLink:()=>ye,Link:()=>Ce,MinimalFooter:()=>ga,MinimalFooterSocialLinks:()=>ca,OrderedList:()=>na,Radio:()=>dr,River:()=>Z,SectionIntro:()=>Na,Select:()=>lr,Stack:()=>Br,StackAlignItemVariants:()=>br,StackDirectionVariants:()=>pr,StackJustifyContentVariants:()=>wr,StackSpacingVariants:()=>vr,SubdomainNavBar:()=>Ae,Testimonial:()=>Lr,Text:()=>f,TextInput:()=>nr,TextSizes:()=>s,TextTags:()=>c,TextVariants:()=>m,TextWeights:()=>u,Textarea:()=>ar,ThemeContext:()=>F,ThemeProvider:()=>M,UnorderedList:()=>ta,_Button:()=>S,_ComparisonTable:()=>zr,classMap:()=>E,defaultButtonSize:()=>B,defaultButtonVariant:()=>w,defaultHeadingTag:()=>H,defaultRiverAlign:()=>U,defaultRiverImageTextRatio:()=>Q,defaultStackDirection:()=>fr,defaultStackSpacing:()=>xr,defaultTextSize:()=>g,defaultTextTag:()=>h,defaultTextVariant:()=>p,getHeadingWarning:()=>K,useTheme:()=>W});var e=t(322),r=t(697),a=t.n(r);function i(e){var r,a,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(a=i(e[r]))&&(t&&(t+=" "),t+=a);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function _(){for(var e,r,a=0,t="";a<arguments.length;)(e=arguments[a++])&&(r=i(e))&&(t&&(t+=" "),t+=r);return t}const o={Hero:"Primer_Brand__Hero-module__Hero___EM3jf","Hero--align-start":"Primer_Brand__Hero-module__Hero--align-start___m8GEr","Hero--align-center":"Primer_Brand__Hero-module__Hero--align-center___HUXm3","Hero-actions":"Primer_Brand__Hero-module__Hero-actions___oH1NT","Hero-heading":"Primer_Brand__Hero-module__Hero-heading___QuVBH","Hero-description":"Primer_Brand__Hero-module__Hero-description___vG4iA"};function l({className:r,expanded:a=!1,reverse:t=!1,hidden:n,...i}){return(0,e.jsxs)("svg",{className:_("Primer_Brand__ExpandableArrow-module__ExpandableArrow___rkfek",a&&"Primer_Brand__ExpandableArrow-module__ExpandableArrow--expanded___gajDr",t&&"Primer_Brand__ExpandableArrow-module__ExpandableArrow--reversed___LPFUS",r),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":n,focusable:n?"false":void 0,...i,children:[(0,e.jsx)("path",{fill:"currentColor",d:"M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"}),(0,e.jsx)("path",{className:_("Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___g4mdy",a&&"Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem--expanded___KwI_9"),stroke:"currentColor",d:"M1.75 8H11",strokeWidth:"1.5",strokeLinecap:"round"})]})}const d={Text:"Primer_Brand__Text-module__Text___pecHN","Text--default":"Primer_Brand__Text-module__Text--default___DChoE","Text--muted":"Primer_Brand__Text-module__Text--muted___lTaVa","Text--700":"Primer_Brand__Text-module__Text--700___cOggy","Text--600":"Primer_Brand__Text-module__Text--600___ThppA","Text--500":"Primer_Brand__Text-module__Text--500___orDRu","Text--400":"Primer_Brand__Text-module__Text--400___y7m4l","Text--300":"Primer_Brand__Text-module__Text--300___TBQTB","Text--200":"Primer_Brand__Text-module__Text--200___XAIGT","Text--100":"Primer_Brand__Text-module__Text--100___csEom","Text--weight-heavy":"Primer_Brand__Text-module__Text--weight-heavy___ege7O","Text-narrow--weight-heavy":"Primer_Brand__Text-module__Text-narrow--weight-heavy___EZzqD","Text--weight-extrabold":"Primer_Brand__Text-module__Text--weight-extrabold____UVFN","Text-narrow--weight-extrabold":"Primer_Brand__Text-module__Text-narrow--weight-extrabold___ts3be","Text--weight-bold":"Primer_Brand__Text-module__Text--weight-bold___jgFdL","Text-narrow--weight-bold":"Primer_Brand__Text-module__Text-narrow--weight-bold___Flbbf","Text--weight-semibold":"Primer_Brand__Text-module__Text--weight-semibold___Ns19j","Text-narrow--weight-semibold":"Primer_Brand__Text-module__Text-narrow--weight-semibold___jtFFh","Text--weight-medium":"Primer_Brand__Text-module__Text--weight-medium___E0iQL","Text-narrow--weight-medium":"Primer_Brand__Text-module__Text-narrow--weight-medium___tQs9y","Text--weight-normal":"Primer_Brand__Text-module__Text--weight-normal___siVLX","Text-narrow--weight-normal":"Primer_Brand__Text-module__Text-narrow--weight-normal___gb0q4","Text--weight-light":"Primer_Brand__Text-module__Text--weight-light___SpQAz","Text-narrow--weight-light":"Primer_Brand__Text-module__Text-narrow--weight-light___cIyjf","Text-regular--weight-heavy":"Primer_Brand__Text-module__Text-regular--weight-heavy___YumNc","Text-regular--weight-extrabold":"Primer_Brand__Text-module__Text-regular--weight-extrabold___uvNQM","Text-regular--weight-bold":"Primer_Brand__Text-module__Text-regular--weight-bold___E3xyf","Text-regular--weight-semibold":"Primer_Brand__Text-module__Text-regular--weight-semibold___Wwz9g","Text-regular--weight-medium":"Primer_Brand__Text-module__Text-regular--weight-medium___TnD35","Text-regular--weight-normal":"Primer_Brand__Text-module__Text-regular--weight-normal___FEkFF","Text-regular--weight-light":"Primer_Brand__Text-module__Text-regular--weight-light___MalyV","Text-wide--weight-heavy":"Primer_Brand__Text-module__Text-wide--weight-heavy___AXiAN","Text-wide--weight-extrabold":"Primer_Brand__Text-module__Text-wide--weight-extrabold___rggXv","Text-wide--weight-bold":"Primer_Brand__Text-module__Text-wide--weight-bold___CWJA2","Text-wide--weight-semibold":"Primer_Brand__Text-module__Text-wide--weight-semibold___LEBmW","Text-wide--weight-medium":"Primer_Brand__Text-module__Text-wide--weight-medium___QQ0IW","Text-wide--weight-normal":"Primer_Brand__Text-module__Text-wide--weight-normal___KpqrG","Text-wide--weight-light":"Primer_Brand__Text-module__Text-wide--weight-light___iYFr9"},s=["700","600","500","400","300","200","100"],c=["p","span","div","strong","em"],m=["default","muted"],u=["heavy","extrabold","bold","semibold","medium","normal","light"],h=c[1],g=s[3],p=m[0];function f({as:t=h,className:n,children:i,size:o=g,variant:l=p,weight:s,...c}){const m=(0,r.useMemo)((()=>s?"string"==typeof s?d[`Text--weight-${s}`]:Object.keys(s).map((e=>d[`Text-${e}--weight-${s[e]}`])).join(" "):null),[s]),u=_(d.Text,d[`Text--${l}`],d[`Text--${o}`],s&&m,n),f=a().Children.toArray(i).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===ye?a().cloneElement(e,{size:o}):e));return"p"===t?(0,e.jsx)("p",{className:u,...c,children:f}):"em"===t?(0,e.jsx)("em",{className:u,...c,children:f}):"div"===t?(0,e.jsx)("div",{className:u,...c,children:f}):"strong"===t?(0,e.jsx)("strong",{className:u,...c,children:f}):(0,e.jsx)("span",{className:u,...c,children:f})}const v={Button:"Primer_Brand__Button-module__Button___lDruK","Button--disabled":"Primer_Brand__Button-module__Button--disabled___Ba17E",Button__text:"Primer_Brand__Button-module__Button__text___Z3ocU","Button__icon-visual":"Primer_Brand__Button-module__Button__icon-visual___zR2Hi","Button__trailing-visual":"Primer_Brand__Button-module__Button__trailing-visual___zg8jd","Button__trailing-visual--arrow":"Primer_Brand__Button-module__Button__trailing-visual--arrow___XD9in","Button__leading-visual":"Primer_Brand__Button-module__Button__leading-visual___FIPvg","Button--label":"Primer_Brand__Button-module__Button--label___lUBc0","Button-label--disabled":"Primer_Brand__Button-module__Button-label--disabled___ZBpbj","Button__icon-visual--disabled":"Primer_Brand__Button-module__Button__icon-visual--disabled___j7aVy","Button--primary":"Primer_Brand__Button-module__Button--primary___xIC7G","Button-arrow--disabled":"Primer_Brand__Button-module__Button-arrow--disabled____UgPq","Button--secondary":"Primer_Brand__Button-module__Button--secondary___akMC2","Button--subtle":"Primer_Brand__Button-module__Button--subtle___UMmi9","Button--label-primary":"Primer_Brand__Button-module__Button--label-primary___Leisi","Button--label-secondary":"Primer_Brand__Button-module__Button--label-secondary___DRJoJ","Button--size-medium":"Primer_Brand__Button-module__Button--size-medium___EyCyw","Button--size-large":"Primer_Brand__Button-module__Button--size-large___REN1l"},x=["primary","secondary","subtle"],b=["medium","large"],w=x[1],B=b[0],T={root:"Button",get leadingVisual(){return`${this.root}-leading-visual`},get trailingVisual(){return`${this.root}-trailing-visual`},get expandableArrow(){return`${this.root}-expandable-arrow`}},S=(0,r.forwardRef)((({as:t,variant:n=w,size:i=B,hasArrow:o=!0,className:d,children:s,disabled:c,"aria-disabled":m,onMouseEnter:u,onMouseLeave:h,onFocus:g,onBlur:p,leadingVisual:x,trailingVisual:b,...S},P)=>{const[k,N]=a().useState(!1),[A,y]=a().useState(!1),j=t||"button",C=c||"true"===m||"boolean"==typeof m&&!0===m,H=(0,r.useCallback)((e=>a().isValidElement(e)?e:"function"==typeof e?a().createElement(e):void 0),[]),E=H(x),I=H(b),L=(0,r.useCallback)((e=>{C||(N(!0),u?.(e))}),[C,u]),R=(0,r.useCallback)((e=>{C||(N(!1),h?.(e))}),[C,h]),z=(0,r.useCallback)((e=>{C||(y(!0),g?.(e))}),[C,g]),F=(0,r.useCallback)((e=>{C||(y(!1),p?.(e))}),[C,p]);return(0,e.jsxs)(j,{ref:P,className:_(v.Button,v[`Button--${n}`],v[`Button--size-${i}`],C&&v["Button--disabled"],d),onMouseEnter:L,onMouseLeave:R,onFocus:z,onBlur:F,disabled:c,"aria-disabled":m,...S,children:[E&&(0,e.jsx)("span",{className:v["Button__leading-visual"],"data-testid":T.leadingVisual,children:a().cloneElement(E,{className:_(v["Button__icon-visual"],C&&v["Button__icon-visual--disabled"]),"aria-hidden":"true",focusable:"false"})}),(0,e.jsx)("span",{className:v.Button__text,children:(0,e.jsx)(f,{as:"span",size:"medium"===i?"300":"400",className:_(v["Button--label"],v[`Button--label-${n}`],C&&v["Button-label--disabled"]),children:s})}),!b&&o&&(0,e.jsx)("span",{className:_(v["Button__trailing-visual"],v["Button__trailing-visual--arrow"]),children:(0,e.jsx)(l,{hidden:!0,className:_(v["Button-arrow"],C&&v["Button-arrow--disabled"]),expanded:!C&&(k||A),"data-testid":T.expandableArrow})}),I&&(0,e.jsx)("span",{className:_(v["Button__trailing-visual"]),"data-testid":T.trailingVisual,children:a().cloneElement(I,{className:_(v["Button__icon-visual"],C&&v["Button__icon-visual--disabled"]),"aria-hidden":"true",focusable:"false"})})]})})),P=Object.assign(S,{testIds:T}),k={Heading:"Primer_Brand__Heading-module__Heading___IVpmp","Heading--1":"Primer_Brand__Heading-module__Heading--1___Ufc7G","Heading--2":"Primer_Brand__Heading-module__Heading--2___TFg09","Heading--3":"Primer_Brand__Heading-module__Heading--3___wsITu","Heading--4":"Primer_Brand__Heading-module__Heading--4___C9jDG","Heading--5":"Primer_Brand__Heading-module__Heading--5___HgypG","Heading--6":"Primer_Brand__Heading-module__Heading--6___FEQ_V","Heading--weight-heavy":"Primer_Brand__Heading-module__Heading--weight-heavy___ssSay","Heading-narrow--weight-heavy":"Primer_Brand__Heading-module__Heading-narrow--weight-heavy___s43iL","Heading--weight-extrabold":"Primer_Brand__Heading-module__Heading--weight-extrabold___SJAUw","Heading-narrow--weight-extrabold":"Primer_Brand__Heading-module__Heading-narrow--weight-extrabold___vmOAQ","Heading--weight-bold":"Primer_Brand__Heading-module__Heading--weight-bold___Zqsyk","Heading-narrow--weight-bold":"Primer_Brand__Heading-module__Heading-narrow--weight-bold___IXjRC","Heading--weight-semibold":"Primer_Brand__Heading-module__Heading--weight-semibold___NMvbh","Heading-narrow--weight-semibold":"Primer_Brand__Heading-module__Heading-narrow--weight-semibold___bAIHy","Heading--weight-medium":"Primer_Brand__Heading-module__Heading--weight-medium___II172","Heading-narrow--weight-medium":"Primer_Brand__Heading-module__Heading-narrow--weight-medium___q5O6L","Heading--weight-normal":"Primer_Brand__Heading-module__Heading--weight-normal___ZLGhx","Heading-narrow--weight-normal":"Primer_Brand__Heading-module__Heading-narrow--weight-normal___Q0Jkf","Heading--weight-light":"Primer_Brand__Heading-module__Heading--weight-light___aF2Rw","Heading-narrow--weight-light":"Primer_Brand__Heading-module__Heading-narrow--weight-light___mOWUt","Heading-regular--weight-heavy":"Primer_Brand__Heading-module__Heading-regular--weight-heavy___SwJ1c","Heading-regular--weight-extrabold":"Primer_Brand__Heading-module__Heading-regular--weight-extrabold___H5Gyr","Heading-regular--weight-bold":"Primer_Brand__Heading-module__Heading-regular--weight-bold___QMMCW","Heading-regular--weight-semibold":"Primer_Brand__Heading-module__Heading-regular--weight-semibold___h3bHv","Heading-regular--weight-medium":"Primer_Brand__Heading-module__Heading-regular--weight-medium___wC9qR","Heading-regular--weight-normal":"Primer_Brand__Heading-module__Heading-regular--weight-normal___joqMx","Heading-regular--weight-light":"Primer_Brand__Heading-module__Heading-regular--weight-light___CCVVF","Heading-wide--weight-heavy":"Primer_Brand__Heading-module__Heading-wide--weight-heavy___IiVTg","Heading-wide--weight-extrabold":"Primer_Brand__Heading-module__Heading-wide--weight-extrabold___CIRWW","Heading-wide--weight-bold":"Primer_Brand__Heading-module__Heading-wide--weight-bold___wMxlL","Heading-wide--weight-semibold":"Primer_Brand__Heading-module__Heading-wide--weight-semibold___IqaIc","Heading-wide--weight-medium":"Primer_Brand__Heading-module__Heading-wide--weight-medium___Uq302","Heading-wide--weight-normal":"Primer_Brand__Heading-module__Heading-wide--weight-normal___zWzeR","Heading-wide--weight-light":"Primer_Brand__Heading-module__Heading-wide--weight-light___Lh64A","Heading--stretch-condensed":"Primer_Brand__Heading-module__Heading--stretch-condensed____i8A2","Heading-narrow--stretch-condensed":"Primer_Brand__Heading-module__Heading-narrow--stretch-condensed___koHLR","Heading--stretch-normal":"Primer_Brand__Heading-module__Heading--stretch-normal___apWVy","Heading-narrow--stretch-normal":"Primer_Brand__Heading-module__Heading-narrow--stretch-normal___AP9Ba","Heading--stretch-expanded":"Primer_Brand__Heading-module__Heading--stretch-expanded___gzwLQ","Heading-narrow--stretch-expanded":"Primer_Brand__Heading-module__Heading-narrow--stretch-expanded___RHi1z","Heading-regular--stretch-condensed":"Primer_Brand__Heading-module__Heading-regular--stretch-condensed___CHFa4","Heading-regular--stretch-normal":"Primer_Brand__Heading-module__Heading-regular--stretch-normal___IX9Vl","Heading-regular--stretch-expanded":"Primer_Brand__Heading-module__Heading-regular--stretch-expanded___ozx5y","Heading-narrow--weight-expanded":"Primer_Brand__Heading-module__Heading-narrow--weight-expanded___jvotv","Heading-wide--stretch-condensed":"Primer_Brand__Heading-module__Heading-wide--stretch-condensed___d3GoN","Heading-wide--stretch-normal":"Primer_Brand__Heading-module__Heading-wide--stretch-normal___te0lW","Heading-wide--stretch-expanded":"Primer_Brand__Heading-module__Heading-wide--stretch-expanded___TlWrW","Heading--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading--letter-spacing-condensed___b6mZa","Heading-narrow--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading-narrow--letter-spacing-condensed___U6uGD","Heading--letter-spacing-normal":"Primer_Brand__Heading-module__Heading--letter-spacing-normal___Qhzoc","Heading-narrow--letter-spacing-normal":"Primer_Brand__Heading-module__Heading-narrow--letter-spacing-normal___gzn9r","Heading--letter-spacing-none":"Primer_Brand__Heading-module__Heading--letter-spacing-none___vuohz","Heading-narrow--letter-spacing-none":"Primer_Brand__Heading-module__Heading-narrow--letter-spacing-none___RR_W3","Heading-regular--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading-regular--letter-spacing-condensed___gEGJy","Heading-regular--letter-spacing-normal":"Primer_Brand__Heading-module__Heading-regular--letter-spacing-normal___GWmk5","Heading-regular--letter-spacing-none":"Primer_Brand__Heading-module__Heading-regular--letter-spacing-none____NH9r","Heading-narrow--weight-wide":"Primer_Brand__Heading-module__Heading-narrow--weight-wide___ikyG2","Heading-wide--letter-spacing-condensed":"Primer_Brand__Heading-module__Heading-wide--letter-spacing-condensed___RhUHL","Heading-wide--letter-spacing-normal":"Primer_Brand__Heading-module__Heading-wide--letter-spacing-normal___qPBdW","Heading-wide--letter-spacing-none":"Primer_Brand__Heading-module__Heading-wide--letter-spacing-none___w4Oh2"},N=["1","2","3","4","5","6"],A=["h1","h2","h3","h4","h5","h6"],y=["heavy","extrabold","bold","semibold","medium","normal","light"],j=["condensed","normal","expanded"],C=["condensed","normal","none"],H=A[1],E={h1:N[0],h2:N[1],h3:N[2],h4:N[3],h5:N[4],h6:N[5]},I=(0,r.forwardRef)((({className:t,children:n,as:i=H,size:o,letterSpacing:l,weight:d,stretch:s,...c},m)=>{const u=(e,r)=>r?"string"==typeof r?k[`Heading--${e}-${r}`]:Object.keys(r).map((a=>k[`Heading-${a}--${e}-${r[a]}`])).join(" "):null,h=(0,r.useMemo)((()=>u("weight",d)),[d]),g=(0,r.useMemo)((()=>u("stretch",s)),[s]),p=(0,r.useMemo)((()=>u("letter-spacing",l)),[l]),f=_(k.Heading,!o&&k[`Heading--${E[i]}`],o&&k[`Heading--${o}`],d&&h,s&&g,p&&p,t),v=a().useCallback((({...e})=>A.includes(i)?a().createElement(i,e,n):(console.error(`Heading: 'as' prop must be one of ${A.join(", ")}`),null)),[i,n]);return(0,e.jsx)(v,{className:f,ref:m,...c,children:n})})),L=(0,r.forwardRef)((({className:r,heading:a,description:t,primaryAction:n,secondaryAction:i,align:l="start",headingId:d="hero-section-brand-heading","aria-labelledby":s,...c},m)=>(0,e.jsxs)("section",{"aria-labelledby":s||d,className:_(o.Hero,o[`Hero--align-${l}`],r),ref:m,...c,children:[(0,e.jsx)(I,{as:"h1",id:d,className:o["Hero-heading"],children:a}),t?(0,e.jsx)(f,{className:o["Hero-description"],as:"p",size:"400",variant:"muted",children:t}):null,(0,e.jsxs)("div",{className:o["Hero-actions"],children:[(0,e.jsx)(P,{as:"a",variant:"primary",size:"large",href:n.href,children:n.text}),i?(0,e.jsx)(P,{as:"a",variant:"secondary",size:"large",href:i.href,children:i.text}):null]})]})));var R;!function(e){e.LIGHT="light",e.DARK="dark",e.AUTO="auto"}(R||(R={}));const z=R.LIGHT,F=(0,r.createContext)({colorMode:z,availableColorModes:Object.values(R)});function M({colorMode:a=z,children:t,...n}){const[i,_]=(0,r.useState)(a),o=(0,r.useMemo)((()=>Object.values(R)),[]);return(0,r.useEffect)((()=>(a===R.AUTO?_(V()):i!==a&&_(a),$(_))),[a,i,_]),(0,e.jsx)(F.Provider,{value:{colorMode:i,availableColorModes:o},children:(0,e.jsx)("div",{"data-color-mode":i,...n,children:t})})}const O=()=>window.matchMedia(`(prefers-color-scheme: ${R.DARK})`),V=()=>O().matches?R.DARK:R.LIGHT,$=e=>{const r=O(),a=r=>e(r.matches?R.DARK:R.LIGHT);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},W=()=>(0,r.useContext)(F),D=(0,r.forwardRef)((({buttonSize:r="medium",buttonsAs:t,className:n,children:i,..._},o)=>{const l=a().Children.toArray(i).map(((e,n)=>{if(a().isValidElement(e)&&"string"!=typeof e.type&&e.type===P)return a().cloneElement(e,{size:r,as:t,variant:0===n?"primary":"secondary",hasArrow:0===n,...e.props})})).filter(Boolean).slice(0,2);return(0,e.jsx)("section",{ref:o,className:"Primer_Brand__ButtonGroup-module__ButtonGroup___QQSsj",..._,children:l})})),q={River:"Primer_Brand__River-module__River___VHPl5","River--align-center":"Primer_Brand__River-module__River--align-center___TH7xI",River__visual:"Primer_Brand__River-module__River__visual___sTe_U","River__visual--fill-media":"Primer_Brand__River-module__River__visual--fill-media___AVMgH","River__visual--has-shadow":"Primer_Brand__River-module__River__visual--has-shadow___cL9nP",River__heading:"Primer_Brand__River-module__River__heading___pwKXi","River__call-to-action":"Primer_Brand__River-module__River__call-to-action___GIOCe",River__text:"Primer_Brand__River-module__River__text___ZlR1K","River--50-50":"Primer_Brand__River-module__River--50-50___cpSFU","River--60-40":"Primer_Brand__River-module__River--60-40___XDKAU","River--align-start":"Primer_Brand__River-module__River--align-start___L0mn_","River--align-end":"Primer_Brand__River-module__River--align-end___UIM3e",River__content:"Primer_Brand__River-module__River__content___opQUA","River__body-text":"Primer_Brand__River-module__River__body-text___tt2Yf"},Q="50:50",U="start",G=(0,r.forwardRef)((({imageTextRatio:r=Q,align:t=U,className:n,children:i,...o},l)=>{const{Visual:d,Content:s}=a().Children.toArray(i).reduce(((e,r)=>(a().isValidElement(r)&&"string"!=typeof r.type&&(r.type===X&&(e.Visual=r),r.type===J&&(e.Content=r)),e)),{Visual:null,Content:null}),c="start"===t||"center"===t?[s,d]:[d,s];return(0,e.jsx)("section",{className:_(q.River,q[`River--${r.replace(":","-")}`],q[`River--align-${t}`],n),...o,ref:l,children:c})})),K=e=>`River.Content does not accept a Heading with as="${e}". River automatically applies as="h3" by default.`,J=(0,r.forwardRef)((({children:r,leadingComponent:t,trailingComponent:n,...i},o)=>{const l=a().Children.toArray(r).find((e=>a().isValidElement(e)&&e.type===I)),d=a().Children.toArray(r).find((e=>a().isValidElement(e)&&e.type===f)),s=a().Children.toArray(r).find((e=>a().isValidElement(e)&&e.type===Ce));return(0,e.jsxs)("div",{className:q.River__content,...i,ref:o,children:[t&&(0,e.jsx)("div",{children:(0,e.jsx)(t,{})}),a().isValidElement(l)&&(0,e.jsx)("div",{className:q.River__heading,children:a().cloneElement(l,{as:(e=>{const{as:r}=e.props;return r&&A.includes(r)&&"h3"!==r&&console.warn(K(r)),"h3"})(l)})}),a().isValidElement(d)&&(0,e.jsx)("div",{className:q["River__body-text"],children:a().cloneElement(d,{variant:"muted",as:"p",className:_(q.River__text,d.props.className)})}),a().isValidElement(s)&&(0,e.jsx)("div",{className:q["River__call-to-action"],children:a().cloneElement(s,{size:"large"})}),n&&(0,e.jsx)("div",{children:(0,e.jsx)(n,{})})]})})),X=(0,r.forwardRef)((({fillMedia:r=!0,children:a,className:t,hasShadow:n=!0,...i},o)=>(0,e.jsx)("div",{className:_(q.River__visual,n&&q["River__visual--has-shadow"],r&&q["River__visual--fill-media"],t),...i,ref:o,children:a}))),Z=Object.assign(G,{Visual:X,Content:J});var Y={small:16,medium:32,large:64};function ee(e,r,t){var n=t(),i=Object.keys(n);function _(e){var r=e["aria-label"],t=e.className,_=e.fill,o=void 0===_?"currentColor":_,l=e.size,d=e.verticalAlign,s=Y[l]||l,c=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,a){return a<=r?a:e}),e[0])}(i,s),m=n[c].width,u=s*(m/c),h=n[c].path;return a().createElement("svg",{"aria-hidden":r?"false":"true","aria-label":r,role:"img",className:t,viewBox:"0 0 ".concat(m," ").concat(c),width:u,height:s,fill:o,style:{display:"inline-block",userSelect:"none",verticalAlign:d,overflow:"visible"}},h)}return _.displayName=e,_.defaultProps={className:r,size:16,verticalAlign:"text-bottom"},_}var re=ee("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:a().createElement("path",{fillRule:"evenodd",d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 01-1.146 1.954H1.33A1.312 1.312 0 01.183 9.058L4.855.708zM7 7V3H5v4h2zm-1 3a1 1 0 100-2 1 1 0 000 2z"})},16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM8 5a.75.75 0 01.75.75v2.5a.75.75 0 01-1.5 0v-2.5A.75.75 0 018 5zm1 6a1 1 0 11-2 0 1 1 0 012 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752L9.836 3.244zM12 8.5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 8.5zm1 9a1 1 0 11-2 0 1 1 0 012 0z"})}}})),ae=ee("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"})}}})),te=ee("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:a().createElement("path",{fillRule:"evenodd",d:"M6 0a6 6 0 100 12A6 6 0 006 0zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938z"})},16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.75.75 0 00-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 00-1.06 1.06l3 3a.75.75 0 001.06 0l6.5-6.5z"})}}})),ne=ee("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:a().createElement("path",{d:"M6 8.8c-.2 0-.4-.1-.5-.2L2.2 5.3c-.3-.3-.3-.8 0-1.1s.8-.3 1.1 0L6 6.9l2.7-2.7c.3-.3.8-.3 1.1 0s.3.8 0 1.1L6.6 8.5c-.2.2-.4.3-.6.3z"})},16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M5.22 8.72a.75.75 0 000 1.06l6.25 6.25a.75.75 0 001.06 0l6.25-6.25a.75.75 0 00-1.06-1.06L12 14.44 6.28 8.72a.75.75 0 00-1.06 0z"})}}})),ie=ee("ChevronLeftIcon","octicon octicon-chevron-left",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M9.78 12.78a.75.75 0 01-1.06 0L4.47 8.53a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L6.06 8l3.72 3.72a.75.75 0 010 1.06z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M15.28 5.22a.75.75 0 00-1.06 0l-6.25 6.25a.75.75 0 000 1.06l6.25 6.25a.75.75 0 101.06-1.06L9.56 12l5.72-5.72a.75.75 0 000-1.06z"})}}})),_e=ee("ChevronUpIcon","octicon octicon-chevron-up",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M3.22 9.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L8 6.06 4.28 9.78a.75.75 0 01-1.06 0z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M18.78 15.28a.75.75 0 000-1.06l-6.25-6.25a.75.75 0 00-1.06 0l-6.25 6.25a.75.75 0 101.06 1.06L12 9.56l5.72 5.72a.75.75 0 001.06 0z"})}}})),oe=ee("DashIcon","octicon octicon-dash",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M4.5 12.75a.75.75 0 01.75-.75h13.5a.75.75 0 010 1.5H5.25a.75.75 0 01-.75-.75z"})}}})),le=ee("LogoGithubIcon","octicon octicon-logo-github",(function(){return{16:{width:45,path:a().createElement("path",{fillRule:"evenodd",d:"M18.53 12.03h-.02c.009 0 .015.01.024.011h.006l-.01-.01zm.004.011c-.093.001-.327.05-.574.05-.78 0-1.05-.36-1.05-.83V8.13h1.59c.09 0 .16-.08.16-.19v-1.7c0-.09-.08-.17-.16-.17h-1.59V3.96c0-.08-.05-.13-.14-.13h-2.16c-.09 0-.14.05-.14.13v2.17s-1.09.27-1.16.28c-.08.02-.13.09-.13.17v1.36c0 .11.08.19.17.19h1.11v3.28c0 2.44 1.7 2.69 2.86 2.69.53 0 1.17-.17 1.27-.22.06-.02.09-.09.09-.16v-1.5a.177.177 0 00-.146-.18zM42.23 9.84c0-1.81-.73-2.05-1.5-1.97-.6.04-1.08.34-1.08.34v3.52s.49.34 1.22.36c1.03.03 1.36-.34 1.36-2.25zm2.43-.16c0 3.43-1.11 4.41-3.05 4.41-1.64 0-2.52-.83-2.52-.83s-.04.46-.09.52c-.03.06-.08.08-.14.08h-1.48c-.1 0-.19-.08-.19-.17l.02-11.11c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v3.77s.82-.53 2.02-.53l-.01-.02c1.2 0 2.97.45 2.97 3.88zm-8.72-3.61h-2.1c-.11 0-.17.08-.17.19v5.44s-.55.39-1.3.39-.97-.34-.97-1.09V6.25c0-.09-.08-.17-.17-.17h-2.14c-.09 0-.17.08-.17.17v5.11c0 2.2 1.23 2.75 2.92 2.75 1.39 0 2.52-.77 2.52-.77s.05.39.08.45c.02.05.09.09.16.09h1.34c.11 0 .17-.08.17-.17l.02-7.47c0-.09-.08-.17-.19-.17zm-23.7-.01h-2.13c-.09 0-.17.09-.17.2v7.34c0 .2.13.27.3.27h1.92c.2 0 .25-.09.25-.27V6.23c0-.09-.08-.17-.17-.17zm-1.05-3.38c-.77 0-1.38.61-1.38 1.38 0 .77.61 1.38 1.38 1.38.75 0 1.36-.61 1.36-1.38 0-.77-.61-1.38-1.36-1.38zm16.49-.25h-2.11c-.09 0-.17.08-.17.17v4.09h-3.31V2.6c0-.09-.08-.17-.17-.17h-2.13c-.09 0-.17.08-.17.17v11.11c0 .09.09.17.17.17h2.13c.09 0 .17-.08.17-.17V8.96h3.31l-.02 4.75c0 .09.08.17.17.17h2.13c.09 0 .17-.08.17-.17V2.6c0-.09-.08-.17-.17-.17zM8.81 7.35v5.74c0 .04-.01.11-.06.13 0 0-1.25.89-3.31.89-2.49 0-5.44-.78-5.44-5.92S2.58 1.99 5.1 2c2.18 0 3.06.49 3.2.58.04.05.06.09.06.14L7.94 4.5c0 .09-.09.2-.2.17-.36-.11-.9-.33-2.17-.33-1.47 0-3.05.42-3.05 3.73s1.5 3.7 2.58 3.7c.92 0 1.25-.11 1.25-.11v-2.3H4.88c-.11 0-.19-.08-.19-.17V7.35c0-.09.08-.17.19-.17h3.74c.11 0 .19.08.19.17z"})}}})),de=ee("MarkGithubIcon","octicon octicon-mark-github",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}}})),se=ee("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M10.25 2a8.25 8.25 0 105.28 14.59l5.69 5.69a.75.75 0 101.06-1.06l-5.69-5.69A8.25 8.25 0 0010.25 2zM3.5 10.25a6.75 6.75 0 1113.5 0 6.75 6.75 0 01-13.5 0z"})}}})),ce=ee("XIcon","octicon octicon-x",(function(){return{16:{width:16,path:a().createElement("path",{fillRule:"evenodd",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})},24:{width:24,path:a().createElement("path",{fillRule:"evenodd",d:"M5.72 5.72a.75.75 0 011.06 0L12 10.94l5.22-5.22a.75.75 0 111.06 1.06L13.06 12l5.22 5.22a.75.75 0 11-1.06 1.06L12 13.06l-5.22 5.22a.75.75 0 01-1.06-1.06L10.94 12 5.72 6.78a.75.75 0 010-1.06z"})}}}));function me(e,a,t){(0,r.useEffect)((()=>{const r=r=>{!e.current||e.current.contains(r.target)||t&&t.current&&t.current.contains(r.target)||a&&a(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r,{passive:!0}),document.addEventListener("focusin",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r),document.removeEventListener("focusin",r)}}),[e,a,t])}const ue="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-link___XmtPc",he="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-menu-button___hMy4J",ge="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-menu-button-bar___cUVZF",pe="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-menu-button--close___I0UtT",fe="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-cta-button___g_9BM",ve="Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-result-item-desc___Rb5Tm";function xe(e){const a=(0,r.useCallback)((r=>{"Escape"===r.key&&e()}),[e]);(0,r.useEffect)((()=>(document.addEventListener("keydown",a,!1),()=>{document.removeEventListener("keydown",a,!1)})),[a])}function be(){const[e,a]=(0,r.useState)({width:void 0,height:void 0,isLarge:void 0});return(0,r.useEffect)((()=>{function e(){a({width:window.innerWidth,height:window.innerHeight,isLarge:window.innerWidth>=1012})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e}function we({children:t,className:n,...i}){const o=(0,r.useRef)(null),[l]=function(e,a){const[t,n]=(0,r.useState)({}),i=e=>{const r={};for(const a of e){const e=a.target.getAttribute("data-navitemid");e&&(a.isIntersecting?r[e]=!0:r[e]=!1)}n((e=>({...e,...r})))};return(0,r.useEffect)((()=>{const r=new IntersectionObserver(i,{root:e.current,threshold:1});if(e.current){const a=Array.from(e.current.children);for(const e of a)e.getAttribute("data-navitemid")&&r.observe(e)}return()=>r.disconnect()}),[e,a]),[t]}(o,t),{width:d}=be(),s=Object.values(l).includes(!1);return(0,e.jsxs)("ul",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list___iQd2r",n),ref:o,...i,children:[a().Children.map(t,(e=>a().cloneElement(e,{className:_(e.props.className,d&&d>=768&&!!l[e.props["data-navitemid"]]&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item--visible___oDmLP",d&&d>=768&&!l[e.props["data-navitemid"]]&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item--invisible___NioAh")}))),s&&(0,e.jsx)(Be,{visibilityMap:l,children:t})]})}function Be({children:t,className:n,visibilityMap:i}){const[o,l]=(0,r.useState)(null),d=(0,r.useRef)(null);me(d,(()=>c()));const s=Boolean(o),c=(0,r.useCallback)((()=>{l(null)}),[]);return xe(c),(0,e.jsxs)("li",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item--overflow___FXC7u",n),ref:d,children:[(0,e.jsxs)("button",{"aria-expanded":s?"true":"false","aria-label":"more","aria-controls":"more-navigation","aria-haspopup":"true",onClick:e=>{o?c():l(e.currentTarget)},className:_(ue,"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-more-link___GR7D2"),children:["More",(0,e.jsx)(ne,{})]}),(0,e.jsx)("nav",{id:"more-navigation",style:{display:s?"block":"none"},className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-overflow-menu___RXj_t"),children:(0,e.jsx)("ul",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-overflow-menu-list___EbzqG"),children:a().Children.map(t,(r=>{if(a().isValidElement(r)){const t=r.props["data-navitemid"];if(!i[t])return(0,e.jsx)(a().Fragment,{children:a().cloneElement(r,{onClick:c,className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-overflow-menu-item___sI1rx",r.props.className)})})}return null}))})})]})}const Te={root:"SubdomainNavBar",get innerContainer(){return`${this.root}-inner-container`},get menuButton(){return`${this.root}-menuButton`},get menuLinks(){return`${this.root}-menuLinks`}};function Se({href:r,className:a,children:t,...n}){return(0,e.jsx)("li",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list-item___sz8e9",a),...n,children:(0,e.jsx)("a",{href:r,className:_(ue),children:t})})}const Pe=(0,r.forwardRef)((({active:a,title:t,searchResults:n,searchTerm:i,handlerFn:o,onSubmit:l,onChange:d},s)=>{const c=(0,r.useRef)(null);return me(c,o),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{role:"search",className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-trigger___WyUIj"),"aria-label":"open search",children:(0,e.jsx)("button",{"aria-label":"search",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-button___Nzz4R",onClick:o,"data-testid":"toggle-search",children:(0,e.jsx)(se,{})})}),a&&(0,e.jsxs)("div",{ref:c,role:"dialog","aria-label":"search menu dialog",title:`Search ${t}`,"aria-modal":"true",className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-dialog___yqQl5"),children:[(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-dialog-control-area___KlFbq"),children:[(0,e.jsx)("form",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-form___zoZB5"),onSubmit:l,children:(0,e.jsxs)(hr,{fullWidth:!0,size:"large",children:[(0,e.jsx)(hr.Label,{visuallyHidden:!0,children:"Search"}),(0,e.jsx)(nr,{ref:s,className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-text-input___kDY_0"),autoFocus:!0,name:"search",role:"combobox","aria-expanded":"true","aria-controls":"listbox-search-results",placeholder:`Search ${t}`,onChange:d,defaultValue:i,invisible:!0,leadingVisual:(0,e.jsx)(se,{size:16})})]})}),(0,e.jsx)("button",{"aria-label":"Close",className:_(he,pe),onClick:o,children:(0,e.jsx)(ce,{size:24})})]}),(0,e.jsx)("div",{id:"listbox-search-results",children:n&&n.length>0&&(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-results-container___kow2P"),children:[(0,e.jsxs)(f,{id:"subdomainnavbar-search-results-heading",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-results-heading___FTzyR",children:["Results for “",i,"”"]}),(0,e.jsx)("ul",{role:"listbox","aria-label":"search results","aria-labelledby":"subdomainnavbar-search-results-heading","aria-activedescendant":"subdomainnavbar-search-result-1",className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-results___haCH9"),tabIndex:0,children:n.map(((r,a)=>(0,e.jsxs)("li",{id:`subdomainnavbar-search-result-${a}`,className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-result-item___YZV9z",children:[(0,e.jsx)(I,{as:"h6",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-search-result-item-heading___ErnwN",children:(0,e.jsx)("a",{href:r.url,children:r.title})}),(0,e.jsx)(f,{as:"p",size:"200",className:ve,children:r.description}),(0,e.jsxs)("div",{children:[(0,e.jsx)(f,{size:"100",className:ve,children:r.date}),r.category&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(f,{size:"100",className:ve,children:[" ","•"," "]}),(0,e.jsx)(f,{size:"100",className:ve,children:r.category})]})]})]},`${r.title}-${a}`)))})]})})]})]})}));function ke({children:r,href:a,...t}){return(0,e.jsx)(P,{as:"a",href:a,className:_(fe),variant:"primary",hasArrow:!1,...t,children:r})}function Ne({children:r,href:a,...t}){return(0,e.jsx)(P,{as:"a",href:a,className:_(fe,"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-cta-button--secondary___P0FJH"),hasArrow:!1,...t,children:r})}const Ae=Object.assign((function({children:t,className:n,fixed:i=!0,fullWidth:o=!1,logoHref:l="https://github.com",title:d,titleHref:s="/",...c}){const[m,u]=(0,r.useState)(!0),[h,g]=(0,r.useState)(!1),p=()=>g(!h),f=(0,r.useMemo)((()=>a().Children.toArray(t).filter((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===Se))),[]).length>0;return(0,e.jsx)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-outer-container___aE8uv",i&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-outer-container--fixed___ZhyZf"),children:(0,e.jsx)("header",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar___JNpcK",n),"data-testid":Te.root,...c,children:(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container___kdy5Y",h&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container--search-open___nhMNU",!o&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container--centered___FXUTh"),"data-testid":Te.innerContainer,children:[(0,e.jsx)("nav",{"aria-label":"global breadcrumb",children:(0,e.jsxs)("ol",{className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-title-area___W8IC5",children:[(0,e.jsx)("li",{children:(0,e.jsxs)("a",{href:l,"aria-label":"Github Home",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-logo-mark___pMn2_",children:[(0,e.jsx)("span",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-back-arrow___OOrj8"),children:(0,e.jsx)(ie,{fill:"currentColor",size:24})}),(0,e.jsx)(de,{fill:"currentColor",size:24})]})}),(0,e.jsx)("li",{role:"separator",className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-title-separator___djrH2","aria-hidden":!0,children:"/"}),(0,e.jsx)("li",{children:(0,e.jsx)("a",{href:s,"aria-label":`${d} home`,className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-title___Zm_g2"),children:d})})]})}),f&&(0,e.jsx)("nav",{id:"menu-navigation","aria-label":d,className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav___rZwCn","data-testid":Te.menuLinks,children:(0,e.jsx)(we,{className:_(!m&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-primary-nav-list--visible___ZeoFv"),children:a().Children.toArray(t).map(((e,r)=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===Se?a().cloneElement(e,{"data-navitemid":e.props.children,href:e.props.href,children:e.props.children,style:{"--animation-order":r}}):null})).filter(Boolean)})}),(0,e.jsxs)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-secondary-nav___WHTTz"),children:[a().Children.toArray(t).map((e=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===Pe?a().cloneElement(e,{active:h,handlerFn:p,title:d}):null})).filter(Boolean),f&&(0,e.jsxs)("button",{"aria-expanded":"true","aria-label":"Menu","aria-controls":"menu-navigation","aria-haspopup":"true",className:_(he,"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-mobile-menu-button___CTbHW",!m&&pe),"data-testid":Te.menuButton,onClick:()=>u(!m),children:[(0,e.jsx)("div",{className:_(ge)}),(0,e.jsx)("div",{className:_(ge)}),(0,e.jsx)("div",{className:_(ge)})]}),(0,e.jsx)("div",{className:_("Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-button-area___MbQys",!m&&"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-button-area--visible___fLvbf"),children:(0,e.jsxs)("div",{className:"Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-button-area-inner___dbpYv",children:[a().Children.toArray(t).map((e=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===ke?e:null})).filter(Boolean),a().Children.toArray(t).map((e=>{if(a().isValidElement(e)&&"string"!=typeof e.type)return e.type===Ne?e:null})).filter(Boolean)]})})]})]})})})}),{Link:Se,Search:Pe,PrimaryAction:ke,SecondaryAction:Ne,testIds:Te}),ye=(0,r.forwardRef)((({className:r,size:a=g,children:t,href:n,...i},o)=>{const l=_("Primer_Brand__InlineLink-module__InlineLink___U_Ama",r);return(0,e.jsx)("a",{href:n,className:l,...i,ref:o,children:(0,e.jsx)(f,{size:a,as:"span",children:t})})})),je={Link:"Primer_Brand__Link-module__Link___lvKjM","Link--label":"Primer_Brand__Link-module__Link--label___j8etE","Link-arrow":"Primer_Brand__Link-module__Link-arrow___HBMJ9","Link--large":"Primer_Brand__Link-module__Link--large___cXMt5","Link--arrow-start":"Primer_Brand__Link-module__Link--arrow-start___AT1uu"};function Ce({size:t="medium",className:n,children:i,onMouseEnter:o,onMouseLeave:d,onFocus:s,onBlur:c,arrowDirection:m="end",...u}){const[h,g]=a().useState(!1),[p,v]=a().useState(!1),x=(0,r.useCallback)((e=>{g(!h),o?.(e)}),[o,h]),b=(0,r.useCallback)((e=>{g(!h),d?.(e)}),[d,h]),w=(0,r.useCallback)((e=>{v(!p),s?.(e)}),[s,p]),B=(0,r.useCallback)((e=>{v(!p),c?.(e)}),[c,p]);return(0,e.jsxs)("a",{className:_(je.Link,je[`Link--${t}`],je[`Link--arrow-${m}`],n),onMouseEnter:x,onMouseLeave:b,onFocus:w,onBlur:B,...u,children:["start"===m&&(0,e.jsx)(l,{className:je["Link-arrow"],expanded:h||p,reverse:!0,hidden:!0}),(0,e.jsx)(f,{as:"span",size:{medium:"300",large:"400"}[t],className:_(je["Link--label"]),children:i}),"end"===m&&(0,e.jsx)(l,{className:je["Link-arrow"],expanded:h||p,hidden:!0})]})}const He=(0,r.forwardRef)((({children:r,className:t,open:n=!1,...i},o)=>{const{AccordionHeading:l,AccordionContent:d}=a().Children.toArray(r).reduce(((e,r)=>(a().isValidElement(r)&&"string"!=typeof r.type&&(r.type===Ie&&(e.AccordionContent=r),r.type===Ee&&(e.AccordionHeading=r)),e)),{AccordionHeading:null,AccordionContent:null});return(0,e.jsxs)("details",{className:_("Primer_Brand__Accordion-module__Accordion___M_LPt",t),open:n,...i,ref:o,children:[l,d]})})),Ee=(0,r.forwardRef)((({children:r,className:a,as:t="h4",...n},i)=>(0,e.jsxs)("summary",{className:_("Primer_Brand__Accordion-module__Accordion__summary___NUIYc",a),ref:i,...n,children:[(0,e.jsx)("span",{"aria-hidden":"true",className:"Primer_Brand__Accordion-module__Accordion__summary--collapsed___spc4w"}),(0,e.jsx)(I,{as:t,className:"Primer_Brand__Accordion-module__Accordion__summary-heading_____snF",children:r}),(0,e.jsx)("span",{"aria-hidden":"true",className:"Primer_Brand__Accordion-module__Accordion__summary--expanded___r3Clk"})]})));function Ie({children:r,className:t,...n}){const i=a().isValidElement(r)&&r.type===a().Fragment?r.props.children:r,o=a().Children.map(i,(r=>a().isValidElement(r)&&"string"==typeof r.type&&["p","span"].includes(r.type)?a().cloneElement(r,{children:(0,e.jsx)(f,{variant:"muted",size:"300",as:"span",children:r.props.children})}):r));return(0,e.jsx)("section",{className:_("Primer_Brand__Accordion-module__Accordion__content___wMZGe",t),...n,children:a().Children.toArray(o).map((e=>a().isValidElement(e)&&a().cloneElement(e,{className:_("Primer_Brand__Accordion-module__Accordion__content-item___M_dlm",e.props.className)})))})}const Le=Object.assign(He,{Content:Ie,Heading:Ee});var Re=t(570);const ze={FAQ:"Primer_Brand__FAQ-module__FAQ___R3vLU",FAQ__heading:"Primer_Brand__FAQ-module__FAQ__heading___bH0aG",FAQ__subheading:"Primer_Brand__FAQ-module__FAQ__subheading___I4puv","FAQ__heading--start":"Primer_Brand__FAQ-module__FAQ__heading--start___eHaT3","FAQ__heading--center":"Primer_Brand__FAQ-module__FAQ__heading--center___xMpbW","FAQ__heading--large":"Primer_Brand__FAQ-module__FAQ__heading--large___pBEPT","FAQ__heading--with-margin":"Primer_Brand__FAQ-module__FAQ__heading--with-margin___S2_ET"},Fe=(0,r.forwardRef)((({children:r,className:t,...n},i)=>{const o=a().Children.toArray(r).filter((e=>!(!a().isValidElement(e)||"string"==typeof e.type||!(0,Re.isFragment)(e)&&e.type!==Me&&e.type!==Oe&&e.type!==He))),l=a().Children.toArray(r).some((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===Oe));return(0,e.jsx)("section",{className:_(ze.FAQ,t),ref:i,...n,children:a().Children.toArray(o).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===Me?a().cloneElement(e,{align:l?"start":e.props.align,size:l?"large":e.props.size,className:_(!l&&ze["FAQ__heading--with-margin"],e.props.className)}):e))})})),Me=(0,r.forwardRef)((({children:r,className:a,size:t="medium",align:n="center",as:i,...o},l)=>{const d="medium"===t?"h3":"h2";return(0,e.jsx)(I,{as:i||d,className:_(ze.FAQ__heading,"large"===t&&ze["FAQ__heading--large"],ze[`FAQ__heading--${n}`],a),ref:l,...o,children:r})}));function Oe({children:r,className:a,as:t="h3",...n}){return(0,e.jsx)(I,{as:t,className:_(ze.FAQ__subheading,a),...n,children:r})}const Ve=Object.assign(Fe,{Subheading:Oe,Heading:Me,Item:He,Question:Ee,Answer:Ie});function $e(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var We=$e()?r.useLayoutEffect:r.useEffect,De=!1,qe=0;function Qe(){return++qe}function Ue(e){var a;if("function"==typeof r.useId){var t=(0,r.useId)(e);return null!=e?e:t}var n=null!=e?e:De?Qe():null,i=(0,r.useState)(n),_=i[0],o=i[1];return We((function(){null===_&&o(Qe())}),[]),(0,r.useEffect)((function(){!1===De&&(De=!0)}),[]),null!=(a=null!=e?e:_)?a:void 0}const Ge="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Ke="Primer_Brand__Checkbox-module__Checkbox-checkmark___atiwt",Je=(0,r.forwardRef)((({checked:a,className:t,indeterminate:n,disabled:i,id:o,onChange:l,required:d,validationStatus:s,value:c,...m},u)=>{const h=(0,r.useRef)(u||null),g=Ue(o);return Ge((()=>{h.current&&(h.current.indeterminate=n||!1)}),[n,a,h]),(0,e.jsxs)("span",{className:"Primer_Brand__Checkbox-module__Checkbox-wrapper___qo8KL",children:[(0,e.jsx)("input",{id:g,"aria-checked":n?"mixed":a?"true":"false","aria-disabled":i?"true":"false","aria-invalid":"error"===s?"true":"false","aria-required":d?"true":"false",checked:!n&&a,className:_("Primer_Brand__Checkbox-module__Checkbox-input___sux6s"),disabled:i,name:c,onChange:l,ref:h,required:d,type:"checkbox",value:c,...m}),(0,e.jsxs)("label",{htmlFor:g,className:_("Primer_Brand__Checkbox-module__Checkbox___T8FJa",n&&"Primer_Brand__Checkbox-module__Checkbox--indeterminate___U5S6k",t),children:[!n&&(0,e.jsx)("svg",{viewBox:"0 0 100 100",className:_(Ke),children:(0,e.jsx)("path",{className:_("Primer_Brand__Checkbox-module__Checkbox-checkmark-path___qgsjb"),fill:"none",stroke:"#000",strokeWidth:"13",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M12.1 52.1l24.4 24.4 53-53"})}),n&&(0,e.jsx)("svg",{className:_(Ke),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:(0,e.jsx)("path",{fillRule:"evenodd",d:"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"})})]})]})})),Xe={Textarea:"Primer_Brand__Textarea-module__Textarea___xmKD5","Textarea-resize--vertical":"Primer_Brand__Textarea-module__Textarea-resize--vertical___uAPaM","Textarea-resize--horizontal":"Primer_Brand__Textarea-module__Textarea-resize--horizontal___gT0d4","Textarea-resize--none":"Primer_Brand__Textarea-module__Textarea-resize--none___VNofG","Textarea-resize--both":"Primer_Brand__Textarea-module__Textarea-resize--both___bDJp5","Textarea--medium":"Primer_Brand__Textarea-module__Textarea--medium___pMZGb","Textarea--large":"Primer_Brand__Textarea-module__Textarea--large___wCPXA","Textarea--fullWidth":"Primer_Brand__Textarea-module__Textarea--fullWidth___lPWcQ","Textarea-wrapper--disabled":"Primer_Brand__Textarea-module__Textarea-wrapper--disabled___fg8We","Textarea-wrapper":"Primer_Brand__Textarea-module__Textarea-wrapper___A4lsG","Textarea-wrapper--invisible":"Primer_Brand__Textarea-module__Textarea-wrapper--invisible___fF78K","Textarea-wrapper--fullWidth":"Primer_Brand__Textarea-module__Textarea-wrapper--fullWidth___EtLL9","Textarea-wrapper--monospace":"Primer_Brand__Textarea-module__Textarea-wrapper--monospace___lA41d","Textarea-wrapper--success":"Primer_Brand__Textarea-module__Textarea-wrapper--success___RaDVX","Textarea-wrapper--error":"Primer_Brand__Textarea-module__Textarea-wrapper--error___zcHSQ"},Ze=7,Ye=30,er="both",rr={root:"Textarea",get outerContainer(){return`${this.root}-outer-container`}},ar=(0,r.forwardRef)((({children:r,className:a,cols:t=Ye,disabled:n,fullWidth:i=!1,invisible:o=!1,monospace:l,placeholder:d,size:s="medium",validationStatus:c,required:m,resize:u=er,rows:h=Ze,...g},p)=>(0,e.jsx)("span",{className:_(Xe["Textarea-wrapper"],i&&Xe["Textarea-wrapper--fullWidth"],o&&Xe["Textarea-wrapper--invisible"],n&&Xe["Textarea-wrapper--disabled"],l&&Xe["Textarea-wrapper--monospace"],c&&Xe[`Textarea-wrapper--${c}`]),"data-testid":rr.outerContainer,children:(0,e.jsx)("textarea",{ref:p,className:_(Xe.Textarea,"Textarea",Xe[`Textarea--${s}`],Xe[`Textarea-resize--${u}`],i&&Xe["Textarea--fullWidth"],c&&Xe[`Textarea--${c}`],a),placeholder:d,disabled:n,"aria-invalid":"error"===c,"aria-required":m?"true":"false",rows:h,cols:t,...g,children:r})})));ar.displayName="Textarea";const tr={TextInput:"Primer_Brand__TextInput-module__TextInput___EtKj3","TextInput--medium":"Primer_Brand__TextInput-module__TextInput--medium___kJrew","TextInput--large":"Primer_Brand__TextInput-module__TextInput--large___zpUvY","TextInput--fullWidth":"Primer_Brand__TextInput-module__TextInput--fullWidth___rbllM","TextInput-wrapper--disabled":"Primer_Brand__TextInput-module__TextInput-wrapper--disabled___HWTx_","TextInput-wrapper":"Primer_Brand__TextInput-module__TextInput-wrapper___HgxNu","TextInput-wrapper--invisible":"Primer_Brand__TextInput-module__TextInput-wrapper--invisible___cKDcl","TextInput-wrapper--fullWidth":"Primer_Brand__TextInput-module__TextInput-wrapper--fullWidth___eclO4","TextInput-wrapper--monospace":"Primer_Brand__TextInput-module__TextInput-wrapper--monospace___y1fd6","TextInput-wrapper--success":"Primer_Brand__TextInput-module__TextInput-wrapper--success___g5ODK","TextInput-wrapper--error":"Primer_Brand__TextInput-module__TextInput-wrapper--error___V7qtN","TextInput--has-leading-visual--medium":"Primer_Brand__TextInput-module__TextInput--has-leading-visual--medium___i7gLS","TextInput--has-leading-visual--large":"Primer_Brand__TextInput-module__TextInput--has-leading-visual--large___nCVT9","TextInput--has-trailing-visual--medium":"Primer_Brand__TextInput-module__TextInput--has-trailing-visual--medium___pP4lM","TextInput--has-trailing-visual--large":"Primer_Brand__TextInput-module__TextInput--has-trailing-visual--large___n1U0P","TextInput-leading-visual":"Primer_Brand__TextInput-module__TextInput-leading-visual___tk7Yz","TextInput-trailing-visual":"Primer_Brand__TextInput-module__TextInput-trailing-visual___k0E6L","TextInput-leading-visual-icon--medium":"Primer_Brand__TextInput-module__TextInput-leading-visual-icon--medium___y_4Pu","TextInput-leading-visual-icon--large":"Primer_Brand__TextInput-module__TextInput-leading-visual-icon--large___VPOF7","TextInput-leading-text":"Primer_Brand__TextInput-module__TextInput-leading-text___H5Cfr","TextInput-trailing-text":"Primer_Brand__TextInput-module__TextInput-trailing-text___ikt8X","TextInput-leading-text--disabled":"Primer_Brand__TextInput-module__TextInput-leading-text--disabled___APVY0","TextInput-trailing-text--disabled":"Primer_Brand__TextInput-module__TextInput-trailing-text--disabled___oM2Ls","TextInput-leading-text-inner":"Primer_Brand__TextInput-module__TextInput-leading-text-inner___wsz6j","TextInput-trailing-text-inner":"Primer_Brand__TextInput-module__TextInput-trailing-text-inner___hHCPx","TextInput-leading-text-inner--medium":"Primer_Brand__TextInput-module__TextInput-leading-text-inner--medium___B7Rra","TextInput-trailing-text-inner--medium":"Primer_Brand__TextInput-module__TextInput-trailing-text-inner--medium___P9cYA","TextInput-leading-text-inner--large":"Primer_Brand__TextInput-module__TextInput-leading-text-inner--large___HfLcI","TextInput-trailing-text-inner--large":"Primer_Brand__TextInput-module__TextInput-trailing-text-inner--large___LTt33","TextInput-leading-text--medium":"Primer_Brand__TextInput-module__TextInput-leading-text--medium___AXLxn","TextInput-trailing-text--medium":"Primer_Brand__TextInput-module__TextInput-trailing-text--medium___o1pNj","TextInput-leading-text--large":"Primer_Brand__TextInput-module__TextInput-leading-text--large___z8lZE","TextInput-trailing-text--large":"Primer_Brand__TextInput-module__TextInput-trailing-text--large___nFFjq","TextInput--has-leading-text":"Primer_Brand__TextInput-module__TextInput--has-leading-text___u7qke","TextInput--has-trailing-text":"Primer_Brand__TextInput-module__TextInput--has-trailing-text___Rsoog","TextInput-leading-text--success":"Primer_Brand__TextInput-module__TextInput-leading-text--success___LLFx7","TextInput-trailing-text--success":"Primer_Brand__TextInput-module__TextInput-trailing-text--success___EfLVd","TextInput-leading-text--error":"Primer_Brand__TextInput-module__TextInput-leading-text--error___TM77D","TextInput-trailing-text--error":"Primer_Brand__TextInput-module__TextInput-trailing-text--error___R96jr"},nr=(0,r.forwardRef)((({className:r,disabled:t,fullWidth:n=!1,invisible:i=!1,leadingText:o,leadingVisual:l,monospace:d,placeholder:s,size:c="medium",trailingText:m,trailingVisual:u,validationStatus:h,...g},p)=>(0,e.jsxs)("span",{className:_(tr["TextInput-wrapper"],n&&tr["TextInput-wrapper--fullWidth"],i&&tr["TextInput-wrapper--invisible"],t&&tr["TextInput-wrapper--disabled"],d&&tr["TextInput-wrapper--monospace"],h&&tr[`TextInput-wrapper--${h}`]),children:[o&&!l&&(0,e.jsx)("span",{className:_(tr["TextInput-leading-text"],tr[`TextInput-leading-text--${c}`],t&&tr["TextInput-leading-text--disabled"],h&&tr[`TextInput-leading-text--${h}`]),children:(0,e.jsx)("span",{className:_(tr["TextInput-leading-text-inner"],tr[`TextInput-leading-text-inner--${c}`]),children:o})}),l&&!o&&(0,e.jsx)("span",{className:tr["TextInput-leading-visual"],children:"function"==typeof l?(0,e.jsx)(l,{className:_(tr["TextInput-leading-visual-icon"],tr[`TextInput-leading-visual-icon--${c}`])}):a().isValidElement(l)&&a().cloneElement(l,{className:_(tr["TextInput-leading-visual-icon"],tr[`TextInput-leading-visual-icon--${c}`]),width:"large"===c?20:16,height:"large"===c?20:16})}),(0,e.jsx)("input",{type:"text",ref:p,className:_(tr.TextInput,"TextInput",tr[`TextInput--${c}`],n&&tr["TextInput--fullWidth"],l&&tr[`TextInput--has-leading-visual--${c}`],u&&tr["TextInput--has-trailing-visual"],h&&tr[`TextInput--${h}`],o&&!l&&tr["TextInput--has-leading-text"],m&&!u&&tr["TextInput--has-trailing-text"],r),placeholder:s,disabled:t,"aria-invalid":"error"===h,...g}),u&&!m&&(0,e.jsx)("span",{className:tr["TextInput-trailing-visual"],children:"function"==typeof u?(0,e.jsx)(u,{className:_(tr["TextInput-trailing-visual-icon"],tr[`TextInput-trailing-visual-icon--${c}`])}):a().isValidElement(u)&&a().cloneElement(u,{className:_(tr["TextInput-trailing-visual-icon"],tr[`TextInput-trailing-visual-icon--${c}`]),width:"large"===c?20:16,height:"large"===c?20:16})}),m&&!u&&(0,e.jsx)("span",{className:_(tr["TextInput-trailing-text"],tr[`TextInput-trailing-text--${c}`],t&&tr["TextInput-trailing-text--disabled"],h&&tr[`TextInput-trailing-text--${h}`]),children:(0,e.jsx)("span",{className:_(tr["TextInput-trailing-text-inner"],tr[`TextInput-trailing-text-inner--${c}`]),children:m})})]})));nr.displayName="TextInput";const ir={Select:"Primer_Brand__Select-module__Select___Jqn1f","focus-visible":"Primer_Brand__Select-module__focus-visible___viA1m","Select-arrow-indicator":"Primer_Brand__Select-module__Select-arrow-indicator___LTpJz","Select-arrow-indicator--disabled":"Primer_Brand__Select-module__Select-arrow-indicator--disabled___dLMeI","Select--medium":"Primer_Brand__Select-module__Select--medium___kckBr","Select--large":"Primer_Brand__Select-module__Select--large___A7u6F","Select--fullWidth":"Primer_Brand__Select-module__Select--fullWidth___PLk5U","Select-wrapper":"Primer_Brand__Select-module__Select-wrapper___iV0Tg","Select-wrapper--disabled":"Primer_Brand__Select-module__Select-wrapper--disabled___Ka43y","Select-wrapper--fullWidth":"Primer_Brand__Select-module__Select-wrapper--fullWidth___oOOo4","Select--success":"Primer_Brand__Select-module__Select--success___pkmVg","Select--error":"Primer_Brand__Select-module__Select--error___A9JuG"},_r=(0,r.forwardRef)((({children:r,className:a,disabled:t,fullWidth:n=!1,placeholder:i,size:o="medium",validationStatus:l,...d},s)=>(0,e.jsxs)("span",{className:_(ir["Select-wrapper"],n&&ir["Select-wrapper--fullWidth"],l&&ir[`Select--${l}`],t&&ir["Select-wrapper--disabled"]),children:[(0,e.jsx)("select",{"aria-invalid":"error"===l,className:_(ir.Select,"Select",ir[`Select--${o}`],n&&ir["Select--fullWidth"],a),disabled:t,placeholder:i,ref:s,...d,children:r}),(0,e.jsx)("span",{className:_(ir["Select-arrow-indicator"],t&&ir["Select-arrow-indicator--disabled"]),children:(0,e.jsx)(or,{})})]}))),or=({className:r})=>(0,e.jsx)("svg",{width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:_(r),children:(0,e.jsx)("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"})}),lr=Object.assign(_r,{Option:({children:r,value:a,...t})=>(0,e.jsx)("option",{value:a,...t,children:r}),OptGroup:({children:r,label:a,...t})=>(0,e.jsx)("optgroup",{label:a,...t,children:r})}),dr=(0,r.forwardRef)((({checked:a,className:t,disabled:n,id:i,onChange:o,required:l,value:d,...s},c)=>{const m=(0,r.useRef)(c||null),u=Ue(i);return(0,e.jsxs)("span",{className:"Primer_Brand__Radio-module__Radio-wrapper___Gt9uM",children:[(0,e.jsx)("input",{id:u,"aria-checked":a?"true":"false","aria-disabled":n?"true":"false",checked:a,className:_("Primer_Brand__Radio-module__Radio-input___n3jX4"),disabled:n,name:d,onChange:o,ref:m,required:l,type:"radio",value:d,...s}),(0,e.jsx)("label",{htmlFor:u,className:_("Primer_Brand__Radio-module__Radio___JycTo",t),children:(0,e.jsx)("span",{className:"Primer_Brand__Radio-module__Radio-dot___rmEAJ"})})]})})),sr={FormControl:"Primer_Brand__FormControl-module__FormControl___ZJtXy","FormControl--fullWidth":"Primer_Brand__FormControl-module__FormControl--fullWidth___QyLCS","FormControl--checkbox":"Primer_Brand__FormControl-module__FormControl--checkbox___R2ng7","FormControl--border":"Primer_Brand__FormControl-module__FormControl--border___CRSaq","FormControl-label":"Primer_Brand__FormControl-module__FormControl-label___meeuB","FormControl-label--visually-hidden":"Primer_Brand__FormControl-module__FormControl-label--visually-hidden___cFizI","FormControl-label--medium":"Primer_Brand__FormControl-module__FormControl-label--medium___inrKd","FormControl-label--large":"Primer_Brand__FormControl-module__FormControl-label--large___okLn6","FormControl-label--checkbox":"Primer_Brand__FormControl-module__FormControl-label--checkbox___x2U9X","FormControl-control--radio":"Primer_Brand__FormControl-module__FormControl-control--radio___aSHRG","FormControl-hint":"Primer_Brand__FormControl-module__FormControl-hint___dbP0O","FormControl-validation":"Primer_Brand__FormControl-module__FormControl-validation___vG5tm","FormControl-validation--success":"Primer_Brand__FormControl-module__FormControl-validation--success___fGV4L","FormControl-validation--error":"Primer_Brand__FormControl-module__FormControl-validation--error___DJVR5","FormControl-validation-icon":"Primer_Brand__FormControl-module__FormControl-validation-icon___xh1go","FormControl-validation--animate-in":"Primer_Brand__FormControl-module__FormControl-validation--animate-in___C_pxB",FormControlValidationFadeIn:"Primer_Brand__FormControl-module__FormControlValidationFadeIn___hRw_R"},cr=({children:r,className:t,htmlFor:n,required:i,showRequiredIndicator:o=!0,size:l="medium",validationStatus:d,visuallyHidden:s,...c})=>(0,e.jsxs)("label",{htmlFor:n,className:_(sr["FormControl-label"],d&&sr[`FormControl-label--${d}`],sr[`FormControl-label--${l}`],s&&sr["FormControl-label--visually-hidden"],t),...c,children:[a().Children.map(r,(e=>a().isValidElement(e)&&e.type===ur?a().cloneElement(e,{className:_(sr["FormControl--visible"],e.props.className)}):e)),i&&o&&(0,e.jsxs)("span",{className:sr["FormControl-label-required"],"aria-hidden":!0,children:[" ","*"]})]}),mr=({children:r,validationStatus:a})=>(0,e.jsxs)("span",{className:_(sr["FormControl-validation"],a&&sr["FormControl-validation--animate-in"],a&&sr[`FormControl-validation--${a}`]),children:["error"===a&&(0,e.jsx)("span",{className:sr["FormControl-validation-icon"],children:(0,e.jsx)(re,{})}),"success"===a&&(0,e.jsx)("span",{className:sr["FormControl-validation-icon"],children:(0,e.jsx)(te,{})}),r]}),ur=({children:r,className:a,...t})=>(0,e.jsx)("span",{className:_(sr["FormControl-hint"],a),...t,children:r}),hr=Object.assign((({children:r,className:t,hasBorder:n,fullWidth:i,id:o,required:l,size:d="medium",validationStatus:s,...c})=>{const m=Ue(o),u=o||m,h=a().Children.toArray(r).some((e=>a().isValidElement(e)&&(e.type===Je||e.type===dr)));return(0,e.jsx)("section",{id:`FormControl--${u}`,className:_(sr.FormControl,i&&sr["FormControl--fullWidth"],h&&sr["FormControl--checkbox"],n&&sr["FormControl--border"],t),...c,children:a().Children.map(r,(e=>{if(e){const r=`${u}`;return e.type===nr||e.type===ar?a().cloneElement(e,{className:_(e.props.className),id:r,name:e.props.name||r,required:e.props.required||l,validationStatus:e.props.validationStatus||s,fullWidth:i,size:d}):e.type===lr?a().cloneElement(e,{className:_(e.props.className),id:r,name:r,required:e.props.required||l,validationStatus:e.props.validationStatus||s,fullWidth:i,size:d}):e.type===Je?a().cloneElement(e,{className:_(e.props.className),id:r,name:e.props.name||r,required:e.props.required||l,validationStatus:e.props.validationStatus||s}):e.type===dr?a().cloneElement(e,{className:_(h&&sr["FormControl-control--radio"],e.props.className),id:r,name:e.props.name,required:e.props.required||l,validationStatus:e.props.validationStatus||s}):e.type===cr?a().cloneElement(e,{className:_(h&&sr["FormControl-label--checkbox"],e.props.className),htmlFor:r,children:e.props.children,required:l,validationStatus:s,size:d,showRequiredIndicator:!h&&e.props.showRequiredIndicator}):e.type===mr?a().cloneElement(e,{validationStatus:s}):e}}))})}),{Label:cr,Validation:mr,Hint:ur}),gr={Stack:"Primer_Brand__Stack-module__Stack___tASKe","Stack--vertical":"Primer_Brand__Stack-module__Stack--vertical___CFzE7","Stack--horizontal":"Primer_Brand__Stack-module__Stack--horizontal___YJFas","Stack-narrow--vertical":"Primer_Brand__Stack-module__Stack-narrow--vertical___GDT_Z","Stack-narrow--horizontal":"Primer_Brand__Stack-module__Stack-narrow--horizontal___Co6IL","Stack-regular--vertical":"Primer_Brand__Stack-module__Stack-regular--vertical___TMpL8","Stack-regular--horizontal":"Primer_Brand__Stack-module__Stack-regular--horizontal___WDLyR","Stack-wide--vertical":"Primer_Brand__Stack-module__Stack-wide--vertical___G1Eu6","Stack-wide--horizontal":"Primer_Brand__Stack-module__Stack-wide--horizontal___cvxh3","Stack--gap-none":"Primer_Brand__Stack-module__Stack--gap-none___M7T_v","Stack--gap-condensed":"Primer_Brand__Stack-module__Stack--gap-condensed___Xe9jx","Stack--gap-normal":"Primer_Brand__Stack-module__Stack--gap-normal___JEO7_","Stack--gap-spacious":"Primer_Brand__Stack-module__Stack--gap-spacious___w5ugZ","Stack-narrow--gap-none":"Primer_Brand__Stack-module__Stack-narrow--gap-none___YtqsL","Stack-narrow--gap-condensed":"Primer_Brand__Stack-module__Stack-narrow--gap-condensed___zwHUG","Stack-narrow--gap-normal":"Primer_Brand__Stack-module__Stack-narrow--gap-normal___smNw5","Stack-narrow--gap-spacious":"Primer_Brand__Stack-module__Stack-narrow--gap-spacious___TX17G","Stack--padding-none":"Primer_Brand__Stack-module__Stack--padding-none___RCMh9","Stack--padding-condensed":"Primer_Brand__Stack-module__Stack--padding-condensed___mo7Aq","Stack--padding-normal":"Primer_Brand__Stack-module__Stack--padding-normal___ySRTI","Stack--padding-spacious":"Primer_Brand__Stack-module__Stack--padding-spacious___REyye","Stack-narrow--padding-none":"Primer_Brand__Stack-module__Stack-narrow--padding-none___ndsvs","Stack-narrow--padding-condensed":"Primer_Brand__Stack-module__Stack-narrow--padding-condensed___f1f4j","Stack-narrow--padding-normal":"Primer_Brand__Stack-module__Stack-narrow--padding-normal___TQe_D","Stack-narrow--padding-spacious":"Primer_Brand__Stack-module__Stack-narrow--padding-spacious___YeMDB","Stack-regular--gap-none":"Primer_Brand__Stack-module__Stack-regular--gap-none____ZDEx","Stack-regular--gap-condensed":"Primer_Brand__Stack-module__Stack-regular--gap-condensed___ZYYsD","Stack-regular--gap-normal":"Primer_Brand__Stack-module__Stack-regular--gap-normal___dRchQ","Stack-regular--gap-spacious":"Primer_Brand__Stack-module__Stack-regular--gap-spacious___oMqRv","Stack-regular--padding-none":"Primer_Brand__Stack-module__Stack-regular--padding-none____wmhn","Stack-regular--padding-condensed":"Primer_Brand__Stack-module__Stack-regular--padding-condensed___WxLyH","Stack-regular--padding-normal":"Primer_Brand__Stack-module__Stack-regular--padding-normal___oKpGh","Stack-regular--padding-spacious":"Primer_Brand__Stack-module__Stack-regular--padding-spacious___pL7HW","Stack-wide--gap-none":"Primer_Brand__Stack-module__Stack-wide--gap-none___V9yZQ","Stack-wide--gap-condensed":"Primer_Brand__Stack-module__Stack-wide--gap-condensed___TB7xm","Stack-wide--gap-normal":"Primer_Brand__Stack-module__Stack-wide--gap-normal___Et9_A","Stack-wide--gap-spacious":"Primer_Brand__Stack-module__Stack-wide--gap-spacious___WXQyb","Stack-wide--padding-none":"Primer_Brand__Stack-module__Stack-wide--padding-none___GEcfF","Stack-wide--padding-condensed":"Primer_Brand__Stack-module__Stack-wide--padding-condensed___heIOO","Stack-wide--padding-normal":"Primer_Brand__Stack-module__Stack-wide--padding-normal___Pdr2C","Stack-wide--padding-spacious":"Primer_Brand__Stack-module__Stack-wide--padding-spacious___d_AmA","Stack--align-items-flex-end":"Primer_Brand__Stack-module__Stack--align-items-flex-end___cJG6k","Stack--align-items-flex-start":"Primer_Brand__Stack-module__Stack--align-items-flex-start___Vh1Ca","Stack--align-items-center":"Primer_Brand__Stack-module__Stack--align-items-center___xWKxj","Stack-narrow--align-items-flex-end":"Primer_Brand__Stack-module__Stack-narrow--align-items-flex-end___bXiXc","Stack-narrow--align-items-flex-start":"Primer_Brand__Stack-module__Stack-narrow--align-items-flex-start___eBtSy","Stack-narrow--align-items-center":"Primer_Brand__Stack-module__Stack-narrow--align-items-center___jZIXU","Stack-regular--align-items-flex-end":"Primer_Brand__Stack-module__Stack-regular--align-items-flex-end___JlKOr","Stack-regular--align-items-flex-start":"Primer_Brand__Stack-module__Stack-regular--align-items-flex-start___jusm2","Stack-regular--align-items-center":"Primer_Brand__Stack-module__Stack-regular--align-items-center___tY013","Stack-wide--align-items-flex-end":"Primer_Brand__Stack-module__Stack-wide--align-items-flex-end___z5xxr","Stack-wide--align-items-flex-start":"Primer_Brand__Stack-module__Stack-wide--align-items-flex-start___QKRoP","Stack-wide--align-items-center":"Primer_Brand__Stack-module__Stack-wide--align-items-center___DUG9C","Stack--justify-content-flex-end":"Primer_Brand__Stack-module__Stack--justify-content-flex-end___mp2Ka","Stack--justify-content-flex-start":"Primer_Brand__Stack-module__Stack--justify-content-flex-start___VIkHJ","Stack--justify-content-center":"Primer_Brand__Stack-module__Stack--justify-content-center___uZGXl","Stack--justify-content-space-between":"Primer_Brand__Stack-module__Stack--justify-content-space-between___r8E3d","Stack--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack--justify-content-space-evenly___G1eGw","Stack--justify-content-space-around":"Primer_Brand__Stack-module__Stack--justify-content-space-around___kqm4D","Stack-narrow--justify-content-flex-end":"Primer_Brand__Stack-module__Stack-narrow--justify-content-flex-end___QUDo3","Stack-narrow--justify-content-flex-start":"Primer_Brand__Stack-module__Stack-narrow--justify-content-flex-start___fNLJd","Stack-narrow--justify-content-center":"Primer_Brand__Stack-module__Stack-narrow--justify-content-center___kdlmI","Stack-narrow--justify-content-space-between":"Primer_Brand__Stack-module__Stack-narrow--justify-content-space-between___w7Ki5","Stack-narrow--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack-narrow--justify-content-space-evenly___ntQwA","Stack-narrow--justify-content-space-around":"Primer_Brand__Stack-module__Stack-narrow--justify-content-space-around___NHZVk","Stack-regular--justify-content-flex-end":"Primer_Brand__Stack-module__Stack-regular--justify-content-flex-end___B0xmt","Stack-regular--justify-content-flex-start":"Primer_Brand__Stack-module__Stack-regular--justify-content-flex-start___DtA1j","Stack-regular--justify-content-center":"Primer_Brand__Stack-module__Stack-regular--justify-content-center___oEcdF","Stack-regular--justify-content-space-between":"Primer_Brand__Stack-module__Stack-regular--justify-content-space-between___F1gqO","Stack-regular--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack-regular--justify-content-space-evenly___xZdXl","Stack-regular--justify-content-space-around":"Primer_Brand__Stack-module__Stack-regular--justify-content-space-around___nSDM4","Stack-wide--justify-content-flex-end":"Primer_Brand__Stack-module__Stack-wide--justify-content-flex-end___Hztn5","Stack-wide--justify-content-flex-start":"Primer_Brand__Stack-module__Stack-wide--justify-content-flex-start___gnhnO","Stack-wide--justify-content-center":"Primer_Brand__Stack-module__Stack-wide--justify-content-center___XxA7G","Stack-wide--justify-content-space-between":"Primer_Brand__Stack-module__Stack-wide--justify-content-space-between___HEm_x","Stack-wide--justify-content-space-evenly":"Primer_Brand__Stack-module__Stack-wide--justify-content-space-evenly___Hgs5B","Stack-wide--justify-content-space-around":"Primer_Brand__Stack-module__Stack-wide--justify-content-space-around___B30C2"},pr=["horizontal","vertical"],fr=pr[1],vr=["none","condensed","normal","spacious"],xr=vr[1],br=["center","flex-start","flex-end"],wr=[...br,"space-between","space-around","space-evenly"],Br=(0,r.forwardRef)((({children:a,direction:t=fr,gap:n=xr,alignItems:i,padding:o=xr,justifyContent:l,className:d,...s},c)=>{const m=(0,r.useMemo)((()=>"string"==typeof t?gr[`Stack--${t}`]:Object.keys(t).map((e=>gr[`Stack-${e}--${t[e]}`])).join(" ")),[t]),u=(0,r.useMemo)((()=>"string"==typeof n?gr[`Stack--gap-${n}`]:Object.keys(n).map((e=>gr[`Stack-${e}--gap-${n[e]}`])).join(" ")),[n]),h=(0,r.useMemo)((()=>"string"==typeof o?gr[`Stack--padding-${o}`]:Object.keys(o).map((e=>gr[`Stack-${e}--padding-${o[e]}`])).join(" ")),[o]),g=(0,r.useMemo)((()=>"string"==typeof i?gr[`Stack--align-items-${i}`]:"object"==typeof i?Object.keys(i).map((e=>gr[`Stack-${e}--align-items-${i[e]}`])).join(" "):null),[i]),p=(0,r.useMemo)((()=>"string"==typeof l?gr[`Stack--justify-content-${l}`]:"object"==typeof l?Object.keys(l).map((e=>gr[`Stack-${e}--justify-content-${l[e]}`])).join(" "):null),[l]);return(0,e.jsx)("div",{ref:c,className:_(gr.Stack,m,u,g,p,h,d),...s,children:a})})),Tr={Avatar:"Primer_Brand__Avatar-module__Avatar___QrJMw","Avatar--shape-circle":"Primer_Brand__Avatar-module__Avatar--shape-circle___VvaB7","Avatar--shape-square":"Primer_Brand__Avatar-module__Avatar--shape-square___hKak4",Avatar__image:"Primer_Brand__Avatar-module__Avatar__image___AajXN","Avatar--size-32":"Primer_Brand__Avatar-module__Avatar--size-32___vJxfW","Avatar--size-40":"Primer_Brand__Avatar-module__Avatar--size-40___RSkow","Avatar--size-48":"Primer_Brand__Avatar-module__Avatar--size-48___TvwXR","Avatar--size-64":"Primer_Brand__Avatar-module__Avatar--size-64___rovws","Avatar--size-80":"Primer_Brand__Avatar-module__Avatar--size-80___YDbIK","Avatar-narrow--size-32":"Primer_Brand__Avatar-module__Avatar-narrow--size-32___wmqNx","Avatar-narrow--size-40":"Primer_Brand__Avatar-module__Avatar-narrow--size-40___JnS3w","Avatar-narrow--size-48":"Primer_Brand__Avatar-module__Avatar-narrow--size-48___X8e2V","Avatar-regular--size-32":"Primer_Brand__Avatar-module__Avatar-regular--size-32___f5goH","Avatar-regular--size-40":"Primer_Brand__Avatar-module__Avatar-regular--size-40___Qaf20","Avatar-regular--size-48":"Primer_Brand__Avatar-module__Avatar-regular--size-48___db8dV","Avatar-regular--size-64":"Primer_Brand__Avatar-module__Avatar-regular--size-64___rBoTS","Avatar-regular--size-80":"Primer_Brand__Avatar-module__Avatar-regular--size-80___AKjNL","Avatar-wide--size-32":"Primer_Brand__Avatar-module__Avatar-wide--size-32___Kn8pg","Avatar-wide--size-40":"Primer_Brand__Avatar-module__Avatar-wide--size-40___DBSrS","Avatar-wide--size-48":"Primer_Brand__Avatar-module__Avatar-wide--size-48___ai2Hf","Avatar-wide--size-64":"Primer_Brand__Avatar-module__Avatar-wide--size-64___FLSak","Avatar-wide--size-80":"Primer_Brand__Avatar-module__Avatar-wide--size-80___h09bA"},Sr=[32,40,48,64,80],Pr=["circle","square"],kr={root:"Avatar",get image(){return`${this.root}__image`}},Nr=(0,r.forwardRef)((({alt:a,className:t,size:n=Sr[1],shape:i=Pr[0],"data-testid":o,src:l,...d},s)=>{const c=(0,r.useMemo)((()=>"number"==typeof n?Tr[`Avatar--size-${n}`]:Object.keys(n).map((e=>Tr[`Avatar-${e}--size-${n[e]}`])).join(" ")),[n]);return(0,e.jsx)("span",{ref:s,className:_(Tr.Avatar,c,Tr[`Avatar--shape-${i}`],t),"data-testid":o||kr.root,children:(0,e.jsx)("img",{className:_(Tr.Avatar__image),src:l,alt:a,"data-testid":kr.image,...d})})})),Ar=Object.assign(Nr,{testIds:kr}),yr={Testimonial:"Primer_Brand__Testimonial-module__Testimonial___UUywT","Testimonial--center":"Primer_Brand__Testimonial-module__Testimonial--center___NyPe5","Testimonial-quote":"Primer_Brand__Testimonial-module__Testimonial-quote___QXF1F","Testimonial-from":"Primer_Brand__Testimonial-module__Testimonial-from___Kfj__","Testimonial-logo-image":"Primer_Brand__Testimonial-module__Testimonial-logo-image___KQQfi"},jr=(0,r.forwardRef)((function({align:r,className:t,children:n,...i},o){return(0,e.jsxs)("figure",{ref:o,className:_(yr.Testimonial,r&&yr[`Testimonial--${r}`],t),...i,children:[a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Cr)return e})),a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Hr)return e})),a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Ir)return e})),a().Children.map(n,(e=>{if(a().isValidElement(e)&&e.type===Er)return e}))]})})),Cr=(0,r.forwardRef)((function({children:r,className:a},t){return(0,e.jsx)("blockquote",{ref:t,children:(0,e.jsx)(f,{size:"300",className:_(yr["Testimonial-quote"],a),children:r})})})),Hr=(0,r.forwardRef)((function({children:r,className:a,position:t},n){return(0,e.jsx)("figcaption",{ref:n,children:(0,e.jsxs)(f,{size:"200",className:_(yr["Testimonial-from"],a),variant:"muted",children:[r," ",t&&(0,e.jsxs)("span",{children:[" // ",t]})]})})})),Er=(0,r.forwardRef)((function({children:r,...t},n){return(0,e.jsx)("div",{className:yr["Testimonial-logo"],...t,children:a().Children.map(r,(e=>{if(a().isValidElement(e)&&"img"===e.type)return a().cloneElement(e,{className:_(yr["Testimonial-logo-image"]),ref:n})}))})})),Ir=function({size:r,...a}){return(0,e.jsx)(Ar,{size:48,...a})},Lr=Object.assign(jr,{Quote:Cr,Name:Hr,Avatar:Ir,Logo:Er}),Rr={"ComparisonTable--heading":"Primer_Brand__ComparisonTable-module__ComparisonTable--heading___CeSsH","ComparisonTable-footnote":"Primer_Brand__ComparisonTable-module__ComparisonTable-footnote___rf35Q",ComparisonTable:"Primer_Brand__ComparisonTable-module__ComparisonTable___N2YLX","ComparisonTable-cell":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell___kifYR","ComparisonTable-cell-heading":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading___QlGCM","ComparisonTable-cell-container":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-container___AHNr0","ComparisonTable-inline-cell-label":"Primer_Brand__ComparisonTable-module__ComparisonTable-inline-cell-label___hE3hL","ComparisonTable--hide-element-on-narrow":"Primer_Brand__ComparisonTable-module__ComparisonTable--hide-element-on-narrow___GnYyu","ComparisonTable-cell-heading--first":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading--first___Ps2aK","ComparisonTable-cell-heading-label--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading-label--featured___c_wMH","ComparisonTable-cell--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell--featured___f0LZk","ComparisonTable-cell-heading--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-heading--featured___tkzzb","ComparisonTable-cell--lastrow":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell--lastrow___zmShm","ComparisonTable-cell-container--featured":"Primer_Brand__ComparisonTable-module__ComparisonTable-cell-container--featured___x6tKO"},zr=(0,r.forwardRef)((({as:t,children:n,heading:i,featuredColumn:o=1,variant:l="default",...d},s)=>{const c=t||"section",m=(0,r.useMemo)((()=>a().Children.toArray(n).filter((e=>a().isValidElement(e)&&"string"!=typeof e.type))),[n]),u=m.map(((r,t)=>{if(a().isValidElement(r)&&"string"!=typeof r.type&&r.type===Fr&&0===t)return a().cloneElement(r,{className:_(Rr["ComparisonTable-row"],r.props.className),children:a().Children.map(r.props.children,((t,n)=>{if(t.type===Mr)return a().cloneElement(t,{as:"th",className:_(Rr["ComparisonTable-cell"],Rr["ComparisonTable-cell-heading"],Rr[`ComparisonTable-cell-heading--${l}`],0===n&&Rr["ComparisonTable-cell-heading--first"],n===o&&Rr["ComparisonTable-cell-heading--featured"],r.props.className),children:(0,e.jsx)("span",{className:_(n===o&&Rr["ComparisonTable-cell-heading-label--featured"]),children:t.props.children})})}))})})).filter(Boolean),h=(0,r.useMemo)((()=>a().Children.map(n[0].props.children,(e=>{const{children:r=""}=e.props;return r}))),[n]),[,...g]=a().Children.map(n,(e=>a().isValidElement(e)&&e.type===Fr?e:null)),p=g.map(((r,t)=>a().cloneElement(r,{className:_(Rr["ComparisonTable-row"],`ComparisonTable-row--${t}`,r.props.className),children:a().Children.map(r.props.children,((a,n)=>{if(a.type===Mr)return(0,e.jsxs)(Mr,{...a.props,as:0===n?"th":"td",className:_(Rr["ComparisonTable-cell"],Rr[`ComparisonTable-cell--${l}`],0===n&&Rr["ComparisonTable-cell-heading"],0===n&&Rr[`ComparisonTable-cell-heading--${l}`],n===o&&Rr["ComparisonTable-cell--featured"],g.length-1===t&&Rr["ComparisonTable-cell--lastrow"],r.props.className),children:[n>=1&&(0,e.jsx)("span",{className:_(Rr["ComparisonTable-inline-cell-label"],Rr["ComparisonTable--hide-element-on-narrow"],n===o&&Rr["ComparisonTable-cell-heading-label--featured"]),children:h[n]}),(0,e.jsx)("span",{className:_(Rr["ComparisonTable-cell-container"],n===o&&Rr["ComparisonTable-cell-container--featured"]),children:a.props.children})]})}))}))),f=m.find((e=>a().isValidElement(e)&&e.type===Or));return(0,e.jsxs)(c,{ref:s,...d,children:[i&&(0,e.jsx)(I,{className:Rr["ComparisonTable--heading"],as:"h3",children:i}),(0,e.jsxs)("table",{className:_(Rr.ComparisonTable,`ComparisonTable--${l}`),children:[u.length&&(0,e.jsx)("thead",{children:u}),p.length&&(0,e.jsx)("tbody",{children:p})]}),f&&(0,e.jsx)("footer",{className:Rr["ComparisonTable-footnote"],children:f})]})})),Fr=({children:r,...a})=>(0,e.jsx)("tr",{...a,children:r}),Mr=({as:r,children:a,...t})=>{const n=r||"td";return(0,e.jsx)(n,{...t,children:a})},Or=({children:r,...a})=>"string"==typeof r?(0,e.jsx)(f,{as:"p",size:"200",variant:"muted",children:r}):(0,e.jsx)("div",{...a,children:r}),Vr=Object.assign(zr,{Row:Fr,Cell:Mr,Footnote:Or}),$r={AnchorNav:"Primer_Brand__AnchorNav-module__AnchorNav___bwgAJ","AnchorNav--with-default-background-color":"Primer_Brand__AnchorNav-module__AnchorNav--with-default-background-color___aFdXc","AnchorNav--stuck":"Primer_Brand__AnchorNav-module__AnchorNav--stuck___AtvLO","AnchorNav--expanded":"Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk","AnchorNav-link-container":"Primer_Brand__AnchorNav-module__AnchorNav-link-container___VpHV2","AnchorNav-inner-container":"Primer_Brand__AnchorNav-module__AnchorNav-inner-container___lshlZ","AnchorNav-inner-container--expanded":"Primer_Brand__AnchorNav-module__AnchorNav-inner-container--expanded____aoje","AnchorNav-link":"Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2","fade-in":"Primer_Brand__AnchorNav-module__fade-in___KfA_2","AnchorNav-link--is-active":"Primer_Brand__AnchorNav-module__AnchorNav-link--is-active___xbYDS","AnchorNav-link--center":"Primer_Brand__AnchorNav-module__AnchorNav-link--center___aryYq","AnchorNav-link--start":"Primer_Brand__AnchorNav-module__AnchorNav-link--start___COZM3","AnchorNav-link-label":"Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK","AnchorNav-link-label--is-active":"Primer_Brand__AnchorNav-module__AnchorNav-link-label--is-active___DyUFY","focus-visible":"Primer_Brand__AnchorNav-module__focus-visible___dsg4c","AnchorNav-menu-button":"Primer_Brand__AnchorNav-module__AnchorNav-menu-button___tputP","AnchorNav-menu-button-arrow":"Primer_Brand__AnchorNav-module__AnchorNav-menu-button-arrow___v5tcA","AnchorNav-overlay--expanded":"Primer_Brand__AnchorNav-module__AnchorNav-overlay--expanded___xXv6O","AnchorNav-action":"Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE"},Wr={root:"AnchorNav",get menuButton(){return`${this.root}-menu-button`},get menuLinks(){return`${this.root}-menu-links`},get action(){return`${this.root}-action`}};function Dr({alignment:a="start",children:t,href:n,isActive:i,toggleMenuCallback:o,prefersReducedMotion:l,intersectionOptions:d={rootMargin:"middle"},updateCurrentActiveNav:s,...c}){const[m,u]=(0,r.useState)(),{isLarge:h}=be(),[g,p]=(0,r.useState)(),v=/^#/.test(n),x=v?n.replace(/^#/,""):n,b=!!g?.isIntersecting,w=([e])=>{p(e)};(0,r.useEffect)((()=>{const e=document.querySelector(v?n:`#${n}`);if(!window.IntersectionObserver||!e)return;const r="start"===d.rootMargin?"0px 0px -100%":"-50% 0% -50% 0%",a=new IntersectionObserver(w,{threshold:0,root:null,rootMargin:r});return a.observe(e),()=>a.disconnect()}),[n,d.rootMargin,v]),(0,r.useEffect)((()=>{const e=document.querySelector(v?n:`#${n}`);if(!e)return;const r=document.body.getBoundingClientRect().top,a=e.getBoundingClientRect().top;u(a-r+0)}),[n,v]),(0,r.useEffect)((()=>{b&&s&&"string"==typeof t&&s(t)}),[b,t,s]);const B=(0,r.useCallback)((e=>{e.preventDefault();const r=l?"auto":"smooth";o&&!h&&o(),window.scrollTo({top:m,behavior:r})}),[h,m,o,l]);return(0,e.jsx)("a",{className:_($r["AnchorNav-link"],$r[`AnchorNav-link--${a}`],b&&$r["AnchorNav-link--is-active"]),href:v?n:`#${n}`,"aria-describedby":x,"aria-current":b&&"true","data-first":i,"data-active":b?"true":"false",onClick:B,...c,children:(0,e.jsx)(f,{as:"span",className:_($r["AnchorNav-link-label"],b&&$r["AnchorNav-link-label--is-active"]),children:t})})}function qr({children:r,href:a,...t}){return(0,e.jsx)(P,{as:"a",variant:"secondary",className:_($r["AnchorNav-action"]),href:a,hasArrow:!1,"data-testid":Wr.action,...t,children:r})}const Qr=Object.assign((function({children:t,enableDefaultBgColor:n=!1,...i}){const[o,l]=(0,r.useState)(!1),[d,s]=(0,r.useState)(!1),[c,m]=(0,r.useState)(),[u,h]=(0,r.useState)(),[g,p]=(0,r.useState)(),[v,x]=(0,r.useState)(!1),b=(0,r.useRef)(null),w=(0,r.useRef)(null),B=(0,r.useRef)(null),{isLarge:T}=be(),S=Ue(),P=(0,r.useCallback)((()=>l(!1)),[l]),k=(0,r.useCallback)((()=>l(!o)),[o]),N=(0,r.useMemo)((()=>a().Children.toArray(t).filter((e=>a().isValidElement(e)&&"string"!=typeof e.type))),[t]);(0,r.useEffect)((()=>{void 0===g&&u&&p(u.boundingClientRect.y)}),[g,u]);const A=([e])=>{h(e)};var y,j,C,H;xe(P),y=o,j=B,C=w,H=!T,(0,r.useEffect)((()=>{y&&H?document.body.classList.add("AnchorNav--no-bg-scroll"):document.body.classList.remove("AnchorNav--no-bg-scroll")}),[y,H]),(0,r.useEffect)((()=>{if(y){const e=j.current?.firstChild;e.focus()}}),[y,j]),(0,r.useEffect)((()=>{const e=C.current,r=j.current,a=r?.nextSibling,t=r?.children;let n=0;const i=i=>{if(!y||!r||!t||t.length<=1)return;const _=t[t.length-1],o=t.length-1;if("Tab"===i.key&&(i.preventDefault(),a?.focus()),i.shiftKey&&"Tab"===i.key&&(i.preventDefault(),e?.focus()),"ArrowDown"===i.key){if(i.preventDefault(),n===o)return t[0].focus(),void(n=0);if(n<o)return t[n+1].focus(),void(n+=1)}else if("ArrowUp"===i.key)return i.preventDefault(),0===n?(_.focus(),void(n=o)):(t[n-1].focus(),void n--)};return r?.addEventListener("keydown",i),()=>r?.addEventListener("keydown",i)}),[y,j,C]),(0,r.useEffect)((()=>{const e=window.matchMedia("(prefers-reduced-motion: reduce)");s(e.matches)}),[]),(0,r.useEffect)((()=>{const e=()=>{if(g){const e=window.pageYOffset>g;x(!!e)}};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[g]),(0,r.useEffect)((()=>{const e=b.current;if(!window.IntersectionObserver||!e)return;const r=new IntersectionObserver(A,{threshold:0,root:null,rootMargin:"0px 0px -100%"});return r.observe(e),()=>r.disconnect()}),[]);const E=(0,r.useCallback)((e=>{e?.preventDefault(),k()}),[k]),I=(0,r.useCallback)((e=>{m(e)}),[m]),L=N.filter((e=>a().isValidElement(e)&&e.type===Dr)).length,R=N.map(((e,r)=>{if(a().isValidElement(e)&&e.type===Dr){const t={toggleMenuCallback:k,prefersReducedMotion:d,updateCurrentActiveNav:I,alignment:L<4?"start":"center"};return a().cloneElement(e,{isActive:0===r,...t})}return null})).filter(Boolean).slice(0,5),z=N.map((e=>a().isValidElement(e)&&e.type===qr?a().cloneElement(e):null)).filter(Boolean);return(0,e.jsxs)("nav",{ref:b,className:_($r.AnchorNav,v&&$r["AnchorNav--stuck"],o&&$r["AnchorNav--expanded"],n&&$r["AnchorNav--with-default-background-color"]),...i,children:[(0,e.jsxs)("div",{className:_($r["AnchorNav-inner-container"],o&&$r["AnchorNav-inner-container--expanded"]),children:[(0,e.jsxs)("button",{ref:w,onClick:E,className:_($r["AnchorNav-menu-button"]),"aria-expanded":o?"true":"false","aria-controls":S,"aria-label":(o?"close":"open")+" anchor navigation menu","data-testid":Wr.menuButton,children:[o?(0,e.jsx)(_e,{size:16,className:$r["AnchorNav-menu-button-arrow"],fill:"currentcolor"}):(0,e.jsx)(ne,{size:16,className:$r["AnchorNav-menu-button-arrow"],fill:"currentcolor"}),(0,e.jsx)(f,{as:"span",className:_($r["AnchorNav-link-label"]),children:c})]}),(0,e.jsx)("div",{id:S,"data-testid":Wr.menuLinks,className:$r["AnchorNav-link-container"],ref:B,children:R}),z]}),(0,e.jsx)("span",{className:_(o&&$r["AnchorNav-overlay--expanded"]),onClick:P,"aria-hidden":!0})]})}),{Link:Dr,Action:qr,testIds:Wr}),Ur=(0,r.forwardRef)((({align:r="start",hasBorder:a=!1,hasShadow:t=!0,hasBackground:n=!0,className:i,children:o,...l},d)=>(0,e.jsx)("section",{ref:d,className:_("Primer_Brand__CTABanner-module__CTABanner___m0t8s",t&&"Primer_Brand__CTABanner-module__CTABanner--shadow___BA030",i),...l,children:(0,e.jsx)("div",{className:_("Primer_Brand__CTABanner-module__CTABanner-container___iRzd1",a&&"Primer_Brand__CTABanner-module__CTABanner-container--border___FbAer",n&&"Primer_Brand__CTABanner-module__CTABanner-container--background___v1yTH"),children:(0,e.jsx)("div",{className:_("Primer_Brand__CTABanner-module__CTABanner-content___sZo6_","center"===r&&"Primer_Brand__CTABanner-module__CTABanner-content--center___S0ChQ"),children:o})})}))),Gr=A[2],Kr=(0,r.forwardRef)((({as:r=Gr,size:a="2",className:t,children:n,...i},_)=>(0,e.jsx)(I,{ref:_,className:t,size:a,as:r,...i,children:n}))),Jr=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(f,{ref:n,className:_("Primer_Brand__CTABanner-module__CTABanner-description___I7md6",r),size:"400",as:"p",...t,children:a}))),Xr=(0,r.forwardRef)((({className:r,buttonSize:a="large",buttonsAs:t,children:n,...i},_)=>(0,e.jsx)(D,{buttonSize:a,buttonsAs:t,className:r,ref:_,...i,children:n}))),Zr=Object.assign(Ur,{Heading:Kr,Description:Jr,ButtonGroup:Xr}),Yr=(0,r.createContext)({variant:"default"}),ea={ListItem:"Primer_Brand__ListItem-module__ListItem___aFf5u","ListItem__leading-visual":"Primer_Brand__ListItem-module__ListItem__leading-visual___Fu5ba",OrderedList__item:"Primer_Brand__ListItem-module__OrderedList__item___BJsQo"},ra=Object.assign((function({className:a,children:t,...n}){const{variant:i}=(0,r.useContext)(Yr);return(0,e.jsxs)("li",{className:_(ea.ListItem,!i&&ea.OrderedList__item,a),...n,children:[(()=>{switch(i){case"checked":return(0,e.jsx)(ae,{className:_(ea["ListItem__leading-visual"],ea.ListItem__checked)});case"default":return(0,e.jsx)(oe,{className:_(ea["ListItem__leading-visual"],ea.ListItem__default)});default:return null}})(),t]})})),aa="Primer_Brand__list-shared-module__List___dFefs",ta=Object.assign((function({variant:r="default",children:a,...t}){return(0,e.jsx)("ul",{className:_(aa,t.className),...t,children:(0,e.jsx)(Yr.Provider,{value:{variant:r},children:a})})}),{Item:ra}),na=Object.assign((function({children:r,...a}){return(0,e.jsx)("ol",{className:_(aa,"Primer_Brand__OrderedList-module__OrderedList___eCBYV",a.className),...a,children:(0,e.jsx)(Yr.Provider,{value:{variant:""},children:r})})}),{Item:ra}),ia=(0,r.forwardRef)((({className:r,...a},t)=>(0,e.jsx)("form",{ref:t,className:_("Primer_Brand__CTAForm-module__CTAForm___oOV3J",r),...a}))),_a=(0,r.forwardRef)((({className:r,children:t,...n},i)=>{const o=a().Children.toArray(t).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===hr?a().cloneElement(e,{fullWidth:!0,size:"large",required:!0,...e.props}):e));return(0,e.jsx)("div",{ref:i,className:_("Primer_Brand__CTAForm-module__CTAForm-input___sR5r3",r),...n,children:o})})),oa=(0,r.forwardRef)((({className:r,children:t,...n},i)=>{const o=a().Children.toArray(t).map((e=>a().isValidElement(e)&&"string"!=typeof e.type&&e.type===hr?a().cloneElement(e,{fullWidth:!0,size:"large",...e.props}):e));return(0,e.jsx)("div",{ref:i,className:_("Primer_Brand__CTAForm-module__CTAForm-confirm___yTThl",r),...n,children:o})})),la=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(P,{type:"submit",variant:"secondary",className:_("Primer_Brand__CTAForm-module__CTAForm-button___dWqAC",r),ref:n,...t,children:a}))),da=Object.assign(ia,{Input:_a,Confirm:oa,Action:la}),sa="Primer_Brand__MinimalFooter-module__Footer__container___UqVWS",ca=["twitter","github","linkedin","youtube","facebook","twitch","tiktok"];function ma({children:r,className:t}){const n=a().Children.map(r,(e=>a().isValidElement(e)?e.type&&e.type===f?a().cloneElement(e,{as:"p",variant:"muted",size:200,className:_("Primer_Brand__MinimalFooter-module__Footer__terms-item___Z1f1_",e.props.className),...e.props}):void 0:e));return(0,e.jsx)("section",{className:sa,children:(0,e.jsx)("div",{className:_("Primer_Brand__MinimalFooter-module__Footer__terms___ACl36",t),children:n})})}function ua({socialLinks:r,logoHref:a}){const{colorMode:t}=W();return(0,e.jsx)("section",{className:_("Primer_Brand__MinimalFooter-module__Footer__logomarks___Weh9I"),children:(0,e.jsx)("div",{className:sa,children:(0,e.jsxs)(Br,{alignItems:"center",direction:{narrow:"vertical",regular:"horizontal"},gap:"normal",padding:"none",justifyContent:"space-between",children:[(0,e.jsx)("div",{children:(0,e.jsx)("a",{href:a,"data-analytics-event":'{"category":"Footer","action":"go to home","label":"text:home"}',"aria-label":"Go to GitHub homepage",children:(0,e.jsx)(le,{fill:t===R.DARK?"white":"black",size:"medium"})})}),!1!==r?(0,e.jsx)("ul",{className:"Primer_Brand__MinimalFooter-module__Footer__social-links___hRWfd",children:[{name:"twitter",fullName:"Twitter",url:"https://twitter.com/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/twitter.svg",iconWidth:22,iconHeight:18},{name:"github",fullName:"GitHub",url:"https://github.com/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/github-mark.svg",iconWidth:20,iconHeight:20},{name:"linkedin",fullName:"LinkedIn",url:"https://www.linkedin.com/company/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/linkedin.svg",iconWidth:19,iconHeight:18},{name:"youtube",fullName:"YouTube",url:"https://www.youtube.com/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/youtube.svg",iconWidth:23,iconHeight:16},{name:"facebook",fullName:"Facebook",url:"https://www.facebook.com/GitHub",icon:"https://github.githubassets.com/images/modules/site/icons/footer/facebook.svg",iconWidth:18,iconHeight:18},{name:"twitch",fullName:"Twitch",url:"https://www.twitch.tv/github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/twitch.svg",iconWidth:18,iconHeight:18},{name:"tiktok",fullName:"TikTok",url:"https://www.tiktok.com/@github",icon:"https://github.githubassets.com/images/modules/site/icons/footer/tiktok.svg",iconWidth:18,iconHeight:18}].map((a=>r&&!r.includes(a.name)?null:(r=>(0,e.jsx)("li",{children:(0,e.jsxs)("a",{href:r.url,"data-analytics-event":`{"category":"Footer","action":"go to ${r.fullName}","label":"text:${r.name}"}`,children:[(0,e.jsx)("img",{className:"Primer_Brand__MinimalFooter-module__Footer__social-icon___SxNsP",src:r.icon,height:r.iconHeight,width:r.iconWidth,loading:"lazy",decoding:"async",alt:""}),(0,e.jsxs)("span",{className:"visually-hidden",children:["GitHub on ",r.fullName]})]})},r.name))(a)))}):(0,e.jsx)(e.Fragment,{})]})})})}function ha({href:r,children:a}){return(0,e.jsx)("a",{href:r,className:"Primer_Brand__MinimalFooter-module__Footer__link___K13BH","data-analytics-event":`{"category":"Footer","action":"go to ${r}","label":"text:${a}"}`,children:(0,e.jsx)(f,{variant:"muted",size:"300",children:a})})}const ga=Object.assign((function({className:r,children:t,copyrightStatement:n,logoHref:i="https://github.com",socialLinks:o,...l}){const d=a().Children.toArray(t).filter((e=>{if(a().isValidElement(e)&&e.type===ha)return e})).slice(0,5),s=(new Date).getFullYear();return(0,e.jsxs)("footer",{className:_("Primer_Brand__MinimalFooter-module__Footer___oqJdA",r),...l,children:[a().Children.toArray(t).find((e=>!!a().isValidElement(e)&&(!(!e.type||e.type!==ma)||void 0))),(0,e.jsx)(ua,{socialLinks:o,logoHref:i}),(0,e.jsx)("section",{children:(0,e.jsx)("div",{className:"Primer_Brand__MinimalFooter-module__Footer__legal-and-links___gaF8g",children:(0,e.jsx)("div",{className:sa,children:(0,e.jsxs)(Br,{direction:{narrow:"vertical",regular:"horizontal"},gap:"normal",padding:"none",justifyContent:"space-between",children:[(0,e.jsx)(Br,{padding:"none",gap:"condensed",justifyContent:{narrow:"center",regular:"flex-end"},direction:{narrow:"vertical",regular:"horizontal"},className:"Primer_Brand__MinimalFooter-module__Footer__links___sXNki",children:(0,e.jsx)(e.Fragment,{children:d})}),(0,e.jsx)(f,{as:"p",size:"300",variant:"muted",className:"Primer_Brand__MinimalFooter-module__Footer__copyright___c9JB5",children:n||`© ${s} GitHub. All rights reserved.`})]})})})})]})}),{Footnotes:ma,Link:ha}),pa=(0,r.forwardRef)((({onMouseEnter:t,onMouseLeave:n,onFocus:i,onBlur:o,children:d,className:s,ctaText:c="Learn more",href:m,...u},h)=>{const[g,p]=a().useState(!1),[v,x]=a().useState(!1),b=(0,r.useCallback)((e=>{p(!g),t?.(e)}),[t,g]),w=(0,r.useCallback)((e=>{p(!g),n?.(e)}),[n,g]),B=(0,r.useCallback)((e=>{x(!v),i?.(e)}),[i,v]),T=(0,r.useCallback)((e=>{x(!v),o?.(e)}),[o,v]),S=a().Children.toArray(d).filter((e=>!(!a().isValidElement(e)||"string"==typeof e.type||!(0,Re.isFragment)(e)&&e.type!==fa&&e.type!==va&&e.type!==xa)));return(0,e.jsxs)("a",{href:m,className:_("Primer_Brand__Card-module__Card___ByGEk",s),onMouseEnter:b,onMouseLeave:w,onFocus:B,onBlur:T,ref:h,...u,children:[S,(0,e.jsxs)("div",{className:"Primer_Brand__Card-module__Card__action___C6sRY",children:[(0,e.jsx)(f,{as:"span",size:"300",className:_(je["Link--label"]),children:c}),(0,e.jsx)(l,{className:je["Link-arrow"],expanded:g||v})]})]})})),fa=(0,r.forwardRef)((({children:r,className:a,...t},n)=>(0,e.jsx)("span",{className:_("Primer_Brand__Card-module__Card__label___EAot7",a),ref:n,...t,children:(0,e.jsx)(f,{as:"span",size:"200",className:"Primer_Brand__Card-module__Card__label--text___xDz7u",children:r})}))),va=(0,r.forwardRef)((({children:r,as:a=A[2],className:t,...n},i)=>(0,e.jsx)(I,{size:"6",className:_("Primer_Brand__Card-module__Card__heading___INFhp",t),ref:i,as:a,...n,children:r}))),xa=(0,r.forwardRef)((({children:r,className:a,...t},n)=>(0,e.jsx)(f,{variant:"muted",ref:n,size:"300",as:"p",className:_("Primer_Brand__Card-module__Card__description___KN9CH",a),...t,children:r}))),ba=Object.assign(pa,{Label:fa,Heading:va,Description:xa}),wa={SectionIntro:"Primer_Brand__SectionIntro-module__SectionIntro___RduRB","SectionIntro--align-start":"Primer_Brand__SectionIntro-module__SectionIntro--align-start___C59mu","SectionIntro--align-center":"Primer_Brand__SectionIntro-module__SectionIntro--align-center___qU_a9","SectionIntro-heading":"Primer_Brand__SectionIntro-module__SectionIntro-heading___u6_Wl","SectionIntro-description":"Primer_Brand__SectionIntro-module__SectionIntro-description___Sz93l","SectionIntro-link":"Primer_Brand__SectionIntro-module__SectionIntro-link___dePuF"},Ba=(0,r.forwardRef)((({align:r="start",className:a,children:t,...n},i)=>(0,e.jsx)("header",{ref:i,className:_(wa.SectionIntro,wa[`SectionIntro--align-${r}`],a),...n,children:t}))),Ta=A[1],Sa=(0,r.forwardRef)((({as:r=Ta,size:a="2",className:t,children:n,...i},o)=>(0,e.jsx)(I,{ref:o,className:_(wa["SectionIntro-heading"],t),size:a,as:r,...i,children:n}))),Pa=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(f,{ref:n,className:_(wa["SectionIntro-description"],r),size:"400",as:"p",...t,children:a}))),ka=(0,r.forwardRef)((({className:r,children:a,...t},n)=>(0,e.jsx)(Ce,{ref:n,className:_(wa["SectionIntro-link"],r),size:"large",...t,children:a}))),Na=Object.assign(Ba,{Heading:Sa,Description:Pa,Link:ka}),Aa={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},ya={start:["end","center"],end:["start","center"],center:["end","start"]};const ja="outside-bottom",Ca="start",Ha=4,Ea=4,Ia=!1;function La(e,r,a,t,n,i){const _=r.left+r.width,o=r.top+r.height;let l=-1,d=-1;return"outside-top"===a?l=r.top-n-e.height:"outside-bottom"===a?l=o+n:"outside-left"===a?d=r.left-n-e.width:"outside-right"===a&&(d=_+n),"outside-top"!==a&&"outside-bottom"!==a||(d="start"===t?r.left+i:"center"===t?r.left-(e.width-r.width)/2+i:_-e.width-i),"outside-left"!==a&&"outside-right"!==a||(l="start"===t?r.top+i:"center"===t?r.top-(e.height-r.height)/2+i:o-e.height-i),"inside-top"===a?l=r.top+n:"inside-bottom"===a?l=o-n-e.height:"inside-left"===a?d=r.left+n:"inside-right"===a?d=_-n-e.width:"inside-center"===a&&(d=(_+r.left)/2-e.width/2+n),"inside-top"===a||"inside-bottom"===a?d="start"===t?r.left+i:"center"===t?r.left-(e.width-r.width)/2+i:_-e.width-i:"inside-left"!==a&&"inside-right"!==a&&"inside-center"!==a||(l="start"===t?r.top+i:"center"===t?r.top-(e.height-r.height)/2+i:o-e.height-i),{top:l,left:d}}function Ra(e,r,a,t){return"outside-top"===e||"outside-bottom"===e?r.top<a.top||r.top+t.height>a.height+a.top:r.left<a.left||r.left+t.width>a.width+a.left}function za(e,r,a,t){return"end"===e?r.left<a.left:"start"===e||"center"===e?r.left+t.width>a.left+a.width||r.left<a.left:void 0}function Fa(e,a=[]){const t=e?.floatingElementRef,n=e?.anchorElementRef,[i,_]=(0,r.useState)(void 0),o=(0,r.useCallback)((()=>{t.current instanceof Element&&n.current instanceof Element?_(function(e,r,a={}){const t=function(e){let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),n=function(e){let r=e;for(;null!==r&&r!==document.body&&"visible"===getComputedStyle(r).overflow;)r=r.parentNode;const a=r!==document.body&&r instanceof HTMLElement?r:document.body,t=a.getBoundingClientRect(),n=getComputedStyle(a),[i,_,o,l]=[n.borderTopWidth,n.borderLeftWidth,n.borderRightWidth,n.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:t.top+i,left:t.left+_,width:t.width-o-_,height:Math.max(t.height-i-l,a===document.body?window.innerHeight:-1/0)}}(t),i=getComputedStyle(t),_=t.getBoundingClientRect(),[o,l]=[i.borderTopWidth,i.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,a,t,{side:n,align:i,allowOutOfBounds:_,anchorOffset:o,alignmentOffset:l}){const d={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let s=La(a,t,n,i,o,l),c=n,m=i;if(s.top-=r.top,s.left-=r.left,!_){const _=Aa[n];let u=0;if(_){let e=n;for(;u<_.length&&Ra(e,s,d,a);){const n=_[u++];e=n,s=La(a,t,n,i,o,l),s.top-=r.top,s.left-=r.left,c=n}}const h=ya[i];let g=0;if(h){let e=i;for(;g<h.length&&za(e,s,d,a);){const n=h[g++];e=n,s=La(a,t,c,n,o,l),s.top-=r.top,s.left-=r.left,m=n}}s.top<d.top&&(s.top=d.top),s.left<d.left&&(s.left=d.left),s.left+a.width>e.width+d.left&&(s.left=e.width+d.left-a.width),_&&u<_.length&&s.top+a.height>e.height+d.top&&(s.top=e.height+d.top-a.height)}return Object.assign(Object.assign({},s),{anchorSide:c,anchorAlign:m})}(n,{top:_.top+o,left:_.left+l},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,a,t,n,i;const _=null!==(r=e.side)&&void 0!==r?r:ja,o=null!==(a=e.align)&&void 0!==a?a:Ca;return{side:_,align:o,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===_?0:Ha,alignmentOffset:null!==(n=e.alignmentOffset)&&void 0!==n?n:"center"!==o&&_.startsWith("inside")?Ea:0,allowOutOfBounds:null!==(i=e.allowOutOfBounds)&&void 0!==i?i:Ia}}(a))}(t.current,n.current,e)):_(void 0)}),[t,n,...a]);return(0,r.useEffect)(o,[o]),function(e,a){const t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e})),(0,r.useEffect)((()=>{const e=document.documentElement;if(!e)return;const r=new ResizeObserver((e=>{t.current(e)}));return r.observe(e),()=>{r.disconnect()}}),[a])}(o),{floatingElementRef:t,anchorElementRef:n,position:i}}let Ma,Oa=!1;function Va(){}try{const e=Object.create({},{signal:{get(){Oa=!0}}});window.addEventListener("test",Va,e),window.removeEventListener("test",Va,e)}catch(e){}function $a(){return void 0===Ma&&(Ma=/^mac/i.test(window.navigator.platform)),Ma}function*Wa(e,r={}){var a,t;const n=null!==(a=r.strict)&&void 0!==a&&a,i=null!==(t=r.onlyTabbable)&&void 0!==t&&t?qa:Da,_=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&i(e,n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let o=null;if(!r.reverse&&i(e,n)&&(yield e),r.reverse){let e=_.lastChild();for(;e;)o=e,e=_.lastChild()}else o=_.firstChild();for(;o instanceof HTMLElement;)yield o,o=r.reverse?_.previousNode():_.nextNode();r.reverse&&i(e,n)&&(yield e)}function Da(e,r=!1){const a=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,t=e.hidden,n=e instanceof HTMLInputElement&&"hidden"===e.type,i=e.classList.contains("sentinel");if(a||t||n||i)return!1;if(r){const r=0===e.offsetWidth||0===e.offsetHeight,a=["hidden","collapse"].includes(getComputedStyle(e).visibility),t=0===e.getClientRects().length;if(r||a||t)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function qa(e,r=!1){return Da(e,r)&&"-1"!==e.getAttribute("tabindex")}let Qa=1e4;var Ua;Oa||(function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,a,t){return"object"==typeof t&&"signal"in t&&t.signal instanceof AbortSignal&&e.call(t.signal,"abort",(()=>{this.removeEventListener(r,a,t)})),e.call(this,r,a,t)}}(),Oa=!0),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(Ua||(Ua={}));const Ga={ArrowLeft:Ua.ArrowHorizontal,ArrowDown:Ua.ArrowVertical,ArrowUp:Ua.ArrowVertical,ArrowRight:Ua.ArrowHorizontal,h:Ua.HL,j:Ua.JK,k:Ua.JK,l:Ua.HL,a:Ua.AD,s:Ua.WS,w:Ua.WS,d:Ua.AD,Tab:Ua.Tab,Home:Ua.HomeAndEnd,End:Ua.HomeAndEnd,PageUp:Ua.PageUpDown,PageDown:Ua.PageUpDown,Backspace:Ua.Backspace},Ka={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function Ja(e){const r=Ka[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const a=$a();if(a&&e.metaKey||!a&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}const Xa="data-is-active-descendant",Za="data-has-active-descendant";const Ya={ActionMenu:"Primer_Brand__ActionMenu-module__ActionMenu___xAoB5","ActionMenu--disabled":"Primer_Brand__ActionMenu-module__ActionMenu--disabled___Ic5nl",ActionMenu__button:"Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG","focus-visible":"Primer_Brand__ActionMenu-module__focus-visible___hVXW3",ActionMenu__menu:"Primer_Brand__ActionMenu-module__ActionMenu__menu____B9HP","ActionMenu__menu--visible":"Primer_Brand__ActionMenu-module__ActionMenu__menu--visible___dIcw5","overlay-appear":"Primer_Brand__ActionMenu-module__overlay-appear___hIYSP",ActionMenu__item:"Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr","ActionMenu__item--selection-type-single":"Primer_Brand__ActionMenu-module__ActionMenu__item--selection-type-single___ZdivU","ActionMenu__button--active":"Primer_Brand__ActionMenu-module__ActionMenu__button--active___HOEZK","ActionMenu__item-leadingVisual":"Primer_Brand__ActionMenu-module__ActionMenu__item-leadingVisual___UWjE1","ActionMenu__item-text":"Primer_Brand__ActionMenu-module__ActionMenu__item-text___K_1vl","ActionMenu__item-icon":"Primer_Brand__ActionMenu-module__ActionMenu__item-icon___JyMwz","ActionMenu__item-content--disabled":"Primer_Brand__ActionMenu-module__ActionMenu__item-content--disabled___WrxPY","ActionMenu__item-icon--disabled":"Primer_Brand__ActionMenu-module__ActionMenu__item-icon--disabled___Ebefz"},et={root:"ActionMenu",get button(){return`${this.root}-button`},get overlay(){return`${this.root}-overlay`},get list(){return`${this.root}-list`},get item(){return`${this.root}-list-item`}},rt=(0,r.memo)((({id:a,children:t,"data-testid":n,disabled:i,open:o=!1,selectionVariant:l="none",menuAlignment:d="start",onSelect:s})=>{const[c,m]=(0,r.useState)(o),u=(0,r.useRef)(null),h=(0,r.useRef)(null),g=Ue(a);me(u,(()=>m(!1)),h),xe((0,r.useCallback)((()=>{m(!1)}),[]));const p=(0,r.useCallback)((()=>{m(!c)}),[c]),f=(0,r.useCallback)((e=>{s&&s(e),p()}),[s,p]),v=(0,r.useCallback)((e=>{e&&(f(e),p(),h.current?.focus())}),[f,p,h]);(0,r.useEffect)((()=>{if(c&&u.current){const e=u.current;(function(e,r){var a,t,n,i,_;const o=[],l=new WeakMap,d=null!==(a=null==r?void 0:r.bindKeys)&&void 0!==a?a:((null==r?void 0:r.getNextFocusable)?Ua.ArrowAll:Ua.ArrowVertical)|Ua.HomeAndEnd,s=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",c=null!==(n=null==r?void 0:r.focusInStrategy)&&void 0!==n?n:"previous",m=null==r?void 0:r.activeDescendantControl,u=null==r?void 0:r.onActiveDescendantChanged;let h;const g=null!==(i=null==r?void 0:r.preventScroll)&&void 0!==i&&i;function p(){return o[0]}function f(e,r=!1){const a=h;h=e,m?e&&document.activeElement===m?v(a,e,r):x():(a&&a!==e&&l.has(a)&&a.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function v(r,a,t=!1){a.id||a.setAttribute("id","__primer_id_"+Qa++),r&&r!==a&&r.removeAttribute(Xa),m&&(t||m.getAttribute("aria-activedescendant")!==a.id)&&(m.setAttribute("aria-activedescendant",a.id),e.setAttribute(Za,a.id),a.setAttribute(Xa,t?"activated-directly":"activated-indirectly"),null==u||u(a,r,t))}function x(r=h){"first"===c&&(h=void 0),null==m||m.removeAttribute("aria-activedescendant"),e.removeAttribute(Za),null==r||r.removeAttribute(Xa),null==u||u(void 0,r,!1)}function b(...e){const a=e.filter((e=>{var a,t;return null===(t=null===(a=null==r?void 0:r.focusableElementFilter)||void 0===a?void 0:a.call(r,e))||void 0===t||t}));if(0!==a.length){o.splice(function(e){const r=e[0];if(0===o.length)return 0;let a=0,t=o.length-1;for(;a<=t;){const e=Math.floor((a+t)/2);n=r,(o[e].compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)>0?t=e-1:a=e+1}var n;return a}(a),0,...a);for(const e of a)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");h||f(p())}}function w(...e){for(const r of e){const e=o.indexOf(r);e>=0&&o.splice(e,1);const a=l.get(r);void 0!==a&&(null===a?r.removeAttribute("tabindex"):r.setAttribute("tabindex",a),l.delete(r)),r===h&&f(p())}}b(...Wa(e)),f("function"==typeof c?c(document.body):p()),new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...Wa(e));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&b(...Wa(e))})).observe(e,{subtree:!0,childList:!0});const B=new AbortController,T=null!==(_=null==r?void 0:r.abortSignal)&&void 0!==_?_:B.signal;let S;T.addEventListener("abort",(()=>{w(...o)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(S=o.indexOf(e.target))}),{signal:T}),m?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&o.includes(e.target)&&(m.focus({preventScroll:g}),f(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=o.find((r=>r.contains(e)));r&&f(r)}),{signal:T,capture:!0}),m.addEventListener("focusin",(()=>{h?v(void 0,h):f(p())})),m.addEventListener("focusout",(()=>{x()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==S)S>=0&&o[S]!==h&&f(o[S]),S=void 0;else if("previous"===c)f(r.target);else if("closest"===c||"first"===c){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===k?o.length-1:0,r=o[e];return void(null==r||r.focus({preventScroll:g}))}f(r.target)}else if("function"==typeof c)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=c(r.relatedTarget);if((e?o.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:g});console.warn("Element requested is not a known focusable element.")}else f(r.target);k=void 0}),{signal:T});const P=null!=m?m:e;let k;"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(k=Ja(e))}),{signal:T,capture:!0}),P.addEventListener("keydown",(a=>{var t;if(a.key in Ka){const n=Ga[a.key];if(!a.defaultPrevented&&(n&d)>0&&!function(e,r){const a=e.key,t=[...a].length,n=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(n&&(1===t||"Home"===a||"End"===a))return!0;if(r instanceof HTMLSelectElement){if(1===t)return!0;if("ArrowDown"===a&&$a()&&!e.metaKey)return!0;if("ArrowDown"===a&&!$a()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===a||"PageDown"===a))return!0;if(n){const e=r,t=0===e.selectionStart&&0===e.selectionEnd,n=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===a&&!t)return!0;if("ArrowRight"===a&&!n)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===a&&!t)return!0;if("ArrowDown"===a&&!n)return!0}}return!1}(a,document.activeElement)){const n=Ja(a);let i;if((null==r?void 0:r.getNextFocusable)&&(i=r.getNextFocusable(n,null!==(t=document.activeElement)&&void 0!==t?t:void 0,a)),!i){const r=function(){if(!h)return 0;const r=o.indexOf(h);return-1!==r?r:h===e?-1:0}();let t=r;"previous"===n?t-=1:"start"===n?t=0:"next"===n?t+=1:t=o.length-1,t<0&&(t="wrap"===s&&"Tab"!==a.key?o.length-1:0),t>=o.length&&(t="wrap"===s&&"Tab"!==a.key?0:o.length-1),r!==t&&(i=o[t])}m?f(i||h,!0):i&&(k=n,i.focus({preventScroll:g})),("Tab"!==a.key||i)&&a.preventDefault()}}}),{signal:T})})(u.current,{bindKeys:Ua.ArrowVertical}),e.addEventListener("keydown",(e=>{if("Enter"===e.key){const r=e.target;if("true"===r.getAttribute("aria-disabled"))return;const a=r.getAttribute("data-value");a&&(f(a),m(!1),setTimeout((()=>{h.current?.focus()}),10))}}));const r=u.current.querySelector("li");r&&setTimeout((()=>{r.focus()}),10);const a=e.querySelectorAll("li")[e.querySelectorAll("li").length-1];a.addEventListener("keydown",(e=>{"ArrowDown"===e.key&&(e.preventDefault(),r?.focus())})),r?.addEventListener("keydown",(e=>{"ArrowUp"===e.key&&(e.preventDefault(),a.focus())})),e.addEventListener("keydown",(e=>{"Escape"===e.key&&h.current?.focus()}))}}),[c,u,v,p,f]);const{position:x}=Fa({floatingElementRef:u,anchorElementRef:h,side:"outside-bottom",align:d,allowOutOfBounds:!0},[c]),{Button:b,Overlay:w}=r.Children.toArray(t).reduce(((e,a)=>((0,r.isValidElement)(a)&&(a.type===at?e.Button=(0,r.cloneElement)(a,{onClick:p,ref:h,className:_(a.props.className,c&&Ya["ActionMenu__button--active"]),menuOpen:c,disabled:i,id:`${g}-button`}):a.type===nt&&(e.Overlay=(0,r.cloneElement)(a,{ref:u,className:_(Ya.ActionMenu__menu,x&&Ya["ActionMenu__menu--visible"]),style:{top:`${x?.top??0}px`,left:`${x?.left??0}px`},id:`${g}-menu`,children:r.Children.map(a.props.children,(e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{handler:v,type:l}):e))}))),e)),{});return(0,e.jsxs)("div",{id:g,className:_(Ya.ActionMenu,i&&Ya["ActionMenu--disabled"]),"data-testid":n||et.root,children:[b,c?w:null]})})),at=(0,r.forwardRef)((({children:r,className:a,"data-testid":t,disabled:n,menuOpen:i,...o},l)=>(0,e.jsx)(P,{ref:l,className:_(Ya.ActionMenu__button,a),hasArrow:!1,"aria-haspopup":"true","aria-expanded":i?"true":"false",trailingVisual:ne,disabled:n,"data-testid":t||et.button,...o,children:(0,e.jsx)("span",{className:Ya["ActionMenu__button-text"],children:r})}))),tt={none:"menuitem",single:"menuitemradio"},nt=(0,r.forwardRef)((({children:r,className:a,"data-testid":t,menuOpen:n,...i},o)=>(0,e.jsx)("ul",{ref:o,className:_(a),role:"menu","data-testid":t||et.list,...i,children:r}))),it=Object.assign(rt,{Button:at,Item:({children:r,className:a,disabled:t,handler:n,selected:i,type:o,value:l,...d})=>(0,e.jsxs)("li",{className:_(Ya.ActionMenu__item,"single"===o&&Ya[`ActionMenu__item--selection-type-${o}`],a),role:tt[o||"single"],"aria-checked":"none"===o?void 0:i?"true":"false","aria-disabled":t?"true":"false",onClick:n&&!t?()=>n(l):void 0,tabIndex:0,"data-value":l,...d,children:["none"!==o&&(0,e.jsx)("span",{className:Ya["ActionMenu__item-leadingVisual"],children:i&&(0,e.jsx)(ae,{className:_(Ya["ActionMenu__item-icon"],t&&Ya["ActionMenu__item-icon--disabled"]),size:16})}),(0,e.jsx)("span",{className:Ya["ActionMenu__item-text"],children:(0,e.jsx)(f,{variant:t?"muted":"default",size:"300",className:_(t&&Ya["ActionMenu__item-content--disabled"]),children:r})})]}),Overlay:nt,testIds:et})})(),n})()));
|