@cc-openmrs/cc-esm-active-prescriptions 1.0.3 → 1.0.5

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.
@@ -1,2 +1,2 @@
1
- /*! For license information please see 351.js.LICENSE.txt */
2
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[351],{428(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>p});var i=["width","height","viewBox"],s=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(5556),d=n.n(u),f=n(6072);const p=(0,f.forwardRef)(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},d){const{tabindex:p,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=l(e,i),d=u.tabindex,f=l(u,s),p=a(a(a({},c),f),{},{width:t,height:n,viewBox:o});return p["aria-label"]||p["aria-labelledby"]?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}({...u,tabindex:n}),h=m;return e&&(h.className=e),null!=p&&(h.tabIndex="number"==typeof p?p:Number(n)),d&&(h.ref=d),r&&(h.xmlns=r),o&&(h.preserveAspectRatio=o),f.createElement("svg",h,t)});p.displayName="Icon",p.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},810(e,t,n){"use strict";n.d(t,{W1:()=>A,Xj:()=>O,hz:()=>S});var r,o,a,l,i,s,c,u,d,f,p,m,h,g,b,y,v,w,E,N,x,C,T,$,_=n(6072),R=n(428);const S=_.forwardRef(function({children:e,size:t=16,...n},i){return 16===t||"16"===t||"16px"===t?_.createElement(R.A,{width:t,height:t,ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=_.createElement("path",{d:"M6 15 6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15z"})),o||(o=_.createElement("path",{d:"M10 1 10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):_.createElement(R.A,{width:t,height:t,ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=_.createElement("path",{d:"M20 2 20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),l||(l=_.createElement("path",{d:"M14 19.416 12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)}),A=_.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=_.createElement("path",{d:"M2 12H14V13H2z"})),s||(s=_.createElement("path",{d:"M2 9H14V10H2z"})),c||(c=_.createElement("path",{d:"M2 6H14V7H2z"})),u||(u=_.createElement("path",{d:"M2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},d||(d=_.createElement("path",{d:"M2 14.8H18V16H2z"})),f||(f=_.createElement("path",{d:"M2 11.2H18V12.399999999999999H2z"})),p||(p=_.createElement("path",{d:"M2 7.6H18V8.799999999999999H2z"})),m||(m=_.createElement("path",{d:"M2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},h||(h=_.createElement("path",{d:"M3 18H21V19.5H3z"})),g||(g=_.createElement("path",{d:"M3 13.5H21V15H3z"})),b||(b=_.createElement("path",{d:"M3 9H21V10.5H3z"})),y||(y=_.createElement("path",{d:"M3 4.5H21V6H3z"})),e):_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},v||(v=_.createElement("path",{d:"M4 6H28V8H4z"})),w||(w=_.createElement("path",{d:"M4 24H28V26H4z"})),E||(E=_.createElement("path",{d:"M4 12H28V14H4z"})),N||(N=_.createElement("path",{d:"M4 18H28V20H4z"})),e)}),O=_.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},x||(x=_.createElement("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"})),C||(C=_.createElement("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},T||(T=_.createElement("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"})),$||($=_.createElement("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)})},9184(e,t,n){"use strict";n.d(t,{NW:()=>C,Sc:()=>x,_j:()=>T,bm:()=>R,c_:()=>_,yQ:()=>$});var r,o,a,l,i,s,c,u,d,f,p,m,h,g,b,y,v,w,E=n(6072),N=n(428);const x=E.forwardRef(function({children:e,size:t=16,...n},o){return E.createElement(N.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=E.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),e)}),C=E.forwardRef(function({children:e,size:t=16,...n},r){return E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=E.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),a||(a=E.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),e)}),T=E.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},l||(l=E.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),i||(i=E.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=E.createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),c||(c=E.createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=E.createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),d||(d=E.createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),p||(p=E.createElement("path",{fill:"none",d:"M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),e)}),$=E.forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},m||(m=E.createElement("path",{d:"M5 6 0 1 .7.3 5 4.6 9.3.3 10 1z"})),e):16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},h||(h=E.createElement("path",{d:"M8 11 3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},g||(g=E.createElement("path",{d:"M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)}),_=E.forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},b||(b=E.createElement("path",{d:"M6 5 1 10 .3 9.3 4.6 5 .3.7 1 0z"})),e):16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},y||(y=E.createElement("path",{d:"M11 8 6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},v||(v=E.createElement("path",{d:"M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),e)}),R=E.forwardRef(function({children:e,size:t=16,...n},r){return E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},w||(w=E.createElement("path",{d:"M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),e)})},771(e,t,n){"use strict";n.d(t,{$D:()=>b,d3:()=>g,x:()=>y});var r,o,a,l,i,s,c,u,d,f,p,m=n(6072),h=n(428);const g=m.forwardRef(function({children:e,size:t=16,...n},a){return m.createElement(h.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=m.createElement("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"})),o||(o=m.createElement("path",{d:"M4 22H28V24H4z"})),e)}),b=m.forwardRef(function({children:e,size:t=16,...n},r){return m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=m.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)}),y=m.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},l||(l=m.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),i||(i=m.createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=m.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),c||(c=m.createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=m.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),d||(d=m.createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=m.createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),p||(p=m.createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)})},3351(e,t,n){"use strict";n.d(t,{kZS:()=>Yr,$nd:()=>tn,t3h:()=>Lo,KXP:()=>Dr,lRv:()=>zr,Y9Y:()=>Do,V8d:()=>zo,wdv:()=>Ho,dJ2:()=>qo,bCw:()=>Zo,K0:()=>Jt,OuH:()=>yn,Wdr:()=>cn,cwr:()=>Br,jlY:()=>wn,rQ0:()=>dn,XSD:()=>Qr,aaP:()=>Jr,zWQ:()=>no,Psq:()=>eo,vji:()=>so,f8J:()=>Jo,ryE:()=>uo,vwO:()=>go,FAs:()=>ko});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_TILE_CONTRAST?r.enableTileContrast=!0:r.enableTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?r.enableV12TileRadioIcons=!0:r.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?r.enableTreeviewControllable=!0:r.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?r.enableV12StructuredListVisibleIcons=!0:r.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableExperimentalFocusWrapWithoutSentinels=!0:r.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableFocusWrapWithoutSentinels=!0:r.enableFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?r.enableDialogElement=!0:r.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?r.enableV12DynamicFloatingStyles=!0:r.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?r.enableV12ToggleReducedLabelSpacing=!0:r.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?r.enableEnhancedFileUploader=!0:r.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?r.enablePresence=!0:r.enablePresence=!1}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableFocusWrapWithoutSentinels=!1,r.enableDialogElement=!1,r.enableV12DynamicFloatingStyles=!1,r.enableV12ToggleReducedLabelSpacing=!1,r.enableEnhancedFileUploader=!1,r.enablePresence=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Deprecated, use enable-tile-contrast instead\n",enabled:r.enableExperimentalTileContrast},{name:"enable-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:r.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:r.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:r.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Deprecated, use enable-focus-wrap-without-sentinels instead\n",enabled:r.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:r.enableFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:r.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:r.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:r.enableV12ToggleReducedLabelSpacing},{name:"enable-enhanced-file-uploader",description:"Enable enhanced functionality for the FileUploader component, including richer callback data and expanded trigger events for onChange and onDelete.\n",enabled:r.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:r.enablePresence}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var c=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},(t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=l(t.value,2),o=r[0],a=r[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),u=new c(void 0),d=0;d<o.length;d++){var f=o[d];u.add(f.name,f.enabled)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var m=n(5556),h=n.n(m),g=n(6072),b=n.t(g,2),y=n(6942),v=n.n(y);const w={},E=(e,t,n)=>(r,o,a,...l)=>{if(void 0===r[o])return null;if(!w[a]||!w[a][o]){w[a]={...w[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,a,...l)},N="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,x=e=>{const t=(0,g.useMemo)(()=>e,e);return(0,g.useCallback)(e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},[t])},C=g.createContext("cds");function T(){return g.useContext(C)}const $=(e,t,n)=>{const r=(0,g.useRef)(null);(0,g.useEffect)(()=>{r.current=n},[n]),(0,g.useEffect)(()=>{const n="current"in e?e.current:e;if(!n)return;const o=e=>{r.current&&r.current(e)};return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}},[e,t])},_=(e,t)=>{const n=(0,g.useRef)(null);(0,g.useEffect)(()=>{n.current=t},[t]),(0,g.useEffect)(()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[e])},R={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},S=e=>R[e]??e;var A="undefined"!=typeof document?g.useLayoutEffect:function(){};const O={...b}.useInsertionEffect||(e=>e());function k(){return"undefined"!=typeof window}function L(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!k()&&(e instanceof Node||e instanceof M(e).Node)}function D(e){return!!k()&&(e instanceof Element||e instanceof M(e).Element)}function P(e){return!!k()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function z(e){return!(!k()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}n(4848);const H=new Set(["inline","contents"]);function F(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(o)}const V=new Set(["table","td","th"]);function j(e){return V.has(L(e))}const q=[":popover-open",":modal"];function W(e){return q.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const U=["transform","translate","scale","rotate","perspective"],Z=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function G(e){const t=Y(),n=D(e)?J(e):e;return U.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Z.some(e=>(n.willChange||"").includes(e))||K.some(e=>(n.contain||"").includes(e))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const X=new Set(["html","body","#document"]);function Q(e){return X.has(L(e))}function J(e){return M(e).getComputedStyle(e)}function ee(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if("html"===L(e))return e;const t=e.assignedSlot||e.parentNode||z(e)&&e.host||B(e);return z(t)?t.host:t}function ne(e){const t=te(e);return Q(t)?e.ownerDocument?e.ownerDocument.body:e.body:P(t)&&F(t)?t:ne(t)}function re(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ne(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),l=M(o);if(a){const e=oe(l);return t.concat(l,l.visualViewport||[],F(o)?o:[],e&&n?re(e):[])}return t.concat(o,re(o,[],n))}function oe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ae=n(961);const le=["top","right","bottom","left"],ie=Math.min,se=Math.max,ce=Math.round,ue=Math.floor,de=e=>({x:e,y:e}),fe={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function me(e,t,n){return se(e,ie(t,n))}function he(e,t){return"function"==typeof e?e(t):e}function ge(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function ye(e){return"y"===e?"height":"width"}const ve=new Set(["top","bottom"]);function we(e){return ve.has(ge(e))?"y":"x"}function Ee(e){return"x"===we(e)?"y":"x"}function Ne(e){return e.replace(/start|end/g,e=>pe[e])}const xe=["left","right"],Ce=["right","left"],Te=["top","bottom"],$e=["bottom","top"];function _e(e){return e.replace(/left|right|bottom|top/g,e=>fe[e])}function Re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Se(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ae(e,t,n){let{reference:r,floating:o}=e;const a=we(t),l=Ee(t),i=ye(l),s=ge(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(be(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function Oe(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:l,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=he(t,e),m=Re(p),h=i[f?"floating"===d?"reference":"floating":d],g=Se(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating)),v=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=Se(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:y,strategy:s}):b);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function ke(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Le(e){return le.some(t=>e[t]>=0)}const Me=new Set(["left","top"]);function Be(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=P(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:r,i=ce(n)!==a||ce(r)!==l;return i&&(n=a,r=l),{width:n,height:r,$:i}}function Ie(e){return D(e)?e:e.contextElement}function De(e){const t=Ie(e);if(!P(t))return de(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Be(t);let l=(a?ce(n.width):n.width)/r,i=(a?ce(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const Pe=de(0);function ze(e){const t=M(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pe}function He(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Ie(e);let l=de(1);t&&(r?D(r)&&(l=De(r)):l=De(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==M(e))&&t}(a,n,r)?ze(a):de(0);let s=(o.left+i.x)/l.x,c=(o.top+i.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(a){const e=M(a),t=r&&D(r)?M(r):r;let n=e,o=oe(n);for(;o&&r&&t!==n;){const e=De(o),t=o.getBoundingClientRect(),r=J(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=a,c+=l,n=M(o),o=oe(n)}}return Se({width:u,height:d,x:s,y:c})}function Fe(e,t){const n=ee(e).scrollLeft;return t?t.left+n:He(B(e)).left+n}function Ve(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Fe(e,n),y:n.top+t.scrollTop}}const je=new Set(["absolute","fixed"]);function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=M(e),r=B(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,i=0,s=0;if(o){a=o.width,l=o.height;const e=Y();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}const c=Fe(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(a-=l)}else c<=25&&(a+=c);return{width:a,height:l,x:i,y:s}}(e,n);else if("document"===t)r=function(e){const t=B(e),n=ee(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Fe(e);const i=-n.scrollTop;return"rtl"===J(r).direction&&(l+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:l,y:i}}(B(e));else if(D(t))r=function(e,t){const n=He(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=P(e)?De(e):de(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ze(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Se(r)}function We(e,t){const n=te(e);return!(n===t||!D(n)||Q(n))&&("fixed"===J(n).position||We(n,t))}function Ue(e,t,n){const r=P(t),o=B(t),a="fixed"===n,l=He(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const s=de(0);function c(){s.x=Fe(o)}if(r||!r&&!a)if(("body"!==L(t)||F(o))&&(i=ee(t)),r){const e=He(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?de(0):Ve(o,i);return{x:l.left+i.scrollLeft-s.x-u.x,y:l.top+i.scrollTop-s.y-u.y,width:l.width,height:l.height}}function Ze(e){return"static"===J(e).position}function Ke(e,t){if(!P(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function Ge(e,t){const n=M(e);if(W(e))return n;if(!P(e)){let t=te(e);for(;t&&!Q(t);){if(D(t)&&!Ze(t))return t;t=te(t)}return n}let r=Ke(e,t);for(;r&&j(r)&&Ze(r);)r=Ke(r,t);return r&&Q(r)&&Ze(r)&&!G(r)?n:r||function(e){let t=te(e);for(;P(t)&&!Q(t);){if(G(t))return t;if(W(t))return null;t=te(t)}return null}(e)||n}const Ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,l=B(r),i=!!t&&W(t.floating);if(r===l||i&&a)return n;let s={scrollLeft:0,scrollTop:0},c=de(1);const u=de(0),d=P(r);if((d||!d&&!a)&&(("body"!==L(r)||F(l))&&(s=ee(r)),P(r))){const e=He(r);c=De(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||a?de(0):Ve(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?W(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(e=>D(e)&&"body"!==L(e)),o=null;const a="fixed"===J(e).position;let l=a?te(e):e;for(;D(l)&&!Q(l);){const t=J(l),n=G(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&je.has(o.position)||F(l)&&!n&&We(e,l))?r=r.filter(e=>e!==l):o=t,l=te(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],i=a.reduce((e,n)=>{const r=qe(t,n,o);return e.top=se(r.top,e.top),e.right=ie(r.right,e.right),e.bottom=ie(r.bottom,e.bottom),e.left=se(r.left,e.left),e},qe(t,l,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Ge,getElementRects:async function(e){const t=this.getOffsetParent||Ge,n=this.getDimensions,r=await n(e.floating);return{reference:Ue(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Be(e);return{width:t,height:n}},getScale:De,isElement:D,isRTL:function(e){return"rtl"===J(e).direction}};function Xe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Qe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:l,middlewareData:i}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=ge(n),i=be(n),s="y"===we(n),c=Me.has(l)?-1:1,u=a&&s?-1:1,d=he(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&"number"==typeof m&&(p="end"===i?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:l}}}}},Je=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:l,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=he(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=ge(o),y=we(i),v=ge(i)===i,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(v||!h?[_e(i)]:function(e){const t=_e(e);return[Ne(e),t,Ne(t)]}(i)),N="none"!==m;!f&&N&&E.push(...function(e,t,n,r){const o=be(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Ce:xe:t?xe:Ce;case"left":case"right":return t?Te:$e;default:return[]}}(ge(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Ne)))),a}(i,h,m,w));const x=[i,...E],C=await s.detectOverflow(t,g),T=[];let $=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&T.push(C[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=be(e),o=Ee(e),a=ye(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=_e(l)),[l,_e(l)]}(o,l,w);T.push(C[e[0]],C[e[1]])}if($=[...$,{placement:o,overflows:T}],!T.every(e=>e<=0)){var _,R;const e=((null==(_=a.flip)?void 0:_.index)||0)+1,t=x[e];if(t&&("alignment"!==d||y===we(t)||$.every(e=>we(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let n=null==(R=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=$.filter(e=>{if(N){const t=we(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=he(e,t);switch(o){case"referenceHidden":{const e=ke(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Le(e)}}}case"escaped":{const e=ke(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Le(e)}}}default:return{}}}}},tt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:l,elements:i,middlewareData:s}=t,{element:c,padding:u=0}=he(e,t)||{};if(null==c)return{};const d=Re(u),f={x:n,y:r},p=Ee(o),m=ye(p),h=await l.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],E=f[p]-a.reference[p],N=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let x=N?N[v]:0;x&&await(null==l.isElement?void 0:l.isElement(N))||(x=i.floating[v]||a.floating[m]);const C=w/2-E/2,T=x/2-h[m]/2-1,$=ie(d[b],T),_=ie(d[y],T),R=$,S=x-h[m]-_,A=x/2-h[m]/2+C,O=me(R,A,S),k=!s.arrow&&null!=be(o)&&A!==O&&a.reference[m]/2-(A<R?$:_)-h[m]/2<0,L=k?A<R?A-R:A-S:0;return{[p]:f[p]+L,data:{[p]:O,centerOffset:A-O-L,...k&&{alignmentOffset:L}},reset:k}}}),nt=(e,t,n)=>{const r=new Map,o={platform:Ye,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,i=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ae(c,r,s),f=r,p={},m=0;for(let n=0;n<i.length;n++){var h;const{name:a,fn:g}=i[n],{x:b,y,data:v,reset:w}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:{...l,detectOverflow:null!=(h=l.detectOverflow)?h:Oe},elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Ae(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var rt="undefined"!=typeof document?g.useLayoutEffect:function(){};function ot(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ot(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ot(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function at(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lt(e,t){const n=at(e);return Math.round(t*n)/n}function it(e){const t=g.useRef(e);return rt(()=>{t.current=e}),t}const st=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?tt({element:n.current,padding:r}).fn(t):{}:n?tt({element:n,padding:r}).fn(t):{};var o}}),ct=(e,t)=>({...Je(e),options:[e,t]}),ut=(e,t)=>({...et(e),options:[e,t]}),dt=(e,t)=>({...st(e),options:[e,t]});const ft={...b};let pt=!1,mt=0;const ht=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mt++,gt=ft.useId||function(){const[e,t]=g.useState(()=>pt?ht():void 0);return A(()=>{null==e&&t(ht())},[]),g.useEffect(()=>{pt=!0},[]),e};const bt=g.createContext(null),yt=g.createContext(null);function vt(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gt(),a=g.useRef({}),[l]=g.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),i=null!=((null==(s=g.useContext(bt))?void 0:s.id)||null);var s;const[c,u]=g.useState(r.reference),d=function(e){const t=g.useRef(()=>{});return O(()=>{t.current=e}),g.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:i}),null==n||n(e,t,r)}),f=g.useMemo(()=>({setPositionReference:u}),[]),p=g.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return g.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:l,floatingId:o,refs:f}),[t,d,p,l,o,f])}function wt(e){void 0===e&&(e={});const{nodeId:t}=e,n=vt({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,l]=g.useState(null),[i,s]=g.useState(null),c=(null==o?void 0:o.domReference)||a,u=g.useRef(null),d=g.useContext(yt);A(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:l}={},transform:i=!0,whileElementsMounted:s,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);ot(f,r)||p(r);const[m,h]=g.useState(null),[b,y]=g.useState(null),v=g.useCallback(e=>{e!==x.current&&(x.current=e,h(e))},[]),w=g.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),E=a||m,N=l||b,x=g.useRef(null),C=g.useRef(null),T=g.useRef(u),$=null!=s,_=it(s),R=it(o),S=it(c),A=g.useCallback(()=>{if(!x.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),nt(x.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==S.current};O.current&&!ot(T.current,t)&&(T.current=t,ae.flushSync(()=>{d(t)}))})},[f,t,n,R,S]);rt(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const O=g.useRef(!1);rt(()=>(O.current=!0,()=>{O.current=!1}),[]),rt(()=>{if(E&&(x.current=E),N&&(C.current=N),E&&N){if(_.current)return _.current(E,N,A);A()}},[E,N,A,_,$]);const k=g.useMemo(()=>({reference:x,floating:C,setReference:v,setFloating:w}),[v,w]),L=g.useMemo(()=>({reference:E,floating:N}),[E,N]),M=g.useMemo(()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=lt(L.floating,u.x),r=lt(L.floating,u.y);return i?{...e,transform:"translate("+t+"px, "+r+"px)",...at(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,i,L.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:A,refs:k,elements:L,floatingStyles:M}),[u,A,k,L,M])}({...e,elements:{...o,...i&&{reference:i}}}),p=g.useCallback(e=>{const t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),m=g.useCallback(e=>{(D(e)||null===e)&&(u.current=e,l(e)),(D(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!D(e))&&f.refs.setReference(e)},[f.refs]),h=g.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),b=g.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=g.useMemo(()=>({...f,...r,refs:h,elements:b,nodeId:t}),[f,h,b,t,r]);return A(()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),g.useMemo(()=>({...f,context:y,refs:h,elements:b}),[f,h,b,y])}const Et=new Map,Nt=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;Et.has(r)||Et.set(r,new Set);const a=Et.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...o)},xt=(0,g.createContext)(u);function Ct(e){return(0,g.useContext)(xt).enabled(e)}h().node,Nt(h().objectOf(h().bool)),h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool;const Tt=g.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),$t=g.forwardRef(function({isTabTip:e,align:t=(e?"bottom-start":"bottom"),as:n="span",autoAlign:r=!1,autoAlignBoundary:o,backgroundToken:a="layer",caret:l=!e,className:i,children:s,border:c=!1,dropShadow:u=!0,highContrast:d=!1,onRequestClose:f,open:m,alignmentAxisOffset:h,...b},y){const w=T(),E=(0,g.useRef)(null),C=(0,g.useRef)(null),R=(0,g.useRef)(null),A=Ct("enable-v12-dynamic-floating-styles")||r,O=(0,g.useRef)(!1);let k=S(t);$(R,"mousedown",e=>{const t=e.target;O.current=I.floating.current?.contains(t)||!1,O.current&&setTimeout(()=>{O.current=!1},0)}),$(R,"focusout",e=>{const t=e.relatedTarget;if(t){if(t&&!R.current?.contains(t)){const e=!A||!I.floating.current||!I.floating.current.contains(t),n=t&&R.current&&t.contains(R.current);e&&!n&&f?.()}}else{if(O.current)return void(O.current=!1);f?.()}}),_("click",({target:e})=>{m&&e instanceof Node&&!R.current?.contains(e)&&f?.()});const L=g.Children.toArray(s).some(e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label"))?7:6,M=(0,g.useRef)({offset:10,caretHeight:L});N(()=>{if(l&&R.current){const e=window.getComputedStyle(R.current,null),t=e.getPropertyValue(`--${w}-popover-offset`),n=e.getPropertyValue(`--${w}-popover-caret-height`);t&&(M.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(M.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}});const{refs:I,floatingStyles:D,placement:P,middlewareData:z,elements:H,update:F}=wt(A?{placement:k,strategy:"fixed",middleware:[(V=e?0:{alignmentAxis:h,mainAxis:M?.current?.offset},{...Qe(V),options:[V,void 0]}),r&&ct({fallbackPlacements:e?k.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:k.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:o}),dt({element:C,padding:16}),r&&ut()]}:{});var V;(0,g.useEffect)(()=>{if(A&&m&&H.reference&&H.floating)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ie(e),u=o||a?[...c?re(c):[],...re(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&i?function(e,t){let n,r=null;const o=B(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(i||t(),!f||!p)return;const m={rootMargin:-ue(d)+"px "+-ue(o.clientWidth-(u+f))+"px "+-ue(o.clientHeight-(d+p))+"px "+-ue(u)+"px",threshold:se(0,ie(1,s))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||Xe(c,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let h=s?He(e):null;return s&&function t(){const r=He(e);h&&!Xe(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}(H.reference,H.floating,F)},[A,m,H,F]);const j=(0,g.useMemo)(()=>({floating:E,setFloating:I.setFloating,caretRef:C,autoAlign:r}),[I.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(k)||(k="bottom-start")),(0,g.useEffect)(()=>{if(A){const e={...D,visibility:z.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach(t=>{I.floating.current&&(I.floating.current.style[t]=e[t])}),l&&z&&z.arrow&&C?.current){const{x:e,y:t}=z.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[P.split("-")[0]];C.current.style.left=null!=e?`${e}px`:"",C.current.style.top=null!=t?`${t}px`:"",C.current.style.right="",C.current.style.bottom="",n&&(C.current.style[n]=-M?.current?.caretHeight+"px")}}},[D,I.floating,A,z,P,l]);const q=x([y,R]),W=r&&P!==k?P:k,U=v()({[`${w}--popover-container`]:!0,[`${w}--popover--caret`]:l,[`${w}--popover--drop-shadow`]:u,[`${w}--popover--border`]:c,[`${w}--popover--high-contrast`]:d,[`${w}--popover--open`]:m,[`${w}--popover--auto-align ${w}--autoalign`]:A,[`${w}--popover--${W}`]:!0,[`${w}--popover--tab-tip`]:e,[`${w}--popover--background-token__background`]:"background"===a&&!d},i),Z=g.Children.map(s,t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,a=A&&r&&["ToggletipButton"].includes(r),l=A&&!["ToggletipContent","PopoverContent"].includes(r);if(g.isValidElement(n)&&(o||a||l)){const t=n?.props?.className,r=(n?.props).ref,o=v()(`${w}--popover--tab-tip__button`,t);return g.cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(A&&n?.type!==_t||A&&"ToggletipButton"===n?.type.displayName)&&I.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n}),K=n;return g.createElement(Tt.Provider,{value:j},g.createElement(K,p({},b,{className:U,ref:q}),A||e?Z:s))});$t.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],S),alignmentAxisOffset:h().number,as:h().oneOfType([h().string,h().elementType]),autoAlign:h().bool,backgroundToken:h().oneOf(["layer","background"]),autoAlignBoundary:h().oneOfType([h().oneOf(["clippingAncestors"]),h().elementType,h().arrayOf(h().elementType),h().exact({x:h().number.isRequired,y:h().number.isRequired,width:h().number.isRequired,height:h().number.isRequired})]),caret:h().bool,border:h().bool,children:h().node,className:h().string,dropShadow:h().bool,highContrast:h().bool,isTabTip:h().bool,onRequestClose:h().func,open:h().bool.isRequired};const _t=(0,g.forwardRef)((e,t)=>{const{className:n,children:r,...o}=e,a=T(),{setFloating:l,caretRef:i,autoAlign:s}=g.useContext(Tt),c=x([l,t]),u=Ct("enable-v12-dynamic-floating-styles")||s;return g.createElement("span",p({},o,{className:`${a}--popover`}),g.createElement("span",{className:v()(`${a}--popover-content`,n),ref:c},r,u&&g.createElement("span",{className:v()({[`${a}--popover-caret`]:!0,[`${a}--popover--auto-align`]:!0}),ref:i})),!u&&g.createElement("span",{className:v()({[`${a}--popover-caret`]:!0}),ref:i}))});_t.displayName="PopoverContent",_t.propTypes={children:h().node,className:h().string};const Rt={key:"Tab",which:9,keyCode:9,code:"Tab"},St={key:"Enter",which:13,keyCode:13,code:"Enter"},At={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Ot={key:" ",which:32,keyCode:32,code:"Space"},kt={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},Lt={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},Mt=(e,t)=>{for(let n=0;n<t.length;n++)if(Bt(e,t[n]))return!0;return!1},Bt=(e,{key:t,which:n,keyCode:r,code:o})=>"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o;function It(e){const[t,n]=(0,g.useState)(e),r=(0,g.useRef)(null),o=(0,g.useCallback)((e,t=0)=>{window.clearTimeout(r.current??void 0),r.current=null,0!==t?r.current=window.setTimeout(()=>{n(e),r.current=null},t):n(e)},[]);return(0,g.useEffect)(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const Dt=!("undefined"==typeof window||!window.document||!window.document.createElement),Pt=g.createContext(null);function zt(){return g.useContext(Pt)}const Ht={...g},Ft=(()=>{let e=0;return()=>++e})(),Vt=Dt?g.useLayoutEffect:g.useEffect;let jt=!1;const qt=Ht.useId?function(e="id"){const t=zt();return`${t?`${t}-`:""}${e}-${Ht.useId()}`}:function(e="id"){const t=zt(),[n,r]=(0,g.useState)(()=>jt?`${t?`${t}-`:""}${e}-${Ft()}`:null);return Vt(()=>{null===n&&r(`${t?`${t}-`:""}${e}-${Ft()}`)},[Ft]),(0,g.useEffect)(()=>{!1===jt&&(jt=!0)},[]),n},Wt=e=>{if(!e||!e.childNodes)return null;if(Zt(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Wt(t);if(e)return e}return null},Ut=e=>{if(!e||!e.childNodes)return null;if(e.getAttribute("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Ut(t);if(e)return e}return null},Zt=e=>{if(void 0===e.tabIndex||e.tabIndex<0)return!1;if((e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&e.disabled)return!1;switch(e.nodeName){case"A":return e instanceof HTMLAnchorElement&&!!e.href&&"ignore"!==e.rel;case"INPUT":return e instanceof HTMLInputElement&&"hidden"!==e.type;default:return!0}},Kt=new Set(["mouseup","touchend","touchcancel"]),Gt=g.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:a,enterDelayMs:l=100,leaveDelayMs:i=300,defaultOpen:s=!1,closeOnActivation:c=!1,dropShadow:u=!1,highContrast:d=!0,...f},m)=>{(0,g.useRef)(null);const[h,b]=It(s),[y,w]=(0,g.useState)(!1),[E,x]=(0,g.useState)(!1),[C,$]=(0,g.useState)(!1),_=qt("tooltip"),R=T(),S=g.Children.only(r),{"aria-labelledby":A,"aria-describedby":O}=S?.props??{},k=!!o,L={onFocus:()=>!E&&b(!0),onBlur:()=>{b(!1),x(!1)},onClick:()=>c&&b(!1),onMouseEnter:B,onMouseLeave:I,onMouseDown:function(){x(!0),D()},onMouseMove:function(e){1===e.buttons?w(!0):w(!1)},onTouchStart:D,"aria-labelledby":A??(k?_:void 0),"aria-describedby":O??(k?void 0:_)},M=(0,g.useCallback)(e=>{h&&Bt(e,At)&&(e.stopPropagation(),b(!1)),h&&c&&(Bt(e,St)||Bt(e,Ot))&&b(!1)},[c,h,b]);function B(){f?.onMouseEnter||($(!0),b(!0,l))}function I(){$(!1),y||b(!1,i)}function D(){w(!0)}N(()=>{if(h)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){Bt(e,At)&&M(e)}},[h,M]);const P=(0,g.useCallback)(()=>{w(!1),C||b(!1,i)},[C,i,b]);return(0,g.useEffect)(()=>(y&&Kt.forEach(e=>{document.addEventListener(e,P)}),()=>{Kt.forEach(e=>{document.removeEventListener(e,P)})}),[y,P]),g.createElement($t,p({as:e,ref:m},f,{align:t,className:v()(`${R}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:M,onMouseLeave:I,open:h}),g.createElement("div",{className:`${R}--tooltip-trigger__wrapper`},void 0!==S?g.cloneElement(S,{...L,...function(e){const t=Object.keys(L).filter(e=>e.startsWith("on")),n={};return t.forEach(t=>{n[t]=n=>{L[t](n),e?.[t]&&e?.[t](n)}}),n}(S.props)}):null),g.createElement(_t,{"aria-hidden":h?"false":"true",className:`${R}--tooltip-content`,id:_,onMouseEnter:B,role:"tooltip"},o||a))});Gt.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,description:h().node,dropShadow:h().bool,enterDelayMs:h().number,highContrast:h().bool,label:h().node,leaveDelayMs:h().number};const Yt=g.forwardRef(function({as:e,children:t,className:n,dangerDescription:r="danger",disabled:o=!1,hasIconOnly:a=!1,href:l,iconDescription:i,isExpressive:s=!1,isSelected:c,kind:u="primary",onBlur:d,onClick:f,onFocus:p,onMouseEnter:m,onMouseLeave:h,renderIcon:b,size:y,tabIndex:w,type:E="button",...N},x){const C=T(),$={tabIndex:w,className:v()(n,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:"xs"===y&&!s,[`${C}--btn--sm`]:"sm"===y&&!s,[`${C}--btn--md`]:"md"===y&&!s,[`${C}--btn--lg`]:"lg"===y&&!s,[`${C}--btn--xl`]:"xl"===y,[`${C}--btn--2xl`]:"2xl"===y,[`${C}--layout--size-${y}`]:y,[`${C}--btn--${u}`]:u,[`${C}--btn--disabled`]:o,[`${C}--btn--expressive`]:s,[`${C}--btn--icon-only`]:a,[`${C}--btn--selected`]:a&&c&&"ghost"===u}),ref:x},_=b?g.createElement(b,{"aria-label":i,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,R=["danger","danger--tertiary","danger--ghost"];let S="button";const A=qt("danger-description"),{"aria-pressed":O,"aria-describedby":k}=N;let L={disabled:o,type:E,"aria-describedby":R.includes(u)?A:k||void 0,"aria-pressed":O??(a&&"ghost"===u?c:void 0)};const M={href:l};let B=null;return R.includes(u)&&(B=g.createElement("span",{id:A,className:`${C}--visually-hidden`},r)),e?(S=e,L={...L,...M}):l&&!o&&(S="a",L=M),g.createElement(S,{onMouseEnter:m,onMouseLeave:h,onFocus:p,onBlur:d,onClick:f,...N,...$,...L},B,t,_)}),Xt=(0,g.forwardRef)((e,t)=>{const{className:n,count:r,...o}=e,a=T(),l=v()(`${a}--badge-indicator`,n,{[`${a}--badge-indicator--count`]:r}),i=r&&r>999?"999+":r;return g.createElement("div",p({className:l,ref:t},o),i)});Xt.propTypes={className:h().string,count:h().number,id:h().string};const Qt=["primary","secondary","ghost","tertiary"],Jt=(0,g.forwardRef)(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:a=!0,defaultOpen:l=!1,disabled:i,dropShadow:s=!1,enterDelayMs:c=100,highContrast:u=!0,kind:d,label:f,leaveDelayMs:m=100,wrapperClasses:h,size:b,isSelected:y,...w},E)=>{const N=T(),x=v()(h,`${N}--icon-tooltip`,{[`${N}--icon-tooltip--disabled`]:i});!n||"ghost"===d&&"lg"===b||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const C=qt("badge-indicator");return g.createElement(Gt,{align:e,autoAlign:t,closeOnActivation:a,className:x,defaultOpen:l,dropShadow:s,enterDelayMs:c,highContrast:u,label:f,leaveDelayMs:m},g.createElement(Yt,p({},w,{disabled:i,kind:d,ref:E,size:b,isSelected:y,hasIconOnly:!0,className:o,"aria-describedby":w["aria-describedby"]||n&&C}),r,!i&&void 0!==n&&g.createElement(Xt,{id:C,count:n>0?n:void 0})))});Jt.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],S),autoAlign:h().bool,badgeCount:h().number,href:h().string,children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,dropShadow:h().bool,disabled:h().bool,enterDelayMs:h().number,isSelected:h().bool,highContrast:h().bool,kind:h().oneOf(Qt),label:h().node.isRequired,leaveDelayMs:h().number,rel:h().string,size:h().oneOf(["sm","md","lg"]),target:h().string,wrapperClasses:h().string};const en=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],tn=g.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:a=!1,tooltipHighContrast:l=!0,tooltipDropShadow:i=!1,iconDescription:s,kind:c="primary",onBlur:u,onClick:d,onFocus:f,onMouseEnter:m,onMouseLeave:h,renderIcon:b,size:y,tooltipAlignment:v="center",tooltipPosition:w="top",...E}=e;!b||o||s||console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const N=b?g.createElement(b,null):null;if(function(e){return!0===e}(a)){let e;return"top"!==w&&"bottom"!==w||("center"===v&&(e=w),"end"===v&&(e=`${w}-end`),"start"===v&&(e=`${w}-start`)),"right"!==w&&"left"!==w||(e=w),g.createElement(Jt,p({},E,{ref:t,as:n,align:e,label:s,kind:c,size:y,highContrast:l,dropShadow:i,onMouseEnter:m,onMouseLeave:h,onFocus:f,onBlur:u,autoAlign:r,onClick:d,renderIcon:N?null:b}),N??o)}{const{tooltipAlignment:n,...r}=e;return g.createElement(Yt,p({ref:t},r))}});tn.displayName="Button",tn.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),autoAlign:h().bool,children:h().node,className:h().string,dangerDescription:h().string,disabled:h().bool,hasIconOnly:h().bool,href:h().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:h().bool,isSelected:h().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?Qt:en;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:h().func,onClick:h().func,onFocus:h().func,onMouseEnter:h().func,onMouseLeave:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:h().string,size:h().oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:h().number,target:h().string,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool,tooltipPosition:h().oneOf(["top","right","bottom","left"]),type:h().oneOf(["button","reset","submit"])};var nn=n(4363);const rn=g.createContext(1),on=["one","two","three"],an=[0,1,2],ln=an[0],sn=an[an.length-1],cn=g.forwardRef((e,t)=>{const{as:n,className:r,children:o,level:a,withBackground:l=!1,...i}=e,s=g.useContext(rn),c=a??s,u=T(),d=v()(`${u}--layer-${on[c]}`,{[`${u}--layer__with-background`]:l},r),f=((e,t,n)=>Math.min(n,Math.max(t,e)))(c+1,ln,sn),m=n||"div";return g.createElement(rn.Provider,{value:f},g.createElement(m,p({ref:t},i,{className:d}),o))});cn.displayName="Layer",cn.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,level:h().oneOf([0,1,2]),withBackground:h().bool};var un=n(9184);const dn=g.forwardRef(function({buttonOnClick:e,children:t,className:n,closeClassName:r,closeIconClassName:o,closeModal:a,iconDescription:l="Close",label:i,labelClassName:s,title:c,titleClassName:u,...d},f){const m=T(),h=v()(`${m}--modal-header`,n),b=v()(`${m}--modal-header__label ${m}--type-delta`,s),y=v()(`${m}--modal-header__heading ${m}--type-beta`,u),w=v()(`${m}--modal-close`,r),E=v()(`${m}--modal-close__icon`,o);return g.createElement("div",p({className:h},d,{ref:f}),i&&g.createElement("h2",{className:b},i),c&&g.createElement("h2",{className:y},c),t,g.createElement("div",{className:`${m}--modal-close-button`},g.createElement(Jt,{className:w,label:l,onClick:function(t){a?.(t),e?.(t)},"aria-label":l,align:"left"},g.createElement(un.bm,{size:20,"aria-hidden":"true",tabIndex:"-1",className:E}))))});dn.propTypes={buttonOnClick:h().func,children:h().node,className:h().string,closeClassName:h().string,closeIconClassName:h().string,closeModal:h().func,iconDescription:h().string,label:h().node,labelClassName:h().string,title:h().node,titleClassName:h().string};const fn=e=>({ghost:1,"danger--ghost":2,tertiary:3,danger:5,primary:6}[e]??4),pn=e=>g.isValidElement(e)&&e.props&&"object"==typeof e.props?e.props.kind??"primary":"primary",mn=(0,g.forwardRef)((e,t)=>{const{children:n,className:r,fluid:o,stacked:a,...l}=e,i=T(),s=(0,g.useRef)(null),[c,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(g.Children.toArray(n));N(()=>{const e=()=>{let e=a||!1;if(s&&s.current){const t=window.getComputedStyle(s.current);e="column"===t?.getPropertyValue?.("--flex-direction")}return e};if(u(e()),!s.current)return;const t=new ResizeObserver(()=>{u(e())});return t.observe(s.current),()=>t.disconnect()},[c,a]),(0,g.useEffect)(()=>{const e=g.Children.toArray(n);e.sort((e,t)=>(fn(pn(e))-fn(pn(t)))*(c?-1:1)),f(e)},[n,c]);const m=v()(r,`${i}--btn-set`,{[`${i}--btn-set--stacked`]:c,[`${i}--btn-set--fluid`]:o});return g.createElement("div",p({},l,{className:m,ref:t}),o?g.createElement("div",{ref:s,className:v()(`${i}--btn-set__fluid-inner`,{[`${i}--btn-set__fluid-inner--auto-stack`]:!0})},d):n)});mn.displayName="ButtonSet",mn.propTypes={children:h().node,className:h().string,fluid:h().bool,stacked:h().bool};const hn=()=>{};var gn=n(771);function bn({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...a}){const l=T(),i=v()(t,{[`${l}--loading`]:!0,[`${l}--loading--small`]:r,[`${l}--loading--stop`]:!e}),s=v()({[`${l}--loading-overlay`]:!0,[`${l}--loading-overlay--stop`]:!e}),c=g.createElement("div",p({},a,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:i}),g.createElement("svg",{className:`${l}--loading__svg`,viewBox:"0 0 100 100"},g.createElement("title",null,o),r?g.createElement("circle",{className:`${l}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,g.createElement("circle",{className:`${l}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?g.createElement("div",{className:s},c):c}bn.propTypes={active:h().bool,className:h().string,description:h().string,id:Nt(h().string),small:h().bool,withOverlay:h().bool};const yn=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:a=1500,...l})=>{const i=T(),s=v()(`${i}--inline-loading`,e),c=(0,g.useRef)(null);(0,g.useEffect)(()=>("finished"===t&&(c.current=setTimeout(()=>{o&&o()},a)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[t,o,a]);const u=r&&g.createElement("div",{className:`${i}--inline-loading__text`},r),d=(()=>{let e=n||t;if("error"===t)return g.createElement(gn.x,{className:`${i}--inline-loading--error`},g.createElement("title",null,e));if("finished"===t)return g.createElement(un._j,{className:`${i}--inline-loading__checkmark-container`},g.createElement("title",null,e));if("inactive"===t||"active"===t){if("inactive"===t)return;return n||(e="loading"),g.createElement(bn,{small:!0,description:e,withOverlay:!1,active:"active"===t})}})(),f=d&&g.createElement("div",{className:`${i}--inline-loading__animation`},d);return g.createElement("div",p({className:s},l,{"aria-live":l["aria-live"]??("inactive"===t?"off":"assertive")}),f,u)};function vn({secondaryButtons:e,secondaryButtonText:t,secondaryClassName:n,closeModal:r,onRequestClose:o,disabled:a}){function l(e){r(e),o(e)}return Array.isArray(e)&&e.length<=2?g.createElement(g.Fragment,null,e.map(({buttonText:e,onClick:t},r)=>g.createElement(tn,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||l},e))):t?g.createElement(tn,{disabled:a,className:n,onClick:l,kind:"secondary"},t):null}yn.propTypes={className:h().string,description:h().node,iconDescription:h().string,onSuccess:h().func,status:h().oneOf(["inactive","active","finished","error"]),successDelay:h().number},vn.propTypes={closeModal:h().func,disabled:h().bool,onRequestClose:h().func,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach(e=>{h().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:h().string};const wn=g.forwardRef(function({children:e,className:t,closeModal:n=hn,danger:r,inputref:o,onRequestClose:a=hn,onRequestSubmit:l=hn,primaryButtonDisabled:i,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:f,loadingStatus:m="inactive",loadingDescription:h,loadingIconDescription:b,onLoadingSuccess:y=hn,...w},E){const N=T(),x=v()(`${N}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${N}--modal-footer--three-button`:null),C=v()(c,"inactive"!==m?`${N}--btn--loading`:null),$="inactive"!==m,_={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:f,onRequestClose:a,disabled:$};return g.createElement(mn,p({className:x},w,{ref:E,"aria-busy":$}),g.createElement(vn,_),s&&g.createElement(tn,{onClick:l,className:C,disabled:$||i,kind:r?"danger":"primary",ref:o},"inactive"===m?s:g.createElement(yn,{status:m,description:h,iconDescription:b,className:`${N}--inline-loading--btn`,onSuccess:y})),e)});wn.propTypes={children:h().node,className:h().string,closeModal:h().func,danger:h().bool,inputref:h().oneOfType([h().func,h().shape({current:h().any})]),loadingDescription:h().string,loadingIconDescription:h().string,loadingStatus:h().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:h().func,onRequestClose:h().func,onRequestSubmit:h().func,primaryButtonDisabled:h().bool,primaryButtonText:h().string,primaryClassName:h().string,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach(e=>{h().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:h().string};const En=(...e)=>t=>{e.forEach(e=>{e&&("function"==typeof e?e(t):"object"==typeof e&&"current"in e&&(e.current=t))})},Nn=(e,t,n)=>{e.classList.toggle(t,n)};var xn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Cn="undefined"==typeof Element,Tn=Cn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$n=!Cn&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},_n=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):_n(e.parentNode))},Rn=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var a=o.shift();if(!_n(a,!1))if("SLOT"===a.tagName){var l=a.assignedElements(),i=l.length?l:a.children,s=Rn(i,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Tn.call(a,xn)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),u=!_n(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&u){var d=Rn(!0===c?a.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return r},Sn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},An=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Sn(e)?0:e.tabIndex},On=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},kn=function(e){return"INPUT"===e.tagName},Ln=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Mn=function(e,t){return!(t.disabled||function(e){return kn(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=Tn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Tn.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ln(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,i=$n(e);if(l&&!l.shadowRoot&&!0===r(l))return Ln(e);e=e.assignedSlot?e.assignedSlot:l||i===e.ownerDocument?l:i.host}e=a}if(function(e){var t,n,r,o,a=e&&$n(e),l=null===(t=a)||void 0===t?void 0:t.host,i=!1;if(a&&a!==e)for(i=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!i&&l;){var s,c,u;i=!(null===(c=l=null===(s=a=$n(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return i}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Tn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Bn=function(e,t){return!(function(e){return function(e){return kn(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||$n(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||An(t)<0||!Mn(e,t))},In=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Dn=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,a=o?e.scopeParent:e,l=function(e,t){var n=An(e);return n<0&&t&&!Sn(e)?0:n}(a,o),i=o?Dn(e.candidates):a;0===l?o?t.push.apply(t,i):t.push(a):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:i})}),n.sort(On).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)};const Pn="\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n",zn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,Hn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,Fn=(e,t=[],n="cds")=>e instanceof Element&&"function"==typeof e.closest&&[`.${n}--overflow-menu-options`,`.${n}--tooltip`,".flatpickr-calendar",...t].some(t=>!!e.closest(t)),Vn=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:a,prefix:l="cds"})=>{if(e&&r&&o&&!e.contains(r)&&!Fn(r,a,l)){const a=o.compareDocumentPosition(r);if(r===t||a&zn){const t=Array.from(e.querySelectorAll(Pn)).reverse().find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}else if(r===n||a&Hn){const t=Array.from(e.querySelectorAll(Pn)).find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}}},jn=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(l=e,s=(i=i||{}).getShadowRoot?Rn([l],i.includeContainer,{filter:Bn.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:In}):function(e,t,n){if(_n(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(xn));return t&&Tn.call(e,xn)&&r.unshift(e),r.filter(n)}(l,i.includeContainer,Bn.bind(null,i)),Dn(s)),o=r[0],a=r[r.length-1];var l,i,s;t!==a||n.shiftKey||(n.preventDefault(),o.focus()),t===o&&n.shiftKey&&(n.preventDefault(),a.focus())},qn=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}},Wn=(0,g.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Un=(0,g.forwardRef)(({as:e,children:t,dir:n="auto",...r},o)=>{const a=(0,g.useContext)(Wn),l={},i=e??"span",s={...a};if(a){const{direction:e,getTextDirection:r}=a;if(r&&r.current){const n=Zn(t),o=r.current(n);e!==o?(l.dir=o,s.direction=o):"auto"===e&&(l.dir=o)}else e!==n?(l.dir=n,s.direction=n):"auto"===e&&(l.dir=n)}else l.dir=n,s.direction=n;return g.createElement(Wn.Provider,{value:s},g.createElement(i,p({ref:o},r,l),t))});Un.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,dir:h().oneOf(["ltr","rtl","auto"])};const Zn=e=>{if("string"==typeof e)return e;const t=g.Children.map(e,e=>"string"==typeof e?e:null)?.filter(e=>null!==e);return 1===t?.length?t[0]:t};const Kn=(0,g.createContext)({}),Gn=g.forwardRef(({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=hn,onClick:a=hn,onClose:l=hn,onRequestClose:i=hn,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:f,...m},h)=>{const b=T(),y=qt(),w=`${b}--dialog-header__heading--${y}`,E=`${b}--dialog-header__label--${y}`,N=(0,g.useRef)(null),x=h??N;(0,g.useEffect)(()=>{x.current&&(s?r?x.current.showModal():x.current.show():x.current.close())},[r,s]),(0,g.useEffect)(()=>{if(!s&&n){const e=setTimeout(()=>{n.current?.focus()});return()=>{clearTimeout(e)}}},[s,n]);const C=v()(`${b}--dialog-container`),$={dialogId:y,titleId:w,subtitleId:E,isOpen:s};return(0,g.useEffect)(()=>{if(x.current&&s&&!u&&!d){const e=x.current.querySelector(`.${b}--dialog-header__heading`);e&&e.id&&x.current.setAttribute("aria-labelledby",e.id)}},[s,u,d,b]),g.createElement(Kn.Provider,{value:$},g.createElement("dialog",p({},m,{className:v()(`${b}--dialog`,{[`${b}--dialog--modal`]:r},t),ref:x,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===x.current&&i(e)}(e),a(e)},onClose:l,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||w,"aria-describedby":f}),g.createElement("div",{className:C},e)))});Gn.displayName="Dialog",Gn.propTypes={children:h().node,className:h().string,focusAfterCloseRef:h().oneOfType([h().func,h().shape({current:h().any})]),modal:h().bool,onRequestClose:h().func,open:h().bool,role:h().oneOf(["dialog","alertdialog"]),"aria-label":h().string,"aria-labelledby":h().string,ariaDescribedBy:h().string};const Yn=g.forwardRef(({children:e,...t},n)=>{const r=T();return g.createElement("div",p({className:`${r}--dialog__header`,ref:n},t),e)});Yn.displayName="DialogHeader",Yn.propTypes={children:h().node};const Xn=g.forwardRef(({children:e,...t},n)=>{const r=T();return g.createElement("div",p({className:`${r}--dialog__header-controls`,ref:n},t),e)});Xn.displayName="DialogControls",Xn.propTypes={children:h().node};const Qn=g.forwardRef(({onClick:e,...t},n)=>{const r=T();return g.createElement(Jt,p({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),g.createElement(un.bm,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))});Qn.displayName="DialogCloseButton",Qn.propTypes={onClick:h().func};const Jn=g.forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=T(),{titleId:l}=(0,g.useContext)(Kn),i=n||l;return g.createElement(Un,p({as:"h2",id:i,className:v()(`${a}--dialog-header__heading`,t),ref:o},r),e)});Jn.displayName="DialogTitle",Jn.propTypes={children:h().node,className:h().string,id:h().string};const er=g.forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=T(),{subtitleId:l}=(0,g.useContext)(Kn),i=n||l;return g.createElement(Un,p({as:"h2",id:i,className:v()(`${a}--dialog-header__label`,t),ref:o},r),e)});er.displayName="DialogSubtitle",er.propTypes={children:h().node,className:h().string,id:h().string};const tr=g.forwardRef(({children:e,className:t,hasScrollingContent:n,...r},o)=>{const a=T(),l=(0,g.useRef)(null),[i,s]=(0,g.useState)(!1),c=`${a}--dialog-body--${qt()}`;N(()=>{l.current&&s(l.current.scrollHeight>l.current.clientHeight);const e=function(e,t=0,n={}){"object"!=typeof n&&(n={});const{signal:r,leading:o=!1,trailing:a=!0,maxWait:l}=n,i=Array(2);let s;o&&(i[0]="leading"),a&&(i[1]="trailing");let c=null;const u=function(e,t,{signal:n,edges:r}={}){let o,a=null;const l=null!=r&&r.includes("leading"),i=null==r||r.includes("trailing"),s=()=>{null!==a&&(e.apply(o,a),o=void 0,a=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,i&&s(),f()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,a=null},p=function(...e){if(n?.aborted)return;o=this,a=e;const t=null==c;u(),l&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}(function(...t){s=e.apply(this,t),c=null},t,{signal:r,edges:i}),d=function(...t){if(null!=l)if(null===c)c=Date.now();else if(Date.now()-c>=l)return s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s;return u.apply(this,t),s};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}(function(){l.current&&s(l.current.scrollHeight>l.current.clientHeight)},200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]);const u=v()(`${a}--dialog-content`,{[`${a}--dialog-scroll-content`]:n||i},t),d=n||i?{tabIndex:0,role:"region"}:{};return g.createElement(cn,p({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),l.current=e},id:c,className:u},d,r),e)});tr.displayName="DialogBody",tr.propTypes={children:h().node,className:h().string,hasScrollingContent:h().bool};const nr=g.forwardRef(({children:e,className:t,onRequestClose:n=hn,onSecondarySubmit:r,onRequestSubmit:o=hn,primaryButtonText:a="Save",primaryButtonDisabled:l=!1,secondaryButtonText:i="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:f=hn,danger:m=!1,...h},b)=>{const y=T(),w=(0,g.useRef)(null),{isOpen:E}=(0,g.useContext)(Kn),[N,x]=(0,g.useState)(null);(0,g.useEffect)(()=>{if(m&&N){const e=requestAnimationFrame(()=>{N.focus()});return()=>cancelAnimationFrame(e)}},[m,N,E]);const C=v()(`${y}--dialog-footer`,t,{[`${y}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),$="inactive"!==c,_=v()({[`${y}--btn--loading`]:"inactive"!==c}),R=r||n;return e?g.createElement(mn,p({className:C,ref:b},h),e):g.createElement(mn,p({className:C,"aria-busy":$,ref:b},h),Array.isArray(s)&&s.length<=2?s.map(({buttonText:e,onClick:t},n)=>g.createElement(tn,{key:`${e}-${n}`,autoFocus:m,kind:"secondary",ref:0===n&&m?x:void 0,onClick:t},e)):i&&g.createElement(tn,{ref:m?x:void 0,disabled:$,kind:"secondary",autoFocus:m,onClick:R},i),g.createElement(tn,{className:_,kind:m?"danger":"primary",disabled:$||l,onClick:o,ref:w},"inactive"===c?a:g.createElement(yn,{status:c,description:u,iconDescription:d,className:`${y}--inline-loading--btn`,onSuccess:f})))});nr.displayName="DialogFooter",nr.propTypes={children:h().node,className:h().string,onRequestClose:h().func,onSecondarySubmit:h().func,onRequestSubmit:h().func,primaryButtonText:h().node,primaryButtonDisabled:h().bool,secondaryButtonText:h().node,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach(e=>{h().checkPropTypes(r,e,t,n)})}return null},danger:h().bool,loadingStatus:h().oneOf(["inactive","active","finished","error"]),loadingDescription:h().string,loadingIconDescription:h().string,onLoadingSuccess:h().func},h().elementType,h().node,h().string;const rr=g.createContext(void 0);function or(){return(0,g.useContext)(rr)}function ar({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:a=!1,...l}){const i=(0,g.useRef)(null),[s,c]=(0,g.useState)(a),u=T(),d=qt(),f=v()(`${u}--toggletip`,r,{[`${u}--toggletip--open`]:s,[`${u}--autoalign`]:n}),m={toggle:()=>{c(!s)},close:()=>{c(!1)}},h={buttonProps:{"aria-expanded":s,"aria-controls":d,"aria-describedby":s?d:void 0,onClick:m.toggle},contentProps:{id:d},onClick:{onClick:m.toggle}};return _("blur",()=>{s&&m.close()}),(0,g.useEffect)(()=>{if(!i.current)return;const e=i.current.ownerDocument||document,t="PointerEvent"in window?"pointerdown":"mousedown",n=e=>{const t=e.target;s&&t&&!i.current.contains(t)&&c(!1)},r={capture:!0};return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}},[s]),g.createElement(rr.Provider,{value:h},g.createElement($t,p({align:e,as:t,caret:!0,className:f,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&Bt(e,At)){e.stopPropagation(),m.close();const t=i.current?.children[0];t instanceof HTMLButtonElement&&t.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||m.close()},ref:i,autoAlign:n},l),o))}const{open:lr,...ir}=$t.propTypes??{};ar.propTypes={...ir,defaultOpen:h().bool};const sr=(0,g.forwardRef)(function({children:e,className:t,label:n="Show information",as:r,...o},a){const l=or(),i=T(),s=v()(`${i}--toggletip-button`,t),c=r??"button";return"button"!==c?g.createElement(c,p({},l?.onClick,{className:s},o),e):g.createElement("button",p({},l?.buttonProps,{"aria-label":n,type:"button",className:s,ref:a},o),e)});sr.propTypes={children:h().node,className:h().string,label:h().string},sr.displayName="ToggletipButton";const cr=(0,g.forwardRef)((e,t)=>{const{children:n,className:r}=e,o=or(),a=T();return g.createElement(_t,p({className:r},o?.contentProps,{ref:t}),g.createElement("div",{className:`${a}--toggletip-content`},n))});function ur({children:e,className:t}){const n=T(),r=v()(`${n}--toggletip-actions`,t);return g.createElement("div",{className:r},e)}cr.propTypes={children:h().node,className:h().string},cr.displayName="ToggletipContent",ur.propTypes={children:h().node,className:h().string};var dr,fr,pr,mr,hr,gr,br,yr,vr,wr,Er,Nr,xr=n(428);const Cr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},dr||(dr=g.createElement("path",{d:"M20,10H7.8149l3.5874-3.5859L10,5,4,11,10,17l1.4023-1.4146L7.8179,12H20a6,6,0,0,1,0,12H12v2h8a8,8,0,0,0,0-16Z"})),e)}),Tr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},fr||(fr=g.createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),pr||(pr=g.createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),mr||(mr=g.createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),e)}),$r=g.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},hr||(hr=g.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),gr||(gr=g.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},br||(br=g.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),yr||(yr=g.createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},vr||(vr=g.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),wr||(wr=g.createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),e):g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Er||(Er=g.createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Nr||(Nr=g.createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),e)});var _r;const Rr=g.forwardRef(function({className:e,children:t},n){const r=T(),o=g.Children.toArray(t).some(e=>{e.type}),a=v()(e,{[`${r}--ai-label-content`]:!0,[`${r}--ai-label-content--with-actions`]:o});return g.createElement(cr,{className:a},t)});Rr.displayName="AILabelContent",Rr.propTypes={children:h().node,className:h().string};const Sr=g.forwardRef(function({className:e,children:t},n){const r=T(),o=v()(e,{[`${r}--ai-label-actions`]:!0});return g.createElement(ur,{className:o},t)});Sr.displayName="AILabelActions",Sr.propTypes={children:h().node,className:h().string};const Ar=g.forwardRef(function({aiText:e="AI",aiTextLabel:t,textLabel:n,align:r,autoAlign:o=!0,children:a,className:l,kind:i="default",onRevertClick:s,revertActive:c,revertLabel:u="Revert to AI input",slugLabel:d="Show information","aria-label":f="Show information",size:m="xs",...h},b){const y=T(),w=qt("AILabel"),E=v()(l,{[`${y}--ai-label`]:!0,[`${y}--ai-label--revert`]:c}),N=v()({[`${y}--ai-label__button`]:!0,[`${y}--ai-label__button--${m}`]:m,[`${y}--ai-label__button--${i}`]:i,[`${y}--ai-label__button--inline-with-content`]:"inline"===i&&(t||n)}),x=t||n?`${e} ${t||n}`:`${e} ${d||f}`,C=["xs","2xs","mini"].includes(m);return g.createElement("div",{className:E,ref:b,id:w},c?g.createElement(Jt,p({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},h),_r||(_r=g.createElement(Cr,null))):g.createElement(ar,p({align:r,autoAlign:o,alignmentAxisOffset:C?-24:0},h),g.createElement(sr,{className:N,label:"inline"===i?"":x},g.createElement("span",{className:`${y}--ai-label__text`},e),"inline"===i&&(t||n)&&g.createElement("span",{className:`${y}--ai-label__additional-text`},t||n)),a))});Ar.displayName="AILabel",Ar.propTypes={...ar.propTypes,AILabelContent:h().node,aiText:h().string,aiTextLabel:Nt(h().string),"aria-label":h().string,kind:h().oneOf(["default","inline"]),onRevertClick:h().func,revertActive:h().bool,revertLabel:h().string,size:h().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:Nt(h().string),textLabel:h().string};const Or=(e,t)=>(0,g.isValidElement)(e)&&e.type===t,kr=e=>{const[t,n]=(0,g.useState)(!!e),[r,o]=(0,g.useState)(!!e);return(0,g.useEffect)(()=>{e!==r&&(n(!!e),o(!!e))},[e,r]),(0,g.useMemo)(()=>[t,n],[t])},Lr=({open:e,_presenceId:t,_autoEnablePresence:n=!0,children:r})=>{const o=kr(e),[a]=o,[l,i]=((e,t)=>{const n=(0,g.useRef)(t),r=(0,g.useRef)(null),o=(0,g.useRef)(null);t||!o.current||r.current||(n.current=null),o.current=r.current;const{isPresent:a,isExiting:l}=((e,t)=>{const n=T(),[r,o]=(0,g.useState)(t?"idle":"finished"),a="active"===r;t||"idle"!==r||o("active"),t&&"idle"!==r&&o("idle");const l=(0,g.useCallback)(()=>{o("finished")},[]);return(0,g.useLayoutEffect)(()=>{if(!e.current||!a)return;if(!("getAnimations"in e.current))return void l();const t=e.current.getAnimations({subtree:!0}).filter(e=>e instanceof CSSAnimation&&e.animationName.startsWith(`${n}--presence`));if(!t.length)return void l();let r=!1;return Promise.all(t.map(e=>e.finished)).finally(()=>{r||l()}),()=>{r=!0}},[e,a,n,l]),{isPresent:t||"finished"!==r,isExiting:a}})(r,e),i=(0,g.useCallback)(e=>!(!e||n.current&&n.current!==e||(n.current=e,0)),[]);return[a,(0,g.useMemo)(()=>({presenceRef:r,isPresenceExclusive:i,isExiting:l}),[r,i,l])]})(a,t),s=(0,g.useMemo)(()=>({modalState:o,autoEnablePresence:n,...i}),[o,n,i]);return l?g.createElement(Mr,{value:s},r):null},Mr=(0,g.createContext)(void 0),Br=g.forwardRef(function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},a){const l=T(),i=(0,g.useRef)(null),{height:s}=(({ref:e,onResize:t})=>{const[n,r]=(0,g.useState)(-1),[o,a]=(0,g.useState)(-1),l=(0,g.useRef)(null),i=(0,g.useRef)(t);return(0,g.useEffect)(()=>{i.current=t},[t]),(0,g.useEffect)(()=>{!e?.current||n>=0&&o>=0||(()=>{if(e.current){const t=window.getComputedStyle(e.current),n=(e.current?.offsetWidth??0)-("string"==typeof t?.paddingLeft&&t?.paddingLeft.length?parseFloat(t?.paddingLeft):0)-("string"==typeof t?.paddingRight&&t?.paddingRight.length?parseFloat(t?.paddingRight):0),o=(e.current?.offsetHeight??0)-("string"==typeof t?.paddingTop&&t?.paddingTop.length?parseFloat(t?.paddingTop):0)-("string"==typeof t?.paddingBottom&&t?.paddingBottom.length?parseFloat(t?.paddingBottom):0);r(n),a(o)}})()},[n,o]),(0,g.useLayoutEffect)(()=>{if(!e?.current)return;const t=new ResizeObserver(t=>{l.current=t,window.requestAnimationFrame(()=>{(()=>{if(!e?.current||!Array.isArray(l?.current))return;const t=l.current[0];r(t.contentRect.width),a(t.contentRect.height),i.current&&i.current(t.contentRect)})()})});return t.observe(e.current),()=>{t.disconnect()}},[]),{width:n,height:o}})({ref:i}),c=!!i.current&&i?.current?.scrollHeight>i?.current?.clientHeight,u=v()({[`${l}--modal-content`]:!0,[`${l}--modal-content--with-form`]:n,[`${l}--modal-scroll-content`]:r||c,[`${l}--modal-scroll-content--no-fade`]:s<=300},e),d=r||c?{tabIndex:0,role:"region"}:{};return g.createElement(cn,p({className:u},d,o,{ref:En(i,a)}),t)});var Ir;Br.propTypes={"aria-label":(Ir=h().string,(e,t,n,...r)=>Ir(e,t,n,...r)),children:h().node,className:h().string,hasForm:h().bool,hasScrollingContent:h().bool};const Dr=g.forwardRef(function({open:e,...t},n){const r=qt(),o=Ct("enable-presence"),a=Boolean((0,g.useContext)(Mr)),l=o||a,i=(e=>{const t=(0,g.useContext)(Mr);return t?.isPresenceExclusive(e)?t:void 0})(r);return l&&!i?g.createElement(Lr,{open:e??!1,_presenceId:r,_autoEnablePresence:a},g.createElement(Pr,p({open:!0,ref:n},t))):g.createElement(Pr,p({ref:n,open:e},t))}),Pr=g.forwardRef(function({"aria-labelledby":e,"aria-label":t,children:n,className:r,containerClassName:o,danger:a,decorator:l,isFullWidth:i,onClose:s,onKeyDown:c,open:u,preventCloseOnClickOutside:d,selectorPrimaryFocus:f="[data-modal-primary-focus]",selectorsFloatingMenus:m,size:h,launcherButtonRef:b,slug:y,...w},E){const N=T(),x=(0,g.useRef)(null),C=(0,g.useRef)(null),$=(0,g.useRef)(null),_=(0,g.useRef)(null),R=(0,g.useRef)(null),S=(0,g.useContext)(Mr),A=function(e){const t=g.useRef(void 0),n=g.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return g.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}([E,S?.presenceRef]),O=Ct("enable-presence")||S?.autoEnablePresence,k=u||O,L=kr(k),[M,B]=S?.modalState??L,I=Ct("enable-dialog-element"),D=Ct("enable-experimental-focus-wrap-without-sentinels"),P=Ct("enable-focus-wrap-without-sentinels"),z=D||P;function H(e){s&&!1===s(e)||B(!1)}(0,g.useEffect)(()=>{I||Nn(document.body,`${N}--body--with-modal-open`,!!k)},[k,N]),(0,g.useEffect)(()=>{if(!I)return()=>{Nn(document.body,`${N}--body--with-modal-open`,!1)}},[]);const F=v()(`${N}--modal`,{"is-visible":O||M,[`${N}--modal--enable-presence`]:S?.autoEnablePresence,[`${N}--modal--danger`]:a,[`${N}--modal--slug`]:y,[`${N}--modal--decorator`]:l},r),V=v()(`${N}--modal-container`,h&&`${N}--modal-container--${h}`,i&&`${N}--modal-container--full-width`,o);let j;const q=g.Children.toArray(n).map(e=>{switch(!0){case(0,nn.isElement)(e)&&e.type===g.createElement(dn).type:{const t=e;return j=t.props.label,g.cloneElement(t,{closeModal:H})}case(0,nn.isElement)(e)&&e.type===g.createElement(wn).type:{const t=e;return g.cloneElement(t,{closeModal:H,inputref:C,danger:a})}default:return e}}),W=!g.Children.toArray(q).some(e=>Or(e,wn));(0,g.useEffect)(()=>{if(!k)return;const e=e=>{Bt(e,At)&&(e.preventDefault(),e.stopPropagation(),H(e))};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[k]),(0,g.useEffect)(()=>{I||O||k||!b||setTimeout(()=>{b.current?.focus()})},[I,O,k,b]),(0,g.useEffect)(()=>{const e=b?.current;return()=>{O&&e&&setTimeout(()=>{e.focus()})}},[O,b]),(0,g.useEffect)(()=>{if(!I){const e=e=>{const t=e||x.current;return(t?t.querySelector(a?`.${N}--btn--secondary`:f):null)||C&&C.current};k&&M&&(t=>{const n=e(t),r=t.querySelector(`.${N}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(x.current)}},[k,f,M]);const U=y??l,Z=Or(U,Ar)?(0,g.cloneElement)(U,{size:"sm"}):U,K=I?g.createElement(Gn,{open:k,focusAfterCloseRef:b,modal:!0,className:V,"aria-label":t||j,"aria-labelledby":e,"data-exiting":S?.isExiting||void 0},g.createElement("div",{ref:x,className:`${N}--modal-container-body`},y?Z:l?g.createElement("div",{className:`${N}--modal--inner__decorator`},Z):"",q)):g.createElement("div",{className:V,role:"dialog","aria-modal":"true","aria-label":t||j,"aria-labelledby":e},!z&&g.createElement("button",{type:"button",ref:$,className:`${N}--visually-hidden`},"Focus sentinel"),g.createElement("div",{ref:x,className:`${N}--modal-container-body`},y?Z:l?g.createElement("div",{className:`${N}--modal--inner__decorator`},Z):"",q),!z&&g.createElement("button",{type:"button",ref:_,className:`${N}--visually-hidden`},"Focus sentinel"));return g.createElement(cn,p({},w,{level:0,role:"presentation",ref:A,"aria-hidden":!k,onBlur:function({target:e,relatedTarget:t}){if(!I&&!z&&k&&t&&e&&x.current){const{current:n}=x,{current:r}=$,{current:o}=_;Vn({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:m?.filter(Boolean),prefix:N})}const n=document.querySelector(`.${N}--modal-content`);n&&n.classList.contains(`${N}--modal-scroll-content`)&&t&&n.contains(t)&&t.scrollIntoView({block:"center"})},onClick:qn([w?.onClick,function(e){const{target:t}=e,n=R.current;e.stopPropagation(),(W&&!d||!W&&!1===d)&&t instanceof Node&&!Fn(t,m,N)&&x.current&&!x.current.contains(t)&&!x.current.contains(n)&&H(e)}]),onMouseDown:qn([w?.onMouseDown,function(e){const t=e.target;R.current=t}]),onKeyDown:function(e){I||z&&k&&Bt(e,Rt)&&x.current&&jn({containerNode:x.current,currentActiveNode:e.target,event:e}),c?.(e)},className:F,"data-exiting":S?.isExiting||void 0}),K)});function zr({className:e,children:t,id:n,...r}){const o=T(),a=v()(`${o}--label`,`${o}--label--no-margin`,e);return g.createElement(Un,p({as:"label",htmlFor:n,className:a},r),t)}var Hr,Fr,Vr,jr;Dr.propTypes={"aria-label":h().string,"aria-labelledby":h().string,children:h().node,className:h().string,containerClassName:h().string,danger:h().bool,decorator:h().node,isFullWidth:h().bool,launcherButtonRef:h().oneOfType([h().func,h().shape({current:h().any})]),onClose:h().func,onKeyDown:h().func,open:h().bool,preventCloseOnClickOutside:h().bool,selectorPrimaryFocus:h().string,selectorsFloatingMenus:h().arrayOf(h().string.isRequired),size:h().oneOf(["xs","sm","md","lg"]),slug:Nt(h().node)},zr.propTypes={children:h().node,className:h().string,id:h().string};const qr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Hr||(Hr=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Fr||(Fr=g.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)}),Wr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Vr||(Vr=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),jr||(jr=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)});function Ur({children:e,className:t,onClick:n,inline:r,...o}){const a=T(),l=v()(t,{[`${a}--actionable-notification__action-button`]:!0});return g.createElement(tn,p({className:l,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function Zr({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=un.bm,name:a,notificationType:l="toast",...i}){const s=T(),c=v()(n,{[`${s}--${l}-notification__close-button`]:l}),u=v()({[`${s}--${l}-notification__close-icon`]:l});return g.createElement("button",p({},i,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&g.createElement(o,{className:u,name:a}))}Ur.propTypes={children:h().node,className:h().string,inline:h().bool,onClick:h().func},Zr.propTypes={"aria-label":h().string,ariaLabel:Nt(h().string),className:h().string,name:h().string,notificationType:h().oneOf(["toast","inline","actionable"]),renderIcon:h().oneOfType([h().func,h().object]),type:h().string};const Kr={error:gn.x,success:un._j,warning:$r,"warning-alt":Tr,info:qr,"info-square":Wr};function Gr({iconDescription:e,kind:t,notificationType:n}){const r=T(),o=Kr[t];return o?g.createElement(o,{className:`${r}--${n}-notification__icon`,size:20},g.createElement("title",null,e)):null}function Yr({actionButtonLabel:e,"aria-label":t,ariaLabel:n,caption:r,children:o,role:a="alertdialog",onActionButtonClick:l,onClose:i,onCloseButtonClick:s=hn,statusIconDescription:c,className:u,inline:d=!1,kind:f="error",lowContrast:m,hideCloseButton:h=!1,hasFocus:b=!0,closeOnEscape:y=!0,title:w,subtitle:E,...x}){const[C,$]=(0,g.useState)(!0),_=T(),R=qt("actionable-notification"),S=qt("actionable-notification-subtitle"),A=v()(u,{[`${_}--actionable-notification`]:!0,[`${_}--actionable-notification--toast`]:!d,[`${_}--actionable-notification--low-contrast`]:m,[`${_}--actionable-notification--${f}`]:f,[`${_}--actionable-notification--hide-close-button`]:h}),O=(0,g.useRef)(null),k=(0,g.useRef)(null),L=(0,g.useRef)(null),M=(0,g.useRef)(null),B=Ct("enable-experimental-focus-wrap-without-sentinels"),I=Ct("enable-focus-wrap-without-sentinels")||B;function D(e){s(e),i&&!1===i(e)||$(!1)}return N(()=>{if(b&&"alertdialog"===a){const e=document.querySelector(`button.${_}--actionable-notification__action-button`);e?.focus()}}),function(e,t,n=!0){const r=r=>{const o=e.current&&document.activeElement===e.current||e.current?.contains(document.activeElement);Mt(r,[At])&&n&&o&&t(r)};N(()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1)))}(M,D,y),C?g.createElement("div",p({},x,{ref:M,role:a,className:A,"aria-labelledby":w?R:S,onBlur:I?()=>{}:function({target:e,relatedTarget:t}){if(C&&t&&e&&"alertdialog"===a){const{current:n}=O,{current:r}=k,{current:o}=L;Vn({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,prefix:_})}},onKeyDown:I?function(e){C&&Bt(e,Rt)&&M.current&&"alertdialog"===a&&jn({containerNode:M.current,currentActiveNode:e.target,event:e})}:()=>{}}),!I&&g.createElement("span",{ref:k,tabIndex:0,role:"link",className:`${_}--visually-hidden`},"Focus sentinel"),g.createElement("div",{ref:O},g.createElement("div",{className:`${_}--actionable-notification__details`},g.createElement(Gr,{notificationType:d?"inline":"toast",kind:f,iconDescription:c||`${f} icon`}),g.createElement("div",{className:`${_}--actionable-notification__text-wrapper`},g.createElement("div",{className:`${_}--actionable-notification__content`},w&&g.createElement(Un,{as:"div",className:`${_}--actionable-notification__title`,id:R},w),E&&g.createElement(Un,{as:"div",className:`${_}--actionable-notification__subtitle`,id:S},E),r&&g.createElement(Un,{as:"div",className:`${_}--actionable-notification__caption`},r),o))),g.createElement("div",{className:`${_}--actionable-notification__button-wrapper`},e&&g.createElement(Ur,{onClick:l,inline:d},e),!h&&g.createElement(Zr,{"aria-label":n||t,notificationType:"actionable",onClick:D}))),!I&&g.createElement("span",{ref:L,tabIndex:0,role:"link",className:`${_}--visually-hidden`},"Focus sentinel")):null}Gr.propTypes={iconDescription:h().string.isRequired,kind:h().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:h().oneOf(["inline","toast"]).isRequired},h().string,Nt(h().string),h().string,h().node,h().string,h().bool,h().oneOf(["error","info","info-square","success","warning","warning-alt"]),h().bool,h().func,h().func,h().oneOf(["alert","log","status"]),h().string,h().string,h().number,h().string,h().string,h().node,h().string,h().bool,h().oneOf(["error","info","info-square","success","warning","warning-alt"]),h().bool,h().func,h().func,h().oneOf(["alert","log","status"]),h().string,h().string,h().string,Yr.propTypes={actionButtonLabel:h().string,"aria-label":h().string,ariaLabel:Nt(h().string),caption:h().string,children:h().node,className:h().string,closeOnEscape:h().bool,hasFocus:Nt(h().bool),hideCloseButton:h().bool,inline:h().bool,kind:h().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:h().bool,onActionButtonClick:h().func,onClose:h().func,onCloseButtonClick:h().func,role:h().string,statusIconDescription:h().string,subtitle:h().node,title:h().string};const Xr={error:"warning",success:"info"};h().string,h().node,h().string,E(h().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],e=>Xr[e]),h().bool,h().func,h().string,h().node,h().string,h().string;const Qr=(0,g.forwardRef)((e,t)=>{const{className:n,closeMenu:r,disabled:o=!1,handleOverflowMenuItemFocus:a,hasDivider:l=!1,href:i,isDelete:s=!1,index:c,itemText:u="Provide itemText",onClick:d=()=>{},onKeyDown:f=()=>{},requireTitle:m,title:h,wrapperClassName:b,...y}=e,w=T(),E=v()(`${w}--overflow-menu-options__btn`,n),N=v()(`${w}--overflow-menu-options__option`,{[`${w}--overflow-menu--divider`]:l,[`${w}--overflow-menu-options__option--danger`]:s,[`${w}--overflow-menu-options__option--disabled`]:o},b),x=i?"a":"button",C="string"!=typeof u?u:g.createElement("div",{className:`${w}--overflow-menu-options__option-content`},u);return g.createElement(Un,{as:"li",className:N,role:"none"},g.createElement(x,p({className:E,disabled:o,href:i,onClick:function(e){d(e),r&&r()},onKeyDown:e=>{!function(e){Bt(e,Lt)&&a?.({currentIndex:c,direction:1}),Bt(e,kt)&&a?.({currentIndex:c,direction:-1})}(e),f(e)},role:"menuitem",ref:t,tabIndex:-1,title:m?h||u:void 0},y),C))});Qr.propTypes={className:h().string,closeMenu:h().func,disabled:h().bool,handleOverflowMenuItemFocus:h().func,hasDivider:h().bool,href:h().string,index:h().number,isDelete:h().bool,itemText:h().node.isRequired,onBlur:h().func,onClick:h().func,onFocus:h().func,onKeyDown:h().func,onKeyUp:h().func,onMouseDown:h().func,onMouseEnter:h().func,onMouseLeave:h().func,onMouseUp:h().func,requireTitle:h().bool,title:h().string,wrapperClassName:h().string};const Jr=g.forwardRef((e,t)=>{const{className:n,decorator:r,disabled:o=!1,hideLabel:a,id:l,labelPosition:i="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:f,required:m,invalid:h=!1,invalidText:b,warn:y=!1,warnText:w,readOnly:E,...N}=e,x=T(),C=qt("radio-button"),$=l||C,_=(({id:e,readOnly:t,disabled:n,invalid:r,invalidText:o,warn:a,warnText:l})=>{const i=T(),s={disabled:!t&&n,invalid:!t&&!n&&r,invalidId:`${e}-error-msg`,warn:!t&&!r&&!n&&a,warnId:`${e}-warn-msg`,validation:null,icon:null,helperId:`${e}-helper-text`};return s.invalid?(s.icon=$r,s.validation=g.createElement(Un,{as:"div",className:`${i}--form-requirement`,id:s.invalidId},o)):s.warn&&(s.icon=Tr,s.validation=g.createElement(Un,{as:"div",className:`${i}--form-requirement`,id:s.warnId},l)),s})({id:$,readOnly:E,disabled:o,invalid:h,invalidText:b,warn:y,warnText:w}),R=v()(`${x}--radio-button__label-text`,{[`${x}--visually-hidden`]:a}),S=v()(n,`${x}--radio-button-wrapper`,{[`${x}--radio-button-wrapper--label-${i}`]:"right"!==i,[`${x}--radio-button-wrapper--slug`]:f,[`${x}--radio-button-wrapper--decorator`]:r,[`${x}--radio-button-wrapper--invalid`]:_.invalid,[`${x}--radio-button-wrapper--warning`]:_.warn}),A=(0,g.useRef)(null),O=f??r,k=Or(O,Ar)?(0,g.cloneElement)(O,{size:"inline"===O.props?.kind?"md":"mini"}):O;return g.createElement("div",{className:S},g.createElement("input",p({},N,{type:"radio",className:`${x}--radio-button`,onChange:function(e){u(d,c,e)},id:$,ref:En(A,t),disabled:_.disabled,value:d,name:c,required:m,readOnly:E})),g.createElement("label",{htmlFor:$,className:`${x}--radio-button__label`},g.createElement("span",{className:`${x}--radio-button__appearance`}),s&&g.createElement(Un,{className:R},s,f?k:r?g.createElement("div",{className:`${x}--radio-button-wrapper-inner--decorator`},k):"")),_.validation)});function eo(e){const{className:t,...n}=e,r=T();return g.createElement("div",p({className:v()(`${r}--radio-button-wrapper`,t)},n),g.createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),g.createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}Jr.displayName="RadioButton",Jr.propTypes={checked:h().bool,className:h().string,decorator:h().node,defaultChecked:h().bool,disabled:h().bool,hideLabel:h().bool,id:h().string,labelPosition:h().oneOf(["right","left"]),labelText:h().node.isRequired,name:h().string,onChange:h().func,onClick:h().func,required:h().bool,invalid:h().bool,invalidText:h().node,warn:h().bool,warnText:h().node,readOnly:h().bool,slug:Nt(h().node),value:h().oneOfType([h().string,h().number])},eo.propTypes={className:h().string};const to=e=>g.createElement(Un,p({as:"legend"},e));const no=g.forwardRef((e,t)=>{const{children:n,className:r,decorator:o,defaultSelected:a,disabled:l,helperText:i,invalid:s=!1,invalidText:c,labelPosition:u="right",legendText:d,name:f,onChange:m=()=>{},orientation:h="horizontal",readOnly:b,valueSelected:y,warn:w=!1,warnText:E,slug:N,required:x,...C}=e,$=T(),[_,R]=(0,g.useState)(y??a),[S,A]=(0,g.useState)(y),O=qt();function k(e,t,n){b||e!==_&&(R(e),m(e,f,n))}y!==S&&(R(y),A(y));const L=!b&&!l&&!s&&w,M=!s&&!l&&!w,B=v()(`${$}--form-item`,r),I=v()(`${$}--radio-button-group`,{[`${$}--radio-button-group--${h}`]:"vertical"===h,[`${$}--radio-button-group--label-${u}`]:u,[`${$}--radio-button-group--readonly`]:b,[`${$}--radio-button-group--invalid`]:!b&&!l&&s,[`${$}--radio-button-group--warning`]:L,[`${$}--radio-button-group--slug`]:N,[`${$}--radio-button-group--decorator`]:o}),D=v()(`${$}--form__helper-text`,{[`${$}--form__helper-text--disabled`]:l}),P=i?`radio-button-group-helper-text-${O}`:void 0,z=i?g.createElement("div",{id:P,className:D},i):null,H=(0,g.useRef)(null),F=N??o,V=Or(F,Ar)?(0,g.cloneElement)(F,{size:"mini",kind:"default"}):F;return g.createElement("div",{className:B,ref:En(H,t)},g.createElement("fieldset",p({className:I,disabled:l,"data-invalid":!!s||void 0,"aria-describedby":M&&i?P:void 0},C),d&&g.createElement(to,{className:`${$}--label`},d,N?V:o?g.createElement("div",{className:`${$}--radio-button-group-inner--decorator`},V):""),g.Children.map(n,e=>{if(!e)return;const t={name:f,key:e.props.value,value:e.props.value,onChange:k,checked:e.props.value===_,required:x};return!_&&e.props.checked&&(t.checked=!0),g.cloneElement(e,t)})),g.createElement("div",{className:`${$}--radio-button__validation-msg`},!b&&!l&&s&&g.createElement(g.Fragment,null,g.createElement($r,{className:`${$}--radio-button__invalid-icon`}),g.createElement("div",{className:`${$}--form-requirement`},c)),L&&g.createElement(g.Fragment,null,g.createElement(Tr,{className:`${$}--radio-button__invalid-icon ${$}--radio-button__invalid-icon--warning`}),g.createElement("div",{className:`${$}--form-requirement`},E))),M&&z)});var ro,oo;no.propTypes={children:h().node,className:h().string,decorator:h().node,defaultSelected:h().oneOfType([h().string,h().number]),disabled:h().bool,helperText:h().node,invalid:h().bool,invalidText:h().node,labelPosition:h().oneOf(["left","right"]),legendText:h().node,name:h().string.isRequired,onChange:h().func,orientation:h().oneOf(["horizontal","vertical"]),readOnly:h().bool,required:h().bool,slug:Nt(h().node),valueSelected:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node},no.displayName="RadioButtonGroup";const ao=g.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},ro||(ro=g.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),e):g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},oo||(oo=g.createElement("path",{d:"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"})),e)}),lo=(0,g.createContext)({isFluid:!1});var io;const so=g.forwardRef(({autoComplete:e="off",className:t,closeButtonLabelText:n="Clear search input",defaultValue:r,disabled:o,isExpanded:a=!0,id:l,labelText:i,light:s,onChange:c=()=>{},onClear:u=()=>{},onKeyDown:d,onExpand:f,placeholder:m="Search",renderIcon:h,role:b,size:y="md",type:w="search",value:E,...N},C)=>{const $=!(!E&&!r),_=T(),{isFluid:R}=(0,g.useContext)(lo),S=(0,g.useRef)(null),A=x([C,S]),O=(0,g.useRef)(null),k=qt("search-input"),L=l||k,M=`${L}-search`,[B,I]=(0,g.useState)($||!1),[D,P]=(0,g.useState)(E),z=v()({[`${_}--search`]:!0,[`${_}--search--sm`]:"sm"===y,[`${_}--search--md`]:"md"===y,[`${_}--search--lg`]:"lg"===y,[`${_}--search--light`]:s,[`${_}--search--disabled`]:o,[`${_}--search--fluid`]:R},t),H=v()({[`${_}--search-close`]:!0,[`${_}--search-close--hidden`]:!B||!a});function F(){if(!E&&S.current&&(S.current.value=""),S.current){const e=Object.assign({},S.current,{value:""}),t={bubbles:!1,cancelable:!1,currentTarget:S.current,defaultPrevented:!1,eventPhase:0,isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,isTrusted:!1,nativeEvent:new Event("change"),persist:hn,preventDefault:hn,stopPropagation:hn,target:e,timeStamp:0,type:"change"};c(t)}u(),I(!1),S.current?.focus()}E!==D&&(I(!!E),P(E));const V=g.createElement("div",{"aria-labelledby":f?M:void 0,role:f?"button":void 0,className:`${_}--search-magnifier`,onClick:f,onKeyDown:function(e){(Bt(e,St)||Bt(e,Ot))&&(e.stopPropagation(),f&&f(e))},tabIndex:f&&!a?0:-1,ref:O,"aria-expanded":!(!f||!a)||!(f&&!a)&&void 0,"aria-controls":f?L:void 0},g.createElement(co,{icon:h})),j=f&&!a?g.createElement(Gt,{className:`${_}--search-tooltip ${_}--search-magnifier-tooltip`,align:"top",label:"Search"},V):V;return g.createElement("div",{role:"search","aria-label":m,className:z},j,g.createElement("label",{id:M,htmlFor:L,className:`${_}--label`},i),g.createElement("input",p({autoComplete:e,className:`${_}--search-input`,defaultValue:r,disabled:o,role:b,ref:A,id:L,onChange:qn([c,function(e){I(""!==e.target.value)}]),onKeyDown:qn([d,function(e){Bt(e,At)&&(e.stopPropagation(),S.current?.value?F():f&&a&&O.current?.focus())}]),placeholder:m,type:w,value:E,tabIndex:f&&!a?-1:void 0},N)),g.createElement("button",{"aria-label":n,className:H,disabled:o,onClick:F,title:n,type:"button"},io||(io=g.createElement(un.bm,null))))});function co({icon:e}){const t=T();return e?g.createElement(e,{className:`${t}--search-magnifier-icon`}):g.createElement(ao,{className:`${t}--search-magnifier-icon`})}so.displayName="Search",so.propTypes={autoComplete:h().string,className:h().string,closeButtonLabelText:h().string,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,id:h().string,isExpanded:h().bool,labelText:h().node.isRequired,light:Nt(h().bool),onChange:h().func,onClear:h().func,onExpand:h().func,onKeyDown:h().func,placeholder:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:Nt(h().string),size:h().oneOf(["sm","md","lg"]),type:h().string,value:h().oneOfType([h().string,h().number])},co.propTypes={icon:h().oneOfType([h().func,h().object])};const uo=({className:e,...t})=>{const n=T(),r=v()(e,{[`${n}--icon--skeleton`]:!0});return g.createElement("div",p({className:r},t))};uo.propTypes={className:h().string};const fo=({align:e="bottom",autoAlign:t,className:n,children:r,definition:o,defaultOpen:a=!1,id:l,openOnHover:i,tooltipText:s,triggerClassName:c,...u})=>{const[d,f]=(0,g.useState)(a),m=T(),h=function(e){const t=qt();return e??t}(l);return g.createElement($t,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{f(!1)},onMouseEnter:()=>{i&&f(!0)},onFocus:()=>{f(!0)},open:d},g.createElement("button",p({},u,{className:v()(`${m}--definition-term`,c),"aria-controls":h,"aria-describedby":h,"aria-expanded":d,onBlur:()=>{f(!1)},onMouseDown:e=>{0===e.button&&f(!d)},onKeyDown:function(e){d&&Bt(e,At)&&(e.stopPropagation(),f(!1))},type:"button"}),r),g.createElement(_t,{className:`${m}--definition-tooltip`,id:h},s??o))};var po;fo.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),autoAlign:h().bool,children:h().node.isRequired,className:h().string,defaultOpen:h().bool,definition:h().node.isRequired,id:h().string,openOnHover:h().bool,tooltipText:Nt(h().node),triggerClassName:h().string};const mo={red:"Red",magenta:"Magenta",purple:"Purple",blue:"Blue",cyan:"Cyan",teal:"Teal",green:"Green",gray:"Gray","cool-gray":"Cool-Gray","warm-gray":"Warm-Gray","high-contrast":"High-Contrast",outline:"Outline"},ho=g.forwardRef(({children:e,className:t,decorator:n,id:r,type:o,filter:a,renderIcon:l,title:i="Clear filter",disabled:s,onClose:c,size:u,as:d,slug:f,...m},h)=>{const b=T(),y=(0,g.useRef)(null);a&&console.warn("The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead."),c&&console.warn("The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.");const w=x([h,y]),E=r||`tag-${qt()}`,[N,C]=(0,g.useState)(!1);(0,g.useLayoutEffect)(()=>{const e=y.current?.getElementsByClassName(`${b}--tag__label`)[0];C((e=>!!e&&e?.offsetWidth<e?.scrollWidth)(e))},[b,y]);const $=[`${b}--tag--selectable`,`${b}--tag--filter`,`${b}--tag--operational`].some(e=>t?.includes(e)),_=v()(`${b}--tag`,t,{[`${b}--tag--disabled`]:s,[`${b}--tag--filter`]:a,[`${b}--tag--${u}`]:u,[`${b}--layout--size-${u}`]:u,[`${b}--tag--${o}`]:o,[`${b}--tag--interactive`]:m.onClick&&!$&&N}),R=void 0!==o&&o in Object.keys(mo)?mo[o]:"",S=e=>{c&&(e.stopPropagation(),c(e))},A=f??n,O=Or(A,Ar)&&!$?(0,g.cloneElement)(A,{size:"sm",kind:"inline"}):null;if(a){const t=d??"div";return g.createElement(t,p({className:_,id:E},m),l&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(l,null)):"",g.createElement(Un,{title:"string"==typeof e?e:void 0,className:`${b}--tag__label`},null!=e?e:R),O,g.createElement("button",{type:"button",className:`${b}--tag__close-icon`,onClick:S,disabled:s,"aria-label":i,title:i},po||(po=g.createElement(un.bm,null))))}const k=d??(m.onClick||t?.includes(`${b}--tag--operational`)?"button":"div"),L=v()({[`${b}--tag__label`]:!$});return g.createElement(k,p({ref:w,disabled:s,className:_,id:E,type:"button"===k?"button":void 0},m),l&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(l,null)):"",N&&!$?g.createElement(fo,{openOnHover:!1,definition:null!=e?e:R,className:`${b}--definition--tooltip--tag`},g.createElement(Un,{title:null!=e&&"string"==typeof e?e:R,className:L},null!=e?e:R)):g.createElement(Un,{title:null!=e&&"string"==typeof e?e:R,className:L},null!=e?e:R),f?O:n?g.createElement("div",{className:`${b}--tag__decorator`},O):"")}),go=ho;var bo,yo,vo,wo;go.propTypes={as:h().elementType,children:h().node,className:h().string,decorator:h().node,disabled:h().bool,filter:Nt(h().bool),id:h().string,onClose:Nt(h().func),renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:Nt(h().node),title:Nt(h().string),type:h().oneOf(Object.keys(mo))};const Eo=g.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},bo||(bo=g.createElement("path",{d:"M9.3 3.7 13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),e):20===t||"20"===t||"20px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},yo||(yo=g.createElement("path",{d:"M11.8 2.8 10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),e):24===t||"24"===t||"24px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},vo||(vo=g.createElement("path",{d:"M14 4 12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),e):g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},wo||(wo=g.createElement("path",{d:"M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),e)});var No,xo,Co;const To=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},No||(No=g.createElement("path",{d:"M19,21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4Z"})),xo||(xo=g.createElement("path",{d:"M15.5005,21h2l-3.5005-11h-3l-3.4966,11h1.9988l.6018-2h4.7781l.6184,2ZM10.7058,17l1.6284-5.4111.2559-.0024,1.6736,5.4136h-3.5579Z"})),Co||(Co=g.createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)}),$o=g.forwardRef(({as:e,children:t,className:n,href:r,disabled:o=!1,inline:a=!1,visited:l=!1,renderIcon:i,size:s,target:c,...u},d)=>{const f=T(),m={className:v()(`${f}--link`,n,{[`${f}--link--disabled`]:o,[`${f}--link--inline`]:a,[`${f}--link--visited`]:l,[`${f}--link--${s}`]:s}),rel:"_blank"===c?"noopener":void 0,target:c};o?(m.role="link",m["aria-disabled"]=!0):m.href=r;const h=e??"a";return g.createElement(h,p({ref:d},m,u,{onClick:e=>{o?(e.preventDefault(),e.stopPropagation()):u.onClick&&u.onClick(e)}}),t,!a&&i&&g.createElement("span",{className:`${f}--link__icon`},g.createElement(i,null)))}),_o=$o;var Ro,So,Ao,Oo;_o.displayName="Link",_o.propTypes={as:h().elementType,children:h().node,className:h().string,disabled:h().bool,href:h().string,inline:h().bool,renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(["sm","md","lg"]),visited:h().bool};const ko=g.forwardRef(({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:a=!1,...l},i)=>{const s=T(),c=v()(`${s}--tile`,{[`${s}--tile--light`]:r,[`${s}--tile--slug`]:o,[`${s}--tile--slug-rounded`]:o&&a,[`${s}--tile--decorator`]:n,[`${s}--tile--decorator-rounded`]:n&&a},t);return g.createElement("div",p({className:c,ref:i},l),e,o,n&&g.createElement("div",{className:`${s}--tile--inner-decorator`},n))});ko.displayName="Tile",ko.propTypes={children:h().node,className:h().string,decorator:h().node,hasRoundedCorners:h().bool,light:Nt(h().bool),slug:Nt(h().node)};const Lo=g.forwardRef(({children:e,className:t,clicked:n=!1,decorator:r,disabled:o,href:a,light:l,onClick:i=()=>{},onKeyDown:s=()=>{},renderIcon:c,hasRoundedCorners:u,slug:d,...f},m)=>{const h=T(),b=v()(`${h}--tile`,`${h}--tile--clickable`,{[`${h}--tile--is-clicked`]:n,[`${h}--tile--light`]:l,[`${h}--tile--slug`]:d,[`${h}--tile--slug-rounded`]:d&&u,[`${h}--tile--decorator`]:r,[`${h}--tile--decorator-rounded`]:r&&u},t),[y,w]=(0,g.useState)(n),E=Ct("enable-v12-tile-default-icons");E&&(c||(c=Eo),o&&(c=gn.$D));const N=v()({[`${h}--tile--icon`]:!E||E&&!o,[`${h}--tile--disabled-icon`]:E&&o});return g.createElement(_o,p({className:b,href:a,tabIndex:a||o?void 0:0,onClick:o?void 0:function(e){e?.persist?.(),w(!y),i(e)},onKeyDown:function(e){e?.persist?.(),Mt(e,[St,Ot])&&w(!y),s(e)},ref:m,disabled:o},f),d||r?g.createElement("div",{className:`${h}--tile-content`},e):e,(!0===d||!0===r)&&g.createElement(To,{size:"24",className:`${h}--tile--ai-label-icon`}),g.isValidElement(r)&&g.createElement("div",{className:`${h}--tile--inner-decorator`},r),c&&g.createElement(c,{className:N,"aria-hidden":"true"}))});Lo.displayName="ClickableTile",Lo.propTypes={children:h().node,className:h().string,clicked:h().bool,decorator:h().oneOfType([h().bool,h().node]),disabled:h().bool,hasRoundedCorners:h().bool,href:h().string,light:Nt(h().bool),onClick:h().func,onKeyDown:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object])},g.forwardRef(({children:e,className:t,decorator:n,disabled:r,id:o,light:a,onClick:l=()=>{},onChange:i=()=>{},onKeyDown:s=()=>{},selected:c=!1,tabIndex:u=0,title:d="title",slug:f,hasRoundedCorners:m,...h},b)=>{const y=T(),w=l,E=s,[N,x]=(0,g.useState)(c);(0,g.useEffect)(()=>{x(c)},[c]);const C=v()(`${y}--tile`,`${y}--tile--selectable`,{[`${y}--tile--is-selected`]:N,[`${y}--tile--light`]:a,[`${y}--tile--disabled`]:r,[`${y}--tile--slug`]:f,[`${y}--tile--slug-rounded`]:f&&m,[`${y}--tile--decorator`]:n,[`${y}--tile--decorator-rounded`]:n&&m},t),$=(0,g.useCallback)((e,t)=>{x(t),i(e,t,o)},[i,o]),_=(0,g.useRef)(null),R=f??n,S=Or(R,Ar)?(0,g.cloneElement)(R,{size:"xs",ref:_}):R;return g.createElement("div",p({className:C,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),S&&_.current&&e.target instanceof Node&&_.current.contains(e.target)||($(e,!N),w(e))},role:"checkbox","aria-checked":N,onKeyDown:r?void 0:function(e){e?.persist?.(),Mt(e,[St,Ot])&&(e.preventDefault(),$(e,!N)),E(e)},tabIndex:r?void 0:u,ref:b,id:o,title:d},h),g.createElement("span",{className:`${y}--tile__checkmark ${y}--tile__checkmark--persistent`},N?Ro||(Ro=g.createElement(un.NW,null)):So||(So=g.createElement(un.Sc,null))),g.createElement(Un,{as:"label",htmlFor:o,className:`${y}--tile-content`},e),f?S:n?g.createElement("div",{className:`${y}--tile--inner-decorator`},S):"")}).propTypes={children:h().node,className:h().string,decorator:h().node,disabled:h().bool,hasRoundedCorners:h().bool,id:h().string,light:Nt(h().bool),name:Nt(h().string),onChange:h().func,onClick:h().func,onKeyDown:h().func,selected:h().bool,slug:Nt(h().node),tabIndex:h().number,title:h().string,value:Nt(h().oneOfType([h().string,h().number]))};const Mo=(0,g.forwardRef)(({tabIndex:e=0,className:t,children:n,decorator:r,expanded:o=!1,tileMaxHeight:a=0,tilePadding:l=0,onClick:i,onKeyUp:s,tileCollapsedIconText:c="Interact to expand Tile",tileExpandedIconText:u="Interact to collapse Tile",tileCollapsedLabel:d,tileExpandedLabel:f,light:m,slug:h,hasRoundedCorners:b,...y},w)=>{const[E,C]=(0,g.useState)(0),[$,_]=(0,g.useState)(0),[R,S]=(0,g.useState)(o),[A,O]=(0,g.useState)(!0),k=(0,g.useRef)(null),L=(0,g.useRef)(null),M=(0,g.useRef)(null),B=(0,g.useRef)(null),I=(0,g.useRef)(null),D=x([w,I]),P=T();(0,g.useEffect)(()=>{S(o)},[o]);const z=()=>{S(e=>!e)},H=e=>{e.target!==I.current&&e.target!==M.current&&Mt(e,[St,Ot])&&e.preventDefault()},F=v()(`${P}--tile`,`${P}--tile--expandable`,{[`${P}--tile--is-expanded`]:R,[`${P}--tile--light`]:m},t),V=v()(F,`${P}--tile--expandable--interactive`,{[`${P}--tile--slug`]:h,[`${P}--tile--slug-rounded`]:h&&b,[`${P}--tile--decorator`]:r,[`${P}--tile--decorator-rounded`]:r&&b}),j=v()(`${P}--tile__chevron`,`${P}--tile__chevron--interactive`),q=g.Children.toArray(n);N(()=>{if(!I.current||!k.current)return;const e=window.getComputedStyle(I.current),t=parseInt(e.getPropertyValue("padding-top"),10)||0,n=parseInt(e.getPropertyValue("padding-bottom"),10)||0;_(t+n),C(k.current.scrollHeight)},[]),N(()=>{if(!k.current||!L.current)return;const e=Boolean(Wt(k.current))||Boolean(Ut(k.current))||Boolean(Wt(L.current))||Boolean(Ut(L.current))||Boolean(h||r);O(e)},[h,r,n]),N(()=>{if(!I.current)return;if(R)return void(I.current.style.maxHeight="");const e=E||k.current?.scrollHeight||0,t=a>0?a:e,n=l>0?l:$;I.current.style.maxHeight=`${t+n}px`},[R,a,l,E,$]),(0,g.useEffect)(()=>{if(!k.current)return;const e=new ResizeObserver(()=>{k.current&&C(k.current.scrollHeight)});return e.observe(k.current),()=>e.disconnect()},[]);const W=qt(A?"expandable-tile-interactive":"expandable-tile"),U=h??r,Z=Or(U,Ar)?(0,g.cloneElement)(U,{size:"xs"}):U;return A?g.createElement("div",p({ref:D,className:V},y),g.createElement("div",{ref:B},h?Z:r?g.createElement("div",{className:`${P}--tile--inner-decorator`},Z):"",g.createElement("div",{ref:k,className:`${P}--tile-content`},q[0]),g.createElement("button",{type:"button","aria-expanded":R,"aria-controls":W,onKeyUp:qn([s,H]),onClick:qn([i,z]),"aria-label":R?u:c,ref:M,className:j},Ao||(Ao=g.createElement(un.yQ,null))),g.createElement("div",{ref:L,className:`${P}--tile-content`,id:W},q[1]))):g.createElement("button",p({type:"button",ref:D,className:F,"aria-controls":W,"aria-expanded":R,title:R?u:c},y,{onKeyUp:qn([s,H]),onClick:qn([i,z]),tabIndex:e}),g.createElement("div",{ref:B},g.createElement("div",{ref:k,className:`${P}--tile-content`},q[0]),g.createElement("div",{className:`${P}--tile__chevron`},g.createElement("span",null,R?f:d),Oo||(Oo=g.createElement(un.yQ,null))),g.createElement("div",{ref:L,id:W,className:`${P}--tile-content`},q[1])))});Mo.propTypes={children:h().node,className:h().string,decorator:h().node,expanded:h().bool,hasRoundedCorners:h().bool,id:h().string,light:Nt(h().bool),onClick:h().func,onKeyUp:h().func,slug:Nt(h().node),tabIndex:h().number,tileCollapsedIconText:h().string,tileCollapsedLabel:h().string,tileExpandedIconText:h().string,tileExpandedLabel:h().string},Mo.displayName="ExpandableTile";const Bo=g.forwardRef(({children:e},t)=>{const n=T();return g.createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)});Bo.propTypes={children:h().node},Bo.displayName="TileAboveTheFoldContent";const Io=g.forwardRef(({children:e},t)=>{const n=T();return g.createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)});Io.propTypes={children:h().node},Io.displayName="TileBelowTheFoldContent";const Do=({className:e,children:t,...n})=>{const r=T(),o=v()(`${r}--header`,e);return g.createElement("header",p({},n,{className:o}),t)};Do.propTypes={"aria-label":h().string,"aria-labelledby":h().string,className:h().string};const Po=(e=>{const t=Object.keys(e),n=e=>(t,n,r,...o)=>e(t,n,r,...o);return t.reduce((t,r)=>({...t,[r]:n(e[r])}),{})})({"aria-label":h().string,"aria-labelledby":h().string}),zo=g.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:a=!0,tooltipDropShadow:l,isActive:i,tooltipAlignment:s,...c},u)=>{const d=T(),f=v()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:i}),m={"aria-label":e,"aria-labelledby":t};return g.createElement(tn,p({},c,m,{className:f,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:s,tooltipDropShadow:l,tooltipHighContrast:a,ref:u}),n)});zo.propTypes={...Po,children:h().node.isRequired,className:h().string,isActive:h().bool,onClick:h().func,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool},zo.displayName="HeaderGlobalAction";const Ho=(({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=T(),a=v()("function"==typeof t?t(o):t,e);return g.createElement(n,{...r,className:a||void 0})}return r.displayName=e,r.propTypes={className:h().string},r})({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var Fo,Vo,jo=n(810);function qo({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:a,isCollapsible:l,...i}){const s=T(),c=v()({..."string"==typeof n&&{[n]:!!n},[`${s}--header__action`]:!0,[`${s}--header__menu-trigger`]:!0,[`${s}--header__action--active`]:a,[`${s}--header__menu-toggle`]:!0,[`${s}--header__menu-toggle__hidden`]:!l}),u=r||Fo||(Fo=g.createElement(jo.W1,{size:20})),d=o||Vo||(Vo=g.createElement(un.bm,{size:20}));return g.createElement("button",p({},i,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),a?d:u)}qo.propTypes={...Po,className:h().string,isActive:h().bool,isCollapsible:h().bool,onClick:h().func};const Wo=(0,g.forwardRef)((e,t)=>{const{element:n,as:r,isSideNavExpanded:o,...a}=e,l=r??n??"a";return g.createElement(l,p({ref:t},a))}),Uo={as:h().elementType,element:Nt(h().elementType),isSideNavExpanded:h().bool};function Zo({children:e,className:t,prefix:n="IBM",...r}){const o=T(),a=v()(`${o}--header__name`,t);return g.createElement(Wo,p({},r,{className:a}),n&&g.createElement(g.Fragment,null,g.createElement("span",{className:`${o}--header__name--prefix`},n)," "),g.createElement("span",null,e))}Wo.displayName="Link",Wo.propTypes=Uo,Zo.propTypes={...Uo,children:h().node.isRequired,className:h().string,href:h().string,prefix:h().string};const Ko=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu","SideNavLink"];function Go(e){return"".concat(e/16,"rem")}Go(320),Go(672),Go(16);var Yo={width:Go(1056),columns:16,margin:Go(16)};Go(1312),Go(16),Go(1584),Go(24);function Xo(e){return Go(8*e)}Xo(.25),Xo(.5),Xo(1),Xo(1.5),Xo(2),Xo(3),Xo(4),Xo(5),Xo(6),Xo(8),Xo(10),Xo(12),Xo(20),Xo(2),Xo(3),Xo(4),Xo(6),Xo(8),Xo(12),Xo(20),Xo(3),Xo(4),Xo(5),Xo(6),Xo(8),Go(24),Go(32),Go(40),Go(48),Go(64),Go(80);const Qo=(0,g.createContext)({}),Jo=(0,g.forwardRef)((e,t)=>{const{expanded:n,defaultExpanded:r=!1,isChildOfHeader:o=!0,"aria-label":a,"aria-labelledby":l,children:i,onToggle:s,className:c,href:u,isFixedNav:d=!1,isRail:f,isPersistent:m=!0,addFocusListeners:h=!0,addMouseListeners:b=!0,onOverlayClick:y,onSideNavBlur:w,enterDelayMs:E=100,...N}=e,C=T(),{current:$}=(0,g.useRef)(void 0!==n),[R,S]=It(r),[A,O]=It(r),k=$?n:R,L=(0,g.useRef)(null),M=x([L,t]),B=(e,t=!k)=>{$||S(t,E),s&&s(e,t),($||f)&&O(t,E)},I={"aria-label":a,"aria-labelledby":l},D=v()(c,{[`${C}--side-nav`]:!0,[`${C}--side-nav--expanded`]:k||A,[`${C}--side-nav--collapsed`]:!k&&d,[`${C}--side-nav--rail`]:f,[`${C}--side-nav--ux`]:o,[`${C}--side-nav--hidden`]:!m}),P=v()({[`${C}--side-nav__overlay`]:!0,[`${C}--side-nav__overlay-active`]:k||A});let z=i;z=g.Children.map(i,e=>{const t=$&&A||k;if((0,g.isValidElement)(e)){const n=e;return g.cloneElement(n,{...Ko.includes(n.type?.displayName??n.type?.name)?{isSideNavExpanded:t}:{}})}return e});const H={};h&&(H.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&f&&B(e,!0)},H.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||B(e,!1),e.currentTarget.contains(e.relatedTarget)||!k||d||w&&w()},H.onKeyDown=e=>{Bt(e,At)&&(B(e,!1),u&&(window.location.href=u))}),b&&f&&(H.onMouseEnter=()=>{B(!0,!0)},H.onMouseLeave=()=>{S(!1),O(!1),B(!1,!1)},H.onClick=()=>{S(!0),O(!0),B(!0,!0)}),_("keydown",e=>{const t=document.activeElement;Bt(e,Rt)&&k&&!d&&L.current&&t?.classList.contains(`${C}--header__menu-toggle`)&&!t.closest("nav")&&L.current.focus()});const F=((e,t=!1)=>{const[n,r]=(0,g.useState)(t);return(0,g.useEffect)(()=>{const t=e=>{r(e.matches)},n=window.matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>{n.removeEventListener("change",t)}},[e]),n})(`(min-width: ${Yo.width})`),V=!f&&!(k||F);return(0,g.useEffect)(()=>{const e=L.current;e&&(V?e.setAttribute("inert",""):e.removeAttribute("inert"))},[V]),g.createElement(Qo.Provider,{value:{isRail:f}},d?null:g.createElement("div",{className:P,onClick:y}),g.createElement("nav",p({tabIndex:-1,ref:M,className:`${C}--side-nav__navigation ${D}`},I,H,N),z))});Jo.displayName="SideNav",Jo.propTypes={...Po,addFocusListeners:h().bool,addMouseListeners:h().bool,className:h().string,defaultExpanded:h().bool,enterDelayMs:h().number,expanded:h().bool,href:h().string,isChildOfHeader:h().bool,isFixedNav:h().bool,isPersistent:h().bool,isRail:h().bool,onOverlayClick:h().func,onSideNavBlur:h().func,onToggle:h().func}},2694(e,t,n){"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2799(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103;n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},4363(e,t,n){"use strict";e.exports=n(2799)},1020(e,t,n){"use strict";var r=n(6072);Symbol.for("react.element"),Symbol.for("react.fragment"),Object.prototype.hasOwnProperty,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},4848(e,t,n){"use strict";n(1020)},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}}]);
1
+ /*! For license information please see 135.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[135],{428(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>p});var l=["width","height","viewBox"],s=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(5556),d=n.n(u),f=n(6072);const p=(0,f.forwardRef)(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},d){const{tabindex:p,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=i(e,l),d=u.tabindex,f=i(u,s),p=a(a(a({},c),f),{},{width:t,height:n,viewBox:o});return p["aria-label"]||p["aria-labelledby"]?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}({...u,tabindex:n}),h=m;return e&&(h.className=e),null!=p&&(h.tabIndex="number"==typeof p?p:Number(n)),d&&(h.ref=d),r&&(h.xmlns=r),o&&(h.preserveAspectRatio=o),f.createElement("svg",h,t)});p.displayName="Icon",p.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},810(e,t,n){"use strict";n.d(t,{W1:()=>A,Xj:()=>O,hz:()=>S});var r,o,a,i,l,s,c,u,d,f,p,m,h,g,b,y,v,w,E,N,x,C,T,$,_=n(6072),R=n(428);const S=_.forwardRef(function({children:e,size:t=16,...n},l){return 16===t||"16"===t||"16px"===t?_.createElement(R.A,{width:t,height:t,ref:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=_.createElement("path",{d:"M6 15 6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15z"})),o||(o=_.createElement("path",{d:"M10 1 10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):_.createElement(R.A,{width:t,height:t,ref:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=_.createElement("path",{d:"M20 2 20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),i||(i=_.createElement("path",{d:"M14 19.416 12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)}),A=_.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},l||(l=_.createElement("path",{d:"M2 12H14V13H2z"})),s||(s=_.createElement("path",{d:"M2 9H14V10H2z"})),c||(c=_.createElement("path",{d:"M2 6H14V7H2z"})),u||(u=_.createElement("path",{d:"M2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},d||(d=_.createElement("path",{d:"M2 14.8H18V16H2z"})),f||(f=_.createElement("path",{d:"M2 11.2H18V12.399999999999999H2z"})),p||(p=_.createElement("path",{d:"M2 7.6H18V8.799999999999999H2z"})),m||(m=_.createElement("path",{d:"M2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},h||(h=_.createElement("path",{d:"M3 18H21V19.5H3z"})),g||(g=_.createElement("path",{d:"M3 13.5H21V15H3z"})),b||(b=_.createElement("path",{d:"M3 9H21V10.5H3z"})),y||(y=_.createElement("path",{d:"M3 4.5H21V6H3z"})),e):_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},v||(v=_.createElement("path",{d:"M4 6H28V8H4z"})),w||(w=_.createElement("path",{d:"M4 24H28V26H4z"})),E||(E=_.createElement("path",{d:"M4 12H28V14H4z"})),N||(N=_.createElement("path",{d:"M4 18H28V20H4z"})),e)}),O=_.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},x||(x=_.createElement("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"})),C||(C=_.createElement("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):_.createElement(R.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},T||(T=_.createElement("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"})),$||($=_.createElement("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)})},9184(e,t,n){"use strict";n.d(t,{NW:()=>C,Sc:()=>x,_j:()=>T,bm:()=>R,c_:()=>_,yQ:()=>$});var r,o,a,i,l,s,c,u,d,f,p,m,h,g,b,y,v,w,E=n(6072),N=n(428);const x=E.forwardRef(function({children:e,size:t=16,...n},o){return E.createElement(N.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=E.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),e)}),C=E.forwardRef(function({children:e,size:t=16,...n},r){return E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=E.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),a||(a=E.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),e)}),T=E.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=E.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),l||(l=E.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=E.createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),c||(c=E.createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=E.createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),d||(d=E.createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),p||(p=E.createElement("path",{fill:"none",d:"M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),e)}),$=E.forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},m||(m=E.createElement("path",{d:"M5 6 0 1 .7.3 5 4.6 9.3.3 10 1z"})),e):16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},h||(h=E.createElement("path",{d:"M8 11 3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},g||(g=E.createElement("path",{d:"M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)}),_=E.forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},b||(b=E.createElement("path",{d:"M6 5 1 10 .3 9.3 4.6 5 .3.7 1 0z"})),e):16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},y||(y=E.createElement("path",{d:"M11 8 6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},v||(v=E.createElement("path",{d:"M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),e)}),R=E.forwardRef(function({children:e,size:t=16,...n},r){return E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},w||(w=E.createElement("path",{d:"M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),e)})},771(e,t,n){"use strict";n.d(t,{$D:()=>b,d3:()=>g,x:()=>y});var r,o,a,i,l,s,c,u,d,f,p,m=n(6072),h=n(428);const g=m.forwardRef(function({children:e,size:t=16,...n},a){return m.createElement(h.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=m.createElement("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"})),o||(o=m.createElement("path",{d:"M4 22H28V24H4z"})),e)}),b=m.forwardRef(function({children:e,size:t=16,...n},r){return m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=m.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)}),y=m.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=m.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),l||(l=m.createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=m.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),c||(c=m.createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=m.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),d||(d=m.createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=m.createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),p||(p=m.createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)})},3351(e,t,n){"use strict";n.d(t,{kZS:()=>Yr,$nd:()=>tn,t3h:()=>ko,KXP:()=>Dr,lRv:()=>zr,Y9Y:()=>Do,V8d:()=>zo,wdv:()=>Ho,dJ2:()=>qo,bCw:()=>Zo,K0:()=>Jt,OuH:()=>yn,Wdr:()=>cn,cwr:()=>Br,jlY:()=>wn,rQ0:()=>dn,XSD:()=>Qr,aaP:()=>Jr,zWQ:()=>no,Psq:()=>eo,vji:()=>so,f8J:()=>Jo,ryE:()=>uo,vwO:()=>go,FAs:()=>Lo});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_TILE_CONTRAST?r.enableTileContrast=!0:r.enableTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?r.enableV12TileRadioIcons=!0:r.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?r.enableTreeviewControllable=!0:r.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?r.enableV12StructuredListVisibleIcons=!0:r.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableExperimentalFocusWrapWithoutSentinels=!0:r.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableFocusWrapWithoutSentinels=!0:r.enableFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?r.enableDialogElement=!0:r.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?r.enableV12DynamicFloatingStyles=!0:r.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?r.enableV12ToggleReducedLabelSpacing=!0:r.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?r.enableEnhancedFileUploader=!0:r.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?r.enablePresence=!0:r.enablePresence=!1}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableFocusWrapWithoutSentinels=!1,r.enableDialogElement=!1,r.enableV12DynamicFloatingStyles=!1,r.enableV12ToggleReducedLabelSpacing=!1,r.enableEnhancedFileUploader=!1,r.enablePresence=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Deprecated, use enable-tile-contrast instead\n",enabled:r.enableExperimentalTileContrast},{name:"enable-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:r.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:r.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:r.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Deprecated, use enable-focus-wrap-without-sentinels instead\n",enabled:r.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:r.enableFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:r.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:r.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:r.enableV12ToggleReducedLabelSpacing},{name:"enable-enhanced-file-uploader",description:"Enable enhanced functionality for the FileUploader component, including richer callback data and expanded trigger events for onChange and onDelete.\n",enabled:r.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:r.enablePresence}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var c=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},(t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=i(t.value,2),o=r[0],a=r[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),u=new c(void 0),d=0;d<o.length;d++){var f=o[d];u.add(f.name,f.enabled)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var m=n(5556),h=n.n(m),g=n(6072),b=n.t(g,2),y=n(6942),v=n.n(y);const w={},E=(e,t,n)=>(r,o,a,...i)=>{if(void 0===r[o])return null;if(!w[a]||!w[a][o]){w[a]={...w[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,a,...i)},N="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,x=e=>{const t=(0,g.useMemo)(()=>e,e);return(0,g.useCallback)(e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},[t])},C=g.createContext("cds");function T(){return g.useContext(C)}const $=(e,t,n)=>{const r=(0,g.useRef)(null);(0,g.useEffect)(()=>{r.current=n},[n]),(0,g.useEffect)(()=>{const n="current"in e?e.current:e;if(!n)return;const o=e=>{r.current&&r.current(e)};return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}},[e,t])},_=(e,t)=>{const n=(0,g.useRef)(null);(0,g.useEffect)(()=>{n.current=t},[t]),(0,g.useEffect)(()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[e])},R={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},S=e=>R[e]??e;var A="undefined"!=typeof document?g.useLayoutEffect:function(){};const O={...b}.useInsertionEffect||(e=>e());function L(){return"undefined"!=typeof window}function k(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!L()&&(e instanceof Node||e instanceof M(e).Node)}function D(e){return!!L()&&(e instanceof Element||e instanceof M(e).Element)}function P(e){return!!L()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function z(e){return!(!L()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}n(4848);const H=new Set(["inline","contents"]);function F(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(o)}const V=new Set(["table","td","th"]);function j(e){return V.has(k(e))}const q=[":popover-open",":modal"];function W(e){return q.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const U=["transform","translate","scale","rotate","perspective"],Z=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function G(e){const t=Y(),n=D(e)?J(e):e;return U.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Z.some(e=>(n.willChange||"").includes(e))||K.some(e=>(n.contain||"").includes(e))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const X=new Set(["html","body","#document"]);function Q(e){return X.has(k(e))}function J(e){return M(e).getComputedStyle(e)}function ee(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if("html"===k(e))return e;const t=e.assignedSlot||e.parentNode||z(e)&&e.host||B(e);return z(t)?t.host:t}function ne(e){const t=te(e);return Q(t)?e.ownerDocument?e.ownerDocument.body:e.body:P(t)&&F(t)?t:ne(t)}function re(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ne(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=M(o);if(a){const e=oe(i);return t.concat(i,i.visualViewport||[],F(o)?o:[],e&&n?re(e):[])}return t.concat(o,re(o,[],n))}function oe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ae=n(961);const ie=["top","right","bottom","left"],le=Math.min,se=Math.max,ce=Math.round,ue=Math.floor,de=e=>({x:e,y:e}),fe={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function me(e,t,n){return se(e,le(t,n))}function he(e,t){return"function"==typeof e?e(t):e}function ge(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function ye(e){return"y"===e?"height":"width"}const ve=new Set(["top","bottom"]);function we(e){return ve.has(ge(e))?"y":"x"}function Ee(e){return"x"===we(e)?"y":"x"}function Ne(e){return e.replace(/start|end/g,e=>pe[e])}const xe=["left","right"],Ce=["right","left"],Te=["top","bottom"],$e=["bottom","top"];function _e(e){return e.replace(/left|right|bottom|top/g,e=>fe[e])}function Re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Se(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ae(e,t,n){let{reference:r,floating:o}=e;const a=we(t),i=Ee(t),l=ye(i),s=ge(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(be(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Oe(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=he(t,e),m=Re(p),h=l[f?"floating"===d?"reference":"floating":d],g=Se(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),v=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=Se(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:s}):b);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function Le(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ke(e){return ie.some(t=>e[t]>=0)}const Me=new Set(["left","top"]);function Be(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=P(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ce(n)!==a||ce(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Ie(e){return D(e)?e:e.contextElement}function De(e){const t=Ie(e);if(!P(t))return de(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Be(t);let i=(a?ce(n.width):n.width)/r,l=(a?ce(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Pe=de(0);function ze(e){const t=M(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pe}function He(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Ie(e);let i=de(1);t&&(r?D(r)&&(i=De(r)):i=De(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==M(e))&&t}(a,n,r)?ze(a):de(0);let s=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=M(a),t=r&&D(r)?M(r):r;let n=e,o=oe(n);for(;o&&r&&t!==n;){const e=De(o),t=o.getBoundingClientRect(),r=J(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=a,c+=i,n=M(o),o=oe(n)}}return Se({width:u,height:d,x:s,y:c})}function Fe(e,t){const n=ee(e).scrollLeft;return t?t.left+n:He(B(e)).left+n}function Ve(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Fe(e,n),y:n.top+t.scrollTop}}const je=new Set(["absolute","fixed"]);function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=M(e),r=B(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;const e=Y();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}const c=Fe(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=B(e),n=ee(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Fe(e);const l=-n.scrollTop;return"rtl"===J(r).direction&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(B(e));else if(D(t))r=function(e,t){const n=He(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=P(e)?De(e):de(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ze(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Se(r)}function We(e,t){const n=te(e);return!(n===t||!D(n)||Q(n))&&("fixed"===J(n).position||We(n,t))}function Ue(e,t,n){const r=P(t),o=B(t),a="fixed"===n,i=He(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=de(0);function c(){s.x=Fe(o)}if(r||!r&&!a)if(("body"!==k(t)||F(o))&&(l=ee(t)),r){const e=He(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?de(0):Ve(o,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}function Ze(e){return"static"===J(e).position}function Ke(e,t){if(!P(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function Ge(e,t){const n=M(e);if(W(e))return n;if(!P(e)){let t=te(e);for(;t&&!Q(t);){if(D(t)&&!Ze(t))return t;t=te(t)}return n}let r=Ke(e,t);for(;r&&j(r)&&Ze(r);)r=Ke(r,t);return r&&Q(r)&&Ze(r)&&!G(r)?n:r||function(e){let t=te(e);for(;P(t)&&!Q(t);){if(G(t))return t;if(W(t))return null;t=te(t)}return null}(e)||n}const Ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=B(r),l=!!t&&W(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},c=de(1);const u=de(0),d=P(r);if((d||!d&&!a)&&(("body"!==k(r)||F(i))&&(s=ee(r)),P(r))){const e=He(r);c=De(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?de(0):Ve(i,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?W(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(e=>D(e)&&"body"!==k(e)),o=null;const a="fixed"===J(e).position;let i=a?te(e):e;for(;D(i)&&!Q(i);){const t=J(i),n=G(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&je.has(o.position)||F(i)&&!n&&We(e,i))?r=r.filter(e=>e!==i):o=t,i=te(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((e,n)=>{const r=qe(t,n,o);return e.top=se(r.top,e.top),e.right=le(r.right,e.right),e.bottom=le(r.bottom,e.bottom),e.left=se(r.left,e.left),e},qe(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ge,getElementRects:async function(e){const t=this.getOffsetParent||Ge,n=this.getDimensions,r=await n(e.floating);return{reference:Ue(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Be(e);return{width:t,height:n}},getScale:De,isElement:D,isRTL:function(e){return"rtl"===J(e).direction}};function Xe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Qe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=ge(n),l=be(n),s="y"===we(n),c=Me.has(i)?-1:1,u=a&&s?-1:1,d=he(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},Je=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=he(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=ge(o),y=we(l),v=ge(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(v||!h?[_e(l)]:function(e){const t=_e(e);return[Ne(e),t,Ne(t)]}(l)),N="none"!==m;!f&&N&&E.push(...function(e,t,n,r){const o=be(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Ce:xe:t?xe:Ce;case"left":case"right":return t?Te:$e;default:return[]}}(ge(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Ne)))),a}(l,h,m,w));const x=[l,...E],C=await s.detectOverflow(t,g),T=[];let $=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&T.push(C[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=be(e),o=Ee(e),a=ye(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=_e(i)),[i,_e(i)]}(o,i,w);T.push(C[e[0]],C[e[1]])}if($=[...$,{placement:o,overflows:T}],!T.every(e=>e<=0)){var _,R;const e=((null==(_=a.flip)?void 0:_.index)||0)+1,t=x[e];if(t&&("alignment"!==d||y===we(t)||$.every(e=>we(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let n=null==(R=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=$.filter(e=>{if(N){const t=we(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=he(e,t);switch(o){case"referenceHidden":{const e=Le(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ke(e)}}}case"escaped":{const e=Le(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ke(e)}}}default:return{}}}}},tt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=he(e,t)||{};if(null==c)return{};const d=Re(u),f={x:n,y:r},p=Ee(o),m=ye(p),h=await i.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],E=f[p]-a.reference[p],N=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let x=N?N[v]:0;x&&await(null==i.isElement?void 0:i.isElement(N))||(x=l.floating[v]||a.floating[m]);const C=w/2-E/2,T=x/2-h[m]/2-1,$=le(d[b],T),_=le(d[y],T),R=$,S=x-h[m]-_,A=x/2-h[m]/2+C,O=me(R,A,S),L=!s.arrow&&null!=be(o)&&A!==O&&a.reference[m]/2-(A<R?$:_)-h[m]/2<0,k=L?A<R?A-R:A-S:0;return{[p]:f[p]+k,data:{[p]:O,centerOffset:A-O-k,...L&&{alignmentOffset:k}},reset:L}}}),nt=(e,t,n)=>{const r=new Map,o={platform:Ye,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ae(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){var h;const{name:a,fn:g}=l[n],{x:b,y,data:v,reset:w}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:{...i,detectOverflow:null!=(h=i.detectOverflow)?h:Oe},elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Ae(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var rt="undefined"!=typeof document?g.useLayoutEffect:function(){};function ot(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ot(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ot(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function at(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function it(e,t){const n=at(e);return Math.round(t*n)/n}function lt(e){const t=g.useRef(e);return rt(()=>{t.current=e}),t}const st=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?tt({element:n.current,padding:r}).fn(t):{}:n?tt({element:n,padding:r}).fn(t):{};var o}}),ct=(e,t)=>({...Je(e),options:[e,t]}),ut=(e,t)=>({...et(e),options:[e,t]}),dt=(e,t)=>({...st(e),options:[e,t]});const ft={...b};let pt=!1,mt=0;const ht=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mt++,gt=ft.useId||function(){const[e,t]=g.useState(()=>pt?ht():void 0);return A(()=>{null==e&&t(ht())},[]),g.useEffect(()=>{pt=!0},[]),e};const bt=g.createContext(null),yt=g.createContext(null);function vt(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gt(),a=g.useRef({}),[i]=g.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),l=null!=((null==(s=g.useContext(bt))?void 0:s.id)||null);var s;const[c,u]=g.useState(r.reference),d=function(e){const t=g.useRef(()=>{});return O(()=>{t.current=e}),g.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)}),f=g.useMemo(()=>({setPositionReference:u}),[]),p=g.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return g.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:i,floatingId:o,refs:f}),[t,d,p,i,o,f])}function wt(e){void 0===e&&(e={});const{nodeId:t}=e,n=vt({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=g.useState(null),[l,s]=g.useState(null),c=(null==o?void 0:o.domReference)||a,u=g.useRef(null),d=g.useContext(yt);A(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);ot(f,r)||p(r);const[m,h]=g.useState(null),[b,y]=g.useState(null),v=g.useCallback(e=>{e!==x.current&&(x.current=e,h(e))},[]),w=g.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),E=a||m,N=i||b,x=g.useRef(null),C=g.useRef(null),T=g.useRef(u),$=null!=s,_=lt(s),R=lt(o),S=lt(c),A=g.useCallback(()=>{if(!x.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),nt(x.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==S.current};O.current&&!ot(T.current,t)&&(T.current=t,ae.flushSync(()=>{d(t)}))})},[f,t,n,R,S]);rt(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const O=g.useRef(!1);rt(()=>(O.current=!0,()=>{O.current=!1}),[]),rt(()=>{if(E&&(x.current=E),N&&(C.current=N),E&&N){if(_.current)return _.current(E,N,A);A()}},[E,N,A,_,$]);const L=g.useMemo(()=>({reference:x,floating:C,setReference:v,setFloating:w}),[v,w]),k=g.useMemo(()=>({reference:E,floating:N}),[E,N]),M=g.useMemo(()=>{const e={position:n,left:0,top:0};if(!k.floating)return e;const t=it(k.floating,u.x),r=it(k.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...at(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,k.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:A,refs:L,elements:k,floatingStyles:M}),[u,A,L,k,M])}({...e,elements:{...o,...l&&{reference:l}}}),p=g.useCallback(e=>{const t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),m=g.useCallback(e=>{(D(e)||null===e)&&(u.current=e,i(e)),(D(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!D(e))&&f.refs.setReference(e)},[f.refs]),h=g.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),b=g.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=g.useMemo(()=>({...f,...r,refs:h,elements:b,nodeId:t}),[f,h,b,t,r]);return A(()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),g.useMemo(()=>({...f,context:y,refs:h,elements:b}),[f,h,b,y])}const Et=new Map,Nt=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;Et.has(r)||Et.set(r,new Set);const a=Et.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...o)},xt=(0,g.createContext)(u);function Ct(e){return(0,g.useContext)(xt).enabled(e)}h().node,Nt(h().objectOf(h().bool)),h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool;const Tt=g.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),$t=g.forwardRef(function({isTabTip:e,align:t=(e?"bottom-start":"bottom"),as:n="span",autoAlign:r=!1,autoAlignBoundary:o,backgroundToken:a="layer",caret:i=!e,className:l,children:s,border:c=!1,dropShadow:u=!0,highContrast:d=!1,onRequestClose:f,open:m,alignmentAxisOffset:h,...b},y){const w=T(),E=(0,g.useRef)(null),C=(0,g.useRef)(null),R=(0,g.useRef)(null),A=Ct("enable-v12-dynamic-floating-styles")||r,O=(0,g.useRef)(!1);let L=S(t);$(R,"mousedown",e=>{const t=e.target;O.current=I.floating.current?.contains(t)||!1,O.current&&setTimeout(()=>{O.current=!1},0)}),$(R,"focusout",e=>{const t=e.relatedTarget;if(t){if(t&&!R.current?.contains(t)){const e=!A||!I.floating.current||!I.floating.current.contains(t),n=t&&R.current&&t.contains(R.current);e&&!n&&f?.()}}else{if(O.current)return void(O.current=!1);f?.()}}),_("click",({target:e})=>{m&&e instanceof Node&&!R.current?.contains(e)&&f?.()});const k=g.Children.toArray(s).some(e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label"))?7:6,M=(0,g.useRef)({offset:10,caretHeight:k});N(()=>{if(i&&R.current){const e=window.getComputedStyle(R.current,null),t=e.getPropertyValue(`--${w}-popover-offset`),n=e.getPropertyValue(`--${w}-popover-caret-height`);t&&(M.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(M.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}});const{refs:I,floatingStyles:D,placement:P,middlewareData:z,elements:H,update:F}=wt(A?{placement:L,strategy:"fixed",middleware:[(V=e?0:{alignmentAxis:h,mainAxis:M?.current?.offset},{...Qe(V),options:[V,void 0]}),r&&ct({fallbackPlacements:e?L.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:L.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:o}),dt({element:C,padding:16}),r&&ut()]}:{});var V;(0,g.useEffect)(()=>{if(A&&m&&H.reference&&H.floating)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ie(e),u=o||a?[...c?re(c):[],...re(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&l?function(e,t){let n,r=null;const o=B(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;const m={rootMargin:-ue(d)+"px "+-ue(o.clientWidth-(u+f))+"px "+-ue(o.clientHeight-(d+p))+"px "+-ue(u)+"px",threshold:se(0,le(1,s))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||Xe(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let h=s?He(e):null;return s&&function t(){const r=He(e);h&&!Xe(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}(H.reference,H.floating,F)},[A,m,H,F]);const j=(0,g.useMemo)(()=>({floating:E,setFloating:I.setFloating,caretRef:C,autoAlign:r}),[I.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(L)||(L="bottom-start")),(0,g.useEffect)(()=>{if(A){const e={...D,visibility:z.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach(t=>{I.floating.current&&(I.floating.current.style[t]=e[t])}),i&&z&&z.arrow&&C?.current){const{x:e,y:t}=z.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[P.split("-")[0]];C.current.style.left=null!=e?`${e}px`:"",C.current.style.top=null!=t?`${t}px`:"",C.current.style.right="",C.current.style.bottom="",n&&(C.current.style[n]=-M?.current?.caretHeight+"px")}}},[D,I.floating,A,z,P,i]);const q=x([y,R]),W=r&&P!==L?P:L,U=v()({[`${w}--popover-container`]:!0,[`${w}--popover--caret`]:i,[`${w}--popover--drop-shadow`]:u,[`${w}--popover--border`]:c,[`${w}--popover--high-contrast`]:d,[`${w}--popover--open`]:m,[`${w}--popover--auto-align ${w}--autoalign`]:A,[`${w}--popover--${W}`]:!0,[`${w}--popover--tab-tip`]:e,[`${w}--popover--background-token__background`]:"background"===a&&!d},l),Z=g.Children.map(s,t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,a=A&&r&&["ToggletipButton"].includes(r),i=A&&!["ToggletipContent","PopoverContent"].includes(r);if(g.isValidElement(n)&&(o||a||i)){const t=n?.props?.className,r=(n?.props).ref,o=v()(`${w}--popover--tab-tip__button`,t);return g.cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(A&&n?.type!==_t||A&&"ToggletipButton"===n?.type.displayName)&&I.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n}),K=n;return g.createElement(Tt.Provider,{value:j},g.createElement(K,p({},b,{className:U,ref:q}),A||e?Z:s))});$t.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],S),alignmentAxisOffset:h().number,as:h().oneOfType([h().string,h().elementType]),autoAlign:h().bool,backgroundToken:h().oneOf(["layer","background"]),autoAlignBoundary:h().oneOfType([h().oneOf(["clippingAncestors"]),h().elementType,h().arrayOf(h().elementType),h().exact({x:h().number.isRequired,y:h().number.isRequired,width:h().number.isRequired,height:h().number.isRequired})]),caret:h().bool,border:h().bool,children:h().node,className:h().string,dropShadow:h().bool,highContrast:h().bool,isTabTip:h().bool,onRequestClose:h().func,open:h().bool.isRequired};const _t=(0,g.forwardRef)((e,t)=>{const{className:n,children:r,...o}=e,a=T(),{setFloating:i,caretRef:l,autoAlign:s}=g.useContext(Tt),c=x([i,t]),u=Ct("enable-v12-dynamic-floating-styles")||s;return g.createElement("span",p({},o,{className:`${a}--popover`}),g.createElement("span",{className:v()(`${a}--popover-content`,n),ref:c},r,u&&g.createElement("span",{className:v()({[`${a}--popover-caret`]:!0,[`${a}--popover--auto-align`]:!0}),ref:l})),!u&&g.createElement("span",{className:v()({[`${a}--popover-caret`]:!0}),ref:l}))});_t.displayName="PopoverContent",_t.propTypes={children:h().node,className:h().string};const Rt={key:"Tab",which:9,keyCode:9,code:"Tab"},St={key:"Enter",which:13,keyCode:13,code:"Enter"},At={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Ot={key:" ",which:32,keyCode:32,code:"Space"},Lt={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},kt={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},Mt=(e,t)=>{for(let n=0;n<t.length;n++)if(Bt(e,t[n]))return!0;return!1},Bt=(e,{key:t,which:n,keyCode:r,code:o})=>"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o;function It(e){const[t,n]=(0,g.useState)(e),r=(0,g.useRef)(null),o=(0,g.useCallback)((e,t=0)=>{window.clearTimeout(r.current??void 0),r.current=null,0!==t?r.current=window.setTimeout(()=>{n(e),r.current=null},t):n(e)},[]);return(0,g.useEffect)(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const Dt=!("undefined"==typeof window||!window.document||!window.document.createElement),Pt=g.createContext(null);function zt(){return g.useContext(Pt)}const Ht={...g},Ft=(()=>{let e=0;return()=>++e})(),Vt=Dt?g.useLayoutEffect:g.useEffect;let jt=!1;const qt=Ht.useId?function(e="id"){const t=zt();return`${t?`${t}-`:""}${e}-${Ht.useId()}`}:function(e="id"){const t=zt(),[n,r]=(0,g.useState)(()=>jt?`${t?`${t}-`:""}${e}-${Ft()}`:null);return Vt(()=>{null===n&&r(`${t?`${t}-`:""}${e}-${Ft()}`)},[Ft]),(0,g.useEffect)(()=>{!1===jt&&(jt=!0)},[]),n},Wt=e=>{if(!e||!e.childNodes)return null;if(Zt(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Wt(t);if(e)return e}return null},Ut=e=>{if(!e||!e.childNodes)return null;if(e.getAttribute("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Ut(t);if(e)return e}return null},Zt=e=>{if(void 0===e.tabIndex||e.tabIndex<0)return!1;if((e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&e.disabled)return!1;switch(e.nodeName){case"A":return e instanceof HTMLAnchorElement&&!!e.href&&"ignore"!==e.rel;case"INPUT":return e instanceof HTMLInputElement&&"hidden"!==e.type;default:return!0}},Kt=new Set(["mouseup","touchend","touchcancel"]),Gt=g.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:a,enterDelayMs:i=100,leaveDelayMs:l=300,defaultOpen:s=!1,closeOnActivation:c=!1,dropShadow:u=!1,highContrast:d=!0,...f},m)=>{(0,g.useRef)(null);const[h,b]=It(s),[y,w]=(0,g.useState)(!1),[E,x]=(0,g.useState)(!1),[C,$]=(0,g.useState)(!1),_=qt("tooltip"),R=T(),S=g.Children.only(r),{"aria-labelledby":A,"aria-describedby":O}=S?.props??{},L=!!o,k={onFocus:()=>!E&&b(!0),onBlur:()=>{b(!1),x(!1)},onClick:()=>c&&b(!1),onMouseEnter:B,onMouseLeave:I,onMouseDown:function(){x(!0),D()},onMouseMove:function(e){1===e.buttons?w(!0):w(!1)},onTouchStart:D,"aria-labelledby":A??(L?_:void 0),"aria-describedby":O??(L?void 0:_)},M=(0,g.useCallback)(e=>{h&&Bt(e,At)&&(e.stopPropagation(),b(!1)),h&&c&&(Bt(e,St)||Bt(e,Ot))&&b(!1)},[c,h,b]);function B(){f?.onMouseEnter||($(!0),b(!0,i))}function I(){$(!1),y||b(!1,l)}function D(){w(!0)}N(()=>{if(h)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){Bt(e,At)&&M(e)}},[h,M]);const P=(0,g.useCallback)(()=>{w(!1),C||b(!1,l)},[C,l,b]);return(0,g.useEffect)(()=>(y&&Kt.forEach(e=>{document.addEventListener(e,P)}),()=>{Kt.forEach(e=>{document.removeEventListener(e,P)})}),[y,P]),g.createElement($t,p({as:e,ref:m},f,{align:t,className:v()(`${R}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:M,onMouseLeave:I,open:h}),g.createElement("div",{className:`${R}--tooltip-trigger__wrapper`},void 0!==S?g.cloneElement(S,{...k,...function(e){const t=Object.keys(k).filter(e=>e.startsWith("on")),n={};return t.forEach(t=>{n[t]=n=>{k[t](n),e?.[t]&&e?.[t](n)}}),n}(S.props)}):null),g.createElement(_t,{"aria-hidden":h?"false":"true",className:`${R}--tooltip-content`,id:_,onMouseEnter:B,role:"tooltip"},o||a))});Gt.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,description:h().node,dropShadow:h().bool,enterDelayMs:h().number,highContrast:h().bool,label:h().node,leaveDelayMs:h().number};const Yt=g.forwardRef(function({as:e,children:t,className:n,dangerDescription:r="danger",disabled:o=!1,hasIconOnly:a=!1,href:i,iconDescription:l,isExpressive:s=!1,isSelected:c,kind:u="primary",onBlur:d,onClick:f,onFocus:p,onMouseEnter:m,onMouseLeave:h,renderIcon:b,size:y,tabIndex:w,type:E="button",...N},x){const C=T(),$={tabIndex:w,className:v()(n,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:"xs"===y&&!s,[`${C}--btn--sm`]:"sm"===y&&!s,[`${C}--btn--md`]:"md"===y&&!s,[`${C}--btn--lg`]:"lg"===y&&!s,[`${C}--btn--xl`]:"xl"===y,[`${C}--btn--2xl`]:"2xl"===y,[`${C}--layout--size-${y}`]:y,[`${C}--btn--${u}`]:u,[`${C}--btn--disabled`]:o,[`${C}--btn--expressive`]:s,[`${C}--btn--icon-only`]:a,[`${C}--btn--selected`]:a&&c&&"ghost"===u}),ref:x},_=b?g.createElement(b,{"aria-label":l,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,R=["danger","danger--tertiary","danger--ghost"];let S="button";const A=qt("danger-description"),{"aria-pressed":O,"aria-describedby":L}=N;let k={disabled:o,type:E,"aria-describedby":R.includes(u)?A:L||void 0,"aria-pressed":O??(a&&"ghost"===u?c:void 0)};const M={href:i};let B=null;return R.includes(u)&&(B=g.createElement("span",{id:A,className:`${C}--visually-hidden`},r)),e?(S=e,k={...k,...M}):i&&!o&&(S="a",k=M),g.createElement(S,{onMouseEnter:m,onMouseLeave:h,onFocus:p,onBlur:d,onClick:f,...N,...$,...k},B,t,_)}),Xt=(0,g.forwardRef)((e,t)=>{const{className:n,count:r,...o}=e,a=T(),i=v()(`${a}--badge-indicator`,n,{[`${a}--badge-indicator--count`]:r}),l=r&&r>999?"999+":r;return g.createElement("div",p({className:i,ref:t},o),l)});Xt.propTypes={className:h().string,count:h().number,id:h().string};const Qt=["primary","secondary","ghost","tertiary"],Jt=(0,g.forwardRef)(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:a=!0,defaultOpen:i=!1,disabled:l,dropShadow:s=!1,enterDelayMs:c=100,highContrast:u=!0,kind:d,label:f,leaveDelayMs:m=100,wrapperClasses:h,size:b,isSelected:y,...w},E)=>{const N=T(),x=v()(h,`${N}--icon-tooltip`,{[`${N}--icon-tooltip--disabled`]:l});!n||"ghost"===d&&"lg"===b||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const C=qt("badge-indicator");return g.createElement(Gt,{align:e,autoAlign:t,closeOnActivation:a,className:x,defaultOpen:i,dropShadow:s,enterDelayMs:c,highContrast:u,label:f,leaveDelayMs:m},g.createElement(Yt,p({},w,{disabled:l,kind:d,ref:E,size:b,isSelected:y,hasIconOnly:!0,className:o,"aria-describedby":w["aria-describedby"]||n&&C}),r,!l&&void 0!==n&&g.createElement(Xt,{id:C,count:n>0?n:void 0})))});Jt.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],S),autoAlign:h().bool,badgeCount:h().number,href:h().string,children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,dropShadow:h().bool,disabled:h().bool,enterDelayMs:h().number,isSelected:h().bool,highContrast:h().bool,kind:h().oneOf(Qt),label:h().node.isRequired,leaveDelayMs:h().number,rel:h().string,size:h().oneOf(["sm","md","lg"]),target:h().string,wrapperClasses:h().string};const en=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],tn=g.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:a=!1,tooltipHighContrast:i=!0,tooltipDropShadow:l=!1,iconDescription:s,kind:c="primary",onBlur:u,onClick:d,onFocus:f,onMouseEnter:m,onMouseLeave:h,renderIcon:b,size:y,tooltipAlignment:v="center",tooltipPosition:w="top",...E}=e;!b||o||s||console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const N=b?g.createElement(b,null):null;if(function(e){return!0===e}(a)){let e;return"top"!==w&&"bottom"!==w||("center"===v&&(e=w),"end"===v&&(e=`${w}-end`),"start"===v&&(e=`${w}-start`)),"right"!==w&&"left"!==w||(e=w),g.createElement(Jt,p({},E,{ref:t,as:n,align:e,label:s,kind:c,size:y,highContrast:i,dropShadow:l,onMouseEnter:m,onMouseLeave:h,onFocus:f,onBlur:u,autoAlign:r,onClick:d,renderIcon:N?null:b}),N??o)}{const{tooltipAlignment:n,...r}=e;return g.createElement(Yt,p({ref:t},r))}});tn.displayName="Button",tn.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),autoAlign:h().bool,children:h().node,className:h().string,dangerDescription:h().string,disabled:h().bool,hasIconOnly:h().bool,href:h().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:h().bool,isSelected:h().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?Qt:en;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:h().func,onClick:h().func,onFocus:h().func,onMouseEnter:h().func,onMouseLeave:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:h().string,size:h().oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:h().number,target:h().string,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool,tooltipPosition:h().oneOf(["top","right","bottom","left"]),type:h().oneOf(["button","reset","submit"])};var nn=n(4363);const rn=g.createContext(1),on=["one","two","three"],an=[0,1,2],ln=an[0],sn=an[an.length-1],cn=g.forwardRef((e,t)=>{const{as:n,className:r,children:o,level:a,withBackground:i=!1,...l}=e,s=g.useContext(rn),c=a??s,u=T(),d=v()(`${u}--layer-${on[c]}`,{[`${u}--layer__with-background`]:i},r),f=((e,t,n)=>Math.min(n,Math.max(t,e)))(c+1,ln,sn),m=n||"div";return g.createElement(rn.Provider,{value:f},g.createElement(m,p({ref:t},l,{className:d}),o))});cn.displayName="Layer",cn.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,level:h().oneOf([0,1,2]),withBackground:h().bool};var un=n(9184);const dn=g.forwardRef(function({buttonOnClick:e,children:t,className:n,closeClassName:r,closeIconClassName:o,closeModal:a,iconDescription:i="Close",label:l,labelClassName:s,title:c,titleClassName:u,...d},f){const m=T(),h=v()(`${m}--modal-header`,n),b=v()(`${m}--modal-header__label ${m}--type-delta`,s),y=v()(`${m}--modal-header__heading ${m}--type-beta`,u),w=v()(`${m}--modal-close`,r),E=v()(`${m}--modal-close__icon`,o);return g.createElement("div",p({className:h},d,{ref:f}),l&&g.createElement("h2",{className:b},l),c&&g.createElement("h2",{className:y},c),t,g.createElement("div",{className:`${m}--modal-close-button`},g.createElement(Jt,{className:w,label:i,onClick:function(t){a?.(t),e?.(t)},"aria-label":i,align:"left"},g.createElement(un.bm,{size:20,"aria-hidden":"true",tabIndex:"-1",className:E}))))});dn.propTypes={buttonOnClick:h().func,children:h().node,className:h().string,closeClassName:h().string,closeIconClassName:h().string,closeModal:h().func,iconDescription:h().string,label:h().node,labelClassName:h().string,title:h().node,titleClassName:h().string};const fn=e=>({ghost:1,"danger--ghost":2,tertiary:3,danger:5,primary:6}[e]??4),pn=e=>g.isValidElement(e)&&e.props&&"object"==typeof e.props?e.props.kind??"primary":"primary",mn=(0,g.forwardRef)((e,t)=>{const{children:n,className:r,fluid:o,stacked:a,...i}=e,l=T(),s=(0,g.useRef)(null),[c,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(g.Children.toArray(n));N(()=>{const e=()=>{let e=a||!1;if(s&&s.current){const t=window.getComputedStyle(s.current);e="column"===t?.getPropertyValue?.("--flex-direction")}return e};if(u(e()),!s.current)return;const t=new ResizeObserver(()=>{u(e())});return t.observe(s.current),()=>t.disconnect()},[c,a]),(0,g.useEffect)(()=>{const e=g.Children.toArray(n);e.sort((e,t)=>(fn(pn(e))-fn(pn(t)))*(c?-1:1)),f(e)},[n,c]);const m=v()(r,`${l}--btn-set`,{[`${l}--btn-set--stacked`]:c,[`${l}--btn-set--fluid`]:o});return g.createElement("div",p({},i,{className:m,ref:t}),o?g.createElement("div",{ref:s,className:v()(`${l}--btn-set__fluid-inner`,{[`${l}--btn-set__fluid-inner--auto-stack`]:!0})},d):n)});mn.displayName="ButtonSet",mn.propTypes={children:h().node,className:h().string,fluid:h().bool,stacked:h().bool};const hn=()=>{};var gn=n(771);function bn({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...a}){const i=T(),l=v()(t,{[`${i}--loading`]:!0,[`${i}--loading--small`]:r,[`${i}--loading--stop`]:!e}),s=v()({[`${i}--loading-overlay`]:!0,[`${i}--loading-overlay--stop`]:!e}),c=g.createElement("div",p({},a,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:l}),g.createElement("svg",{className:`${i}--loading__svg`,viewBox:"0 0 100 100"},g.createElement("title",null,o),r?g.createElement("circle",{className:`${i}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,g.createElement("circle",{className:`${i}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?g.createElement("div",{className:s},c):c}bn.propTypes={active:h().bool,className:h().string,description:h().string,id:Nt(h().string),small:h().bool,withOverlay:h().bool};const yn=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:a=1500,...i})=>{const l=T(),s=v()(`${l}--inline-loading`,e),c=(0,g.useRef)(null);(0,g.useEffect)(()=>("finished"===t&&(c.current=setTimeout(()=>{o&&o()},a)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[t,o,a]);const u=r&&g.createElement("div",{className:`${l}--inline-loading__text`},r),d=(()=>{let e=n||t;if("error"===t)return g.createElement(gn.x,{className:`${l}--inline-loading--error`},g.createElement("title",null,e));if("finished"===t)return g.createElement(un._j,{className:`${l}--inline-loading__checkmark-container`},g.createElement("title",null,e));if("inactive"===t||"active"===t){if("inactive"===t)return;return n||(e="loading"),g.createElement(bn,{small:!0,description:e,withOverlay:!1,active:"active"===t})}})(),f=d&&g.createElement("div",{className:`${l}--inline-loading__animation`},d);return g.createElement("div",p({className:s},i,{"aria-live":i["aria-live"]??("inactive"===t?"off":"assertive")}),f,u)};function vn({secondaryButtons:e,secondaryButtonText:t,secondaryClassName:n,closeModal:r,onRequestClose:o,disabled:a}){function i(e){r(e),o(e)}return Array.isArray(e)&&e.length<=2?g.createElement(g.Fragment,null,e.map(({buttonText:e,onClick:t},r)=>g.createElement(tn,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||i},e))):t?g.createElement(tn,{disabled:a,className:n,onClick:i,kind:"secondary"},t):null}yn.propTypes={className:h().string,description:h().node,iconDescription:h().string,onSuccess:h().func,status:h().oneOf(["inactive","active","finished","error"]),successDelay:h().number},vn.propTypes={closeModal:h().func,disabled:h().bool,onRequestClose:h().func,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach(e=>{h().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:h().string};const wn=g.forwardRef(function({children:e,className:t,closeModal:n=hn,danger:r,inputref:o,onRequestClose:a=hn,onRequestSubmit:i=hn,primaryButtonDisabled:l,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:f,loadingStatus:m="inactive",loadingDescription:h,loadingIconDescription:b,onLoadingSuccess:y=hn,...w},E){const N=T(),x=v()(`${N}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${N}--modal-footer--three-button`:null),C=v()(c,"inactive"!==m?`${N}--btn--loading`:null),$="inactive"!==m,_={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:f,onRequestClose:a,disabled:$};return g.createElement(mn,p({className:x},w,{ref:E,"aria-busy":$}),g.createElement(vn,_),s&&g.createElement(tn,{onClick:i,className:C,disabled:$||l,kind:r?"danger":"primary",ref:o},"inactive"===m?s:g.createElement(yn,{status:m,description:h,iconDescription:b,className:`${N}--inline-loading--btn`,onSuccess:y})),e)});wn.propTypes={children:h().node,className:h().string,closeModal:h().func,danger:h().bool,inputref:h().oneOfType([h().func,h().shape({current:h().any})]),loadingDescription:h().string,loadingIconDescription:h().string,loadingStatus:h().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:h().func,onRequestClose:h().func,onRequestSubmit:h().func,primaryButtonDisabled:h().bool,primaryButtonText:h().string,primaryClassName:h().string,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach(e=>{h().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:h().string};const En=(...e)=>t=>{e.forEach(e=>{e&&("function"==typeof e?e(t):"object"==typeof e&&"current"in e&&(e.current=t))})},Nn=(e,t,n)=>{e.classList.toggle(t,n)};var xn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Cn="undefined"==typeof Element,Tn=Cn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$n=!Cn&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},_n=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):_n(e.parentNode))},Rn=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var a=o.shift();if(!_n(a,!1))if("SLOT"===a.tagName){var i=a.assignedElements(),l=i.length?i:a.children,s=Rn(l,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Tn.call(a,xn)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),u=!_n(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&u){var d=Rn(!0===c?a.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return r},Sn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},An=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Sn(e)?0:e.tabIndex},On=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ln=function(e){return"INPUT"===e.tagName},kn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Mn=function(e,t){return!(t.disabled||function(e){return Ln(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=Tn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Tn.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return kn(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,l=$n(e);if(i&&!i.shadowRoot&&!0===r(i))return kn(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(function(e){var t,n,r,o,a=e&&$n(e),i=null===(t=a)||void 0===t?void 0:t.host,l=!1;if(a&&a!==e)for(l=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&i;){var s,c,u;l=!(null===(c=i=null===(s=a=$n(i))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Tn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Bn=function(e,t){return!(function(e){return function(e){return Ln(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||$n(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||An(t)<0||!Mn(e,t))},In=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Dn=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,a=o?e.scopeParent:e,i=function(e,t){var n=An(e);return n<0&&t&&!Sn(e)?0:n}(a,o),l=o?Dn(e.candidates):a;0===i?o?t.push.apply(t,l):t.push(a):n.push({documentOrder:r,tabIndex:i,item:e,isScope:o,content:l})}),n.sort(On).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)};const Pn="\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n",zn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,Hn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,Fn=(e,t=[],n="cds")=>e instanceof Element&&"function"==typeof e.closest&&[`.${n}--overflow-menu-options`,`.${n}--tooltip`,".flatpickr-calendar",...t].some(t=>!!e.closest(t)),Vn=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:a,prefix:i="cds"})=>{if(e&&r&&o&&!e.contains(r)&&!Fn(r,a,i)){const a=o.compareDocumentPosition(r);if(r===t||a&zn){const t=Array.from(e.querySelectorAll(Pn)).reverse().find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}else if(r===n||a&Hn){const t=Array.from(e.querySelectorAll(Pn)).find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}}},jn=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(i=e,s=(l=l||{}).getShadowRoot?Rn([i],l.includeContainer,{filter:Bn.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:In}):function(e,t,n){if(_n(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(xn));return t&&Tn.call(e,xn)&&r.unshift(e),r.filter(n)}(i,l.includeContainer,Bn.bind(null,l)),Dn(s)),o=r[0],a=r[r.length-1];var i,l,s;t!==a||n.shiftKey||(n.preventDefault(),o.focus()),t===o&&n.shiftKey&&(n.preventDefault(),a.focus())},qn=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}},Wn=(0,g.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Un=(0,g.forwardRef)(({as:e,children:t,dir:n="auto",...r},o)=>{const a=(0,g.useContext)(Wn),i={},l=e??"span",s={...a};if(a){const{direction:e,getTextDirection:r}=a;if(r&&r.current){const n=Zn(t),o=r.current(n);e!==o?(i.dir=o,s.direction=o):"auto"===e&&(i.dir=o)}else e!==n?(i.dir=n,s.direction=n):"auto"===e&&(i.dir=n)}else i.dir=n,s.direction=n;return g.createElement(Wn.Provider,{value:s},g.createElement(l,p({ref:o},r,i),t))});Un.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,dir:h().oneOf(["ltr","rtl","auto"])};const Zn=e=>{if("string"==typeof e)return e;const t=g.Children.map(e,e=>"string"==typeof e?e:null)?.filter(e=>null!==e);return 1===t?.length?t[0]:t};const Kn=(0,g.createContext)({}),Gn=g.forwardRef(({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=hn,onClick:a=hn,onClose:i=hn,onRequestClose:l=hn,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:f,...m},h)=>{const b=T(),y=qt(),w=`${b}--dialog-header__heading--${y}`,E=`${b}--dialog-header__label--${y}`,N=(0,g.useRef)(null),x=h??N;(0,g.useEffect)(()=>{x.current&&(s?r?x.current.showModal():x.current.show():x.current.close())},[r,s]),(0,g.useEffect)(()=>{if(!s&&n){const e=setTimeout(()=>{n.current?.focus()});return()=>{clearTimeout(e)}}},[s,n]);const C=v()(`${b}--dialog-container`),$={dialogId:y,titleId:w,subtitleId:E,isOpen:s};return(0,g.useEffect)(()=>{if(x.current&&s&&!u&&!d){const e=x.current.querySelector(`.${b}--dialog-header__heading`);e&&e.id&&x.current.setAttribute("aria-labelledby",e.id)}},[s,u,d,b]),g.createElement(Kn.Provider,{value:$},g.createElement("dialog",p({},m,{className:v()(`${b}--dialog`,{[`${b}--dialog--modal`]:r},t),ref:x,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===x.current&&l(e)}(e),a(e)},onClose:i,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||w,"aria-describedby":f}),g.createElement("div",{className:C},e)))});Gn.displayName="Dialog",Gn.propTypes={children:h().node,className:h().string,focusAfterCloseRef:h().oneOfType([h().func,h().shape({current:h().any})]),modal:h().bool,onRequestClose:h().func,open:h().bool,role:h().oneOf(["dialog","alertdialog"]),"aria-label":h().string,"aria-labelledby":h().string,ariaDescribedBy:h().string};const Yn=g.forwardRef(({children:e,...t},n)=>{const r=T();return g.createElement("div",p({className:`${r}--dialog__header`,ref:n},t),e)});Yn.displayName="DialogHeader",Yn.propTypes={children:h().node};const Xn=g.forwardRef(({children:e,...t},n)=>{const r=T();return g.createElement("div",p({className:`${r}--dialog__header-controls`,ref:n},t),e)});Xn.displayName="DialogControls",Xn.propTypes={children:h().node};const Qn=g.forwardRef(({onClick:e,...t},n)=>{const r=T();return g.createElement(Jt,p({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),g.createElement(un.bm,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))});Qn.displayName="DialogCloseButton",Qn.propTypes={onClick:h().func};const Jn=g.forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=T(),{titleId:i}=(0,g.useContext)(Kn),l=n||i;return g.createElement(Un,p({as:"h2",id:l,className:v()(`${a}--dialog-header__heading`,t),ref:o},r),e)});Jn.displayName="DialogTitle",Jn.propTypes={children:h().node,className:h().string,id:h().string};const er=g.forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=T(),{subtitleId:i}=(0,g.useContext)(Kn),l=n||i;return g.createElement(Un,p({as:"h2",id:l,className:v()(`${a}--dialog-header__label`,t),ref:o},r),e)});er.displayName="DialogSubtitle",er.propTypes={children:h().node,className:h().string,id:h().string};const tr=g.forwardRef(({children:e,className:t,hasScrollingContent:n,...r},o)=>{const a=T(),i=(0,g.useRef)(null),[l,s]=(0,g.useState)(!1),c=`${a}--dialog-body--${qt()}`;N(()=>{i.current&&s(i.current.scrollHeight>i.current.clientHeight);const e=function(e,t=0,n={}){"object"!=typeof n&&(n={});const{signal:r,leading:o=!1,trailing:a=!0,maxWait:i}=n,l=Array(2);let s;o&&(l[0]="leading"),a&&(l[1]="trailing");let c=null;const u=function(e,t,{signal:n,edges:r}={}){let o,a=null;const i=null!=r&&r.includes("leading"),l=null==r||r.includes("trailing"),s=()=>{null!==a&&(e.apply(o,a),o=void 0,a=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,l&&s(),f()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,a=null},p=function(...e){if(n?.aborted)return;o=this,a=e;const t=null==c;u(),i&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}(function(...t){s=e.apply(this,t),c=null},t,{signal:r,edges:l}),d=function(...t){if(null!=i)if(null===c)c=Date.now();else if(Date.now()-c>=i)return s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s;return u.apply(this,t),s};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}(function(){i.current&&s(i.current.scrollHeight>i.current.clientHeight)},200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]);const u=v()(`${a}--dialog-content`,{[`${a}--dialog-scroll-content`]:n||l},t),d=n||l?{tabIndex:0,role:"region"}:{};return g.createElement(cn,p({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),i.current=e},id:c,className:u},d,r),e)});tr.displayName="DialogBody",tr.propTypes={children:h().node,className:h().string,hasScrollingContent:h().bool};const nr=g.forwardRef(({children:e,className:t,onRequestClose:n=hn,onSecondarySubmit:r,onRequestSubmit:o=hn,primaryButtonText:a="Save",primaryButtonDisabled:i=!1,secondaryButtonText:l="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:f=hn,danger:m=!1,...h},b)=>{const y=T(),w=(0,g.useRef)(null),{isOpen:E}=(0,g.useContext)(Kn),[N,x]=(0,g.useState)(null);(0,g.useEffect)(()=>{if(m&&N){const e=requestAnimationFrame(()=>{N.focus()});return()=>cancelAnimationFrame(e)}},[m,N,E]);const C=v()(`${y}--dialog-footer`,t,{[`${y}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),$="inactive"!==c,_=v()({[`${y}--btn--loading`]:"inactive"!==c}),R=r||n;return e?g.createElement(mn,p({className:C,ref:b},h),e):g.createElement(mn,p({className:C,"aria-busy":$,ref:b},h),Array.isArray(s)&&s.length<=2?s.map(({buttonText:e,onClick:t},n)=>g.createElement(tn,{key:`${e}-${n}`,autoFocus:m,kind:"secondary",ref:0===n&&m?x:void 0,onClick:t},e)):l&&g.createElement(tn,{ref:m?x:void 0,disabled:$,kind:"secondary",autoFocus:m,onClick:R},l),g.createElement(tn,{className:_,kind:m?"danger":"primary",disabled:$||i,onClick:o,ref:w},"inactive"===c?a:g.createElement(yn,{status:c,description:u,iconDescription:d,className:`${y}--inline-loading--btn`,onSuccess:f})))});nr.displayName="DialogFooter",nr.propTypes={children:h().node,className:h().string,onRequestClose:h().func,onSecondarySubmit:h().func,onRequestSubmit:h().func,primaryButtonText:h().node,primaryButtonDisabled:h().bool,secondaryButtonText:h().node,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach(e=>{h().checkPropTypes(r,e,t,n)})}return null},danger:h().bool,loadingStatus:h().oneOf(["inactive","active","finished","error"]),loadingDescription:h().string,loadingIconDescription:h().string,onLoadingSuccess:h().func},h().elementType,h().node,h().string;const rr=g.createContext(void 0);function or(){return(0,g.useContext)(rr)}function ar({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:a=!1,...i}){const l=(0,g.useRef)(null),[s,c]=(0,g.useState)(a),u=T(),d=qt(),f=v()(`${u}--toggletip`,r,{[`${u}--toggletip--open`]:s,[`${u}--autoalign`]:n}),m={toggle:()=>{c(!s)},close:()=>{c(!1)}},h={buttonProps:{"aria-expanded":s,"aria-controls":d,"aria-describedby":s?d:void 0,onClick:m.toggle},contentProps:{id:d},onClick:{onClick:m.toggle}};return _("blur",()=>{s&&m.close()}),(0,g.useEffect)(()=>{if(!l.current)return;const e=l.current.ownerDocument||document,t="PointerEvent"in window?"pointerdown":"mousedown",n=e=>{const t=e.target;s&&t&&!l.current.contains(t)&&c(!1)},r={capture:!0};return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}},[s]),g.createElement(rr.Provider,{value:h},g.createElement($t,p({align:e,as:t,caret:!0,className:f,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&Bt(e,At)){e.stopPropagation(),m.close();const t=l.current?.children[0];t instanceof HTMLButtonElement&&t.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||m.close()},ref:l,autoAlign:n},i),o))}const{open:ir,...lr}=$t.propTypes??{};ar.propTypes={...lr,defaultOpen:h().bool};const sr=(0,g.forwardRef)(function({children:e,className:t,label:n="Show information",as:r,...o},a){const i=or(),l=T(),s=v()(`${l}--toggletip-button`,t),c=r??"button";return"button"!==c?g.createElement(c,p({},i?.onClick,{className:s},o),e):g.createElement("button",p({},i?.buttonProps,{"aria-label":n,type:"button",className:s,ref:a},o),e)});sr.propTypes={children:h().node,className:h().string,label:h().string},sr.displayName="ToggletipButton";const cr=(0,g.forwardRef)((e,t)=>{const{children:n,className:r}=e,o=or(),a=T();return g.createElement(_t,p({className:r},o?.contentProps,{ref:t}),g.createElement("div",{className:`${a}--toggletip-content`},n))});function ur({children:e,className:t}){const n=T(),r=v()(`${n}--toggletip-actions`,t);return g.createElement("div",{className:r},e)}cr.propTypes={children:h().node,className:h().string},cr.displayName="ToggletipContent",ur.propTypes={children:h().node,className:h().string};var dr,fr,pr,mr,hr,gr,br,yr,vr,wr,Er,Nr,xr=n(428);const Cr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},dr||(dr=g.createElement("path",{d:"M20,10H7.8149l3.5874-3.5859L10,5,4,11,10,17l1.4023-1.4146L7.8179,12H20a6,6,0,0,1,0,12H12v2h8a8,8,0,0,0,0-16Z"})),e)}),Tr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},fr||(fr=g.createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),pr||(pr=g.createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),mr||(mr=g.createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),e)}),$r=g.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},hr||(hr=g.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),gr||(gr=g.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},br||(br=g.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),yr||(yr=g.createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},vr||(vr=g.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),wr||(wr=g.createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),e):g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Er||(Er=g.createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Nr||(Nr=g.createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),e)});var _r;const Rr=g.forwardRef(function({className:e,children:t},n){const r=T(),o=g.Children.toArray(t).some(e=>{e.type}),a=v()(e,{[`${r}--ai-label-content`]:!0,[`${r}--ai-label-content--with-actions`]:o});return g.createElement(cr,{className:a},t)});Rr.displayName="AILabelContent",Rr.propTypes={children:h().node,className:h().string};const Sr=g.forwardRef(function({className:e,children:t},n){const r=T(),o=v()(e,{[`${r}--ai-label-actions`]:!0});return g.createElement(ur,{className:o},t)});Sr.displayName="AILabelActions",Sr.propTypes={children:h().node,className:h().string};const Ar=g.forwardRef(function({aiText:e="AI",aiTextLabel:t,textLabel:n,align:r,autoAlign:o=!0,children:a,className:i,kind:l="default",onRevertClick:s,revertActive:c,revertLabel:u="Revert to AI input",slugLabel:d="Show information","aria-label":f="Show information",size:m="xs",...h},b){const y=T(),w=qt("AILabel"),E=v()(i,{[`${y}--ai-label`]:!0,[`${y}--ai-label--revert`]:c}),N=v()({[`${y}--ai-label__button`]:!0,[`${y}--ai-label__button--${m}`]:m,[`${y}--ai-label__button--${l}`]:l,[`${y}--ai-label__button--inline-with-content`]:"inline"===l&&(t||n)}),x=t||n?`${e} ${t||n}`:`${e} ${d||f}`,C=["xs","2xs","mini"].includes(m);return g.createElement("div",{className:E,ref:b,id:w},c?g.createElement(Jt,p({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},h),_r||(_r=g.createElement(Cr,null))):g.createElement(ar,p({align:r,autoAlign:o,alignmentAxisOffset:C?-24:0},h),g.createElement(sr,{className:N,label:"inline"===l?"":x},g.createElement("span",{className:`${y}--ai-label__text`},e),"inline"===l&&(t||n)&&g.createElement("span",{className:`${y}--ai-label__additional-text`},t||n)),a))});Ar.displayName="AILabel",Ar.propTypes={...ar.propTypes,AILabelContent:h().node,aiText:h().string,aiTextLabel:Nt(h().string),"aria-label":h().string,kind:h().oneOf(["default","inline"]),onRevertClick:h().func,revertActive:h().bool,revertLabel:h().string,size:h().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:Nt(h().string),textLabel:h().string};const Or=(e,t)=>(0,g.isValidElement)(e)&&e.type===t,Lr=e=>{const[t,n]=(0,g.useState)(!!e),[r,o]=(0,g.useState)(!!e);return(0,g.useEffect)(()=>{e!==r&&(n(!!e),o(!!e))},[e,r]),(0,g.useMemo)(()=>[t,n],[t])},kr=({open:e,_presenceId:t,_autoEnablePresence:n=!0,children:r})=>{const o=Lr(e),[a]=o,[i,l]=((e,t)=>{const n=(0,g.useRef)(t),r=(0,g.useRef)(null),o=(0,g.useRef)(null);t||!o.current||r.current||(n.current=null),o.current=r.current;const{isPresent:a,isExiting:i}=((e,t)=>{const n=T(),[r,o]=(0,g.useState)(t?"idle":"finished"),a="active"===r;t||"idle"!==r||o("active"),t&&"idle"!==r&&o("idle");const i=(0,g.useCallback)(()=>{o("finished")},[]);return(0,g.useLayoutEffect)(()=>{if(!e.current||!a)return;if(!("getAnimations"in e.current))return void i();const t=e.current.getAnimations({subtree:!0}).filter(e=>e instanceof CSSAnimation&&e.animationName.startsWith(`${n}--presence`));if(!t.length)return void i();let r=!1;return Promise.all(t.map(e=>e.finished)).finally(()=>{r||i()}),()=>{r=!0}},[e,a,n,i]),{isPresent:t||"finished"!==r,isExiting:a}})(r,e),l=(0,g.useCallback)(e=>!(!e||n.current&&n.current!==e||(n.current=e,0)),[]);return[a,(0,g.useMemo)(()=>({presenceRef:r,isPresenceExclusive:l,isExiting:i}),[r,l,i])]})(a,t),s=(0,g.useMemo)(()=>({modalState:o,autoEnablePresence:n,...l}),[o,n,l]);return i?g.createElement(Mr,{value:s},r):null},Mr=(0,g.createContext)(void 0),Br=g.forwardRef(function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},a){const i=T(),l=(0,g.useRef)(null),{height:s}=(({ref:e,onResize:t})=>{const[n,r]=(0,g.useState)(-1),[o,a]=(0,g.useState)(-1),i=(0,g.useRef)(null),l=(0,g.useRef)(t);return(0,g.useEffect)(()=>{l.current=t},[t]),(0,g.useEffect)(()=>{!e?.current||n>=0&&o>=0||(()=>{if(e.current){const t=window.getComputedStyle(e.current),n=(e.current?.offsetWidth??0)-("string"==typeof t?.paddingLeft&&t?.paddingLeft.length?parseFloat(t?.paddingLeft):0)-("string"==typeof t?.paddingRight&&t?.paddingRight.length?parseFloat(t?.paddingRight):0),o=(e.current?.offsetHeight??0)-("string"==typeof t?.paddingTop&&t?.paddingTop.length?parseFloat(t?.paddingTop):0)-("string"==typeof t?.paddingBottom&&t?.paddingBottom.length?parseFloat(t?.paddingBottom):0);r(n),a(o)}})()},[n,o]),(0,g.useLayoutEffect)(()=>{if(!e?.current)return;const t=new ResizeObserver(t=>{i.current=t,window.requestAnimationFrame(()=>{(()=>{if(!e?.current||!Array.isArray(i?.current))return;const t=i.current[0];r(t.contentRect.width),a(t.contentRect.height),l.current&&l.current(t.contentRect)})()})});return t.observe(e.current),()=>{t.disconnect()}},[]),{width:n,height:o}})({ref:l}),c=!!l.current&&l?.current?.scrollHeight>l?.current?.clientHeight,u=v()({[`${i}--modal-content`]:!0,[`${i}--modal-content--with-form`]:n,[`${i}--modal-scroll-content`]:r||c,[`${i}--modal-scroll-content--no-fade`]:s<=300},e),d=r||c?{tabIndex:0,role:"region"}:{};return g.createElement(cn,p({className:u},d,o,{ref:En(l,a)}),t)});var Ir;Br.propTypes={"aria-label":(Ir=h().string,(e,t,n,...r)=>Ir(e,t,n,...r)),children:h().node,className:h().string,hasForm:h().bool,hasScrollingContent:h().bool};const Dr=g.forwardRef(function({open:e,...t},n){const r=qt(),o=Ct("enable-presence"),a=Boolean((0,g.useContext)(Mr)),i=o||a,l=(e=>{const t=(0,g.useContext)(Mr);return t?.isPresenceExclusive(e)?t:void 0})(r);return i&&!l?g.createElement(kr,{open:e??!1,_presenceId:r,_autoEnablePresence:a},g.createElement(Pr,p({open:!0,ref:n},t))):g.createElement(Pr,p({ref:n,open:e},t))}),Pr=g.forwardRef(function({"aria-labelledby":e,"aria-label":t,children:n,className:r,containerClassName:o,danger:a,decorator:i,isFullWidth:l,onClose:s,onKeyDown:c,open:u,preventCloseOnClickOutside:d,selectorPrimaryFocus:f="[data-modal-primary-focus]",selectorsFloatingMenus:m,size:h,launcherButtonRef:b,slug:y,...w},E){const N=T(),x=(0,g.useRef)(null),C=(0,g.useRef)(null),$=(0,g.useRef)(null),_=(0,g.useRef)(null),R=(0,g.useRef)(null),S=(0,g.useContext)(Mr),A=function(e){const t=g.useRef(void 0),n=g.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return g.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}([E,S?.presenceRef]),O=Ct("enable-presence")||S?.autoEnablePresence,L=u||O,k=Lr(L),[M,B]=S?.modalState??k,I=Ct("enable-dialog-element"),D=Ct("enable-experimental-focus-wrap-without-sentinels"),P=Ct("enable-focus-wrap-without-sentinels"),z=D||P;function H(e){s&&!1===s(e)||B(!1)}(0,g.useEffect)(()=>{I||Nn(document.body,`${N}--body--with-modal-open`,!!L)},[L,N]),(0,g.useEffect)(()=>{if(!I)return()=>{Nn(document.body,`${N}--body--with-modal-open`,!1)}},[]);const F=v()(`${N}--modal`,{"is-visible":O||M,[`${N}--modal--enable-presence`]:S?.autoEnablePresence,[`${N}--modal--danger`]:a,[`${N}--modal--slug`]:y,[`${N}--modal--decorator`]:i},r),V=v()(`${N}--modal-container`,h&&`${N}--modal-container--${h}`,l&&`${N}--modal-container--full-width`,o);let j;const q=g.Children.toArray(n).map(e=>{switch(!0){case(0,nn.isElement)(e)&&e.type===g.createElement(dn).type:{const t=e;return j=t.props.label,g.cloneElement(t,{closeModal:H})}case(0,nn.isElement)(e)&&e.type===g.createElement(wn).type:{const t=e;return g.cloneElement(t,{closeModal:H,inputref:C,danger:a})}default:return e}}),W=!g.Children.toArray(q).some(e=>Or(e,wn));(0,g.useEffect)(()=>{if(!L)return;const e=e=>{Bt(e,At)&&(e.preventDefault(),e.stopPropagation(),H(e))};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[L]),(0,g.useEffect)(()=>{I||O||L||!b||setTimeout(()=>{b.current?.focus()})},[I,O,L,b]),(0,g.useEffect)(()=>{const e=b?.current;return()=>{O&&e&&setTimeout(()=>{e.focus()})}},[O,b]),(0,g.useEffect)(()=>{if(!I){const e=e=>{const t=e||x.current;return(t?t.querySelector(a?`.${N}--btn--secondary`:f):null)||C&&C.current};L&&M&&(t=>{const n=e(t),r=t.querySelector(`.${N}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(x.current)}},[L,f,M]);const U=y??i,Z=Or(U,Ar)?(0,g.cloneElement)(U,{size:"sm"}):U,K=I?g.createElement(Gn,{open:L,focusAfterCloseRef:b,modal:!0,className:V,"aria-label":t||j,"aria-labelledby":e,"data-exiting":S?.isExiting||void 0},g.createElement("div",{ref:x,className:`${N}--modal-container-body`},y?Z:i?g.createElement("div",{className:`${N}--modal--inner__decorator`},Z):"",q)):g.createElement("div",{className:V,role:"dialog","aria-modal":"true","aria-label":t||j,"aria-labelledby":e},!z&&g.createElement("button",{type:"button",ref:$,className:`${N}--visually-hidden`},"Focus sentinel"),g.createElement("div",{ref:x,className:`${N}--modal-container-body`},y?Z:i?g.createElement("div",{className:`${N}--modal--inner__decorator`},Z):"",q),!z&&g.createElement("button",{type:"button",ref:_,className:`${N}--visually-hidden`},"Focus sentinel"));return g.createElement(cn,p({},w,{level:0,role:"presentation",ref:A,"aria-hidden":!L,onBlur:function({target:e,relatedTarget:t}){if(!I&&!z&&L&&t&&e&&x.current){const{current:n}=x,{current:r}=$,{current:o}=_;Vn({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:m?.filter(Boolean),prefix:N})}const n=document.querySelector(`.${N}--modal-content`);n&&n.classList.contains(`${N}--modal-scroll-content`)&&t&&n.contains(t)&&t.scrollIntoView({block:"center"})},onClick:qn([w?.onClick,function(e){const{target:t}=e,n=R.current;e.stopPropagation(),(W&&!d||!W&&!1===d)&&t instanceof Node&&!Fn(t,m,N)&&x.current&&!x.current.contains(t)&&!x.current.contains(n)&&H(e)}]),onMouseDown:qn([w?.onMouseDown,function(e){const t=e.target;R.current=t}]),onKeyDown:function(e){I||z&&L&&Bt(e,Rt)&&x.current&&jn({containerNode:x.current,currentActiveNode:e.target,event:e}),c?.(e)},className:F,"data-exiting":S?.isExiting||void 0}),K)});function zr({className:e,children:t,id:n,...r}){const o=T(),a=v()(`${o}--label`,`${o}--label--no-margin`,e);return g.createElement(Un,p({as:"label",htmlFor:n,className:a},r),t)}var Hr,Fr,Vr,jr;Dr.propTypes={"aria-label":h().string,"aria-labelledby":h().string,children:h().node,className:h().string,containerClassName:h().string,danger:h().bool,decorator:h().node,isFullWidth:h().bool,launcherButtonRef:h().oneOfType([h().func,h().shape({current:h().any})]),onClose:h().func,onKeyDown:h().func,open:h().bool,preventCloseOnClickOutside:h().bool,selectorPrimaryFocus:h().string,selectorsFloatingMenus:h().arrayOf(h().string.isRequired),size:h().oneOf(["xs","sm","md","lg"]),slug:Nt(h().node)},zr.propTypes={children:h().node,className:h().string,id:h().string};const qr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Hr||(Hr=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Fr||(Fr=g.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)}),Wr=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Vr||(Vr=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),jr||(jr=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)});function Ur({children:e,className:t,onClick:n,inline:r,...o}){const a=T(),i=v()(t,{[`${a}--actionable-notification__action-button`]:!0});return g.createElement(tn,p({className:i,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function Zr({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=un.bm,name:a,notificationType:i="toast",...l}){const s=T(),c=v()(n,{[`${s}--${i}-notification__close-button`]:i}),u=v()({[`${s}--${i}-notification__close-icon`]:i});return g.createElement("button",p({},l,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&g.createElement(o,{className:u,name:a}))}Ur.propTypes={children:h().node,className:h().string,inline:h().bool,onClick:h().func},Zr.propTypes={"aria-label":h().string,ariaLabel:Nt(h().string),className:h().string,name:h().string,notificationType:h().oneOf(["toast","inline","actionable"]),renderIcon:h().oneOfType([h().func,h().object]),type:h().string};const Kr={error:gn.x,success:un._j,warning:$r,"warning-alt":Tr,info:qr,"info-square":Wr};function Gr({iconDescription:e,kind:t,notificationType:n}){const r=T(),o=Kr[t];return o?g.createElement(o,{className:`${r}--${n}-notification__icon`,size:20},g.createElement("title",null,e)):null}function Yr({actionButtonLabel:e,"aria-label":t,ariaLabel:n,caption:r,children:o,role:a="alertdialog",onActionButtonClick:i,onClose:l,onCloseButtonClick:s=hn,statusIconDescription:c,className:u,inline:d=!1,kind:f="error",lowContrast:m,hideCloseButton:h=!1,hasFocus:b=!0,closeOnEscape:y=!0,title:w,subtitle:E,...x}){const[C,$]=(0,g.useState)(!0),_=T(),R=qt("actionable-notification"),S=qt("actionable-notification-subtitle"),A=v()(u,{[`${_}--actionable-notification`]:!0,[`${_}--actionable-notification--toast`]:!d,[`${_}--actionable-notification--low-contrast`]:m,[`${_}--actionable-notification--${f}`]:f,[`${_}--actionable-notification--hide-close-button`]:h}),O=(0,g.useRef)(null),L=(0,g.useRef)(null),k=(0,g.useRef)(null),M=(0,g.useRef)(null),B=Ct("enable-experimental-focus-wrap-without-sentinels"),I=Ct("enable-focus-wrap-without-sentinels")||B;function D(e){s(e),l&&!1===l(e)||$(!1)}return N(()=>{if(b&&"alertdialog"===a){const e=document.querySelector(`button.${_}--actionable-notification__action-button`);e?.focus()}}),function(e,t,n=!0){const r=r=>{const o=e.current&&document.activeElement===e.current||e.current?.contains(document.activeElement);Mt(r,[At])&&n&&o&&t(r)};N(()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1)))}(M,D,y),C?g.createElement("div",p({},x,{ref:M,role:a,className:A,"aria-labelledby":w?R:S,onBlur:I?()=>{}:function({target:e,relatedTarget:t}){if(C&&t&&e&&"alertdialog"===a){const{current:n}=O,{current:r}=L,{current:o}=k;Vn({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,prefix:_})}},onKeyDown:I?function(e){C&&Bt(e,Rt)&&M.current&&"alertdialog"===a&&jn({containerNode:M.current,currentActiveNode:e.target,event:e})}:()=>{}}),!I&&g.createElement("span",{ref:L,tabIndex:0,role:"link",className:`${_}--visually-hidden`},"Focus sentinel"),g.createElement("div",{ref:O},g.createElement("div",{className:`${_}--actionable-notification__details`},g.createElement(Gr,{notificationType:d?"inline":"toast",kind:f,iconDescription:c||`${f} icon`}),g.createElement("div",{className:`${_}--actionable-notification__text-wrapper`},g.createElement("div",{className:`${_}--actionable-notification__content`},w&&g.createElement(Un,{as:"div",className:`${_}--actionable-notification__title`,id:R},w),E&&g.createElement(Un,{as:"div",className:`${_}--actionable-notification__subtitle`,id:S},E),r&&g.createElement(Un,{as:"div",className:`${_}--actionable-notification__caption`},r),o))),g.createElement("div",{className:`${_}--actionable-notification__button-wrapper`},e&&g.createElement(Ur,{onClick:i,inline:d},e),!h&&g.createElement(Zr,{"aria-label":n||t,notificationType:"actionable",onClick:D}))),!I&&g.createElement("span",{ref:k,tabIndex:0,role:"link",className:`${_}--visually-hidden`},"Focus sentinel")):null}Gr.propTypes={iconDescription:h().string.isRequired,kind:h().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:h().oneOf(["inline","toast"]).isRequired},h().string,Nt(h().string),h().string,h().node,h().string,h().bool,h().oneOf(["error","info","info-square","success","warning","warning-alt"]),h().bool,h().func,h().func,h().oneOf(["alert","log","status"]),h().string,h().string,h().number,h().string,h().string,h().node,h().string,h().bool,h().oneOf(["error","info","info-square","success","warning","warning-alt"]),h().bool,h().func,h().func,h().oneOf(["alert","log","status"]),h().string,h().string,h().string,Yr.propTypes={actionButtonLabel:h().string,"aria-label":h().string,ariaLabel:Nt(h().string),caption:h().string,children:h().node,className:h().string,closeOnEscape:h().bool,hasFocus:Nt(h().bool),hideCloseButton:h().bool,inline:h().bool,kind:h().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:h().bool,onActionButtonClick:h().func,onClose:h().func,onCloseButtonClick:h().func,role:h().string,statusIconDescription:h().string,subtitle:h().node,title:h().string};const Xr={error:"warning",success:"info"};h().string,h().node,h().string,E(h().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],e=>Xr[e]),h().bool,h().func,h().string,h().node,h().string,h().string;const Qr=(0,g.forwardRef)((e,t)=>{const{className:n,closeMenu:r,disabled:o=!1,handleOverflowMenuItemFocus:a,hasDivider:i=!1,href:l,isDelete:s=!1,index:c,itemText:u="Provide itemText",onClick:d=()=>{},onKeyDown:f=()=>{},requireTitle:m,title:h,wrapperClassName:b,...y}=e,w=T(),E=v()(`${w}--overflow-menu-options__btn`,n),N=v()(`${w}--overflow-menu-options__option`,{[`${w}--overflow-menu--divider`]:i,[`${w}--overflow-menu-options__option--danger`]:s,[`${w}--overflow-menu-options__option--disabled`]:o},b),x=l?"a":"button",C="string"!=typeof u?u:g.createElement("div",{className:`${w}--overflow-menu-options__option-content`},u);return g.createElement(Un,{as:"li",className:N,role:"none"},g.createElement(x,p({className:E,disabled:o,href:l,onClick:function(e){d(e),r&&r()},onKeyDown:e=>{!function(e){Bt(e,kt)&&a?.({currentIndex:c,direction:1}),Bt(e,Lt)&&a?.({currentIndex:c,direction:-1})}(e),f(e)},role:"menuitem",ref:t,tabIndex:-1,title:m?h||u:void 0},y),C))});Qr.propTypes={className:h().string,closeMenu:h().func,disabled:h().bool,handleOverflowMenuItemFocus:h().func,hasDivider:h().bool,href:h().string,index:h().number,isDelete:h().bool,itemText:h().node.isRequired,onBlur:h().func,onClick:h().func,onFocus:h().func,onKeyDown:h().func,onKeyUp:h().func,onMouseDown:h().func,onMouseEnter:h().func,onMouseLeave:h().func,onMouseUp:h().func,requireTitle:h().bool,title:h().string,wrapperClassName:h().string};const Jr=g.forwardRef((e,t)=>{const{className:n,decorator:r,disabled:o=!1,hideLabel:a,id:i,labelPosition:l="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:f,required:m,invalid:h=!1,invalidText:b,warn:y=!1,warnText:w,readOnly:E,...N}=e,x=T(),C=qt("radio-button"),$=i||C,_=(({id:e,readOnly:t,disabled:n,invalid:r,invalidText:o,warn:a,warnText:i})=>{const l=T(),s={disabled:!t&&n,invalid:!t&&!n&&r,invalidId:`${e}-error-msg`,warn:!t&&!r&&!n&&a,warnId:`${e}-warn-msg`,validation:null,icon:null,helperId:`${e}-helper-text`};return s.invalid?(s.icon=$r,s.validation=g.createElement(Un,{as:"div",className:`${l}--form-requirement`,id:s.invalidId},o)):s.warn&&(s.icon=Tr,s.validation=g.createElement(Un,{as:"div",className:`${l}--form-requirement`,id:s.warnId},i)),s})({id:$,readOnly:E,disabled:o,invalid:h,invalidText:b,warn:y,warnText:w}),R=v()(`${x}--radio-button__label-text`,{[`${x}--visually-hidden`]:a}),S=v()(n,`${x}--radio-button-wrapper`,{[`${x}--radio-button-wrapper--label-${l}`]:"right"!==l,[`${x}--radio-button-wrapper--slug`]:f,[`${x}--radio-button-wrapper--decorator`]:r,[`${x}--radio-button-wrapper--invalid`]:_.invalid,[`${x}--radio-button-wrapper--warning`]:_.warn}),A=(0,g.useRef)(null),O=f??r,L=Or(O,Ar)?(0,g.cloneElement)(O,{size:"inline"===O.props?.kind?"md":"mini"}):O;return g.createElement("div",{className:S},g.createElement("input",p({},N,{type:"radio",className:`${x}--radio-button`,onChange:function(e){u(d,c,e)},id:$,ref:En(A,t),disabled:_.disabled,value:d,name:c,required:m,readOnly:E})),g.createElement("label",{htmlFor:$,className:`${x}--radio-button__label`},g.createElement("span",{className:`${x}--radio-button__appearance`}),s&&g.createElement(Un,{className:R},s,f?L:r?g.createElement("div",{className:`${x}--radio-button-wrapper-inner--decorator`},L):"")),_.validation)});function eo(e){const{className:t,...n}=e,r=T();return g.createElement("div",p({className:v()(`${r}--radio-button-wrapper`,t)},n),g.createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),g.createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}Jr.displayName="RadioButton",Jr.propTypes={checked:h().bool,className:h().string,decorator:h().node,defaultChecked:h().bool,disabled:h().bool,hideLabel:h().bool,id:h().string,labelPosition:h().oneOf(["right","left"]),labelText:h().node.isRequired,name:h().string,onChange:h().func,onClick:h().func,required:h().bool,invalid:h().bool,invalidText:h().node,warn:h().bool,warnText:h().node,readOnly:h().bool,slug:Nt(h().node),value:h().oneOfType([h().string,h().number])},eo.propTypes={className:h().string};const to=e=>g.createElement(Un,p({as:"legend"},e));const no=g.forwardRef((e,t)=>{const{children:n,className:r,decorator:o,defaultSelected:a,disabled:i,helperText:l,invalid:s=!1,invalidText:c,labelPosition:u="right",legendText:d,name:f,onChange:m=()=>{},orientation:h="horizontal",readOnly:b,valueSelected:y,warn:w=!1,warnText:E,slug:N,required:x,...C}=e,$=T(),[_,R]=(0,g.useState)(y??a),[S,A]=(0,g.useState)(y),O=qt();function L(e,t,n){b||e!==_&&(R(e),m(e,f,n))}y!==S&&(R(y),A(y));const k=!b&&!i&&!s&&w,M=!s&&!i&&!w,B=v()(`${$}--form-item`,r),I=v()(`${$}--radio-button-group`,{[`${$}--radio-button-group--${h}`]:"vertical"===h,[`${$}--radio-button-group--label-${u}`]:u,[`${$}--radio-button-group--readonly`]:b,[`${$}--radio-button-group--invalid`]:!b&&!i&&s,[`${$}--radio-button-group--warning`]:k,[`${$}--radio-button-group--slug`]:N,[`${$}--radio-button-group--decorator`]:o}),D=v()(`${$}--form__helper-text`,{[`${$}--form__helper-text--disabled`]:i}),P=l?`radio-button-group-helper-text-${O}`:void 0,z=l?g.createElement("div",{id:P,className:D},l):null,H=(0,g.useRef)(null),F=N??o,V=Or(F,Ar)?(0,g.cloneElement)(F,{size:"mini",kind:"default"}):F;return g.createElement("div",{className:B,ref:En(H,t)},g.createElement("fieldset",p({className:I,disabled:i,"data-invalid":!!s||void 0,"aria-describedby":M&&l?P:void 0},C),d&&g.createElement(to,{className:`${$}--label`},d,N?V:o?g.createElement("div",{className:`${$}--radio-button-group-inner--decorator`},V):""),g.Children.map(n,e=>{if(!e)return;const t={name:f,key:e.props.value,value:e.props.value,onChange:L,checked:e.props.value===_,required:x};return!_&&e.props.checked&&(t.checked=!0),g.cloneElement(e,t)})),g.createElement("div",{className:`${$}--radio-button__validation-msg`},!b&&!i&&s&&g.createElement(g.Fragment,null,g.createElement($r,{className:`${$}--radio-button__invalid-icon`}),g.createElement("div",{className:`${$}--form-requirement`},c)),k&&g.createElement(g.Fragment,null,g.createElement(Tr,{className:`${$}--radio-button__invalid-icon ${$}--radio-button__invalid-icon--warning`}),g.createElement("div",{className:`${$}--form-requirement`},E))),M&&z)});var ro,oo;no.propTypes={children:h().node,className:h().string,decorator:h().node,defaultSelected:h().oneOfType([h().string,h().number]),disabled:h().bool,helperText:h().node,invalid:h().bool,invalidText:h().node,labelPosition:h().oneOf(["left","right"]),legendText:h().node,name:h().string.isRequired,onChange:h().func,orientation:h().oneOf(["horizontal","vertical"]),readOnly:h().bool,required:h().bool,slug:Nt(h().node),valueSelected:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node},no.displayName="RadioButtonGroup";const ao=g.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},ro||(ro=g.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),e):g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},oo||(oo=g.createElement("path",{d:"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"})),e)}),io=(0,g.createContext)({isFluid:!1});var lo;const so=g.forwardRef(({autoComplete:e="off",className:t,closeButtonLabelText:n="Clear search input",defaultValue:r,disabled:o,isExpanded:a=!0,id:i,labelText:l,light:s,onChange:c=()=>{},onClear:u=()=>{},onKeyDown:d,onExpand:f,placeholder:m="Search",renderIcon:h,role:b,size:y="md",type:w="search",value:E,...N},C)=>{const $=!(!E&&!r),_=T(),{isFluid:R}=(0,g.useContext)(io),S=(0,g.useRef)(null),A=x([C,S]),O=(0,g.useRef)(null),L=qt("search-input"),k=i||L,M=`${k}-search`,[B,I]=(0,g.useState)($||!1),[D,P]=(0,g.useState)(E),z=v()({[`${_}--search`]:!0,[`${_}--search--sm`]:"sm"===y,[`${_}--search--md`]:"md"===y,[`${_}--search--lg`]:"lg"===y,[`${_}--search--light`]:s,[`${_}--search--disabled`]:o,[`${_}--search--fluid`]:R},t),H=v()({[`${_}--search-close`]:!0,[`${_}--search-close--hidden`]:!B||!a});function F(){if(!E&&S.current&&(S.current.value=""),S.current){const e=Object.assign({},S.current,{value:""}),t={bubbles:!1,cancelable:!1,currentTarget:S.current,defaultPrevented:!1,eventPhase:0,isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,isTrusted:!1,nativeEvent:new Event("change"),persist:hn,preventDefault:hn,stopPropagation:hn,target:e,timeStamp:0,type:"change"};c(t)}u(),I(!1),S.current?.focus()}E!==D&&(I(!!E),P(E));const V=g.createElement("div",{"aria-labelledby":f?M:void 0,role:f?"button":void 0,className:`${_}--search-magnifier`,onClick:f,onKeyDown:function(e){(Bt(e,St)||Bt(e,Ot))&&(e.stopPropagation(),f&&f(e))},tabIndex:f&&!a?0:-1,ref:O,"aria-expanded":!(!f||!a)||!(f&&!a)&&void 0,"aria-controls":f?k:void 0},g.createElement(co,{icon:h})),j=f&&!a?g.createElement(Gt,{className:`${_}--search-tooltip ${_}--search-magnifier-tooltip`,align:"top",label:"Search"},V):V;return g.createElement("div",{role:"search","aria-label":m,className:z},j,g.createElement("label",{id:M,htmlFor:k,className:`${_}--label`},l),g.createElement("input",p({autoComplete:e,className:`${_}--search-input`,defaultValue:r,disabled:o,role:b,ref:A,id:k,onChange:qn([c,function(e){I(""!==e.target.value)}]),onKeyDown:qn([d,function(e){Bt(e,At)&&(e.stopPropagation(),S.current?.value?F():f&&a&&O.current?.focus())}]),placeholder:m,type:w,value:E,tabIndex:f&&!a?-1:void 0},N)),g.createElement("button",{"aria-label":n,className:H,disabled:o,onClick:F,title:n,type:"button"},lo||(lo=g.createElement(un.bm,null))))});function co({icon:e}){const t=T();return e?g.createElement(e,{className:`${t}--search-magnifier-icon`}):g.createElement(ao,{className:`${t}--search-magnifier-icon`})}so.displayName="Search",so.propTypes={autoComplete:h().string,className:h().string,closeButtonLabelText:h().string,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,id:h().string,isExpanded:h().bool,labelText:h().node.isRequired,light:Nt(h().bool),onChange:h().func,onClear:h().func,onExpand:h().func,onKeyDown:h().func,placeholder:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:Nt(h().string),size:h().oneOf(["sm","md","lg"]),type:h().string,value:h().oneOfType([h().string,h().number])},co.propTypes={icon:h().oneOfType([h().func,h().object])};const uo=({className:e,...t})=>{const n=T(),r=v()(e,{[`${n}--icon--skeleton`]:!0});return g.createElement("div",p({className:r},t))};uo.propTypes={className:h().string};const fo=({align:e="bottom",autoAlign:t,className:n,children:r,definition:o,defaultOpen:a=!1,id:i,openOnHover:l,tooltipText:s,triggerClassName:c,...u})=>{const[d,f]=(0,g.useState)(a),m=T(),h=function(e){const t=qt();return e??t}(i);return g.createElement($t,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{f(!1)},onMouseEnter:()=>{l&&f(!0)},onFocus:()=>{f(!0)},open:d},g.createElement("button",p({},u,{className:v()(`${m}--definition-term`,c),"aria-controls":h,"aria-describedby":h,"aria-expanded":d,onBlur:()=>{f(!1)},onMouseDown:e=>{0===e.button&&f(!d)},onKeyDown:function(e){d&&Bt(e,At)&&(e.stopPropagation(),f(!1))},type:"button"}),r),g.createElement(_t,{className:`${m}--definition-tooltip`,id:h},s??o))};var po;fo.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),autoAlign:h().bool,children:h().node.isRequired,className:h().string,defaultOpen:h().bool,definition:h().node.isRequired,id:h().string,openOnHover:h().bool,tooltipText:Nt(h().node),triggerClassName:h().string};const mo={red:"Red",magenta:"Magenta",purple:"Purple",blue:"Blue",cyan:"Cyan",teal:"Teal",green:"Green",gray:"Gray","cool-gray":"Cool-Gray","warm-gray":"Warm-Gray","high-contrast":"High-Contrast",outline:"Outline"},ho=g.forwardRef(({children:e,className:t,decorator:n,id:r,type:o,filter:a,renderIcon:i,title:l="Clear filter",disabled:s,onClose:c,size:u,as:d,slug:f,...m},h)=>{const b=T(),y=(0,g.useRef)(null);a&&console.warn("The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead."),c&&console.warn("The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.");const w=x([h,y]),E=r||`tag-${qt()}`,[N,C]=(0,g.useState)(!1);(0,g.useLayoutEffect)(()=>{const e=y.current?.getElementsByClassName(`${b}--tag__label`)[0];C((e=>!!e&&e?.offsetWidth<e?.scrollWidth)(e))},[b,y]);const $=[`${b}--tag--selectable`,`${b}--tag--filter`,`${b}--tag--operational`].some(e=>t?.includes(e)),_=v()(`${b}--tag`,t,{[`${b}--tag--disabled`]:s,[`${b}--tag--filter`]:a,[`${b}--tag--${u}`]:u,[`${b}--layout--size-${u}`]:u,[`${b}--tag--${o}`]:o,[`${b}--tag--interactive`]:m.onClick&&!$&&N}),R=void 0!==o&&o in Object.keys(mo)?mo[o]:"",S=e=>{c&&(e.stopPropagation(),c(e))},A=f??n,O=Or(A,Ar)&&!$?(0,g.cloneElement)(A,{size:"sm",kind:"inline"}):null;if(a){const t=d??"div";return g.createElement(t,p({className:_,id:E},m),i&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(i,null)):"",g.createElement(Un,{title:"string"==typeof e?e:void 0,className:`${b}--tag__label`},null!=e?e:R),O,g.createElement("button",{type:"button",className:`${b}--tag__close-icon`,onClick:S,disabled:s,"aria-label":l,title:l},po||(po=g.createElement(un.bm,null))))}const L=d??(m.onClick||t?.includes(`${b}--tag--operational`)?"button":"div"),k=v()({[`${b}--tag__label`]:!$});return g.createElement(L,p({ref:w,disabled:s,className:_,id:E,type:"button"===L?"button":void 0},m),i&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(i,null)):"",N&&!$?g.createElement(fo,{openOnHover:!1,definition:null!=e?e:R,className:`${b}--definition--tooltip--tag`},g.createElement(Un,{title:null!=e&&"string"==typeof e?e:R,className:k},null!=e?e:R)):g.createElement(Un,{title:null!=e&&"string"==typeof e?e:R,className:k},null!=e?e:R),f?O:n?g.createElement("div",{className:`${b}--tag__decorator`},O):"")}),go=ho;var bo,yo,vo,wo;go.propTypes={as:h().elementType,children:h().node,className:h().string,decorator:h().node,disabled:h().bool,filter:Nt(h().bool),id:h().string,onClose:Nt(h().func),renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:Nt(h().node),title:Nt(h().string),type:h().oneOf(Object.keys(mo))};const Eo=g.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},bo||(bo=g.createElement("path",{d:"M9.3 3.7 13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),e):20===t||"20"===t||"20px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},yo||(yo=g.createElement("path",{d:"M11.8 2.8 10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),e):24===t||"24"===t||"24px"===t?g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},vo||(vo=g.createElement("path",{d:"M14 4 12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),e):g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},wo||(wo=g.createElement("path",{d:"M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),e)});var No,xo,Co;const To=g.forwardRef(function({children:e,size:t=16,...n},r){return g.createElement(xr.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},No||(No=g.createElement("path",{d:"M19,21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4Z"})),xo||(xo=g.createElement("path",{d:"M15.5005,21h2l-3.5005-11h-3l-3.4966,11h1.9988l.6018-2h4.7781l.6184,2ZM10.7058,17l1.6284-5.4111.2559-.0024,1.6736,5.4136h-3.5579Z"})),Co||(Co=g.createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)}),$o=g.forwardRef(({as:e,children:t,className:n,href:r,disabled:o=!1,inline:a=!1,visited:i=!1,renderIcon:l,size:s,target:c,...u},d)=>{const f=T(),m={className:v()(`${f}--link`,n,{[`${f}--link--disabled`]:o,[`${f}--link--inline`]:a,[`${f}--link--visited`]:i,[`${f}--link--${s}`]:s}),rel:"_blank"===c?"noopener":void 0,target:c};o?(m.role="link",m["aria-disabled"]=!0):m.href=r;const h=e??"a";return g.createElement(h,p({ref:d},m,u,{onClick:e=>{o?(e.preventDefault(),e.stopPropagation()):u.onClick&&u.onClick(e)}}),t,!a&&l&&g.createElement("span",{className:`${f}--link__icon`},g.createElement(l,null)))}),_o=$o;var Ro,So,Ao,Oo;_o.displayName="Link",_o.propTypes={as:h().elementType,children:h().node,className:h().string,disabled:h().bool,href:h().string,inline:h().bool,renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(["sm","md","lg"]),visited:h().bool};const Lo=g.forwardRef(({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:a=!1,...i},l)=>{const s=T(),c=v()(`${s}--tile`,{[`${s}--tile--light`]:r,[`${s}--tile--slug`]:o,[`${s}--tile--slug-rounded`]:o&&a,[`${s}--tile--decorator`]:n,[`${s}--tile--decorator-rounded`]:n&&a},t);return g.createElement("div",p({className:c,ref:l},i),e,o,n&&g.createElement("div",{className:`${s}--tile--inner-decorator`},n))});Lo.displayName="Tile",Lo.propTypes={children:h().node,className:h().string,decorator:h().node,hasRoundedCorners:h().bool,light:Nt(h().bool),slug:Nt(h().node)};const ko=g.forwardRef(({children:e,className:t,clicked:n=!1,decorator:r,disabled:o,href:a,light:i,onClick:l=()=>{},onKeyDown:s=()=>{},renderIcon:c,hasRoundedCorners:u,slug:d,...f},m)=>{const h=T(),b=v()(`${h}--tile`,`${h}--tile--clickable`,{[`${h}--tile--is-clicked`]:n,[`${h}--tile--light`]:i,[`${h}--tile--slug`]:d,[`${h}--tile--slug-rounded`]:d&&u,[`${h}--tile--decorator`]:r,[`${h}--tile--decorator-rounded`]:r&&u},t),[y,w]=(0,g.useState)(n),E=Ct("enable-v12-tile-default-icons");E&&(c||(c=Eo),o&&(c=gn.$D));const N=v()({[`${h}--tile--icon`]:!E||E&&!o,[`${h}--tile--disabled-icon`]:E&&o});return g.createElement(_o,p({className:b,href:a,tabIndex:a||o?void 0:0,onClick:o?void 0:function(e){e?.persist?.(),w(!y),l(e)},onKeyDown:function(e){e?.persist?.(),Mt(e,[St,Ot])&&w(!y),s(e)},ref:m,disabled:o},f),d||r?g.createElement("div",{className:`${h}--tile-content`},e):e,(!0===d||!0===r)&&g.createElement(To,{size:"24",className:`${h}--tile--ai-label-icon`}),g.isValidElement(r)&&g.createElement("div",{className:`${h}--tile--inner-decorator`},r),c&&g.createElement(c,{className:N,"aria-hidden":"true"}))});ko.displayName="ClickableTile",ko.propTypes={children:h().node,className:h().string,clicked:h().bool,decorator:h().oneOfType([h().bool,h().node]),disabled:h().bool,hasRoundedCorners:h().bool,href:h().string,light:Nt(h().bool),onClick:h().func,onKeyDown:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object])},g.forwardRef(({children:e,className:t,decorator:n,disabled:r,id:o,light:a,onClick:i=()=>{},onChange:l=()=>{},onKeyDown:s=()=>{},selected:c=!1,tabIndex:u=0,title:d="title",slug:f,hasRoundedCorners:m,...h},b)=>{const y=T(),w=i,E=s,[N,x]=(0,g.useState)(c);(0,g.useEffect)(()=>{x(c)},[c]);const C=v()(`${y}--tile`,`${y}--tile--selectable`,{[`${y}--tile--is-selected`]:N,[`${y}--tile--light`]:a,[`${y}--tile--disabled`]:r,[`${y}--tile--slug`]:f,[`${y}--tile--slug-rounded`]:f&&m,[`${y}--tile--decorator`]:n,[`${y}--tile--decorator-rounded`]:n&&m},t),$=(0,g.useCallback)((e,t)=>{x(t),l(e,t,o)},[l,o]),_=(0,g.useRef)(null),R=f??n,S=Or(R,Ar)?(0,g.cloneElement)(R,{size:"xs",ref:_}):R;return g.createElement("div",p({className:C,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),S&&_.current&&e.target instanceof Node&&_.current.contains(e.target)||($(e,!N),w(e))},role:"checkbox","aria-checked":N,onKeyDown:r?void 0:function(e){e?.persist?.(),Mt(e,[St,Ot])&&(e.preventDefault(),$(e,!N)),E(e)},tabIndex:r?void 0:u,ref:b,id:o,title:d},h),g.createElement("span",{className:`${y}--tile__checkmark ${y}--tile__checkmark--persistent`},N?Ro||(Ro=g.createElement(un.NW,null)):So||(So=g.createElement(un.Sc,null))),g.createElement(Un,{as:"label",htmlFor:o,className:`${y}--tile-content`},e),f?S:n?g.createElement("div",{className:`${y}--tile--inner-decorator`},S):"")}).propTypes={children:h().node,className:h().string,decorator:h().node,disabled:h().bool,hasRoundedCorners:h().bool,id:h().string,light:Nt(h().bool),name:Nt(h().string),onChange:h().func,onClick:h().func,onKeyDown:h().func,selected:h().bool,slug:Nt(h().node),tabIndex:h().number,title:h().string,value:Nt(h().oneOfType([h().string,h().number]))};const Mo=(0,g.forwardRef)(({tabIndex:e=0,className:t,children:n,decorator:r,expanded:o=!1,tileMaxHeight:a=0,tilePadding:i=0,onClick:l,onKeyUp:s,tileCollapsedIconText:c="Interact to expand Tile",tileExpandedIconText:u="Interact to collapse Tile",tileCollapsedLabel:d,tileExpandedLabel:f,light:m,slug:h,hasRoundedCorners:b,...y},w)=>{const[E,C]=(0,g.useState)(0),[$,_]=(0,g.useState)(0),[R,S]=(0,g.useState)(o),[A,O]=(0,g.useState)(!0),L=(0,g.useRef)(null),k=(0,g.useRef)(null),M=(0,g.useRef)(null),B=(0,g.useRef)(null),I=(0,g.useRef)(null),D=x([w,I]),P=T();(0,g.useEffect)(()=>{S(o)},[o]);const z=()=>{S(e=>!e)},H=e=>{e.target!==I.current&&e.target!==M.current&&Mt(e,[St,Ot])&&e.preventDefault()},F=v()(`${P}--tile`,`${P}--tile--expandable`,{[`${P}--tile--is-expanded`]:R,[`${P}--tile--light`]:m},t),V=v()(F,`${P}--tile--expandable--interactive`,{[`${P}--tile--slug`]:h,[`${P}--tile--slug-rounded`]:h&&b,[`${P}--tile--decorator`]:r,[`${P}--tile--decorator-rounded`]:r&&b}),j=v()(`${P}--tile__chevron`,`${P}--tile__chevron--interactive`),q=g.Children.toArray(n);N(()=>{if(!I.current||!L.current)return;const e=window.getComputedStyle(I.current),t=parseInt(e.getPropertyValue("padding-top"),10)||0,n=parseInt(e.getPropertyValue("padding-bottom"),10)||0;_(t+n),C(L.current.scrollHeight)},[]),N(()=>{if(!L.current||!k.current)return;const e=Boolean(Wt(L.current))||Boolean(Ut(L.current))||Boolean(Wt(k.current))||Boolean(Ut(k.current))||Boolean(h||r);O(e)},[h,r,n]),N(()=>{if(!I.current)return;if(R)return void(I.current.style.maxHeight="");const e=E||L.current?.scrollHeight||0,t=a>0?a:e,n=i>0?i:$;I.current.style.maxHeight=`${t+n}px`},[R,a,i,E,$]),(0,g.useEffect)(()=>{if(!L.current)return;const e=new ResizeObserver(()=>{L.current&&C(L.current.scrollHeight)});return e.observe(L.current),()=>e.disconnect()},[]);const W=qt(A?"expandable-tile-interactive":"expandable-tile"),U=h??r,Z=Or(U,Ar)?(0,g.cloneElement)(U,{size:"xs"}):U;return A?g.createElement("div",p({ref:D,className:V},y),g.createElement("div",{ref:B},h?Z:r?g.createElement("div",{className:`${P}--tile--inner-decorator`},Z):"",g.createElement("div",{ref:L,className:`${P}--tile-content`},q[0]),g.createElement("button",{type:"button","aria-expanded":R,"aria-controls":W,onKeyUp:qn([s,H]),onClick:qn([l,z]),"aria-label":R?u:c,ref:M,className:j},Ao||(Ao=g.createElement(un.yQ,null))),g.createElement("div",{ref:k,className:`${P}--tile-content`,id:W},q[1]))):g.createElement("button",p({type:"button",ref:D,className:F,"aria-controls":W,"aria-expanded":R,title:R?u:c},y,{onKeyUp:qn([s,H]),onClick:qn([l,z]),tabIndex:e}),g.createElement("div",{ref:B},g.createElement("div",{ref:L,className:`${P}--tile-content`},q[0]),g.createElement("div",{className:`${P}--tile__chevron`},g.createElement("span",null,R?f:d),Oo||(Oo=g.createElement(un.yQ,null))),g.createElement("div",{ref:k,id:W,className:`${P}--tile-content`},q[1])))});Mo.propTypes={children:h().node,className:h().string,decorator:h().node,expanded:h().bool,hasRoundedCorners:h().bool,id:h().string,light:Nt(h().bool),onClick:h().func,onKeyUp:h().func,slug:Nt(h().node),tabIndex:h().number,tileCollapsedIconText:h().string,tileCollapsedLabel:h().string,tileExpandedIconText:h().string,tileExpandedLabel:h().string},Mo.displayName="ExpandableTile";const Bo=g.forwardRef(({children:e},t)=>{const n=T();return g.createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)});Bo.propTypes={children:h().node},Bo.displayName="TileAboveTheFoldContent";const Io=g.forwardRef(({children:e},t)=>{const n=T();return g.createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)});Io.propTypes={children:h().node},Io.displayName="TileBelowTheFoldContent";const Do=({className:e,children:t,...n})=>{const r=T(),o=v()(`${r}--header`,e);return g.createElement("header",p({},n,{className:o}),t)};Do.propTypes={"aria-label":h().string,"aria-labelledby":h().string,className:h().string};const Po=(e=>{const t=Object.keys(e),n=e=>(t,n,r,...o)=>e(t,n,r,...o);return t.reduce((t,r)=>({...t,[r]:n(e[r])}),{})})({"aria-label":h().string,"aria-labelledby":h().string}),zo=g.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:a=!0,tooltipDropShadow:i,isActive:l,tooltipAlignment:s,...c},u)=>{const d=T(),f=v()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:l}),m={"aria-label":e,"aria-labelledby":t};return g.createElement(tn,p({},c,m,{className:f,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:s,tooltipDropShadow:i,tooltipHighContrast:a,ref:u}),n)});zo.propTypes={...Po,children:h().node.isRequired,className:h().string,isActive:h().bool,onClick:h().func,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool},zo.displayName="HeaderGlobalAction";const Ho=(({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=T(),a=v()("function"==typeof t?t(o):t,e);return g.createElement(n,{...r,className:a||void 0})}return r.displayName=e,r.propTypes={className:h().string},r})({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var Fo,Vo,jo=n(810);function qo({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:a,isCollapsible:i,...l}){const s=T(),c=v()({..."string"==typeof n&&{[n]:!!n},[`${s}--header__action`]:!0,[`${s}--header__menu-trigger`]:!0,[`${s}--header__action--active`]:a,[`${s}--header__menu-toggle`]:!0,[`${s}--header__menu-toggle__hidden`]:!i}),u=r||Fo||(Fo=g.createElement(jo.W1,{size:20})),d=o||Vo||(Vo=g.createElement(un.bm,{size:20}));return g.createElement("button",p({},l,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),a?d:u)}qo.propTypes={...Po,className:h().string,isActive:h().bool,isCollapsible:h().bool,onClick:h().func};const Wo=(0,g.forwardRef)((e,t)=>{const{element:n,as:r,isSideNavExpanded:o,...a}=e,i=r??n??"a";return g.createElement(i,p({ref:t},a))}),Uo={as:h().elementType,element:Nt(h().elementType),isSideNavExpanded:h().bool};function Zo({children:e,className:t,prefix:n="IBM",...r}){const o=T(),a=v()(`${o}--header__name`,t);return g.createElement(Wo,p({},r,{className:a}),n&&g.createElement(g.Fragment,null,g.createElement("span",{className:`${o}--header__name--prefix`},n)," "),g.createElement("span",null,e))}Wo.displayName="Link",Wo.propTypes=Uo,Zo.propTypes={...Uo,children:h().node.isRequired,className:h().string,href:h().string,prefix:h().string};const Ko=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu","SideNavLink"];function Go(e){return"".concat(e/16,"rem")}Go(320),Go(672),Go(16);var Yo={width:Go(1056),columns:16,margin:Go(16)};Go(1312),Go(16),Go(1584),Go(24);function Xo(e){return Go(8*e)}Xo(.25),Xo(.5),Xo(1),Xo(1.5),Xo(2),Xo(3),Xo(4),Xo(5),Xo(6),Xo(8),Xo(10),Xo(12),Xo(20),Xo(2),Xo(3),Xo(4),Xo(6),Xo(8),Xo(12),Xo(20),Xo(3),Xo(4),Xo(5),Xo(6),Xo(8),Go(24),Go(32),Go(40),Go(48),Go(64),Go(80);const Qo=(0,g.createContext)({}),Jo=(0,g.forwardRef)((e,t)=>{const{expanded:n,defaultExpanded:r=!1,isChildOfHeader:o=!0,"aria-label":a,"aria-labelledby":i,children:l,onToggle:s,className:c,href:u,isFixedNav:d=!1,isRail:f,isPersistent:m=!0,addFocusListeners:h=!0,addMouseListeners:b=!0,onOverlayClick:y,onSideNavBlur:w,enterDelayMs:E=100,...N}=e,C=T(),{current:$}=(0,g.useRef)(void 0!==n),[R,S]=It(r),[A,O]=It(r),L=$?n:R,k=(0,g.useRef)(null),M=x([k,t]),B=(e,t=!L)=>{$||S(t,E),s&&s(e,t),($||f)&&O(t,E)},I={"aria-label":a,"aria-labelledby":i},D=v()(c,{[`${C}--side-nav`]:!0,[`${C}--side-nav--expanded`]:L||A,[`${C}--side-nav--collapsed`]:!L&&d,[`${C}--side-nav--rail`]:f,[`${C}--side-nav--ux`]:o,[`${C}--side-nav--hidden`]:!m}),P=v()({[`${C}--side-nav__overlay`]:!0,[`${C}--side-nav__overlay-active`]:L||A});let z=l;z=g.Children.map(l,e=>{const t=$&&A||L;if((0,g.isValidElement)(e)){const n=e;return g.cloneElement(n,{...Ko.includes(n.type?.displayName??n.type?.name)?{isSideNavExpanded:t}:{}})}return e});const H={};h&&(H.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&f&&B(e,!0)},H.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||B(e,!1),e.currentTarget.contains(e.relatedTarget)||!L||d||w&&w()},H.onKeyDown=e=>{Bt(e,At)&&(B(e,!1),u&&(window.location.href=u))}),b&&f&&(H.onMouseEnter=()=>{B(!0,!0)},H.onMouseLeave=()=>{S(!1),O(!1),B(!1,!1)},H.onClick=()=>{S(!0),O(!0),B(!0,!0)}),_("keydown",e=>{const t=document.activeElement;Bt(e,Rt)&&L&&!d&&k.current&&t?.classList.contains(`${C}--header__menu-toggle`)&&!t.closest("nav")&&k.current.focus()});const F=((e,t=!1)=>{const[n,r]=(0,g.useState)(t);return(0,g.useEffect)(()=>{const t=e=>{r(e.matches)},n=window.matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>{n.removeEventListener("change",t)}},[e]),n})(`(min-width: ${Yo.width})`),V=!f&&!(L||F);return(0,g.useEffect)(()=>{const e=k.current;e&&(V?e.setAttribute("inert",""):e.removeAttribute("inert"))},[V]),g.createElement(Qo.Provider,{value:{isRail:f}},d?null:g.createElement("div",{className:P,onClick:y}),g.createElement("nav",p({tabIndex:-1,ref:M,className:`${C}--side-nav__navigation ${D}`},I,H,N),z))});Jo.displayName="SideNav",Jo.propTypes={...Po,addFocusListeners:h().bool,addMouseListeners:h().bool,className:h().string,defaultExpanded:h().bool,enterDelayMs:h().number,expanded:h().bool,href:h().string,isChildOfHeader:h().bool,isFixedNav:h().bool,isPersistent:h().bool,isRail:h().bool,onOverlayClick:h().func,onSideNavBlur:h().func,onToggle:h().func}},159(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},2996(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),c="/*# ".concat(s," */"),u=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}},2694(e,t,n){"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2799(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103;n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},4363(e,t,n){"use strict";e.exports=n(2799)},1020(e,t,n){"use strict";var r=n(6072);Symbol.for("react.element"),Symbol.for("react.fragment"),Object.prototype.hasOwnProperty,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},4848(e,t,n){"use strict";n(1020)},5072(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=s}}},7659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}}]);