@openmrs/esm-patient-programs-app 9.2.3-pre.7144 → 9.2.3-pre.7151

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/3083.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 3083.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[3083],{9609:(e,t,n)=>{"use strict";n.d(t,{nD3:()=>_,AsP:()=>Te,$nd:()=>Sn,Te$:()=>kn,bQt:()=>$l,OOb:()=>Sr,lVW:()=>kr,gE_:()=>Cr,lRv:()=>Nr,OuH:()=>Wn,jeF:()=>Yr,Wdr:()=>Rn,cwr:()=>wr,jlY:()=>Kn,rQ0:()=>On,obU:()=>Co,XSD:()=>No,dKS:()=>Vo,l6P:()=>Po,ebT:()=>Mo,BJc:()=>Qo,XIK:()=>Pa,BFY:()=>Ha,nA6:()=>Ua,K3K:()=>Wa,ndF:()=>Ya,A0N:()=>tl,Hjg:()=>nl,FAs:()=>ga});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?r.enableV12TileRadioIcons=!0:r.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?r.enableTreeviewControllable=!0:r.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?r.enableV12StructuredListVisibleIcons=!0:r.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableExperimentalFocusWrapWithoutSentinels=!0:r.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?r.enableV12DynamicFloatingStyles=!0:r.enableV12DynamicFloatingStyles=!1}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableV12DynamicFloatingStyles=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:r.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:r.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:r.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:r.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:r.enableV12DynamicFloatingStyles}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function c(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var u=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))},t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=c(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=i(t.value,2),o=r[0],a=r[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),d=new u(void 0),f=0;f<o.length;f++){var p=o[f];d.add(p.name,p.enabled)}function h(e,t,n){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}!function(){d.merge.apply(d,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var g=n(3373),b=n.n(g),v=n(1343),y=n.t(v,2),w=n.n(v);const E=w().createContext("cds");function x(){return w().useContext(E)}var S=n(9067),k=n.n(S);const C=(0,v.createContext)({disabled:!1}),N=e=>{let{disabled:t,children:n}=e;return w().createElement(C.Provider,{value:{disabled:t}},n)};function _(e){let{align:t="end",children:n,className:r,disabled:o=!1,isFlush:a=!1,ordered:l=!1,size:i,...s}=e;const c=x(),u=b()(`${c}--accordion`,r,{[`${c}--accordion--${t}`]:t,[`${c}--accordion--${i}`]:i,[`${c}--layout--size-${i}`]:i,[`${c}--accordion--flush`]:a&&"start"!==t}),d=l?"ol":"ul";return w().createElement(N,{disabled:o},w().createElement(d,m({className:u},s),n))}function T(e,t,n){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(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(t.includes(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],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}_.propTypes={align:k().oneOf(["start","end"]),children:k().node,className:k().string,disabled:k().bool,isFlush:k().bool,ordered:k().bool,size:k().oneOf(["sm","md","lg"])};var $=["width","height","viewBox"],L=["tabindex"],I={focusable:"false",preserveAspectRatio:"xMidYMid meet"};const z=w().forwardRef((function(e,t){let{className:n,children:r,tabIndex:o,xmlns:a="http://www.w3.org/2000/svg",preserveAspectRatio:l="xMidYMid meet",...i}=e;const{tabindex:s,...c}=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,a=O(e,$),l=a.tabindex,i=O(a,L),s=R(R(R({},I),i),{},{width:t,height:n,viewBox:o});return s["aria-label"]||s["aria-labelledby"]||s.title?(s.role="img",null!=l&&(s.focusable="true",s.tabindex=l)):s["aria-hidden"]=!0,s}({...i,tabindex:o}),u=c;return n&&(u.className=n),null!=s&&(u.tabIndex="number"==typeof s?s:Number(o)),t&&(u.ref=t),a&&(u.xmlns=a),l&&(u.preserveAspectRatio=l),w().createElement("svg",u,r)}));var P,M,D,B,F,j,V,H,U,W,q,K,Q,Z,Y,X,G;z.displayName="Icon",z.propTypes={"aria-hidden":k().oneOfType([k().bool,k().oneOf(["true","false"])]),"aria-label":k().string,"aria-labelledby":k().string,children:k().node,className:k().string,height:k().oneOfType([k().number,k().string]),preserveAspectRatio:k().string,tabIndex:k().oneOfType([k().number,k().string]),viewBox:k().string,width:k().oneOfType([k().number,k().string]),xmlns:k().string};const J=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},P||(P=w().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"})),M||(M=w().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"})),n)})),ee=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},D||(D=w().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"})),B||(B=w().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"})),n):20===r||"20"===r||"20px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},F||(F=w().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"})),j||(j=w().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"})),n):24===r||"24"===r||"24px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},V||(V=w().createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),H||(H=w().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"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},U||(U=w().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"})),W||(W=w().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)})),te=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return"glyph"===r||"glyph"===r||"glyphpx"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...o},q||(q=w().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),n):16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},K||(K=w().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Q||(Q=w().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),n)})),ne=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return"glyph"===r||"glyph"===r||"glyphpx"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...o},Z||(Z=w().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),n):16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Y||(Y=w().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},X||(X=w().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),n)})),re=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},G||(G=w().createElement("path",{d:"M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),n)}));function oe(){let e=0;return function(){return++e}}const ae=!("undefined"==typeof window||!window.document||!window.document.createElement),le=w().createContext(null);function ie(){return w().useContext(le)}const se={...w()},ce=oe(),ue=ae?v.useLayoutEffect:v.useEffect;let de=!1;const fe=se.useId?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const t=ie();return`${t?`${t}-`:""}${e}-${se.useId()}`}:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const t=ie(),[n,r]=(0,v.useState)((()=>de?`${t?`${t}-`:""}${e}-${ce()}`:null));return ue((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${ce()}`)}),[ce]),(0,v.useEffect)((()=>{!1===de&&(de=!0)}),[]),n},pe={};function he(e,t){return function(t,n,r){if(void 0!==t[n]){pe[r]&&pe[r][n]||(pe[r]={...pe[r],[n]:!0});for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return e(t,n,r,...a)}}}const me=(0,v.createContext)(null),ge=w().forwardRef((function(e,t){let{as:n,children:r,dir:o="auto",...a}=e;const l=(0,v.useContext)(me),i={},s=n??"span",c={...l};if(l){const{direction:e,getTextDirection:t}=l;if(t&&t.current){const n=function(e){if("string"==typeof e)return e;const t=w().Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===t?.length?t[0]:t}(r),o=t.current(n);e!==o?(i.dir=o,c.direction=o):"auto"===e&&(i.dir=o)}else e!==o?(i.dir=o,c.direction=o):"auto"===e&&(i.dir=o)}else i.dir=o,c.direction=o;return w().createElement(me.Provider,{value:c},w().createElement(s,m({ref:t},a,i),r))}));function be(e,t){for(let n=0;n<t.length;n++)if(ve(e,t[n]))return!0;return!1}function ve(e){let{key:t,which:n,keyCode:r,code:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?-1!==t.indexOf(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o}ge.propTypes={as:k().oneOfType([k().func,k().string,k().elementType]),children:k().node.isRequired,dir:k().oneOf(["ltr","rtl","auto"])};const ye={key:"Tab",which:9,keyCode:9,code:"Tab"},we={key:"Enter",which:13,keyCode:13,code:"Enter"},Ee={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},xe={key:" ",which:32,keyCode:32,code:"Space"},Se={key:"ArrowLeft",which:37,keyCode:37,code:"ArrowLeft"},ke={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},Ce={key:"ArrowRight",which:39,keyCode:39,code:"ArrowRight"},Ne={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},_e=e=>w().createElement("button",m({type:"button"},e));function Te(e){let{children:t,className:n="",open:r=!1,onHeadingClick:o,renderExpando:a=_e,renderToggle:l,title:i="title",disabled:s,handleAnimationEnd:c,...u}=e;const[d,f]=(0,v.useState)(r),[p,h]=(0,v.useState)(r),g=(0,v.useContext)(C),y="boolean"==typeof s?s:g.disabled,E=fe("accordion-item"),S=x(),k=b()({[`${S}--accordion__item`]:!0,[`${S}--accordion__item--active`]:d&&!y,[`${S}--accordion__item--disabled`]:y,[n]:!!n}),N=l||a,_=w().useCallback((e=>{e&&d&&(e.style.maxBlockSize="")}),[d]);return r!==p&&(f(r),h(r)),w().createElement("li",m({className:k},u),w().createElement(N,{disabled:y,"aria-controls":E,"aria-expanded":d,className:`${S}--accordion__heading`,onClick:function(e){const t=!d;f(t),o&&o({isOpen:t,event:e})},onKeyDown:function(e){d&&ve(e,Ee)&&f(!1)},type:"button"},w().createElement(ne,{className:`${S}--accordion__arrow`}),w().createElement(ge,{as:"div",className:`${S}--accordion__title`},i)),w().createElement("div",{ref:_,className:`${S}--accordion__wrapper`,onTransitionEnd:function(e){c&&c(e)}},w().createElement("div",{id:E,className:`${S}--accordion__content`},t)))}Te.propTypes={children:k().node,className:k().string,disabled:k().bool,onClick:k().func,onHeadingClick:k().func,open:k().bool,renderExpando:he(k().func),renderToggle:k().func,title:k().node};const Ae={};function Re(e,t,n){return function(r,o,a){if(void 0!==r[o]){if(!Ae[a]||!Ae[a][o]){Ae[a]={...Ae[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}for(var l=arguments.length,i=new Array(l>3?l-3:0),s=3;s<l;s++)i[s-3]=arguments[s];return e(r,o,a,...i)}}}var Oe="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;const $e=e=>(0,v.useCallback)((t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e);function Le(e,t){const n=(0,v.useRef)(null);(0,v.useEffect)((()=>{n.current=t}),[t]),(0,v.useEffect)((()=>{function t(e){n.current&&n.current(e)}return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}}),[e])}function Ie(e){return Me(e)?(e.nodeName||"").toLowerCase():"#document"}function ze(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pe(e){var t;return null==(t=(Me(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Me(e){return e instanceof Node||e instanceof ze(e).Node}function De(e){return e instanceof Element||e instanceof ze(e).Element}function Be(e){return e instanceof HTMLElement||e instanceof ze(e).HTMLElement}function Fe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ze(e).ShadowRoot)}function je(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ve(e){return["table","td","th"].includes(Ie(e))}function He(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ue(e){const t=We(),n=Ke(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function We(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qe(e){return["html","body","#document"].includes(Ie(e))}function Ke(e){return ze(e).getComputedStyle(e)}function Qe(e){return De(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ze(e){if("html"===Ie(e))return e;const t=e.assignedSlot||e.parentNode||Fe(e)&&e.host||Pe(e);return Fe(t)?t.host:t}function Ye(e){const t=Ze(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&je(t)?t:Ye(t)}function Xe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ye(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ze(o);return a?t.concat(l,l.visualViewport||[],je(o)?o:[],l.frameElement&&n?Xe(l.frameElement):[]):t.concat(o,Xe(o,[],n))}var Ge=n(3144);const Je=Math.min,et=Math.max,tt=Math.round,nt=Math.floor,rt=e=>({x:e,y:e}),ot={left:"right",right:"left",bottom:"top",top:"bottom"},at={start:"end",end:"start"};function lt(e,t){return"function"==typeof e?e(t):e}function it(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function ct(e){return"y"===e?"height":"width"}function ut(e){return["top","bottom"].includes(it(e))?"y":"x"}function dt(e){return"x"===ut(e)?"y":"x"}function ft(e){return e.replace(/start|end/g,(e=>at[e]))}function pt(e){return e.replace(/left|right|bottom|top/g,(e=>ot[e]))}function ht(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 mt(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 gt(e,t,n){let{reference:r,floating:o}=e;const a=ut(t),l=dt(t),i=ct(l),s=it(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(st(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}function bt(e){const t=Ke(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Be(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:r,i=tt(n)!==a||tt(r)!==l;return i&&(n=a,r=l),{width:n,height:r,$:i}}function vt(e){return De(e)?e:e.contextElement}function yt(e){const t=vt(e);if(!Be(t))return rt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=bt(t);let l=(a?tt(n.width):n.width)/r,i=(a?tt(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const wt=rt(0);function Et(e){const t=ze(e);return We()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wt}function xt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=vt(e);let l=rt(1);t&&(r?De(r)&&(l=yt(r)):l=yt(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ze(e))&&t}(a,n,r)?Et(a):rt(0);let s=(o.left+i.x)/l.x,c=(o.top+i.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(a){const e=ze(a),t=r&&De(r)?ze(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=yt(o),t=o.getBoundingClientRect(),r=Ke(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=a,c+=l,n=ze(o),o=n.frameElement}}return mt({width:u,height:d,x:s,y:c})}function St(e){return xt(Pe(e)).left+Qe(e).scrollLeft}function kt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ze(e),r=Pe(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,i=0,s=0;if(o){a=o.width,l=o.height;const e=We();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}return{width:a,height:l,x:i,y:s}}(e,n);else if("document"===t)r=function(e){const t=Pe(e),n=Qe(e),r=e.ownerDocument.body,o=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+St(e);const i=-n.scrollTop;return"rtl"===Ke(r).direction&&(l+=et(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:l,y:i}}(Pe(e));else if(De(t))r=function(e,t){const n=xt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Be(e)?yt(e):rt(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=Et(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return mt(r)}function Ct(e,t){const n=Ze(e);return!(n===t||!De(n)||qe(n))&&("fixed"===Ke(n).position||Ct(n,t))}function Nt(e,t,n){const r=Be(t),o=Pe(t),a="fixed"===n,l=xt(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const s=rt(0);if(r||!r&&!a)if(("body"!==Ie(t)||je(o))&&(i=Qe(t)),r){const e=xt(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=St(o));return{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}function _t(e){return"static"===Ke(e).position}function Tt(e,t){return Be(e)&&"fixed"!==Ke(e).position?t?t(e):e.offsetParent:null}function At(e,t){const n=ze(e);if(He(e))return n;if(!Be(e)){let t=Ze(e);for(;t&&!qe(t);){if(De(t)&&!_t(t))return t;t=Ze(t)}return n}let r=Tt(e,t);for(;r&&Ve(r)&&_t(r);)r=Tt(r,t);return r&&qe(r)&&_t(r)&&!Ue(r)?n:r||function(e){let t=Ze(e);for(;Be(t)&&!qe(t);){if(He(t))return null;if(Ue(t))return t;t=Ze(t)}return null}(e)||n}const Rt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,l=Pe(r),i=!!t&&He(t.floating);if(r===l||i&&a)return n;let s={scrollLeft:0,scrollTop:0},c=rt(1);const u=rt(0),d=Be(r);if((d||!d&&!a)&&(("body"!==Ie(r)||je(l))&&(s=Qe(r)),Be(r))){const e=xt(r);c=yt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:Pe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?He(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter((e=>De(e)&&"body"!==Ie(e))),o=null;const a="fixed"===Ke(e).position;let l=a?Ze(e):e;for(;De(l)&&!qe(l);){const t=Ke(l),n=Ue(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||je(l)&&!n&&Ct(e,l))?r=r.filter((e=>e!==l)):o=t,l=Ze(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],i=a.reduce(((e,n)=>{const r=kt(t,n,o);return e.top=et(r.top,e.top),e.right=Je(r.right,e.right),e.bottom=Je(r.bottom,e.bottom),e.left=et(r.left,e.left),e}),kt(t,l,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:At,getElementRects:async function(e){const t=this.getOffsetParent||At,n=this.getDimensions,r=await n(e.floating);return{reference:Nt(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}=bt(e);return{width:t,height:n}},getScale:yt,isElement:De,isRTL:function(e){return"rtl"===Ke(e).direction}};function Ot(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=vt(e),u=o||a?[...c?Xe(c):[],...Xe(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&i?function(e,t){let n,r=null;const o=Pe(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),a();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(i||t(),!d||!f)return;const p={rootMargin:-nt(u)+"px "+-nt(o.clientWidth-(c+d))+"px "+-nt(o.clientHeight-(u+f))+"px "+-nt(c)+"px",threshold:et(0,Je(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let m=s?xt(e):null;return s&&function t(){const r=xt(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=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=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const $t=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:l,middlewareData:i}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=it(n),i=st(n),s="y"===ut(n),c=["left","top"].includes(l)?-1:1,u=a&&s?-1:1,d=lt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&"number"==typeof h&&(p="end"===i?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:l}}}}},Lt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:l,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=lt(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=it(o),v=ut(i),y=it(i)===i,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(y||!m?[pt(i)]:function(e){const t=pt(e);return[ft(e),t,ft(t)]}(i)),x="none"!==h;!f&&x&&E.push(...function(e,t,n,r){const o=st(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:l;default:return[]}}(it(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(ft)))),a}(i,m,h,w));const S=[i,...E],k=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:l,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lt(t,e),h=ht(p),m=i[f?"floating"===d?"reference":"floating":d],g=mt(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(i.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=mt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}(t,g),C=[];let N=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&C.push(k[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=st(e),o=dt(e),a=ct(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=pt(l)),[l,pt(l)]}(o,l,w);C.push(k[e[0]],k[e[1]])}if(N=[...N,{placement:o,overflows:C}],!C.every((e=>e<=0))){var _,T;const e=((null==(_=a.flip)?void 0:_.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(T=N.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=N.filter((e=>{if(x){const t=ut(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:A[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},It=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:l,elements:i,middlewareData:s}=t,{element:c,padding:u=0}=lt(e,t)||{};if(null==c)return{};const d=ht(u),f={x:n,y:r},p=dt(o),h=ct(p),m=await l.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],E=f[p]-a.reference[p],x=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let S=x?x[y]:0;S&&await(null==l.isElement?void 0:l.isElement(x))||(S=i.floating[y]||a.floating[h]);const k=w/2-E/2,C=S/2-m[h]/2-1,N=Je(d[b],C),_=Je(d[v],C),T=N,A=S-m[h]-_,R=S/2-m[h]/2+k,O=et(T,Je(R,A)),$=!s.arrow&&null!=st(o)&&R!==O&&a.reference[h]/2-(R<T?N:_)-m[h]/2<0,L=$?R<T?R-T:R-A:0;return{[p]:f[p]+L,data:{[p]:O,centerOffset:R-O-L,...$&&{alignmentOffset:L}},reset:$}}}),zt=(e,t,n)=>{const r=new Map,o={platform:Rt,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,i=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=gt(c,r,s),f=r,p={},h=0;for(let n=0;n<i.length;n++){const{name:a,fn:m}=i[n],{x:g,y:b,data:v,reset:y}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,p={...p,[a]:{...p[a],...v}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=gt(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var Pt="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function Mt(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(!Mt(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||Mt(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Dt(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bt(e,t){const n=Dt(e);return Math.round(t*n)/n}function Ft(e){const t=v.useRef(e);return Pt((()=>{t.current=e})),t}const jt=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?It({element:n.current,padding:r}).fn(t):{}:n?It({element:n,padding:r}).fn(t):{};var o}}),Vt=(e,t)=>({...Lt(e),options:[e,t]}),Ht=(e,t)=>({...jt(e),options:[e,t]}),Ut={...y},Wt=Ut.useInsertionEffect||(e=>e());var qt="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;let Kt=!1,Qt=0;const Zt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qt++,Yt=Ut.useId||function(){const[e,t]=v.useState((()=>Kt?Zt():void 0));return qt((()=>{null==e&&t(Zt())}),[]),v.useEffect((()=>{Kt=!0}),[]),e};const Xt=v.createContext(null),Gt=v.createContext(null);function Jt(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Yt(),a=v.useRef({}),[l]=v.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.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),i=null!=((null==(p=v.useContext(Xt))?void 0:p.id)||null),[s,c]=v.useState(r.reference),u=function(e){const t=v.useRef((()=>{}));return Wt((()=>{t.current=e})),v.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:i}),null==n||n(e,t,r)})),d=v.useMemo((()=>({setPositionReference:c})),[]),f=v.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);var p;return v.useMemo((()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d})),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,l]=v.useState(null),[i,s]=v.useState(null),c=(null==o?void 0:o.reference)||a,u=v.useRef(null),d=v.useContext(Gt);qt((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:l}={},transform:i=!0,whileElementsMounted:s,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Mt(f,r)||p(r);const[h,m]=v.useState(null),[g,b]=v.useState(null),y=v.useCallback((e=>{e!==S.current&&(S.current=e,m(e))}),[]),w=v.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),E=a||h,x=l||g,S=v.useRef(null),k=v.useRef(null),C=v.useRef(u),N=null!=s,_=Ft(s),T=Ft(o),A=v.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),zt(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};R.current&&!Mt(C.current,t)&&(C.current=t,Ge.flushSync((()=>{d(t)})))}))}),[f,t,n,T]);Pt((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const R=v.useRef(!1);Pt((()=>(R.current=!0,()=>{R.current=!1})),[]),Pt((()=>{if(E&&(S.current=E),x&&(k.current=x),E&&x){if(_.current)return _.current(E,x,A);A()}}),[E,x,A,_,N]);const O=v.useMemo((()=>({reference:S,floating:k,setReference:y,setFloating:w})),[y,w]),$=v.useMemo((()=>({reference:E,floating:x})),[E,x]),L=v.useMemo((()=>{const e={position:n,left:0,top:0};if(!$.floating)return e;const t=Bt($.floating,u.x),r=Bt($.floating,u.y);return i?{...e,transform:"translate("+t+"px, "+r+"px)",...Dt($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,i,$.floating,u.x,u.y]);return v.useMemo((()=>({...u,update:A,refs:O,elements:$,floatingStyles:L})),[u,A,O,$,L])}({...e,elements:{...o,...i&&{reference:i}}}),p=v.useCallback((e=>{const t=De(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),f.refs.setReference(t)}),[f.refs]),h=v.useCallback((e=>{(De(e)||null===e)&&(u.current=e,l(e)),(De(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!De(e))&&f.refs.setReference(e)}),[f.refs]),m=v.useMemo((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u})),[f.refs,h,p]),g=v.useMemo((()=>({...f.elements,domReference:c})),[f.elements,c]),b=v.useMemo((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return qt((()=>{r.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),v.useMemo((()=>({...f,context:b,refs:m,elements:g})),[f,m,g,b])}const en=["top","right","bottom","left"];function tn(e,t){return"function"==typeof e?e(t):e}function nn(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}}async function rn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:l,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=tn(t,e),h=function(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}}(p),m=i[f?"floating"===d?"reference":"floating":d],g=nn(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(i.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=nn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}function on(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function an(e){return en.some((t=>e[t]>=0))}Math.min,Math.max;const ln=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=tn(e,t);switch(r){case"referenceHidden":{const e=on(await rn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:an(e)}}}case"escaped":{const e=on(await rn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:an(e)}}}default:return{}}}}},sn=(0,v.createContext)(d);function cn(e){return(0,v.useContext)(sn).enabled(e)}k().node,he(k().objectOf(k().bool)),k().bool,k().bool,k().bool,k().bool,k().bool,k().bool;const un=w().createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),dn=w().forwardRef((function(e,t){let{isTabTip:n,align:r=(n?"bottom-start":"bottom"),as:o="span",autoAlign:a=!1,autoAlignBoundary:l,caret:i=!n,className:s,children:c,dropShadow:u=!0,highContrast:d=!1,onRequestClose:f,open:p,alignmentAxisOffset:h,...g}=e;const y=x(),E=(0,v.useRef)(null),S=(0,v.useRef)(null),k=(0,v.useRef)(null),C=cn("enable-v12-dynamic-floating-styles")||a;let N=function(e){switch(e){case"top-left":return"top-start";case"top-right":return"top-end";case"bottom-left":return"bottom-start";case"bottom-right":return"bottom-end";case"left-bottom":return"left-end";case"left-top":return"left-start";case"right-bottom":return"right-end";case"right-top":return"right-start";default:return e}}(r);Le("blur",(()=>{p&&f?.()})),Le("click",(e=>{p&&!k?.current?.contains(e.target)&&f?.()}));const _=w().Children.toArray(c).some((e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label")))?7:6,T=(0,v.useRef)({offset:10,caretHeight:_});Oe((()=>{if(i&&k.current){const e=window.getComputedStyle(k.current,null),t=e.getPropertyValue("--cds-popover-offset"),n=e.getPropertyValue("--cds-popover-caret-height");t&&(T.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(T.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}}));const{refs:A,floatingStyles:R,placement:O,middlewareData:$}=Jt(C?{placement:N,strategy:"fixed",middleware:[(L=n?0:{alignmentAxis:h,mainAxis:T?.current?.offset},{...$t(L),options:[L,undefined]}),a&&Vt({fallbackPlacements:N.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:l}),Ht({element:S}),a&&ln()],whileElementsMounted:Ot}:{});var L;const I=(0,v.useMemo)((()=>({floating:E,setFloating:A.setFloating,caretRef:S,autoAlign:a})),[A.setFloating,a]);n&&(["bottom-start","bottom-end"].includes(N)||(N="bottom-start")),(0,v.useEffect)((()=>{if(C){const e={...R,visibility:$.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach((t=>{A.floating.current&&(A.floating.current.style[t]=e[t])})),i&&$&&$.arrow&&S?.current){const{x:e,y:t}=$.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[O.split("-")[0]];S.current.style.left=null!=e?`${e}px`:"",S.current.style.top=null!=t?`${t}px`:"",S.current.style.right="",S.current.style.bottom="",n&&(S.current.style[n]=-T?.current?.caretHeight+"px")}}}),[R,A.floating,C,$,O,i]);const z=$e([t,k]),P=a&&O!==N?O:N,M=b()({[`${y}--popover-container`]:!0,[`${y}--popover--caret`]:i,[`${y}--popover--drop-shadow`]:u,[`${y}--popover--high-contrast`]:d,[`${y}--popover--open`]:p,[`${y}--popover--auto-align ${y}--autoalign`]:C,[`${y}--popover--${P}`]:!0,[`${y}--popover--tab-tip`]:n},s),D=w().Children.map(c,(e=>{const t=e,r=t?.type?.displayName,o="button"===t?.type,a=C&&r&&["ToggletipButton"].includes(r),l=C&&!["ToggletipContent","PopoverContent"].includes(r);if(w().isValidElement(t)&&(o||a||l)){const e=t?.props?.className,r=(t?.props).ref,o=b()(`${y}--popover--tab-tip__button`,e);return w().cloneElement(t,{className:n&&"button"===t?.type?o:e||"",ref:e=>{(C&&"PopoverContent"!==t?.type?.displayName||C&&"ToggletipButton"===t?.type?.displayName)&&A.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return t})),B=o;return w().createElement(un.Provider,{value:I},w().createElement(B,m({},g,{className:M,ref:z}),C||n?D:c))}));function fn(e,t){let{className:n,children:r,...o}=e;const a=x(),{setFloating:l,caretRef:i,autoAlign:s}=w().useContext(un),c=$e([l,t]),u=cn("enable-v12-dynamic-floating-styles")||s;return w().createElement("span",m({},o,{className:`${a}--popover`}),w().createElement("span",{className:b()(`${a}--popover-content`,n),ref:c},r,u&&w().createElement("span",{className:b()({[`${a}--popover-caret`]:!0,[`${a}--popover--auto-align`]:!0}),ref:i})),!u&&w().createElement("span",{className:b()({[`${a}--popover-caret`]:!0}),ref:i}))}dn.propTypes={align:Re(k().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"],(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]))),as:k().oneOfType([k().string,k().elementType]),autoAlign:k().bool,autoAlignBoundary:k().oneOfType([k().oneOf(["clippingAncestors"]),k().elementType,k().arrayOf(k().elementType),k().exact({x:k().number.isRequired,y:k().number.isRequired,width:k().number.isRequired,height:k().number.isRequired})]),caret:k().bool,children:k().node,className:k().string,dropShadow:k().bool,highContrast:k().bool,isTabTip:k().bool,onRequestClose:k().func,open:k().bool.isRequired};const pn=w().forwardRef(fn);function hn(e){if(!e||!e.childNodes)return null;if(function(e){if(void 0===e.tabIndex||e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;default:return!0}}(e))return e;for(const t of e.childNodes){const e=hn(t);if(e)return e}return null}function mn(e){if(!e||!e.childNodes)return null;if(e?.getAttribute?.("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes){const e=mn(t);if(e)return e}return null}pn.displayName="PopoverContent",pn.propTypes={children:k().node,className:k().string};const gn=new Set(["mouseup","touchend","touchcancel"]);function bn(e){let{align:t="top",className:n,children:r,label:o,description:a,enterDelayMs:l=100,leaveDelayMs:i=300,defaultOpen:s=!1,closeOnActivation:c=!1,...u}=e;(0,v.useRef)(null);const[d,f]=function(e){const[t,n]=(0,v.useState)(e),r=(0,v.useRef)(null),o=(0,v.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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,v.useEffect)((()=>()=>{window.clearTimeout(r.current??void 0)}),[]),[t,o]}(s),[p,h]=(0,v.useState)(!1),[g,y]=(0,v.useState)(!1),[E,S]=(0,v.useState)(!1),k=fe("tooltip"),C=x(),N=w().Children.only(r),_={onFocus:()=>!g&&f(!0),onBlur:()=>{f(!1),y(!1)},onClick:()=>c&&f(!1),onMouseEnter:A,onMouseLeave:R,onMouseDown:function(){y(!0),O()},onMouseMove:function(e){1===e.buttons?h(!0):h(!1)},onTouchStart:O};o?_["aria-labelledby"]=k:_["aria-describedby"]=k;const T=(0,v.useCallback)((e=>{d&&ve(e,Ee)&&(e.stopPropagation(),f(!1)),d&&c&&(ve(e,we)||ve(e,xe))&&f(!1)}),[c,d,f]);function A(){u?.onMouseEnter||(S(!0),f(!0,l))}function R(){S(!1),p||f(!1,i)}function O(){h(!0)}Oe((()=>{if(d)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){ve(e,Ee)&&T(e)}}),[d,T]);const $=(0,v.useCallback)((()=>{h(!1),E||f(!1,i)}),[E,i,f]);return(0,v.useEffect)((()=>(p&&gn.forEach((e=>{document.addEventListener(e,$)})),()=>{gn.forEach((e=>{document.removeEventListener(e,$)}))})),[p,$]),w().createElement(dn,m({},u,{align:t,className:b()(`${C}--tooltip`,n),dropShadow:!1,highContrast:!0,onKeyDown:T,onMouseLeave:R,open:d}),w().createElement("div",{className:`${C}--tooltip-trigger__wrapper`},void 0!==N?w().cloneElement(N,{..._,...function(e){const t=Object.keys(_).filter((e=>e.startsWith("on"))),n={};return t.forEach((t=>{n[t]=n=>{_[t](n),e?.[t]&&e?.[t](n)}})),n}(N.props)}):null),w().createElement(pn,{"aria-hidden":d?"false":"true",className:`${C}--tooltip-content`,id:k,onMouseEnter:A,role:"tooltip"},o||a))}bn.propTypes={align:k().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:k().node,className:k().string,closeOnActivation:k().bool,defaultOpen:k().bool,description:k().node,enterDelayMs:k().number,label:k().node,leaveDelayMs:k().number};const vn=w().forwardRef((function(e,t){let{as:n,children:r,className:o,dangerDescription:a="danger",disabled:l=!1,hasIconOnly:i=!1,href:s,iconDescription:c,isExpressive:u=!1,isSelected:d,kind:f="primary",onBlur:p,onClick:h,onFocus:m,onMouseEnter:g,onMouseLeave:v,renderIcon:y,size:E,tabIndex:S,type:k="button",...C}=e;const N=x(),_={tabIndex:S,className:b()(o,{[`${N}--btn`]:!0,[`${N}--btn--sm`]:"sm"===E&&!u,[`${N}--btn--md`]:"md"===E&&!u,[`${N}--btn--xl`]:"xl"===E,[`${N}--btn--2xl`]:"2xl"===E,[`${N}--layout--size-${E}`]:E,[`${N}--btn--${f}`]:f,[`${N}--btn--disabled`]:l,[`${N}--btn--expressive`]:u,[`${N}--btn--icon-only`]:i&&!o?.includes(`${N}--btn--icon-only`),[`${N}--btn--selected`]:i&&d&&"ghost"===f}),ref:t},T=y?w().createElement(y,{"aria-label":c,className:`${N}--btn__icon`,"aria-hidden":"true"}):null,A=["danger","danger--tertiary","danger--ghost"];let R="button";const O=fe("danger-description"),{"aria-pressed":$,"aria-describedby":L}=C;let I={disabled:l,type:k,"aria-describedby":A.includes(f)?O:L||void 0,"aria-pressed":$??(i&&"ghost"===f?d:void 0)};const z={href:s};let P=null;return A.includes(f)&&(P=w().createElement("span",{id:O,className:`${N}--visually-hidden`},a)),n?(R=n,I={...I,...z}):s&&!l&&(R="a",I=z),w().createElement(R,{onMouseEnter:g,onMouseLeave:v,onFocus:m,onBlur:p,onClick:h,...C,..._,...I},P,r,T)})),yn=["primary","secondary","ghost","tertiary"],wn=w().forwardRef((function(e,t){let{align:n,autoAlign:r=!1,children:o,className:a,closeOnActivation:l=!0,defaultOpen:i=!1,disabled:s,enterDelayMs:c=100,kind:u,label:d,leaveDelayMs:f=100,wrapperClasses:p,size:h,isSelected:g,...v}=e;const y=x(),E=b()(p,`${y}--icon-tooltip`,{[`${y}--icon-tooltip--disabled`]:s});return w().createElement(bn,{align:n,autoAlign:r,closeOnActivation:l,className:E,defaultOpen:i,enterDelayMs:c,label:d,leaveDelayMs:f},w().createElement(vn,m({},v,{disabled:s,kind:u,ref:t,size:h,className:b()(`${y}--btn--icon-only`,{[`${y}--btn--selected`]:g},a)}),o))}));wn.propTypes={align:Re(k().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"],(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]))),autoAlign:k().bool,href:k().string,children:k().node,className:k().string,closeOnActivation:k().bool,defaultOpen:k().bool,disabled:k().bool,enterDelayMs:k().number,isSelected:k().bool,kind:k().oneOf(yn),label:k().node.isRequired,leaveDelayMs:k().number,size:k().oneOf(["sm","md","lg"]),wrapperClasses:k().string};const En=e=>function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<e.length&&!t.defaultPrevented;n++){const o=e[n];"function"==typeof o&&o(t,...r)}},xn=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],Sn=w().forwardRef((function(e,t){const n=(0,v.useRef)(null),{as:r,autoAlign:o=!1,children:a,hasIconOnly:l=!1,iconDescription:i,kind:s="primary",onBlur:c,onClick:u,onFocus:d,onMouseEnter:f,onMouseLeave:p,renderIcon:h,size:g,tooltipAlignment:b="center",tooltipPosition:y="top",...E}=e,x=e=>{e.target===n.current&&e.preventDefault()},S=h?w().createElement(h,null):null;if(function(e){return!0===e}(l)){let e;return"top"!==y&&"bottom"!==y||("center"===b&&(e=y),"end"===b&&(e=`${y}-end`),"start"===b&&(e=`${y}-start`)),"right"!==y&&"left"!==y||(e=y),w().createElement(wn,m({},E,{ref:t,as:r,align:e,label:i,kind:s,size:g,onMouseEnter:f,onMouseLeave:p,onFocus:d,onBlur:c,autoAlign:o,onClick:En([u,x]),renderIcon:S?null:h}),S??a)}{const{tooltipAlignment:n,...r}=e;return w().createElement(vn,m({ref:t},r))}}));Sn.displayName="Button",Sn.propTypes={as:k().oneOfType([k().func,k().string,k().elementType]),autoAlign:k().bool,children:k().node,className:k().string,dangerDescription:k().string,disabled:k().bool,hasIconOnly:k().bool,href:k().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:k().bool,isSelected:k().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?yn:xn;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:k().func,onClick:k().func,onFocus:k().func,onMouseEnter:k().func,onMouseLeave:k().func,renderIcon:k().oneOfType([k().func,k().object]),role:k().string,size:k().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:k().number,tooltipAlignment:k().oneOf(["start","center","end"]),tooltipPosition:k().oneOf(["top","right","bottom","left"]),type:k().oneOf(["button","reset","submit"])};const kn=w().forwardRef((function(e,t){let{children:n,className:r,stacked:o,...a}=e;const l=x(),i=b()(r,`${l}--btn-set`,{[`${l}--btn-set--stacked`]:o});return w().createElement("div",m({},a,{className:i,ref:t}),n)}));kn.displayName="ButtonSet",kn.propTypes={children:k().node,className:k().string,stacked:k().bool};var Cn=n(524);const Nn=w().createContext(1),_n=["one","two","three"],Tn=_n.length-1,An=w().forwardRef((function(e,t){let{as:n="div",className:r,children:o,level:a,...l}=e;const i=w().useContext(Nn),s=a??i,c=x(),u=b()(`${c}--layer-${_n[s]}`,r),d=Math.max(0,Math.min(s+1,Tn)),f=n;return w().createElement(Nn.Provider,{value:d},w().createElement(f,m({ref:t},l,{className:u}),o))}));An.displayName="Layer",An.propTypes={as:k().oneOfType([k().func,k().string,k().elementType]),children:k().node,className:k().string,level:k().oneOf([0,1,2])};const Rn=An,On=w().forwardRef((function(e,t){let{buttonOnClick:n,children:r,className:o,closeClassName:a,closeIconClassName:l,closeModal:i,iconDescription:s="Close",label:c,labelClassName:u,title:d,titleClassName:f,...p}=e;const h=x(),g=b()(`${h}--modal-header`,o),v=b()(`${h}--modal-header__label ${h}--type-delta`,u),y=b()(`${h}--modal-header__heading ${h}--type-beta`,f),E=b()(`${h}--modal-close`,a),S=b()(`${h}--modal-close__icon`,l);return w().createElement("div",m({className:g},p,{ref:t}),c&&w().createElement("h2",{className:v},c),d&&w().createElement("h2",{className:y},d),r,w().createElement("div",{className:`${h}--modal-close-button`},w().createElement(wn,{className:E,label:s,onClick:function(e){i?.(e),n?.(e)},"aria-label":s,align:"left"},w().createElement(re,{size:20,"aria-hidden":"true",tabIndex:"-1",className:S}))))}));On.propTypes={buttonOnClick:k().func,children:k().node,className:k().string,closeClassName:k().string,closeIconClassName:k().string,closeModal:k().func,iconDescription:k().string,label:k().node,labelClassName:k().string,title:k().node,titleClassName:k().string};const $n=()=>{};var Ln,In,zn,Pn,Mn,Dn,Bn,Fn,jn;const Vn=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Ln||(Ln=w().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"})),n)})),Hn=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},In||(In=w().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"})),zn||(zn=w().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"})),n):20===r||"20"===r||"20px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},Pn||(Pn=w().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"})),Mn||(Mn=w().createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),n):24===r||"24"===r||"24px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Dn||(Dn=w().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"})),Bn||(Bn=w().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"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Fn||(Fn=w().createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),jn||(jn=w().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"})),n)}));function Un(e){let{active:t=!0,className:n,withOverlay:r=!0,small:o=!1,description:a="loading",...l}=e;const i=x(),s=b()(n,{[`${i}--loading`]:!0,[`${i}--loading--small`]:o,[`${i}--loading--stop`]:!t}),c=b()({[`${i}--loading-overlay`]:!0,[`${i}--loading-overlay--stop`]:!t}),u=w().createElement("div",m({},l,{"aria-atomic":"true","aria-live":t?"assertive":"off",className:s}),w().createElement("svg",{className:`${i}--loading__svg`,viewBox:"0 0 100 100"},w().createElement("title",null,a),o?w().createElement("circle",{className:`${i}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,w().createElement("circle",{className:`${i}--loading__stroke`,cx:"50%",cy:"50%",r:o?"42":"44"})));return r?w().createElement("div",{className:c},u):u}Un.propTypes={active:k().bool,className:k().string,description:k().string,id:he(k().string),small:k().bool,withOverlay:k().bool};const Wn=e=>{let{className:t,status:n="active",iconDescription:r,description:o,onSuccess:a,successDelay:l=1500,...i}=e;const s=x(),c=b()(`${s}--inline-loading`,t),u=w().createElement("div",{className:`${s}--inline-loading__text`},o),d=(()=>{let e=r||n;return"error"===n?w().createElement(Hn,{className:`${s}--inline-loading--error`},w().createElement("title",null,e)):"finished"===n?(setTimeout((()=>{a&&a()}),l),w().createElement(ee,{className:`${s}--inline-loading__checkmark-container`},w().createElement("title",null,e))):"inactive"===n||"active"===n?(r||(e="active"===n?"loading":"not loading"),w().createElement(Un,{small:!0,description:e,withOverlay:!1,active:"active"===n})):void 0})(),f=d&&w().createElement("div",{className:`${s}--inline-loading__animation`},d);return w().createElement("div",m({className:c},i,{"aria-live":"assertive"}),f,o&&u)};function qn(e){let{secondaryButtons:t,secondaryButtonText:n,secondaryClassName:r,closeModal:o,onRequestClose:a,disabled:l}=e;function i(e){o(e),a(e)}return Array.isArray(t)&&t.length<=2?t.map(((e,t)=>{let{buttonText:n,onClick:o}=e;return w().createElement(Sn,{key:`${n}-${t}`,className:r,kind:"secondary",onClick:o||i},n)})):n?w().createElement(Sn,{disabled:l,className:r,onClick:i,kind:"secondary"},n):null}Wn.propTypes={className:k().string,description:k().node,iconDescription:k().string,onSuccess:k().func,status:k().oneOf(["inactive","active","finished","error"]),successDelay:k().number},qn.propTypes={closeModal:k().func,disabled:k().bool,onRequestClose:k().func,secondaryButtonText:k().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:k().node,onClick:k().func};e[t].forEach((e=>{k().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:k().string};const Kn=w().forwardRef((function(e,t){let{children:n,className:r,closeModal:o=$n,danger:a,inputref:l,onRequestClose:i=$n,onRequestSubmit:s=$n,primaryButtonDisabled:c,primaryButtonText:u,primaryClassName:d,secondaryButtonText:f,secondaryButtons:p,secondaryClassName:h,loadingStatus:g="inactive",loadingDescription:v,loadingIconDescription:y,onLoadingSuccess:E=$n,...S}=e;const k=x(),C=b()(`${k}--modal-footer`,r,Array.isArray(p)&&2===p.length?`${k}--modal-footer--three-button`:null),N=b()(d,"inactive"!==g?`${k}--btn--loading`:null),_="inactive"!==g,T={closeModal:o,secondaryButtons:p,secondaryButtonText:f,secondaryClassName:h,onRequestClose:i,disabled:_};return w().createElement(kn,m({className:C},S,{ref:t,"aria-busy":_}),w().createElement(qn,T),u&&w().createElement(Sn,{onClick:s,className:N,disabled:_||c,kind:a?"danger":"primary",ref:l},"inactive"===g?u:w().createElement(Wn,{status:g,description:v,iconDescription:y,className:`${k}--inline-loading--btn`,onSuccess:E})),n)}));function Qn(e,t=0,n={}){"object"!=typeof n&&(n={});const{signal:r,leading:o=!1,trailing:a=!0,maxWait:l}=n,i=Array(2);let s;o&&(i[0]="leading"),a&&(i[1]="trailing");let c=null;const u=function(e,t,{signal:n,edges:r}={}){let o,a=null;const l=null!=r&&r.includes("leading"),i=null==r||r.includes("trailing"),s=()=>{null!==a&&(e.apply(o,a),o=void 0,a=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout((()=>{c=null,i&&s(),f()}),t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,a=null},p=function(...e){if(n?.aborted)return;o=this,a=e;const t=null==c;u(),l&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}((function(...t){s=e.apply(this,t),c=null}),t,{signal:r,edges:i}),d=function(...t){if(null!=l)if(null===c)c=Date.now();else if(Date.now()-c>=l)return s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s;return u.apply(this,t),s};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}Kn.propTypes={children:k().node,className:k().string,closeModal:k().func,danger:k().bool,inputref:k().oneOfType([k().func,k().shape({current:k().any})]),loadingDescription:k().string,loadingIconDescription:k().string,loadingStatus:k().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:k().func,onRequestClose:k().func,onRequestSubmit:k().func,primaryButtonDisabled:k().bool,primaryButtonText:k().string,primaryClassName:k().string,secondaryButtonText:k().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:k().node,onClick:k().func};e[t].forEach((e=>{k().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:k().string};var Zn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):Object(t)===t&&(t.current=e)}))}};function Yn(e,t,n){e.classList.contains(t)===!n&&e.classList[n?"add":"remove"](t)}function Xn(e,t){return function(e,n,r){for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return t(e,n,r,...a)}}const Gn="undefined"!=typeof Node&&Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS,Jn="undefined"!=typeof Node&&Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY,er="\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";var tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),nr="undefined"==typeof Element,rr=nr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,or=!nr&&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},ar=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},lr=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var l=a.shift();if(!ar(l,!1))if("SLOT"===l.tagName){var i=l.assignedElements(),s=e(i.length?i:l.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:l,candidates:s})}else{rr.call(l,tr)&&r.filter(l)&&(n||!t.includes(l))&&o.push(l);var c=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),u=!ar(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(c&&u){var d=e(!0===c?l.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else a.unshift.apply(a,l.children)}}return o},ir=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},sr=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))&&!ir(e)?0:e.tabIndex},cr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ur=function(e){return"INPUT"===e.tagName},dr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},fr=function(e,t){return!(t.disabled||ar(t)||function(e){return ur(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=rr.call(e,"details>summary:first-of-type")?e.parentElement:e;if(rr.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return dr(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,i=or(e);if(l&&!l.shadowRoot&&!0===r(l))return dr(e);e=e.assignedSlot?e.assignedSlot:l||i===e.ownerDocument?l:i.host}e=a}if(function(e){var t,n,r,o,a=e&&or(e),l=null===(t=a)||void 0===t?void 0:t.host,i=!1;if(a&&a!==e)for(i=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!i&&l;){var s,c,u;i=!(null===(c=l=null===(s=a=or(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return i}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!rr.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},pr=function(e,t){return!(function(e){return function(e){return ur(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||or(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)||sr(t)<0||!fr(e,t))},hr=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mr=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,l=a?t.scopeParent:t,i=function(e,t){var n=sr(e);return n<0&&t&&!ir(e)?0:n}(l,a),s=a?e(t.candidates):l;0===i?a?n.push.apply(n,s):n.push(l):r.push({documentOrder:o,tabIndex:i,item:t,isScope:a,content:s})})),r.sort(cr).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},gr=function(e,t){var n;return n=(t=t||{}).getShadowRoot?lr([e],t.includeContainer,{filter:pr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:hr}):function(e,t,n){if(ar(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(tr));return t&&rr.call(e,tr)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,pr.bind(null,t)),mr(n)};function br(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e&&"function"==typeof e.closest)return[".cds--overflow-menu-options",".cds--tooltip",".flatpickr-calendar",...t].some((t=>e.closest(t)))}function vr(e){let{bodyNode:t,startTrapNode:n,endTrapNode:r,currentActiveNode:o,oldActiveNode:a,selectorsFloatingMenus:l}=e;if(t&&o&&a&&!t.contains(o)&&!br(o,l)){const e=a.compareDocumentPosition(o);if(o===n||e&Gn){const e=[...t.querySelectorAll(er)].reverse().find((e=>Boolean(e.offsetParent)));e?e.focus():t!==a&&t.focus()}else if(o===r||e&Jn){const e=Array.prototype.find.call(t.querySelectorAll(er),(e=>Boolean(e.offsetParent)));e?e.focus():t!==a&&t.focus()}}}function yr(e){let{containerNode:t,currentActiveNode:n,event:r}=e;["blur","focusout","focusin","focus"].includes(r.type);const o=gr(t),a=o[0],l=o[o.length-1];n!==l||r.shiftKey||(r.preventDefault(),a.focus()),n===a&&r.shiftKey&&(r.preventDefault(),l.focus())}const wr=w().forwardRef((function(e,t){let{className:n,children:r,hasForm:o,hasScrollingContent:a,...l}=e;const i=x(),s=(0,v.useRef)(null),[c,u]=(0,v.useState)(!1),d=b()({[`${i}--modal-content`]:!0,[`${i}--modal-content--with-form`]:o,[`${i}--modal-scroll-content`]:a||c},n);Oe((()=>{s.current&&u(s.current.scrollHeight>s.current.clientHeight);const e=Qn((function(){s.current&&u(s.current.scrollHeight>s.current.clientHeight)}),200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]);const f=a||c?{tabIndex:0,role:"region"}:{};return w().createElement(Rn,m({className:d},f,l,{ref:Zn(s,t)}),r)}));wr.propTypes={"aria-label":Xn(0,k().string),children:k().node,className:k().string,hasForm:k().bool,hasScrollingContent:k().bool};var Er,xr;w().forwardRef((function(e,t){let{"aria-labelledby":n,"aria-label":r,children:o,className:a,containerClassName:l,danger:i,decorator:s,isFullWidth:c,onClose:u,onKeyDown:d,open:f,preventCloseOnClickOutside:p,selectorPrimaryFocus:h="[data-modal-primary-focus]",selectorsFloatingMenus:g,size:y,launcherButtonRef:E,slug:S,...k}=e;const C=x(),[N,_]=(0,v.useState)(!!f),[T,A]=(0,v.useState)(!!f),R=(0,v.useRef)(null),O=(0,v.useRef)(null),$=(0,v.useRef)(null),L=(0,v.useRef)(null),I=(0,v.useRef)(null),z=cn("enable-experimental-focus-wrap-without-sentinels");function P(e){u&&!1===u(e)||_(!1)}(0,v.useEffect)((()=>{f!==T&&(_(!!f),A(!!f),Yn(document.body,`${C}--body--with-modal-open`,!!f))}),[f,T,C]),(0,v.useEffect)((()=>()=>{Yn(document.body,`${C}--body--with-modal-open`,!1)}),[]);const M=b()(`${C}--modal`,{"is-visible":N,[`${C}--modal--danger`]:i,[`${C}--modal--slug`]:S,[`${C}--modal--decorator`]:s},a),D=b()(`${C}--modal-container`,y&&`${C}--modal-container--${y}`,c&&`${C}--modal-container--full-width`,l);let B;const F=w().Children.toArray(o).map((e=>{switch(!0){case(0,Cn.isElement)(e)&&e.type===w().createElement(On).type:{const t=e;return B=t.props.label,w().cloneElement(t,{closeModal:P})}case(0,Cn.isElement)(e)&&e.type===w().createElement(Kn).type:{const t=e;return w().cloneElement(t,{closeModal:P,inputref:O,danger:i})}default:return e}}));(0,v.useEffect)((()=>{!f&&E&&setTimeout((()=>{E?.current?.focus()}))}),[f,E]),(0,v.useEffect)((()=>{f&&N&&(e=>{const t=(e=>{const t=e||R.current;return(t?t.querySelector(i?`.${C}--btn--secondary`:h):null)||O&&O.current})(e),n=e.querySelector(`.${C}--modal-close`);t?t.focus():!t&&n&&n?.focus()})(R.current)}),[f,h,N]);let j=w().isValidElement(S??s)?S??s:null;return j&&"AILabel"===j.type?.displayName&&(j=w().cloneElement(j,{size:"sm"})),w().createElement(Rn,m({},k,{level:0,role:"presentation",ref:t,"aria-hidden":!f,onBlur:z?()=>{}:function(e){let{target:t,relatedTarget:n}=e;if(f&&n&&t&&R.current){const{current:e}=R,{current:r}=$,{current:o}=L;vr({bodyNode:e,startTrapNode:r,endTrapNode:o,currentActiveNode:n,oldActiveNode:t,selectorsFloatingMenus:g?.filter(Boolean)})}},onClick:En([k?.onClick,function(e){const t=e.target,n=I.current;e.stopPropagation(),p||br(t,g)||!R.current||R.current.contains(t)||R.current.contains(n)||P(e)}]),onMouseDown:En([k?.onMouseDown,function(e){const t=e.target;I.current=t}]),onKeyDown:function(e){e.stopPropagation(),ve(e,Ee)&&P(e),z&&f&&ve(e,ye)&&R.current&&yr({containerNode:R.current,currentActiveNode:e.target,event:e}),d?.(e)},className:M}),w().createElement("div",{className:D,role:"dialog","aria-modal":"true","aria-label":r||B,"aria-labelledby":n},!z&&w().createElement("button",{type:"button",ref:$,className:`${C}--visually-hidden`},"Focus sentinel"),w().createElement("div",{ref:R,className:`${C}--modal-container-body`},S?j:s?w().createElement("div",{className:`${C}--modal--inner__decorator`},j):"",F),!z&&w().createElement("button",{type:"button",ref:L,className:`${C}--visually-hidden`},"Focus sentinel")))})).propTypes={"aria-label":k().string,"aria-labelledby":k().string,children:k().node,className:k().string,containerClassName:k().string,danger:k().bool,decorator:k().node,isFullWidth:k().bool,launcherButtonRef:k().oneOfType([k().func,k().shape({current:k().any})]),onClose:k().func,onKeyDown:k().func,open:k().bool,preventCloseOnClickOutside:k().bool,selectorPrimaryFocus:k().string,selectorsFloatingMenus:k().arrayOf(k().string.isRequired),size:k().oneOf(["xs","sm","md","lg"]),slug:he(k().node)};const Sr=e=>{let{headers:t,rowCount:n=5,columnCount:r=5,zebra:o=!1,compact:a=!1,className:l,showHeader:i=!0,showToolbar:s=!0,...c}=e;const u=x(),d=b()(l,{[`${u}--skeleton`]:!0,[`${u}--data-table`]:!0,[`${u}--data-table--zebra`]:o,[`${u}--data-table--compact`]:a}),f=n,p=Array(f),h=Array.from({length:r},((e,t)=>t));for(let e=0;e<f;e++)p[e]=w().createElement("tr",{key:e},h.map((e=>w().createElement("td",{key:e},Er||(Er=w().createElement("span",null))))));return w().createElement("div",{className:`${u}--skeleton ${u}--data-table-container`},i?w().createElement("div",{className:`${u}--data-table-header`},w().createElement("div",{className:`${u}--data-table-header__title`}),w().createElement("div",{className:`${u}--data-table-header__description`})):null,s?w().createElement("section",{"aria-label":"data table toolbar",className:`${u}--table-toolbar`},w().createElement("div",{className:`${u}--toolbar-content`},w().createElement("span",{className:`${u}--skeleton ${u}--btn ${u}--btn--sm`}))):null,w().createElement("table",m({className:d},c),w().createElement("thead",null,w().createElement("tr",null,h.map((e=>w().createElement("th",{key:e},t?w().createElement("div",{className:"cds--table-header-label"},t[e]?.header):xr||(xr=w().createElement("span",null))))))),w().createElement("tbody",null,p)))};function kr(e){let{className:t,children:n,...r}=e;const o=x(),a=b()(`${o}--form`,t);return w().createElement("form",m({className:a},r),n)}Sr.propTypes={className:k().string,columnCount:k().number,compact:k().bool,headers:k().arrayOf(k().shape({header:k().node.isRequired}).isRequired),rowCount:k().number,showHeader:k().bool,showToolbar:k().bool,zebra:k().bool},kr.propTypes={children:k().node,className:k().string};const Cr=e=>{let{disabled:t=!1,legendId:n,legendText:r,invalid:o=!1,children:a,className:l,message:i=!1,messageText:s="",...c}=e;const u=x(),d=b()(`${u}--fieldset`,l);return w().createElement("fieldset",m({disabled:t},o&&{"data-invalid":""},{className:d},c,{"aria-labelledby":c["aria-labelledby"]||n}),w().createElement("legend",{className:`${u}--label`,id:n||c["aria-labelledby"]},r),a,i?w().createElement("div",{className:`${u}--form__requirements`},s):null)};function Nr(e){let{className:t,children:n,id:r,...o}=e;const a=x(),l=b()(`${a}--label`,`${a}--label--no-margin`,t);return w().createElement(ge,m({as:"label",htmlFor:r,className:l},o),n)}var _r,Tr,Ar,Rr,Or,$r,Lr,Ir,zr,Pr,Mr;Cr.propTypes={children:k().node,className:k().string,disabled:k().bool,invalid:k().bool,legendId:k().node,legendText:k().node.isRequired,message:k().bool,messageText:k().string},Nr.propTypes={children:k().node,className:k().string,id:k().string};const Dr=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},_r||(_r=w().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"})),Tr||(Tr=w().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"})),Ar||(Ar=w().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"})),n)})),Br=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Rr||(Rr=w().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"})),Or||(Or=w().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"})),n):20===r||"20"===r||"20px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},$r||($r=w().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"})),Lr||(Lr=w().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"})),n):24===r||"24"===r||"24px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Ir||(Ir=w().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"})),zr||(zr=w().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"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Pr||(Pr=w().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"})),Mr||(Mr=w().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"})),n)}));var Fr,jr,Vr,Hr;const Ur=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Fr||(Fr=w().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),jr||(jr=w().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"})),n)})),Wr=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Vr||(Vr=w().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"})),Hr||(Hr=w().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"})),n)}));function qr(e){let{children:t,className:n,onClick:r,inline:o,...a}=e;const l=x(),i=b()(n,{[`${l}--actionable-notification__action-button`]:!0});return w().createElement(Sn,m({className:i,kind:o?"ghost":"tertiary",onClick:r,size:"sm"},a),t)}function Kr(e){let{"aria-label":t="close notification",ariaLabel:n,className:r,type:o="button",renderIcon:a=re,name:l,notificationType:i="toast",...s}=e;const c=x(),u=b()(r,{[`${c}--${i}-notification__close-button`]:i}),d=b()({[`${c}--${i}-notification__close-icon`]:i});return w().createElement("button",m({},s,{type:o,"aria-label":n||t,title:n||t,className:u}),a&&w().createElement(a,{className:d,name:l}))}qr.propTypes={children:k().node,className:k().string,inline:k().bool,onClick:k().func},Kr.propTypes={"aria-label":k().string,ariaLabel:he(k().string),className:k().string,name:k().string,notificationType:k().oneOf(["toast","inline","actionable"]),renderIcon:k().oneOfType([k().func,k().object]),type:k().string};const Qr={error:Hn,success:ee,warning:Br,"warning-alt":Dr,info:Ur,"info-square":Wr};function Zr(e){let{iconDescription:t,kind:n,notificationType:r}=e;const o=x(),a=Qr[n];return a?w().createElement(a,{className:`${o}--${r}-notification__icon`,size:20},w().createElement("title",null,t)):null}function Yr(e){let{"aria-label":t,children:n,title:r,subtitle:o,role:a="status",onClose:l,onCloseButtonClick:i=$n,statusIconDescription:s,className:c,kind:u="error",lowContrast:d,hideCloseButton:f=!1,...p}=e;const[h,g]=(0,v.useState)(!0),y=x(),E=b()(c,{[`${y}--inline-notification`]:!0,[`${y}--inline-notification--low-contrast`]:d,[`${y}--inline-notification--${u}`]:u,[`${y}--inline-notification--hide-close-button`]:f}),S=(0,v.useRef)(null),k=(0,v.useRef)(null);return h?w().createElement("div",m({ref:k},p,{role:a,className:E}),w().createElement("div",{className:`${y}--inline-notification__details`},w().createElement(Zr,{notificationType:"inline",kind:u,iconDescription:s||`${u} icon`}),w().createElement("div",{ref:S,className:`${y}--inline-notification__text-wrapper`},r&&w().createElement(ge,{as:"div",className:`${y}--inline-notification__title`},r),o&&w().createElement(ge,{as:"div",className:`${y}--inline-notification__subtitle`},o),n)),!f&&w().createElement(Kr,{notificationType:"inline",onClick:function(e){i(e),l&&!1===l(e)||g(!1)},"aria-label":t})):null}var Xr,Gr,Jr;Zr.propTypes={iconDescription:k().string.isRequired,kind:k().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:k().oneOf(["inline","toast"]).isRequired},k().string,he(k().string),k().string,k().node,k().string,k().bool,k().oneOf(["error","info","info-square","success","warning","warning-alt"]),k().bool,k().func,k().func,k().oneOf(["alert","log","status"]),k().string,k().string,k().number,k().string,Yr.propTypes={"aria-label":k().string,children:k().node,className:k().string,hideCloseButton:k().bool,kind:k().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:k().bool,onClose:k().func,onCloseButtonClick:k().func,role:k().oneOf(["alert","log","status"]),statusIconDescription:k().string,subtitle:k().string,title:k().string},k().string,k().string,he(k().string),k().node,k().string,k().bool,he(k().bool),k().bool,k().bool,k().oneOf(["error","info","info-square","success","warning","warning-alt"]),k().bool,k().func,k().func,k().func,k().string,k().string,k().node,k().string,k().string,k().node,k().string,Re(k().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],(e=>({error:"warning",success:"info"}[e]))),k().bool,k().func,k().string,k().node,k().string,k().string;const eo=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Xr||(Xr=w().createElement("circle",{cx:"16",cy:"8",r:"2"})),Gr||(Gr=w().createElement("circle",{cx:"16",cy:"16",r:"2"})),Jr||(Jr=w().createElement("circle",{cx:"16",cy:"24",r:"2"})),n)}));function to(e,t){switch(t.type){case"enableIcons":return{...e,hasIcons:!0};case"registerItem":return{...e,items:[...e.items,t.payload].filter((e=>null!==e.ref.current))}}}const no=(0,v.createContext)({state:{isRoot:!0,mode:"full",hasIcons:!1,size:null,items:[],requestCloseRoot:()=>{}},dispatch:e=>{}}),ro=w().createContext({direction:"ltr"}),oo=(0,v.forwardRef)((function(e,t){let{children:n,className:r,containerRef:o,label:a,menuAlignment:l,mode:i="full",onClose:s,onOpen:c,open:u,size:d="sm",legacyAutoalign:f="true",target:p=ae&&document.body,x:h=0,y:g=0,...y}=e;const E=x(),S=(0,v.useRef)(null),k=(0,v.useContext)(no),C=k.state.isRoot;k.state.mode;const N=C?d:k.state.size,[_,T]=(0,v.useReducer)(to,{...k.state,isRoot:!1,mode:i,size:d,requestCloseRoot:C?D:k.state.requestCloseRoot}),A=(0,v.useMemo)((()=>({state:_,dispatch:T})),[_,T]),R=(0,v.useRef)(null),O=$e([t,R]),[$,L]=(0,v.useState)([-1,-1]),I=A.state.items.filter((e=>!e.disabled&&e.ref.current));let z;if(o?.current){const{width:e}=o.current.getBoundingClientRect();z=e}const{direction:P}=(0,v.useContext)(ro);function M(){S.current&&S.current.focus()}function D(e){/^key/.test(e.type)?window.addEventListener("keyup",M,{once:!0}):"click"===e.type&&R.current?R.current.addEventListener("focusout",M,{once:!0}):M(),s&&s()}function B(e){const t=I.findIndex((e=>e.ref?.current?.contains(document.activeElement)));let n=t;if(-1===t?n=0:e&&(ve(e,ke)&&(n-=1),ve(e,Ne)&&(n+=1)),n<0&&(n=I.length-1),n>=I.length&&(n=0),n!==t){const t=I[n];t.ref?.current?.focus(),e?.preventDefault()}}function F(e,t){if(!R.current)return;const{width:n,height:r}=R.current.getBoundingClientRect(),o=C?"vertical":"horizontal",a={x:{max:window.innerWidth,size:n,anchor:"horizontal"===o?e[1]:e[0],reversedAnchor:"horizontal"===o?e[0]:e[1],offset:0},y:{max:window.innerHeight,size:r,anchor:"horizontal"===o?e[0]:e[1],reversedAnchor:"horizontal"===o?e[1]:e[0],offset:C?0:4}};if(z&&z<a.x.size&&("bottom"===l||"top"===l)&&(a.x.size=z),z&&("bottom-end"===l||"top-end"===l)&&a.x.anchor>=87&&z<a.x.size){const e=a.x.anchor+a.x.reversedAnchor;a.x.anchor=a.x.anchor+e}const{max:i,size:s,anchor:c,reversedAnchor:u,offset:d}=a[t],f=[i-8-s-c>=0&&c-d,u-s>=0&&u-s+d,i-8-s],p="top"===l||"top-end"===l||"top-start"===l;"number"==typeof f[0]&&p&&f[0]>=0&&!f[1]&&"y"===t?R.current.style.transform="translate(0)":p&&!f[0]&&"y"===t&&(f[0]=c-d);const h=f.find((e=>!1!==e));return h>=8?h:8}function j(e){return null!=e}function V(e){if(Array.isArray(e)){const t=e.filter(j);return 2===t.length?t:void 0}return[e,e]}(0,v.useEffect)((()=>{u&&I.length>0&&B()}),[u,I]),(0,v.useEffect)((()=>{u?function(){if(R.current){if(S.current=document.activeElement,f){const e=function(){const e={x:V(h),y:V(g)};return e.x&&e.y?[F(e.x,"x")??-1,F(e.y,"y")??-1]:[-1,-1]}();"rtl"!==document?.dir&&"rtl"!==P||y?.id?.includes("MenuButton")?(R.current.style.insetInlineStart=`${e[0]}px`,R.current.style.insetInlineEnd="initial"):(R.current.style.insetInlineStart="initial",R.current.style.insetInlineEnd=`${e[0]}px`),R.current.style.insetBlockStart=`${e[1]}px`,L(e)}R.current.focus(),c&&c()}}():L([-1,-1])}),[u]);const H=b()(r,`${E}--menu`,`${E}--menu--${N}`,{[`${E}--menu--box-shadow-top`]:l&&"top"===l.slice(0,3),[`${E}--menu--open`]:u,[`${E}--menu--shown`]:u&&!f||$[0]>=0&&$[1]>=0,[`${E}--menu--with-icons`]:A.state.hasIcons,[`${E}--autoalign`]:!f}),U=w().createElement(no.Provider,{value:A},w().createElement("ul",m({},y,{className:H,role:"menu",ref:O,"aria-label":a,tabIndex:-1,onKeyDown:function(e){e.stopPropagation(),(ve(e,Ee)||!C&&ve(e,Se))&&s?D(e):B(e)},onBlur:function(e){u&&s&&C&&!R.current?.contains(e.relatedTarget)&&D(e)}}),n));return p&&C?u&&(0,Ge.createPortal)(U,p)||null:U}));oo.propTypes={children:k().node,className:k().string,label:k().string,menuAlignment:k().string,mode:k().oneOf(["full","basic"]),onClose:k().func,onOpen:k().func,open:k().bool,size:k().oneOf(["xs","sm","md","lg"]),target:k().object,x:k().oneOfType([k().number,k().arrayOf(k().number)]),y:k().oneOfType([k().number,k().arrayOf(k().number)])};const ao="md",lo=w().forwardRef((function(e,t){let{autoAlign:n=!1,children:r,className:o,label:a="Options",renderIcon:l=eo,size:i=ao,menuAlignment:s="bottom-start",tooltipAlignment:c,menuTarget:u,...d}=e;const f=cn("enable-v12-dynamic-floating-styles")||n,{refs:p,floatingStyles:h,placement:g,middlewareData:y}=Jt(f?{placement:s,strategy:"fixed",middleware:[n&&Vt({fallbackPlacements:s.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]})],whileElementsMounted:Ot}:{}),E=fe("overflowmenu"),S=x(),k=(0,v.useRef)(null),{open:C,x:N,y:_,handleClick:T,handleMousedown:A,handleClose:R}=function(e){const[t,n]=(0,v.useState)(!1),[r,o]=(0,v.useState)([[-1,-1],[-1,-1]]);function a(){n(!1)}return{open:t,x:r[0],y:r[1],handleClick:function(){t?a():function(){const t=e?.current||e;if(t){const{left:e,top:n,right:r,bottom:a}=t.getBoundingClientRect();o([[e,r],[n,a]])}n(!0)}()},handleMousedown:function(e){e.preventDefault()},handleClose:a}}(k);(0,v.useEffect)((()=>{f&&Object.keys(h).forEach((e=>{p.floating.current&&(p.floating.current.style[e]=h[e])}))}),[h,f,p.floating,C,g,y]);const O=b()(o,`${S}--overflow-menu__container`,{[`${S}--autoalign`]:f}),$=b()(`${S}--overflow-menu__${s}`),L=b()(`${S}--overflow-menu`,{[`${S}--overflow-menu--open`]:C},i!==ao&&`${S}--overflow-menu--${i}`),I=Zn(k,p.setReference);return w().createElement("div",m({},d,{className:O,"aria-owns":C?E:void 0,ref:t}),w().createElement(wn,{"aria-controls":C?E:void 0,"aria-haspopup":!0,"aria-expanded":C,className:L,onClick:function(){k.current&&T()},onMouseDown:A,ref:I,label:a,align:c,kind:"ghost"},w().createElement(l,{className:`${S}--overflow-menu__icon`})),w().createElement(oo,{containerRef:k,ref:p.setFloating,menuAlignment:s,className:$,id:E,size:i,legacyAutoalign:!f,open:C,onClose:R,x:N,y:_,label:a,target:u},r))}));lo.propTypes={autoAlign:k().bool,children:k().node,className:k().string,label:k().string,menuAlignment:k().oneOf(["top-start","top-end","bottom-start","bottom-end"]),renderIcon:k().oneOfType([k().func,k().object]),size:k().oneOf(["sm","md","lg"]),tooltipAlignment:Re(k().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"],(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]))),menuTarget:k().instanceOf("undefined"!=typeof Element?Element:Object)};var io=n(6468),so=n.n(io);const co=function(){const e=[];let t=!1;function n(){e.forEach((e=>{e()})),t=!1}function r(){t||(t=!0,so().requestAnimationFrame(n))}return{add:t=>(e.length||so().addEventListener("resize",r),function(t){t&&e.indexOf(t)<0&&e.push(t)}(t),{release(){const n=e.indexOf(t);n>=0&&e.splice(n,1)}})}}();var uo=co;const fo="left",po="top",ho="right",mo="bottom",go=e=>{let{menuSize:t,refPosition:n={},offset:r={},direction:o=mo,scrollX:a=0,scrollY:l=0,container:i}=e;const{left:s=0,top:c=0,right:u=0,bottom:d=0}=n,f="static"!==i.position?0:a,p="static"!==i.position?0:l,h="static"!==i.position?i.rect.top:0,m="static"!==i.position?i.rect.left:0,{width:g,height:b}=t,{top:v=0,left:y=0}=r,w=(s+u)/2,E=(c+d)/2;return{[fo]:()=>({left:s-g+f-y-m,top:E-b/2+p+v-9-h}),[po]:()=>({left:w-g/2+f+y-m,top:c-b+p-v-h}),[ho]:()=>({left:u+f+y-m,top:E-b/2+p+v+3-h}),[mo]:()=>({left:w-g/2+f+y-m,top:d+p+v-h})}[o]()};class bo extends w().Component{constructor(){var e;super(...arguments),e=this,h(this,"_placeInProgress",!1),h(this,"state",{floatingPosition:void 0}),h(this,"_menuContainer",null),h(this,"_menuBody",null),h(this,"startSentinel",w().createRef()),h(this,"endSentinel",w().createRef()),h(this,"_updateMenuSize",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=e._menuBody;if(!r)return;const{menuOffset:o={},menuDirection:a}=t,{menuOffset:l={},menuDirection:i=mo}=e.props;if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return typeof e!=typeof t||(Object(t)===t&&"function"!=typeof t?e.top!==t.top||e.left!==t.left:e!==t)}(o,l)||a!==i||n){const{flipped:t,triggerRef:o,updateOrientation:a=null}=e.props,{current:s}=o,c=r.getBoundingClientRect(),u=s&&s.getBoundingClientRect(),d="function"!=typeof l?l:l(r,i,s,t);a&&a({menuSize:c,refPosition:u,direction:i,offset:d,scrollX:so().pageXOffset,scrollY:so().pageYOffset,container:{rect:e.props.target().getBoundingClientRect(),position:getComputedStyle(e.props.target()).position}}),(c.width>0&&c.height>0||!d)&&e.setState({floatingPosition:go({menuSize:c,refPosition:u,direction:i,offset:d,scrollX:so().pageXOffset,scrollY:so().pageYOffset,container:{rect:e.props.target().getBoundingClientRect(),position:getComputedStyle(e.props.target()).position}})},(()=>{n||r.getBoundingClientRect()!==c&&e._updateMenuSize(e.props,!0)}))}})),h(this,"_focusMenuContent",(e=>{const t=e.querySelector(this.props.selectorPrimaryFocus||null),n=e.querySelector(er),r=e.querySelector("\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex]:not([disabled]), *[contenteditable=true]\n");(t||n||r||e).focus()})),h(this,"_menuRef",(e=>{const{menuRef:t}=this.props;this._placeInProgress=!!e,t&&t(this._menuBody=e),e&&this._updateMenuSize()})),h(this,"_getChildrenWithProps",(()=>{const{styles:e,children:t}=this.props,{floatingPosition:n}=this.state,r=n?{left:`${n.left}px`,top:`${n.top}px`,right:"auto"}:{visibility:"hidden",top:"0px"};return w().cloneElement(t,{ref:this._menuRef,style:{...e,...r,position:"absolute",opacity:1}})})),h(this,"handleBlur",(e=>{let{target:t,relatedTarget:n}=e;if(n&&t){const{current:e}=this.startSentinel,{current:r}=this.endSentinel;vr({bodyNode:this._menuBody,startSentinelNode:e,endSentinelNode:r,currentActiveNode:n,oldActiveNode:t})}})),h(this,"handleKeyDown",(e=>{ve(e,ye)&&this._menuBody&&yr({containerNode:this._menuBody,currentActiveNode:e.target,event:e})}))}componentWillUnmount(){this.hResize.release()}componentDidMount(){this.hResize=uo.add((()=>{this._updateMenuSize()}))}componentDidUpdate(e){this._updateMenuSize(e);const{onPlace:t}=this.props;this._placeInProgress&&this.state.floatingPosition&&(this._menuBody&&!this._menuBody.contains(document.activeElement)&&this._focusMenuContent(this._menuBody),"function"==typeof t&&(t(this._menuBody),this._placeInProgress=!1))}render(){const{context:e}=this,t=function(){return d.enabled.apply(d,arguments)}("enable-experimental-focus-wrap-without-sentinels");if("undefined"!=typeof document){const{focusTrap:n,target:r}=this.props;return Ge.createPortal(w().createElement("div",{onBlur:n&&!t?this.handleBlur:()=>{},onKeyDown:t?this.handleKeyDown:()=>{}},!t&&w().createElement("span",{ref:this.startSentinel,tabIndex:"0",role:"link",className:`${e}--visually-hidden`},"Focus sentinel"),this._getChildrenWithProps(),!t&&w().createElement("span",{ref:this.endSentinel,tabIndex:"0",role:"link",className:`${e}--visually-hidden`},"Focus sentinel")),r?r():document.body)}return null}}h(bo,"contextType",E),h(bo,"propTypes",{children:k().object,flipped:k().bool,focusTrap:k().bool,menuDirection:k().oneOf([fo,po,ho,mo]),menuOffset:k().oneOfType([k().shape({top:k().number,left:k().number}),k().func]),menuRef:k().func,onPlace:k().func,selectorPrimaryFocus:k().string,styles:k().object,target:k().func,triggerRef:k().oneOfType([k().func,k().shape({current:k().any})]),updateOrientation:k().func});var vo=bo;class yo extends w().Component{static getEventTarget(e){return e.composed&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target}constructor(e){super(e),this.handleRef=this.handleRef.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this)}componentDidMount(){document.addEventListener("click",this.handleDocumentClick)}componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick)}handleDocumentClick(e){this.element&&this.element.contains&&!this.element.contains(yo.getEventTarget(e))&&this.props.onClickOutside(e)}handleRef(e){const{children:t}=this.props;this.element=e,t.ref&&"function"==typeof t.ref&&t.ref(e)}render(){return w().cloneElement(this.props.children,{ref:this.handleRef})}}h(yo,"propTypes",{children:k().element.isRequired,onClickOutside:k().func.isRequired}),n(8958);const wo=oe(),Eo={[po]:"bottom",[mo]:"top"},xo=(e,t,n,r)=>{const o=Eo[t],{offsetWidth:a,offsetHeight:l}=e;switch(o){case"top":case"bottom":return{left:(r?-1:1)*(a/2-(n?n.offsetWidth:0)/2),top:0}}};class So extends w().Component{constructor(){super(...arguments),h(this,"state",{open:!1,hasMountedTrigger:!1,click:!1}),h(this,"instanceId",wo()),h(this,"_hFocusIn",null),h(this,"_hBlurTimeout",void 0),h(this,"_triggerRef",w().createRef()),h(this,"handleClick",(e=>{const{onClick:t=$n}=this.props;this.setState({click:!0}),this._menuBody&&this._menuBody.contains(e.target)||(this.setState({open:!this.state.open}),t(e))})),h(this,"closeMenuAndFocus",(()=>{const e=this.state.click,t=this.state.open;this.closeMenu((()=>{t&&!e&&this.focusMenuEl()}))})),h(this,"closeMenuOnEscape",(()=>{const e=this.state.open;this.closeMenu((()=>{e&&this.focusMenuEl()}))})),h(this,"handleKeyPress",(e=>{this.state.open&&be(e,[ke,Ce,Ne,Se])&&e.preventDefault(),be(e,[Ee])&&(this.closeMenuOnEscape(),e.stopPropagation())})),h(this,"handleClickOutside",(e=>{!this.state.open||this._menuBody&&this._menuBody.contains(e.target)||this.closeMenu()})),h(this,"closeMenu",(e=>{const{onClose:t=$n}=this.props;this.setState({open:!1},(()=>{e&&e(),t()}))})),h(this,"focusMenuEl",(()=>{const{current:e}=this._triggerRef;e&&e.focus()})),h(this,"handleOverflowMenuItemFocus",(e=>{let{currentIndex:t,direction:n}=e;const r=w().Children.toArray(this.props.children).reduce(((e,t,n)=>(w().isValidElement(t)&&!t.props.disabled&&e.push(n),e)),[]),o=(()=>{const e=r.indexOf(t)+n;switch(e){case-1:return r.length-1;case r.length:return 0;default:return e}})(),a=this[`overflowMenuItem${r[o]}`];a?.focus()})),h(this,"_menuBody",null),h(this,"_bindMenuBody",(e=>{e||(this._menuBody=e),!e&&this._hFocusIn&&(this._hFocusIn=this._hFocusIn.release())})),h(this,"_handlePlace",(e=>{const{onOpen:t=$n}=this.props;if(e){this._menuBody=e;const n="onfocusin"in window,r=n?"focusin":"focus";this._hFocusIn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.addEventListener(...n),{release:()=>(e.removeEventListener(...n),null)}}(e.ownerDocument,r,(t=>{const n=yo.getEventTarget(t),{current:r}=this._triggerRef;"function"==typeof n.matches&&(e.contains(n)||!r||n.matches(`.${this.context}--overflow-menu:first-child,.${this.context}--overflow-menu-options:first-child`)||this.closeMenuAndFocus())}),!n),t()}})),h(this,"_getTarget",(()=>{const{current:e}=this._triggerRef;return e instanceof Element&&e.closest("[data-floating-menu-container]")||document.body}))}componentDidUpdate(e,t){const{onClose:n=$n}=this.props;!this.state.open&&t.open&&n()}componentDidMount(){this._triggerRef.current&&this.setState({hasMountedTrigger:!0})}static getDerivedStateFromProps(e,t){let{open:n}=e;const{prevOpen:r}=t;return r===n?null:{open:n,prevOpen:n}}componentWillUnmount(){"number"==typeof this._hBlurTimeout&&(clearTimeout(this._hBlurTimeout),this._hBlurTimeout=void 0)}render(){const e=this.context,{id:t,"aria-label":n=null,ariaLabel:r,children:o,iconDescription:a="Options",direction:l=mo,flipped:i=!1,focusTrap:s=!0,menuOffset:c=xo,menuOffsetFlip:u=xo,iconClass:d,onClick:f=$n,onOpen:p=$n,selectorPrimaryFocus:h="[data-floating-menu-primary-focus]",renderIcon:g=eo,innerRef:v,menuOptionsClass:y,light:E,size:x="md",...S}=this.props,{open:k=!1}=this.state,C=b()(this.props.className,`${e}--overflow-menu`,{[`${e}--overflow-menu--open`]:k,[`${e}--overflow-menu--light`]:E,[`${e}--overflow-menu--${x}`]:x}),N=b()(y,`${e}--overflow-menu-options`,{[`${e}--overflow-menu--flip`]:this.props.flipped,[`${e}--overflow-menu-options--open`]:k,[`${e}--overflow-menu-options--light`]:E,[`${e}--overflow-menu-options--${x}`]:x}),_=b()(`${e}--overflow-menu__icon`,d),T=w().Children.toArray(o).map(((e,t)=>w().isValidElement(e)?w().cloneElement(e,{closeMenu:e.props.closeMenu||this.closeMenuAndFocus,handleOverflowMenuItemFocus:this.handleOverflowMenuItemFocus,ref:e=>{this[`overflowMenuItem${t}`]=e},index:t}):null)),A=`overflow-menu-${this.instanceId}__menu-body`,R=w().createElement("ul",{className:N,tabIndex:-1,role:"menu","aria-label":n||r,onKeyDown:this.handleKeyPress,id:A},T),O=w().createElement(vo,{focusTrap:s,triggerRef:this._triggerRef,menuDirection:l,menuOffset:i?u:c,menuRef:this._bindMenuBody,flipped:this.props.flipped,target:this._getTarget,onPlace:this._handlePlace,selectorPrimaryFocus:this.props.selectorPrimaryFocus},w().cloneElement(R,{"data-floating-menu-direction":l})),$={className:_,"aria-label":a};return w().createElement(yo,{onClickOutside:this.handleClickOutside},w().createElement("span",{className:`${e}--overflow-menu__wrapper`,"aria-owns":k?A:void 0},w().createElement(wn,m({},S,{type:"button","aria-haspopup":!0,"aria-expanded":k,"aria-controls":k?A:void 0,className:C,onClick:this.handleClick,id:t,ref:Zn(this._triggerRef,v),size:x,label:a,kind:"ghost"}),w().createElement(g,$)),k&&this.state.hasMountedTrigger&&O))}}h(So,"propTypes",{"aria-label":k().string,ariaLabel:he(k().string),children:k().node,className:k().string,direction:k().oneOf([po,mo]),flipped:k().bool,focusTrap:k().bool,iconClass:k().string,iconDescription:k().string,id:k().string,light:he(k().bool),menuOffset:k().oneOfType([k().shape({top:k().number,left:k().number}),k().func]),menuOffsetFlip:k().oneOfType([k().shape({top:k().number,left:k().number}),k().func]),menuOptionsClass:k().string,onClick:k().func,onClose:k().func,onFocus:k().func,onKeyDown:k().func,onOpen:k().func,open:k().bool,renderIcon:k().oneOfType([k().func,k().object]),selectorPrimaryFocus:k().string,size:k().oneOf(["sm","md","lg"])}),h(So,"contextType",E);const ko=function(e){function t(t){return w().createElement(e,t)}const n=e.displayName||e.name;return t.displayName=`ClassWrapper(${n})`,t}(So);function Co(e){return cn("enable-v12-overflowmenu")?w().createElement(lo,e):w().createElement(ko,e)}Co.displayName="OverflowMenu";const No=w().forwardRef((function(e,t){let{className:n,closeMenu:r,disabled:o=!1,handleOverflowMenuItemFocus:a,hasDivider:l=!1,href:i,isDelete:s=!1,index:c,itemText:u="Provide itemText",onClick:d=()=>{},onKeyDown:f=()=>{},requireTitle:p,title:h,wrapperClassName:g,...v}=e;const y=x(),E=b()(`${y}--overflow-menu-options__btn`,n),S=b()(`${y}--overflow-menu-options__option`,{[`${y}--overflow-menu--divider`]:l,[`${y}--overflow-menu-options__option--danger`]:s,[`${y}--overflow-menu-options__option--disabled`]:o},g),k=i?"a":"button",C="string"!=typeof u?u:w().createElement("div",{className:`${y}--overflow-menu-options__option-content`},u);return w().createElement(ge,{as:"li",className:S,role:"none"},w().createElement(k,m({className:E,disabled:o,href:i,onClick:function(e){d(e),r&&r()},onKeyDown:e=>{!function(e){ve(e,Ne)&&a?.({currentIndex:c,direction:1}),ve(e,ke)&&a?.({currentIndex:c,direction:-1})}(e),f(e)},role:"menuitem",ref:t,tabIndex:-1,title:p?h||u:void 0},v),C))}));var _o,To,Ao,Ro,Oo;No.propTypes={className:k().string,closeMenu:k().func,disabled:k().bool,handleOverflowMenuItemFocus:k().func,hasDivider:k().bool,href:k().string,index:k().number,isDelete:k().bool,itemText:k().node.isRequired,onBlur:k().func,onClick:k().func,onFocus:k().func,onKeyDown:k().func,onKeyUp:k().func,onMouseDown:k().func,onMouseEnter:k().func,onMouseLeave:k().func,onMouseUp:k().func,requireTitle:k().bool,title:k().string,wrapperClassName:k().string};const $o=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return"glyph"===r||"glyph"===r||"glyphpx"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},_o||(_o=w().createElement("path",{d:"M5 8L0 4 5 0z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},To||(To=w().createElement("path",{d:"M20 24L10 16 20 8z"})),n)})),Lo=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return"glyph"===r||"glyph"===r||"glyphpx"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},Ao||(Ao=w().createElement("path",{d:"M0 0L5 4 0 8z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Ro||(Ro=w().createElement("path",{d:"M12 8L22 16 12 24z"})),n)})),Io=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Oo||(Oo=w().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"})),n)})),zo=(0,v.createContext)({isFluid:!1}),Po=w().forwardRef((function(e,t){let{className:n,decorator:r,id:o,inline:a=!1,labelText:l="Select",disabled:i=!1,children:s,noLabel:c=!1,hideLabel:u=!1,invalid:d=!1,invalidText:f="",helperText:p="",light:h=!1,readOnly:g,size:y,warn:E=!1,warnText:S,onChange:k,slug:C,...N}=e;const _=x(),{isFluid:T}=(0,v.useContext)(zo),[A,R]=(0,v.useState)(!1),[O,$]=(0,v.useState)(""),L=fe(),I=b()({[`${_}--select`]:!0,[`${_}--select--inline`]:a,[`${_}--select--light`]:h,[`${_}--select--invalid`]:d,[`${_}--select--disabled`]:i,[`${_}--select--readonly`]:g,[`${_}--select--warning`]:E,[`${_}--select--fluid--invalid`]:T&&d,[`${_}--select--fluid--focus`]:T&&A,[`${_}--select--slug`]:C,[`${_}--select--decorator`]:r}),z=b()(`${_}--label`,{[`${_}--visually-hidden`]:u,[`${_}--label--disabled`]:i}),P=b()({[`${_}--select-input`]:!0,[`${_}--select-input--${y}`]:y}),M=`${o}-error-msg`,D=d?f:E?S:void 0,B=d||E?w().createElement(ge,{as:"div",className:`${_}--form-requirement`,id:M},D):null,F=b()(`${_}--form__helper-text`,{[`${_}--form__helper-text--disabled`]:i}),j=p?`select-helper-text-${L}`:void 0,V=p?w().createElement(ge,{as:"div",id:j,className:F},p):null,H={};d?H["aria-describedby"]=M:a||T||(H["aria-describedby"]=V?j:void 0);const U=e=>{R("focus"===e.type)},W={onMouseDown:e=>{g&&(e.preventDefault(),e.target.focus())},onKeyDown:e=>{g&&["ArrowDown","ArrowUp"," "].includes(e.key)&&e.preventDefault()}};let q=w().isValidElement(C??r)?C??r:null;q&&"AILabel"===q.type?.displayName&&(q=w().cloneElement(q,{size:"mini"}));const K=w().createElement(w().Fragment,null,w().createElement("select",m({},N,H,{id:o,className:P,disabled:i||void 0,"aria-invalid":d||void 0,"aria-readonly":g||void 0,title:O,onChange:En([k,e=>{$(e?.target?.value)}])},W,{ref:t}),s),w().createElement(te,{className:`${_}--select__arrow`}),d&&w().createElement(Br,{className:`${_}--select__invalid-icon`}),!d&&E&&w().createElement(Dr,{className:`${_}--select__invalid-icon ${_}--select__invalid-icon--warning`}));return w().createElement("div",{className:b()(`${_}--form-item`,n)},w().createElement("div",{className:I},!c&&w().createElement(ge,{as:"label",htmlFor:o,className:z},l),a&&w().createElement("div",{className:`${_}--select-input--inline__wrapper`},w().createElement("div",{className:`${_}--select-input__wrapper`,"data-invalid":d||null},K),B),!a&&w().createElement("div",{className:`${_}--select-input__wrapper`,"data-invalid":d||null,onFocus:U,onBlur:U},K,C?q:r?w().createElement("div",{className:`${_}--select__inner-wrapper--decorator`},q):"",T&&w().createElement("hr",{className:`${_}--select__divider`}),T&&B?B:null),a||T||!B?V:B))}));Po.displayName="Select",Po.propTypes={children:k().node,className:k().string,decorator:k().node,defaultValue:k().any,disabled:k().bool,helperText:k().node,hideLabel:k().bool,id:k().string.isRequired,inline:k().bool,invalid:k().bool,invalidText:k().node,labelText:k().node,light:he(k().bool),noLabel:k().bool,onChange:k().func,readOnly:k().bool,size:k().oneOf(["sm","md","lg"]),slug:he(k().node),warn:k().bool,warnText:k().node};const Mo=e=>{let{className:t,value:n="",disabled:r=!1,hidden:o=!1,text:a="",...l}=e;const i=x(),s=b()({[`${i}--select-option`]:!0,...t&&{[t]:t}});return w().createElement("option",m({},l,{className:s,value:n,disabled:r,hidden:o}),a)};var Do,Bo;function Fo(e){return"object"==typeof e[0]&&null!==e[0]?e:e.map((e=>({text:e,value:e})))}function jo(e,t){if(t){if(e.find((e=>t===e.value)))return t}return e[0].value}Mo.propTypes={className:k().string,disabled:k().bool,hidden:k().bool,text:k().string.isRequired,value:k().any.isRequired};const Vo=w().forwardRef((function(e,t){let{backwardText:n="Previous page",className:r="",disabled:o=!1,forwardText:a="Next page",id:l,isLastPage:i=!1,itemText:s=(e,t)=>`${e}–${t} items`,itemRangeText:c=(e,t,n)=>`${e}–${t} of ${n} items`,itemsPerPageText:u="Items per page:",onChange:d,pageNumberText:f="Page Number",pageRangeText:p=(e,t)=>`of ${t} ${1===t?"page":"pages"}`,page:h=1,pageInputDisabled:g,pageSize:y,pageSizeInputDisabled:E,pageSizes:S,pageText:k=e=>`page ${e}`,pagesUnknown:C=!1,size:N="md",totalItems:_,...T}=e;const A=x(),R=function(e){const t=fe();return e??t}(l?.toString()),O=(0,v.useRef)(null),$=(0,v.useRef)(null),[L,I]=(0,v.useState)((()=>Fo(S))),[z,P]=(0,v.useState)(S),[M,D]=(0,v.useState)(h),[B,F]=(0,v.useState)(h),[j,V]=(0,v.useState)((()=>jo(L,y))),[H,U]=(0,v.useState)(y),W=b()({[`${A}--pagination`]:!0,[`${A}--pagination--${N}`]:N,[r]:!!r}),q=_?Math.max(Math.ceil(_/j),1):1,K=o||1===M,Q=b()({[`${A}--pagination__button`]:!0,[`${A}--pagination__button--backward`]:!0,[`${A}--pagination__button--no-index`]:K}),Z=o||M===q&&!C,Y=b()({[`${A}--pagination__button`]:!0,[`${A}--pagination__button--forward`]:!0,[`${A}--pagination__button--no-index`]:Z}),X=function(e){let t=1;const n=[];for(;t<=e;)n.push(w().createElement(Mo,{key:t,value:t,text:String(t)})),t++;return n}(q);if(h!==B&&(D(h),F(h)),y!==H&&(V(jo(L,y)),U(y)),!function(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;if(e===t)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(S,z)){const e=Fo(S),t=e.find((e=>e.value===j));t||D(1),I(e),P(S)}return w().createElement("div",m({className:W,ref:t},T),w().createElement("div",{className:`${A}--pagination__left`},w().createElement("label",{id:`${A}-pagination-select-${R}-count-label`,className:`${A}--pagination__text`,htmlFor:`${A}-pagination-select-${R}`},u),w().createElement(Po,{id:`${A}-pagination-select-${R}`,className:`${A}--select__item-count`,labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:function(e){const t={pageSize:Number(e.target.value),page:1};D(t.page),V(t.pageSize),d&&d(t)},disabled:E||o,value:j},L.map((e=>w().createElement(Mo,{key:e.value,value:e.value,text:String(e.text)})))),w().createElement("span",{className:`${A}--pagination__text ${A}--pagination__items-count`},C||!_?0===_?c(0,0,0):s(j*(M-1)+1,M*j):c(Math.min(j*(M-1)+1,_),Math.min(M*j,_),_))),w().createElement("div",{className:`${A}--pagination__right`},C?w().createElement("span",{className:`${A}--pagination__text ${A}--pagination__page-text ${A}--pagination__unknown-pages-text`},k(M)):w().createElement(w().Fragment,null,w().createElement(Po,{id:`${A}-pagination-select-${R}-right`,className:`${A}--select__page-number`,labelText:`Page of ${q} pages`,inline:!0,hideLabel:!0,onChange:function(e){const t=Number(e.target.value);t>0&&_&&t<=Math.max(Math.ceil(_/j),1)&&(D(t),d&&d({page:t,pageSize:j}))},value:M,disabled:g||o},X),w().createElement("span",{className:`${A}--pagination__text`},p(M,q))),w().createElement("div",{className:`${A}--pagination__control-buttons`},w().createElement(wn,{align:"top",disabled:K,kind:"ghost",className:Q,label:n,"aria-label":n,onClick:function(){const e=M-1;D(e),1===e&&$?.current&&$.current.focus(),d&&d({page:e,pageSize:j,ref:$})},ref:O},Do||(Do=w().createElement($o,null))),w().createElement(wn,{align:"top-end",disabled:Z||i,kind:"ghost",className:Y,label:a,"aria-label":a,onClick:function(){const e=M+1;D(e),e===q&&O?.current&&O.current.focus(),d&&d({page:e,pageSize:j,ref:O})},ref:$},Bo||(Bo=w().createElement(Lo,null))))))}));Vo.propTypes={backwardText:k().string,className:k().string,disabled:k().bool,forwardText:k().string,id:k().oneOfType([k().string,k().number]),isLastPage:k().bool,itemRangeText:k().func,itemText:k().func,itemsPerPageText:k().string,onChange:k().func,page:k().number,pageInputDisabled:k().bool,pageNumberText:k().string,pageRangeText:k().func,pageSize:k().number,pageSizeInputDisabled:k().bool,pageSizes:k().oneOfType([k().arrayOf(k().number.isRequired),k().arrayOf(k().shape({text:k().string.isRequired,value:k().number.isRequired}).isRequired)]).isRequired,pageText:k().func,pagesUnknown:k().bool,size:k().oneOf(["sm","md","lg"]),totalItems:k().number};var Ho=16;function Uo(e){return"".concat(e/Ho,"rem")}function Wo(e){return Uo(8*e)}Uo(320),Uo(672),Uo(16),Uo(1056),Uo(16),Uo(1312),Uo(16),Uo(1584),Uo(24);var qo=[Wo(.25),Wo(.5),Wo(1),Wo(1.5),Wo(2),Wo(3),Wo(4),Wo(5),Wo(6),Wo(8),Wo(10),Wo(12),Wo(20)];Wo(2),Wo(3),Wo(4),Wo(6),Wo(8),Wo(12),Wo(20),Wo(3),Wo(4),Wo(5),Wo(6),Wo(8),Uo(24),Uo(32),Uo(40),Uo(48),Uo(64),Uo(80);const Ko=Array.from({length:qo.length-1}).map(((e,t)=>t+1)),Qo=w().forwardRef((function(e,t){const{as:n="div",children:r,className:o,gap:a,orientation:l="vertical",...i}=e,s=x(),c=b()(o,{[`${s}--stack-${l}`]:!0,[`${s}--stack-scale-${a}`]:"number"==typeof a}),u={...i.style};return"string"==typeof a&&(u[`--${s}-stack-gap`]=a),w().createElement(n,m({},i,{ref:t,className:c,style:u}),r)}));var Zo,Yo,Xo,Go,Jo,ea,ta,na,ra,oa,aa;Qo.propTypes={as:k().elementType,children:k().node,className:k().string,gap:k().oneOfType([k().string,k().oneOf(Ko)]),orientation:k().oneOf(["horizontal","vertical"])};const la=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Zo||(Zo=w().createElement("path",{d:"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z"})),Yo||(Yo=w().createElement("path",{fill:"none",d:"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z","data-icon-path":"inner-path"})),n)})),ia=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Xo||(Xo=w().createElement("path",{d:"M19 21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4zM15.5005 21h2l-3.5005-11h-3l-3.4966 11h1.9988l.6018-2h4.7781l.6184 2zM10.7058 17l1.6284-5.4111.2559-.0024 1.6736 5.4136h-3.5579z"})),Go||(Go=w().createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),n)})),sa=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Jo||(Jo=w().createElement("path",{d:"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),n):20===r||"20"===r||"20px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},ea||(ea=w().createElement("path",{d:"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),n):24===r||"24"===r||"24px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},ta||(ta=w().createElement("path",{d:"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},na||(na=w().createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),n)})),ca=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},ra||(ra=w().createElement("path",{d:"M3.7 6.7L7.5 2.9 7.5 15 8.5 15 8.5 2.9 12.3 6.7 13 6 8 1 3 6z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},oa||(oa=w().createElement("path",{d:"M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"})),n)})),ua=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},aa||(aa=w().createElement("path",{d:"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z"})),n)})),da=w().forwardRef((function(e,t){let{as:n,children:r,className:o,href:a,disabled:l=!1,inline:i=!1,visited:s=!1,renderIcon:c,size:u,target:d,...f}=e;const p=x(),h=b()(`${p}--link`,o,{[`${p}--link--disabled`]:l,[`${p}--link--inline`]:i,[`${p}--link--visited`]:s,[`${p}--link--${u}`]:u}),g={className:n?void 0:h,rel:"_blank"===d?"noopener":void 0,target:d};l?(g.role="link",g["aria-disabled"]=!0):g.href=a;const v=n??"a";return w().createElement(v,m({ref:t},g,f),r,!i&&c&&w().createElement("div",{className:`${p}--link__icon`},w().createElement(c,null)))}));var fa,pa,ha,ma;da.displayName="Link",da.propTypes={as:k().elementType,children:k().node,className:k().string,disabled:k().bool,href:k().string,inline:k().bool,renderIcon:k().oneOfType([k().func,k().object]),size:k().oneOf(["sm","md","lg"]),visited:k().bool};const ga=w().forwardRef((function(e,t){let{children:n,className:r,decorator:o,light:a=!1,slug:l,hasRoundedCorners:i=!1,...s}=e;const c=x(),u=b()(`${c}--tile`,{[`${c}--tile--light`]:a,[`${c}--tile--slug`]:l,[`${c}--tile--slug-rounded`]:l&&i,[`${c}--tile--decorator`]:o,[`${c}--tile--decorator-rounded`]:o&&i},r);return w().createElement("div",m({className:u,ref:t},s),n,l,o&&w().createElement("div",{className:`${c}--tile--inner-decorator`},o))}));ga.displayName="Tile",ga.propTypes={children:k().node,className:k().string,decorator:k().node,hasRoundedCorners:k().bool,light:he(k().bool),slug:he(k().node)};const ba=w().forwardRef((function(e,t){let{children:n,className:r,clicked:o=!1,decorator:a,disabled:l,href:i,light:s,onClick:c=()=>{},onKeyDown:u=()=>{},renderIcon:d,hasRoundedCorners:f,slug:p,...h}=e;const g=x(),y=b()(`${g}--tile`,`${g}--tile--clickable`,{[`${g}--tile--is-clicked`]:o,[`${g}--tile--light`]:s,[`${g}--tile--slug`]:p,[`${g}--tile--slug-rounded`]:p&&f,[`${g}--tile--decorator`]:a,[`${g}--tile--decorator-rounded`]:a&&f},r),[E,S]=(0,v.useState)(o),k=cn("enable-v12-tile-default-icons");k&&(d||(d=sa),l&&(d=Vn));const C=b()({[`${g}--tile--icon`]:!k||k&&!l,[`${g}--tile--disabled-icon`]:k&&l});return w().createElement(da,m({className:y,href:i,tabIndex:i||l?void 0:0,onClick:l?void 0:function(e){e?.persist?.(),S(!E),c(e)},onKeyDown:function(e){e?.persist?.(),be(e,[we,xe])&&S(!E),u(e)},ref:t,disabled:l},h),p||a?w().createElement("div",{className:`${g}--tile-content`},n):n,(!0===p||!0===a)&&w().createElement(ia,{size:"24",className:`${g}--tile--ai-label-icon`}),w().isValidElement(a)&&w().createElement("div",{className:`${g}--tile--inner-decorator`},a),d&&w().createElement(d,{className:C,"aria-hidden":"true"}))}));ba.displayName="ClickableTile",ba.propTypes={children:k().node,className:k().string,clicked:k().bool,decorator:k().oneOfType([k().bool,k().node]),disabled:k().bool,hasRoundedCorners:k().bool,href:k().string,light:he(k().bool),onClick:k().func,onKeyDown:k().func,rel:k().string,renderIcon:k().oneOfType([k().func,k().object])},w().forwardRef((function(e,t){let{children:n,className:r,decorator:o,disabled:a,id:l,light:i,onClick:s=()=>{},onChange:c=()=>{},onKeyDown:u=()=>{},selected:d=!1,tabIndex:f=0,title:p="title",slug:h,hasRoundedCorners:g,...y}=e;const E=x(),S=s,k=u,[C,N]=(0,v.useState)(d),[_,T]=(0,v.useState)(d),A=b()(`${E}--tile`,`${E}--tile--selectable`,{[`${E}--tile--is-selected`]:C,[`${E}--tile--light`]:i,[`${E}--tile--disabled`]:a,[`${E}--tile--slug`]:h,[`${E}--tile--slug-rounded`]:h&&g,[`${E}--tile--decorator`]:o,[`${E}--tile--decorator-rounded`]:o&&g},r);d!==_&&(N(d),T(d));const R=(0,v.useRef)(null);let O=w().isValidElement(h??o)?h??o:null;return O&&"AILabel"===O.type?.displayName&&(O=w().cloneElement(O,{size:"xs",ref:R})),w().createElement("div",m({className:A,onClick:a?void 0:function(e){e.preventDefault(),e?.persist?.(),O&&R.current&&R.current.contains(e.target)||(N(!C),S(e),c(e,C,l))},role:"checkbox","aria-checked":C,onKeyDown:a?void 0:function(e){e?.persist?.(),be(e,[we,xe])&&(e.preventDefault(),N(!C),c(e,C,l)),k(e)},tabIndex:a?void 0:f,ref:t,id:l,onChange:a?void 0:function(e){N(e.target.checked),c(e,C,l)},title:p},y),w().createElement("span",{className:`${E}--tile__checkmark ${E}--tile__checkmark--persistent`},C?fa||(fa=w().createElement(J,null)):pa||(pa=w().createElement(Io,null))),w().createElement(ge,{as:"label",htmlFor:l,className:`${E}--tile-content`},n),h?O:o?w().createElement("div",{className:`${E}--tile--inner-decorator`},O):"")})).propTypes={children:k().node,className:k().string,decorator:k().node,disabled:k().bool,hasRoundedCorners:k().bool,id:k().string,light:he(k().bool),name:he(k().string),onChange:k().func,onClick:k().func,onKeyDown:k().func,selected:k().bool,slug:he(k().node),tabIndex:k().number,title:k().string,value:he(k().oneOfType([k().string,k().number]))};const va=w().forwardRef((function(e,t){let{tabIndex:n=0,className:r,children:o,decorator:a,expanded:l=!1,tileMaxHeight:i=0,tilePadding:s=0,onClick:c,onKeyUp:u,tileCollapsedIconText:d="Interact to expand Tile",tileExpandedIconText:f="Interact to collapse Tile",tileCollapsedLabel:p,tileExpandedLabel:h,light:g,slug:y,hasRoundedCorners:E,...S}=e;const[k,C]=(0,v.useState)(i),[N,_]=(0,v.useState)(s),[T,A]=(0,v.useState)(l),[R,O]=(0,v.useState)(i),[$,L]=(0,v.useState)(s),[I,z]=(0,v.useState)(l),[P,M]=(0,v.useState)(!0),D=(0,v.useRef)(null),B=(0,v.useRef)(null),F=(0,v.useRef)(null),j=(0,v.useRef)(null),V=(0,v.useRef)(null),H=$e([t,V]),U=x();function W(){I&&j.current&&C(j.current.getBoundingClientRect()?.height),D.current&&C(D.current.getBoundingClientRect().height)}function q(e){e?.persist?.(),z(!I),W()}function K(e){e.target!==V.current&&e.target!==F.current&&be(e,[we,xe])&&e.preventDefault()}l!==T&&(z(l),A(l),W()),i!==R&&(C(i),O(i)),s!==$&&(_(s),L(s));const Q=b()(`${U}--tile`,`${U}--tile--expandable`,{[`${U}--tile--is-expanded`]:I,[`${U}--tile--light`]:g},r),Z=b()(`${U}--tile`,`${U}--tile--expandable`,`${U}--tile--expandable--interactive`,{[`${U}--tile--is-expanded`]:I,[`${U}--tile--light`]:g,[`${U}--tile--slug`]:y,[`${U}--tile--slug-rounded`]:y&&E,[`${U}--tile--decorator`]:a,[`${U}--tile--decorator-rounded`]:a&&E},r),Y=b()(`${U}--tile__chevron`,`${U}--tile__chevron--interactive`),X=w().Children.toArray(o);Oe((()=>{if(!V.current||!D.current)return;const e=window.getComputedStyle(V.current,null),{current:t}=D,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);C(n),_(r+o)}),[k]),Oe((()=>{D.current&&B.current&&(hn(B.current)||mn(B.current)||hn(D.current)||mn(D.current)||y||a||M(!1))}),[y,a]),Oe((()=>{V.current&&(V.current.style.maxHeight=I?"":k+N+"px")}),[I,k,N]),(0,v.useEffect)((()=>{if(!D.current)return;const e=new ResizeObserver((e=>{const[t]=e;C(t.contentRect.height)}));return e.observe(D.current),()=>e.disconnect()}),[]);const G=fe("expandable-tile-interactive");let J=w().isValidElement(y??a)?y??a:null;return J&&"AILabel"===J.type?.displayName&&(J=w().cloneElement(J,{size:"xs"})),P?w().createElement("div",m({ref:H,className:Z},S),w().createElement("div",{ref:j},y?J:a?w().createElement("div",{className:`${U}--tile--inner-decorator`},J):"",w().createElement("div",{ref:D,className:`${U}--tile-content`},X[0]),w().createElement("button",{type:"button","aria-expanded":I,"aria-controls":G,onKeyUp:En([u,K]),onClick:En([c,q]),"aria-label":I?f:d,ref:F,className:Y},ha||(ha=w().createElement(te,null))),w().createElement("div",{ref:B,className:`${U}--tile-content`,id:G},X[1]))):w().createElement("button",m({type:"button",ref:H,className:Q,"aria-expanded":I,title:I?f:d},S,{onKeyUp:En([u,K]),onClick:En([c,q]),tabIndex:n}),w().createElement("div",{ref:j},w().createElement("div",{ref:D,className:`${U}--tile-content`},X[0]),w().createElement("div",{className:`${U}--tile__chevron`},w().createElement("span",null,I?h:p),ma||(ma=w().createElement(te,null))),w().createElement("div",{ref:B,className:`${U}--tile-content`},X[1])))}));va.propTypes={children:k().node,className:k().string,decorator:k().node,expanded:k().bool,hasRoundedCorners:k().bool,id:k().string,light:he(k().bool),onClick:k().func,onKeyUp:k().func,slug:he(k().node),tabIndex:k().number,tileCollapsedIconText:k().string,tileCollapsedLabel:k().string,tileExpandedIconText:k().string,tileExpandedLabel:k().string},va.displayName="ExpandableTile";const ya=w().forwardRef((function(e,t){let{children:n}=e;const r=x();return w().createElement("div",{ref:t,className:`${r}--tile-content__above-the-fold`},n)}));ya.propTypes={children:k().node},ya.displayName="TileAboveTheFoldContent";const wa=w().forwardRef((function(e,t){let{children:n}=e;const r=x();return w().createElement("div",{ref:t,className:`${r}--tile-content__below-the-fold`},n)}));wa.propTypes={children:k().node},wa.displayName="TileBelowTheFoldContent";var Ea=n(9772),xa=n.n(Ea);const Sa={NONE:"NONE",DESC:"DESC",ASC:"ASC"},ka=(e,t)=>`${e}:${t}`,Ca=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return null===e&&(e=""),null===t&&(t=""),"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?Na(e,t,n):"object"==typeof e&&"object"==typeof t&&"string"==typeof e.props?.children&&"string"==typeof t.props?.children?Na(e.props.children,t.props.children,n):Na(""+e,""+t,n)},Na=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return isNaN(e)||isNaN(parseFloat(e))||isNaN(t)||isNaN(parseFloat(t))?e.localeCompare(t,n):e.localeCompare(t,n,{numeric:!0})},_a=(e,t,n)=>{let{sortDirection:r,sortStates:o,locale:a}=n;return r===o.ASC?Ca(e,t,a):Ca(t,e,a)},Ta=Sa.NONE,Aa=(e,t,n)=>{let{key:r}=n;const{sortDirection:o,sortHeaderKey:a}=t,l=(i=o,r===a?"NONE"===i?Sa.ASC:"ASC"===i?Sa.DESC:Sa.NONE:Sa.ASC);var i;return Ra(e,t,r,l)},Ra=(e,t,n,r)=>{const{rowIds:o,cellsById:a,initialRowOrder:l}=t,{locale:i,sortRow:s}=e,c=r!==Sa.NONE?(e=>{let{rowIds:t,cellsById:n,sortDirection:r,key:o,locale:a="en",sortRow:l=_a}=e;return t.slice().sort(((e,t)=>{const i=n[ka(e,o)],s=n[ka(t,o)];return l(i&&i.value,s&&s.value,{key:o,sortDirection:r,locale:a,sortStates:Sa,compare:Ca,rowIds:[e,t]})}))})({rowIds:o,cellsById:a,sortDirection:r,key:n,locale:i,sortRow:s}):l;return{sortHeaderKey:n,sortDirection:r,rowIds:c}};var Oa=(e,t)=>{const{rowIds:n,rowsById:r,cellsById:o}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{rowsById:r}=n,o=new Array(e.length),a={},l={};return e.forEach(((e,n)=>{o[n]=e.id;const{id:i,isSelected:s=!1,isExpanded:c=!1,disabled:u=!1}=e;a[i]={id:i,isSelected:s,isExpanded:c,disabled:u,cells:new Array(t.length)},r&&void 0!==r[e.id]&&(a[e.id].isSelected=r[e.id].isSelected,a[e.id].isExpanded=r[e.id].isExpanded),t.forEach(((t,n)=>{let{key:r,slug:o,decorator:i}=t;const s=ka(e.id,r);l[s]={id:s,value:e[r],isEditable:!1,isEditing:!1,isValid:!0,errors:null,hasAILabelHeader:!(!o&&"AILabel"!==i?.type?.displayName),info:{header:r}},a[e.id].cells[n]=s}))})),{rowIds:o,rowsById:a,cellsById:l}}(e.rows,e.headers,t),a={rowIds:n,rowsById:r,cellsById:o,sortDirection:t.sortDirection||Ta,sortHeaderKey:t.sortHeaderKey||null,initialRowOrder:n.slice(),filterInputValue:t.filterInputValue||null,shouldShowBatchActions:t.shouldShowBatchActions||!1};if(t.sortDirection&&t.sortHeaderKey){const{rowIds:n}=Ra(e,a,t.sortHeaderKey,t.sortDirection);a.rowIds=n}return a.isExpandedAll=a.rowIds.every((e=>!0===a.rowsById[e].isExpanded)),a},$a=(e,t,n)=>e.map((e=>({...t[e],cells:t[e].cells.map((e=>n[e]))})));const La=e=>{let{rowIds:t,headers:n,cellsById:r,inputValue:o,getCellId:a}=e;return t.filter((e=>n.some((t=>{let{key:n}=t;const l=a(e,n);return"boolean"!=typeof r[l].value&&(""+r[l].value).toLowerCase().includes(o.toLowerCase())}))))},Ia=(0,v.createContext)({titleId:void 0,descriptionId:void 0}),za=(e,t)=>{if(e.children.length>0)return!1;const n=window.getComputedStyle(e);t.font=n.font?n.font:`${n.fontSize}" "${n.fontFamily}`;const r=t?.measureText(e.textContent??"");let o=r.width??0;const a=n.letterSpacing?.split("px");a&&a.length&&!isNaN(Number(a[0]))&&(o+=Number(a[0])*(e.textContent?.length??0));const l=n.paddingLeft?.split("px");l&&l.length&&!isNaN(Number(l[0]))&&(o+=Number(l[0]));const i=n.paddingLeft?.split("px");return i&&i.length&&!isNaN(Number(i[0]))&&(o+=Number(i[0])),o>e.getBoundingClientRect().width},Pa=e=>{let{className:t,children:n,useZebraStyles:r,size:o="lg",isSortable:a=!1,useStaticWidth:l,stickyHeader:i,overflowMenuOnHover:s=!0,experimentalAutoAlign:c=!1,tabIndex:u,...d}=e;const{titleId:f,descriptionId:p}=(0,v.useContext)(Ia),h=x(),[g,y]=(0,v.useState)(!1),E=(0,v.useRef)(null),S=b()(`${h}--data-table`,t,{[`${h}--data-table--${o}`]:o,[`${h}--data-table--sort`]:a,[`${h}--data-table--zebra`]:r,[`${h}--data-table--static`]:l,[`${h}--data-table--sticky-header`]:i,[`${h}--data-table--visible-overflow-menu`]:!s}),k=(0,v.useCallback)((function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?E.current?.classList.add(`${h}--data-table--top-aligned-body`):E.current?.classList.remove(`${h}--data-table--top-aligned-body`)}),[h]),C=(0,v.useCallback)((function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?E.current?.classList.add(`${h}--data-table--top-aligned-header`):E.current?.classList.remove(`${h}--data-table--top-aligned-header`)}),[h]),N=(0,v.useCallback)((()=>{if(c){const e=document.createElement("canvas").getContext("2d");if(E.current&&e){const t=Array.from(E.current.querySelectorAll("td")).some((t=>za(t,e))),n=Array.from(E.current.querySelectorAll("th")).some((t=>{const n=t.querySelector(`.${h}--table-header-label`);return n&&za(n,e)}));k(t),C(n)}}else k(!1),C(!1)}),[c,k,C,h]);Le("resize",Qn(N,100));const _=(0,v.useCallback)((()=>{const e=E?.current?.parentNode,t=E?.current?.firstChild;y(t?.scrollWidth>e?.clientWidth)}),[]);Le("resize",Qn(_,100)),Oe((()=>{_()}),[_]),"undefined"!=typeof document&&document?.fonts?.status&&"loaded"!==document.fonts.status&&document.fonts.ready.then((()=>{N()})),Oe((()=>{N()}),[N,o]);const T=w().createElement("div",{className:`${h}--data-table-content`,tabIndex:u??(g?0:void 0)},w().createElement("table",m({"aria-labelledby":f,"aria-describedby":p},d,{className:S,ref:E}),n));return i?w().createElement("section",{className:`${h}--data-table_inner-container`},T):T};Pa.propTypes={children:k().node,className:k().string,experimentalAutoAlign:k().bool,isSortable:k().bool,overflowMenuOnHover:k().bool,size:k().oneOf(["xs","sm","md","lg","xl"]),stickyHeader:k().bool,useStaticWidth:k().bool,useZebraStyles:k().bool,tabIndex:k().number};const Ma=e=>{let{name:t,className:n,type:r}=e;function o(e){let{className:t,...o}=e;const a=x(),l=b()("function"==typeof n?n(a):n,t);return w().createElement(r,{...o,className:l||void 0})}return o.displayName=t,o.propTypes={className:k().string},o},Da=Ma({name:"TableActionList",type:"div",className:e=>`${e}--action-list`}),Ba=e=>{let{renderIcon:t=la,iconDescription:n="Add",...r}=e;return w().createElement(Sn,m({renderIcon:t,iconDescription:n},r))};Ba.propTypes={hasIconOnly:k().bool,iconDescription:e=>{if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},renderIcon:k().oneOfType([k().func,k().object])};const Fa={"carbon.table.batch.cancel":"Cancel","carbon.table.batch.items.selected":"items selected","carbon.table.batch.item.selected":"item selected","carbon.table.batch.selectAll":"Select all"},ja=function(e){let{totalSelected:t,totalCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{totalSelected:0,totalCount:0};return"carbon.table.batch.cancel"===e?Fa[e]:"carbon.table.batch.selectAll"===e?`${Fa[e]} (${n})`:`${t} ${Fa[e]}`},Va=e=>{let{className:t,children:n,shouldShowBatchActions:r,totalSelected:o,totalCount:a,onCancel:l,onSelectAll:i,translateWithId:s=ja,...c}=e;const[u,d]=w().useState(!1),f=x(),p=b()({[`${f}--batch-actions`]:!0,[`${f}--batch-actions--active`]:r},t),h=b()(`${f}--batch-summary`,{[`${f}--batch-summary__scroll`]:u});return w().createElement("div",m({onScroll:()=>{d(!u)},"aria-hidden":!r,className:p},c),w().createElement("div",{className:h},w().createElement("p",{className:`${f}--batch-summary__para`},w().createElement(ge,null,s(o>1||0===o?"carbon.table.batch.items.selected":"carbon.table.batch.item.selected",{totalSelected:o}))),i&&w().createElement(w().Fragment,null,w().createElement("span",{className:`${f}--batch-summary__divider`},"|"),w().createElement(Sn,{onClick:i,tabIndex:r?0:-1},s("carbon.table.batch.selectAll",{totalCount:a})))),w().createElement(Da,null,n,w().createElement(Sn,{className:`${f}--batch-summary__cancel`,tabIndex:r?0:-1,onClick:l},s("carbon.table.batch.cancel"))))};Va.translationKeys=["carbon.table.batch.cancel","carbon.table.batch.items.selected","carbon.table.batch.item.selected","carbon.table.batch.selectAll"],Va.propTypes={children:k().node,className:k().string,onCancel:k().func.isRequired,onSelectAll:k().func,shouldShowBatchActions:k().bool,totalCount:k().number,totalSelected:k().number.isRequired,translateWithId:k().func};const Ha=e=>{let{children:t,className:n,...r}=e;return w().createElement("tbody",m({"aria-live":"polite",className:n},r),t)};Ha.propTypes={"aria-live":k().oneOf(["polite","assertive","off"]),children:k().node,className:k().string};const Ua=w().forwardRef(((e,t)=>{let{children:n,className:r,hasAILabelHeader:o,colSpan:a,...l}=e;const i=x(),s=b()(r,{[`${i}--table-cell--column-slug`]:o});return w().createElement("td",m({className:s||void 0,ref:t,colSpan:a},l),n)}));Ua.displayName="TableCell";const Wa=e=>{let{className:t,children:n,title:r,description:o,stickyHeader:a,useStaticWidth:l,...i}=e;const s=fe("tc"),c=`${s}-title`,u=`${s}-description`,d=x(),f=b()(t,`${d}--data-table-container`,{[`${d}--data-table--max-width`]:a,[`${d}--data-table-container--static`]:l}),p=(0,v.useMemo)((()=>({titleId:r?c:void 0,descriptionId:o?u:void 0})),[r,o,c,u]);return w().createElement(Ia.Provider,{value:p},w().createElement("div",m({},i,{className:f}),r&&w().createElement("div",{className:`${d}--data-table-header`},w().createElement("h4",{className:`${d}--data-table-header__title`,id:c},r),w().createElement("p",{className:`${d}--data-table-header__description`,id:u},o)),n))};Wa.propTypes={children:k().node,className:k().string,description:k().node,stickyHeader:k().bool,title:k().node,useStaticWidth:k().bool};const qa=e=>{let{className:t,decorator:n}=e;const r=x(),o=b()({...t&&{[t]:!0},[`${r}--table-column-decorator`]:!0,[`${r}--table-column-decorator--active`]:n});let a=w().isValidElement(n)?n:null;return a&&"AILabel"===a.type?.displayName&&(a=w().cloneElement(a,{size:"mini"})),w().createElement("td",{className:o},a)};qa.displayName="TableDecoratorRow",qa.propTypes={className:k().string,decorator:k().node};const Ka=e=>{let{"aria-controls":t,"aria-label":n,ariaLabel:r,className:o,enableExpando:a,enableToggle:l,id:i="expand",isExpanded:s,onExpand:c,expandIconDescription:u,children:d,...f}=e;const p=x(),h=b()(`${p}--table-expand`,o),g=s?"collapsed":void 0;return w().createElement("th",m({scope:"col",className:h,"data-previous-value":g,id:i},f),a||l?w().createElement("button",{type:"button",className:`${p}--table-expand__button`,onClick:c,title:u,"aria-label":r||n,"aria-expanded":s,"aria-controls":t},w().createElement(ne,{className:`${p}--table-expand__svg`,"aria-label":u})):null,d)};Ka.propTypes={"aria-controls":k().string,"aria-label":k().string,ariaLabel:k().string,children:k().node,className:k().string,enableExpando:he(k().bool),enableToggle:k().bool,expandIconDescription:k().string,id:k().string,isExpanded:Xn(0,k().bool),onExpand:k().oneOfType([Xn(0,k().func),Xn(0,k().func)])};const Qa=w().forwardRef(((e,t)=>{let{"aria-controls":n,"aria-label":r,ariaLabel:o,className:a,children:l,isExpanded:i,onExpand:s,expandIconDescription:c,isSelected:u,expandHeader:d="expand",...f}=e;const p=x();let h;const g=w().Children.toArray(l).map((e=>{if("TableSlugRow"===e.type?.displayName||"TableDecoratorRow"===e.type?.displayName)return(e.props.slug||"AILabel"===e.props.decorator?.type.displayName)&&(h=!0),e})),v=w().Children.toArray(l).map((e=>{if("TableSlugRow"!==e.type?.displayName&&"TableDecoratorRow"!==e.type?.displayName)return e})),y=b()({[`${p}--parent-row`]:!0,[`${p}--expandable-row`]:i,[`${p}--data-table--selected`]:u,[`${p}--data-table--slug-row ${p}--data-table--ai-label-row`]:h},a),E=i?"collapsed":void 0;return w().createElement("tr",m({},f,{ref:t,className:y,"data-parent-row":!0}),g,w().createElement(Ua,{className:`${p}--table-expand`,"data-previous-value":E,headers:d},w().createElement("button",{type:"button",className:`${p}--table-expand__button`,onClick:s,title:c,"aria-label":o||r,"aria-expanded":i,"aria-controls":n},w().createElement(ne,{className:`${p}--table-expand__svg`,"aria-label":c}))),v)}));Qa.propTypes={"aria-controls":k().string,"aria-label":k().string,ariaLabel:k().string,children:k().node,className:k().string,expandHeader:k().string,expandIconDescription:k().string,isExpanded:k().bool,isSelected:k().bool,onExpand:k().func.isRequired},Qa.displayName="TableExpandRow";const Za=e=>{let{className:t,children:n,colSpan:r,...o}=e;const a=(0,v.useRef)(null),l=x(),i=b()(`${l}--expandable-row`,t),s=e=>{if(a&&a.current&&a.current.previousElementSibling){const t=a.current.previousElementSibling;"enter"===e?t.classList.add(`${l}--expandable-row--hover`):t.classList.remove(`${l}--expandable-row--hover`)}};return w().createElement("tr",m({ref:a,onMouseEnter:()=>s("enter"),onMouseLeave:()=>s("leave")},o,{className:i,"data-child-row":!0}),w().createElement(Ua,{colSpan:r},w().createElement("div",{className:`${l}--child-row-inner-container`},n)))};Za.propTypes={children:k().node,className:k().string,colSpan:k().number.isRequired};const Ya=Ma({name:"TableHead",type:"thead"}),Xa="col",Ga={buttonDescription:"carbon.table.header.icon.description"},Ja=(e,t)=>t&&e===Ga.buttonDescription?t.isSortHeader&&Sa?t.sortDirection===Sa.NONE?`Click to sort rows by ${t.header} header in ascending order`:t.sortDirection===Sa.ASC?`Click to sort rows by ${t.header} header in descending order`:`Click to unsort rows by ${t.header} header`:`Click to sort rows by ${t.header} header in ascending order`:"",el={[Sa.NONE]:"none",[Sa.ASC]:"ascending",[Sa.DESC]:"descending"},tl=w().forwardRef((function(e,t){let{className:n,children:r,colSpan:o,decorator:a,isSortable:l=!1,isSortHeader:i,onClick:s,scope:c=Xa,sortDirection:u,translateWithId:d=Ja,slug:f,id:p,...h}=e;const g=x(),y=fe("table-sort"),E=(0,v.useRef)(null);let S,k=w().isValidElement(f??a)?f??a:null;k&&"AILabel"===k.type?.displayName&&(S=!0,k=w().cloneElement(k,{size:"mini",ref:E}));const C=b()({[`${g}--table-header-label`]:!0,[`${g}--table-header-label--slug ${g}--table-header-label--ai-label`]:S,[`${g}--table-header-label--decorator`]:a});if(!l)return w().createElement("th",m({},h,{id:p,className:n,scope:c,colSpan:o,ref:t}),r?w().createElement("div",{className:C},r,w().createElement("div",{className:`${g}--table-header-label--decorator-inner`},k)):null);const N=b()(n,{[`${g}--table-sort`]:!0,[`${g}--table-sort--active`]:i&&u!==Sa.NONE,[`${g}--table-sort--descending`]:i&&u===Sa.DESC}),_=i&&u?el[u]:"none",T=d&&d("carbon.table.header.icon.description",{header:r,sortDirection:u,isSortHeader:i,sortStates:Sa}),A=b()(n,`${g}--table-sort__header`,{[`${g}--table-sort__header--ai-label`]:S,[`${g}--table-sort__header--decorator`]:a});return w().createElement("th",{id:p,"aria-sort":_,className:A,colSpan:o,ref:t,scope:c},w().createElement("div",{className:`${g}--table-sort__description`,id:y},T),w().createElement("button",m({type:"button","aria-describedby":y,className:N,onClick:e=>{if(!(S&&E.current&&E.current.contains(e.target)))return s?s(e):void 0}},h),w().createElement("span",{className:`${g}--table-sort__flex`},w().createElement("div",{className:`${g}--table-header-label`},r),w().createElement(ca,{size:20,className:`${g}--table-sort__icon`}),w().createElement(ua,{size:20,className:`${g}--table-sort__icon-unsorted`}),w().createElement("div",{className:`${g}--table-header-label--decorator-inner`},k))))}));tl.propTypes={children:k().node,className:k().string,colSpan:k().number,id:k().string,isSortHeader:k().bool,isSortable:k().bool,onClick:k().func,scope:k().string,sortDirection:k().oneOf(Object.values(Sa)),translateWithId:k().func},tl.translationKeys=Object.values(Ga),tl.displayName="TableHeader";const nl=e=>{const t=x();let n;e?.children&&w().Children.toArray(e.children).map((e=>{"TableSlugRow"!==e.type?.displayName&&"TableDecoratorRow"!==e.type?.displayName||(e.props.slug||"AILabel"===e.props.decorator?.type.displayName)&&(n=!0)}));const r=b()(e.className,{[`${t}--data-table--selected`]:e.isSelected,[`${t}--data-table--slug-row ${t}--data-table--ai-label-row`]:n}),{ariaLabel:o,"aria-label":a,"aria-controls":l,onExpand:i,isExpanded:s,isSelected:c,...u}=e;return r&&(u.className=r),w().createElement("tr",u)};nl.propTypes={className:k().string,isSelected:k().bool};const rl=w().forwardRef((function(e,t){const{"aria-label":n,ariaLabel:r,checked:o=!1,disabled:a,id:l,indeterminate:i,name:s,onChange:c=()=>{},onClick:u,onKeyDown:d,title:f}=e,p=x(),h=(0,v.useRef)(null),m=$e([h,t]),g={checked:o,className:`${p}--checkbox`,disabled:a,id:l,name:s,onClick:u?function(e){i&&(e.target.checked=!1),u?.(e)}:u,onChange:e=>{c(e.target.checked,l,e)},onKeyDown:d,ref:m,type:"checkbox"};return i&&(g.checked=!1),(0,v.useEffect)((()=>{h?.current&&(h.current.indeterminate=i||!1)}),[i]),w().createElement("div",{className:`${p}--checkbox--inline`},w().createElement("input",g),w().createElement("label",{htmlFor:l,className:`${p}--checkbox-label`,title:f,onClick:e=>{e.stopPropagation()}},w().createElement("span",{className:`${p}--visually-hidden`},r||n)))}));rl.propTypes={"aria-label":k().string.isRequired,ariaLabel:he(k().string.isRequired),checked:k().bool,disabled:k().bool,id:k().string.isRequired,indeterminate:k().bool,name:k().string.isRequired,onChange:k().func,onClick:k().func,onKeyDown:k().func,title:k().string};const ol=e=>{let{ariaLabel:t="Select all rows in the table","aria-label":n,checked:r,id:o,indeterminate:a,name:l,onSelect:i,disabled:s,className:c}=e;const u=x();return w().createElement("th",{"aria-live":"off",scope:"col",className:b()(`${u}--table-column-checkbox`,c)},w().createElement(rl,{"aria-label":n||t,checked:r,id:o,indeterminate:a,name:l,onClick:i,disabled:s}))};ol.propTypes={"aria-label":k().string,ariaLabel:he(k().string),checked:k().bool,className:k().string,disabled:k().bool,id:k().string.isRequired,indeterminate:k().bool,name:k().string.isRequired,onSelect:k().func.isRequired};const al=w().forwardRef(((e,t)=>{const{className:n,decorator:r,disabled:o,hideLabel:a,id:l,labelPosition:i="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:f,required:p,...h}=e,g=x(),y=fe("radio-button"),E=l||y,S=b()(`${g}--radio-button__label-text`,{[`${g}--visually-hidden`]:a}),k=b()(n,`${g}--radio-button-wrapper`,{[`${g}--radio-button-wrapper--label-${i}`]:"right"!==i,[`${g}--radio-button-wrapper--slug`]:f,[`${g}--radio-button-wrapper--decorator`]:r}),C=(0,v.useRef)(null);let N=w().isValidElement(f??r)?f??r:null;if(N&&"AILabel"===N.type?.displayName){const e="inline"===N.props?.kind?"md":"mini";N=w().cloneElement(N,{size:e})}return w().createElement("div",{className:k},w().createElement("input",m({},h,{type:"radio",className:`${g}--radio-button`,onChange:function(e){u(d,c,e)},id:E,ref:Zn(C,t),disabled:o,value:d,name:c,required:p})),w().createElement("label",{htmlFor:E,className:`${g}--radio-button__label`},w().createElement("span",{className:`${g}--radio-button__appearance`}),s&&w().createElement(ge,{className:S},s,f?N:r?w().createElement("div",{className:`${g}--radio-button-wrapper-inner--decorator`},N):"")))}));al.displayName="RadioButton",al.propTypes={checked:k().bool,className:k().string,decorator:k().node,defaultChecked:k().bool,disabled:k().bool,hideLabel:k().bool,id:k().string,labelPosition:k().oneOf(["right","left"]),labelText:k().node.isRequired,name:k().string,onChange:k().func,onClick:k().func,required:k().bool,slug:he(k().node),value:k().oneOfType([k().string,k().number])};const ll=e=>{let{ariaLabel:t,"aria-label":n,checked:r,id:o,name:a,onSelect:l,onChange:i,disabled:s,radio:c,className:u}=e;const d=x(),f=fe(),p=i?(e,t,n)=>{i(!!e,t||"",n)}:void 0,h=i?(e,t,n)=>{i(e,t,n)}:void 0,g={id:o,name:a||f,onClick:l,checked:r,disabled:s},v=n||t||"",y=b()(`${d}--table-column-checkbox`,{...u&&{[u]:!0},[`${d}--table-column-radio`]:c});return w().createElement("td",{className:y,"aria-live":"off"},c?w().createElement(al,m({},g,{labelText:v,onChange:p,hideLabel:!0})):w().createElement(rl,m({},g,{"aria-label":v,onChange:h})))};ll.propTypes={"aria-label":k().string,ariaLabel:he(k().string),checked:k().bool,className:k().string,disabled:k().bool,id:k().string.isRequired,name:k().string.isRequired,onChange:k().func,onSelect:k().func.isRequired,radio:k().bool};const il={},sl=e=>{let{className:t,slug:n}=e;(0,v.useEffect)((()=>{var e;(e="TableSlugRow")&&(il[e]||(il[e]=!0))}),[]);const r=x(),o=b()({...t&&{[t]:!0},[`${r}--table-column-slug`]:!0,[`${r}--table-column-slug--active`]:n});let a;return n&&(a=w().cloneElement(n,{size:"mini"})),w().createElement("td",{className:o},a)};sl.displayName="TableSlugRow",sl.propTypes={className:k().string,slug:k().node};const cl=e=>{let{"aria-label":t="data table toolbar",ariaLabel:n,children:r,size:o,...a}=e;const l=x(),i=b()({[`${l}--table-toolbar`]:!0,[`${l}--table-toolbar--${o}`]:o});return w().createElement("section",m({"aria-label":n||t},a,{className:i}),r)};cl.propTypes={"aria-label":k().string,ariaLabel:he(k().string),children:k().node,size:k().oneOf(["sm","lg"])};const ul=w().forwardRef(((e,t)=>{let{children:n,...r}=e;return w().createElement(No,m({ref:t,itemText:n},r))}));ul.displayName="TableToolbarAction",ul.propTypes={children:k().node,className:k().string,onClick:k().func.isRequired};const dl=Ma({name:"TableToolbarContent",type:"div",className:e=>`${e}--toolbar-content`});var fl,pl;const hl=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},fl||(fl=w().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"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},pl||(pl=w().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"})),n)}));var ml;const gl=w().forwardRef((function(e,t){let{autoComplete:n="off",className:r,closeButtonLabelText:o="Clear search input",defaultValue:a,disabled:l,isExpanded:i=!0,id:s,labelText:c,light:u,onChange:d=()=>{},onClear:f=()=>{},onKeyDown:p,onExpand:h,placeholder:g="Search",renderIcon:y,role:E="searchbox",size:S="md",type:k="text",value:C,...N}=e;const _=!(!C&&!a),T=x(),{isFluid:A}=(0,v.useContext)(zo),R=(0,v.useRef)(null),O=$e([t,R]),$=(0,v.useRef)(null),L=fe("search-input"),I=s||L,z=`${I}-search`,[P,M]=(0,v.useState)(_||!1),[D,B]=(0,v.useState)(C),F=b()({[`${T}--search`]:!0,[`${T}--search--sm`]:"sm"===S,[`${T}--search--md`]:"md"===S,[`${T}--search--lg`]:"lg"===S,[`${T}--search--light`]:u,[`${T}--search--disabled`]:l,[`${T}--search--fluid`]:A},r),j=b()({[`${T}--search-close`]:!0,[`${T}--search-close--hidden`]:!P||!i});function V(){!C&&R.current&&(R.current.value="");const e=Object.assign({},R.current,{value:""});d({target:e,type:"change"}),f(),M(!1),function(e){const t=e.current||e;t&&t.focus&&document.activeElement!==t&&t.focus()}(R)}return C!==D&&(M(!!C),B(C)),w().createElement("div",{role:"search","aria-label":g,className:F},w().createElement("div",{"aria-label":h?"button":void 0,"aria-labelledby":h?z:void 0,role:h?"button":void 0,className:`${T}--search-magnifier`,onClick:h,onKeyDown:function(e){(ve(e,we)||ve(e,xe))&&(e.stopPropagation(),h&&h(e))},tabIndex:h&&!i?0:-1,ref:$,"aria-expanded":!(!h||!i)||!(h&&!i)&&void 0,"aria-controls":h?I:void 0},w().createElement(bl,{icon:y})),w().createElement("label",{id:z,htmlFor:I,className:`${T}--label`},c),w().createElement("input",m({autoComplete:n,className:`${T}--search-input`,defaultValue:a,disabled:l,role:E,ref:O,id:I,onChange:En([d,function(e){M(""!==e.target.value)}]),onKeyDown:En([p,function(e){ve(e,Ee)&&(e.stopPropagation(),R.current?.value?V():h&&i&&$.current?.focus())}]),placeholder:g,type:k,value:C,tabIndex:h&&!i?-1:void 0},N)),w().createElement("button",{"aria-label":o,className:j,disabled:l,onClick:V,title:o,type:"button"},ml||(ml=w().createElement(re,null))))}));function bl(e){let{icon:t}=e;const n=x();return t?w().createElement(t,{className:`${n}--search-magnifier-icon`}):w().createElement(hl,{className:`${n}--search-magnifier-icon`})}gl.displayName="Search",gl.propTypes={autoComplete:k().string,className:k().string,closeButtonLabelText:k().string,defaultValue:k().oneOfType([k().string,k().number]),disabled:k().bool,id:k().string,isExpanded:k().bool,labelText:k().node.isRequired,light:he(k().bool),onChange:k().func,onClear:k().func,onExpand:k().func,onKeyDown:k().func,placeholder:k().string,renderIcon:k().oneOfType([k().func,k().object]),role:k().string,size:k().oneOf(["sm","md","lg"]),type:k().string,value:k().oneOfType([k().string,k().number])},bl.propTypes={icon:k().oneOfType([k().func,k().object])};const vl={"carbon.table.toolbar.search.label":"Filter table","carbon.table.toolbar.search.placeholder":"Filter table"},yl=e=>vl[e],wl=e=>{let{className:t,searchContainerClass:n,onChange:r,onClear:o=$n,translateWithId:a=yl,placeholder:l,labelText:i,expanded:s,defaultExpanded:c,defaultValue:u,disabled:d,onExpand:f,persistent:p=!1,id:h,onBlur:g,onFocus:y,size:E="lg",tabIndex:S="0",...k}=e;const{current:C}=(0,v.useRef)(void 0!==s),[N,_]=(0,v.useState)(Boolean(c||u)),T=C?s:N,[A,R]=(0,v.useState)(u||""),O=fe("table-toolbar-search"),[$,L]=(0,v.useState)(null),I=x();(0,v.useEffect)((()=>{$&&($.current?.querySelector?.("input")?.focus(),L(null))}),[$]),(0,v.useEffect)((()=>{u&&r?.("",u)}),[]);const z=b()(t,{[n]:n,[`${I}--toolbar-search-container-active`]:T,[`${I}--toolbar-search-container-disabled`]:d,[`${I}--toolbar-search-container-expandable`]:!p,[`${I}--toolbar-search-container-persistent`]:p}),P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!T;d||(C||p||_(t),f&&f(e,t))};return w().createElement(gl,m({disabled:d,className:z,value:A,id:void 0!==h?h:O,labelText:i||a("carbon.table.toolbar.search.label"),placeholder:l||a("carbon.table.toolbar.search.placeholder"),onChange:e=>{R(e.target.value),r&&r(e,e.target.value)},onClear:o,onFocus:y?e=>y(e,P):e=>P(e,!0),onBlur:g?e=>g(e,P):e=>!A&&P(e,!1),size:E,tabIndex:S},k))};var El,xl,Sl,kl;wl.propTypes={children:k().node,className:k().string,defaultExpanded:k().bool,defaultValue:k().string,disabled:k().bool,expanded:k().bool,id:k().string,labelText:k().string,onBlur:k().func,onChange:k().func,onClear:k().func,onExpand:k().func,onFocus:k().func,persistent:k().bool,placeholder:k().string,searchContainerClass:k().string,size:k().oneOf(["sm","md","lg"]),tabIndex:k().oneOfType([k().number,k().string]),translateWithId:k().func};const Cl=w().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},El||(El=w().createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),xl||(xl=w().createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n):w().createElement(z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Sl||(Sl=w().createElement("path",{d:"M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z"})),kl||(kl=w().createElement("path",{d:"M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z"})),n)})),Nl="Settings",_l=e=>{let{className:t,renderIcon:n=Cl,iconDescription:r=Nl,children:o,menuOptionsClass:a,...l}=e;const i=x(),s=b()(t,`${i}--toolbar-action ${i}--overflow-menu`),c=b()(a,`${i}--toolbar-action__menu`);return w().createElement(Co,m({"aria-label":r,renderIcon:n,className:s,title:r,iconDescription:r,menuOptionsClass:c,flipped:!0},l),o)};_l.propTypes={children:k().node.isRequired,className:k().string,iconDescription:k().string,menuOptionsClass:k().string,renderIcon:k().oneOfType([k().func,k().object])};const Tl=oe(),Al={expandRow:"carbon.table.row.expand",collapseRow:"carbon.table.row.collapse",expandAll:"carbon.table.all.expand",collapseAll:"carbon.table.all.collapse",selectAll:"carbon.table.all.select",unselectAll:"carbon.table.all.unselect",selectRow:"carbon.table.row.select",unselectRow:"carbon.table.row.unselect"},Rl={[Al.expandAll]:"Expand all rows",[Al.collapseAll]:"Collapse all rows",[Al.expandRow]:"Expand current row",[Al.collapseRow]:"Collapse current row",[Al.selectAll]:"Select all rows",[Al.unselectAll]:"Unselect all rows",[Al.selectRow]:"Select row",[Al.unselectRow]:"Unselect row"},Ol=e=>Rl[e];class $l extends w().Component{constructor(e){var t;super(e),t=this,h(this,"instanceId",void 0),h(this,"getHeaderProps",(e=>{let{header:t,onClick:n,isSortable:r=this.props.isSortable,...o}=e;const{sortDirection:a,sortHeaderKey:l}=this.state;return{...o,key:t.key,sortDirection:a,isSortable:r,isSortHeader:l===t.key,slug:t.slug,decorator:t.decorator,onClick:e=>{const r=Aa(this.props,this.state,{key:t.key});this.setState(r,(()=>{n&&this.handleOnHeaderClick(n,{sortHeaderKey:t.key,sortDirection:r.sortDirection})(e)}))}}})),h(this,"getExpandHeaderProps",(function(){let{onClick:e,onExpand:n,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{translateWithId:o=Ol}=t.props,{isExpandedAll:a,rowIds:l,rowsById:i}=t.state,s=a||l.every((e=>i[e].isExpanded)),c=s?Al.collapseAll:Al.expandAll;return{...r,ariaLabel:o(c),"aria-label":o(c),"aria-controls":l.map((e=>`expanded-row-${e}`)).join(" "),isExpanded:s,onExpand:En([t.handleOnExpandAll,n,e&&t.handleOnExpandHeaderClick(e,{isExpanded:s})])}})),h(this,"handleOnHeaderClick",((e,t)=>n=>e(n,t))),h(this,"handleOnExpandHeaderClick",((e,t)=>n=>e(n,t))),h(this,"getRowProps",(e=>{let{row:t,onClick:n,...r}=e;const{translateWithId:o=Ol}=this.props,a=t.isExpanded?Al.collapseRow:Al.expandRow;return{...r,key:t.id,onExpand:En([this.handleOnExpandRow(t.id),n]),isExpanded:t.isExpanded,ariaLabel:o(a),"aria-label":o(a),"aria-controls":`expanded-row-${t.id}`,isSelected:t.isSelected,disabled:t.disabled}})),h(this,"getExpandedRowProps",(e=>{let{row:t,...n}=e;return{...n,id:`expanded-row-${t.id}`}})),h(this,"getSelectionProps",(function(){let{onClick:e,row:n,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{translateWithId:o=Ol}=t.props;if(n){const a=n.isSelected?Al.unselectRow:Al.selectRow;return{...r,checked:n.isSelected,onSelect:En([t.handleOnSelectRow(n.id),e]),id:`${t.getTablePrefix()}__select-row-${n.id}`,name:`select-row-${t.instanceId}`,ariaLabel:o(a),"aria-label":o(a),disabled:n.disabled,radio:t.props.radio}}const a=t.state.rowIds.length,l=t.getSelectedRows().length,i=a>0&&l===a,s=a>0&&l>0&&l!==a,c=i||s?Al.unselectAll:Al.selectAll;return{...r,ariaLabel:o(c),"aria-label":o(c),checked:i,id:`${t.getTablePrefix()}__select-all`,indeterminate:s,name:"select-all",onSelect:En([t.handleSelectAll,e])}})),h(this,"getToolbarProps",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{size:n}=t.props;return{...e,size:"xs"===n||"sm"===n?"sm":void 0}})),h(this,"getBatchActionProps",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{shouldShowBatchActions:n}=t.state,r=t.getSelectedRows().length;return{onSelectAll:void 0,totalCount:t.state.rowIds.length||0,...e,shouldShowBatchActions:n&&r>0,totalSelected:r,onCancel:t.handleOnCancel}})),h(this,"getTableProps",(()=>{const{useZebraStyles:e,size:t="lg",isSortable:n,useStaticWidth:r,stickyHeader:o,overflowMenuOnHover:a=!1,experimentalAutoAlign:l}=this.props;return{useZebraStyles:e,size:t,isSortable:n,useStaticWidth:r,stickyHeader:o,overflowMenuOnHover:a,experimentalAutoAlign:l}})),h(this,"getTableContainerProps",(()=>{const{stickyHeader:e,useStaticWidth:t}=this.props;return{stickyHeader:e,useStaticWidth:t}})),h(this,"getCellProps",(e=>{let{cell:t,...n}=e;return{...n,hasAILabelHeader:t.hasAILabelHeader,hasDecoratorHeader:t.hasDecoratorHeader}})),h(this,"getSelectedRows",(()=>this.state.rowIds.filter((e=>{const t=this.state.rowsById[e];return t.isSelected&&!t.disabled})))),h(this,"getFilteredRowIds",(()=>{const{filterRows:e=La}=this.props,t="string"==typeof this.state.filterInputValue?e({rowIds:this.state.rowIds,headers:this.props.headers,cellsById:this.state.cellsById,inputValue:this.state.filterInputValue,getCellId:ka}):this.state.rowIds;return 0==t.length?[]:t})),h(this,"getTablePrefix",(()=>`data-table-${this.instanceId}`)),h(this,"setAllSelectedState",((e,t,n)=>{const{rowIds:r}=e,o=r.length!=n.length;return{rowsById:r.reduce(((r,a)=>{const l={...e.rowsById[a]};return l.disabled||o&&!n.includes(a)||(l.isSelected=t),r[a]=l,r}),{})}})),h(this,"handleOnCancel",(()=>{this.setState((e=>({shouldShowBatchActions:!1,...this.setAllSelectedState(e,!1,this.getFilteredRowIds())})))})),h(this,"handleSelectAll",(()=>{this.setState((e=>{const t=this.getFilteredRowIds(),{rowsById:n}=e,r=!(Object.values(n).filter((e=>e.isSelected&&!e.disabled)).length>0);return{shouldShowBatchActions:r,...this.setAllSelectedState(e,r,t)}}))})),h(this,"handleOnSelectRow",(e=>()=>{this.setState((t=>{const n=t.rowsById[e];if(this.props.radio)return{shouldShowBatchActions:!1,rowsById:{...Object.entries(t.rowsById).reduce(((e,t)=>{const[n,r]=t;return r.isSelected=!1,e[n]=r,e}),{}),[e]:{...n,isSelected:!n.isSelected}}};const r=t.rowIds.filter((e=>t.rowsById[e].isSelected)).length,o=n.isSelected?r-1:r+1;return{shouldShowBatchActions:!n.isSelected||o>0,rowsById:{...t.rowsById,[e]:{...n,isSelected:!n.isSelected}}}}))})),h(this,"handleOnExpandRow",(e=>()=>{this.setState((t=>{const n=t.rowsById[e],{isExpandedAll:r}=t;return{isExpandedAll:!n.isExpanded&&r,rowsById:{...t.rowsById,[e]:{...n,isExpanded:!n.isExpanded}}}}))})),h(this,"handleOnExpandAll",(()=>{this.setState((e=>{const{rowIds:t,isExpandedAll:n}=e;return{isExpandedAll:!n,rowsById:t.reduce(((t,r)=>({...t,[r]:{...e.rowsById[r],isExpanded:!n}})),{})}}))})),h(this,"handleSortBy",(e=>()=>{this.setState((t=>Aa(this.props,t,{key:e})))})),h(this,"handleOnInputValueChange",((e,t)=>{e.target&&this.setState({filterInputValue:e.target.value}),t&&this.setState({filterInputValue:t})})),this.state={...Oa(e,{}),isExpandedAll:!1},this.instanceId=Tl()}shouldComponentUpdate(e){if(this.props!==e){const t=e.rows.map((e=>e.id)),n=this.props.rows.map((e=>e.id));if(!xa()(t,n))return this.setState((e=>Oa(this.props,e))),!1;const r=e.headers.map((e=>e.key)),o=this.props.headers.map((e=>e.key));if(!xa()(r,o))return this.setState((e=>Oa(this.props,e))),!1;if(!xa()(e.rows,this.props.rows))return this.setState((e=>Oa(this.props,e))),!1}return!0}render(){const{children:e,filterRows:t=La,headers:n,render:r}=this.props,{filterInputValue:o,rowIds:a,rowsById:l,cellsById:i}=this.state,s="string"==typeof o?t({rowIds:a,headers:n,cellsById:i,inputValue:o,getCellId:ka}):a,c={rows:$a(s,l,i),headers:this.props.headers,selectedRows:$a(this.getSelectedRows(),l,i),getHeaderProps:this.getHeaderProps,getExpandHeaderProps:this.getExpandHeaderProps,getRowProps:this.getRowProps,getExpandedRowProps:this.getExpandedRowProps,getSelectionProps:this.getSelectionProps,getToolbarProps:this.getToolbarProps,getBatchActionProps:this.getBatchActionProps,getTableProps:this.getTableProps,getTableContainerProps:this.getTableContainerProps,getCellProps:this.getCellProps,onInputChange:this.handleOnInputValueChange,sortBy:e=>this.handleSortBy(e)(),selectAll:this.handleSelectAll,selectRow:e=>this.handleOnSelectRow(e)(),expandRow:e=>this.handleOnExpandRow(e)(),expandAll:this.handleOnExpandAll,radio:this.props.radio};return void 0!==r?r(c):void 0!==e?e(c):null}}h($l,"propTypes",{experimentalAutoAlign:k().bool,filterRows:k().func,headers:k().arrayOf(k().shape({key:k().string.isRequired,header:k().node.isRequired})).isRequired,isSortable:k().bool,locale:k().string,overflowMenuOnHover:k().bool,radio:k().bool,rows:k().arrayOf(k().shape({id:k().string.isRequired,disabled:k().bool,isSelected:k().bool,isExpanded:k().bool})).isRequired,size:k().oneOf(["xs","sm","md","lg","xl"]),sortRow:k().func,stickyHeader:k().bool,translateWithId:k().func,useStaticWidth:k().bool,useZebraStyles:k().bool}),h($l,"translationKeys",Object.values(Al)),h($l,"Table",void 0),h($l,"TableActionList",void 0),h($l,"TableBatchAction",void 0),h($l,"TableBatchActions",void 0),h($l,"TableBody",void 0),h($l,"TableCell",void 0),h($l,"TableContainer",void 0),h($l,"TableDecoratorRow",void 0),h($l,"TableExpandHeader",void 0),h($l,"TableExpandRow",void 0),h($l,"TableExpandedRow",void 0),h($l,"TableHead",void 0),h($l,"TableHeader",void 0),h($l,"TableRow",void 0),h($l,"TableSelectAll",void 0),h($l,"TableSelectRow",void 0),h($l,"TableSlugRow",void 0),h($l,"TableToolbar",void 0),h($l,"TableToolbarAction",void 0),h($l,"TableToolbarContent",void 0),h($l,"TableToolbarSearch",void 0),h($l,"TableToolbarMenu",void 0),$l.Table=Pa,$l.TableActionList=Da,$l.TableBatchAction=Ba,$l.TableBatchActions=Va,$l.TableBody=Ha,$l.TableCell=Ua,$l.TableContainer=Wa,$l.TableDecoratorRow=qa,$l.TableExpandHeader=Ka,$l.TableExpandRow=Qa,$l.TableExpandedRow=Za,$l.TableHead=Ya,$l.TableHeader=tl,$l.TableRow=nl,$l.TableSelectAll=ol,$l.TableSelectRow=ll,$l.TableSlugRow=sl,$l.TableToolbar=cl,$l.TableToolbarAction=ul,$l.TableToolbarContent=dl,$l.TableToolbarSearch=wl,$l.TableToolbarMenu=_l},5924: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 l=this[a][0];null!=l&&(o[l]=!0)}for(var i=0;i<e.length;i++){var s=[].concat(e[i]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},977: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=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);l=!0);}catch(e){i=!0,o=e}finally{try{l||null==n.return||n.return()}finally{if(i)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],l=o[3];if(!l)return a;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),c="/*# ".concat(s," */"),u=l.sources.map((function(e){return"/*# sourceURL=".concat(l.sourceRoot||"").concat(e," */")}));return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}},506: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={},l=[],i=0;i<e.length;i++){var s=e[i],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 h=o(p,r);r.byIndex=i,t.splice(i,0,{identifier:d,updater:h,references:1})}l.push(d)}return l}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 l=0;l<a.length;l++){var i=n(a[l]);t[i].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}}},105: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)}},5326:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},7154:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},9867: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)}}}},7763: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))}}},8958:e=>{"use strict";e.exports=function(e,t,n,r,o,a,l,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,l,i],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},6999:(e,t,n)=>{"use strict";var r=n(6848);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},9067:(e,t,n)=>{e.exports=n(6999)()},6848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7400:(e,t,n)=>{"use strict";var r=n(1343),o=n(7967);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,i={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)l.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,a,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),$=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var P,M=Object.assign;function D(e){if(void 0===P)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var B=!1;function F(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),l=o.length-1,i=a.length-1;1<=l&&0<=i&&o[l]!==a[i];)i--;for(;1<=l&&0<=i;l--,i--)if(o[l]!==a[i]){if(1!==l||1!==i)do{if(l--,0>--i||o[l]!==a[i]){var s="\n"+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=l&&0<=i);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function j(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case C:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function G(e,t){X(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ae(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var be=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,ke=null;function Ce(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ne(e){Se?ke?ke.push(e):ke=[e]:Se=e}function _e(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ae(){}var Re=!1;function Oe(e,t,n){if(Re)return e(t,n);Re=!0;try{return Te(e,t,n)}finally{Re=!1,(null!==Se||null!==ke)&&(Ae(),_e())}}function $e(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Le=!1;if(u)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ue){Le=!1}function ze(e,t,n,r,o,a,l,i,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Pe=!1,Me=null,De=!1,Be=null,Fe={onError:function(e){Pe=!0,Me=e}};function je(e,t,n,r,o,a,l,i,s){Pe=!1,Me=null,ze.apply(Fe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(Ve(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var l=o.alternate;if(null===l){if(null!==(r=o.return)){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Ue(o),e;if(l===r)return Ue(o),t;l=l.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ze=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Ge=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(it(e)/st|0)|0},it=Math.log,st=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,l=268435455&n;if(0!==l){var i=l&~o;0!==i?r=dt(i):0!=(a&=l)&&(r=dt(a))}else 0!=(l=n&~o)?r=dt(l):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-lt(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-lt(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,xt,St,kt,Ct,Nt=!1,_t=[],Tt=null,At=null,Rt=null,Ot=new Map,$t=new Map,Lt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$t.delete(t.pointerId)}}function Pt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Mt(e){var t=yo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Dt(e)&&n.delete(t)}function Ft(){Nt=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==At&&Dt(At)&&(At=null),null!==Rt&&Dt(Rt)&&(Rt=null),Ot.forEach(Bt),$t.forEach(Bt)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,Nt||(Nt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Vt(e){function t(t){return jt(t,e)}if(0<_t.length){jt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&jt(Tt,e),null!==At&&jt(At,e),null!==Rt&&jt(Rt,e),Ot.forEach(t),$t.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Mt(n),null===n.blockedOn&&Lt.shift()}var Ht=w.ReactCurrentBatchConfig,Ut=!0;function Wt(e,t,n,r){var o=yt,a=Ht.transition;Ht.transition=null;try{yt=1,Kt(e,t,n,r)}finally{yt=o,Ht.transition=a}}function qt(e,t,n,r){var o=yt,a=Ht.transition;Ht.transition=null;try{yt=4,Kt(e,t,n,r)}finally{yt=o,Ht.transition=a}}function Kt(e,t,n,r){if(Ut){var o=Zt(e,t,n,r);if(null===o)Ur(e,t,r,Qt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Pt(Tt,e,t,n,r,o),!0;case"dragenter":return At=Pt(At,e,t,n,r,o),!0;case"mouseover":return Rt=Pt(Rt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Ot.set(a,Pt(Ot.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,$t.set(a,Pt($t.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<It.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&Et(a),null===(a=Zt(e,t,n,r))&&Ur(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Qt=null;function Zt(e,t,n,r){if(Qt=null,null!==(e=yo(e=Ee(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ge()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Gt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Gt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(o):o[l]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=M({},cn,{view:0,detail:0}),fn=on(dn),pn=M({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(M({},pn,{dataTransfer:0})),gn=on(M({},dn,{relatedTarget:0})),bn=on(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),wn=on(M({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return kn}var Nn=M({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(Nn),Tn=on(M({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(M({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=on(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=M({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=on(On),Ln=[9,13,27,32],In=u&&"CompositionEvent"in window,zn=null;u&&"documentMode"in document&&(zn=document.documentMode);var Pn=u&&"TextEvent"in window&&!zn,Mn=u&&(!In||zn&&8<zn&&11>=zn),Dn=String.fromCharCode(32),Bn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ne(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Qn(e){Dr(e,0)}function Zn(e){if(K(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Gn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Gn=Jn}else Gn=!1;Xn=Gn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Zn(Kn)){var t=[];Wn(t,Kn,e,Ee(e)),Oe(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Kn)}function ar(e,t){if("click"===e)return Zn(t)}function lr(e,t){if("input"===e||"change"===e)return Zn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!ir(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var l=ur(n,r);o&&l&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=qr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},kr={};function Cr(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Nr=Cr("animationend"),_r=Cr("animationiteration"),Tr=Cr("animationstart"),Ar=Cr("transitionend"),Rr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $r(e,t){Rr.set(e,t),s(t,[e])}for(var Lr=0;Lr<Or.length;Lr++){var Ir=Or[Lr];$r(Ir.toLowerCase(),"on"+(Ir[0].toUpperCase()+Ir.slice(1)))}$r(Nr,"onAnimationEnd"),$r(_r,"onAnimationIteration"),$r(Tr,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(Ar,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pr=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,l,i,s,c){if(je.apply(this,arguments),Pe){if(!Pe)throw Error(a(198));var u=Me;Pe=!1,Me=null,De||(De=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],s=i.instance,c=i.currentTarget;if(i=i.listener,s!==a&&o.isPropagationStopped())break e;Mr(o,i,c),a=s}else for(l=0;l<r.length;l++){if(s=(i=r[l]).instance,c=i.currentTarget,i=i.listener,s!==a&&o.isPropagationStopped())break e;Mr(o,i,c),a=s}}}if(De)throw e=Be,De=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[jr]){e[jr]=!0,l.forEach((function(t){"selectionchange"!==t&&(Pr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,Fr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Yt(t)){case 1:var o=Wt;break;case 4:o=qt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var i=r.stateNode.containerInfo;if(i===o||8===i.nodeType&&i.parentNode===o)break;if(4===l)for(l=r.return;null!==l;){var s=l.tag;if((3===s||4===s)&&((s=l.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;l=l.return}for(;null!==i;){if(null===(l=yo(i)))return;if(5===(s=l.tag)||6===s){r=a=l;continue e}i=i.parentNode}}r=r.return}Oe((function(){var r=a,o=Ee(n),l=[];e:{var i=Rr.get(e);if(void 0!==i){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=_n;break;case"focusin":c="focus",s=gn;break;case"focusout":c="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=An;break;case Nr:case _r:case Tr:s=bn;break;case Ar:s=Rn;break;case"scroll":s=fn;break;case"wheel":s=$n;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==i?i+"Capture":null:i;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=$e(h,f))&&u.push(Wr(h,m,p))),d)break;h=h.return}0<u.length&&(i=new s(i,c,null,n,o),l.push({event:i,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(s||i)&&(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?i:Eo(s),p=null==c?i:Eo(c),(i=new u(m,h+"leave",s,n,o)).target=d,i.relatedTarget=p,m=null,yo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(f=c,h=0,p=u=s;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==s&&Qr(l,i,s,u,!1),null!==c&&null!==d&&Qr(l,d,c,u,!0)}if("select"===(s=(i=r?Eo(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===s&&"file"===i.type)var g=Yn;else if(Un(i))if(Xn)g=lr;else{g=or;var b=rr}else(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=ar);switch(g&&(g=g(e,r))?Wn(l,g,n,o):(b&&b(e,i,r),"focusout"===e&&(b=i._wrapperState)&&b.controlled&&"number"===i.type&&ee(i,"number",i.value)),b=r?Eo(r):window,e){case"focusin":(Un(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(l,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(l,n,o)}var v;if(In)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Vn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Mn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Vn&&(v=en()):(Gt="value"in(Xt=o)?Xt.value:Xt.textContent,Vn=!0)),0<(b=qr(r,y)).length&&(y=new wn(y,e,null,n,o),l.push({event:y,listeners:b}),(v||null!==(v=jn(n)))&&(y.data=v))),(v=Pn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!In&&Fn(e,t)?(e=en(),Jt=Gt=Xt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),l.push({event:o,listeners:r}),o.data=v)}Dr(l,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=$e(e,n))&&r.unshift(Wr(e,a,o)),null!=(a=$e(e,t))&&r.push(Wr(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var a=t._reactName,l=[];null!==n&&n!==r;){var i=n,s=i.alternate,c=i.stateNode;if(null!==s&&s===r)break;5===i.tag&&null!==c&&(i=c,o?null!=(s=$e(n,a))&&l.unshift(Wr(n,s,i)):o||null!=(s=$e(n,a))&&l.push(Wr(n,s,i))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var Zr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Yr,"")}function Gr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,lo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(io)}:ro;function io(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,bo="__reactListeners$"+fo,vo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[ho]||null}var So=[],ko=-1;function Co(e){return{current:e}}function No(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function _o(e,t){ko++,So[ko]=e.current,e.current=t}var To={},Ao=Co(To),Ro=Co(!1),Oo=To;function $o(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Lo(e){return null!=e.childContextTypes}function Io(){No(Ro),No(Ao)}function zo(e,t,n){if(Ao.current!==To)throw Error(a(168));_o(Ao,t),_o(Ro,n)}function Po(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,H(e)||"Unknown",o));return M({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Oo=Ao.current,_o(Ao,e),_o(Ro,Ro.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Po(e,t,Oo),r.__reactInternalMemoizedMergedChildContext=e,No(Ro),No(Ao),_o(Ao,e)):No(Ro),_o(Ro,n)}var Bo=null,Fo=!1,jo=!1;function Vo(e){null===Bo?Bo=[e]:Bo.push(e)}function Ho(){if(!jo&&null!==Bo){jo=!0;var e=0,t=yt;try{var n=Bo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Fo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ke(Je,Ho),t}finally{yt=t,jo=!1}}return null}var Uo=[],Wo=0,qo=null,Ko=0,Qo=[],Zo=0,Yo=null,Xo=1,Go="";function Jo(e,t){Uo[Wo++]=Ko,Uo[Wo++]=qo,qo=e,Ko=t}function ea(e,t,n){Qo[Zo++]=Xo,Qo[Zo++]=Go,Qo[Zo++]=Yo,Yo=e;var r=Xo;e=Go;var o=32-lt(r)-1;r&=~(1<<o),n+=1;var a=32-lt(t)+o;if(30<a){var l=o-o%5;a=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Xo=1<<32-lt(t)+o|n<<o|r,Go=a+e}else Xo=1<<a|n<<o|r,Go=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Uo[--Wo],Uo[Wo]=null,Ko=Uo[--Wo],Uo[Wo]=null;for(;e===Yo;)Yo=Qo[--Zo],Qo[Zo]=null,Go=Qo[--Zo],Qo[Zo]=null,Xo=Qo[--Zo],Qo[Zo]=null}var ra=null,oa=null,aa=!1,la=null;function ia(e,t){var n=Oc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Go}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&sa(e,t)?ia(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw pa(),Error(a(418));for(;t;)ia(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=co(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===la?la=[e]:la.push(e)}var ga=w.ReactCurrentBatchConfig;function ba(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,l=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===l?t.ref:(t=function(e){var t=o.refs;null===e?delete t[l]:t[l]=e},t._stringRef=l,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function wa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===$&&ya(a)===t.type)?((r=o(t,n.props)).ref=ba(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=ba(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=zc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=ba(e,null,t),n.return=e,n;case x:return(t=Dc(t,e.mode,n)).return=e,t;case $:return f(e,(0,t._init)(t._payload),n)}if(te(t)||z(t))return(t=zc(t,e.mode,n,null)).return=e,t;va(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case $:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||z(n))return null!==o?null:d(e,t,n,r,null);va(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case $:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);va(t,r)}return null}function m(o,a,i,s){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<i.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(o,d,i[m],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),a=l(b,a,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===i.length)return n(o,d),aa&&Jo(o,m),c;if(null===d){for(;m<i.length;m++)null!==(d=f(o,i[m],s))&&(a=l(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Jo(o,m),c}for(d=r(o,d);m<i.length;m++)null!==(g=h(d,o,m,i[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=l(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),c}function g(o,i,s,c){var u=z(s);if("function"!=typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var d=u=null,m=i,g=i=0,b=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=p(o,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(o,m),i=l(y,i,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return n(o,m),aa&&Jo(o,g),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=f(o,v.value,c))&&(i=l(v,i,g),null===d?u=v:d.sibling=v,d=v);return aa&&Jo(o,g),u}for(m=r(o,m);!v.done;g++,v=s.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),i=l(v,i,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),u}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===S&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case E:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===$&&ya(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=ba(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===S?((a=zc(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Ic(l.type,l.key,l.props,null,r.mode,s)).ref=ba(r,a,l),s.return=r,r=s)}return i(r);case x:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Dc(l,r.mode,s)).return=r,r=a}return i(r);case $:return e(r,a,(u=l._init)(l._payload),s)}if(te(l))return m(r,a,l,s);if(z(l))return g(r,a,l,s);va(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Mc(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var Ea=wa(!0),xa=wa(!1),Sa=Co(null),ka=null,Ca=null,Na=null;function _a(){Na=Ca=ka=null}function Ta(e){var t=Sa.current;No(Sa),e._currentValue=t}function Aa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ra(e,t){ka=e,Na=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yi=!0),e.firstContext=null)}function Oa(e){var t=e._currentValue;if(Na!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===ka)throw Error(a(308));Ca=e,ka.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var $a=null;function La(e){null===$a?$a=[e]:$a.push(e)}function Ia(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,La(t)):(n.next=o.next,o.next=n),t.interleaved=n,za(e,r)}function za(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pa=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,za(e,n)}return null===(o=r.interleaved)?(t.next=t,La(r)):(t.next=o.next,o.next=t),r.interleaved=t,za(e,n)}function ja(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=l:a=a.next=l,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ha(e,t,n,r){var o=e.updateQueue;Pa=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,i=o.shared.pending;if(null!==i){o.shared.pending=null;var s=i,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var u=e.alternate;null!==u&&(i=(u=u.updateQueue).lastBaseUpdate)!==l&&(null===i?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=s)}if(null!==a){var d=o.baseState;for(l=0,u=c=s=null,i=a;;){var f=i.lane,p=i.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=M({},d,f);break e;case 2:Pa=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[i]:f.push(i))}else p={eventTime:p,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,l|=f;if(null===(i=i.next)){if(null===(i=o.shared.pending))break;i=(f=i).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{l|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ps|=l,e.lanes=l,e.memoizedState=d}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Wa={},qa=Co(Wa),Ka=Co(Wa),Qa=Co(Wa);function Za(e){if(e===Wa)throw Error(a(174));return e}function Ya(e,t){switch(_o(Qa,t),_o(Ka,e),_o(qa,Wa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}No(qa),_o(qa,t)}function Xa(){No(qa),No(Ka),No(Qa)}function Ga(e){Za(Qa.current);var t=Za(qa.current),n=se(t,e.type);t!==n&&(_o(Ka,e),_o(qa,n))}function Ja(e){Ka.current===e&&(No(qa),No(Ka))}var el=Co(0);function tl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nl=[];function rl(){for(var e=0;e<nl.length;e++)nl[e]._workInProgressVersionPrimary=null;nl.length=0}var ol=w.ReactCurrentDispatcher,al=w.ReactCurrentBatchConfig,ll=0,il=null,sl=null,cl=null,ul=!1,dl=!1,fl=0,pl=0;function hl(){throw Error(a(321))}function ml(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function gl(e,t,n,r,o,l){if(ll=l,il=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=null===e||null===e.memoizedState?Jl:ei,e=n(r,o),dl){l=0;do{if(dl=!1,fl=0,25<=l)throw Error(a(301));l+=1,cl=sl=null,t.updateQueue=null,ol.current=ti,e=n(r,o)}while(dl)}if(ol.current=Gl,t=null!==sl&&null!==sl.next,ll=0,cl=sl=il=null,ul=!1,t)throw Error(a(300));return e}function bl(){var e=0!==fl;return fl=0,e}function vl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cl?il.memoizedState=cl=e:cl=cl.next=e,cl}function yl(){if(null===sl){var e=il.alternate;e=null!==e?e.memoizedState:null}else e=sl.next;var t=null===cl?il.memoizedState:cl.next;if(null!==t)cl=t,sl=e;else{if(null===e)throw Error(a(310));e={memoizedState:(sl=e).memoizedState,baseState:sl.baseState,baseQueue:sl.baseQueue,queue:sl.queue,next:null},null===cl?il.memoizedState=cl=e:cl=cl.next=e}return cl}function wl(e,t){return"function"==typeof t?t(e):t}function El(e){var t=yl(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=sl,o=r.baseQueue,l=n.pending;if(null!==l){if(null!==o){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(null!==o){l=o.next,r=r.baseState;var s=i=null,c=null,u=l;do{var d=u.lane;if((ll&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,i=r):c=c.next=f,il.lanes|=d,Ps|=d}u=u.next}while(null!==u&&u!==l);null===c?i=r:c.next=s,ir(r,t.memoizedState)||(yi=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{l=o.lane,il.lanes|=l,Ps|=l,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xl(e){var t=yl(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{l=e(l,i.action),i=i.next}while(i!==o);ir(l,t.memoizedState)||(yi=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Sl(){}function kl(e,t){var n=il,r=yl(),o=t(),l=!ir(r.memoizedState,o);if(l&&(r.memoizedState=o,yi=!0),r=r.queue,Pl(_l.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||null!==cl&&1&cl.memoizedState.tag){if(n.flags|=2048,Ol(9,Nl.bind(null,n,r,o,t),void 0,null),null===As)throw Error(a(349));30&ll||Cl(n,t,o)}return o}function Cl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=il.updateQueue)?(t={lastEffect:null,stores:null},il.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Nl(e,t,n,r){t.value=n,t.getSnapshot=r,Tl(t)&&Al(e)}function _l(e,t,n){return n((function(){Tl(t)&&Al(e)}))}function Tl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function Al(e){var t=za(e,1);null!==t&&nc(t,e,1,-1)}function Rl(e){var t=vl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:e},t.queue=e,e=e.dispatch=Ql.bind(null,il,e),[t.memoizedState,e]}function Ol(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=il.updateQueue)?(t={lastEffect:null,stores:null},il.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function $l(){return yl().memoizedState}function Ll(e,t,n,r){var o=vl();il.flags|=e,o.memoizedState=Ol(1|t,n,void 0,void 0===r?null:r)}function Il(e,t,n,r){var o=yl();r=void 0===r?null:r;var a=void 0;if(null!==sl){var l=sl.memoizedState;if(a=l.destroy,null!==r&&ml(r,l.deps))return void(o.memoizedState=Ol(t,n,a,r))}il.flags|=e,o.memoizedState=Ol(1|t,n,a,r)}function zl(e,t){return Ll(8390656,8,e,t)}function Pl(e,t){return Il(2048,8,e,t)}function Ml(e,t){return Il(4,2,e,t)}function Dl(e,t){return Il(4,4,e,t)}function Bl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fl(e,t,n){return n=null!=n?n.concat([e]):null,Il(4,4,Bl.bind(null,t,e),n)}function jl(){}function Vl(e,t){var n=yl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ml(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hl(e,t){var n=yl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ml(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ul(e,t,n){return 21&ll?(ir(n,t)||(n=mt(),il.lanes|=n,Ps|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yi=!0),e.memoizedState=n)}function Wl(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=al.transition;al.transition={};try{e(!1),t()}finally{yt=n,al.transition=r}}function ql(){return yl().memoizedState}function Kl(e,t,n){var r=tc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zl(e)?Yl(t,n):null!==(n=Ia(e,t,n,r))&&(nc(n,e,r,ec()),Xl(n,t,r))}function Ql(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zl(e))Yl(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,i=a(l,n);if(o.hasEagerState=!0,o.eagerState=i,ir(i,l)){var s=t.interleaved;return null===s?(o.next=o,La(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ia(e,t,o,r))&&(nc(n,e,r,o=ec()),Xl(n,t,r))}}function Zl(e){var t=e.alternate;return e===il||null!==t&&t===il}function Yl(e,t){dl=ul=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xl(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Gl={readContext:Oa,useCallback:hl,useContext:hl,useEffect:hl,useImperativeHandle:hl,useInsertionEffect:hl,useLayoutEffect:hl,useMemo:hl,useReducer:hl,useRef:hl,useState:hl,useDebugValue:hl,useDeferredValue:hl,useTransition:hl,useMutableSource:hl,useSyncExternalStore:hl,useId:hl,unstable_isNewReconciler:!1},Jl={readContext:Oa,useCallback:function(e,t){return vl().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:zl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ll(4194308,4,Bl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ll(4,2,e,t)},useMemo:function(e,t){var n=vl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vl();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Kl.bind(null,il,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vl().memoizedState=e},useState:Rl,useDebugValue:jl,useDeferredValue:function(e){return vl().memoizedState=e},useTransition:function(){var e=Rl(!1),t=e[0];return e=Wl.bind(null,e[1]),vl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=il,o=vl();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===As)throw Error(a(349));30&ll||Cl(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,zl(_l.bind(null,r,l,e),[e]),r.flags|=2048,Ol(9,Nl.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=vl(),t=As.identifierPrefix;if(aa){var n=Go;t=":"+t+"R"+(n=(Xo&~(1<<32-lt(Xo)-1)).toString(32)+n),0<(n=fl++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pl++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ei={readContext:Oa,useCallback:Vl,useContext:Oa,useEffect:Pl,useImperativeHandle:Fl,useInsertionEffect:Ml,useLayoutEffect:Dl,useMemo:Hl,useReducer:El,useRef:$l,useState:function(){return El(wl)},useDebugValue:jl,useDeferredValue:function(e){return Ul(yl(),sl.memoizedState,e)},useTransition:function(){return[El(wl)[0],yl().memoizedState]},useMutableSource:Sl,useSyncExternalStore:kl,useId:ql,unstable_isNewReconciler:!1},ti={readContext:Oa,useCallback:Vl,useContext:Oa,useEffect:Pl,useImperativeHandle:Fl,useInsertionEffect:Ml,useLayoutEffect:Dl,useMemo:Hl,useReducer:xl,useRef:$l,useState:function(){return xl(wl)},useDebugValue:jl,useDeferredValue:function(e){var t=yl();return null===sl?t.memoizedState=e:Ul(t,sl.memoizedState,e)},useTransition:function(){return[xl(wl)[0],yl().memoizedState]},useMutableSource:Sl,useSyncExternalStore:kl,useId:ql,unstable_isNewReconciler:!1};function ni(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ri(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var oi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Ba(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,o))&&(nc(t,e,o,r),ja(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Ba(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,o))&&(nc(t,e,o,r),ja(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ba(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fa(e,o,r))&&(nc(t,e,r,n),ja(t,e,r))}};function ai(e,t,n,r,o,a,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,l):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,a))}function li(e,t,n){var r=!1,o=To,a=t.contextType;return"object"==typeof a&&null!==a?a=Oa(a):(o=Lo(t)?Oo:Ao.current,a=(r=null!=(r=t.contextTypes))?$o(e,o):To),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ii(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oi.enqueueReplaceState(t,t.state,null)}function si(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ma(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oa(a):(a=Lo(t)?Oo:Ao.current,o.context=$o(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ri(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&oi.enqueueReplaceState(o,o.state,null),Ha(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ci(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ui(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function di(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fi="function"==typeof WeakMap?WeakMap:Map;function pi(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Ws=r),di(0,t)},n}function hi(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){di(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){di(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fi;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bi(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,Fa(n,t,1))),n.lanes|=1),e)}var vi=w.ReactCurrentOwner,yi=!1;function wi(e,t,n,r){t.child=null===e?xa(t,null,n,r):Ea(t,e.child,n,r)}function Ei(e,t,n,r,o){n=n.render;var a=t.ref;return Ra(t,o),r=gl(e,t,n,r,a,o),n=bl(),null===e||yi?(aa&&n&&ta(t),t.flags|=1,wi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ui(e,t,o))}function xi(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||$c(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Si(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var l=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(l,r)&&e.ref===t.ref)return Ui(e,t,o)}return t.flags|=1,(e=Lc(a,r)).ref=t.ref,e.return=t,t.child=e}function Si(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(yi=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Ui(e,t,o);131072&e.flags&&(yi=!0)}}return Ni(e,t,n,r,o)}function ki(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Ls,$s),$s|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,_o(Ls,$s),$s|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Ls,$s),$s|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,_o(Ls,$s),$s|=r;return wi(e,t,o,n),t.child}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ni(e,t,n,r,o){var a=Lo(n)?Oo:Ao.current;return a=$o(t,a),Ra(t,o),n=gl(e,t,n,r,a,o),r=bl(),null===e||yi?(aa&&r&&ta(t),t.flags|=1,wi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ui(e,t,o))}function _i(e,t,n,r,o){if(Lo(n)){var a=!0;Mo(t)}else a=!1;if(Ra(t,o),null===t.stateNode)Hi(e,t),li(t,n,r),si(t,n,r,o),r=!0;else if(null===e){var l=t.stateNode,i=t.memoizedProps;l.props=i;var s=l.context,c=n.contextType;c="object"==typeof c&&null!==c?Oa(c):$o(t,c=Lo(n)?Oo:Ao.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof l.getSnapshotBeforeUpdate;d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(i!==r||s!==c)&&ii(t,l,r,c),Pa=!1;var f=t.memoizedState;l.state=f,Ha(t,r,l,o),s=t.memoizedState,i!==r||f!==s||Ro.current||Pa?("function"==typeof u&&(ri(t,n,u,r),s=t.memoizedState),(i=Pa||ai(t,n,i,r,f,s,c))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4194308)):("function"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=c,r=i):("function"==typeof l.componentDidMount&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Da(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:ni(t.type,i),l.props=c,d=t.pendingProps,f=l.context,s="object"==typeof(s=n.contextType)&&null!==s?Oa(s):$o(t,s=Lo(n)?Oo:Ao.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(i!==d||f!==s)&&ii(t,l,r,s),Pa=!1,f=t.memoizedState,l.state=f,Ha(t,r,l,o);var h=t.memoizedState;i!==d||f!==h||Ro.current||Pa?("function"==typeof p&&(ri(t,n,p,r),h=t.memoizedState),(c=Pa||ai(t,n,c,r,f,h,s)||!1)?(u||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,h,s),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=c):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ti(e,t,n,r,a,o)}function Ti(e,t,n,r,o,a){Ci(e,t);var l=!!(128&t.flags);if(!r&&!l)return o&&Do(t,n,!1),Ui(e,t,a);r=t.stateNode,vi.current=t;var i=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Ea(t,e.child,null,a),t.child=Ea(t,null,i,a)):wi(e,t,i,a),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Ai(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Ya(e,t.containerInfo)}function Ri(e,t,n,r,o){return ha(),ma(o),t.flags|=256,wi(e,t,n,r),t.child}var Oi,$i,Li,Ii,zi={dehydrated:null,treeContext:null,retryLane:0};function Pi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mi(e,t,n){var r,o=t.pendingProps,l=el.current,i=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&l)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(l|=1),_o(el,1&l),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},1&o||null===i?i=Pc(s,o,0,null):(i.childLanes=0,i.pendingProps=s),e=zc(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Pi(n),t.memoizedState=zi,e):Di(t,s));if(null!==(l=e.memoizedState)&&null!==(r=l.dehydrated))return function(e,t,n,r,o,l,i){if(n)return 256&t.flags?(t.flags&=-257,Bi(e,t,i,r=ui(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Pc({mode:"visible",children:r.children},o,0,null),(l=zc(l,o,i,null)).flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,1&t.mode&&Ea(t,e.child,null,i),t.child.memoizedState=Pi(i),t.memoizedState=zi,l);if(!(1&t.mode))return Bi(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bi(e,t,i,r=ui(l=Error(a(419)),r,void 0))}if(s=!!(i&e.childLanes),yi||s){if(null!==(r=As)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|i)?0:o)&&o!==l.retryLane&&(l.retryLane=o,za(e,o),nc(r,e,o,-1))}return mc(),Bi(e,t,i,r=ui(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_c.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,la=null,null!==e&&(Qo[Zo++]=Xo,Qo[Zo++]=Go,Qo[Zo++]=Yo,Xo=e.id,Go=e.overflow,Yo=t),(t=Di(t,r.children)).flags|=4096,t)}(e,t,s,o,r,l,n);if(i){i=o.fallback,s=t.mode,r=(l=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&s||t.child===l?(o=Lc(l,c)).subtreeFlags=14680064&l.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?i=Lc(r,i):(i=zc(i,s,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?Pi(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=zi,o}return e=(i=e.child).sibling,o=Lc(i,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Di(e,t){return(t=Pc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bi(e,t,n,r){return null!==r&&ma(r),Ea(t,e.child,null,n),(e=Di(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Aa(e.return,t,n)}function ji(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Vi(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wi(e,t,r.children,n),2&(r=el.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fi(e,n,t);else if(19===e.tag)Fi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(el,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===tl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ji(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===tl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ji(t,!0,n,null,a);break;case"together":ji(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hi(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ui(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ps|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wi(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ki(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qi(t),null;case 1:case 17:return Lo(t.type)&&Io(),qi(t),null;case 3:return r=t.stateNode,Xa(),No(Ro),No(Ao),rl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==la&&(lc(la),la=null))),$i(e,t),qi(t),null;case 5:Ja(t);var o=Za(Qa.current);if(n=t.type,null!==e&&null!=t.stateNode)Li(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return qi(t),null}if(e=Za(qa.current),fa(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[po]=t,r[ho]=l,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<zr.length;o++)Br(zr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,l),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Br("invalid",r);break;case"textarea":oe(r,l),Br("invalid",r)}for(var s in ve(n,l),o=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==l.suppressHydrationWarning&&Gr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Gr(r.textContent,c,e),o=["children",""+c]):i.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":q(r),J(r,l,!0);break;case"textarea":q(r),le(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Oi(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<zr.length;o++)Br(zr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Y(e,r),o=Z(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=M({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(l in ve(n,o),c=o)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?ge(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===l?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(i.hasOwnProperty(l)?null!=u&&"onScroll"===l&&Br("scroll",e):null!=u&&y(e,l,u,s))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ne(e,!!r.multiple,l,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qi(t),null;case 6:if(e&&null!=t.stateNode)Ii(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Za(Qa.current),Za(qa.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(l=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Gr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Gr(r.nodeValue,n,!!(1&e.mode))}l&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return qi(t),null;case 13:if(No(el),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))pa(),ha(),t.flags|=98560,l=!1;else if(l=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(a(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(a(317));l[po]=t}else ha(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qi(t),l=!1}else null!==la&&(lc(la),la=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&el.current?0===Is&&(Is=3):mc())),null!==t.updateQueue&&(t.flags|=4),qi(t),null);case 4:return Xa(),$i(e,t),null===e&&Vr(t.stateNode.containerInfo),qi(t),null;case 10:return Ta(t.type._context),qi(t),null;case 19:if(No(el),null===(l=t.memoizedState))return qi(t),null;if(r=!!(128&t.flags),null===(s=l.rendering))if(r)Wi(l,!1);else{if(0!==Is||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=tl(e))){for(t.flags|=128,Wi(l,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(el,1&el.current|2),t.child}e=e.sibling}null!==l.tail&&Xe()>Vs&&(t.flags|=128,r=!0,Wi(l,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=tl(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wi(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!aa)return qi(t),null}else 2*Xe()-l.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=128,r=!0,Wi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=l.last)?n.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Xe(),t.sibling=null,n=el.current,_o(el,r?1&n|2:1&n),t):(qi(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&$s)&&(qi(t),6&t.subtreeFlags&&(t.flags|=8192)):qi(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Qi(e,t){switch(na(t),t.tag){case 1:return Lo(t.type)&&Io(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),No(Ro),No(Ao),rl(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(No(el),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return No(el),null;case 4:return Xa(),null;case 10:return Ta(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Oi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$i=function(){},Li=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Za(qa.current);var a,l=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"select":o=M({},o,{value:void 0}),r=M({},r,{value:void 0}),l=[];break;case"textarea":o=re(e,o),r=re(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(i.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Ii=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zi=!1,Yi=!1,Xi="function"==typeof WeakSet?WeakSet:Set,Gi=null;function Ji(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){kc(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[bo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function is(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Yi||Ji(n,t);case 6:var r=us,o=ds;us=null,fs(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Vt(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,fs(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Yi&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,l=a.destroy;a=a.tag,void 0!==l&&(2&a||4&a)&&es(n,t,l),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Yi&&(Ji(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Yi=(r=Yi)||null!==n.memoizedState,fs(e,t,n),Yi=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xi),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(a(160));ps(l,i,o),us=null,ds=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){kc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),bs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){kc(e,e.return,t)}try{ns(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ms(t,e),bs(e),512&r&&null!==n&&Ji(n,n.return);break;case 5:if(ms(t,e),bs(e),512&r&&null!==n&&Ji(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){kc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var l=e.memoizedProps,i=null!==n?n.memoizedProps:l,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===l.type&&null!=l.name&&X(o,l),ye(s,i);var u=ye(s,l);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,u)}switch(s){case"input":G(o,l);break;case"textarea":ae(o,l);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var h=l.value;null!=h?ne(o,!!l.multiple,h,!1):p!==!!l.multiple&&(null!=l.defaultValue?ne(o,!!l.multiple,l.defaultValue,!0):ne(o,!!l.multiple,l.multiple?[]:"",!1))}o[ho]=l}catch(t){kc(e,e.return,t)}}break;case 6:if(ms(t,e),bs(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(t){kc(e,e.return,t)}}break;case 3:if(ms(t,e),bs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ms(t,e),bs(e);break;case 13:ms(t,e),bs(e),8192&(o=e.child).flags&&(l=null!==o.memoizedState,o.stateNode.isHidden=l,!l||null!==o.alternate&&null!==o.alternate.memoizedState||(js=Xe())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Yi=(u=Yi)||d,ms(t,e),Yi=u):ms(t,e),bs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Gi=e,d=e.child;null!==d;){for(f=Gi=d;null!==Gi;){switch(h=(p=Gi).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Ji(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(r,n,e)}}break;case 5:Ji(p,p.return);break;case 22:if(null!==p.memoizedState){Es(f);continue}}null!==h?(h.return=p,Gi=h):Es(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(l=o.style).setProperty?l.setProperty("display","none","important"):l.display="none":(s=f.stateNode,i=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=me("display",i))}catch(t){kc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),bs(e),4&r&&hs(e);case 21:}}function bs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cs(e,is(e),o);break;case 3:case 4:var l=r.stateNode.containerInfo;ss(e,is(e),l);break;default:throw Error(a(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Gi=e,ys(e,t,n)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Gi;){var o=Gi,a=o.child;if(22===o.tag&&r){var l=null!==o.memoizedState||Zi;if(!l){var i=o.alternate,s=null!==i&&null!==i.memoizedState||Yi;i=Zi;var c=Yi;if(Zi=l,(Yi=s)&&!c)for(Gi=o;null!==Gi;)s=(l=Gi).child,22===l.tag&&null!==l.memoizedState?xs(o):null!==s?(s.return=l,Gi=s):xs(o);for(;null!==a;)Gi=a,ys(a,t,n),a=a.sibling;Gi=o,Zi=i,Yi=c}ws(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Gi=a):ws(e)}}function ws(e){for(;null!==Gi;){var t=Gi;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yi||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yi)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ni(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;null!==l&&Ua(t,l,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,i,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(a(163))}Yi||512&t.flags&&os(t)}catch(e){kc(t,t.return,e)}}if(t===e){Gi=null;break}if(null!==(n=t.sibling)){n.return=t.return,Gi=n;break}Gi=t.return}}function Es(e){for(;null!==Gi;){var t=Gi;if(t===e){Gi=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Gi=n;break}Gi=t.return}}function xs(e){for(;null!==Gi;){var t=Gi;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var a=t.return;try{os(t)}catch(e){kc(t,a,e)}break;case 5:var l=t.return;try{os(t)}catch(e){kc(t,l,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Gi=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Gi=i;break}Gi=t.return}}var Ss,ks=Math.ceil,Cs=w.ReactCurrentDispatcher,Ns=w.ReactCurrentOwner,_s=w.ReactCurrentBatchConfig,Ts=0,As=null,Rs=null,Os=0,$s=0,Ls=Co(0),Is=0,zs=null,Ps=0,Ms=0,Ds=0,Bs=null,Fs=null,js=0,Vs=1/0,Hs=null,Us=!1,Ws=null,qs=null,Ks=!1,Qs=null,Zs=0,Ys=0,Xs=null,Gs=-1,Js=0;function ec(){return 6&Ts?Xe():-1!==Gs?Gs:Gs=Xe()}function tc(e){return 1&e.mode?2&Ts&&0!==Os?Os&-Os:null!==ga.transition?(0===Js&&(Js=mt()),Js):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nc(e,t,n,r){if(50<Ys)throw Ys=0,Xs=null,Error(a(185));bt(e,n,r),2&Ts&&e===As||(e===As&&(!(2&Ts)&&(Ms|=n),4===Is&&ic(e,Os)),rc(e,r),1===n&&0===Ts&&!(1&t.mode)&&(Vs=Xe()+500,Fo&&Ho()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-lt(a),i=1<<l,s=o[l];-1===s?i&n&&!(i&r)||(o[l]=pt(i,t)):s<=t&&(e.expiredLanes|=i),a&=~i}}(e,t);var r=ft(e,e===As?Os:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Fo=!0,Vo(e)}(sc.bind(null,e)):Vo(sc.bind(null,e)),lo((function(){!(6&Ts)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ac(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Gs=-1,Js=0,6&Ts)throw Error(a(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=ft(e,e===As?Os:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=gc(e,r);else{t=r;var o=Ts;Ts|=2;var l=hc();for(As===e&&Os===t||(Hs=null,Vs=Xe()+500,fc(e,t));;)try{vc();break}catch(t){pc(e,t)}_a(),Cs.current=l,Ts=o,null!==Rs?t=0:(As=null,Os=0,t=Is)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=ac(e,o)),1===t)throw n=zs,fc(e,0),ic(e,r),rc(e,Xe()),n;if(6===t)ic(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!ir(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gc(e,r),2===t&&(l=ht(e),0!==l&&(r=l,t=ac(e,l))),1!==t)))throw n=zs,fc(e,0),ic(e,r),rc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ec(e,Fs,Hs);break;case 3:if(ic(e,r),(130023424&r)===r&&10<(t=js+500-Xe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ec.bind(null,e,Fs,Hs),t);break}Ec(e,Fs,Hs);break;case 4:if(ic(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-lt(r);l=1<<i,(i=t[i])>o&&(o=i),r&=~l}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ks(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,Fs,Hs),r);break}Ec(e,Fs,Hs);break;default:throw Error(a(329))}}}return rc(e,Xe()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fs,Fs=n,null!==t&&lc(t)),e}function lc(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function ic(e,t){for(t&=~Ds,t&=~Ms,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(6&Ts)throw Error(a(327));xc();var t=ft(e,0);if(!(1&t))return rc(e,Xe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=zs,fc(e,0),ic(e,t),rc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Fs,Hs),rc(e,Xe()),null}function cc(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Vs=Xe()+500,Fo&&Ho())}}function uc(e){null!==Qs&&0===Qs.tag&&!(6&Ts)&&xc();var t=Ts;Ts|=1;var n=_s.transition,r=yt;try{if(_s.transition=null,yt=1,e)return e()}finally{yt=r,_s.transition=n,!(6&(Ts=t))&&Ho()}}function dc(){$s=Ls.current,No(Ls)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Io();break;case 3:Xa(),No(Ro),No(Ao),rl();break;case 5:Ja(r);break;case 4:Xa();break;case 13:case 19:No(el);break;case 10:Ta(r.type._context);break;case 22:case 23:dc()}n=n.return}if(As=e,Rs=e=Lc(e.current,null),Os=$s=t,Is=0,zs=null,Ds=Ms=Ps=0,Fs=Bs=null,null!==$a){for(t=0;t<$a.length;t++)if(null!==(r=(n=$a[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var l=a.next;a.next=o,r.next=l}n.pending=r}$a=null}return e}function pc(e,t){for(;;){var n=Rs;try{if(_a(),ol.current=Gl,ul){for(var r=il.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ul=!1}if(ll=0,cl=sl=il=null,dl=!1,fl=0,Ns.current=null,null===n||null===n.return){Is=1,zs=t,Rs=null;break}e:{var l=e,i=n.return,s=n,c=t;if(t=Os,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gi(i);if(null!==h){h.flags&=-257,bi(h,i,s,0,t),1&h.mode&&mi(l,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){mi(l,u,t),mc();break e}c=Error(a(426))}else if(aa&&1&s.mode){var b=gi(i);if(null!==b){!(65536&b.flags)&&(b.flags|=256),bi(b,i,s,0,t),ma(ci(c,s));break e}}l=c=ci(c,s),4!==Is&&(Is=2),null===Bs?Bs=[l]:Bs.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,Va(l,pi(0,c,t));break e;case 1:s=c;var v=l.type,y=l.stateNode;if(!(128&l.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==qs&&qs.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t,Va(l,hi(l,s,t));break e}}l=l.return}while(null!==l)}wc(n)}catch(e){t=e,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function hc(){var e=Cs.current;return Cs.current=Gl,null===e?Gl:e}function mc(){0!==Is&&3!==Is&&2!==Is||(Is=4),null===As||!(268435455&Ps)&&!(268435455&Ms)||ic(As,Os)}function gc(e,t){var n=Ts;Ts|=2;var r=hc();for(As===e&&Os===t||(Hs=null,fc(e,t));;)try{bc();break}catch(t){pc(e,t)}if(_a(),Ts=n,Cs.current=r,null!==Rs)throw Error(a(261));return As=null,Os=0,Is}function bc(){for(;null!==Rs;)yc(Rs)}function vc(){for(;null!==Rs&&!Ze();)yc(Rs)}function yc(e){var t=Ss(e.alternate,e,$s);e.memoizedProps=e.pendingProps,null===t?wc(e):Rs=t,Ns.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qi(n,t)))return n.flags&=32767,void(Rs=n);if(null===e)return Is=6,void(Rs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ki(n,t,$s)))return void(Rs=n);if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===Is&&(Is=5)}function Ec(e,t,n){var r=yt,o=_s.transition;try{_s.transition=null,yt=1,function(e,t,n,r){do{xc()}while(null!==Qs);if(6&Ts)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-lt(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,l),e===As&&(Rs=As=null,Os=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ks||(Ks=!0,Ac(tt,(function(){return xc(),null}))),l=!!(15990&n.flags),15990&n.subtreeFlags||l){l=_s.transition,_s.transition=null;var i=yt;yt=1;var s=Ts;Ts|=4,Ns.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch(e){n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(s=i+o),f!==l||0!==r&&3!==f.nodeType||(c=i+r),3===f.nodeType&&(i+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=i),p===l&&++d===r&&(c=i),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Gi=t;null!==Gi;)if(e=(t=Gi).child,1028&t.subtreeFlags&&null!==e)e.return=t,Gi=e;else for(;null!==Gi;){t=Gi;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ni(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Gi=e;break}Gi=t.return}m=ts,ts=!1}(e,n),gs(n,e),hr(to),Ut=!!eo,to=eo=null,e.current=n,vs(n,e,o),Ye(),Ts=s,yt=i,_s.transition=l}else e.current=n;if(Ks&&(Ks=!1,Qs=e,Zs=o),0===(l=e.pendingLanes)&&(qs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Us)throw Us=!1,e=Ws,Ws=null,e;!!(1&Zs)&&0!==e.tag&&xc(),1&(l=e.pendingLanes)?e===Xs?Ys++:(Ys=0,Xs=e):Ys=0,Ho()}(e,t,n,r)}finally{_s.transition=o,yt=r}return null}function xc(){if(null!==Qs){var e=wt(Zs),t=_s.transition,n=yt;try{if(_s.transition=null,yt=16>e?16:e,null===Qs)var r=!1;else{if(e=Qs,Qs=null,Zs=0,6&Ts)throw Error(a(331));var o=Ts;for(Ts|=4,Gi=e.current;null!==Gi;){var l=Gi,i=l.child;if(16&Gi.flags){var s=l.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Gi=u;null!==Gi;){var d=Gi;switch(d.tag){case 0:case 11:case 15:ns(8,d,l)}var f=d.child;if(null!==f)f.return=d,Gi=f;else for(;null!==Gi;){var p=(d=Gi).sibling,h=d.return;if(as(d),d===u){Gi=null;break}if(null!==p){p.return=h,Gi=p;break}Gi=h}}}var m=l.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Gi=l}}if(2064&l.subtreeFlags&&null!==i)i.return=l,Gi=i;else e:for(;null!==Gi;){if(2048&(l=Gi).flags)switch(l.tag){case 0:case 11:case 15:ns(9,l,l.return)}var v=l.sibling;if(null!==v){v.return=l.return,Gi=v;break e}Gi=l.return}}var y=e.current;for(Gi=y;null!==Gi;){var w=(i=Gi).child;if(2064&i.subtreeFlags&&null!==w)w.return=i,Gi=w;else e:for(i=y;null!==Gi;){if(2048&(s=Gi).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){kc(s,s.return,e)}if(s===i){Gi=null;break e}var E=s.sibling;if(null!==E){E.return=s.return,Gi=E;break e}Gi=s.return}}if(Ts=o,Ho(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,_s.transition=t}}return!1}function Sc(e,t,n){e=Fa(e,t=pi(0,t=ci(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Fa(t,e=hi(t,e=ci(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Os&n)===n&&(4===Is||3===Is&&(130023424&Os)===Os&&500>Xe()-js?fc(e,0):Ds|=n),rc(e,t)}function Nc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=za(e,t))&&(bt(e,t,n),rc(e,n))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Nc(e,n)}function Ac(e,t){return Ke(e,t)}function Rc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,r){return new Rc(e,t,n,r)}function $c(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,o,l){var i=2;if(r=e,"function"==typeof e)$c(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case S:return zc(n.children,o,l,t);case k:i=8,o|=8;break;case C:return(e=Oc(12,n,t,2|o)).elementType=C,e.lanes=l,e;case A:return(e=Oc(13,n,t,o)).elementType=A,e.lanes=l,e;case R:return(e=Oc(19,n,t,o)).elementType=R,e.lanes=l,e;case L:return Pc(n,o,l,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:i=10;break e;case _:i=9;break e;case T:i=11;break e;case O:i=14;break e;case $:i=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Oc(i,n,t,o)).elementType=e,t.type=r,t.lanes=l,t}function zc(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Pc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,a,l,i,s){return e=new Bc(e,t,n,i,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Oc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ma(a),e}function jc(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Po(e,n,t)}return t}function Vc(e,t,n,r,o,a,l,i,s){return(e=Fc(n,r,!0,e,0,a,0,i,s)).context=jc(null),n=e.current,(a=Ba(r=ec(),o=tc(n))).callback=null!=t?t:null,Fa(n,a,o),e.current.lanes=o,bt(e,o,r),rc(e,r),e}function Hc(e,t,n,r){var o=t.current,a=ec(),l=tc(o);return n=jc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fa(o,t,l))&&(nc(e,o,l,a),ja(e,o,l)),l}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)yi=!0;else{if(!(e.lanes&n||128&t.flags))return yi=!1,function(e,t,n){switch(t.tag){case 3:Ai(t),ha();break;case 5:Ga(t);break;case 1:Lo(t.type)&&Mo(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(Sa,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(el,1&el.current),t.flags|=128,null):n&t.child.childLanes?Mi(e,t,n):(_o(el,1&el.current),null!==(e=Ui(e,t,n))?e.sibling:null);_o(el,1&el.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vi(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(el,el.current),r)break;return null;case 22:case 23:return t.lanes=0,ki(e,t,n)}return Ui(e,t,n)}(e,t,n);yi=!!(131072&e.flags)}else yi=!1,aa&&1048576&t.flags&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var o=$o(t,Ao.current);Ra(t,n),o=gl(null,t,r,e,o,n);var l=bl();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(l=!0,Mo(t)):l=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ma(t),o.updater=oi,t.stateNode=o,o._reactInternals=t,si(t,r,e,n),t=Ti(null,t,r,!0,l,n)):(t.tag=0,aa&&l&&ta(t),wi(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return $c(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(r),e=ni(r,e),o){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=_i(null,t,r,e,n);break e;case 11:t=Ei(null,t,r,e,n);break e;case 14:t=xi(null,t,r,ni(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ni(e,t,r,o=t.elementType===r?o:ni(r,o),n);case 1:return r=t.type,o=t.pendingProps,_i(e,t,r,o=t.elementType===r?o:ni(r,o),n);case 3:e:{if(Ai(t),null===e)throw Error(a(387));r=t.pendingProps,o=(l=t.memoizedState).element,Da(e,t),Ha(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated){if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags){t=Ri(e,t,r,n,o=ci(Error(a(423)),t));break e}if(r!==o){t=Ri(e,t,r,n,o=ci(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,la=null,n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===o){t=Ui(e,t,n);break e}wi(e,t,r,n)}t=t.child}return t;case 5:return Ga(t),null===e&&ua(t),r=t.type,o=t.pendingProps,l=null!==e?e.memoizedProps:null,i=o.children,no(r,o)?i=null:null!==l&&no(r,l)&&(t.flags|=32),Ci(e,t),wi(e,t,i,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Mi(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ea(t,null,r,n):wi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ei(e,t,r,o=t.elementType===r?o:ni(r,o),n);case 7:return wi(e,t,t.pendingProps,n),t.child;case 8:case 12:return wi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,_o(Sa,r._currentValue),r._currentValue=i,null!==l)if(ir(l.value,i)){if(l.children===o.children&&!Ro.current){t=Ui(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){i=l.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===l.tag){(c=Ba(-1,n&-n)).tag=2;var u=l.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),Aa(l.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===l.tag)i=l.type===t.type?null:l.child;else if(18===l.tag){if(null===(i=l.return))throw Error(a(341));i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Aa(i,n,t),i=l.sibling}else i=l.child;if(null!==i)i.return=l;else for(i=l;null!==i;){if(i===t){i=null;break}if(null!==(l=i.sibling)){l.return=i.return,i=l;break}i=i.return}l=i}wi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ra(t,n),r=r(o=Oa(o)),t.flags|=1,wi(e,t,r,n),t.child;case 14:return o=ni(r=t.type,t.pendingProps),xi(e,t,r,o=ni(r.type,o),n);case 15:return Si(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ni(r,o),Hi(e,t),t.tag=1,Lo(r)?(e=!0,Mo(t)):e=!1,Ra(t,n),li(t,r,o),si(t,r,o,n),Ti(null,t,r,!0,e,n);case 19:return Vi(e,t,n);case 22:return ki(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gc(){}function Jc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var l=a;if("function"==typeof o){var i=o;o=function(){var e=Uc(l);i.call(e)}}Hc(t,l,e,o)}else l=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Uc(l);a.call(e)}}var l=Vc(t,r,e,0,null,!1,0,"",Gc);return e._reactRootContainer=l,e[mo]=l.current,Vr(8===e.nodeType?e.parentNode:e),uc(),l}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var i=r;r=function(){var e=Uc(s);i.call(e)}}var s=Fc(e,0,!1,null,0,!1,0,"",Gc);return e._reactRootContainer=s,e[mo]=s.current,Vr(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,s,n,r)})),s}(n,t,e,o,r);return Uc(l)}Zc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Zc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Mt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Xe()),!(6&Ts)&&(Vs=Xe()+500,Ho()))}break;case 13:uc((function(){var t=za(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),qc(e,1)}},xt=function(e){if(13===e.tag){var t=za(e,134217728);null!==t&&nc(t,e,134217728,ec()),qc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),n=za(e,t);null!==n&&nc(n,e,t,ec()),qc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(G(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));K(r),G(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Ae=uc;var eu={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Ne,_e,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(a(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,l="",i=Kc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Vc(t,null,e,1,null!=n?n:null,o,0,l,i),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Zc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(a(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},3144:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(7400)},9772:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){if(e.constructor!==l.constructor)return!1;var i,s,c,u;if(Array.isArray(e)){if((i=e.length)!=l.length)return!1;for(s=i;0!=s--;)if(!a(e[s],l[s]))return!1;return!0}if(n&&e instanceof Map&&l instanceof Map){if(e.size!==l.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!l.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!a(s.value[1],l.get(s.value[0])))return!1;return!0}if(r&&e instanceof Set&&l instanceof Set){if(e.size!==l.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!l.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(l)){if((i=e.length)!=l.length)return!1;for(s=i;0!=s--;)if(e[s]!==l[s])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof l.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof l.toString)return e.toString()===l.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(s=i;0!=s--;)if(!Object.prototype.hasOwnProperty.call(l,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=i;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!a(e[c[s]],l[c[s]]))return!1;return!0}return e!=e&&l!=l}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},320:(e,t)=>{"use strict";var n=Symbol.for("react.element");Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}},524:(e,t,n)=>{"use strict";e.exports=n(320)},2568:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,l=o>>>1;r<l;){var i=2*(r+1)-1,s=e[i],c=i+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[i]=n,r=i);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,L(x);else{var t=r(u);null!==t&&I(E,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,v(N),N=-1),h=!0;var a=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!A());){var l=f.callback;if("function"==typeof l){f.callback=null,p=f.priorityLevel;var i=l(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?f.callback=i:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&I(E,d.startTime-n),s=!1}return s}finally{f=null,p=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,N=-1,_=5,T=-1;function A(){return!(t.unstable_now()-T<_)}function R(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof y)S=function(){y(R)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,$=O.port2;O.port1.onmessage=R,S=function(){$.postMessage(null)}}else S=function(){b(R,0)};function L(e){C=e,k||(k=!0,S())}function I(e,n){N=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,a){var l=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?l+a:l,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:i=a+i,sortIndex:-1},a>l?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(v(N),N=-1):g=!0,I(E,a-l))):(e.sortIndex=i,n(c,e),m||h||(m=!0,L(x))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7967:(e,t,n)=>{"use strict";e.exports=n(2568)},3296:(e,t,n)=>{"use strict";var r=n(1343),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,l=r.useEffect,i=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 i((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),l((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},8139:(e,t,n)=>{"use strict";e.exports=n(3296)},6468:function(e,t,n){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||this},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2086:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6979);const o=function(e,t){for(var n=e.length;n--;)if((0,r.A)(e[n][0],t))return n;return-1};var a=Array.prototype.splice;function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))},l.prototype.get=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},l.prototype.has=function(e){return o(this.__data__,e)>-1},l.prototype.set=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const i=l},5436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1465),o=n(9600);const a=(0,r.A)(o.A,"Map")},9240:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});const r=(0,n(1465).A)(Object,"create");var o=Object.prototype.hasOwnProperty;var a=Object.prototype.hasOwnProperty;function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},l.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},l.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0},l.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)},l.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};const i=l;var s=n(2086),c=n(5436);const u=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(c.A||s.A),string:new i}},d.prototype.delete=function(e){var t=u(this,e).delete(e);return this.size-=t?1:0,t},d.prototype.get=function(e){return u(this,e).get(e)},d.prototype.has=function(e){return u(this,e).has(e)},d.prototype.set=function(e,t){var n=u(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const f=d},8574:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1465),o=n(9600);const a=(0,r.A)(o.A,"Set")},4149:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9240);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.A;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},o.prototype.has=function(e){return this.__data__.has(e)};const a=o},3516:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(9600).A.Symbol},6097:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var l=e[n];t(l,n,e)&&(a[o++]=l)}return a}},5133:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},2135:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(3516),o=Object.prototype,a=o.hasOwnProperty,l=o.toString,i=r.A?r.A.toStringTag:void 0;var s=Object.prototype.toString;var c=r.A?r.A.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=a.call(e,i),n=e[i];try{e[i]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[i]=n:delete e[i]),o}(e):function(e){return s.call(e)}(e)}},7419:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=function(e){return e!=e},o=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,r,n)}},5936:(e,t,n)=>{"use strict";n.d(t,{A:()=>$e});var r=n(2086);var o=n(5436),a=n(9240);function l(e){var t=this.__data__=new r.A(e);this.size=t.size}l.prototype.clear=function(){this.__data__=new r.A,this.size=0},l.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},l.prototype.get=function(e){return this.__data__.get(e)},l.prototype.has=function(e){return this.__data__.has(e)},l.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.A){var l=n.__data__;if(!o.A||l.length<199)return l.push([e,t]),this.size=++n.size,this;n=this.__data__=new a.A(l)}return n.set(e,t),this.size=n.size,this};const i=l;var s=n(4149);const c=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var u=n(2026);const d=function(e,t,n,r,o,a){var l=1&n,i=e.length,d=t.length;if(i!=d&&!(l&&d>i))return!1;var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new s.A:void 0;for(a.set(e,t),a.set(t,e);++h<i;){var b=e[h],v=t[h];if(r)var y=l?r(v,b,h,t,e,a):r(b,v,h,e,t,a);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!c(t,(function(e,t){if(!(0,u.A)(g,t)&&(b===e||o(b,e,n,r,a)))return g.push(t)}))){m=!1;break}}else if(b!==v&&!o(b,v,n,r,a)){m=!1;break}}return a.delete(e),a.delete(t),m};var f=n(3516),p=n(9600);const h=p.A.Uint8Array;var m=n(6979);const g=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var b=n(9922),v=f.A?f.A.prototype:void 0,y=v?v.valueOf:void 0;var w=n(6956);var E=n(6097);var x=Object.prototype.propertyIsEnumerable,S=Object.getOwnPropertySymbols;const k=S?function(e){return null==e?[]:(e=Object(e),(0,E.A)(S(e),(function(t){return x.call(e,t)})))}:function(){return[]};var C=n(4768);const N=function(e){return function(e,t,n){var r=t(e);return(0,w.A)(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,C.A,k)};var _=Object.prototype.hasOwnProperty;var T=n(1465);const A=(0,T.A)(p.A,"DataView"),R=(0,T.A)(p.A,"Promise");var O=n(8574);const $=(0,T.A)(p.A,"WeakMap");var L=n(2135),I=n(1548),z="[object Map]",P="[object Promise]",M="[object Set]",D="[object WeakMap]",B="[object DataView]",F=(0,I.A)(A),j=(0,I.A)(o.A),V=(0,I.A)(R),H=(0,I.A)(O.A),U=(0,I.A)($),W=L.A;(A&&W(new A(new ArrayBuffer(1)))!=B||o.A&&W(new o.A)!=z||R&&W(R.resolve())!=P||O.A&&W(new O.A)!=M||$&&W(new $)!=D)&&(W=function(e){var t=(0,L.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,I.A)(n):"";if(r)switch(r){case F:return B;case j:return z;case V:return P;case H:return M;case U:return D}return t});const q=W;var K=n(5821),Q=n(9410),Z="[object Arguments]",Y="[object Array]",X="[object Object]",G=Object.prototype.hasOwnProperty;const J=function(e,t,n,r,o,a){var l=(0,w.A)(e),s=(0,w.A)(t),c=l?Y:q(e),u=s?Y:q(t),f=(c=c==Z?X:c)==X,p=(u=u==Z?X:u)==X,v=c==u;if(v&&(0,K.A)(e)){if(!(0,K.A)(t))return!1;l=!0,f=!1}if(v&&!f)return a||(a=new i),l||(0,Q.A)(e)?d(e,t,n,r,o,a):function(e,t,n,r,o,a,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new h(e),new h(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,m.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var i=g;case"[object Set]":var s=1&r;if(i||(i=b.A),e.size!=t.size&&!s)return!1;var c=l.get(e);if(c)return c==t;r|=2,l.set(e,t);var u=d(i(e),i(t),r,o,a,l);return l.delete(e),u;case"[object Symbol]":if(y)return y.call(e)==y.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var E=f&&G.call(e,"__wrapped__"),x=p&&G.call(t,"__wrapped__");if(E||x){var S=E?e.value():e,k=x?t.value():t;return a||(a=new i),o(S,k,n,r,a)}}return!!v&&(a||(a=new i),function(e,t,n,r,o,a){var l=1&n,i=N(e),s=i.length;if(s!=N(t).length&&!l)return!1;for(var c=s;c--;){var u=i[c];if(!(l?u in t:_.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=l;++c<s;){var m=e[u=i[c]],g=t[u];if(r)var b=l?r(g,m,u,t,e,a):r(m,g,u,e,t,a);if(!(void 0===b?m===g||o(m,g,n,r,a):b)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))};var ee=n(7313);const te=function e(t,n,r,o,a){return t===n||(null==t||null==n||!(0,ee.A)(t)&&!(0,ee.A)(n)?t!=t&&n!=n:J(t,n,r,o,e,a))};var ne=n(7942);const re=function(e){return e==e&&!(0,ne.A)(e)},oe=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},ae=function(e){var t=function(e){for(var t=(0,C.A)(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,re(o)]}return t}(e);return 1==t.length&&t[0][2]?oe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,a=o,l=!r;if(null==e)return!a;for(e=Object(e);o--;){var s=n[o];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var c=(s=n[o])[0],u=e[c],d=s[1];if(l&&s[2]){if(void 0===u&&!(c in e))return!1}else{var f=new i;if(r)var p=r(u,d,c,e,t,f);if(!(void 0===p?te(d,u,3,r,f):p))return!1}}return!0}(n,e,t)}};var le=n(4089),ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,se=/^\w*$/;const ce=function(e,t){if((0,w.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,le.A)(e))||se.test(e)||!ie.test(e)||null!=t&&e in Object(t)};function ue(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var l=e.apply(this,r);return n.cache=a.set(o,l)||a,l};return n.cache=new(ue.Cache||a.A),n}ue.Cache=a.A;var de=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fe=/\\(\\)?/g;const pe=(he=ue((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(de,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}),(function(e){return 500===me.size&&me.clear(),e})),me=he.cache,he);var he,me,ge=n(5133),be=f.A?f.A.prototype:void 0,ve=be?be.toString:void 0;const ye=function e(t){if("string"==typeof t)return t;if((0,w.A)(t))return(0,ge.A)(t,e)+"";if((0,le.A)(t))return ve?ve.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},we=function(e){return null==e?"":ye(e)},Ee=function(e,t){return(0,w.A)(e)?e:ce(e,t)?[e]:pe(we(e))},xe=function(e){if("string"==typeof e||(0,le.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Se=function(e,t){for(var n=0,r=(t=Ee(t,e)).length;null!=e&&n<r;)e=e[xe(t[n++])];return n&&n==r?e:void 0},ke=function(e,t){return null!=e&&t in Object(e)};var Ce=n(1697),Ne=n(5378),_e=n(7893);const Te=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Ee(t,e)).length,a=!1;++r<o;){var l=xe(t[r]);if(!(a=null!=e&&n(e,l)))break;e=e[l]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&(0,_e.A)(o)&&(0,Ne.A)(l,o)&&((0,w.A)(e)||(0,Ce.A)(e))}(e,t,ke)},Ae=function(e,t){return ce(e)&&re(t)?oe(xe(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Se(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Te(n,e):te(t,r,3)}},Re=function(e){return e},Oe=function(e){return ce(e)?(t=xe(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Se(t,e)}}(e);var t},$e=function(e){return"function"==typeof e?e:null==e?Re:"object"==typeof e?(0,w.A)(e)?Ae(e[0],e[1]):ae(e):Oe(e)}},2026:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e.has(t)}},6713:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},1465:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(405);const o=n(9600).A["__core-js_shared__"];var a,l=(a=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";var i=n(7942),s=n(1548),c=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,f=u.toString,p=d.hasOwnProperty,h=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,i.A)(e)||(t=e,l&&l in t))&&((0,r.A)(e)?h:c).test((0,s.A)(e));var t},g=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return m(n)?n:void 0}},5378:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},9600:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6713),o="object"==typeof self&&self&&self.Object===Object&&self;const a=r.A||o||Function("return this")()},9922:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1548:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Function.prototype.toString;const o=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6979:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},1697:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(2135),o=n(7313);const a=function(e){return(0,o.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var l=Object.prototype,i=l.hasOwnProperty,s=l.propertyIsEnumerable;const c=a(function(){return arguments}())?a:function(e){return(0,o.A)(e)&&i.call(e,"callee")&&!s.call(e,"callee")}},6956:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=Array.isArray},1475:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(405),o=n(7893);const a=function(e){return null!=e&&(0,o.A)(e.length)&&!(0,r.A)(e)}},5821:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9600);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,l=a&&a.exports===o?r.A.Buffer:void 0;const i=(l?l.isBuffer:void 0)||function(){return!1}},405:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2135),o=n(7942);const a=function(e){if(!(0,o.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7893:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7942:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7313:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},4089:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2135),o=n(7313);const a=function(e){return"symbol"==typeof e||(0,o.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},9410:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(2135),o=n(7893),a=n(7313),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var i=n(6713),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=s&&"object"==typeof module&&module&&!module.nodeType&&module,u=c&&c.exports===s&&i.A.process,d=function(){try{return c&&c.require&&c.require("util").types||u&&u.binding&&u.binding("util")}catch(e){}}(),f=d&&d.isTypedArray;const p=f?(h=f,function(e){return h(e)}):function(e){return(0,a.A)(e)&&(0,o.A)(e.length)&&!!l[(0,r.A)(e)]};var h},4768:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(1697),o=n(6956),a=n(5821),l=n(5378),i=n(9410),s=Object.prototype.hasOwnProperty;const c=function(e,t){var n=(0,o.A)(e),c=!n&&(0,r.A)(e),u=!n&&!c&&(0,a.A)(e),d=!n&&!c&&!u&&(0,i.A)(e),f=n||c||u||d,p=f?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],h=p.length;for(var m in e)!t&&!s.call(e,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,l.A)(m,h))||p.push(m);return p};var u=Object.prototype;const d=(f=Object.keys,p=Object,function(e){return f(p(e))});var f,p,h=Object.prototype.hasOwnProperty;const m=function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||u))return d(e);var t,n,r=[];for(var o in Object(e))h.call(e,o)&&"constructor"!=o&&r.push(o);return r};var g=n(1475);const b=function(e){return(0,g.A)(e)?c(e):m(e)}},9543:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(5936),o=n(4149),a=n(7419);const l=function(e,t){return!(null==e||!e.length)&&(0,a.A)(e,t,0)>-1},i=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var s=n(2026),c=n(8574);var u=n(9922);const d=c.A&&1/(0,u.A)(new c.A([,-0]))[1]==1/0?function(e){return new c.A(e)}:function(){},f=function(e,t){return e&&e.length?function(e,t,n){var r=-1,a=l,c=e.length,f=!0,p=[],h=p;if(n)f=!1,a=i;else if(c>=200){var m=t?null:d(e);if(m)return(0,u.A)(m);f=!1,a=s.A,h=new o.A}else h=t?[]:p;e:for(;++r<c;){var g=e[r],b=t?t(g):g;if(g=n||0!==g?g:0,f&&b==b){for(var v=h.length;v--;)if(h[v]===b)continue e;t&&h.push(b),p.push(g)}else a(h,b,n)||(h!==p&&h.push(b),p.push(g))}return p}(e,(0,r.A)(t,2)):[]}},1123:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,iX:()=>a.useSWRConfig});var r=n(1343),o=n(8139),a=n(5434);const l=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)}),i={dedupe:!0},s=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((e,t,n)=>{const{cache:s,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:h,refreshWhenHidden:m,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=a.SWRGlobalState.get(s),[x,S]=(0,a.serialize)(e),k=(0,r.useRef)(!1),C=(0,r.useRef)(!1),N=(0,r.useRef)(x),_=(0,r.useRef)(t),T=(0,r.useRef)(n),A=()=>T.current,R=()=>A().isVisible()&&A().isOnline(),[O,$,L,I]=(0,a.createCacheHelper)(s,x),z=(0,r.useRef)({}).current,P=(0,a.isUndefined)(d)?n.fallback[x]:d,M=(e,t)=>{for(const n in z){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.isUndefined)(e[r]))return!1;if(!c(q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},D=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,a.isUndefined)(f)?!A().isPaused()&&!u&&(!!(0,a.isUndefined)(p)||p):f),n=t=>{const n=(0,a.mergeObjects)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),o=I(),l=n(r),i=r===o?l:n(o);let s=l;return[()=>{const e=n(O());return M(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>i]}),[s,x]),B=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>L(x,((t,n)=>{M(n,t)||e()}))),[s,x]),D[0],D[1]),F=!k.current,j=v[x]&&v[x].length>0,V=B.data,H=(0,a.isUndefined)(V)?P:V,U=B.error,W=(0,r.useRef)(H),q=b?(0,a.isUndefined)(V)?W.current:V:H,K=!(j&&!(0,a.isUndefined)(U))&&(F&&!(0,a.isUndefined)(f)?f:!A().isPaused()&&(u?!(0,a.isUndefined)(H)&&p:(0,a.isUndefined)(H)||p)),Q=!!(x&&t&&F&&K),Z=(0,a.isUndefined)(B.isValidating)?Q:B.isValidating,Y=(0,a.isUndefined)(B.isLoading)?Q:B.isLoading,X=(0,r.useCallback)((async e=>{const t=_.current;if(!x||!t||C.current||A().isPaused())return!1;let r,o,l=!0;const i=e||{},s=!w[x]||!i.dedupe,u=()=>a.IS_REACT_LEGACY?!C.current&&x===N.current&&k.current:x===N.current,d={isValidating:!1,isLoading:!1},f=()=>{$(d)},p=()=>{const e=w[x];e&&e[1]===o&&delete w[x]},h={isValidating:!0};(0,a.isUndefined)(O().data)&&(h.isLoading=!0);try{if(s&&($(h),n.loadingTimeout&&(0,a.isUndefined)(O().data)&&setTimeout((()=>{l&&u()&&A().onLoadingSlow(x,n)}),n.loadingTimeout),w[x]=[t(S),(0,a.getTimestamp)()]),[r,o]=w[x],r=await r,s&&setTimeout(p,n.dedupingInterval),!w[x]||w[x][1]!==o)return s&&u()&&A().onDiscarded(x),!1;d.error=a.UNDEFINED;const e=y[x];if(!(0,a.isUndefined)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&A().onDiscarded(x),!1;const i=O().data;d.data=c(i,r)?i:r,s&&u()&&A().onSuccess(r,x,n)}catch(e){p();const t=A(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,x,t),(!0===n||(0,a.isFunction)(n)&&n(e))&&(A().revalidateOnFocus&&A().revalidateOnReconnect&&!R()||t.onErrorRetry(e,x,t,(e=>{const t=v[x];t&&t[0]&&t[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return l=!1,f(),!0}),[x,s]),G=(0,r.useCallback)(((...e)=>(0,a.internalMutate)(s,N.current,...e)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{_.current=t,T.current=n,(0,a.isUndefined)(V)||(W.current=V)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!x)return;const e=X.bind(a.UNDEFINED,i);let t=0;const n=(0,a.subscribeCallback)(x,v,((n,r={})=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();A().revalidateOnFocus&&n>t&&R()&&(t=n+A().focusThrottleInterval,e())}else if(n==a.revalidateEvents.RECONNECT_EVENT)A().revalidateOnReconnect&&R()&&e();else{if(n==a.revalidateEvents.MUTATE_EVENT)return X();if(n==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(r)}}));return C.current=!1,N.current=x,k.current=!0,$({_k:S}),K&&((0,a.isUndefined)(H)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{C.current=!0,n()}}),[x]),(0,a.useIsomorphicLayoutEffect)((()=>{let e;function t(){const t=(0,a.isFunction)(h)?h(O().data):h;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!m&&!A().isVisible()||!g&&!A().isOnline()?t():X(i).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[h,m,g,x]),(0,r.useDebugValue)(q),u&&(0,a.isUndefined)(H)&&x){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");_.current=t,T.current=n,C.current=!1;const e=E[x];if(!(0,a.isUndefined)(e)){const t=G(e);l(t)}if(!(0,a.isUndefined)(U))throw U;{const e=X(i);(0,a.isUndefined)(q)||(e.status="fulfilled",e.value=!0),l(e)}}return{mutate:G,get data(){return z.data=!0,q},get error(){return z.error=!0,U},get isValidating(){return z.isValidating=!0,Z},get isLoading(){return z.isLoading=!0,Y}}})))}}]);