@openmrs/esm-ward-app 9.2.1-pre.6635 → 9.2.1-pre.6637

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +10 -10
  2. package/dist/1058.js +2 -0
  3. package/dist/1058.js.map +1 -0
  4. package/dist/1369.js +1 -1
  5. package/dist/2557.js +1 -1
  6. package/dist/2728.js +1 -1
  7. package/dist/283.js +1 -1
  8. package/dist/3365.js +1 -1
  9. package/dist/3365.js.map +1 -1
  10. package/dist/3737.js +1 -1
  11. package/dist/380.js +1 -0
  12. package/dist/380.js.map +1 -0
  13. package/dist/4300.js +1 -1
  14. package/dist/5734.js +1 -1
  15. package/dist/5734.js.map +1 -1
  16. package/dist/5885.js +1 -1
  17. package/dist/5885.js.map +1 -1
  18. package/dist/6012.js +1 -1
  19. package/dist/6012.js.map +1 -1
  20. package/dist/7179.js +1 -1
  21. package/dist/7524.js +1 -1
  22. package/dist/7661.js +1 -1
  23. package/dist/7661.js.map +1 -1
  24. package/dist/9045.js +1 -1
  25. package/dist/9294.js +1 -1
  26. package/dist/9775.js +1 -1
  27. package/dist/main.js +1 -1
  28. package/dist/main.js.map +1 -1
  29. package/dist/openmrs-esm-ward-app.js +1 -1
  30. package/dist/openmrs-esm-ward-app.js.buildmanifest.json +92 -67
  31. package/dist/openmrs-esm-ward-app.js.map +1 -1
  32. package/dist/routes.json +1 -1
  33. package/package.json +1 -1
  34. package/src/types/index.ts +6 -0
  35. package/src/ward-patient-card/ward-patient-card.component.tsx +8 -1
  36. package/src/ward-view/materal-ward/maternal-ward-patient-card.component.tsx +7 -2
  37. package/src/ward-workspace/patient-transfer-bed-swap/patient-admit-or-transfer-request-form.component.tsx +57 -9
  38. package/src/ward-workspace/patient-transfer-bed-swap/patient-bed-swap-form.component.tsx +76 -28
  39. package/src/ward-workspace/patient-transfer-bed-swap/patient-transfer-swap.scss +6 -0
  40. package/src/ward-workspace/patient-transfer-bed-swap/patient-transfer-swap.workspace.tsx +4 -0
  41. package/translations/en.json +2 -0
  42. package/dist/4739.js +0 -2
  43. package/dist/4739.js.map +0 -1
  44. /package/dist/{4739.js.LICENSE.txt → 1058.js.LICENSE.txt} +0 -0
@@ -1,7 +1,7 @@
1
1
  assets by path *.js 3.5 MiB
2
- assets by chunk 2.56 MiB (id hint: vendors)
2
+ assets by chunk 2.57 MiB (id hint: vendors)
3
3
  asset 1369.js 1.88 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
4
- asset 4739.js 186 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
4
+ asset 1058.js 190 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
5
5
  asset 9294.js 134 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
6
  asset 3144.js 130 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
7
7
  asset 2913.js 83.1 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
@@ -9,16 +9,16 @@ assets by path *.js 3.5 MiB
9
9
  asset 717.js 47 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
10
10
  asset 2537.js 20.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
11
11
  + 4 assets
12
- + 70 assets
13
- assets by path *.json 43.4 KiB
14
- asset openmrs-esm-ward-app.js.buildmanifest.json 39.4 KiB [emitted]
12
+ + 71 assets
13
+ assets by path *.json 43.9 KiB
14
+ asset openmrs-esm-ward-app.js.buildmanifest.json 39.9 KiB [emitted]
15
15
  asset routes.json 4.03 KiB [emitted] [from: src/routes.json] [copied]
16
16
  orphan modules 9.54 MiB [orphan] 3105 modules
17
17
  runtime modules 42.1 KiB 28 modules
18
- built modules 8.19 MiB (javascript) 294 bytes (share-init) 294 bytes (consume-shared) [built]
19
- modules by path ../../node_modules/ 7.21 MiB 603 modules
20
- modules by path ./ 1000 KiB
21
- javascript modules 780 KiB 83 modules
18
+ built modules 8.22 MiB (javascript) 294 bytes (share-init) 294 bytes (consume-shared) [built]
19
+ modules by path ../../node_modules/ 7.23 MiB 603 modules
20
+ modules by path ./ 1020 KiB
21
+ javascript modules 794 KiB 83 modules
22
22
  optional modules 221 KiB [optional] 39 modules
23
23
  provide-module modules 294 bytes
24
24
  modules by path provide shared module (default) swr/ 126 bytes 3 modules
@@ -33,4 +33,4 @@ This can impact web performance.
33
33
  Assets:
34
34
  1369.js (1.88 MiB)
35
35
 
