@cc-openmrs/cc-esm-active-prescriptions 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/104.js +1 -0
- package/dist/217.js +2 -0
- package/dist/329.js +1 -1
- package/dist/392.js +1 -0
- package/dist/478.js +2 -0
- package/dist/478.js.LICENSE.txt +9 -0
- package/dist/671.js +2 -0
- package/dist/{987.js.LICENSE.txt → 671.js.LICENSE.txt} +0 -10
- package/dist/91.js +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-template-app.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +126 -96
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/actions/prescriptions-action-menu-item.component.tsx +30 -0
- package/src/index.ts +5 -2
- package/src/routes.json +20 -1
- package/dist/635.js +0 -1
- package/dist/692.js +0 -2
- package/dist/70.js +0 -1
- package/dist/987.js +0 -2
- /package/dist/{692.js.LICENSE.txt → 217.js.LICENSE.txt} +0 -0
package/dist/987.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 987.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[987],{428(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>p});var l=["width","height","viewBox"],s=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(5556),d=n.n(u),f=n(6072);const p=(0,f.forwardRef)(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},d){const{tabindex:p,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=i(e,l),d=u.tabindex,f=i(u,s),p=a(a(a({},c),f),{},{width:t,height:n,viewBox:o});return p["aria-label"]||p["aria-labelledby"]?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}({...u,tabindex:n}),h=m;return e&&(h.className=e),null!=p&&(h.tabIndex="number"==typeof p?p:Number(n)),d&&(h.ref=d),r&&(h.xmlns=r),o&&(h.preserveAspectRatio=o),f.createElement("svg",h,t)});p.displayName="Icon",p.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},810(e,t,n){"use strict";n.d(t,{W1:()=>O,Xj:()=>A,hz:()=>S});var r,o,a,i,l,s,c,u,d,f,p,m,h,g,b,v,y,w,E,N,x,C,T,R,_=n(6072),$=n(428);const S=_.forwardRef(function({children:e,size:t=16,...n},l){return 16===t||"16"===t||"16px"===t?_.createElement($.A,{width:t,height:t,ref:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=_.createElement("path",{d:"M6 15 6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15z"})),o||(o=_.createElement("path",{d:"M10 1 10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):_.createElement($.A,{width:t,height:t,ref:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=_.createElement("path",{d:"M20 2 20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),i||(i=_.createElement("path",{d:"M14 19.416 12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)}),O=_.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_.createElement($.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},l||(l=_.createElement("path",{d:"M2 12H14V13H2z"})),s||(s=_.createElement("path",{d:"M2 9H14V10H2z"})),c||(c=_.createElement("path",{d:"M2 6H14V7H2z"})),u||(u=_.createElement("path",{d:"M2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?_.createElement($.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},d||(d=_.createElement("path",{d:"M2 14.8H18V16H2z"})),f||(f=_.createElement("path",{d:"M2 11.2H18V12.399999999999999H2z"})),p||(p=_.createElement("path",{d:"M2 7.6H18V8.799999999999999H2z"})),m||(m=_.createElement("path",{d:"M2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?_.createElement($.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},h||(h=_.createElement("path",{d:"M3 18H21V19.5H3z"})),g||(g=_.createElement("path",{d:"M3 13.5H21V15H3z"})),b||(b=_.createElement("path",{d:"M3 9H21V10.5H3z"})),v||(v=_.createElement("path",{d:"M3 4.5H21V6H3z"})),e):_.createElement($.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},y||(y=_.createElement("path",{d:"M4 6H28V8H4z"})),w||(w=_.createElement("path",{d:"M4 24H28V26H4z"})),E||(E=_.createElement("path",{d:"M4 12H28V14H4z"})),N||(N=_.createElement("path",{d:"M4 18H28V20H4z"})),e)}),A=_.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?_.createElement($.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},x||(x=_.createElement("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"})),C||(C=_.createElement("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):_.createElement($.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},T||(T=_.createElement("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"})),R||(R=_.createElement("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)})},9184(e,t,n){"use strict";n.d(t,{NW:()=>C,Sc:()=>x,_j:()=>T,bm:()=>$,c_:()=>_,yQ:()=>R});var r,o,a,i,l,s,c,u,d,f,p,m,h,g,b,v,y,w,E=n(6072),N=n(428);const x=E.forwardRef(function({children:e,size:t=16,...n},o){return E.createElement(N.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=E.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),e)}),C=E.forwardRef(function({children:e,size:t=16,...n},r){return E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=E.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),a||(a=E.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),e)}),T=E.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=E.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),l||(l=E.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=E.createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),c||(c=E.createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=E.createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),d||(d=E.createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=E.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),p||(p=E.createElement("path",{fill:"none",d:"M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),e)}),R=E.forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},m||(m=E.createElement("path",{d:"M5 6 0 1 .7.3 5 4.6 9.3.3 10 1z"})),e):16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},h||(h=E.createElement("path",{d:"M8 11 3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},g||(g=E.createElement("path",{d:"M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)}),_=E.forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},b||(b=E.createElement("path",{d:"M6 5 1 10 .3 9.3 4.6 5 .3.7 1 0z"})),e):16===t||"16"===t||"16px"===t?E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},v||(v=E.createElement("path",{d:"M11 8 6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),e):E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},y||(y=E.createElement("path",{d:"M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),e)}),$=E.forwardRef(function({children:e,size:t=16,...n},r){return E.createElement(N.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},w||(w=E.createElement("path",{d:"M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),e)})},771(e,t,n){"use strict";n.d(t,{$D:()=>b,d3:()=>g,x:()=>v});var r,o,a,i,l,s,c,u,d,f,p,m=n(6072),h=n(428);const g=m.forwardRef(function({children:e,size:t=16,...n},a){return m.createElement(h.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=m.createElement("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"})),o||(o=m.createElement("path",{d:"M4 22H28V24H4z"})),e)}),b=m.forwardRef(function({children:e,size:t=16,...n},r){return m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=m.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)}),v=m.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=m.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),l||(l=m.createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=m.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),c||(c=m.createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=m.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),d||(d=m.createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=m.createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),p||(p=m.createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)})},3348(e,t,n){"use strict";function r(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 o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function a(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)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function l(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}n.d(t,{kZS:()=>Ir,$nd:()=>Ft,t3h:()=>yo,KXP:()=>ur,lRv:()=>fr,Y9Y:()=>xo,V8d:()=>To,wdv:()=>Ro,dJ2:()=>Oo,bCw:()=>ko,K0:()=>Vt,OuH:()=>rn,Wdr:()=>Gt,cwr:()=>sr,jlY:()=>an,rQ0:()=>Yt,aaP:()=>Pr,zWQ:()=>Hr,Psq:()=>zr,vji:()=>Gr,f8J:()=>zo,ryE:()=>Yr,vwO:()=>to,FAs:()=>vo});var s={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?s.enableCssCustomProperties=!0:s.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?s.enableCssGrid=!0:s.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?s.enableV11Release=!0:s.enableV11Release=!1:s.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?s.enableExperimentalTileContrast=!0:s.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_TILE_CONTRAST?s.enableTileContrast=!0:s.enableTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?s.enableV12TileDefaultIcons=!0:s.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?s.enableV12TileRadioIcons=!0:s.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?s.enableV12Overflowmenu=!0:s.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?s.enableTreeviewControllable=!0:s.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?s.enableV12StructuredListVisibleIcons=!0:s.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?s.enableExperimentalFocusWrapWithoutSentinels=!0:s.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS?s.enableFocusWrapWithoutSentinels=!0:s.enableFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?s.enableDialogElement=!0:s.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?s.enableV12DynamicFloatingStyles=!0:s.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?s.enableV12ToggleReducedLabelSpacing=!0:s.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?s.enableEnhancedFileUploader=!0:s.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?s.enablePresence=!0:s.enablePresence=!1}catch(e){s.enableCssCustomProperties=!1,s.enableCssGrid=!1,s.enableV11Release=!0,s.enableExperimentalTileContrast=!1,s.enableTileContrast=!1,s.enableV12TileDefaultIcons=!1,s.enableV12TileRadioIcons=!1,s.enableV12Overflowmenu=!1,s.enableTreeviewControllable=!1,s.enableV12StructuredListVisibleIcons=!1,s.enableExperimentalFocusWrapWithoutSentinels=!1,s.enableFocusWrapWithoutSentinels=!1,s.enableDialogElement=!1,s.enableV12DynamicFloatingStyles=!1,s.enableV12ToggleReducedLabelSpacing=!1,s.enableEnhancedFileUploader=!1,s.enablePresence=!1}var c=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:s.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:s.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:s.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Deprecated, use enable-tile-contrast instead\n",enabled:s.enableExperimentalTileContrast},{name:"enable-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:s.enableTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:s.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:s.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:s.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:s.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:s.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Deprecated, use enable-focus-wrap-without-sentinels instead\n",enabled:s.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:s.enableFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:s.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:s.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:s.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:s.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:s.enablePresence}],u=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},(t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=o(e.flags);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),i=r[0],l=r[1];this.flags.has(i)||this.flags.set(i,l)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){var t;return this.checkForFlag(e),null!==(t=this.flags.get(e))&&void 0!==t&&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,i(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),d=function(){var e,t,n=new u(t),r=o(c);try{for(r.s();!(e=r.n()).done;){var a=e.value;n.add(a.name,a.enabled)}}catch(e){r.e(e)}finally{r.f()}return n}();function f(){return f=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},f.apply(null,arguments)}d.add.bind(d),d.enable.bind(d),d.disable.bind(d),d.enabled.bind(d),d.merge.bind(d)({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var p=n(5556),m=n.n(p),h=n(6072),g=n.t(h,2),b=n(6942),v=n.n(b);const y={},w=(e,t,n)=>(r,o,a,...i)=>{if(void 0===r[o])return null;if(!y[a]||!y[a][o]){y[a]={...y[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,a,...i)},E="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,N=e=>{const t=(0,h.useMemo)(()=>e,e);return(0,h.useCallback)(e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},[t])},x=h.createContext("cds");function C(){return h.useContext(x)}const T=(e,t,n)=>{const r=(0,h.useRef)(null);(0,h.useEffect)(()=>{r.current=n},[n]),(0,h.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])},R=(e,t)=>{const n=(0,h.useRef)(null);(0,h.useEffect)(()=>{n.current=t},[t]),(0,h.useEffect)(()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[e])},_={"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"},$=e=>_[e]??e;var S="undefined"!=typeof document?h.useLayoutEffect:function(){};const O={...g}.useInsertionEffect||(e=>e());function A(){return"undefined"!=typeof window}function L(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!A()&&(e instanceof Node||e instanceof k(e).Node)}function I(e){return!!A()&&(e instanceof Element||e instanceof k(e).Element)}function D(e){return!!A()&&(e instanceof HTMLElement||e instanceof k(e).HTMLElement)}function P(e){return!(!A()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function z(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function V(e){return/^(table|td|th)$/.test(L(e))}function H(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n(4848);const F=/transform|translate|scale|rotate|perspective|filter/,j=/paint|layout|strict|content/,q=e=>!!e&&"none"!==e;let W;function U(e){const t=I(e)?K(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!Z()&&(q(t.backdropFilter)||q(t.filter))||F.test(t.willChange||"")||j.test(t.contain||"")}function Z(){return null==W&&(W="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),W}function G(e){return/^(html|body|#document)$/.test(L(e))}function K(e){return k(e).getComputedStyle(e)}function Y(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===L(e))return e;const t=e.assignedSlot||e.parentNode||P(e)&&e.host||M(e);return P(t)?t.host:t}function J(e){const t=X(e);return G(t)?e.ownerDocument?e.ownerDocument.body:e.body:D(t)&&z(t)?t:J(t)}function Q(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=J(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=k(o);if(a){const e=ee(i);return t.concat(i,i.visualViewport||[],z(o)?o:[],e&&n?Q(e):[])}return t.concat(o,Q(o,[],n))}function ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var te=n(961);const ne=["top","right","bottom","left"],re=Math.min,oe=Math.max,ae=Math.round,ie=Math.floor,le=e=>({x:e,y:e}),se={left:"right",right:"left",bottom:"top",top:"bottom"};function ce(e,t,n){return oe(e,re(t,n))}function ue(e,t){return"function"==typeof e?e(t):e}function de(e){return e.split("-")[0]}function fe(e){return e.split("-")[1]}function pe(e){return"y"===e?"height":"width"}function me(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function he(e){return"x"===me(e)?"y":"x"}function ge(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const be=["left","right"],ve=["right","left"],ye=["top","bottom"],we=["bottom","top"];function Ee(e){const t=de(e);return se[t]+e.slice(t.length)}function Ne(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 xe(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 Ce(e,t,n){let{reference:r,floating:o}=e;const a=me(t),i=he(t),l=pe(i),s=de(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(fe(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Te(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ue(t,e),m=Ne(p),h=l[f?"floating"===d?"reference":"floating":d],g=xe(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=xe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function Re(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _e(e){return ne.some(t=>e[t]>=0)}const $e=new Set(["left","top"]);function Se(e){const t=K(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=D(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ae(n)!==a||ae(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Oe(e){return I(e)?e:e.contextElement}function Ae(e){const t=Oe(e);if(!D(t))return le(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Se(t);let i=(a?ae(n.width):n.width)/r,l=(a?ae(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Le=le(0);function ke(e){const t=k(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Le}function Me(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Oe(e);let i=le(1);t&&(r?I(r)&&(i=Ae(r)):i=Ae(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==k(e))&&t}(a,n,r)?ke(a):le(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=k(a),t=r&&I(r)?k(r):r;let n=e,o=ee(n);for(;o&&r&&t!==n;){const e=Ae(o),t=o.getBoundingClientRect(),r=K(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=k(o),o=ee(n)}}return xe({width:u,height:d,x:s,y:c})}function Be(e,t){const n=Y(e).scrollLeft;return t?t.left+n:Me(M(e)).left+n}function Ie(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Be(e,n),y:n.top+t.scrollTop}}function De(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=k(e),r=M(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=Z();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}const c=Be(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=M(e),n=Y(e),r=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Be(e);const l=-n.scrollTop;return"rtl"===K(r).direction&&(i+=oe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(M(e));else if(I(t))r=function(e,t){const n=Me(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=D(e)?Ae(e):le(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=ke(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xe(r)}function Pe(e,t){const n=X(e);return!(n===t||!I(n)||G(n))&&("fixed"===K(n).position||Pe(n,t))}function ze(e,t,n){const r=D(t),o=M(t),a="fixed"===n,i=Me(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=le(0);function c(){s.x=Be(o)}if(r||!r&&!a)if(("body"!==L(t)||z(o))&&(l=Y(t)),r){const e=Me(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?le(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 Ve(e){return"static"===K(e).position}function He(e,t){if(!D(e)||"fixed"===K(e).position)return null;if(t)return t(e);let n=e.offsetParent;return M(e)===n&&(n=n.ownerDocument.body),n}function Fe(e,t){const n=k(e);if(H(e))return n;if(!D(e)){let t=X(e);for(;t&&!G(t);){if(I(t)&&!Ve(t))return t;t=X(t)}return n}let r=He(e,t);for(;r&&V(r)&&Ve(r);)r=He(r,t);return r&&G(r)&&Ve(r)&&!U(r)?n:r||function(e){let t=X(e);for(;D(t)&&!G(t);){if(U(t))return t;if(H(t))return null;t=X(t)}return null}(e)||n}const je={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=M(r),l=!!t&&H(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},c=le(1);const u=le(0),d=D(r);if((d||!d&&!a)&&(("body"!==L(r)||z(i))&&(s=Y(r)),d)){const e=Me(r);c=Ae(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?le(0):Ie(i,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:M,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?H(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Q(e,[],!1).filter(e=>I(e)&&"body"!==L(e)),o=null;const a="fixed"===K(e).position;let i=a?X(e):e;for(;I(i)&&!G(i);){const t=K(i),n=U(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||z(i)&&!n&&Pe(e,i))?r=r.filter(e=>e!==i):o=t,i=X(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=De(t,a[0],o);let l=i.top,s=i.right,c=i.bottom,u=i.left;for(let e=1;e<a.length;e++){const n=De(t,a[e],o);l=oe(n.top,l),s=re(n.right,s),c=re(n.bottom,c),u=oe(n.left,u)}return{width:s-u,height:c-l,x:u,y:l}},getOffsetParent:Fe,getElementRects:async function(e){const t=this.getOffsetParent||Fe,n=this.getDimensions,r=await n(e.floating);return{reference:ze(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}=Se(e);return{width:t,height:n}},getScale:Ae,isElement:I,isRTL:function(e){return"rtl"===K(e).direction}};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const We=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=ue(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=de(o),v=me(l),y=de(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(y||!h?[Ee(l)]:function(e){const t=Ee(e);return[ge(e),t,ge(t)]}(l)),N="none"!==m;!f&&N&&E.push(...function(e,t,n,r){const o=fe(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ve:be:t?be:ve;case"left":case"right":return t?ye:we;default:return[]}}(de(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(ge)))),a}(l,h,m,w));const x=[l,...E],C=await s.detectOverflow(t,g),T=[];let R=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&T.push(C[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fe(e),o=he(e),a=pe(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ee(i)),[i,Ee(i)]}(o,i,w);T.push(C[e[0]],C[e[1]])}if(R=[...R,{placement:o,overflows:T}],!T.every(e=>e<=0)){var _,$;const e=((null==(_=a.flip)?void 0:_.index)||0)+1,t=x[e];if(t&&("alignment"!==d||v===me(t)||R.every(e=>me(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==($=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=R.filter(e=>{if(N){const t=me(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{}}}},Ue=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}=ue(e,t)||{};if(null==c)return{};const d=Ne(u),f={x:n,y:r},p=he(o),m=pe(p),h=await i.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],E=f[p]-a.reference[p],N=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let x=N?N[y]:0;x&&await(null==i.isElement?void 0:i.isElement(N))||(x=l.floating[y]||a.floating[m]);const C=w/2-E/2,T=x/2-h[m]/2-1,R=re(d[b],T),_=re(d[v],T),$=R,S=x-h[m]-_,O=x/2-h[m]/2+C,A=ce($,O,S),L=!s.arrow&&null!=fe(o)&&O!==A&&a.reference[m]/2-(O<$?R:_)-h[m]/2<0,k=L?O<$?O-$:O-S:0;return{[p]:f[p]+k,data:{[p]:A,centerOffset:O-A-k,...L&&{alignmentOffset:k}},reset:L}}}),Ze=(e,t,n)=>{const r=new Map,o={platform:je,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Te},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}=Ce(c,r,s),f=r,p=0;const m={};for(let n=0;n<a.length;n++){const h=a[n];if(!h)continue;const{name:g,fn:b}=h,{x:v,y,data:w,reset:E}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,m[g]={...m[g],...w},E&&p<50&&(p++,"object"==typeof E&&(E.placement&&(f=E.placement),E.rects&&(c=!0===E.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),({x:u,y:d}=Ce(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:a})};var Ge="undefined"!=typeof document?h.useLayoutEffect:function(){};function Ke(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(!Ke(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||Ke(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ye(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xe(e,t){const n=Ye(e);return Math.round(t*n)/n}function Je(e){const t=h.useRef(e);return Ge(()=>{t.current=e}),t}const Qe=(e,t)=>{const n=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=de(n),l=fe(n),s="y"===me(n),c=$e.has(i)?-1:1,u=a&&s?-1:1,d=ue(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},et=(e,t)=>{const n=We(e);return{name:n.name,fn:n.fn,options:[e,t]}},tt=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=ue(e,t);switch(o){case"referenceHidden":{const e=Re(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_e(e)}}}case"escaped":{const e=Re(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_e(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},nt=(e,t)=>{const n=(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?Ue({element:n.current,padding:r}).fn(t):{}:n?Ue({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};const rt={...g};let ot=!1,at=0;const it=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+at++,lt=rt.useId||function(){const[e,t]=h.useState(()=>ot?it():void 0);return S(()=>{null==e&&t(it())},[]),h.useEffect(()=>{ot=!0},[]),e};const st=h.createContext(null),ct=h.createContext(null);function ut(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=lt(),a=h.useRef({}),[i]=h.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=h.useContext(st))?void 0:s.id)||null);var s;const[c,u]=h.useState(r.reference),d=function(e){const t=h.useRef(()=>{});return O(()=>{t.current=e}),h.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=h.useMemo(()=>({setPositionReference:u}),[]),p=h.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return h.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:i,floatingId:o,refs:f}),[t,d,p,i,o,f])}function dt(e){void 0===e&&(e={});const{nodeId:t}=e,n=ut({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=h.useState(null),[l,s]=h.useState(null),c=(null==o?void 0:o.domReference)||a,u=h.useRef(null),d=h.useContext(ct);S(()=>{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]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);Ke(f,r)||p(r);const[m,g]=h.useState(null),[b,v]=h.useState(null),y=h.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),w=h.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),E=a||m,N=i||b,x=h.useRef(null),C=h.useRef(null),T=h.useRef(u),R=null!=s,_=Je(s),$=Je(o),S=Je(c),O=h.useCallback(()=>{if(!x.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};$.current&&(e.platform=$.current),Ze(x.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==S.current};A.current&&!Ke(T.current,t)&&(T.current=t,te.flushSync(()=>{d(t)}))})},[f,t,n,$,S]);Ge(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const A=h.useRef(!1);Ge(()=>(A.current=!0,()=>{A.current=!1}),[]),Ge(()=>{if(E&&(x.current=E),N&&(C.current=N),E&&N){if(_.current)return _.current(E,N,O);O()}},[E,N,O,_,R]);const L=h.useMemo(()=>({reference:x,floating:C,setReference:y,setFloating:w}),[y,w]),k=h.useMemo(()=>({reference:E,floating:N}),[E,N]),M=h.useMemo(()=>{const e={position:n,left:0,top:0};if(!k.floating)return e;const t=Xe(k.floating,u.x),r=Xe(k.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Ye(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,k.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:O,refs:L,elements:k,floatingStyles:M}),[u,O,L,k,M])}({...e,elements:{...o,...l&&{reference:l}}}),p=h.useCallback(e=>{const t=I(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),m=h.useCallback(e=>{(I(e)||null===e)&&(u.current=e,i(e)),(I(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!I(e))&&f.refs.setReference(e)},[f.refs]),g=h.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),b=h.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=h.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return S(()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),h.useMemo(()=>({...f,context:v,refs:g,elements:b}),[f,g,b,v])}const ft=new Map,pt=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;ft.has(r)||ft.set(r,new Set);const a=ft.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...o)},mt=(0,h.createContext)(d);m().node,pt(m().objectOf(m().bool)),m().bool,m().bool,m().bool,m().bool,m().bool,m().bool,m().bool,m().bool,m().bool,m().bool;const ht=e=>(0,h.useContext)(mt).enabled(e),gt=h.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),bt=h.forwardRef(function({isTabTip:e,align:t=(e?"bottom-start":"bottom"),as:n="span",autoAlign:r=!1,autoAlignBoundary:o,backgroundToken:a="layer",caret:i=!e,className:l,children:s,border:c=!1,dropShadow:u=!0,highContrast:d=!1,onRequestClose:p,open:m,alignmentAxisOffset:g,...b},y){const w=C(),x=(0,h.useRef)(null),_=(0,h.useRef)(null),S=(0,h.useRef)(null),O=ht("enable-v12-dynamic-floating-styles")||r,A=(0,h.useRef)(!1);let L=$(t);T(S,"mousedown",e=>{const t=e.target;A.current=I.floating.current?.contains(t)||!1,A.current&&setTimeout(()=>{A.current=!1},0)}),T(S,"focusout",e=>{const t=e.relatedTarget;if(t){if(t&&!S.current?.contains(t)){const e=!O||!I.floating.current||!I.floating.current.contains(t),n=t&&S.current&&t.contains(S.current);e&&!n&&p?.()}}else{if(A.current)return void(A.current=!1);p?.()}}),R("click",({target:e})=>{m&&e instanceof Node&&!S.current?.contains(e)&&p?.()});const k=h.Children.toArray(s).some(e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label"))?7:6,B=(0,h.useRef)({offset:10,caretHeight:k});E(()=>{if(i&&S.current){const e=window.getComputedStyle(S.current,null),t=e.getPropertyValue(`--${w}-popover-offset`),n=e.getPropertyValue(`--${w}-popover-caret-height`);t&&(B.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(B.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}});const{refs:I,floatingStyles:D,placement:P,middlewareData:z,elements:V,update:H}=dt(O?{placement:L,strategy:"fixed",middleware:[Qe(e?0:{alignmentAxis:g,mainAxis:i?B?.current?.offset:4}),r&&et({fallbackPlacements:e?L.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:L.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:o}),nt({element:_,padding:16}),r&&tt()]}:{});(0,h.useEffect)(()=>{if(O&&m&&V.reference&&V.floating)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Oe(e),u=o||a?[...c?Q(c):[],...t?Q(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=M(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;const m={rootMargin:-ie(d)+"px "+-ie(o.clientWidth-(u+f))+"px "+-ie(o.clientHeight-(d+p))+"px "+-ie(u)+"px",threshold:oe(0,re(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||qe(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),t&&m.observe(t));let h=s?Me(e):null;return s&&function t(){const r=Me(e);h&&!qe(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}(V.reference,V.floating,H)},[O,m,V,H]);const F=(0,h.useMemo)(()=>({floating:x,setFloating:I.setFloating,caretRef:_,autoAlign:r}),[I.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(L)||(L="bottom-start")),(0,h.useEffect)(()=>{if(O){const e={...D,visibility:z.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach(t=>{I.floating.current&&(I.floating.current.style[t]=e[t])}),i&&z&&z.arrow&&_?.current){const{x:e,y:t}=z.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[P.split("-")[0]];_.current.style.left=null!=e?`${e}px`:"",_.current.style.top=null!=t?`${t}px`:"",_.current.style.right="",_.current.style.bottom="",n&&(_.current.style[n]=-B?.current?.caretHeight+"px")}}},[D,I.floating,O,z,P,i]);const j=N([y,S]),q=r&&P!==L?P:L,W=v()({[`${w}--popover-container`]:!0,[`${w}--popover--caret`]:i,[`${w}--popover--drop-shadow`]:u,[`${w}--popover--border`]:c,[`${w}--popover--high-contrast`]:d,[`${w}--popover--open`]:m,[`${w}--popover--auto-align ${w}--autoalign`]:O,[`${w}--popover--${q}`]:!0,[`${w}--popover--tab-tip`]:e,[`${w}--popover--background-token__background`]:"background"===a&&!d},l),U=h.Children.map(s,t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,a=O&&r&&["ToggletipButton"].includes(r),i=O&&!["ToggletipContent","PopoverContent"].includes(r);if(h.isValidElement(n)&&(o||a||i)){const t=n?.props?.className,r=(n?.props).ref,o=v()(`${w}--popover--tab-tip__button`,t);return h.cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(O&&n?.type!==vt||O&&"ToggletipButton"===n?.type.displayName)&&I.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n});return h.createElement(gt.Provider,{value:F},h.createElement(n,f({},b,{className:W,ref:j}),O||e?U:s))});bt.propTypes={align:w(m().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"],$),alignmentAxisOffset:m().number,as:m().oneOfType([m().string,m().elementType]),autoAlign:m().bool,backgroundToken:m().oneOf(["layer","background"]),autoAlignBoundary:m().oneOfType([m().oneOf(["clippingAncestors"]),m().elementType,m().arrayOf(m().elementType),m().exact({x:m().number.isRequired,y:m().number.isRequired,width:m().number.isRequired,height:m().number.isRequired})]),caret:m().bool,border:m().bool,children:m().node,className:m().string,dropShadow:m().bool,highContrast:m().bool,isTabTip:m().bool,onRequestClose:m().func,open:m().bool.isRequired};const vt=(0,h.forwardRef)((e,t)=>{const{className:n,children:r,...o}=e,a=C(),{setFloating:i,caretRef:l,autoAlign:s}=h.useContext(gt),c=N([i,t]),u=ht("enable-v12-dynamic-floating-styles")||s;return h.createElement("span",f({},o,{className:`${a}--popover`}),h.createElement("span",{className:v()(`${a}--popover-content`,n),ref:c},r,u&&h.createElement("span",{className:v()({[`${a}--popover-caret`]:!0,[`${a}--popover--auto-align`]:!0}),ref:l})),!u&&h.createElement("span",{className:v()({[`${a}--popover-caret`]:!0}),ref:l}))});vt.displayName="PopoverContent",vt.propTypes={children:m().node,className:m().string};const yt={key:"Tab",which:9,keyCode:9,code:"Tab"},wt={key:"Enter",which:13,keyCode:13,code:"Enter"},Et={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Nt={key:" ",which:32,keyCode:32,code:"Space"},xt=(e,t)=>{for(let n=0;n<t.length;n++)if(Ct(e,t[n]))return!0;return!1},Ct=(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,h.useState)(e),r=(0,h.useRef)(null),o=(0,h.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,h.useEffect)(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const Rt=h.createContext(null);function _t(){return h.useContext(Rt)}const $t={...h},St=(()=>{let e=0;return()=>++e})();let Ot=!1;const At=$t.useId?function(e="id"){const t=_t();return`${t?`${t}-`:""}${e}-${$t.useId()}`}:function(e="id"){const t=_t(),[n,r]=(0,h.useState)(()=>Ot?`${t?`${t}-`:""}${e}-${St()}`:null);return E(()=>{null===n&&r(`${t?`${t}-`:""}${e}-${St()}`)},[St]),(0,h.useEffect)(()=>{!1===Ot&&(Ot=!0)},[]),n},Lt=e=>{if(!e||!e.childNodes)return null;if(Mt(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Lt(t);if(e)return e}return null},kt=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=kt(t);if(e)return e}return null},Mt=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}},Bt=new Set(["mouseup","touchend","touchcancel"]),It=h.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,...p},m)=>{const g=(0,h.useRef)(null),[b,y]=Tt(s),[w,N]=(0,h.useState)(!1),[x,T]=(0,h.useState)(!1),[R,_]=(0,h.useState)(!1),$=At("tooltip"),S=C(),O=h.Children.only(r),{"aria-labelledby":A,"aria-describedby":L}=O?.props??{},k=!!o,M={onFocus:()=>!x&&y(!0),onBlur:()=>{y(!1),T(!1)},onClick:()=>c&&y(!1),onMouseEnter:I,onMouseLeave:D,onMouseDown:function(){T(!0),P()},onMouseMove:function(e){1===e.buttons?N(!0):N(!1)},onTouchStart:P,"aria-labelledby":A??(k?$:void 0),"aria-describedby":L??(k?void 0:$)},B=(0,h.useCallback)(e=>{b&&Ct(e,Et)&&(e.stopPropagation(),y(!1)),b&&c&&(Ct(e,wt)||Ct(e,Nt))&&y(!1)},[c,b,y]);function I(){p?.onMouseEnter||(_(!0),y(!0,i))}function D(){_(!1),w||y(!1,l)}function P(){N(!0)}E(()=>{if(b)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){Ct(e,Et)&&B(e)}},[b,B]);const z=(0,h.useCallback)(()=>{N(!1),R||y(!1,l)},[R,l,y]);return((e,t="component should have no interactive child nodes")=>{(0,h.useEffect)(()=>{},[t,e])})(g,"The Tooltip component must have no interactive content rendered by the`label` or `description` prop"),(0,h.useEffect)(()=>(w&&Bt.forEach(e=>{document.addEventListener(e,z)}),()=>{Bt.forEach(e=>{document.removeEventListener(e,z)})}),[w,z]),h.createElement(bt,f({as:e,ref:m},p,{align:t,className:v()(`${S}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:B,onMouseLeave:D,open:b}),h.createElement("div",{className:`${S}--tooltip-trigger__wrapper`},void 0!==O?h.cloneElement(O,{...M,...function(e){const t=Object.keys(M).filter(e=>e.startsWith("on")),n={};return t.forEach(t=>{n[t]=n=>{M[t](n),e?.[t]&&e?.[t](n)}}),n}(O.props)}):null),h.createElement(vt,{"aria-hidden":b?"false":"true",className:`${S}--tooltip-content`,id:$,onMouseEnter:I,role:"tooltip"},o||a))});It.propTypes={align:m().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:m().node,className:m().string,closeOnActivation:m().bool,defaultOpen:m().bool,description:m().node,dropShadow:m().bool,enterDelayMs:m().number,highContrast:m().bool,label:m().node,leaveDelayMs:m().number};const Dt=h.forwardRef(function({as:e,children:t,className:n,dangerDescription:r="danger",disabled:o=!1,hasIconOnly:a=!1,href:i,iconDescription:l,isExpressive:s=!1,isSelected:c,kind:u="primary",onBlur:d,onClick:f,onFocus:p,onMouseEnter:m,onMouseLeave:g,renderIcon:b,size:y,tabIndex:w,type:E="button",...N},x){const T=C(),R={tabIndex:w,className:v()(n,{[`${T}--btn`]:!0,[`${T}--btn--xs`]:"xs"===y&&!s,[`${T}--btn--sm`]:"sm"===y&&!s,[`${T}--btn--md`]:"md"===y&&!s,[`${T}--btn--lg`]:"lg"===y&&!s,[`${T}--btn--xl`]:"xl"===y,[`${T}--btn--2xl`]:"2xl"===y,[`${T}--layout--size-${y}`]:y,[`${T}--btn--${u}`]:u,[`${T}--btn--disabled`]:o,[`${T}--btn--expressive`]:s,[`${T}--btn--icon-only`]:a,[`${T}--btn--selected`]:a&&c&&"ghost"===u}),ref:x},_=b?h.createElement(b,{"aria-label":l,className:`${T}--btn__icon`,"aria-hidden":"true"}):null,$=["danger","danger--tertiary","danger--ghost"];let S="button";const O=At("danger-description"),{"aria-pressed":A,"aria-describedby":L}=N;let k={disabled:o,type:E,"aria-describedby":$.includes(u)?O:L||void 0,"aria-pressed":A??(a&&"ghost"===u?c:void 0)};const M={href:i};let B=null;return $.includes(u)&&(B=h.createElement("span",{id:O,className:`${T}--visually-hidden`},r)),e?(S=e,k={...k,...M}):i&&!o&&(S="a",k=M),h.createElement(S,{onMouseEnter:m,onMouseLeave:g,onFocus:p,onBlur:d,onClick:f,...N,...R,...k},B,t,_)}),Pt=(0,h.forwardRef)((e,t)=>{const{className:n,count:r,...o}=e,a=C(),i=v()(`${a}--badge-indicator`,n,{[`${a}--badge-indicator--count`]:r}),l=r&&r>999?"999+":r;return h.createElement("div",f({className:i,ref:t},o),l)});Pt.propTypes={className:m().string,count:m().number,id:m().string};const zt=["primary","secondary","ghost","tertiary"],Vt=(0,h.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:p,leaveDelayMs:m=100,wrapperClasses:g,size:b,isSelected:y,...w},E)=>{const N=C(),x=v()(g,`${N}--icon-tooltip`,{[`${N}--icon-tooltip--disabled`]:l});!n||"ghost"===d&&"lg"===b||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const T=At("badge-indicator");return h.createElement(It,{align:e,autoAlign:t,closeOnActivation:a,className:x,defaultOpen:i,dropShadow:s,enterDelayMs:c,highContrast:u,label:p,leaveDelayMs:m},h.createElement(Dt,f({},w,{disabled:l,kind:d,ref:E,size:b,isSelected:y,hasIconOnly:!0,className:o,"aria-describedby":w["aria-describedby"]||n&&T}),r,!l&&void 0!==n&&h.createElement(Pt,{id:T,count:n>0?n:void 0})))});Vt.propTypes={align:w(m().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"],$),autoAlign:m().bool,badgeCount:m().number,href:m().string,children:m().node,className:m().string,closeOnActivation:m().bool,defaultOpen:m().bool,dropShadow:m().bool,disabled:m().bool,enterDelayMs:m().number,isSelected:m().bool,highContrast:m().bool,kind:m().oneOf(zt),label:m().node.isRequired,leaveDelayMs:m().number,rel:m().string,size:m().oneOf(["sm","md","lg"]),target:m().string,wrapperClasses:m().string};const Ht=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],Ft=h.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:p,onMouseEnter:m,onMouseLeave:g,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 N=b?h.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),h.createElement(Vt,f({},E,{ref:t,as:n,align:e,label:s,kind:c,size:v,highContrast:i,dropShadow:l,onMouseEnter:m,onMouseLeave:g,onFocus:p,onBlur:u,autoAlign:r,onClick:d,renderIcon:N?null:b}),N??o)}{const{tooltipAlignment:n,...r}=e;return h.createElement(Dt,f({ref:t},r))}});Ft.displayName="Button",Ft.propTypes={as:m().oneOfType([m().func,m().string,m().elementType]),autoAlign:m().bool,children:m().node,className:m().string,dangerDescription:m().string,disabled:m().bool,hasIconOnly:m().bool,href:m().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:m().bool,isSelected:m().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?zt:Ht;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:m().func,onClick:m().func,onFocus:m().func,onMouseEnter:m().func,onMouseLeave:m().func,rel:m().string,renderIcon:m().oneOfType([m().func,m().object]),role:m().string,size:m().oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:m().number,target:m().string,tooltipAlignment:m().oneOf(["start","center","end"]),tooltipDropShadow:m().bool,tooltipHighContrast:m().bool,tooltipPosition:m().oneOf(["top","right","bottom","left"]),type:m().oneOf(["button","reset","submit"])};const jt=h.createContext(1),qt=["one","two","three"],Wt=[0,1,2],Ut=Wt[0],Zt=Wt[Wt.length-1],Gt=h.forwardRef((e,t)=>{const{as:n,className:r,children:o,level:a,withBackground:i=!1,...l}=e,s=h.useContext(jt),c=a??s,u=C(),d=v()(`${u}--layer-${qt[c]}`,{[`${u}--layer__with-background`]:i},r),p=((e,t,n)=>Math.min(n,Math.max(t,e)))(c+1,Ut,Zt),m=n||"div";return h.createElement(jt.Provider,{value:p},h.createElement(m,f({ref:t},l,{className:d}),o))});Gt.displayName="Layer",Gt.propTypes={as:m().oneOfType([m().func,m().string,m().elementType]),children:m().node,className:m().string,level:m().oneOf([0,1,2]),withBackground:m().bool};var Kt=n(9184);const Yt=h.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},p){const m=C(),g=v()(`${m}--modal-header`,n),b=v()(`${m}--modal-header__label ${m}--type-delta`,s),y=v()(`${m}--modal-header__heading ${m}--type-beta`,u),w=v()(`${m}--modal-close`,r),E=v()(`${m}--modal-close__icon`,o);return h.createElement("div",f({className:g},d,{ref:p}),l&&h.createElement("h2",{className:b},l),c&&h.createElement("h2",{className:y},c),t,h.createElement("div",{className:`${m}--modal-close-button`},h.createElement(Vt,{className:w,label:i,onClick:function(t){a?.(t),e?.(t)},"aria-label":i,align:"left"},h.createElement(Kt.bm,{size:20,"aria-hidden":"true",tabIndex:"-1",className:E}))))});Yt.propTypes={buttonOnClick:m().func,children:m().node,className:m().string,closeClassName:m().string,closeIconClassName:m().string,closeModal:m().func,iconDescription:m().string,label:m().string,labelClassName:m().string,title:m().node,titleClassName:m().string};const Xt=e=>({ghost:1,"danger--ghost":2,tertiary:3,danger:5,primary:6}[e]??4),Jt=e=>h.isValidElement(e)&&e.props&&"object"==typeof e.props?e.props.kind??"primary":"primary",Qt=(0,h.forwardRef)((e,t)=>{const{children:n,className:r,fluid:o,stacked:a,...i}=e,l=C(),s=(0,h.useRef)(null),[c,u]=(0,h.useState)(!1),[d,p]=(0,h.useState)(h.Children.toArray(n));E(()=>{const e=()=>{let e=a||!1;if(s&&s.current){const t=window.getComputedStyle(s.current);e="column"===t?.getPropertyValue?.("--flex-direction")}return e};if(u(e()),!s.current)return;const t=new ResizeObserver(()=>{u(e())});return t.observe(s.current),()=>t.disconnect()},[o,a]),(0,h.useEffect)(()=>{const e=h.Children.toArray(n);e.sort((e,t)=>(Xt(Jt(e))-Xt(Jt(t)))*(c?-1:1)),p(e)},[n,c]);const m=v()(r,`${l}--btn-set`,{[`${l}--btn-set--stacked`]:c,[`${l}--btn-set--fluid`]:o});return h.createElement("div",f({},i,{className:m,ref:t}),o?h.createElement("div",{ref:s,className:v()(`${l}--btn-set__fluid-inner`,{[`${l}--btn-set__fluid-inner--auto-stack`]:!0})},d):n)});Qt.displayName="ButtonSet",Qt.propTypes={children:m().node,className:m().string,fluid:m().bool,stacked:m().bool};const en=()=>{};var tn=n(771);function nn({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...a}){const i=C(),l=v()(t,{[`${i}--loading`]:!0,[`${i}--loading--small`]:r,[`${i}--loading--stop`]:!e}),s=v()({[`${i}--loading-overlay`]:!0,[`${i}--loading-overlay--stop`]:!e}),c=h.createElement("div",f({},a,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:l}),h.createElement("svg",{className:`${i}--loading__svg`,viewBox:"0 0 100 100",role:"img","aria-label":o},h.createElement("title",null,o),r?h.createElement("circle",{className:`${i}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,h.createElement("circle",{className:`${i}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?h.createElement("div",{className:s},c):c}nn.propTypes={active:m().bool,className:m().string,description:m().string,id:pt(m().string),small:m().bool,withOverlay:m().bool};const rn=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:a=1500,...i})=>{const l=C(),s=v()(`${l}--inline-loading`,e),c=(0,h.useRef)(null);(0,h.useEffect)(()=>("finished"===t&&(c.current=setTimeout(()=>{o&&o()},a)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[t,o,a]);const u=r&&h.createElement("div",{className:`${l}--inline-loading__text`},r),d=(()=>{let e=n||t;if("error"===t)return h.createElement(tn.x,{className:`${l}--inline-loading--error`},h.createElement("title",null,e));if("finished"===t)return h.createElement(Kt._j,{className:`${l}--inline-loading__checkmark-container`},h.createElement("title",null,e));if("inactive"===t||"active"===t){if("inactive"===t)return;return n||(e="loading"),h.createElement(nn,{small:!0,description:e,withOverlay:!1,active:"active"===t})}})(),p=d&&h.createElement("div",{className:`${l}--inline-loading__animation`},d);return h.createElement("div",f({className:s},i,{"aria-live":i["aria-live"]??("inactive"===t?"off":"assertive")}),p,u)};function on({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?h.createElement(h.Fragment,null,e.map(({buttonText:e,onClick:t},r)=>h.createElement(Ft,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||i},e))):t?h.createElement(Ft,{disabled:a,className:n,onClick:i,kind:"secondary"},t):null}rn.propTypes={className:m().string,description:m().node,iconDescription:m().string,onSuccess:m().func,status:m().oneOf(["inactive","active","finished","error"]),successDelay:m().number},on.propTypes={closeModal:m().func,disabled:m().bool,onRequestClose:m().func,secondaryButtonText:m().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:m().node,onClick:m().func};e[t].forEach(e=>{m().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:m().string};const an=h.forwardRef(function({children:e,className:t,closeModal:n=en,danger:r,inputref:o,onRequestClose:a=en,onRequestSubmit:i=en,primaryButtonDisabled:l,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:p,loadingStatus:m="inactive",loadingDescription:g,loadingIconDescription:b,onLoadingSuccess:y=en,...w},E){const N=C(),x=v()(`${N}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${N}--modal-footer--three-button`:null),T=v()(c,"inactive"!==m?`${N}--btn--loading`:null),R="inactive"!==m,_={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:p,onRequestClose:a,disabled:R};return h.createElement(Qt,f({className:x},w,{ref:E,"aria-busy":R}),h.createElement(on,_),s&&h.createElement(Ft,{onClick:i,className:T,disabled:R||l,kind:r?"danger":"primary",ref:o},"inactive"===m?s:h.createElement(rn,{status:m,description:g,iconDescription:b,className:`${N}--inline-loading--btn`,onSuccess:y})),e)});an.propTypes={children:m().node,className:m().string,closeModal:m().func,danger:m().bool,inputref:m().oneOfType([m().func,m().shape({current:m().any})]),loadingDescription:m().string,loadingIconDescription:m().string,loadingStatus:m().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:m().func,onRequestClose:m().func,onRequestSubmit:m().func,primaryButtonDisabled:m().bool,primaryButtonText:m().string,primaryClassName:m().string,secondaryButtonText:m().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:m().node,onClick:m().func};e[t].forEach(e=>{m().checkPropTypes(r,e,t,n)})}return null},secondaryClassName:m().string};const ln=(...e)=>t=>{e.forEach(e=>{e&&("function"==typeof e?e(t):"object"==typeof e&&"current"in e&&(e.current=t))})},sn=(e,t,n)=>{e.classList.toggle(t,n)};var cn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),un="undefined"==typeof Element,dn=un?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,fn=!un&&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},pn=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):pn(e.parentNode))},mn=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var a=o.shift();if(!pn(a,!1))if("SLOT"===a.tagName){var i=a.assignedElements(),l=i.length?i:a.children,s=mn(l,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{dn.call(a,cn)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),u=!pn(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&u){var d=mn(!0===c?a.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return r},hn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gn=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))&&!hn(e)?0:e.tabIndex},bn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},vn=function(e){return"INPUT"===e.tagName},yn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},wn=function(e,t){return!(t.disabled||function(e){return vn(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=dn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(dn.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return yn(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,l=fn(e);if(i&&!i.shadowRoot&&!0===r(i))return yn(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&&fn(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=fn(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!!dn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},En=function(e,t){return!(function(e){return function(e){return vn(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||fn(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)||gn(t)<0||!wn(e,t))},Nn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xn=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,a=o?e.scopeParent:e,i=function(e,t){var n=gn(e);return n<0&&t&&!hn(e)?0:n}(a,o),l=o?xn(e.candidates):a;0===i?o?t.push.apply(t,l):t.push(a):n.push({documentOrder:r,tabIndex:i,item:e,isScope:o,content:l})}),n.sort(bn).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)};const Cn="\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",Tn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,Rn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,_n=(e,t=[],n="cds")=>e instanceof Element&&"function"==typeof e.closest&&[`.${n}--overflow-menu-options`,`.${n}--tooltip`,".flatpickr-calendar",...t].some(t=>!!e.closest(t)),$n=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:a,prefix:i="cds"})=>{if(e&&r&&o&&!e.contains(r)&&!_n(r,a,i)){const a=o.compareDocumentPosition(r);if(r===t||a&Tn){const t=Array.from(e.querySelectorAll(Cn)).reverse().find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}else if(r===n||a&Rn){const t=Array.from(e.querySelectorAll(Cn)).find(({offsetParent:e})=>Boolean(e));t?t.focus():e!==o&&e.focus()}}},Sn=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(i=e,s=(l=l||{}).getShadowRoot?mn([i],l.includeContainer,{filter:En.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:Nn}):function(e,t,n){if(pn(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(cn));return t&&dn.call(e,cn)&&r.unshift(e),r.filter(n)}(i,l.includeContainer,En.bind(null,l)),xn(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())},On=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}},An=(0,h.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Ln=(0,h.forwardRef)(({as:e,children:t,dir:n="auto",...r},o)=>{const a=(0,h.useContext)(An),i={},l=e??"span",s={...a};if(a){const{direction:e,getTextDirection:r}=a;if(r&&r.current){const n=kn(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 h.createElement(An.Provider,{value:s},h.createElement(l,f({ref:o},r,i),t))});Ln.propTypes={as:m().oneOfType([m().func,m().string,m().elementType]),children:m().node,dir:m().oneOf(["ltr","rtl","auto"])};const kn=e=>{if("string"==typeof e)return e;const t=h.Children.map(e,e=>"string"==typeof e?e:null)?.filter(e=>null!==e);return 1===t?.length?t[0]:t};const Mn=(0,h.createContext)({}),Bn=h.forwardRef(({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=en,onClick:a=en,onClose:i=en,onRequestClose:l=en,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:p,...m},g)=>{const b=C(),y=At(),w=`${b}--dialog-header__heading--${y}`,E=`${b}--dialog-header__label--${y}`,N=(0,h.useRef)(null),x=g??N;(0,h.useEffect)(()=>{x.current&&(s?r?x.current.showModal():x.current.show():x.current.close())},[r,s]),(0,h.useEffect)(()=>{if(!s&&n){const e=setTimeout(()=>{n.current?.focus()});return()=>{clearTimeout(e)}}},[s,n]);const T=v()(`${b}--dialog-container`),R={dialogId:y,titleId:w,subtitleId:E,isOpen:s};return(0,h.useEffect)(()=>{if(x.current&&s&&!u&&!d){const e=x.current.querySelector(`.${b}--dialog-header__heading`);e&&e.id&&x.current.setAttribute("aria-labelledby",e.id)}},[s,u,d,b]),h.createElement(Mn.Provider,{value:R},h.createElement("dialog",f({},m,{className:v()(`${b}--dialog`,{[`${b}--dialog--modal`]:r},t),ref:x,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===x.current&&l(e)}(e),a(e)},onClose:i,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||w,"aria-describedby":p}),h.createElement("div",{className:T},e)))});Bn.displayName="Dialog",Bn.propTypes={children:m().node,className:m().string,focusAfterCloseRef:m().oneOfType([m().func,m().shape({current:m().any})]),modal:m().bool,onRequestClose:m().func,open:m().bool,role:m().oneOf(["dialog","alertdialog"]),"aria-label":m().string,"aria-labelledby":m().string,ariaDescribedBy:m().string};const In=h.forwardRef(({children:e,...t},n)=>{const r=C();return h.createElement("div",f({className:`${r}--dialog__header`,ref:n},t),e)});In.displayName="DialogHeader",In.propTypes={children:m().node};const Dn=h.forwardRef(({children:e,...t},n)=>{const r=C();return h.createElement("div",f({className:`${r}--dialog__header-controls`,ref:n},t),e)});Dn.displayName="DialogControls",Dn.propTypes={children:m().node};const Pn=h.forwardRef(({onClick:e,...t},n)=>{const r=C();return h.createElement(Vt,f({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),h.createElement(Kt.bm,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))});Pn.displayName="DialogCloseButton",Pn.propTypes={onClick:m().func};const zn=h.forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=C(),{titleId:i}=(0,h.useContext)(Mn),l=n||i;return h.createElement(Ln,f({as:"h2",id:l,className:v()(`${a}--dialog-header__heading`,t),ref:o},r),e)});zn.displayName="DialogTitle",zn.propTypes={children:m().node,className:m().string,id:m().string};const Vn=h.forwardRef(({children:e,className:t,id:n,...r},o)=>{const a=C(),{subtitleId:i}=(0,h.useContext)(Mn),l=n||i;return h.createElement(Ln,f({as:"h2",id:l,className:v()(`${a}--dialog-header__label`,t),ref:o},r),e)});Vn.displayName="DialogSubtitle",Vn.propTypes={children:m().node,className:m().string,id:m().string};const Hn=h.forwardRef(({children:e,className:t,hasScrollingContent:n,...r},o)=>{const a=C(),i=(0,h.useRef)(null),[l,s]=(0,h.useState)(!1),c=`${a}--dialog-body--${At()}`;E(()=>{i.current&&s(i.current.scrollHeight>i.current.clientHeight);const e=function(e,t=0,n={}){"object"!=typeof n&&(n={});const{signal:r,leading:o=!1,trailing:a=!0,maxWait:i}=n,l=Array(2);let s;o&&(l[0]="leading"),a&&(l[1]="trailing");let c=null;const u=function(e,t,{signal:n,edges:r}={}){let o,a=null;const i=null!=r&&r.includes("leading"),l=null==r||r.includes("trailing"),s=()=>{null!==a&&(e.apply(o,a),o=void 0,a=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,l&&s(),f()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,a=null},p=function(...e){if(n?.aborted)return;o=this,a=e;const t=null==c;u(),i&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}(function(...t){s=e.apply(this,t),c=null},t,{signal:r,edges:l}),d=function(...t){if(null!=i)if(null===c)c=Date.now();else if(Date.now()-c>=i)return s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s;return u.apply(this,t),s};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}(function(){i.current&&s(i.current.scrollHeight>i.current.clientHeight)},200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]);const u=v()(`${a}--dialog-content`,{[`${a}--dialog-scroll-content`]:n||l},t),d=n||l?{tabIndex:0,role:"region"}:{};return h.createElement(Gt,f({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),i.current=e},id:c,className:u},d,r),e)});Hn.displayName="DialogBody",Hn.propTypes={children:m().node,className:m().string,hasScrollingContent:m().bool};const Fn=h.forwardRef(({children:e,className:t,onRequestClose:n=en,onSecondarySubmit:r,onRequestSubmit:o=en,primaryButtonText:a="Save",primaryButtonDisabled:i=!1,secondaryButtonText:l="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:p=en,danger:m=!1,...g},b)=>{const y=C(),w=(0,h.useRef)(null),{isOpen:E}=(0,h.useContext)(Mn),[N,x]=(0,h.useState)(null);(0,h.useEffect)(()=>{if(m&&N){const e=requestAnimationFrame(()=>{N.focus()});return()=>cancelAnimationFrame(e)}},[m,N,E]);const T=v()(`${y}--dialog-footer`,t,{[`${y}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),R="inactive"!==c,_=v()({[`${y}--btn--loading`]:"inactive"!==c}),$=r||n;return e?h.createElement(Qt,f({className:T,ref:b},g),e):h.createElement(Qt,f({className:T,"aria-busy":R,ref:b},g),Array.isArray(s)&&s.length<=2?s.map(({buttonText:e,onClick:t},n)=>h.createElement(Ft,{key:`${e}-${n}`,autoFocus:m,kind:"secondary",ref:0===n&&m?x:void 0,onClick:t},e)):l&&h.createElement(Ft,{ref:m?x:void 0,disabled:R,kind:"secondary",autoFocus:m,onClick:$},l),h.createElement(Ft,{className:_,kind:m?"danger":"primary",disabled:R||i,onClick:o,ref:w},"inactive"===c?a:h.createElement(rn,{status:c,description:u,iconDescription:d,className:`${y}--inline-loading--btn`,onSuccess:p})))});Fn.displayName="DialogFooter",Fn.propTypes={children:m().node,className:m().string,onRequestClose:m().func,onSecondarySubmit:m().func,onRequestSubmit:m().func,primaryButtonText:m().node,primaryButtonDisabled:m().bool,secondaryButtonText:m().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:m().node,onClick:m().func};e[t].forEach(e=>{m().checkPropTypes(r,e,t,n)})}return null},danger:m().bool,loadingStatus:m().oneOf(["inactive","active","finished","error"]),loadingDescription:m().string,loadingIconDescription:m().string,onLoadingSuccess:m().func},m().elementType,m().node,m().string;const jn=h.createContext(void 0);function qn(){return(0,h.useContext)(jn)}function Wn({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:a=!1,...i}){const l=(0,h.useRef)(null),[s,c]=(0,h.useState)(a),u=C(),d=At(),p=v()(`${u}--toggletip`,r,{[`${u}--toggletip--open`]:s,[`${u}--autoalign`]:n}),m={toggle:()=>{c(!s)},close:()=>{c(!1)}},g={buttonProps:{"aria-expanded":s,"aria-controls":d,"aria-describedby":s?d:void 0,onClick:m.toggle},contentProps:{id:d},onClick:{onClick:m.toggle}};return R("blur",()=>{s&&m.close()}),(0,h.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]),h.createElement(jn.Provider,{value:g},h.createElement(bt,f({align:e,as:t,caret:!0,className:p,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&Ct(e,Et)){e.stopPropagation(),m.close();const t=l.current?.children[0];t instanceof HTMLButtonElement&&t.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||m.close()},ref:l,autoAlign:n},i),o))}const{open:Un,...Zn}=bt.propTypes??{};Wn.propTypes={...Zn,defaultOpen:m().bool};const Gn=(0,h.forwardRef)(function({children:e,className:t,label:n="Show information",as:r,...o},a){const i=qn(),l=C(),s=v()(`${l}--toggletip-button`,t),c=r??"button";return"button"!==c?h.createElement(c,f({},i?.onClick,{className:s},o),e):h.createElement("button",f({},i?.buttonProps,{"aria-label":n,type:"button",className:s,ref:a},o),e)});Gn.propTypes={children:m().node,className:m().string,label:m().string},Gn.displayName="ToggletipButton";const Kn=(0,h.forwardRef)((e,t)=>{const{children:n,className:r}=e,o=qn(),a=C();return h.createElement(vt,f({className:r},o?.contentProps,{ref:t}),h.createElement("div",{className:`${a}--toggletip-content`},n))});function Yn({children:e,className:t}){const n=C(),r=v()(`${n}--toggletip-actions`,t);return h.createElement("div",{className:r},e)}Kn.propTypes={children:m().node,className:m().string},Kn.displayName="ToggletipContent",Yn.propTypes={children:m().node,className:m().string};var Xn,Jn=n(428);const Qn=h.forwardRef(function({children:e,size:t=16,...n},r){return h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Xn||(Xn=h.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 er;const tr=h.forwardRef(function({className:e,children:t},n){const r=C(),o=v()(e,{[`${r}--ai-label-content`]:!0,[`${r}--ai-label-content--with-actions`]:!1});return h.createElement(Kn,{className:o},t)});tr.displayName="AILabelContent",tr.propTypes={children:m().node,className:m().string};const nr=h.forwardRef(function({className:e,children:t},n){const r=C(),o=v()(e,{[`${r}--ai-label-actions`]:!0});return h.createElement(Yn,{className:o},t)});nr.displayName="AILabelActions",nr.propTypes={children:m().node,className:m().string};const rr=h.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":p="Show information",size:m="xs",...g},b){const y=C(),w=At("AILabel"),E=v()(i,{[`${y}--ai-label`]:!0,[`${y}--ai-label--revert`]:c}),N=v()({[`${y}--ai-label__button`]:!0,[`${y}--ai-label__button--${m}`]:m,[`${y}--ai-label__button--${l}`]:l,[`${y}--ai-label__button--inline-with-content`]:"inline"===l&&(t||n)}),x=t||n?`${e} ${t||n}`:`${e} ${d||p}`,T=["xs","2xs","mini"].includes(m);return h.createElement("div",{className:E,ref:b,id:w},c?h.createElement(Vt,f({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},g),er||(er=h.createElement(Qn,null))):h.createElement(Wn,f({align:r,autoAlign:o,alignmentAxisOffset:T?-24:0},g),h.createElement(Gn,{className:N,label:"inline"===l?"":x},h.createElement("span",{className:`${y}--ai-label__text`},e),"inline"===l&&(t||n)&&h.createElement("span",{className:`${y}--ai-label__additional-text`},t||n)),a))});rr.displayName="AILabel",rr.propTypes={...Wn.propTypes,AILabelContent:m().node,aiText:m().string,aiTextLabel:pt(m().string),"aria-label":m().string,kind:m().oneOf(["default","inline"]),onRevertClick:m().func,revertActive:m().bool,revertLabel:m().string,size:m().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:pt(m().string),textLabel:m().string};const or=(e,t)=>(0,h.isValidElement)(e)&&e.type===t,ar=e=>{const[t,n]=(0,h.useState)(!!e),[r,o]=(0,h.useState)(!!e);return(0,h.useEffect)(()=>{e!==r&&(n(!!e),o(!!e))},[e,r]),(0,h.useMemo)(()=>[t,n],[t])},ir=({open:e,_presenceId:t,_autoEnablePresence:n=!0,children:r})=>{const o=ar(e),[a]=o,[i,l]=((e,t)=>{const n=(0,h.useRef)(t),r=(0,h.useRef)(null),o=(0,h.useRef)(null);t||!o.current||r.current||(n.current=null),o.current=r.current;const{isPresent:a,isExiting:i}=((e,t)=>{const n=C(),[r,o]=(0,h.useState)(t?"idle":"finished"),a="active"===r;return E(()=>{o(e=>t||"idle"!==e?t&&"idle"!==e?"idle":e:"active")},[t]),E(()=>{if(!e.current||!a)return;if(!("getAnimations"in e.current))return void o("finished");const t=e.current.getAnimations({subtree:!0}).filter(e=>e instanceof CSSAnimation&&e.animationName.startsWith(`${n}--presence`));if(!t.length)return void o("finished");let r=!1;return Promise.all(t.map(e=>e.finished)).finally(()=>{r||o("finished")}),()=>{r=!0}},[e,a,n]),{isPresent:t||"finished"!==r,isExiting:a}})(r,e),l=(0,h.useCallback)(e=>!(!e||n.current&&n.current!==e||(n.current=e,0)),[]);return[a,(0,h.useMemo)(()=>({presenceRef:r,isPresenceExclusive:l,isExiting:i}),[r,l,i])]})(a,t),s=(0,h.useMemo)(()=>({modalState:o,autoEnablePresence:n,...l}),[o,n,l]);return i?h.createElement(lr,{value:s},r):null},lr=(0,h.createContext)(void 0),sr=h.forwardRef(function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},a){const i=C(),l=(0,h.useRef)(null),{height:s}=(({ref:e,onResize:t})=>{const[n,r]=(0,h.useState)(-1),[o,a]=(0,h.useState)(-1),i=(0,h.useRef)(null),l=(0,h.useRef)(t);return(0,h.useEffect)(()=>{l.current=t},[t]),(0,h.useEffect)(()=>{!e?.current||n>=0&&o>=0||(()=>{if(e.current){const t=window.getComputedStyle(e.current),n=(e.current?.offsetWidth??0)-("string"==typeof t?.paddingLeft&&t?.paddingLeft.length?parseFloat(t?.paddingLeft):0)-("string"==typeof t?.paddingRight&&t?.paddingRight.length?parseFloat(t?.paddingRight):0),o=(e.current?.offsetHeight??0)-("string"==typeof t?.paddingTop&&t?.paddingTop.length?parseFloat(t?.paddingTop):0)-("string"==typeof t?.paddingBottom&&t?.paddingBottom.length?parseFloat(t?.paddingBottom):0);r(n),a(o)}})()},[n,o]),E(()=>{if(!e?.current)return;const t=new ResizeObserver(t=>{i.current=t,window.requestAnimationFrame(()=>{(()=>{if(!e?.current||!Array.isArray(i?.current))return;const t=i.current[0];r(t.contentRect.width),a(t.contentRect.height),l.current?.(t.contentRect)})()})});return t.observe(e.current),()=>{t.disconnect()}},[]),{width:n,height:o}})({ref:l}),c=!!l.current&&l?.current?.scrollHeight>l?.current?.clientHeight,u=v()({[`${i}--modal-content`]:!0,[`${i}--modal-content--with-form`]:n,[`${i}--modal-scroll-content`]:r||c,[`${i}--modal-scroll-content--no-fade`]:s<=300},e),d=r||c?{tabIndex:0,role:"region"}:{};return h.createElement(Gt,f({className:u},d,o,{ref:ln(l,a)}),t)});var cr;sr.propTypes={"aria-label":(cr=m().string,(e,t,n,...r)=>cr(e,t,n,...r)),children:m().node,className:m().string,hasForm:m().bool,hasScrollingContent:m().bool};const ur=h.forwardRef(function({open:e,...t},n){const r=At(),o=ht("enable-presence"),a=Boolean((0,h.useContext)(lr)),i=o||a,l=(e=>{const t=(0,h.useContext)(lr);return t?.isPresenceExclusive(e)?t:void 0})(r);return i&&!l?h.createElement(ir,{open:e??!1,_presenceId:r,_autoEnablePresence:a},h.createElement(dr,f({open:!0,ref:n},t))):h.createElement(dr,f({ref:n,open:e},t))}),dr=h.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:p="[data-modal-primary-focus]",selectorsFloatingMenus:m,size:g,launcherButtonRef:b,slug:y,...w},E){const N=C(),x=(0,h.useRef)(null),T=(0,h.useRef)(null),R=(0,h.useRef)(null),_=(0,h.useRef)(null),$=(0,h.useRef)(null),S=(0,h.useContext)(lr),O=function(e){const t=h.useRef(void 0),n=h.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 h.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}([E,S?.presenceRef]),A=ht("enable-presence")||S?.autoEnablePresence,L=u||A,k=ar(L),[M,B]=S?.modalState??k,I=ht("enable-dialog-element"),D=ht("enable-experimental-focus-wrap-without-sentinels"),P=ht("enable-focus-wrap-without-sentinels"),z=D||P;function V(e){s&&!1===s(e)||B(!1)}(0,h.useEffect)(()=>{I||sn(document.body,`${N}--body--with-modal-open`,!!L)},[L,N]),(0,h.useEffect)(()=>{if(!I)return()=>{sn(document.body,`${N}--body--with-modal-open`,!1)}},[]);const H=v()(`${N}--modal`,{"is-visible":A||M,[`${N}--modal--enable-presence`]:S?.autoEnablePresence,[`${N}--modal--danger`]:a,[`${N}--modal--slug`]:y,[`${N}--modal--decorator`]:i},r),F=v()(`${N}--modal-container`,g&&`${N}--modal-container--${g}`,l&&`${N}--modal-container--full-width`,o);let j;const q=h.Children.toArray(n).map(e=>or(e,Yt)?(j=e.props.label,(0,h.cloneElement)(e,{closeModal:V})):or(e,an)?(0,h.cloneElement)(e,{closeModal:V,inputref:T,danger:a}):e),W=!h.Children.toArray(q).some(e=>or(e,an));(0,h.useEffect)(()=>{if(!L)return;const e=e=>{Ct(e,Et)&&(e.preventDefault(),e.stopPropagation(),V(e))};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[L]),(0,h.useEffect)(()=>{I||A||L||!b||setTimeout(()=>{b.current?.focus()})},[I,A,L,b]),(0,h.useEffect)(()=>{const e=b?.current;return()=>{A&&e&&setTimeout(()=>{e.focus()})}},[A,b]),(0,h.useEffect)(()=>{if(!I){const e=e=>{const t=e||x.current;return(t?t.querySelector(a?`.${N}--btn--secondary`:p):null)||T&&T.current};L&&M&&(t=>{const n=e(t),r=t.querySelector(`.${N}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(x.current)}},[L,p,M]);const U=y??i,Z=or(U,rr)?(0,h.cloneElement)(U,{size:"sm"}):U,G=I?h.createElement(Bn,{open:L,focusAfterCloseRef:b,modal:!0,className:F,"aria-label":t||j,"aria-labelledby":e,"data-exiting":S?.isExiting||void 0},h.createElement("div",{ref:x,className:`${N}--modal-container-body`},y?Z:i?h.createElement("div",{className:`${N}--modal--inner__decorator`},Z):"",q)):h.createElement("div",{className:F,role:"dialog","aria-modal":"true","aria-label":t||j,"aria-labelledby":e},!z&&h.createElement("button",{type:"button",ref:R,className:`${N}--visually-hidden`},"Focus sentinel"),h.createElement("div",{ref:x,className:`${N}--modal-container-body`},y?Z:i?h.createElement("div",{className:`${N}--modal--inner__decorator`},Z):"",q),!z&&h.createElement("button",{type:"button",ref:_,className:`${N}--visually-hidden`},"Focus sentinel"));return h.createElement(Gt,f({},w,{level:0,role:"presentation",ref:O,"aria-hidden":!L,onBlur:function({target:e,relatedTarget:t}){if(!I&&!z&&L&&t&&e&&x.current){const{current:n}=x,{current:r}=R,{current:o}=_;$n({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:m?.filter(Boolean),prefix:N})}const n=document.querySelector(`.${N}--modal-content`);n&&n.classList.contains(`${N}--modal-scroll-content`)&&t&&n.contains(t)&&t.scrollIntoView({block:"center"})},onClick:On([w?.onClick,function(e){const{target:t}=e,n=$.current;(W&&!d||!W&&!1===d)&&t instanceof Node&&!_n(t,m,N)&&x.current&&!x.current.contains(t)&&!x.current.contains(n)&&V(e)}]),onMouseDown:On([w?.onMouseDown,function(e){const t=e.target;$.current=t}]),onKeyDown:function(e){I||z&&L&&Ct(e,yt)&&x.current&&Sn({containerNode:x.current,currentActiveNode:e.target,event:e}),c?.(e)},className:H,"data-exiting":S?.isExiting||void 0}),G)});function fr({className:e,children:t,id:n,...r}){const o=C(),a=v()(`${o}--label`,`${o}--label--no-margin`,e);return h.createElement(Ln,f({as:"label",htmlFor:n,className:a},r),t)}var pr,mr,hr,gr,br,vr,yr,wr,Er,Nr,xr;ur.propTypes={"aria-label":m().string,"aria-labelledby":m().string,children:m().node,className:m().string,containerClassName:m().string,danger:m().bool,decorator:m().node,isFullWidth:m().bool,launcherButtonRef:m().oneOfType([m().func,m().shape({current:m().any})]),onClose:m().func,onKeyDown:m().func,open:m().bool,preventCloseOnClickOutside:m().bool,selectorPrimaryFocus:m().string,selectorsFloatingMenus:m().arrayOf(m().string.isRequired),size:m().oneOf(["xs","sm","md","lg"]),slug:pt(m().node)},fr.propTypes={children:m().node,className:m().string,id:m().string};const Cr=h.forwardRef(function({children:e,size:t=16,...n},r){return h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},pr||(pr=h.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"})),mr||(mr=h.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"})),hr||(hr=h.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)}),Tr=h.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},gr||(gr=h.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"})),br||(br=h.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?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},vr||(vr=h.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),yr||(yr=h.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?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},wr||(wr=h.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"})),Er||(Er=h.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):h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Nr||(Nr=h.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"})),xr||(xr=h.createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),e)});var Rr,_r,$r,Sr;const Or=h.forwardRef(function({children:e,size:t=16,...n},r){return h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Rr||(Rr=h.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"})),_r||(_r=h.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)}),Ar=h.forwardRef(function({children:e,size:t=16,...n},r){return h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},$r||($r=h.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"})),Sr||(Sr=h.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 Lr({children:e,className:t,onClick:n,inline:r,...o}){const a=C(),i=v()(t,{[`${a}--actionable-notification__action-button`]:!0});return h.createElement(Ft,f({className:i,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function kr({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=Kt.bm,name:a,notificationType:i="toast",...l}){const s=C(),c=v()(n,{[`${s}--${i}-notification__close-button`]:i}),u=v()({[`${s}--${i}-notification__close-icon`]:i});return h.createElement("button",f({},l,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&h.createElement(o,{className:u,name:a}))}Lr.propTypes={children:m().node,className:m().string,inline:m().bool,onClick:m().func},kr.propTypes={"aria-label":m().string,ariaLabel:pt(m().string),className:m().string,name:m().string,notificationType:m().oneOf(["toast","inline","actionable"]),renderIcon:m().oneOfType([m().func,m().object]),type:m().string};const Mr={error:tn.x,success:Kt._j,warning:Tr,"warning-alt":Cr,info:Or,"info-square":Ar};function Br({iconDescription:e,kind:t,notificationType:n}){const r=C(),o=Mr[t];return o?h.createElement(o,{className:`${r}--${n}-notification__icon`,size:20},h.createElement("title",null,e)):null}function Ir({actionButtonLabel:e,"aria-label":t,ariaLabel:n,caption:r,children:o,role:a="alertdialog",onActionButtonClick:i,onClose:l,onCloseButtonClick:s=en,statusIconDescription:c,className:u,inline:d=!1,kind:p="error",lowContrast:m,hideCloseButton:g=!1,hasFocus:b=!0,closeOnEscape:y=!0,title:w,subtitle:N,...x}){const[T,R]=(0,h.useState)(!0),_=C(),$=At("actionable-notification"),S=At("actionable-notification-subtitle"),O=v()(u,{[`${_}--actionable-notification`]:!0,[`${_}--actionable-notification--toast`]:!d,[`${_}--actionable-notification--low-contrast`]:m,[`${_}--actionable-notification--${p}`]:p,[`${_}--actionable-notification--hide-close-button`]:g}),A=(0,h.useRef)(null),L=(0,h.useRef)(null),k=(0,h.useRef)(null),M=(0,h.useRef)(null),B=ht("enable-experimental-focus-wrap-without-sentinels"),I=ht("enable-focus-wrap-without-sentinels")||B;function D(e){s(e),l&&!1===l(e)||R(!1)}return E(()=>{if(b&&"alertdialog"===a){const e=document.querySelector(`button.${_}--actionable-notification__action-button`);e?.focus()}}),function(e,t,n=!0){const r=r=>{const o=e.current&&document.activeElement===e.current||e.current?.contains(document.activeElement);xt(r,[Et])&&n&&o&&t(r)};E(()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1)))}(M,D,y),T?h.createElement("div",f({},x,{ref:M,role:a,className:O,"aria-labelledby":w?$:S,onBlur:I?()=>{}:function({target:e,relatedTarget:t}){if(T&&t&&e&&"alertdialog"===a){const{current:n}=A,{current:r}=L,{current:o}=k;$n({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,prefix:_})}},onKeyDown:I?function(e){T&&Ct(e,yt)&&M.current&&"alertdialog"===a&&Sn({containerNode:M.current,currentActiveNode:e.target,event:e})}:()=>{}}),!I&&h.createElement("span",{ref:L,tabIndex:0,role:"link",className:`${_}--visually-hidden`},"Focus sentinel"),h.createElement("div",{ref:A,className:`${_}--actionable-notification__focus-wrapper`},h.createElement("div",{className:`${_}--actionable-notification__details`},h.createElement(Br,{notificationType:d?"inline":"toast",kind:p,iconDescription:c||`${p} icon`}),h.createElement("div",{className:`${_}--actionable-notification__text-wrapper`},h.createElement("div",{className:`${_}--actionable-notification__content`},w&&h.createElement(Ln,{as:"div",className:`${_}--actionable-notification__title`,id:$},w),N&&h.createElement(Ln,{as:"div",className:`${_}--actionable-notification__subtitle`,id:S},N),r&&h.createElement(Ln,{as:"div",className:`${_}--actionable-notification__caption`},r),o))),h.createElement("div",{className:`${_}--actionable-notification__button-wrapper`},e&&h.createElement(Lr,{onClick:i,inline:d},e),!g&&h.createElement(kr,{"aria-label":n||t,notificationType:"actionable",onClick:D}))),!I&&h.createElement("span",{ref:k,tabIndex:0,role:"link",className:`${_}--visually-hidden`},"Focus sentinel")):null}Br.propTypes={iconDescription:m().string.isRequired,kind:m().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:m().oneOf(["inline","toast"]).isRequired},m().string,pt(m().string),m().string,m().node,m().string,m().bool,m().oneOf(["error","info","info-square","success","warning","warning-alt"]),m().bool,m().func,m().func,m().oneOf(["alert","log","status"]),m().string,m().string,m().number,m().string,m().string,m().node,m().string,m().bool,m().oneOf(["error","info","info-square","success","warning","warning-alt"]),m().bool,m().func,m().func,m().oneOf(["alert","log","status"]),m().string,m().string,m().string,Ir.propTypes={actionButtonLabel:m().string,"aria-label":m().string,ariaLabel:pt(m().string),caption:m().string,children:m().node,className:m().string,closeOnEscape:m().bool,hasFocus:pt(m().bool),hideCloseButton:m().bool,inline:m().bool,kind:m().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:m().bool,onActionButtonClick:m().func,onClose:m().func,onCloseButtonClick:m().func,role:m().string,statusIconDescription:m().string,subtitle:m().node,title:m().string};const Dr={error:"warning",success:"info"};m().string,m().node,m().string,w(m().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],e=>Dr[e]),m().bool,m().func,m().string,m().node,m().string,m().string;const Pr=h.forwardRef((e,t)=>{const{className:n,decorator:r,disabled:o=!1,hideLabel:a,id:i,labelPosition:l="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:p,required:m,invalid:g=!1,invalidText:b,warn:y=!1,warnText:w,readOnly:E,...N}=e,x=C(),T=At("radio-button"),R=i||T,_=(({id:e,readOnly:t,disabled:n,invalid:r,invalidText:o,warn:a,warnText:i})=>{const l=C(),s={disabled:!t&&n,invalid:!t&&!n&&r,invalidId:`${e}-error-msg`,warn:!t&&!r&&!n&&a,warnId:`${e}-warn-msg`,validation:null,icon:null,helperId:`${e}-helper-text`};return s.invalid?(s.icon=Tr,s.validation=h.createElement(Ln,{as:"div",className:`${l}--form-requirement`,id:s.invalidId},o)):s.warn&&(s.icon=Cr,s.validation=h.createElement(Ln,{as:"div",className:`${l}--form-requirement`,id:s.warnId},i)),s})({id:R,readOnly:E,disabled:o,invalid:g,invalidText:b,warn:y,warnText:w}),$=v()(`${x}--radio-button__label-text`,{[`${x}--visually-hidden`]:a}),S=v()(n,`${x}--radio-button-wrapper`,{[`${x}--radio-button-wrapper--label-${l}`]:"right"!==l,[`${x}--radio-button-wrapper--slug`]:p,[`${x}--radio-button-wrapper--decorator`]:r,[`${x}--radio-button-wrapper--invalid`]:_.invalid,[`${x}--radio-button-wrapper--warning`]:_.warn}),O=(0,h.useRef)(null),A=p??r,L=or(A,rr)?(0,h.cloneElement)(A,{size:"inline"===A.props?.kind?"md":"mini"}):A;return h.createElement("div",{className:S},h.createElement("input",f({},N,{type:"radio",className:`${x}--radio-button`,onChange:function(e){u(d,c,e)},id:R,ref:ln(O,t),disabled:_.disabled,value:d,name:c,required:m,readOnly:E})),h.createElement("label",{htmlFor:R,className:`${x}--radio-button__label`},h.createElement("span",{className:`${x}--radio-button__appearance`}),s&&h.createElement(Ln,{className:$},s,p?L:r?h.createElement("div",{className:`${x}--radio-button-wrapper-inner--decorator`},L):"")),_.validation)});function zr(e){const{className:t,...n}=e,r=C();return h.createElement("div",f({className:v()(`${r}--radio-button-wrapper`,t)},n),h.createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),h.createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}Pr.displayName="RadioButton",Pr.propTypes={checked:m().bool,className:m().string,decorator:m().node,defaultChecked:m().bool,disabled:m().bool,hideLabel:m().bool,id:m().string,labelPosition:m().oneOf(["right","left"]),labelText:m().node.isRequired,name:m().string,onChange:m().func,onClick:m().func,required:m().bool,invalid:m().bool,invalidText:m().node,warn:m().bool,warnText:m().node,readOnly:m().bool,slug:pt(m().node),value:m().oneOfType([m().string,m().number])},zr.propTypes={className:m().string};const Vr=e=>h.createElement(Ln,f({as:"legend"},e));const Hr=h.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:p,onChange:m=()=>{},orientation:g="horizontal",readOnly:b,valueSelected:y,warn:w=!1,warnText:E,slug:N,required:x,...T}=e,R=C(),[_,$]=(0,h.useState)(y??a),S=(0,h.useRef)(y),O=At();function A(e,t,n){b||e!==_&&($(e),m(e,p,n))}(0,h.useEffect)(()=>{y!==S.current&&($(y),S.current=y)},[y]);const L=!b&&!i&&!s&&w,k=!s&&!i&&!w,M=v()(`${R}--form-item`,r),B=v()(`${R}--radio-button-group`,{[`${R}--radio-button-group--${g}`]:"vertical"===g,[`${R}--radio-button-group--label-${u}`]:u,[`${R}--radio-button-group--readonly`]:b,[`${R}--radio-button-group--invalid`]:!b&&!i&&s,[`${R}--radio-button-group--warning`]:L,[`${R}--radio-button-group--slug`]:N,[`${R}--radio-button-group--decorator`]:o}),I=v()(`${R}--form__helper-text`,{[`${R}--form__helper-text--disabled`]:i}),D=null!=l,P=D?`radio-button-group-helper-text-${O}`:void 0,z=D&&h.createElement("div",{id:P,className:I},l),V=(0,h.useRef)(null),H=N??o,F=or(H,rr)?(0,h.cloneElement)(H,{size:"mini",kind:"default"}):H;return h.createElement("div",{className:M,ref:ln(V,t)},h.createElement("fieldset",f({className:B,disabled:i,"data-invalid":!!s||void 0,"aria-describedby":k&&l?P:void 0},T),d&&h.createElement(Vr,{className:`${R}--label`},d,N?F:o?h.createElement("div",{className:`${R}--radio-button-group-inner--decorator`},F):""),h.Children.map(n,e=>{if(!e)return;const t={name:p,key:e.props.value,value:e.props.value,onChange:A,checked:e.props.value===_,required:x};return!_&&e.props.checked&&(t.checked=!0),h.cloneElement(e,t)})),h.createElement("div",{className:`${R}--radio-button__validation-msg`},!b&&!i&&s&&h.createElement(h.Fragment,null,h.createElement(Tr,{className:`${R}--radio-button__invalid-icon`}),h.createElement("div",{className:`${R}--form-requirement`},c)),L&&h.createElement(h.Fragment,null,h.createElement(Cr,{className:`${R}--radio-button__invalid-icon ${R}--radio-button__invalid-icon--warning`}),h.createElement("div",{className:`${R}--form-requirement`},E))),k&&z)});var Fr,jr;Hr.propTypes={children:m().node,className:m().string,decorator:m().node,defaultSelected:m().oneOfType([m().string,m().number]),disabled:m().bool,helperText:m().node,invalid:m().bool,invalidText:m().node,labelPosition:m().oneOf(["left","right"]),legendText:m().node,name:m().string.isRequired,onChange:m().func,orientation:m().oneOf(["horizontal","vertical"]),readOnly:m().bool,required:m().bool,slug:pt(m().node),valueSelected:m().oneOfType([m().string,m().number]),warn:m().bool,warnText:m().node},Hr.displayName="RadioButtonGroup";const qr=h.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Fr||(Fr=h.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):h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},jr||(jr=h.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)}),Wr=(0,h.createContext)({isFluid:!1}),Ur=e=>""!==e&&void 0!==e;var Zr;const Gr=h.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:p,placeholder:m="Search",renderIcon:g,role:b,size:y="md",type:w="search",value:E,...x},T)=>{const R=Ur(E)||Ur(r),_=C(),{isFluid:$}=(0,h.useContext)(Wr),S=(0,h.useRef)(null),O=N([T,S]),A=(0,h.useRef)(null),L=At("search-input"),k=i||L,M=`${k}-search`,[B,I]=(0,h.useState)(R||!1),[D,P]=(0,h.useState)(E),z=v()({[`${_}--search`]:!0,[`${_}--search--sm`]:"sm"===y,[`${_}--search--md`]:"md"===y,[`${_}--search--lg`]:"lg"===y,[`${_}--search--light`]:s,[`${_}--search--disabled`]:o,[`${_}--search--fluid`]:$},t),V=v()({[`${_}--search-close`]:!0,[`${_}--search-close--hidden`]:!B||!a});function H(){if(!E&&S.current&&(S.current.value=""),S.current){const e=Object.assign({},S.current,{value:""}),t={bubbles:!1,cancelable:!1,currentTarget:S.current,defaultPrevented:!1,eventPhase:0,isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,isTrusted:!1,nativeEvent:new Event("change"),persist:en,preventDefault:en,stopPropagation:en,target:e,timeStamp:0,type:"change"};c(t)}u(),I(!1),S.current?.focus()}E!==D&&(I(Ur(E)),P(E));const F=h.createElement("div",{"aria-labelledby":p?M:void 0,role:p?"button":void 0,className:`${_}--search-magnifier`,onClick:p,onKeyDown:function(e){(Ct(e,wt)||Ct(e,Nt))&&(e.stopPropagation(),p&&p(e))},tabIndex:p&&!a?0:-1,ref:A,"aria-expanded":!(!p||!a)||!(p&&!a)&&void 0,"aria-controls":p?k:void 0},h.createElement(Kr,{icon:g})),j=p&&!a?h.createElement(It,{className:`${_}--search-tooltip ${_}--search-magnifier-tooltip`,align:"top",label:"Search"},F):F;return h.createElement("div",{role:"search","aria-label":m,className:z},j,h.createElement("label",{id:M,htmlFor:k,className:`${_}--label`},l),h.createElement("input",f({autoComplete:e,className:`${_}--search-input`,defaultValue:r,disabled:o,role:b,ref:O,id:k,onChange:On([c,function(e){I(""!==e.target.value)}]),onKeyDown:On([d,function(e){Ct(e,Et)&&(e.stopPropagation(),S.current?.value?H():p&&a&&A.current?.focus())}]),placeholder:m,type:w,value:E,tabIndex:p&&!a?-1:void 0},x)),h.createElement("button",{"aria-label":n,className:V,disabled:o,onClick:H,title:n,type:"button"},Zr||(Zr=h.createElement(Kt.bm,null))))});function Kr({icon:e}){const t=C();return e?h.createElement(e,{className:`${t}--search-magnifier-icon`}):h.createElement(qr,{className:`${t}--search-magnifier-icon`})}Gr.displayName="Search",Gr.propTypes={autoComplete:m().string,className:m().string,closeButtonLabelText:m().string,defaultValue:m().oneOfType([m().string,m().number]),disabled:m().bool,id:m().string,isExpanded:m().bool,labelText:m().node.isRequired,light:pt(m().bool),onChange:m().func,onClear:m().func,onExpand:m().func,onKeyDown:m().func,placeholder:m().string,renderIcon:m().oneOfType([m().func,m().object]),role:pt(m().string),size:m().oneOf(["sm","md","lg"]),type:m().string,value:m().oneOfType([m().string,m().number])},Kr.propTypes={icon:m().oneOfType([m().func,m().object])};const Yr=({className:e,...t})=>{const n=C(),r=v()(e,{[`${n}--icon--skeleton`]:!0});return h.createElement("div",f({className:r},t))};Yr.propTypes={className:m().string};const Xr=({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,p]=(0,h.useState)(a),m=C(),g=function(e){const t=At();return e??t}(i);return h.createElement(bt,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{p(!1)},onMouseEnter:()=>{l&&p(!0)},onFocus:()=>{p(!0)},open:d},h.createElement("button",f({},u,{className:v()(`${m}--definition-term`,c),"aria-controls":g,"aria-describedby":g,"aria-expanded":d,onBlur:()=>{p(!1)},onMouseDown:e=>{0===e.button&&p(!d)},onKeyDown:function(e){d&&Ct(e,Et)&&(e.stopPropagation(),p(!1))},type:"button"}),r),h.createElement(vt,{className:`${m}--definition-tooltip`,id:g},s??o))};var Jr;Xr.propTypes={align:m().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:m().bool,children:m().node.isRequired,className:m().string,defaultOpen:m().bool,definition:m().node.isRequired,id:m().string,openOnHover:m().bool,tooltipText:pt(m().node),triggerClassName:m().string};const Qr={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"},eo=h.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:p,...m},g)=>{const b=C(),y=(0,h.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([g,y]),x=At(),T=r??`tag-${x}`,[R,_]=(0,h.useState)(!1);E(()=>{const e=y.current?.getElementsByClassName(`${b}--tag__label`)[0];_((e=>!!e&&e?.offsetWidth<e?.scrollWidth)(e))},[b,y]);const $=[`${b}--tag--selectable`,`${b}--tag--filter`,`${b}--tag--operational`].some(e=>t?.includes(e)),S=v()(`${b}--tag`,t,{[`${b}--tag--disabled`]:s,[`${b}--tag--filter`]:a,[`${b}--tag--${u}`]:u,[`${b}--layout--size-${u}`]:u,[`${b}--tag--${o}`]:o,[`${b}--tag--interactive`]:m.onClick&&!$&&R}),O=void 0!==o&&o in Object.keys(Qr)?Qr[o]:"",A=e=>{c&&(e.stopPropagation(),c(e))},L=p??n,k=or(L,rr)&&!$?(0,h.cloneElement)(L,{size:"sm",kind:"inline"}):null;if(a){const t=d??"div";return h.createElement(t,f({className:S,id:T},m),i&&"sm"!==u?h.createElement("div",{className:`${b}--tag__custom-icon`},h.createElement(i,null)):"",h.createElement(Ln,{title:"string"==typeof e?e:void 0,className:`${b}--tag__label`},null!=e?e:O),k,h.createElement("button",{type:"button",className:`${b}--tag__close-icon`,onClick:A,disabled:s,"aria-label":l,title:l},Jr||(Jr=h.createElement(Kt.bm,null))))}const M=d??(m.onClick||t?.includes(`${b}--tag--operational`)?"button":"div"),B=v()({[`${b}--tag__label`]:!$});return h.createElement(M,f({ref:w,disabled:s,className:S,id:T,type:"button"===M?"button":void 0},m),i&&"sm"!==u?h.createElement("div",{className:`${b}--tag__custom-icon`},h.createElement(i,null)):"",R&&!$?h.createElement(Xr,{openOnHover:!1,definition:null!=e?e:O,className:`${b}--definition--tooltip--tag`},h.createElement(Ln,{title:null!=e&&"string"==typeof e?e:O,className:B},null!=e?e:O)):h.createElement(Ln,{title:null!=e&&"string"==typeof e?e:O,className:B},null!=e?e:O),p?k:n?h.createElement("div",{className:`${b}--tag__decorator`},k):"")}),to=eo;var no,ro,oo,ao;to.propTypes={as:m().elementType,children:m().node,className:m().string,decorator:m().node,disabled:m().bool,filter:pt(m().bool),id:m().string,onClose:pt(m().func),renderIcon:m().oneOfType([m().func,m().object]),size:m().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:pt(m().node),title:pt(m().string),type:m().oneOf(Object.keys(Qr))};const io=h.forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},no||(no=h.createElement("path",{d:"M9.3 3.7 13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),e):20===t||"20"===t||"20px"===t?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},ro||(ro=h.createElement("path",{d:"M11.8 2.8 10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),e):24===t||"24"===t||"24px"===t?h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},oo||(oo=h.createElement("path",{d:"M14 4 12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),e):h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ao||(ao=h.createElement("path",{d:"M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),e)});var lo,so,co;const uo=h.forwardRef(function({children:e,size:t=16,...n},r){return h.createElement(Jn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},lo||(lo=h.createElement("path",{d:"M19,21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4Z"})),so||(so=h.createElement("path",{d:"M15.5005,21h2l-3.5005-11h-3l-3.4966,11h1.9988l.6018-2h4.7781l.6184,2ZM10.7058,17l1.6284-5.4111.2559-.0024,1.6736,5.4136h-3.5579Z"})),co||(co=h.createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)}),fo=h.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 p=C(),m={className:v()(`${p}--link`,n,{[`${p}--link--disabled`]:o,[`${p}--link--inline`]:a,[`${p}--link--visited`]:i,[`${p}--link--${s}`]:s}),rel:"_blank"===c?"noopener":void 0,target:c};o?(m.role="link",m["aria-disabled"]=!0):m.href=r;const g=e??"a";return h.createElement(g,f({ref:d},m,u,{onClick:e=>{o?(e.preventDefault(),e.stopPropagation()):u.onClick&&u.onClick(e)}}),t,!a&&l&&h.createElement("span",{className:`${p}--link__icon`},h.createElement(l,null)))}),po=fo;var mo,ho,go,bo;po.displayName="Link",po.propTypes={as:m().elementType,children:m().node,className:m().string,disabled:m().bool,href:m().string,inline:m().bool,renderIcon:m().oneOfType([m().func,m().object]),size:m().oneOf(["sm","md","lg"]),visited:m().bool};const vo=h.forwardRef(({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:a=!1,...i},l)=>{const s=C(),c=v()(`${s}--tile`,{[`${s}--tile--light`]:r,[`${s}--tile--slug`]:o,[`${s}--tile--slug-rounded`]:o&&a,[`${s}--tile--decorator`]:n,[`${s}--tile--decorator-rounded`]:n&&a},t);return h.createElement("div",f({className:c,ref:l},i),e,o,n&&h.createElement("div",{className:`${s}--tile--inner-decorator`},n))});vo.displayName="Tile",vo.propTypes={children:m().node,className:m().string,decorator:m().node,hasRoundedCorners:m().bool,light:pt(m().bool),slug:pt(m().node)};const yo=h.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,...p},m)=>{const g=C(),b=v()(`${g}--tile`,`${g}--tile--clickable`,{[`${g}--tile--is-clicked`]:n,[`${g}--tile--light`]:i,[`${g}--tile--slug`]:d,[`${g}--tile--slug-rounded`]:d&&u,[`${g}--tile--decorator`]:r,[`${g}--tile--decorator-rounded`]:r&&u},t),[y,w]=(0,h.useState)(n),E=ht("enable-v12-tile-default-icons");E&&(c||(c=io),o&&(c=tn.$D));const N=v()({[`${g}--tile--icon`]:!E||E&&!o,[`${g}--tile--disabled-icon`]:E&&o});return h.createElement(po,f({className:b,href:a,tabIndex:a||o?void 0:0,onClick:o?void 0:function(e){e?.persist?.(),w(!y),l(e)},onKeyDown:function(e){e?.persist?.(),!a&&xt(e,[wt,Nt])&&(e.preventDefault(),w(!y),l(e)),s(e)},ref:m,disabled:o},p),d||r?h.createElement("div",{className:`${g}--tile-content`},e):e,(!0===d||!0===r)&&h.createElement(uo,{size:"24",className:`${g}--tile--ai-label-icon`}),h.isValidElement(r)&&h.createElement("div",{className:`${g}--tile--inner-decorator`},r),c&&h.createElement(c,{className:N,"aria-hidden":"true"}))});yo.displayName="ClickableTile",yo.propTypes={children:m().node,className:m().string,clicked:m().bool,decorator:m().oneOfType([m().bool,m().node]),disabled:m().bool,hasRoundedCorners:m().bool,href:m().string,light:pt(m().bool),onClick:m().func,onKeyDown:m().func,rel:m().string,renderIcon:m().oneOfType([m().func,m().object])},h.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:p,hasRoundedCorners:m,...g},b)=>{const y=C(),w=i,E=s,[N,x]=(0,h.useState)(c);(0,h.useEffect)(()=>{x(c)},[c]);const T=v()(`${y}--tile`,`${y}--tile--selectable`,{[`${y}--tile--is-selected`]:N,[`${y}--tile--light`]:a,[`${y}--tile--disabled`]:r,[`${y}--tile--slug`]:p,[`${y}--tile--slug-rounded`]:p&&m,[`${y}--tile--decorator`]:n,[`${y}--tile--decorator-rounded`]:n&&m},t),R=(0,h.useCallback)((e,t)=>{x(t),l(e,t,o)},[l,o]),_=(0,h.useRef)(null),$=p??n,S=or($,rr)?(0,h.cloneElement)($,{size:"xs",ref:_}):$;return h.createElement("div",f({className:T,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),S&&_.current&&e.target instanceof Node&&_.current.contains(e.target)||(R(e,!N),w(e))},role:"checkbox","aria-checked":N,onKeyDown:r?void 0:function(e){e?.persist?.(),xt(e,[wt,Nt])&&(e.preventDefault(),R(e,!N)),E(e)},tabIndex:r?void 0:u,ref:b,id:o,title:d},g),h.createElement("span",{className:`${y}--tile__checkmark ${y}--tile__checkmark--persistent`},N?mo||(mo=h.createElement(Kt.NW,null)):ho||(ho=h.createElement(Kt.Sc,null))),h.createElement(Ln,{as:"label",htmlFor:o,className:`${y}--tile-content`},e),p?S:n?h.createElement("div",{className:`${y}--tile--inner-decorator`},S):"")}).propTypes={children:m().node,className:m().string,decorator:m().node,disabled:m().bool,hasRoundedCorners:m().bool,id:m().string,light:pt(m().bool),name:pt(m().string),onChange:m().func,onClick:m().func,onKeyDown:m().func,selected:m().bool,slug:pt(m().node),tabIndex:m().number,title:m().string,value:pt(m().oneOfType([m().string,m().number]))};const wo=(0,h.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:p,light:m,slug:g,hasRoundedCorners:b,...y},w)=>{const[x,T]=(0,h.useState)(0),[R,_]=(0,h.useState)(0),[$,S]=(0,h.useState)(o),[O,A]=(0,h.useState)(!0),L=(0,h.useRef)(null),k=(0,h.useRef)(null),M=(0,h.useRef)(null),B=(0,h.useRef)(null),I=(0,h.useRef)(null),D=N([w,I]),P=C();(0,h.useEffect)(()=>{S(o)},[o]);const z=()=>{S(e=>!e)},V=e=>{e.target!==I.current&&e.target!==M.current&&xt(e,[wt,Nt])&&e.preventDefault()},H=v()(`${P}--tile`,`${P}--tile--expandable`,{[`${P}--tile--is-expanded`]:$,[`${P}--tile--light`]:m},t),F=v()(H,`${P}--tile--expandable--interactive`,{[`${P}--tile--slug`]:g,[`${P}--tile--slug-rounded`]:g&&b,[`${P}--tile--decorator`]:r,[`${P}--tile--decorator-rounded`]:r&&b}),j=v()(`${P}--tile__chevron`,`${P}--tile__chevron--interactive`),q=h.Children.toArray(n);E(()=>{if(!I.current||!L.current)return;const e=window.getComputedStyle(I.current),t=parseInt(e.getPropertyValue("padding-top"),10)||0,n=parseInt(e.getPropertyValue("padding-bottom"),10)||0;_(t+n),T(L.current.scrollHeight)},[]),E(()=>{if(!L.current||!k.current)return;const e=Boolean(Lt(L.current))||Boolean(kt(L.current))||Boolean(Lt(k.current))||Boolean(kt(k.current))||Boolean(g||r);A(e)},[g,r,n]),E(()=>{if(!I.current)return;if($)return void(I.current.style.maxHeight="");const e=x||L.current?.scrollHeight||0,t=a>0?a:e,n=i>0?i:R;I.current.style.maxHeight=`${t+n}px`},[$,a,i,x,R]),(0,h.useEffect)(()=>{if(!L.current)return;const e=new ResizeObserver(()=>{L.current&&T(L.current.scrollHeight)});return e.observe(L.current),()=>e.disconnect()},[]);const W=At(O?"expandable-tile-interactive":"expandable-tile"),U=g??r,Z=or(U,rr)?(0,h.cloneElement)(U,{size:"xs"}):U;return O?h.createElement("div",f({ref:D,className:F},y),h.createElement("div",{ref:B},g?Z:r?h.createElement("div",{className:`${P}--tile--inner-decorator`},Z):"",h.createElement("div",{ref:L,className:`${P}--tile-content`},q[0]),h.createElement("button",{type:"button","aria-expanded":$,"aria-controls":W,onKeyUp:On([s,V]),onClick:On([l,z]),"aria-label":$?u:c,ref:M,className:j},go||(go=h.createElement(Kt.yQ,null))),h.createElement("div",{ref:k,className:`${P}--tile-content`,id:W},q[1]))):h.createElement("button",f({type:"button",ref:D,className:H,"aria-controls":W,"aria-expanded":$,title:$?u:c},y,{onKeyUp:On([s,V]),onClick:On([l,z]),tabIndex:e}),h.createElement("div",{ref:B},h.createElement("div",{ref:L,className:`${P}--tile-content`},q[0]),h.createElement("div",{className:`${P}--tile__chevron`},h.createElement("span",null,$?p:d),bo||(bo=h.createElement(Kt.yQ,null))),h.createElement("div",{ref:k,id:W,className:`${P}--tile-content`},q[1])))});wo.propTypes={children:m().node,className:m().string,decorator:m().node,expanded:m().bool,hasRoundedCorners:m().bool,id:m().string,light:pt(m().bool),onClick:m().func,onKeyUp:m().func,slug:pt(m().node),tabIndex:m().number,tileCollapsedIconText:m().string,tileCollapsedLabel:m().string,tileExpandedIconText:m().string,tileExpandedLabel:m().string},wo.displayName="ExpandableTile";const Eo=h.forwardRef(({children:e},t)=>{const n=C();return h.createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)});Eo.propTypes={children:m().node},Eo.displayName="TileAboveTheFoldContent";const No=h.forwardRef(({children:e},t)=>{const n=C();return h.createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)});No.propTypes={children:m().node},No.displayName="TileBelowTheFoldContent";const xo=({className:e,children:t,...n})=>{const r=C(),o=v()(`${r}--header`,e);return h.createElement("header",f({},n,{className:o}),t)};xo.propTypes={"aria-label":m().string,"aria-labelledby":m().string,className:m().string};const Co=(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":m().string,"aria-labelledby":m().string}),To=h.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=C(),p=v()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:l}),m={"aria-label":e,"aria-labelledby":t};return h.createElement(Ft,f({},c,m,{className:p,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:s,tooltipDropShadow:i,tooltipHighContrast:a,ref:u}),n)});To.propTypes={...Co,children:m().node.isRequired,className:m().string,isActive:m().bool,onClick:m().func,tooltipAlignment:m().oneOf(["start","center","end"]),tooltipDropShadow:m().bool,tooltipHighContrast:m().bool},To.displayName="HeaderGlobalAction";const Ro=(({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=C(),a=v()("function"==typeof t?t(o):t,e);return h.createElement(n,{...r,className:a||void 0})}return r.displayName=e,r.propTypes={className:m().string},r})({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var _o,$o,So=n(810);function Oo({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:a,isCollapsible:i,...l}){const s=C(),c=v()({..."string"==typeof n&&{[n]:!!n},[`${s}--header__action`]:!0,[`${s}--header__menu-trigger`]:!0,[`${s}--header__action--active`]:a,[`${s}--header__menu-toggle`]:!0,[`${s}--header__menu-toggle__hidden`]:!i}),u=r||_o||(_o=h.createElement(So.W1,{size:20})),d=o||$o||($o=h.createElement(Kt.bm,{size:20}));return h.createElement("button",f({},l,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),a?d:u)}Oo.propTypes={...Co,className:m().string,isActive:m().bool,isCollapsible:m().bool,onClick:m().func};const Ao=(0,h.forwardRef)((e,t)=>{const{element:n,as:r,isSideNavExpanded:o,...a}=e,i=r??n??"a";return h.createElement(i,f({ref:t},a))}),Lo={as:m().elementType,element:pt(m().elementType),isSideNavExpanded:m().bool};function ko({children:e,className:t,prefix:n="IBM",...r}){const o=C(),a=v()(`${o}--header__name`,t);return h.createElement(Ao,f({},r,{className:a}),n&&h.createElement(h.Fragment,null,h.createElement("span",{className:`${o}--header__name--prefix`},n)," "),h.createElement("span",null,e))}Ao.displayName="Link",Ao.propTypes=Lo,ko.propTypes={...Lo,children:m().node.isRequired,className:m().string,href:m().string,prefix:m().string};const Mo=(0,h.createContext)({}),Bo=({children:e,isRail:t,isSideNavExpanded:n})=>h.createElement(Mo.Provider,{value:{isRail:t,isSideNavExpanded:n}},e);function Io(e){return"".concat(e/16,"rem")}Io(320),Io(672),Io(16);var Do={width:Io(1056),columns:16,margin:Io(16)};Io(1312),Io(16),Io(1584),Io(24);function Po(e){return Io(8*e)}Po(.25),Po(.5),Po(1),Po(1.5),Po(2),Po(3),Po(4),Po(5),Po(6),Po(8),Po(10),Po(12),Po(20),Po(2),Po(3),Po(4),Po(6),Po(8),Po(12),Po(20),Po(3),Po(4),Po(5),Po(6),Po(8),Io(24),Io(32),Io(40),Io(48),Io(64),Io(80);const zo=(0,h.forwardRef)((e,t)=>{const{expanded:n,defaultExpanded:r=!1,isChildOfHeader:o=!0,"aria-label":a,"aria-labelledby":i,children:l,onToggle:s,className:c,href:u,isFixedNav:d=!1,isRail:p,isPersistent:m=!0,addFocusListeners:g=!0,addMouseListeners:b=!0,onOverlayClick:y,onSideNavBlur:w,enterDelayMs:E=100,...x}=e,T=C(),{current:_}=(0,h.useRef)(void 0!==n),[$,S]=Tt(r),[O,A]=Tt(r),L=_?n:$,k=(0,h.useRef)(null),M=N([k,t]),B=(e,t=!L)=>{_||S(t,E),s&&s(e,t),(_||p)&&A(t,E)},I={"aria-label":a,"aria-labelledby":i},D=v()(c,{[`${T}--side-nav`]:!0,[`${T}--side-nav--expanded`]:L||O,[`${T}--side-nav--collapsed`]:!L&&d,[`${T}--side-nav--rail`]:p,[`${T}--side-nav--ux`]:o,[`${T}--side-nav--hidden`]:!m}),P=v()({[`${T}--side-nav__overlay`]:!0,[`${T}--side-nav__overlay-active`]:L||O}),z=_&&O||L,V={};g&&(V.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&p&&B(e,!0)},V.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||B(e,!1),e.currentTarget.contains(e.relatedTarget)||!L||d||w&&w()},V.onKeyDown=e=>{Ct(e,Et)&&(B(e,!1),u&&(window.location.href=u))}),b&&p&&(V.onMouseEnter=()=>{B(!0,!0)},V.onMouseLeave=()=>{S(!1),A(!1),B(!1,!1)},V.onClick=()=>{S(!0),A(!0),B(!0,!0)}),R("keydown",e=>{const t=document.activeElement;Ct(e,yt)&&L&&!d&&k.current&&t?.classList.contains(`${T}--header__menu-toggle`)&&!t.closest("nav")&&k.current.focus()});const H=((e,t=!1)=>{const[n,r]=(0,h.useState)(t);return(0,h.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: ${Do.width})`),F=!p&&!(L||H);return(0,h.useEffect)(()=>{const e=k.current;e&&(F?e.setAttribute("inert",""):e.removeAttribute("inert"))},[F]),h.createElement(Bo,{isRail:p,isSideNavExpanded:z},d?null:h.createElement("div",{className:P,onClick:y}),h.createElement("nav",f({tabIndex:-1,ref:M,className:`${T}--side-nav__navigation ${D}`},I,V,x),l))});zo.displayName="SideNav",zo.propTypes={...Co,addFocusListeners:m().bool,addMouseListeners:m().bool,className:m().string,defaultExpanded:m().bool,enterDelayMs:m().number,expanded:m().bool,href:m().string,isChildOfHeader:m().bool,isFixedNav:m().bool,isPersistent:m().bool,isRail:m().bool,onOverlayClick:m().func,onSideNavBlur:m().func,onToggle:m().func}},159(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},2996(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),c="/*# ".concat(s," */"),u=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}},2694(e,t,n){"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1020(e,t,n){"use strict";var r=n(6072);Symbol.for("react.element"),Symbol.for("react.fragment"),Object.prototype.hasOwnProperty,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},4848(e,t,n){"use strict";n(1020)},5072(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=s}}},7659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},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:()=>j,Es:()=>$,Ht:()=>X,PP:()=>P,Tn:()=>s,X3:()=>R,ZH:()=>a,aw:()=>Y,b0:()=>l,bZ:()=>p,bu:()=>M,dO:()=>T,lK:()=>A,lg:()=>k,mF:()=>B,mf:()=>_,q9:()=>q,qm:()=>K,qv:()=>i,r9:()=>y,rL:()=>c,sb:()=>V});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},p=new WeakMap,m={},h={},g="undefined",b=typeof window!=g,v=typeof document!=g,y=(e,t)=>{const n=p.get(e);return[()=>!l(t)&&e.get(t)||m,r=>{if(!l(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,c(o,r),o||m)}},n[6],()=>!l(t)&&t in h?h[t]:!l(t)&&e.get(t)||m]};let w=!0;const[E,N]=b&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],x={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),N("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return E("online",t),E("offline",n),()=>{N("online",t),N("offline",n)}}},T=!r.useId,R=!b||"Deno"in window,_=e=>b&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),$=R?r.useEffect:r.useLayoutEffect,S="undefined"!=typeof navigator&&navigator.connection,O=!R&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),A=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 L=0;const k=()=>++L;var M={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function B(...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 m=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]=A(n);if(!o)return;const[c,h]=y(t,o),[g,b,v,w]=p.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 N,x=r;const C=k();b[o]=[C,0];const T=!l(f),R=c(),_=R.data,$=R._c,S=l($)?_:$;if(T&&(f=s(f)?f(S,_):f,h({data:f,_c:S})),s(x))try{x=x(S)}catch(e){N=e}if(x&&s(x.then)){if(x=await x.catch(e=>{N=e}),C!==b[o][0]){if(N)throw N;return x}N&&T&&(e=>"function"==typeof d?d(e):!1!==d)(N)&&(u=!0,h({data:S,_c:a}))}if(u&&!N)if(s(u)){const e=u(x,S);h({data:e,error:a,_c:a})}else h({data:x,error:a,_c:a});if(b[o][1]=k(),Promise.resolve(E()).then(()=>{h({_c:a})}),!N)return x;if(m)throw N}}const I=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},D=(e,t)=>{if(!p.has(e)){const n=c(C,t),r={},i=B.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(!p.has(e)&&(p.set(e,[r,{},{},{},i,d,u]),!R)){const t=n.initFocus(setTimeout.bind(a,I.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,I.bind(a,r,1)));l=()=>{t&&t(),o&&o(),p.delete(e)}}};return f(),[e,i,f,l]}return[e,p.get(e)[4]]},[P,z]=D(new Map),V=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:O?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:O?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:P,mutate:z,fallback:{}},x),H=(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},F=(0,r.createContext)({}),j=e=>{const{value:t}=e,n=(0,r.useContext)(F),o=s(t),i=(0,r.useMemo)(()=>o?t(n):t,[o,n,t]),l=(0,r.useMemo)(()=>o?i:H(n,i),[o,n,i]),u=i&&i.provider,d=(0,r.useRef)(a);u&&!d.current&&(d.current=D(u(l.cache||P),i));const f=d.current;return f&&(l.cache=f[0],l.mutate=f[1]),$(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,r.createElement)(F.Provider,c(e,{value:l}))},q="$inf$",W=b&&window.__SWR_DEVTOOLS_USE__,U=W?window.__SWR_DEVTOOLS_USE__:[],Z=e=>s(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=U.concat(e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=A(t),[,,,o]=p.get(P);if(r.startsWith(q))return n(...e);const a=o[r];return l(a)?n(...e):(delete o[r],a)}),r)),K=e=>function(...t){const n=c(V,(0,r.useContext)(F)),[o,a,i]=Z(t),l=H(n,i);let s=e;const{use:u}=l,d=(u||[]).concat(G);for(let e=d.length;e--;)s=d[e](s);return s(o,a||l.fetcher||null,l)},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())}},X=(e,t)=>(...n)=>{const[r,o,a]=Z(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});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:p,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=a.bZ.get(s),[N,x]=(0,a.lK)(e),C=(0,r.useRef)(!1),T=(0,r.useRef)(!1),R=(0,r.useRef)(N),_=(0,r.useRef)(t),$=(0,r.useRef)(n),S=()=>$.current,O=()=>S().isVisible()&&S().isOnline(),[A,L,k,M]=(0,a.r9)(s,N),B=(0,r.useRef)({}).current,I=(0,a.b0)(d)?n.fallback[N]:d,D=(e,t)=>{for(const n in B){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(U,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)(()=>{const e=!!N&&!!t&&((0,a.b0)(f)?!S().isPaused()&&!u&&(!!(0,a.b0)(p)||p):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=A(),o=M(),i=n(r),l=r===o?i:n(o);let s=i;return[()=>{const e=n(A());return D(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]},[s,N]),z=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>k(N,(t,n)=>{D(n,t)||e()}),[s,N]),P[0],P[1]),V=!C.current,H=v[N]&&v[N].length>0,F=z.data,j=(0,a.b0)(F)?I:F,q=z.error,W=(0,r.useRef)(j),U=b?(0,a.b0)(F)?W.current:F:j,Z=!(H&&!(0,a.b0)(q))&&(V&&!(0,a.b0)(f)?f:!S().isPaused()&&(u?!(0,a.b0)(j)&&p:(0,a.b0)(j)||p)),G=!!(N&&t&&V&&Z),K=(0,a.b0)(z.isValidating)?G:z.isValidating,Y=(0,a.b0)(z.isLoading)?G:z.isLoading,X=(0,r.useCallback)(async e=>{const t=_.current;if(!N||!t||T.current||S().isPaused())return!1;let r,o,i=!0;const l=e||{},s=!w[N]||!l.dedupe,u=()=>a.dO?!T.current&&N===R.current&&C.current:N===R.current,d={isValidating:!1,isLoading:!1},f=()=>{L(d)},p=()=>{const e=w[N];e&&e[1]===o&&delete w[N]},m={isValidating:!0};(0,a.b0)(A().data)&&(m.isLoading=!0);try{if(s&&(L(m),n.loadingTimeout&&(0,a.b0)(A().data)&&setTimeout(()=>{i&&u()&&S().onLoadingSlow(N,n)},n.loadingTimeout),w[N]=[t(x),(0,a.lg)()]),[r,o]=w[N],r=await r,s&&setTimeout(p,n.dedupingInterval),!w[N]||w[N][1]!==o)return s&&u()&&S().onDiscarded(N),!1;d.error=a.ZH;const e=y[N];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&S().onDiscarded(N),!1;const l=A().data;d.data=c(l,r)?l:r,s&&u()&&S().onSuccess(r,N,n)}catch(e){p();const t=S(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,N,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(S().revalidateOnFocus&&S().revalidateOnReconnect&&!O()||t.onErrorRetry(e,N,t,e=>{const t=v[N];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return i=!1,f(),!0},[N,s]),J=(0,r.useCallback)((...e)=>(0,a.mF)(s,R.current,...e),[]);if((0,a.Es)(()=>{_.current=t,$.current=n,(0,a.b0)(F)||(W.current=F)}),(0,a.Es)(()=>{if(!N)return;const e=X.bind(a.ZH,l);let t=0;const n=(0,a.aw)(N,v,(n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();S().revalidateOnFocus&&n>t&&O()&&(t=n+S().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)S().revalidateOnReconnect&&O()&&e();else{if(n==a.bu.MUTATE_EVENT)return X();if(n==a.bu.ERROR_REVALIDATE_EVENT)return X(r)}});return T.current=!1,R.current=N,C.current=!0,L({_k:x}),Z&&((0,a.b0)(j)||a.X3?e():(0,a.mf)(e)),()=>{T.current=!0,n()}},[N]),(0,a.Es)(()=>{let e;function t(){const t=(0,a.Tn)(m)?m(A().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){A().error||!h&&!S().isVisible()||!g&&!S().isOnline()?t():X(l).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,h,g,N]),(0,r.useDebugValue)(U),u&&(0,a.b0)(j)&&N){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");_.current=t,$.current=n,T.current=!1;const e=E[N];if(!(0,a.b0)(e)){const t=J(e);i(t)}if(!(0,a.b0)(q))throw q;{const e=X(l);(0,a.b0)(U)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:J,get data(){return B.data=!0,U},get error(){return B.error=!0,q},get isValidating(){return B.isValidating=!0,K},get isLoading(){return B.isLoading=!0,Y}}})}}]);
|
|
File without changes
|