@openmrs/esm-task-list-app 1.0.1 → 1.0.2-pre.103

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 (46) hide show
  1. package/dist/169.js +1 -0
  2. package/dist/169.js.map +1 -0
  3. package/dist/234.js +2 -0
  4. package/dist/{685.js.LICENSE.txt → 234.js.LICENSE.txt} +0 -15
  5. package/dist/234.js.map +1 -0
  6. package/dist/255.js +1 -1
  7. package/dist/255.js.map +1 -1
  8. package/dist/282.js +1 -1
  9. package/dist/282.js.map +1 -1
  10. package/dist/300.js +1 -1
  11. package/dist/353.js +1 -1
  12. package/dist/353.js.map +1 -1
  13. package/dist/444.js +1 -0
  14. package/dist/444.js.map +1 -0
  15. package/dist/500.js +2 -0
  16. package/dist/500.js.map +1 -0
  17. package/dist/540.js +1 -1
  18. package/dist/540.js.map +1 -1
  19. package/dist/82.js +1 -1
  20. package/dist/82.js.map +1 -1
  21. package/dist/846.js +1 -1
  22. package/dist/846.js.map +1 -1
  23. package/dist/91.js +1 -1
  24. package/dist/91.js.map +1 -1
  25. package/dist/961.js +1 -1
  26. package/dist/961.js.map +1 -1
  27. package/dist/main.js +1 -1
  28. package/dist/main.js.map +1 -1
  29. package/dist/openmrs-esm-task-list-app.js +1 -1
  30. package/dist/openmrs-esm-task-list-app.js.buildmanifest.json +91 -112
  31. package/dist/openmrs-esm-task-list-app.js.map +1 -1
  32. package/dist/routes.json +1 -1
  33. package/package.json +5 -8
  34. package/src/index.ts +1 -0
  35. package/src/launch-button/task-list-launch-button.extension.tsx +7 -7
  36. package/src/routes.json +10 -10
  37. package/src/workspace/task-list.workspace.tsx +45 -41
  38. package/dist/334.js +0 -2
  39. package/dist/334.js.map +0 -1
  40. package/dist/547.js +0 -1
  41. package/dist/547.js.map +0 -1
  42. package/dist/685.js +0 -2
  43. package/dist/685.js.map +0 -1
  44. package/dist/869.js +0 -1
  45. package/dist/869.js.map +0 -1
  46. /package/dist/{334.js.LICENSE.txt → 500.js.LICENSE.txt} +0 -0