36
- webpack 5.99.9 compiled with 1 warning in 121430 ms
36
+ webpack 5.99.9 compiled with 1 warning in 145107 ms
package/dist/1058.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 1058.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[1058],{524:(e,t,n)=>{e.exports=n(90320)},1740:e=>{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)}}}},17502:(e,t,n)=>{function r(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}n.d(t,{A:()=>r})},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},30977:e=>{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")}},31085:(e,t,n)=>{n(73335)},47120:(e,t)=>{Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},50174:(e,t,n)=>{n.d(t,{kZS:()=>ka,$nd:()=>fn,Te$:()=>pn,Sc0:()=>zn,$QX:()=>Hn,VPZ:()=>ga,KXP:()=>Pr,Tps:()=>Kr,msM:()=>da,lVW:()=>fa,lRv:()=>pa,Y9Y:()=>Ci,V8d:()=>Ti,wdv:()=>Ii,dJ2:()=>ki,bCw:()=>Li,K0:()=>un,OuH:()=>Qn,jeF:()=>Ra,Wdr:()=>Un,cwr:()=>Lr,jlY:()=>er,rQ0:()=>Gn,aaP:()=>Aa,zWQ:()=>Ba,Psq:()=>Ma,fI1:()=>ma,vji:()=>Fa,f8J:()=>Hi,ryE:()=>qa,PuA:()=>Ka,rrI:()=>Za,BJc:()=>ei,dOG:()=>ti,vwO:()=>ai,fs1:()=>ii,FAs:()=>wi,Gff:()=>Kt,yvu:()=>Wt,pNg:()=>Ut,m_M:()=>an});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_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_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}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableDialogElement=!1,r.enableV12DynamicFloatingStyles=!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:"Enable the experimental tile improved contrast styles\n",enabled:r.enableExperimentalTileContrast},{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:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:r.enableExperimentalFocusWrapWithoutSentinels},{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}];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){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,s(r.key),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,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}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)||c(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 s(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 c(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 u=function(){return function(e,t){return t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),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])})},[{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=c(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=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)}}])}(),d=new u(void 0),f=0;f<o.length;f++){var p=o[f];d.add(p.name,p.enabled)}function m(){return m=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},m.apply(null,arguments)}!function(){d.merge.apply(d,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var h=n(39067),g=n.n(h),b=n(90380),y=n.t(b,2),v=n.n(b),w=n(53373),E=n.n(w);const x={};function N(e,t,n){return function(r,o,a,...i){if(void 0!==r[o]){if(!x[a]||!x[a][o]){x[a]={...x[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,a,...i)}}}const $="undefined"!=typeof window?b.useLayoutEffect:b.useEffect,_=e=>(0,b.useCallback)(t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},[e]),C=v().createContext("cds");function T(){return v().useContext(C)}const I=(e,t)=>{const n=(0,b.useRef)(null);(0,b.useEffect)(()=>{n.current=t},[t]),(0,b.useEffect)(()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[e])},O={"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=>O[e]??e;var R="undefined"!=typeof document?b.useLayoutEffect:function(){};const k={...y}.useInsertionEffect||(e=>e());function A(){return"undefined"!=typeof window}function M(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!A()&&(e instanceof Node||e instanceof D(e).Node)}function P(e){return!!A()&&(e instanceof Element||e instanceof D(e).Element)}function z(e){return!!A()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function H(e){return!(!A()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}n(31085);const V=new Set(["inline","contents"]);function F(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!V.has(o)}const j=new Set(["table","td","th"]);function q(e){return j.has(M(e))}const K=[":popover-open",":modal"];function W(e){return K.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"],G=["paint","layout","strict","content"];function Y(e){const t=X(),n=P(e)?ee(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))||G.some(e=>(n.contain||"").includes(e))}function X(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Q=new Set(["html","body","#document"]);function J(e){return Q.has(M(e))}function ee(e){return D(e).getComputedStyle(e)}function te(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ne(e){if("html"===M(e))return e;const t=e.assignedSlot||e.parentNode||H(e)&&e.host||L(e);return H(t)?t.host:t}function re(e){const t=ne(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&F(t)?t:re(t)}function oe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=re(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=D(o);if(a){const e=ae(i);return t.concat(i,i.visualViewport||[],F(o)?o:[],e&&n?oe(e):[])}return t.concat(o,oe(o,[],n))}function ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ie=n(43144);const le=["top","right","bottom","left"],se=Math.min,ce=Math.max,ue=Math.round,de=Math.floor,fe=e=>({x:e,y:e}),pe={left:"right",right:"left",bottom:"top",top:"bottom"},me={start:"end",end:"start"};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 xe(e){return e.replace(/start|end/g,e=>me[e])}const Ne=["left","right"],$e=["right","left"],_e=["top","bottom"],Ce=["bottom","top"];function Te(e){return e.replace(/left|right|bottom|top/g,e=>pe[e])}function Ie(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 Oe(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 Se(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 Re(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=Ie(p),h=l[f?"floating"===d?"reference":"floating":d],g=Oe(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=Oe(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 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 Ae(e){return le.some(t=>e[t]>=0)}const Me=new Set(["left","top"]);function De(e){const t=ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=z(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ue(n)!==a||ue(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Le(e){return P(e)?e:e.contextElement}function Be(e){const t=Le(e);if(!z(t))return fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=De(t);let i=(a?ue(n.width):n.width)/r,l=(a?ue(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Pe=fe(0);function ze(e){const t=D(e);return X()&&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=Le(e);let i=fe(1);t&&(r?P(r)&&(i=Be(r)):i=Be(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==D(e))&&t}(a,n,r)?ze(a):fe(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=D(a),t=r&&P(r)?D(r):r;let n=e,o=ae(n);for(;o&&r&&t!==n;){const e=Be(o),t=o.getBoundingClientRect(),r=ee(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=D(o),o=ae(n)}}return Oe({width:u,height:d,x:s,y:c})}function Ve(e,t){const n=te(e).scrollLeft;return t?t.left+n:He(L(e)).left+n}function Fe(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ve(e,r)),y:r.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=D(e),r=L(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=X();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=L(e),n=te(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ve(e);const l=-n.scrollTop;return"rtl"===ee(r).direction&&(i+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(L(e));else if(P(t))r=function(e,t){const n=He(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=z(e)?Be(e):fe(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 Oe(r)}function Ke(e,t){const n=ne(e);return!(n===t||!P(n)||J(n))&&("fixed"===ee(n).position||Ke(n,t))}function We(e,t,n){const r=z(t),o=L(t),a="fixed"===n,i=He(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=fe(0);function c(){s.x=Ve(o)}if(r||!r&&!a)if(("body"!==M(t)||F(o))&&(l=te(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?fe(0):Fe(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 Ue(e){return"static"===ee(e).position}function Ze(e,t){if(!z(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function Ge(e,t){const n=D(e);if(W(e))return n;if(!z(e)){let t=ne(e);for(;t&&!J(t);){if(P(t)&&!Ue(t))return t;t=ne(t)}return n}let r=Ze(e,t);for(;r&&q(r)&&Ue(r);)r=Ze(r,t);return r&&J(r)&&Ue(r)&&!Y(r)?n:r||function(e){let t=ne(e);for(;z(t)&&!J(t);){if(Y(t))return t;if(W(t))return null;t=ne(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=L(r),l=!!t&&W(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},c=fe(1);const u=fe(0),d=z(r);if((d||!d&&!a)&&(("body"!==M(r)||F(i))&&(s=te(r)),z(r))){const e=He(r);c=Be(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?fe(0):Fe(i,s,!0);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:L,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=oe(e,[],!1).filter(e=>P(e)&&"body"!==M(e)),o=null;const a="fixed"===ee(e).position;let i=a?ne(e):e;for(;P(i)&&!J(i);){const t=ee(i),n=Y(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&je.has(o.position)||F(i)&&!n&&Ke(e,i))?r=r.filter(e=>e!==i):o=t,i=ne(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=ce(r.top,e.top),e.right=se(r.right,e.right),e.bottom=se(r.bottom,e.bottom),e.left=ce(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:We(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}=De(e);return{width:t,height:n}},getScale:Be,isElement:P,isRTL:function(e){return"rtl"===ee(e).direction}};function Xe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qe(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=Le(e),u=o||a?[...c?oe(c):[],...oe(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=L(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:-de(d)+"px "+-de(o.clientWidth-(u+f))+"px "+-de(o.clientHeight-(d+p))+"px "+-de(u)+"px",threshold:ce(0,se(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)}}const Je=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}}}}},et=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?[Te(l)]:function(e){const t=Te(e);return[xe(e),t,xe(t)]}(l)),x="none"!==m;!f&&x&&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?$e:Ne:t?Ne:$e;case"left":case"right":return t?_e:Ce;default:return[]}}(ge(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(xe)))),a}(l,h,m,w));const N=[l,...E],$=await Re(t,g),_=[];let C=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&_.push($[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=Te(i)),[i,Te(i)]}(o,i,w);_.push($[e[0]],$[e[1]])}if(C=[...C,{placement:o,overflows:_}],!_.every(e=>e<=0)){var T,I;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=N[e];if(t&&("alignment"!==d||y===we(t)||C.every(e=>e.overflows[0]>0&&we(e.placement)===y)))return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=C.filter(e=>{if(x){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:O[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},tt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:s=()=>{},...c}=he(e,t),u=await Re(t,c),d=ge(o),f=be(o),p="y"===we(o),{width:m,height:h}=a.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=f===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=d,g="end"===f?"top":"bottom");const y=h-u.top-u.bottom,v=m-u.left-u.right,w=se(h-u[g],y),E=se(m-u[b],v),x=!t.middlewareData.shift;let N=w,$=E;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&($=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=y),x&&!f){const e=ce(u.left,0),t=ce(u.right,0),n=ce(u.top,0),r=ce(u.bottom,0);p?$=m-2*(0!==e||0!==t?e+t:ce(u.left,u.right)):N=h-2*(0!==n||0!==r?n+r:ce(u.top,u.bottom))}await s({...t,availableWidth:$,availableHeight:N});const _=await i.getDimensions(l.floating);return m!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}},nt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=he(e,t);switch(r){case"referenceHidden":{const e=ke(await Re(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ae(e)}}}case"escaped":{const e=ke(await Re(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ae(e)}}}default:return{}}}}},rt=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=Ie(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],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let N=x?x[v]:0;N&&await(null==i.isElement?void 0:i.isElement(x))||(N=l.floating[v]||a.floating[m]);const $=w/2-E/2,_=N/2-h[m]/2-1,C=se(d[b],_),T=se(d[y],_),I=C,O=N-h[m]-T,S=N/2-h[m]/2+$,R=ce(I,se(S,O)),k=!s.arrow&&null!=be(o)&&S!==R&&a.reference[m]/2-(S<I?C:T)-h[m]/2<0,A=k?S<I?S-I:S-O:0;return{[p]:f[p]+A,data:{[p]:R,centerOffset:S-R-A,...k&&{alignmentOffset:A}},reset:k}}}),ot=(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}=Se(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:a,fn:h}=l[n],{x:g,y:b,data:y,reset:v}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,p={...p,[a]:{...p[a],...y}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Se(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var at="undefined"!=typeof document?b.useLayoutEffect:function(){};function it(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(!it(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||it(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function lt(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function st(e,t){const n=lt(e);return Math.round(t*n)/n}function ct(e){const t=b.useRef(e);return at(()=>{t.current=e}),t}const ut=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?rt({element:n.current,padding:r}).fn(t):{}:n?rt({element:n,padding:r}).fn(t):{};var o}}),dt=(e,t)=>({...et(e),options:[e,t]}),ft=(e,t)=>({...nt(e),options:[e,t]}),pt=(e,t)=>({...ut(e),options:[e,t]}),mt={...y};let ht=!1,gt=0;const bt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gt++,yt=mt.useId||function(){const[e,t]=b.useState(()=>ht?bt():void 0);return R(()=>{null==e&&t(bt())},[]),b.useEffect(()=>{ht=!0},[]),e};const vt=b.createContext(null),wt=b.createContext(null);function Et(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=yt(),a=b.useRef({}),[i]=b.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=b.useContext(vt))?void 0:s.id)||null);var s;const[c,u]=b.useState(r.reference),d=function(e){const t=b.useRef(()=>{});return k(()=>{t.current=e}),b.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=b.useMemo(()=>({setPositionReference:u}),[]),p=b.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return b.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:i,floatingId:o,refs:f}),[t,d,p,i,o,f])}function xt(e){void 0===e&&(e={});const{nodeId:t}=e,n=Et({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=b.useState(null),[l,s]=b.useState(null),c=(null==o?void 0:o.domReference)||a,u=b.useRef(null),d=b.useContext(wt);R(()=>{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]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);it(f,r)||p(r);const[m,h]=b.useState(null),[g,y]=b.useState(null),v=b.useCallback(e=>{e!==N.current&&(N.current=e,h(e))},[]),w=b.useCallback(e=>{e!==$.current&&($.current=e,y(e))},[]),E=a||m,x=i||g,N=b.useRef(null),$=b.useRef(null),_=b.useRef(u),C=null!=s,T=ct(s),I=ct(o),O=ct(c),S=b.useCallback(()=>{if(!N.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};I.current&&(e.platform=I.current),ot(N.current,$.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};R.current&&!it(_.current,t)&&(_.current=t,ie.flushSync(()=>{d(t)}))})},[f,t,n,I,O]);at(()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const R=b.useRef(!1);at(()=>(R.current=!0,()=>{R.current=!1}),[]),at(()=>{if(E&&(N.current=E),x&&($.current=x),E&&x){if(T.current)return T.current(E,x,S);S()}},[E,x,S,T,C]);const k=b.useMemo(()=>({reference:N,floating:$,setReference:v,setFloating:w}),[v,w]),A=b.useMemo(()=>({reference:E,floating:x}),[E,x]),M=b.useMemo(()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=st(A.floating,u.x),r=st(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...lt(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,A.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:S,refs:k,elements:A,floatingStyles:M}),[u,S,k,A,M])}({...e,elements:{...o,...l&&{reference:l}}}),p=b.useCallback(e=>{const t=P(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),m=b.useCallback(e=>{(P(e)||null===e)&&(u.current=e,i(e)),(P(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!P(e))&&f.refs.setReference(e)},[f.refs]),h=b.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),g=b.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=b.useMemo(()=>({...f,...r,refs:h,elements:g,nodeId:t}),[f,h,g,t,r]);return R(()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),b.useMemo(()=>({...f,context:y,refs:h,elements:g}),[f,h,g,y])}const Nt=new Map,$t=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;Nt.has(r)||Nt.set(r,new Set);const a=Nt.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...o)},_t=(0,b.createContext)(d);function Ct(e){return(0,b.useContext)(_t).enabled(e)}g().node,$t(g().objectOf(g().bool)),g().bool,g().bool,g().bool,g().bool,g().bool,g().bool,g().bool;const Tt={key:"Tab",which:9,keyCode:9,code:"Tab"},It={key:"Enter",which:13,keyCode:13,code:"Enter"},Ot={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},St={key:" ",which:32,keyCode:32,code:"Space"},Rt={key:"ArrowLeft",which:37,keyCode:37,code:"ArrowLeft"},kt={key:"ArrowRight",which:39,keyCode:39,code:"ArrowRight"},At=(e,t)=>{for(let n=0;n<t.length;n++)if(Mt(e,t[n]))return!0;return!1},Mt=(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,Dt=!("undefined"==typeof window||!window.document||!window.document.createElement),Lt=v().createContext(null);function Bt(){return v().useContext(Lt)}const Pt={...v()},zt=(()=>{let e=0;return()=>++e})(),Ht=Dt?b.useLayoutEffect:b.useEffect;let Vt=!1;const Ft=Pt.useId?function(e="id"){const t=Bt();return`${t?`${t}-`:""}${e}-${Pt.useId()}`}:function(e="id"){const t=Bt(),[n,r]=(0,b.useState)(()=>Vt?`${t?`${t}-`:""}${e}-${zt()}`:null);return Ht(()=>{null===n&&r(`${t?`${t}-`:""}${e}-${zt()}`)},[zt]),(0,b.useEffect)(()=>{!1===Vt&&(Vt=!0)},[]),n};g().elementType,g().node,g().string;const jt=v().createContext(void 0);function qt(){return(0,b.useContext)(jt)}function Kt({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:a=!1,...i}){const l=(0,b.useRef)(null),[s,c]=(0,b.useState)(a),u=T(),d=Ft(),f=E()(`${u}--toggletip`,r,{[`${u}--toggletip--open`]:s,[`${u}--autoalign`]:n}),p={toggle:()=>{c(!s)},close:()=>{c(!1)}},h={buttonProps:{"aria-expanded":s,"aria-controls":d,"aria-describedby":s?d:void 0,onClick:p.toggle},contentProps:{id:d},onClick:{onClick:p.toggle}};return I("blur",()=>{s&&p.close()}),I("click",({target:e})=>{s&&e instanceof Node&&!l.current?.contains(e)&&p.close()}),v().createElement(jt.Provider,{value:h},v().createElement(Yt,m({align:e,as:t,caret:!0,className:f,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&Mt(e,Ot)){p.close();const e=l.current?.children[0];e instanceof HTMLButtonElement&&e.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||p.close()},ref:l,autoAlign:n},i),o))}Kt.propTypes={align:g().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"]),alignmentAxisOffset:g().number,as:g().elementType,autoAlign:g().bool,children:g().node,className:g().string,defaultOpen:g().bool};const Wt=v().forwardRef(function({children:e,className:t,label:n="Show information",as:r,...o},a){const i=qt(),l=T(),s=E()(`${l}--toggletip-button`,t),c=r??"button";return"button"!==c?v().createElement(c,m({},i?.onClick,{className:s},o),e):v().createElement("button",m({},i?.buttonProps,{"aria-label":n,type:"button",className:s,ref:a},o),e)});Wt.propTypes={children:g().node,className:g().string,label:g().string},Wt.displayName="ToggletipButton";const Ut=v().forwardRef(function({children:e,className:t},n){const r=qt(),o=T();return v().createElement(Qt,m({className:t},r?.contentProps,{ref:n}),v().createElement("div",{className:`${o}--toggletip-content`},e))});function Zt({children:e,className:t}){const n=T(),r=E()(`${n}--toggletip-actions`,t);return v().createElement("div",{className:r},e)}Ut.propTypes={children:g().node,className:g().string},Ut.displayName="ToggletipContent",Zt.propTypes={children:g().node,className:g().string};const Gt=v().createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),Yt=v().forwardRef(function({isTabTip:e,align:t=(e?"bottom-start":"bottom"),as:n="span",autoAlign:r=!1,autoAlignBoundary:o,caret:a=!e,className:i,children:l,dropShadow:s=!0,highContrast:c=!1,onRequestClose:u,open:d,alignmentAxisOffset:f,...p},h){const g=T(),y=(0,b.useRef)(null),w=(0,b.useRef)(null),x=(0,b.useRef)(null),N=Ct("enable-v12-dynamic-floating-styles")||r;let C=S(t);I("blur",()=>{d&&u?.()}),I("click",({target:e})=>{d&&e instanceof Node&&!x.current?.contains(e)&&u?.()});const O=v().Children.toArray(l).some(e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label"))?7:6,R=(0,b.useRef)({offset:10,caretHeight:O});$(()=>{if(a&&x.current){const e=window.getComputedStyle(x.current,null),t=e.getPropertyValue("--cds-popover-offset"),n=e.getPropertyValue("--cds-popover-caret-height");t&&(R.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(R.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}});const{refs:k,floatingStyles:A,placement:M,middlewareData:D}=xt(N?{placement:C,strategy:"fixed",middleware:[(L=e?0:{alignmentAxis:f,mainAxis:R?.current?.offset},{...Je(L),options:[L,undefined]}),r&&dt({fallbackPlacements:e?C.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:C.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}),pt({element:w}),r&&ft()],whileElementsMounted:Qe}:{});var L;const B=(0,b.useMemo)(()=>({floating:y,setFloating:k.setFloating,caretRef:w,autoAlign:r}),[k.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(C)||(C="bottom-start")),(0,b.useEffect)(()=>{if(N){const e={...A,visibility:D.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach(t=>{k.floating.current&&(k.floating.current.style[t]=e[t])}),a&&D&&D.arrow&&w?.current){const{x:e,y:t}=D.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[M.split("-")[0]];w.current.style.left=null!=e?`${e}px`:"",w.current.style.top=null!=t?`${t}px`:"",w.current.style.right="",w.current.style.bottom="",n&&(w.current.style[n]=-R?.current?.caretHeight+"px")}}},[A,k.floating,N,D,M,a]);const P=_([h,x]),z=r&&M!==C?M:C,H=E()({[`${g}--popover-container`]:!0,[`${g}--popover--caret`]:a,[`${g}--popover--drop-shadow`]:s,[`${g}--popover--high-contrast`]:c,[`${g}--popover--open`]:d,[`${g}--popover--auto-align ${g}--autoalign`]:N,[`${g}--popover--${z}`]:!0,[`${g}--popover--tab-tip`]:e},i),V=v().Children.map(l,t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,a=N&&r&&["ToggletipButton"].includes(r),i=N&&!["ToggletipContent","PopoverContent"].includes(r);if(v().isValidElement(n)&&(o||a||i)){const t=n?.props?.className,r=(n?.props).ref,o=E()(`${g}--popover--tab-tip__button`,t);return v().cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(N&&n?.type!==Qt||N&&n?.type===Wt)&&k.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n}),F=n;return v().createElement(Gt.Provider,{value:B},v().createElement(F,m({},p,{className:H,ref:P}),N||e?V:l))});function Xt({className:e,children:t,...n},r){const o=T(),{setFloating:a,caretRef:i,autoAlign:l}=v().useContext(Gt),s=_([a,r]),c=Ct("enable-v12-dynamic-floating-styles")||l;return v().createElement("span",m({},n,{className:`${o}--popover`}),v().createElement("span",{className:E()(`${o}--popover-content`,e),ref:s},t,c&&v().createElement("span",{className:E()({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:i})),!c&&v().createElement("span",{className:E()({[`${o}--popover-caret`]:!0}),ref:i}))}Yt.propTypes={align:N(g().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),as:g().oneOfType([g().string,g().elementType]),autoAlign:g().bool,autoAlignBoundary:g().oneOfType([g().oneOf(["clippingAncestors"]),g().elementType,g().arrayOf(g().elementType),g().exact({x:g().number.isRequired,y:g().number.isRequired,width:g().number.isRequired,height:g().number.isRequired})]),caret:g().bool,children:g().node,className:g().string,dropShadow:g().bool,highContrast:g().bool,isTabTip:g().bool,onRequestClose:g().func,open:g().bool.isRequired};const Qt=v().forwardRef(Xt);function Jt(e){const[t,n]=(0,b.useState)(e),r=(0,b.useRef)(null),o=(0,b.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,b.useEffect)(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}Qt.displayName="PopoverContent",Qt.propTypes={children:g().node,className:g().string};const en=(e,t="component should have no interactive child nodes")=>{},tn=e=>{if(!e||!e.childNodes)return null;if(rn(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=tn(t);if(e)return e}return null},nn=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=nn(t);if(e)return e}return null},rn=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}},on=new Set(["mouseup","touchend","touchcancel"]),an=v().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},p)=>{const h=(0,b.useRef)(null),[g,y]=Jt(s),[w,x]=(0,b.useState)(!1),[N,_]=(0,b.useState)(!1),[C,I]=(0,b.useState)(!1),O=Ft("tooltip"),S=T(),R=v().Children.only(r),{"aria-label":k,"aria-labelledby":A,"aria-describedby":M}=R?.props??{},D=!!o,L="string"==typeof k&&""!==k.trim(),B={onFocus:()=>!N&&y(!0),onBlur:()=>{y(!1),_(!1)},onClick:()=>c&&y(!1),onMouseEnter:z,onMouseLeave:H,onMouseDown:function(){_(!0),V()},onMouseMove:function(e){1===e.buttons?x(!0):x(!1)},onTouchStart:V,"aria-labelledby":L?void 0:D?A??O:void 0,"aria-describedby":L?M:M??(D||A?void 0:O)},P=(0,b.useCallback)(e=>{g&&Mt(e,Ot)&&(e.stopPropagation(),y(!1)),g&&c&&(Mt(e,It)||Mt(e,St))&&y(!1)},[c,g,y]);function z(){f?.onMouseEnter||(I(!0),y(!0,i))}function H(){I(!1),w||y(!1,l)}function V(){x(!0)}$(()=>{if(g)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){Mt(e,Ot)&&P(e)}},[g,P]);const F=(0,b.useCallback)(()=>{x(!1),C||y(!1,l)},[C,l,y]);return en(h,"The Tooltip component must have no interactive content rendered by the`label` or `description` prop"),(0,b.useEffect)(()=>(w&&on.forEach(e=>{document.addEventListener(e,F)}),()=>{on.forEach(e=>{document.removeEventListener(e,F)})}),[w,F]),v().createElement(Yt,m({as:e,ref:p},f,{align:t,className:E()(`${S}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:P,onMouseLeave:H,open:g}),v().createElement("div",{className:`${S}--tooltip-trigger__wrapper`},void 0!==R?v().cloneElement(R,{...B,...function(e){const t=Object.keys(B).filter(e=>e.startsWith("on")),n={};return t.forEach(t=>{n[t]=n=>{B[t](n),e?.[t]&&e?.[t](n)}}),n}(R.props)}):null),v().createElement(Qt,{"aria-hidden":g?"false":"true",className:`${S}--tooltip-content`,id:O,onMouseEnter:z,role:"tooltip"},o||a))});an.propTypes={align:g().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:g().node,className:g().string,closeOnActivation:g().bool,defaultOpen:g().bool,description:g().node,dropShadow:g().bool,enterDelayMs:g().number,highContrast:g().bool,label:g().node,leaveDelayMs:g().number};const ln=v().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:g,size:b,tabIndex:y,type:w="button",...x},N){const $=T(),_={tabIndex:y,className:E()(n,{[`${$}--btn`]:!0,[`${$}--btn--sm`]:"sm"===b&&!s,[`${$}--btn--md`]:"md"===b&&!s,[`${$}--btn--lg`]:"lg"===b&&!s,[`${$}--btn--xl`]:"xl"===b,[`${$}--btn--2xl`]:"2xl"===b,[`${$}--layout--size-${b}`]:b,[`${$}--btn--${u}`]:u,[`${$}--btn--disabled`]:o,[`${$}--btn--expressive`]:s,[`${$}--btn--icon-only`]:a,[`${$}--btn--selected`]:a&&c&&"ghost"===u}),ref:N},C=g?v().createElement(g,{"aria-label":l,className:`${$}--btn__icon`,"aria-hidden":"true"}):null,I=["danger","danger--tertiary","danger--ghost"];let O="button";const S=Ft("danger-description"),{"aria-pressed":R,"aria-describedby":k}=x;let A={disabled:o,type:w,"aria-describedby":I.includes(u)?S:k||void 0,"aria-pressed":R??(a&&"ghost"===u?c:void 0)};const M={href:i};let D=null;return I.includes(u)&&(D=v().createElement("span",{id:S,className:`${$}--visually-hidden`},r)),e?(O=e,A={...A,...M}):i&&!o&&(O="a",A=M),v().createElement(O,{onMouseEnter:m,onMouseLeave:h,onFocus:p,onBlur:d,onClick:f,...x,..._,...A},D,t,C)}),sn=v().forwardRef(function({className:e,count:t,...n},r){const o=T(),a=E()(`${o}--badge-indicator`,e,{[`${o}--badge-indicator--count`]:t}),i=t&&t>999?"999+":t;return v().createElement("div",m({className:a,ref:r},n),i)});sn.propTypes={className:g().string,count:g().number,id:g().string};const cn=["primary","secondary","ghost","tertiary"],un=v().forwardRef(function({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:p=100,wrapperClasses:h,size:g,isSelected:b,...y},w){const x=T(),N=E()(h,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});!n||"ghost"===d&&"lg"===g||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const $=Ft("badge-indicator");return v().createElement(an,{align:e,autoAlign:t,closeOnActivation:a,className:N,defaultOpen:i,dropShadow:s,enterDelayMs:c,highContrast:u,label:f,leaveDelayMs:p},v().createElement(ln,m({},y,{disabled:l,kind:d,ref:w,size:g,isSelected:b,hasIconOnly:!0,className:o,"aria-describedby":y["aria-describedby"]||n&&$}),r,!l&&void 0!==n&&v().createElement(sn,{id:$,count:n>0?n:void 0})))});un.propTypes={align:N(g().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:g().bool,badgeCount:g().number,href:g().string,children:g().node,className:g().string,closeOnActivation:g().bool,defaultOpen:g().bool,dropShadow:g().bool,disabled:g().bool,enterDelayMs:g().number,isSelected:g().bool,highContrast:g().bool,kind:g().oneOf(cn),label:g().node.isRequired,leaveDelayMs:g().number,rel:g().string,size:g().oneOf(["sm","md","lg"]),target:g().string,wrapperClasses:g().string};const dn=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],fn=v().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:p,onMouseLeave:h,renderIcon:g,size:b,tooltipAlignment:y="center",tooltipPosition:w="top",...E}=e;!g||o||s||console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const x=g?v().createElement(g,null):null;if(function(e){return!0===e}(a)){let e;return"top"!==w&&"bottom"!==w||("center"===y&&(e=w),"end"===y&&(e=`${w}-end`),"start"===y&&(e=`${w}-start`)),"right"!==w&&"left"!==w||(e=w),v().createElement(un,m({},E,{ref:t,as:n,align:e,label:s,kind:c,size:b,highContrast:i,dropShadow:l,onMouseEnter:p,onMouseLeave:h,onFocus:f,onBlur:u,autoAlign:r,onClick:d,renderIcon:x?null:g}),x??o)}{const{tooltipAlignment:n,...r}=e;return v().createElement(ln,m({ref:t},r))}});fn.displayName="Button",fn.propTypes={as:g().oneOfType([g().func,g().string,g().elementType]),autoAlign:g().bool,children:g().node,className:g().string,dangerDescription:g().string,disabled:g().bool,hasIconOnly:g().bool,href:g().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:g().bool,isSelected:g().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?cn:dn;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:g().func,onClick:g().func,onFocus:g().func,onMouseEnter:g().func,onMouseLeave:g().func,rel:g().string,renderIcon:g().oneOfType([g().func,g().object]),role:g().string,size:g().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:g().number,target:g().string,tooltipAlignment:g().oneOf(["start","center","end"]),tooltipDropShadow:g().bool,tooltipHighContrast:g().bool,tooltipPosition:g().oneOf(["top","right","bottom","left"]),type:g().oneOf(["button","reset","submit"])};const pn=(0,b.forwardRef)((e,t)=>{const{children:n,className:r,stacked:o,...a}=e,i=T(),l=E()(r,`${i}--btn-set`,{[`${i}--btn-set--stacked`]:o});return v().createElement("div",m({},a,{className:l,ref:t}),n)});pn.displayName="ButtonSet",pn.propTypes={children:g().node,className:g().string,stacked:g().bool};var mn,hn,gn,bn,yn,vn,wn,En,xn,Nn,$n,_n=n(9247);const Cn=v().forwardRef(function({children:e,size:t=16,...n},r){return v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},mn||(mn=v().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"})),hn||(hn=v().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"})),gn||(gn=v().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)}),Tn=v().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},bn||(bn=v().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"})),yn||(yn=v().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?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},vn||(vn=v().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"})),wn||(wn=v().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?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},En||(En=v().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"})),xn||(xn=v().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):v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Nn||(Nn=v().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"})),$n||($n=v().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)}),In=()=>{};var On;const Sn=v().forwardRef(function({children:e,size:t=16,...n},r){return v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},On||(On=v().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)});var Rn;const kn=v().forwardRef(function({className:e,children:t,...n},r){const o=T(),a=v().Children.toArray(t).some(e=>{e.type}),i=E()(e,{[`${o}--ai-label-content`]:!0,[`${o}--ai-label-content--with-actions`]:a});return v().createElement(Ut,{className:i},t)});kn.displayName="AILabelContent",kn.propTypes={children:g().node,className:g().string};const An=v().forwardRef(function({className:e,children:t,...n},r){const o=T(),a=E()(e,{[`${o}--ai-label-actions`]:!0});return v().createElement(Zt,{className:a},t)});An.displayName="AILabelActions",An.propTypes={children:g().node,className:g().string};const Mn=v().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:p="xs",...h},g){const b=T(),y=Ft("AILabel"),w=E()(i,{[`${b}--ai-label`]:!0,[`${b}--ai-label--revert`]:c}),x=E()({[`${b}--ai-label__button`]:!0,[`${b}--ai-label__button--${p}`]:p,[`${b}--ai-label__button--${l}`]:l,[`${b}--ai-label__button--inline-with-content`]:"inline"===l&&(t||n)}),N=t||n?`${e} ${t||n}`:`${e} ${d||f}`,$=["xs","2xs","mini"].includes(p);return v().createElement("div",{className:w,ref:g,id:y},c?v().createElement(un,m({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},h),Rn||(Rn=v().createElement(Sn,null))):v().createElement(Kt,m({align:r,autoAlign:o,alignmentAxisOffset:$?-24:0},h),v().createElement(Wt,{className:x,label:"inline"===l?"":N},v().createElement("span",{className:`${b}--ai-label__text`},e),"inline"===l&&(t||n)&&v().createElement("span",{className:`${b}--ai-label__additional-text`},t||n)),a))});Mn.displayName="AILabel",Mn.propTypes={AILabelContent:g().node,aiText:g().string,aiTextLabel:$t(g().string),align:N(g().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),"aria-label":g().string,autoAlign:g().bool,children:g().node,className:g().string,kind:g().oneOf(["default","inline"]),onRevertClick:g().func,revertActive:g().bool,revertLabel:g().string,size:g().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:$t(g().string),textLabel:g().string};const Dn=(e,t)=>(0,b.isValidElement)(e)&&e.type===t,Ln=(0,b.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Bn=v().forwardRef(({as:e,children:t,dir:n="auto",...r},o)=>{const a=(0,b.useContext)(Ln),i={},l=e??"span",s={...a};if(a){const{direction:e,getTextDirection:r}=a;if(r&&r.current){const n=Pn(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 v().createElement(Ln.Provider,{value:s},v().createElement(l,m({ref:o},r,i),t))});Bn.propTypes={as:g().oneOfType([g().func,g().string,g().elementType]),children:g().node.isRequired,dir:g().oneOf(["ltr","rtl","auto"])};const Pn=e=>{if("string"==typeof e)return e;const t=b.Children.map(e,e=>"string"==typeof e?e:null)?.filter(e=>null!==e);return 1===t?.length?t[0]:t},zn=v().forwardRef(({className:e,decorator:t,helperText:n,id:r,labelText:o,onChange:a=In,onClick:i,indeterminate:l=!1,invalid:s,invalidText:c,hideLabel:u,readOnly:d,title:f="",warn:p,warnText:h,slug:g,...y},w)=>{const x=T(),N=!d&&!s&&p,$=!s&&!p,_=Ft(),C=n?`checkbox-helper-text-${_}`:void 0,I=n?v().createElement("div",{id:C,className:`${x}--form__helper-text`},n):null,O=E()(`${x}--form-item`,`${x}--checkbox-wrapper`,e,{[`${x}--checkbox-wrapper--readonly`]:d,[`${x}--checkbox-wrapper--invalid`]:!d&&s,[`${x}--checkbox-wrapper--warning`]:N,[`${x}--checkbox-wrapper--slug`]:g,[`${x}--checkbox-wrapper--decorator`]:t}),S=E()(`${x}--checkbox-label-text`,{[`${x}--visually-hidden`]:u}),R=g??t,k=Dn(R,Mn)?(0,b.cloneElement)(R,{size:"inline"===R.props.kind?"md":"mini"}):null;return v().createElement("div",{className:O},v().createElement("input",m({},y,{type:"checkbox","data-invalid":!!s||void 0,onChange:e=>{!d&&a&&a(e,{checked:e.target.checked,id:r})},className:`${x}--checkbox`,id:r,ref:e=>{e&&(e.indeterminate=l??!1),"function"==typeof w?w(e):w&&"current"in w&&(w.current=e)},"aria-readonly":d,onClick:e=>{d&&e.preventDefault(),i&&i(e)}})),v().createElement("label",{htmlFor:r,className:`${x}--checkbox-label`,title:f},v().createElement(Bn,{className:S},o,g?k:t?v().createElement("div",{className:`${x}--checkbox-wrapper-inner--decorator`},k):"")),v().createElement("div",{className:`${x}--checkbox__validation-msg`},!d&&s&&v().createElement(v().Fragment,null,v().createElement(Tn,{className:`${x}--checkbox__invalid-icon`}),v().createElement("div",{className:`${x}--form-requirement`},c)),N&&v().createElement(v().Fragment,null,v().createElement(Cn,{className:`${x}--checkbox__invalid-icon ${x}--checkbox__invalid-icon--warning`}),v().createElement("div",{className:`${x}--form-requirement`},h))),$&&I)});zn.propTypes={checked:g().bool,className:g().string,decorator:g().node,defaultChecked:g().bool,disabled:g().bool,helperText:g().node,hideLabel:g().bool,id:g().string.isRequired,indeterminate:g().bool,invalid:g().bool,invalidText:g().node,labelText:g().node.isRequired,onChange:g().func,readOnly:g().bool,slug:$t(g().node),title:g().string,warn:g().bool,warnText:g().node},zn.displayName="Checkbox";const Hn=({children:e,className:t,decorator:n,helperText:r,invalid:o,invalidText:a,legendId:i,legendText:l,readOnly:s,warn:c,warnText:u,slug:d,orientation:f="vertical",...p})=>{const h=T(),g=!s&&!o&&c,y=!o&&!c,w=Ft(),x=r?`checkbox-group-helper-text-${w}`:void 0,N=r?v().createElement("div",{id:x,className:`${h}--form__helper-text`},r):null,$=E()(`${h}--checkbox-group`,t,{[`${h}--checkbox-group--${f}`]:"horizontal"===f,[`${h}--checkbox-group--readonly`]:s,[`${h}--checkbox-group--invalid`]:!s&&o,[`${h}--checkbox-group--warning`]:g,[`${h}--checkbox-group--slug`]:d,[`${h}--checkbox-group--decorator`]:n}),_=d??n,C=Dn(_,Mn)?(0,b.cloneElement)(_,{size:"mini",kind:"default"}):null;return v().createElement("fieldset",m({className:$,"data-invalid":!!o||void 0,"aria-labelledby":p["aria-labelledby"]||i,"aria-readonly":s,"aria-describedby":o||c||!N?void 0:x},p),v().createElement("legend",{className:`${h}--label`,id:i||p["aria-labelledby"]},l,d?C:n?v().createElement("div",{className:`${h}--checkbox-group-inner--decorator`},C):""),e,v().createElement("div",{className:`${h}--checkbox-group__validation-msg`},!s&&o&&v().createElement(v().Fragment,null,v().createElement(Tn,{className:`${h}--checkbox__invalid-icon`}),v().createElement("div",{className:`${h}--form-requirement`},a)),g&&v().createElement(v().Fragment,null,v().createElement(Cn,{className:`${h}--checkbox__invalid-icon ${h}--checkbox__invalid-icon--warning`}),v().createElement("div",{className:`${h}--form-requirement`},u))),y&&N)};Hn.propTypes={children:g().node,className:g().string,decorator:g().node,helperText:g().node,invalid:g().bool,invalidText:g().node,legendId:g().node,legendText:g().node.isRequired,orientation:g().oneOf(["horizontal","vertical"]),readOnly:g().bool,slug:$t(g().node),warn:g().bool,warnText:g().node};var Vn=n(524);const Fn=v().createContext(1),jn=["one","two","three"],qn=[0,1,2],Kn=qn[0],Wn=qn[qn.length-1],Un=v().forwardRef((e,t)=>{const{as:n,className:r,children:o,level:a,withBackground:i=!1,...l}=e,s=v().useContext(Fn),c=a??s,u=T(),d=E()(`${u}--layer-${jn[c]}`,{[`${u}--layer__with-background`]:i},r),f=(h=c+1,g=Kn,b=Wn,Math.min(b,Math.max(g,h))),p=n||"div";var h,g,b;return v().createElement(Fn.Provider,{value:f},v().createElement(p,m({ref:t},l,{className:d}),o))});Un.displayName="Layer",Un.propTypes={as:g().oneOfType([g().func,g().string,g().elementType]),children:g().node,className:g().string,level:g().oneOf([0,1,2]),withBackground:g().bool};var Zn=n(60529);const Gn=v().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 p=T(),h=E()(`${p}--modal-header`,n),g=E()(`${p}--modal-header__label ${p}--type-delta`,s),b=E()(`${p}--modal-header__heading ${p}--type-beta`,u),y=E()(`${p}--modal-close`,r),w=E()(`${p}--modal-close__icon`,o);return v().createElement("div",m({className:h},d,{ref:f}),l&&v().createElement("h2",{className:g},l),c&&v().createElement("h2",{className:b},c),t,v().createElement("div",{className:`${p}--modal-close-button`},v().createElement(un,{className:y,label:i,onClick:function(t){a?.(t),e?.(t)},"aria-label":i,align:"left"},v().createElement(Zn.bm,{size:20,"aria-hidden":"true",tabIndex:"-1",className:w}))))});Gn.propTypes={buttonOnClick:g().func,children:g().node,className:g().string,closeClassName:g().string,closeIconClassName:g().string,closeModal:g().func,iconDescription:g().string,label:g().node,labelClassName:g().string,title:g().node,titleClassName:g().string};var Yn=n(68622);function Xn({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...a}){const i=T(),l=E()(t,{[`${i}--loading`]:!0,[`${i}--loading--small`]:r,[`${i}--loading--stop`]:!e}),s=E()({[`${i}--loading-overlay`]:!0,[`${i}--loading-overlay--stop`]:!e}),c=v().createElement("div",m({},a,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:l}),v().createElement("svg",{className:`${i}--loading__svg`,viewBox:"0 0 100 100"},v().createElement("title",null,o),r?v().createElement("circle",{className:`${i}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,v().createElement("circle",{className:`${i}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?v().createElement("div",{className:s},c):c}Xn.propTypes={active:g().bool,className:g().string,description:g().string,id:$t(g().string),small:g().bool,withOverlay:g().bool};const Qn=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:a=1500,...i})=>{const l=T(),s=E()(`${l}--inline-loading`,e),c=(0,b.useRef)(null);(0,b.useEffect)(()=>("finished"===t&&(c.current=setTimeout(()=>{o&&o()},a)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[t,o,a]);const u=r&&v().createElement("div",{className:`${l}--inline-loading__text`},r),d=(()=>{let e=n||t;return"error"===t?v().createElement(Yn.x,{className:`${l}--inline-loading--error`},v().createElement("title",null,e)):"finished"===t?v().createElement(Zn._j,{className:`${l}--inline-loading__checkmark-container`},v().createElement("title",null,e)):"active"===t?(n||(e="loading"),v().createElement(Xn,{small:!0,description:e,withOverlay:!1,active:"active"===t})):"inactive"===t?(n||(e="not loading"),v().createElement("title",{className:`${l}--inline-loading__inactive-status`},e)):void 0})(),f=d&&v().createElement("div",{className:`${l}--inline-loading__animation`},d);return v().createElement("div",m({className:s},i,{"aria-live":i["aria-live"]??"assertive"}),f,u)};function Jn({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?v().createElement(v().Fragment,null,e.map(({buttonText:e,onClick:t},r)=>v().createElement(fn,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||i},e))):t?v().createElement(fn,{disabled:a,className:n,onClick:i,kind:"secondary"},t):null}Qn.propTypes={className:g().string,description:g().node,iconDescription:g().string,onSuccess:g().func,status:g().oneOf(["inactive","active","finished","error"]),successDelay:g().number},Jn.propTypes={closeModal:g().func,disabled:g().bool,onRequestClose:g().func,secondaryButtonText:g().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:g().node,onClick:g().func};e[t].forEach(e=>{g().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:g().string};const er=v().forwardRef(function({children:e,className:t,closeModal:n=In,danger:r,inputref:o,onRequestClose:a=In,onRequestSubmit:i=In,primaryButtonDisabled:l,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:f,loadingStatus:p="inactive",loadingDescription:h,loadingIconDescription:g,onLoadingSuccess:b=In,...y},w){const x=T(),N=E()(`${x}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${x}--modal-footer--three-button`:null),$=E()(c,"inactive"!==p?`${x}--btn--loading`:null),_="inactive"!==p,C={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:f,onRequestClose:a,disabled:_};return v().createElement(pn,m({className:N},y,{ref:w,"aria-busy":_}),v().createElement(Jn,C),s&&v().createElement(fn,{onClick:i,className:$,disabled:_||l,kind:r?"danger":"primary",ref:o},"inactive"===p?s:v().createElement(Qn,{status:p,description:h,iconDescription:g,className:`${x}--inline-loading--btn`,onSuccess:b})),e)});er.propTypes={children:g().node,className:g().string,closeModal:g().func,danger:g().bool,inputref:g().oneOfType([g().func,g().shape({current:g().any})]),loadingDescription:g().string,loadingIconDescription:g().string,loadingStatus:g().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:g().func,onRequestClose:g().func,onRequestSubmit:g().func,primaryButtonDisabled:g().bool,primaryButtonText:g().string,primaryClassName:g().string,secondaryButtonText:g().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:g().node,onClick:g().func};e[t].forEach(e=>{g().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:g().string};var tr=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):Object(e)===e&&(e.current=t)})};const nr=(e,t,n)=>{e.classList.toggle(t,n)};var rr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),or="undefined"==typeof Element,ar=or?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ir=!or&&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},lr=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},sr=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!lr(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=e(l.length?l:i.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:i,candidates:s})}else{ar.call(i,rr)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!lr(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},cr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ur=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))&&!cr(e)?0:e.tabIndex},dr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fr=function(e){return"INPUT"===e.tagName},pr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},mr=function(e,t){return!(t.disabled||lr(t)||function(e){return fr(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ar.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ar.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return pr(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,l=ir(e);if(i&&!i.shadowRoot&&!0===r(i))return pr(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&&ir(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=ir(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!!ar.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},hr=function(e,t){return!(function(e){return function(e){return fr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ir(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)||ur(t)<0||!mr(e,t))},gr=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},br=function e(t){var n=[],r=[];return t.forEach(function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,l=function(e,t){var n=ur(e);return n<0&&t&&!cr(e)?0:n}(i,a),s=a?e(t.candidates):i;0===l?a?n.push.apply(n,s):n.push(i):r.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:s})}),r.sort(dr).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)};const yr="\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",vr="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,wr="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,Er=(e,t=[])=>e instanceof Element&&"function"==typeof e.closest&&[".cds--overflow-menu-options",".cds--tooltip",".flatpickr-calendar",...t].some(t=>!!e.closest(t)),xr=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:a})=>{if(e&&r&&o&&!e.contains(r)&&!Er(r,a)){const a=o.compareDocumentPosition(r);if(r===t||a&vr){const t=Array.from(e.querySelectorAll(yr)).reverse().find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}else if(r===n||a&wr){const t=Array.from(e.querySelectorAll(yr)).find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}}},Nr=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(i=e,s=(l=l||{}).getShadowRoot?sr([i],l.includeContainer,{filter:hr.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:gr}):function(e,t,n){if(lr(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(rr));return t&&ar.call(e,rr)&&r.unshift(e),r.filter(n)}(i,l.includeContainer,hr.bind(null,l)),br(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())},$r=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}};function _r(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}const Cr=(0,b.createContext)({}),Tr=v().forwardRef(({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=In,onClick:a=In,onClose:i=In,onRequestClose:l=In,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:f,...p},h)=>{const g=T(),y=Ft(),w=`${g}--dialog-header__heading--${y}`,x=`${g}--dialog-header__label--${y}`,N=(0,b.useRef)(null),$=h??N;(0,b.useEffect)(()=>{$.current&&(s?r?$.current.showModal():$.current.show():$.current.close())},[r,s]),(0,b.useEffect)(()=>{if(!s&&n){const e=setTimeout(()=>{n.current?.focus()});return()=>{clearTimeout(e)}}},[s,n]);const _=E()(`${g}--dialog-container`),C={dialogId:y,titleId:w,subtitleId:x,isOpen:s};return(0,b.useEffect)(()=>{if($.current&&s&&!u&&!d){const e=$.current.querySelector(`.${g}--dialog-header__heading`);e&&e.id&&$.current.setAttribute("aria-labelledby",e.id)}},[s,u,d,g]),v().createElement(Cr.Provider,{value:C},v().createElement("dialog",m({},p,{className:E()(`${g}--dialog`,{[`${g}--dialog--modal`]:r},t),ref:$,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===$.current&&l(e)}(e),a(e)},onClose:i,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||w,"aria-describedby":f}),v().createElement("div",{className:_},e)))});Tr.displayName="Dialog",Tr.propTypes={children:g().node,className:g().string,focusAfterCloseRef:g().oneOfType([g().func,g().shape({current:g().any})]),modal:g().bool,onRequestClose:g().func,open:g().bool,role:g().oneOf(["dialog","alertdialog"]),"aria-label":g().string,"aria-labelledby":g().string,ariaDescribedBy:g().string};const Ir=v().forwardRef(({children:e,...t},n)=>{const r=T();return v().createElement("div",m({className:`${r}--dialog__header`,ref:n},t),e)});Ir.displayName="DialogHeader",Ir.propTypes={children:g().node};const Or=v().forwardRef(({children:e,...t},n)=>{const r=T();return v().createElement("div",m({className:`${r}--dialog__header-controls`,ref:n},t),e)});Or.displayName="DialogControls",Or.propTypes={children:g().node};const Sr=v().forwardRef(({onClick:e,...t},n)=>{const r=T();return v().createElement(un,m({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),v().createElement(Zn.bm,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))});Sr.displayName="DialogCloseButton",Sr.propTypes={onClick:g().func};const Rr=v().forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=T(),{titleId:i}=(0,b.useContext)(Cr),l=n||i;return v().createElement(Bn,m({as:"h2",id:l,className:E()(`${a}--dialog-header__heading`,t),ref:o},r),e)});Rr.displayName="DialogTitle",Rr.propTypes={children:g().node,className:g().string,id:g().string};const kr=v().forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=T(),{subtitleId:i}=(0,b.useContext)(Cr),l=n||i;return v().createElement(Bn,m({as:"h2",id:l,className:E()(`${a}--dialog-header__label`,t),ref:o},r),e)});kr.displayName="DialogSubtitle",kr.propTypes={children:g().node,className:g().string,id:g().string};const Ar=v().forwardRef(({children:e,className:t,hasScrollingContent:n,...r},o)=>{const a=T(),i=(0,b.useRef)(null),[l,s]=(0,b.useState)(!1),c=`${a}--dialog-body--${Ft()}`;$(()=>{i.current&&s(i.current.scrollHeight>i.current.clientHeight);const e=_r(function(){i.current&&s(i.current.scrollHeight>i.current.clientHeight)},200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]);const u=E()(`${a}--dialog-content`,{[`${a}--dialog-scroll-content`]:n||l},t),d=n||l?{tabIndex:0,role:"region"}:{};return v().createElement(Un,m({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),i.current=e},id:c,className:u},d,r),e)});Ar.displayName="DialogBody",Ar.propTypes={children:g().node,className:g().string,hasScrollingContent:g().bool};const Mr=v().forwardRef(({children:e,className:t,onRequestClose:n=In,onSecondarySubmit:r,onRequestSubmit:o=In,primaryButtonText:a="Save",primaryButtonDisabled:i=!1,secondaryButtonText:l="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:f=In,danger:p=!1,...h},g)=>{const y=T(),w=(0,b.useRef)(null),{isOpen:x}=(0,b.useContext)(Cr),[N,$]=(0,b.useState)(null);(0,b.useEffect)(()=>{if(p&&N){const e=requestAnimationFrame(()=>{N.focus()});return()=>cancelAnimationFrame(e)}},[p,N,x]);const _=E()(`${y}--dialog-footer`,t,{[`${y}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),C="inactive"!==c,I=E()({[`${y}--btn--loading`]:"inactive"!==c}),O=r||n;return e?v().createElement(pn,m({className:_,ref:g},h),e):v().createElement(pn,m({className:_,"aria-busy":C,ref:g},h),Array.isArray(s)&&s.length<=2?s.map(({buttonText:e,onClick:t},n)=>v().createElement(fn,{key:`${e}-${n}`,autoFocus:p,kind:"secondary",ref:0===n&&p?$:void 0,onClick:t},e)):l&&v().createElement(fn,{ref:p?$:void 0,disabled:C,kind:"secondary",autoFocus:p,onClick:O},l),v().createElement(fn,{className:I,kind:p?"danger":"primary",disabled:C||i,onClick:o,ref:w},"inactive"===c?a:v().createElement(Qn,{status:c,description:u,iconDescription:d,className:`${y}--inline-loading--btn`,onSuccess:f})))});Mr.displayName="DialogFooter",Mr.propTypes={children:g().node,className:g().string,onRequestClose:g().func,onSecondarySubmit:g().func,onRequestSubmit:g().func,primaryButtonText:g().node,primaryButtonDisabled:g().bool,secondaryButtonText:g().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:g().node,onClick:g().func};e[t].forEach(e=>{g().checkPropTypes(r,e,t,n)})}return null},danger:g().bool,loadingStatus:g().oneOf(["inactive","active","finished","error"]),loadingDescription:g().string,loadingIconDescription:g().string,onLoadingSuccess:g().func};const Dr=Tr;Dr.Root=Tr,Dr.Root.displayName="Dialog.Root",Dr.Header=Ir,Dr.Header.displayName="Dialog.Header",Dr.Controls=Or,Dr.Controls.displayName="Dialog.Controls",Dr.CloseButton=Sr,Dr.CloseButton.displayName="Dialog.CloseButton",Dr.Title=Rr,Dr.Title.displayName="Dialog.Title",Dr.Subtitle=kr,Dr.Subtitle.displayName="Dialog.Subtitle",Dr.Body=Ar,Dr.Body.displayName="Dialog.Body",Dr.Footer=Mr,Dr.Footer.displayName="Dialog.Footer";const Lr=v().forwardRef(function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},a){const i=T(),l=(0,b.useRef)(null),[s,c]=(0,b.useState)(!1),u=E()({[`${i}--modal-content`]:!0,[`${i}--modal-content--with-form`]:n,[`${i}--modal-scroll-content`]:r||s},e);$(()=>{l.current&&c(l.current.scrollHeight>l.current.clientHeight);const e=_r(function(){l.current&&c(l.current.scrollHeight>l.current.clientHeight)},200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]);const d=r||s?{tabIndex:0,role:"region"}:{};return v().createElement(Un,m({className:u},d,o,{ref:tr(l,a)}),t)});var Br;Lr.propTypes={"aria-label":(Br=g().string,function(e,t,n,...r){return Br(e,t,n,...r)}),children:g().node,className:g().string,hasForm:g().bool,hasScrollingContent:g().bool};const Pr=v().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:p,size:h,launcherButtonRef:g,slug:y,...w},x){const N=T(),[$,_]=(0,b.useState)(!!u),[C,I]=(0,b.useState)(!!u),O=(0,b.useRef)(null),S=(0,b.useRef)(null),R=(0,b.useRef)(null),k=(0,b.useRef)(null),A=(0,b.useRef)(null),M=Ct("enable-dialog-element"),D=Ct("enable-experimental-focus-wrap-without-sentinels");function L(e){s&&!1===s(e)||_(!1)}(0,b.useEffect)(()=>{M||u===C||(_(!!u),I(!!u),nr(document.body,`${N}--body--with-modal-open`,!!u))},[u,C,N]),(0,b.useEffect)(()=>{if(!M)return()=>{nr(document.body,`${N}--body--with-modal-open`,!1)}},[]);const B=E()(`${N}--modal`,{"is-visible":$,[`${N}--modal--danger`]:a,[`${N}--modal--slug`]:y,[`${N}--modal--decorator`]:i},r),P=E()(`${N}--modal-container`,h&&`${N}--modal-container--${h}`,l&&`${N}--modal-container--full-width`,o);let z;const H=v().Children.toArray(n).map(e=>{switch(!0){case(0,Vn.isElement)(e)&&e.type===v().createElement(Gn).type:{const t=e;return z=t.props.label,v().cloneElement(t,{closeModal:L})}case(0,Vn.isElement)(e)&&e.type===v().createElement(er).type:{const t=e;return v().cloneElement(t,{closeModal:L,inputref:S,danger:a})}default:return e}});(0,b.useEffect)(()=>{M||u||!g||setTimeout(()=>{g.current?.focus()})},[M,u,g]),(0,b.useEffect)(()=>{if(!M){const e=e=>{const t=e||O.current;return(t?t.querySelector(a?`.${N}--btn--secondary`:f):null)||S&&S.current};u&&$&&(t=>{const n=e(t),r=t.querySelector(`.${N}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(O.current)}},[u,f,$]);const V=y??i,F=Dn(V,Mn)?(0,b.cloneElement)(V,{size:"sm"}):null,j=M?v().createElement(Tr,{open:u,focusAfterCloseRef:g,modal:!0,className:P,"aria-label":t||z,"aria-labelledby":e},v().createElement("div",{ref:O,className:`${N}--modal-container-body`},y?F:i?v().createElement("div",{className:`${N}--modal--inner__decorator`},F):"",H)):v().createElement("div",{className:P,role:"dialog","aria-modal":"true","aria-label":t||z,"aria-labelledby":e},!D&&v().createElement("button",{type:"button",ref:R,className:`${N}--visually-hidden`},"Focus sentinel"),v().createElement("div",{ref:O,className:`${N}--modal-container-body`},y?F:i?v().createElement("div",{className:`${N}--modal--inner__decorator`},F):"",H),!D&&v().createElement("button",{type:"button",ref:k,className:`${N}--visually-hidden`},"Focus sentinel"));return v().createElement(Un,m({},w,{level:0,role:"presentation",ref:x,"aria-hidden":!u,onBlur:function({target:e,relatedTarget:t}){if(!M&&!D&&u&&t&&e&&O.current){const{current:n}=O,{current:r}=R,{current:o}=k;xr({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:p?.filter(Boolean)})}const n=document.querySelector(`.${N}--modal-content`);if(!(n&&n.classList.contains(`${N}--modal-scroll-content`)&&t&&n.contains(t)))return;const r=n.children[n.children.length-1],o=n.scrollHeight-r.offsetTop-r.clientHeight;for(let e of n.children)if(e.contains(t)){const t=n.clientHeight-e.offsetTop+n.scrollTop-e.clientHeight;t<o&&(n.scrollTop=n.scrollTop+(o-t));break}},onClick:$r([w?.onClick,function(e){const{target:t}=e,n=A.current;e.stopPropagation(),(b.Children.toArray(H).some(e=>Dn(e,er))?!0===d:!1!==d)&&t instanceof Node&&!Er(t,p)&&O.current&&!O.current.contains(t)&&!O.current.contains(n)&&L(e)}]),onMouseDown:$r([w?.onMouseDown,function(e){const t=e.target;A.current=t}]),onKeyDown:function(e){M||(e.stopPropagation(),Mt(e,Ot)&&L(e),D&&u&&Mt(e,Tt)&&O.current&&Nr({containerNode:O.current,currentActiveNode:e.target,event:e})),c?.(e)},className:B}),j)});Pr.propTypes={"aria-label":g().string,"aria-labelledby":g().string,children:g().node,className:g().string,containerClassName:g().string,danger:g().bool,decorator:g().node,isFullWidth:g().bool,launcherButtonRef:g().oneOfType([g().func,g().shape({current:g().any})]),onClose:g().func,onKeyDown:g().func,open:g().bool,preventCloseOnClickOutside:g().bool,selectorPrimaryFocus:g().string,selectorsFloatingMenus:g().arrayOf(g().string.isRequired),size:g().oneOf(["xs","sm","md","lg"]),slug:$t(g().node)};const zr=["xs","sm","md","lg","xl","2xl"],Hr=["condensed","normal"];v().forwardRef(function({as:e="div",children:t,className:n,density:r,size:o,...a},i){const l=T(),s=E()(n,`${l}--layout`,{[`${l}--layout--size-${o}`]:o&&zr.includes(o),[`${l}--layout--density-${r}`]:r&&Hr.includes(r)});return v().createElement(e,m({},a,{ref:i,className:s}),t)}).propTypes={as:g().oneOfType([g().func,g().string,g().elementType]),children:g().node,className:g().string,density:g().oneOf(Hr),size:g().oneOf(zr)};const Vr=v().forwardRef(function({as:e="div",children:t,className:n,density:r,size:o,...a},i){const l=T(),s=E()(n,Object.entries({size:o,density:r}).map(([e,t])=>({[`${l}--layout-constraint--${e}__default-${t?.default}`]:t?.default,[`${l}--layout-constraint--${e}__min-${t?.min}`]:t?.min,[`${l}--layout-constraint--${e}__max-${t?.max}`]:t?.max})));return v().createElement(e,m({},a,{ref:i,className:s}),t)});Vr.propTypes={as:g().oneOfType([g().func,g().string,g().elementType]),children:g().node,className:g().string,density:g().shape({min:g().oneOf(Hr),default:g().oneOf(Hr),max:g().oneOf(Hr)}),size:g().shape({min:g().oneOf(zr),default:g().oneOf(zr),max:g().oneOf(zr)})};const Fr=()=>{},jr=v().forwardRef(function(e,t){const{align:n,children:r,className:o,disabled:a,enterDelayMs:i,index:l,leaveDelayMs:s=0,name:c,onClick:u=Fr,onKeyDown:d=Fr,selected:f=!1,size:p,text:h,...g}=e,y=T(),[w,x]=(0,b.useState)(!1),N=()=>{x(!0)},$=()=>{x(!1)},_=E()(o,`${y}--content-switcher-btn`,{[`${y}--content-switcher--selected`]:f}),C=E()(`${y}--content-switcher-popover__wrapper`,{[`${y}--content-switcher-popover--selected`]:f,[`${y}--content-switcher-popover--disabled`]:a}),I={onClick:e=>{e.preventDefault(),u({index:l,name:c,text:h})},onKeyDown:e=>{const t=e.key||e.which;d({index:l,name:c,text:h,key:t})},className:_,disabled:a,align:n,enterDelayMs:i,leaveDelayMs:s,size:p};return v().createElement(un,m({label:h,type:"button",ref:t,role:"tab",tabIndex:f||w?0:-1,onMouseEnter:N,onMouseLeave:$,onFocus:N,onBlur:$,"aria-selected":f,"aria-label":h,wrapperClasses:C},g,I),r)});jr.displayName="IconSwitch",jr.propTypes={align:g().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:g().node,className:g().string,disabled:g().bool,enterDelayMs:g().number,index:g().number,leaveDelayMs:g().number,name:g().oneOfType([g().string,g().number]),onClick:g().func,onKeyDown:g().func,selected:g().bool,size:g().oneOf(["sm","md","lg"]),text:g().string};var qr=jr;const Kr=({children:e,className:t,light:n,lowContrast:r,selectedIndex:o=0,selectionMode:a="automatic",size:i,onChange:l=In,...s})=>{const c=(0,b.useContext)(C),[u,d]=(0,b.useState)(o),f=(0,b.useRef)(o),p=(0,b.useRef)([]),h=b.Children.toArray(e);(0,b.useEffect)(()=>{f.current!==o&&(d(o),f.current=o)},[o]);const g=e=>t=>{t&&(p.current[e]=t)},y=e=>{const t=p.current[e];t&&t.focus()},w=e=>{if(void 0===e.index)return;const{index:t}=e;if((e=>e&&"object"==typeof e&&"key"in e)(e)&&At(e,[kt,Rt])){const n=((e,t,n)=>Mt(e,kt)?(t+1)%n:Mt(e,Rt)?(t+n-1)%n:void 0)(e.key,t,h.length);if("number"!=typeof n)return;if(y(n),"manual"!==a){const t=h[n];d(n),(0,b.isValidElement)(t)&&l({...e,index:n,name:t.props.name,text:t.props.text})}}else u!==t&&(d(t),y(t),l(e))},x=b.Children.map(e,e=>(0,b.isValidElement)(e)?e.type===qr:null)?.every(e=>!0===e),N=E()(`${c}--content-switcher`,t,{[`${c}--content-switcher--light`]:n,[`${c}--content-switcher--${i}`]:i,[`${c}--layout--size-${i}`]:i,[`${c}--content-switcher--icon-only`]:x,[`${c}--content-switcher--low-contrast`]:r});return v().createElement(Vr,m({size:{default:"md",min:"sm",max:"lg"}},s,{className:N,role:"tablist",onChange:void 0}),e&&b.Children.map(e,(e,t)=>(0,b.cloneElement)(e,{index:t,onClick:$r([w,e.props.onClick]),onKeyDown:$r([w,e.props.onKeyDown]),selected:t===u,ref:g(t),size:i})))};Kr.displayName="ContentSwitcher",Kr.propTypes={children:g().node,className:g().string,light:$t(g().bool),lowContrast:g().bool,onChange:g().func.isRequired,selectedIndex:g().number,selectionMode:g().oneOf(["automatic","manual"]),size:g().oneOf(["sm","md","lg"])};var Wr=n(17502),Ur=n(89575);n(54828);const Zr=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Gr=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Yr=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Gr(n.overflowY,t)||Gr(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Xr=(e,t,n,r,o,a,i,l)=>a<e&&i>t||a>e&&i<t?0:a<=e&&l<=n||i>=t&&l>=n?a-e-r:i>t&&l<n||a<e&&l>n?i-t+o:0,Qr=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Jr=n(85608),eo=0;function to(){}function no(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function ro(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r(),n=setTimeout(function(){n=null,e.apply(void 0,a)},t)}return o.cancel=r,o}function oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function ao(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function io(e,t){return e&&t?Object.keys(e).reduce(function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n},{}):e}function lo(e,t,n,r,o){void 0===o&&(o=!1);var a=n.length;if(0===a)return-1;var i=a-1;("number"!=typeof e||e<0||e>i)&&(e=t>0?-1:i+1);var l=e+t;l<0?l=o?i:0:l>i&&(l=o?0:i);var s=so(l,t<0,n,r,o);return-1===s?e>=a?-1:e:s}function so(e,t,n,r,o){void 0===o&&(o=!1);var a=n.length;if(t){for(var i=e;i>=0;i--)if(!r(n[i],i))return i}else for(var l=e;l<a;l++)if(!r(n[l],l))return l;return o?so(t?a-1:0,t,n,r):-1}function co(e,t,n,r){return void 0===r&&(r=!0),n&&t.some(function(t){return t&&(no(t,e,n)||r&&no(t,n.document.activeElement,n))})}var uo=ro(function(e){fo(e).textContent=""},500);function fo(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var po={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var mo=ro(function(e,t){!function(e,t){e&&t&&(fo(t).textContent=e,uo(t))}(e,t)},200),ho="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?b.useLayoutEffect:b.useEffect,go="useId"in v()?function(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,a=e.toggleButtonId,i=e.inputId,l="downshift-"+v().useId();t||(t=l);var s=(0,b.useRef)({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:o||function(e){return t+"-item-"+e},toggleButtonId:a||t+"-toggle-button",inputId:i||t+"-input"});return s.current}:function(e){var t=e.id,n=void 0===t?"downshift-"+String(eo++):t,r=e.labelId,o=e.menuId,a=e.getItemId,i=e.toggleButtonId,l=e.inputId,s=(0,b.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:i||n+"-toggle-button",inputId:l||n+"-input"});return s.current};function bo(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function yo(e){var t=(0,b.useRef)(e);return t.current=e,t}function vo(e,t,n,r){var o=(0,b.useRef)(),a=(0,b.useRef)(),i=(0,b.useCallback)(function(t,n){a.current=n,t=io(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,Ur.A)({},n,{changes:r}))},[e]),l=(0,b.useReducer)(i,t,n),s=l[0],c=l[1],u=yo(t),d=(0,b.useCallback)(function(e){return c((0,Ur.A)({props:u.current},e))},[u]),f=a.current;return(0,b.useEffect)(function(){var e=io(o.current,null==f?void 0:f.props);f&&o.current&&!r(e,s)&&function(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach(function(r){!function(e,t,n,r){var o=t.props,a=t.type,i="on"+bo(e)+"Change";o[i]&&void 0!==r[e]&&r[e]!==n[e]&&o[i]((0,Ur.A)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange((0,Ur.A)({type:o},a))}(f,e,s),o.current=s},[s,f,r]),[s,d]}var wo={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){if(e){var n=((e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];const{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Zr(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;Zr(m)&&d(m);){if(m=Qr(m),m===f){p.push(m);break}null!=m&&m===document.body&&Yr(m)&&!Yr(document.documentElement)||null!=m&&Yr(m,u)&&p.push(m)}const h=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:w,top:E,right:x,bottom:N,left:$}=e.getBoundingClientRect(),{top:_,right:C,bottom:T,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===l||"nearest"===l?E-_:"end"===l?N+T:E+v/2-_+T,S="center"===s?$+w/2-I+C:"end"===s?x+C:$-I;const R=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:a,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===i&&E>=0&&$>=0&&N<=g&&x<=h&&(t===f&&!Yr(t)||E>=o&&N<=c&&$>=u&&x<=a))return R;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),_=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let I=0,k=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-_-T:0,D="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?O:"end"===l?O-g:"nearest"===l?Xr(y,y+g,g,_,T,y+O,y+O+v,v):O-g/2,k="start"===s?S:"center"===s?S-h/2:"end"===s?S-h:Xr(b,b+h,h,m,C,b+S,b+S+w,w),I=Math.max(0,I+y),k=Math.max(0,k+b);else{I="start"===l?O-o-_:"end"===l?O-c+T+M:"nearest"===l?Xr(o,c,n,_,T+M,O,O+v,v):O-(o+n/2)+M/2,k="start"===s?S-u-m:"center"===s?S-(u+r/2)+A/2:"end"===s?S-a+C+A:Xr(u,a,r,m,C+A,S,S+w,w);const{scrollLeft:e,scrollTop:i}=t;I=0===L?0:Math.max(0,Math.min(i+I/L,t.scrollHeight-n/L+M)),k=0===D?0:Math.max(0,Math.min(e+k/D,t.scrollWidth-r/D+A)),O+=i-I,S+=e-k}R.push({el:t,top:I,left:k})}return R})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}},environment:"undefined"==typeof window?void 0:window};function Eo(e,t,n){void 0===n&&(n=po);var r=e["default"+bo(t)];return void 0!==r?r:n[t]}function xo(e,t,n){void 0===n&&(n=po);var r=e[t];if(void 0!==r)return r;var o=e["initial"+bo(t)];return void 0!==o?o:Eo(e,t,n)}function No(e){var t=xo(e,"selectedItem"),n=xo(e,"isOpen"),r=function(e){var t=xo(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),o=xo(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(n){return e.itemToKey(n)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:o}}function $o(e,t,n){var r=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,i=e.isItemDisabled,l=e.itemToKey,s=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===o||c!==o||i(r[o],o)?void 0===a||i(r[a],a)?s?r.findIndex(function(e){return l(s)===l(e)}):n<0&&!i(r[r.length-1],r.length-1)?r.length-1:n>0&&!i(r[0],0)?0:-1:a:o}function _o(e,t,n,r){void 0===r&&(r={});var o,a=r.document,i=(o=v().useRef(!0),v().useEffect(function(){return o.current=!1,function(){o.current=!0}},[]),o.current);(0,b.useEffect)(function(){if(e&&!i&&a){var n=e(t);mo(n,a)}},n),(0,b.useEffect)(function(){return function(){var e,t;mo.cancel(),(t=null==(e=a)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}},[a])}var Co=to;function To(e,t,n){var r;void 0===n&&(n=!0);var o=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,Ur.A)({isOpen:!1,highlightedIndex:-1},o&&(0,Ur.A)({selectedItem:e.items[t],isOpen:Eo(e,"isOpen"),highlightedIndex:Eo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Io(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Oo(e){var t=Eo(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var So={environment:g().shape({addEventListener:g().func.isRequired,removeEventListener:g().func.isRequired,document:g().shape({createElement:g().func.isRequired,getElementById:g().func.isRequired,activeElement:g().any.isRequired,body:g().any.isRequired}).isRequired,Node:g().func.isRequired}),itemToString:g().func,itemToKey:g().func,stateReducer:g().func},Ro=(0,Ur.A)({},So,{getA11yStatusMessage:g().func,highlightedIndex:g().number,defaultHighlightedIndex:g().number,initialHighlightedIndex:g().number,isOpen:g().bool,defaultIsOpen:g().bool,initialIsOpen:g().bool,selectedItem:g().any,initialSelectedItem:g().any,defaultSelectedItem:g().any,id:g().string,labelId:g().string,menuId:g().string,getItemId:g().func,toggleButtonId:g().string,onSelectedItemChange:g().func,onHighlightedIndexChange:g().func,onStateChange:g().func,onIsOpenChange:g().func,scrollIntoView:g().func});(0,Jr.__assign)((0,Jr.__assign)({},Ro),{items:g().array.isRequired,isItemDisabled:g().func});var ko=(0,Jr.__assign)((0,Jr.__assign)({},wo),{isItemDisabled:function(){return!1}}),Ao=to,Mo=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:14,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:11,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDownHome:5,ToggleButtonKeyDownPageDown:10,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownSpaceButton:8});function Do(e,t){var n,r,o=t.type,a=t.props,i=t.altKey;switch(o){case 14:r={isOpen:Eo(a,"isOpen"),highlightedIndex:Oo(a),selectedItem:a.items[t.index]};break;case 3:var l=t.key,s=""+e.inputValue+l,c=function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,a=e.isItemDisabled,i=t.toLowerCase(),l=0;l<r.length;l++){var s=(l+n+(t.length<2?1:0))%r.length,c=r[s];if(void 0!==c&&o(c).toLowerCase().startsWith(i)&&!a(c,s))return s}return n}({keysSoFar:s,highlightedIndex:!e.isOpen&&e.selectedItem?a.items.findIndex(function(t){return a.itemToKey(t)===a.itemToKey(e.selectedItem)}):e.highlightedIndex,items:a.items,itemToString:a.itemToString,isItemDisabled:a.isItemDisabled});r={inputValue:s,highlightedIndex:c,isOpen:!0};break;case 1:r={highlightedIndex:e.isOpen?lo(e.highlightedIndex,1,a.items,a.isItemDisabled):i&&null==e.selectedItem?-1:$o(a,e,1),isOpen:!0};break;case 2:r=e.isOpen&&i?To(a,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?lo(e.highlightedIndex,-1,a.items,a.isItemDisabled):$o(a,e,-1),isOpen:!0};break;case 7:case 8:r=To(a,e.highlightedIndex,!1);break;case 5:r={highlightedIndex:so(0,!1,a.items,a.isItemDisabled),isOpen:!0};break;case 6:r={highlightedIndex:so(a.items.length-1,!0,a.items,a.isItemDisabled),isOpen:!0};break;case 9:r={highlightedIndex:lo(e.highlightedIndex,-10,a.items,a.isItemDisabled)};break;case 10:r={highlightedIndex:lo(e.highlightedIndex,10,a.items,a.isItemDisabled)};break;case 4:r={isOpen:!1,highlightedIndex:-1};break;case 11:r=(0,Ur.A)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&{selectedItem:a.items[e.highlightedIndex]});break;case 19:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,o=t.type,a=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:$o(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:$o(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Oo(a),isOpen:Eo(a,"isOpen"),selectedItem:Eo(a,"selectedItem"),inputValue:Eo(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,Ur.A)({},e,r)}(e,t,Mo)}return(0,Ur.A)({},e,r)}var Lo=["onClick"],Bo=["onMouseLeave","refKey","ref"],Po=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],zo=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Ho(e){void 0===e&&(e={}),Ao(e,Ho);var t=(0,Ur.A)({},ko,e),n=t.scrollIntoView,r=t.environment,o=t.getA11yStatusMessage,a=function(e,t,n,r){var o=vo(e,t,n,r),a=o[0],i=o[1];return[io(a,t),i]}(Do,t,No,Io),i=a[0],l=a[1],s=i.isOpen,c=i.highlightedIndex,u=i.selectedItem,d=i.inputValue,f=(0,b.useRef)(null),p=(0,b.useRef)(null),m=(0,b.useRef)({}),h=(0,b.useRef)(null),g=go(t),y=yo({state:i,props:t}),v=(0,b.useCallback)(function(e){return m.current[g.getItemId(e)]},[g]);_o(o,i,[s,c,u,d],r);var w=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,a=e.menuElement,i=e.scrollIntoView,l=(0,b.useRef)(!0);return ho(function(){t<0||!n||!Object.keys(r.current).length||(!1===l.current?l.current=!0:i(o(t),a))},[t]),l}({menuElement:p.current,highlightedIndex:c,isOpen:s,itemRefs:m,scrollIntoView:n,getItemNodeFromIndex:v});(0,b.useEffect)(function(){return h.current=ro(function(e){e({type:20,inputValue:""})},500),function(){h.current.cancel()}},[]),(0,b.useEffect)(function(){d&&h.current(l)},[l,d]),Co({props:t,state:i}),(0,b.useEffect)(function(){xo(t,"isOpen")&&f.current&&f.current.focus()},[]);var E=function(e,t,n){var r=(0,b.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,b.useEffect)(function(){if(!e)return to;var o=n.map(function(e){return e.current});function a(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function i(n){r.current.isMouseDown=!1,co(n.target,o,e)||t()}function l(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function s(){r.current.isTouchMove=!0}function c(n){r.current.isTouchEnd=!0,r.current.isTouchMove||co(n.target,o,e,!1)||t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",i),e.addEventListener("touchstart",l),e.addEventListener("touchmove",s),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",i),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",s),e.removeEventListener("touchend",c)}},[n,e,t]),r.current}(r,(0,b.useCallback)(function(){y.current.state.isOpen&&l({type:11})},[l,y]),(0,b.useMemo)(function(){return[p,f]},[p.current,f.current])),x=to;(0,b.useEffect)(function(){s||(m.current={})},[s]);var N=(0,b.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),l({type:1,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:2,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:5})},End:function(e){e.preventDefault(),l({type:6})},Escape:function(){y.current.state.isOpen&&l({type:4})},Enter:function(e){e.preventDefault(),l({type:y.current.state.isOpen?7:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:9}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:10}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?l({type:3,key:" "}):l({type:8}):l({type:0})}}},[l,y]),$=(0,b.useCallback)(function(){l({type:15})},[l]),_=(0,b.useCallback)(function(){l({type:17})},[l]),C=(0,b.useCallback)(function(){l({type:16})},[l]),T=(0,b.useCallback)(function(e){l({type:18,highlightedIndex:e})},[l]),I=(0,b.useCallback)(function(e){l({type:19,selectedItem:e})},[l]),O=(0,b.useCallback)(function(){l({type:21})},[l]),S=(0,b.useCallback)(function(e){l({type:20,inputValue:e})},[l]),R=(0,b.useCallback)(function(e){var t=void 0===e?{}:e,n=t.onClick,r=(0,Wr.A)(t,Lo);return(0,Ur.A)({id:g.labelId,htmlFor:g.toggleButtonId,onClick:oo(n,function(){var e;null==(e=f.current)||e.focus()})},r)},[g]),k=(0,b.useCallback)(function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,a=r.refKey,i=void 0===a?"ref":a,s=r.ref,c=(0,Wr.A)(r,Bo),u=(void 0===t?{}:t).suppressRefError;return x("getMenuProps",void 0!==u&&u,i,p),(0,Ur.A)(((n={})[i]=ao(s,function(e){p.current=e}),n.id=g.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+g.labelId,n.onMouseLeave=oo(o,function(){l({type:12})}),n),c)},[l,x,g]),A=(0,b.useCallback)(function(e,t){var n,r=void 0===e?{}:e,o=r.onBlur,a=r.onClick;r.onPress;var i=r.onKeyDown,s=r.refKey,c=void 0===s?"ref":s,u=r.ref,d=(0,Wr.A)(r,Po),p=(void 0===t?{}:t).suppressRefError,m=void 0!==p&&p,h=y.current.state,b=(0,Ur.A)(((n={})[c]=ao(u,function(e){f.current=e}),n["aria-activedescendant"]=h.isOpen&&h.highlightedIndex>-1?g.getItemId(h.highlightedIndex):"",n["aria-controls"]=g.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+g.labelId,n.id=g.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=oo(o,function(){h.isOpen&&!E.isMouseDown&&l({type:11})}),n),d);return d.disabled||(b.onClick=oo(a,function(){l({type:0})}),b.onKeyDown=oo(i,function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&N[t]?N[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:3,key:t})})),x("getToggleButtonProps",m,c,f),b},[l,g,y,E,x,N]),M=(0,b.useCallback)(function(e){var t,n=void 0===e?{}:e,r=n.item,o=n.index,a=n.onMouseMove,i=n.onClick,s=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,p=(0,Wr.A)(n,zo);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var h=y.current,b=h.state,v=h.props,x=function(e,t,n,r){var o,a;if(void 0===e){if(void 0===t)throw new Error(r);o=n[t],a=t}else a=void 0===t?n.indexOf(e):t,o=e;return[o,a]}(r,o,v.items,"Pass either item or index to getItemProps!"),N=x[0],$=x[1],_=v.isItemDisabled(N,$),C=(0,Ur.A)(((t={})[u]=ao(f,function(e){e&&(m.current[g.getItemId($)]=e)}),t["aria-disabled"]=_,t["aria-selected"]=N===b.selectedItem,t.id=g.getItemId($),t.role="option",t),p);return _||(C.onClick=oo(i,function(){l({type:14,index:$})})),C.onMouseMove=oo(a,function(){E.isTouchEnd||$===b.highlightedIndex||(w.current=!1,l({type:13,index:$,disabled:_}))}),C.onMouseDown=oo(s,function(e){return e.preventDefault()}),C},[y,g,E,w,l]);return{getToggleButtonProps:A,getLabelProps:R,getMenuProps:k,getItemProps:M,toggleMenu:$,openMenu:C,closeMenu:_,setHighlightedIndex:T,selectItem:I,reset:O,setInputValue:S,highlightedIndex:c,isOpen:s,selectedItem:u,inputValue:d}}Ho.stateChangeTypes=Mo,(0,Ur.A)({},Ro,{items:g().array.isRequired,isItemDisabled:g().func,inputValue:g().string,defaultInputValue:g().string,initialInputValue:g().string,inputId:g().string,onInputValueChange:g().func}),(0,Ur.A)({},wo,{isItemDisabled:function(){return!1}}),g().array,g().array,g().array,g().func,g().number,g().number,g().number,g().func,g().func,g().string,g().string;const Vo=(0,b.createContext)({isFluid:!1}),Fo=g().oneOf(["default","inline"]),jo=g().oneOf(["sm","md","lg"]),qo=e=>{27===e.keyCode&&e.stopPropagation()},Ko=e=>{e.preventDefault(),e.stopPropagation()},Wo=(0,b.forwardRef)((e,t)=>{const{children:n,className:r,disabled:o=!1,type:a="default",size:i,invalid:l,invalidText:s,invalidTextId:c,warn:u,warnText:d,warnTextId:f,light:p,isOpen:h,...g}=e,y=T(),{isFluid:w}=(0,b.useContext)(Vo),x=!l&&u,N=E()({...r&&{[r]:!0},[`${y}--list-box`]:!0,[`${y}--list-box--${i}`]:i,[`${y}--list-box--inline`]:"inline"===a,[`${y}--list-box--disabled`]:o,[`${y}--list-box--light`]:p,[`${y}--list-box--expanded`]:h,[`${y}--list-box--invalid`]:l,[`${y}--list-box--warning`]:x});return v().createElement(v().Fragment,null,v().createElement("div",m({},g,{className:N,ref:t,onKeyDown:qo,onClick:Ko,"data-invalid":l||void 0}),n),w&&v().createElement("hr",{className:`${y}--list-box__divider`}),l?v().createElement("div",{className:`${y}--form-requirement`,id:c},s):null,x?v().createElement("div",{className:`${y}--form-requirement`,id:f},d):null)});function Uo({children:e,disabled:t,tabIndex:n,...r}){const o=T();return v().createElement("div",m({className:`${o}--list-box__field`,tabIndex:!t&&n||-1},r),e)}Wo.displayName="ListBox",Wo.propTypes={children:g().node,className:g().string,disabled:g().bool,invalid:g().bool,invalidText:g().node,invalidTextId:g().string,isOpen:g().bool,light:$t(g().bool),size:jo,type:Fo,warn:g().bool,warnText:g().string,warnTextId:g().string},Uo.propTypes={"aria-haspopup":g().oneOfType([g().string,g().bool]),children:g().node,disabled:g().bool,role:g().string,tabIndex:g().oneOfType([g().number,g().string])};const Zo=(0,b.forwardRef)(({children:e,isActive:t=!1,isHighlighted:n=!1,title:r,...o},a)=>{const i=T(),l=a&&"function"!=typeof a?a.menuItemOptionRef:void 0,{isTruncated:s,ref:c}=((e,t=[])=>{const n=(0,b.useRef)(null),r=_([...e?[e]:[],n]),[o,a]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{const e=n.current;if(e){const{offsetWidth:t,scrollWidth:n}=e;a(t<n)}},[n,...t]),{isTruncated:o,ref:r}})(l,[e]),u=E()(`${i}--list-box__menu-item`,{[`${i}--list-box__menu-item--active`]:t,[`${i}--list-box__menu-item--highlighted`]:n});return v().createElement("li",m({},o,{className:u,title:s?r:void 0}),v().createElement("div",{className:`${i}--list-box__menu-item__option`,ref:c},e))});Zo.displayName="ListBoxMenuItem",Zo.propTypes={children:g().node,disabled:g().bool,isActive:g().bool,isHighlighted:g().bool,title:g().string};const Go=(0,b.forwardRef)(({children:e,id:t,...n},r)=>{const o=T();return v().createElement("ul",m({ref:r,id:t,className:`${o}--list-box__menu`,role:"listbox"},n),e)});Go.displayName="ListBoxMenu",Go.propTypes={children:g().oneOfType([g().node,g().arrayOf(g().oneOf([Zo])),g().shape({type:g().oneOf([Zo])}),g().bool]),id:g().string.isRequired};const Yo={"close.menu":"Close menu","open.menu":"Open menu"},Xo=e=>Yo[e],Qo=({isOpen:e,translateWithId:t=Xo})=>{const n=T(),r=E()(`${n}--list-box__menu-icon`,{[`${n}--list-box__menu-icon--open`]:e}),o=t(e?"close.menu":"open.menu");return v().createElement("div",{className:r},v().createElement(Zn.yQ,{name:"chevron--down","aria-label":o},v().createElement("title",null,o)))};var Jo,ea;Qo.propTypes={isOpen:g().bool.isRequired,translateWithId:g().func};const ta="clear.all",na="clear.selection",ra={[ta]:"Clear all selected items",[na]:"Clear selected item"},oa=e=>ra[e],aa=({clearSelection:e,selectionCount:t,translateWithId:n=oa,disabled:r,onClearSelection:o,readOnly:a})=>{const i=T(),l=E()(`${i}--list-box__selection`,{[`${i}--tag--filter`]:t,[`${i}--list-box__selection--multi`]:t}),s=t=>{t.stopPropagation(),r||a||(e(t),o&&o(t))},c=n(t?"clear.all":"clear.selection"),u=E()(`${i}--tag`,`${i}--tag--filter`,`${i}--tag--high-contrast`,{[`${i}--tag--disabled`]:r});return t?v().createElement("div",{className:u},v().createElement("span",{className:`${i}--tag__label`,title:`${t}`},t),v().createElement("div",{role:"button",tabIndex:-1,className:`${i}--tag__close-icon`,onClick:s,"aria-label":n("clear.all"),title:c,"aria-disabled":!!a||void 0},Jo||(Jo=v().createElement(Zn.bm,null)))):v().createElement("div",{role:"button",className:l,tabIndex:-1,onClick:s,"aria-label":c,title:c},t,ea||(ea=v().createElement(Zn.bm,null)))};aa.propTypes={clearSelection:g().func.isRequired,disabled:g().bool,onClearSelection:g().func,readOnly:g().bool,selectionCount:g().number,translateWithId:g().func};const ia=Object.assign(Wo,{Field:Uo,Menu:Go,MenuIcon:Qo,MenuItem:Zo,Selection:aa}),{ItemMouseMove:la,MenuMouseLeave:sa}=Ho.stateChangeTypes,ca=e=>"string"==typeof e?e:"number"==typeof e?`${e}`:null!==e&&"object"==typeof e&&"label"in e&&"string"==typeof e.label?e.label:"";function ua(e,t){const{changes:n,type:r}=t;switch(r){case la:case sa:return n.highlightedIndex===e.highlightedIndex?e:n;default:return n}}const da=v().forwardRef(({autoAlign:e=!1,className:t,decorator:n,disabled:r=!1,direction:o="bottom",items:a,label:i,"aria-label":l,ariaLabel:s,itemToString:c=ca,itemToElement:u=null,renderSelectedItem:d,type:f="default",size:p,onChange:h,id:g,titleText:y="",hideLabel:w,helperText:x="",translateWithId:N,light:$,invalid:_,invalidText:C,warn:I,warnText:O,initialSelectedItem:S,selectedItem:R,downshiftProps:k,readOnly:A,slug:M,...D},L)=>{const B=Ct("enable-v12-dynamic-floating-styles"),{refs:P,floatingStyles:z,middlewareData:H}=xt(B||e?{placement:o,strategy:"fixed",middleware:[(V={apply({rects:e,elements:t}){Object.assign(t.floating.style,{width:`${e.reference.width}px`})}},{...tt(V),options:[V,undefined]}),e&&dt(),e&&ft()],whileElementsMounted:Qe}:{});var V;(0,b.useEffect)(()=>{if(B||e){const e={...z,visibility:H.hide?.referenceHidden?"hidden":"visible"};Object.keys(e).forEach(t=>{P.floating.current&&(P.floating.current.style[t]=e[t])})}},[z,e,P.floating]);const F=T(),{isFluid:j}=(0,b.useContext)(Vo),q=(0,b.useCallback)(({selectedItem:e})=>{h&&h({selectedItem:e??null})},[h]),K=(0,b.useCallback)((e,t)=>null!==e&&"object"==typeof e&&"disabled"in e&&!0===e.disabled,[]),W=(0,b.useCallback)(e=>{const{highlightedIndex:t}=e;if(void 0!==t&&t>-1&&void 0!==typeof window){const e=document.querySelectorAll(`li.${F}--list-box__menu-item[role="option"]`)[t];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}},[F]),U=(0,b.useMemo)(()=>a,[a]),Z=(0,b.useMemo)(()=>({items:U,itemToString:c,initialSelectedItem:S,onSelectedItemChange:q,stateReducer:ua,isItemDisabled:K,onHighlightedIndexChange:W,...k}),[U,c,S,q,ua,K,W,k]),G=Ft();void 0!==R&&(Z.selectedItem=R);const{isOpen:Y,getToggleButtonProps:X,getLabelProps:Q,getMenuProps:J,getItemProps:ee,selectedItem:te,highlightedIndex:ne}=Ho(Z),re="inline"===f,oe=!_&&I,[ae,ie]=(0,b.useState)(!1),le=E()(`${F}--dropdown`,{[`${F}--dropdown--invalid`]:_,[`${F}--dropdown--warning`]:oe,[`${F}--dropdown--open`]:Y,[`${F}--dropdown--focus`]:ae,[`${F}--dropdown--inline`]:re,[`${F}--dropdown--disabled`]:r,[`${F}--dropdown--light`]:$,[`${F}--dropdown--readonly`]:A,[`${F}--dropdown--${p}`]:p,[`${F}--list-box--up`]:"top"===o,[`${F}--autoalign`]:e}),se=E()(`${F}--label`,{[`${F}--label--disabled`]:r,[`${F}--visually-hidden`]:w}),ce=E()(`${F}--form__helper-text`,{[`${F}--form__helper-text--disabled`]:r}),ue=E()(`${F}--dropdown__wrapper`,`${F}--list-box__wrapper`,t,{[`${F}--dropdown__wrapper--inline`]:re,[`${F}--list-box__wrapper--inline`]:re,[`${F}--dropdown__wrapper--inline--invalid`]:re&&_,[`${F}--list-box__wrapper--inline--invalid`]:re&&_,[`${F}--list-box__wrapper--fluid--invalid`]:j&&_,[`${F}--list-box__wrapper--slug`]:M,[`${F}--list-box__wrapper--decorator`]:n}),de=x?`dropdown-helper-text-${G}`:void 0,fe=u,pe=X({"aria-label":l||s}),me=x&&!j?v().createElement("div",{id:de,className:ce},x):null,he=e=>{ie("focus"===e.type&&!te)},ge=tr(pe.ref,L),[be,ye]=(0,b.useState)(),[ve,we]=(0,b.useState)(!1),Ee=(0,b.useCallback)(e=>{"Space"===e.code&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)||we(!0),(ve&&"Space"===e.code||!["ArrowDown","ArrowUp"," ","Enter"].includes(e.key))&&(be&&clearTimeout(be),ye(setTimeout(()=>{we(!1)},3e3))),["ArrowDown"].includes(e.key)&&ie(!1),!["Enter"].includes(e.key)||te||Y||ie(!0),pe.onKeyDown&&("ArrowUp"!==e.key||Y&&"ArrowUp"===e.key)&&pe.onKeyDown(e)},[ve,be,pe]),xe=(0,b.useMemo)(()=>A?{onClick:e=>{e.preventDefault(),ge?.current?.focus()},onKeyDown:e=>{["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&e.preventDefault()}}:{onKeyDown:Ee},[A,Ee]),Ne=(0,b.useMemo)(()=>J({ref:B||e?P.setFloating:null}),[e,J,P.setFloating,B]),$e=M??n,_e=Dn($e,Mn)?(0,b.cloneElement)($e,{size:"mini"}):null,Ce=Q(),Te=(0,b.isValidElement)(y)?{id:Ce.id}:Ce;return v().createElement("div",m({className:ue},D),y&&v().createElement("label",m({className:se},Te),y),v().createElement(ia,{onFocus:he,onBlur:he,size:p,className:le,invalid:_,invalidText:C,warn:I,warnText:O,light:$,isOpen:Y,ref:B||e?P.setReference:null,id:g},_&&v().createElement(Tn,{className:`${F}--list-box__invalid-icon`}),oe&&v().createElement(Cn,{className:`${F}--list-box__invalid-icon ${F}--list-box__invalid-icon--warning`}),v().createElement("button",m({type:"button",className:`${F}--list-box__field`,disabled:r,"aria-disabled":!!A||void 0,"aria-describedby":re||_||I||!me?void 0:de,title:te&&void 0!==c?c(te):ca(i)},pe,xe,{ref:ge}),v().createElement("span",{className:`${F}--list-box__label`},te?d?d(te):c(te):i),v().createElement(ia.MenuIcon,{isOpen:Y,translateWithId:N})),M?_e:n?v().createElement("div",{className:`${F}--list-box__inner-wrapper--decorator`},_e):"",v().createElement(ia.Menu,Ne,Y&&U.map((e,t)=>{const n=null!==e&&"object"==typeof e,r=ee({item:e,index:t}),o=n&&"text"in e&&u?e.text:c(e);return v().createElement(ia.MenuItem,m({key:r.id,isActive:te===e,isHighlighted:ne===t,title:o,disabled:r["aria-disabled"]},r),"object"==typeof e&&null!=fe?v().createElement(fe,m({key:r.id},e)):c(e),te===e&&v().createElement(Zn.MG,{className:`${F}--list-box__menu-item__selected-icon`}))}))),!re&&!_&&!I&&me)});function fa({className:e,children:t,...n}){const r=T(),o=E()(`${r}--form`,e);return v().createElement("form",m({className:o},n),t)}function pa({className:e,children:t,id:n,...r}){const o=T(),a=E()(`${o}--label`,`${o}--label--no-margin`,e);return v().createElement(Bn,m({as:"label",htmlFor:n,className:a},r),t)}function ma({as:e="div",condensed:t=!1,narrow:n=!1,className:r,children:o,...a}){const i=T(),l=E()(r,{[`${i}--row`]:!0,[`${i}--row--condensed`]:t,[`${i}--row--narrow`]:n}),s=e;return v().createElement(s,m({className:l},a),o)}da.displayName="Dropdown",da.propTypes={"aria-label":g().string,ariaLabel:$t(g().string),autoAlign:g().bool,className:g().string,decorator:g().node,direction:g().oneOf(["top","bottom"]),disabled:g().bool,downshiftProps:g().object,helperText:g().node,hideLabel:g().bool,id:g().string.isRequired,initialSelectedItem:g().oneOfType([g().object,g().string,g().number]),invalid:g().bool,invalidText:g().node,itemToElement:g().func,itemToString:g().func,items:g().array.isRequired,label:g().node.isRequired,light:$t(g().bool),onChange:g().func,readOnly:g().bool,renderSelectedItem:g().func,selectedItem:g().oneOfType([g().object,g().string,g().number]),size:jo,slug:$t(g().node),titleText:g().node.isRequired,translateWithId:g().func,type:Fo,warn:g().bool,warnText:g().node},fa.propTypes={children:g().node,className:g().string},pa.propTypes={children:g().node,className:g().string,id:g().string},ma.propTypes={as:g().oneOfType([g().string,g().elementType]),children:g().node,className:g().string,condensed:g().bool,narrow:g().bool};const ha=v().createContext({mode:"flexbox",subgrid:!1});g().node,g().oneOf(["flexbox","css-grid"]).isRequired,g().bool;const ga=v().forwardRef(({as:e,children:t,className:n,sm:r,md:o,lg:a,xlg:i,max:l,...s},c)=>{const{mode:u}=v().useContext(ha),d=T(),f=e||"div";if("css-grid"===u)return v().createElement(va,m({as:f,className:n,sm:r,md:o,ref:c,lg:a,xlg:i,max:l},s),t);const p=function(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(null==o)continue;const a=wa[r];if(!0!==o)if("number"!=typeof o){if("object"==typeof o){const{span:e,offset:r}=o;"number"==typeof e&&n.push(`${t}--col-${a}-${e}`),!0===e&&n.push(`${t}--col-${a}`),"number"==typeof r&&n.push(`${t}--offset-${a}-${r}`)}}else n.push(`${t}--col-${a}-${o}`);else n.push(`${t}--col-${a}`)}return n.join(" ")}([r,o,a,i,l],d),h=E()(n,p,{[`${d}--col`]:0===p.length});return v().createElement(f,m({className:h,ref:c},s),t)}),ba=g().oneOf(["25%","50%","75%","100%"]),ya=function(){return d.enabled.apply(d,arguments)}("enable-css-grid")?g().oneOfType([g().bool,g().number,g().shape({span:g().oneOfType([g().number,ba]),offset:g().number,start:g().number,end:g().number}),ba]):g().oneOfType([g().bool,g().number,g().shape({span:g().number,offset:g().number})]);ga.propTypes={as:g().oneOfType([g().string,g().elementType]),children:g().node,className:g().string,lg:ya,max:ya,md:ya,sm:ya,span:g().oneOfType([g().number,ba]),xlg:ya};const va=v().forwardRef(({as:e="div",children:t,className:n,sm:r,md:o,lg:a,xlg:i,max:l,span:s,...c},u)=>{const d=T(),f=function(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(null==o)continue;const a=wa[r];if(!0!==o)if("string"!=typeof o)if("number"!=typeof o){if("object"==typeof o){const{span:e,offset:r,start:i,end:l}=o;if("number"==typeof r&&n.push(`${t}--${a}:col-start-${r>0?r+1:"auto"}`),"number"==typeof i&&n.push(`${t}--${a}:col-start-${i||"auto"}`),"number"==typeof l&&n.push(`${t}--${a}:col-end-${l}`),"number"==typeof e)n.push(`${t}--${a}:col-span-${e}`);else if("string"==typeof e){n.push(`${t}--${a}:col-span-${e.slice(0,-1)}`);continue}}}else n.push(`${t}--${a}:col-span-${o}`);else n.push(`${t}--${a}:col-span-${o.replace("%","")}`);else n.push(`${t}--${a}:col-span-auto`)}return n.join(" ")}([r,o,a,i,l],d),p=function(e,t){const n=[];if("number"==typeof e)n.push(`${t}--col-span-${e}`);else if("string"==typeof e)n.push(`${t}--col-span-${e.slice(0,-1)}`);else if("object"==typeof e){const{span:r,start:o,end:a}=e;null!=r&&n.push(`${t}--col-span-${r}`),null!=o&&n.push(`${t}--col-start-${o}`),null!=a&&n.push(`${t}--col-end-${a}`)}return n.join("")}(s,d),h=E()(n,f,p,{[`${d}--css-grid-column`]:!0});return v().createElement(e,m({className:h,ref:u},c),t)});va.propTypes={as:g().oneOfType([g().string,g().elementType]),children:g().node,className:g().string,lg:ya,max:ya,md:ya,sm:ya,span:g().oneOfType([g().number,ba,g().shape({span:g().oneOfType([g().number,ba]),start:g().number,end:g().number})]),xlg:ya};const wa=["sm","md","lg","xlg","max"];var Ea,xa,Na,$a;const _a=v().forwardRef(function({children:e,size:t=16,...n},r){return v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Ea||(Ea=v().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"})),xa||(xa=v().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)}),Ca=v().forwardRef(function({children:e,size:t=16,...n},r){return v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Na||(Na=v().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"})),$a||($a=v().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 Ta({children:e,className:t,onClick:n,inline:r,...o}){const a=T(),i=E()(t,{[`${a}--actionable-notification__action-button`]:!0});return v().createElement(fn,m({className:i,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function Ia({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=Zn.bm,name:a,notificationType:i="toast",...l}){const s=T(),c=E()(n,{[`${s}--${i}-notification__close-button`]:i}),u=E()({[`${s}--${i}-notification__close-icon`]:i});return v().createElement("button",m({},l,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&v().createElement(o,{className:u,name:a}))}Ta.propTypes={children:g().node,className:g().string,inline:g().bool,onClick:g().func},Ia.propTypes={"aria-label":g().string,ariaLabel:$t(g().string),className:g().string,name:g().string,notificationType:g().oneOf(["toast","inline","actionable"]),renderIcon:g().oneOfType([g().func,g().object]),type:g().string};const Oa={error:Yn.x,success:Zn._j,warning:Tn,"warning-alt":Cn,info:_a,"info-square":Ca};function Sa({iconDescription:e,kind:t,notificationType:n}){const r=T(),o=Oa[t];return o?v().createElement(o,{className:`${r}--${n}-notification__icon`,size:20},v().createElement("title",null,e)):null}function Ra({"aria-label":e,children:t,title:n,subtitle:r,role:o="status",onClose:a,onCloseButtonClick:i=In,statusIconDescription:l,className:s,kind:c="error",lowContrast:u,hideCloseButton:d=!1,...f}){const[p,h]=(0,b.useState)(!0),g=T(),y=E()(s,{[`${g}--inline-notification`]:!0,[`${g}--inline-notification--low-contrast`]:u,[`${g}--inline-notification--${c}`]:c,[`${g}--inline-notification--hide-close-button`]:d}),w=(0,b.useRef)(null);en(w);const x=(0,b.useRef)(null);return p?v().createElement("div",m({ref:x},f,{role:o,className:y}),v().createElement("div",{className:`${g}--inline-notification__details`},v().createElement(Sa,{notificationType:"inline",kind:c,iconDescription:l||`${c} icon`}),v().createElement("div",{ref:w,className:`${g}--inline-notification__text-wrapper`},n&&v().createElement(Bn,{as:"div",className:`${g}--inline-notification__title`},n),r&&v().createElement(Bn,{as:"div",className:`${g}--inline-notification__subtitle`},r),t)),!d&&v().createElement(Ia,{notificationType:"inline",onClick:function(e){i(e),a&&!1===a(e)||h(!1)},"aria-label":e})):null}function ka({actionButtonLabel:e,"aria-label":t,ariaLabel:n,children:r,role:o="alertdialog",onActionButtonClick:a,onClose:i,onCloseButtonClick:l=In,statusIconDescription:s,className:c,inline:u=!1,kind:d="error",lowContrast:f,hideCloseButton:p=!1,hasFocus:h=!0,closeOnEscape:g=!0,title:y,subtitle:w,...x}){const[N,_]=(0,b.useState)(!0),C=T(),I=Ft("actionable-notification"),O=Ft("actionable-notification-subtitle"),S=E()(c,{[`${C}--actionable-notification`]:!0,[`${C}--actionable-notification--toast`]:!u,[`${C}--actionable-notification--low-contrast`]:f,[`${C}--actionable-notification--${d}`]:d,[`${C}--actionable-notification--hide-close-button`]:p}),R=(0,b.useRef)(null),k=(0,b.useRef)(null),A=(0,b.useRef)(null),M=(0,b.useRef)(null),D=Ct("enable-experimental-focus-wrap-without-sentinels");function L(e){l(e),i&&!1===i(e)||_(!1)}return $(()=>{if(h&&"alertdialog"===o){const e=document.querySelector("button.cds--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);At(r,[Ot])&&n&&o&&t(r)};$(()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1)))}(M,L,g),N?v().createElement("div",m({},x,{ref:M,role:o,className:S,"aria-labelledby":y?I:O,onBlur:D?()=>{}:function({target:e,relatedTarget:t}){if(N&&t&&e&&"alertdialog"===o){const{current:n}=R,{current:r}=k,{current:o}=A;xr({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e})}},onKeyDown:D?function(e){N&&Mt(e,Tt)&&M.current&&"alertdialog"===o&&Nr({containerNode:M.current,currentActiveNode:e.target,event:e})}:()=>{}}),!D&&v().createElement("span",{ref:k,tabIndex:0,role:"link",className:`${C}--visually-hidden`},"Focus sentinel"),v().createElement("div",{className:`${C}--actionable-notification__details`},v().createElement(Sa,{notificationType:u?"inline":"toast",kind:d,iconDescription:s||`${d} icon`}),v().createElement("div",{className:`${C}--actionable-notification__text-wrapper`},v().createElement("div",{className:`${C}--actionable-notification__content`},y&&v().createElement(Bn,{as:"div",className:`${C}--actionable-notification__title`,id:I},y),w&&v().createElement(Bn,{as:"div",className:`${C}--actionable-notification__subtitle`,id:O},w),r))),v().createElement("div",{className:`${C}--actionable-notification__button-wrapper`,ref:R},e&&v().createElement(Ta,{onClick:a,inline:u},e),!p&&v().createElement(Ia,{"aria-label":n||t,notificationType:"actionable",onClick:L})),!D&&v().createElement("span",{ref:A,tabIndex:0,role:"link",className:`${C}--visually-hidden`},"Focus sentinel")):null}Sa.propTypes={iconDescription:g().string.isRequired,kind:g().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:g().oneOf(["inline","toast"]).isRequired},g().string,$t(g().string),g().string,g().node,g().string,g().bool,g().oneOf(["error","info","info-square","success","warning","warning-alt"]),g().bool,g().func,g().func,g().oneOf(["alert","log","status"]),g().string,g().string,g().number,g().string,Ra.propTypes={"aria-label":g().string,children:g().node,className:g().string,hideCloseButton:g().bool,kind:g().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:g().bool,onClose:g().func,onCloseButtonClick:g().func,role:g().oneOf(["alert","log","status"]),statusIconDescription:g().string,subtitle:g().string,title:g().string},ka.propTypes={actionButtonLabel:g().string,"aria-label":g().string,ariaLabel:$t(g().string),children:g().node,className:g().string,closeOnEscape:g().bool,hasFocus:$t(g().bool),hideCloseButton:g().bool,inline:g().bool,kind:g().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:g().bool,onActionButtonClick:g().func,onClose:g().func,onCloseButtonClick:g().func,role:g().string,statusIconDescription:g().string,subtitle:g().node,title:g().string},g().string,g().node,g().string,N(g().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],e=>({error:"warning",success:"info"}[e])),g().bool,g().func,g().string,g().node,g().string,g().string;const Aa=v().forwardRef((e,t)=>{const{className:n,decorator:r,disabled:o,hideLabel:a,id:i,labelPosition:l="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:f,required:p,...h}=e,g=T(),y=Ft("radio-button"),w=i||y,x=E()(`${g}--radio-button__label-text`,{[`${g}--visually-hidden`]:a}),N=E()(n,`${g}--radio-button-wrapper`,{[`${g}--radio-button-wrapper--label-${l}`]:"right"!==l,[`${g}--radio-button-wrapper--slug`]:f,[`${g}--radio-button-wrapper--decorator`]:r}),$=(0,b.useRef)(null),_=f??r,C=Dn(_,Mn)?(0,b.cloneElement)(_,{size:"inline"===_.props?.kind?"md":"mini"}):null;return v().createElement("div",{className:N},v().createElement("input",m({},h,{type:"radio",className:`${g}--radio-button`,onChange:function(e){u(d,c,e)},id:w,ref:tr($,t),disabled:o,value:d,name:c,required:p})),v().createElement("label",{htmlFor:w,className:`${g}--radio-button__label`},v().createElement("span",{className:`${g}--radio-button__appearance`}),s&&v().createElement(Bn,{className:x},s,f?C:r?v().createElement("div",{className:`${g}--radio-button-wrapper-inner--decorator`},C):"")))});function Ma(e){const{className:t,...n}=e,r=T();return v().createElement("div",m({className:E()(`${r}--radio-button-wrapper`,t)},n),v().createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),v().createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}Aa.displayName="RadioButton",Aa.propTypes={checked:g().bool,className:g().string,decorator:g().node,defaultChecked:g().bool,disabled:g().bool,hideLabel:g().bool,id:g().string,labelPosition:g().oneOf(["right","left"]),labelText:g().node.isRequired,name:g().string,onChange:g().func,onClick:g().func,required:g().bool,slug:$t(g().node),value:g().oneOfType([g().string,g().number])},Ma.propTypes={className:g().string};const Da=(e,t)=>t=>v().createElement(Bn,m({as:e},t));Da("label");const La=Da("legend"),Ba=v().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:p=()=>{},orientation:h="horizontal",readOnly:g,valueSelected:y,warn:w=!1,warnText:x,slug:N,required:$,..._}=e,C=T(),[I,O]=(0,b.useState)(y??a),[S,R]=(0,b.useState)(y),k=Ft();function A(e,t,n){g||e!==I&&(O(e),p(e,f,n))}y!==S&&(O(y),R(y));const M=!g&&!s&&w,D=!s&&!i&&!w,L=E()(`${C}--form-item`,r),B=E()(`${C}--radio-button-group`,{[`${C}--radio-button-group--${h}`]:"vertical"===h,[`${C}--radio-button-group--label-${u}`]:u,[`${C}--radio-button-group--readonly`]:g,[`${C}--radio-button-group--invalid`]:!g&&s,[`${C}--radio-button-group--warning`]:M,[`${C}--radio-button-group--slug`]:N,[`${C}--radio-button-group--decorator`]:o}),P=E()(`${C}--form__helper-text`,{[`${C}--form__helper-text--disabled`]:i}),z=l?`radio-button-group-helper-text-${k}`:void 0,H=l?v().createElement("div",{id:z,className:P},l):null,V=(0,b.useRef)(null),F=N??o,j=Dn(F,Mn)?(0,b.cloneElement)(F,{size:"mini",kind:"default"}):null;return v().createElement("div",{className:L,ref:tr(V,t)},v().createElement("fieldset",m({className:B,disabled:i,"data-invalid":!!s||void 0,"aria-describedby":D&&l?z:void 0},_),d&&v().createElement(La,{className:`${C}--label`},d,N?j:o?v().createElement("div",{className:`${C}--radio-button-group-inner--decorator`},j):""),v().Children.map(n,e=>{if(!e)return;const t={name:f,key:e.props.value,value:e.props.value,onChange:A,checked:e.props.value===I,required:$};return!I&&e.props.checked&&(t.checked=!0),v().cloneElement(e,t)})),v().createElement("div",{className:`${C}--radio-button__validation-msg`},!g&&s&&v().createElement(v().Fragment,null,v().createElement(Tn,{className:`${C}--radio-button__invalid-icon`}),v().createElement("div",{className:`${C}--form-requirement`},c)),M&&v().createElement(v().Fragment,null,v().createElement(Cn,{className:`${C}--radio-button__invalid-icon ${C}--radio-button__invalid-icon--warning`}),v().createElement("div",{className:`${C}--form-requirement`},x))),D&&H)});var Pa,za;Ba.propTypes={children:g().node,className:g().string,decorator:g().node,defaultSelected:g().oneOfType([g().string,g().number]),disabled:g().bool,helperText:g().node,invalid:g().bool,invalidText:g().node,labelPosition:g().oneOf(["left","right"]),legendText:g().node,name:g().string.isRequired,onChange:g().func,orientation:g().oneOf(["horizontal","vertical"]),readOnly:g().bool,required:g().bool,slug:$t(g().node),valueSelected:g().oneOfType([g().string,g().number]),warn:g().bool,warnText:g().node},Ba.displayName="RadioButtonGroup";const Ha=v().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Pa||(Pa=v().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):v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},za||(za=v().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)});var Va;const Fa=v().forwardRef(function({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:p="Search",renderIcon:h,role:g="searchbox",size:y="md",type:w="text",value:x,...N},$){const C=!(!x&&!r),I=T(),{isFluid:O}=(0,b.useContext)(Vo),S=(0,b.useRef)(null),R=_([$,S]),k=(0,b.useRef)(null),A=Ft("search-input"),M=i||A,D=`${M}-search`,[L,B]=(0,b.useState)(C||!1),[P,z]=(0,b.useState)(x),H=E()({[`${I}--search`]:!0,[`${I}--search--sm`]:"sm"===y,[`${I}--search--md`]:"md"===y,[`${I}--search--lg`]:"lg"===y,[`${I}--search--light`]:s,[`${I}--search--disabled`]:o,[`${I}--search--fluid`]:O},t),V=E()({[`${I}--search-close`]:!0,[`${I}--search-close--hidden`]:!L||!a});function F(){if(!x&&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:In,preventDefault:In,stopPropagation:In,target:e,timeStamp:0,type:"change"};c(t)}u(),B(!1),S.current?.focus()}return x!==P&&(B(!!x),z(x)),v().createElement("div",{role:"search","aria-label":p,className:H},v().createElement("div",{"aria-labelledby":f?D:void 0,role:f?"button":void 0,className:`${I}--search-magnifier`,onClick:f,onKeyDown:function(e){(Mt(e,It)||Mt(e,St))&&(e.stopPropagation(),f&&f(e))},tabIndex:f&&!a?0:-1,ref:k,"aria-expanded":!(!f||!a)||!(f&&!a)&&void 0,"aria-controls":f?M:void 0},v().createElement(ja,{icon:h})),v().createElement("label",{id:D,htmlFor:M,className:`${I}--label`},l),v().createElement("input",m({autoComplete:e,className:`${I}--search-input`,defaultValue:r,disabled:o,role:g,ref:R,id:M,onChange:$r([c,function(e){B(""!==e.target.value)}]),onKeyDown:$r([d,function(e){Mt(e,Ot)&&(e.stopPropagation(),S.current?.value?F():f&&a&&k.current?.focus())}]),placeholder:p,type:w,value:x,tabIndex:f&&!a?-1:void 0},N)),v().createElement("button",{"aria-label":n,className:V,disabled:o,onClick:F,title:n,type:"button"},Va||(Va=v().createElement(Zn.bm,null))))});function ja({icon:e}){const t=T();return e?v().createElement(e,{className:`${t}--search-magnifier-icon`}):v().createElement(Ha,{className:`${t}--search-magnifier-icon`})}Fa.displayName="Search",Fa.propTypes={autoComplete:g().string,className:g().string,closeButtonLabelText:g().string,defaultValue:g().oneOfType([g().string,g().number]),disabled:g().bool,id:g().string,isExpanded:g().bool,labelText:g().node.isRequired,light:$t(g().bool),onChange:g().func,onClear:g().func,onExpand:g().func,onKeyDown:g().func,placeholder:g().string,renderIcon:g().oneOfType([g().func,g().object]),role:g().string,size:g().oneOf(["sm","md","lg"]),type:g().string,value:g().oneOfType([g().string,g().number])},ja.propTypes={icon:g().oneOfType([g().func,g().object])};const qa=({className:e,...t})=>{const n=T(),r=E()(e,{[`${n}--icon--skeleton`]:!0});return v().createElement("div",m({className:r},t))};qa.propTypes={className:g().string};const Ka=({className:e,...t})=>{const n=T(),r=E()({[`${n}--skeleton__placeholder`]:!0},e);return v().createElement("div",m({className:r},t))};Ka.propTypes={className:g().string};const Wa=[.973051493507435,.15334737213558558,.5671034553053769];function Ua(e,t,n){return Math.floor(Wa[n%3]*(t-e+1))+e}const Za=({paragraph:e=!1,lineCount:t=3,width:n="100%",heading:r=!1,className:o="",...a})=>{const i=T(),l=E()({[`${i}--skeleton__text`]:!0,[`${i}--skeleton__heading`]:r,[o]:o}),s=parseInt(n,10),c=n.includes("px"),u=n.includes("%");let d=1;e&&(d=t);const f=(0,b.useRef)([]);$(()=>{f.current.map((t,r)=>{const o=Ua(0,75,r)+"px",a=Ua(Math.max(s-75,0),s,r)+"px";t&&(t.style.width=u&&e?`calc(${n} - ${o})`:c&&e?a:n)})},[d,e,f,n,s,u,c]);const p=[];for(let e=0;e<d;e++)p.push(v().createElement("p",m({className:l,key:e,ref:e=>{f.current=[...f.current,e]}},a)));return 1!==d?v().createElement("div",null,p):v().createElement(v().Fragment,null,p)};function Ga(e){return"".concat(e/16,"rem")}Za.propTypes={className:g().string,heading:g().bool,lineCount:g().number,paragraph:g().bool,width:g().string};Ga(320),Ga(672),Ga(16);var Ya={width:Ga(1056),columns:16,margin:Ga(16)};Ga(1312),Ga(16),Ga(1584),Ga(24);function Xa(e){return Ga(8*e)}var Qa=[Xa(.25),Xa(.5),Xa(1),Xa(1.5),Xa(2),Xa(3),Xa(4),Xa(5),Xa(6),Xa(8),Xa(10),Xa(12),Xa(20)];Xa(2),Xa(3),Xa(4),Xa(6),Xa(8),Xa(12),Xa(20),Xa(3),Xa(4),Xa(5),Xa(6),Xa(8),Ga(24),Ga(32),Ga(40),Ga(48),Ga(64),Ga(80);const Ja=Array.from({length:Qa.length-1},(e,t)=>t+1),ei=(0,b.forwardRef)((e,t)=>{const{as:n="div",children:r,className:o,gap:a,orientation:i="vertical",...l}=e,s=T(),c=E()(o,{[`${s}--stack-${i}`]:!0,[`${s}--stack-scale-${a}`]:"number"==typeof a}),u={...l.style};return"string"==typeof a&&(u[`--${s}-stack-gap`]=a),v().createElement(n,m({},l,{ref:t,className:c,style:u}),r)});ei.propTypes={as:g().elementType,children:g().node,className:g().string,gap:g().oneOfType([g().string,g().oneOf(Ja)]),orientation:g().oneOf(["horizontal","vertical"])};const ti=v().forwardRef(function(e,t){const{children:n,className:r,disabled:o,index:a,name:i,onClick:l=In,onKeyDown:s=In,selected:c=!1,text:u,...d}=e,f=T(),p={onClick:e=>{e.preventDefault(),l?.({index:a,name:i,text:u})},onKeyDown:e=>{const t=e.key||e.which;s?.({index:a,name:i,text:u,key:t})},className:E()(r,`${f}--content-switcher-btn`,{[`${f}--content-switcher--selected`]:c}),disabled:o};return v().createElement("button",m({type:"button",ref:t,role:"tab",tabIndex:c?0:-1,"aria-selected":c},d,p),v().createElement("span",{className:`${f}--content-switcher__label`,title:u},void 0!==u?u:n))});ti.displayName="Switch",ti.propTypes={children:g().node,className:g().string,disabled:g().bool,index:g().number,name:g().oneOfType([g().string,g().number]),onClick:g().func,onKeyDown:g().func,selected:g().bool,text:g().string};const ni=({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,b.useState)(a),p=T(),h=function(e){const t=Ft();return e??t}(i);return v().createElement(Yt,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{f(!1)},onMouseEnter:()=>{l&&f(!0)},onFocus:()=>{f(!0)},open:d},v().createElement("button",m({},u,{className:E()(`${p}--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&&Mt(e,Ot)&&(e.stopPropagation(),f(!1))},type:"button"}),r),v().createElement(Qt,{className:`${p}--definition-tooltip`,id:h},s??o))};var ri;ni.propTypes={align:g().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:g().bool,children:g().node.isRequired,className:g().string,defaultOpen:g().bool,definition:g().node.isRequired,id:g().string,openOnHover:g().bool,tooltipText:$t(g().node),triggerClassName:g().string};const oi={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"},ai=v().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,...p},h)=>{const g=T(),y=(0,b.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=_([h,y]),x=r||`tag-${Ft()}`,[N,$]=(0,b.useState)(!1);(0,b.useLayoutEffect)(()=>{const e=y.current?.getElementsByClassName(`${g}--tag__label`)[0];var t;$(!!(t=e)&&t?.offsetWidth<t?.scrollWidth)},[g,y]);const C=[`${g}--tag--selectable`,`${g}--tag--filter`,`${g}--tag--operational`].some(e=>t?.includes(e)),I=E()(`${g}--tag`,t,{[`${g}--tag--disabled`]:s,[`${g}--tag--filter`]:a,[`${g}--tag--${u}`]:u,[`${g}--layout--size-${u}`]:u,[`${g}--tag--${o}`]:o,[`${g}--tag--interactive`]:p.onClick&&!C&&N}),O=void 0!==o&&o in Object.keys(oi)?oi[o]:"",S=e=>{c&&(e.stopPropagation(),c(e))},R=f??n,k=Dn(R,Mn)&&!C?(0,b.cloneElement)(R,{size:"sm",kind:"inline"}):null;if(a){const t=d??"div";return v().createElement(t,m({className:I,id:x},p),i&&"sm"!==u?v().createElement("div",{className:`${g}--tag__custom-icon`},v().createElement(i,null)):"",v().createElement(Bn,{title:"string"==typeof e?e:void 0,className:`${g}--tag__label`},null!=e?e:O),k,v().createElement("button",{type:"button",className:`${g}--tag__close-icon`,onClick:S,disabled:s,"aria-label":l,title:l},ri||(ri=v().createElement(Zn.bm,null))))}const A=d??(p.onClick||t?.includes(`${g}--tag--operational`)?"button":"div"),M=E()({[`${g}--tag__label`]:!C});return v().createElement(A,m({ref:w,disabled:s,className:I,id:x,type:"button"===A?"button":void 0},p),i&&"sm"!==u?v().createElement("div",{className:`${g}--tag__custom-icon`},v().createElement(i,null)):"",N&&!C?v().createElement(ni,{openOnHover:!1,definition:null!=e?e:O,className:`${g}--definition--tooltip--tag`},v().createElement(Bn,{title:null!=e&&"string"==typeof e?e:O,className:M},null!=e?e:O)):v().createElement(Bn,{title:null!=e&&"string"==typeof e?e:O,className:M},null!=e?e:O),f?k:n?v().createElement("div",{className:`${g}--tag__decorator`},k):"")});ai.propTypes={as:g().elementType,children:g().node,className:g().string,decorator:g().node,disabled:g().bool,filter:$t(g().bool),id:g().string,onClose:$t(g().func),renderIcon:g().oneOfType([g().func,g().object]),size:g().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:$t(g().node),title:$t(g().string),type:g().oneOf(Object.keys(oi))};const ii=(0,b.forwardRef)((e,t)=>{const{className:n,decorator:r,disabled:o=!1,id:a,labelText:i,hideLabel:l,onChange:s=In,onClick:c=In,onKeyDown:u=In,invalid:d=!1,invalidText:f="",helperText:p="",light:h,placeholder:g="",enableCounter:y=!1,maxCount:w,counterMode:x="character",warn:N=!1,warnText:C="",rows:I=4,slug:O,...S}=e,R=T(),{isFluid:k}=(0,b.useContext)(Vo),{defaultValue:A,value:M}=S,D=Ft(),L=(0,b.useRef)(null),B=_([t,L]);function P(){const e=(A||M||L.current?.value||"").toString();return"character"===x?e.length:e.match(/\p{L}+/gu)?.length||0}const[z,H]=(0,b.useState)(P());(0,b.useEffect)(()=>{H(P())},[M,A,x]),$(()=>{S.cols&&L.current?(L.current.style.width="",L.current.style.resize="none"):L.current&&(L.current.style.width="100%")},[S.cols]);const V={id:a,onKeyDown:e=>{if(!o&&y&&"word"===x){const t=e.which;(w&&z>=w&&32===t||w&&z>=w&&13===t)&&e.preventDefault()}!o&&u&&u(e)},onPaste:e=>{if(!o&&"word"===x&&y&&void 0!==w&&null!==L.current){const t=L.current.value.match(/\p{L}+/gu)||[],n=e.clipboardData.getData("Text").match(/\p{L}+/gu)||[];if(t.length+n.length>w){e.preventDefault();const r=t.concat(n).slice(0,w);setTimeout(()=>{H(w)},0),L.current.value=r.join(" ")}}},onChange:e=>{if(!o){if("character"==x)e?.persist?.(),setTimeout(()=>{H(e.target?.value?.length)},0);else if("word"==x){if(!e.target.value)return void setTimeout(()=>{H(0)},0);if(y&&void 0!==w&&null!==L.current){const t=e.target?.value?.match(/\p{L}+/gu);t&&t.length<=w?(L.current.removeAttribute("maxLength"),setTimeout(()=>{H(t.length)},0)):t&&t.length>w&&setTimeout(()=>{H(t.length)},0)}}s&&s(e)}},onClick:e=>{!o&&c&&c(e)}},F=E()(`${R}--form-item`,n),j=E()(`${R}--text-area__wrapper`,{[`${R}--text-area__wrapper--cols`]:S.cols,[`${R}--text-area__wrapper--readonly`]:S.readOnly,[`${R}--text-area__wrapper--warn`]:N,[`${R}--text-area__wrapper--slug`]:O,[`${R}--text-area__wrapper--decorator`]:r}),q=E()(`${R}--label`,{[`${R}--visually-hidden`]:l&&!k,[`${R}--label--disabled`]:o}),K=E()(`${R}--text-area`,{[`${R}--text-area--light`]:h,[`${R}--text-area--invalid`]:d,[`${R}--text-area--warn`]:N}),W=E()(`${R}--label`,{[`${R}--label--disabled`]:o,[`${R}--text-area__label-counter`]:!0}),U=E()(`${R}--form__helper-text`,{[`${R}--form__helper-text--disabled`]:o}),Z=i?v().createElement(Bn,{as:"label",htmlFor:a,className:q},i):null,G=y&&w&&("character"===x||"word"===x)?v().createElement(Bn,{as:"div",className:W},`${z}/${w}`):null,Y=p?`text-area-helper-text-${D}`:void 0,X=p?v().createElement(Bn,{as:"div",id:Y,className:U},p):null,Q=a+"-error-msg",J=d?v().createElement(Bn,{as:"div",role:"alert",className:`${R}--form-requirement`,id:Q},f,k&&v().createElement(Tn,{className:`${R}--text-area__invalid-icon`})):null,ee=N?v().createElement(Bn,{as:"div",role:"alert",className:`${R}--form-requirement`},C,k&&v().createElement(Cn,{className:`${R}--text-area__invalid-icon ${R}--text-area__invalid-icon--warning`})):null;let te;d?te=Q:d||N||k||!p||(te=Y),y&&"character"==x&&(V.maxLength=w);const ne=(0,b.useRef)(null),[re,oe]=(0,b.useState)(""),ae=((e,t,n="character",r="characters")=>{if(void 0===t)return null;const o=t-e;return o<=10&&o>0?`${o} ${1===o?n:r} left.`:o<=0?`Maximum ${r} reached.`:null})(z,w,"word"===x?"word":void 0,"word"===x?"words":void 0);(0,b.useEffect)(()=>{if(ae&&ae!==re){const e=ne.current;if(e){e.textContent="";const t=setTimeout(()=>{e&&(e.textContent=ae,oe(ae))},"word"===x?2e3:1e3);return()=>{t&&clearTimeout(t)}}}},[ae,re,x]);const ie=v().createElement("textarea",m({},S,V,{placeholder:g,"aria-readonly":!!S.readOnly,className:K,"aria-invalid":d,"aria-describedby":te,disabled:o,rows:I,readOnly:S.readOnly,ref:B})),le=O??r,se=Dn(le,Mn)?(0,b.cloneElement)(le,{size:"mini"}):null;return v().createElement("div",{className:F},v().createElement("div",{className:`${R}--text-area__label-wrapper`},Z,G),v().createElement("div",{className:j,"data-invalid":d||null},d&&!k&&v().createElement(Tn,{className:`${R}--text-area__invalid-icon`}),N&&!d&&!k&&v().createElement(Cn,{className:`${R}--text-area__invalid-icon ${R}--text-area__invalid-icon--warning`}),ie,O?se:r?v().createElement("div",{className:`${R}--text-area__inner-wrapper--decorator`},se):"",v().createElement("span",{className:`${R}--text-area__counter-alert`,role:"alert","aria-live":"assertive","aria-atomic":"true",ref:ne},ae),k&&v().createElement("hr",{className:`${R}--text-area__divider`}),k&&d?J:null,k&&N&&!d?ee:null),d||N||k?null:X,d&&!k?J:null,!N||d||k?null:ee)});var li,si,ci,ui,di,fi;ii.displayName="TextArea",ii.propTypes={className:g().string,cols:g().number,counterMode:g().oneOf(["character","word"]),decorator:g().node,defaultValue:g().oneOfType([g().string,g().number]),disabled:g().bool,enableCounter:g().bool,helperText:g().node,hideLabel:g().bool,id:g().string,invalid:g().bool,invalidText:g().node,labelText:g().node.isRequired,light:$t(g().bool),maxCount:g().number,onChange:g().func,onClick:g().func,onKeyDown:g().func,placeholder:g().string,readOnly:g().bool,rows:g().number,slug:$t(g().node),value:g().oneOfType([g().string,g().number]),warn:g().bool,warnText:g().node};const pi=v().forwardRef(function({children:e,size:t=16,...n},r){return v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},li||(li=v().createElement("path",{d:"M19 21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4zM15.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"})),si||(si=v().createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)}),mi=v().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},ci||(ci=v().createElement("path",{d:"M9.3 3.7L13.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?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},ui||(ui=v().createElement("path",{d:"M11.8 2.8L10.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?v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},di||(di=v().createElement("path",{d:"M14 4L12.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):v().createElement(_n.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},fi||(fi=v().createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),e)}),hi=v().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(),p={className:E()(`${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?(p.role="link",p["aria-disabled"]=!0):p.href=r;const h=e??"a";return v().createElement(h,m({ref:d},p,u),t,!a&&l&&v().createElement("div",{className:`${f}--link__icon`},v().createElement(l,null)))});var gi,bi,yi,vi;hi.displayName="Link",hi.propTypes={as:g().elementType,children:g().node,className:g().string,disabled:g().bool,href:g().string,inline:g().bool,renderIcon:g().oneOfType([g().func,g().object]),size:g().oneOf(["sm","md","lg"]),visited:g().bool};const wi=v().forwardRef(function({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:a=!1,...i},l){const s=T(),c=E()(`${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 v().createElement("div",m({className:c,ref:l},i),e,o,n&&v().createElement("div",{className:`${s}--tile--inner-decorator`},n))});wi.displayName="Tile",wi.propTypes={children:g().node,className:g().string,decorator:g().node,hasRoundedCorners:g().bool,light:$t(g().bool),slug:$t(g().node)};const Ei=v().forwardRef(function({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},p){const h=T(),g=E()(`${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,b.useState)(n),x=Ct("enable-v12-tile-default-icons");x&&(c||(c=mi),o&&(c=Yn.$D));const N=E()({[`${h}--tile--icon`]:!x||x&&!o,[`${h}--tile--disabled-icon`]:x&&o});return v().createElement(hi,m({className:g,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?.(),At(e,[It,St])&&w(!y),s(e)},ref:p,disabled:o},f),d||r?v().createElement("div",{className:`${h}--tile-content`},e):e,(!0===d||!0===r)&&v().createElement(pi,{size:"24",className:`${h}--tile--ai-label-icon`}),v().isValidElement(r)&&v().createElement("div",{className:`${h}--tile--inner-decorator`},r),c&&v().createElement(c,{className:N,"aria-hidden":"true"}))});Ei.displayName="ClickableTile",Ei.propTypes={children:g().node,className:g().string,clicked:g().bool,decorator:g().oneOfType([g().bool,g().node]),disabled:g().bool,hasRoundedCorners:g().bool,href:g().string,light:$t(g().bool),onClick:g().func,onKeyDown:g().func,rel:g().string,renderIcon:g().oneOfType([g().func,g().object])},v().forwardRef(function({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:p,...h},g){const y=T(),w=i,x=s,[N,$]=(0,b.useState)(c);(0,b.useEffect)(()=>{$(c)},[c]);const _=E()(`${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&&p,[`${y}--tile--decorator`]:n,[`${y}--tile--decorator-rounded`]:n&&p},t),C=(0,b.useCallback)((e,t)=>{$(t),l(e,t,o)},[l,o]),I=(0,b.useRef)(null),O=f??n,S=Dn(O,Mn)?(0,b.cloneElement)(O,{size:"xs",ref:I}):null;return v().createElement("div",m({className:_,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),S&&I.current&&e.target instanceof Node&&I.current.contains(e.target)||(C(e,!N),w(e))},role:"checkbox","aria-checked":N,onKeyDown:r?void 0:function(e){e?.persist?.(),At(e,[It,St])&&(e.preventDefault(),C(e,!N)),x(e)},tabIndex:r?void 0:u,ref:g,id:o,title:d},h),v().createElement("span",{className:`${y}--tile__checkmark ${y}--tile__checkmark--persistent`},N?gi||(gi=v().createElement(Zn.NW,null)):bi||(bi=v().createElement(Zn.Sc,null))),v().createElement(Bn,{as:"label",htmlFor:o,className:`${y}--tile-content`},e),f?S:n?v().createElement("div",{className:`${y}--tile--inner-decorator`},S):"")}).propTypes={children:g().node,className:g().string,decorator:g().node,disabled:g().bool,hasRoundedCorners:g().bool,id:g().string,light:$t(g().bool),name:$t(g().string),onChange:g().func,onClick:g().func,onKeyDown:g().func,selected:g().bool,slug:$t(g().node),tabIndex:g().number,title:g().string,value:$t(g().oneOfType([g().string,g().number]))};const xi=v().forwardRef(function({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:p,slug:h,hasRoundedCorners:g,...y},w){const[x,N]=(0,b.useState)(a),[C,I]=(0,b.useState)(i),[O,S]=(0,b.useState)(o),[R,k]=(0,b.useState)(a),[A,M]=(0,b.useState)(i),[D,L]=(0,b.useState)(o),[B,P]=(0,b.useState)(!0),z=(0,b.useRef)(null),H=(0,b.useRef)(null),V=(0,b.useRef)(null),F=(0,b.useRef)(null),j=(0,b.useRef)(null),q=_([w,j]),K=T();function W(){D&&F.current&&N(F.current.getBoundingClientRect()?.height),z.current&&N(z.current.getBoundingClientRect().height)}function U(e){e?.persist?.(),L(!D),W()}function Z(e){e.target!==j.current&&e.target!==V.current&&At(e,[It,St])&&e.preventDefault()}o!==O&&(L(o),S(o),W()),a!==R&&(N(a),k(a)),i!==A&&(I(i),M(i));const G=E()(`${K}--tile`,`${K}--tile--expandable`,{[`${K}--tile--is-expanded`]:D,[`${K}--tile--light`]:p},t),Y=E()(`${K}--tile`,`${K}--tile--expandable`,`${K}--tile--expandable--interactive`,{[`${K}--tile--is-expanded`]:D,[`${K}--tile--light`]:p,[`${K}--tile--slug`]:h,[`${K}--tile--slug-rounded`]:h&&g,[`${K}--tile--decorator`]:r,[`${K}--tile--decorator-rounded`]:r&&g},t),X=E()(`${K}--tile__chevron`,`${K}--tile__chevron--interactive`),Q=v().Children.toArray(n);$(()=>{if(!j.current||!z.current)return;const e=window.getComputedStyle(j.current,null),{current:t}=z,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);N(n),I(r+o)},[x]),$(()=>{z.current&&H.current&&(tn(H.current)||nn(H.current)||tn(z.current)||nn(z.current)||h||r||P(!1))},[h,r]),$(()=>{j.current&&(j.current.style.maxHeight=D?"":x+C+"px")},[D,x,C]),(0,b.useEffect)(()=>{if(!z.current)return;const e=new ResizeObserver(e=>{const[t]=e;N(t.contentRect.height)});return e.observe(z.current),()=>e.disconnect()},[]);const J=Ft("expandable-tile-interactive"),ee=h??r,te=Dn(ee,Mn)?(0,b.cloneElement)(ee,{size:"xs"}):null;return B?v().createElement("div",m({ref:q,className:Y},y),v().createElement("div",{ref:F},h?te:r?v().createElement("div",{className:`${K}--tile--inner-decorator`},te):"",v().createElement("div",{ref:z,className:`${K}--tile-content`},Q[0]),v().createElement("button",{type:"button","aria-expanded":D,"aria-controls":J,onKeyUp:$r([s,Z]),onClick:$r([l,U]),"aria-label":D?u:c,ref:V,className:X},yi||(yi=v().createElement(Zn.yQ,null))),v().createElement("div",{ref:H,className:`${K}--tile-content`,id:J},Q[1]))):v().createElement("button",m({type:"button",ref:q,className:G,"aria-expanded":D,title:D?u:c},y,{onKeyUp:$r([s,Z]),onClick:$r([l,U]),tabIndex:e}),v().createElement("div",{ref:F},v().createElement("div",{ref:z,className:`${K}--tile-content`},Q[0]),v().createElement("div",{className:`${K}--tile__chevron`},v().createElement("span",null,D?f:d),vi||(vi=v().createElement(Zn.yQ,null))),v().createElement("div",{ref:H,className:`${K}--tile-content`},Q[1])))});xi.propTypes={children:g().node,className:g().string,decorator:g().node,expanded:g().bool,hasRoundedCorners:g().bool,id:g().string,light:$t(g().bool),onClick:g().func,onKeyUp:g().func,slug:$t(g().node),tabIndex:g().number,tileCollapsedIconText:g().string,tileCollapsedLabel:g().string,tileExpandedIconText:g().string,tileExpandedLabel:g().string},xi.displayName="ExpandableTile";const Ni=v().forwardRef(function({children:e},t){const n=T();return v().createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)});Ni.propTypes={children:g().node},Ni.displayName="TileAboveTheFoldContent";const $i=v().forwardRef(function({children:e},t){const n=T();return v().createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)});$i.propTypes={children:g().node},$i.displayName="TileBelowTheFoldContent";const _i=(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":g().string,"aria-labelledby":g().string}),Ci=({className:e,children:t,...n})=>{const r=T(),o=E()(`${r}--header`,e);return v().createElement("header",m({},n,{className:o}),t)};Ci.propTypes={..._i,className:g().string};const Ti=v().forwardRef(function({"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=E()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:l}),p={"aria-label":e,"aria-labelledby":t};return v().createElement(fn,m({},c,p,{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)});Ti.propTypes={..._i,children:g().node.isRequired,className:g().string,isActive:g().bool,onClick:g().func,tooltipAlignment:g().oneOf(["start","center","end"]),tooltipDropShadow:g().bool,tooltipHighContrast:g().bool},Ti.displayName="HeaderGlobalAction";const Ii=(({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=T(),a=E()("function"==typeof t?t(o):t,e);return v().createElement(n,{...r,className:a||void 0})}return r.displayName=e,r.propTypes={className:g().string},r})({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var Oi,Si,Ri=n(54240);function ki({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:a,isCollapsible:i,...l}){const s=T(),c=E()({..."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||Oi||(Oi=v().createElement(Ri.DE,{size:20})),d=o||Si||(Si=v().createElement(Zn.bm,{size:20}));return v().createElement("button",m({},l,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),a?d:u)}ki.propTypes={..._i,className:g().string,isActive:g().bool,isCollapsible:g().bool,onClick:g().func};const Ai=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const a=t??e??"a";return v().createElement(a,m({ref:o},r))},Mi=v().forwardRef(Ai),Di={as:g().elementType,element:$t(g().elementType),isSideNavExpanded:g().bool};function Li({children:e,className:t,prefix:n="IBM",...r}){const o=T(),a=E()(`${o}--header__name`,t);return v().createElement(Mi,m({},r,{className:a}),n&&v().createElement(v().Fragment,null,v().createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}Mi.displayName="Link",Mi.propTypes=Di,Li.propTypes={...Di,children:g().node.isRequired,className:g().string,href:g().string,prefix:g().string};const Bi=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu","SideNavLink"],Pi=(0,b.createContext)({});function zi({expanded:e,defaultExpanded:t=!1,isChildOfHeader:n=!0,"aria-label":r,"aria-labelledby":o,children:a,onToggle:i,className:l,href:s,isFixedNav:c=!1,isRail:u,isPersistent:d=!0,addFocusListeners:f=!0,addMouseListeners:p=!0,onOverlayClick:h,onSideNavBlur:g,enterDelayMs:y=100,...w},x){const N=T(),{current:$}=(0,b.useRef)(void 0!==e),[C,O]=Jt(t),[S,R]=Jt(t),k=$?e:C,A=(0,b.useRef)(null),M=_([A,x]),D=(e,t=!k)=>{$||O(t,y),i&&i(e,t),($||u)&&R(t,y)},L={"aria-label":r,"aria-labelledby":o},B=E()(l,{[`${N}--side-nav`]:!0,[`${N}--side-nav--expanded`]:k||S,[`${N}--side-nav--collapsed`]:!k&&c,[`${N}--side-nav--rail`]:u,[`${N}--side-nav--ux`]:n,[`${N}--side-nav--hidden`]:!d}),P=E()({[`${N}--side-nav__overlay`]:!0,[`${N}--side-nav__overlay-active`]:k||S});let z=a;z=v().Children.map(a,e=>{const t=$&&S||k;if((0,b.isValidElement)(e)){const n=e;return v().cloneElement(n,{...Bi.includes(n.type?.displayName??n.type?.name)?{isSideNavExpanded:t}:{}})}return e});const H={};f&&(H.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&u&&D(e,!0)},H.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||D(e,!1),e.currentTarget.contains(e.relatedTarget)||!k||c||g&&g()},H.onKeyDown=e=>{Mt(e,Ot)&&(D(e,!1),s&&(window.location.href=s))}),p&&u&&(H.onMouseEnter=()=>{D(!0,!0)},H.onMouseLeave=()=>{O(!1),R(!1),D(!1,!1)},H.onClick=()=>{O(!0),R(!0),D(!0,!0)}),I("keydown",e=>{const t=document.activeElement;Mt(e,Tt)&&k&&!c&&A.current&&t?.classList.contains(`${N}--header__menu-toggle`)&&!t.closest("nav")&&A.current.focus()});const V=((e,t=!1)=>{const[n,r]=(0,b.useState)(t);return(0,b.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: ${Ya.width})`);return v().createElement(Pi.Provider,{value:{isRail:u}},c?null:v().createElement("div",{className:P,onClick:h}),v().createElement("nav",m({tabIndex:-1,ref:M,className:`${N}--side-nav__navigation ${B}`,inert:u?void 0:!(k||V)},L,H,w),z))}const Hi=v().forwardRef(zi);Hi.displayName="SideNav",Hi.propTypes={..._i,addFocusListeners:g().bool,addMouseListeners:g().bool,className:g().string,defaultExpanded:g().bool,enterDelayMs:g().number,expanded:g().bool,href:g().string,isChildOfHeader:g().bool,isFixedNav:g().bool,isPersistent:g().bool,isRail:g().bool,onOverlayClick:g().func,onSideNavBlur:g().func,onToggle:g().func}},54240:(e,t,n)=>{n.d(t,{DE:()=>h,Xj:()=>g,hz:()=>m});var r,o,a,i,l,s,c,u,d=n(90380),f=n.n(d),p=n(9247);const m=f().forwardRef(function({children:e,size:t=16,...n},a){return 16===t||"16"===t||"16px"===t?f().createElement(p.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=f().createElement("path",{d:"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):f().createElement(p.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=f().createElement("path",{d:"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)}),h=f().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=f().createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},i||(i=f().createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},l||(l=f().createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),e):f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},s||(s=f().createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),e)}),g=f().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},c||(c=f().createElement("path",{d:"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},u||(u=f().createElement("path",{d:"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)})},54828:(e,t,n)=>{n(47120)},60529:(e,t,n)=>{n.d(t,{MG:()=>O,NW:()=>I,Sc:()=>T,_j:()=>S,bm:()=>A,u$:()=>R,yQ:()=>k});var r,o,a,i,l,s,c,u,d,f,p,m,h,g,b,y,v,w,E,x,N,$=n(90380),_=n.n($),C=n(9247);const T=_().forwardRef(function({children:e,size:t=16,...n},o){return _().createElement(C.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=_().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)}),I=_().forwardRef(function({children:e,size:t=16,...n},r){return _().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=_().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=_().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)}),O=_().forwardRef(function({children:e,size:t=16,...n},r){return 20===t||"20"===t||"20px"===t?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},i||(i=_().createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),l||(l=_().createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),e):24===t||"24"===t||"24px"===t?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},s||(s=_().createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),e):_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},c||(c=_().createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),e)}),S=_().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},u||(u=_().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"})),d||(d=_().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?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},f||(f=_().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"})),p||(p=_().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?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},m||(m=_().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"})),h||(h=_().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):_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},g||(g=_().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"})),b||(b=_().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),e)}),R=_().forwardRef(function({children:e,size:t=16,...n},r){return _().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},y||(y=_().createElement("path",{d:"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z"})),v||(v=_().createElement("path",{d:"M20,13.67V4h2V2H10V4h2v9.67L9.58,17h2.4767L14,14.33V4h4V14.33l7.61,10.46a2.0133,2.0133,0,0,1-.44,2.82,2.0406,2.0406,0,0,1-1.19.39H15v2h8.98a4.0154,4.0154,0,0,0,3.25-6.38Z"})),e)}),k=_().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},w||(w=_().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),e):16===t||"16"===t||"16px"===t?_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},E||(E=_().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):_().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},x||(x=_().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)}),A=_().forwardRef(function({children:e,size:t=16,...n},r){return _().createElement(C.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},N||(N=_().createElement("path",{d:"M17.4141 16L24 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)})},72591:e=>{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}}},73335:(e,t,n)=>{var r=n(90380);Symbol.for("react.element"),Symbol.for("react.fragment"),Object.prototype.hasOwnProperty,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},73656:e=>{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))}}},85608:(e,t,n)=>{n.r(t),n.d(t,{__addDisposableResource:()=>D,__assign:()=>a,__asyncDelegator:()=>_,__asyncGenerator:()=>$,__asyncValues:()=>C,__await:()=>N,__awaiter:()=>m,__classPrivateFieldGet:()=>k,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>A,__createBinding:()=>g,__decorate:()=>l,__disposeResources:()=>B,__esDecorate:()=>c,__exportStar:()=>b,__extends:()=>o,__generator:()=>h,__importDefault:()=>R,__importStar:()=>S,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>s,__propKey:()=>d,__read:()=>v,__rest:()=>i,__rewriteRelativeImportExtension:()=>P,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>E,__values:()=>y,default:()=>z});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var g=(0,n[p])("accessor"===s?{get:d.get,set:d.set}:d[c],m);if("accessor"===s){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(l=i(g.get))&&(d.get=l),(l=i(g.set))&&(d.set=l),(l=i(g.init))&&o.unshift(l)}else(l=i(g))&&("field"===s?o.unshift(l):d[c]=l)}u&&Object.defineProperty(u,r.name,d),f=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function b(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function N(e){return this instanceof N?(this.v=e,this):new N(e)}function $(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function i(e,t){o[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||l(e,t)})},t&&(r[e]=t(r[e])))}function l(e,t){try{(n=o[e](t)).value instanceof N?Promise.resolve(n.value.v).then(s,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function s(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:N(e[r](t)),done:!1}:o?o(t):t}:o}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return O=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},O(e)};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=O(e),r=0;r<n.length;r++)"default"!==n[r]&&g(t,e,n[r]);return I(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function A(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function B(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function P(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,o,a){return n?t?".jsx":".js":!r||o&&a?r+o+"."+a.toLowerCase()+"js":e}):e}const z={__extends:o,__assign:a,__rest:i,__decorate:l,__param:s,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:m,__generator:h,__createBinding:g,__exportStar:b,__values:y,__read:v,__spread:w,__spreadArrays:E,__spreadArray:x,__await:N,__asyncGenerator:$,__asyncDelegator:_,__asyncValues:C,__makeTemplateObject:T,__importStar:S,__importDefault:R,__classPrivateFieldGet:k,__classPrivateFieldSet:A,__classPrivateFieldIn:M,__addDisposableResource:D,__disposeResources:B,__rewriteRelativeImportExtension:P}},88128:e=>{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)}},89575:(e,t,n)=>{function r(){return r=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},r.apply(null,arguments)}n.d(t,{A:()=>r})},90320:(e,t)=>{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}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},95924:e=>{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}}}]);