package/dist/500.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 500.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_openmrs_esm_task_list_app=globalThis.webpackChunk_openmrs_esm_task_list_app||[]).push([[500],{428(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>m});var l=["width","height","viewBox"],s=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(5556),d=n.n(u),f=n(6072);const m=f.forwardRef((function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},d){const{tabindex:m,...p}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=i(e,l),d=u.tabindex,f=i(u,s),m=a(a(a({},c),f),{},{width:t,height:n,viewBox:o});return m["aria-label"]||m["aria-labelledby"]||m.title?(m.role="img",null!=d&&(m.focusable="true",m.tabindex=d)):m["aria-hidden"]=!0,m}({...u,tabindex:n}),h=p;return e&&(h.className=e),null!=m&&(h.tabIndex="number"==typeof m?m:Number(n)),d&&(h.ref=d),r&&(h.xmlns=r),o&&(h.preserveAspectRatio=o),f.createElement("svg",h,t)}));m.displayName="Icon",m.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},2137(e,t,n){"use strict";n.d(t,{OM:()=>p,Qp:()=>b,bE:()=>h,nk:()=>g});var r,o,a,i,l,s,c,u,d,f=n(6072),m=n(428);const p=f.forwardRef((function({children:e,size:t=16,...n},o){return f.createElement(m.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=f.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),e)})),h=f.forwardRef((function({children:e,size:t=16,...n},r){return f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=f.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"})),a||(a=f.createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)})),g=f.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=f.createElement("path",{d:"M6.7 12.3L2.9 8.5 15 8.5 15 7.5 2.9 7.5 6.7 3.7 6 3 1 8 6 13z"})),e):f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},l||(l=f.createElement("path",{d:"M14 26L15.41 24.59 7.83 17 28 17 28 15 7.83 15 15.41 7.41 14 6 4 16 14 26z"})),e)})),b=f.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},s||(s=f.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?f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},c||(c=f.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?f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=f.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):f.createElement(m.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},d||(d=f.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)}))},4535(e,t,n){"use strict";n.d(t,{GK:()=>p,Xj:()=>h,hz:()=>m});var r,o,a,i,l,s,c,u,d=n(6072),f=n(428);const m=d.forwardRef((function({children:e,size:t=16,...n},a){return 16===t||"16"===t||"16px"===t?d.createElement(f.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=d.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):d.createElement(f.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=d.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)})),p=d.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=d.createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},i||(i=d.createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},l||(l=d.createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),e):d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},s||(s=d.createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),e)})),h=d.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},c||(c=d.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):d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},u||(u=d.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)}))},771(e,t,n){"use strict";n.d(t,{$D:()=>v,d3:()=>g,ff:()=>b,x:()=>y});var r,o,a,i,l,s,c,u,d,f,m,p=n(6072),h=n(428);const g=p.forwardRef((function({children:e,size:t=16,...n},o){return p.createElement(h.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=p.createElement("path",{d:"M16 18L6 8 7.4 6.6 16 15.2 24.6 6.6 26 8zM4 22H28V24H4z"})),e)})),b=p.forwardRef((function({children:e,size:t=16,...n},r){return p.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=p.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),e)})),v=p.forwardRef((function({children:e,size:t=16,...n},r){return p.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=p.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)})),y=p.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?p.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=p.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),l||(l=p.createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?p.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=p.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),c||(c=p.createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?p.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=p.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),d||(d=p.createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):p.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=p.createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),m||(m=p.createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)}))},4959(e,t,n){"use strict";n.d(t,{kZS:()=>pi,$nd:()=>Ut,Te$:()=>Zt,Sc0:()=>Rn,a32:()=>jo,KXP:()=>Ha,Tps:()=>Za,lVW:()=>ei,gE_:()=>ti,lRv:()=>ni,Y9Y:()=>dl,V8d:()=>ml,wdv:()=>pl,dJ2:()=>vl,bCw:()=>xl,K0:()=>Wt,OuH:()=>ta,jeF:()=>mi,Wdr:()=>Yo,cwr:()=>za,jlY:()=>ra,rQ0:()=>Jo,XSD:()=>gi,dKS:()=>Ri,aaP:()=>Si,zWQ:()=>Ai,Psq:()=>Oi,vji:()=>Vi,f8J:()=>Rl,ryE:()=>zi,dOG:()=>Fi,GGC:()=>Qa,vwO:()=>Ki,fs1:()=>Zi,ksK:()=>Ji,FAs:()=>il});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,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?r.enableV12ToggleReducedLabelSpacing=!0:r.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?r.enableEnhancedFileUploader=!0:r.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?r.enablePresence=!0:r.enablePresence=!1}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableDialogElement=!1,r.enableV12DynamicFloatingStyles=!1,r.enableV12ToggleReducedLabelSpacing=!1,r.enableEnhancedFileUploader=!1,r.enablePresence=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"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},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:r.enableV12ToggleReducedLabelSpacing},{name:"enable-enhanced-file-uploader",description:"Enable enhanced functionality for the FileUploader component, including richer callback data and expanded trigger events for onChange and onDelete.\n",enabled:r.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:r.enablePresence}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var c=function(){return function(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((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=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=i(t.value,2),o=r[0],a=r[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}])}(),u=new c(void 0),d=0;d<o.length;d++){var f=o[d];u.add(f.name,f.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(){u.merge.apply(u,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 p=n(5556),h=n.n(p),g=n(6072),b=n.t(g,2),v=n(6942),y=n.n(v);const w={},E=(e,t,n)=>(r,o,a,...i)=>{if(void 0===r[o])return null;if(!w[a]||!w[a][o]){w[a]={...w[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,a,...i)},x="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,N=e=>{const t=(0,g.useMemo)((()=>e),e);return(0,g.useCallback)((e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}),[t])},C=g.createContext("cds");function $(){return g.useContext(C)}const _=(e,t)=>{const n=(0,g.useRef)(null);(0,g.useEffect)((()=>{n.current=t}),[t]),(0,g.useEffect)((()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}}),[e])},T={"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"},I=e=>T[e]??e;var R="undefined"!=typeof document?g.useLayoutEffect:g.useEffect;const S={...b}.useInsertionEffect||(e=>e());function O(){return"undefined"!=typeof window}function k(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!O()&&(e instanceof Node||e instanceof A(e).Node)}function D(e){return!!O()&&(e instanceof Element||e instanceof A(e).Element)}function B(e){return!!O()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function V(e){return!(!O()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function P(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function z(e){return["table","td","th"].includes(k(e))}function F(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function H(e){const t=q(),n=D(e)?W(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function j(e){return["html","body","#document"].includes(k(e))}function W(e){return A(e).getComputedStyle(e)}function K(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===k(e))return e;const t=e.assignedSlot||e.parentNode||V(e)&&e.host||L(e);return V(t)?t.host:t}function Z(e){const t=U(e);return j(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&P(t)?t:Z(t)}function G(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Z(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=A(o);if(a){const e=X(i);return t.concat(i,i.visualViewport||[],P(o)?o:[],e&&n?G(e):[])}return t.concat(o,G(o,[],n))}function X(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n(4848);var Y=n(961);const J=["top","right","bottom","left"],Q=Math.min,ee=Math.max,te=Math.round,ne=Math.floor,re=e=>({x:e,y:e}),oe={left:"right",right:"left",bottom:"top",top:"bottom"},ae={start:"end",end:"start"};function ie(e,t,n){return ee(e,Q(t,n))}function le(e,t){return"function"==typeof e?e(t):e}function se(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function ue(e){return"y"===e?"height":"width"}function de(e){return["top","bottom"].includes(se(e))?"y":"x"}function fe(e){return"x"===de(e)?"y":"x"}function me(e){return e.replace(/start|end/g,(e=>ae[e]))}function pe(e){return e.replace(/left|right|bottom|top/g,(e=>oe[e]))}function he(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 ge(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 be(e,t,n){let{reference:r,floating:o}=e;const a=de(t),i=fe(t),l=ue(i),s=se(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 m;switch(s){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(ce(t)){case"start":m[i]-=f*(n&&c?-1:1);break;case"end":m[i]+=f*(n&&c?-1:1)}return m}async function ve(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:m=0}=le(t,e),p=he(m),h=l[f?"floating"===d?"reference":"floating":d],g=ge(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,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=ge(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-w.top+p.top)/y.y,bottom:(w.bottom-g.bottom+p.bottom)/y.y,left:(g.left-w.left+p.left)/y.x,right:(w.right-g.right+p.right)/y.x}}function ye(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function we(e){return J.some((t=>e[t]>=0))}function Ee(e){const t=W(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=B(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=te(n)!==a||te(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function xe(e){return D(e)?e:e.contextElement}function Ne(e){const t=xe(e);if(!B(t))return re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ee(t);let i=(a?te(n.width):n.width)/r,l=(a?te(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Ce=re(0);function $e(e){const t=A(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ce}function _e(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=xe(e);let i=re(1);t&&(r?D(r)&&(i=Ne(r)):i=Ne(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==A(e))&&t}(a,n,r)?$e(a):re(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=A(a),t=r&&D(r)?A(r):r;let n=e,o=X(n);for(;o&&r&&t!==n;){const e=Ne(o),t=o.getBoundingClientRect(),r=W(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=A(o),o=X(n)}}return ge({width:u,height:d,x:s,y:c})}function Te(e,t){const n=K(e).scrollLeft;return t?t.left+n:_e(L(e)).left+n}function Ie(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Te(e,r)),y:r.top+t.scrollTop}}function Re(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=A(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=q();(!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=K(e),r=e.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Te(e);const l=-n.scrollTop;return"rtl"===W(r).direction&&(i+=ee(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(L(e));else if(D(t))r=function(e,t){const n=_e(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=B(e)?Ne(e):re(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=$e(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ge(r)}function Se(e,t){const n=U(e);return!(n===t||!D(n)||j(n))&&("fixed"===W(n).position||Se(n,t))}function Oe(e,t,n){const r=B(t),o=L(t),a="fixed"===n,i=_e(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=re(0);function c(){s.x=Te(o)}if(r||!r&&!a)if(("body"!==k(t)||P(o))&&(l=K(t)),r){const e=_e(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?re(0):Ie(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 ke(e){return"static"===W(e).position}function Ae(e,t){if(!B(e)||"fixed"===W(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){const n=A(e);if(F(e))return n;if(!B(e)){let t=U(e);for(;t&&!j(t);){if(D(t)&&!ke(t))return t;t=U(t)}return n}let r=Ae(e,t);for(;r&&z(r)&&ke(r);)r=Ae(r,t);return r&&j(r)&&ke(r)&&!H(r)?n:r||function(e){let t=U(e);for(;B(t)&&!j(t);){if(H(t))return t;if(F(t))return null;t=U(t)}return null}(e)||n}const Me={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=L(r),l=!!t&&F(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},c=re(1);const u=re(0),d=B(r);if((d||!d&&!a)&&(("body"!==k(r)||P(i))&&(s=K(r)),B(r))){const e=_e(r);c=Ne(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?re(0):Ie(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?F(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=G(e,[],!1).filter((e=>D(e)&&"body"!==k(e))),o=null;const a="fixed"===W(e).position;let i=a?U(e):e;for(;D(i)&&!j(i);){const t=W(i),n=H(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||P(i)&&!n&&Se(e,i))?r=r.filter((e=>e!==i)):o=t,i=U(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce(((e,n)=>{const r=Re(t,n,o);return e.top=ee(r.top,e.top),e.right=Q(r.right,e.right),e.bottom=Q(r.bottom,e.bottom),e.left=ee(r.left,e.left),e}),Re(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Le,getElementRects:async function(e){const t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Oe(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}=Ee(e);return{width:t,height:n}},getScale:Ne,isElement:D,isRTL:function(e){return"rtl"===W(e).direction}};function De(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Be(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=xe(e),u=o||a?[...c?G(c):[],...G(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:m}=c;if(l||t(),!f||!m)return;const p={rootMargin:-ne(d)+"px "+-ne(o.clientWidth-(u+f))+"px "+-ne(o.clientHeight-(d+m))+"px "+-ne(u)+"px",threshold:ee(0,Q(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||De(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),a}(c,n):null;let f,m=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!s&&p.observe(c),p.observe(t));let h=s?_e(e):null;return s&&function t(){const r=_e(e);h&&!De(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=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(f)}}const Ve=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=se(n),l=ce(n),s="y"===de(n),c=["left","top"].includes(i)?-1:1,u=a&&s?-1:1,d=le(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof p&&(m="end"===l?-1*p:p),s?{x:m*u,y:f*c}:{x:f*c,y:m*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}}}}},Pe=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:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=le(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=se(o),v=de(l),y=se(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(y||!h?[pe(l)]:function(e){const t=pe(e);return[me(e),t,me(t)]}(l)),x="none"!==p;!f&&x&&E.push(...function(e,t,n,r){const o=ce(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(se(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(me)))),a}(l,h,p,w));const N=[l,...E],C=await ve(t,g),$=[];let _=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&$.push(C[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ce(e),o=fe(e),a=ue(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=pe(i)),[i,pe(i)]}(o,i,w);$.push(C[e[0]],C[e[1]])}if(_=[..._,{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){var R;const n="alignment"===d&&v!==de(t),r=(null==(R=_[0])?void 0:R.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:_},reset:{placement:t}}}let n=null==(I=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(m){case"bestFit":{var S;const e=null==(S=_.filter((e=>{if(x){const t=de(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},ze=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=le(e,t);switch(r){case"referenceHidden":{const e=ye(await ve(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:we(e)}}}case"escaped":{const e=ye(await ve(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:we(e)}}}default:return{}}}}},Fe=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}=le(e,t)||{};if(null==c)return{};const d=he(u),f={x:n,y:r},m=fe(o),p=ue(m),h=await i.getDimensions(c),g="y"===m,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[m]-f[m]-a.floating[p],E=f[m]-a.reference[m],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let N=x?x[y]:0;N&&await(null==i.isElement?void 0:i.isElement(x))||(N=l.floating[y]||a.floating[p]);const C=w/2-E/2,$=N/2-h[p]/2-1,_=Q(d[b],$),T=Q(d[v],$),I=_,R=N-h[p]-T,S=N/2-h[p]/2+C,O=ie(I,S,R),k=!s.arrow&&null!=ce(o)&&S!==O&&a.reference[p]/2-(S<I?_:T)-h[p]/2<0,A=k?S<I?S-I:S-R:0;return{[m]:f[m]+A,data:{[m]:O,centerOffset:S-O-A,...k&&{alignmentOffset:A}},reset:k}}}),He=(e,t,n)=>{const r=new Map,o={platform:Me,...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}=be(c,r,s),f=r,m={},p=0;for(let n=0;n<l.length;n++){const{name:a,fn:h}=l[n],{x:g,y:b,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,m={...m,[a]:{...m[a],...v}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=be(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:a})};var qe="undefined"!=typeof document?g.useLayoutEffect:g.useEffect;function je(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(!je(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||je(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function We(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ke(e,t){const n=We(e);return Math.round(t*n)/n}function Ue(e){const t=g.useRef(e);return qe((()=>{t.current=e})),t}const Ze=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?Fe({element:n.current,padding:r}).fn(t):{}:n?Fe({element:n,padding:r}).fn(t):{};var o}}),Ge=(e,t)=>({...Pe(e),options:[e,t]}),Xe=(e,t)=>({...ze(e),options:[e,t]}),Ye=(e,t)=>({...Ze(e),options:[e,t]});const Je={...b};let Qe=!1,et=0;const tt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+et++,nt=Je.useId||function(){const[e,t]=g.useState((()=>Qe?tt():void 0));return R((()=>{null==e&&t(tt())}),[]),g.useEffect((()=>{Qe=!0}),[]),e};const rt=g.createContext(null),ot=g.createContext(null);function at(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=nt(),a=g.useRef({}),[i]=g.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),l=null!=((null==(s=g.useContext(rt))?void 0:s.id)||null);var s;const[c,u]=g.useState(r.reference),d=function(e){const t=g.useRef((()=>{}));return S((()=>{t.current=e})),g.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=g.useMemo((()=>({setPositionReference:u})),[]),m=g.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return g.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:m,events:i,floatingId:o,refs:f})),[t,d,m,i,o,f])}function it(e){void 0===e&&(e={});const{nodeId:t}=e,n=at({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=g.useState(null),[l,s]=g.useState(null),c=(null==o?void 0:o.domReference)||a,u=g.useRef(null),d=g.useContext(ot);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]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=g.useState(r);je(f,r)||m(r);const[p,h]=g.useState(null),[b,v]=g.useState(null),y=g.useCallback((e=>{e!==N.current&&(N.current=e,h(e))}),[]),w=g.useCallback((e=>{e!==C.current&&(C.current=e,v(e))}),[]),E=a||p,x=i||b,N=g.useRef(null),C=g.useRef(null),$=g.useRef(u),_=null!=s,T=Ue(s),I=Ue(o),R=Ue(c),S=g.useCallback((()=>{if(!N.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};I.current&&(e.platform=I.current),He(N.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!je($.current,t)&&($.current=t,Y.flushSync((()=>{d(t)})))}))}),[f,t,n,I,R]);qe((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=g.useRef(!1);qe((()=>(O.current=!0,()=>{O.current=!1})),[]),qe((()=>{if(E&&(N.current=E),x&&(C.current=x),E&&x){if(T.current)return T.current(E,x,S);S()}}),[E,x,S,T,_]);const k=g.useMemo((()=>({reference:N,floating:C,setReference:y,setFloating:w})),[y,w]),A=g.useMemo((()=>({reference:E,floating:x})),[E,x]),L=g.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Ke(A.floating,u.x),r=Ke(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...We(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,A.floating,u.x,u.y]);return g.useMemo((()=>({...u,update:S,refs:k,elements:A,floatingStyles:L})),[u,S,k,A,L])}({...e,elements:{...o,...l&&{reference:l}}}),m=g.useCallback((e=>{const t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)}),[f.refs]),p=g.useCallback((e=>{(D(e)||null===e)&&(u.current=e,i(e)),(D(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!D(e))&&f.refs.setReference(e)}),[f.refs]),h=g.useMemo((()=>({...f.refs,setReference:p,setPositionReference:m,domReference:u})),[f.refs,p,m]),b=g.useMemo((()=>({...f.elements,domReference:c})),[f.elements,c]),v=g.useMemo((()=>({...f,...r,refs:h,elements:b,nodeId:t})),[f,h,b,t,r]);return R((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),g.useMemo((()=>({...f,context:v,refs:h,elements:b})),[f,h,b,v])}const lt=new Map,st=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;lt.has(r)||lt.set(r,new Set);const a=lt.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...o)},ct=(0,g.createContext)(u);function ut(e){return(0,g.useContext)(ct).enabled(e)}h().node,st(h().objectOf(h().bool)),h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool;const dt=g.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),ft=g.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 b=$(),v=(0,g.useRef)(null),w=(0,g.useRef)(null),E=(0,g.useRef)(null),C=ut("enable-v12-dynamic-floating-styles")||r;let T=I(t);((e,t,n)=>{const r=(0,g.useRef)(null);(0,g.useEffect)((()=>{r.current=n}),[n]),(0,g.useEffect)((()=>{const n="current"in e?e.current:e;if(!n)return;const o=e=>{r.current&&r.current(e)};return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}}),[e,t])})(E,"focusout",(t=>{const n=t.relatedTarget;if(e)return void(n&&!E.current?.contains(n)&&u?.());if(!n)return void u?.();const r=!E.current?.contains(n),o=!C||!O.floating.current||!O.floating.current.contains(n);r&&o&&u?.()})),_("click",(({target:e})=>{d&&e instanceof Node&&!E.current?.contains(e)&&u?.()}));const R=g.Children.toArray(l).some((e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label")))?7:6,S=(0,g.useRef)({offset:10,caretHeight:R});x((()=>{if(a&&E.current){const e=window.getComputedStyle(E.current,null),t=e.getPropertyValue("--cds-popover-offset"),n=e.getPropertyValue("--cds-popover-caret-height");t&&(S.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(S.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}}));const{refs:O,floatingStyles:k,placement:A,middlewareData:L}=it(C?{placement:T,strategy:"fixed",middleware:[(M=e?0:{alignmentAxis:f,mainAxis:S?.current?.offset},{...Ve(M),options:[M,undefined]}),r&&Ge({fallbackPlacements:e?T.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:T.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}),Ye({element:w}),r&&Xe()],whileElementsMounted:Be}:{});var M;const D=(0,g.useMemo)((()=>({floating:v,setFloating:O.setFloating,caretRef:w,autoAlign:r})),[O.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(T)||(T="bottom-start")),(0,g.useEffect)((()=>{if(C){const e={...k,visibility:L.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach((t=>{O.floating.current&&(O.floating.current.style[t]=e[t])})),a&&L&&L.arrow&&w?.current){const{x:e,y:t}=L.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[A.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]=-S?.current?.caretHeight+"px")}}}),[k,O.floating,C,L,A,a]);const B=N([h,E]),V=r&&A!==T?A:T,P=y()({[`${b}--popover-container`]:!0,[`${b}--popover--caret`]:a,[`${b}--popover--drop-shadow`]:s,[`${b}--popover--high-contrast`]:c,[`${b}--popover--open`]:d,[`${b}--popover--auto-align ${b}--autoalign`]:C,[`${b}--popover--${V}`]:!0,[`${b}--popover--tab-tip`]:e},i),z=g.Children.map(l,(t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,a=C&&r&&["ToggletipButton"].includes(r),i=C&&!["ToggletipContent","PopoverContent"].includes(r);if(g.isValidElement(n)&&(o||a||i)){const t=n?.props?.className,r=(n?.props).ref,o=y()(`${b}--popover--tab-tip__button`,t);return g.cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(C&&n?.type!==pt||C&&"ToggletipButton"===n?.type.displayName)&&O.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n})),F=n;return g.createElement(dt.Provider,{value:D},g.createElement(F,m({},p,{className:P,ref:B}),C||e?z:l))}));function mt({className:e,children:t,...n},r){const o=$(),{setFloating:a,caretRef:i,autoAlign:l}=g.useContext(dt),s=N([a,r]),c=ut("enable-v12-dynamic-floating-styles")||l;return g.createElement("span",m({},n,{className:`${o}--popover`}),g.createElement("span",{className:y()(`${o}--popover-content`,e),ref:s},t,c&&g.createElement("span",{className:y()({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:i})),!c&&g.createElement("span",{className:y()({[`${o}--popover-caret`]:!0}),ref:i}))}ft.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],I),alignmentAxisOffset:h().number,as:h().oneOfType([h().string,h().elementType]),autoAlign:h().bool,autoAlignBoundary:h().oneOfType([h().oneOf(["clippingAncestors"]),h().elementType,h().arrayOf(h().elementType),h().exact({x:h().number.isRequired,y:h().number.isRequired,width:h().number.isRequired,height:h().number.isRequired})]),caret:h().bool,children:h().node,className:h().string,dropShadow:h().bool,highContrast:h().bool,isTabTip:h().bool,onRequestClose:h().func,open:h().bool.isRequired};const pt=g.forwardRef(mt);pt.displayName="PopoverContent",pt.propTypes={children:h().node,className:h().string};const ht={key:"Tab",which:9,keyCode:9,code:"Tab"},gt={key:"Enter",which:13,keyCode:13,code:"Enter"},bt={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},vt={key:" ",which:32,keyCode:32,code:"Space"},yt={key:"End",which:35,keyCode:35,code:"Numpad1"},wt={key:"Home",which:36,keyCode:36,code:"Numpad7"},Et={key:"ArrowLeft",which:37,keyCode:37,code:"ArrowLeft"},xt={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},Nt={key:"ArrowRight",which:39,keyCode:39,code:"ArrowRight"},Ct={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},$t=(e,t)=>{for(let n=0;n<t.length;n++)if(_t(e,t[n]))return!0;return!1},_t=(e,{key:t,which:n,keyCode:r,code:o})=>"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o;function Tt(e){const[t,n]=(0,g.useState)(e),r=(0,g.useRef)(null),o=(0,g.useCallback)(((e,t=0)=>{window.clearTimeout(r.current??void 0),r.current=null,0!==t?r.current=window.setTimeout((()=>{n(e),r.current=null}),t):n(e)}),[]);return(0,g.useEffect)((()=>()=>{window.clearTimeout(r.current??void 0)}),[]),[t,o]}const It=!("undefined"==typeof window||!window.document||!window.document.createElement),Rt=g.createContext(null);function St(){return g.useContext(Rt)}const Ot={...g},kt=(()=>{let e=0;return()=>++e})(),At=It?g.useLayoutEffect:g.useEffect;let Lt=!1;const Mt=Ot.useId?function(e="id"){const t=St();return`${t?`${t}-`:""}${e}-${Ot.useId()}`}:function(e="id"){const t=St(),[n,r]=(0,g.useState)((()=>Lt?`${t?`${t}-`:""}${e}-${kt()}`:null));return At((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${kt()}`)}),[kt]),(0,g.useEffect)((()=>{!1===Lt&&(Lt=!0)}),[]),n};function Dt(e){const t=Mt();return e??t}const Bt=e=>{if(!e||!e.childNodes)return null;if(Pt(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Bt(t);if(e)return e}return null},Vt=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=Vt(t);if(e)return e}return null},Pt=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}},zt=new Set(["mouseup","touchend","touchcancel"]),Ft=g.forwardRef((({as:e,align:t="top",className:n,children:r,label:o,description:a,enterDelayMs:i=100,leaveDelayMs:l=300,defaultOpen:s=!1,closeOnActivation:c=!1,dropShadow:u=!1,highContrast:d=!0,...f},p)=>{(0,g.useRef)(null);const[h,b]=Tt(s),[v,w]=(0,g.useState)(!1),[E,N]=(0,g.useState)(!1),[C,_]=(0,g.useState)(!1),T=Mt("tooltip"),I=$(),R=g.Children.only(r),{"aria-labelledby":S,"aria-describedby":O}=R?.props??{},k=!!o,A={onFocus:()=>!E&&b(!0),onBlur:()=>{b(!1),N(!1)},onClick:()=>c&&b(!1),onMouseEnter:M,onMouseLeave:D,onMouseDown:function(){N(!0),B()},onMouseMove:function(e){1===e.buttons?w(!0):w(!1)},onTouchStart:B,"aria-labelledby":S??(k?T:void 0),"aria-describedby":O??(k?void 0:T)},L=(0,g.useCallback)((e=>{h&&_t(e,bt)&&(e.stopPropagation(),b(!1)),h&&c&&(_t(e,gt)||_t(e,vt))&&b(!1)}),[c,h,b]);function M(){f?.onMouseEnter||(_(!0),b(!0,i))}function D(){_(!1),v||b(!1,l)}function B(){w(!0)}x((()=>{if(h)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){_t(e,bt)&&L(e)}}),[h,L]);const V=(0,g.useCallback)((()=>{w(!1),C||b(!1,l)}),[C,l,b]);return(0,g.useEffect)((()=>(v&&zt.forEach((e=>{document.addEventListener(e,V)})),()=>{zt.forEach((e=>{document.removeEventListener(e,V)}))})),[v,V]),g.createElement(ft,m({as:e,ref:p},f,{align:t,className:y()(`${I}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:L,onMouseLeave:D,open:h}),g.createElement("div",{className:`${I}--tooltip-trigger__wrapper`},void 0!==R?g.cloneElement(R,{...A,...function(e){const t=Object.keys(A).filter((e=>e.startsWith("on"))),n={};return t.forEach((t=>{n[t]=n=>{A[t](n),e?.[t]&&e?.[t](n)}})),n}(R.props)}):null),g.createElement(pt,{"aria-hidden":h?"false":"true",className:`${I}--tooltip-content`,id:T,onMouseEnter:M,role:"tooltip"},o||a))}));Ft.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,description:h().node,dropShadow:h().bool,enterDelayMs:h().number,highContrast:h().bool,label:h().node,leaveDelayMs:h().number};const Ht=g.forwardRef((function({as:e,children:t,className:n,dangerDescription:r="danger",disabled:o=!1,hasIconOnly:a=!1,href:i,iconDescription:l,isExpressive:s=!1,isSelected:c,kind:u="primary",onBlur:d,onClick:f,onFocus:m,onMouseEnter:p,onMouseLeave:h,renderIcon:b,size:v,tabIndex:w,type:E="button",...x},N){const C=$(),_={tabIndex:w,className:y()(n,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:"xs"===v&&!s,[`${C}--btn--sm`]:"sm"===v&&!s,[`${C}--btn--md`]:"md"===v&&!s,[`${C}--btn--lg`]:"lg"===v&&!s,[`${C}--btn--xl`]:"xl"===v,[`${C}--btn--2xl`]:"2xl"===v,[`${C}--layout--size-${v}`]:v,[`${C}--btn--${u}`]:u,[`${C}--btn--disabled`]:o,[`${C}--btn--expressive`]:s,[`${C}--btn--icon-only`]:a,[`${C}--btn--selected`]:a&&c&&"ghost"===u}),ref:N},T=b?g.createElement(b,{"aria-label":l,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,I=["danger","danger--tertiary","danger--ghost"];let R="button";const S=Mt("danger-description"),{"aria-pressed":O,"aria-describedby":k}=x;let A={disabled:o,type:E,"aria-describedby":I.includes(u)?S:k||void 0,"aria-pressed":O??(a&&"ghost"===u?c:void 0)};const L={href:i};let M=null;return I.includes(u)&&(M=g.createElement("span",{id:S,className:`${C}--visually-hidden`},r)),e?(R=e,A={...A,...L}):i&&!o&&(R="a",A=L),g.createElement(R,{onMouseEnter:p,onMouseLeave:h,onFocus:m,onBlur:d,onClick:f,...x,..._,...A},M,t,T)})),qt=g.forwardRef((function({className:e,count:t,...n},r){const o=$(),a=y()(`${o}--badge-indicator`,e,{[`${o}--badge-indicator--count`]:t}),i=t&&t>999?"999+":t;return g.createElement("div",m({className:a,ref:r},n),i)}));qt.propTypes={className:h().string,count:h().number,id:h().string};const jt=["primary","secondary","ghost","tertiary"],Wt=g.forwardRef((({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:a=!0,defaultOpen:i=!1,disabled:l,dropShadow:s=!1,enterDelayMs:c=100,highContrast:u=!0,kind:d,label:f,leaveDelayMs:p=100,wrapperClasses:h,size:b,isSelected:v,...w},E)=>{const x=$(),N=y()(h,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});!n||"ghost"===d&&"lg"===b||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const C=Mt("badge-indicator");return g.createElement(Ft,{align:e,autoAlign:t,closeOnActivation:a,className:N,defaultOpen:i,dropShadow:s,enterDelayMs:c,highContrast:u,label:f,leaveDelayMs:p},g.createElement(Ht,m({},w,{disabled:l,kind:d,ref:E,size:b,isSelected:v,hasIconOnly:!0,className:o,"aria-describedby":w["aria-describedby"]||n&&C}),r,!l&&void 0!==n&&g.createElement(qt,{id:C,count:n>0?n:void 0})))}));Wt.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],I),autoAlign:h().bool,badgeCount:h().number,href:h().string,children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,dropShadow:h().bool,disabled:h().bool,enterDelayMs:h().number,isSelected:h().bool,highContrast:h().bool,kind:h().oneOf(jt),label:h().node.isRequired,leaveDelayMs:h().number,rel:h().string,size:h().oneOf(["sm","md","lg"]),target:h().string,wrapperClasses:h().string};const Kt=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],Ut=g.forwardRef(((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:a=!1,tooltipHighContrast:i=!0,tooltipDropShadow:l=!1,iconDescription:s,kind:c="primary",onBlur:u,onClick:d,onFocus:f,onMouseEnter:p,onMouseLeave:h,renderIcon:b,size:v,tooltipAlignment:y="center",tooltipPosition:w="top",...E}=e;!b||o||s||console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const x=b?g.createElement(b,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),g.createElement(Wt,m({},E,{ref:t,as:n,align:e,label:s,kind:c,size:v,highContrast:i,dropShadow:l,onMouseEnter:p,onMouseLeave:h,onFocus:f,onBlur:u,autoAlign:r,onClick:d,renderIcon:x?null:b}),x??o)}{const{tooltipAlignment:n,...r}=e;return g.createElement(Ht,m({ref:t},r))}}));Ut.displayName="Button",Ut.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),autoAlign:h().bool,children:h().node,className:h().string,dangerDescription:h().string,disabled:h().bool,hasIconOnly:h().bool,href:h().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:h().bool,isSelected:h().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?jt:Kt;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:h().func,onClick:h().func,onFocus:h().func,onMouseEnter:h().func,onMouseLeave:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:h().string,size:h().oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:h().number,target:h().string,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool,tooltipPosition:h().oneOf(["top","right","bottom","left"]),type:h().oneOf(["button","reset","submit"])};const Zt=(0,g.forwardRef)(((e,t)=>{const{children:n,className:r,stacked:o,...a}=e,i=$(),l=y()(r,`${i}--btn-set`,{[`${i}--btn-set--stacked`]:o});return g.createElement("div",m({},a,{className:l,ref:t}),n)}));Zt.displayName="ButtonSet",Zt.propTypes={children:h().node,className:h().string,stacked:h().bool};const Gt=(0,g.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Xt=g.forwardRef((({as:e,children:t,dir:n="auto",...r},o)=>{const a=(0,g.useContext)(Gt),i={},l=e??"span",s={...a};if(a){const{direction:e,getTextDirection:r}=a;if(r&&r.current){const n=Yt(t),o=r.current(n);e!==o?(i.dir=o,s.direction=o):"auto"===e&&(i.dir=o)}else e!==n?(i.dir=n,s.direction=n):"auto"===e&&(i.dir=n)}else i.dir=n,s.direction=n;return g.createElement(Gt.Provider,{value:s},g.createElement(l,m({ref:o},r,i),t))}));Xt.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node.isRequired,dir:h().oneOf(["ltr","rtl","auto"])};const Yt=e=>{if("string"==typeof e)return e;const t=g.Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===t?.length?t[0]:t};var Jt,Qt,en,tn,nn,rn,on,an,ln,sn,cn,un=n(428);const dn=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Jt||(Jt=g.createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),Qt||(Qt=g.createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),en||(en=g.createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),e)})),fn=g.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},tn||(tn=g.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),nn||(nn=g.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},rn||(rn=g.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),on||(on=g.createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},an||(an=g.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),ln||(ln=g.createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},sn||(sn=g.createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),cn||(cn=g.createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),e)})),mn=()=>{};h().elementType,h().node,h().string;const pn=g.createContext(void 0);function hn(){return(0,g.useContext)(pn)}function gn({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:a=!1,...i}){const l=(0,g.useRef)(null),[s,c]=(0,g.useState)(a),u=$(),d=Mt(),f=y()(`${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 _("blur",(()=>{s&&p.close()})),(0,g.useEffect)((()=>{if(!l.current)return;const e=l.current.ownerDocument||document,t="PointerEvent"in window?"pointerdown":"mousedown",n=e=>{const t=e.target;s&&t&&!l.current.contains(t)&&c(!1)},r={capture:!0};return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}),[s]),g.createElement(pn.Provider,{value:h},g.createElement(ft,m({align:e,as:t,caret:!0,className:f,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&_t(e,bt)){e.stopPropagation(),p.close();const t=l.current?.children[0];t instanceof HTMLButtonElement&&t.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||p.close()},ref:l,autoAlign:n},i),o))}const{open:bn,...vn}=ft.propTypes??{};gn.propTypes={...vn,defaultOpen:h().bool};const yn=g.forwardRef((function({children:e,className:t,label:n="Show information",as:r,...o},a){const i=hn(),l=$(),s=y()(`${l}--toggletip-button`,t),c=r??"button";return"button"!==c?g.createElement(c,m({},i?.onClick,{className:s},o),e):g.createElement("button",m({},i?.buttonProps,{"aria-label":n,type:"button",className:s,ref:a},o),e)}));yn.propTypes={children:h().node,className:h().string,label:h().string},yn.displayName="ToggletipButton";const wn=g.forwardRef((function({children:e,className:t},n){const r=hn(),o=$();return g.createElement(pt,m({className:t},r?.contentProps,{ref:n}),g.createElement("div",{className:`${o}--toggletip-content`},e))}));function En({children:e,className:t}){const n=$(),r=y()(`${n}--toggletip-actions`,t);return g.createElement("div",{className:r},e)}var xn;wn.propTypes={children:h().node,className:h().string},wn.displayName="ToggletipContent",En.propTypes={children:h().node,className:h().string};const Nn=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},xn||(xn=g.createElement("path",{d:"M20,10H7.8149l3.5874-3.5859L10,5,4,11,10,17l1.4023-1.4146L7.8179,12H20a6,6,0,0,1,0,12H12v2h8a8,8,0,0,0,0-16Z"})),e)}));var Cn;const $n=g.forwardRef((function({className:e,children:t},n){const r=$(),o=g.Children.toArray(t).some((e=>{e.type})),a=y()(e,{[`${r}--ai-label-content`]:!0,[`${r}--ai-label-content--with-actions`]:o});return g.createElement(wn,{className:a},t)}));$n.displayName="AILabelContent",$n.propTypes={children:h().node,className:h().string};const _n=g.forwardRef((function({className:e,children:t},n){const r=$(),o=y()(e,{[`${r}--ai-label-actions`]:!0});return g.createElement(En,{className:o},t)}));_n.displayName="AILabelActions",_n.propTypes={children:h().node,className:h().string};const Tn=g.forwardRef((function({aiText:e="AI",aiTextLabel:t,textLabel:n,align:r,autoAlign:o=!0,children:a,className:i,kind:l="default",onRevertClick:s,revertActive:c,revertLabel:u="Revert to AI input",slugLabel:d="Show information","aria-label":f="Show information",size:p="xs",...h},b){const v=$(),w=Mt("AILabel"),E=y()(i,{[`${v}--ai-label`]:!0,[`${v}--ai-label--revert`]:c}),x=y()({[`${v}--ai-label__button`]:!0,[`${v}--ai-label__button--${p}`]:p,[`${v}--ai-label__button--${l}`]:l,[`${v}--ai-label__button--inline-with-content`]:"inline"===l&&(t||n)}),N=t||n?`${e} ${t||n}`:`${e} ${d||f}`,C=["xs","2xs","mini"].includes(p);return g.createElement("div",{className:E,ref:b,id:w},c?g.createElement(Wt,m({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},h),Cn||(Cn=g.createElement(Nn,null))):g.createElement(gn,m({align:r,autoAlign:o,alignmentAxisOffset:C?-24:0},h),g.createElement(yn,{className:x,label:"inline"===l?"":N},g.createElement("span",{className:`${v}--ai-label__text`},e),"inline"===l&&(t||n)&&g.createElement("span",{className:`${v}--ai-label__additional-text`},t||n)),a))}));Tn.displayName="AILabel",Tn.propTypes={...gn.propTypes,AILabelContent:h().node,aiText:h().string,aiTextLabel:st(h().string),"aria-label":h().string,kind:h().oneOf(["default","inline"]),onRevertClick:h().func,revertActive:h().bool,revertLabel:h().string,size:h().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:st(h().string),textLabel:h().string};const In=(e,t)=>(0,g.isValidElement)(e)&&e.type===t,Rn=g.forwardRef((({className:e,decorator:t,helperText:n,id:r,labelText:o,onChange:a=mn,onClick:i,indeterminate:l=!1,invalid:s,invalidText:c,hideLabel:u,readOnly:d,title:f="",warn:p,warnText:h,slug:b,...v},w)=>{const E=$(),x=!d&&!s&&p,N=!s&&!p,C=Mt(),_=n?`checkbox-helper-text-${C}`:void 0,T=n?g.createElement("div",{id:_,className:`${E}--form__helper-text`},n):null,I=y()(`${E}--form-item`,`${E}--checkbox-wrapper`,e,{[`${E}--checkbox-wrapper--readonly`]:d,[`${E}--checkbox-wrapper--invalid`]:!d&&s,[`${E}--checkbox-wrapper--warning`]:x,[`${E}--checkbox-wrapper--slug`]:b,[`${E}--checkbox-wrapper--decorator`]:t}),R=y()(`${E}--checkbox-label-text`,{[`${E}--visually-hidden`]:u}),S=b??t,O=In(S,Tn)?(0,g.cloneElement)(S,{size:"inline"===S.props.kind?"md":"mini"}):null;return g.createElement("div",{className:I},g.createElement("input",m({},v,{type:"checkbox","data-invalid":!!s||void 0,onChange:e=>{!d&&a&&a(e,{checked:e.target.checked,id:r})},className:`${E}--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)}})),g.createElement("label",{htmlFor:r,className:`${E}--checkbox-label`,title:f},g.createElement(Xt,{className:R},o,b?O:t?g.createElement("div",{className:`${E}--checkbox-wrapper-inner--decorator`},O):"")),g.createElement("div",{className:`${E}--checkbox__validation-msg`},!d&&s&&g.createElement(g.Fragment,null,g.createElement(fn,{className:`${E}--checkbox__invalid-icon`}),g.createElement("div",{className:`${E}--form-requirement`},c)),x&&g.createElement(g.Fragment,null,g.createElement(dn,{className:`${E}--checkbox__invalid-icon ${E}--checkbox__invalid-icon--warning`}),g.createElement("div",{className:`${E}--form-requirement`},h))),N&&T)}));function Sn(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}function On(){return On=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},On.apply(null,arguments)}Rn.propTypes={checked:h().bool,className:h().string,decorator:h().node,defaultChecked:h().bool,disabled:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string.isRequired,indeterminate:h().bool,invalid:h().bool,invalidText:h().node,labelText:h().node.isRequired,onChange:h().func,readOnly:h().bool,slug:st(h().node),title:h().string,warn:h().bool,warnText:h().node},Rn.displayName="Checkbox",n(4353);const kn=e=>"object"==typeof e&&null!=e&&1===e.nodeType,An=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ln=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return An(n.overflowY,t)||An(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},Mn=(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,Dn=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Bn=function(){return Bn=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},Bn.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Vn=0;function Pn(){}function zn(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Fn(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 Hn(){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 qn(){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 jn(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=Wn(t,r)?t[r]:e[r],n}),{}):e}function Wn(e,t){return void 0!==e[t]}function Kn(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=Un(l,t<0,n,r,o);return-1===s?e>=a?-1:e:s}function Un(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?Un(t?a-1:0,t,n,r):-1}function Zn(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(zn(t,e,n)||r&&zn(t,n.document.activeElement,n))}))}var Gn=Fn((function(e){Xn(e).textContent=""}),500);function Xn(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 Yn={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Jn=Fn((function(e,t){!function(e,t){e&&t&&(Xn(t).textContent=e,Gn(t))}(e,t)}),200),Qn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g.useLayoutEffect:g.useEffect,er="useId"in g?function(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,a=e.toggleButtonId,i=e.inputId,l="downshift-"+g.useId();t||(t=l);var s=(0,g.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(Vn++):t,r=e.labelId,o=e.menuId,a=e.getItemId,i=e.toggleButtonId,l=e.inputId,s=(0,g.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 tr(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function nr(e){var t=(0,g.useRef)(e);return t.current=e,t}function rr(e,t,n,r){var o=(0,g.useRef)(),a=(0,g.useRef)(),i=(0,g.useCallback)((function(t,n){a.current=n,t=jn(t,n.props);var r=e(t,n);return n.props.stateReducer(t,On({},n,{changes:r}))}),[e]),l=(0,g.useReducer)(i,t,n),s=l[0],c=l[1],u=nr(t),d=(0,g.useCallback)((function(e){return c(On({props:u.current},e))}),[u]),f=a.current;return(0,g.useEffect)((function(){var e=jn(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"+tr(e)+"Change";o[i]&&void 0!==r[e]&&r[e]!==n[e]&&o[i](On({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(On({type:o},a))}(f,e,s),o.current=s}),[s,f,r]),[s,d]}var or={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(!kn(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,m=[];let p=e;for(;kn(p)&&d(p);){if(p=Dn(p),p===f){m.push(p);break}null!=p&&p===document.body&&Ln(p)&&!Ln(document.documentElement)||null!=p&&Ln(p,u)&&m.push(p)}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:v}=window,{height:y,width:w,top:E,right:x,bottom:N,left:C}=e.getBoundingClientRect(),{top:$,right:_,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 R="start"===l||"nearest"===l?E-$:"end"===l?N+T:E+y/2-$+T,S="center"===s?C+w/2-I+_:"end"===s?x+_:C-I;const O=[];for(let e=0;e<m.length;e++){const t=m[e],{height:n,width:r,top:o,right:a,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===i&&E>=0&&C>=0&&N<=g&&x<=h&&(t===f&&!Ln(t)||E>=o&&N<=c&&C>=u&&x<=a))return O;const d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),$=parseInt(d.borderTopWidth,10),_=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let I=0,k=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-_:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-$-T:0,M="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?R:"end"===l?R-g:"nearest"===l?Mn(v,v+g,g,$,T,v+R,v+R+y,y):R-g/2,k="start"===s?S:"center"===s?S-h/2:"end"===s?S-h:Mn(b,b+h,h,p,_,b+S,b+S+w,w),I=Math.max(0,I+v),k=Math.max(0,k+b);else{I="start"===l?R-o-$:"end"===l?R-c+T+L:"nearest"===l?Mn(o,c,n,$,T+L,R,R+y,y):R-(o+n/2)+L/2,k="start"===s?S-u-p:"center"===s?S-(u+r/2)+A/2:"end"===s?S-a+_+A:Mn(u,a,r,p,_+A,S,S+w,w);const{scrollLeft:e,scrollTop:i}=t;I=0===D?0:Math.max(0,Math.min(i+I/D,t.scrollHeight-n/D+L)),k=0===M?0:Math.max(0,Math.min(e+k/M,t.scrollWidth-r/M+A)),R+=i-I,S+=e-k}O.push({el:t,top:I,left:k})}return O})(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 ar(e,t,n){void 0===n&&(n=Yn);var r=e["default"+tr(t)];return void 0!==r?r:n[t]}function ir(e,t,n){void 0===n&&(n=Yn);var r=e[t];if(void 0!==r)return r;var o=e["initial"+tr(t)];return void 0!==o?o:ar(e,t,n)}function lr(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}var sr=Pn;function cr(e,t,n){var r;return void 0===n&&(n=!0),On({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&On({selectedItem:e.items[t],isOpen:ar(e,"isOpen"),highlightedIndex:ar(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function ur(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function dr(){var e=g.useRef(!0);return g.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),e.current}function fr(e){var t=ar(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var mr=On({},{environment:h().shape({addEventListener:h().func.isRequired,removeEventListener:h().func.isRequired,document:h().shape({createElement:h().func.isRequired,getElementById:h().func.isRequired,activeElement:h().any.isRequired,body:h().any.isRequired}).isRequired,Node:h().func.isRequired}),itemToString:h().func,itemToKey:h().func,stateReducer:h().func},{getA11yStatusMessage:h().func,highlightedIndex:h().number,defaultHighlightedIndex:h().number,initialHighlightedIndex:h().number,isOpen:h().bool,defaultIsOpen:h().bool,initialIsOpen:h().bool,selectedItem:h().any,initialSelectedItem:h().any,defaultSelectedItem:h().any,id:h().string,labelId:h().string,menuId:h().string,getItemId:h().func,toggleButtonId:h().string,onSelectedItemChange:h().func,onHighlightedIndexChange:h().func,onStateChange:h().func,onIsOpenChange:h().func,scrollIntoView:h().func});Bn(Bn({},mr),{items:h().array.isRequired,isItemDisabled:h().func}),Bn(Bn({},or),{isItemDisabled:function(){return!1}});var pr=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:22,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,InputBlur:9,InputChange:8,InputClick:10,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEnd:4,InputKeyDownEnter:7,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownPageDown:6,InputKeyDownPageUp:5,ItemClick:13,ItemMouseMove:12,MenuMouseLeave:11,ToggleButtonClick:14});function hr(e){var t=function(e){var t=ir(e,"selectedItem"),n=ir(e,"isOpen"),r=function(e){var t=ir(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),o=ir(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}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),On({},t,{inputValue:r})}On({},mr,{items:h().array.isRequired,isItemDisabled:h().func,inputValue:h().string,defaultInputValue:h().string,initialInputValue:h().string,inputId:h().string,onInputValueChange:h().func});var gr=Pn,br=On({},or,{isItemDisabled:function(){return!1}});function vr(e,t){var n,r,o=t.type,a=t.props,i=t.altKey;switch(o){case 13:r={isOpen:ar(a,"isOpen"),highlightedIndex:fr(a),selectedItem:a.items[t.index],inputValue:a.itemToString(a.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:Kn(e.highlightedIndex,1,a.items,a.isItemDisabled,!0)}:{highlightedIndex:i&&null==e.selectedItem?-1:lr(a,e,1),isOpen:a.items.length>=0};break;case 1:r=e.isOpen?i?cr(a,e.highlightedIndex):{highlightedIndex:Kn(e.highlightedIndex,-1,a.items,a.isItemDisabled,!0)}:{highlightedIndex:lr(a,e,-1),isOpen:a.items.length>=0};break;case 7:r=cr(a,e.highlightedIndex);break;case 2:r=On({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:r={highlightedIndex:Kn(e.highlightedIndex,-10,a.items,a.isItemDisabled,!0)};break;case 6:r={highlightedIndex:Kn(e.highlightedIndex,10,a.items,a.isItemDisabled,!0)};break;case 3:r={highlightedIndex:Un(0,!1,a.items,a.isItemDisabled)};break;case 4:r={highlightedIndex:Un(a.items.length-1,!0,a.items,a.isItemDisabled)};break;case 9:r=On({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&t.selectItem&&{selectedItem:a.items[e.highlightedIndex],inputValue:a.itemToString(a.items[e.highlightedIndex])});break;case 8:r={isOpen:!0,highlightedIndex:fr(a),inputValue:t.inputValue};break;case 10:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:lr(a,e,0)};break;case 19:r={selectedItem:t.selectedItem,inputValue:a.itemToString(t.selectedItem)};break;case 22:r={inputValue:t.inputValue};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:lr(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:lr(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:fr(a),isOpen:ar(a,"isOpen"),selectedItem:ar(a,"selectedItem"),inputValue:ar(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return On({},e,r)}(e,t,pr)}return On({},e,r)}var yr,wr,Er,xr,Nr,Cr,$r,_r,Tr,Ir,Rr,Sr,Or,kr,Ar,Lr,Mr,Dr,Br,Vr=["onMouseLeave","refKey","ref"],Pr=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],zr=["onClick","onPress","refKey","ref"],Fr=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function Hr(e){void 0===e&&(e={}),gr(e,Hr);var t=On({},br,e),n=t.items,r=t.scrollIntoView,o=t.environment,a=t.getA11yStatusMessage,i=function(e,t,n,r){var o=(0,g.useRef)(),a=rr(e,t,n,r),i=a[0],l=a[1],s=dr();return(0,g.useEffect)((function(){Wn(t,"selectedItem")&&(s||t.itemToKey(t.selectedItem)!==t.itemToKey(o.current)&&l({type:22,inputValue:t.itemToString(t.selectedItem)}),o.current=i.selectedItem===o.current?t.selectedItem:i.selectedItem)}),[i.selectedItem,t.selectedItem]),[jn(i,t),l]}(vr,t,hr,ur),l=i[0],s=i[1],c=l.isOpen,u=l.highlightedIndex,d=l.selectedItem,f=l.inputValue,m=(0,g.useRef)(null),p=(0,g.useRef)({}),h=(0,g.useRef)(null),b=(0,g.useRef)(null),v=dr(),y=er(t),w=(0,g.useRef)(),E=nr({state:l,props:t}),x=(0,g.useCallback)((function(e){return p.current[y.getItemId(e)]}),[y]);!function(e,t,n,r){void 0===r&&(r={});var o=r.document,a=dr();(0,g.useEffect)((function(){if(e&&!a&&o){var n=e(t);Jn(n,o)}}),n),(0,g.useEffect)((function(){return function(){var e,t;Jn.cancel(),(t=null==(e=o)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[o])}(a,l,[c,u,d,f],o);var N=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,a=e.menuElement,i=e.scrollIntoView,l=(0,g.useRef)(!0);return Qn((function(){t<0||!n||!Object.keys(r.current).length||(!1===l.current?l.current=!0:i(o(t),a))}),[t]),l}({menuElement:m.current,highlightedIndex:u,isOpen:c,itemRefs:p,scrollIntoView:r,getItemNodeFromIndex:x});sr({props:t,state:l}),(0,g.useEffect)((function(){ir(t,"isOpen")&&h.current&&h.current.focus()}),[]),(0,g.useEffect)((function(){v||(w.current=n.length)}));var C=function(e,t,n){var r=(0,g.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,g.useEffect)((function(){if(!e)return Pn;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,Zn(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||Zn(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}(o,(0,g.useCallback)((function(){E.current.state.isOpen&&s({type:9,selectItem:!1})}),[s,E]),(0,g.useMemo)((function(){return[m,b,h]}),[m.current,b.current,h.current])),$=Pn;(0,g.useEffect)((function(){c||(p.current={})}),[c]),(0,g.useEffect)((function(){var e;c&&null!=o&&o.document&&null!=h&&null!=(e=h.current)&&e.focus&&o.document.activeElement!==h.current&&h.current.focus()}),[c,o]);var _=(0,g.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),s({type:0,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),s({type:1,altKey:e.altKey})},Home:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:3}))},End:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:4}))},Escape:function(e){var t=E.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),s({type:2}))},Enter:function(e){E.current.state.isOpen&&229!==e.which&&(e.preventDefault(),s({type:7}))},PageUp:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:5}))},PageDown:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:6}))}}}),[s,E]),T=(0,g.useCallback)((function(e){return On({id:y.labelId,htmlFor:y.inputId},e)}),[y]),I=(0,g.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,a=r.refKey,i=void 0===a?"ref":a,l=r.ref,c=Sn(r,Vr),u=(void 0===t?{}:t).suppressRefError;return $("getMenuProps",void 0!==u&&u,i,m),On(((n={})[i]=qn(l,(function(e){m.current=e})),n.id=y.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+y.labelId,n.onMouseLeave=Hn(o,(function(){s({type:11})})),n),c)}),[s,$,y]),R=(0,g.useCallback)((function(e){var t,n,r=void 0===e?{}:e,o=r.item,a=r.index,i=r.refKey,l=void 0===i?"ref":i,c=r.ref,u=r.onMouseMove,d=r.onMouseDown,f=r.onClick;r.onPress;var m=r.disabled,h=Sn(r,Pr);void 0!==m&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var g=E.current,b=g.props,v=g.state,w=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]}(o,a,b.items,"Pass either item or index to getItemProps!"),x=w[0],$=w[1],_=b.isItemDisabled(x,$),T=f;return On(((t={})[l]=qn(c,(function(e){e&&(p.current[y.getItemId($)]=e)})),t["aria-disabled"]=_,t["aria-selected"]=$===v.highlightedIndex,t.id=y.getItemId($),t.role="option",t),!_&&((n={}).onClick=Hn(T,(function(){s({type:13,index:$})})),n),{onMouseMove:Hn(u,(function(){C.isTouchEnd||$===v.highlightedIndex||(N.current=!1,s({type:12,index:$,disabled:_}))})),onMouseDown:Hn(d,(function(e){return e.preventDefault()}))},h)}),[s,y,E,C,N]),S=(0,g.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var o=n.refKey,a=void 0===o?"ref":o,i=n.ref,l=Sn(n,zr),c=E.current.state;return On(((t={})[a]=qn(i,(function(e){b.current=e})),t["aria-controls"]=y.menuId,t["aria-expanded"]=c.isOpen,t.id=y.toggleButtonId,t.tabIndex=-1,t),!l.disabled&&On({},{onClick:Hn(r,(function(){s({type:14})}))}),l)}),[s,E,y]),O=(0,g.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onKeyDown,i=r.onChange,l=r.onInput,c=r.onBlur;r.onChangeText;var u=r.onClick,d=r.refKey,f=void 0===d?"ref":d,m=r.ref,p=Sn(r,Fr),g=(void 0===t?{}:t).suppressRefError;$("getInputProps",void 0!==g&&g,f,h);var b,v=E.current.state,w={};return p.disabled||((b={}).onChange=Hn(i,l,(function(e){s({type:8,inputValue:e.target.value})})),b.onKeyDown=Hn(a,(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&&_[t]&&_[t](e)})),b.onBlur=Hn(c,(function(e){if(null!=o&&o.document&&v.isOpen&&!C.isMouseDown){var t=null===e.relatedTarget&&o.document.activeElement!==o.document.body;s({type:9,selectItem:!t})}})),b.onClick=Hn(u,(function(){s({type:10})})),w=b),On(((n={})[f]=qn(m,(function(e){h.current=e})),n["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?y.getItemId(v.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=y.menuId,n["aria-expanded"]=v.isOpen,n["aria-labelledby"]=p&&p["aria-label"]?void 0:y.labelId,n.autoComplete="off",n.id=y.inputId,n.role="combobox",n.value=v.inputValue,n),w,p)}),[s,y,o,_,E,C,$]),k=(0,g.useCallback)((function(){s({type:15})}),[s]),A=(0,g.useCallback)((function(){s({type:17})}),[s]),L=(0,g.useCallback)((function(){s({type:16})}),[s]),M=(0,g.useCallback)((function(e){s({type:18,highlightedIndex:e})}),[s]),D=(0,g.useCallback)((function(e){s({type:19,selectedItem:e})}),[s]);return{getItemProps:R,getLabelProps:T,getMenuProps:I,getInputProps:O,getToggleButtonProps:S,toggleMenu:k,openMenu:L,closeMenu:A,setHighlightedIndex:M,setInputValue:(0,g.useCallback)((function(e){s({type:20,inputValue:e})}),[s]),selectItem:D,reset:(0,g.useCallback)((function(){s({type:21})}),[s]),highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}Hr.stateChangeTypes=pr,h().array,h().array,h().array,h().func,h().number,h().number,h().number,h().func,h().func,h().string,h().string;const qr=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},yr||(yr=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),e)})),jr=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},wr||(wr=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),Er||(Er=g.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)})),Wr=g.forwardRef((function({children:e,size:t=16,...n},r){return 20===t||"20"===t||"20px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},xr||(xr=g.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"})),Nr||(Nr=g.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?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},Cr||(Cr=g.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):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},$r||($r=g.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),e)})),Kr=g.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},_r||(_r=g.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"})),Tr||(Tr=g.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?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},Ir||(Ir=g.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"})),Rr||(Rr=g.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?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},Sr||(Sr=g.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"})),Or||(Or=g.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):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},kr||(kr=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"})),Ar||(Ar=g.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)})),Ur=g.forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},Lr||(Lr=g.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?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Mr||(Mr=g.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Dr||(Dr=g.createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)})),Zr=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Br||(Br=g.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)}));var Gr=n(115),Xr=n.n(Gr);const Yr=h().oneOf(["default","inline"]),Jr=h().oneOf(["sm","md","lg"]),Qr=(0,g.createContext)({isFluid:!1}),eo=e=>{27===e.keyCode&&e.stopPropagation()},to=e=>{e.preventDefault(),e.stopPropagation()},no=(0,g.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,...b}=e,v=$(),{isFluid:w}=(0,g.useContext)(Qr),E=!l&&u,x=y()({...r&&{[r]:!0},[`${v}--list-box`]:!0,[`${v}--list-box--${i}`]:i,[`${v}--list-box--inline`]:"inline"===a,[`${v}--list-box--disabled`]:o,[`${v}--list-box--light`]:p,[`${v}--list-box--expanded`]:h,[`${v}--list-box--invalid`]:l,[`${v}--list-box--warning`]:E});return g.createElement(g.Fragment,null,g.createElement("div",m({},b,{className:x,ref:t,onKeyDown:eo,onClick:to,"data-invalid":l||void 0}),n),w&&g.createElement("hr",{className:`${v}--list-box__divider`}),l?g.createElement("div",{className:`${v}--form-requirement`,id:c},s):null,E?g.createElement("div",{className:`${v}--form-requirement`,id:f},d):null)}));function ro({children:e,disabled:t,tabIndex:n,...r}){const o=$();return g.createElement("div",m({className:`${o}--list-box__field`,tabIndex:!t&&n||-1},r),e)}no.displayName="ListBox",no.propTypes={children:h().node,className:h().string,disabled:h().bool,invalid:h().bool,invalidText:h().node,invalidTextId:h().string,isOpen:h().bool,light:st(h().bool),size:Jr,type:Yr,warn:h().bool,warnText:h().string,warnTextId:h().string},ro.propTypes={"aria-haspopup":h().oneOfType([h().string,h().bool]),children:h().node,disabled:h().bool,role:h().string,tabIndex:h().oneOfType([h().number,h().string])};const oo=(0,g.forwardRef)((({children:e,isActive:t=!1,isHighlighted:n=!1,title:r,...o},a)=>{const i=$(),l=a&&"function"!=typeof a?a.menuItemOptionRef:void 0,{isTruncated:s,ref:c}=((e,t=[])=>{const n=(0,g.useRef)(null),r=N([...e?[e]:[],n]),[o,a]=(0,g.useState)(!1);return(0,g.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=y()(`${i}--list-box__menu-item`,{[`${i}--list-box__menu-item--active`]:t,[`${i}--list-box__menu-item--highlighted`]:n});return g.createElement("li",m({},o,{className:u,title:s?r:void 0}),g.createElement("div",{className:`${i}--list-box__menu-item__option`,ref:c},e))}));oo.displayName="ListBoxMenuItem",oo.propTypes={children:h().node,disabled:h().bool,isActive:h().bool,isHighlighted:h().bool,title:h().string};const ao=(0,g.forwardRef)((({children:e,id:t,...n},r)=>{const o=$();return g.createElement("ul",m({ref:r,id:t,className:`${o}--list-box__menu`,role:"listbox"},n),e)}));ao.displayName="ListBoxMenu",ao.propTypes={children:h().oneOfType([h().node,h().arrayOf(h().oneOf([oo])),h().shape({type:h().oneOf([oo])}),h().bool]),id:h().string.isRequired};const io={"close.menu":"Close menu","open.menu":"Open menu"},lo=e=>io[e],so=({isOpen:e,translateWithId:t=lo})=>{const n=$(),r=y()(`${n}--list-box__menu-icon`,{[`${n}--list-box__menu-icon--open`]:e}),o=t(e?"close.menu":"open.menu");return g.createElement("div",{className:r},g.createElement(Ur,{name:"chevron--down","aria-label":o},g.createElement("title",null,o)))};var co,uo;so.propTypes={isOpen:h().bool.isRequired,translateWithId:h().func};const fo="clear.all",mo="clear.selection",po={[fo]:"Clear all selected items",[mo]:"Clear selected item"},ho=e=>po[e],go=({clearSelection:e,selectionCount:t,translateWithId:n=ho,disabled:r,onClearSelection:o,readOnly:a})=>{const i=$(),l=y()(`${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=y()(`${i}--tag`,`${i}--tag--filter`,`${i}--tag--high-contrast`,{[`${i}--tag--disabled`]:r});return t?g.createElement("div",{className:u},g.createElement("span",{className:`${i}--tag__label`,title:`${t}`},t),g.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},co||(co=g.createElement(Zr,null)))):g.createElement("div",{role:"button",className:l,tabIndex:-1,onClick:s,"aria-label":c,title:c},t,uo||(uo=g.createElement(Zr,null)))};go.propTypes={clearSelection:h().func.isRequired,disabled:h().bool,onClearSelection:h().func,readOnly:h().bool,selectionCount:h().number,translateWithId:h().func};const bo=Object.assign(no,{Field:ro,Menu:ao,MenuIcon:so,MenuItem:oo,Selection:go});var vo,yo;const wo={"clear.all":"Clear all selected items","clear.selection":"Clear selected item"};function Eo(e){return wo[e]}function xo({clearSelection:e,selectionCount:t,translateWithId:n=Eo,disabled:r,readOnly:o,onClearSelection:a,...i}){const l=$(),s=y()(`${l}--list-box__selection`,{[`${l}--tag--filter`]:t,[`${l}--list-box__selection--multi`]:t}),c=n(t?"clear.all":"clear.selection"),u=y()(`${l}--tag`,`${l}--tag--filter`,`${l}--tag--high-contrast`,{[`${l}--tag--disabled`]:r});function d(t){t.stopPropagation(),r||o||(e(t),a&&a(t))}return t?g.createElement("div",{className:u},g.createElement("span",{className:`${l}--tag__label`,title:t?.toString()},t),g.createElement("button",{"aria-label":c,className:`${l}--tag__close-icon`,disabled:r||o,onClick:d,tabIndex:-1,title:c,type:"button","aria-disabled":!!o||void 0},vo||(vo=g.createElement(Zr,null)))):g.createElement("button",m({},i,{"aria-label":c,className:s,disabled:r||o,onClick:d,tabIndex:-1,title:c,type:"button","aria-disabled":!!o||void 0}),yo||(yo=g.createElement(Zr,null)))}var No;xo.propTypes={clearSelection:h().func.isRequired,disabled:h().bool,readOnly:h().bool,onClearSelection:h().func,onClick:h().func,onMouseUp:h().func,onKeyDown:h().func,selectionCount:h().number,translateWithId:h().func};const Co="close.menu",$o="open.menu",_o={[Co]:"Close",[$o]:"Open"},To=e=>_o[e],Io=g.forwardRef((({isOpen:e,translateWithId:t=To,...n},r)=>{const o=$(),a=y()({[`${o}--list-box__menu-icon`]:!0,[`${o}--list-box__menu-icon--open`]:e}),i=t(e?"close.menu":"open.menu");return g.createElement("button",m({},n,{"aria-label":i,title:i,className:a,type:"button",tabIndex:-1,ref:r}),No||(No=g.createElement(Ur,null)))}));Io.propTypes={isOpen:h().bool.isRequired,translateWithId:h().func};const Ro=(...e)=>t=>{e.forEach((e=>{e&&("function"==typeof e?e(t):"object"==typeof e&&"current"in e&&(e.current=t))}))},So=e=>"string"==typeof e?e:"number"==typeof e?`${e}`:e&&"object"==typeof e&&"label"in e&&"string"==typeof e.label?e.label:"",{InputBlur:Oo,InputKeyDownEnter:ko,FunctionToggleMenu:Ao,ToggleButtonClick:Lo,ItemMouseMove:Mo,InputKeyDownArrowUp:Do,InputKeyDownArrowDown:Bo,MenuMouseLeave:Vo,ItemClick:Po,FunctionSelectItem:zo}=Hr.stateChangeTypes,Fo=()=>!0,Ho=({item:e,inputValue:t})=>{if(null===t||""===t)return!0;const n=e.toLowerCase(),r=t.toLowerCase();return n.startsWith(r)},qo=({initialSelectedItem:e,itemToString:t,selectedItem:n,prevSelectedItem:r})=>null!=n?t(n):void 0===r&&null!=e?t(e):"",jo=(0,g.forwardRef)(((e,t)=>{const n=(0,g.useRef)(0),r=(0,g.useRef)(null),{"aria-label":o="Choose an item",ariaLabel:a,autoAlign:i=!1,className:l,decorator:s,direction:c="bottom",disabled:u=!1,downshiftActions:d,downshiftProps:f,helperText:p,id:h,initialSelectedItem:b,invalid:v,invalidText:w,items:E,itemToElement:x=null,itemToString:N=So,light:C,onChange:_,onInputChange:T,onToggleClick:I,placeholder:R,readOnly:S,selectedItem:O,shouldFilterItem:k=Fo,size:A,titleText:L,translateWithId:M,typeahead:D=!1,warn:B,warnText:V,allowCustomValue:P=!1,slug:z,inputProps:F,...H}=e,q=ut("enable-v12-dynamic-floating-styles")||i,{refs:j,floatingStyles:W,middlewareData:K}=it(q?{placement:c,strategy:"fixed",middleware:i?[Ge(),Xe()]:void 0,whileElementsMounted:Be}:{}),U=j?.reference?.current?.clientWidth;(0,g.useEffect)((()=>{if(q){const e={...W,visibility:K.hide?.referenceHidden?"hidden":"visible"};Object.keys(e).forEach((t=>{j.floating.current&&(j.floating.current.style[t]=e[t])})),U&&j.floating.current&&(j.floating.current.style.width=U+"px")}}),[q,W,j.floating,U]);const[Z,G]=(0,g.useState)(qo({initialSelectedItem:b,itemToString:N,selectedItem:O})),[X,Y]=(0,g.useState)("");(0,g.useEffect)((()=>{if(D){if(Z.length>=n.current)if(Z){const e=E.filter((e=>Ho({item:N(e),inputValue:Z})));if(e.length>0){const t=N(e[0]);Y(t.slice(Z.length))}else Y("")}else Y("");else Y("");n.current=Z.length}}),[D,Z,E,N,Ho]);const J=(0,g.useRef)(!1),[Q,ee]=(0,g.useState)(!1),te=$(),{isFluid:ne}=(0,g.useContext)(Qr),re=(0,g.useRef)(null),oe=Mt(),[ae,ie]=(0,g.useState)(!1),le=(0,g.useRef)(Z),se=(0,g.useRef)(O);(0,g.useEffect)((()=>{J.current=Q,Q&&ee(!1)}),[Q]),(0,g.useEffect)((()=>{if(se.current!==O){const e=qo({initialSelectedItem:b,itemToString:N,selectedItem:O,prevSelectedItem:se.current});Z!==e&&(G(e),_({selectedItem:O,inputValue:e})),se.current=O}}),[O]);const ce=(e,t,n)=>e.filter((e=>D?Ho({item:t(e),inputValue:n}):k?k({item:e,itemToString:t,inputValue:n}):Fo()));(0,g.useEffect)((()=>{le.current!==Z&&(le.current=Z,T&&T(Z))}),[Z]);const ue=()=>{re?.current&&re.current.focus()},de=e=>ce(E,N,e||null),fe=t=>(({items:e,itemToString:t=So},n)=>{if(!n)return-1;const r=n.toLowerCase();for(let n=0;n<e.length;n++){const o=t(e[n]).toLowerCase();if(!e[n].disabled&&-1!==o.indexOf(r))return n}return-1})({...e,items:de(t)},t),me=(0,g.useCallback)(((e,t)=>{const{type:n,changes:r}=t,{highlightedIndex:o}=r;switch(n){case Oo:if(P&&-1===o){const{inputValue:t}=e;return r.selectedItem=t,_&&_({selectedItem:t,inputValue:t}),r}if(e.inputValue&&-1===o&&r.selectedItem)return{...r,inputValue:N(r.selectedItem)};if(!P){const t=e.inputValue??"";if(!t||!E.some((e=>N(e)===t))){const t=null!==e.selectedItem?N(e.selectedItem):"";return{...r,inputValue:t}}}return r;case ko:if(!P)if(-1!==e.highlightedIndex){const t=ce(E,N,Z)[e.highlightedIndex];if(t&&!t.disabled)return{...r,selectedItem:t,inputValue:N(t)}}else{const t=fe(Z);if(-1!==t){const e=E[t];if(e&&!e.disabled)return{...r,selectedItem:e,inputValue:N(e)}}if(null!==e.selectedItem)return{...r,selectedItem:null,inputValue:Z}}return{...r,isOpen:!0};case Ao:case Lo:if(e.isOpen&&!r.isOpen&&!P){const t=e.inputValue??"";if(!t||!E.some((e=>N(e)===t))){const t=null!==e.selectedItem?N(e.selectedItem):"";return{...r,inputValue:t}}}return r;case Vo:return{...r,highlightedIndex:e.highlightedIndex};case Do:case Bo:return-1===o?{...r,highlightedIndex:0}:r;case Mo:return{...r,highlightedIndex:e.highlightedIndex};default:return r}}),[P,Z,N,E,_]),pe=!v&&B,he=y()(`${te}--combo-box`,{[`${te}--combo-box--invalid--focused`]:v&&ae,[`${te}--list-box--up`]:"top"===c,[`${te}--combo-box--warning`]:pe,[`${te}--combo-box--readonly`]:S,[`${te}--autoalign`]:q}),ge=y()(`${te}--label`,{[`${te}--label--disabled`]:u}),be=`combobox-helper-text-${oe}`,ve=`combobox-warn-text-${oe}`,ye=`combobox-invalid-text-${oe}`,we=y()(`${te}--form__helper-text`,{[`${te}--form__helper-text--disabled`]:u}),Ee=y()(`${te}--list-box__wrapper`,[l,{[`${te}--list-box__wrapper--fluid--invalid`]:ne&&v,[`${te}--list-box__wrapper--slug`]:z,[`${te}--list-box__wrapper--decorator`]:s}]),xe=y()(`${te}--text-input`,{[`${te}--text-input--empty`]:!Z,[`${te}--combo-box--input--focus`]:ae}),Ne=x,Ce=z??s,$e=In(Ce,Tn)?(0,g.cloneElement)(Ce,{size:"mini"}):null,{getInputProps:_e,getItemProps:Te,getLabelProps:Ie,getMenuProps:Re,getToggleButtonProps:Se,isOpen:Oe,highlightedIndex:ke,selectedItem:Ae,closeMenu:Le,openMenu:Me,reset:De,selectItem:Ve,setHighlightedIndex:Pe,setInputValue:ze,toggleMenu:Fe}=Hr({items:ce(E,N,Z),inputValue:Z,itemToString:e=>N(e),onInputValueChange({inputValue:e}){const t=e||"";G(t),Pe(fe(t))},onHighlightedIndexChange:({highlightedIndex:e})=>{if(e>-1&&void 0!==typeof window){const t=document.querySelectorAll(`li.${te}--list-box__menu-item[role="option"]`)[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}},initialSelectedItem:b,inputId:h,stateReducer:me,isItemDisabled:(e,t)=>e?.disabled,...f,onStateChange:({type:e,selectedItem:t})=>{f?.onStateChange?.({type:e,selectedItem:t}),J.current||e!==Po&&e!==zo&&e!==ko||void 0===t||Xr()(O,t)||_({selectedItem:t})}});(0,g.useEffect)((()=>{d&&(d.current={closeMenu:Le,openMenu:Me,reset:De,selectItem:Ve,setHighlightedIndex:Pe,setInputValue:ze,toggleMenu:Fe})}),[Le,Me,De,Ve,Pe,ze,Fe]);const He=Se({disabled:u||S,onClick:(e=>t=>{if(I&&I(t),S)return t.preventDownshiftDefault=!0,void t?.persist?.();t.target===re.current&&e&&(t.preventDownshiftDefault=!0,t?.persist?.())})(Oe),onMouseUp(e){Oe&&e.stopPropagation()}}),qe=e=>{ie("focus"===e.type),r.current?.value||"blur"!==e.type||Ve(null)},je=S?{onKeyDown:e=>{"Tab"!==e.key&&e.preventDefault()},onClick:e=>{e.preventDefault(),e.currentTarget.focus()}}:{},We=v&&w&&ye||B&&V&&ve||p&&!ne&&be||void 0,Ke=(0,g.useMemo)((()=>Re({ref:q?j.setFloating:null})),[q,a,o,Re,j.setFloating]);return(0,g.useEffect)((()=>{if(re.current&&r.current&&X){const e=Z.length,t=e+X.length;r.current.value=Z+X,r.current.setSelectionRange(e,t)}}),[Z,X]),g.createElement("div",{className:Ee},L&&g.createElement(Xt,m({as:"label",className:ge},Ie()),L),g.createElement(bo,{onFocus:qe,onBlur:qe,className:he,disabled:u,invalid:v,invalidText:w,invalidTextId:ye,isOpen:Oe,light:C,size:A,warn:B,ref:q?j.setReference:null,warnText:V,warnTextId:ve},g.createElement("div",{className:`${te}--list-box__field`},g.createElement("input",m({disabled:u,className:xe,type:"text",tabIndex:0,"aria-haspopup":"listbox",title:re?.current?.value},_e({"aria-label":L?void 0:a||o,"aria-controls":Oe?void 0:Ke.id,placeholder:R,value:Z,...F,onChange:e=>{const t=e.target.value;G(t),ze(t)},ref:Ro(re,t,r),onKeyDown:e=>{if(_t(e,vt)&&e.stopPropagation(),!_t(e,gt)||Z&&!P||(Fe(),-1!==ke&&Ve(ce(E,N,Z)[ke]),P&&Oe&&Z&&-1===ke&&_({selectedItem:null,inputValue:Z}),e.preventDownshiftDefault=!0,e?.persist?.()),_t(e,bt)&&Z&&e.target===re.current&&Oe&&(Fe(),e.preventDownshiftDefault=!0,e?.persist?.()),_t(e,wt)&&"Numpad7"!==e.code&&e.target.setSelectionRange(0,0),_t(e,yt)&&"Numpad1"!==e.code&&e.target.setSelectionRange(e.target.value.length,e.target.value.length),e.altKey&&"ArrowDown"==e.key&&(e.preventDownshiftDefault=!0,Oe||Fe()),e.altKey&&"ArrowUp"==e.key&&(e.preventDownshiftDefault=!0,Oe&&Fe()),Z||-1!=ke||"Enter"!=e.key||(Oe||Fe(),Ve(null),e.preventDownshiftDefault=!0,"false"===e.currentTarget.ariaExpanded&&Me()),D&&"Tab"===e.key){const e=E.find((e=>N(e).toLowerCase().startsWith(Z.toLowerCase())));if(e){const t=N(e);ze(t),Ve(e)}}}}),H,je,{readOnly:S,"aria-describedby":We})),v&&g.createElement(fn,{className:`${te}--list-box__invalid-icon`}),pe&&g.createElement(dn,{className:`${te}--list-box__invalid-icon ${te}--list-box__invalid-icon--warning`}),Z&&g.createElement(xo,{clearSelection:()=>{ee(!0),G(""),_({selectedItem:null}),Ve(null),ue()},translateWithId:M,disabled:u||S,onClearSelection:ue,selectionCount:0}),g.createElement(Io,m({},He,{isOpen:Oe,translateWithId:M}))),z?$e:s?g.createElement("div",{className:`${te}--list-box__inner-wrapper--decorator`},$e):"",g.createElement(bo.Menu,Ke,Oe?ce(E,N,Z).map(((e,t)=>{const n=null!==e&&"object"==typeof e&&"text"in e&&x?e.text?.toString():N(e),r=Te({item:e,index:t}),o=r["aria-disabled"],{"aria-disabled":a,...i}=r;return g.createElement(bo.MenuItem,m({key:r.id,isActive:Ae===e,isHighlighted:ke===t,title:n,disabled:o},i),Ne?g.createElement(Ne,m({key:r.id},e)):N(e),Ae===e&&g.createElement(Wr,{className:`${te}--list-box__menu-item__selected-icon`}))})):null)),p&&!v&&!B&&!ne&&g.createElement(Xt,{as:"div",id:be,className:we},p))}));jo.displayName="ComboBox",jo.propTypes={allowCustomValue:h().bool,"aria-label":h().string,ariaLabel:st(h().string),autoAlign:h().bool,className:h().string,decorator:h().node,direction:h().oneOf(["top","bottom"]),disabled:h().bool,downshiftProps:h().object,downshiftActions:h().exact({current:h().any}),helperText:h().node,id:h().string.isRequired,initialSelectedItem:h().oneOfType([h().object,h().string,h().number]),invalid:h().bool,invalidText:h().node,itemToElement:h().func,itemToString:h().func,items:h().array.isRequired,light:st(h().bool),onChange:h().func.isRequired,onInputChange:h().func,onToggleClick:h().func,placeholder:h().string,readOnly:h().bool,selectedItem:h().oneOfType([h().object,h().string,h().number]),shouldFilterItem:h().func,size:Jr,slug:st(h().node),titleText:h().node,translateWithId:h().func,typeahead:h().bool,warn:h().bool,warnText:h().node,inputProps:h().object};var Wo=n(4363);const Ko=g.createContext(1),Uo=["one","two","three"],Zo=[0,1,2],Go=Zo[0],Xo=Zo[Zo.length-1],Yo=g.forwardRef(((e,t)=>{const{as:n,className:r,children:o,level:a,withBackground:i=!1,...l}=e,s=g.useContext(Ko),c=a??s,u=$(),d=y()(`${u}--layer-${Uo[c]}`,{[`${u}--layer__with-background`]:i},r),f=((e,t,n)=>Math.min(n,Math.max(t,e)))(c+1,Go,Xo),p=n||"div";return g.createElement(Ko.Provider,{value:f},g.createElement(p,m({ref:t},l,{className:d}),o))}));Yo.displayName="Layer",Yo.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,level:h().oneOf([0,1,2]),withBackground:h().bool};const Jo=g.forwardRef((function({buttonOnClick:e,children:t,className:n,closeClassName:r,closeIconClassName:o,closeModal:a,iconDescription:i="Close",label:l,labelClassName:s,title:c,titleClassName:u,...d},f){const p=$(),h=y()(`${p}--modal-header`,n),b=y()(`${p}--modal-header__label ${p}--type-delta`,s),v=y()(`${p}--modal-header__heading ${p}--type-beta`,u),w=y()(`${p}--modal-close`,r),E=y()(`${p}--modal-close__icon`,o);return g.createElement("div",m({className:h},d,{ref:f}),l&&g.createElement("h2",{className:b},l),c&&g.createElement("h2",{className:v},c),t,g.createElement("div",{className:`${p}--modal-close-button`},g.createElement(Wt,{className:w,label:i,onClick:function(t){a?.(t),e?.(t)},"aria-label":i,align:"left"},g.createElement(Zr,{size:20,"aria-hidden":"true",tabIndex:"-1",className:E}))))}));Jo.propTypes={buttonOnClick:h().func,children:h().node,className:h().string,closeClassName:h().string,closeIconClassName:h().string,closeModal:h().func,iconDescription:h().string,label:h().node,labelClassName:h().string,title:h().node,titleClassName:h().string};var Qo=n(771);function ea({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...a}){const i=$(),l=y()(t,{[`${i}--loading`]:!0,[`${i}--loading--small`]:r,[`${i}--loading--stop`]:!e}),s=y()({[`${i}--loading-overlay`]:!0,[`${i}--loading-overlay--stop`]:!e}),c=g.createElement("div",m({},a,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:l}),g.createElement("svg",{className:`${i}--loading__svg`,viewBox:"0 0 100 100"},g.createElement("title",null,o),r?g.createElement("circle",{className:`${i}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,g.createElement("circle",{className:`${i}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?g.createElement("div",{className:s},c):c}ea.propTypes={active:h().bool,className:h().string,description:h().string,id:st(h().string),small:h().bool,withOverlay:h().bool};const ta=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:a=1500,...i})=>{const l=$(),s=y()(`${l}--inline-loading`,e),c=(0,g.useRef)(null);(0,g.useEffect)((()=>("finished"===t&&(c.current=setTimeout((()=>{o&&o()}),a)),()=>{c.current&&(clearTimeout(c.current),c.current=null)})),[t,o,a]);const u=r&&g.createElement("div",{className:`${l}--inline-loading__text`},r),d=(()=>{let e=n||t;return"error"===t?g.createElement(Qo.x,{className:`${l}--inline-loading--error`},g.createElement("title",null,e)):"finished"===t?g.createElement(Kr,{className:`${l}--inline-loading__checkmark-container`},g.createElement("title",null,e)):"active"===t?(n||(e="loading"),g.createElement(ea,{small:!0,description:e,withOverlay:!1,active:"active"===t})):"inactive"===t?(n||(e="not loading"),g.createElement("title",{className:`${l}--inline-loading__inactive-status`},e)):void 0})(),f=d&&g.createElement("div",{className:`${l}--inline-loading__animation`},d);return g.createElement("div",m({className:s},i,{"aria-live":i["aria-live"]??"assertive"}),f,u)};function na({secondaryButtons:e,secondaryButtonText:t,secondaryClassName:n,closeModal:r,onRequestClose:o,disabled:a}){function i(e){r(e),o(e)}return Array.isArray(e)&&e.length<=2?g.createElement(g.Fragment,null,e.map((({buttonText:e,onClick:t},r)=>g.createElement(Ut,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||i},e)))):t?g.createElement(Ut,{disabled:a,className:n,onClick:i,kind:"secondary"},t):null}ta.propTypes={className:h().string,description:h().node,iconDescription:h().string,onSuccess:h().func,status:h().oneOf(["inactive","active","finished","error"]),successDelay:h().number},na.propTypes={closeModal:h().func,disabled:h().bool,onRequestClose:h().func,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach((e=>{h().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:h().string};const ra=g.forwardRef((function({children:e,className:t,closeModal:n=mn,danger:r,inputref:o,onRequestClose:a=mn,onRequestSubmit:i=mn,primaryButtonDisabled:l,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:f,loadingStatus:p="inactive",loadingDescription:h,loadingIconDescription:b,onLoadingSuccess:v=mn,...w},E){const x=$(),N=y()(`${x}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${x}--modal-footer--three-button`:null),C=y()(c,"inactive"!==p?`${x}--btn--loading`:null),_="inactive"!==p,T={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:f,onRequestClose:a,disabled:_};return g.createElement(Zt,m({className:N},w,{ref:E,"aria-busy":_}),g.createElement(na,T),s&&g.createElement(Ut,{onClick:i,className:C,disabled:_||l,kind:r?"danger":"primary",ref:o},"inactive"===p?s:g.createElement(ta,{status:p,description:h,iconDescription:b,className:`${x}--inline-loading--btn`,onSuccess:v})),e)}));ra.propTypes={children:h().node,className:h().string,closeModal:h().func,danger:h().bool,inputref:h().oneOfType([h().func,h().shape({current:h().any})]),loadingDescription:h().string,loadingIconDescription:h().string,loadingStatus:h().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:h().func,onRequestClose:h().func,onRequestSubmit:h().func,primaryButtonDisabled:h().bool,primaryButtonText:h().string,primaryClassName:h().string,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach((e=>{h().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:h().string};const oa=(e,t,n)=>{e.classList.toggle(t,n)};var aa=["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(","),ia="undefined"==typeof Element,la=ia?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sa=!ia&&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},ca=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)},ua=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!ca(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{la.call(i,aa)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!ca(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},da=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},fa=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))&&!da(e)?0:e.tabIndex},ma=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},pa=function(e){return"INPUT"===e.tagName},ha=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ga=function(e,t){return!(t.disabled||ca(t)||function(e){return pa(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=la.call(e,"details>summary:first-of-type")?e.parentElement:e;if(la.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ha(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,l=sa(e);if(i&&!i.shadowRoot&&!0===r(i))return ha(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&&sa(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=sa(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!!la.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ba=function(e,t){return!(function(e){return function(e){return pa(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||sa(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)||fa(t)<0||!ga(e,t))},va=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ya=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=fa(e);return n<0&&t&&!da(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(ma).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)};const wa="\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",Ea="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,xa="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,Na=(e,t=[])=>e instanceof Element&&"function"==typeof e.closest&&[".cds--overflow-menu-options",".cds--tooltip",".flatpickr-calendar",...t].some((t=>!!e.closest(t))),Ca=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:a})=>{if(e&&r&&o&&!e.contains(r)&&!Na(r,a)){const a=o.compareDocumentPosition(r);if(r===t||a&Ea){const t=Array.from(e.querySelectorAll(wa)).reverse().find((({offsetParent:e})=>Boolean(e)));t?t.focus():e!==o&&e.focus()}else if(r===n||a&xa){const t=Array.from(e.querySelectorAll(wa)).find((({offsetParent:e})=>Boolean(e)));t?t.focus():e!==o&&e.focus()}}},$a=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(i=e,s=(l=l||{}).getShadowRoot?ua([i],l.includeContainer,{filter:ba.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:va}):function(e,t,n){if(ca(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(aa));return t&&la.call(e,aa)&&r.unshift(e),r.filter(n)}(i,l.includeContainer,ba.bind(null,l)),ya(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())},_a=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}};function Ta(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},m=function(...e){if(n?.aborted)return;o=this,a=e;const t=null==c;u(),i&&t&&s()};return m.schedule=u,m.cancel=f,m.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),m}((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 Ia=(0,g.createContext)({}),Ra=g.forwardRef((({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=mn,onClick:a=mn,onClose:i=mn,onRequestClose:l=mn,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:f,...p},h)=>{const b=$(),v=Mt(),w=`${b}--dialog-header__heading--${v}`,E=`${b}--dialog-header__label--${v}`,x=(0,g.useRef)(null),N=h??x;(0,g.useEffect)((()=>{N.current&&(s?r?N.current.showModal():N.current.show():N.current.close())}),[r,s]),(0,g.useEffect)((()=>{if(!s&&n){const e=setTimeout((()=>{n.current?.focus()}));return()=>{clearTimeout(e)}}}),[s,n]);const C=y()(`${b}--dialog-container`),_={dialogId:v,titleId:w,subtitleId:E,isOpen:s};return(0,g.useEffect)((()=>{if(N.current&&s&&!u&&!d){const e=N.current.querySelector(`.${b}--dialog-header__heading`);e&&e.id&&N.current.setAttribute("aria-labelledby",e.id)}}),[s,u,d,b]),g.createElement(Ia.Provider,{value:_},g.createElement("dialog",m({},p,{className:y()(`${b}--dialog`,{[`${b}--dialog--modal`]:r},t),ref:N,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===N.current&&l(e)}(e),a(e)},onClose:i,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||w,"aria-describedby":f}),g.createElement("div",{className:C},e)))}));Ra.displayName="Dialog",Ra.propTypes={children:h().node,className:h().string,focusAfterCloseRef:h().oneOfType([h().func,h().shape({current:h().any})]),modal:h().bool,onRequestClose:h().func,open:h().bool,role:h().oneOf(["dialog","alertdialog"]),"aria-label":h().string,"aria-labelledby":h().string,ariaDescribedBy:h().string};const Sa=g.forwardRef((({children:e,...t},n)=>{const r=$();return g.createElement("div",m({className:`${r}--dialog__header`,ref:n},t),e)}));Sa.displayName="DialogHeader",Sa.propTypes={children:h().node};const Oa=g.forwardRef((({children:e,...t},n)=>{const r=$();return g.createElement("div",m({className:`${r}--dialog__header-controls`,ref:n},t),e)}));Oa.displayName="DialogControls",Oa.propTypes={children:h().node};const ka=g.forwardRef((({onClick:e,...t},n)=>{const r=$();return g.createElement(Wt,m({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),g.createElement(Zr,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))}));ka.displayName="DialogCloseButton",ka.propTypes={onClick:h().func};const Aa=g.forwardRef((({children:e,className:t,id:n,...r},o)=>{const a=$(),{titleId:i}=(0,g.useContext)(Ia),l=n||i;return g.createElement(Xt,m({as:"h2",id:l,className:y()(`${a}--dialog-header__heading`,t),ref:o},r),e)}));Aa.displayName="DialogTitle",Aa.propTypes={children:h().node,className:h().string,id:h().string};const La=g.forwardRef((({children:e,className:t,id:n,...r},o)=>{const a=$(),{subtitleId:i}=(0,g.useContext)(Ia),l=n||i;return g.createElement(Xt,m({as:"h2",id:l,className:y()(`${a}--dialog-header__label`,t),ref:o},r),e)}));La.displayName="DialogSubtitle",La.propTypes={children:h().node,className:h().string,id:h().string};const Ma=g.forwardRef((({children:e,className:t,hasScrollingContent:n,...r},o)=>{const a=$(),i=(0,g.useRef)(null),[l,s]=(0,g.useState)(!1),c=`${a}--dialog-body--${Mt()}`;x((()=>{i.current&&s(i.current.scrollHeight>i.current.clientHeight);const e=Ta((function(){i.current&&s(i.current.scrollHeight>i.current.clientHeight)}),200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]);const u=y()(`${a}--dialog-content`,{[`${a}--dialog-scroll-content`]:n||l},t),d=n||l?{tabIndex:0,role:"region"}:{};return g.createElement(Yo,m({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),i.current=e},id:c,className:u},d,r),e)}));Ma.displayName="DialogBody",Ma.propTypes={children:h().node,className:h().string,hasScrollingContent:h().bool};const Da=g.forwardRef((({children:e,className:t,onRequestClose:n=mn,onSecondarySubmit:r,onRequestSubmit:o=mn,primaryButtonText:a="Save",primaryButtonDisabled:i=!1,secondaryButtonText:l="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:f=mn,danger:p=!1,...h},b)=>{const v=$(),w=(0,g.useRef)(null),{isOpen:E}=(0,g.useContext)(Ia),[x,N]=(0,g.useState)(null);(0,g.useEffect)((()=>{if(p&&x){const e=requestAnimationFrame((()=>{x.focus()}));return()=>cancelAnimationFrame(e)}}),[p,x,E]);const C=y()(`${v}--dialog-footer`,t,{[`${v}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),_="inactive"!==c,T=y()({[`${v}--btn--loading`]:"inactive"!==c}),I=r||n;return e?g.createElement(Zt,m({className:C,ref:b},h),e):g.createElement(Zt,m({className:C,"aria-busy":_,ref:b},h),Array.isArray(s)&&s.length<=2?s.map((({buttonText:e,onClick:t},n)=>g.createElement(Ut,{key:`${e}-${n}`,autoFocus:p,kind:"secondary",ref:0===n&&p?N:void 0,onClick:t},e))):l&&g.createElement(Ut,{ref:p?N:void 0,disabled:_,kind:"secondary",autoFocus:p,onClick:I},l),g.createElement(Ut,{className:T,kind:p?"danger":"primary",disabled:_||i,onClick:o,ref:w},"inactive"===c?a:g.createElement(ta,{status:c,description:u,iconDescription:d,className:`${v}--inline-loading--btn`,onSuccess:f})))}));Da.displayName="DialogFooter",Da.propTypes={children:h().node,className:h().string,onRequestClose:h().func,onSecondarySubmit:h().func,onRequestSubmit:h().func,primaryButtonText:h().node,primaryButtonDisabled:h().bool,secondaryButtonText:h().node,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach((e=>{h().checkPropTypes(r,e,t,n)}))}return null},danger:h().bool,loadingStatus:h().oneOf(["inactive","active","finished","error"]),loadingDescription:h().string,loadingIconDescription:h().string,onLoadingSuccess:h().func};const Ba=e=>{const[t,n]=(0,g.useState)(!!e),[r,o]=(0,g.useState)(!!e);return(0,g.useEffect)((()=>{e!==r&&(n(!!e),o(!!e))}),[e,r]),(0,g.useMemo)((()=>[t,n]),[t])},Va=({open:e,_presenceId:t,_autoEnablePresence:n=!0,children:r})=>{const o=Ba(e),[a]=o,[i,l]=((e,t)=>{const n=(0,g.useRef)(t),r=(0,g.useRef)(null),o=(0,g.useRef)(null);t||!o.current||r.current||(n.current=null),o.current=r.current;const{isPresent:a,isExiting:i}=((e,t)=>{const n=$(),[r,o]=(0,g.useState)(t?"idle":"finished"),a="active"===r;t||"idle"!==r||o("active"),t&&"idle"!==r&&o("idle");const i=(0,g.useCallback)((()=>{o("finished")}),[]);return(0,g.useLayoutEffect)((()=>{if(!e.current||!a)return;if(!("getAnimations"in e.current))return void i();const t=e.current.getAnimations({subtree:!0}).filter((e=>e instanceof CSSAnimation&&e.animationName.startsWith(`${n}--presence`)));if(!t.length)return void i();let r=!1;return Promise.all(t.map((e=>e.finished))).finally((()=>{r||i()})),()=>{r=!0}}),[e,a,n,i]),{isPresent:t||"finished"!==r,isExiting:a}})(r,e),l=(0,g.useCallback)((e=>!(!e||n.current&&n.current!==e||(n.current=e,0))),[]);return[a,(0,g.useMemo)((()=>({presenceRef:r,isPresenceExclusive:l,isExiting:i})),[r,l,i])]})(a,t),s=(0,g.useMemo)((()=>({modalState:o,autoEnablePresence:n,...l})),[o,n,l]);return i?g.createElement(Pa,{value:s},r):null},Pa=(0,g.createContext)(void 0),za=g.forwardRef((function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},a){const i=$(),l=(0,g.useRef)(null),[s,c]=(0,g.useState)(!1),u=y()({[`${i}--modal-content`]:!0,[`${i}--modal-content--with-form`]:n,[`${i}--modal-scroll-content`]:r||s},e);x((()=>{l.current&&c(l.current.scrollHeight>l.current.clientHeight);const e=Ta((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 g.createElement(Yo,m({className:u},d,o,{ref:Ro(l,a)}),t)}));var Fa;za.propTypes={"aria-label":(Fa=h().string,(e,t,n,...r)=>Fa(e,t,n,...r)),children:h().node,className:h().string,hasForm:h().bool,hasScrollingContent:h().bool};const Ha=g.forwardRef((function({open:e,...t},n){const r=Mt(),o=ut("enable-presence"),a=Boolean((0,g.useContext)(Pa)),i=o||a,l=(e=>{const t=(0,g.useContext)(Pa);return t?.isPresenceExclusive(e)?t:void 0})(r);return i&&!l?g.createElement(Va,{open:e??!1,_presenceId:r,_autoEnablePresence:a},g.createElement(qa,m({open:!0,ref:n},t))):g.createElement(qa,m({ref:n,open:e},t))})),qa=g.forwardRef((function({"aria-labelledby":e,"aria-label":t,children:n,className:r,containerClassName:o,danger:a,decorator:i,isFullWidth:l,onClose:s,onKeyDown:c,open:u,preventCloseOnClickOutside:d,selectorPrimaryFocus:f="[data-modal-primary-focus]",selectorsFloatingMenus:p,size:h,launcherButtonRef:b,slug:v,...w},E){const x=$(),N=(0,g.useRef)(null),C=(0,g.useRef)(null),_=(0,g.useRef)(null),T=(0,g.useRef)(null),I=(0,g.useRef)(null),R=(0,g.useContext)(Pa),S=function(e){const t=g.useRef(void 0),n=g.useCallback((t=>{const n=e.map((e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),e);return g.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}([E,R?.presenceRef]),O=ut("enable-presence")||R?.autoEnablePresence,k=u||O,A=Ba(k),[L,M]=R?.modalState??A,D=ut("enable-dialog-element"),B=ut("enable-experimental-focus-wrap-without-sentinels");function V(e){s&&!1===s(e)||M(!1)}(0,g.useEffect)((()=>{D||oa(document.body,`${x}--body--with-modal-open`,!!k)}),[k,x]),(0,g.useEffect)((()=>{if(!D)return()=>{oa(document.body,`${x}--body--with-modal-open`,!1)}}),[]);const P=y()(`${x}--modal`,{"is-visible":O||L,[`${x}--modal--enable-presence`]:R?.autoEnablePresence,[`${x}--modal--danger`]:a,[`${x}--modal--slug`]:v,[`${x}--modal--decorator`]:i},r),z=y()(`${x}--modal-container`,h&&`${x}--modal-container--${h}`,l&&`${x}--modal-container--full-width`,o);let F;const H=g.Children.toArray(n).map((e=>{switch(!0){case(0,Wo.isElement)(e)&&e.type===g.createElement(Jo).type:{const t=e;return F=t.props.label,g.cloneElement(t,{closeModal:V})}case(0,Wo.isElement)(e)&&e.type===g.createElement(ra).type:{const t=e;return g.cloneElement(t,{closeModal:V,inputref:C,danger:a})}default:return e}})),q=!g.Children.toArray(H).some((e=>In(e,ra)));(0,g.useEffect)((()=>{if(!k)return;const e=e=>{_t(e,bt)&&(e.preventDefault(),e.stopPropagation(),V(e))};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[k]),(0,g.useEffect)((()=>{D||O||k||!b||setTimeout((()=>{b.current?.focus()}))}),[D,O,k,b]),(0,g.useEffect)((()=>{const e=b?.current;return()=>{O&&e&&setTimeout((()=>{e.focus()}))}}),[O,b]),(0,g.useEffect)((()=>{if(!D){const e=e=>{const t=e||N.current;return(t?t.querySelector(a?`.${x}--btn--secondary`:f):null)||C&&C.current};k&&L&&(t=>{const n=e(t),r=t.querySelector(`.${x}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(N.current)}}),[k,f,L]);const j=v??i,W=In(j,Tn)?(0,g.cloneElement)(j,{size:"sm"}):null,K=D?g.createElement(Ra,{open:k,focusAfterCloseRef:b,modal:!0,className:z,"aria-label":t||F,"aria-labelledby":e,"data-exiting":R?.isExiting||void 0},g.createElement("div",{ref:N,className:`${x}--modal-container-body`},v?W:i?g.createElement("div",{className:`${x}--modal--inner__decorator`},W):"",H)):g.createElement("div",{className:z,role:"dialog","aria-modal":"true","aria-label":t||F,"aria-labelledby":e},!B&&g.createElement("button",{type:"button",ref:_,className:`${x}--visually-hidden`},"Focus sentinel"),g.createElement("div",{ref:N,className:`${x}--modal-container-body`},v?W:i?g.createElement("div",{className:`${x}--modal--inner__decorator`},W):"",H),!B&&g.createElement("button",{type:"button",ref:T,className:`${x}--visually-hidden`},"Focus sentinel"));return g.createElement(Yo,m({},w,{level:0,role:"presentation",ref:S,"aria-hidden":!k,onBlur:function({target:e,relatedTarget:t}){if(!D&&!B&&k&&t&&e&&N.current){const{current:n}=N,{current:r}=_,{current:o}=T;Ca({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:p?.filter(Boolean)})}const n=document.querySelector(`.${x}--modal-content`);n&&n.classList.contains(`${x}--modal-scroll-content`)&&t&&n.contains(t)&&t.scrollIntoView({block:"center"})},onClick:_a([w?.onClick,function(e){const{target:t}=e,n=I.current;e.stopPropagation(),(q&&!d||!q&&!1===d)&&t instanceof Node&&!Na(t,p)&&N.current&&!N.current.contains(t)&&!N.current.contains(n)&&V(e)}]),onMouseDown:_a([w?.onMouseDown,function(e){const t=e.target;I.current=t}]),onKeyDown:function(e){D||B&&k&&_t(e,ht)&&N.current&&$a({containerNode:N.current,currentActiveNode:e.target,event:e}),c?.(e)},className:P,"data-exiting":R?.isExiting||void 0}),K)}));Ha.propTypes={"aria-label":h().string,"aria-labelledby":h().string,children:h().node,className:h().string,containerClassName:h().string,danger:h().bool,decorator:h().node,isFullWidth:h().bool,launcherButtonRef:h().oneOfType([h().func,h().shape({current:h().any})]),onClose:h().func,onKeyDown:h().func,open:h().bool,preventCloseOnClickOutside:h().bool,selectorPrimaryFocus:h().string,selectorsFloatingMenus:h().arrayOf(h().string.isRequired),size:h().oneOf(["xs","sm","md","lg"]),slug:st(h().node)};const ja=["xs","sm","md","lg","xl","2xl"],Wa=["condensed","normal"];g.forwardRef((({as:e="div",children:t,className:n,density:r,size:o,...a},i)=>{const l=$(),s=y()(n,`${l}--layout`,{[`${l}--layout--size-${o}`]:o&&ja.includes(o),[`${l}--layout--density-${r}`]:r&&Wa.includes(r)});return g.createElement(e,m({},a,{ref:i,className:s}),t)})).propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,density:h().oneOf(Wa),size:h().oneOf(ja)};const Ka=g.forwardRef((({as:e="div",children:t,className:n,density:r,size:o,...a},i)=>{const l=$(),s=y()(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 g.createElement(e,m({},a,{ref:i,className:s}),t)}));Ka.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,density:h().shape({min:h().oneOf(Wa),default:h().oneOf(Wa),max:h().oneOf(Wa)}),size:h().shape({min:h().oneOf(ja),default:h().oneOf(ja),max:h().oneOf(ja)})};const Ua=(0,g.forwardRef)(((e,t)=>{const{align:n,children:r,className:o,disabled:a,enterDelayMs:i,index:l,leaveDelayMs:s=0,name:c,onClick:u=mn,onKeyDown:d=mn,selected:f=!1,size:p,text:h,...b}=e,v=$(),[w,E]=(0,g.useState)(!1),x=()=>{E(!0)},N=()=>{E(!1)},C=y()(o,`${v}--content-switcher-btn`,{[`${v}--content-switcher--selected`]:f}),_=y()(`${v}--content-switcher-popover__wrapper`,{[`${v}--content-switcher-popover--selected`]:f,[`${v}--content-switcher-popover--disabled`]:a});return g.createElement(Wt,m({label:h,type:"button",ref:t,role:"tab",tabIndex:f||w?0:-1,onMouseEnter:x,onMouseLeave:N,onFocus:x,onBlur:N,"aria-selected":f,"aria-label":h,wrapperClasses:_},b,{align:n,className:C,disabled:a,enterDelayMs:i,leaveDelayMs:s,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})},size:p}),r)}));Ua.displayName="IconSwitch",Ua.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:h().node,className:h().string,disabled:h().bool,enterDelayMs:h().number,index:h().number,leaveDelayMs:h().number,name:h().oneOfType([h().string,h().number]),onClick:h().func,onKeyDown:h().func,selected:h().bool,size:h().oneOf(["sm","md","lg"]),text:h().string};const Za=({children:e,className:t,light:n,lowContrast:r,selectedIndex:o=0,selectionMode:a="automatic",size:i,onChange:l=mn,...s})=>{const c=(0,g.useContext)(C),[u,d]=(0,g.useState)(o),f=(0,g.useRef)(o),p=(0,g.useRef)([]),h=g.Children.toArray(e);(0,g.useEffect)((()=>{f.current!==o&&(d(o),f.current=o)}),[o]);const b=e=>t=>{t&&(p.current[e]=t)},v=e=>{const t=p.current[e];t&&t.focus()},w=e=>e&&"object"==typeof e&&"key"in e,E=e=>{if(void 0===e.index)return;const{index:t}=e;if(w(e)&&$t(e,[Nt,Et])){const n=((e,t,n)=>_t(e,Nt)?(t+1)%n:_t(e,Et)?(t+n-1)%n:void 0)(e.key,t,h.length);if("number"!=typeof n)return;if(v(n),"manual"!==a){const t=h[n];d(n),(0,g.isValidElement)(t)&&l({...e,index:n,name:t.props.name,text:t.props.text})}}else u===t||w(e)&&!$t(e,[gt,vt])||(d(t),v(t),l(e))},x=g.Children.map(e,(e=>(0,g.isValidElement)(e)?e.type===Ua:null))?.every((e=>!0===e)),N=y()(`${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 g.createElement(Ka,m({size:{default:"md",min:"sm",max:"lg"}},s,{className:N,role:"tablist",onChange:void 0}),e&&g.Children.map(e,((e,t)=>(0,g.cloneElement)(e,{index:t,onClick:_a([E,e.props.onClick]),onKeyDown:_a([E,e.props.onKeyDown]),selected:t===u,ref:b(t),size:i}))))};Za.displayName="ContentSwitcher",Za.propTypes={children:h().node,className:h().string,light:st(h().bool),lowContrast:h().bool,onChange:h().func.isRequired,selectedIndex:h().number,selectionMode:h().oneOf(["automatic","manual"]),size:h().oneOf(["sm","md","lg"])};const Ga=({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=$(),a=y()("function"==typeof t?t(o):t,e);return g.createElement(n,{...r,className:a||void 0})}return r.displayName=e,r.propTypes={className:h().string},r},Xa=Ga({name:"TableActionList",type:"div",className:e=>`${e}--action-list`}),Ya={"carbon.table.batch.cancel":"Cancel","carbon.table.batch.items.selected":"items selected","carbon.table.batch.item.selected":"item selected","carbon.table.batch.selectAll":"Select all"},Ja=(e,{totalSelected:t,totalCount:n}={totalSelected:0,totalCount:0})=>"carbon.table.batch.cancel"===e?Ya[e]:"carbon.table.batch.selectAll"===e?`${Ya[e]} (${n})`:`${t} ${Ya[e]}`,Qa=({className:e,children:t,shouldShowBatchActions:n,totalSelected:r,totalCount:o,onCancel:a,onSelectAll:i,translateWithId:l=Ja,...s})=>{const[c,u]=g.useState(!1),d=$(),f=y()({[`${d}--batch-actions`]:!0,[`${d}--batch-actions--active`]:n},e),p=y()(`${d}--batch-summary`,{[`${d}--batch-summary__scroll`]:c});return g.createElement("div",m({onScroll:()=>{u(!c)},"aria-hidden":!n,className:f},s),g.createElement("div",{className:p},g.createElement("p",{className:`${d}--batch-summary__para`},g.createElement(Xt,null,l(r>1||0===r?"carbon.table.batch.items.selected":"carbon.table.batch.item.selected",{totalSelected:r}))),i&&g.createElement(g.Fragment,null,g.createElement("span",{className:`${d}--batch-summary__divider`},"|"),g.createElement(Ut,{onClick:i,tabIndex:n?0:-1},l("carbon.table.batch.selectAll",{totalCount:o})))),g.createElement(Xa,null,t,g.createElement(Ut,{className:`${d}--batch-summary__cancel`,tabIndex:n?0:-1,onClick:a},l("carbon.table.batch.cancel"))))};function ei({className:e,children:t,...n}){const r=$(),o=y()(`${r}--form`,e);return g.createElement("form",m({className:o},n),t)}Qa.translationKeys=["carbon.table.batch.cancel","carbon.table.batch.items.selected","carbon.table.batch.item.selected","carbon.table.batch.selectAll"],Qa.propTypes={children:h().node,className:h().string,onCancel:h().func.isRequired,onSelectAll:h().func,shouldShowBatchActions:h().bool,totalCount:h().number,totalSelected:h().number.isRequired,translateWithId:h().func},ei.propTypes={children:h().node,className:h().string};const ti=({disabled:e=!1,legendId:t,legendText:n,invalid:r=!1,children:o,className:a,message:i=!1,messageText:l="",...s})=>{const c=$(),u=y()(`${c}--fieldset`,a);return g.createElement("fieldset",m({disabled:e},r&&{"data-invalid":""},{className:u},s,{"aria-labelledby":s["aria-labelledby"]||t}),g.createElement("legend",{className:`${c}--label`,id:t||s["aria-labelledby"]},n),o,i?g.createElement("div",{className:`${c}--form__requirements`},l):null)};function ni({className:e,children:t,id:n,...r}){const o=$(),a=y()(`${o}--label`,`${o}--label--no-margin`,e);return g.createElement(Xt,m({as:"label",htmlFor:n,className:a},r),t)}var ri,oi,ai,ii;ti.propTypes={children:h().node,className:h().string,disabled:h().bool,invalid:h().bool,legendId:h().node,legendText:h().node.isRequired,message:h().bool,messageText:h().string},ni.propTypes={children:h().node,className:h().string,id:h().string};const li=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ri||(ri=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),oi||(oi=g.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)})),si=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ai||(ai=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),ii||(ii=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)}));function ci({children:e,className:t,onClick:n,inline:r,...o}){const a=$(),i=y()(t,{[`${a}--actionable-notification__action-button`]:!0});return g.createElement(Ut,m({className:i,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function ui({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=Zr,name:a,notificationType:i="toast",...l}){const s=$(),c=y()(n,{[`${s}--${i}-notification__close-button`]:i}),u=y()({[`${s}--${i}-notification__close-icon`]:i});return g.createElement("button",m({},l,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&g.createElement(o,{className:u,name:a}))}ci.propTypes={children:h().node,className:h().string,inline:h().bool,onClick:h().func},ui.propTypes={"aria-label":h().string,ariaLabel:st(h().string),className:h().string,name:h().string,notificationType:h().oneOf(["toast","inline","actionable"]),renderIcon:h().oneOfType([h().func,h().object]),type:h().string};const di={error:Qo.x,success:Kr,warning:fn,"warning-alt":dn,info:li,"info-square":si};function fi({iconDescription:e,kind:t,notificationType:n}){const r=$(),o=di[t];return o?g.createElement(o,{className:`${r}--${n}-notification__icon`,size:20},g.createElement("title",null,e)):null}function mi({"aria-label":e,children:t,title:n,subtitle:r,role:o="status",onClose:a,onCloseButtonClick:i=mn,statusIconDescription:l,className:s,kind:c="error",lowContrast:u,hideCloseButton:d=!1,...f}){const[p,h]=(0,g.useState)(!0),b=$(),v=y()(s,{[`${b}--inline-notification`]:!0,[`${b}--inline-notification--low-contrast`]:u,[`${b}--inline-notification--${c}`]:c,[`${b}--inline-notification--hide-close-button`]:d}),w=(0,g.useRef)(null),E=(0,g.useRef)(null);return p?g.createElement("div",m({ref:E},f,{role:o,className:v}),g.createElement("div",{className:`${b}--inline-notification__details`},g.createElement(fi,{notificationType:"inline",kind:c,iconDescription:l||`${c} icon`}),g.createElement("div",{ref:w,className:`${b}--inline-notification__text-wrapper`},n&&g.createElement(Xt,{as:"div",className:`${b}--inline-notification__title`},n),r&&g.createElement(Xt,{as:"div",className:`${b}--inline-notification__subtitle`},r),t)),!d&&g.createElement(ui,{notificationType:"inline",onClick:function(e){i(e),a&&!1===a(e)||h(!1)},"aria-label":e})):null}function pi({actionButtonLabel:e,"aria-label":t,ariaLabel:n,caption:r,children:o,role:a="alertdialog",onActionButtonClick:i,onClose:l,onCloseButtonClick:s=mn,statusIconDescription:c,className:u,inline:d=!1,kind:f="error",lowContrast:p,hideCloseButton:h=!1,hasFocus:b=!0,closeOnEscape:v=!0,title:w,subtitle:E,...N}){const[C,_]=(0,g.useState)(!0),T=$(),I=Mt("actionable-notification"),R=Mt("actionable-notification-subtitle"),S=y()(u,{[`${T}--actionable-notification`]:!0,[`${T}--actionable-notification--toast`]:!d,[`${T}--actionable-notification--low-contrast`]:p,[`${T}--actionable-notification--${f}`]:f,[`${T}--actionable-notification--hide-close-button`]:h}),O=(0,g.useRef)(null),k=(0,g.useRef)(null),A=(0,g.useRef)(null),L=(0,g.useRef)(null),M=ut("enable-experimental-focus-wrap-without-sentinels");function D(e){s(e),l&&!1===l(e)||_(!1)}return x((()=>{if(b&&"alertdialog"===a){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);$t(r,[bt])&&n&&o&&t(r)};x((()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1))))}(L,D,v),C?g.createElement("div",m({},N,{ref:L,role:a,className:S,"aria-labelledby":w?I:R,onBlur:M?()=>{}:function({target:e,relatedTarget:t}){if(C&&t&&e&&"alertdialog"===a){const{current:n}=O,{current:r}=k,{current:o}=A;Ca({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e})}},onKeyDown:M?function(e){C&&_t(e,ht)&&L.current&&"alertdialog"===a&&$a({containerNode:L.current,currentActiveNode:e.target,event:e})}:()=>{}}),!M&&g.createElement("span",{ref:k,tabIndex:0,role:"link",className:`${T}--visually-hidden`},"Focus sentinel"),g.createElement("div",{className:`${T}--actionable-notification__details`},g.createElement(fi,{notificationType:d?"inline":"toast",kind:f,iconDescription:c||`${f} icon`}),g.createElement("div",{className:`${T}--actionable-notification__text-wrapper`},g.createElement("div",{className:`${T}--actionable-notification__content`},w&&g.createElement(Xt,{as:"div",className:`${T}--actionable-notification__title`,id:I},w),E&&g.createElement(Xt,{as:"div",className:`${T}--actionable-notification__subtitle`,id:R},E),r&&g.createElement(Xt,{as:"div",className:`${T}--actionable-notification__caption`},r),o))),g.createElement("div",{className:`${T}--actionable-notification__button-wrapper`,ref:O},e&&g.createElement(ci,{onClick:i,inline:d},e),!h&&g.createElement(ui,{"aria-label":n||t,notificationType:"actionable",onClick:D})),!M&&g.createElement("span",{ref:A,tabIndex:0,role:"link",className:`${T}--visually-hidden`},"Focus sentinel")):null}fi.propTypes={iconDescription:h().string.isRequired,kind:h().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:h().oneOf(["inline","toast"]).isRequired},h().string,st(h().string),h().string,h().node,h().string,h().bool,h().oneOf(["error","info","info-square","success","warning","warning-alt"]),h().bool,h().func,h().func,h().oneOf(["alert","log","status"]),h().string,h().string,h().number,h().string,mi.propTypes={"aria-label":h().string,children:h().node,className:h().string,hideCloseButton:h().bool,kind:h().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:h().bool,onClose:h().func,onCloseButtonClick:h().func,role:h().oneOf(["alert","log","status"]),statusIconDescription:h().string,subtitle:h().string,title:h().string},pi.propTypes={actionButtonLabel:h().string,"aria-label":h().string,ariaLabel:st(h().string),caption:h().string,children:h().node,className:h().string,closeOnEscape:h().bool,hasFocus:st(h().bool),hideCloseButton:h().bool,inline:h().bool,kind:h().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:h().bool,onActionButtonClick:h().func,onClose:h().func,onCloseButtonClick:h().func,role:h().string,statusIconDescription:h().string,subtitle:h().node,title:h().string};const hi={error:"warning",success:"info"};h().string,h().node,h().string,E(h().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],(e=>hi[e])),h().bool,h().func,h().string,h().node,h().string,h().string;const gi=(0,g.forwardRef)(((e,t)=>{const{className:n,closeMenu:r,disabled:o=!1,handleOverflowMenuItemFocus:a,hasDivider:i=!1,href:l,isDelete:s=!1,index:c,itemText:u="Provide itemText",onClick:d=()=>{},onKeyDown:f=()=>{},requireTitle:p,title:h,wrapperClassName:b,...v}=e,w=$(),E=y()(`${w}--overflow-menu-options__btn`,n),x=y()(`${w}--overflow-menu-options__option`,{[`${w}--overflow-menu--divider`]:i,[`${w}--overflow-menu-options__option--danger`]:s,[`${w}--overflow-menu-options__option--disabled`]:o},b),N=l?"a":"button",C="string"!=typeof u?u:g.createElement("div",{className:`${w}--overflow-menu-options__option-content`},u);return g.createElement(Xt,{as:"li",className:x,role:"none"},g.createElement(N,m({className:E,disabled:o,href:l,onClick:function(e){d(e),r&&r()},onKeyDown:e=>{!function(e){_t(e,Ct)&&a?.({currentIndex:c,direction:1}),_t(e,xt)&&a?.({currentIndex:c,direction:-1})}(e),f(e)},role:"menuitem",ref:t,tabIndex:-1,title:p?h||u:void 0},v),C))}));var bi,vi,yi,wi;gi.propTypes={className:h().string,closeMenu:h().func,disabled:h().bool,handleOverflowMenuItemFocus:h().func,hasDivider:h().bool,href:h().string,index:h().number,isDelete:h().bool,itemText:h().node.isRequired,onBlur:h().func,onClick:h().func,onFocus:h().func,onKeyDown:h().func,onKeyUp:h().func,onMouseDown:h().func,onMouseEnter:h().func,onMouseLeave:h().func,onMouseUp:h().func,requireTitle:h().bool,title:h().string,wrapperClassName:h().string};const Ei=g.forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...n},bi||(bi=g.createElement("path",{d:"M5 8L0 4 5 0z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},vi||(vi=g.createElement("path",{d:"M20 24L10 16 20 8z"})),e)})),xi=g.forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...n},yi||(yi=g.createElement("path",{d:"M0 0L5 4 0 8z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},wi||(wi=g.createElement("path",{d:"M12 8L22 16 12 24z"})),e)})),Ni=g.forwardRef((({className:e,decorator:t,id:n,inline:r=!1,labelText:o="Select",disabled:a=!1,children:i,noLabel:l=!1,hideLabel:s=!1,invalid:c=!1,invalidText:u="",helperText:d="",light:f=!1,readOnly:p,size:h,warn:b=!1,warnText:v,onChange:w,slug:E,...x},N)=>{const C=$(),{isFluid:_}=(0,g.useContext)(Qr),[T,I]=(0,g.useState)(!1),R=Mt(),S=g.Children.toArray(i).filter((e=>g.isValidElement(e))),O=S.find((e=>e.props?.value===x?.defaultValue)),k=O?.props?.text||S[0]?.props?.text||"",[A,L]=(0,g.useState)(k),M=y()({[`${C}--select`]:!0,[`${C}--select--inline`]:r,[`${C}--select--light`]:f,[`${C}--select--invalid`]:c,[`${C}--select--disabled`]:a,[`${C}--select--readonly`]:p,[`${C}--select--warning`]:b,[`${C}--select--fluid--invalid`]:_&&c,[`${C}--select--fluid--focus`]:_&&T,[`${C}--select--slug`]:E,[`${C}--select--decorator`]:t}),D=y()(`${C}--label`,{[`${C}--visually-hidden`]:s,[`${C}--label--disabled`]:a}),B=y()({[`${C}--select-input`]:!0,[`${C}--select-input--${h}`]:h}),V=`${n}-error-msg`,P=c?u:b?v:void 0,z=c||b?g.createElement(Xt,{as:"div",className:`${C}--form-requirement`,id:V},P):null,F=y()(`${C}--form__helper-text`,{[`${C}--form__helper-text--disabled`]:a}),H=d?`select-helper-text-${R}`:void 0,q=d?g.createElement(Xt,{as:"div",id:H,className:F},d):null,j={};c?j["aria-describedby"]=V:r||_||(j["aria-describedby"]=q?H:void 0);const W=e=>{I("focus"===e.type)},K={onMouseDown:e=>{p&&(e.preventDefault(),e.target.focus())},onKeyDown:e=>{p&&["ArrowDown","ArrowUp"," "].includes(e.key)&&e.preventDefault()}},U=E??t,Z=In(U,Tn)?(0,g.cloneElement)(U,{size:"mini"}):null,G=g.createElement(g.Fragment,null,g.createElement("select",m({},x,j,{id:n,className:B,disabled:a||void 0,"aria-invalid":c||void 0,"aria-readonly":p||void 0,title:A,onChange:_a([w,e=>{const t=e?.target?.options[e.target.selectedIndex];L(t?.text)}])},K,{ref:N}),i),g.createElement(Ur,{className:`${C}--select__arrow`}),c&&g.createElement(fn,{className:`${C}--select__invalid-icon`}),!c&&b&&g.createElement(dn,{className:`${C}--select__invalid-icon ${C}--select__invalid-icon--warning`}));return g.createElement("div",{className:y()(`${C}--form-item`,e)},g.createElement("div",{className:M},!l&&g.createElement(Xt,{as:"label",htmlFor:n,className:D},o),r&&g.createElement("div",{className:`${C}--select-input--inline__wrapper`},g.createElement("div",{className:`${C}--select-input__wrapper`,"data-invalid":c||null},G),z),!r&&g.createElement("div",{className:`${C}--select-input__wrapper`,"data-invalid":c||null,onFocus:W,onBlur:W},G,E?Z:t?g.createElement("div",{className:`${C}--select__inner-wrapper--decorator`},Z):"",_&&g.createElement("hr",{className:`${C}--select__divider`}),_&&z?z:null),r||_||!z?q:z))}));Ni.displayName="Select",Ni.propTypes={children:h().node,className:h().string,decorator:h().node,defaultValue:h().any,disabled:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string.isRequired,inline:h().bool,invalid:h().bool,invalidText:h().node,labelText:h().node,light:st(h().bool),noLabel:h().bool,onChange:h().func,readOnly:h().bool,size:h().oneOf(["sm","md","lg"]),slug:st(h().node),warn:h().bool,warnText:h().node};const Ci=({className:e,value:t="",disabled:n=!1,hidden:r=!1,text:o="",...a})=>{const i=$(),l=y()({[`${i}--select-option`]:!0,...e&&{[e]:e}});return g.createElement("option",m({},a,{className:l,value:t,disabled:n,hidden:r}),o)};var $i,_i;function Ti(e){return"object"==typeof e[0]&&null!==e[0]?e:e.map((e=>({text:e,value:e})))}function Ii(e,t){if(t){if(e.find((e=>t===e.value)))return t}return e[0].value}Ci.propTypes={className:h().string,disabled:h().bool,hidden:h().bool,text:h().string.isRequired,value:h().any.isRequired};const Ri=g.forwardRef((({backwardText:e="Previous page",className:t="",disabled:n=!1,forwardText:r="Next page",id:o,isLastPage:a=!1,itemText:i=(e,t)=>`${e}–${t} items`,itemRangeText:l=(e,t,n)=>`${e}–${t} of ${n} items`,itemsPerPageText:s="Items per page:",onChange:c,pageNumberText:u="Page Number",pageRangeText:d=(e,t)=>`of ${t} ${1===t?"page":"pages"}`,page:f=1,pageInputDisabled:p,pageSize:h,pageSizeInputDisabled:b,pageSizes:v,pageText:w=e=>`page ${e}`,pagesUnknown:E=!1,size:x="md",totalItems:N,...C},_)=>{const T=$(),I=Dt(o?.toString()),R=(0,g.useRef)(null),S=(0,g.useRef)(null),[O,k]=(0,g.useState)((()=>Ti(v))),[A,L]=(0,g.useState)(v),[M,D]=(0,g.useState)(f),[B,V]=(0,g.useState)(f),[P,z]=(0,g.useState)(null),[F,H]=(0,g.useState)((()=>Ii(O,h))),[q,j]=(0,g.useState)(h),W=y()({[`${T}--pagination`]:!0,[`${T}--pagination--${x}`]:x,[t]:!!t}),K=N?Math.max(Math.ceil(N/F),1):1,U=n||1===M,Z=y()({[`${T}--pagination__button`]:!0,[`${T}--pagination__button--backward`]:!0,[`${T}--pagination__button--no-index`]:U}),G=n||M===K&&!E,X=y()({[`${T}--pagination__button`]:!0,[`${T}--pagination__button--forward`]:!0,[`${T}--pagination__button--no-index`]:G}),Y=function(e){let t=1;const n=[];for(;t<=e;)n.push(g.createElement(Ci,{key:t,value:t,text:String(t)})),t++;return n}(K),J={backward:R,forward:S};if((0,g.useEffect)((()=>{P&&((e=>{const t=J[e];t?.current&&!t.current.disabled&&t.current.focus()})(P),z(null))}),[P]),f!==B&&(D(f),V(f)),h!==q&&(H(Ii(O,h)),j(h)),!Xr()(v,A)){const e=Ti(v),t=e.find((e=>e.value===F));t||D(1),k(e),L(v)}return g.createElement("div",m({className:W,ref:_},C),g.createElement("div",{className:`${T}--pagination__left`},g.createElement("label",{id:`${T}-pagination-select-${I}-count-label`,className:`${T}--pagination__text`,htmlFor:`${T}-pagination-select-${I}`},s),g.createElement(Ni,{id:`${T}-pagination-select-${I}`,className:`${T}--select__item-count`,labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:function(e){const t={pageSize:Number(e.target.value),page:1};D(t.page),H(t.pageSize),c&&c(t)},disabled:b||n,value:F},O.map((e=>g.createElement(Ci,{key:e.value,value:e.value,text:String(e.text)})))),g.createElement("span",{className:`${T}--pagination__text ${T}--pagination__items-count`},E||!N?0===N?l(0,0,0):i(F*(M-1)+1,M*F):l(Math.min(F*(M-1)+1,N),Math.min(M*F,N),N))),g.createElement("div",{className:`${T}--pagination__right`},E?g.createElement("span",{className:`${T}--pagination__text ${T}--pagination__page-text ${T}--pagination__unknown-pages-text`},w(M)):g.createElement(g.Fragment,null,g.createElement(Ni,{id:`${T}-pagination-select-${I}-right`,className:`${T}--select__page-number`,labelText:`Page of ${K} pages`,inline:!0,hideLabel:!0,onChange:function(e){const t=Number(e.target.value);t>0&&N&&t<=Math.max(Math.ceil(N/F),1)&&(D(t),c&&c({page:t,pageSize:F}))},value:M,disabled:p||n},Y),g.createElement("span",{className:`${T}--pagination__text`},d(M,K))),g.createElement("div",{className:`${T}--pagination__control-buttons`},g.createElement(Wt,{align:"top",disabled:U,kind:"ghost",className:Z,label:e,"aria-label":e,onClick:function(){const e=M-1;D(e),1===e&&z("forward"),c&&c({page:e,pageSize:F,ref:S})},ref:R},$i||($i=g.createElement(Ei,null))),g.createElement(Wt,{align:"top-end",disabled:G||a,kind:"ghost",className:X,label:r,"aria-label":r,onClick:function(){const e=M+1;D(e),e===K&&z("backward"),c&&c({page:e,pageSize:F,ref:R})},ref:S},_i||(_i=g.createElement(xi,null))))))}));Ri.propTypes={backwardText:h().string,className:h().string,disabled:h().bool,forwardText:h().string,id:h().oneOfType([h().string,h().number]),isLastPage:h().bool,itemRangeText:h().func,itemText:h().func,itemsPerPageText:h().string,onChange:h().func,page:h().number,pageInputDisabled:h().bool,pageNumberText:h().string,pageRangeText:h().func,pageSize:h().number,pageSizeInputDisabled:h().bool,pageSizes:h().oneOfType([h().arrayOf(h().number.isRequired),h().arrayOf(h().shape({text:h().string.isRequired,value:h().number.isRequired}).isRequired)]).isRequired,pageText:h().func,pagesUnknown:h().bool,size:h().oneOf(["sm","md","lg"]),totalItems:h().number};const Si=g.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,b=$(),v=Mt("radio-button"),w=i||v,E=y()(`${b}--radio-button__label-text`,{[`${b}--visually-hidden`]:a}),x=y()(n,`${b}--radio-button-wrapper`,{[`${b}--radio-button-wrapper--label-${l}`]:"right"!==l,[`${b}--radio-button-wrapper--slug`]:f,[`${b}--radio-button-wrapper--decorator`]:r}),N=(0,g.useRef)(null),C=f??r,_=In(C,Tn)?(0,g.cloneElement)(C,{size:"inline"===C.props?.kind?"md":"mini"}):null;return g.createElement("div",{className:x},g.createElement("input",m({},h,{type:"radio",className:`${b}--radio-button`,onChange:function(e){u(d,c,e)},id:w,ref:Ro(N,t),disabled:o,value:d,name:c,required:p})),g.createElement("label",{htmlFor:w,className:`${b}--radio-button__label`},g.createElement("span",{className:`${b}--radio-button__appearance`}),s&&g.createElement(Xt,{className:E},s,f?_:r?g.createElement("div",{className:`${b}--radio-button-wrapper-inner--decorator`},_):"")))}));function Oi(e){const{className:t,...n}=e,r=$();return g.createElement("div",m({className:y()(`${r}--radio-button-wrapper`,t)},n),g.createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),g.createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}Si.displayName="RadioButton",Si.propTypes={checked:h().bool,className:h().string,decorator:h().node,defaultChecked:h().bool,disabled:h().bool,hideLabel:h().bool,id:h().string,labelPosition:h().oneOf(["right","left"]),labelText:h().node.isRequired,name:h().string,onChange:h().func,onClick:h().func,required:h().bool,slug:st(h().node),value:h().oneOfType([h().string,h().number])},Oi.propTypes={className:h().string};const ki=e=>g.createElement(Xt,m({as:"legend"},e));const Ai=g.forwardRef(((e,t)=>{const{children:n,className:r,decorator:o,defaultSelected:a,disabled:i,helperText:l,invalid:s=!1,invalidText:c,labelPosition:u="right",legendText:d,name:f,onChange:p=()=>{},orientation:h="horizontal",readOnly:b,valueSelected:v,warn:w=!1,warnText:E,slug:x,required:N,...C}=e,_=$(),[T,I]=(0,g.useState)(v??a),[R,S]=(0,g.useState)(v),O=Mt();function k(e,t,n){b||e!==T&&(I(e),p(e,f,n))}v!==R&&(I(v),S(v));const A=!b&&!s&&w,L=!s&&!i&&!w,M=y()(`${_}--form-item`,r),D=y()(`${_}--radio-button-group`,{[`${_}--radio-button-group--${h}`]:"vertical"===h,[`${_}--radio-button-group--label-${u}`]:u,[`${_}--radio-button-group--readonly`]:b,[`${_}--radio-button-group--invalid`]:!b&&s,[`${_}--radio-button-group--warning`]:A,[`${_}--radio-button-group--slug`]:x,[`${_}--radio-button-group--decorator`]:o}),B=y()(`${_}--form__helper-text`,{[`${_}--form__helper-text--disabled`]:i}),V=l?`radio-button-group-helper-text-${O}`:void 0,P=l?g.createElement("div",{id:V,className:B},l):null,z=(0,g.useRef)(null),F=x??o,H=In(F,Tn)?(0,g.cloneElement)(F,{size:"mini",kind:"default"}):null;return g.createElement("div",{className:M,ref:Ro(z,t)},g.createElement("fieldset",m({className:D,disabled:i,"data-invalid":!!s||void 0,"aria-describedby":L&&l?V:void 0},C),d&&g.createElement(ki,{className:`${_}--label`},d,x?H:o?g.createElement("div",{className:`${_}--radio-button-group-inner--decorator`},H):""),g.Children.map(n,(e=>{if(!e)return;const t={name:f,key:e.props.value,value:e.props.value,onChange:k,checked:e.props.value===T,required:N};return!T&&e.props.checked&&(t.checked=!0),g.cloneElement(e,t)}))),g.createElement("div",{className:`${_}--radio-button__validation-msg`},!b&&s&&g.createElement(g.Fragment,null,g.createElement(fn,{className:`${_}--radio-button__invalid-icon`}),g.createElement("div",{className:`${_}--form-requirement`},c)),A&&g.createElement(g.Fragment,null,g.createElement(dn,{className:`${_}--radio-button__invalid-icon ${_}--radio-button__invalid-icon--warning`}),g.createElement("div",{className:`${_}--form-requirement`},E))),L&&P)}));var Li,Mi;Ai.propTypes={children:h().node,className:h().string,decorator:h().node,defaultSelected:h().oneOfType([h().string,h().number]),disabled:h().bool,helperText:h().node,invalid:h().bool,invalidText:h().node,labelPosition:h().oneOf(["left","right"]),legendText:h().node,name:h().string.isRequired,onChange:h().func,orientation:h().oneOf(["horizontal","vertical"]),readOnly:h().bool,required:h().bool,slug:st(h().node),valueSelected:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node},Ai.displayName="RadioButtonGroup";const Di=g.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Li||(Li=g.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Mi||(Mi=g.createElement("path",{d:"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"})),e)}));var Bi;const Vi=g.forwardRef((({autoComplete:e="off",className:t,closeButtonLabelText:n="Clear search input",defaultValue:r,disabled:o,isExpanded:a=!0,id:i,labelText:l,light:s,onChange:c=()=>{},onClear:u=()=>{},onKeyDown:d,onExpand:f,placeholder:p="Search",renderIcon:h,role:b,size:v="md",type:w="search",value:E,...x},C)=>{const _=!(!E&&!r),T=$(),{isFluid:I}=(0,g.useContext)(Qr),R=(0,g.useRef)(null),S=N([C,R]),O=(0,g.useRef)(null),k=Mt("search-input"),A=i||k,L=`${A}-search`,[M,D]=(0,g.useState)(_||!1),[B,V]=(0,g.useState)(E),P=y()({[`${T}--search`]:!0,[`${T}--search--sm`]:"sm"===v,[`${T}--search--md`]:"md"===v,[`${T}--search--lg`]:"lg"===v,[`${T}--search--light`]:s,[`${T}--search--disabled`]:o,[`${T}--search--fluid`]:I},t),z=y()({[`${T}--search-close`]:!0,[`${T}--search-close--hidden`]:!M||!a});function F(){if(!E&&R.current&&(R.current.value=""),R.current){const e=Object.assign({},R.current,{value:""}),t={bubbles:!1,cancelable:!1,currentTarget:R.current,defaultPrevented:!1,eventPhase:0,isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,isTrusted:!1,nativeEvent:new Event("change"),persist:mn,preventDefault:mn,stopPropagation:mn,target:e,timeStamp:0,type:"change"};c(t)}u(),D(!1),R.current?.focus()}return E!==B&&(D(!!E),V(E)),g.createElement("div",{role:"search","aria-label":p,className:P},g.createElement("div",{"aria-labelledby":f?L:void 0,role:f?"button":void 0,className:`${T}--search-magnifier`,onClick:f,onKeyDown:function(e){(_t(e,gt)||_t(e,vt))&&(e.stopPropagation(),f&&f(e))},tabIndex:f&&!a?0:-1,ref:O,"aria-expanded":!(!f||!a)||!(f&&!a)&&void 0,"aria-controls":f?A:void 0},g.createElement(Pi,{icon:h})),g.createElement("label",{id:L,htmlFor:A,className:`${T}--label`},l),g.createElement("input",m({autoComplete:e,className:`${T}--search-input`,defaultValue:r,disabled:o,role:b,ref:S,id:A,onChange:_a([c,function(e){D(""!==e.target.value)}]),onKeyDown:_a([d,function(e){_t(e,bt)&&(e.stopPropagation(),R.current?.value?F():f&&a&&O.current?.focus())}]),placeholder:p,type:w,value:E,tabIndex:f&&!a?-1:void 0},x)),g.createElement("button",{"aria-label":n,className:z,disabled:o,onClick:F,title:n,type:"button"},Bi||(Bi=g.createElement(Zr,null))))}));function Pi({icon:e}){const t=$();return e?g.createElement(e,{className:`${t}--search-magnifier-icon`}):g.createElement(Di,{className:`${t}--search-magnifier-icon`})}Vi.displayName="Search",Vi.propTypes={autoComplete:h().string,className:h().string,closeButtonLabelText:h().string,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,id:h().string,isExpanded:h().bool,labelText:h().node.isRequired,light:st(h().bool),onChange:h().func,onClear:h().func,onExpand:h().func,onKeyDown:h().func,placeholder:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:st(h().string),size:h().oneOf(["sm","md","lg"]),type:h().string,value:h().oneOfType([h().string,h().number])},Pi.propTypes={icon:h().oneOfType([h().func,h().object])};const zi=({className:e,...t})=>{const n=$(),r=y()(e,{[`${n}--icon--skeleton`]:!0});return g.createElement("div",m({className:r},t))};zi.propTypes={className:h().string};const Fi=g.forwardRef(((e,t)=>{const{children:n,className:r,disabled:o,index:a,name:i,onClick:l=mn,onKeyDown:s=mn,selected:c=!1,text:u,...d}=e,f=$(),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:y()(r,`${f}--content-switcher-btn`,{[`${f}--content-switcher--selected`]:c}),disabled:o};return g.createElement("button",m({type:"button",ref:t,role:"tab",tabIndex:c?0:-1,"aria-selected":c},d,p),g.createElement("span",{className:`${f}--content-switcher__label`,title:u},void 0!==u?u:n))}));Fi.displayName="Switch",Fi.propTypes={children:h().node,className:h().string,disabled:h().bool,index:h().number,name:h().oneOfType([h().string,h().number]),onClick:h().func,onKeyDown:h().func,selected:h().bool,text:h().string};const Hi=({align:e="bottom",autoAlign:t,className:n,children:r,definition:o,defaultOpen:a=!1,id:i,openOnHover:l,tooltipText:s,triggerClassName:c,...u})=>{const[d,f]=(0,g.useState)(a),p=$(),h=Dt(i);return g.createElement(ft,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{f(!1)},onMouseEnter:()=>{l&&f(!0)},onFocus:()=>{f(!0)},open:d},g.createElement("button",m({},u,{className:y()(`${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&&_t(e,bt)&&(e.stopPropagation(),f(!1))},type:"button"}),r),g.createElement(pt,{className:`${p}--definition-tooltip`,id:h},s??o))};var qi;Hi.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),autoAlign:h().bool,children:h().node.isRequired,className:h().string,defaultOpen:h().bool,definition:h().node.isRequired,id:h().string,openOnHover:h().bool,tooltipText:st(h().node),triggerClassName:h().string};const ji={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"},Wi=g.forwardRef((({children:e,className:t,decorator:n,id:r,type:o,filter:a,renderIcon:i,title:l="Clear filter",disabled:s,onClose:c,size:u,as:d,slug:f,...p},h)=>{const b=$(),v=(0,g.useRef)(null);a&&console.warn("The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead."),c&&console.warn("The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.");const w=N([h,v]),E=r||`tag-${Mt()}`,[x,C]=(0,g.useState)(!1);(0,g.useLayoutEffect)((()=>{const e=v.current?.getElementsByClassName(`${b}--tag__label`)[0];C((e=>!!e&&e?.offsetWidth<e?.scrollWidth)(e))}),[b,v]);const _=[`${b}--tag--selectable`,`${b}--tag--filter`,`${b}--tag--operational`].some((e=>t?.includes(e))),T=y()(`${b}--tag`,t,{[`${b}--tag--disabled`]:s,[`${b}--tag--filter`]:a,[`${b}--tag--${u}`]:u,[`${b}--layout--size-${u}`]:u,[`${b}--tag--${o}`]:o,[`${b}--tag--interactive`]:p.onClick&&!_&&x}),I=void 0!==o&&o in Object.keys(ji)?ji[o]:"",R=e=>{c&&(e.stopPropagation(),c(e))},S=f??n,O=In(S,Tn)&&!_?(0,g.cloneElement)(S,{size:"sm",kind:"inline"}):null;if(a){const t=d??"div";return g.createElement(t,m({className:T,id:E},p),i&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(i,null)):"",g.createElement(Xt,{title:"string"==typeof e?e:void 0,className:`${b}--tag__label`},null!=e?e:I),O,g.createElement("button",{type:"button",className:`${b}--tag__close-icon`,onClick:R,disabled:s,"aria-label":l,title:l},qi||(qi=g.createElement(Zr,null))))}const k=d??(p.onClick||t?.includes(`${b}--tag--operational`)?"button":"div"),A=y()({[`${b}--tag__label`]:!_});return g.createElement(k,m({ref:w,disabled:s,className:T,id:E,type:"button"===k?"button":void 0},p),i&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(i,null)):"",x&&!_?g.createElement(Hi,{openOnHover:!1,definition:null!=e?e:I,className:`${b}--definition--tooltip--tag`},g.createElement(Xt,{title:null!=e&&"string"==typeof e?e:I,className:A},null!=e?e:I)):g.createElement(Xt,{title:null!=e&&"string"==typeof e?e:I,className:A},null!=e?e:I),f?O:n?g.createElement("div",{className:`${b}--tag__decorator`},O):"")})),Ki=Wi;Ki.propTypes={as:h().elementType,children:h().node,className:h().string,decorator:h().node,disabled:h().bool,filter:st(h().bool),id:h().string,onClose:st(h().func),renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:st(h().node),title:st(h().string),type:h().oneOf(Object.keys(ji))};const Ui=(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},Zi=(0,g.forwardRef)(((e,t)=>{const{className:n,decorator:r,disabled:o=!1,id:a,labelText:i,hideLabel:l,onChange:s=mn,onClick:c=mn,onKeyDown:u=mn,invalid:d=!1,invalidText:f="",helperText:p="",light:h,placeholder:b="",enableCounter:v=!1,maxCount:w,counterMode:E="character",warn:C=!1,warnText:_="",rows:T=4,slug:I,...R}=e,S=$(),{isFluid:O}=(0,g.useContext)(Qr),{defaultValue:k,value:A}=R,L=Mt(),M=(0,g.useRef)(null),D=(0,g.useRef)(null),B=(0,g.useRef)(null),V=(0,g.useRef)(null),P=(0,g.useRef)(null),z=N([t,D]);function F(){const e=(k||A||D.current?.value||"").toString();return"character"===E?e.length:e.match(/\p{L}+/gu)?.length||0}const[H,q]=(0,g.useState)(F());(0,g.useEffect)((()=>{q(F())}),[A,k,E]),x((()=>{if(R.cols&&D.current?(D.current.style.width="",D.current.style.resize="none"):D.current&&(D.current.style.width="100%"),!M.current)return;const e=new ResizeObserver((([e])=>{var t;t=e.contentRect.width,[B,V,P].forEach((e=>{e.current&&(e.current.style.maxWidth=`${t}px`,e.current.style.overflowWrap="break-word")}))}));return e.observe(M.current),()=>e&&e.disconnect()}),[R.cols,d,C]);const j={id:a,onKeyDown:e=>{if(!o&&v&&"word"===E){const t=e.which;(w&&H>=w&&32===t||w&&H>=w&&13===t)&&e.preventDefault()}!o&&u&&u(e)},onPaste:e=>{if(!o&&"word"===E&&v&&void 0!==w&&null!==D.current){const t=D.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((()=>{q(w)}),0),D.current.value=r.join(" ")}}},onChange:e=>{if(!o){if("character"==E)e?.persist?.(),setTimeout((()=>{q(e.target?.value?.length)}),0);else if("word"==E){if(!e.target.value)return void setTimeout((()=>{q(0)}),0);if(v&&void 0!==w&&null!==D.current){const t=e.target?.value?.match(/\p{L}+/gu);t&&t.length<=w?(D.current.removeAttribute("maxLength"),setTimeout((()=>{q(t.length)}),0)):t&&t.length>w&&setTimeout((()=>{q(t.length)}),0)}}s&&s(e)}},onClick:e=>{!o&&c&&c(e)}},W=y()(`${S}--form-item`,n),K=y()(`${S}--text-area__wrapper`,{[`${S}--text-area__wrapper--cols`]:R.cols,[`${S}--text-area__wrapper--readonly`]:R.readOnly,[`${S}--text-area__wrapper--warn`]:C,[`${S}--text-area__wrapper--slug`]:I,[`${S}--text-area__wrapper--decorator`]:r}),U=y()(`${S}--label`,{[`${S}--visually-hidden`]:l&&!O,[`${S}--label--disabled`]:o}),Z=y()(`${S}--text-area`,{[`${S}--text-area--light`]:h,[`${S}--text-area--invalid`]:d,[`${S}--text-area--warn`]:C}),G=y()(`${S}--label`,{[`${S}--label--disabled`]:o,[`${S}--text-area__label-counter`]:!0}),X=y()(`${S}--form__helper-text`,{[`${S}--form__helper-text--disabled`]:o}),Y=i?g.createElement(Xt,{as:"label",htmlFor:a,className:U},i):null,J=v&&w&&("character"===E||"word"===E)?g.createElement(Xt,{as:"div",className:G},`${H}/${w}`):null,Q=p?`text-area-helper-text-${L}`:void 0,ee=p?g.createElement(Xt,{as:"div",id:Q,className:X,ref:B},p):null,te=a+"-error-msg",ne=d?g.createElement(Xt,{as:"div",role:"alert",className:`${S}--form-requirement`,id:te,ref:V},f,O&&g.createElement(fn,{className:`${S}--text-area__invalid-icon`})):null,re=a+"-warn-msg",oe=C?g.createElement(Xt,{as:"div",role:"alert",className:`${S}--form-requirement`,id:re,ref:P},_,O&&g.createElement(dn,{className:`${S}--text-area__invalid-icon ${S}--text-area__invalid-icon--warning`})):null;let ae;d?ae=te:d||C||O||!p||(ae=Q),v&&"character"==E&&(j.maxLength=w);const ie=(0,g.useRef)(null),[le,se]=(0,g.useState)(""),ce=Ui(H,w,"word"===E?"word":void 0,"word"===E?"words":void 0);(0,g.useEffect)((()=>{if(ce&&ce!==le){const e=ie.current;if(e){e.textContent="";const t=setTimeout((()=>{e&&(e.textContent=ce,se(ce))}),"word"===E?2e3:1e3);return()=>{t&&clearTimeout(t)}}}}),[ce,le,E]);const ue=g.createElement("textarea",m({},R,j,{placeholder:b,"aria-readonly":!!R.readOnly,className:Z,"aria-invalid":d,"aria-describedby":ae,disabled:o,rows:T,readOnly:R.readOnly,ref:z})),de=I??r,fe=In(de,Tn)?(0,g.cloneElement)(de,{size:"mini"}):null;return g.createElement("div",{className:W},g.createElement("div",{className:`${S}--text-area__label-wrapper`},Y,J),g.createElement("div",{ref:M,className:K,"data-invalid":d||null},d&&!O&&g.createElement(fn,{className:`${S}--text-area__invalid-icon`}),C&&!d&&!O&&g.createElement(dn,{className:`${S}--text-area__invalid-icon ${S}--text-area__invalid-icon--warning`}),ue,I?fe:r?g.createElement("div",{className:`${S}--text-area__inner-wrapper--decorator`},fe):"",g.createElement("span",{className:`${S}--text-area__counter-alert`,role:"alert","aria-live":"assertive","aria-atomic":"true",ref:ie},ce),O&&g.createElement("hr",{className:`${S}--text-area__divider`}),O&&d?ne:null,O&&C&&!d?oe:null),d||C||O?null:ee,d&&!O?ne:null,!C||d||O?null:oe)}));Zi.displayName="TextArea",Zi.propTypes={className:h().string,cols:h().number,counterMode:h().oneOf(["character","word"]),decorator:h().node,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,enableCounter:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string,invalid:h().bool,invalidText:h().node,labelText:h().node.isRequired,light:st(h().bool),maxCount:h().number,onChange:h().func,onClick:h().func,onKeyDown:h().func,placeholder:h().string,readOnly:h().bool,rows:h().number,slug:st(h().node),value:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node};const Gi=e=>({"data-invalid":!0,"aria-invalid":!0,"aria-describedby":e}),Xi=e=>({"aria-describedby":e}),Yi=e=>({"aria-describedby":e}),Ji=g.forwardRef((({className:e,decorator:t,disabled:n=!1,helperText:r,hideLabel:o,id:a,inline:i=!1,invalid:l=!1,invalidText:s,labelText:c,light:u,onChange:d=()=>{},onClick:f=()=>{},placeholder:m,readOnly:p,size:h,type:b="text",warn:v=!1,warnText:w,enableCounter:E=!1,maxCount:x,slug:C,..._},T)=>{const I=$(),{defaultValue:R,value:S}=_,O=(0,g.useRef)(null),k=N([T,O]);function A(){return(R||S||O.current?.value||"").toString().length}const[L,M]=(0,g.useState)(A());(0,g.useEffect)((()=>{M(A())}),[S,R,E]);const D=(({id:e,readOnly:t,disabled:n,invalid:r,invalidText:o,warn:a,warnText:i})=>{const l=$(),s={disabled:!t&&n,invalid:!t&&r,invalidId:`${e}-error-msg`,warn:!t&&!r&&a,warnId:`${e}-warn-msg`,validation:null,icon:null,helperId:`${e}-helper-text`};return s.invalid?(s.icon=fn,s.validation=g.createElement(Xt,{as:"div",className:`${l}--form-requirement`,id:s.invalidId},o)):s.warn&&(s.icon=dn,s.validation=g.createElement(Xt,{as:"div",className:`${l}--form-requirement`,id:s.warnId},i)),s})({id:a,readOnly:p,disabled:n,invalid:l,invalidText:s,warn:v,warnText:w}),B={id:a,onChange:e=>{D.disabled||(M(e.target.value?.length),d(e))},onClick:e=>{D.disabled||f(e)},placeholder:m,type:b,ref:k,className:y()(`${I}--text-input`,{[`${I}--text-input--light`]:u,[`${I}--text-input--invalid`]:D.invalid,[`${I}--text-input--warning`]:D.warn,[`${I}--text-input--${h}`]:h,[`${I}--layout--size-${h}`]:h}),title:m,disabled:D.disabled,readOnly:p,"aria-describedby":r&&D.helperId,..._};E&&(B.maxLength=x);const V=y()([y()(`${I}--form-item`,e)],`${I}--text-input-wrapper`,{[`${I}--text-input-wrapper--readonly`]:p,[`${I}--text-input-wrapper--light`]:u,[`${I}--text-input-wrapper--inline`]:i,[`${I}--text-input-wrapper--inline--invalid`]:i&&D.invalid}),P=y()(`${I}--label`,{[`${I}--visually-hidden`]:o,[`${I}--label--disabled`]:D.disabled,[`${I}--label--inline`]:i,[`${I}--label--inline--${h}`]:i&&!!h}),z=y()(`${I}--form__helper-text`,{[`${I}--form__helper-text--disabled`]:D.disabled,[`${I}--form__helper-text--inline`]:i}),F=y()(`${I}--text-input__field-outer-wrapper`,{[`${I}--text-input__field-outer-wrapper--inline`]:i}),H=y()(`${I}--text-input__field-wrapper`,{[`${I}--text-input__field-wrapper--warning`]:D.warn,[`${I}--text-input__field-wrapper--slug`]:C,[`${I}--text-input__field-wrapper--decorator`]:t}),q=y()({[`${I}--text-input__invalid-icon`]:D.invalid||D.warn,[`${I}--text-input__invalid-icon--warning`]:D.warn}),j=y()(`${I}--label`,{[`${I}--label--disabled`]:n,[`${I}--text-input__label-counter`]:!0}),W=E&&x?g.createElement(Xt,{as:"div",className:j},`${L}/${x}`):null,K=c?g.createElement(Xt,{as:"label",htmlFor:a,className:P},c):null,U=g.createElement("div",{className:`${I}--text-input__label-wrapper`},K,W),Z=r?g.createElement(Xt,{as:"div",id:D.helperId,className:z},r):null,G=g.createElement("input",(({sharedTextInputProps:e,invalid:t,invalidId:n,warn:r,warnId:o,hasHelper:a,helperId:i})=>({...e,...t?Gi(n):{},...r?Xi(o):{},...a?Yi(i):{}}))({sharedTextInputProps:B,invalid:D.invalid,invalidId:D.invalidId,warn:D.warn,warnId:D.warnId})),{isFluid:X}=(0,g.useContext)(Qr),Y=(0,g.useRef)(null),[J,Q]=(0,g.useState)(""),ee=Ui(L,x);(0,g.useEffect)((()=>{if(ee&&ee!==J){const e=Y.current;if(e){e.textContent="";const t=setTimeout((()=>{e&&(e.textContent=ee,Q(ee))}),1e3);return()=>{t&&clearTimeout(t)}}}}),[ee,J]);const te=D.icon,ne=C??t,re=In(ne,Tn)?(0,g.cloneElement)(ne,{size:"mini"}):null;return g.createElement("div",{className:V},i?g.createElement("div",{className:`${I}--text-input__label-helper-wrapper`},U,!X&&(D.validation||Z)):U,g.createElement("div",{className:F},g.createElement("div",{className:H,"data-invalid":D.invalid||null},te&&g.createElement(te,{className:q}),G,C?re:t?g.createElement("div",{className:`${I}--text-input__field-inner-wrapper--decorator`},re):"",g.createElement("span",{className:`${I}--text-input__counter-alert`,role:"alert","aria-live":"assertive","aria-atomic":"true",ref:Y},ee),X&&g.createElement("hr",{className:`${I}--text-input__divider`}),X&&!i&&D.validation),!X&&!i&&(D.validation||Z)))}));Ji.displayName="TextInput",Ji.propTypes={className:h().string,decorator:h().node,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,enableCounter:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string.isRequired,inline:h().bool,invalid:h().bool,invalidText:h().node,labelText:h().node.isRequired,light:st(h().bool),maxCount:h().number,onChange:h().func,onClick:h().func,placeholder:h().string,readOnly:h().bool,size:h().oneOf(["sm","md","lg"]),slug:st(h().node),type:h().string,value:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node};var Qi=n(2137);const el=g.forwardRef((({as:e,children:t,className:n,href:r,disabled:o=!1,inline:a=!1,visited:i=!1,renderIcon:l,size:s,target:c,...u},d)=>{const f=$(),p={className:y()(`${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 g.createElement(h,m({ref:d},p,u,{onClick:e=>{o?(e.preventDefault(),e.stopPropagation()):u.onClick&&u.onClick(e)}}),t,!a&&l&&g.createElement("div",{className:`${f}--link__icon`},g.createElement(l,null)))})),tl=el;var nl,rl,ol,al;tl.displayName="Link",tl.propTypes={as:h().elementType,children:h().node,className:h().string,disabled:h().bool,href:h().string,inline:h().bool,renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(["sm","md","lg"]),visited:h().bool};const il=g.forwardRef((({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:a=!1,...i},l)=>{const s=$(),c=y()(`${s}--tile`,{[`${s}--tile--light`]:r,[`${s}--tile--slug`]:o,[`${s}--tile--slug-rounded`]:o&&a,[`${s}--tile--decorator`]:n,[`${s}--tile--decorator-rounded`]:n&&a},t);return g.createElement("div",m({className:c,ref:l},i),e,o,n&&g.createElement("div",{className:`${s}--tile--inner-decorator`},n))}));il.displayName="Tile",il.propTypes={children:h().node,className:h().string,decorator:h().node,hasRoundedCorners:h().bool,light:st(h().bool),slug:st(h().node)};const ll=g.forwardRef((({children:e,className:t,clicked:n=!1,decorator:r,disabled:o,href:a,light:i,onClick:l=()=>{},onKeyDown:s=()=>{},renderIcon:c,hasRoundedCorners:u,slug:d,...f},p)=>{const h=$(),b=y()(`${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),[v,w]=(0,g.useState)(n),E=ut("enable-v12-tile-default-icons");E&&(c||(c=Qi.Qp),o&&(c=Qo.$D));const x=y()({[`${h}--tile--icon`]:!E||E&&!o,[`${h}--tile--disabled-icon`]:E&&o});return g.createElement(tl,m({className:b,href:a,tabIndex:a||o?void 0:0,onClick:o?void 0:function(e){e?.persist?.(),w(!v),l(e)},onKeyDown:function(e){e?.persist?.(),$t(e,[gt,vt])&&w(!v),s(e)},ref:p,disabled:o},f),d||r?g.createElement("div",{className:`${h}--tile-content`},e):e,(!0===d||!0===r)&&g.createElement(Qi.bE,{size:"24",className:`${h}--tile--ai-label-icon`}),g.isValidElement(r)&&g.createElement("div",{className:`${h}--tile--inner-decorator`},r),c&&g.createElement(c,{className:x,"aria-hidden":"true"}))}));ll.displayName="ClickableTile",ll.propTypes={children:h().node,className:h().string,clicked:h().bool,decorator:h().oneOfType([h().bool,h().node]),disabled:h().bool,hasRoundedCorners:h().bool,href:h().string,light:st(h().bool),onClick:h().func,onKeyDown:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object])},g.forwardRef((({children:e,className:t,decorator:n,disabled:r,id:o,light:a,onClick:i=()=>{},onChange:l=()=>{},onKeyDown:s=()=>{},selected:c=!1,tabIndex:u=0,title:d="title",slug:f,hasRoundedCorners:p,...h},b)=>{const v=$(),w=i,E=s,[x,N]=(0,g.useState)(c);(0,g.useEffect)((()=>{N(c)}),[c]);const C=y()(`${v}--tile`,`${v}--tile--selectable`,{[`${v}--tile--is-selected`]:x,[`${v}--tile--light`]:a,[`${v}--tile--disabled`]:r,[`${v}--tile--slug`]:f,[`${v}--tile--slug-rounded`]:f&&p,[`${v}--tile--decorator`]:n,[`${v}--tile--decorator-rounded`]:n&&p},t),_=(0,g.useCallback)(((e,t)=>{N(t),l(e,t,o)}),[l,o]),T=(0,g.useRef)(null),I=f??n,R=In(I,Tn)?(0,g.cloneElement)(I,{size:"xs",ref:T}):null;return g.createElement("div",m({className:C,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),R&&T.current&&e.target instanceof Node&&T.current.contains(e.target)||(_(e,!x),w(e))},role:"checkbox","aria-checked":x,onKeyDown:r?void 0:function(e){e?.persist?.(),$t(e,[gt,vt])&&(e.preventDefault(),_(e,!x)),E(e)},tabIndex:r?void 0:u,ref:b,id:o,title:d},h),g.createElement("span",{className:`${v}--tile__checkmark ${v}--tile__checkmark--persistent`},x?nl||(nl=g.createElement(jr,null)):rl||(rl=g.createElement(qr,null))),g.createElement(Xt,{as:"label",htmlFor:o,className:`${v}--tile-content`},e),f?R:n?g.createElement("div",{className:`${v}--tile--inner-decorator`},R):"")})).propTypes={children:h().node,className:h().string,decorator:h().node,disabled:h().bool,hasRoundedCorners:h().bool,id:h().string,light:st(h().bool),name:st(h().string),onChange:h().func,onClick:h().func,onKeyDown:h().func,selected:h().bool,slug:st(h().node),tabIndex:h().number,title:h().string,value:st(h().oneOfType([h().string,h().number]))};const sl=g.forwardRef((({tabIndex:e=0,className:t,children:n,decorator:r,expanded:o=!1,tileMaxHeight:a=0,tilePadding:i=0,onClick:l,onKeyUp:s,tileCollapsedIconText:c="Interact to expand Tile",tileExpandedIconText:u="Interact to collapse Tile",tileCollapsedLabel:d,tileExpandedLabel:f,light:p,slug:h,hasRoundedCorners:b,...v},w)=>{const[E,C]=(0,g.useState)(a),[_,T]=(0,g.useState)(i),[I,R]=(0,g.useState)(o),[S,O]=(0,g.useState)(a),[k,A]=(0,g.useState)(i),[L,M]=(0,g.useState)(o),[D,B]=(0,g.useState)(!0),V=(0,g.useRef)(null),P=(0,g.useRef)(null),z=(0,g.useRef)(null),F=(0,g.useRef)(null),H=(0,g.useRef)(null),q=N([w,H]),j=$();function W(){L&&F.current&&C(F.current.getBoundingClientRect()?.height),V.current&&C(V.current.getBoundingClientRect().height)}function K(e){e?.persist?.(),M(!L),W()}function U(e){e.target!==H.current&&e.target!==z.current&&$t(e,[gt,vt])&&e.preventDefault()}o!==I&&(M(o),R(o),W()),a!==S&&(C(a),O(a)),i!==k&&(T(i),A(i));const Z=y()(`${j}--tile`,`${j}--tile--expandable`,{[`${j}--tile--is-expanded`]:L,[`${j}--tile--light`]:p},t),G=y()(`${j}--tile`,`${j}--tile--expandable`,`${j}--tile--expandable--interactive`,{[`${j}--tile--is-expanded`]:L,[`${j}--tile--light`]:p,[`${j}--tile--slug`]:h,[`${j}--tile--slug-rounded`]:h&&b,[`${j}--tile--decorator`]:r,[`${j}--tile--decorator-rounded`]:r&&b},t),X=y()(`${j}--tile__chevron`,`${j}--tile__chevron--interactive`),Y=g.Children.toArray(n);x((()=>{if(!H.current||!V.current)return;const e=window.getComputedStyle(H.current,null),{current:t}=V,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);C(n),T(r+o)}),[E]),x((()=>{V.current&&P.current&&(Bt(P.current)||Vt(P.current)||Bt(V.current)||Vt(V.current)||h||r||B(!1))}),[h,r]),x((()=>{H.current&&(H.current.style.maxHeight=L?"":E+_+"px")}),[L,E,_]),(0,g.useEffect)((()=>{if(!V.current)return;const e=new ResizeObserver((e=>{const[t]=e;C(t.contentRect.height)}));return e.observe(V.current),()=>e.disconnect()}),[]);const J=Mt("expandable-tile-interactive"),Q=h??r,ee=In(Q,Tn)?(0,g.cloneElement)(Q,{size:"xs"}):null;return D?g.createElement("div",m({ref:q,className:G},v),g.createElement("div",{ref:F},h?ee:r?g.createElement("div",{className:`${j}--tile--inner-decorator`},ee):"",g.createElement("div",{ref:V,className:`${j}--tile-content`},Y[0]),g.createElement("button",{type:"button","aria-expanded":L,"aria-controls":J,onKeyUp:_a([s,U]),onClick:_a([l,K]),"aria-label":L?u:c,ref:z,className:X},ol||(ol=g.createElement(Ur,null))),g.createElement("div",{ref:P,className:`${j}--tile-content`,id:J},Y[1]))):g.createElement("button",m({type:"button",ref:q,className:Z,"aria-expanded":L,title:L?u:c},v,{onKeyUp:_a([s,U]),onClick:_a([l,K]),tabIndex:e}),g.createElement("div",{ref:F},g.createElement("div",{ref:V,className:`${j}--tile-content`},Y[0]),g.createElement("div",{className:`${j}--tile__chevron`},g.createElement("span",null,L?f:d),al||(al=g.createElement(Ur,null))),g.createElement("div",{ref:P,className:`${j}--tile-content`},Y[1])))}));sl.propTypes={children:h().node,className:h().string,decorator:h().node,expanded:h().bool,hasRoundedCorners:h().bool,id:h().string,light:st(h().bool),onClick:h().func,onKeyUp:h().func,slug:st(h().node),tabIndex:h().number,tileCollapsedIconText:h().string,tileCollapsedLabel:h().string,tileExpandedIconText:h().string,tileExpandedLabel:h().string},sl.displayName="ExpandableTile";const cl=g.forwardRef((({children:e},t)=>{const n=$();return g.createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)}));cl.propTypes={children:h().node},cl.displayName="TileAboveTheFoldContent";const ul=g.forwardRef((({children:e},t)=>{const n=$();return g.createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)}));ul.propTypes={children:h().node},ul.displayName="TileBelowTheFoldContent";const dl=({className:e,children:t,...n})=>{const r=$(),o=y()(`${r}--header`,e);return g.createElement("header",m({},n,{className:o}),t)};dl.propTypes={"aria-label":h().string,"aria-labelledby":h().string,className:h().string};const fl=(e=>{const t=Object.keys(e),n=e=>(t,n,r,...o)=>e(t,n,r,...o);return t.reduce(((t,r)=>({...t,[r]:n(e[r])})),{})})({"aria-label":h().string,"aria-labelledby":h().string}),ml=g.forwardRef((({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:a=!0,tooltipDropShadow:i,isActive:l,tooltipAlignment:s,...c},u)=>{const d=$(),f=y()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:l}),p={"aria-label":e,"aria-labelledby":t};return g.createElement(Ut,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)}));ml.propTypes={...fl,children:h().node.isRequired,className:h().string,isActive:h().bool,onClick:h().func,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool},ml.displayName="HeaderGlobalAction";const pl=Ga({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var hl,gl,bl=n(4535);function vl({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:a,isCollapsible:i,...l}){const s=$(),c=y()({..."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||hl||(hl=g.createElement(bl.GK,{size:20})),d=o||gl||(gl=g.createElement(Zr,{size:20}));return g.createElement("button",m({},l,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),a?d:u)}vl.propTypes={...fl,className:h().string,isActive:h().bool,isCollapsible:h().bool,onClick:h().func};const yl=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const a=t??e??"a";return g.createElement(a,m({ref:o},r))},wl=g.forwardRef(yl),El={as:h().elementType,element:st(h().elementType),isSideNavExpanded:h().bool};function xl({children:e,className:t,prefix:n="IBM",...r}){const o=$(),a=y()(`${o}--header__name`,t);return g.createElement(wl,m({},r,{className:a}),n&&g.createElement(g.Fragment,null,g.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}wl.displayName="Link",wl.propTypes=El,xl.propTypes={...El,children:h().node.isRequired,className:h().string,href:h().string,prefix:h().string};const Nl=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu","SideNavLink"];function Cl(e){return"".concat(e/16,"rem")}Cl(320),Cl(672),Cl(16);var $l={width:Cl(1056),columns:16,margin:Cl(16)};Cl(1312),Cl(16),Cl(1584),Cl(24);function _l(e){return Cl(8*e)}_l(.25),_l(.5),_l(1),_l(1.5),_l(2),_l(3),_l(4),_l(5),_l(6),_l(8),_l(10),_l(12),_l(20),_l(2),_l(3),_l(4),_l(6),_l(8),_l(12),_l(20),_l(3),_l(4),_l(5),_l(6),_l(8),Cl(24),Cl(32),Cl(40),Cl(48),Cl(64),Cl(80);const Tl=(0,g.createContext)({});function Il({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:b,enterDelayMs:v=100,...w},E){const x=$(),{current:C}=(0,g.useRef)(void 0!==e),[T,I]=Tt(t),[R,S]=Tt(t),O=C?e:T,k=(0,g.useRef)(null),A=N([k,E]),L=(e,t=!O)=>{C||I(t,v),i&&i(e,t),(C||u)&&S(t,v)},M={"aria-label":r,"aria-labelledby":o},D=y()(l,{[`${x}--side-nav`]:!0,[`${x}--side-nav--expanded`]:O||R,[`${x}--side-nav--collapsed`]:!O&&c,[`${x}--side-nav--rail`]:u,[`${x}--side-nav--ux`]:n,[`${x}--side-nav--hidden`]:!d}),B=y()({[`${x}--side-nav__overlay`]:!0,[`${x}--side-nav__overlay-active`]:O||R});let V=a;V=g.Children.map(a,(e=>{const t=C&&R||O;if((0,g.isValidElement)(e)){const n=e;return g.cloneElement(n,{...Nl.includes(n.type?.displayName??n.type?.name)?{isSideNavExpanded:t}:{}})}return e}));const P={};f&&(P.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&u&&L(e,!0)},P.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||L(e,!1),e.currentTarget.contains(e.relatedTarget)||!O||c||b&&b()},P.onKeyDown=e=>{_t(e,bt)&&(L(e,!1),s&&(window.location.href=s))}),p&&u&&(P.onMouseEnter=()=>{L(!0,!0)},P.onMouseLeave=()=>{I(!1),S(!1),L(!1,!1)},P.onClick=()=>{I(!0),S(!0),L(!0,!0)}),_("keydown",(e=>{const t=document.activeElement;_t(e,ht)&&O&&!c&&k.current&&t?.classList.contains(`${x}--header__menu-toggle`)&&!t.closest("nav")&&k.current.focus()}));const z=((e,t=!1)=>{const[n,r]=(0,g.useState)(t);return(0,g.useEffect)((()=>{const t=e=>{r(e.matches)},n=window.matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>{n.removeEventListener("change",t)}}),[e]),n})(`(min-width: ${$l.width})`);return g.createElement(Tl.Provider,{value:{isRail:u}},c?null:g.createElement("div",{className:B,onClick:h}),g.createElement("nav",m({tabIndex:-1,ref:A,className:`${x}--side-nav__navigation ${D}`,inert:u?void 0:!(O||z)},M,P,w),V))}const Rl=g.forwardRef(Il);Rl.displayName="SideNav",Rl.propTypes={...fl,addFocusListeners:h().bool,addMouseListeners:h().bool,className:h().string,defaultExpanded:h().bool,enterDelayMs:h().number,expanded:h().bool,href:h().string,isChildOfHeader:h().bool,isFixedNav:h().bool,isPersistent:h().bool,isRail:h().bool,onOverlayClick:h().func,onSideNavBlur:h().func,onToggle:h().func}},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},4991(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),c="/*# ".concat(s," */"),u=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}},5581(e,t){"use strict";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")},4353(e,t,n){"use strict";n(5581)},2694(e,t,n){"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},115(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var l,s,c,u;if(Array.isArray(e)){if((l=e.length)!=i.length)return!1;for(s=l;0!==s--;)if(!a(e[s],i[s]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!i.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!a(s.value[1],i.get(s.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!i.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((l=e.length)!=i.length)return!1;for(s=l;0!==s--;)if(e[s]!==i[s])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(s=l;0!==s--;)if(!Object.prototype.hasOwnProperty.call(i,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=l;0!==s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!a(e[c[s]],i[c[s]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},2799(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103;n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},4363(e,t,n){"use strict";e.exports=n(2799)},1020(e,t,n){"use strict";var r=n(6072),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4848(e,t,n){"use strict";e.exports=n(1020)},5072(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),m={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(m);else{var p=o(m,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:p,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=s}}},7659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8493(e,t,n){"use strict";var r=n(6072),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9888(e,t,n){"use strict";e.exports=n(8493)},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4993(e,t,n){"use strict";n.d(t,{BE:()=>q,Es:()=>I,Ht:()=>J,PP:()=>V,Tn:()=>s,X3:()=>_,ZH:()=>a,aw:()=>Y,b0:()=>l,bZ:()=>m,bu:()=>L,dO:()=>$,iX:()=>Z,lK:()=>O,lg:()=>A,mF:()=>M,mf:()=>T,q9:()=>j,qm:()=>X,qv:()=>i,r9:()=>y,rL:()=>c,sb:()=>z});var r=n(6072);const o=()=>{},a=o(),i=Object,l=e=>e===a,s=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=new WeakMap;let d=0;const f=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=u.get(e),o)return o;if(o=++d+"~",u.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=f(e[a])+",";u.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!l(a=t.pop());)l(e[a])||(o+=a+":"+f(e[a])+",");u.set(e,o)}}return o},m=new WeakMap,p={},h={},g="undefined",b=typeof window!=g,v=typeof document!=g,y=(e,t)=>{const n=m.get(e);return[()=>!l(t)&&e.get(t)||p,r=>{if(!l(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,c(o,r),o||p)}},n[6],()=>!l(t)&&t in h?h[t]:!l(t)&&e.get(t)||p]};let w=!0;const[E,x]=b&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],N={isOnline:()=>w,isVisible:()=>{const e=v&&document.visibilityState;return l(e)||"hidden"!==e}},C={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return E("online",t),E("offline",n),()=>{x("online",t),x("offline",n)}}},$=!r.useId,_=!b||"Deno"in window,T=e=>b&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),I=_?r.useEffect:r.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,S=!_&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),O=e=>{if(s(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f(e):"",t]};let k=0;const A=()=>++k;var L={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function M(...e){const[t,n,r,o]=e,i=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let u=i.populateCache;const d=i.rollbackOnError;let f=i.optimisticData;const p=i.throwOnError;if(s(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(h))}return h(n);async function h(n){const[o]=O(n);if(!o)return;const[c,h]=y(t,o),[g,b,v,w]=m.get(t),E=()=>{const e=g[o];return(s(i.revalidate)?i.revalidate(c().data,n):!1!==i.revalidate)&&(delete v[o],delete w[o],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return E();let x,N=r;const C=A();b[o]=[C,0];const $=!l(f),_=c(),T=_.data,I=_._c,R=l(I)?T:I;if($&&(f=s(f)?f(R,T):f,h({data:f,_c:R})),s(N))try{N=N(R)}catch(e){x=e}if(N&&s(N.then)){if(N=await N.catch((e=>{x=e})),C!==b[o][0]){if(x)throw x;return N}x&&$&&(e=>"function"==typeof d?d(e):!1!==d)(x)&&(u=!0,h({data:R,_c:a}))}if(u&&!x)if(s(u)){const e=u(N,R);h({data:e,error:a,_c:a})}else h({data:N,error:a,_c:a});if(b[o][1]=A(),Promise.resolve(E()).then((()=>{h({_c:a})})),!x)return N;if(p)throw x}}const D=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},B=(e,t)=>{if(!m.has(e)){const n=c(C,t),r={},i=M.bind(a,e);let l=o;const s={},u=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!m.has(e)&&(m.set(e,[r,{},{},{},i,d,u]),!_)){const t=n.initFocus(setTimeout.bind(a,D.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,D.bind(a,r,1)));l=()=>{t&&t(),o&&o(),m.delete(e)}}};return f(),[e,i,f,l]}return[e,m.get(e)[4]]},[V,P]=B(new Map),z=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!l(a)&&i>a||setTimeout(r,s,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:S?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:S?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:V,mutate:P,fallback:{}},N),F=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=c(o,i))}return n},H=(0,r.createContext)({}),q=e=>{const{value:t}=e,n=(0,r.useContext)(H),o=s(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),l=(0,r.useMemo)((()=>o?i:F(n,i)),[o,n,i]),u=i&&i.provider,d=(0,r.useRef)(a);u&&!d.current&&(d.current=B(u(l.cache||V),i));const f=d.current;return f&&(l.cache=f[0],l.mutate=f[1]),I((()=>{if(f)return f[2]&&f[2](),f[3]}),[]),(0,r.createElement)(H.Provider,c(e,{value:l}))},j="$inf$",W=b&&window.__SWR_DEVTOOLS_USE__,K=W?window.__SWR_DEVTOOLS_USE__:[],U=e=>s(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Z=()=>c(z,(0,r.useContext)(H)),G=K.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=O(t),[,,,o]=m.get(V);if(r.startsWith(j))return n(...e);const a=o[r];return l(a)?n(...e):(delete o[r],a)}),r))),X=e=>function(...t){const n=Z(),[r,o,a]=U(t),i=F(n,a);let l=e;const{use:s}=i,c=(s||[]).concat(G);for(let e=c.length;e--;)l=c[e](l);return l(r,o||i.fetcher||null,i)},Y=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},J=(e,t)=>(...n)=>{const[r,o,a]=U(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};W&&(window.__SWR_DEVTOOLS_REACT__=r)},9324(e,t,n){"use strict";n.d(t,{Ay:()=>c,BE:()=>s,iX:()=>a.iX});var r=n(6072),o=n(9888),a=n(4993);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),l={dedupe:!0},s=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),c=(0,a.qm)(((e,t,n)=>{const{cache:s,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=a.bZ.get(s),[x,N]=(0,a.lK)(e),C=(0,r.useRef)(!1),$=(0,r.useRef)(!1),_=(0,r.useRef)(x),T=(0,r.useRef)(t),I=(0,r.useRef)(n),R=()=>I.current,S=()=>R().isVisible()&&R().isOnline(),[O,k,A,L]=(0,a.r9)(s,x),M=(0,r.useRef)({}).current,D=(0,a.b0)(d)?n.fallback[x]:d,B=(e,t)=>{for(const n in M){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(K,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},V=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,a.b0)(f)?!R().isPaused()&&!u&&(!!(0,a.b0)(m)||m):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),o=L(),i=n(r),l=r===o?i:n(o);let s=i;return[()=>{const e=n(O());return B(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]}),[s,x]),P=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>A(x,((t,n)=>{B(n,t)||e()}))),[s,x]),V[0],V[1]),z=!C.current,F=v[x]&&v[x].length>0,H=P.data,q=(0,a.b0)(H)?D:H,j=P.error,W=(0,r.useRef)(q),K=b?(0,a.b0)(H)?W.current:H:q,U=!(F&&!(0,a.b0)(j))&&(z&&!(0,a.b0)(f)?f:!R().isPaused()&&(u?!(0,a.b0)(q)&&m:(0,a.b0)(q)||m)),Z=!!(x&&t&&z&&U),G=(0,a.b0)(P.isValidating)?Z:P.isValidating,X=(0,a.b0)(P.isLoading)?Z:P.isLoading,Y=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||$.current||R().isPaused())return!1;let r,o,i=!0;const l=e||{},s=!w[x]||!l.dedupe,u=()=>a.dO?!$.current&&x===_.current&&C.current:x===_.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},m=()=>{const e=w[x];e&&e[1]===o&&delete w[x]},p={isValidating:!0};(0,a.b0)(O().data)&&(p.isLoading=!0);try{if(s&&(k(p),n.loadingTimeout&&(0,a.b0)(O().data)&&setTimeout((()=>{i&&u()&&R().onLoadingSlow(x,n)}),n.loadingTimeout),w[x]=[t(N),(0,a.lg)()]),[r,o]=w[x],r=await r,s&&setTimeout(m,n.dedupingInterval),!w[x]||w[x][1]!==o)return s&&u()&&R().onDiscarded(x),!1;d.error=a.ZH;const e=y[x];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&R().onDiscarded(x),!1;const l=O().data;d.data=c(l,r)?l:r,s&&u()&&R().onSuccess(r,x,n)}catch(e){m();const t=R(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,x,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(R().revalidateOnFocus&&R().revalidateOnReconnect&&!S()||t.onErrorRetry(e,x,t,(e=>{const t=v[x];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return i=!1,f(),!0}),[x,s]),J=(0,r.useCallback)(((...e)=>(0,a.mF)(s,_.current,...e)),[]);if((0,a.Es)((()=>{T.current=t,I.current=n,(0,a.b0)(H)||(W.current=H)})),(0,a.Es)((()=>{if(!x)return;const e=Y.bind(a.ZH,l);let t=0;const n=(0,a.aw)(x,v,((n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();R().revalidateOnFocus&&n>t&&S()&&(t=n+R().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)R().revalidateOnReconnect&&S()&&e();else{if(n==a.bu.MUTATE_EVENT)return Y();if(n==a.bu.ERROR_REVALIDATE_EVENT)return Y(r)}}));return $.current=!1,_.current=x,C.current=!0,k({_k:N}),U&&((0,a.b0)(q)||a.X3?e():(0,a.mf)(e)),()=>{$.current=!0,n()}}),[x]),(0,a.Es)((()=>{let e;function t(){const t=(0,a.Tn)(p)?p(O().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!h&&!R().isVisible()||!g&&!R().isOnline()?t():Y(l).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[p,h,g,x]),(0,r.useDebugValue)(K),u&&(0,a.b0)(q)&&x){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,I.current=n,$.current=!1;const e=E[x];if(!(0,a.b0)(e)){const t=J(e);i(t)}if(!(0,a.b0)(j))throw j;{const e=Y(l);(0,a.b0)(K)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:J,get data(){return M.data=!0,K},get error(){return M.error=!0,j},get isValidating(){return M.isValidating=!0,G},get isLoading(){return M.isLoading=!0,X}}}))},4225(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6072),o=n(9888),a=n(4993);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),l={dedupe:!0};a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb});const s=(0,a.qm)(((e,t,n)=>{const{cache:s,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=a.bZ.get(s),[x,N]=(0,a.lK)(e),C=(0,r.useRef)(!1),$=(0,r.useRef)(!1),_=(0,r.useRef)(x),T=(0,r.useRef)(t),I=(0,r.useRef)(n),R=()=>I.current,S=()=>R().isVisible()&&R().isOnline(),[O,k,A,L]=(0,a.r9)(s,x),M=(0,r.useRef)({}).current,D=(0,a.b0)(d)?n.fallback[x]:d,B=(e,t)=>{for(const n in M){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(K,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},V=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,a.b0)(f)?!R().isPaused()&&!u&&(!!(0,a.b0)(m)||m):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),o=L(),i=n(r),l=r===o?i:n(o);let s=i;return[()=>{const e=n(O());return B(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]}),[s,x]),P=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>A(x,((t,n)=>{B(n,t)||e()}))),[s,x]),V[0],V[1]),z=!C.current,F=v[x]&&v[x].length>0,H=P.data,q=(0,a.b0)(H)?D:H,j=P.error,W=(0,r.useRef)(q),K=b?(0,a.b0)(H)?W.current:H:q,U=!(F&&!(0,a.b0)(j))&&(z&&!(0,a.b0)(f)?f:!R().isPaused()&&(u?!(0,a.b0)(q)&&m:(0,a.b0)(q)||m)),Z=!!(x&&t&&z&&U),G=(0,a.b0)(P.isValidating)?Z:P.isValidating,X=(0,a.b0)(P.isLoading)?Z:P.isLoading,Y=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||$.current||R().isPaused())return!1;let r,o,i=!0;const l=e||{},s=!w[x]||!l.dedupe,u=()=>a.dO?!$.current&&x===_.current&&C.current:x===_.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},m=()=>{const e=w[x];e&&e[1]===o&&delete w[x]},p={isValidating:!0};(0,a.b0)(O().data)&&(p.isLoading=!0);try{if(s&&(k(p),n.loadingTimeout&&(0,a.b0)(O().data)&&setTimeout((()=>{i&&u()&&R().onLoadingSlow(x,n)}),n.loadingTimeout),w[x]=[t(N),(0,a.lg)()]),[r,o]=w[x],r=await r,s&&setTimeout(m,n.dedupingInterval),!w[x]||w[x][1]!==o)return s&&u()&&R().onDiscarded(x),!1;d.error=a.ZH;const e=y[x];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&R().onDiscarded(x),!1;const l=O().data;d.data=c(l,r)?l:r,s&&u()&&R().onSuccess(r,x,n)}catch(e){m();const t=R(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,x,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(R().revalidateOnFocus&&R().revalidateOnReconnect&&!S()||t.onErrorRetry(e,x,t,(e=>{const t=v[x];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return i=!1,f(),!0}),[x,s]),J=(0,r.useCallback)(((...e)=>(0,a.mF)(s,_.current,...e)),[]);if((0,a.Es)((()=>{T.current=t,I.current=n,(0,a.b0)(H)||(W.current=H)})),(0,a.Es)((()=>{if(!x)return;const e=Y.bind(a.ZH,l);let t=0;const n=(0,a.aw)(x,v,((n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();R().revalidateOnFocus&&n>t&&S()&&(t=n+R().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)R().revalidateOnReconnect&&S()&&e();else{if(n==a.bu.MUTATE_EVENT)return Y();if(n==a.bu.ERROR_REVALIDATE_EVENT)return Y(r)}}));return $.current=!1,_.current=x,C.current=!0,k({_k:N}),U&&((0,a.b0)(q)||a.X3?e():(0,a.mf)(e)),()=>{$.current=!0,n()}}),[x]),(0,a.Es)((()=>{let e;function t(){const t=(0,a.Tn)(p)?p(O().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!h&&!R().isVisible()||!g&&!R().isOnline()?t():Y(l).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[p,h,g,x]),(0,r.useDebugValue)(K),u&&(0,a.b0)(q)&&x){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,I.current=n,$.current=!1;const e=E[x];if(!(0,a.b0)(e)){const t=J(e);i(t)}if(!(0,a.b0)(j))throw j;{const e=Y(l);(0,a.b0)(K)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:J,get data(){return M.data=!0,K},get error(){return M.error=!0,j},get isValidating(){return M.isValidating=!0,G},get isLoading(){return M.isLoading=!0,X}}})),c=(0,a.Ht)(s,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))))}}]);