@gamecrafters/base-ui 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/build/components/code/Code.d.ts +7 -0
  2. package/build/components/code/Code.types.d.ts +5 -0
  3. package/build/components/code/index.d.ts +2 -0
  4. package/build/components/code-block/CodeBlock.d.ts +12 -0
  5. package/build/components/code-block/CodeBlock.types.d.ts +40 -0
  6. package/build/components/code-block/CodeBlockCode.d.ts +7 -0
  7. package/build/components/code-block/CodeBlockContent.d.ts +7 -0
  8. package/build/components/code-block/CodeBlockContext.d.ts +2 -0
  9. package/build/components/code-block/CodeBlockHeader.d.ts +7 -0
  10. package/build/components/code-block/CodeBlockTitle.d.ts +7 -0
  11. package/build/components/code-block/highlightCode.d.ts +12 -0
  12. package/build/components/code-block/index.d.ts +38 -0
  13. package/build/components/highlight/Highlight.d.ts +11 -0
  14. package/build/components/highlight/Highlight.types.d.ts +15 -0
  15. package/build/components/highlight/highlightMatches.d.ts +2 -0
  16. package/build/components/highlight/index.d.ts +3 -0
  17. package/build/components/index.d.ts +9 -0
  18. package/build/components/mark/Mark.d.ts +11 -0
  19. package/build/components/mark/Mark.types.d.ts +11 -0
  20. package/build/components/mark/index.d.ts +2 -0
  21. package/build/components/markdown/Markdown.d.ts +10 -0
  22. package/build/components/markdown/Markdown.types.d.ts +17 -0
  23. package/build/components/markdown/MarkdownProse.d.ts +8 -0
  24. package/build/components/markdown/index.d.ts +3 -0
  25. package/build/components/markdown/markdownTheme.d.ts +6 -0
  26. package/build/components/progress-circle/ProgressCircle.d.ts +11 -0
  27. package/build/components/progress-circle/ProgressCircle.types.d.ts +10 -0
  28. package/build/components/progress-circle/index.d.ts +2 -0
  29. package/build/components/rating/Rating.d.ts +18 -0
  30. package/build/components/rating/Rating.types.d.ts +16 -0
  31. package/build/components/rating/index.d.ts +2 -0
  32. package/build/components/rich-text-editor/RichTextEditor.d.ts +15 -0
  33. package/build/components/rich-text-editor/RichTextEditor.types.d.ts +36 -0
  34. package/build/components/rich-text-editor/RichTextEditorContent.d.ts +5 -0
  35. package/build/components/rich-text-editor/RichTextEditorContext.d.ts +2 -0
  36. package/build/components/rich-text-editor/RichTextEditorToolbar.d.ts +8 -0
  37. package/build/components/rich-text-editor/index.d.ts +23 -0
  38. package/build/components/rich-text-editor/richTextEditorTheme.d.ts +4 -0
  39. package/build/components/status/Status.d.ts +11 -0
  40. package/build/components/status/Status.types.d.ts +19 -0
  41. package/build/components/status/StatusContext.d.ts +2 -0
  42. package/build/components/status/StatusIndicator.d.ts +8 -0
  43. package/build/components/status/index.d.ts +17 -0
  44. package/build/hooks/useSlots.d.ts +1 -4
  45. package/build/lib/qr-code/core/data.d.ts +13 -0
  46. package/build/lib/qr-code/core/errors.d.ts +12 -0
  47. package/build/lib/qr-code/core/format.d.ts +12 -0
  48. package/build/lib/qr-code/core/index.d.ts +16 -0
  49. package/build/lib/qr-code/core/mask.d.ts +19 -0
  50. package/build/lib/qr-code/core/matrix.d.ts +17 -0
  51. package/build/lib/qr-code/core/micro.d.ts +16 -0
  52. package/build/lib/qr-code/core/mode.d.ts +31 -0
  53. package/build/lib/qr-code/core/reed-solomon.d.ts +13 -0
  54. package/build/lib/qr-code/core/segment.d.ts +8 -0
  55. package/build/lib/qr-code/core/tables.d.ts +49 -0
  56. package/build/lib/qr-code/core/types.d.ts +36 -0
  57. package/build/lib/qr-code/core/version.d.ts +18 -0
  58. package/build/lib/qr-code/index.d.ts +17 -0
  59. package/build/lib/qr-code/types/index.d.ts +65 -0
  60. package/build/lib/qr-code/utilities/adler32.d.ts +4 -0
  61. package/build/lib/qr-code/utilities/common.d.ts +2 -0
  62. package/build/lib/qr-code/utilities/crc32.d.ts +4 -0
  63. package/build/lib/qr-code/utilities/data-uri.d.ts +6 -0
  64. package/build/lib/qr-code/utilities/deflate.d.ts +6 -0
  65. package/build/lib/qr-code/utilities/gradient.d.ts +10 -0
  66. package/build/lib/qr-code/utilities/ico.d.ts +4 -0
  67. package/build/lib/qr-code/utilities/logo.d.ts +9 -0
  68. package/build/lib/qr-code/utilities/png-encoder.d.ts +5 -0
  69. package/build/lib/qr-code/utilities/shapes.d.ts +7 -0
  70. package/build/lib/qr-code/utilities/svg.d.ts +5 -0
  71. package/build/lib/qr-code/utilities/text.d.ts +11 -0
  72. package/build/main.cjs.js +2 -2
  73. package/build/main.esm.js +2 -2
  74. package/build/styles/main.css +1 -1
  75. package/package.json +11 -1
package/build/main.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("react-dom"),a=require("react-is"),n=require("react-dom/client"),i=require("@oddbird/popover-polyfill/fn");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var o=r(e);function s(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]])}return a}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var c,d={exports:{}},u={};var m,p,h={};
1
+ "use strict";var e=require("react"),t=require("react-dom"),a=require("react-is"),n=require("shiki"),i=require("react-dom/client"),r=require("@lexical/react/LexicalComposer"),o=require("@lexical/markdown"),s=require("@lexical/react/LexicalComposerContext"),l=require("@lexical/code-core"),c=require("@lexical/link"),d=require("@lexical/list"),u=require("@lexical/rich-text"),m=require("@lexical/react/LexicalHistoryPlugin"),p=require("@lexical/react/LexicalLinkPlugin"),h=require("@lexical/react/LexicalListPlugin"),g=require("@lexical/react/LexicalOnChangePlugin"),f=require("@lexical/react/LexicalTabIndentationPlugin"),v=require("@lexical/react/LexicalContentEditable"),b=require("@lexical/react/LexicalErrorBoundary"),x=require("@lexical/react/LexicalRichTextPlugin"),y=require("@lexical/selection"),w=require("@lexical/utils"),N=require("lexical"),j=require("@oddbird/popover-polyfill/fn");function k(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var C=k(e);function S(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]])}return a}function O(e,t,a,n){return new(a||(a=Promise))(function(i,r){function o(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var T,A={exports:{}},L={};var I,D,E={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,4 +7,4 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function g(){return m||(m=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case v:return"Profiler";case f:return"StrictMode";case w:return"Suspense";case N:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case x:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case y:var a=e.render;return(e=e.displayName)||(e=""!==(e=a.displayName||a.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(a=e.displayName||null)?a:t(e.type)||"Memo";case k:a=e._payload,e=e._init;try{return t(e(a))}catch(e){}}return null}function a(e){return""+e}function n(e){try{a(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),a(e)}}function i(e){if(e===g)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var a=t(e);return a?"<"+a+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function o(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,a,i,r,s,c){var u,p=a.children;if(void 0!==p)if(r)if(A(p)){for(r=0;r<p.length;r++)l(p[r]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(p);if(M.call(a,"key")){p=t(e);var h=Object.keys(a).filter(function(e){return"key"!==e});r=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+r]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',r,p,h,p),z[p+r]=!0)}if(p=null,void 0!==i&&(n(i),p=""+i),function(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(a)&&(n(a.key),p=""+a.key),"key"in a)for(var g in i={},a)"key"!==g&&(i[g]=a[g]);else i=a;return p&&function(e,t){function a(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,a,n,i,r){var s=a.ref;return e={$$typeof:m,type:e,key:t,props:a,_owner:n},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,i,null===(u=O.A)?null:u.getOwner(),s,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,A=Array.isArray,T=console.createTask?console.createTask:function(){return null},I={},D=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,r)(),L=T(i(r)),z={};h.Fragment=g,h.jsx=function(e,t,a){var n=1e4>O.recentlyCreatedOwnerStacks++;return s(e,t,a,!1,n?Error("react-stack-top-frame"):D,n?T(i(e)):L)},h.jsxs=function(e,t,a){var n=1e4>O.recentlyCreatedOwnerStacks++;return s(e,t,a,!0,n?Error("react-stack-top-frame"):D,n?T(i(e)):L)}}()),h}var f=(p||(p=1,"production"===process.env.NODE_ENV?d.exports=function(){if(c)return u;c=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(t,a,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==a.key&&(i=""+a.key),"key"in a)for(var r in n={},a)"key"!==r&&(n[r]=a[r]);else n=a;return a=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==a?a:null,props:n}}return u.Fragment=t,u.jsx=a,u.jsxs=a,u}():d.exports=g()),d.exports);const v=!("undefined"==typeof window||!window.document||!window.document.createElement),b=e.version.split("."),x=parseInt(b[0],10),y=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(e.version),w=x>=19||y,N=(t,a)=>e.useCallback(e=>{const n=j(t,e),i=j(a,e);if(w)return()=>{n?n():j(t,null),i?i():j(a,null)}},[t,a]),j=(e,t)=>{if("function"==typeof e)return e(t);e&&(e.current=t)};function k(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=k(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function C(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=k(e))&&(n&&(n+=" "),n+=t);return n}const S=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),O="-",M=[],A=e=>{const t=D(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return I(e);const a=e.split(O),n=""===a[0]&&a.length>1?1:0;return T(a,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],i=a[e];return t?i?((e,t)=>{const a=new Array(e.length+t.length);for(let t=0;t<e.length;t++)a[t]=e[t];for(let n=0;n<t.length;n++)a[e.length+n]=t[n];return a})(i,t):t:i||M}return a[e]||M}}},T=(e,t,a)=>{if(0===e.length-t)return a.classGroupId;const n=e[t],i=a.nextPart.get(n);if(i){const a=T(e,t+1,i);if(a)return a}const r=a.validators;if(null===r)return;const o=0===t?e.join(O):e.slice(t).join(O),s=r.length;for(let e=0;e<s;e++){const t=r[e];if(t.validator(o))return t.classGroupId}},I=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),n=t.slice(0,a);return n?"arbitrary.."+n:void 0})(),D=e=>{const{theme:t,classGroups:a}=e;return L(a,t)},L=(e,t)=>{const a=S();for(const n in e){const i=e[n];z(i,a,n,t)}return a},z=(e,t,a,n)=>{const i=e.length;for(let r=0;r<i;r++){const i=e[r];E(i,t,a,n)}},E=(e,t,a,n)=>{"string"!=typeof e?"function"!=typeof e?R(e,t,a,n):$(e,t,a,n):P(e,t,a)},P=(e,t,a)=>{(""===e?t:B(t,e)).classGroupId=a},$=(e,t,a,n)=>{V(e)?z(e(n),t,a,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(a,e)))},R=(e,t,a,n)=>{const i=Object.entries(e),r=i.length;for(let e=0;e<r;e++){const[r,o]=i[e];z(o,B(t,r),a,n)}},B=(e,t)=>{let a=e;const n=t.split(O),i=n.length;for(let e=0;e<i;e++){const t=n[e];let i=a.nextPart.get(t);i||(i=S(),a.nextPart.set(t,i)),a=i}return a},V=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),n=Object.create(null);const i=(i,r)=>{a[i]=r,t++,t>e&&(t=0,n=a,a=Object.create(null))};return{get(e){let t=a[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in a?a[e]=t:i(e,t)}}},F=[],H=(e,t,a,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:n,isExternal:i}),W=e=>{const{prefix:t,experimentalParseClassName:a}=e;let n=e=>{const t=[];let a,n=0,i=0,r=0;const o=e.length;for(let s=0;s<o;s++){const o=e[s];if(0===n&&0===i){if(":"===o){t.push(e.slice(r,s)),r=s+1;continue}if("/"===o){a=s;continue}}"["===o?n++:"]"===o?n--:"("===o?i++:")"===o&&i--}const s=0===t.length?e:e.slice(r);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return H(t,c,l,a&&a>r?a-r:void 0)};if(t){const e=t+":",a=n;n=t=>t.startsWith(e)?a(t.slice(e.length)):H(F,!1,t,void 0,!0)}if(a){const e=n;n=t=>a({className:t,parseClassName:e})}return n},G=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,a)=>{t.set(e,1e6+a)}),e=>{const a=[];let n=[];for(let i=0;i<e.length;i++){const r=e[i],o="["===r[0],s=t.has(r);o||s?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(r)):n.push(r)}return n.length>0&&(n.sort(),a.push(...n)),a}},q=e=>{const t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let e=0;e<a.length;e++)t[a[e]]=!0;return t},K=/\s+/,U=e=>{if("string"==typeof e)return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=U(e[n]))&&(a&&(a+=" "),a+=t);return a},Y=(e,...t)=>{let a,n,i,r;const o=e=>{const t=n(e);if(t)return t;const r=((e,t)=>{const{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:r,postfixLookupClassGroupIds:o}=t,s=[],l=e.trim().split(K);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:d,modifiers:u,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}=a(t);if(d){c=t+(c.length>0?" "+c:c);continue}let g,f=!!h;if(f){g=n(p.substring(0,h));const e=g&&o[g]?n(p):void 0;e&&e!==g&&(g=e,f=!1)}else g=n(p);if(!g){if(!f){c=t+(c.length>0?" "+c:c);continue}if(g=n(p),!g){c=t+(c.length>0?" "+c:c);continue}f=!1}const v=0===u.length?"":1===u.length?u[0]:r(u).join(":"),b=m?v+"!":v,x=b+g;if(s.indexOf(x)>-1)continue;s.push(x);const y=i(g,f);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}c=t+(c.length>0?" "+c:c)}return c})(e,a);return i(e,r),r};return r=s=>{const l=t.reduce((e,t)=>t(e),e());return a=(e=>({cache:_(e.cacheSize),parseClassName:W(e),sortModifiers:G(e),postfixLookupClassGroupIds:q(e),...A(e)}))(l),n=a.cache.get,i=a.cache.set,r=o,o(s)},(...e)=>r(((...e)=>{let t,a,n=0,i="";for(;n<e.length;)(t=e[n++])&&(a=U(t))&&(i&&(i+=" "),i+=a);return i})(...e))},Z=[],Q=e=>{const t=t=>t[e]||Z;return t.isThemeGetter=!0,t},X=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ee=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,te=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,re=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>ee.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&se(e.slice(0,-1)),de=e=>te.test(e),ue=()=>!0,me=e=>ae.test(e)&&!ne.test(e),pe=()=>!1,he=e=>ie.test(e),ge=e=>re.test(e),fe=e=>!xe(e)&&!Oe(e),ve=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),be=e=>Ee(e,Be,pe),xe=e=>X.test(e),ye=e=>Ee(e,Ve,me),we=e=>Ee(e,_e,se),Ne=e=>Ee(e,He,ue),je=e=>Ee(e,Fe,pe),ke=e=>Ee(e,$e,pe),Ce=e=>Ee(e,Re,ge),Se=e=>Ee(e,We,he),Oe=e=>J.test(e),Me=e=>Pe(e,Ve),Ae=e=>Pe(e,Fe),Te=e=>Pe(e,$e),Ie=e=>Pe(e,Be),De=e=>Pe(e,Re),Le=e=>Pe(e,We,!0),ze=e=>Pe(e,He,!0),Ee=(e,t,a)=>{const n=X.exec(e);return!!n&&(n[1]?t(n[1]):a(n[2]))},Pe=(e,t,a=!1)=>{const n=J.exec(e);return!!n&&(n[1]?t(n[1]):a)},$e=e=>"position"===e||"percentage"===e,Re=e=>"image"===e||"url"===e,Be=e=>"length"===e||"size"===e||"bg-size"===e,Ve=e=>"length"===e,_e=e=>"number"===e,Fe=e=>"family-name"===e,He=e=>"number"===e||"weight"===e,We=e=>"shadow"===e,Ge=()=>{const e=Q("color"),t=Q("font"),a=Q("text"),n=Q("font-weight"),i=Q("tracking"),r=Q("leading"),o=Q("breakpoint"),s=Q("container"),l=Q("spacing"),c=Q("radius"),d=Q("shadow"),u=Q("inset-shadow"),m=Q("text-shadow"),p=Q("drop-shadow"),h=Q("blur"),g=Q("perspective"),f=Q("aspect"),v=Q("ease"),b=Q("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Oe,xe],y=()=>[Oe,xe,l],w=()=>[oe,"full","auto",...y()],N=()=>[le,"none","subgrid",Oe,xe],j=()=>["auto",{span:["full",le,Oe,xe]},le,Oe,xe],k=()=>[le,"auto",Oe,xe],C=()=>["auto","min","max","fr",Oe,xe],S=()=>["auto",...y()],O=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[oe,"screen","full","dvw","lvw","svw","min","max","fit",...y()],A=()=>[oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],T=()=>[e,Oe,xe],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Te,ke,{position:[Oe,xe]}],D=()=>["auto","cover","contain",Ie,be,{size:[Oe,xe]}],L=()=>[ce,Me,ye],z=()=>["","none","full",c,Oe,xe],E=()=>["",se,Me,ye],P=()=>[se,ce,Te,ke],$=()=>["","none",h,Oe,xe],R=()=>["none",se,Oe,xe],B=()=>["none",se,Oe,xe],V=()=>[se,Oe,xe],_=()=>[oe,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[de],breakpoint:[de],color:[ue],container:[de],"drop-shadow":[de],ease:["in","out","in-out"],font:[fe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[de],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[de],shadow:[de],spacing:["px",se],text:[de],"text-shadow":[de],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,xe,Oe,f]}],container:["container"],"container-type":[{"@container":["","normal","size",Oe,xe]}],"container-named":[ve],columns:[{columns:[se,xe,Oe,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",Oe,xe]}],basis:[{basis:[oe,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,oe,"auto","initial","none",xe]}],grow:[{grow:["",se,Oe,xe]}],shrink:[{shrink:["",se,Oe,xe]}],order:[{order:[le,"first","last","none",Oe,xe]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...A()]}],"min-block-size":[{"min-block":["auto",...A()]}],"max-block-size":[{"max-block":["none",...A()]}],w:[{w:[s,"screen",...O()]}],"min-w":[{"min-w":[s,"screen","none",...O()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",a,Me,ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ze,Ne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,xe]}],"font-family":[{font:[Ae,je,t]}],"font-features":[{"font-features":[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Oe,xe]}],"line-clamp":[{"line-clamp":[se,"none",Oe,we]}],leading:[{leading:[r,...y()]}],"list-image":[{"list-image":["none",Oe,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",Oe,ye]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[se,"auto",Oe,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"tab-size":[{tab:[le,Oe,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,Oe,xe],radial:["",Oe,xe],conic:[le,Oe,xe]},De,Ce]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-bs":[{"border-bs":E()}],"border-w-be":[{"border-be":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[se,Oe,xe]}],"outline-w":[{outline:["",se,Me,ye]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,Le,Se]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",u,Le,Se]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[se,ye]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",m,Le,Se]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[se,Oe,xe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Oe,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,xe]}],filter:[{filter:["","none",Oe,xe]}],blur:[{blur:$()}],brightness:[{brightness:[se,Oe,xe]}],contrast:[{contrast:[se,Oe,xe]}],"drop-shadow":[{"drop-shadow":["","none",p,Le,Se]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",se,Oe,xe]}],"hue-rotate":[{"hue-rotate":[se,Oe,xe]}],invert:[{invert:["",se,Oe,xe]}],saturate:[{saturate:[se,Oe,xe]}],sepia:[{sepia:["",se,Oe,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,xe]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[se,Oe,xe]}],"backdrop-contrast":[{"backdrop-contrast":[se,Oe,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,Oe,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,Oe,xe]}],"backdrop-invert":[{"backdrop-invert":["",se,Oe,xe]}],"backdrop-opacity":[{"backdrop-opacity":[se,Oe,xe]}],"backdrop-saturate":[{"backdrop-saturate":[se,Oe,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",se,Oe,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",Oe,xe]}],ease:[{ease:["linear","initial",v,Oe,xe]}],delay:[{delay:[se,Oe,xe]}],animate:[{animate:["none",b,Oe,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Oe,xe]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[Oe,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_()}],"translate-x":[{"translate-x":_()}],"translate-y":[{"translate-y":_()}],"translate-z":[{"translate-z":_()}],"translate-none":["translate-none"],zoom:[{zoom:[le,Oe,xe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe,xe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[se,Me,ye,we]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qe=(e,t,a)=>{void 0!==a&&(e[t]=a)},Ke=(e,t)=>{if(t)for(const a in t)qe(e,a,t[a])},Ue=(e,t)=>{if(t)for(const a in t)Ye(e,t,a)},Ye=(e,t,a)=>{const n=t[a];void 0!==n&&(e[a]=e[a]?e[a].concat(n):n)},Ze=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Qe=C,Xe=(e,t)=>a=>{var n;if(null==(null==t?void 0:t.variants))return Qe(e,null==a?void 0:a.class,null==a?void 0:a.className);const{variants:i,defaultVariants:r}=t,o=Object.keys(i).map(e=>{const t=null==a?void 0:a[e],n=null==r?void 0:r[e];if(null===t)return null;const o=Ze(t)||Ze(n);return i[e][o]}),s=a&&Object.entries(a).reduce((e,t)=>{let[a,n]=t;return void 0===n||(e[a]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:a,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...r,...s}[t]):{...r,...s}[t]===a})?[...e,a,n]:e},[]);return Qe(e,o,l,null==a?void 0:a.class,null==a?void 0:a.className)},Je=((e,...t)=>"function"==typeof e?Y(Ge,e,...t):Y(()=>((e,{cacheSize:t,prefix:a,experimentalParseClassName:n,extend:i={},override:r={}})=>(qe(e,"cacheSize",t),qe(e,"prefix",a),qe(e,"experimentalParseClassName",n),Ke(e.theme,r.theme),Ke(e.classGroups,r.classGroups),Ke(e.conflictingClassGroups,r.conflictingClassGroups),Ke(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),qe(e,"postfixLookupClassGroups",r.postfixLookupClassGroups),qe(e,"orderSensitiveModifiers",r.orderSensitiveModifiers),Ue(e.theme,i.theme),Ue(e.classGroups,i.classGroups),Ue(e.conflictingClassGroups,i.conflictingClassGroups),Ue(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ye(e,i,"postfixLookupClassGroups"),Ye(e,i,"orderSensitiveModifiers"),e))(Ge(),e),...t))({extend:{classGroups:{typography:["text-body-large","text-body-medium","text-body-small","text-caption","text-code-block","text-code-inline","text-display","text-subtitle","text-title-large","text-title-medium","text-title-small"],textSize:["text-size-large","text-size-medium","text-size-small"],textWeight:["text-weight-light","text-weight-normal","text-weight-medium","text-weight-semibold"],animate:["shimmer"],duration:["duration-micro","duration-short","duration-medium","duration-long"],ease:["ease-enter","ease-exit","ease-hover","ease-move"],z:["z-behind","z-default","z-dropdown","z-modal","z-overlay","z-popover","z-skip-link","z-sticky"]}}}),et=(...e)=>Je(C(e)),tt=e.forwardRef,at=e.createContext({}),nt="accordion";function it(e,t){const a=e,{as:n="div",className:i,value:r,defaultValue:l,onChange:c,multiple:d=!1,disabled:u,headingLevel:m="h3",onKeyDown:p}=a,h=s(a,["as","className","value","defaultValue","onChange","multiple","disabled","headingLevel","onKeyDown"]),g=o.useRef(null),v=N(t,g),b=void 0!==r,[x,y]=o.useState(()=>null!=l?l:[]),w=b?r:x;return f.jsx(at.Provider,{value:{open:w,toggle:e=>{const t=w.includes(e)?w.filter(t=>t!==e):d?[...w,e]:[e];b||y(t),null==c||c(t)},disabled:u,headingLevel:m},children:f.jsx(n,Object.assign({ref:v,className:et(nt,i),onKeyDown:e=>{null==p||p(e);const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,a="Home"===e.key||"End"===e.key;if(e.defaultPrevented||0===t&&!a)return;const n=(i=g.current)?Array.from(i.querySelectorAll("[data-component='Accordion.HeaderButton']:not([disabled])")).filter(e=>e.closest("[data-component='Accordion']")===i):[];var i;const r=n.indexOf(document.activeElement);-1!==r&&(e.preventDefault(),(a?n["Home"===e.key?0:n.length-1]:n[(r+t+n.length)%n.length]).focus())},"data-component":"Accordion","data-multiple":d,"data-disabled":Boolean(u)},h))})}it.displayName="Accordion";var rt=tt(it);function ot(t,a,n){const i=n(),r=Object.keys(i),o=e.forwardRef(({"aria-label":t,"aria-labelledby":n,tabIndex:o,className:s="",fill:l="currentColor",size:c=16,id:d,title:u,style:m,...p},h)=>{const g=c,f=function(e,t){const a=e.map(e=>parseInt(e,10)).reduce((e,a)=>a<=t?a:e,parseInt(e[0],10));return a.toString()}(r,g),v=i[f].width,b=g*(v/parseInt(f,10)),x=i[f].path,y=t||n,w=y?"img":void 0,N=`${a} ${s}`.trim();return e.createElement("svg",{ref:h,...p,"aria-hidden":y?void 0:"true",tabIndex:o,focusable:(o??-1)>=0?"true":"false","aria-label":t,"aria-labelledby":n,className:N,role:w,viewBox:`0 0 ${v} ${f}`,width:b,height:g,fill:l,id:d,display:"inline-block",overflow:"visible",style:m},u?e.createElement("title",null,u):null,x)});return o.displayName=t,o}const st=ot("AddRegular","icon icon-add-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75"})}})),lt=ot("ArchiveRegular","icon icon-archive-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z"})}})),ct=ot("ArrowClockwiseRegular","icon icon-arrow-clockwise-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2"})}})),dt=ot("ArrowLeftRegular","icon icon-arrow-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z"})}})),ut=ot("ArrowSortDownRegular","icon icon-arrow-sort-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z"})}})),mt=ot("ArrowSortUpRegular","icon icon-arrow-sort-up-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z"})}})),pt=ot("ArrowUploadRegular","icon icon-arrow-upload-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743"})}})),ht=ot("BranchRegular","icon icon-branch-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0"})}})),gt=ot("CalendarLtrRegular","icon icon-calendar-ltr-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75"})}})),ft=ot("CheckmarkCircleRegular","icon icon-checkmark-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z"})}})),vt=ot("CheckmarkRegular","icon icon-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z"})}})),bt=ot("ChevronDownRegular","icon icon-chevron-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06"})}})),xt=ot("ChevronLeftRegular","icon icon-chevron-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0"})}})),yt=ot("ChevronRightRegular","icon icon-chevron-right-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"})}})),wt=ot("ChevronUpDownRegular","icon icon-chevron-up-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.54 2.23a.75.75 0 0 0-1.08 0l-6.25 6.5a.75.75 0 1 0 1.08 1.04L12 3.832l5.71 5.938a.75.75 0 1 0 1.08-1.04zm0 19.54a.75.75 0 0 1-1.08 0l-6.25-6.5a.75.75 0 1 1 1.08-1.04L12 20.168l5.71-5.938a.75.75 0 1 1 1.08 1.04z"})}})),Nt=ot("CircleHintRegular","icon icon-circle-hint-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49"})}})),jt=ot("ClockRegular","icon icon-clock-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z"})}})),kt=ot("DismissCircleRegular","icon icon-dismiss-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072"})}})),Ct=ot("DismissRegular","icon icon-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z"})}})),St=ot("DocumentRegular","icon icon-document-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z"})}})),Ot=ot("ErrorCircleRegular","icon icon-error-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751"})}})),Mt=ot("FilterDismissRegular","icon icon-filter-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z"})}})),At=ot("FolderOpenRegular","icon icon-folder-open-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124"})}})),Tt=ot("FolderRegular","icon icon-folder-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z"})}})),It=ot("InfoRegular","icon icon-info-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),Dt=ot("MergeRegular","icon icon-merge-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75"})}})),Lt=ot("MoreHorizontalRegular","icon icon-more-horizontal-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5"})}})),zt=ot("PauseRegular","icon icon-pause-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z"})}})),Et=ot("PlayRegular","icon icon-play-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z"})}})),Pt=ot("ProhibitedRegular","icon icon-prohibited-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5"})}})),$t=ot("RecordRegular","icon icon-record-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0"})}})),Rt=ot("SearchRegular","icon icon-search-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0"})}})),Bt=ot("ShieldCheckmarkRegular","icon icon-shield-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708"})}})),Vt=ot("ShieldDismissRegular","icon icon-shield-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22"})}})),_t=ot("ShieldErrorRegular","icon icon-shield-error-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),Ft=ot("ShieldRegular","icon icon-shield-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8"})}})),Ht=ot("WarningRegular","icon icon-warning-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5"})}})),Wt=e.createContext({}),Gt="accordion-header",qt="accordion-header-button",Kt="accordion-header-button-disabled",Ut="min-w-0",Yt="accordion-header-indicator",Zt="rotate-180";function Qt(e,t){var a;const{className:n,children:i,headingLevel:r}=e,l=s(e,["className","children","headingLevel"]),{headingLevel:c}=o.useContext(at),{headerId:d,panelId:u,isOpen:m,disabled:p,toggle:h}=o.useContext(Wt),g=null!==(a=null!=r?r:c)&&void 0!==a?a:"h3";return f.jsx(g,{className:Gt,"data-component":"Accordion.Header",children:f.jsxs("button",Object.assign({ref:t,type:"button",id:d,className:et(qt,p&&Kt,n),onClick:h,disabled:p,"aria-expanded":Boolean(m),"aria-controls":u,"data-component":"Accordion.HeaderButton","data-open":Boolean(m)},l,{children:[f.jsx("span",{className:Ut,children:i}),f.jsx(bt,{className:et(Yt,m&&Zt),"aria-hidden":"true"})]}))})}Qt.displayName="Accordion.Header";var Xt=tt(Qt);const Jt=t=>{const a=e.useId();return t||a},ea="accordion-item";function ta(e,t){var a,n;const i=e,{as:r="div",className:l,value:c,disabled:d}=i,u=s(i,["as","className","value","disabled"]),{open:m,toggle:p,disabled:h}=o.useContext(at),g=Jt(),v=null!=c?c:g,b=null!==(a=null==m?void 0:m.includes(v))&&void 0!==a&&a,x=null!==(n=null!=d?d:h)&&void 0!==n&&n,y={headerId:`${g}-header`,panelId:`${g}-panel`,isOpen:b,disabled:x,toggle:()=>null==p?void 0:p(v)};return f.jsx(Wt.Provider,{value:y,children:f.jsx(r,Object.assign({ref:t,className:et(ea,l),"data-component":"Accordion.Item","data-value":v,"data-open":b,"data-disabled":x},u))})}ta.displayName="Accordion.Item";var aa=tt(ta);const na="accordion-panel",ia="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function ra(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]),{headerId:l,panelId:c,isOpen:d}=o.useContext(Wt);return f.jsx(n,Object.assign({ref:t,id:c,hidden:!d,role:"region","aria-labelledby":l,className:et(na,d&&ia,i),"data-component":"Accordion.Panel","data-open":Boolean(d)},r))}ra.displayName="Accordion.Panel";var oa=tt(ra);const sa=Object.assign(rt,{Item:aa,Header:Xt,Panel:oa}),la=["[disabled]","[hidden]","[inert]","[tabindex='-1']"],ca=["a[href]","button","summary","select","input:not([type=hidden])","textarea","[tabindex='0']","audio[controls]","video[controls]","[contenteditable]"].map(e=>`${e}:not(${la.join("):not(")})`).join(", "),da=e=>{if(e.matches("[disabled], [hidden], [inert]"))return!0;const t=getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility},ua=e=>!e||da(e)?[]:Array.from(e.querySelectorAll(ca)).filter(e=>!da(e)),ma={vertical:{previous:"ArrowUp",next:"ArrowDown"},horizontal:{previous:"ArrowLeft",next:"ArrowRight"}},pa=({containerRef:t,direction:a="vertical",wrap:n=!1,disabled:i,focusableFilter:r})=>{e.useEffect(()=>{const e=t.current;if(!e||i)return;const{previous:o,next:s}=ma[a],l=t=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;const a="End"===t.key,i="Home"===t.key,l=t.key===s?1:t.key===o?-1:0;if(0===l&&!i&&!a)return;const c=ua(e).filter(e=>{var t;return null===(t=null==r?void 0:r(e))||void 0===t||t});if(0===c.length)return;if(t.preventDefault(),i||a)return void c[i?0:c.length-1].focus();const d=c.indexOf(document.activeElement),u=-1===d?0:d+l;u>=0&&u<c.length?c[u].focus():n&&c[(u+c.length)%c.length].focus()};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}},[t,a,n,i,r])},ha=(e,t)=>{var a,n;const i=typeof e;if("object"!==i&&"function"!==i&&null!==e)return!1;const r=e,o=null!==(a=r.__SLOT__)&&void 0!==a?a:null===(n=r.type)||void 0===n?void 0:n.__SLOT__;return!!t.__SLOT__&&o===t.__SLOT__},ga=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),fa=(e,t)=>{if(Array.isArray(t)){const[a,n]=t;return(e.type===a||ha(e,a))&&n(e.props)}return e.type===t||ha(e,t)},va=(t,a)=>{const n=[],i=Object.keys(a),r=Object.values(a),o=i.length,s={};for(let e=0;e<o;e++)s[i[e]]=void 0;let l=0;return e.Children.forEach(t,t=>{if(!e.isValidElement(t))return void n.push(t);if(l===o)return void n.push(t);const a=ba(t,r,o);if(-1===a)return void n.push(t);const c=i[a];void 0===s[c]&&(s[c]=t,l++)}),[s,n]},ba=(e,t,a)=>{for(let n=0;n<a;n++)if(fa(e,t[n]))return n;return-1},xa=Xe("heading",{variants:{size:{large:"text-title-large",medium:"text-title-medium",small:"text-title-small"}}});function ya(e,t){const a=e,{as:n="h2",className:i,size:r="large"}=a,o=s(a,["as","className","size"]);return f.jsx(n,Object.assign({ref:t,className:et(xa({size:r}),i),"data-component":"Heading","data-size":r},o))}ya.displayName="Heading";var wa=tt(ya);const Na=e.createContext({}),ja="action-list-heading",ka="sr-only";function Ca(e,t){const a=e,{as:n,className:i,visuallyHidden:r=!1,id:l}=a,c=s(a,["as","className","visuallyHidden","id"]),{headingId:d}=o.useContext(Na);return f.jsx(wa,Object.assign({ref:t,as:n,id:null!=l?l:d,className:et(ja,r&&ka,i),"data-component":"ActionList.Heading"},c))}Ca.displayName="ActionList.Heading";var Sa=tt(Ca);const Oa=e.createContext({}),Ma=Xe("action-list",{variants:{variant:{inset:"action-list-inset",full:"action-list-full"},dividers:{true:"action-list-dividers",false:""}}}),Aa={heading:Sa},Ta=["menu","menubar","listbox"];function Ia(e,t){var a;const n=e,{as:i="ul",className:r,children:l,variant:c="inset",selectionVariant:d,showDividers:u=!1,disableFocusZone:m=!1,role:p}=n,h=s(n,["as","className","children","variant","selectionVariant","showDividers","disableFocusZone","role"]),[g,v]=va(l,Aa),b=Jt(),{listRole:x,listLabelledBy:y,selectionVariant:w,enableFocusZone:j}=o.useContext(Oa),k=null!=p?p:x,C=null!=d?d:w,S=g.heading?null!==(a=g.heading.props.id)&&void 0!==a?a:b:y,O=o.useRef(null),M=N(t,O),A=null!=j?j:void 0!==k&&!m&&Ta.includes(k);pa({containerRef:O,disabled:!A,wrap:"menu"===k});const T=o.useMemo(()=>({variant:c,selectionVariant:C,showDividers:u,role:k,headingId:b}),[c,C,u,k,b]);return f.jsxs(Na.Provider,{value:T,children:[g.heading,f.jsx(i,Object.assign({ref:M,role:k,"aria-labelledby":S,className:et(Ma({variant:c,dividers:u}),r),"data-component":"ActionList","data-variant":c,"data-dividers":u?"":void 0},h,{children:v}))]})}Ia.displayName="ActionList";var Da=tt(Ia);const La=e.createContext({}),za="action-list-description",Ea="min-w-0 truncate";function Pa(e){const{className:t,variant:a="inline"}=e,n=s(e,["className","variant"]),{blockDescriptionId:i,inlineDescriptionId:r}=o.useContext(La);return f.jsx("span",Object.assign({id:"block"===a?i:r,className:et(za,"inline"===a&&Ea,t),"data-component":"ActionList.Description","data-variant":a},n))}Pa.displayName="ActionList.Description";const $a="action-list-divider";function Ra(e){const{className:t}=e,a=s(e,["className"]);return f.jsx("li",Object.assign({"aria-hidden":"true",className:et($a,t),"data-component":"ActionList.Divider"},a))}Ra.displayName="ActionList.Divider";const Ba=e.createContext({}),Va={__SLOT__:Symbol("ActionList.GroupHeading")},_a="action-list-group-heading-label",Fa="action-list-group-heading-auxiliary",Ha=Xe("action-list-group-heading",{variants:{variant:{subtle:"",filled:"action-list-group-heading-filled"}}});function Wa(e){const{as:t,className:a,children:n,variant:i="subtle",auxiliaryText:r}=e,l=s(e,["as","className","children","variant","auxiliaryText"]),{role:c}=o.useContext(Na),{groupHeadingId:d}=o.useContext(Ba),u=void 0!==c&&"list"!==c,m=null!=t?t:"h3";return f.jsxs("div",Object.assign({className:et(Ha({variant:i})),"data-component":"ActionList.GroupHeading","data-variant":i},u?{role:"presentation","aria-hidden":!0}:{},{children:[u?f.jsx("span",Object.assign({id:d,className:et(_a,a)},l,{children:n})):f.jsx(m,Object.assign({id:d,className:et(_a,a)},l,{children:n})),r?f.jsx("div",{className:Fa,children:r}):null]}))}Wa.displayName="ActionList.GroupHeading";const Ga=ga(Wa,Va),qa="action-list-group",Ka="action-list-group-items",Ua={groupHeading:Ga};function Ya(e){var t,a;const{className:n,children:i,selectionVariant:r,role:l,"aria-label":c}=e,d=s(e,["className","children","selectionVariant","role","aria-label"]),u=Jt(),{role:m}=o.useContext(Na),[p,h]=va(i,Ua),g=p.groupHeading?null!==(t=p.groupHeading.props.id)&&void 0!==t?t:u:void 0,v=o.useMemo(()=>({selectionVariant:r,groupHeadingId:g}),[r,g]),b=m&&"string"==typeof(null===(a=p.groupHeading)||void 0===a?void 0:a.props.children)?p.groupHeading.props.children:void 0;return f.jsx("li",Object.assign({className:et(qa,n),"data-component":"ActionList.Group",role:m?"none":void 0},d,{children:f.jsxs(Ba.Provider,{value:v,children:[p.groupHeading,f.jsx("ul",{className:Ka,role:null!=l?l:m?"group":void 0,"aria-labelledby":m?void 0:g,"aria-label":null!=c?c:b,children:h})]})}))}Ya.displayName="ActionList.Group";const Za="spinner",Qa="sr-only",Xa=Xe("motion-safe:animate-spin",{variants:{size:{small:"spinner-small",medium:"spinner-medium",large:"spinner-large"}}});function Ja(e,t){const a=e,{as:n="span",size:i="medium",srText:r="Loading",className:o,"aria-label":l}=a,c=s(a,["as","size","srText","className","aria-label"]);return f.jsxs(n,Object.assign({ref:t,role:"status","aria-label":null!=l?l:void 0,className:et(Za,o),"data-component":"Spinner"},c,{children:[f.jsx(ct,{className:et(Xa({size:i})),"aria-hidden":"true"}),null!==r&&void 0===l?f.jsx("span",{className:Qa,children:r}):null]}))}Ja.displayName="Spinner";var en=tt(Ja);const tn="action-list-visual",an="action-list-visual-muted",nn="action-list-visual-inherit",rn=e=>{var{className:t}=e,a=s(e,["className"]);const{variant:n,disabled:i,inactive:r}=o.useContext(La),l="danger"===n||i||r;return f.jsx("span",Object.assign({className:et(tn,l?nn:an,t)},a))};function on(e){return f.jsx(rn,Object.assign({"data-component":"ActionList.LeadingVisual"},e))}function sn({children:e}){return f.jsx(f.Fragment,{children:e})}on.displayName="ActionList.LeadingVisual",sn.displayName="ActionList.SubItem";const ln="sr-only",cn=Xe("counter-label",{variants:{variant:{primary:"counter-label-primary",secondary:"counter-label-secondary"}}});function dn(e,t){const a=e,{as:n="span",className:i,variant:r="secondary",children:o}=a,l=s(a,["as","className","variant","children"]);return f.jsxs(f.Fragment,{children:[f.jsx(n,Object.assign({ref:t,"aria-hidden":"true",className:et(cn({variant:r}),i),"data-component":"CounterLabel","data-variant":r},l,{children:o})),f.jsxs("span",{className:ln,children:[" (",o,")"]})]})}dn.displayName="CounterLabel";var un=tt(dn);const mn={base:"button",disabled:"button-disabled",block:"button-block",size:{small:"button-small",medium:"",large:"button-large"},variant:{default:{rest:"button-default",disabled:"button-default-disabled"},primary:{rest:"button-primary",disabled:"button-primary-disabled"},danger:{rest:"button-danger",disabled:"button-danger-disabled"},invisible:{rest:"button-invisible",disabled:"button-invisible-disabled"},link:{rest:"button-link",disabled:"button-link-disabled"}},link:"button-link-shape",linkUnderlines:"button-link-underlines",inactive:"button-inactive",inactiveLink:"button-inactive-link",iconTone:{default:"button-icon-tone-default",primary:"",danger:"",invisible:"button-icon-tone-invisible",link:""},labelWrapRoot:"button-label-wrap",labelWrapHeight:{small:"button-label-wrap-small",medium:"button-label-wrap-medium",large:"button-label-wrap-large"},labelWrapContent:{small:"button-label-wrap-content-small",medium:"button-label-wrap-content-medium",large:"button-label-wrap-content-large"},labelWrapLabel:"button-label-wrap-label",iconOnlyCounter:{small:"button-icon-only-counter-small",medium:"button-icon-only-counter-medium",large:"button-icon-only-counter-large"},content:"button-content",contentGap:{small:"button-content-gap-small",medium:"button-content-gap-medium",large:"button-content-gap-large"},align:{start:"justify-start",center:"justify-center"},label:"button-label",labelLineHeight:{small:"button-label-small",medium:"button-label-medium",large:"button-label-large"},labelHidden:"invisible",visualBase:"button-visual",visual:{default:"button-visual-default",primary:"button-visual-primary",danger:"button-visual-danger",invisible:"button-visual-invisible",link:"button-visual-link"},visualMuted:"button-visual-muted",counter:{default:"button-counter-default",primary:"button-counter-primary",danger:"button-counter-danger",invisible:"button-counter-invisible",link:""},counterMuted:"button-counter-muted",counterMutedDanger:"button-counter-muted-danger",leadingVisual:"button-leading-visual",trailingVisual:"button-trailing-visual",trailingAction:"button-trailing-action",loadingSpinner:"items-center justify-center",standaloneSpinner:"button-standalone-spinner",loadingWrapper:"inline-flex",loadingWrapperBlock:"block",srOnly:"sr-only"},pn=(e,t,a,n)=>{const i=e;return f.jsx("span",{"data-component":t,className:et(mn.visualBase,a&&mn.loadingSpinner,n),children:a?f.jsx(en,{size:"small",srText:null,role:"presentation"}):o.isValidElement(e)?e:f.jsx(i,{})})};function hn(e,t){const{as:a="button",className:n,children:i,icon:r,leadingVisual:o,trailingVisual:l,trailingAction:c,count:d,variant:u="default",size:m="medium",alignContent:p="center",block:h=!1,loading:g,loadingAnnouncement:v="Loading",inactive:b,labelWrap:x,disabled:y,id:w,onClick:N,"aria-describedby":j,"aria-labelledby":k,"aria-disabled":C}=e,S=s(e,["as","className","children","icon","leadingVisual","trailingVisual","trailingAction","count","variant","size","alignContent","block","loading","loadingAnnouncement","inactive","labelWrap","disabled","id","onClick","aria-describedby","aria-labelledby","aria-disabled"]),O=Jt(w),M=`${O}-label`,A=`${O}-loading-announcement`,T=Boolean(g),I=!0===C||"true"===C,D=Boolean(y)||I&&!T,L=!D&&!b,z=Boolean(o||l||c),E=T&&!z&&void 0===d,P=void 0!==d&&Boolean(o)&&!i,$=b?"link"===u?mn.inactiveLink:mn.inactive:mn.variant[u][D?"disabled":"rest"],R=L?mn.visual[u]:mn.visualMuted,B=L?mn.counter[u]:"danger"===u?mn.counterMutedDanger:et(mn.counter[u],mn.counterMuted),V=f.jsx(a,Object.assign({ref:t,className:et(mn.base,mn.size[m],"link"===u&&mn.link,"link"===u&&!z&&mn.linkUnderlines,$,r&&L&&mn.iconTone[u],D&&mn.disabled,h&&mn.block,x&&mn.labelWrapRoot,x&&mn.labelWrapHeight[m],P&&mn.iconOnlyCounter[m],n),"data-component":"Button","data-block":h?"block":void 0,"data-inactive":b?"":void 0,"data-loading":T?"true":void 0,"data-no-visuals":z?void 0:"","data-size":m,"data-variant":u,"data-label-wrap":x?"true":void 0,"data-has-count":void 0!==d?"true":void 0,"data-icon-only-counter":P?"true":void 0,disabled:y,id:w,"aria-disabled":!!T||C,"aria-describedby":T?[A,j].filter(Boolean).join(" "):j,"aria-labelledby":T&&i?[M,k].filter(Boolean).join(" "):k,onClick:T?void 0:N},S,{children:r?pn(r,"icon",T,""):f.jsxs(f.Fragment,{children:[f.jsxs("span",{"data-component":"buttonContent","data-align":p,className:et(mn.content,!E&&mn.contentGap[m],mn.align[p],x&&mn.labelWrapContent[m]),children:[E?pn(en,"loadingSpinner",!0,et(R,mn.standaloneSpinner)):null,o?pn(o,"leadingVisual",T,et(R,mn.leadingVisual)):null,i?f.jsx("span",{"data-component":"text",id:T?M:void 0,className:et(mn.label,mn.labelLineHeight[m],x&&mn.labelWrapLabel,E&&mn.labelHidden),children:i}):null,void 0===d||l?l?pn(l,"trailingVisual",T&&!o,et(R,mn.trailingVisual)):null:pn(f.jsx(un,{className:B,"data-component":"ButtonCounter",children:d}),"trailingVisual",T&&!o,mn.trailingVisual)]}),c?pn(c,"trailingAction",T&&!o&&!l,et(R,mn.trailingAction)):null]})}));return void 0===g?V:f.jsxs("span",{className:h?mn.loadingWrapperBlock:mn.loadingWrapper,"data-loading-wrapper":"",children:[V,f.jsx("span",{id:A,role:"status",className:mn.srOnly,children:T?v:""})]})}hn.displayName="ButtonBase";var gn=tt(hn);function fn(e,t){const a=e,{as:n="button",type:i="button"}=a,r=s(a,["as","type"]);return f.jsx(gn,Object.assign({ref:t,as:n,type:i},r))}fn.displayName="Button";var vn=tt(fn);const bn=Xe("icon-button",{variants:{size:{small:"icon-button-small",medium:"icon-button-medium",large:"icon-button-large"}}});function xn(e,t){const a=e,{as:n="button",className:i,size:r="medium"}=a,o=s(a,["as","className","size"]);return f.jsx(gn,Object.assign({ref:t,as:n,type:"button",size:r,"data-component":"IconButton",className:et(bn({size:r}),i)},o))}xn.displayName="IconButton";var yn=tt(xn);const wn="action-list-trailing-action",Nn="action-list-trailing-action-button";function jn(e,t){const{className:a,icon:n,label:i}=e,r=s(e,["className","icon","label"]);return f.jsx("span",{className:wn,"data-component":"ActionList.TrailingAction",children:n?f.jsx(yn,Object.assign({ref:t,icon:n,"aria-label":i,variant:"invisible",size:"small",className:et(Nn,a)},r)):f.jsx(vn,Object.assign({ref:t,variant:"invisible",size:"small",className:et(Nn,a)},r,{children:i}))})}jn.displayName="ActionList.TrailingAction";var kn=tt(jn);function Cn(e){const{trailingVisualId:t}=o.useContext(La);return f.jsx(rn,Object.assign({id:t,"data-component":"ActionList.TrailingVisual"},e))}Cn.displayName="ActionList.TrailingVisual";const Sn="invisible",On="action-list-selection-checkmark",Mn="action-list-selection-checkbox",An="action-list-selection-checkbox-selected",Tn=({selected:e,className:t})=>{const{selectionVariant:a}=o.useContext(Na),{selectionVariant:n}=o.useContext(Ba),i=void 0===n?a:n;return i?"multiple"===i?f.jsx(rn,{className:t,"data-component":"ActionList.Selection",children:f.jsx("span",{className:et(Mn,e&&An),children:f.jsx(vt,{className:e?void 0:Sn})})}):f.jsx(rn,{className:t,"data-component":"ActionList.Selection",children:f.jsx(vt,{className:et(On,!e&&Sn)})}):null},In={root:"action-list-item",content:"action-list-item-content",size:{medium:"",large:"action-list-item-content-large"},danger:"action-list-item-content-danger",disabled:"action-list-item-content-disabled",inactive:"action-list-item-content-inactive",loading:"cursor-default",active:"action-list-item-content-active",main:"action-list-item-main",labelWrap:"action-list-item-label-wrap",labelWrapBlock:"flex-col gap-0",label:"min-w-0",inactiveWarning:"action-list-item-inactive-warning",srOnly:"sr-only"},Dn={leadingVisual:on,trailingVisual:Cn,trailingAction:kn,description:Pa,subItem:sn},Ln=["option","menuitem","menuitemradio","menuitemcheckbox"],zn=["listbox","menu","list"];function En(e,t){var a,n,i;const r=e,{as:l,className:c,children:d,id:u,role:m,variant:p="default",size:h="medium",selected:g,active:v=!1,disabled:b=!1,loading:x=!1,inactiveText:y,onSelect:w}=r,N=s(r,["as","className","children","id","role","variant","size","selected","active","disabled","loading","inactiveText","onSelect"]),[j,k]=va(d,Dn),{container:C,afterSelect:S,selectionAttribute:O,defaultTrailingVisual:M}=o.useContext(Oa),{role:A,selectionVariant:T}=o.useContext(Na),{selectionVariant:I}=o.useContext(Ba),D=Boolean(y),L=void 0===I?T:I||void 0;let z;"ActionMenu"===C||"menu"===A?z="single"===L?"menuitemradio":"multiple"===L?"menuitemcheckbox":"menuitem":"listbox"===A&&L&&(z="option");const E=null!=m?m:z,P=null!=O?O:"menuitemradio"===E||"menuitemcheckbox"===E?"aria-checked":"option"===E?"aria-selected":void 0,$=void 0!==A&&zn.includes(A)||D||void 0!==E&&Ln.includes(E),R=null!=l?l:$?"div":"button",B=void 0!==l||!$,V=!B||"button"!==R&&"a"!==R,_="ActionMenu"===C||"menu"===A||"listbox"===A,F=!b&&!D&&!x,H=e=>{F&&(null==w||w(e),e.defaultPrevented||null==S||S(e))},W=Jt(u),G=`${W}--label`,q=`${W}--inline-description`,K=`${W}--block-description`,U=`${W}--trailing-visual`,Y=D?`${W}--inactive-warning`:void 0,Z=null!==(n=null===(a=j.description)||void 0===a?void 0:a.props.variant)&&void 0!==n?n:"inline",Q=null!==(i=j.trailingVisual)&&void 0!==i?i:M?f.jsx(Cn,{children:M}):null,X=x&&!D,J=f.jsx(en,{size:"small",srText:null}),ee=X&&j.leadingVisual?f.jsx(on,{children:J}):j.leadingVisual,te=X&&!j.leadingVisual?f.jsx(Cn,{children:J}):Q,ae=[j.description?"block"===Z?K:q:void 0,Y].filter(Boolean),ne=Object.assign({id:W,role:E,tabIndex:0,onClick:H,onKeyDown:V?e=>{" "!==e.key&&"Enter"!==e.key||(" "===e.key&&e.preventDefault(),H(e))}:void 0,"aria-disabled":!!(b||D||x)||void 0,"aria-labelledby":[G,j.trailingVisual?U:void 0].filter(Boolean).join(" "),"aria-describedby":ae.length>0?ae.join(" "):void 0},P&&L?{[P]:Boolean(g)}:{}),ie=_||D||x?null:j.trailingAction,re=o.useMemo(()=>({variant:p,size:h,disabled:b,inactive:D,inlineDescriptionId:q,blockDescriptionId:K,trailingVisualId:U}),[p,h,b,D,q,K,U]),oe=et(In.content,In.size[h],"danger"===p&&!b&&!D&&In.danger,v&&In.active,x&&In.loading,D&&In.inactive,b&&In.disabled);return f.jsx(La.Provider,{value:re,children:f.jsxs("li",Object.assign({ref:B?null:t,className:et(In.root,c),"data-component":"ActionList.Item","data-variant":"danger"===p?p:void 0,"data-active":v?"":void 0,"data-inactive":D?"":void 0,"data-disabled":b?"":void 0,"data-loading":x?"":void 0,"data-has-description":j.description?"":void 0,"data-has-trailing-action":ie?"":void 0,"data-has-sub-item":j.subItem?"":void 0},B?{role:E?"none":void 0}:Object.assign(Object.assign({},ne),N),{children:[f.jsxs(R,Object.assign({ref:B?t:void 0,className:oe,"data-component":"ActionList.Item.Content","data-size":h},B?Object.assign(Object.assign(Object.assign({},ne),N),"button"===R?{type:"button"}:{}):{},{children:[f.jsx(Tn,{selected:g}),ee,f.jsxs("span",{className:In.main,children:[f.jsxs("span",{className:et(In.labelWrap,"block"===Z&&In.labelWrapBlock),children:[f.jsxs("span",{id:G,className:In.label,"data-component":"ActionList.Item.Label",children:[k,X?f.jsx("span",{className:In.srOnly,children:"Loading"}):null]}),j.description]}),te]})]})),D?f.jsx("span",{id:Y,className:In.inactiveWarning,children:y}):null,ie,j.subItem]}))})}En.displayName="ActionList.Item";var Pn=tt(En);function $n(e,t){const a=e,{as:n}=a,i=s(a,["as"]);return f.jsx(Pn,Object.assign({ref:t,as:null!=n?n:"a"},i))}$n.displayName="ActionList.LinkItem";var Rn=tt($n);const Bn=Object.assign(Da,{Item:Pn,LinkItem:Rn,Group:Ya,GroupHeading:Ga,Heading:Sa,Description:Pa,Divider:Ra,LeadingVisual:on,TrailingVisual:Cn,TrailingAction:kn,SubItem:sn}),Vn=e.createContext(void 0);function _n(e){const{children:t,className:a,onClick:n,onKeyDown:i}=e,r=s(e,["children","className","onClick","onKeyDown"]),l=o.useContext(Vn),c=o.useContext(Oa),d=Boolean(null==l?void 0:l.isSubmenu),u=null==l?void 0:l.onOpen,m=o.useMemo(()=>d?Object.assign(Object.assign({},c),{defaultTrailingVisual:f.jsx(yt,{}),afterSelect:()=>null==u?void 0:u()}):c,[d,u,c]);if(!o.isValidElement(t))return null;const p=t.props;return f.jsx(Oa.Provider,{value:m,children:o.cloneElement(t,Object.assign(Object.assign({},r),{ref:null==l?void 0:l.anchorRef,className:et(a,p.className),onClick:e=>{var t;null===(t=p.onClick)||void 0===t||t.call(p,e),null==n||n(e)},onKeyDown:e=>{var t;null===(t=p.onKeyDown)||void 0===t||t.call(p,e),d&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==u||u(),e.preventDefault()),null==i||i(e)}}))})}function Fn(e){return f.jsx(_n,{children:f.jsx(vn,Object.assign({type:"button",trailingAction:bt,"data-component":"ActionMenu.Button"},e))})}_n.displayName="ActionMenu.Anchor",Fn.displayName="ActionMenu.Button";const Hn=e=>o.isValidElement(e)&&(e.type===_n||e.type===Fn);function Wn(e){const{children:t,open:a,onOpenChange:n,anchorRef:i}=e,r=o.useContext(Vn),s=o.useRef(null),l=null!=i?i:s,c=void 0!==a,[d,u]=o.useState(!1),m=c?a:d,p=o.useCallback(e=>{u(e),null==n||n(e)},[n]),h=o.useCallback(()=>p(!0),[p]),g=null==r?void 0:r.onClose,v=o.useCallback(e=>{p(!1),"item-select"!==e&&"tab"!==e||null==g||g(e)},[p,g]),b=o.Children.toArray(t),x=b.find(Hn),y=Jt(null==x?void 0:x.props.id),w=x?e=>o.cloneElement(x,((e,t)=>({id:e.id,"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],tabIndex:e.tabIndex,onClick:a=>{var n;null===(n=t.onClick)||void 0===n||n.call(t,a),e.onClick(a)},onKeyDown:a=>{var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,a),e.onKeyDown(a)}}))(e,x.props)):null,N=void 0!==r,j=o.useMemo(()=>({anchorRef:l,renderAnchor:w,anchorId:y,open:m,onOpen:h,onClose:v,isSubmenu:N}),[l,w,y,m,h,v,N]);return f.jsx(Vn.Provider,{value:j,children:b.filter(e=>e!==x)})}Wn.displayName="ActionMenu";const Gn=[],qn=({containerRef:t,initialFocusRef:a,returnFocusRef:n,disabled:i})=>{e.useEffect(()=>{var e,r;const o=t.current;if(!o||i)return;const s=document.activeElement;Gn.push(o),(null!==(r=null!==(e=null==a?void 0:a.current)&&void 0!==e?e:ua(o)[0])&&void 0!==r?r:o).focus();const l=e=>{if("Tab"!==e.key||Gn[Gn.length-1]!==o)return;const t=ua(o);if(0===t.length)return void e.preventDefault();const a=t[0],n=t[t.length-1],i=document.activeElement;!(e.shiftKey?i===a:i===n)&&o.contains(i)||(e.preventDefault(),(e.shiftKey?n:a).focus())};return document.addEventListener("keydown",l),()=>{var e;document.removeEventListener("keydown",l),Gn.splice(Gn.indexOf(o),1);const t=null!==(e=null==n?void 0:n.current)&&void 0!==e?e:s;t instanceof HTMLElement&&t.focus()}},[t,a,n,i])},Kn=v?e.useLayoutEffect:e.useEffect,Un=[],Yn=e=>{if("Escape"===e.key&&!e.defaultPrevented)for(const t of[...Un].reverse())if(t(e),e.defaultPrevented)break},Zn=t=>{const a=e.useRef(t);e.useEffect(()=>{a.current=t},[t]),e.useEffect(()=>{const e=e=>a.current(e);return 0===Un.length&&document.addEventListener("keydown",Yn),Un.push(e),()=>{Un.splice(Un.indexOf(e),1),0===Un.length&&document.removeEventListener("keydown",Yn)}},[])},Qn=(e,t)=>{if(null!=t)return"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,a])=>Xn(`data-${e}-${t}`,a))):Object.fromEntries([Xn(`data-${e}`,t)])},Xn=(e,t)=>[e,t],Jn=e.createContext({}),ei="__baseUiPortalRoot__",ti="__default__",ai="portal-root",ni={},ii=(e,t=ti)=>{ni[t]=e},ri="portal";function oi({children:e,onMount:a,containerName:n}){const{portalContainerName:i}=o.useContext(Jn),r=o.useRef(null);if(!r.current){const e=document.createElement("div");e.setAttribute("data-component","Portal"),e.className=ri,r.current=e}const s=r.current;return Kn(()=>{let e=null!=n?n:i;void 0===e&&(e=ti,(()=>{const e=ni[ti];if(e&&document.body.contains(e))return;let t=document.getElementById(ei);if(!t){t=document.createElement("div"),t.setAttribute("id",ei),t.className=ai;const e=document.querySelector("[data-portal-root]");(null!=e?e:document.body).appendChild(t)}ii(t)})());const t=(e=>ni[e])(e);if(!t)throw new Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return t.appendChild(s),null==a||a(),()=>{t.removeChild(s)}},[s,n,i]),t.createPortal(e,s)}oi.displayName="Portal";const si={"outside-top":"outside-bottom","outside-bottom":"outside-top","outside-left":"outside-right","outside-right":"outside-left"},li=e=>"outside-top"===e||"outside-bottom"===e,ci=(e,t,a,n)=>"outside-top"===e?t.top-a.height-n:"outside-bottom"===e?t.bottom+n:"outside-left"===e?t.left-a.width-n:t.right+n,di=(e,t,a,n,i)=>"start"===e?t+i:"end"===e?t+a-n-i:t+(a-n)/2+i,ui=(e,t,{side:a,align:n,anchorOffset:i=4,alignmentOffset:r=0})=>{const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=window.innerWidth,c=window.innerHeight;let d=a,u=ci(d,o,s,i);const m=li(d)?s.height:s.width,p=li(d)?c:l;if(u<0||u+m>p){const e=ci(si[a],o,s,i);e>=0&&e+m<=p&&(d=si[a],u=e)}const h=li(d),g=h?o.left:o.top,f=h?o.width:o.height,v=h?s.width:s.height,b=h?l:c;let x=n,y=di(n,g,f,v,r);return y<0?(x="start",y=di(x,g,f,v,r)):y+v>b&&(x="end",y=di(x,g,f,v,r)),y=Math.max(0,Math.min(y,b-v)),{top:h?u:y,left:h?y:u,anchorSide:d,anchorAlign:x}},mi="anchored-overlay-close-button-container",pi="anchored-overlay-close-button",hi=Xe(["anchored-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2"],{variants:{width:{xsmall:"anchored-overlay-width-xsmall",small:"anchored-overlay-width-small",medium:"anchored-overlay-width-medium",large:"anchored-overlay-width-large",xlarge:"anchored-overlay-width-xlarge",auto:"anchored-overlay-width-auto"},height:{small:"anchored-overlay-height-small",medium:"anchored-overlay-height-medium",large:"anchored-overlay-height-large",xlarge:"anchored-overlay-height-xlarge",auto:"anchored-overlay-height-auto"},reflow:{true:"anchored-overlay-reflow",false:""},fullscreen:{true:"anchored-overlay-fullscreen",false:""},unplaced:{true:"invisible",false:""}}}),gi={regular:"anchored",narrow:"anchored"},fi=["ArrowDown","ArrowUp"," ","Enter"];function vi(e){var t,a,n,i;const{renderAnchor:r,anchorRef:l,anchorId:c,children:d,open:u,onOpen:m,onClose:p,side:h="outside-bottom",align:g="start",anchorOffset:v,alignmentOffset:b,width:x="auto",height:y="auto",overlayProps:w,focusTrapSettings:j,preventOverflow:k=!0,variant:C=gi,displayCloseButton:S=!0,closeButtonProps:O,onPositionChange:M,className:A}=e,T=null!=w?w:{},{ref:I,className:D,style:L,portalContainerName:z}=T,E=s(T,["ref","className","style","portalContainerName"]),P=null!=O?O:{},{className:$,"aria-label":R}=P,B=s(P,["className","aria-label"]),V=o.useRef(null),_=null!=l?l:V,F=Jt(c),H=o.useRef(null),W=N(I,H),G=o.useRef(null),[q,K]=o.useState(null),U=o.useCallback(()=>{const e=_.current,t=H.current;if(!e||!t)return;const a=ui(t,e,{side:h,align:g,anchorOffset:v,alignmentOffset:b});G.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(G.current,a)||(G.current=a,K(a),null==M||M({position:a}))},[_,h,g,v,b,M]);Kn(()=>{if(!u)return G.current=null,void K(null);U();const e=new ResizeObserver(U);return H.current&&e.observe(H.current),window.addEventListener("resize",U),window.addEventListener("scroll",U,!0),()=>{e.disconnect(),window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)}},[u,U]),qn(Object.assign(Object.assign({containerRef:H,returnFocusRef:_},j),{disabled:!u||!q||Boolean(null==j?void 0:j.disabled)})),Zn(e=>{u&&(e.preventDefault(),null==p||p("escape"))}),o.useEffect(()=>{if(!u)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=H.current)||void 0===t?void 0:t.contains(n))||(null===(a=_.current)||void 0===a?void 0:a.contains(n))||null==p||p("click-outside"))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[_,u,p]);const Y="fullscreen"===C.narrow,Z=Boolean(p)&&Y&&S;return f.jsxs(f.Fragment,{children:[r?r({ref:_,id:F,"aria-haspopup":"true","aria-expanded":u,tabIndex:0,onClick:e=>{e.defaultPrevented||0!==e.button||(u?null==p||p("anchor-click"):null==m||m("anchor-click"))},onKeyDown:e=>{e.defaultPrevented||u||!fi.includes(e.key)||(null==m||m("anchor-key-press",e),e.preventDefault())}}):null,u?f.jsx(oi,{containerName:z,children:f.jsxs("div",Object.assign({ref:W,tabIndex:-1,className:et(hi({width:x,height:y,reflow:!k,fullscreen:Y,unplaced:!q}),A,D),style:Object.assign(Object.assign({},L),{"--anchored-overlay-top":`${null!==(t=null==q?void 0:q.top)&&void 0!==t?t:0}px`,"--anchored-overlay-left":`${null!==(a=null==q?void 0:q.left)&&void 0!==a?a:0}px`}),"data-component":"AnchoredOverlay","data-side":null!==(n=null==q?void 0:q.anchorSide)&&void 0!==n?n:h,"data-align":null!==(i=null==q?void 0:q.anchorAlign)&&void 0!==i?i:g,"data-width":x,"data-height":y,"data-visibility":q?"visible":"hidden"},Qn("variant",C),E,{children:[Z?f.jsx("div",{className:mi,children:f.jsx(yn,Object.assign({icon:Ct,variant:"invisible","aria-label":null!=R?R:"Close",onClick:()=>null==p?void 0:p("close-button"),className:et(pi,$),"data-component":"AnchoredOverlay.CloseButton"},B))}):null,d]}))}):null]})}vi.displayName="AnchoredOverlay";const bi="action-menu-overlay";function xi(e){const{children:t,align:a="start",side:n,className:i,returnFocusRef:r,"aria-labelledby":l}=e,c=s(e,["children","align","side","className","returnFocusRef","aria-labelledby"]),d=o.useContext(Vn),u=Boolean(null==d?void 0:d.isSubmenu),m=null==d?void 0:d.onClose,p=o.useCallback(e=>null==m?void 0:m(e),[m]),h=o.useMemo(()=>({container:"ActionMenu",listRole:"menu",listLabelledBy:null!=l?l:null==d?void 0:d.anchorId,selectionAttribute:"aria-checked",afterSelect:()=>null==m?void 0:m("item-select")}),[l,null==d?void 0:d.anchorId,m]);return d?f.jsx(vi,Object.assign({anchorRef:d.anchorRef,renderAnchor:d.renderAnchor,anchorId:d.anchorId,open:d.open,onOpen:d.onOpen,onClose:p,align:a,side:null!=n?n:u?"outside-right":"outside-bottom",className:i,focusTrapSettings:r?{returnFocusRef:r}:void 0},c,{children:f.jsx("div",{className:bi,onKeyDown:e=>{e.defaultPrevented||("Tab"!==e.key?u&&"ArrowLeft"===e.key&&(null==m||m("arrow-left"),e.preventDefault()):null==m||m("tab"))},"data-component":"ActionMenu.Overlay",children:f.jsx(Oa.Provider,{value:h,children:t})})})):null}xi.displayName="ActionMenu.Overlay";const yi=Object.assign(Wn,{Anchor:_n,Button:Fn,Overlay:xi,Divider:Ra}),wi=e.createContext({size:"medium"}),Ni=e.createContext({}),ji={current:null},ki=t=>{const{size:a,rootRef:n,setOverflowing:i}=o.useContext(wi),{index:r,inGroup:s}=o.useContext(Ni),l=(({ref:t,rootRef:a,disabled:n})=>{const[i,r]=e.useState(!1);return e.useEffect(()=>{const e=t.current,i=a.current;if(!e||!i||n)return void r(!1);const o=new IntersectionObserver(e=>{for(const t of e)r(t.intersectionRatio<1)},{root:i,threshold:1});return o.observe(e),()=>{o.disconnect()}},[t,a,n]),i})({ref:t,rootRef:null!=n?n:ji,disabled:s});return o.useEffect(()=>{void 0!==r&&(null==i||i(r,l))},[r,l,i]),{size:a,isOverflowing:l}},Ci="action-bar-divider",Si="invisible";function Oi(e){const{className:t}=e,a=s(e,["className"]),n=o.useRef(null),{isOverflowing:i}=ki(n);return f.jsx("div",Object.assign({ref:n,"aria-hidden":"true",className:et(Ci,i&&Si,t),"data-component":"ActionBar.Divider","data-overflowing":i?"":void 0},a))}Oi.displayName="ActionBar.Divider";const Mi="action-bar-group",Ai="invisible",Ti={inGroup:!0};function Ii(e){const{className:t,children:a}=e,n=s(e,["className","children"]),i=o.useRef(null),{isOverflowing:r}=ki(i);return f.jsx("div",Object.assign({ref:i,className:et(Mi,r&&Ai,t),"data-component":"ActionBar.Group","data-overflowing":r?"":void 0},n,{children:f.jsx(Ni.Provider,{value:Ti,children:a})}))}Ii.displayName="ActionBar.Group";const Di="invisible";function Li(e,t){const a=e,{className:n}=a,i=s(a,["className"]),r=o.useRef(null),l=N(t,r),{size:c,isOverflowing:d}=ki(r);return f.jsx(yn,Object.assign({ref:l,size:c,variant:"invisible",className:et(d&&Di,n),"data-component":"ActionBar.IconButton","data-overflowing":d?"":void 0},i))}Li.displayName="ActionBar.IconButton";var zi=tt(Li);const Ei=e=>{if("string"==typeof e)return f.jsx("span",{children:e});if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})},Pi=({items:e})=>f.jsx(f.Fragment,{children:e.map((e,t)=>{if("divider"===e.type)return f.jsx(Bn.Divider,{},t);const{label:a,disabled:n,variant:i,leadingVisual:r,trailingVisual:o,onClick:s}=e,l=f.jsxs(f.Fragment,{children:[r?f.jsx(Bn.LeadingVisual,{children:Ei(r)}):null,a,o?f.jsx(Bn.TrailingVisual,{children:Ei(o)}):null]});return e.items&&e.items.length>0?f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(Bn.Item,{disabled:n,variant:i,children:l})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:f.jsx(Pi,{items:e.items})})})]},t):f.jsx(Bn.Item,{onSelect:s,disabled:n,variant:i,children:l},t)})}),$i="invisible";function Ri(e,t){const{className:a,icon:n,items:i,returnFocusRef:r,overflowIcon:l}=e,c=s(e,["className","icon","items","returnFocusRef","overflowIcon"]),d=o.useRef(null),u=N(t,d),{size:m,isOverflowing:p}=ki(d);return f.jsxs(yi,{anchorRef:d,children:[f.jsx(yi.Anchor,{children:f.jsx(yn,Object.assign({ref:u,icon:n,size:m,variant:"invisible",className:et(p&&$i,a),"data-component":"ActionBar.Menu","data-overflowing":p?"":void 0},c))}),f.jsx(yi.Overlay,{returnFocusRef:r,children:f.jsx(Bn,{children:f.jsx(Pi,{items:i})})})]})}Ri.displayName="ActionBar.Menu";var Bi=tt(Ri);const Vi={size:{small:"action-bar-size-small",medium:"action-bar-size-medium",large:"action-bar-size-large"},spacer:"shrink-0",moreButtonEmpty:"invisible"},_i=Xe("action-bar",{variants:{flush:{true:"",false:"action-bar-inset"}}}),Fi=Xe("action-bar-toolbar",{variants:{size:Vi.size}}),Hi=Xe("action-bar-items",{variants:{size:Vi.size,gap:{none:"action-bar-gap-none",condensed:"action-bar-gap-condensed"}}}),Wi=new Set,Gi=e=>{if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})},qi=(e,t)=>{var a;const n=e.props;if(e.type===Oi)return f.jsx(Bn.Divider,{},t);if(e.type===Ii)return o.Children.toArray(n.children).filter(e=>o.isValidElement(e)).map((e,a)=>qi(e,`${t}-${a}`));if(e.type===Bi){const e=null!==(a=n.overflowIcon)&&void 0!==a?a:n.icon;return f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsxs(Bn.Item,{children:[e?f.jsx(Bn.LeadingVisual,{children:Gi(e)}):null,n["aria-label"]]})}),f.jsx(yi.Overlay,{returnFocusRef:n.returnFocusRef,children:f.jsx(Bn,{children:f.jsx(Pi,{items:n.items})})})]},t)}const i=e.type===zi?n.icon:n.leadingVisual,r=e.type===zi?n["aria-label"]:n.children;return f.jsxs(Bn.Item,{onSelect:n.onClick,disabled:n.disabled,children:[i?f.jsx(Bn.LeadingVisual,{children:Gi(i)}):null,r]},t)};function Ki(e){const{className:t,children:a,size:n="medium",flush:i=!1,gap:r="condensed","aria-label":s,"aria-labelledby":l}=e,c=o.useRef(null),d=o.useRef(null),[u,m]=o.useState(Wi),p=o.useCallback((e,t)=>{m(a=>{if(a.has(e)===t)return a;const n=new Set(a);return t?n.add(e):n.delete(e),n})},[]);pa({containerRef:c,direction:"horizontal",wrap:!0});const h=o.useMemo(()=>({size:n,rootRef:d,setOverflowing:p}),[n,p]),g=o.Children.toArray(a),v=g.length,b=o.useMemo(()=>Array.from({length:v},(e,t)=>({index:t})),[v]),x=g.map((e,t)=>u.has(t)&&o.isValidElement(e)?qi(e,t):null).filter(Boolean);return f.jsx(wi.Provider,{value:h,children:f.jsx("div",{className:et(_i({flush:i}),t),"data-component":"ActionBar","data-flush":i?"":void 0,children:f.jsxs("div",{ref:c,role:"toolbar","aria-label":s,"aria-labelledby":l,className:et(Fi({size:n})),"data-size":n,"data-gap":r,"data-has-overflow":x.length>0?"":void 0,children:[f.jsxs("div",{ref:d,className:et(Hi({size:n,gap:r})),children:[f.jsx("div",{className:Vi.spacer}),g.map((e,t)=>f.jsx(Ni.Provider,{value:b[t],children:e},t))]}),f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(yn,{icon:Lt,"aria-label":"More items",size:n,variant:"invisible",className:x.length>0?void 0:Vi.moreButtonEmpty,"data-component":"ActionBar.MoreButton"})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:x})})]})]})})})}Ki.displayName="ActionBar";const Ui="invisible";function Yi(e,t){const{className:a}=e,n=s(e,["className"]),i=o.useRef(null),r=N(t,i),{size:l,isOverflowing:c}=ki(i);return f.jsx(vn,Object.assign({ref:r,size:l,variant:"invisible",className:et(c&&Ui,a),"data-component":"ActionBar.Button","data-overflowing":c?"":void 0},n))}Yi.displayName="ActionBar.Button";var Zi=tt(Yi);const Qi=Object.assign(Ki,{Button:Zi,IconButton:zi,Divider:Oi,Group:Ii,Menu:Bi}),Xi=Xe("alert",{variants:{variant:{default:"alert-default",success:"alert-success",warning:"alert-warning",danger:"alert-danger"}}});function Ji(e,t){const a=e,{as:n="div",className:i,variant:r="default"}=a,o=s(a,["as","className","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(Xi({variant:r}),i),"data-component":"Alert","data-variant":r},o))}Ji.displayName="Alert";var er=tt(Ji);const tr=Xe("aspect-ratio",{variants:{ratio:{"1:1":"aspect-ratio-1-1","16:9":"aspect-ratio-16-9","4:3":"aspect-ratio-4-3",custom:""}}});function ar(e,t){const a=e,{as:n="div",className:i,ratio:r="1:1",width:o=1,height:l=1,style:c}=a,d=s(a,["as","className","ratio","width","height","style"]);return f.jsx(n,Object.assign({ref:t,className:et(tr({ratio:r}),i),style:Object.assign(Object.assign({},c),{"--aspect-ratio":"custom"===r?`${o}/${l}`:void 0}),"data-component":"AspectRatio","data-ratio":r},d))}ar.displayName="AspectRatio";var nr=tt(ar);const ir=e.createContext({}),rr=e.createContext({}),or=e.createContext({});function sr({children:e,id:t}){const a=Jt(t),n=o.useRef(null),i=o.useRef(null),[r,s]=o.useState(""),[l,c]=o.useState(""),[d,u]=o.useState(),[m,p]=o.useState(!1),h=o.useCallback(e=>{p(e),e||(u(void 0),c(""))},[]),g=o.useMemo(()=>({id:a,inputRef:n,scrollContainerRef:i,activeDescendantId:d,setActiveDescendantId:u,showMenu:m,setShowMenu:h,setInputValue:s,setAutocompleteSuggestion:c}),[a,d,m,h]),v=o.useMemo(()=>({inputValue:r,autocompleteSuggestion:l}),[r,l]),b=o.useDeferredValue(r),x=o.useMemo(()=>({deferredInputValue:b}),[b]);return f.jsx(ir.Provider,{value:g,children:f.jsx(rr.Provider,{value:v,children:f.jsx(or.Provider,{value:x,children:e})})})}sr.displayName="Autocomplete";const lr=Xe("text",{variants:{size:{large:"text-size-large",medium:"text-size-medium",small:"text-size-small"},weight:{light:"text-weight-light",normal:"text-weight-normal",medium:"text-weight-medium",semibold:"text-weight-semibold"},whiteSpace:{pre:"whitespace-pre",normal:"whitespace-normal",nowrap:"whitespace-nowrap","pre-wrap":"whitespace-pre-wrap","pre-line":"whitespace-pre-line"}}});function cr(e,t){const a=e,{as:n="span",className:i,size:r="medium",weight:o,whiteSpace:l}=a,c=s(a,["as","className","size","weight","whiteSpace"]);return f.jsx(n,Object.assign({ref:t,className:et(lr({size:r,weight:o,whiteSpace:l}),i),"data-component":"Text","data-size":r,"data-weight":o,"data-white-space":l},c))}cr.displayName="Text";var dr=tt(cr);const ur=(e,t)=>{const a=t-e;if(a>=0)return{count:a,isOverLimit:!1,message:`${a} ${1===a?"character":"characters"} remaining`};const n=-a;return{count:n,isOverLimit:!0,message:`${n} ${1===n?"character":"characters"} over`}},mr={field:"input",size:{small:"input-small",medium:"input-medium",large:"input-large"},focus:"input-focus",focusTracked:"input-focus-tracked",block:"input-block",contrast:"input-contrast",monospace:"input-monospace",disabled:"input-disabled",validation:{error:"input-error",success:"input-success"},validationFocus:"input-validation-focus",validationFocusTracked:"input-validation-focus-tracked",leadingVisual:"input-leading-visual-padding",leadingVisualLarge:"input-leading-visual-padding-wide",trailingVisual:"input-trailing-visual-padding",trailingVisualLarge:"input-trailing-visual-padding-wide",input:"input-control",inputPadStart:"input-control-pad-start",inputPadStartWide:"input-control-pad-start-wide",inputPadEnd:"input-control-pad-end",inputPadEndWide:"input-control-pad-end-wide",visual:"input-visual",visualBox:"input-visual-box",spinner:"input-spinner",spinnerLeading:"input-spinner-leading",spinnerHidden:"invisible",spinnerVisible:"visible",counter:"input-counter",counterOverLimit:"input-counter-over-limit",counterIcon:"input-counter-icon",hidden:"sr-only"},pr=["date","time","datetime-local"],hr=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})},gr=({id:e,position:t,hasLoader:a,showLoader:n,children:i})=>{const r="leading"===t?"TextInput.LeadingVisual":"TextInput.TrailingVisual";return a?f.jsx("span",{className:mr.visual,"data-component":r,children:f.jsxs("span",{id:e,className:mr.visualBox,children:[i?f.jsx("span",{className:n?mr.spinnerHidden:mr.spinnerVisible,children:i}):null,f.jsx(en,{srText:null,size:i?void 0:"small",className:et(n?mr.spinnerVisible:mr.spinnerHidden,i&&mr.spinner,i&&"leading"===t&&mr.spinnerLeading)})]})}):f.jsx("span",{id:e,className:mr.visual,"aria-hidden":"true","data-component":r,children:i})};function fr(e,t){var a;const{className:n,type:i="text",size:r="medium",block:l,contrast:c,monospace:d,disabled:u,required:m,validationStatus:p,leadingVisual:h,trailingVisual:g,trailingAction:v,loading:b,loaderPosition:x="auto",loaderText:y="Loading",characterLimit:w,value:j,defaultValue:k,onChange:C,onFocus:S,onBlur:O,"aria-describedby":M}=e,A=s(e,["className","type","size","block","contrast","monospace","disabled","required","validationStatus","leadingVisual","trailingVisual","trailingAction","loading","loaderPosition","loaderText","characterLimit","value","defaultValue","onChange","onFocus","onBlur","aria-describedby"]),T=o.useRef(null),I=N(t,T),D=Jt(),L=Jt(),z=Jt(),E=Jt(),[P,$]=o.useState(!1),R=void 0!==j,[B,V]=o.useState(()=>void 0===k?0:String(k).length),_=R?String(j).length:B,F=w?ur(_,w):void 0,H=null!==(a=null==F?void 0:F.isOverLimit)&&void 0!==a&&a,W=H?"error":p,G=o.useRef(!1),[q,K]=o.useState(""),U=null==F?void 0:F.message;o.useEffect(()=>{if(!G.current)return;const e=window.setTimeout(()=>{K(null!=U?U:"")},500);return()=>{window.clearTimeout(e)}},[U]);const Y=Boolean(b&&("leading"===x||h&&"trailing"!==x)),Z=Boolean(b&&("trailing"===x||"auto"===x&&!h)),Q="boolean"==typeof b,X=Boolean(h)||Y,J=Boolean(g)||Z,ee=Boolean(v),te=Boolean(g)||Q,ae=ee,ne="large"===r,ie=[w?E:void 0,M,h?D:void 0,g?L:void 0,b?z:void 0].filter(Boolean).join(" ")||void 0;return f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:et(mr.field,mr.size[r],ae?P&&mr.focusTracked:mr.focus,l&&mr.block,c&&mr.contrast,d&&mr.monospace,u&&mr.disabled,W&&mr.validation[W],"error"===W&&(ae?P&&mr.validationFocusTracked:mr.validationFocus),X&&(ne?mr.leadingVisualLarge:mr.leadingVisual),J&&!ee&&(ne?mr.trailingVisualLarge:mr.trailingVisual),n),onClick:e=>{var t;e.target===T.current&&pr.includes(i)||null===(t=T.current)||void 0===t||t.focus()},"aria-busy":!!b||void 0,"data-component":"TextInput","data-size":r,"data-block":l,"data-contrast":c,"data-monospace":d,"data-disabled":u,"data-validation":W,"data-focused":P||void 0,"data-leading-visual":X||void 0,"data-trailing-visual":J||void 0,"data-trailing-action":ee||void 0,children:[X?f.jsx(gr,{id:D,position:"leading",hasLoader:Q,showLoader:Y,children:h?hr(h):null}):null,f.jsx("input",Object.assign({ref:I,type:i,value:j,defaultValue:k,disabled:u,required:m,"aria-required":!!m||void 0,"aria-invalid":"error"===W||void 0,"aria-describedby":ie,onChange:e=>{G.current=!0,w&&!R&&V(e.target.value.length),null==C||C(e)},onFocus:e=>{$(!0),null==S||S(e)},onBlur:e=>{$(!1),null==O||O(e)},className:et(mr.input,!X&&(J||ee?mr.inputPadStart:mr.inputPadStartWide),!J&&!ee&&(X?mr.inputPadEnd:mr.inputPadEndWide)),"data-component":"TextInput.Input"},A)),b?f.jsx("span",{id:z,className:mr.hidden,children:y}):null,te?f.jsx(gr,{id:L,position:"trailing",hasLoader:Q,showLoader:Z,children:g?hr(g):null}):null,v]}),F?f.jsxs(f.Fragment,{children:[f.jsx("span",{role:"status","aria-live":"polite",className:mr.hidden,children:q}),f.jsxs("span",{id:E,className:mr.hidden,children:["You can enter up to ",w," ",1===w?"character":"characters"]}),f.jsxs(dr,{"aria-hidden":"true",size:"small",className:et(mr.counter,H&&mr.counterOverLimit),"data-component":"TextInput.CharacterCount",children:[H?f.jsx(Ot,{className:mr.counterIcon}):null,F.message]})]}):null]})}fr.displayName="TextInput";var vr=tt(fr);const br="input-action",xr="input-action-button";function yr(e,t){const{className:a,icon:n}=e,i=s(e,["className","icon"]);return f.jsx("span",{className:br,"data-component":"TextInput.Action",children:f.jsx(yn,Object.assign({ref:t,type:"button",variant:"invisible",size:"small",icon:n,className:et(xr,a)},i))})}yr.displayName="TextInput.Action";var wr=tt(yr);const Nr=Object.assign(vr,{Action:wr}),jr=["ArrowDown","ArrowUp"],kr=["Backspace","Delete"];function Cr(e,t){const a=e,{as:n=Nr,className:i,openOnFocus:r=!1,value:l,onFocus:c,onBlur:d,onClick:u,onChange:m,onKeyDown:p,onKeyUp:h}=a,g=s(a,["as","className","openOnFocus","value","onFocus","onBlur","onClick","onChange","onKeyDown","onKeyUp"]),{id:v,inputRef:b,activeDescendantId:x,showMenu:y,setShowMenu:w,setInputValue:j}=o.useContext(ir),{inputValue:k="",autocompleteSuggestion:C=""}=o.useContext(rr),S=N(t,b),[O,M]=o.useState(!0);return o.useEffect(()=>{const e=null==b?void 0:b.current;e&&(C?O&&document.activeElement===e&&(e.value=C,C.toLowerCase().startsWith(k.toLowerCase())&&e.setSelectionRange(k.length,C.length)):e.value=k)},[C,k,b,O]),o.useEffect(()=>{void 0!==l&&(null==j||j(String(l)))},[l,j]),f.jsx(n,Object.assign({ref:S,id:v,role:"combobox",autoComplete:"off","aria-autocomplete":"both","aria-haspopup":"listbox","aria-expanded":Boolean(y),"aria-controls":`${v}-listbox`,"aria-activedescendant":x,className:i,onFocus:e=>{null==c||c(e),r&&(null==w||w(!0))},onBlur:e=>{null==d||d(e),null==w||w(!1)},onClick:e=>{null==u||u(e),r&&(null==w||w(!0))},onChange:e=>{null==m||m(e),null==j||j(e.currentTarget.value),null==w||w(!0)},onKeyDown:e=>{null==p||p(e),e.defaultPrevented||(kr.includes(e.key)&&M(!1),"Escape"!==e.key?y||e.altKey||!jr.includes(e.key)||null==w||w(!0):y?null==w||w(!1):e.currentTarget.value&&(null==j||j(""),e.currentTarget.value=""))},onKeyUp:e=>{null==h||h(e),kr.includes(e.key)&&M(!0)},"data-component":"Autocomplete.Input"},g))}Cr.displayName="Autocomplete.Input";var Sr=tt(Cr);const Or="autocomplete-menu-loading",Mr="autocomplete-menu-empty-state",Ar="sr-only",Tr=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Ir(e){var t;const{items:a,selectedItemIds:n=[],selectionVariant:i="single",filter:r,sortOnClose:l,emptyStateText:c="No selectable options",addNewItem:d,loading:u=!1,onOpenChange:m,onSelectedChange:p,customScrollContainerRef:h,"aria-labelledby":g,className:v}=e,{id:b,inputRef:x,scrollContainerRef:y,activeDescendantId:w,setActiveDescendantId:N,showMenu:j,setShowMenu:k,setInputValue:C,setAutocompleteSuggestion:S}=o.useContext(ir),{deferredInputValue:O=""}=o.useContext(or),M=`${b}-listbox`,A=o.useCallback(e=>`${M}-${e}`,[M]),[T,I]=o.useState(()=>a.map(e=>e.id));o.useEffect(()=>{if(j)return;const e=a.map(e=>e.id).sort(null!=l?l:(t=e=>n.includes(e),(e,a)=>t(e)===t(a)?0:t(e)?-1:1));var t;I(t=>((e,t)=>e.length===t.length&&e.every((e,a)=>e===t[a]))(e,t)?t:e)},[j,a,n,l]);const D=o.useMemo(()=>new Map(T.map((e,t)=>[e,t])),[T]),L=o.useMemo(()=>{return a.filter(null!=r?r:(e=O,t=>{var a;return Boolean(null===(a=t.text)||void 0===a?void 0:a.toLowerCase().startsWith(e.toLowerCase()))})).sort((e,t)=>{var a,n;return(null!==(a=D.get(e.id))&&void 0!==a?a:Number.MAX_SAFE_INTEGER)-(null!==(n=D.get(t.id))&&void 0!==n?n:Number.MAX_SAFE_INTEGER)});var e},[a,r,O,D]),z=o.useMemo(()=>d?[...L,d.item]:L,[L,d]),E=o.useMemo(()=>z.filter(e=>!e.disabled),[z]),P=E.findIndex(e=>A(e.id)===w),$=E[P],[R,B]=o.useState(!1),V=e=>{var t;if(d&&e.id===d.item.id)d.onAdd(e);else{const r="single"===i?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];p?p(r.map(e=>a.find(t=>t.id===e)).filter(e=>void 0!==e)):"single"===i&&(null==C||C(null!==(t=e.text)&&void 0!==t?t:""))}if("multiple"===i)return null==C||C(""),void(null==S||S(""));null==k||k(!1)},_=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if("Enter"===e.key){if(!$)return;return e.preventDefault(),void V($)}const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0;0!==t&&(e.preventDefault(),(e=>{if(0===E.length)return;const t=(e+E.length)%E.length;B(!0),null==N||N(A(E[t].id))})(-1===P?1===t?0:-1:P+t))},F=o.useRef(_);o.useEffect(()=>{F.current=_}),o.useEffect(()=>{const e=null==x?void 0:x.current;if(!e||!j)return;const t=e=>F.current(e);return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[x,j]);const H=null!==(t=null==$?void 0:$.text)&&void 0!==t?t:"",W=R&&Boolean($)&&H.toLowerCase().startsWith(O.toLowerCase())&&!n.includes($.id);o.useEffect(()=>{null==S||S(W?H:"")},[W,H,S]),o.useEffect(()=>{var e;if(!w||!R)return;const t=null!==(e=null==h?void 0:h.current)&&void 0!==e?e:null==y?void 0:y.current,a=document.getElementById(w);if(!t||!a||!t.contains(a))return;const n=t.getBoundingClientRect(),i=a.getBoundingClientRect();i.top<n.top?t.scrollTop-=n.top-i.top:i.bottom>n.bottom&&(t.scrollTop+=i.bottom-n.bottom)},[w,R,h,y]);const G=o.useRef(!1);o.useEffect(()=>{const e=Boolean(j);G.current!==e&&(G.current=e,null==m||m(e))},[j,m]);const q="string"==typeof c?c:"No options available",K=u?"":0===z.length?q:`${z.length} option${1===z.length?"":"s"} available.`,[U,Y]=o.useState(""),Z=o.useRef("");o.useEffect(()=>{if(!j)return Z.current="",void Y("");if(K===Z.current)return;Z.current=K;const e=window.setTimeout(()=>Y(K),500);return()=>{window.clearTimeout(e)}},[j,K]);const Q=o.useMemo(()=>({container:"Autocomplete",listRole:"listbox",listLabelledBy:g,selectionAttribute:"aria-selected",selectionVariant:i,enableFocusZone:!1}),[g,i]),X=e=>{const{id:t,text:a,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:l,children:c}=e,u=s(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","children"]),m=d&&t===d.item.id?st:o;return f.jsxs(Bn.Item,Object.assign({id:A(t),tabIndex:-1,active:A(t)===w,selected:n.includes(t),onSelect:()=>V(e),"data-id":t},u,{children:[m?f.jsx(Bn.LeadingVisual,{children:Tr(m)}):null,c,a,i?f.jsx(Bn.Description,{variant:r,children:i}):null,l?f.jsx(Bn.TrailingVisual,{children:Tr(l)}):null]}),t)};return f.jsxs("div",{className:et(v),onMouseDown:e=>e.preventDefault(),onMouseMove:e=>{const t=e.target.closest('[role="option"]');t&&t.id!==w&&E.some(e=>A(e.id)===t.id)&&(B(!1),null==N||N(t.id))},"data-component":"Autocomplete.Menu","data-loading":u?"":void 0,children:[u?f.jsx("div",{className:Or,"data-component":"Autocomplete.Loading",children:f.jsx(en,{})}):0===z.length?c?f.jsx("div",{className:Mr,"data-component":"Autocomplete.EmptyState",children:c}):null:f.jsx(Oa.Provider,{value:Q,children:f.jsx(Bn,{id:M,children:z.map(X)})}),f.jsx("span",{role:"status","aria-live":"polite",className:Ar,"data-component":"Autocomplete.Announcement",children:U})]})}Ir.displayName="Autocomplete.Menu";const Dr="sr-only",Lr=Xe(["autocomplete-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2"],{variants:{width:{xsmall:"autocomplete-overlay-width-xsmall",small:"autocomplete-overlay-width-small",medium:"autocomplete-overlay-width-medium",large:"autocomplete-overlay-width-large",xlarge:"autocomplete-overlay-width-xlarge",auto:"autocomplete-overlay-width-auto",anchor:"autocomplete-overlay-width-anchor"},height:{small:"autocomplete-overlay-height-small",medium:"autocomplete-overlay-height-medium",large:"autocomplete-overlay-height-large",xlarge:"autocomplete-overlay-height-xlarge",auto:"autocomplete-overlay-height-auto"},maxHeight:{small:"autocomplete-overlay-max-height-small",medium:"autocomplete-overlay-max-height-medium",large:"autocomplete-overlay-max-height-large",xlarge:"autocomplete-overlay-max-height-xlarge"},unplaced:{true:"invisible",false:""}}});function zr(e){var t,a,n,i,r;const{menuAnchorRef:l,side:c="outside-bottom",align:d="start",width:u="anchor",height:m="auto",maxHeight:p="medium",portalContainerName:h,children:g,className:v,style:b}=e,x=s(e,["menuAnchorRef","side","align","width","height","maxHeight","portalContainerName","children","className","style"]),{inputRef:y,scrollContainerRef:w,showMenu:j,setShowMenu:k}=o.useContext(ir),C=o.useRef(null),S=N(w,C),O=o.useCallback(()=>{var e,t,a;const n=null!==(e=null==y?void 0:y.current)&&void 0!==e?e:null;return null!==(a=null!==(t=null==l?void 0:l.current)&&void 0!==t?t:null==n?void 0:n.closest('[data-component="TextInput"]'))&&void 0!==a?a:n},[l,y]),M=o.useRef(null),[A,T]=o.useState(null),I=o.useCallback(()=>{const e=O(),t=C.current;if(!e||!t)return;const a=Object.assign(Object.assign({},ui(t,e,{side:c,align:d})),{anchorWidth:e.getBoundingClientRect().width});M.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth)(M.current,a)||(M.current=a,T(a))},[O,c,d]);return Kn(()=>{if(!j)return M.current=null,void T(null);I();const e=new ResizeObserver(I),t=O();return C.current&&e.observe(C.current),t&&e.observe(t),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{e.disconnect(),window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[j,I,O]),o.useEffect(()=>{if(!j)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=C.current)||void 0===t?void 0:t.contains(n))||(null===(a=O())||void 0===a?void 0:a.contains(n))||null==k||k(!1))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[j,k,O]),f.jsx(oi,{containerName:h,children:f.jsx("div",Object.assign({ref:S,"aria-hidden":j?void 0:"true",className:et(j?Lr({width:u,height:m,maxHeight:p,unplaced:!A}):Dr,v),style:Object.assign(Object.assign({},b),{"--autocomplete-overlay-top":`${null!==(t=null==A?void 0:A.top)&&void 0!==t?t:0}px`,"--autocomplete-overlay-left":`${null!==(a=null==A?void 0:A.left)&&void 0!==a?a:0}px`,"--autocomplete-overlay-anchor-width":`${null!==(n=null==A?void 0:A.anchorWidth)&&void 0!==n?n:0}px`}),"data-component":"Autocomplete.Overlay","data-open":j?"":void 0,"data-side":null!==(i=null==A?void 0:A.anchorSide)&&void 0!==i?i:c,"data-align":null!==(r=null==A?void 0:A.anchorAlign)&&void 0!==r?r:d,"data-width":u,"data-height":m},x,{children:g}))})}zr.displayName="Autocomplete.Overlay";const Er=Object.assign(sr,{Input:Sr,Menu:Ir,Overlay:zr});e.createContext({});const Pr=e=>"object"==typeof e&&Object.keys(e).some(e=>["narrow","regular","wide"].includes(e)),$r=20,Rr=Xe("avatar",{variants:{shape:{circle:"avatar-circle",square:"avatar-square"},responsive:{true:"avatar-responsive",false:""}}});function Br(e,t){const a=e,{as:n="img",className:i,alt:r="",size:o=$r,shape:l="circle",style:c}=a,d=s(a,["as","className","alt","size","shape","style"]),u=Pr(o),m={"--avatar-size-regular":`${$r}px`};if(u)for(const[e,t]of Object.entries(o))void 0!==t&&(m[`--avatar-size-${e}`]=`${t}px`);else m["--avatar-size-regular"]=`${o}px`;return f.jsx(n,Object.assign({ref:t,alt:r,width:u?void 0:o,height:u?void 0:o,className:et(Rr({shape:l,responsive:u}),i),style:Object.assign(Object.assign({},c),m),"data-component":"Avatar","data-responsive":u||void 0,"data-shape":l},d))}Br.displayName="Avatar";var Vr=tt(Br);const _r=["narrow","regular","wide"],Fr={root:"avatar-stack",responsive:"avatar-stack-responsive",alignLeft:"avatar-stack-align-left",alignRight:"avatar-stack-align-right",variant:{cascade:"avatar-stack-cascade",stack:"avatar-stack-stack"},width:{cascade:{two:"avatar-stack-cascade-two",three:"avatar-stack-cascade-three",more:"avatar-stack-cascade-more"},stack:{two:"avatar-stack-stack-two",three:"avatar-stack-stack-three",more:"avatar-stack-stack-more"}},body:{collapsed:"avatar-stack-body",expandable:"avatar-stack-body-expandable"},item:{root:"avatar-stack-item",first:"avatar-stack-item-first",overlapped:"avatar-stack-item-overlapped",mask:"avatar-stack-item-mask",shape:{circle:"avatar-stack-item-circle",square:"avatar-stack-item-square"},edge:{circle:"avatar-stack-item-edge-circle",square:"avatar-stack-item-edge-square"},edgeAlignRight:"avatar-stack-item-edge-align-right",layer:["z-5","z-4","z-3","z-2","z-1"],fade:["","","avatar-stack-item-fade-third","avatar-stack-item-fade-fourth","avatar-stack-item-fade-fifth"],overflow:"avatar-stack-item-overflow",expanded:"avatar-stack-item-expanded",expandedFirst:"avatar-stack-item-expanded-first"}};function Hr(e,t){var a;const n=e,{as:i="span",className:r,children:l,variant:c="cascade",shape:d="circle",size:u,alignRight:m,disableExpand:p,style:h}=n,g=s(n,["as","className","children","variant","shape","size","alignRight","disableExpand","style"]),v=o.useRef(null),[b,x]=o.useState(!1);o.useEffect(()=>{if(!v.current)return;const e=v.current,t=()=>{x(ua(e).length>0)},a=new MutationObserver(t);return a.observe(e,{childList:!0}),t(),()=>{a.disconnect()}},[]);const y=o.Children.count(l),w=y>3?"more":3===y?"three":2===y?"two":void 0,N=!u||Pr(u),j=!p,k={};if(Pr(u))for(const e of _r)k[`--avatar-stack-size-${e}`]=`${null!==(a=u[e])&&void 0!==a?a:$r}px`;else if(u)k["--avatar-stack-size"]=`${u}px`;else{const e=(e=>{var t;const a={narrow:[],regular:[],wide:[]};for(const n of o.Children.toArray(e)){if(!o.isValidElement(n))continue;const e=n.props.size;for(const n of _r)a[n].push(Pr(e)?null!==(t=e[n])&&void 0!==t?t:$r:null!=e?e:$r)}return Object.fromEntries(_r.map(e=>[e,a[e].length>0?Math.min(...a[e]):$r]))})(l);for(const t of _r)k[`--avatar-stack-size-${t}`]=`${e[t]}px`}const C=o.Children.map(l,(e,t)=>o.isValidElement(e)?o.cloneElement(e,{className:et(Fr.item.root,0===t?Fr.item.first:Fr.item.overlapped,Fr.item.shape[d],m&&"square"===d?Fr.item.edgeAlignRight:Fr.item.edge[d],t>0&&"circle"===d&&Fr.item.mask,"square"===d&&Fr.item.layer[Math.min(t,4)],"cascade"===c&&Fr.item.fade[t],t>4&&Fr.item.overflow,j&&Fr.item.expanded,j&&0===t&&Fr.item.expandedFirst,e.props.className)}):e);return f.jsx(i,Object.assign({ref:t,className:et(Fr.root,Fr.variant[c],w&&Fr.width[c][w],m?Fr.alignRight:Fr.alignLeft,N&&Fr.responsive,r),style:Object.assign(Object.assign({},h),k),"data-component":"AvatarStack","data-variant":c,"data-shape":d,"data-avatar-count":y>3?"3+":y,"data-align-right":m,"data-responsive":N||void 0},g,{children:f.jsx("div",{ref:v,className:j?Fr.body.expandable:Fr.body.collapsed,tabIndex:j&&!b?0:void 0,"data-component":"AvatarStack.Body","data-disable-expand":p,children:C})}))}Hr.displayName="AvatarStack";var Wr=tt(Hr);const Gr=e.createContext({});function qr(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(a),"data-component":"Banner.Description"},n))}qr.displayName="Banner.Description";var Kr=tt(qr);const Ur="banner-title";function Yr(e,t){const{as:a="h2",className:n,id:i}=e,r=s(e,["as","className","id"]),{titleId:l}=o.useContext(Gr);return f.jsx(a,Object.assign({ref:t,id:null!=i?i:l,className:et(Ur,n),"data-component":"Banner.Title"},r))}Yr.displayName="Banner.Title";var Zr=tt(Yr);const Qr="banner-container",Xr="banner-actions",Jr="banner-actions-inline",eo="banner-actions-stacked",to={shown:"banner-actions-shown",hidden:"banner-actions-hidden",inlineLeading:"banner-actions-inline-leading",inlineTrailing:"banner-actions-inline-trailing",responsiveLeading:"banner-actions-responsive-leading",responsiveTrailing:"banner-actions-responsive-trailing"},ao="sr-only",no=Xe("banner",{variants:{layout:{default:"banner-default",compact:"banner-compact"},variant:{critical:"banner-critical",info:"banner-info",success:"banner-success",upsell:"banner-upsell",warning:"banner-warning"},flush:{true:"banner-flush",false:""}}}),io=Xe("banner-icon",{variants:{tight:{true:"banner-icon-tight",false:""}}}),ro=Xe("banner-body",{variants:{actions:{stacked:"banner-body-stacked",inline:"banner-body-inline",responsive:"banner-body-responsive"}}}),oo=Xe("banner-content",{variants:{tight:{true:"banner-content-tight",false:""}}}),so=Xe("banner-dismiss",{variants:{withActions:{true:"banner-dismiss-with-actions",false:""}}}),lo={critical:Ot,info:It,success:ft,upsell:It,warning:Ht},co=["info","upsell"],uo=({primaryAction:e,secondaryAction:t,className:a,leadingClassName:n,trailingClassName:i})=>f.jsxs("div",{"data-component":"Banner.Actions",children:[f.jsxs("div",{className:et(Xr,a,i),"data-primary-action":"trailing",children:[t,e]}),f.jsxs("div",{className:et(Xr,a,n),"data-primary-action":"leading",children:[e,t]})]});function mo(e,t){const{className:a,children:n,title:i,description:r,hideTitle:o,leadingVisual:l,variant:c="info",layout:d="default",actionsLayout:u="default",flush:m=!1,onDismiss:p,primaryAction:h,secondaryAction:g,"aria-label":v,"aria-labelledby":b}=e,x=s(e,["className","children","title","description","hideTitle","leadingVisual","variant","layout","actionsLayout","flush","onDismiss","primaryAction","secondaryAction","aria-label","aria-labelledby"]),y=Jt(),w=Boolean(p),N=Boolean(h||g),j=Boolean(o)&&!N,k=lo[c],C=l&&co.includes(c)?l:f.jsx(k,{}),S="stacked"===u||w&&!o&&"inline"!==u,O=S?{leading:to.shown,trailing:to.hidden}:"inline"===u?{leading:to.inlineLeading,trailing:to.inlineTrailing}:{leading:to.responsiveLeading,trailing:to.responsiveTrailing},M=i?f.jsx(Zr,{children:i}):null;return f.jsx(Gr.Provider,{value:{titleId:y},children:f.jsx("div",{className:Qr,children:f.jsxs("section",Object.assign({ref:t,"aria-labelledby":null!=b?b:v?void 0:y,"aria-label":b?void 0:v,tabIndex:-1,className:et(no({layout:d,variant:c,flush:m}),a),"data-component":"Banner","data-variant":c,"data-layout":d,"data-actions-layout":u,"data-dismissible":w||void 0,"data-has-actions":N||void 0,"data-title-hidden":o||void 0,"data-flush":m||void 0},x,{children:[f.jsx("div",{className:et(io({tight:j})),"data-component":"Banner.Icon",children:C}),f.jsxs("div",{className:et(ro({actions:S?"stacked":"inline"===u?"inline":"responsive"})),children:[f.jsxs("div",{className:et(oo({tight:j})),"data-component":"Banner.Content",children:[M?o?f.jsx("span",{className:ao,children:M}):M:null,r?f.jsx(Kr,{children:r}):null,n]}),N?f.jsx(uo,{primaryAction:h,secondaryAction:g,className:et("inline"===u&&Jr,S&&eo),leadingClassName:O.leading,trailingClassName:O.trailing}):null]}),w?f.jsx(yn,{icon:Ct,"aria-label":"Dismiss banner",variant:"invisible",onClick:p,className:et(so({withActions:N})),"data-component":"Banner.Dismiss"}):null]}))})})}mo.displayName="Banner";var po=tt(mo);function ho(e,t){return f.jsx(vn,Object.assign({ref:t,variant:"default","data-component":"Banner.PrimaryAction"},e))}ho.displayName="Banner.PrimaryAction";var go=tt(ho);function fo(e,t){return f.jsx(vn,Object.assign({ref:t,variant:"invisible","data-component":"Banner.SecondaryAction"},e))}fo.displayName="Banner.SecondaryAction";var vo=tt(fo);const bo=Object.assign(po,{Title:Zr,Description:Kr,PrimaryAction:go,SecondaryAction:vo}),xo={container:"blankslate-container",root:"blankslate",border:"blankslate-border",narrow:"blankslate-narrow",size:{small:"blankslate-small",medium:"blankslate-medium",large:"blankslate-large"},padding:{small:"blankslate-padding-small",medium:"blankslate-padding-medium",large:"blankslate-padding-large"},spaciousPadding:{small:"blankslate-padding-spacious-small",medium:"blankslate-padding-spacious-medium",large:"blankslate-padding-spacious-large"},tightType:"blankslate-tight-type",tightPadding:{small:"blankslate-tight-padding-small",medium:"blankslate-tight-padding-medium",large:"blankslate-tight-padding-large"},tightSpaciousPadding:"blankslate-tight-padding-spacious"};function yo(e,t){const a=e,{as:n="div",className:i,size:r="medium",border:o,narrow:l,spacious:c}=a,d=s(a,["as","className","size","border","narrow","spacious"]);return f.jsx("div",{className:xo.container,children:f.jsx(n,Object.assign({ref:t,className:et(xo.root,xo.size[r],c?xo.spaciousPadding[r]:xo.padding[r],xo.tightType,c?xo.tightSpaciousPadding:xo.tightPadding[r],o&&xo.border,l&&xo.narrow,i),"data-component":"Blankslate","data-size":r,"data-border":o,"data-narrow":l,"data-spacious":c},d))})}yo.displayName="Blankslate";var wo=tt(yo);const No="blankslate-description";function jo(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("p",Object.assign({ref:t,className:et(No,a),"data-component":"Blankslate.Description"},n))}jo.displayName="Blankslate.Description";var ko=tt(jo);const Co="blankslate-heading";function So(e,t){const{as:a="h2",className:n}=e,i=s(e,["as","className"]);return f.jsx(a,Object.assign({ref:t,className:et(Co,n),"data-component":"Blankslate.Heading"},i))}So.displayName="Blankslate.Heading";var Oo=tt(So);const Mo="blankslate-action",Ao="blankslate-action-tight";function To(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Mo,Ao,a)},n))}To.displayName="Blankslate.Action";var Io=tt(To);function Do(e,t){return f.jsx(Io,Object.assign({ref:t,"data-component":"Blankslate.PrimaryAction"},e))}Do.displayName="Blankslate.PrimaryAction";var Lo=tt(Do);const zo="link",Eo="link-inline",Po="link-muted";function $o(e,t){const a=e,{as:n="a",className:i,muted:r,inline:o}=a,l=s(a,["as","className","muted","inline"]);return f.jsx(n,Object.assign({ref:t,className:et(zo,o&&Eo,r&&Po,i),"data-component":"Link","data-muted":r,"data-inline":o},l))}$o.displayName="Link";var Ro=tt($o);function Bo(e,t){const{href:a,children:n}=e,i=s(e,["href","children"]);return f.jsx(Io,Object.assign({ref:t,"data-component":"Blankslate.SecondaryAction"},i,{children:void 0===a?n:f.jsx(Ro,{href:a,children:n})}))}Bo.displayName="Blankslate.SecondaryAction";var Vo=tt(Bo);const _o="blankslate-visual",Fo="blankslate-visual-tight";function Ho(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("span",Object.assign({ref:t,className:et(_o,Fo,a),"data-component":"Blankslate.Visual"},n))}Ho.displayName="Blankslate.Visual";var Wo=tt(Ho);const Go=Object.assign(wo,{Visual:Wo,Heading:Oo,Description:ko,PrimaryAction:Lo,SecondaryAction:Vo}),qo=Xe("blockquote",{variants:{size:{large:"blockquote-large",medium:"blockquote-medium",small:"blockquote-small"},variant:{subtle:"blockquote-subtle",default:"blockquote-default",emphasis:"blockquote-emphasis"}}});function Ko(e,t){const a=e,{as:n="blockquote",className:i,size:r="medium",variant:o="default"}=a,l=s(a,["as","className","size","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(qo({size:r,variant:o}),i),"data-component":"Blockquote","data-size":r,"data-variant":o},l))}Ko.displayName="Blockquote";var Uo=tt(Ko);function Yo({items:e}){return f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(yn,{icon:Lt,"aria-label":`${e.length} more breadcrumb items`,variant:"invisible",size:"small","data-component":"Breadcrumbs.OverflowMenu"})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:e.map((e,t)=>{const a=e.props,{children:n,selected:i,as:r}=a,o=s(a,["children","selected","as"]);return f.jsx(Bn.LinkItem,Object.assign({as:r,"aria-current":i?"page":void 0},o,{children:n}),t)})})})]})}Yo.displayName="Breadcrumbs.OverflowMenu";const Zo=e.createContext({}),Qo="breadcrumbs",Xo="breadcrumbs-list",Jo="breadcrumbs-list-wrap",es="breadcrumbs-list-menu",ts="breadcrumbs-item",as="breadcrumbs-item-menu",ns="breadcrumbs-separator",is=()=>f.jsx("span",{className:ns,"aria-hidden":"true","data-component":"Breadcrumbs.Separator",children:f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z",fill:"currentcolor"})})});function rs(e){const{className:t,children:a,style:n,overflow:i="wrap",variant:r="normal"}=e,s=o.useRef(null),l=o.useMemo(()=>(e=>o.Children.toArray(e).filter(e=>o.isValidElement(e)))(a),[a]),c=l[0],d="menu-with-root"!==i,[u,m]=o.useState([]),[p,h]=o.useState(null),[g,v]=o.useState(28),b=o.useCallback(e=>{const t=null==e?void 0:e.querySelector("button");t&&v(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);Kn(()=>{if("wrap"===i)return;const e=s.current;if(!e)return;h(t=>t===e.offsetWidth?t:e.offsetWidth);const t=e.querySelectorAll("li[data-crumb]");t.length===l.length&&m(Array.from(t,e=>e.offsetWidth))},[l,i]),o.useEffect(()=>{const e=s.current;if("wrap"===i||!e)return;const t=new ResizeObserver(e=>{for(const t of e){const e=Math.round(t.contentRect.width);h(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[i]);const{menuItemCount:x,hideRoot:y}=o.useMemo(()=>"wrap"===i||u.length!==l.length?{menuItemCount:0,hideRoot:d}:(({availableWidth:e,itemCount:t,itemWidths:a,menuButtonWidth:n,overflow:i,hideRoot:r})=>{var o;let s=r;const l=null!==(o=a[0])&&void 0!==o?o:0;let c=4;s?e<544&&t>2&&(c=1):c=3;const d=e=>{const t=e.reduce((e,t)=>e+t+16,0);return s?t:l+t};let u=[...a],m=0;if(e>0&&u.length>0){let t=d(u);for(;"wrap"!==i&&(t>e||u.length>c);){if(m+=1,u=u.slice(1),t=d(u)+n,1===u.length&&t>e){s=!0;break}s=r}}return{menuItemCount:m,hideRoot:s}})({availableWidth:null!=p?p:800,itemCount:l.length,itemWidths:u,menuButtonWidth:g,overflow:i,hideRoot:d}),[i,d,l,u,p,g]),w=o.useMemo(()=>({variant:r}),[r]),N=o.useMemo(()=>{const e=(e,t)=>f.jsxs("li",{className:ts,"data-crumb":"",children:[e,f.jsx(is,{})]},t);if(0===x)return l.map((t,a)=>e(t,a));const t=l.slice(0,x),a=l.slice(x),n=y?t:t.slice(1),i=f.jsxs("li",{ref:b,className:et(ts,as),"data-overflow-menu":"",children:[f.jsx(Yo,{items:n}),f.jsx(is,{})]},"overflow-menu"),r=a.map((t,a)=>e(t,`visible-${a}`));return y?[i,...r]:[e(c,"root"),i,...r]},[l,x,y,b,c]);return f.jsx(Zo.Provider,{value:w,children:f.jsx("nav",{ref:s,"aria-label":"Breadcrumbs",className:et(Qo,t),style:n,"data-component":"Breadcrumbs","data-overflow":i,"data-variant":r,children:f.jsx("ol",{className:et(Xo,"wrap"===i?Jo:es),children:N})})})}rs.displayName="Breadcrumbs";const os="breadcrumbs-link",ss="breadcrumbs-link-normal",ls="breadcrumbs-link-normal-selected",cs="breadcrumbs-link-spacious",ds="breadcrumbs-link-spacious-selected";function us(e,t){const a=e,{as:n="a",className:i,selected:r}=a,l=s(a,["as","className","selected"]),{variant:c="normal"}=o.useContext(Zo),d="spacious"===c;return f.jsx(n,Object.assign({ref:t,"aria-current":r?"page":void 0,className:et(os,d?cs:ss,r&&(d?ds:ls),i),"data-component":"Breadcrumbs.Item","data-selected":r?"":void 0},l))}us.displayName="Breadcrumbs.Item";var ms=tt(us);const ps=Object.assign(rs,{Item:ms}),hs="button-group",gs={root:"button-group-item",first:"button-group-item-first",last:"button-group-item-last"},fs=["[disabled]","[hidden]","[inert]"],vs=["button","a[href]","summary"].map(e=>`${e}:not(${fs.join("):not(")})`).join(", "),bs=e=>e?Array.from(e.querySelectorAll(vs)):[],xs=(e,t)=>{for(const a of e)a.tabIndex=a===t?0:-1};function ys(e,t){const a=e,{as:n="div",className:i,children:r,role:l,onFocus:c,onKeyDown:d}=a,u=s(a,["as","className","children","role","onFocus","onKeyDown"]),m=o.useRef(null),p=N(t,m),h="toolbar"===l,g=o.useCallback(()=>{if(!h)return;const e=bs(m.current),t=e.find(e=>e===document.activeElement);xs(e,null!=t?t:e[0])},[h]);o.useEffect(g),o.useEffect(()=>{if(!h||null===m.current)return;const e=m.current,t=new MutationObserver(g);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(const t of bs(e))t.removeAttribute("tabindex")}},[h,g]);const v=o.Children.toArray(r);return f.jsx(n,Object.assign({ref:p,className:et(hs,i),role:l,onFocus:e=>{if(null==c||c(e),!h)return;const t=bs(m.current);t.includes(e.target)&&xs(t,e.target)},onKeyDown:e=>{null==d||d(e);const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(!h||0===t||e.defaultPrevented)return;const a=bs(m.current),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},"data-component":"ButtonGroup"},u,{children:v.map((e,t)=>f.jsx("div",{className:et(gs.root,0===t&&gs.first,t===v.length-1&&gs.last),"data-component":"ButtonGroup.Item",children:e},o.isValidElement(e)?e.key:t))}))}ys.displayName="ButtonGroup";var ws=tt(ys);const Ns="calendar-day",js="calendar-day-interactive",ks="calendar-day-selected",Cs="calendar-day-between",Ss="calendar-day-outside",Os="calendar-day-unavailable",Ms="sr-only";function As(e,t){const{label:a,name:n,dayKey:i,selected:r,range:o,today:l,outside:c,unavailable:d,tabbable:u,className:m}=e,p=s(e,["label","name","dayKey","selected","range","today","outside","unavailable","tabbable","className"]),h="middle"===o,g=r&&!h;return f.jsxs("button",Object.assign({ref:t,type:"button",tabIndex:u?0:-1,"aria-pressed":r,"aria-current":l?"date":void 0,"aria-disabled":d||void 0,className:et(Ns,!d&&!r&&js,c&&Ss,h&&Cs,d&&Os,g&&ks,m),"data-component":"Calendar.Day","data-date":i,"data-selected":r,"data-range":o,"data-today":l||void 0,"data-outside":c||void 0,"data-unavailable":d||void 0,"data-tabbable":u},p,{children:[f.jsx("span",{"aria-hidden":"true",children:a}),f.jsx("span",{className:Ms,children:n})]}))}As.displayName="Calendar.Day";var Ts,Is=tt(As),Ds={exports:{}};var Ls,zs=(Ts||(Ts=1,Ds.exports=function(){var e=1e3,t=6e4,a=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",l="week",c="month",d="quarter",u="year",m="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},v=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},b={s:v,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),i=a%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,a){if(t.date()<a.date())return-e(a,t);var n=12*(a.year()-t.year())+(a.month()-t.month()),i=t.clone().add(n,c),r=a-i<0,o=t.clone().add(n+(r?-1:1),c);return+(-(n+(a-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:s,D:m,h:o,m:r,s:i,ms:n,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",y={};y[x]=f;var w="$isDayjsObject",N=function(e){return e instanceof S||!(!e||!e[w])},j=function e(t,a,n){var i;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();y[r]&&(i=r),a&&(y[r]=a,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(x=i),i||!n&&x},k=function(e,t){if(N(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new S(a)},C=b;C.l=j,C.i=N,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function f(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var a=k(e);return this.startOf(t)<=a&&a<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,a){return C.u(e)?this[t]:this.set(a,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var a=this,n=!!C.u(t)||t,d=C.p(e),p=function(e,t){var i=C.w(a.$u?Date.UTC(a.$y,t,e):new Date(a.$y,t,e),a);return n?i:i.endOf(s)},h=function(e,t){return C.w(a.toDate()[e].apply(a.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),a)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return n?p(1,0):p(31,11);case c:return n?p(1,f):p(0,f+1);case l:var x=this.$locale().weekStart||0,y=(g<x?g+7:g)-x;return p(n?v-y:v+(6-y),f);case s:case m:return h(b+"Hours",0);case o:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case i:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var a,l=C.p(e),d="set"+(this.$u?"UTC":""),p=(a={},a[s]=d+"Date",a[m]=d+"Date",a[c]=d+"Month",a[u]=d+"FullYear",a[o]=d+"Hours",a[r]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===u){var g=this.clone().set(m,1);g.$d[p](h),g.init(),this.$d=g.set(m,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(n,d){var m,p=this;n=Number(n);var h=C.p(d),g=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(h===c)return this.set(c,this.$M+n);if(h===u)return this.set(u,this.$y+n);if(h===s)return g(1);if(h===l)return g(7);var f=(m={},m[r]=t,m[o]=a,m[i]=e,m)[h]||1,v=this.$d.getTime()+n*f;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,a=this.$locale();if(!this.isValid())return a.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),r=this.$H,o=this.$m,s=this.$M,l=a.weekdays,c=a.months,d=a.meridiem,u=function(e,a,i,r){return e&&(e[a]||e(t,n))||i[a].slice(0,r)},m=function(e){return C.s(r%12||12,e,"0")},h=d||function(e,t,a){var n=e<12?"AM":"PM";return a?n.toLowerCase():n};return n.replace(g,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return u(a.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(a.weekdaysMin,t.$W,l,2);case"ddd":return u(a.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return C.s(r,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return h(r,o,!0);case"A":return h(r,o,!1);case"m":return String(o);case"mm":return C.s(o,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,m,p){var h,g=this,f=C.p(m),v=k(n),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,y=function(){return C.m(g,v)};switch(f){case u:h=y()/12;break;case c:h=y();break;case d:h=y()/3;break;case l:h=(x-b)/6048e5;break;case s:h=(x-b)/864e5;break;case o:h=x/a;break;case r:h=x/t;break;case i:h=x/e;break;default:h=x}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var a=this.clone(),n=j(e,t,!0);return n&&(a.$L=n),a},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),O=S.prototype;return k.prototype=O,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",s],["$M",c],["$y",u],["$D",m]].forEach(function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,S,k),e.$i=!0),k},k.locale=j,k.isDayjs=N,k.unix=function(e){return k(1e3*e)},k.en=y[x],k.Ls=y,k.p={},k}()),Ds.exports),Es=l(zs),Ps={exports:{}};var $s,Rs=(Ls||(Ls=1,Ps.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),a=60*t[1]+(+t[2]||0);return 0===a?0:"+"===t[0]?-a:a}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var a,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){a=i>12;break}}else a=e===(t?"pm":"PM");return a},m={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],Q:[a,function(e){this.month=3*(e-1)+1}],S:[a,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[n,l("day")],Do:[r,function(e){var t=o.ordinal,a=e.match(/\d+/);if(this.day=a[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,l("week")],ww:[n,l("week")],M:[i,l("month")],MM:[n,l("month")],MMM:[r,function(e){var t=d("months"),a=(d("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(a<1)throw new Error;this.month=a%12||a}],MMMM:[r,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(a){var n,i;n=a,i=o&&o.formats;for(var r=(a=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,a,n){var r=n&&n.toUpperCase();return a||i[n]||e[n]||i[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})).match(t),s=r.length,l=0;l<s;l+=1){var c=r[l],d=m[c],u=d&&d[0],p=d&&d[1];r[l]=p?{regex:u,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},a=0,n=0;a<s;a+=1){var i=r[a];if("string"==typeof i)n+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(n),d=o.exec(c)[0];l.call(t,d),e=e.replace(d,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var a=e.hours;t?a<12&&(e.hours+=12):12===a&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,r=e.args;this.$u=n;var s=r[1];if("string"==typeof s){var l=!0===r[2],c=!0===r[3],d=l||c,u=r[2];c&&(u=r[2]),o=this.$locale(),!l&&u&&(o=a.Ls[u]),this.$d=function(e,t,a,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),r=i.year,o=i.month,s=i.day,l=i.hours,c=i.minutes,d=i.seconds,u=i.milliseconds,m=i.zone,h=i.week,g=new Date,f=s||(r||o?1:g.getDate()),v=r||g.getFullYear(),b=0;r&&!o||(b=o>0?o-1:g.getMonth());var x,y=l||0,w=c||0,N=d||0,j=u||0;return m?new Date(Date.UTC(v,b,f,y,w,N,j+60*m.offset*1e3)):a?new Date(Date.UTC(v,b,f,y,w,N,j)):(x=new Date(v,b,f,y,w,N,j),h&&(x=n(x).week(h).toDate()),x)}catch(e){return new Date("")}}(t,s,n,a),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var m=s.length,h=1;h<=m;h+=1){r[1]=s[h-1];var g=a.apply(this,r);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===m&&(this.$d=new Date(""))}else i.call(this,e)}}}()),Ps.exports),Bs=l(Rs),Vs={exports:{}};var _s,Fs=($s||($s=1,Vs.exports=function(e,t,a){var n=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},r=function(e,t,a,n,r){var o=e.name?e:e.$locale(),s=i(o[t]),l=i(o[a]),c=s||l.map(function(e){return e.slice(0,n)});if(!r)return c;var d=o.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},o=function(){return a.Ls[a.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):r(e,"months")},monthsShort:function(t){return t?t.format("MMM"):r(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):r(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):r(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):r(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return l.bind(this)()},a.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},a.months=function(){return r(o(),"months")},a.monthsShort=function(){return r(o(),"monthsShort","months",3)},a.weekdays=function(e){return r(o(),"weekdays",null,null,e)},a.weekdaysShort=function(e){return r(o(),"weekdaysShort","weekdays",3,e)},a.weekdaysMin=function(e){return r(o(),"weekdaysMin","weekdays",2,e)}}),Vs.exports),Hs=l(Fs),Ws={exports:{}};var Gs,qs,Ks=(_s||(_s=1,Ws.exports=(Gs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,a){var n=t.prototype,i=n.format;a.en.formats=Gs,n.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,a=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,a,n){var i=n&&n.toUpperCase();return a||t[n]||Gs[n]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})}(e,void 0===t?{}:t);return i.call(this,a)}})),Ws.exports),Us=l(Ks),Ys={exports:{}};var Zs=(qs||(qs=1,Ys.exports=function(){var e="week",t="year";return function(a,n,i){var r=n.prototype;r.week=function(a){if(void 0===a&&(a=null),null!==a)return this.add(7*(a-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=i(this).startOf(t).add(1,t).date(n),o=i(this).endOf(e);if(r.isBefore(o))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),Ys.exports),Qs=l(Zs);Es.extend(Bs),Es.extend(Hs),Es.extend(Us),Es.extend(Qs);const Xs="YYYY-MM-DD",Js=e=>Es(e),el=e=>{if(null==e)return null;const t=Js(e);return t.isValid()?t:null},tl=e=>e.format(Xs),al={from:null,to:null},nl=(e,t)=>{if(null==e)return al;if(t){const t=e;return{from:el(t.from),to:el(t.to)}}const a=el(e);return{from:a,to:a}},il=()=>{var e;return null!==(e=Es().localeData().firstDayOfWeek())&&void 0!==e?e:0},rl=e=>{const t=Es().localeData(),a=t.weekdaysMin(),n=t.weekdays();return Array.from({length:7},(t,i)=>{const r=(e+i)%7;return{day:r,narrow:a[r],full:n[r]}})},ol=(e,t)=>e.subtract((e.day()-t+7)%7,"day"),sl=(e,t,a=!1)=>{const n=e.startOf("month"),i=ol(n,t),r=(n.day()-t+7)%7,o=(t+7-1-e.endOf("month").day())%7,s=r+e.daysInMonth()+o,l=a?6:s/7;return Array.from({length:l},(e,t)=>Array.from({length:7},(e,a)=>i.add(7*t+a,"day")))},ll=(e,t,a,n)=>!(null!==t&&e.isBefore(t,"day")||null!==a&&e.isAfter(a,"day")||(null==n?void 0:n(e.toDate()))),cl=(e,t)=>e.isAfter(t,"day")?[t,e]:[e,t],dl=(e,t,a)=>{if(null===t)return null!==a&&e.isSame(a,"day");if(null===a)return e.isSame(t,"day");const[n,i]=cl(t,a);return!e.isBefore(n,"day")&&!e.isAfter(i,"day")},ul=(e,t,a)=>{if(null===t||null===a||t.isSame(a,"day"))return;const[n,i]=cl(t,a);return e.isSame(n,"day")?"start":e.isSame(i,"day")?"end":e.isAfter(n,"day")&&e.isBefore(i,"day")?"middle":void 0},ml=(e,t,a)=>{if(null===e||null!==t)return{from:a,to:null};if(a.isSame(e,"day"))return al;const[n,i]=cl(e,a);return{from:n,to:i}},pl=(e,t)=>{const a=Es(e,t,!0);return a.isValid()?a:null},hl=()=>Es(),gl="calendar",fl="calendar-header",vl="calendar-caption",bl="calendar-grid",xl="calendar-weekday",yl="calendar-week-number-header",wl="calendar-week-number",Nl="calendar-cell",jl="calendar-cell-range",kl="calendar-cell-range-start",Cl="calendar-cell-range-end",Sl="sr-only";function Ol(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:l,month:c,defaultMonth:d,onMonthChange:u,min:m,max:p,isDateDisabled:h,weekStartsOn:g,fixedWeeks:v=!1,showOutsideDays:b=!0,showWeekNumbers:x=!1,monthFormat:y="MMMM YYYY",dayFormat:w="LL",focusableDayRef:N,previousMonthLabel:j="Previous month",nextMonthLabel:k="Next month",weekNumberLabel:C="Week",className:S}=a,O=s(a,["mode","value","defaultValue","onChange","month","defaultMonth","onMonthChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showOutsideDays","showWeekNumbers","monthFormat","dayFormat","focusableDayRef","previousMonthLabel","nextMonthLabel","weekNumberLabel","className"]),M=Jt(),A=o.useRef(null),T=hl(),I="range"===n,D=void 0!==i,[L,z]=o.useState(()=>nl(r,I)),E=D?nl(i,I):L,P=void 0!==c,[$,R]=o.useState(()=>{var e,t,a;return(null!==(a=null!==(t=null!==(e=el(d))&&void 0!==e?e:nl(r,I).from)&&void 0!==t?t:nl(i,I).from)&&void 0!==a?a:hl()).startOf("month")}),B=(P?Js(c):$).startOf("month"),V=el(m),_=el(p),F=null!=g?g:il(),H=rl(F),W=sl(B,F,v),[G,q]=o.useState(null),K=o.useRef(null),[U,Y]=o.useState(null),Z=I&&null!==E.from&&null===E.to,Q=Z?U:E.to,X=tl((()=>{for(const e of[G,E.from,T])if(e&&e.isSame(B,"month"))return e;return B})());o.useEffect(()=>{var e,t;const a=K.current;null!==a&&(K.current=null,null===(t=null===(e=A.current)||void 0===e?void 0:e.querySelector(`[data-date='${a}']`))||void 0===t||t.focus())});const J=e=>{const t=e.startOf("month");P||R(t),null==u||u(t.toDate())},ee=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const a=t=>{e.preventDefault(),(e=>{q(e),K.current=tl(e),e.isSame(B,"month")||J(e)})(t)};switch(e.key){case"ArrowLeft":return a(t.subtract(1,"day"));case"ArrowRight":return a(t.add(1,"day"));case"ArrowUp":return a(t.subtract(7,"day"));case"ArrowDown":return a(t.add(7,"day"));case"Home":return a(ol(t,F));case"End":return a(ol(t,F).add(6,"day"));case"PageUp":return a(t.subtract(1,e.shiftKey?"year":"month"));case"PageDown":return a(t.add(1,e.shiftKey?"year":"month"));default:return}},te=B.subtract(1,"month"),ae=B.add(1,"month"),ne=null===V||!te.endOf("month").isBefore(V,"day"),ie=null===_||!ae.isAfter(_,"day");return f.jsxs("div",Object.assign({ref:t,className:et(gl,S),"data-component":"Calendar"},O,{children:[f.jsxs("div",{className:fl,"data-component":"Calendar.Header",children:[f.jsx(yn,{icon:xt,"aria-label":j,variant:"invisible",size:"small",disabled:!ne,onClick:()=>J(te),"data-component":"Calendar.PreviousMonth"}),f.jsx("div",{id:M,"aria-live":"polite",className:vl,"data-component":"Calendar.Caption",children:B.format(y)}),f.jsx(yn,{icon:yt,"aria-label":k,variant:"invisible",size:"small",disabled:!ie,onClick:()=>J(ae),"data-component":"Calendar.NextMonth"})]}),f.jsxs("table",{ref:A,"aria-labelledby":M,className:bl,onPointerLeave:()=>{Y(null)},"data-component":"Calendar.Grid","data-mode":n,children:[f.jsx("thead",{children:f.jsxs("tr",{children:[x?f.jsx("th",{scope:"col",className:yl,children:f.jsx("span",{className:Sl,children:C})}):null,H.map(e=>f.jsxs("th",{scope:"col",className:xl,"data-component":"Calendar.Weekday",children:[f.jsx("span",{"aria-hidden":"true",children:e.narrow}),f.jsx("span",{className:Sl,children:e.full})]},e.day))]})}),f.jsx("tbody",{children:W.map(e=>f.jsxs("tr",{"data-component":"Calendar.Week",children:[x?f.jsx("th",{scope:"row",className:wl,"data-component":"Calendar.WeekNumber",children:e[0].week()}):null,e.map(e=>{const t=tl(e),a=!e.isSame(B,"month");if(a&&!b)return f.jsx("td",{className:Nl},t);const n=t===X,i=ul(e,E.from,Q);return f.jsx("td",{className:et(Nl,i&&jl,"start"===i&&kl,"end"===i&&Cl),children:f.jsx(Is,{ref:n?N:void 0,label:e.format("D"),name:e.format(w),dayKey:t,selected:dl(e,E.from,E.to),range:i,today:e.isSame(T,"day"),outside:a,unavailable:!ll(e,V,_,h),tabbable:n,onClick:()=>(e=>{var t,a,n,i;if(!ll(e,V,_,h))return;q(e),e.isSame(B,"month")||J(e);const r=I?ml(E.from,E.to,e):{from:e,to:e};if(D||z(r),I){return void(null==l||l({from:null!==(a=null===(t=r.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=r.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==l||l(e.toDate())})(e),onKeyDown:t=>ee(t,e),onFocus:()=>(e=>{q(t=>(null==t?void 0:t.isSame(e,"day"))?t:e),Z&&Y(e)})(e),onPointerEnter:()=>(e=>{Z&&Y(e)})(e)})},t)})]},tl(e[0])))})]})]}))}Ol.displayName="Calendar";var Ml=tt(Ol);const Al=Object.assign(Ml,{Day:Is}),Tl="card-action";function Il(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Tl,a),"data-component":"Card.Action"},n))}Il.displayName="Card.Action";var Dl=tt(Il);const Ll=e.createContext({}),zl="card-description text-body-medium";function El(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("p",Object.assign({ref:t,className:et(zl,a),"data-component":"Card.Description"},n))}El.displayName="Card.Description";var Pl=tt(El);const $l="card-heading",Rl="card-heading-compact";function Bl(e,t){const{as:a="h3",className:n,id:i}=e,r=s(e,["as","className","id"]),{titleId:l,layout:c}=o.useContext(Ll);return f.jsx(a,Object.assign({ref:t,id:null!=i?i:l,className:et($l,"compact"===c&&Rl,n),"data-component":"Card.Heading"},r))}Bl.displayName="Card.Heading";var Vl=tt(Bl);const _l="card-icon",Fl="card-icon-tile";function Hl(e,t){const{icon:a,className:n,"aria-label":i}=e,r=s(e,["icon","className","aria-label"]),{layout:l}=o.useContext(Ll);return f.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:et(_l,"compact"!==l&&Fl,n),"data-component":"Card.Icon"},r,{children:f.jsx(a,{})}))}Hl.displayName="Card.Icon";var Wl=tt(Hl);const Gl="card-image";function ql(e,t){const{className:a,alt:n=""}=e,i=s(e,["className","alt"]);return f.jsx("img",Object.assign({ref:t,alt:n,className:et(Gl,a),"data-component":"Card.Image"},i))}ql.displayName="Card.Image";var Kl=tt(ql);const Ul="card-metadata text-body-small";function Yl(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Ul,a),"data-component":"Card.Metadata"},n))}Yl.displayName="Card.Metadata";var Zl=tt(Yl);const Ql="card-content",Xl=Xe("card",{variants:{borderRadius:{medium:"card-radius-medium",large:"card-radius-large"},layout:{default:"",compact:"card-compact"},padding:{none:"card-padding-none",condensed:"card-padding-condensed",normal:"card-padding-normal"}},compoundVariants:[{layout:"compact",padding:"normal",class:"card-compact-padding-normal"}]}),Jl=Xe("card-header",{variants:{edgeToEdge:{true:"card-header-edge-to-edge",false:""},layout:{default:"",compact:"card-header-compact"}}}),ec=Xe("card-body",{variants:{layout:{default:"",compact:"card-body-compact"}}});function tc(e,t){var a;const n=e,{as:i="div",className:r,children:l,padding:c="normal",borderRadius:d="large",layout:u="default","aria-label":m,"aria-labelledby":p}=n,h=s(n,["as","className","children","padding","borderRadius","layout","aria-label","aria-labelledby"]),g=Jt(),[v]=va(l,{icon:Wl,image:Kl,heading:Vl,description:Pl,metadata:Zl,action:Dl}),b="section"===i,x=b?g:void 0,y=null!=p?p:b&&!m?x:void 0,w=null!==(a=v.image)&&void 0!==a?a:v.icon,N=Boolean(w||v.heading||v.description||v.metadata||v.action);return 0===o.Children.toArray(l).length?null:f.jsx(Ll.Provider,{value:{titleId:x,layout:u},children:f.jsx(i,Object.assign({ref:t,"aria-label":m,"aria-labelledby":y,className:et(Xl({borderRadius:d,layout:u,padding:c}),r),"data-component":"Card","data-padding":c,"data-border-radius":d,"data-layout":u},h,{children:N?f.jsxs(f.Fragment,{children:[w?f.jsx("div",{className:et(Jl({edgeToEdge:Boolean(v.image),layout:u})),children:w}):null,f.jsxs("div",{className:et(ec({layout:u})),children:[f.jsxs("div",{className:Ql,children:[v.heading,v.description]}),v.metadata]}),v.action]}):l}))})}tc.displayName="Card";var ac=tt(tc);const nc=Object.assign(ac,{Icon:Wl,Image:Kl,Heading:Vl,Description:Pl,Metadata:Zl,Action:Dl}),ic=()=>{},rc=e.createContext({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:ic,previous:ic,next:ic,togglePlaying:ic,slidesId:""}),oc=e.createContext({index:0}),sc="carousel-indicators",lc="carousel-indicator",cc="carousel-indicator-current";function dc(e,t){const{className:a}=e,n=s(e,["className"]),{index:i,count:r,goTo:l,slidesId:c}=o.useContext(rc);return 0===r?null:f.jsx("div",Object.assign({ref:t,className:et(sc,a),"data-component":"Carousel.Indicators"},n,{children:Array.from({length:r},(e,t)=>{const a=t===i;return f.jsx("button",{type:"button","aria-label":`Slide ${t+1}`,"aria-current":a||void 0,"aria-controls":c||void 0,onClick:()=>l(t,"indicator"),className:et(lc,a&&cc),"data-component":"Carousel.Indicator","data-current":a||void 0},t)})}))}dc.displayName="Carousel.Indicators";var uc=tt(dc);function mc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{index:r,count:l,loop:c,next:d,slidesId:u}=o.useContext(rc);return f.jsx(yn,Object.assign({ref:t,icon:yt,"aria-label":"Next slide","aria-controls":u||void 0,variant:"invisible",disabled:!c&&r>=l-1,onClick:e=>{null==n||n(e),e.defaultPrevented||d()},className:a,"data-component":"Carousel.NextButton"},i))}mc.displayName="Carousel.NextButton";var pc=tt(mc);function hc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{isPlaying:r,togglePlaying:l,slidesId:c}=o.useContext(rc);return f.jsx(yn,Object.assign({ref:t,icon:r?zt:Et,"aria-label":r?"Stop automatic slide show":"Start automatic slide show","aria-controls":c||void 0,variant:"invisible",onClick:e=>{null==n||n(e),e.defaultPrevented||l()},className:a,"data-component":"Carousel.PlayButton","data-playing":r||void 0},i))}hc.displayName="Carousel.PlayButton";var gc=tt(hc);function fc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{index:r,loop:l,previous:c,slidesId:d}=o.useContext(rc);return f.jsx(yn,Object.assign({ref:t,icon:xt,"aria-label":"Previous slide","aria-controls":d||void 0,variant:"invisible",disabled:!l&&r<=0,onClick:e=>{null==n||n(e),e.defaultPrevented||c()},className:a,"data-component":"Carousel.PreviousButton"},i))}fc.displayName="Carousel.PreviousButton";var vc=tt(fc);const bc="carousel-controls";function xc(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{autoPlay:r}=o.useContext(rc),l=o.Children.toArray(n).length>0;return f.jsx("div",Object.assign({ref:t,className:et(bc,a),"data-component":"Carousel.Controls"},i,{children:l?n:f.jsxs(f.Fragment,{children:[f.jsx(vc,{}),f.jsx(uc,{}),f.jsx(pc,{}),r?f.jsx(gc,{}):null]})}))}xc.displayName="Carousel.Controls";var yc=tt(xc);const wc="carousel-slide";function Nc(e,t){const{className:a}=e,n=s(e,["className"]),{index:i,count:r}=o.useContext(rc),{index:l}=o.useContext(oc),c=l===i;return f.jsx("div",Object.assign({ref:t,role:"group","aria-roledescription":"slide","aria-label":`${l+1} of ${r}`,inert:!c,className:et(wc,a),"data-component":"Carousel.Slide","data-current":c||void 0},n))}Nc.displayName="Carousel.Slide";var jc=tt(Nc);const kc="carousel",Cc="carousel-viewport",Sc="carousel-track",Oc="motion-safe:[transition:translate_var(--motion-transition-state-change)]",Mc=5e3,Ac=(e,t,a)=>t<=0?0:a?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Tc(e,t){const a=e,{className:n,children:i,index:r,defaultIndex:l=0,onChange:c,loop:d=!1,autoPlay:u=!1,interval:m=Mc}=a,p=s(a,["className","children","index","defaultIndex","onChange","loop","autoPlay","interval"]),h=Jt(),g=void 0!==r,[v,b]=o.useState(l),[x,y]=o.useState(u),[w,N]=o.useState(!1),j=o.useRef(c);Kn(()=>{j.current=c},[c]);const k=[],C=[];let S=null;o.Children.forEach(i,e=>{o.isValidElement(e)?e.type!==jc?e.type!==yc||null!==S?C.push(e):S=e:k.push(e):C.push(e)});const O=k.length,M=Ac(g?r:v,O,d),A=(e,t)=>{var a;const n=Ac(e,O,d);g||b(n),null===(a=j.current)||void 0===a||a.call(j,n,t)};o.useEffect(()=>{if(!x||w||O<2)return;const e=window.setTimeout(()=>{var e;if(!d&&M>=O-1)return void y(!1);const t=Ac(M+1,O,d);g||b(t),null===(e=j.current)||void 0===e||e.call(j,t,"auto")},m);return()=>{window.clearTimeout(e)}},[x,w,O,M,m,d,g]);const T={index:M,count:O,loop:d,autoPlay:u,isPlaying:x,goTo:A,previous:()=>A(M-1,"previous"),next:()=>A(M+1,"next"),togglePlaying:()=>y(e=>!e),slidesId:h},I=p,{onMouseEnter:D,onMouseLeave:L,onFocus:z,onBlur:E}=I,P=s(I,["onMouseEnter","onMouseLeave","onFocus","onBlur"]),$=x&&!w;return f.jsx(rc.Provider,{value:T,children:f.jsxs("section",Object.assign({ref:t,"aria-roledescription":"carousel",className:et(kc,n),onMouseEnter:e=>{null==D||D(e),N(!0)},onMouseLeave:e=>{null==L||L(e),N(!1)},onFocus:e=>{null==z||z(e),N(!0)},onBlur:e=>{null==E||E(e),e.currentTarget.contains(e.relatedTarget)||N(!1)},"data-component":"Carousel","data-count":O,"data-index":M,"data-playing":$||void 0},P,{children:[f.jsx("div",{id:h,className:Cc,"aria-live":$?"off":"polite","aria-atomic":"false","data-component":"Carousel.Viewport",children:f.jsx("div",{className:et(Sc,Oc),style:{"--carousel-index":M},"data-component":"Carousel.Track",children:k.map((e,t)=>{var a;return f.jsx(oc.Provider,{value:{index:t},children:e},null!==(a=e.key)&&void 0!==a?a:t)})})}),null!=S?S:f.jsx(yc,{}),C]}))})}Tc.displayName="Carousel";var Ic=tt(Tc);const Dc=Object.assign(Ic,{Slide:jc,Controls:yc,PreviousButton:vc,NextButton:pc,Indicators:uc,PlayButton:gc}),Lc="chart-legend",zc="chart-legend-item",Ec="chart-swatch";function Pc(e,t){const{series:a,className:n}=e,i=s(e,["series","className"]);return f.jsx("ul",Object.assign({ref:t,className:et(Lc,n),"data-component":"Chart.Legend"},i,{children:a.map(e=>f.jsxs("li",{className:zc,"data-component":"Chart.LegendItem",children:[f.jsx("span",{className:Ec,style:{background:e.color},"aria-hidden":"true"}),e.name]},e.key))}))}Pc.displayName="Chart.Legend";var $c=tt(Pc);const Rc=["var(--base-display-color-blue-5)","var(--base-display-color-orange-5)","var(--base-display-color-purple-5)","var(--base-display-color-green-5)","var(--base-display-color-pink-5)"],Bc="var(--foreground-color-muted)",Vc=(e,t)=>{var a;return null!==(a=null!=t?t:Rc[e])&&void 0!==a?a:Bc};function _c(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fc(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hc(e){let t,a,n;function i(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<0?i=t+1:r=t}while(i<r)}return i}return 2!==e.length?(t=_c,a=(t,a)=>_c(e(t),a),n=(t,a)=>e(t)-a):(t=e===_c||e===Fc?e:Wc,a=e,n=e),{left:i,center:function(e,t,a=0,r=e.length){const o=i(e,t,a,r-1);return o>a&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<=0?i=t+1:r=t}while(i<r)}return i}}}function Wc(){return 0}const Gc=Hc(_c).right;Hc(function(e){return null===e?NaN:+e}).center;class qc extends Map{constructor(e,t=Uc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,a]of e)this.set(t,a)}get(e){return super.get(Kc(this,e))}has(e){return super.has(Kc(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):(e.set(n,a),a)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},a){const n=t(a);e.has(n)&&(a=e.get(n),e.delete(n));return a}(this,e))}}function Kc({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):a}function Uc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Yc=Math.sqrt(50),Zc=Math.sqrt(10),Qc=Math.sqrt(2);function Xc(e,t,a){const n=(t-e)/Math.max(0,a),i=Math.floor(Math.log10(n)),r=n/Math.pow(10,i),o=r>=Yc?10:r>=Zc?5:r>=Qc?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=a&&a<2?Xc(e,t,2*a):[s,l,c]}function Jc(e,t,a){return Xc(e=+e,t=+t,a=+a)[2]}function ed(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const td=Symbol("implicit");function ad(){var e=new qc,t=[],a=[],n=td;function i(i){let r=e.get(i);if(void 0===r){if(n!==td)return n;e.set(i,r=t.push(i)-1)}return a[r%a.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new qc;for(const n of a)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(a=Array.from(e),i):a.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return ad(t,a).unknown(n)},ed.apply(i,arguments),i}function nd(){var e,t,a=ad().unknown(void 0),n=a.domain,i=a.range,r=0,o=1,s=!1,l=0,c=0,d=.5;function u(){var a=n().length,u=o<r,m=u?o:r,p=u?r:o;e=(p-m)/Math.max(1,a-l+2*c),s&&(e=Math.floor(e)),m+=(p-m-e*(a-l))*d,t=e*(1-l),s&&(m=Math.round(m),t=Math.round(t));var h=function(e,t,a){e=+e,t=+t,a=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+a;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/a)),r=new Array(i);++n<i;)r[n]=e+n*a;return r}(a).map(function(t){return m+e*t});return i(u?h.reverse():h)}return delete a.unknown,a.domain=function(e){return arguments.length?(n(e),u()):n()},a.range=function(e){return arguments.length?([r,o]=e,r=+r,o=+o,u()):[r,o]},a.rangeRound=function(e){return[r,o]=e,r=+r,o=+o,s=!0,u()},a.bandwidth=function(){return t},a.step=function(){return e},a.round=function(e){return arguments.length?(s=!!e,u()):s},a.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),u()):l},a.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),u()):l},a.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},a.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},a.copy=function(){return nd(n(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(d)},ed.apply(u(),arguments)}function id(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return id(t())},e}function rd(){return id(nd.apply(null,arguments).paddingInner(1))}function od(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function sd(e,t){var a=Object.create(e.prototype);for(var n in t)a[n]=t[n];return a}function ld(){}var cd=.7,dd=1/cd,ud="\\s*([+-]?\\d+)\\s*",md="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hd=/^#([0-9a-f]{3,8})$/,gd=new RegExp(`^rgb\\(${ud},${ud},${ud}\\)$`),fd=new RegExp(`^rgb\\(${pd},${pd},${pd}\\)$`),vd=new RegExp(`^rgba\\(${ud},${ud},${ud},${md}\\)$`),bd=new RegExp(`^rgba\\(${pd},${pd},${pd},${md}\\)$`),xd=new RegExp(`^hsl\\(${md},${pd},${pd}\\)$`),yd=new RegExp(`^hsla\\(${md},${pd},${pd},${md}\\)$`),wd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Nd(){return this.rgb().formatHex()}function jd(){return this.rgb().formatRgb()}function kd(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=hd.exec(e))?(a=t[1].length,t=parseInt(t[1],16),6===a?Cd(t):3===a?new Md(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===a?Sd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===a?Sd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=gd.exec(e))?new Md(t[1],t[2],t[3],1):(t=fd.exec(e))?new Md(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vd.exec(e))?Sd(t[1],t[2],t[3],t[4]):(t=bd.exec(e))?Sd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xd.exec(e))?zd(t[1],t[2]/100,t[3]/100,1):(t=yd.exec(e))?zd(t[1],t[2]/100,t[3]/100,t[4]):wd.hasOwnProperty(e)?Cd(wd[e]):"transparent"===e?new Md(NaN,NaN,NaN,0):null}function Cd(e){return new Md(e>>16&255,e>>8&255,255&e,1)}function Sd(e,t,a,n){return n<=0&&(e=t=a=NaN),new Md(e,t,a,n)}function Od(e,t,a,n){return 1===arguments.length?((i=e)instanceof ld||(i=kd(i)),i?new Md((i=i.rgb()).r,i.g,i.b,i.opacity):new Md):new Md(e,t,a,null==n?1:n);var i}function Md(e,t,a,n){this.r=+e,this.g=+t,this.b=+a,this.opacity=+n}function Ad(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}`}function Td(){const e=Id(this.opacity);return`${1===e?"rgb(":"rgba("}${Dd(this.r)}, ${Dd(this.g)}, ${Dd(this.b)}${1===e?")":`, ${e})`}`}function Id(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ld(e){return((e=Dd(e))<16?"0":"")+e.toString(16)}function zd(e,t,a,n){return n<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new Pd(e,t,a,n)}function Ed(e){if(e instanceof Pd)return new Pd(e.h,e.s,e.l,e.opacity);if(e instanceof ld||(e=kd(e)),!e)return new Pd;if(e instanceof Pd)return e;var t=(e=e.rgb()).r/255,a=e.g/255,n=e.b/255,i=Math.min(t,a,n),r=Math.max(t,a,n),o=NaN,s=r-i,l=(r+i)/2;return s?(o=t===r?(a-n)/s+6*(a<n):a===r?(n-t)/s+2:(t-a)/s+4,s/=l<.5?r+i:2-r-i,o*=60):s=l>0&&l<1?0:o,new Pd(o,s,l,e.opacity)}function Pd(e,t,a,n){this.h=+e,this.s=+t,this.l=+a,this.opacity=+n}function $d(e){return(e=(e||0)%360)<0?e+360:e}function Rd(e){return Math.max(0,Math.min(1,e||0))}function Bd(e,t,a){return 255*(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)}od(ld,kd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nd,formatHex:Nd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ed(this).formatHsl()},formatRgb:jd,toString:jd}),od(Md,Od,sd(ld,{brighter(e){return e=null==e?dd:Math.pow(dd,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?cd:Math.pow(cd,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Md(Dd(this.r),Dd(this.g),Dd(this.b),Id(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ad,formatHex:Ad,formatHex8:function(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}${Ld(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Td,toString:Td})),od(Pd,function(e,t,a,n){return 1===arguments.length?Ed(e):new Pd(e,t,a,null==n?1:n)},sd(ld,{brighter(e){return e=null==e?dd:Math.pow(dd,e),new Pd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?cd:Math.pow(cd,e),new Pd(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,n=a+(a<.5?a:1-a)*t,i=2*a-n;return new Md(Bd(e>=240?e-240:e+120,i,n),Bd(e,i,n),Bd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Pd($d(this.h),Rd(this.s),Rd(this.l),Id(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Id(this.opacity);return`${1===e?"hsl(":"hsla("}${$d(this.h)}, ${100*Rd(this.s)}%, ${100*Rd(this.l)}%${1===e?")":`, ${e})`}`}}));var Vd=e=>()=>e;function _d(e){return 1===(e=+e)?Fd:function(t,a){return a-t?function(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(n){return Math.pow(e+n*t,a)}}(t,a,e):Vd(isNaN(t)?a:t)}}function Fd(e,t){var a=t-e;return a?function(e,t){return function(a){return e+a*t}}(e,a):Vd(isNaN(e)?t:e)}var Hd=function e(t){var a=_d(t);function n(e,t){var n=a((e=Od(e)).r,(t=Od(t)).r),i=a(e.g,t.g),r=a(e.b,t.b),o=Fd(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=r(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function Wd(e,t){t||(t=[]);var a,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(r){for(a=0;a<n;++a)i[a]=e[a]*(1-r)+t[a]*r;return i}}function Gd(e,t){var a,n=t?t.length:0,i=e?Math.min(n,e.length):0,r=new Array(i),o=new Array(n);for(a=0;a<i;++a)r[a]=Xd(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(e){for(a=0;a<i;++a)o[a]=r[a](e);return o}}function qd(e,t){var a=new Date;return e=+e,t=+t,function(n){return a.setTime(e*(1-n)+t*n),a}}function Kd(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}function Ud(e,t){var a,n={},i={};for(a in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)a in e?n[a]=Xd(e[a],t[a]):i[a]=t[a];return function(e){for(a in n)i[a]=n[a](e);return i}}var Yd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zd=new RegExp(Yd.source,"g");function Qd(e,t){var a,n,i,r=Yd.lastIndex=Zd.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(a=Yd.exec(e))&&(n=Zd.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(a=a[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Kd(a,n)})),r=Zd.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var a,n=0;n<t;++n)s[(a=l[n]).i]=a.x(e);return s.join("")})}function Xd(e,t){var a,n=typeof t;return null==t||"boolean"===n?Vd(t):("number"===n?Kd:"string"===n?(a=kd(t))?(t=a,Hd):Qd:t instanceof kd?Hd:t instanceof Date?qd:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Wd:Array.isArray(t)?Gd:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ud:Kd)(e,t)}function Jd(e,t){return e=+e,t=+t,function(a){return Math.round(e*(1-a)+t*a)}}function eu(e){return+e}var tu=[0,1];function au(e){return e}function nu(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function iu(e,t,a){var n=e[0],i=e[1],r=t[0],o=t[1];return i<n?(n=nu(i,n),r=a(o,r)):(n=nu(n,i),r=a(r,o)),function(e){return r(n(e))}}function ru(e,t,a){var n=Math.min(e.length,t.length)-1,i=new Array(n),r=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=nu(e[o],e[o+1]),r[o]=a(t[o],t[o+1]);return function(t){var a=Gc(e,t,1,n)-1;return r[a](i[a](t))}}function ou(){var e,t,a,n,i,r,o=tu,s=tu,l=Xd,c=au;function d(){var e,t,a,l=Math.min(o.length,s.length);return c!==au&&(e=o[0],t=o[l-1],e>t&&(a=e,e=t,t=a),c=function(a){return Math.max(e,Math.min(t,a))}),n=l>2?ru:iu,i=r=null,u}function u(t){return null==t||isNaN(t=+t)?a:(i||(i=n(o.map(e),s,l)))(e(c(t)))}return u.invert=function(a){return c(t((r||(r=n(s,o.map(e),Kd)))(a)))},u.domain=function(e){return arguments.length?(o=Array.from(e,eu),d()):o.slice()},u.range=function(e){return arguments.length?(s=Array.from(e),d()):s.slice()},u.rangeRound=function(e){return s=Array.from(e),l=Jd,d()},u.clamp=function(e){return arguments.length?(c=!!e||au,d()):c!==au},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(a=e,u):a},function(a,n){return e=a,t=n,d()}}function su(e,t){if(!isFinite(e)||0===e)return null;var a=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,a);return[n.length>1?n[0]+n.slice(2):n,+e.slice(a+1)]}function lu(e){return(e=su(Math.abs(e)))?e[1]:NaN}var cu,du=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uu(e){if(!(t=du.exec(e)))throw new Error("invalid format: "+e);var t;return new mu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function mu(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function pu(e,t){var a=su(e,t);if(!a)return e+"";var n=a[0],i=a[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}uu.prototype=mu.prototype,mu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var hu={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>pu(100*e,t),r:pu,s:function(e,t){var a=su(e,t);if(!a)return cu=void 0,e.toPrecision(t);var n=a[0],i=a[1],r=i-(cu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return r===o?n:r>o?n+new Array(r-o+1).join("0"):r>0?n.slice(0,r)+"."+n.slice(r):"0."+new Array(1-r).join("0")+su(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gu(e){return e}var fu,vu,bu,xu=Array.prototype.map,yu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wu(e){var t,a,n=void 0===e.grouping||void 0===e.thousands?gu:(t=xu.call(e.grouping,Number),a=e.thousands+"",function(e,n){for(var i=e.length,r=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),r.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return r.reverse().join(a)}),i=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?gu:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(xu.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e,t){var a=(e=uu(e)).fill,u=e.align,m=e.sign,p=e.symbol,h=e.zero,g=e.width,f=e.comma,v=e.precision,b=e.trim,x=e.type;"n"===x?(f=!0,x="g"):hu[x]||(void 0===v&&(v=12),b=!0,x="g"),(h||"0"===a&&"="===u)&&(h=!0,a="0",u="=");var y=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===p?r:/[%p]/.test(x)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),N=hu[x],j=/[defgprs%]/.test(x);function k(e){var t,i,r,l=y,p=w;if("c"===x)p=N(e)+p,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:N(Math.abs(e),v),b&&(e=function(e){e:for(var t,a=e.length,n=1,i=-1;n<a;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==m&&(k=!1),l=(k?"("===m?m:c:"-"===m||"("===m?"":m)+l,p=("s"!==x||isNaN(e)||void 0===cu?"":yu[8+cu/3])+p+(k&&"("===m?")":""),j)for(t=-1,i=e.length;++t<i;)if(48>(r=e.charCodeAt(t))||r>57){p=(46===r?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}f&&!h&&(e=n(e,1/0));var C=l.length+e.length+p.length,S=C<g?new Array(g-C+1).join(a):"";switch(f&&h&&(e=n(S+e,S.length?g-p.length:1/0),S=""),u){case"<":e=l+e+p+S;break;case"=":e=l+S+e+p;break;case"^":e=S.slice(0,C=S.length>>1)+l+e+p+S.slice(C);break;default:e=S+l+e+p}return s(e)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:u,formatPrefix:function(e,t){var a=3*Math.max(-8,Math.min(8,Math.floor(lu(t)/3))),n=Math.pow(10,-a),i=u(((e=uu(e)).type="f",e),{suffix:yu[8+a/3]});return function(e){return i(n*e)}}}}function Nu(e,t,a,n){var i,r=function(e,t,a){a=+a;const n=(t=+t)<(e=+e),i=n?Jc(t,e,a):Jc(e,t,a);return(n?-1:1)*(i<0?1/-i:i)}(e,t,a);switch((n=uu(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lu(t)/3)))-lu(Math.abs(e)))}(r,o))||(n.precision=i),bu(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lu(t)-lu(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-lu(Math.abs(e)))}(r))||(n.precision=i-2*("%"===n.type))}return vu(n)}function ju(e){var t=e.domain;return e.ticks=function(e){var a=t();return function(e,t,a){if(!((a=+a)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,r,o]=n?Xc(t,e,a):Xc(e,t,a);if(!(r>=i))return[];const s=r-i+1,l=new Array(s);if(n)if(o<0)for(let e=0;e<s;++e)l[e]=(r-e)/-o;else for(let e=0;e<s;++e)l[e]=(r-e)*o;else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}(a[0],a[a.length-1],null==e?10:e)},e.tickFormat=function(e,a){var n=t();return Nu(n[0],n[n.length-1],null==e?10:e,a)},e.nice=function(a){null==a&&(a=10);var n,i,r=t(),o=0,s=r.length-1,l=r[o],c=r[s],d=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);d-- >0;){if((i=Jc(l,c,a))===n)return r[o]=l,r[s]=c,t(r);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}n=i}return e},e}function ku(){var e=ou()(au,au);return e.copy=function(){return t=e,ku().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},ed.apply(e,arguments),ju(e)}function Cu(e){return function(){return e}}fu=wu({thousands:",",grouping:[3],currency:["$",""]}),vu=fu.format,bu=fu.formatPrefix;const Su=Math.PI,Ou=2*Su,Mu=1e-6,Au=Ou-Mu;function Tu(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=arguments[t]+e[t]}class Iu{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Tu:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Tu;const a=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*a)/a+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,a,n){this._append`Q${+e},${+t},${this._x1=+a},${this._y1=+n}`}bezierCurveTo(e,t,a,n,i,r){this._append`C${+e},${+t},${+a},${+n},${this._x1=+i},${this._y1=+r}`}arcTo(e,t,a,n,i){if(e=+e,t=+t,a=+a,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let r=this._x1,o=this._y1,s=a-e,l=n-t,c=r-e,d=o-t,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(u>Mu)if(Math.abs(d*s-l*c)>Mu&&i){let m=a-r,p=n-o,h=s*s+l*l,g=m*m+p*p,f=Math.sqrt(h),v=Math.sqrt(u),b=i*Math.tan((Su-Math.acos((h+u-g)/(2*f*v)))/2),x=b/v,y=b/f;Math.abs(x-1)>Mu&&this._append`L${e+x*c},${t+x*d}`,this._append`A${i},${i},0,0,${+(d*m>c*p)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,a,n,i,r){if(e=+e,t=+t,r=!!r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let o=a*Math.cos(n),s=a*Math.sin(n),l=e+o,c=t+s,d=1^r,u=r?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Mu||Math.abs(this._y1-c)>Mu)&&this._append`L${l},${c}`,a&&(u<0&&(u=u%Ou+Ou),u>Au?this._append`A${a},${a},0,1,${d},${e-o},${t-s}A${a},${a},0,1,${d},${this._x1=l},${this._y1=c}`:u>Mu&&this._append`A${a},${a},0,${+(u>=Su)},${d},${this._x1=e+a*Math.cos(i)},${this._y1=t+a*Math.sin(i)}`)}rect(e,t,a,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${a=+a}v${+n}h${-a}Z`}toString(){return this._}}function Du(e){let t=3;return e.digits=function(a){if(!arguments.length)return t;if(null==a)t=null;else{const e=Math.floor(a);if(!(e>=0))throw new RangeError(`invalid digits: ${a}`);t=e}return e},()=>new Iu(t)}function Lu(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function zu(e){this._context=e}function Eu(e){return new zu(e)}function Pu(e){return e[0]}function $u(e){return e[1]}function Ru(e,t){var a=Cu(!0),n=null,i=Eu,r=null,o=Du(s);function s(s){var l,c,d,u=(s=Lu(s)).length,m=!1;for(null==n&&(r=i(d=o())),l=0;l<=u;++l)!(l<u&&a(c=s[l],l,s))===m&&((m=!m)?r.lineStart():r.lineEnd()),m&&r.point(+e(c,l,s),+t(c,l,s));if(d)return r=null,d+""||null}return e="function"==typeof e?e:void 0===e?Pu:Cu(e),t="function"==typeof t?t:void 0===t?$u:Cu(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Cu(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Cu(+e),s):t},s.defined=function(e){return arguments.length?(a="function"==typeof e?e:Cu(!!e),s):a},s.curve=function(e){return arguments.length?(i=e,null!=n&&(r=i(n)),s):i},s.context=function(e){return arguments.length?(null==e?n=r=null:r=i(n=e),s):n},s}function Bu(e){return e<0?-1:1}function Vu(e,t,a){var n=e._x1-e._x0,i=t-e._x1,r=(e._y1-e._y0)/(n||i<0&&-0),o=(a-e._y1)/(i||n<0&&-0),s=(r*i+o*n)/(n+i);return(Bu(r)+Bu(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function _u(e,t){var a=e._x1-e._x0;return a?(3*(e._y1-e._y0)/a-t)/2:t}function Fu(e,t,a){var n=e._x0,i=e._y0,r=e._x1,o=e._y1,s=(r-n)/3;e._context.bezierCurveTo(n+s,i+s*t,r-s,o-s*a,r,o)}function Hu(e){this._context=e}function Wu(e){return new Hu(e)}zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Hu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fu(this,this._t0,_u(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var a=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fu(this,_u(this,a=Vu(this,e,t)),a);break;default:Fu(this,this._t0,a=Vu(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=a}}},Object.create(Hu.prototype).point=function(e,t){Hu.prototype.point.call(this,t,e)};const Gu=8,qu=8,Ku=(e,t)=>{const a=e[t];return"number"==typeof a&&Number.isFinite(a)?a:null},Uu=(e,t)=>ku().domain(e).nice().range(t),Yu=(e,t,a,n,i)=>{if(a<=0||n<=0)return"";const r=Math.min(4,a/2,n/2),o=e+a,s=t+n;return`${{top:[`M${e},${s}`,`L${e},${t+r}`,`Q${e},${t} ${e+r},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s}`],bottom:[`M${e},${t}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o-r},${s}`,`Q${o},${s} ${o},${s-r}`,`L${o},${t}`],right:[`M${e},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s-r}`,`Q${o},${s} ${o-r},${s}`,`L${e},${s}`],left:[`M${o},${t}`,`L${e+r},${t}`,`Q${e},${t} ${e},${t+r}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o},${s}`]}[i].join(" ")} Z`},Zu=(e,t,a)=>{var n;return null!==(n=Ru().defined(e=>null!==e.value).x(e=>e.x).y(e=>{var a;return t(null!==(a=e.value)&&void 0!==a?a:0)}).curve(a?Wu:Eu)(e))&&void 0!==n?n:""},Qu=(e,t,a)=>{var n;return null!==(n=function(e,t,a){var n=null,i=Cu(!0),r=null,o=Eu,s=null,l=Du(c);function c(c){var d,u,m,p,h,g=(c=Lu(c)).length,f=!1,v=new Array(g),b=new Array(g);for(null==r&&(s=o(h=l())),d=0;d<=g;++d){if(!(d<g&&i(p=c[d],d,c))===f)if(f=!f)u=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=u;--m)s.point(v[m],b[m]);s.lineEnd(),s.areaEnd()}f&&(v[d]=+e(p,d,c),b[d]=+t(p,d,c),s.point(n?+n(p,d,c):v[d],a?+a(p,d,c):b[d]))}if(h)return s=null,h+""||null}function d(){return Ru().defined(i).curve(o).context(r)}return e="function"==typeof e?e:void 0===e?Pu:Cu(+e),t="function"==typeof t?t:Cu(void 0===t?0:+t),a="function"==typeof a?a:void 0===a?$u:Cu(+a),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Cu(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Cu(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Cu(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Cu(+e),a=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Cu(+e),c):t},c.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:Cu(+e),c):a},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(a)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:Cu(!!e),c):i},c.curve=function(e){return arguments.length?(o=e,null!=r&&(s=o(r)),c):o},c.context=function(e){return arguments.length?(null==e?r=s=null:s=o(r=e),c):r},c}().defined(e=>null!==e.value).x(e=>e.x).y0(e=>t(e.start)).y1(e=>{var a,n;return t((null!==(a=e.start)&&void 0!==a?a:0)+(null!==(n=e.value)&&void 0!==n?n:0))}).curve(a?Wu:Eu)(e))&&void 0!==n?n:""},Xu="chart-tooltip",Ju="chart-tooltip-label",em="chart-tooltip-row",tm="chart-swatch",am="chart-tooltip-name",nm="chart-tooltip-value";function im(e,t){const{reading:a,valueFormat:n,labelFormat:i,className:r}=e,o=s(e,["reading","valueFormat","labelFormat","className"]);return f.jsxs("div",Object.assign({ref:t,className:et(Xu,r),"data-component":"Chart.Tooltip"},o,{children:[f.jsx("div",{className:Ju,children:i(a.label)}),a.values.map(({series:e,value:t})=>f.jsxs("div",{className:em,children:[f.jsx("span",{className:tm,style:{background:e.color},"aria-hidden":"true"}),f.jsx("span",{className:am,children:e.name}),f.jsx("span",{className:nm,children:null===t?"—":n(t)})]},e.key))]}))}im.displayName="Chart.Tooltip";var rm=tt(im);const om="chart",sm="chart-caption",lm="chart-title",cm="chart-description",dm="chart-plot",um="chart-svg",mm="chart-grid",pm="chart-axis",hm="chart-tick",gm="chart-label",fm="chart-crosshair",vm="chart-line",bm="chart-area",xm="chart-marker",ym="chart-empty",wm="sr-only",Nm=240,jm=4,km=e=>e.toLocaleString();function Cm(e,t){var a;const{type:n="line",data:i,xKey:r,series:l,title:c,description:d,stacked:u=!1,horizontal:m=!1,height:p=Nm,valueFormat:h=km,labelFormat:g=e=>e,tickCount:v=jm,showGrid:b=!0,showLegend:x,smooth:y=!1,emptyText:w="No data to show",className:N}=e,j=s(e,["type","data","xKey","series","title","description","stacked","horizontal","height","valueFormat","labelFormat","tickCount","showGrid","showLegend","smooth","emptyText","className"]),k=Jt(),C=Jt(),S=o.useRef(null),O=((e,t)=>{const[a,n]=o.useState(t);return Kn(()=>{const a=e.current;if(!a)return;const i=()=>{const e=a.getBoundingClientRect().width;n(e>0?e:t)};if(i(),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(i);return r.observe(a),()=>{r.disconnect()}},[e,t]),a})(S,480),[M,A]=o.useState(null),T=l.map((e,t)=>{var a;return Object.assign(Object.assign({},e),{name:null!==(a=e.name)&&void 0!==a?a:e.key,color:Vc(t,e.color)})}),I="bar"===n,D=I&&m,L=u&&(I||"area"===n),z=0===i.length||0===T.length,E=i.map(e=>((e,t)=>{var a;return String(null!==(a=e[t])&&void 0!==a?a:"")})(e,r)),P=((e,t,a)=>e.map(e=>{let n=0;return t.map(t=>{const i=Ku(e,t.key);if(null===i)return{value:null,start:0,end:0};const r=a?n:0;return n=a?n+i:n,{value:i,start:r,end:r+i}})}))(i,T,L),$=((e,t)=>{const a=e.flat().filter(e=>null!==e.value).flatMap(e=>[e.start,e.end]),n="line"===t?a:[...a,0];if(0===n.length)return[0,1];const i=Math.min(...n),r=Math.max(...n);return i===r?[Math.min(i,0),0===r?1:r]:[i,r]})(P,n),R=Uu($,[0,1]).ticks(v),B=Math.max(...R.map(e=>h(e).length),1),V=Math.max(...E.map(e=>g(e).length),1),_=7*B+12,F=Math.min(7*V+12,160),H=D?F:_,W=Math.max(O-H-qu,0),G=Math.max(p-Gu-24,0),q=I?((e,t)=>nd().domain(e).range([0,t]).paddingInner(.3).paddingOuter(.15))(E,D?G:W):((e,t)=>rd().domain(e).range([0,t]).padding(.5))(E,W),K=Uu($,D?[0,W]:[G,0]),U=e=>{var t,a;const n=q(E[e]);return(null!=n?n:0)+(I?(null!==(a=null===(t=q.bandwidth)||void 0===t?void 0:t.call(q))&&void 0!==a?a:0)/2:0)},Y=i.map((e,t)=>({index:t,label:E[t],values:T.map(t=>({series:t,value:Ku(e,t.key)}))})),Z=null===M?null:null!==(a=Y[M])&&void 0!==a?a:null,Q=null!=x?x:T.length>1,X=K(0),J=T.map((e,t)=>{var a,r;if(I){const n=null!==(r=null===(a=q.bandwidth)||void 0===a?void 0:a.call(q))&&void 0!==r?r:0,{offset:o,thickness:s}=((e,t,a,n)=>{if(!n){const t=Math.min(e,24);return{offset:(e-t)/2,thickness:t}}const i=(e-2*(t-1))/t,r=Math.max(Math.min(i,24),1);return{offset:(e-(r*t+2*(t-1)))/2+a*(r+2),thickness:r}})(n,T.length,t,!L&&T.length>1);return f.jsx("g",{"data-component":"Chart.Series","data-series":e.key,children:i.map((a,n)=>{var i;const{value:r,start:l,end:c}=P[n][t];if(null===r)return null;const d=K(l),u=K(c),m=(null!==(i=q(E[n]))&&void 0!==i?i:0)+o,p=L&&t>0?2:0,h=D?Yu(Math.min(d,u)+p,m,Math.abs(u-d)-p,s,r<0?"left":"right"):Yu(m,Math.min(d,u),s,Math.abs(u-d)-p,r<0?"bottom":"top");return f.jsx("path",{d:h,fill:e.color,opacity:null===M||M===n?1:.5,"data-component":"Chart.Bar"},E[n])})},e.key)}const o=i.map((e,a)=>({x:U(a),value:P[a][t].value,start:P[a][t].start}));return f.jsxs("g",{"data-component":"Chart.Series","data-series":e.key,children:["area"===n?f.jsx("path",{d:Qu(o,K,y),fill:e.color,className:bm,"data-component":"Chart.Area"}):null,f.jsx("path",{d:Zu("area"===n?o.map(e=>Object.assign(Object.assign({},e),{value:null===e.value?null:e.start+e.value})):o,K,y),stroke:e.color,className:vm,"data-component":"Chart.Line"}),o.map((t,a)=>null===t.value||null!==M&&M!==a?null:f.jsx("circle",{cx:t.x,cy:K("area"===n?t.start+t.value:t.value),r:4,fill:e.color,className:xm,opacity:M===a||i.length<=12?1:0,"data-component":"Chart.Marker"},E[a]))]},e.key)});return f.jsxs("figure",Object.assign({ref:t,className:et(om,N),"data-component":"Chart","data-type":n},j,{children:[c||d?f.jsxs("figcaption",{className:sm,"data-component":"Chart.Caption",children:[c?f.jsx("span",{id:k,className:lm,children:c}):null,d?f.jsx("span",{id:C,className:cm,children:d}):null]}):null,Q&&!z?f.jsx($c,{series:T}):null,f.jsxs("div",{ref:S,className:dm,style:{height:`${p}px`},tabIndex:z?void 0:0,role:z?void 0:"img","aria-labelledby":c?k:void 0,"aria-describedby":d?C:void 0,onPointerMove:z?void 0:e=>{const t=e.currentTarget.getBoundingClientRect(),a=D?e.clientY-t.top-Gu:e.clientX-t.left-H;A((e=>{if(0===i.length)return null;if(I){const t=(D?G:W)/i.length;return Math.min(Math.max(Math.floor(e/t),0),i.length-1)}let t=0;return i.forEach((a,n)=>{Math.abs(U(n)-e)<Math.abs(U(t)-e)&&(t=n)}),t})(a))},onPointerLeave:()=>A(null),onKeyDown:z?void 0:e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0!==t&&0!==i.length&&(e.preventDefault(),A(e=>{const a=(null!=e?e:t>0?-1:i.length)+t;return Math.min(Math.max(a,0),i.length-1)}))},onBlur:()=>A(null),"data-component":"Chart.Plot",children:[z?f.jsx("div",{className:ym,style:{height:`${p}px`},children:w}):f.jsx("svg",{width:O,height:p,className:um,"aria-hidden":"true",focusable:"false","data-component":"Chart.Canvas",children:f.jsxs("g",{transform:`translate(${H}, ${Gu})`,children:[b?R.map(e=>f.jsx("line",{x1:D?K(e):0,x2:D?K(e):W,y1:D?0:K(e),y2:D?G:K(e),className:mm,"data-component":"Chart.GridLine"},e)):null,f.jsx("line",{x1:D?X:0,x2:D?X:W,y1:D?0:X,y2:D?G:X,className:pm,"data-component":"Chart.Baseline"}),Z?f.jsx("line",{x1:D?0:U(Z.index),x2:D?W:U(Z.index),y1:D?U(Z.index):0,y2:D?U(Z.index):G,className:fm,"data-component":"Chart.Crosshair"}):null,J,R.map(e=>f.jsx("text",{x:D?K(e):-6,y:D?G+12:K(e),textAnchor:D?"middle":"end",dominantBaseline:D?"hanging":"middle",className:hm,"data-component":"Chart.Tick",children:h(e)},e)),E.map((e,t)=>f.jsx("text",{x:D?-6:U(t),y:D?U(t):G+12,textAnchor:D?"end":"middle",dominantBaseline:D?"middle":"hanging",className:gm,"data-component":"Chart.Label",children:g(e)},e))]})}),Z?f.jsx(rm,{reading:Z,valueFormat:h,labelFormat:g,style:{left:D?H+W/2:H+U(Z.index)}}):null]}),f.jsxs("table",{className:wm,"aria-labelledby":c?k:void 0,"data-component":"Chart.Table",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",children:r}),T.map(e=>f.jsx("th",{scope:"col",children:e.name},e.key))]})}),f.jsx("tbody",{children:Y.map(e=>f.jsxs("tr",{children:[f.jsx("th",{scope:"row",children:g(e.label)}),e.values.map(({series:e,value:t})=>f.jsx("td",{children:null===t?"—":h(t)},e.key))]},e.label))})]}),f.jsx("span",{role:"status","aria-live":"polite",className:wm,children:Z?`${g(Z.label)}: ${Z.values.map(({series:e,value:t})=>`${e.name} ${null===t?"no value":h(t)}`).join(", ")}`:""})]}))}Cm.displayName="Chart";var Sm=tt(Cm);const Om=Object.assign(Sm,{Legend:$c,Tooltip:rm}),Mm=e.createContext({}),Am='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")',Tm='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")',Im="checkbox",Dm="checkbox-mark",Lm="checkbox-checked",zm="checkbox-disabled";function Em(e,t){const{className:a,style:n,checked:i,indeterminate:r,required:l,validationStatus:c,value:d,onChange:u}=e,m=s(e,["className","style","checked","indeterminate","required","validationStatus","value","onChange"]),p=o.useRef(null),h=N(t,p),g=o.useContext(Mm);Kn(()=>{p.current&&(p.current.indeterminate=null!=r&&r)},[r,i]);return f.jsx("input",Object.assign({ref:h,type:"checkbox",checked:(!r||void 0===i)&&i,required:l,value:d,name:d,"aria-checked":r?"mixed":void 0,"aria-required":!!l||void 0,"aria-invalid":"error"===c||void 0,onChange:e=>{var t;null===(t=g.onChange)||void 0===t||t.call(g,e),null==u||u(e)},className:et(Im,Dm,Lm,zm,a),style:Object.assign(Object.assign({},n),{"--checkbox-mark":r?Tm:Am}),"data-component":"Checkbox"},m))}Em.displayName="Checkbox";var Pm=tt(Em);const $m="checkbox-group-caption";function Rm(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i}=o.useContext(Mm);return f.jsx("span",Object.assign({ref:t,id:i,className:et($m,a),"data-component":"CheckboxGroup.Caption"},n))}Rm.displayName="CheckboxGroup.Caption";var Bm=tt(Rm);const Vm="checkbox-group-label",_m="checkbox-group-label-disabled",Fm="sr-only",Hm="checkbox-group-label-required";function Wm(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=s(e,["className","children","visuallyHidden"]),{disabled:l,required:c}=o.useContext(Mm);return f.jsxs("span",Object.assign({ref:t,title:c?"required field":void 0,className:et(Vm,l&&_m,i&&Fm,a),"data-component":"CheckboxGroup.Label","data-label-disabled":l},r,{children:[n,c?f.jsx("span",{className:Hm,children:"*"}):null]}))}Wm.displayName="CheckboxGroup.Label";var Gm=tt(Wm);const qm={success:ft,error:Ot},Km="checkbox-group-validation-icon",Um=Xe("checkbox-group-validation",{variants:{variant:{success:"checkbox-group-validation-success",error:"checkbox-group-validation-error"}}});function Ym(e,t){const{className:a,children:n,variant:i}=e,r=s(e,["className","children","variant"]),{validationMessageId:l}=o.useContext(Mm),c=qm[i];return f.jsxs("span",Object.assign({ref:t,className:et(Um({variant:i}),a),"data-component":"CheckboxGroup.Validation","data-validation-status":i},r,{children:[f.jsx(c,{className:Km,"aria-hidden":"true"}),f.jsx("span",{id:l,children:n})]}))}Ym.displayName="CheckboxGroup.Validation";var Zm=tt(Ym);const Qm="checkbox-group",Xm="checkbox-group-legend",Jm="checkbox-group-legend-visible",ep="checkbox-group-body",tp="checkbox-group-validation-slot",ap="sr-only";function np(e,t){const a=e,{as:n="fieldset",className:i,children:r,disabled:l,required:c,onChange:d,id:u,"aria-labelledby":m}=a,p=s(a,["as","className","children","disabled","required","onChange","id","aria-labelledby"]),[h,g]=va(r,{label:Gm,caption:Bm,validation:Zm}),v=Jt(u),b=h.caption?`${v}-caption`:void 0,x=h.validation?`${v}-validation`:void 0,[y,w]=o.useState(()=>(e=>{const t=[],a=e=>{o.Children.forEach(e,e=>{if(o.isValidElement(e)){if(e.type===Pm){const{checked:a,defaultChecked:n,value:i}=e.props;return void((a||n)&&i&&t.push(i))}a(e.props.children)}})};return a(e),t})(r)),N=!!o.isValidElement(h.label)&&!h.label.props.visuallyHidden,j={disabled:l,required:c,captionId:b,validationMessageId:x,onChange:e=>{const{value:t,checked:a}=e.currentTarget,n=a?[...y,t]:y.filter(e=>e!==t);w(n),null==d||d(n,e)}};return f.jsx(Mm.Provider,{value:j,children:f.jsxs(n,Object.assign({ref:t,id:v,disabled:l,"aria-labelledby":h.label?void 0:m,"aria-describedby":[x,b].filter(Boolean).join(" ")||void 0,className:et(Qm,i),"data-component":"CheckboxGroup","data-disabled":l,"data-required":c},p,{children:[h.label?f.jsxs("legend",{className:et(Xm,N&&Jm),children:[h.label,c?f.jsx("span",{className:ap,children:", required"}):null,h.caption]}):h.caption,f.jsx("div",{className:ep,children:g}),h.validation?f.jsx("div",{className:tp,children:h.validation}):null]}))})}np.displayName="CheckboxGroup";var ip=tt(np);const rp=Object.assign(ip,{Label:Gm,Caption:Bm,Validation:Zm}),op=e.createContext({}),sp="block";function lp(e,t){const a=e,{as:n="div",className:i,open:r,defaultOpen:l,disabled:c,onChange:d}=a,u=s(a,["as","className","open","defaultOpen","disabled","onChange"]),m=Jt(),p=void 0!==r,[h,g]=o.useState(Boolean(l)),v=p?r:h,b={triggerId:`${m}-trigger`,contentId:`${m}-content`,isOpen:v,disabled:Boolean(c),toggle:()=>{if(c)return;const e=!v;p||g(e),null==d||d(e)}};return f.jsx(op.Provider,{value:b,children:f.jsx(n,Object.assign({ref:t,className:et(sp,i),"data-component":"Collapsible","data-open":v,"data-disabled":Boolean(c)},u))})}lp.displayName="Collapsible";var cp=tt(lp);const dp="collapsible-content",up="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function mp(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]),{contentId:l,isOpen:c}=o.useContext(op);return f.jsx(n,Object.assign({ref:t,id:l,hidden:!c,className:et(dp,c&&up,i),"data-component":"Collapsible.Content","data-open":Boolean(c)},r))}mp.displayName="Collapsible.Content";var pp=tt(mp);const hp="collapsible-trigger",gp="collapsible-trigger-disabled",fp="min-w-0 grow",vp="min-w-0",bp="collapsible-trigger-indicator",xp="rotate-180",yp="-rotate-90",wp="rotate-0";function Np(e,t){const{className:a,children:n,indicator:i="end",onClick:r}=e,l=s(e,["className","children","indicator","onClick"]),{triggerId:c,contentId:d,isOpen:u,disabled:m,toggle:p}=o.useContext(op),h="none"===i?null:f.jsx(bt,{className:et(bp,"start"===i?u?wp:yp:u&&xp),"aria-hidden":"true"});return f.jsxs("button",Object.assign({ref:t,type:"button",id:c,className:et(hp,m&&gp,a),onClick:e=>{null==r||r(e),e.defaultPrevented||null==p||p()},disabled:m,"aria-expanded":Boolean(u),"aria-controls":d,"data-component":"Collapsible.Trigger","data-open":Boolean(u),"data-indicator":i},l,{children:["start"===i?h:null,f.jsx("span",{className:"end"===i?fp:vp,children:n}),"end"===i?h:null]}))}Np.displayName="Collapsible.Trigger";var jp=tt(Np);const kp=Object.assign(cp,{Trigger:jp,Content:pp}),Cp=(e,t)=>{if(e===t)return 1;if(e.startsWith(t))return.9;const a=e.indexOf(t);return a>0?/\s|[-_/]/.test(e[a-1])?.8:.6:((e,t)=>{let a=0,n=0;for(const i of t){const t=e.indexOf(i,a);if(-1===t)return 0;n+=t-a,a=t+1}return Math.max(.5-.01*n,.1)})(e,t)},Sp=(e,t,a=[])=>{const n=t.trim().toLowerCase();return""===n?1:[e,...a].map(e=>Cp(e.trim().toLowerCase(),n)).reduce((e,t)=>Math.max(e,t),0)},Op=e.createContext(null),Mp=e.createContext(null),Ap="command-palette",Tp="sr-only";function Ip(e,t){var a,n;const{search:i,defaultSearch:r="",onSearchChange:l,value:c,defaultValue:d="",onValueChange:u,onSelect:m,filter:p=Sp,shouldFilter:h=!0,loop:g=!1,label:v="Command palette",className:b,children:x}=e,y=s(e,["search","defaultSearch","onSearchChange","value","defaultValue","onValueChange","onSelect","filter","shouldFilter","loop","label","className","children"]),w=Jt(),N=Jt(),j=void 0!==i,[k,C]=o.useState(r),S=j?i:k,O=void 0!==c,[M,A]=o.useState(d),T=O?c:M,[I,D]=o.useState([]),L=o.useCallback(e=>{D(t=>[...t.filter(t=>t.value!==e.value),e])},[]),z=o.useCallback(e=>{D(t=>t.filter(t=>t.value!==e))},[]),E=o.useMemo(()=>{const e={};for(const t of I)e[t.value]=h?p(t.value,S,t.keywords):1;return e},[I,p,S,h]),P=o.useMemo(()=>((e,t)=>e.map((e,t)=>({entry:e,index:t})).filter(({entry:e})=>{var a;return e.forceMount||(null!==(a=t[e.value])&&void 0!==a?a:0)>0}).sort((e,a)=>{var n,i;const r=(null!==(n=t[a.entry.value])&&void 0!==n?n:0)-(null!==(i=t[e.entry.value])&&void 0!==i?i:0);return 0===r?e.index-a.index:r}).map(({entry:e})=>e.value))(I,E),[I,E]),$=o.useMemo(()=>P.filter(e=>{var t;return!(null===(t=I.find(t=>t.value===e))||void 0===t?void 0:t.disabled)}),[I,P]),R=$.includes(T)?T:null!==(a=$[0])&&void 0!==a?a:"",B=null===(n=I.find(e=>e.value===R))||void 0===n?void 0:n.id,V=o.useCallback(e=>{O||A(e),null==u||u(e)},[O,u]),_=o.useRef(R);o.useEffect(()=>{_.current!==R&&(_.current=R,null==u||u(R))},[u,R]);const F=o.useCallback(e=>{j||C(e),null==l||l(e)},[j,l]),H=o.useCallback(e=>{null==m||m(e)},[m]),W=o.useMemo(()=>({search:S,setSearch:F,value:R,activeId:B,setValue:V,order:P,entries:I,scores:E,register:L,unregister:z,onSelect:H,listId:w,labelId:N,shouldFilter:h}),[B,I,H,N,w,P,L,E,S,F,V,h,z,R]);return f.jsx(Op.Provider,{value:W,children:f.jsxs("div",Object.assign({ref:t,className:et(Ap,b),onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey))return"ArrowDown"===e.key||"ArrowUp"===e.key?(e.preventDefault(),void(e=>{if(0===$.length)return;const t=$.indexOf(R)+e,a=g?(t+$.length)%$.length:Math.min(Math.max(t,0),$.length-1);V($[a])})("ArrowDown"===e.key?1:-1)):void("Enter"===e.key&&""!==R&&(e.preventDefault(),H(R)))},"data-component":"CommandPalette"},y,{children:[f.jsx("span",{id:N,className:Tp,children:v}),x]}))})}Ip.displayName="CommandPalette";var Dp=tt(Ip);let Lp=0,zp="",Ep="";const Pp=t=>{e.useEffect(()=>{if(!t){if(Lp++,1===Lp){const e=window.innerWidth-document.body.clientWidth;zp=document.body.style.overflow,Ep=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-scroll-locked","")}return()=>{Lp--,0===Lp&&(document.body.style.overflow=zp,document.body.style.paddingRight=Ep,document.body.removeAttribute("data-scroll-locked"))}}},[t])},$p="command-palette-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",Rp="command-palette-panel motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-short";function Bp(e,t){var a;const{open:n,onOpenChange:i,returnFocusRef:r,overlayClassName:l,className:c,children:d}=e,u=s(e,["open","onOpenChange","returnFocusRef","overlayClassName","className","children"]),m=o.useRef(null);return qn({containerRef:m,returnFocusRef:r,disabled:!n}),Zn(e=>{n&&(e.preventDefault(),i(!1))}),Pp(!n),n?f.jsx(oi,{children:f.jsx("div",{className:et($p,l),onMouseDown:e=>{e.target===e.currentTarget&&i(!1)},"data-component":"CommandPalette.Backdrop",children:f.jsx("div",{ref:m,role:"dialog","aria-modal":"true","aria-label":null!==(a=u.label)&&void 0!==a?a:"Command palette",className:Rp,"data-component":"CommandPalette.Dialog",children:f.jsx(Dp,Object.assign({ref:t,className:c},u,{children:d}))})})}):null}Bp.displayName="CommandPalette.Dialog";var Vp=tt(Bp);const _p="command-palette-empty";function Fp(e,t){const{className:a,children:n="No results found"}=e,i=s(e,["className","children"]),r=o.useContext(Op);return!r||0===r.entries.length||r.order.length>0?null:f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(_p,a),"data-component":"CommandPalette.Empty"},i,{children:n}))}Fp.displayName="CommandPalette.Empty";var Hp=tt(Fp);const Wp="command-palette-group",Gp="command-palette-group-heading",qp="hidden";function Kp(e,t){var a;const{heading:n,forceMount:i=!1,className:r,children:l}=e,c=s(e,["heading","forceMount","className","children"]),d=Jt(),u=Jt(),m=o.useContext(Op),p=o.useMemo(()=>({groupId:d}),[d]),h=(null!==(a=null==m?void 0:m.entries)&&void 0!==a?a:[]).filter(e=>e.groupId===d),g=h.map(e=>{var t;return null!==(t=null==m?void 0:m.order.indexOf(e.value))&&void 0!==t?t:-1}).filter(e=>-1!==e),v=i||0===h.length||g.length>0;return f.jsx(Mp.Provider,{value:p,children:f.jsxs("div",Object.assign({ref:t,role:"group","aria-labelledby":n?u:void 0,className:et(Wp,!v&&qp,r),style:{order:g.length>0?Math.min(...g):void 0},"data-component":"CommandPalette.Group"},c,{children:[n?f.jsx("div",{id:u,className:Gp,"data-component":"CommandPalette.GroupHeading",children:n}):null,l]}))})}Kp.displayName="CommandPalette.Group";var Up=tt(Kp);const Yp="command-palette-input";function Zp(e,t){const{className:a,placeholder:n="Type a command or search"}=e,i=s(e,["className","placeholder"]),r=o.useContext(Op);return r?f.jsx(Nr,Object.assign({ref:t,type:"text",size:"large",block:!0,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":r.listId,"aria-labelledby":r.labelId,"aria-activedescendant":r.activeId,autoComplete:"off",leadingVisual:Rt,placeholder:n,value:r.search,onChange:e=>r.setSearch(e.target.value),className:et(Yp,a),"data-component":"CommandPalette.Input"},i)):null}Zp.displayName="CommandPalette.Input";var Qp=tt(Zp);const Xp="command-palette-item",Jp="command-palette-item-active",eh="command-palette-item-unavailable",th="hidden";function ah(e,t){var a;const{value:n,keywords:i,disabled:r=!1,forceMount:l=!1,onSelect:c,className:d,children:u,onClick:m,onPointerMove:p}=e,h=s(e,["value","keywords","disabled","forceMount","onSelect","className","children","onClick","onPointerMove"]),g=Jt(),v=o.useContext(Op),b=o.useContext(Mp),x=o.useRef(null),y=N(t,x),[w,j]=o.useState(null!=n?n:"");Kn(()=>{var e,t;j(null!=n?n:(null!==(t=null===(e=x.current)||void 0===e?void 0:e.textContent)&&void 0!==t?t:"").trim())},[n,u]);const k=(null!=i?i:[]).join("\0"),C=null==v?void 0:v.register,S=null==v?void 0:v.unregister,O=null==b?void 0:b.groupId;o.useEffect(()=>{if(C&&S&&""!==w)return C({value:w,id:g,keywords:""===k?[]:k.split("\0"),groupId:O,disabled:r,forceMount:l}),()=>{S(w)}},[r,l,O,g,k,C,S,w]);const M=null!==(a=null==v?void 0:v.order.indexOf(w))&&void 0!==a?a:-1,A=(null==v?void 0:v.value)===w&&""!==w,T=!(null!==v&&""!==w&&void 0!==v.scores[w])||-1!==M;o.useEffect(()=>{var e,t;A&&(null===(t=null===(e=x.current)||void 0===e?void 0:e.scrollIntoView)||void 0===t||t.call(e,{block:"nearest"}))},[A]);return f.jsx("div",Object.assign({ref:y,id:g,role:"option","aria-selected":A,"aria-disabled":r||void 0,className:et(Xp,A&&Jp,r&&eh,!T&&th,d),style:{order:-1===M?void 0:M},onClick:e=>{null==m||m(e),r||e.defaultPrevented||(null==c||c(w),null==v||v.onSelect(w))},onPointerMove:e=>{null==p||p(e),r||A||null==v||v.setValue(w)},"data-component":"CommandPalette.Item","data-value":w||void 0,"data-active":A||void 0,"data-disabled":r||void 0},h,{children:u}))}ah.displayName="CommandPalette.Item";var nh=tt(ah);const ih="command-palette-list",rh=400;function oh(e,t){const{maxHeight:a=rh,className:n,style:i,children:r}=e,l=s(e,["maxHeight","className","style","children"]),c=o.useContext(Op);return c?f.jsx("div",Object.assign({ref:t,id:c.listId,role:"listbox","aria-labelledby":c.labelId,className:et(ih,n),style:Object.assign(Object.assign({},i),{maxHeight:`${a}px`}),"data-component":"CommandPalette.List"},l,{children:r})):null}oh.displayName="CommandPalette.List";var sh=tt(oh);const lh="command-palette-loading";function ch(e,t){const{label:a="Loading",className:n,children:i}=e,r=s(e,["label","className","children"]);return f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(lh,n),"data-component":"CommandPalette.Loading"},r,{children:null!=i?i:f.jsx(en,{size:"small",srText:a})}))}ch.displayName="CommandPalette.Loading";var dh=tt(ch);const uh="command-palette-separator";function mh(e,t){const{alwaysRender:a=!1,className:n}=e,i=s(e,["alwaysRender","className"]),r=o.useContext(Op);return a||null===r||""===r.search.trim()?f.jsx("div",Object.assign({ref:t,role:"separator",className:et(uh,n),"data-component":"CommandPalette.Separator"},i)):null}mh.displayName="CommandPalette.Separator";var ph=tt(mh);const hh=Object.assign(Dp,{Dialog:Vp,Input:Qp,List:sh,Group:Up,Item:nh,Separator:ph,Empty:Hp,Loading:dh}),gh=t=>{const[a,n]=e.useState(!1);return e.useEffect(()=>{if(null===t.current)return;const e=new ResizeObserver(e=>{for(const t of e)if(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth){n(!0);break}});return e.observe(t.current),()=>{e.disconnect()}},[t]),a},fh="scrollable-region";function vh(e,t){const a=e,{as:n="div",className:i,"aria-label":r,"aria-labelledby":l}=a,c=s(a,["as","className","aria-label","aria-labelledby"]),d=o.useRef(null),u=N(t,d),m=gh(d)?{role:"region",tabIndex:0,"aria-label":r,"aria-labelledby":l}:{};return f.jsx(n,Object.assign({ref:u,className:et(fh,i),"data-component":"ScrollableRegion"},m,c))}vh.displayName="ScrollableRegion";var bh=tt(vh);const xh="dialog-body";function yh(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(xh,i),"data-component":"Dialog.Body"},r))}yh.displayName="Dialog.Body";var wh=tt(yh);const Nh=e.createContext(void 0);function jh({buttons:e}){var t;const a=o.useContext(Nh),n=e.findIndex(e=>e.autoFocus),i=N(null==a?void 0:a.autoFocusRef,null===(t=e[n])||void 0===t?void 0:t.ref);return f.jsx(f.Fragment,{children:e.map((e,t)=>{const{content:a,buttonType:r="default",autoFocus:o,ref:l}=e,c=s(e,["content","buttonType","autoFocus","ref"]);return f.jsx(vn,Object.assign({ref:o&&t===n?i:l,variant:"normal"===r?"default":r,"data-component":"Dialog.FooterButton"},c,{children:a}),t)})})}function kh(e,t){const{onClose:a}=e,n=s(e,["onClose"]);return f.jsx(yn,Object.assign({ref:t,icon:Ct,"aria-label":"Close",variant:"invisible",onClick:a,"data-component":"Dialog.CloseButton"},n))}jh.displayName="Dialog.Buttons",kh.displayName="Dialog.CloseButton";var Ch=tt(kh);const Sh="dialog-footer",Oh="dialog-footer-scroll";function Mh(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Sh,Oh,i),"data-component":"Dialog.Footer"},r))}Mh.displayName="Dialog.Footer";var Ah=tt(Mh);const Th="dialog-header";function Ih(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Th,i),"data-component":"Dialog.Header"},r))}Ih.displayName="Dialog.Header";var Dh=tt(Ih);const Lh="dialog-subtitle";function zh(e,t){const a=e,{as:n="h2",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Lh,i),"data-component":"Dialog.Subtitle"},r))}zh.displayName="Dialog.Subtitle";var Eh=tt(zh);const Ph="dialog-title";function $h(e,t){const a=e,{as:n="h1",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Ph,i),"data-component":"Dialog.Title"},r))}$h.displayName="Dialog.Title";var Rh=tt($h);const Bh={backdrop:"dialog-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropPosition:{center:"dialog-backdrop-center",left:"dialog-backdrop-left",right:"dialog-backdrop-right"},backdropNarrowPosition:{center:"dialog-backdrop-narrow-center",bottom:"dialog-backdrop-narrow-bottom",fullscreen:"dialog-backdrop-narrow-fullscreen"},backdropAlign:{top:"dialog-backdrop-align-top",center:"dialog-backdrop-align-center",bottom:"dialog-backdrop-align-bottom"},backdropNarrowAlign:{top:"dialog-backdrop-narrow-align-top",center:"dialog-backdrop-narrow-align-center",bottom:"dialog-backdrop-narrow-align-bottom"},root:"dialog motion-safe:animate-in motion-safe:duration-short",width:{small:"dialog-width-small",medium:"dialog-width-medium",large:"dialog-width-large",xlarge:"dialog-width-xlarge"},customWidth:"dialog-width-custom",height:{small:"dialog-height-small",large:"dialog-height-large",auto:"dialog-height-auto"},position:{center:"motion-safe:fade-in motion-safe:zoom-in-50",left:"dialog-left motion-safe:slide-in-from-left",right:"dialog-right motion-safe:slide-in-from-right"},narrowPosition:{center:"",bottom:"dialog-narrow-bottom max-medium:motion-safe:zoom-in-100 max-medium:motion-safe:slide-in-from-bottom",fullscreen:"dialog-narrow-fullscreen"},align:{top:"dialog-align-top",center:"",bottom:"dialog-align-bottom"},headerInner:"dialog-header-inner",headerContent:"dialog-header-content",overflowWrapper:"dialog-overflow-wrapper",overflowWrapperBordered:"dialog-overflow-wrapper-bordered"},Vh={narrow:"center",regular:"center"};let _h=0,Fh="",Hh="";const Wh=e=>"string"==typeof e&&e in Bh.width,Gh=e=>"number"==typeof e?`${e}px`:e,qh=({title:e,subtitle:t,dialogLabelId:a,dialogDescriptionId:n,onClose:i})=>f.jsx(Dh,{children:f.jsxs("div",{className:Bh.headerInner,children:[f.jsxs("div",{className:Bh.headerContent,children:[f.jsx(Rh,{id:a,children:e}),t?f.jsx(Eh,{id:n,children:t}):null]}),f.jsx(Ch,{onClose:()=>i("close-button")})]})}),Kh=({children:e})=>f.jsx(wh,{children:e}),Uh=e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(e.defaultPrevented||0===t)return;const a=Array.from(e.currentTarget.querySelectorAll("[data-component='Dialog.FooterButton']:not([disabled])")),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},Yh=({footerButtons:e})=>e?f.jsx(Ah,{onKeyDown:Uh,children:f.jsx(jh,{buttons:e})}):null;function Zh(e,t){var a,n,i,r;const{title:l="Dialog",subtitle:c="",renderHeader:d,renderBody:u,renderFooter:m,footerButtons:p,onClose:h,role:g="dialog",width:v="xlarge",height:b="auto",position:x=Vh,align:y,returnFocusRef:w,initialFocusRef:j,className:k,style:C,children:S}=e,O=s(e,["title","subtitle","renderHeader","renderBody","renderFooter","footerButtons","onClose","role","width","height","position","align","returnFocusRef","initialFocusRef","className","style","children"]),M=Jt(),A=Jt(),T=o.useRef(null),I=N(t,T),D=o.useRef(null),L=o.useRef(null),z=o.useRef(null),[E,P]=o.useState(!1),[$,R]=o.useState("wrap"),B=gh(L);qn({containerRef:T,initialFocusRef:null!=j?j:z,returnFocusRef:w}),Zn(e=>{h("escape"),e.preventDefault()}),o.useEffect(()=>{if(_h++,1===_h){const e=window.innerWidth-document.body.clientWidth;Fh=document.body.style.overflow,Hh=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-dialog-scroll-disabled","")}return()=>{_h--,0===_h&&(document.body.style.overflow=Fh,document.body.style.paddingRight=Hh,document.body.removeAttribute("data-dialog-scroll-disabled"))}},[]);const[V,_]=va(S,{header:Dh,body:wh,footer:Ah}),F=Object.assign(Object.assign({},e),{title:l,subtitle:c,role:g,footerButtons:p,dialogLabelId:M,dialogDescriptionId:A}),H=null!==(a=V.header)&&void 0!==a?a:(null!=d?d:qh)(F),W=null!==(n=V.body)&&void 0!==n?n:(null!=u?u:Kh)(Object.assign(Object.assign({},F),{children:_})),G=null!==(i=V.footer)&&void 0!==i?i:(null!=m?m:Yh)(F),q=Boolean(G),K=o.useCallback(()=>{const e=T.current,t=L.current;if(!q||!e||!t)return;e.setAttribute("data-footer-button-layout","wrap");const a=t.clientHeight>=48?"wrap":"scroll";e.setAttribute("data-footer-button-layout",a),R(a)},[q]);o.useEffect(()=>{const e=D.current;if(!e)return;const t=new ResizeObserver(K);return t.observe(e),()=>{t.disconnect()}},[K]);const U="string"==typeof x?{regular:x}:x,Y=null!==(r=U.regular)&&void 0!==r?r:"center",Z=U.narrow,Q="center"===Y?y:void 0,X=Qn("position",U),J=y?{"data-align":y}:void 0;return f.jsx(Nh.Provider,{value:{autoFocusRef:z},children:f.jsx(oi,{children:f.jsx("div",Object.assign({ref:D,className:et(Bh.backdrop,Bh.backdropPosition[Y],Q&&Bh.backdropAlign[Q],Z&&Bh.backdropNarrowPosition[Z],"center"===Z&&Q&&Bh.backdropNarrowAlign[Q]),onClick:e=>{e.target===e.currentTarget&&E&&h("escape")},onMouseDown:e=>{P(e.target===e.currentTarget)},"data-component":"Dialog.Backdrop"},X,J,{children:f.jsxs("div",Object.assign({ref:I,role:g,"aria-labelledby":M,"aria-describedby":A,"aria-modal":!0,className:et(Bh.root,Wh(v)?Bh.width[v]:Bh.customWidth,Bh.height[b],Bh.position[Y],Q&&Bh.align[Q],Z&&Bh.narrowPosition[Z],k),style:Object.assign(Object.assign({},C),Wh(v)?{}:{"--dialog-width":Gh(v)}),"data-component":"Dialog","data-width":Wh(v)?v:void 0,"data-height":b,"data-has-footer":q?"":void 0,"data-footer-button-layout":q?$:void 0},X,J,O,{children:[H,f.jsx(bh,{ref:L,"aria-labelledby":M,className:et(Bh.overflowWrapper,q&&B&&Bh.overflowWrapperBordered),children:W}),G]}))}))})})}Zh.displayName="Dialog";var Qh=tt(Zh);function Xh(e,t){const{onClose:a,title:n,cancelButtonContent:i="Cancel",confirmButtonContent:r="OK",confirmButtonType:o="normal",cancelButtonLoading:s=!1,confirmButtonLoading:l=!1,overrideButtonFocus:c,width:d="medium",height:u,className:m,children:p}=e,h=null!=c?c:"danger"===o?"cancel":"confirm",g=[{content:i,onClick:()=>a("cancel"),autoFocus:"cancel"===h,loading:s},{content:r,buttonType:o,onClick:()=>a("confirm"),autoFocus:"confirm"===h,loading:l}];return f.jsx(Qh,{ref:t,title:n,onClose:a,footerButtons:g,role:"alertdialog",width:d,height:u,className:m,"data-component":"ConfirmationDialog",children:p})}Xh.displayName="ConfirmationDialog";var Jh=tt(Xh);const eg=e=>{var{content:t}=e,a=s(e,["content"]);return new Promise(e=>{const i=document.createElement("div");document.body.append(i);const r=n.createRoot(i);r.render(f.jsx(Jh,Object.assign({},a,{onClose:t=>{queueMicrotask(()=>{r.unmount(),i.remove()}),e("confirm"===t)},children:t})))})},tg="data-table-wrapper",ag=Xe("data-table",{variants:{cellPadding:{condensed:"data-table-cell-padding-condensed",normal:"data-table-cell-padding-normal",spacious:"data-table-cell-padding-spacious"}}});function ng(e,t){const{className:a,style:n,cellPadding:i="normal",gridTemplateColumns:r,"aria-labelledby":o}=e,l=s(e,["className","style","cellPadding","gridTemplateColumns","aria-labelledby"]),c=o?{"aria-labelledby":o}:{"aria-label":"Table"};return f.jsx(bh,Object.assign({},c,{className:tg,children:f.jsx("table",Object.assign({ref:t,role:"table","aria-labelledby":o,className:et(ag({cellPadding:i}),a),style:Object.assign(Object.assign({},n),{"--table-grid-template-columns":r}),"data-component":"Table","data-cell-padding":i},l))}))}ng.displayName="Table";var ig=tt(ng);const rg="data-table-actions";function og(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(rg,a),"data-component":"Table.Actions"},n))}og.displayName="Table.Actions";var sg=tt(og);const lg="data-table-subgrid",cg=e=>(e=>e.map(e=>{var t;const a=null!==(t=e.width)&&void 0!==t?t:"grow";let n="auto",i="1fr";return"auto"===a&&(i="auto"),"grow"!==a||e.maxWidth||(n="max-content"),"growCollapse"===a&&(n="0"),e.minWidth&&(n="number"==typeof e.minWidth?`${e.minWidth}px`:e.minWidth),e.maxWidth&&(i="number"==typeof e.maxWidth?`${e.maxWidth}px`:e.maxWidth),"number"!=typeof a&&["grow","growCollapse","auto"].includes(a)?n===i?n:`minmax(${n}, ${i})`:"number"==typeof a?`${a}px`:a}))(e).join(" ");function dg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("tbody",Object.assign({ref:t,role:"rowgroup",className:et(lg,a),"data-component":"Table.Body"},n))}dg.displayName="Table.Body";var ug=tt(dg);const mg="data-table-cell",pg="data-table-cell-end",hg="data-table-cell-row-header";function gg(e,t){const{className:a,align:n,scope:i}=e,r=s(e,["className","align","scope"]),o=i?"th":"td";return f.jsx(o,Object.assign({ref:t,scope:i,role:i?"rowheader":"cell",className:et(mg,"end"===n&&pg,i&&hg,a),"data-component":"Table.Cell","data-cell-align":n},r))}gg.displayName="Table.Cell";var fg=tt(gg);const vg="data-table-cell-placeholder";function bg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(dr,Object.assign({ref:t,className:et(vg,a),"data-component":"Table.CellPlaceholder"},n))}bg.displayName="Table.CellPlaceholder";var xg=tt(bg);const yg="data-table-container",wg="data-table-container-spacing";function Ng(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(yg,wg,i),"data-component":"Table.Container"},r))}Ng.displayName="Table.Container";var jg=tt(Ng);const kg="data-table-divider";function Cg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(kg,a),"data-component":"Table.Divider"},n))}Cg.displayName="Table.Divider";var Sg=tt(Cg);function Og(e,t){const{title:a="Error",children:n,onRetry:i,onDismiss:r}=e;return f.jsx(Jh,{ref:t,title:a,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{"confirm"!==e?null==r||r():null==i||i()},children:n})}Og.displayName="Table.ErrorDialog";var Mg=tt(Og);function Ag(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("thead",Object.assign({ref:t,role:"rowgroup",className:et(lg,a),"data-component":"Table.Head"},n))}Ag.displayName="Table.Head";var Tg=tt(Ag);const Ig="data-table-header",Dg="data-table-header-end",Lg="data-table-header-sorted";function zg(e,t){const{className:a,align:n}=e,i=s(e,["className","align"]);return f.jsx("th",Object.assign({ref:t,role:"columnheader",scope:"col",className:et(Ig,Lg,"end"===n&&Dg,a),"data-component":"Table.Header","data-cell-align":n},i))}zg.displayName="Table.Header";var Eg=tt(zg);const Pg=(e,t,a,n,i)=>{const r={type:"previous",num:t-1,disabled:1===t},o={type:"next",num:t+1,disabled:t===e};if(!a)return[r,o];if(e<=0)return[r,Object.assign(Object.assign({},o),{disabled:!0})];const s=[],l=(e,a,n=!1)=>{for(let i=e;i<=a;i++)s.push({type:"number",num:i,selected:i===t,precedesBreak:i===a&&n})},c=e=>{s.push({type:"break",num:e+1})},d=i+n;if(e<=d+d+3)return l(1,e),[r,...s,o];let u=0,m=0;t-d-1<=1?m=t-d-2:u=t-d-1;let p=0,h=0;e-t-d<=1?h=e-t-d-1:p=e-t-d;const g=u>0,f=p>0;return l(1,n,g),g&&c(n),l(n+u+h+1,e-m-p-n,f),f&&c(e-m-p-n),l(e-n+1,e),[r,...s,o]},$g=(e,t,a)=>{if("break"===e.type)return{key:`page-${e.num}-break`,content:"…",presentational:!0,props:{}};if("number"===e.type)return{key:`page-${e.num}`,content:String(e.num),props:{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,"aria-current":e.selected?"page":void 0,onClick:a}};const n="previous"===e.type?"prev":"next",i="previous"===e.type?"Previous":"Next",r=`page-${n}`;return e.disabled?{key:r,content:i,props:{rel:n,"aria-hidden":!0,"aria-disabled":!0}}:{key:r,content:i,props:{rel:n,href:t(e.num),"aria-label":`${i} Page`,onClick:a}}},Rg=["narrow","regular","wide"],Bg=25,Vg={narrow:!1},_g={root:"data-table-pagination",range:"data-table-pagination-range",steps:"data-table-pagination-steps",step:"data-table-pagination-step",button:"data-table-pagination-button",truncation:"data-table-pagination-truncation",icon:"data-table-pagination-icon",hiddenRange:{narrow:"data-table-pagination-hidden-range-narrow",regular:"data-table-pagination-hidden-range-regular",wide:"data-table-pagination-hidden-range-wide"},hidden:"sr-only"},Fg=Xe([_g.button,"data-table-pagination-jump"],{variants:{enabled:{true:"data-table-pagination-jump-enabled",false:""}}}),Hg=Xe([_g.button,"data-table-pagination-page"],{variants:{active:{true:"data-table-pagination-page-active",false:""}}}),Wg=({children:e})=>f.jsx("li",{className:_g.step,"data-component":"Table.Pagination.Step",children:e});function Gg(e,t){const{className:a,totalCount:n,pageSize:i=Bg,defaultPageIndex:r,onChange:l,showPages:c=Vg}=e,d=s(e,["className","totalCount","pageSize","defaultPageIndex","onChange","showPages"]),{pageIndex:u,pageCount:m,pageStart:p,pageEnd:h,hasPreviousPage:g,hasNextPage:v,selectPage:b}=(({defaultPageIndex:e,onChange:t,pageSize:a,totalCount:n})=>{const i=Math.ceil(n/a),r=e=>void 0!==e&&e>=0&&e<i,[s,l]=o.useState(()=>r(e)?e:0),[c,d]=o.useState(s);return r(e)&&s!==e&&(l(e),d(e),null==t||t({pageIndex:e})),{pageIndex:c,pageCount:i,pageStart:c*a,pageEnd:Math.min((c+1)*a,n),hasPreviousPage:c>0,hasNextPage:c+1<i,selectPage:e=>{c!==e&&(d(e),null==t||t({pageIndex:e}))}}})({defaultPageIndex:r,onChange:l,pageSize:i,totalCount:n}),x=o.useMemo(()=>Pg(m,u+1,Boolean(c),1,2),[m,u,c]),y=(e=>"object"==typeof e?Rg.filter(t=>!1===e[t]):e?[]:[...Rg])(c),w=p+1;return f.jsxs("nav",Object.assign({ref:t,className:et(_g.root,a),"data-component":"Table.Pagination"},d,{children:[f.jsxs("span",{role:"status","aria-live":"polite",className:_g.hidden,children:["Showing ",w," through ",h," of ",n]}),f.jsxs("p",{className:_g.range,"data-component":"Table.Pagination.Range",children:[w,f.jsx("span",{className:_g.hidden,children:" through "}),f.jsx("span",{"aria-hidden":"true",children:"‒"}),h," of ",n]}),f.jsxs("ol",{className:et(_g.steps,y.map(e=>_g.hiddenRange[e])),"data-hidden-viewport-ranges":y.join(" ")||void 0,children:[f.jsx(Wg,{children:f.jsxs("button",{type:"button",className:et(Fg({enabled:g})),"data-has-page":g||void 0,"aria-disabled":!g||void 0,onClick:()=>{g&&b(u-1)},"data-component":"Table.Pagination.PreviousPageButton",children:[g?f.jsx(xt,{className:_g.icon}):null,f.jsx("span",{children:"Previous"}),f.jsx("span",{className:_g.hidden,children:" page"})]})}),x.map((e,t)=>"break"===e.type?f.jsx("li",{"aria-hidden":"true",className:_g.truncation,"data-component":"Table.Pagination.TruncationStep",children:"…"},`break-${t}`):"number"===e.type?f.jsx(Wg,{children:f.jsxs("button",{type:"button",className:et(Hg({active:e.selected})),"data-active":e.selected||void 0,"aria-current":e.selected||void 0,onClick:()=>b(e.num-1),"data-component":"Table.Pagination.Page",children:[f.jsx("span",{className:_g.hidden,children:"Page "}),e.num,e.precedesBreak?f.jsx("span",{className:_g.hidden,children:"…"}):null]})},`page-${e.num}`):null),f.jsx(Wg,{children:f.jsxs("button",{type:"button",className:et(Fg({enabled:v})),"data-has-page":v||void 0,"aria-disabled":!v||void 0,onClick:()=>{v&&b(u+1)},"data-component":"Table.Pagination.NextPageButton",children:[f.jsx("span",{children:"Next"}),f.jsx("span",{className:_g.hidden,children:" page"}),v?f.jsx(yt,{className:_g.icon}):null]})})]})]}))}Gg.displayName="Table.Pagination";var qg=tt(Gg);function Kg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("tr",Object.assign({ref:t,role:"row",className:et(lg,a),"data-component":"Table.Row"},n))}Kg.displayName="Table.Row";var Ug=tt(Kg);const Yg="skeleton-box",Zg="motion-safe:shimmer";function Qg(e,t){const a=e,{as:n="div",className:i,width:r,height:o,style:l}=a,c=s(a,["as","className","width","height","style"]);return f.jsx(n,Object.assign({ref:t,className:et(Yg,Zg,i),style:Object.assign(Object.assign({},l),{"--skeleton-box-width":r,"--skeleton-box-height":o}),"data-component":"SkeletonBox"},c))}Qg.displayName="SkeletonBox";var Xg=tt(Qg);const Jg="skeleton-text-wrapper",ef=Xe("skeleton-text",{variants:{size:{display:"skeleton-text-display",titleLarge:"skeleton-text-title-large",titleMedium:"skeleton-text-title-medium",titleSmall:"skeleton-text-title-small",bodyLarge:"skeleton-text-body-large",bodyMedium:"skeleton-text-body-medium",bodySmall:"skeleton-text-body-small",subtitle:"skeleton-text-subtitle"},multiline:{true:"skeleton-text-multiline",false:""}}});function tf(e){var{lines:t=1,maxWidth:a,size:n="bodyMedium",className:i,style:r}=e,o=s(e,["lines","maxWidth","size","className","style"]);return t<2?f.jsx(Xg,Object.assign({width:"100%",height:"var(--skeleton-text-font-size)",className:et(ef({size:n}),i),style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-size":n},o,{"data-component":"SkeletonText"})):f.jsx("div",{className:Jg,style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-component":"SkeletonText",children:Array.from({length:t},(e,t)=>f.jsx(Xg,Object.assign({height:"var(--skeleton-text-font-size)",className:et(ef({size:n,multiline:!0}),i),"data-size":n},o),t))})}tf.displayName="SkeletonText";const af="data-table-skeleton-cell",nf="data-table-skeleton-items",rf="data-table-skeleton-item",of="sr-only",sf=10;function lf(e,t){const{columns:a,cellPadding:n,rows:i=sf}=e,r=s(e,["columns","cellPadding","rows"]);return f.jsxs(ig,Object.assign({ref:t,cellPadding:n,gridTemplateColumns:cg(a),"data-component":"Table.Skeleton"},r,{children:[f.jsx(Tg,{children:f.jsx(Ug,{children:a.map((e,t)=>{var a,n;return f.jsx(Eg,{children:"string"==typeof e.header?e.header:e.header()},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})}),f.jsx(ug,{children:f.jsx(Ug,{children:a.map((e,t)=>{var a,n;return f.jsxs(fg,{className:af,"data-cell-skeleton":"",children:[f.jsx("span",{className:of,children:"Loading"}),f.jsx("div",{className:nf,children:Array.from({length:i},(e,t)=>f.jsx("div",{className:rf,"data-cell-skeleton-item":"",children:f.jsx(tf,{})},t))})]},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})})]}))}lf.displayName="Table.Skeleton";var cf=tt(lf);const df="data-table-sort-header",uf="data-table-sort-header-button",mf="data-table-sort-header-button-end",pf="data-table-sort-header-icon",hf="data-table-sort-header-icon-resting",gf="sr-only";function ff(e,t){const{className:a,align:n,children:i,direction:r,onToggleSort:o}=e,l=s(e,["className","align","children","direction","onToggleSort"]),c="ASC"===r?"ascending":"DESC"===r?"descending":void 0,d="DESC"===r?ut:mt;return f.jsx(Eg,Object.assign({ref:t,align:n,"aria-sort":c,className:et(df,a),"data-component":"Table.SortHeader"},l,{children:f.jsxs("button",{type:"button",onClick:o,className:et(uf,"end"===n&&mf),"data-component":"Table.SortHeader.Button",children:[i,f.jsx(d,{className:et(pf,"NONE"===r&&hf),"aria-hidden":"true","data-sort-icon":"DESC"===r?"descending":"ascending"}),"NONE"===r?f.jsx("span",{className:gf,children:"sort ascending"}):null]})}))}ff.displayName="Table.SortHeader";var vf=tt(ff);const bf="data-table-subtitle";function xf(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(bf,i),"data-component":"Table.Subtitle"},r))}xf.displayName="Table.Subtitle";var yf=tt(xf);const wf="data-table-title";function Nf(e,t){const a=e,{as:n="h2",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(wf,i),"data-component":"Table.Title"},r))}Nf.displayName="Table.Title";var jf=tt(Nf);const kf="ASC",Cf=e=>"ASC"===e?"DESC":"ASC",Sf=e=>{const t=[];let a=0;for(;a<e.length;){let n=e[a];if(Of(n)){for(;a+1<e.length&&Of(e[a+1]);)n+=e[a+1],a++;t.push(parseInt(n,10))}else{for(;a+1<e.length&&!Of(e[a+1]);)n+=e[a+1],a++;t.push(n)}a++}return t},Of=e=>!Number.isNaN(parseInt(e,10)),Mf={alphanumeric:(e,t)=>{const a=Sf(e),n=Sf(t);for(;0!==a.length&&0!==n.length;){const e=a.shift(),t=n.shift();if(e!==t){if("string"==typeof e&&"string"==typeof t)return e.localeCompare(t);if("number"==typeof e&&"number"==typeof t)return e>t?1:-1;if("number"==typeof e&&"string"==typeof t)return-1;if("string"==typeof e&&"number"==typeof t)return 1;if(void 0===e||void 0===t)break}}return a.length>n.length?1:-1},basic:(e,t)=>e===t?0:e<t?-1:1,datetime:(e,t)=>{const a=e instanceof Date?e.getTime():e,n=t instanceof Date?t.getTime():t;return a>n?1:a<n?-1:0}},Af=(e,t)=>{let a=e;for(const e of t.split("."))a=a[e];return a},Tf=e=>null==e||""===e,If=({columns:e,data:t,initialSortColumn:a,initialSortDirection:n,externalSorting:i,getRowId:r})=>{const[s,l]=o.useState(t),[c,d]=o.useState(t),[u,m]=o.useState(e),[p,h]=o.useState(()=>((e,t,a)=>{var n;const i=e=>void 0!==e.sortBy&&!1!==e.sortBy;if(void 0!==t){const n=e.find(e=>e.id===t||e.field===t);return n&&i(n)?{id:`${t}`,direction:null!=a?a:kf}:null}if(void 0!==a){const t=e.find(i),r=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null==t?void 0:t.field;return void 0===r?null:{id:r,direction:a}}return null})(e,a,n)),g=cg(e);if(e!==u&&(m(e),p)){e.some(e=>{var t;return(null!==(t=e.id)&&void 0!==t?t:e.field)===p.id})||h(null)}const f=e.map(e=>{var t;const a=null!==(t=e.id)&&void 0!==t?t:e.field;if(void 0===a)throw new Error("Expected either an `id` or a `field` to be given for a Column");const n=void 0!==e.sortBy&&!1!==e.sortBy;return{id:a,column:e,isSortable:()=>n,getSortDirection:()=>p&&p.id===a?p.direction:"NONE"}}),v=e=>{const t=f.find(t=>t.id===e.id);if(!t)throw new Error(`Unable to find a header with the id: ${e.id}`);const{sortBy:a,field:n}=t.column;if(!1===a||void 0===a)throw new Error("The column for this header cannot be sorted");if(i)return;const r="string"==typeof a?Mf[a]:Mf.basic;l(t=>t.slice().sort((t,i)=>{if("function"==typeof a)return"ASC"===e.direction?a(t,i):a(i,t);if(void 0===n)return 0;const o=Af(t,n),s=Af(i,n),l=Tf(o),c=Tf(s);return l||c?l?c?0:1:-1:"ASC"===e.direction?r(o,s):r(s,o)}))};t!==c&&(d(t),l(t),p&&v(p));return{headers:f,rows:s.map(e=>{const t=r(e);return{id:`${t}`,getValue:()=>e,getCells:()=>f.map(a=>{var n;return{id:`${t}:${a.id}`,column:a.column,rowHeader:null!==(n=a.column.rowHeader)&&void 0!==n&&n,getValue:()=>{if(void 0===a.column.field)throw new Error(`Unable to get a value for the column: ${a.id}`);return Af(e,a.column.field)}}})}}),actions:{sortBy:e=>{const t={id:e.id,direction:p&&p.id===e.id?Cf(p.direction):kf};h(t),v(t)}},gridTemplateColumns:g}},Df=e=>"string"==typeof e.header?e.header:e.header(),Lf=e=>e.id;function zf(e,t){const{data:a,columns:n,cellPadding:i,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l=Lf,onToggleSort:c,"aria-labelledby":d,"aria-describedby":u}=e,{headers:m,rows:p,actions:h,gridTemplateColumns:g}=If({data:a,columns:n,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l});return f.jsxs(ig,{ref:t,"aria-labelledby":d,"aria-describedby":u,cellPadding:i,gridTemplateColumns:g,children:[f.jsx(Tg,{children:f.jsx(Ug,{children:m.map(e=>e.isSortable()?f.jsx(vf,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{const t="ASC"===e.getSortDirection()?"DESC":"ASC";h.sortBy(e),null==c||c(e.id,t)},children:Df(e.column)},e.id):f.jsx(Eg,{align:e.column.align,children:Df(e.column)},e.id))})}),f.jsx(ug,{children:p.map(e=>f.jsx(Ug,{children:e.getCells().map(t=>f.jsx(fg,{scope:t.rowHeader?"row":void 0,align:t.column.align,children:t.column.renderCell?t.column.renderCell(e.getValue()):t.getValue()},t.id))},e.id))})]})}zf.displayName="DataTable";var Ef=tt(zf);const Pf=Object.assign(ig,{Container:jg,Title:jf,Subtitle:yf,Actions:sg,Divider:Sg,Skeleton:cf,Head:Tg,Body:ug,Header:Eg,SortHeader:vf,Row:Ug,Cell:fg,CellPlaceholder:xg,Pagination:qg,ErrorDialog:Mg}),$f="date-picker",Rf="date-picker-block",Bf="date-picker-overlay";function Vf(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:l,format:c="YYYY-MM-DD",rangeSeparator:d=" - ",open:u,defaultOpen:m=!1,onOpenChange:p,min:h,max:g,isDateDisabled:v,weekStartsOn:b,fixedWeeks:x=!0,showWeekNumbers:y,monthFormat:w,calendarButtonLabel:j="Choose a date",calendarLabel:k="Choose a date",placeholder:C,disabled:S,block:O,onBlur:M,inputClassName:A,className:T}=a,I=s(a,["mode","value","defaultValue","onChange","format","rangeSeparator","open","defaultOpen","onOpenChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showWeekNumbers","monthFormat","calendarButtonLabel","calendarLabel","placeholder","disabled","block","onBlur","inputClassName","className"]),D=Jt(),L=o.useRef(null),z=o.useRef(null),E=N(t,z),P=o.useRef(null),$=el(h),R=el(g),B="range"===n,V=void 0!==i,[_,F]=o.useState(()=>nl(r,B)),H=V?nl(i,B):_,W=void 0!==u,[G,q]=o.useState(m),K=W?u:G,[U,Y]=o.useState(null),Z=null!=U?U:(({from:e,to:t})=>null===e?"":B&&null!==t?`${e.format(c)}${d}${t.format(c)}`:e.format(c))(H),Q=(e,t)=>{W||q(e),null==p||p(e,t)},X=e=>{var t,a,n,i,r,o;const s=[e.from,e.to].every(e=>null===e||ll(e,$,R,v));if(s){if(V||F(e),B){const r=l;return void(null==r||r({from:null!==(a=null===(t=e.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=e.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==l||l(null!==(o=null===(r=e.from)||void 0===r?void 0:r.toDate())&&void 0!==o?o:null)}},J={min:h,max:g,isDateDisabled:v,weekStartsOn:b,fixedWeeks:x,showWeekNumbers:y,monthFormat:w,focusableDayRef:P,"data-component":"DatePicker.Calendar"};return f.jsxs("span",{className:et($f,O&&Rf,T),"data-component":"DatePicker","data-open":K,children:[f.jsx("span",{ref:L,className:et($f,O&&Rf),"data-component":"DatePicker.Field",children:f.jsx(Nr,Object.assign({ref:E,type:"text",value:Z,onChange:e=>{const t=e.target.value;Y(t);const a=(e=>{if(""===e.trim())return al;const t=(B?e.split(d):[e]).map(e=>pl(e.trim(),c));if(t.length>2||t.some(e=>null===e))return;const[a,n=null]=t;return B?n&&a.isAfter(n,"day")?{from:n,to:a}:{from:a,to:n}:{from:a,to:a}})(t);a&&X(a)},onBlur:e=>{Y(null),null==M||M(e)},placeholder:null!=C?C:B?`${c}${d}${c}`:c,disabled:S,block:O,className:A,trailingAction:f.jsx(Nr.Action,{icon:gt,"aria-label":j,"aria-haspopup":"dialog","aria-expanded":K,"aria-controls":K?D:void 0,disabled:S,onClick:()=>Q(!K,"button"),"data-component":"DatePicker.CalendarButton"})},I))}),f.jsx(vi,{renderAnchor:null,anchorRef:L,open:K,onClose:e=>{Q(!1,"escape"===e?"escape":"click-outside")},side:"outside-bottom",align:"start",className:Bf,overlayProps:{id:D,role:"dialog","aria-label":k},focusTrapSettings:{initialFocusRef:P,returnFocusRef:z},children:B?f.jsx(Al,Object.assign({mode:"range",value:{from:H.from,to:H.to},onChange:e=>{Y(null),X(nl(e,!0)),e.from&&e.to&&Q(!1,"date-select")}},J)):f.jsx(Al,Object.assign({value:H.from,onChange:e=>{Y(null),X(nl(e,!1)),Q(!1,"date-select")}},J))})]})}Vf.displayName="DatePicker";var _f=tt(Vf);const Ff="details";function Hf(e,t){const{className:a,open:n,defaultOpen:i,closeOnOutsideClick:r,onChange:l,onToggle:c}=e,d=s(e,["className","open","defaultOpen","closeOnOutsideClick","onChange","onToggle"]),u=o.useRef(null),m=N(t,u),p=void 0!==n,[h,g]=o.useState(Boolean(i)),v=p?n:h;return o.useEffect(()=>{const e=u.current;e&&e.open!==v&&(e.open=v)}),o.useEffect(()=>{if(!r||!v)return;const e=e=>{const{target:t}=e;t instanceof Element&&t.closest("details")!==u.current&&(g(!1),null==l||l(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[r,v,l]),f.jsx("details",Object.assign({ref:m,open:v,onToggle:e=>{null==c||c(e);const{open:t}=e.currentTarget;g(t),t!==v&&(null==l||l(t))},className:et(Ff,a),"data-component":"Details"},d))}Hf.displayName="Details";var Wf=tt(Hf);const Gf="details-summary";function qf(e,t){const a=e,{as:n,className:i}=a,r=s(a,["as","className"]),o=null!=n?n:"summary",l="summary"===o?{}:{as:"summary"};return f.jsx(o,Object.assign({ref:t,className:et(Gf,i),"data-component":"Details.Summary"},l,r))}qf.displayName="Details.Summary";var Kf=tt(qf);const Uf=Object.assign(Wf,{Summary:Kf}),Yf=Object.assign(Qh,{Header:Dh,Title:Rh,Subtitle:Eh,Body:wh,Footer:Ah,Buttons:jh,CloseButton:Ch}),Zf="drawer-body";function Qf(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Zf,i),"data-component":"Drawer.Body"},r))}Qf.displayName="Drawer.Body";var Xf=tt(Qf);const Jf=e.createContext({}),ev="drawer-close-button";function tv(e,t){const{className:a,onClose:n}=e,i=s(e,["className","onClose"]),{onClose:r}=o.useContext(Jf);return f.jsx(yn,Object.assign({ref:t,icon:Ct,"aria-label":"Close",variant:"invisible",className:et(ev,a),onClick:null!=n?n:r,"data-component":"Drawer.CloseButton"},i))}tv.displayName="Drawer.CloseButton";var av=tt(tv);const nv="drawer-footer";function iv(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(nv,i),"data-component":"Drawer.Footer"},r))}iv.displayName="Drawer.Footer";var rv=tt(iv);const ov="drawer-header",sv="drawer-header-direct-title";function lv(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(ov,sv,i),"data-component":"Drawer.Header"},r))}lv.displayName="Drawer.Header";var cv=tt(lv);const dv="drawer-subtitle";function uv(e,t){const a=e,{as:n="h2",className:i,id:r}=a,l=s(a,["as","className","id"]),{descriptionId:c}=o.useContext(Jf);return f.jsx(n,Object.assign({ref:t,id:null!=r?r:c,className:et(dv,i),"data-component":"Drawer.Subtitle"},l))}uv.displayName="Drawer.Subtitle";var mv=tt(uv);const pv="drawer-title";function hv(e,t){const a=e,{as:n="h1",className:i,id:r}=a,l=s(a,["as","className","id"]),{labelId:c}=o.useContext(Jf);return f.jsx(n,Object.assign({ref:t,id:null!=r?r:c,className:et(pv,i),"data-component":"Drawer.Title"},l))}hv.displayName="Drawer.Title";var gv=tt(hv);const fv={backdrop:"drawer-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropModeless:"drawer-backdrop-modeless",backdropPosition:{left:"drawer-backdrop-left",right:"drawer-backdrop-right",top:"drawer-backdrop-top",bottom:"drawer-backdrop-bottom"},root:"drawer motion-safe:animate-in motion-safe:duration-short",rootModeless:"drawer-modeless",position:{left:"drawer-left motion-safe:slide-in-from-left",right:"drawer-right motion-safe:slide-in-from-right",top:"drawer-top motion-safe:slide-in-from-top",bottom:"drawer-bottom motion-safe:slide-in-from-bottom"},inlineSize:{small:"drawer-inline-size-small",medium:"drawer-inline-size-medium",large:"drawer-inline-size-large",xlarge:"drawer-inline-size-xlarge"},blockSize:{small:"drawer-block-size-small",medium:"drawer-block-size-medium",large:"drawer-block-size-large",xlarge:"drawer-block-size-xlarge"},customInlineSize:"drawer-inline-size-custom",customBlockSize:"drawer-block-size-custom",headerContent:"drawer-header-content",overflowWrapper:"drawer-overflow-wrapper",overflowWrapperBordered:"drawer-overflow-wrapper-bordered"},vv=e=>"number"==typeof e?`${e}px`:e;function bv(e,t){var a,n;const{title:i="Drawer",subtitle:r="",onClose:l,position:c="right",size:d="medium",modal:u=!0,returnFocusRef:m,initialFocusRef:p,className:h,style:g,children:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["title","subtitle","onClose","position","size","modal","returnFocusRef","initialFocusRef","className","style","children","aria-label","aria-labelledby","aria-describedby"]),j=Jt(),k=Jt(),C=o.useRef(null),S=N(t,C),O=o.useRef(null),[M,A]=o.useState(!1),T=gh(O);qn({containerRef:C,initialFocusRef:p,returnFocusRef:m,disabled:!u}),Zn(e=>{l("escape"),u&&e.preventDefault()}),Pp(!u);const[I,D]=va(v,{header:cv,body:Xf,footer:rv}),L=null!==(a=I.header)&&void 0!==a?a:f.jsxs(cv,{children:[f.jsxs("div",{className:fv.headerContent,children:[f.jsx(gv,{children:i}),r?f.jsx(mv,{children:r}):null]}),f.jsx(av,{})]}),z=null!==(n=I.body)&&void 0!==n?n:f.jsx(Xf,{children:D}),E=I.footer,P=Boolean(E),$="left"===c||"right"===c,R=(e=>"string"==typeof e&&e in fv.inlineSize)(d),B=null!=x?x:b?void 0:j,V=null!=y?y:r?k:void 0;return f.jsx(Jf.Provider,{value:{labelId:j,descriptionId:k,onClose:()=>{l("close-button")}},children:f.jsx(oi,{children:f.jsx("div",{className:et(fv.backdrop,fv.backdropPosition[c],!u&&fv.backdropModeless),onClick:e=>{u&&e.target===e.currentTarget&&M&&l("escape")},onMouseDown:e=>{A(e.target===e.currentTarget)},"data-component":"Drawer.Backdrop","data-position":c,"data-modal":u,children:f.jsxs("div",Object.assign({ref:S,role:"dialog","aria-labelledby":B,"aria-describedby":V,"aria-label":b,"aria-modal":u||void 0,className:et(fv.root,fv.position[c],R?$?fv.inlineSize[d]:fv.blockSize[d]:$?fv.customInlineSize:fv.customBlockSize,!u&&fv.rootModeless,h),style:Object.assign(Object.assign({},g),R?{}:{"--drawer-size":vv(d)}),"data-component":"Drawer","data-position":c,"data-size":R?d:void 0,"data-modal":u,"data-has-footer":P?"":void 0},w,{children:[L,f.jsx(bh,{ref:O,"aria-labelledby":j,className:et(fv.overflowWrapper,P&&T&&fv.overflowWrapperBordered),children:z}),E]}))})})})}bv.displayName="Drawer";var xv=tt(bv);const yv=Object.assign(xv,{Header:cv,Title:gv,Subtitle:mv,Body:Xf,Footer:rv,CloseButton:av}),wv=Xe("em",{variants:{size:{large:"em-size-large",medium:"em-size-medium",small:"em-size-small"},weight:{light:"em-weight-light",normal:"em-weight-normal",medium:"em-weight-medium",semibold:"em-weight-semibold"}}});function Nv(e,t){const a=e,{as:n="em",className:i,size:r,weight:o}=a,l=s(a,["as","className","size","weight"]);return f.jsx(n,Object.assign({ref:t,className:et(wv({size:r,weight:o}),i),"data-component":"Em","data-size":r,"data-weight":o},l))}Nv.displayName="Em";var jv=tt(Nv);const kv=Xe("empty-state",{variants:{size:{small:"empty-state-small",medium:"empty-state-medium"}}}),Cv="empty-state-icon",Sv="empty-state-title",Ov="empty-state-description",Mv="empty-state-actions",Av=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Tv(e,t){const a=e,{as:n="div",className:i,children:r,title:o,description:l,icon:c,size:d="medium",actions:u}=a,m=s(a,["as","className","children","title","description","icon","size","actions"]);return f.jsxs(n,Object.assign({ref:t,className:et(kv({size:d}),i),"data-component":"EmptyState","data-size":d},m,{children:[void 0===c?null:f.jsx("span",{className:Cv,"aria-hidden":"true","data-component":"EmptyState.Icon",children:Av(c)}),f.jsx("span",{className:Sv,"data-component":"EmptyState.Title",children:o}),l?f.jsx("span",{className:Ov,"data-component":"EmptyState.Description",children:l}):null,r,u?f.jsx("div",{className:Mv,"data-component":"EmptyState.Actions",children:u}):null]}))}Tv.displayName="EmptyState";var Iv=tt(Tv);function Dv(e,t,a){let n,i=a.initialDeps??[],r=!0;function o(){var o;const s="production"!==process.env.NODE_ENV&&!!a.key&&!!(null==(o=a.debug)?void 0:o.call(a));let l=0;s&&(l=Date.now());const c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return n;i=c;let d=0;if(s&&(d=Date.now()),n=t(...c),s){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-d))/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==a?void 0:a.key)}return!(null==a?void 0:a.onChange)||r&&a.skipInitialOnChange||a.onChange(n),r=!1,n}return o.updateDeps=e=>{i=e},o}function Lv(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const zv=(e,t,a)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),a)}};let Ev;const Pv=()=>{if(void 0!==Ev)return Ev;if("undefined"==typeof navigator)return Ev=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Ev=!0;const e=navigator.maxTouchPoints;return Ev="MacIntel"===navigator.platform&&void 0!==e&&e>0},$v=e=>{const{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},Rv=e=>e,Bv=e=>{const t=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=new Array(a);for(let e=0;e<a;e++)n[e]=t+e;return n},Vv=(e,t)=>{const a=e.scrollElement;if(!a)return;const n=e.targetWindow;if(!n)return;const i=e=>{const{width:a,height:n}=e;t({width:Math.round(a),height:Math.round(n)})};if(i($v(a)),!n.ResizeObserver)return()=>{};const r=new n.ResizeObserver(t=>{const n=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i($v(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return r.observe(a,{box:"border-box"}),()=>{r.unobserve(a)}},_v={passive:!0},Fv="undefined"==typeof window||"onscrollend"in window,Hv=(e,t)=>((e,t,a)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=e.options.useScrollendEvent&&Fv;let o=0;const s=r?null:zv(i,()=>t(o,!1),e.options.isScrollingResetDelay),l=e=>()=>{o=a(n),null==s||s(),t(o,e)},c=l(!0),d=l(!1);return n.addEventListener("scroll",c,_v),r&&n.addEventListener("scrollend",d,_v),()=>{n.removeEventListener("scroll",c),r&&n.removeEventListener("scrollend",d)}})(e,t,t=>{const{horizontal:a,isRtl:n}=e.options;return a?t.scrollLeft*(n?-1:1):t.scrollTop}),Wv=(e,t,a)=>{if(a.options.useCachedMeasurements){const t=a.indexFromElement(e),n=a.options.getItemKey(t);return a.itemSizeCache.get(n)??a.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[a.options.horizontal?"inlineSize":"blockSize"])}}if(!t){const t=a.indexFromElement(e),n=a.options.getItemKey(t),i=a.itemSizeCache.get(n);if(void 0!==i)return i}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},Gv=(e,{adjustments:t=0,behavior:a},n)=>{var i,r;null==(r=null==(i=n.scrollElement)?void 0:i.scrollTo)||r.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:a})};class qv{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,a;return(null==(a=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:a.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,a=this.indexFromElement(t);if(t.isConnected)this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,a]of this.elementsCache)if(a===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var a;null==(a=t())||a.disconnect(),e=null},observe:e=>{var a;return null==(a=t())?void 0:a.observe(e,{box:"border-box"})},unobserve:e=>{var a;return null==(a=t())?void 0:a.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,a;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Rv,rangeExtractor:Bv,onChange:()=>{},measureElement:Wv,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const a=e[t];void 0!==a&&(n[t]=a)}const i=this.options;let r=null,o=null,s=!1;if(void 0!==i&&i.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=i.count,l=n.count,c=this.getMeasurements(),d=e>0?(null==(t=c[0])?void 0:t.key)??i.getItemKey(0):null,u=e>0?(null==(a=c[e-1])?void 0:a.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(n.getItemKey(0)!==d||n.getItemKey(l-1)!==u)){s=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(r=[t.key,this.getScrollOffset()-t.start]);const a=!0===n.followOnAppend?"auto":n.followOnAppend||null;a&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||n.getItemKey(l-1)!==u)&&(o=a)}}this.options=n,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let l=!1,c=0;if(r&&null!==this.scrollOffset){const[e,t]=r,a=this.getMeasurements(),{count:n,getItemKey:i}=this.options;let o=0;for(;o<n&&i(o)!==e;)o++;if(o<n){const e=a[o];if(e){const a=Math.max(0,e.start+t);a!==this.scrollOffset&&(c=a-this.scrollOffset,this.scrollOffset=a,l=!0)}}}(l||o)&&(this.pendingScrollAnchor=[l?r[0]:null,l?r[1]:0,o,c])},this.notify=e=>{var t,a;null==(a=(t=this.options).onChange)||a.call(t,this,e)},this.maybeNotify=Dv(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:"production"!==process.env.NODE_ENV&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const a=this.getScrollOffset();this.scrollDirection=t?a===e?this.scrollDirection:a<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},a=()=>{this._iosTouching=!1,Pv()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,_v),e.addEventListener("touchend",a,_v),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",a),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const a=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,a&&this.scrollElement&&this.options.enabled){const[e,t,n,i]=a;null===e||n||(Pv()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const a=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=a,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Dv(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,a,n,i,r,o,s)=>(void 0!==this.prevLanes&&this.prevLanes!==r&&(this.lanesChangedFlag=!0),this.prevLanes=r,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=Dv(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s},l)=>{const c=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===r){const i=2*e;let r,o=this._flatMeasurements;if(!o||o.length<i){const e=new Float64Array(i);o&&d>0&&e.set(o.subarray(0,2*d)),o=e,this._flatMeasurements=o}if(0===d)r=t+a;else{const e=d-1;r=o[2*e]+o[2*e+1]+s}for(let t=d;t<e;t++){const e=n(t),a=c.get(e),i="number"==typeof a?a:this.options.estimateSize(t);o[2*t]=r,o[2*t+1]=i,r+=i+s}const l=function(e,t,a){const n=new Array(e);return new Proxy(n,{get(n,i,r){if("string"==typeof i){const r=i.charCodeAt(0);if(r>=48&&r<=57){const r=+i;if(Number.isInteger(r)&&r>=0&&r<e){let e=n[r];if(!e){const i=t[2*r];e=n[r]={index:r,key:a(r),start:i,size:t[2*r+1],end:i+t[2*r+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(n,i,r)}})}(e,o,n);return this.measurementsCache=l,l}const u=this.measurementsCache.slice(0,d),m=new Array(r).fill(void 0),p=new Float64Array(r);let h=0;for(let e=0;e<d;e++){const t=u[e];t&&(void 0===m[t.lane]&&h++,m[t.lane]=e,p[t.lane]=t.end)}for(let i=d;i<e;i++){const e=n(i),l=this.laneAssignments.get(i);let d,g;const f="estimate"===o||c.has(e);if(void 0!==l&&this.options.lanes>1){d=l;const e=m[d],n=void 0!==e?u[e]:void 0;g=n?n.end+s:t+a}else if(h===r){let e=0,t=p[0],a=m[0];for(let n=1;n<r;n++){const i=p[n];(i<t||i===t&&m[n]<a)&&(e=n,t=i,a=m[n])}d=e,g=t+s,f&&this.laneAssignments.set(i,d)}else d=i%this.options.lanes,g=t+a,f&&this.laneAssignments.set(i,d);const v=c.get(e),b="number"==typeof v?v:this.options.estimateSize(i),x=g+b;u[i]={index:i,start:g,size:b,end:x,key:e,lane:d},void 0===m[d]&&h++,m[d]=i,p[d]=x}return this.measurementsCache=u,u},{key:"production"!==process.env.NODE_ENV&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Dv(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,a,n)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,a,n,i){const r=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:r};if(1===n&&null!==i){const e=function(e,t,a){let n=0;for(;n<=t;){const i=(n+t)/2|0,r=e[2*i];if(r<a)n=i+1;else{if(!(r>a))return i;t=i-1}}return n>0?n-1:0}(i,r,a);let n=e;const o=a+t;for(;n<r&&i[2*n]+i[2*n+1]<o;)n++;return{startIndex:e,endIndex:n}}const o=t=>e[t].start;let s=Kv(0,r,o,a),l=s;if(1===n)for(;l<r&&e[l].end<a+t;)l++;else if(n>1){const i=Array(n).fill(0);for(;l<r&&i.some(e=>e<a+t);){const t=e[l];i[t.lane]=t.end,l++}const o=Array(n).fill(a+t);for(;s>=0&&o.some(e=>e>=a);){const t=e[s];o[t.lane]=t.start,s--}s=Math.max(0,s-s%n),l=Math.min(r,l+(n-1-l%n))}return{startIndex:s,endIndex:l}}(e,t,a,n,1===n&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:"production"!==process.env.NODE_ENV&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Dv(()=>{let e=null,t=null;const a=this.calculateRange();return a&&(e=a.startIndex,t=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,a,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:a}),{key:"production"!==process.env.NODE_ENV&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,a=e.getAttribute(t);return a?parseInt(a,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const a=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==a&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,a-t),i=Math.min(this.options.count-1,a+t);return e>=n&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),a=this.options.getItemKey(t),n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var a,n;if(e<0||e>=this.options.count)return;let i,r,o;const s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)o=this.options.getItemKey(e),r=s[2*e],i=s[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;o=t.key,r=t.start,i=t.size}const l=this.itemSizeCache.get(o)??i,c=t-l;if(0!==c){const s="end"===this.options.anchorTo&&"smooth"!==(null==(a=this.scrollState)?void 0:a.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=s?this.getTotalSize():0,u=this.getScrollOffset()+this.scrollAdjustments,m=!this.itemSizeCache.has(o)?r<u:r+l<=u&&"backward"!==this.scrollDirection,p="smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:o,start:r,size:i,end:r+i,lane:0},c,this):m);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(o,t),this.itemSizeCacheVersion++;let h=!1;s?h=this.applyScrollAdjustment(this.getTotalSize()-d):p&&(h=this.applyScrollAdjustment(c)),this.notify(h)}},this.getVirtualItems=Dv(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const a=[];for(let n=0,i=e.length;n<i;n++){const i=t[e[n]];a.push(i)}return a},{key:"production"!==process.env.NODE_ENV&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0===t.length)return;const a=this._flatMeasurements,n=1===this.options.lanes&&null!=a,i=Kv(0,t.length-1,n?e=>a[2*e]:e=>Lv(t[e]).start,e);return Lv(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,a=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(a-n)/2:"end"===t&&(e-=n);const r=this.getMaxScrollOffset();return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.getSize(),n=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=n+a-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const r="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0;const n=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:a,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getOffsetForIndex(e,t);if(!n)return;const[i,r]=n,o=this.now();this.scrollState={index:e,align:r,behavior:a,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const a=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let a;if(0===t.length)a=this.options.paddingStart;else if(1===this.options.lanes){const n=t.length-1,i=this._flatMeasurements;a=null!=i?i[2*n]+i[2*n+1]:(null==(e=t[n])?void 0:e.end)??0}else{const e=Array(this.options.lanes).fill(null);let n=t.length-1;for(;n>=0&&e.some(e=>null===e);){const a=t[n];null===e[a.lane]&&(e[a.lane]=a.end),n--}a=Math.max(...e.filter(e=>null!==e))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const a of t)a&&this.itemSizeCache.has(a.key)&&e.push({index:a.index,key:a.key,start:a.start,size:a.size,end:a.end,lane:a.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:a})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:a,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return 0!==e&&("production"!==process.env.NODE_ENV&&this.options.debug&&console.info("correction",e),Pv()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,a=t!==this.scrollState.lastTargetOffset;if(!a&&(n=t,i=this.getScrollOffset(),Math.abs(n-i)<1.01)){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,a){const e=this.getSize()||600,a=Math.abs(t-this.getScrollOffset()),n="smooth"===this.scrollState.behavior&&a>e;this.scrollState.lastTargetOffset=t,n||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:n?"smooth":"auto"})}var n,i;this.scheduleScrollReconcile()}}const Kv=(e,t,a,n)=>{for(;e<=t;){const i=(e+t)/2|0,r=a(i);if(r<n)e=i+1;else{if(!(r>n))return i;t=i-1}}return e>0?e-1:0};const Uv="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function Yv(e){return function({useFlushSync:e=!0,directDomUpdates:a=!1,directDomUpdatesMode:n="transform",...i}){const r=o.useReducer(e=>e+1,0)[1],s=o.useRef({enabled:a,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=a,s.current.mode=n;const l=e=>{const t=s.current;if(!t.enabled||!t.container)return;const a=e.getTotalSize();if(a!==t.lastSize){t.lastSize=a;const n=e.options.horizontal?"width":"height";t.container.style[n]=`${a}px`}},c=e=>{const t=s.current;if(!t.enabled||!t.container)return;l(e);const a=!!e.options.horizontal,n="transform"===t.mode,i=a?"left":"top",r=e.options.scrollMargin,o=e.getVirtualItems();for(const s of o){const o=s.start-r,l=e.elementsCache.get(s.key);l&&t.lastPositions.get(l)!==o&&(t.lastPositions.set(l,o),n?l.style.transform=a?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:l.style[i]=`${o}px`)}},d={...i,onChange:(a,n)=>{var o;const l=s.current;let d=!0;if(l.enabled){c(a);const e=a.range,t=l.prevRange;d=!t||t.isScrolling!==a.isScrolling||t.startIndex!==(null==e?void 0:e.startIndex)||t.endIndex!==(null==e?void 0:e.endIndex),d&&(l.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:a.isScrolling}:null)}d&&(e&&n?t.flushSync(r):r()),null==(o=i.onChange)||o.call(i,a,n)}},[u]=o.useState(()=>{const e=new qv(d);return Object.assign(e,{containerRef:t=>{const a=s.current;if(a.container=t,a.lastSize=null,t&&a.enabled){const n=e.getTotalSize();a.lastSize=n;const i=e.options.horizontal?"width":"height";t.style[i]=`${n}px`}}})});return u.setOptions(d),Uv(()=>u._didMount(),[]),Uv(()=>(l(u),u._willUpdate())),Uv(()=>{c(u)}),u}({observeElementRect:Vv,observeElementOffset:Hv,scrollToFn:Gv,...e})}const Zv="filtered-action-list-input";function Qv(e){const{inputRef:t,value:a,onInputChange:n,onInputKeyDown:i,placeholderText:r,listId:o,inputDescriptionId:l,loading:c=!1}=e,d=s(e,["inputRef","value","onInputChange","onInputKeyDown","placeholderText","listId","inputDescriptionId","loading"]);return f.jsx("div",{className:Zv,"data-component":"FilteredActionList.Header",children:f.jsx(Nr,Object.assign({ref:t,block:!0,value:a,onChange:n,onKeyDown:i,placeholder:r,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":o,"aria-label":r,"aria-describedby":l,loading:c,loaderPosition:"leading"},d))})}Qv.displayName="FilteredActionList.Input";const Xv=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Jv(e,t){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:a,text:n,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:l,onAction:c,children:d,groupId:u,renderItem:m}=e,p=s(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","onAction","children","groupId","renderItem"]);return f.jsxs(Bn.Item,Object.assign({ref:t,role:"option",onSelect:t=>null==c?void 0:c(e,t),"data-id":a},p,{children:[o?f.jsx(Bn.LeadingVisual,{children:f.jsx(o,{})}):null,d,n,i?f.jsx(Bn.Description,{variant:r,children:i}):null,l?f.jsx(Bn.TrailingVisual,{children:Xv(l)}):null]}))}Jv.displayName="FilteredActionList.Item";var eb=tt(Jv);const tb=Xe("stack",{variants:{gap:{none:"stack-gap-none",tight:"stack-gap-tight",condensed:"stack-gap-condensed",cozy:"stack-gap-cozy",normal:"stack-gap-normal",spacious:"stack-gap-spacious"},direction:{horizontal:"stack-horizontal",vertical:"stack-vertical"},align:{stretch:"stack-align-stretch",start:"stack-align-start",center:"stack-align-center",end:"stack-align-end",baseline:"stack-align-baseline"},wrap:{wrap:"stack-wrap",nowrap:"stack-nowrap"},justify:{start:"stack-justify-start",center:"stack-justify-center",end:"stack-justify-end","space-between":"stack-justify-space-between","space-evenly":"stack-justify-space-evenly"},padding:{none:"stack-padding-none",tight:"stack-padding-tight",condensed:"stack-padding-condensed",cozy:"stack-padding-cozy",normal:"stack-padding-normal",spacious:"stack-padding-spacious"},paddingBlock:{none:"stack-padding-block-none",tight:"stack-padding-block-tight",condensed:"stack-padding-block-condensed",cozy:"stack-padding-block-cozy",normal:"stack-padding-block-normal",spacious:"stack-padding-block-spacious"},paddingInline:{none:"stack-padding-inline-none",tight:"stack-padding-inline-tight",condensed:"stack-padding-inline-condensed",cozy:"stack-padding-inline-cozy",normal:"stack-padding-inline-normal",spacious:"stack-padding-inline-spacious"}}});function ab(e,t){const a=e,{as:n="div",className:i,gap:r,direction:o="vertical",align:l="stretch",wrap:c="nowrap",justify:d="start",padding:u="none",paddingBlock:m,paddingInline:p}=a,h=s(a,["as","className","gap","direction","align","wrap","justify","padding","paddingBlock","paddingInline"]);return f.jsx(n,Object.assign({ref:t,className:et(tb({gap:r,direction:o,align:l,wrap:c,justify:d,padding:u,paddingBlock:m,paddingInline:p}),i),"data-component":"Stack","data-gap":r,"data-direction":o,"data-align":l,"data-wrap":c,"data-justify":d,"data-padding":u,"data-padding-block":m,"data-padding-inline":p},h))}ab.displayName="Stack";var nb=tt(ab);const ib=Xe("stack-item",{variants:{grow:{true:"stack-item-grow",false:"stack-item-no-grow"},shrink:{true:"stack-item-shrink",false:"stack-item-no-shrink"}}});function rb(e,t){const a=e,{as:n="div",className:i,grow:r,shrink:o}=a,l=s(a,["as","className","grow","shrink"]);return f.jsx(n,Object.assign({ref:t,className:et(ib({grow:r,shrink:o}),i),"data-component":"StackItem","data-grow":r,"data-shrink":o},l))}rb.displayName="StackItem";var ob=tt(rb);const sb=Object.assign(nb,{Item:ob}),lb="filtered-action-list-spinner",cb="filtered-action-list-skeleton",db=["80%","52.5%","67.5%","40%","72.5%"];function ub(e){const{loadingType:t,height:a=0,className:n}=e,i=s(e,["loadingType","height","className"]);if("input"===t)return null;if("body-skeleton"===t){const e=Math.max(Math.floor(a/24),3);return f.jsx(sb,Object.assign({gap:"condensed",justify:"center",className:et(cb,n),"data-component":"FilteredActionList.Skeleton"},i,{children:Array.from({length:e},(e,t)=>f.jsxs(sb,{direction:"horizontal",gap:"condensed",align:"center",children:[f.jsx(Xg,{width:"16px",height:"16px"}),f.jsx(Xg,{width:db[t%db.length],height:"10px"})]},t))}))}return f.jsx("div",Object.assign({className:et(lb,n),"data-component":"FilteredActionList.Spinner"},i,{children:f.jsx(en,{})}))}ub.displayName="FilteredActionList.BodyLoader";const mb=({items:e,enabled:t=!0,loading:a=!1,messageText:n})=>{const[i,r]=o.useState(""),s=e.length,l=e.filter(e=>e.selected).length,c=0===s&&!a,d=n?`${n.title}. ${n.description}`:"",u=c?d:`${s} item${1===s?"":"s"} available, ${l} selected.`,m=o.useRef(u);return o.useEffect(()=>{if(!t||u===m.current)return;m.current=u;const e=window.setTimeout(()=>r(u),500);return()=>{window.clearTimeout(e)}},[t,u]),t?i:""},pb="filtered-action-list",hb="filtered-action-list-container",gb="filtered-action-list-list",fb="filtered-action-list-message",vb="filtered-action-list-virtual-list",bb="filtered-action-list-virtual-item",xb="filtered-action-list-select-all",yb="filtered-action-list-select-all-label",wb="sr-only",Nb=(e,t)=>{var a,n,i;return null!==(i=null!==(a=e.key)&&void 0!==a?a:null===(n=e.id)||void 0===n?void 0:n.toString())&&void 0!==i?i:t.toString()};function jb(t){const{items:a,groupMetadata:n,filterValue:i,onFilterChange:r,placeholderText:s,loading:l=!1,loadingType:c="body-spinner",message:d,messageText:u,selectionVariant:m,showItemDividers:p,onSelectAllChange:h,renderItem:g,announcementsEnabled:v=!0,virtualized:b=!1,textInputProps:x,actionListProps:y,inputRef:w,scrollContainerRef:j,onListContainerRefChanged:k,onInputRefChanged:C,className:S}=t,O=void 0!==i,[M,A]=o.useState(""),T=O?i:M,I=o.useRef(null),D=N(w,I),L=o.useRef(null),z=N(j,L),E=o.useRef(null),P=o.useCallback(e=>{E.current=e,null==k||k(e)},[k]);o.useEffect(()=>{null==C||C(I)},[C]);const $=l&&"input"!==c,[R,B]=o.useState(0);Kn(()=>{const e=L.current;if(!e||!$)return;const t=()=>B(e.clientHeight);t();const a=new ResizeObserver(t);return a.observe(e),()=>{a.disconnect()}},[$]);const V=Jt(null==y?void 0:y.id),_=Jt(),F=Jt(),H=b&&!(null==n?void 0:n.length),W=Yv({count:a.length,getScrollElement:()=>L.current,estimateSize:()=>32,overscan:10,enabled:H,getItemKey:e=>{const t=a[e];return t?Nb(t,e):e.toString()},measureElement:e=>e.scrollHeight}),G=H?W.getVirtualItems():void 0,[q,K]=o.useState(null);o.useEffect(()=>{var e;if(null===q)return;const t=null===(e=E.current)||void 0===e?void 0:e.querySelector(`[data-index="${q}"]`);t&&(t.focus(),K(null))},[q,G]);const U=o.useCallback(e=>{var t,n;if(e<0||e>=a.length)return;if(H)return W.scrollToIndex(e,{align:"auto"}),void K(e);const i=null===(t=E.current)||void 0===t?void 0:t.querySelectorAll('[role="option"]');null===(n=null==i?void 0:i[e])||void 0===n||n.focus()},[H,a.length,W]),Y=o.useCallback(e=>a.filter(t=>t.groupId===e),[a]),Z=(null==n?void 0:n.length)?n.map(e=>Y(e.groupId)[0]).find(Boolean):a[0],Q=a.length>0&&a.every(e=>e.selected),X=!Q&&a.some(e=>e.selected),J=mb({items:a,enabled:v,loading:l,messageText:u}),ee=o.useMemo(()=>({container:"FilteredActionList",listRole:"listbox",selectionAttribute:"aria-selected",enableFocusZone:!H}),[H]);return f.jsxs("div",{className:et(pb,S),"data-component":"FilteredActionList","data-virtualized":H?"":void 0,children:[f.jsx(Qv,Object.assign({inputRef:D,value:T,onInputChange:e=>{const{value:t}=e.target;O||A(t),r(t,e)},onInputKeyDown:e=>{if("ArrowDown"===e.key)return e.preventDefault(),void U(0);"Enter"===e.key&&(null==Z?void 0:Z.onAction)&&(e.preventDefault(),Z.onAction(Z,e))},placeholderText:s,listId:V,inputDescriptionId:_,loading:l&&"input"===c},x)),f.jsx("span",{id:_,className:wb,children:"Items will be filtered as you type"}),h?f.jsxs("div",{className:xb,"data-component":"FilteredActionList.SelectAll",children:[f.jsx(Pm,{id:F,checked:Q,indeterminate:X,onChange:e=>h(e.target.checked),"data-component":"FilteredActionList.SelectAllCheckbox"}),f.jsx("label",{htmlFor:F,className:yb,children:Q?"Deselect all":"Select all"})]}):null,f.jsx("div",{ref:z,className:hb,onKeyDown:e=>{if(!H||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const t=e.target.closest("[data-index]"),n=t?Number(t.dataset.index):-1,i="ArrowDown"===e.key?n+1:"ArrowUp"===e.key?n-1:"Home"===e.key?0:"End"===e.key?a.length-1:null;null!==i&&(e.preventDefault(),U(i))},"data-component":"FilteredActionList.Container",children:$?f.jsx(ub,{loadingType:c,height:R}):d?f.jsx("div",{className:fb,"data-component":"FilteredActionList.Message",children:d}):f.jsx(Oa.Provider,{value:ee,children:f.jsx(Bn,Object.assign({ref:P,id:V,selectionVariant:m,showDividers:p},y,{className:et(gb,H&&vb,null==y?void 0:y.className),style:H?Object.assign(Object.assign({},null==y?void 0:y.style),{height:W.getTotalSize()}):null==y?void 0:y.style,children:(null==n?void 0:n.length)?n.map(t=>{var a,n,i;return f.jsxs(Bn.Group,{children:[f.jsx(Bn.GroupHeading,{variant:null===(a=t.header)||void 0===a?void 0:a.variant,children:null!==(i=null===(n=t.header)||void 0===n?void 0:n.title)&&void 0!==i?i:`Group ${t.groupId}`}),Y(t.groupId).map((t,a)=>{var n;return e.createElement(eb,Object.assign({},t,{key:Nb(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:g}))})]},t.groupId)}):G?G.map(t=>{var n;const i=a[t.index];return e.createElement(eb,Object.assign({},i,{key:t.key,ref:W.measureElement,renderItem:null!==(n=i.renderItem)&&void 0!==n?n:g,"data-index":t.index,className:et(bb,i.className),style:Object.assign(Object.assign({},i.style),{transform:`translateY(${t.start}px)`})}))}):a.map((t,a)=>{var n;return e.createElement(eb,Object.assign({},t,{key:Nb(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:g}))})}))})}),f.jsx("span",{role:"status","aria-live":"polite",className:wb,"data-component":"FilteredActionList.Announcement",children:J})]})}jb.displayName="FilteredActionList";const kb=Object.assign(jb,{Input:Qv,Item:eb,BodyLoader:ub}),Cb=e.createContext({}),Sb="radio",Ob="radio-checked",Mb="radio-disabled";function Ab(e,t){const{className:a,name:n,required:i,validationStatus:r,value:l,onChange:c}=e,d=s(e,["className","name","required","validationStatus","value","onChange"]),u=o.useContext(Cb);return f.jsx("input",Object.assign({ref:t,type:"radio",value:l,name:null!=n?n:u.name,required:i,"aria-required":!!i||void 0,"aria-invalid":"error"===r||void 0,onChange:e=>{var t;null===(t=u.onChange)||void 0===t||t.call(u,e),null==c||c(e)},className:et(Sb,Ob,Mb,a),"data-component":"Radio"},d))}Ab.displayName="Radio";var Tb=tt(Ab);const Ib="select-control",Db="select-indicator",Lb=Xe("select",{variants:{size:{small:"select-small",medium:"select-medium",large:"select-large"},block:{true:"select-block",false:""},disabled:{true:"select-disabled",false:""},validation:{error:"select-error",success:"select-success"}}});function zb(e,t){const{className:a,children:n,placeholder:i,size:r="medium",block:o,disabled:l,required:c,validationStatus:d,defaultValue:u}=e,m=s(e,["className","children","placeholder","size","block","disabled","required","validationStatus","defaultValue"]),p="value"in m;return f.jsxs("span",{className:et(Lb({size:r,block:o,disabled:l,validation:d}),a),"data-component":"Select","data-size":r,"data-block":o,"data-disabled":l,"data-validation":d,children:[f.jsxs("select",Object.assign({ref:t,disabled:l,required:c,"aria-invalid":"error"===d||void 0,className:Ib,defaultValue:p?void 0:null!=u?u:i?"":void 0,"data-has-placeholder":Boolean(i)||void 0},m,{children:[i?f.jsx("option",{value:"",disabled:c,hidden:c,"data-component":"Select.Option",children:i}):null,n]})),f.jsx(wt,{className:Db,"aria-hidden":"true"})]})}zb.displayName="Select";var Eb=tt(zb);const Pb=7,$b=30,Rb="both",Bb="textarea-counter",Vb="textarea-counter-over-limit",_b="textarea-counter-icon",Fb="sr-only",Hb=Xe("textarea-field",{variants:{block:{true:"textarea-field-block",false:""},contrast:{true:"textarea-field-contrast",false:""},disabled:{true:"textarea-field-disabled",false:""},validation:{error:"textarea-field-error",success:"textarea-field-success"}}}),Wb=Xe("textarea",{variants:{resize:{none:"textarea-resize-none",both:"textarea-resize-both",horizontal:"textarea-resize-horizontal",vertical:"textarea-resize-vertical"}}});function Gb(e,t){var a;const{className:n,style:i,value:r,defaultValue:l,onChange:c,rows:d=Pb,cols:u=$b,resize:m=Rb,block:p,contrast:h,disabled:g,required:v,validationStatus:b,minHeight:x,maxHeight:y,characterLimit:w,"aria-describedby":N}=e,j=s(e,["className","style","value","defaultValue","onChange","rows","cols","resize","block","contrast","disabled","required","validationStatus","minHeight","maxHeight","characterLimit","aria-describedby"]),k=Jt(),C=void 0!==r,[S,O]=o.useState(()=>void 0===l?0:String(l).length),M=C?String(r).length:S,A=w?ur(M,w):void 0,T=null!==(a=null==A?void 0:A.isOverLimit)&&void 0!==a&&a,I=T?"error":b,D=o.useRef(!1),[L,z]=o.useState(""),E=null==A?void 0:A.message;o.useEffect(()=>{if(!D.current)return;const e=window.setTimeout(()=>{z(null!=E?E:"")},500);return()=>{window.clearTimeout(e)}},[E]);return f.jsxs(f.Fragment,{children:[f.jsx("span",{className:et(Hb({block:p,contrast:h,disabled:g,validation:I}),n),"data-component":"Textarea","data-block":p,"data-contrast":h,"data-disabled":g,"data-validation":I,children:f.jsx("textarea",Object.assign({ref:t,value:r,defaultValue:l,rows:d,cols:u,disabled:g,required:v,"aria-required":!!v||void 0,"aria-invalid":"error"===I||void 0,"aria-describedby":w?[k,N].filter(Boolean).join(" "):N,onChange:e=>{D.current=!0,w&&!C&&O(e.target.value.length),null==c||c(e)},className:et(Wb({resize:m})),style:Object.assign({minHeight:x,maxHeight:y},i),"data-resize":m},j))}),A?f.jsxs(f.Fragment,{children:[f.jsx("span",{role:"status","aria-live":"polite",className:Fb,children:L}),f.jsxs("span",{id:k,className:Fb,children:["You can enter up to ",w," ",1===w?"character":"characters"]}),f.jsxs(dr,{"aria-hidden":"true",size:"small",className:et(Bb,T&&Vb),"data-component":"Textarea.CharacterCount",children:[T?f.jsx(Ot,{className:_b}):null,A.message]})]}):null]})}Gb.displayName="Textarea";var qb=tt(Gb);const Kb=e.createContext({}),Ub="form-control-caption",Yb="form-control-caption-disabled";function Zb(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{captionId:r,disabled:l}=o.useContext(Kb);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(Ub,l&&Yb,a),"data-component":"FormControl.Caption","data-control-disabled":l},i))}Zb.displayName="FormControl.Caption";var Qb=tt(Zb);const Xb="form-control-label",Jb="form-control-label-disabled",ex="sr-only",tx="form-control-label-required";function ax(e,t){const a=e,{as:n="label",className:i,children:r,htmlFor:l,id:c,visuallyHidden:d,requiredIndicator:u=!0,requiredText:m}=a,p=s(a,["as","className","children","htmlFor","id","visuallyHidden","requiredIndicator","requiredText"]),{id:h,disabled:g,required:v,labelId:b}=o.useContext(Kb);return f.jsx(n,Object.assign({ref:t,id:null!=c?c:b,htmlFor:"label"===n?null!=l?l:h:void 0,className:et(Xb,g&&Jb,d&&ex,i),"data-component":"FormControl.Label","data-control-disabled":g},p,{children:v||m?f.jsxs("span",{className:tx,children:[f.jsx("span",{children:r}),f.jsx("span",{"aria-hidden":!u||void 0,children:null!=m?m:"*"})]}):r}))}ax.displayName="FormControl.Label";var nx=tt(ax);const ix="form-control-leading-visual",rx="form-control-leading-visual-disabled",ox="form-control-leading-visual-with-caption";function sx(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i,disabled:r}=o.useContext(Kb);return f.jsx("div",Object.assign({ref:t,className:et(ix,i&&ox,r&&rx,a),"data-component":"FormControl.LeadingVisual","data-control-disabled":r,"data-has-caption":!!i||void 0},n))}sx.displayName="FormControl.LeadingVisual";var lx=tt(sx);const cx={success:ft,error:Ot},dx="form-control-validation-icon",ux=Xe("form-control-validation",{variants:{variant:{success:"form-control-validation-success",error:"form-control-validation-error"}}});function mx(e,t){const{className:a,children:n,variant:i,id:r}=e,l=s(e,["className","children","variant","id"]),{validationMessageId:c}=o.useContext(Kb),d=cx[i];return f.jsxs("span",Object.assign({ref:t,className:et(ux({variant:i}),a),"data-component":"FormControl.Validation","data-validation-status":i},l,{children:[f.jsx(d,{className:dx,"aria-hidden":"true"}),f.jsx("span",{id:null!=r?r:c,children:n})]}))}mx.displayName="FormControl.Validation";var px=tt(mx);const hx="form-control-vertical",gx="form-control-vertical-with-label",fx="form-control-horizontal",vx="form-control-horizontal-with-leading-visual",bx="form-control-choice-input",xx="form-control-label-container",yx=[Pm,Tb,Eb,qb,vr],wx=(e,t)=>o.isValidElement(e)&&(e.type===t||ha(e,t));function Nx(e,t){var a;const{className:n,children:i,disabled:r,required:l,layout:c="vertical",id:d}=e,u=s(e,["className","children","disabled","required","layout","id"]),[m,p]=va(i,{label:nx,caption:Qb,leadingVisual:lx,validation:px}),h=o.useContext(Mm),g=o.useContext(Cb),v=h.disabled||g.disabled||r,b=Jt(d),x=m.caption?`${b}-caption`:void 0,y=m.validation?`${b}-validation`:void 0,w=o.isValidElement(m.label)?m.label:void 0,N=w?null!==(a=w.props.id)&&void 0!==a?a:`${b}-label`:void 0,j=!!w&&!w.props.visuallyHidden,k=o.isValidElement(m.validation)?m.validation.props.variant:void 0,C=p.find(e=>yx.some(t=>wx(e,t))),S=wx(C,Pm)||wx(C,Tb),O=wx(C,Tb),M=S||"horizontal"===c,A=p.filter(e=>e!==C),T={id:b,disabled:v,required:l,captionId:x,validationMessageId:y,labelId:N},I=o.isValidElement(C)?o.cloneElement(C,M?{id:b,disabled:v,required:l&&!O,"aria-describedby":x}:Object.assign({id:b,disabled:v,required:l,validationStatus:k,"aria-describedby":[y,x].filter(Boolean).join(" ")||void 0},C.props)):null;return f.jsx(Kb.Provider,{value:T,children:M?f.jsxs("div",Object.assign({ref:t,className:et(fx,m.leadingVisual&&vx,n),"data-component":"FormControl","data-layout":"horizontal","data-disabled":v,"data-required":l,"data-has-leading-visual":!!m.leadingVisual||void 0},u,{children:[f.jsxs("div",{className:bx,children:[I,A]}),m.leadingVisual,f.jsxs("div",{className:xx,children:[m.label,m.caption]})]})):f.jsxs("div",Object.assign({ref:t,className:et(hx,j&&gx,n),"data-component":"FormControl","data-layout":"vertical","data-disabled":v,"data-required":l,"data-has-label":!!j||void 0},u,{children:[m.label,I,A,m.validation,m.caption]}))})}Nx.displayName="FormControl";var jx=tt(Nx);const kx=e=>{const{id:t,disabled:a,required:n,captionId:i,validationMessageId:r}=o.useContext(Kb);return Object.assign({id:t,disabled:a,required:n,"aria-describedby":[r,i].filter(Boolean).join(" ")||void 0},e)},Cx=Object.assign(jx,{Label:nx,Caption:Qb,LeadingVisual:lx,Validation:px}),Sx={when:{narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"}};function Ox(e,t){const a=e,{as:n="div",className:i,when:r}=a,o=s(a,["as","className","when"]),l=Array.isArray(r)?r:[r];return f.jsx(n,Object.assign({ref:t,className:et(l.map(e=>Sx.when[e]),i),"data-component":"Hidden","data-when":l.join(" ")},o))}Ox.displayName="Hidden";var Mx=tt(Ox);const Ax=Xe("image",{variants:{fit:{contain:"image-fit-contain",cover:"image-fit-cover",fill:"image-fit-fill",none:"image-fit-none","scale-down":"image-fit-scale-down"},borderRadius:{none:"image-radius-none",small:"image-radius-small",medium:"image-radius-medium",large:"image-radius-large",full:"image-radius-full"}}});function Tx(e,t){const a=e,{as:n="img",className:i,alt:r="",borderRadius:l="none",fit:c="cover",fallbackSrc:d,loading:u="lazy",src:m,onError:p}=a,h=s(a,["as","className","alt","borderRadius","fit","fallbackSrc","loading","src","onError"]),[g,v]=o.useState(void 0),b=void 0!==d&&void 0!==m&&m===g;return f.jsx(n,Object.assign({ref:t,alt:r,src:b?d:m,loading:u,onError:e=>{v(m),null==p||p(e)},className:et(Ax({borderRadius:l,fit:c}),i),"data-component":"Image","data-border-radius":l,"data-fit":c,"data-fallback":b||void 0},h))}Tx.displayName="Image";var Ix=tt(Tx);const Dx="inline-message-icon",Lx=Xe("inline-message",{variants:{size:{small:"inline-message-small",medium:"inline-message-medium"},variant:{critical:"inline-message-critical",success:"inline-message-success",unavailable:"inline-message-unavailable",warning:"inline-message-warning"}}}),zx={critical:Ot,success:ft,unavailable:Ht,warning:Ht},Ex=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Px(e,t){const{className:a,children:n,size:i="medium",variant:r,leadingVisual:o}=e,l=s(e,["className","children","size","variant","leadingVisual"]),c=r?zx[r]:It;return f.jsxs("div",Object.assign({ref:t,className:et(Lx({size:i,variant:r}),a),"data-component":"InlineMessage","data-size":i,"data-variant":r},l,{children:[f.jsx("span",{className:Dx,"data-component":"InlineMessage.Icon",children:void 0===o?f.jsx(c,{}):Ex(o)}),f.jsx("span",{"data-component":"InlineMessage.Content",children:n})]}))}Px.displayName="InlineMessage";var $x=tt(Px);const Rx=([e,...t])=>{var a;return(null!==(a=null==e?void 0:e.toUpperCase())&&void 0!==a?a:"")+t.join("").toLowerCase()},Bx=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"⌥":"Alt",control:"⌃",shift:"⇧",meta:"apple"===e?"⌘":"windows"===e?"Win":"Meta",mod:"apple"===e?"⌘":"⌃",pageup:"PgUp",pagedown:"PgDn",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",plus:"+",backspace:"⌫",delete:"Del",space:"␣",tab:"⇥",enter:"⏎",escape:"Esc",function:"Fn",capslock:"CapsLock",insert:"Ins",printscreen:"PrtScn"}))(t)[e])&&void 0!==a?a:Rx(e)},Vx=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"Option":"Alt",meta:"apple"===e?"Command":"windows"===e?"Windows":"Meta",mod:"apple"===e?"Command":"Control","+":"Plus",pageup:"Page Up",pagedown:"Page Down",arrowup:"Up Arrow",arrowdown:"Down Arrow",arrowleft:"Left Arrow",arrowright:"Right Arrow",capslock:"Caps Lock",printscreen:"Print Screen"}))(t)[e])&&void 0!==a?a:Rx(e)},_x=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"option":"alt",meta:"apple"===e?"command":"windows"===e?"Windows":"meta",mod:"apple"===e?"command":"control",pageup:"page up",pagedown:"page down",arrowup:"up arrow",arrowdown:"down arrow",arrowleft:"left arrow",arrowright:"right arrow",capslock:"caps lock",printscreen:"print screen","`":"backtick","~":"tilde","!":"exclamation point","@":"at","#":"hash",$:"dollar sign","%":"percent","^":"caret","&":"ampersand","*":"asterisk","(":"left parenthesis",")":"right parenthesis",_:"underscore","-":"dash","+":"plus","=":"equals","[":"left bracket","{":"left curly brace","]":"right bracket","}":"right curly brace","\\":"backslash","|":"pipe",";":"semicolon",":":"colon","'":"single quote",'"':"double quote",",":"comma","<":"left angle bracket",".":"period",">":"right angle bracket","/":"forward slash","?":"question mark"," ":"space"}))(t)[e])&&void 0!==a?a:e.toLowerCase()},Fx={control:1,meta:2,alt:3,option:4,shift:5,function:6},Hx=e=>{var t;return null!==(t=Fx[e])&&void 0!==t?t:1/0},Wx=e=>e.split("+").map(e=>e.toLowerCase()).sort((e,t)=>Hx(e)-Hx(t)),Gx=e=>e.split(" "),qx=(e,t)=>Gx(e).map(e=>((e,t)=>Wx(e).map(e=>_x(e,t)).join(" "))(e,t)).join(" then "),Kx=(e,t)=>qx(e,t),Ux=e.createContext(null),Yx=()=>()=>{},Zx=()=>{const e="undefined"==typeof navigator?"":`${navigator.platform} ${navigator.userAgent}`;return/mac|iphone|ipad|ipod/i.test(e)?"apple":/win/i.test(e)?"windows":"other"},Qx=()=>"other",Xx=()=>{const t=e.useContext(Ux),a=e.useSyncExternalStore(Yx,Zx,Qx);return null!=t?t:a},Jx="sr-only";function ey(e){const{name:t,format:a="condensed"}=e,n=Xx();return f.jsxs(f.Fragment,{children:[f.jsx("span",{className:Jx,children:_x(t,n)}),f.jsx("span",{"aria-hidden":"true",children:"condensed"===a?Bx(t,n):Vx(t,n)})]})}ey.displayName="KeybindingHint.Key";const ty=Xe("keybinding-hint-chord",{variants:{variant:{normal:"keybinding-hint-chord-normal",onEmphasis:"keybinding-hint-chord-on-emphasis",onPrimary:"keybinding-hint-chord-on-primary"},size:{normal:"keybinding-hint-chord-size-normal",small:"keybinding-hint-chord-size-small"}}});function ay(e){const{keys:t,format:a="condensed",variant:n="normal",size:i="normal"}=e;return f.jsx("span",{className:et(ty({variant:n,size:i})),"data-component":"KeybindingHint.Chord",children:Wx(t).map((e,t)=>f.jsxs(o.Fragment,{children:[t>0&&"full"===a?f.jsx("span",{"aria-hidden":"true",children:" + "}):" ",f.jsx(ey,{name:e,format:a})]},t))})}ay.displayName="KeybindingHint.Chord";const ny="keybinding-hint",iy="sr-only";function ry(e,t){const{className:a,keys:n,format:i="condensed",variant:r="normal",size:l="normal"}=e,c=s(e,["className","keys","format","variant","size"]);return f.jsx("kbd",Object.assign({ref:t,className:et(ny,a),"data-component":"KeybindingHint","data-format":i,"data-variant":r,"data-size":l},c,{children:Gx(n).map((e,t)=>f.jsxs(o.Fragment,{children:[t>0?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:iy,children:"then"})," "]}):null,f.jsx(ay,{keys:e,format:i,variant:r,size:l})]},t))}))}ry.displayName="KeybindingHint";var oy=tt(ry);const sy=Xe("label",{variants:{size:{small:"label-small",medium:"label-medium",large:"label-large"},variant:{default:"label-default",primary:"label-primary",secondary:"label-secondary",accent:"label-accent",success:"label-success",attention:"label-attention",severe:"label-severe",danger:"label-danger",done:"label-done",sponsors:"label-sponsors"}}});function ly(e,t){const a=e,{as:n="span",className:i,size:r="small",variant:o="default"}=a,l=s(a,["as","className","size","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(sy({size:r,variant:o}),i),"data-component":"Label","data-size":r,"data-variant":o},l))}ly.displayName="Label";var cy=tt(ly);function dy(e,t){const a=e,{as:n="a"}=a,i=s(a,["as"]);return f.jsx(gn,Object.assign({ref:t,as:n,"data-component":"LinkButton"},i))}dy.displayName="LinkButton";var uy=tt(dy);const my="nav-list-heading",py="sr-only";function hy(e){const{as:t="h2",visuallyHidden:a=!1,className:n}=e,i=s(e,["as","visuallyHidden","className"]);return f.jsx(wa,Object.assign({as:t,size:"small",className:et(a?py:my,n),"data-component":"NavList.Heading"},i))}hy.displayName="NavList.Heading";const gy=o.createContext(null),fy=o.createContext({depth:0}),vy=o.createContext({buttonId:"",subNavId:"",isOpen:!1}),by=e=>{const t=null===e?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},xy={heading:hy},yy={container:"NavList"};function wy(e,t){var a,n;const{children:i,className:r,"aria-label":l,"aria-labelledby":c}=e,d=s(e,["children","className","aria-label","aria-labelledby"]),[u,m]=va(i,xy),p=Jt(),h=u.heading,g=h?null!==(a=h.props.id)&&void 0!==a?a:p:void 0,v=h?(b=null!==(n=h.props.as)&&void 0!==n?n:"h2",Number.parseInt(b.slice(1),10)):null;var b;const x=null!=c?c:l?void 0:g;return f.jsx("nav",Object.assign({ref:t,"aria-label":l,"aria-labelledby":x,className:et(r),"data-component":"NavList"},d,{children:f.jsxs(gy.Provider,{value:v,children:[h?o.cloneElement(h,{id:g}):null,f.jsx(Oa.Provider,{value:yy,children:f.jsx(Bn,{children:m})})]})}))}wy.displayName="NavList";var Ny=o.forwardRef(wy);function jy(e){const{title:t,children:a,hideDivider:n=!1}=e,i=s(e,["title","children","hideDivider"]),r=o.useContext(gy);return f.jsxs(f.Fragment,{children:[n?null:f.jsx(Bn.Divider,{}),f.jsxs(Bn.Group,Object.assign({"data-component":"NavList.Group"},i,{children:[t?f.jsx(Bn.GroupHeading,{as:by(r),children:t}):null,a]}))]})}jy.displayName="NavList.Group";const ky="nav-list-chevron",Cy={trailingVisual:Bn.TrailingVisual},Sy=e=>{if(!o.isValidElement(e))return!1;const t=e.props["aria-current"];return!(!Boolean(t)||"false"===t)||o.Children.toArray(e.props.children).some(Sy)};function Oy(e){var t;const{children:a,subNav:n,defaultOpen:i,className:r}=e,s=Jt(),l=Jt(),c=o.useRef(null),d=o.useMemo(()=>Sy(n),[n]),[u,m]=o.useState(null!=i?i:d),[p,h]=o.useState(d);Kn(()=>{var e;const t=d||Boolean(null===(e=c.current)||void 0===e?void 0:e.querySelector("[aria-current]:not([aria-current='false'])"));h(t),t&&m(!0)},[d,n]);const g=o.useMemo(()=>({buttonId:s,subNavId:l,isOpen:u}),[s,l,u]),[v,b]=va(a,Cy);return f.jsx(vy.Provider,{value:g,children:f.jsxs(Bn.Item,{id:s,active:!u&&p,"aria-expanded":u,"aria-controls":l,onSelect:()=>m(e=>!e),className:r,"data-component":"NavList.Item",children:[b,f.jsxs(Bn.TrailingVisual,{children:[null===(t=v.trailingVisual)||void 0===t?void 0:t.props.children,f.jsx(bt,{className:ky})]}),f.jsx(Bn.SubItem,{children:o.cloneElement(n,{ref:c})})]})})}Oy.displayName="NavList.ItemWithSubNav";const My="nav-list-sub-nav",Ay="nav-list-sub-nav-items";function Ty(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{buttonId:r,subNavId:l,isOpen:c}=o.useContext(vy),{depth:d}=o.useContext(fy),u=o.useMemo(()=>({depth:d+1}),[d]);return!r||!l||d>=4?null:f.jsx(fy.Provider,{value:u,children:f.jsx("ul",Object.assign({ref:t,id:l,hidden:!c,"aria-labelledby":r,className:et(My,Ay,a),"data-component":"NavList.SubNav","data-depth":d+1},i,{children:n}))})}Ty.displayName="NavList.SubNav";var Iy=tt(Ty);const Dy={subNav:Iy},Ly=Bn.LinkItem;function zy(e,t){const a=e,{as:n,children:i,className:r,defaultOpen:o,"aria-current":l}=a,c=s(a,["as","children","className","defaultOpen","aria-current"]),[d,u]=va(i,Dy);return d.subNav?f.jsx(Oy,{subNav:d.subNav,defaultOpen:o,className:r,children:u}):f.jsx(Ly,Object.assign({ref:t,as:n,"aria-current":l,active:Boolean(l)&&"false"!==l,className:r,"data-component":"NavList.Item"},c,{children:i}))}zy.displayName="NavList.Item";var Ey=tt(zy);const Py=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function $y(e,t){const{label:a="Show more",pages:n=0,items:i,renderItem:r}=e,l=s(e,["label","pages","items","renderItem"]),[c,d]=o.useState(0),u=Jt(),m=i.length/n,p=0===n?i.length:Math.ceil(m*c),h=1===c?0:p-Math.floor(m);return Kn(()=>{if(0===c)return;const e=document.querySelector(`[data-expand-focus-target="${u}"]`);null==e||e.focus()},[c,u]),f.jsxs(f.Fragment,{children:[c>0?i.slice(0,p).map((e,t)=>{var a;const{text:n,leadingVisual:i,trailingVisual:o,trailingAction:l}=e,c=s(e,["text","leadingVisual","trailingVisual","trailingAction"]),d=t===h?u:void 0;return r?r(Object.assign(Object.assign({},e),{"data-expand-focus-target":d})):f.jsxs(Ey,Object.assign({"data-expand-focus-target":d},c,{children:[i?f.jsx(Bn.LeadingVisual,{children:f.jsx(i,{})}):null,n,o?f.jsx(Bn.TrailingVisual,{children:Py(o)}):null,l?f.jsx(Bn.TrailingAction,Object.assign({},l)):null]}),null!==(a=e.id)&&void 0!==a?a:t)}):null,c<n||0===c?f.jsxs(Bn.Item,Object.assign({ref:t,as:"button","aria-expanded":!1,onSelect:()=>d(e=>e+1),"data-component":"NavList.GroupExpand"},l,{children:[a,f.jsx(Bn.TrailingVisual,{children:f.jsx(st,{})})]})):null]})}$y.displayName="NavList.GroupExpand";var Ry=o.forwardRef($y);const By="nav-list-group-heading";function Vy(e){const{as:t,className:a}=e,n=s(e,["as","className"]),i=o.useContext(gy);return f.jsx(Bn.GroupHeading,Object.assign({as:null!=t?t:by(i),className:et(By,a),"data-component":"NavList.GroupHeading"},n))}Vy.displayName="NavList.GroupHeading";const _y=ga(Vy,Va),Fy=Object.assign(Ny,{Heading:hy,Item:Ey,SubNav:Iy,Group:jy,GroupHeading:_y,GroupExpand:Ry,Description:Pa,LeadingVisual:on,TrailingVisual:Cn,TrailingAction:kn,Divider:Ra}),Hy=Xe("page-content",{variants:{width:{full:"page-content-width-full",medium:"page-content-width-medium",large:"page-content-width-large",xlarge:"page-content-width-xlarge"},padding:{none:"page-content-padding-none",condensed:"page-content-padding-condensed",normal:"page-content-padding-normal",spacious:"page-content-padding-spacious"},gap:{none:"page-content-gap-none",condensed:"page-content-gap-condensed",normal:"page-content-gap-normal",spacious:"page-content-gap-spacious"}}});function Wy(e,t){const a=e,{as:n="main",className:i,width:r="full",padding:o="none",gap:l="normal"}=a,c=s(a,["as","className","width","padding","gap"]);return f.jsx(n,Object.assign({ref:t,className:et(Hy({width:r,padding:o,gap:l}),i),"data-component":"PageContent","data-width":r,"data-padding":o,"data-gap":l},c))}Wy.displayName="PageContent";var Gy=tt(Wy);const qy=["narrow","regular","wide"],Ky="hidden",Uy={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Yy=e=>{return a=Ky,n=Uy,(t=e).length===qy.length?a:t.map(e=>n[e]);var t,a,n},Zy=e=>e.length>0?e.join(" "):void 0,Qy="page-content-section";function Xy(e,t){const a=e,{as:n="section",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=((e=!1)=>"boolean"==typeof e?e?[...qy]:[]:qy.filter(t=>e[t]))(r);return f.jsx(n,Object.assign({ref:t,className:et(Qy,i,Yy(l)),"data-component":"PageContent.Section","data-hidden":Zy(l)},o))}Xy.displayName="PageContent.Section";var Jy=tt(Xy);const ew=Object.assign(Gy,{Section:Jy}),tw=["narrow","regular","wide"],aw="hidden",nw={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},iw=(e=!1)=>"boolean"==typeof e?e?[...tw]:[]:tw.filter(t=>e[t]),rw=(e,t,a)=>e.length===tw.length?t:e.map(e=>a[e]),ow=e=>rw(e,aw,nw),sw=e=>e.length>0?e.join(" "):void 0;var lw=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=iw(r);return f.jsx(n,Object.assign({ref:t,className:et(i,ow(l)),"data-hidden":sw(l)},o))});const cw="page-footer-navigation";function dw(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(lw,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(cw,a),"data-component":"PageFooter.Navigation"},o))}dw.displayName="PageFooter.Navigation";var uw=tt(dw);const mw={root:"page-footer",text:"page-footer-text",variant:{normal:"page-footer-normal",condensed:"page-footer-condensed"},narrowVariant:{normal:"page-footer-narrow-normal",condensed:"page-footer-narrow-condensed"},regularVariant:{normal:"page-footer-regular-normal",condensed:"page-footer-regular-condensed"},wideVariant:{normal:"page-footer-wide-normal",condensed:"page-footer-wide-condensed"},border:"page-footer-border",borderWhen:{narrow:"page-footer-border-narrow",regular:"page-footer-border-regular",wide:"page-footer-border-wide"}},pw=e=>{var t;const a={hasNavigation:!1};for(const n of o.Children.toArray(e))if(o.isValidElement(n)){if(n.type===o.Fragment){const e=pw(n.props.children);e.hasNavigation&&(a.hasNavigation=!0,a.navigationHidden=e.navigationHidden);continue}n.type===uw&&(a.hasNavigation=!0,a.navigationHidden=null!==(t=n.props.hidden)&&void 0!==t&&t)}return a},hw=e=>"string"==typeof e?mw.variant[e]:[(null==e?void 0:e.narrow)&&mw.narrowVariant[e.narrow],(null==e?void 0:e.regular)&&mw.regularVariant[e.regular],(null==e?void 0:e.wide)&&mw.wideVariant[e.wide]];function gw(e,t){const a=e,{as:n="footer",className:i,children:r,variant:o="normal",hasBorder:l}=a,c=s(a,["as","className","children","variant","hasBorder"]),{hasNavigation:d,navigationHidden:u}=pw(r),m=iw(!d||u);return f.jsx(n,Object.assign({ref:t,className:et(mw.root,mw.text,hw(o),l&&rw(m,mw.border,mw.borderWhen),i),"data-component":"PageFooter","data-has-border":l?"":void 0,"data-has-navigation":d?"":void 0},Qn("size-variant",o),c,{children:r}))}gw.displayName="PageFooter";var fw=tt(gw);const vw="page-footer-actions";function bw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(vw,a),"data-component":"PageFooter.Actions"},n))}bw.displayName="PageFooter.Actions";var xw=tt(bw);const yw="page-footer-copyright";function ww(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(yw,a),"data-component":"PageFooter.Copyright"},n))}ww.displayName="PageFooter.Copyright";var Nw=tt(ww);const jw="page-footer-description";function kw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(jw,a),"data-component":"PageFooter.Description"},n))}kw.displayName="PageFooter.Description";var Cw=tt(kw);const Sw="page-footer-leading-visual";function Ow(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(Sw,a),"data-component":"PageFooter.LeadingVisual"},n))}Ow.displayName="PageFooter.LeadingVisual";var Mw=tt(Ow);const Aw=Object.assign(fw,{Navigation:uw,LeadingVisual:Mw,Copyright:Nw,Actions:xw,Description:Cw}),Tw=["narrow","regular","wide"],Iw="hidden",Dw={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Lw=(e=!1)=>"boolean"==typeof e?e?[...Tw]:[]:Tw.filter(t=>e[t]),zw=(e,t,a)=>e.length===Tw.length?t:e.map(e=>a[e]),Ew=e=>zw(e,Iw,Dw),Pw=e=>e.length>0?e.join(" "):void 0;var $w=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=Lw(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Ew(l)),"data-hidden":Pw(l)},o))});const Rw="page-header-navigation";function Bw(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx($w,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(Rw,a),"data-component":"PageHeader.Navigation"},o))}Bw.displayName="PageHeader.Navigation";var Vw=tt(Bw);const _w="page-header-title-area";function Fw(e,t){const{className:a,variant:n="medium"}=e,i=s(e,["className","variant"]);return f.jsx($w,Object.assign({ref:t,className:et(_w,a),"data-component":"PageHeader.TitleArea"},Qn("size-variant",n),i))}Fw.displayName="PageHeader.TitleArea";var Hw=tt(Fw);const Ww={root:"page-header",title:"page-header-title-type",titleVariant:{subtitle:"page-header-title-subtitle",medium:"page-header-title-medium",large:"page-header-title-large"},narrowTitleVariant:{subtitle:"page-header-narrow-title-subtitle",medium:"page-header-narrow-title-medium",large:"page-header-narrow-title-large"},regularTitleVariant:{subtitle:"page-header-regular-title-subtitle",medium:"page-header-regular-title-medium",large:"page-header-regular-title-large"},wideTitleVariant:{subtitle:"page-header-wide-title-subtitle",medium:"page-header-wide-title-medium",large:"page-header-wide-title-large"},border:"page-header-border",borderWhen:{narrow:"page-header-border-narrow",regular:"page-header-border-regular",wide:"page-header-border-wide"}},Gw=e=>{var t,a;const n={hasNavigation:!1};for(const i of o.Children.toArray(e))if(o.isValidElement(i)){if(i.type===o.Fragment){const e=Gw(i.props.children);void 0!==e.titleVariant&&(n.titleVariant=e.titleVariant),e.hasNavigation&&(n.hasNavigation=!0,n.navigationHidden=e.navigationHidden);continue}i.type!==Hw?i.type===Vw&&(n.hasNavigation=!0,n.navigationHidden=null!==(a=i.props.hidden)&&void 0!==a&&a):n.titleVariant=null!==(t=i.props.variant)&&void 0!==t?t:"medium"}return n};function qw(e,t){const a=e,{as:n="div",className:i,children:r,hasBorder:o}=a,l=s(a,["as","className","children","hasBorder"]),{titleVariant:c,hasNavigation:d,navigationHidden:u}=Gw(r),m=Lw(!d||u);return f.jsx(n,Object.assign({ref:t,className:et(Ww.root,c&&Ww.title,c&&(p=c,"string"==typeof p?Ww.titleVariant[p]:[(null==p?void 0:p.narrow)&&Ww.narrowTitleVariant[p.narrow],(null==p?void 0:p.regular)&&Ww.regularTitleVariant[p.regular],(null==p?void 0:p.wide)&&Ww.wideTitleVariant[p.wide]]),o&&zw(m,Ww.border,Ww.borderWhen),i),"data-component":"PageHeader","data-has-border":o?"":void 0,"data-has-navigation":d?"":void 0},Qn("title-size-variant",c),l,{children:r}));var p}qw.displayName="PageHeader";var Kw=tt(qw);const Uw="page-header-actions";function Yw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(Uw,a),"data-component":"PageHeader.Actions"},n))}Yw.displayName="PageHeader.Actions";var Zw=tt(Yw);const Qw="page-header-breadcrumbs";function Xw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(Qw,a),"data-component":"PageHeader.Breadcrumbs"},n))}Xw.displayName="PageHeader.Breadcrumbs";var Jw=tt(Xw);const eN="page-header-context-area";function tN(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(eN,a),hidden:n,"data-component":"PageHeader.ContextArea"},i))}tN.displayName="PageHeader.ContextArea";var aN=tt(tN);const nN="page-header-context-area-actions";function iN(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(nN,a),hidden:n,"data-component":"PageHeader.ContextAreaActions"},i))}iN.displayName="PageHeader.ContextAreaActions";var rN=tt(iN);const oN="page-header-context-bar";function sN(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(oN,a),hidden:n,"data-component":"PageHeader.ContextBar"},i))}sN.displayName="PageHeader.ContextBar";var lN=tt(sN);const cN="page-header-description";function dN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(cN,a),"data-component":"PageHeader.Description"},n))}dN.displayName="PageHeader.Description";var uN=tt(dN);const mN="page-header-leading-action";function pN(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(mN,a),hidden:n,"data-component":"PageHeader.LeadingAction"},i))}pN.displayName="PageHeader.LeadingAction";var hN=tt(pN);const gN="page-header-leading-visual";function fN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(gN,a),"data-component":"PageHeader.LeadingVisual"},n))}fN.displayName="PageHeader.LeadingVisual";var vN=tt(fN);const bN="page-header-parent-link";function xN(e,t){const a=e,{className:n,children:i,hidden:r={regular:!0,wide:!0}}=a,o=s(a,["className","children","hidden"]),l=Lw(r);return f.jsxs(Ro,Object.assign({ref:t,muted:!0,className:et(bN,n,Ew(l)),"data-component":"PageHeader.ParentLink","data-hidden":Pw(l)},o,{children:[f.jsx(dt,{}),f.jsx("span",{children:i})]}))}xN.displayName="PageHeader.ParentLink";var yN=tt(xN);const wN="page-header-title";function NN(e,t){const{className:a,as:n="h2"}=e,i=s(e,["className","as"]);return f.jsx($w,Object.assign({ref:t,as:n,className:et(wN,a),"data-component":"PageHeader.Title"},i))}NN.displayName="PageHeader.Title";var jN=tt(NN);const kN="page-header-trailing-action";function CN(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(kN,a),hidden:n,"data-component":"PageHeader.TrailingAction"},i))}CN.displayName="PageHeader.TrailingAction";var SN=tt(CN);const ON="page-header-trailing-visual";function MN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(ON,a),"data-component":"PageHeader.TrailingVisual"},n))}MN.displayName="PageHeader.TrailingVisual";var AN=tt(MN);const TN=Object.assign(Kw,{ContextArea:aN,ParentLink:yN,ContextBar:lN,ContextAreaActions:rN,TitleArea:Hw,LeadingAction:hN,Breadcrumbs:Jw,LeadingVisual:vN,Title:jN,TrailingVisual:AN,TrailingAction:SN,Actions:Zw,Description:uN,Navigation:Vw}),IN={current:null},DN=e.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:IN,contentWrapperRef:IN,sidebarRef:IN,sidebarContentWrapperRef:IN}),LN="page-layout-horizontal-divider";function zN(e,t){const{className:a,style:n,variant:i="none",position:r}=e,l=s(e,["className","style","variant","position"]),{padding:c}=o.useContext(DN);return f.jsx("div",Object.assign({ref:t,className:et(LN,a),style:Object.assign({"--spacing-divider":`var(--page-layout-spacing-${c})`},n),"data-component":"PageLayout.HorizontalDivider"},Qn("variant",i),Qn("position",r),l))}zN.displayName="PageLayout.HorizontalDivider";var EN=tt(zN);const PN="page-layout-footer",$N="page-layout-hidden",RN="page-layout-footer-divider",BN="page-layout-region-content";function VN(e,t){const{className:a,style:n,children:i,padding:r="none",divider:l="none",hidden:c=!1}=e,d=s(e,["className","style","children","padding","divider","hidden"]),{rowGap:u}=o.useContext(DN);return f.jsxs("footer",Object.assign({ref:t,className:et(PN,$N,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${u})`},n),"data-component":"PageLayout.Footer"},Qn("hidden",c),d,{children:[f.jsx(EN,{variant:l,className:RN,style:{"--spacing":`var(--page-layout-spacing-${u})`}}),f.jsx("div",{className:BN,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i})]}))}VN.displayName="PageLayout.Footer";var _N=tt(VN);const FN="page-layout-header",HN="page-layout-hidden",WN="page-layout-region-content",GN="page-layout-header-divider";function qN(e,t){const{className:a,style:n,children:i,padding:r="none",divider:l="none",hidden:c=!1}=e,d=s(e,["className","style","children","padding","divider","hidden"]),{rowGap:u}=o.useContext(DN);return f.jsxs("header",Object.assign({ref:t,className:et(FN,HN,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${u})`},n),"data-component":"PageLayout.Header"},Qn("hidden",c),d,{children:[f.jsx("div",{className:WN,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i}),f.jsx(EN,{variant:l,className:GN,style:{"--spacing":`var(--page-layout-spacing-${u})`}})]}))}qN.displayName="PageLayout.Header";var KN=tt(qN);const UN=1280,YN={small:256,medium:296,large:320},ZN=e=>"object"==typeof e&&"min"in e&&"default"in e&&"max"in e,QN=e=>"small"===e||"medium"===e||"large"===e,XN=e=>QN(e)?YN[e]:ZN(e)?parseInt(e.default,10):0,JN=()=>"undefined"==typeof window?511:window.innerWidth>=UN?959:511,ej=e=>`Pane width ${e} pixels`,tj=(e,t)=>{e&&(void 0!==t.min&&e.setAttribute("aria-valuemin",String(t.min)),void 0!==t.max&&e.setAttribute("aria-valuemax",String(t.max)),void 0!==t.current&&(e.setAttribute("aria-valuenow",String(t.current)),e.setAttribute("aria-valuetext",ej(t.current))))},aj=(e,t)=>{try{localStorage.setItem(e,String(t))}catch(e){}},nj=e=>{try{const t=localStorage.getItem(e);if(null!==t){const e=Number(t);if(!Number.isNaN(e)&&e>0)return Math.round(e)}}catch(e){}return null},ij="page-layout-drag-handle",rj=e=>"ArrowLeft"===e||"ArrowRight"===e||"ArrowUp"===e||"ArrowDown"===e;function oj(e){const{className:t,handleRef:a,onDragStart:n,onDrag:i,onDragEnd:r,onDoubleClick:s,"aria-label":l,"aria-labelledby":c,"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":m,dragTargetRef:p,contentWrapperRef:h}=e,g=o.useRef({onDragStart:n,onDrag:i,onDragEnd:r});o.useEffect(()=>{g.current={onDragStart:n,onDrag:i,onDragEnd:r}});const v=o.useRef(!1),b=o.useRef(null),x=o.useRef(null),y=o.useCallback(()=>{var e,t;v.current||((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.setProperty("--drag-handle-background-color","var(--background-color-accent-emphasis)"),null==e||e.style.setProperty("--drag-handle-opacity","1"),null==e||e.style.setProperty("--drag-handle-transition","none"),null==t||t.setAttribute("data-dragging","true"),null==a||a.setAttribute("data-dragging","true")})({handle:a.current,pane:null!==(e=null==p?void 0:p.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==h?void 0:h.current)&&void 0!==t?t:null}),v.current=!0)},[a,p,h]),w=o.useCallback(()=>{var e,t;v.current&&((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.removeProperty("--drag-handle-background-color"),null==e||e.style.removeProperty("--drag-handle-opacity"),null==e||e.style.removeProperty("--drag-handle-transition"),null==t||t.removeAttribute("data-dragging"),null==a||a.removeAttribute("data-dragging")})({handle:a.current,pane:null!==(e=null==p?void 0:p.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==h?void 0:h.current)&&void 0!==t?t:null}),v.current=!1)},[a,p,h]);o.useEffect(()=>()=>{null!==b.current&&(cancelAnimationFrame(b.current),b.current=null)},[]);return f.jsx("div",{ref:a,role:"slider",tabIndex:0,"aria-label":c?void 0:null!=l?l:"Draggable pane splitter","aria-labelledby":c,"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":m,"aria-valuetext":void 0===m?void 0:ej(m),className:et(ij,t),onPointerDown:e=>{if(0===e.button){e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}g.current.onDragStart(e.clientX),y()}},onPointerMove:e=>{v.current&&(e.preventDefault(),x.current=e.clientX,null===b.current&&(b.current=requestAnimationFrame(()=>{b.current=null,null!==x.current&&(g.current.onDrag(x.current,!1),x.current=null)})))},onPointerUp:e=>e.preventDefault(),onLostPointerCapture:()=>{v.current&&(null!==b.current&&(cancelAnimationFrame(b.current),b.current=null,x.current=null),w(),g.current.onDragEnd())},onKeyDown:e=>{var t;rj(e.key)&&(e.preventDefault(),y(),g.current.onDrag("ArrowLeft"===(t=e.key)||"ArrowDown"===t?-3:3,!0))},onKeyUp:e=>{rj(e.key)&&(e.preventDefault(),w(),g.current.onDragEnd())},onDoubleClick:s,"data-component":"PageLayout.DragHandle"})}oj.displayName="PageLayout.DragHandle";const sj="page-layout-vertical-divider";function lj(e,t){const{className:a,variant:n="none",position:i}=e,r=s(e,["className","variant","position"]);return f.jsx("div",Object.assign({ref:t,className:et(sj,a),"data-component":"PageLayout.VerticalDivider"},Qn("variant",n),Qn("position",i),r))}lj.displayName="PageLayout.VerticalDivider";var cj=tt(lj);const dj=({width:e,minWidth:t,resizable:a,widthStorageKey:n,paneRef:i,handleRef:r,contentWrapperRef:s,constrainToViewport:l=!1,onResizeEnd:c,currentWidth:d})=>{const u=ZN(e),m=u?parseInt(e.min,10):t,p=u?parseInt(e.max,10):null,h=o.useMemo(()=>XN(e),[e]),g=o.useRef(n),f=o.useRef(c);Kn(()=>{g.current=n,f.current=c});const v=o.useRef(l?256:511),b=o.useCallback(()=>{const e=window.innerWidth,t=e>0?Math.max(m,e-v.current):m;return null!==p?l?Math.min(p,t):p:t},[p,m,l]),[x,y]=o.useState(()=>{var e;if("number"==typeof d)return d;return void 0===c&&!0===a&&void 0!==n&&null!==(e=nj(n))&&void 0!==e?e:h}),[w,N]=o.useState(h),[j,k]=o.useState(d),C=d!==j;C&&(k(d),"number"==typeof d?y(d):void 0!==j&&y(h)),h!==w&&(N(h),void 0!==d||C||y(h));const S=null!=d?d:x,O=o.useRef(S),[M,A]=o.useState(()=>null!=p?p:600),T=o.useRef(M);Kn(()=>{O.current=S},[S]);const I=o.useCallback(()=>XN(e),[e]),D=o.useCallback(e=>{const t=Math.round(e);O.current=t,o.startTransition(()=>{y(t)}),f.current?f.current(t):a&&g.current&&aj(g.current,t)},[a]),L=o.useRef(b);return Kn(()=>{L.current=b}),Kn(()=>{var e;if(!a)return;let t=window.innerWidth;const n=()=>{var e,a;const n=window.innerWidth,s=t<UN!=n<UN;t=n,s&&(v.current=JN());const l=L.current();null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${l}px`);const c=O.current>l;c&&(O.current=l,null===(a=i.current)||void 0===a||a.style.setProperty("--pane-width",`${l}px`)),tj(r.current,{max:l,current:O.current}),(l!==T.current||c)&&(T.current=l,o.startTransition(()=>{A(l),c&&y(l)}))};v.current=JN();const c=L.current();if(T.current=c,null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${c}px`),tj(r.current,{min:m,max:c,current:O.current}),o.startTransition(()=>{A(c)}),null!==p&&!l)return;let d=0,u=null,h=null,g=!1;const f=()=>{var e,t;g&&(g=!1,null===(e=i.current)||void 0===e||e.removeAttribute("data-dragging"),null===(t=null==s?void 0:s.current)||void 0===t||t.removeAttribute("data-dragging"))},b=()=>{(()=>{var e,t;g||(g=!0,null===(e=i.current)||void 0===e||e.setAttribute("data-dragging","true"),null===(t=null==s?void 0:s.current)||void 0===t||t.setAttribute("data-dragging","true"))})();const e=performance.now();e-d>=16?(d=e,n()):null===u&&(u=requestAnimationFrame(()=>{u=null,d=performance.now(),n()})),null!==h&&clearTimeout(h),h=setTimeout(f,150)};return window.addEventListener("resize",b),()=>{null!==u&&cancelAnimationFrame(u),null!==h&&clearTimeout(h),f(),window.removeEventListener("resize",b)}},[a,p,l,m,i,r,s]),{currentWidth:S,currentWidthRef:O,minPaneWidth:m,maxPaneWidth:M,getMaxPaneWidth:b,getDefaultWidth:I,saveWidth:D}},uj="page-layout-sidebar-wrapper",mj="page-layout-hidden",pj="page-layout-sidebar-position",hj="page-layout-sidebar-sticky",gj="page-layout-sidebar-fullscreen",fj="page-layout-sidebar",vj="page-layout-sidebar-resizable",bj="page-layout-dragging",xj="page-layout-sidebar-fullscreen-inner",yj="page-layout-sidebar-divider";function wj(e,t){const{className:a,style:n,children:i,id:r,position:l="start",width:c="medium",minWidth:d=256,currentWidth:u,onResizeEnd:m,widthStorageKey:p,padding:h="none",divider:g="none",resizable:v=!1,sticky:b=!1,responsiveVariant:x="default",hidden:y=!1,"aria-label":w,"aria-labelledby":j}=e,k=s(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","responsiveVariant","hidden","aria-label","aria-labelledby"]),{columnGap:C,sidebarRef:S,sidebarContentWrapperRef:O}=o.useContext(DN),M=o.useRef(null),A=o.useRef(0),T=o.useRef(0),I=o.useRef(0),{currentWidth:D,currentWidthRef:L,minPaneWidth:z,maxPaneWidth:E,getMaxPaneWidth:P,getDefaultWidth:$,saveWidth:R}=dj({width:c,minWidth:d,resizable:v,widthStorageKey:p,paneRef:S,handleRef:M,contentWrapperRef:O,constrainToViewport:!0,onResizeEnd:m,currentWidth:u}),B=N(t,S),V=gh(S),_=Jt(r),F=V?Object.assign({role:"region",tabIndex:0},j?{"aria-labelledby":j}:w?{"aria-label":w}:{}):{},H=e=>{var t;null===(t=S.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),L.current=e},W=f.jsx(cj,{variant:v?"line":g,position:l,className:yj,style:{"--spacing-column":`var(--page-layout-spacing-${C})`},children:v?f.jsx(oj,{handleRef:M,dragTargetRef:S,contentWrapperRef:O,"aria-valuemin":z,"aria-valuemax":E,"aria-valuenow":D,onDragStart:e=>{var t,a;A.current=e,T.current=null!==(a=null===(t=S.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:L.current,I.current=P()},onDrag:(e,t)=>{const a=t?P():I.current;if(t){const t="end"===l?-e:e,n=Math.max(z,Math.min(a,L.current+t));return void(n!==L.current&&(H(n),tj(M.current,{current:n,max:a})))}if(!S.current)return;const n=e-A.current,i=Math.max(z,Math.min(a,T.current+("end"===l?-n:n)));Math.round(i)!==Math.round(L.current)&&(H(i),tj(M.current,{current:Math.round(i),max:a}))},onDragEnd:()=>R(L.current),onDoubleClick:()=>{const e=$();H(e),tj(M.current,{current:e}),R(e)}}):null});return f.jsxs("div",Object.assign({className:et(uj,mj,pj,hj,gj,a),style:Object.assign({"--spacing-column":`var(--page-layout-spacing-${C})`},n),"data-position":l,"data-sticky":b||void 0,"data-responsive-variant":"default"===x?void 0:x},Qn("is-hidden",y),{children:["end"===l?W:null,f.jsx("div",Object.assign({ref:B,suppressHydrationWarning:v&&Boolean(p)&&!m,className:et(fj,vj,xj,bj),style:{"--spacing":`var(--page-layout-spacing-${h})`,"--pane-min-width":ZN(c)?c.min:`${d}px`,"--pane-max-width":ZN(c)?c.max:"calc(100vw - var(--sidebar-max-width-diff))","--pane-width-custom":ZN(c)?c.default:void 0,"--pane-width-size":`var(--pane-width-${QN(c)?c:"custom"})`,"--pane-width":`${D}px`},"data-component":"PageLayout.Sidebar","data-resizable":v||void 0},F,r?{id:_}:{},k,{children:i})),"start"===l?W:null]}))}wj.displayName="PageLayout.Sidebar";var Nj=tt(wj);const jj="page-layout-content-row",kj=Xe("page-layout",{variants:{hasSidebar:{true:"page-layout-has-sidebar",false:""}}}),Cj=Xe("page-layout-wrapper",{variants:{width:{full:"page-layout-width-full",medium:"page-layout-width-medium",large:"page-layout-width-large",xlarge:"page-layout-width-xlarge"}}});function Sj(e,t){const{className:a,style:n,children:i,containerWidth:r="xlarge",padding:l="normal",rowGap:c="normal",columnGap:d="normal"}=e,u=s(e,["className","style","children","containerWidth","padding","rowGap","columnGap"]),m=o.useRef(null),p=o.useRef(null),h=o.useRef(null),g=o.useRef(null),[v,b]=va(i,{header:KN,footer:_N,sidebar:Nj}),x=o.useMemo(()=>({padding:l,rowGap:c,columnGap:d,paneRef:m,contentWrapperRef:p,sidebarRef:h,sidebarContentWrapperRef:g}),[l,c,d]);return f.jsx(DN.Provider,{value:x,children:f.jsxs("div",Object.assign({ref:t,className:et(kj({hasSidebar:Boolean(v.sidebar)}),a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${l})`},n),"data-component":"PageLayout","data-has-sidebar":v.sidebar?"":void 0},u,{children:[v.sidebar,f.jsxs("div",{ref:g,className:et(Cj({width:r})),"data-page-layout-wrapper":"","data-width":r,children:[v.header,f.jsx("div",{className:jj,children:b}),v.footer]})]}))})}Sj.displayName="PageLayout";var Oj=tt(Sj);const Mj="page-layout-content-wrapper",Aj="page-layout-hidden",Tj="page-layout-dragging",Ij=Xe("page-layout-content",{variants:{width:{full:"page-layout-content-width-full",medium:"page-layout-content-width-medium",large:"page-layout-content-width-large",xlarge:"page-layout-content-width-xlarge"}}});function Dj(e,t){const{as:a="main",className:n,children:i,width:r="full",padding:l="none",hidden:c=!1}=e,d=s(e,["as","className","children","width","padding","hidden"]),{contentWrapperRef:u}=o.useContext(DN),m=N(t,u);return f.jsx(a,Object.assign({ref:m,className:et(Mj,Aj,Tj,n),"data-component":"PageLayout.Content"},Qn("is-hidden",c),d,{children:f.jsx("div",{className:et(Ij({width:r})),"data-width":r,style:{"--spacing":`var(--page-layout-spacing-${l})`},children:i})}))}Dj.displayName="PageLayout.Content";var Lj=tt(Dj);const zj="page-layout-pane-wrapper",Ej="page-layout-hidden",Pj="page-layout-pane-position",$j="page-layout-pane-sticky",Rj="page-layout-pane",Bj="page-layout-pane-resizable",Vj="page-layout-dragging",_j="page-layout-pane-horizontal-divider",Fj="page-layout-pane-vertical-divider";function Hj(e,t){var a,n,i;const{className:r,style:l,children:c,id:d,position:u="end",width:m="medium",minWidth:p=256,currentWidth:h,onResizeEnd:g,widthStorageKey:v="paneWidth",padding:b="none",divider:x="none",resizable:y=!1,sticky:w=!1,offsetHeader:j=0,hidden:k=!1,"aria-label":C,"aria-labelledby":S}=e,O=s(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","offsetHeader","hidden","aria-label","aria-labelledby"]),M=Pr(u)?"end":u,A=Pr(x)?"none":x,{rowGap:T,columnGap:I,paneRef:D,contentWrapperRef:L}=o.useContext(DN),z=o.useRef(null),E=o.useRef(0),P=o.useRef(0),$=o.useRef(0),{currentWidth:R,currentWidthRef:B,minPaneWidth:V,maxPaneWidth:_,getMaxPaneWidth:F,getDefaultWidth:H,saveWidth:W}=dj({width:m,minWidth:p,resizable:y,widthStorageKey:v,paneRef:D,handleRef:z,contentWrapperRef:L,onResizeEnd:g,currentWidth:h}),G=N(t,D),q=gh(D),K=Jt(d),U=q?Object.assign({role:"region",tabIndex:0},S?{"aria-labelledby":S}:C?{"aria-label":C}:{}):{},Y=e=>{var t;null===(t=D.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),B.current=e};return f.jsxs("div",Object.assign({className:et(zj,Ej,Pj,$j,r),style:Object.assign({"--offset-header":"number"==typeof j?`${j}px`:j,"--spacing-row":`var(--page-layout-spacing-${T})`,"--spacing-column":`var(--page-layout-spacing-${I})`},l),"data-sticky":w||void 0},Qn("is-hidden",k),Qn("position",u),{children:[f.jsx(EN,{variant:Pr(x)?x:{narrow:A,regular:"none"},position:u,className:_j,style:{"--spacing":`var(--page-layout-spacing-${T})`}}),f.jsx("div",Object.assign({ref:G,suppressHydrationWarning:y&&!g,className:et(Rj,Bj,Vj),style:{"--spacing":`var(--page-layout-spacing-${b})`,"--pane-min-width":ZN(m)?m.min:`${p}px`,"--pane-max-width":ZN(m)?m.max:"calc(100vw - var(--pane-max-width-diff))","--pane-width-custom":ZN(m)?m.default:void 0,"--pane-width-size":`var(--pane-width-${QN(m)?m:"custom"})`,"--pane-width":`${R}px`},"data-component":"PageLayout.Pane","data-resizable":y||void 0},U,d?{id:K}:{},O,{children:c})),f.jsx(cj,{variant:Pr(x)?{narrow:"none",regular:y?"line":null!==(a=x.regular)&&void 0!==a?a:"none",wide:y?"line":null!==(i=null!==(n=x.wide)&&void 0!==n?n:x.regular)&&void 0!==i?i:"none"}:{narrow:"none",regular:y?"line":A},position:u,className:Fj,style:{"--spacing":`var(--page-layout-spacing-${I})`},children:y?f.jsx(oj,{handleRef:z,dragTargetRef:D,contentWrapperRef:L,"aria-valuemin":V,"aria-valuemax":_,"aria-valuenow":R,onDragStart:e=>{var t,a;E.current=e,P.current=null!==(a=null===(t=D.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:B.current,$.current=F()},onDrag:(e,t)=>{const a=t?F():$.current;if(t){const t=Math.max(V,Math.min(a,B.current+e));return void(t!==B.current&&(Y(t),tj(z.current,{current:t,max:a})))}if(!D.current)return;const n=e-E.current,i=Math.max(V,Math.min(a,P.current+("end"===M?-n:n)));Math.round(i)!==Math.round(B.current)&&(Y(i),tj(z.current,{current:Math.round(i),max:a}))},onDragEnd:()=>W(B.current),onDoubleClick:()=>{const e=H();Y(e),tj(z.current,{current:e}),W(e)}}):null})]}))}Hj.displayName="PageLayout.Pane";var Wj=tt(Hj);const Gj=Object.assign(Oj,{Header:KN,Content:Lj,Pane:Wj,Sidebar:Nj,Footer:_N}),qj=Xe("page-sidebar",{variants:{width:{small:"page-sidebar-width-small",medium:"page-sidebar-width-medium",large:"page-sidebar-width-large"},position:{start:"page-sidebar-start",end:"page-sidebar-end"},padding:{none:"page-sidebar-padding-none",condensed:"page-sidebar-padding-condensed",normal:"page-sidebar-padding-normal",spacious:"page-sidebar-padding-spacious"},gap:{none:"page-sidebar-gap-none",condensed:"page-sidebar-gap-condensed",normal:"page-sidebar-gap-normal",spacious:"page-sidebar-gap-spacious"},sticky:{true:"page-sidebar-sticky",false:""},hasBorder:{true:"",false:""}},compoundVariants:[{hasBorder:!0,position:"start",class:"page-sidebar-border-start"},{hasBorder:!0,position:"end",class:"page-sidebar-border-end"}]});function Kj(e,t){const a=e,{as:n="aside",className:i,position:r="start",width:o="medium",padding:l="normal",gap:c="normal",sticky:d,hasBorder:u}=a,m=s(a,["as","className","position","width","padding","gap","sticky","hasBorder"]);return f.jsx(n,Object.assign({ref:t,className:et(qj({width:o,position:r,padding:l,gap:c,sticky:d,hasBorder:u}),i),"data-component":"PageSidebar","data-position":r,"data-width":o,"data-padding":l,"data-gap":c,"data-sticky":d?"":void 0,"data-has-border":u?"":void 0},m))}Kj.displayName="PageSidebar";var Uj=tt(Kj);const Yj=["narrow","regular","wide"],Zj="hidden",Qj={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Xj=e=>{return a=Zj,n=Qj,(t=e).length===Yj.length?a:t.map(e=>n[e]);var t,a,n},Jj=e=>e.length>0?e.join(" "):void 0;var ek=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=((e=!1)=>"boolean"==typeof e?e?[...Yj]:[]:Yj.filter(t=>e[t]))(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Xj(l)),"data-hidden":Jj(l)},o))});const tk="page-sidebar-actions";function ak(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(tk,a),"data-component":"PageSidebar.Actions"},n))}ak.displayName="PageSidebar.Actions";var nk=tt(ak);const ik="page-sidebar-content";function rk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(ik,a),"data-component":"PageSidebar.Content"},n))}rk.displayName="PageSidebar.Content";var ok=tt(rk);const sk="page-sidebar-footer";function lk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(sk,a),"data-component":"PageSidebar.Footer"},n))}lk.displayName="PageSidebar.Footer";var ck=tt(lk);const dk="page-sidebar-header";function uk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(dk,a),"data-component":"PageSidebar.Header"},n))}uk.displayName="PageSidebar.Header";var mk=tt(uk);const pk="block";function hk(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(ek,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(pk,a),"data-component":"PageSidebar.Navigation"},o))}hk.displayName="PageSidebar.Navigation";var gk=tt(hk);const fk="page-sidebar-section";function vk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(fk,a),"data-component":"PageSidebar.Section"},n))}vk.displayName="PageSidebar.Section";var bk=tt(vk);const xk="page-sidebar-title";function yk(e,t){const{className:a,as:n="h2"}=e,i=s(e,["className","as"]);return f.jsx(ek,Object.assign({ref:t,as:n,className:et(xk,a),"data-component":"PageSidebar.Title"},i))}yk.displayName="PageSidebar.Title";var wk=tt(yk);const Nk=Object.assign(Uj,{Header:mk,Title:wk,Actions:nk,Content:ok,Navigation:gk,Section:bk,Footer:ck}),jk=["narrow","regular","wide"],kk={root:"pagination",steps:"pagination-steps",hidden:{narrow:"pagination-hidden-narrow",regular:"pagination-hidden-regular",wide:"pagination-hidden-wide"}},Ck=Xe("pagination-step",{variants:{step:{previous:"pagination-step-previous",next:"pagination-step-next"},current:{true:"pagination-step-current",false:""},inert:{true:"pagination-step-inert",false:""}}}),Sk=({page:e,children:t})=>f.jsxs(f.Fragment,{children:["previous"===e.type?f.jsx(xt,{"data-component":"Pagination.PreviousPageIcon"}):null,t,"next"===e.type?f.jsx(yt,{"data-component":"Pagination.NextPageIcon"}):null]}),Ok=e=>`#${e}`;function Mk(e,t){const a=e,{as:n="nav",className:i,pageCount:r,currentPage:l,onPageChange:c,hrefBuilder:d=Ok,marginPageCount:u=1,surroundingPageCount:m=2,showPages:p=!0,renderPage:h}=a,g=s(a,["as","className","pageCount","currentPage","onPageChange","hrefBuilder","marginPageCount","surroundingPageCount","showPages","renderPage"]),v=o.useMemo(()=>Pg(r,l,Boolean(p),u,m),[r,l,p,u,m]),b=(e=>"object"==typeof e?jk.filter(t=>!1===e[t]):e?[]:[...jk])(p),x=v.map(e=>{const{key:t,content:a,presentational:n,props:i}=$g(e,d,t=>null==c?void 0:c(t,e.num)),r="previous"===e.type||"next"===e.type,o=Boolean(n)||Boolean(i["aria-hidden"]),s=et(Ck({step:r?e.type:void 0,current:e.selected,inert:o}));if(h&&!n)return h(Object.assign({key:t,children:f.jsx(Sk,{page:e,children:a}),number:e.num,className:s,"data-component":"Pagination.Page"},i));const l=n?"span":"a",u=r?"previous"===e.type?"Pagination.PreviousPage":"Pagination.NextPage":"Pagination.Page";return f.jsx(l,Object.assign({role:n?"presentation":void 0,className:s,"data-component":u},i,{children:f.jsx(Sk,{page:e,children:a})}),t)});return f.jsx(n,Object.assign({ref:t,"aria-label":"Pagination",className:et(kk.root,i),"data-component":"Pagination"},g,{children:f.jsx("div",{className:et(kk.steps,b.map(e=>kk.hidden[e])),"data-hidden-viewport-ranges":b.join(" ")||void 0,children:x})}))}Mk.displayName="Pagination";var Ak=tt(Mk);const Tk="placeholder";function Ik(e,t){const a=e,{as:n="div",className:i,width:r,height:o,label:l,style:c,children:d}=a,u=s(a,["as","className","width","height","label","style","children"]);return f.jsx(n,Object.assign({ref:t,className:et(Tk,i),style:Object.assign(Object.assign({},c),{"--placeholder-width":r,"--placeholder-height":o}),"data-component":"Placeholder"},u,{children:null!=d?d:l}))}Ik.displayName="Placeholder";var Dk=tt(Ik);const Lk=Xe("progress-bar-item",{variants:{variant:{accent:"progress-bar-item-accent",attention:"progress-bar-item-attention",danger:"progress-bar-item-danger",done:"progress-bar-item-done",neutral:"progress-bar-item-neutral",severe:"progress-bar-item-severe",sponsors:"progress-bar-item-sponsors",success:"progress-bar-item-success"},animated:{true:"motion-safe:shimmer",false:""}}});function zk(e,t){const a=e,{as:n="span",className:i,progress:r=0,variant:o="success",animated:l,style:c,"aria-valuenow":d}=a,u=s(a,["as","className","progress","variant","animated","style","aria-valuenow"]);return f.jsx(n,Object.assign({ref:t,role:"progressbar","aria-valuenow":null!=d?d:Math.round(Math.max(r,0)),"aria-valuemin":0,"aria-valuemax":100,className:et(Lk({variant:o,animated:l}),i),style:Object.assign(Object.assign({},c),{"--progress-bar-item-width":`${r}%`}),"data-component":"ProgressBar.Item","data-variant":o,"data-animated":l},u))}zk.displayName="ProgressBar.Item";var Ek=tt(zk);const Pk=Xe("progress-bar",{variants:{size:{small:"progress-bar-small",medium:"progress-bar-medium",large:"progress-bar-large"},inline:{true:"progress-bar-inline",false:""}}});function $k(e,t){const a=e,{as:n="span",className:i,progress:r,size:l="medium",variant:c="success",inline:d,animated:u,children:m,"aria-label":p,"aria-valuenow":h,"aria-valuetext":g}=a,v=s(a,["as","className","progress","size","variant","inline","animated","children","aria-label","aria-valuenow","aria-valuetext"]);if(m&&r)throw new Error("Pass either `progress` or children to ProgressBar, not both.");const b=o.Children.toArray(m).length>0;return f.jsx(n,Object.assign({ref:t,className:et(Pk({size:l,inline:d}),i),"data-component":"ProgressBar","data-size":l,"data-inline":d},v,{children:b?m:f.jsx(Ek,{progress:r,variant:c,animated:u,"aria-label":p,"aria-valuenow":h,"aria-valuetext":g})}))}$k.displayName="ProgressBar";var Rk=tt($k);const Bk=Object.assign(Rk,{Item:Ek}),Vk="radio-group-caption";function _k(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i}=o.useContext(Cb);return f.jsx("span",Object.assign({ref:t,id:i,className:et(Vk,a),"data-component":"RadioGroup.Caption"},n))}_k.displayName="RadioGroup.Caption";var Fk=tt(_k);const Hk="radio-group-label",Wk="radio-group-label-disabled",Gk="sr-only",qk="radio-group-label-required";function Kk(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=s(e,["className","children","visuallyHidden"]),{disabled:l,required:c}=o.useContext(Cb);return f.jsxs("span",Object.assign({ref:t,title:c?"required field":void 0,className:et(Hk,l&&Wk,i&&Gk,a),"data-component":"RadioGroup.Label","data-label-disabled":l},r,{children:[n,c?f.jsx("span",{className:qk,children:"*"}):null]}))}Kk.displayName="RadioGroup.Label";var Uk=tt(Kk);const Yk={success:ft,error:Ot},Zk="radio-group-validation-icon",Qk=Xe("radio-group-validation",{variants:{variant:{success:"radio-group-validation-success",error:"radio-group-validation-error"}}});function Xk(e,t){const{className:a,children:n,variant:i}=e,r=s(e,["className","children","variant"]),{validationMessageId:l}=o.useContext(Cb),c=Yk[i];return f.jsxs("span",Object.assign({ref:t,className:et(Qk({variant:i}),a),"data-component":"RadioGroup.Validation","data-validation-status":i},r,{children:[f.jsx(c,{className:Zk,"aria-hidden":"true"}),f.jsx("span",{id:l,children:n})]}))}Xk.displayName="RadioGroup.Validation";var Jk=tt(Xk);const eC="radio-group",tC="radio-group-legend",aC="radio-group-legend-visible",nC="radio-group-body",iC="radio-group-validation-slot",rC="sr-only";function oC(e,t){const a=e,{as:n="fieldset",className:i,children:r,name:l,disabled:c,required:d,onChange:u,id:m,"aria-labelledby":p}=a,h=s(a,["as","className","children","name","disabled","required","onChange","id","aria-labelledby"]),[g,v]=va(r,{label:Uk,caption:Fk,validation:Jk}),b=Jt(m),x=g.caption?`${b}-caption`:void 0,y=g.validation?`${b}-validation`:void 0,w=!!o.isValidElement(g.label)&&!g.label.props.visuallyHidden,N={name:l,disabled:c,required:d,captionId:x,validationMessageId:y,onChange:e=>{const{value:t,checked:a}=e.currentTarget;a&&(null==u||u(t,e))}};return f.jsx(Cb.Provider,{value:N,children:f.jsxs(n,Object.assign({ref:t,id:b,disabled:c,"aria-labelledby":g.label?void 0:p,"aria-describedby":[y,x].filter(Boolean).join(" ")||void 0,className:et(eC,i),"data-component":"RadioGroup","data-disabled":c,"data-required":d},h,{children:[g.label?f.jsxs("legend",{className:et(tC,w&&aC),children:[g.label,d?f.jsx("span",{className:rC,children:", required"}):null,g.caption]}):g.caption,f.jsx("div",{className:nC,children:v}),g.validation?f.jsx("div",{className:iC,children:g.validation}):null]}))})}oC.displayName="RadioGroup";var sC=tt(oC);const lC=Object.assign(sC,{Label:Uk,Caption:Fk,Validation:Jk}),cC=1e3,dC=6e4,uC=36e5,mC=24*uC,pC=7*mC,hC=30*mC,gC=12*hC,fC="P30D",vC="on",bC=30*mC,xC=[{unit:"year",length:gC},{unit:"month",length:hC},{unit:"week",length:pC},{unit:"day",length:mC},{unit:"hour",length:uC},{unit:"minute",length:dC},{unit:"second",length:cC}],yC=["year","month","day","hour","minute","second"],wC={year:"y",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"},NC=new RegExp("^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$"),jC=e=>{const t=Math.abs(e),a=xC.find(({length:e})=>t>=e),{unit:n,length:i}=null!=a?a:xC[xC.length-1];return{value:Math.sign(e)*Math.round(t/i),unit:n,length:i}},kC=e=>{const{value:t,unit:a}=jC(e);return"second"===a?"1m":`${Math.abs(t)}${wC[a]}`},CC=(e,t)=>{const a=((e,t)=>{const a=Math.abs(e),n=Math.floor(a/cC),i=Math.floor(n/60),r=Math.floor(i/60),o=Math.floor(r/24),s=Math.floor(o/30),l=Math.floor(s/12),c={year:l,month:s-12*l,day:o-30*s,hour:r-24*o,minute:i-60*r,second:n-60*i};return yC.slice(0,yC.indexOf(t)+1).map(e=>({unit:e,count:c[e]}))})(e,t).filter(({count:e})=>e>0);return 0===a.length?`0${wC[t]}`:a.map(({unit:e,count:t})=>`${t}${wC[e]}`).join(" ")},SC=(e,t)=>{const{value:a,unit:n}=jC(e);return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(a,n)},OC=(e,t,a,n)=>new Intl.DateTimeFormat(n,((e,t,a)=>{var n,i,r;const o=e.getFullYear()===new Date(t).getFullYear();return{weekday:a.weekday,year:null!==(n=a.year)&&void 0!==n?n:o?void 0:"numeric",month:null!==(i=a.month)&&void 0!==i?i:"short",day:null!==(r=a.day)&&void 0!==r?r:"numeric",hour:a.hour,minute:a.minute,second:a.second,timeZoneName:a.timeZoneName}})(e,t,a)).format(e),MC=(e,t)=>new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e),AC=(e,t,a)=>{var n,i,r;const{format:o,tense:s,precision:l,threshold:c,prefix:d,dateOptions:u,locale:m}=a,p=e.getTime()-t;if("elapsed"===o)return{text:CC(p,l),updateDelay:null!==(i=null===(n=xC.find(({unit:e})=>e===l))||void 0===n?void 0:n.length)&&void 0!==i?i:cC};const h=null!==(r=(e=>{const t=NC.exec(e);if(!t||t.slice(1).every(e=>void 0===e))return null;const[,a,n,i,r,o,s,l]=t;return Number(null!=a?a:0)*gC+Number(null!=n?n:0)*hC+Number(null!=i?i:0)*pC+Number(null!=r?r:0)*mC+Number(null!=o?o:0)*uC+Number(null!=s?s:0)*dC+Number(null!=l?l:0)*cC})(c))&&void 0!==r?r:bC,g="auto"===s||"past"===s&&p<=0||"future"===s&&p>=0;if(Math.abs(p)<=h&&g){const{length:e}=jC(p);return{text:"micro"===o?kC(p):SC(p,m),updateDelay:e}}const f=OC(e,t,u,m),v=p-h;return{text:d?`${d} ${f}`:f,updateDelay:p<=0?null:v>0?v:p}};function TC(e,t){const a=e,{as:n="time",children:i,date:r,datetime:l,format:c="auto",tense:d="auto",precision:u="second",threshold:m=fC,prefix:p=vC,noTitle:h,weekday:g,year:v,month:b,day:x,hour:y,minute:w,second:N,timeZoneName:j}=a,k=s(a,["as","children","date","datetime","format","tense","precision","threshold","prefix","noTitle","weekday","year","month","day","hour","minute","second","timeZoneName"]),C=((e,t)=>{const a=null!=e?e:void 0===t?void 0:new Date(t);return a&&!Number.isNaN(a.getTime())?a:void 0})(r,l),[S,O]=o.useState(()=>Date.now()),{text:M,updateDelay:A}=C?AC(C,S,{format:c,tense:d,precision:u,threshold:m,prefix:p,dateOptions:{weekday:g,year:v,month:b,day:x,hour:y,minute:w,second:N,timeZoneName:j}}):{text:"",updateDelay:null};return o.useEffect(()=>{if(null===A)return;const e=window.setTimeout(()=>{O(Date.now())},A);return()=>{window.clearTimeout(e)}},[S,A]),f.jsx(n,Object.assign({ref:t,dateTime:null==C?void 0:C.toISOString(),title:h||!C?void 0:MC(C),"data-component":"RelativeTime","data-format":c,"data-tense":d},k,{children:null!=i?i:M}))}TC.displayName="RelativeTime";var IC=tt(TC);const DC=e.createContext({}),LC="tooltip",zC="tooltip-open motion-safe:[&:popover-open]:animate-in motion-safe:[&:popover-open]:fade-in motion-safe:[&:popover-open]:duration-100",EC="tooltip-open-polyfilled motion-safe:[&[class~=':popover-open']]:animate-in motion-safe:[&[class~=':popover-open']]:fade-in motion-safe:[&[class~=':popover-open']]:duration-100",PC="tooltip-bridge",$C="tooltip-bridge-vertical",RC="tooltip-bridge-horizontal",BC={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},VC={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},_C={short:50,medium:400,long:1200},FC=["a[href]","button:not([disabled])","summary","select","input:not([type=hidden])","textarea"],HC=e=>FC.some(t=>e.matches(t))||"button"===e.getAttribute("role");function WC(e,t){const{className:a,children:n,text:r,id:l,direction:c="s",type:d="description",delay:u="short"}=e,m=s(e,["className","children","text","id","direction","type","delay"]),p=Jt(l),h=o.Children.only(n),g=o.useRef(null),v=N(t,g),b=o.useRef(null),x=o.useRef(null),y=o.useRef(null),[w,j]=o.useState(!1),[k,C]=o.useState(c),S=()=>{null!==x.current&&(window.clearTimeout(x.current),x.current=null),null!==y.current&&(window.clearTimeout(y.current),y.current=null)};o.useEffect(()=>S,[]);const O=()=>{var e;const t=b.current,a=g.current;if(!t||!a)return;try{t.showPopover()}catch(e){return}j(!0);const{side:n,align:i}=BC[c],{top:r,left:o,anchorSide:s,anchorAlign:l}=ui(t,a,{side:n,align:i});C(null!==(e=VC[`${s}-${l}`])&&void 0!==e?e:c),t.style.top=`${r}px`,t.style.left=`${o}px`},M=()=>{var e;S(),j(!1);try{null===(e=b.current)||void 0===e||e.hidePopover()}catch(e){}};o.useEffect(()=>{const e=b.current,t=g.current;if(e&&t){if(!HC(a=t)&&!Array.from(a.childNodes).some(e=>e instanceof HTMLElement&&HC(e)||Array.from(e.childNodes).some(e=>e instanceof HTMLElement&&HC(e))))throw new Error("The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or an equivalent element instead.");var a;"undefined"==typeof window||i.isSupported()||i.apply(),e.setAttribute("popover","manual")}},[]),Zn(e=>{w&&(e.preventDefault(),M())});const A=o.useMemo(()=>({tooltipId:p}),[p]);if(!o.isValidElement(h))return null;const T=h.props,I=o.cloneElement(h,{ref:v,"aria-describedby":"description"===d?[T["aria-describedby"],p].filter(Boolean).join(" "):T["aria-describedby"],"aria-labelledby":"label"===d?p:T["aria-labelledby"],onFocus:e=>{var t;try{if(!e.target.matches(":focus-visible"))return}catch(e){}O(),null===(t=T.onFocus)||void 0===t||t.call(T,e)},onBlur:e=>{var t;M(),null===(t=T.onBlur)||void 0===t||t.call(T,e)},onMouseOverCapture:e=>{x.current=window.setTimeout(()=>{var t;null!==x.current&&(O(),null===(t=T.onMouseEnter)||void 0===t||t.call(T,e))},_C[u])},onMouseLeave:e=>{var t;M(),null===(t=T.onMouseLeave)||void 0===t||t.call(T,e)},onTouchEnd:e=>{var t;null===(t=T.onTouchEnd)||void 0===t||t.call(T,e),y.current=window.setTimeout(M,10)}});return f.jsxs(DC.Provider,{value:A,children:[I,f.jsx("span",Object.assign({ref:b,id:p,role:"description"===d?"tooltip":void 0,"aria-hidden":"true",className:et(LC,zC,EC,PC,$C,RC,a),onMouseEnter:O,onMouseLeave:M,"data-component":"Tooltip","data-direction":k},m,{children:r}))]})}WC.displayName="Tooltip";var GC=tt(WC);const qC="segmented-control-segment",KC="segmented-control-segment-separator",UC="segmented-control-segment-separator-hidden",YC="segmented-control-button",ZC="segmented-control-button-selected",QC="segmented-control-button-disabled",XC="segmented-control-content",JC="segmented-control-content-selected",eS="segmented-control-content-interactive",tS=e=>{const t=e;return o.isValidElement(e)?e:f.jsx(t,{})};function aS(e){const{component:t,className:a,children:n,selected:i,disabled:r,tooltip:o,tooltipType:l,tooltipDirection:c,"aria-disabled":d}=e,u=s(e,["component","className","children","selected","disabled","tooltip","tooltipType","tooltipDirection","aria-disabled"]),m=Boolean(r)||!0===d||"true"===d,p=f.jsx("button",Object.assign({type:"button","aria-pressed":i,"aria-disabled":m||void 0,className:et(YC,i&&ZC,m&&!i&&QC,a)},u,{children:f.jsx("span",{className:et(XC,i&&JC,!i&&!m&&eS),children:n})}));return f.jsx("li",{className:et(qC,KC,UC),"data-component":t,"data-selected":i?"":void 0,children:o?f.jsx(GC,{text:o,type:l,direction:c,children:p}):p})}aS.displayName="SegmentedControlSegment";const nS="segmented-control-visual",iS="segmented-control-visual-disabled",rS="segmented-control-text",oS="segmented-control-text-hidden",sS="segmented-control-counter";function lS(e){const{children:t,className:a,count:n,leadingVisual:i,selected:r,disabled:o,defaultSelected:l}=e,c=s(e,["children","className","count","leadingVisual","selected","disabled","defaultSelected"]);return f.jsxs(aS,Object.assign({component:"SegmentedControl.Button",className:a,selected:r,disabled:o},c,{children:[i?f.jsx("span",{className:et(nS,o&&iS),"data-component":"SegmentedControl.LeadingVisual",children:tS(i)}):null,f.jsx("span",{className:et(rS,oS),"data-component":"SegmentedControl.Text","data-text":t,children:t}),void 0!==n?f.jsx("span",{className:sS,children:f.jsx(un,{children:n})}):null]}))}lS.displayName="SegmentedControl.Button";const cS="segmented-control-icon-button",dS="segmented-control-icon-visual",uS="segmented-control-visual-disabled";function mS(e){const{"aria-label":t,className:a,description:n,icon:i,selected:r,disabled:o,tooltipDirection:l,defaultSelected:c}=e,d=s(e,["aria-label","className","description","icon","selected","disabled","tooltipDirection","defaultSelected"]);return f.jsx(aS,Object.assign({component:"SegmentedControl.IconButton",className:et(cS,a),selected:r,disabled:o,"aria-label":n?t:void 0,tooltip:null!=n?n:t,tooltipType:n?void 0:"label",tooltipDirection:l},d,{children:f.jsx("span",{className:et(dS,o&&uS),"data-component":"SegmentedControl.Icon",children:tS(i)})}))}mS.displayName="SegmentedControl.IconButton";const pS="segmented-control-dropdown",hS=Xe("segmented-control",{variants:{size:{small:"segmented-control-small",medium:""}}}),gS=e=>e.type===lS,fS=e=>e.type===mS,vS=e=>{if(void 0!==e)return gS(e)?e.props.children:fS(e)?e.props["aria-label"]:void 0},bS=e=>{var t;return void 0===e?null:gS(e)?null!==(t=e.props.leadingVisual)&&void 0!==t?t:null:fS(e)?e.props.icon:null},xS=e=>{const t=e.props["aria-disabled"];return!0===e.props.disabled||!0===t||"true"===t};function yS(e){const t=e,{"aria-label":a,"aria-labelledby":n,className:i,children:r,fullWidth:l,onChange:c,size:d="medium",variant:u="default"}=t,m=s(t,["aria-label","aria-labelledby","className","children","fullWidth","onChange","size","variant"]),p=(e=>o.Children.toArray(e).filter(e=>o.isValidElement(e)))(r),h=void 0===c||p.some(e=>void 0!==e.props.defaultSelected),g=p.findIndex(e=>e.props.defaultSelected||e.props.selected),v=-1===g?0:g,[b,x]=o.useState(v),y=h?b:v,w=p[y],N=(e,t,a)=>{var n,i;xS(t)||(h&&x(e),null==c||c(e),null===(i=(n=t.props).onClick)||void 0===i||i.call(n,a))},j=f.jsx("ul",Object.assign({"aria-label":a,"aria-labelledby":n,className:et(hS({size:d}),i),"data-component":"SegmentedControl","data-size":d},Qn("full-width",l),Qn("variant",u),m,{children:p.map((e,t)=>o.cloneElement(e,{selected:t===y,onClick:a=>N(t,e,a)}))}));return Pr(u)&&Object.values(u).includes("dropdown")?f.jsxs(f.Fragment,{children:[f.jsx("div",Object.assign({className:pS,"data-component":"SegmentedControl.Dropdown"},Qn("variant",u),{children:f.jsxs(yi,{children:[f.jsx(yi.Button,{"aria-label":a&&`${vS(w)}, ${a}`,leadingVisual:bS(w),children:vS(w)}),f.jsx(yi.Overlay,{"aria-labelledby":n,children:f.jsx(Bn,{selectionVariant:"single",children:p.map((e,t)=>{const a=bS(e);return f.jsxs(Bn.Item,{selected:t===y,disabled:xS(e),onSelect:a=>N(t,e,a),children:[a?f.jsx(Bn.LeadingVisual,{children:tS(a)}):null,vS(e)]},t)})})})]})})),j]}):j}yS.displayName="SegmentedControl";const wS=Object.assign(yS,{Button:lS,IconButton:mS});function NS(e,t){return f.jsx("optgroup",Object.assign({ref:t,"data-component":"Select.OptGroup"},e))}NS.displayName="Select.OptGroup";var jS=tt(NS);function kS(e,t){return f.jsx("option",Object.assign({ref:t,"data-component":"Select.Option"},e))}kS.displayName="Select.Option";var CS=tt(kS);const SS=Object.assign(Eb,{Option:CS,OptGroup:jS});function OS(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),r=kx(i),{required:l}=r,c=s(r,["required"]),{labelId:d}=o.useContext(Kb),u=Jt();return f.jsx(vn,Object.assign({ref:t,type:"button","aria-labelledby":d?`${u} ${d}`:void 0,className:et(a),"data-component":"SelectPanel.Button"},c,{children:d?f.jsx("span",{id:u,children:n}):n}))}OS.displayName="SelectPanel.Button";var MS=tt(OS);const AS=e.createContext({}),TS="select-panel-footer",IS="select-panel-footer-without-actions",DS="select-panel-footer-content",LS="select-panel-footer-content-without-actions",zS="select-panel-footer-actions";function ES(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{selectionVariant:r,onCancel:l}=o.useContext(AS),c="instant"!==r;return c||n?f.jsxs("div",Object.assign({ref:t,className:et(TS,!c&&IS,a),"data-component":"SelectPanel.Footer","data-has-actions":c?"":void 0},i,{children:[f.jsx("div",{className:et(DS,!c&&LS),children:n}),c?f.jsxs("div",{className:zS,children:[f.jsx(vn,{type:"button",size:"small",onClick:l,children:"Cancel"}),f.jsx(vn,{type:"submit",size:"small",variant:"primary",children:"Save"})]}):null]})):null}ES.displayName="SelectPanel.Footer";var PS=tt(ES);const $S="select-panel-search-input";function RS(e,t){var a;const{className:n,value:i,onChange:r,onKeyDown:l}=e,c=s(e,["className","value","onChange","onKeyDown"]),{searchQuery:d,setSearchQuery:u,searchInputRef:m,moveFocusToList:p}=o.useContext(AS),h=o.useRef(null),g=N(m,h),v=N(t,g),b=null!==(a=null!=i?i:d)&&void 0!==a?a:"";return f.jsx(Nr,Object.assign({ref:v,block:!0,leadingVisual:Rt,placeholder:"Search",value:b,onChange:e=>{null==u||u(e.currentTarget.value),null==r||r(e.currentTarget.value,e)},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),null==p||p()),null==l||l(e)},trailingAction:b?f.jsx(Nr.Action,{icon:kt,"aria-label":"Clear",onClick:()=>{var e;null==u||u(""),null==r||r("",null),null===(e=h.current)||void 0===e||e.focus()}}):void 0,className:et($S,n),"data-component":"SelectPanel.SearchInput"},c))}RS.displayName="SelectPanel.SearchInput";var BS=tt(RS);const VS="select-panel-header",_S="select-panel-header-content",FS="select-panel-header-content-with-search",HS="select-panel-header-title-row",WS="select-panel-header-title",GS="select-panel-header-heading",qS="select-panel-header-description",KS="select-panel-header-actions",US={searchInput:BS};function YS(e,t){const{className:a,children:n,onBack:i}=e,r=s(e,["className","children","onBack"]),[l,c]=va(n,US),{panelId:d,title:u,description:m,onCancel:p,onClearSelection:h}=o.useContext(AS);return f.jsxs("div",Object.assign({ref:t,className:et(VS,a),"data-component":"SelectPanel.Header"},r,{children:[f.jsxs("div",{className:et(_S,l.searchInput&&FS),"data-has-description":m?"":void 0,"data-has-search-input":l.searchInput?"":void 0,children:[f.jsxs("div",{className:HS,children:[i?f.jsx(yn,{type:"button",variant:"invisible",icon:dt,"aria-label":"Back",onClick:i,"data-component":"SelectPanel.BackButton"}):null,f.jsxs("div",{className:WS,"data-has-description":m?"":void 0,"data-has-back":i?"":void 0,children:[f.jsx(wa,{as:"h1",id:d?`${d}-title`:void 0,className:GS,children:u}),m?f.jsx("span",{id:d?`${d}-description`:void 0,className:qS,children:m}):null]})]}),f.jsxs("div",{className:KS,children:[h?f.jsx(yn,{type:"button",variant:"invisible",icon:Mt,"aria-label":"Clear selection",onClick:h,"data-component":"SelectPanel.ClearSelectionButton"}):null,f.jsx(yn,{type:"button",variant:"invisible",icon:Ct,"aria-label":"Close",onClick:p,"data-component":"SelectPanel.CloseButton"})]})]}),l.searchInput,c]}))}YS.displayName="SelectPanel.Header";var ZS=tt(YS);const QS="select-panel-form",XS="select-panel-container",JS=Xe("select-panel-backdrop",{variants:{variant:{anchored:"",modal:"select-panel-backdrop-modal motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short"},narrowVariant:{anchored:"",modal:"select-panel-backdrop-narrow-modal","full-screen":"","bottom-sheet":"select-panel-backdrop-narrow-bottom-sheet"}}}),eO=Xe("select-panel motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",{variants:{width:{small:"select-panel-width-small",medium:"select-panel-width-medium",large:"select-panel-width-large",xlarge:"select-panel-width-xlarge",auto:"select-panel-width-auto"},maxHeight:{small:"select-panel-max-height-small",medium:"select-panel-max-height-medium",large:"select-panel-max-height-large",xlarge:"select-panel-max-height-xlarge","fit-content":"select-panel-max-height-fit-content"},variant:{anchored:"select-panel-anchored",modal:""},narrowVariant:{anchored:"select-panel-narrow-anchored",modal:"select-panel-narrow-modal","full-screen":"select-panel-narrow-full-screen","bottom-sheet":"select-panel-narrow-bottom-sheet"},unplaced:{true:"invisible",false:""}}}),tO={regular:"anchored",narrow:"full-screen"},aO=e=>o.isValidElement(e)&&e.type===MS;function nO(e,t){var a,n,i,r,l,c;const{className:d,children:u,title:m,description:p,variant:h=tO,selectionVariant:g="multiple",id:v,defaultOpen:b=!1,open:x,anchorRef:y,side:w="outside-bottom",align:j="start",onCancel:k,onClearSelection:C,onSubmit:S,width:O="medium",maxHeight:M="large"}=e,A=s(e,["className","children","title","description","variant","selectionVariant","id","defaultOpen","open","anchorRef","side","align","onCancel","onClearSelection","onSubmit","width","maxHeight"]),T=Jt(v),I=o.useRef(null),D=null!=y?y:I,L=o.useRef(null),z=N(t,L),E=o.useRef(null),P=void 0!==x,[$,R]=o.useState(b),B=P?x:$,V=o.useCallback(()=>{P||R(!1)},[P]),_=o.useCallback(()=>{V(),null==k||k()},[V,k]),F=o.useCallback(()=>null==C?void 0:C(),[C]),H=o.useCallback(e=>{null==e||e.preventDefault(),V(),null==S||S(e)},[V,S]),W=o.useCallback(()=>{var e,t;null===(t=null===(e=L.current)||void 0===e?void 0:e.querySelector('[role="option"]'))||void 0===t||t.focus()},[]),G=o.useCallback(()=>{"instant"===g&&H()},[g,H]),[q,K]=o.useState(""),U=o.Children.toArray(u),Y=U.find(aO),[Z,Q]=va(U.filter(e=>e!==Y),{header:ZS,footer:PS}),X=null==Y?void 0:Y.props.onClick,J=Y?o.cloneElement(Y,{ref:D,onClick:e=>{null==X||X(e),e.defaultPrevented||(B?_():P||R(!0))},"aria-haspopup":!0,"aria-expanded":B}):null,ee=Object.assign(Object.assign({},tO),"string"==typeof h?{regular:h}:h),te=null!==(a=ee.regular)&&void 0!==a?a:"anchored",ae=ee.narrow,ne="anchored"===te||"anchored"===ae,ie=o.useRef(null),[re,oe]=o.useState(null),se=o.useCallback(()=>{const e=D.current,t=L.current;if(!e||!t)return;const a=ui(t,e,{side:w,align:j});ie.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(ie.current,a)||(ie.current=a,oe(a))},[D,w,j]);Kn(()=>{if(!B||!ne)return ie.current=null,void oe(null);se();const e=new ResizeObserver(se);return L.current&&e.observe(L.current),window.addEventListener("resize",se),window.addEventListener("scroll",se,!0),()=>{e.disconnect(),window.removeEventListener("resize",se),window.removeEventListener("scroll",se,!0)}},[B,ne,se]),qn({containerRef:L,initialFocusRef:E,returnFocusRef:D,disabled:!B}),o.useEffect(()=>{B&&!E.current&&W()},[B,W]),Zn(e=>{B&&(e.preventDefault(),_())});const le=o.useMemo(()=>({panelId:T,title:m,description:p,selectionVariant:g,searchQuery:q,setSearchQuery:K,searchInputRef:E,onCancel:_,onClearSelection:C?F:void 0,moveFocusToList:W}),[T,m,p,g,q,_,C,F,W]),ce=o.useMemo(()=>({container:"SelectPanel",listRole:"listbox",listLabelledBy:`${T}-title`,selectionAttribute:"aria-selected",selectionVariant:"instant"===g?"single":g,afterSelect:G,enableFocusZone:!0}),[T,g,G]);return f.jsxs(f.Fragment,{children:[J,B?f.jsx(oi,{children:f.jsx("div",Object.assign({className:et(JS({variant:te,narrowVariant:ae})),onClick:e=>{e.target===e.currentTarget&&_()},"data-component":"SelectPanel.Backdrop"},Qn("variant",ee),{children:f.jsx("div",Object.assign({ref:z,role:"dialog","aria-modal":!0,"aria-labelledby":`${T}-title`,"aria-describedby":p?`${T}-description`:void 0,className:et(eO({width:O,maxHeight:M,variant:te,narrowVariant:ae,unplaced:ne&&!re}),d),style:{"--select-panel-top":`${null!==(n=null==re?void 0:re.top)&&void 0!==n?n:0}px`,"--select-panel-left":`${null!==(i=null==re?void 0:re.left)&&void 0!==i?i:0}px`},"data-component":"SelectPanel","data-width":O,"data-max-height":M,"data-side":null!==(r=null==re?void 0:re.anchorSide)&&void 0!==r?r:w,"data-align":null!==(l=null==re?void 0:re.anchorAlign)&&void 0!==l?l:j},Qn("variant",ee),A,{children:f.jsx("form",{className:QS,onSubmit:H,children:f.jsxs(AS.Provider,{value:le,children:[null!==(c=Z.header)&&void 0!==c?c:f.jsx(ZS,{}),f.jsx("div",{className:XS,children:f.jsx(Oa.Provider,{value:ce,children:Q})}),Z.footer]})})}))}))}):null]})}nO.displayName="SelectPanel";var iO=tt(nO);const rO="select-panel-loading",oO="select-panel-loading-text";function sO(e,t){const{className:a,children:n="Fetching items..."}=e,i=s(e,["className","children"]);return f.jsxs("div",Object.assign({ref:t,role:"status","aria-live":"polite",className:et(rO,a),"data-component":"SelectPanel.Loading"},i,{children:[f.jsx(en,{size:"medium",srText:null,role:"presentation"}),f.jsx("span",{className:oO,children:n})]}))}sO.displayName="SelectPanel.Loading";var lO=tt(sO);const cO={full:"select-panel-message-full",fullIcon:"select-panel-message-full-icon",fullTitle:"select-panel-message-full-title",fullContent:"select-panel-message-full-content",inline:"select-panel-message-inline",inlineIcon:"select-panel-message-inline-icon",variant:{warning:"select-panel-message-warning",error:"select-panel-message-error",empty:""},inlineVariant:{warning:"select-panel-message-inline-warning",error:"select-panel-message-inline-error",empty:""}};function dO(e,t){const{className:a,children:n,variant:i,size:r,title:o}=e,l=s(e,["className","children","variant","size","title"]),c="empty"!==i?{role:"status","aria-live":"polite"}:void 0;return"full"===(null!=r?r:"empty"===i?"full":"inline")?f.jsxs("div",Object.assign({ref:t,className:et(cO.full,a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"full"},c,l,{children:["empty"===i?null:f.jsx(Ht,{className:et(cO.fullIcon,cO.variant[i]),"aria-hidden":"true"}),f.jsx("span",{className:cO.fullTitle,children:o}),f.jsx("span",{className:cO.fullContent,children:n})]})):f.jsxs("div",Object.assign({ref:t,className:et(cO.inline,cO.variant[i],cO.inlineVariant[i],a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"inline"},c,l,{children:[f.jsx(Ht,{className:cO.inlineIcon,"aria-hidden":"true"}),f.jsx("div",{children:n})]}))}dO.displayName="SelectPanel.Message";var uO=tt(dO);const mO="select-panel-secondary-action-small",pO="select-panel-secondary-action-checkbox",hO="select-panel-secondary-action-box",gO=e=>{const{id:t,children:a,className:n}=e,i=s(e,["id","children","className"]),r=Jt(t);return f.jsxs("span",{className:pO,"data-component":"SelectPanel.SecondaryAction",children:[f.jsx(Pm,Object.assign({id:r,className:et(hO,n)},i)),f.jsx("label",{htmlFor:r,className:mO,children:a})]})};function fO(e){if("checkbox"===e.variant){const{variant:t}=e,a=s(e,["variant"]);return f.jsx(gO,Object.assign({},a))}if("link"===e.variant){const{variant:t,className:a}=e,n=s(e,["variant","className"]);return f.jsx(Ro,Object.assign({className:et(mO,a),"data-component":"SelectPanel.SecondaryAction"},n))}const{variant:t}=e,a=s(e,["variant"]);return f.jsx(vn,Object.assign({type:"button",size:"small",block:!0,"data-component":"SelectPanel.SecondaryAction"},a))}fO.displayName="SelectPanel.SecondaryAction";const vO=Object.assign(iO,{Button:MS,Header:ZS,SearchInput:BS,Footer:PS,SecondaryAction:fO,Loading:lO,Message:uO}),bO=Xe("separator",{variants:{orientation:{horizontal:"separator-horizontal",vertical:"separator-vertical"},variant:{subtle:"separator-subtle",default:"separator-default",emphasis:"separator-emphasis"}}});function xO(e,t){const a=e,{as:n="div",className:i,orientation:r="horizontal",variant:o="default"}=a,l=s(a,["as","className","orientation","variant"]);return f.jsx(n,Object.assign({ref:t,role:"separator","aria-orientation":r,className:et(bO({orientation:r,variant:o}),i),"data-component":"Separator","data-orientation":r,"data-variant":o},l))}xO.displayName="Separator";var yO=tt(xO);const wO=Xe("skeleton-avatar",{variants:{shape:{circle:"skeleton-avatar-circle",square:"skeleton-avatar-square"},responsive:{true:"skeleton-avatar-responsive",false:""}}});function NO(e){var{size:t=$r,shape:a="circle",className:n,style:i}=e,r=s(e,["size","shape","className","style"]);const o=Pr(t),l={"--avatar-size-regular":`${$r}px`};if(o)for(const[e,a]of Object.entries(t))void 0!==a&&(l[`--avatar-size-${e}`]=`${a}px`);else l["--avatar-size-regular"]=`${t}px`;return f.jsx(Xg,Object.assign({width:"var(--avatar-size-regular)",height:"var(--avatar-size-regular)",className:et(wO({shape:a,responsive:o}),n),style:Object.assign(Object.assign({},i),l)},r,{"data-component":"SkeletonAvatar","data-responsive":o||void 0,"data-shape":a}))}NO.displayName="SkeletonAvatar";const jO=Xe("slider",{variants:{size:{small:"slider-small",medium:"slider-medium",large:"slider-large"},orientation:{horizontal:"slider-horizontal",vertical:"slider-vertical"},block:{true:"",false:""}},compoundVariants:[{block:!0,orientation:"horizontal",class:"slider-block-horizontal"},{block:!0,orientation:"vertical",class:"slider-block-vertical"}]}),kO=(e,t,a)=>{if(a<=t)return 0;const n=(e-t)/(a-t)*100;return Math.min(Math.max(n,0),100)};function CO(e,t){const{className:a,style:n,size:i="medium",orientation:r="horizontal",block:l,min:c=0,max:d=100,step:u=1,value:m,defaultValue:p,disabled:h,onChange:g}=e,v=s(e,["className","style","size","orientation","block","min","max","step","value","defaultValue","disabled","onChange"]),b=void 0!==m,[x,y]=o.useState(()=>null!=p?p:c),w=b?m:x;return f.jsx("input",Object.assign({ref:t,type:"range",min:c,max:d,step:u,value:w,disabled:h,onChange:e=>{const t=Number(e.currentTarget.value);b||y(t),null==g||g(t,e)},className:et(jO({size:i,orientation:r,block:l}),a),style:Object.assign(Object.assign({},n),{"--slider-fill":`${kO(w,c,d)}%`}),"aria-orientation":"vertical"===r?"vertical":void 0,"data-component":"Slider","data-size":i,"data-orientation":r,"data-block":l,"data-disabled":h},v))}CO.displayName="Slider";var SO=tt(CO);const OO={open:"open",issueOpened:"open",pullOpened:"open",alertOpened:"open",closed:"done",issueClosed:"done",pullMerged:"done",alertFixed:"done",pullClosed:"closed",alertClosed:"closed",issueClosedNotPlanned:"neutral",unavailable:"neutral",archived:"neutral",pullQueued:"attention",draft:"draft",issueDraft:"draft",alertDismissed:"draft"},MO={open:null,closed:null,draft:Nt,archived:lt,unavailable:Ht,issueOpened:$t,issueClosed:ft,issueClosedNotPlanned:Pt,issueDraft:Nt,pullOpened:ht,pullClosed:kt,pullMerged:Dt,pullQueued:jt,alertOpened:Ft,alertClosed:_t,alertFixed:Bt,alertDismissed:Vt},AO={open:"",closed:"",draft:"Pull request",archived:"Archived",unavailable:"",issueOpened:"Issue",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",issueDraft:"Issue",pullOpened:"Pull request",pullClosed:"Pull request",pullMerged:"Pull request",pullQueued:"Pull request",alertOpened:"Alert",alertClosed:"Alert",alertFixed:"Alert",alertDismissed:"Alert"},TO=Xe("state-label",{variants:{size:{small:"state-label-small",medium:"state-label-medium"},tone:{open:"state-label-open",closed:"state-label-closed",done:"state-label-done",draft:"state-label-draft",attention:"state-label-attention",neutral:"state-label-neutral"}}}),IO=Xe("state-label-visual",{variants:{size:{small:"state-label-visual-small",medium:"state-label-visual-medium"}}});function DO(e,t){const a=e,{as:n="span",className:i,status:r,size:o="medium",children:l}=a,c=s(a,["as","className","status","size","children"]),d=MO[r],u=AO[r];return f.jsxs(n,Object.assign({ref:t,className:et(TO({size:o,tone:OO[r]}),i),"data-component":"StateLabel","data-status":r,"data-size":o},c,{children:[d?f.jsx(d,{className:et(IO({size:o})),role:u?"img":void 0,"aria-label":u||void 0,"aria-hidden":!u||void 0}):null,l]}))}DO.displayName="StateLabel";var LO=tt(DO);const zO=e.createContext(null);function EO(e){const{children:t,id:a,value:n,defaultValue:i,onChange:r}=e,s=Jt(a),l=void 0!==n,[c,d]=o.useState(i),u=l?n:c,m=o.useRef(r);Kn(()=>{m.current=r},[r]);const p=o.useMemo(()=>({groupId:s,selectedValue:u,selectTab:e=>{var t;l||d(e),null===(t=m.current)||void 0===t||t.call(m,e)}}),[s,u,l]);return f.jsx(zO.Provider,{value:p,children:t})}EO.displayName="Tabs";const PO=(...e)=>t=>{for(const a of e)if(null==a||a(t),t.defaultPrevented)break},$O=()=>{const t=e.useContext(zO);if(!t)throw new Error("A tablist, a tab and a panel all have to stand within a `Tabs` component.");return t},RO=e=>{const{value:t,disabled:a}=e,n=$O(),i=n.selectedValue===t;return{selected:i,tabProps:{id:`${n.groupId}-tab-${t}`,role:"tab","aria-controls":`${n.groupId}-panel-${t}`,"aria-selected":i,"aria-disabled":!!a||void 0,tabIndex:i?0:-1,onKeyDown:e=>{" "!==e.key&&"Enter"!==e.key||n.selectTab(t)},onMouseDown:e=>{a||0!==e.button||e.ctrlKey?e.preventDefault():n.selectTab(t)},onFocus:()=>{i||a||n.selectTab(t)}}}},BO="tab",VO="tab-vertical",_O="tab-hover",FO="tab-selected",HO="tab-disabled";function WO(e,t){const{className:a,value:n,disabled:i,onKeyDown:r,onMouseDown:o,onFocus:l}=e,c=s(e,["className","value","disabled","onKeyDown","onMouseDown","onFocus"]),{selected:d,tabProps:u}=RO({value:n,disabled:i});return f.jsx("button",Object.assign({},c,u,{ref:t,type:"button",onKeyDown:PO(r,u.onKeyDown),onMouseDown:PO(o,u.onMouseDown),onFocus:PO(l,u.onFocus),className:et(BO,VO,_O,d&&FO,i&&HO,a),"data-component":"Tabs.Tab","data-value":n,"data-selected":d?"":void 0}))}WO.displayName="Tabs.Tab";var GO=tt(WO);const qO=e=>{const{"aria-label":t,"aria-labelledby":a,"aria-orientation":n,ref:i}=e,r=o.useRef(null),s=N(i,r),l=null!=n?n:"horizontal";return{tabListProps:{ref:s,role:"tablist","aria-label":t,"aria-labelledby":a,"aria-orientation":l,onKeyDown:e=>{const t=r.current;if(!t)return;const a="vertical"===l,n=a?"ArrowDown":"ArrowRight",i=a?"ArrowUp":"ArrowLeft",o="Home"===e.key||"End"===e.key,s=e.key===n?1:e.key===i?-1:0;if(0===s&&!o)return;e.preventDefault(),e.stopPropagation();const c=(e=>Array.from(e.querySelectorAll("[role='tab']:not([aria-disabled])")))(t);if(0===c.length)return;if(o)return void c["Home"===e.key?0:c.length-1].focus();const d=c.findIndex(e=>"true"===e.getAttribute("aria-selected"));c[-1===d?0:(d+s+c.length)%c.length].focus()}}}},KO="tab-list",UO="tab-list-vertical";function YO(e,t){const{className:a,onKeyDown:n,"aria-label":i,"aria-labelledby":r,"aria-orientation":o}=e,l=s(e,["className","onKeyDown","aria-label","aria-labelledby","aria-orientation"]),{tabListProps:c}=qO({"aria-label":i,"aria-labelledby":r,"aria-orientation":o,ref:t}),d="vertical"===c["aria-orientation"];return f.jsx("div",Object.assign({},l,c,{onKeyDown:PO(n,c.onKeyDown),className:et(KO,d&&UO,a),"data-component":"Tabs.List","data-orientation":c["aria-orientation"]}))}YO.displayName="Tabs.List";var ZO=tt(YO);const QO=e=>{const{value:t}=e,a=$O(),n=a.selectedValue===t;return{tabPanelProps:{id:`${a.groupId}-panel-${t}`,role:"tabpanel","aria-labelledby":`${a.groupId}-tab-${t}`,hidden:!n,"data-selected":n?"":void 0}}};function XO(e,t){const{className:a,value:n}=e,i=s(e,["className","value"]),{tabPanelProps:r}=QO({value:n});return f.jsx("div",Object.assign({},i,r,{ref:t,className:a,"data-component":"Tabs.Panel","data-value":n}))}XO.displayName="Tabs.Panel";var JO=tt(XO);const eM=Object.assign(EO,{List:ZO,Tab:GO,Panel:JO}),tM="timeline",aM="timeline-clip-start",nM="timeline-clip-end";function iM(e,t){const{className:a,clipSidebar:n}=e,i=s(e,["className","clipSidebar"]),r=(e=>!0===e||"both"===e?"both":"start"===e||"end"===e?e:void 0)(n);return f.jsx("ol",Object.assign({ref:t,role:"list",className:et(tM,("start"===r||"both"===r)&&aM,("end"===r||"both"===r)&&nM,a),"data-component":"Timeline","data-clip-sidebar":r},i))}iM.displayName="Timeline";var rM=tt(iM);const oM="timeline-actions",sM="timeline-actions-narrow";function lM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(oM,sM,a),"data-component":"Timeline.Actions"},n))}lM.displayName="Timeline.Actions";var cM=tt(lM);const dM="timeline-avatar";function uM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(dM,a),"data-component":"Timeline.Avatar"},n))}uM.displayName="Timeline.Avatar";var mM=tt(uM);const pM="timeline-badge-wrapper",hM=Xe("timeline-badge",{variants:{variant:{accent:"timeline-badge-accent",success:"timeline-badge-success",attention:"timeline-badge-attention",severe:"timeline-badge-severe",danger:"timeline-badge-danger",done:"timeline-badge-done",open:"timeline-badge-open",closed:"timeline-badge-closed",sponsors:"timeline-badge-sponsors"}}});function gM(e,t){const{className:a,variant:n}=e,i=s(e,["className","variant"]);return f.jsx("div",{className:pM,children:f.jsx("div",Object.assign({ref:t,className:et(hM({variant:n}),a),"data-component":"Timeline.Badge","data-variant":n},i))})}gM.displayName="Timeline.Badge";var fM=tt(gM);const vM="timeline-body";function bM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(vM,a),"data-component":"Timeline.Body"},n))}bM.displayName="Timeline.Body";var xM=tt(bM);const yM="timeline-break",wM="timeline-break-before-condensed";function NM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("li",Object.assign({ref:t,role:"presentation",className:et(yM,wM,a),"data-component":"Timeline.Break"},n))}NM.displayName="Timeline.Break";var jM=tt(NM);const kM="timeline-item",CM="timeline-item-rail",SM="timeline-item-condensed",OM="timeline-item-condensed-badge",MM="timeline-item-condensed-avatar",AM="timeline-item-narrow";function TM(e,t){const{className:a,condensed:n}=e,i=s(e,["className","condensed"]);return f.jsx("li",Object.assign({ref:t,className:et(kM,CM,AM,n&&SM,n&&OM,n&&MM,a),"data-component":"Timeline.Item","data-timeline-item":"","data-condensed":n?"":void 0},i))}TM.displayName="Timeline.Item";var IM=tt(TM);const DM=Object.assign(rM,{Item:IM,Avatar:mM,Badge:fM,Body:xM,Break:jM,Actions:cM});let LM=[],zM=0;const EM=new Set,PM=()=>{for(const e of EM)e()},$M=e=>(EM.add(e),()=>{EM.delete(e)}),RM=()=>LM,BM=[],VM=()=>BM,_M=e=>{const t=LM.some(t=>t.id===e.id);return LM=t?LM.map(t=>t.id!==e.id?t:Object.assign(Object.assign(Object.assign({},t),e),{dismissed:!1,revision:t.revision+1})):[Object.assign(Object.assign({},e),{revision:0}),...LM],PM(),e.id},FM=e=>(LM=LM.map(t=>void 0===e||t.id===e?Object.assign(Object.assign({},t),{dismissed:!0}):t),PM(),e),HM=()=>"toast-"+ ++zM,WM=(e,t,a={})=>{var n;return _M(Object.assign(Object.assign({},a),{id:null!==(n=a.id)&&void 0!==n?n:HM(),title:t,variant:e}))},GM=(e,t)=>"function"==typeof e?e(t):e,qM=(e,t)=>WM("default",e,t),KM=Object.assign(qM,{message:qM,success:(e,t)=>WM("success",e,t),error:(e,t)=>WM("error",e,t),warning:(e,t)=>WM("warning",e,t),info:(e,t)=>WM("info",e,t),loading:(e,t)=>WM("loading",e,Object.assign({duration:1/0},t)),custom:(e,t={})=>{var a;return _M(Object.assign(Object.assign({},t),{id:null!==(a=t.id)&&void 0!==a?a:HM(),variant:"default",render:e}))},promise:(e,t,a={})=>{var n;const i=null!==(n=a.id)&&void 0!==n?n:HM();WM("loading",t.loading,Object.assign(Object.assign({},a),{id:i,duration:1/0}));const r=(e,t)=>{null!=t?WM(e,t,Object.assign(Object.assign({},a),{id:i,duration:a.duration})):FM(i)};return("function"==typeof e?e():e).then(e=>r("success",GM(t.success,e)),e=>r("error",GM(t.error,e))),i},dismiss:FM,getToasts:RM}),UM={root:"toast",animated:"motion-safe:[transition:transform_var(--motion-transition-state-change),opacity_var(--motion-transition-state-change),height_var(--motion-transition-state-change)]",grabbable:"toast-grabbable",lift:{top:"toast-lift-top",bottom:"toast-lift-bottom"},bridge:"toast-bridge",bridgeTop:"toast-bridge-top",bridgeBottom:"toast-bridge-bottom",card:"toast-card",iconColor:{default:"",success:"toast-icon-success",error:"toast-icon-error",warning:"toast-icon-warning",info:"toast-icon-info",loading:""},richColors:{default:"",success:"toast-rich-success",error:"toast-rich-error",warning:"toast-rich-warning",info:"toast-rich-info",loading:""},hidden:"opacity-0",waiting:"pointer-events-none",dragging:"select-none",body:"toast-body motion-safe:[transition:opacity_var(--motion-transition-state-change)]",bodyStacked:"opacity-0",icon:"toast-icon",content:"toast-content",title:"toast-title",description:"toast-description",actions:"toast-actions"},YM={default:null,success:ft,error:Ot,warning:Ht,info:It,loading:null};function ZM(e){var t,a,n,i,r,s;const{toast:l,place:c,position:d,height:u,frontHeight:m,stackSize:p,expanded:h,visible:g,paused:v,swipeDirections:b,icons:x,defaults:y,onHeight:w}=e,{id:N,variant:j,title:k,description:C,render:S}=l,O=null!==(t=l.duration)&&void 0!==t?t:y.duration,M=null!==(a=l.dismissible)&&void 0!==a?a:y.dismissible,A=null!==(n=l.closeButton)&&void 0!==n?n:y.closeButton,T=null!==(i=l.richColors)&&void 0!==i?i:y.richColors,I=null!==(s=null!==(r=l.important)&&void 0!==r?r:y.important)&&void 0!==s&&s,D=o.useRef(null),[L,z]=o.useState(!1),[E,P]=o.useState({x:0,y:0}),[$,R]=o.useState(!1),[B,V]=o.useState(!1),_=o.useRef(null),F=Boolean(l.dismissed),H=0===c.index,W=L&&!h&&!H,G=Boolean(S),q=d.startsWith("top")?"top":"bottom",K=e=>{var t,a;l.dismissed||(FM(N),"timeout"===e?null===(t=l.onAutoClose)||void 0===t||t.call(l,l):null===(a=l.onDismiss)||void 0===a||a.call(l,l))};o.useEffect(()=>{z(!0)},[]);const U=o.useRef({revision:-1,time:O});o.useEffect(()=>{if(U.current.revision!==l.revision&&(U.current={revision:l.revision,time:O}),v||F||O===1/0)return;const e=Date.now(),t=window.setTimeout(()=>K("timeout"),Math.max(U.current.time,0));return()=>{window.clearTimeout(t),U.current.time-=Date.now()-e}},[l,O,v,F]),o.useEffect(()=>{if(!F)return;const e=window.setTimeout(()=>(e=>{LM=LM.filter(t=>t.id!==e),PM()})(N),200);return()=>{window.clearTimeout(e)}},[F,N]),Kn(()=>{const e=D.current;if(!e)return;const t=e.style.height;e.style.height="auto";const a=e.getBoundingClientRect().height;e.style.height=t,w(N,a)},[w,N,l.revision,k,C,h]);const Y=e=>b.includes(e),Z=(e,t,a)=>e<0?Y(t)?e:0:Y(a)?e:0,Q=h?"calc(var(--toast-lift) * var(--toast-offset))":"calc(var(--toast-lift) * var(--toaster-gap) * var(--toast-index))",X="calc(var(--toast-lift) * -100%)",J={"--toast-index":c.index,"--toast-offset":`${c.offset}px`,"--toast-z-index":p-c.index,"--toast-height":(ee=W?m:u,ee>0?`${ee}px`:"auto"),"--toast-shift":L?!F||B?Q:H?X:h?`calc(${Q} + ${X})`:Q:X,"--toast-scale":W?Math.max(1-.05*c.index,0):1,"--toast-swipe-x":`${E.x}px`,"--toast-swipe-y":`${E.y}px`};var ee;const te=YM[j],ae=void 0!==l.icon?l.icon:null==x?void 0:x[j],ne=void 0!==ae?ae:"loading"===j?f.jsx(en,{size:"small",srText:null}):te?f.jsx(te,{}):null,ie=(e,t,a)=>(e=>"object"==typeof e&&null!==e&&"label"in e&&!o.isValidElement(e))(e)?f.jsx(vn,{size:"small",variant:a,onClick:a=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,a),a.defaultPrevented||K(t)},"data-component":"Toast."+("action"===t?"Action":"Cancel"),children:e.label}):e,re=void 0!==l.action||void 0!==l.cancel;return f.jsx("li",{ref:D,role:I?"alert":"status","aria-live":I?"assertive":"polite","aria-atomic":"true",className:et(UM.root,UM.lift[q],UM.bridge,"top"===q?UM.bridgeTop:UM.bridgeBottom,M&&UM.grabbable,!G&&UM.card,!G&&UM.iconColor[j],!G&&T&&UM.richColors[j],(!L||F||!g)&&UM.hidden,!g&&UM.waiting,$?UM.dragging:UM.animated,y.className,l.className),style:J,"data-component":"Toast","data-variant":j,"data-position":d,"data-mounted":L,"data-removed":F,"data-front":H,"data-expanded":h,"data-stacked":W,"data-visible":g,"data-dragging":$,"data-swiped-out":B,"data-rich-colors":T||void 0,onPointerDown:e=>{var t,a;M&&0===e.button&&!e.target.closest("button")&&(_.current={pointerId:e.pointerId,x:e.clientX,y:e.clientY},null===(a=(t=e.currentTarget).setPointerCapture)||void 0===a||a.call(t,e.pointerId),R(!0))},onPointerMove:e=>{const t=_.current;t&&t.pointerId===e.pointerId&&P({x:Z(e.clientX-t.x,"left","right"),y:Z(e.clientY-t.y,"top","bottom")})},onPointerUp:e=>{const t=_.current;if(!t||t.pointerId!==e.pointerId)return;if(_.current=null,R(!1),Math.max(Math.abs(E.x),Math.abs(E.y))<45)return void P({x:0,y:0});const a=e.currentTarget.getBoundingClientRect(),n=(e,t)=>0===e?0:Math.sign(e)*(t+32);P({x:n(E.x,a.width),y:n(E.y,a.height)}),V(!0),K("swipe")},onPointerCancel:()=>{_.current=null,R(!1),P({x:0,y:0})},children:G?null==S?void 0:S(l):f.jsxs("div",{className:et(UM.body,W&&UM.bodyStacked),"data-component":"Toast.Body",children:[null===ne?null:f.jsx("span",{className:UM.icon,"aria-hidden":"true","data-component":"Toast.Icon",children:ne}),f.jsxs("div",{className:UM.content,"data-component":"Toast.Content",children:[f.jsx("div",{className:UM.title,"data-component":"Toast.Title",children:k}),void 0===C?null:f.jsx("div",{className:UM.description,"data-component":"Toast.Description",children:C})]}),re?f.jsxs("div",{className:UM.actions,"data-component":"Toast.Actions",children:[ie(l.cancel,"cancel","invisible"),ie(l.action,"action","default")]}):null,A&&M?f.jsx(yn,{icon:Ct,"aria-label":"Close",variant:"invisible",size:"small",onClick:()=>K("close-button"),"data-component":"Toast.CloseButton"}):null]})})}ZM.displayName="Toast";const QM=Xe("toaster z-popover",{variants:{position:{"top-left":"toaster-top-left","top-center":"toaster-top-center","top-right":"toaster-top-right","bottom-left":"toaster-bottom-left","bottom-center":"toaster-bottom-center","bottom-right":"toaster-bottom-right"}}}),XM=4e3,JM=3,eA=14,tA=24,aA=16,nA=356,iA=["altKey","KeyT"],rA=e=>"number"==typeof e?`${e}px`:e,oA=e=>(document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}),sA=()=>"hidden"===document.visibilityState,lA=()=>!1;function cA(e,t){var a;const{position:n="bottom-right",expand:i=!1,visibleToasts:r=JM,toastOptions:l,duration:c=XM,closeButton:d=!1,richColors:u=!1,gap:m=eA,offset:p=tA,mobileOffset:h=aA,width:g=nA,hotkey:v=iA,swipeDirections:b,icons:x,containerAriaLabel:y="Notifications",className:w,style:j}=e,k=s(e,["position","expand","visibleToasts","toastOptions","duration","closeButton","richColors","gap","offset","mobileOffset","width","hotkey","swipeDirections","icons","containerAriaLabel","className","style"]),C=o.useSyncExternalStore($M,RM,VM),S=o.useSyncExternalStore(oA,sA,lA),O=o.useRef(null),M=N(t,O),[A,T]=o.useState({}),[I,D]=o.useState(!1),L=i||I,z=o.useCallback((e,t)=>{T(a=>a[e]===t?a:Object.assign(Object.assign({},a),{[e]:t}))},[]);o.useEffect(()=>{T(e=>{const t=Object.keys(e).filter(e=>C.some(t=>t.id===e));return t.length===Object.keys(e).length?e:Object.fromEntries(t.map(t=>[t,e[t]]))})},[C]);const E=C.filter(e=>!e.dismissed),P=new Map;let $=0;E.forEach((e,t)=>{var a;P.set(e.id,{index:t,offset:$}),$+=(null!==(a=A[e.id])&&void 0!==a?a:0)+m});const R=o.useRef(P);for(const e of C)if(!P.has(e.id)){const t=R.current.get(e.id);t&&P.set(e.id,t)}R.current=P;const B=E.length>0&&null!==(a=A[E[0].id])&&void 0!==a?a:0;o.useEffect(()=>{const e=e=>{var t;const a=O.current,n=null!==a&&(document.activeElement===a||a.contains(document.activeElement));if("Escape"===e.code&&n)return void D(!1);v.every(t=>Boolean(e[t])||e.code===t)&&(D(!0),null===(t=O.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[v]);const V=Object.assign({duration:c,closeButton:d,richColors:u,dismissible:!0},l),_=null!=b?b:(e=>{const[t,a]=e.split("-"),n=[t];return"left"!==a&&"right"!==a||n.push(a),n})(n);return f.jsx(oi,{children:f.jsx("section",{"aria-label":y,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,"data-component":"Toaster.Region",children:f.jsx("ol",Object.assign({ref:M,tabIndex:-1,className:et(QM({position:n}),w),style:Object.assign(Object.assign({},j),{"--toaster-width":rA(g),"--toaster-viewport-offset":rA(p),"--toaster-mobile-offset":rA(h),"--toaster-gap":`${m}px`}),"data-component":"Toaster","data-position":n,"data-expanded":L,onPointerEnter:()=>D(!0),onPointerLeave:()=>D(!1),onFocus:()=>D(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||D(!1)}},k,{children:C.map(e=>{var t,a;const i=null!==(t=P.get(e.id))&&void 0!==t?t:{index:0,offset:0};return f.jsx(ZM,{toast:e,place:i,position:n,height:null!==(a=A[e.id])&&void 0!==a?a:0,frontHeight:B,stackSize:C.length,expanded:L,visible:i.index<r,paused:I||S,swipeDirections:_,icons:x,defaults:V,onHeight:z},e.id)})}))})})}cA.displayName="Toaster";var dA=tt(cA);const uA=2e3,mA="toggle-switch-content",pA="sr-only",hA="toggle-switch-icon",gA=Xe("toggle-switch",{variants:{statusLabelPosition:{start:"toggle-switch-label-start",end:"toggle-switch-label-end"}}}),fA=Xe("toggle-switch-status",{variants:{statusLabelPosition:{start:"",end:"toggle-switch-status-end"}}}),vA=Xe("toggle-switch-status-label",{variants:{size:{small:"toggle-switch-status-label-small",medium:"toggle-switch-status-label-medium"},disabled:{true:"toggle-switch-status-label-disabled",false:""}}}),bA=Xe("toggle-switch-status-text",{variants:{hidden:{true:"toggle-switch-status-text-hidden",false:""}}}),xA=Xe("toggle-switch-track",{variants:{size:{small:"toggle-switch-track-small",medium:"toggle-switch-track-medium"},track:{off:"toggle-switch-track-off",on:"toggle-switch-track-on",disabled:"toggle-switch-track-disabled"}}}),yA=Xe(hA,{variants:{disabled:{true:"toggle-switch-circle-icon-disabled",false:"toggle-switch-circle-icon"},checked:{true:"translate-x-0",false:"-translate-x-full"}}}),wA=Xe(hA,{variants:{disabled:{true:"toggle-switch-line-icon-disabled",false:"toggle-switch-line-icon"},checked:{true:"translate-x-full",false:"translate-x-0"}}}),NA=Xe("toggle-switch-knob",{variants:{checked:{true:"toggle-switch-knob-checked",false:"translate-x-0"},disabled:{true:"toggle-switch-knob-disabled",false:""}}}),jA={small:12,medium:16},kA=({size:e})=>f.jsx("svg",{"aria-hidden":"true",width:jA[e],height:jA[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"})}),CA=({size:e})=>f.jsx("svg",{"aria-hidden":"true",width:jA[e],height:jA[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"})});function SA(e,t){const{className:a,checked:n,defaultChecked:i,disabled:r,loading:l,onChange:c,onClick:d,size:u="medium",statusLabelPosition:m="start",buttonType:p="button",loadingLabel:h="Loading",loadingLabelDelay:g=uA,buttonLabelOn:v="On",buttonLabelOff:b="Off","aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["className","checked","defaultChecked","disabled","loading","onChange","onClick","size","statusLabelPosition","buttonType","loadingLabel","loadingLabelDelay","buttonLabelOn","buttonLabelOff","aria-labelledby","aria-describedby"]),N=void 0!==n,[j,k]=o.useState(Boolean(i)),C=N?n:j,S=!r&&!l,O=`${Jt()}-loading-label`,[M,A]=o.useState(!1);o.useEffect(()=>{if(!l)return void A(!1);const e=window.setTimeout(()=>{A(!0)},g);return()=>{window.clearTimeout(e)}},[l,g]);const T=e=>{S&&(N||k(!C),null==c||c(!C),null==d||d(e))},I=[M?O:void 0,y].filter(Boolean).join(" ");return f.jsxs("div",Object.assign({className:et(gA({statusLabelPosition:m}),a),"data-component":"ToggleSwitch","data-size":u,"data-status-label-position":m,"data-checked":C,"data-disabled":!S,"data-loading":l?"true":void 0},w,{children:[f.jsx("span",{id:O,role:"status",className:pA,children:M?h:""}),l?f.jsx("span",{className:et(fA({statusLabelPosition:m})),"data-component":"ToggleSwitch.LoadingSpinner",children:f.jsx(en,{size:"small",srText:null,role:"presentation"})}):null,f.jsxs("span",{className:et(vA({size:u,disabled:!S})),"aria-hidden":"true",onClick:T,"data-component":"ToggleSwitch.StatusText",children:[f.jsx("span",{className:et(bA({hidden:!C})),children:v}),f.jsx("span",{className:et(bA({hidden:C})),children:b})]}),f.jsxs("button",{ref:t,type:p,className:et(xA({size:u,track:S?C?"on":"off":"disabled"})),onClick:T,"aria-labelledby":x,"aria-describedby":I||void 0,"aria-pressed":C,"aria-disabled":!S,"data-component":"ToggleSwitch.SwitchButton",children:[f.jsxs("span",{className:mA,"aria-hidden":"true",children:[f.jsx("span",{className:et(yA({disabled:!S,checked:C})),"data-component":"ToggleSwitch.LineIcon",children:f.jsx(CA,{size:u})}),f.jsx("span",{className:et(wA({disabled:!S,checked:C})),"data-component":"ToggleSwitch.CircleIcon",children:f.jsx(kA,{size:u})})]}),f.jsx("span",{className:et(NA({checked:C,disabled:!S})),"aria-hidden":"true","data-component":"ToggleSwitch.ToggleKnob"})]})]}))}SA.displayName="ToggleSwitch";var OA=tt(SA);const MA=Xe("token",{variants:{size:{small:"token-small",medium:"token-medium",large:"token-large",xlarge:"token-xlarge"},interactive:{true:"token-interactive",false:"token-static"}}}),AA="medium",TA=({as:e="span",onClick:t,onFocus:a,tabIndex:n=-1,disabled:i})=>!i&&Boolean(a||t||n>-1||"a"===e||"button"===e);function IA(e,t){const a=e,{as:n="span",className:i,size:r=AA,isSelected:o,onRemove:l,onKeyDown:c}=a,d=s(a,["as","className","size","isSelected","onRemove","onKeyDown"]),u=TA({as:n,onClick:d.onClick,onFocus:d.onFocus,tabIndex:d.tabIndex,disabled:d.disabled});return f.jsx(n,Object.assign({ref:t,onKeyDown:e=>{null==c||c(e),"Backspace"!==e.key&&"Delete"!==e.key||null==l||l()},className:et(MA({size:r,interactive:u}),i),"data-component":"Token","data-size":r,"data-interactive":u?"":void 0,"data-selected":o?"":void 0},"button"===n?{type:"button"}:{},d))}IA.displayName="TokenBase";var DA=tt(IA);const LA=Xe("token-remove-button",{variants:{size:{small:"token-remove-button-small",medium:"token-remove-button-medium",large:"token-remove-button-large",xlarge:"token-remove-button-xlarge"},raised:{true:"token-remove-button-raised",false:""}}});function zA(e){const{className:t,size:a=AA,isParentInteractive:n}=e,i=s(e,["className","size","isParentInteractive"]),r=et(LA({size:a,raised:n}),t);return n?f.jsx("span",Object.assign({"aria-hidden":"true",tabIndex:-1,className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:f.jsx(Ct,{})})):f.jsx("button",Object.assign({type:"button","aria-label":"Remove token",className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:f.jsx(Ct,{})}))}zA.displayName="Token.RemoveButton";const EA="token-text",PA="token-text-interactive";function $A(e,t){const a=e,{as:n="span",className:i,interactive:r}=a,o=s(a,["as","className","interactive"]);return f.jsx(n,Object.assign({ref:t,className:et(EA,r&&PA,i),"data-component":"Token.Text"},"button"===n?{type:"button"}:{},o))}$A.displayName="Token.Text";var RA=tt($A);const BA="sr-only",VA=Xe("token-default",{variants:{interactive:{true:"token-default-interactive",false:""},selected:{true:"token-default-selected",false:""},withRemoveButton:{true:"token-with-remove-button",false:""}}}),_A=Xe("token-visual",{variants:{size:{small:"",medium:"token-visual-medium",large:"token-visual-large",xlarge:"token-visual-xlarge"}}}),FA=e=>{if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})};function HA(e,t){const a=e,{as:n,className:i,text:r,size:o=AA,leadingVisual:l,onRemove:c,hideRemoveButton:d,isSelected:u,href:m,onClick:p}=a,h=s(a,["as","className","text","size","leadingVisual","onRemove","hideRemoveButton","isSelected","href","onClick"]),g=TA({as:n,onClick:p,onFocus:h.onFocus,tabIndex:h.tabIndex,disabled:h.disabled}),v=Boolean(c)&&!d,b=g&&v,x={as:n,href:m,onClick:p};return f.jsxs(DA,Object.assign({ref:t,size:o,isSelected:u,onRemove:c,className:et(VA({interactive:g,selected:u,withRemoveButton:v}),i),"data-has-remove-button":v?"":void 0},b?{}:x,h,{children:[l&&"small"!==o?f.jsx("span",{className:et(_A({size:o})),"data-component":"Token.LeadingVisual",children:FA(l)}):null,f.jsxs(RA,Object.assign({interactive:b},b?x:{},{children:[r,c?f.jsx("span",{className:BA,children:" (press backspace or delete to remove)"}):null]})),v?f.jsx(zA,{size:o,isParentInteractive:g,onClick:e=>{e.stopPropagation(),null==c||c()}}):null]}))}HA.displayName="Token";var WA=tt(HA);const GA="#999999",qA=(e,t,a)=>Math.max(t,Math.min(e,a)),KA=e=>qA(Math.round(e),0,100),UA=e=>{const t=e.trim();if(t.startsWith("#")){const e=t.slice(1);if(3===e.length){const[t,a,n]=[...e].map(e=>parseInt(e+e,16));return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}if(6===e.length){const t=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),n=parseInt(e.slice(4,6),16);return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}return null}const a=t.match(/^rgba?\(([^)]+)\)$/i);if(!a)return null;const n=a[1].split(/[\s,/]+/).filter(Boolean).map(Number);if(n.length<3||n.slice(0,3).some(Number.isNaN))return null;const[i,r,o]=n;return{r:i,g:r,b:o}},YA=e=>{var t;const a=null!==(t=UA(e))&&void 0!==t?t:UA(GA),{h:n,s:i,l:r}=(({r:e,g:t,b:a})=>{const n=e/255,i=t/255,r=a/255,o=Math.max(n,i,r),s=Math.min(n,i,r),l=o-s,c=(o+s)/2;if(0===l)return{h:0,s:0,l:Math.round(100*c)};const d=l/(1-Math.abs(2*c-1));let u;return u=o===n?(i-r)/l%6:o===i?(r-n)/l+2:(n-i)/l+4,u=Math.round(60*u),{h:u<0?u+360:u,s:Math.round(100*d),l:Math.round(100*c)}})(a),o=(({r:e,g:t,b:a})=>(.2126*e+.7152*t+.0722*a)/255)(a),{r:s,g:l,b:c}=a,d=qA(1/(.453-o),0,1),u=qA(100*(o-.96),0,1),m=100*(.6-o)*qA(1/(.6-o),0,1),p=KA(r+m);return{light:{background:`rgb(${s}, ${l}, ${c})`,foreground:`hsl(0deg, 0%, ${Math.round(100*d)}%)`,border:`hsla(${n}deg, ${i}%, ${KA(r-25)}%, ${u})`,ring:`rgb(${s}, ${l}, ${c})`,backgroundHover:`hsl(${n}deg, ${i}%, ${KA(r-5)}%)`},dark:{background:`rgba(${s}, ${l}, ${c}, 0.18)`,foreground:`hsl(${n}deg, ${i}%, ${p}%)`,border:`hsla(${n}deg, ${i}%, ${p}%, 0.3)`,ring:`hsl(${n}deg, ${i}%, ${p}%)`,backgroundHover:`hsla(${n}deg, ${i}%, ${KA(r+10)}%, 0.3)`}}},ZA="issue-label-token",QA="issue-label-token-interactive",XA="issue-label-token-selected",JA="token-with-remove-button",eT="sr-only";function tT(e,t){const a=e,{as:n,className:i,style:r,text:l,size:c=AA,fillColor:d=GA,onRemove:u,hideRemoveButton:m,isSelected:p,href:h,onClick:g}=a,v=s(a,["as","className","style","text","size","fillColor","onRemove","hideRemoveButton","isSelected","href","onClick"]),b=o.useMemo(()=>YA(d),[d]),x=TA({as:n,onClick:g,onFocus:v.onFocus,tabIndex:v.tabIndex,disabled:v.disabled}),y=Boolean(u)&&!m,w=x&&y,N={as:n,href:h,onClick:g};return f.jsxs(DA,Object.assign({ref:t,size:c,isSelected:p,onRemove:u,className:et(ZA,x&&QA,p&&XA,y&&JA,i),style:Object.assign(Object.assign({},r),{"--issue-label-background":b.light.background,"--issue-label-foreground":b.light.foreground,"--issue-label-border":b.light.border,"--issue-label-ring":b.light.ring,"--issue-label-background-hover":b.light.backgroundHover,"--issue-label-dark-background":b.dark.background,"--issue-label-dark-foreground":b.dark.foreground,"--issue-label-dark-border":b.dark.border,"--issue-label-dark-ring":b.dark.ring,"--issue-label-dark-background-hover":b.dark.backgroundHover}),"data-component":"IssueLabelToken","data-has-remove-button":y?"":void 0},w?{}:N,v,{children:[f.jsxs(RA,Object.assign({interactive:w},w?N:{},{children:[l,u?f.jsx("span",{className:eT,children:" (press backspace or delete to remove)"}):null]})),y?f.jsx(zA,{size:c,isParentInteractive:x,onClick:e=>{e.stopPropagation(),null==u||u()}}):null]}))}tT.displayName="IssueLabelToken";var aT=tt(tT);const nT="topic-tag",iT="topic-tag-interactive",rT="topic-tag-hover";function oT(e,t){const a=e,{as:n="a",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(nT,iT,rT,i),"data-component":"TopicTag"},r))}oT.displayName="TopicTag";var sT=tt(oT);const lT="topic-tag-group";function cT(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(lT,i),"data-component":"TopicTag.Group"},r))}cT.displayName="TopicTag.Group";var dT=tt(cT);const uT=Object.assign(sT,{Group:dT}),mT=o.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map},scrollElementIntoView:()=>{}}),pT=o.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:"",trailingActionId:""}),hT=o.createContext(!1),gT="[role=tree]",fT="[role=treeitem]",vT=e=>{var t,a,n;const i=e.getAttribute("aria-label");if(i)return i;const r=e.getAttribute("aria-labelledby");return r?null!==(a=null===(t=document.getElementById(r))||void 0===t?void 0:t.textContent)&&void 0!==a?a:"":null!==(n=e.textContent)&&void 0!==n?n:""},bT=e=>{var t;return Boolean(null===(t=e.parentElement)||void 0===t?void 0:t.closest("[role=treeitem][aria-expanded=false]"))},xT=e=>{const t=e.querySelector(fT);return t instanceof HTMLElement?t:void 0},yT=e=>{var t;const a=null===(t=e.closest("[role=group]"))||void 0===t?void 0:t.closest(fT);return a instanceof HTMLElement?a:void 0},wT=(e,t)=>{const a=e.closest(gT);if(!a)return;const n=Array.from(a.querySelectorAll(fT)),i="next"===t?1:-1;for(let t=n.indexOf(e)+i;t>=0&&t<n.length;t+=i)if(!bT(n[t]))return n[t]},NT=(e,t)=>{var a,n;const i=(null==t?void 0:t.getBoundingClientRect().height)||32,r=null!==(n=null===(a=(e=>{let t=e.parentElement;for(;t;){const{overflowY:e}=getComputedStyle(t);if("auto"===e||"scroll"===e)return t;t=t.parentElement}})(e))||void 0===a?void 0:a.clientHeight)&&void 0!==n?n:window.innerHeight;return Math.max(Math.floor(r/i),1)},jT=(e,t)=>{const a=e.closest(gT);if(!a)return;const n=Array.from(a.querySelectorAll(fT));if(0===n.length)return;const i=NT(a,n[0].firstElementChild),r=n.indexOf(e),o=Math.floor(r/i),s=(o+("next"===t?1:-1))*i+(r-i*o);return n[Math.min(Math.max(s,0),n.length-1)]},kT={"open ArrowRight":xT,"closed ArrowLeft":yT,"end ArrowLeft":yT},CT=new Set(["ArrowLeft","ArrowRight"]),ST={ArrowUp:e=>wT(e,"previous"),ArrowDown:e=>wT(e,"next"),Backspace:yT,Home:e=>{var t;const a=null===(t=e.closest(gT))||void 0===t?void 0:t.querySelector(fT);return a instanceof HTMLElement?a:void 0},End:e=>{const t=e.closest(gT);if(!t)return;const a=Array.from(t.querySelectorAll(fT));for(let e=a.length-1;e>=0;e--)if(!bT(a[e]))return a[e]},PageUp:e=>jT(e,"previous"),PageDown:e=>jT(e,"next")},OT="[role=treeitem]",MT=({containerRef:e})=>{Kn(()=>{const t=e.current;if(!t)return;const a=e=>{var a,n,i;const r=Array.from(t.querySelectorAll(OT));if(0===r.length)return;const o=null!==(i=null!==(n=null!==(a=e instanceof HTMLElement&&t.contains(e)?e.closest(OT):null)&&void 0!==a?a:r.find(e=>0===e.tabIndex))&&void 0!==n?n:r.find(e=>"true"===e.getAttribute("aria-current")))&&void 0!==i?i:r[0];for(const e of r)e.tabIndex=e===o?0:-1};a();const n=e=>{a(e.target)},i=e=>{var a;if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const n=null===(a=e.target)||void 0===a?void 0:a.closest(OT);if(!n||!t.contains(n))return;const i=((e,t)=>{var a,n;return CT.has(t)?null===(a=kT[`${(e=>{const t=e.getAttribute("aria-expanded");return"true"===t?"open":"false"===t?"closed":"end"})(e)} ${t}`])||void 0===a?void 0:a.call(kT,e):null===(n=ST[t])||void 0===n?void 0:n.call(ST,e)})(n,e.key);i&&(e.preventDefault(),i.focus())},r=new MutationObserver(()=>a(document.activeElement));return r.observe(t,{childList:!0,subtree:!0}),t.addEventListener("focusin",n),t.addEventListener("keydown",i),()=>{r.disconnect(),t.removeEventListener("focusin",n),t.removeEventListener("keydown",i)}},[e])},AT=({containerRef:e,onFocusChange:t})=>{const a=o.useRef(""),n=o.useRef(0),i=o.useRef(t);o.useEffect(()=>{i.current=t},[t]),o.useEffect(()=>{const t=e.current;if(!t)return;let r=null;const o=new MutationObserver(()=>{r=null});o.observe(t,{childList:!0,subtree:!0});const s=e=>{if(!e.key||e.key.length>1||" "===e.key)return;if(e.ctrlKey||e.altKey||e.metaKey)return;a.current+=e.key;const o=(null!=r||(r=Array.from(t.querySelectorAll("[role=treeitem]"))),r),s=o.findIndex(e=>e===document.activeElement),l=((e,t)=>e.map((a,n)=>e[(t+n)%e.length]))(o,Math.max(s,0)),c=1===a.current.length?l.slice(1):l,d=a.current.toLowerCase(),u=c.find(e=>vT(e).trim().toLowerCase().startsWith(d));u&&i.current(u),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{a.current=""},300),e.preventDefault(),e.stopPropagation()};return t.addEventListener("keydown",s),()=>{o.disconnect(),t.removeEventListener("keydown",s),window.clearTimeout(n.current)}},[e])},TT="tree-view",IT="tree-view-hover",DT="tree-view-coarse",LT="sr-only";function zT(e,t){var a;const{children:n,className:i,flat:r,truncate:l=!0}=e,c=s(e,["children","className","flat","truncate"]),d=o.useRef(null),u=N(t,d),[m,p]=o.useState(""),h=o.useCallback(e=>p(e),[]);MT({containerRef:d}),AT({containerRef:d,onFocusChange:e=>e.focus()});const g=o.useRef(null),v=o.useCallback(e=>{e&&(null!==g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{g.current=null,e.isConnected&&e.scrollIntoView({block:"nearest",inline:"nearest"})}))},[]);o.useEffect(()=>()=>{null!==g.current&&cancelAnimationFrame(g.current)},[]);const b=o.useRef(null);null!==(a=b.current)&&void 0!==a||(b.current=new Map);const x=o.useMemo(()=>({announceUpdate:h,expandedStateCache:b,scrollElementIntoView:v}),[h,v]);return f.jsxs(mT.Provider,{value:x,children:[f.jsx("span",{role:"status","aria-live":"polite",className:LT,"data-component":"TreeView.Announcement",children:m}),f.jsx("ul",Object.assign({ref:u,role:"tree",className:et(TT,IT,DT,i),"data-component":"TreeView","data-omit-spacer":r?"true":void 0,"data-truncate-text":l?"true":"false"},c,{children:n}))]})}zT.displayName="TreeView";var ET=o.forwardRef(zT);const PT="tree-view-directory-icon";function $T(){const{isExpanded:e}=o.useContext(pT),t=e?At:Tt;return f.jsx("span",{className:PT,"data-component":"TreeView.DirectoryIcon",children:f.jsx(t,{})})}$T.displayName="TreeView.DirectoryIcon";const RT=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];function BT(e){const{title:t="Error",children:a,onRetry:n,onDismiss:i}=e,{itemId:r,setIsExpanded:s}=o.useContext(pT);return f.jsx("div",{onKeyDown:e=>{RT.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ErrorDialog",children:f.jsx(Jh,{title:t,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{window.setTimeout(()=>{var e;return null===(e=document.getElementById(r))||void 0===e?void 0:e.focus()}),"confirm"!==e?(s(!1),null==i||i()):null==n||n()},children:a})})}BT.displayName="TreeView.ErrorDialog";const VT="sr-only",_T=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"],FT=e=>{if(!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function HT(e){const{items:t,onClose:a}=e,{itemId:n}=o.useContext(pT);return f.jsx("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>{_T.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ActionDialog",children:f.jsx(Yf,{title:"Supplemental actions",onClose:()=>{null==a||a(),window.setTimeout(()=>{var e;return null===(e=document.getElementById(n))||void 0===e?void 0:e.focus()})},children:f.jsx(Bn,{children:t.map(({label:e,onClick:t,icon:a,count:n},i)=>f.jsxs(Bn.Item,{onSelect:t,children:[f.jsx(Bn.LeadingVisual,{children:FT(a)}),e,n?f.jsxs(Bn.TrailingVisual,{children:[n,f.jsx("span",{className:VT,children:" items"})]}):null]},i))})})})}HT.displayName="TreeView.ActionDialog";const WT="tree-view-visual",GT="sr-only",qT=(e,t)=>"function"==typeof e?e({isExpanded:t}):e,KT=e=>{const{children:t,label:a,labelId:n,className:i,"data-component":r}=e,{isExpanded:s}=o.useContext(pT);return f.jsxs(f.Fragment,{children:[f.jsx("span",{id:n,className:GT,"aria-hidden":"true",children:a}),f.jsx("span",{className:i,"aria-hidden":"true","data-component":r,children:qT(t,s)})]})},UT="tree-view-leading-action";function YT(e){return f.jsx(KT,{label:e.label,className:UT,"data-component":"TreeView.LeadingAction",children:e.children})}function ZT(e){const{leadingVisualId:t}=o.useContext(pT);return f.jsx(KT,{label:e.label,labelId:t,className:WT,"data-component":"TreeView.LeadingVisual",children:e.children})}YT.displayName="TreeView.LeadingAction",ZT.displayName="TreeView.LeadingVisual";const QT="tree-view-sub-tree",XT="tree-view-skeleton-row",JT="tree-view-skeleton-text",eI="tree-view-muted",tI="sr-only",aI=["67%","47%","73%","64%","50%"],nI=({index:e})=>f.jsxs("span",{className:XT,style:{"--tree-view-skeleton-width":aI[e%aI.length]},"aria-hidden":"true",children:[f.jsx(NO,{size:16,shape:"square"}),f.jsx(tf,{className:JT})]}),iI=o.forwardRef(({count:e},t)=>{const a=Jt();return f.jsx(hT.Provider,{value:!0,children:f.jsx(MI,{ref:t,id:a,children:e?f.jsxs(f.Fragment,{children:[Array.from({length:e},(e,t)=>f.jsx(nI,{index:t},t)),f.jsxs("span",{className:tI,children:["Loading ",e," items"]})]}):f.jsxs(f.Fragment,{children:[f.jsx(ZT,{children:f.jsx(en,{size:"small",srText:null})}),f.jsx(dr,{className:eI,children:"Loading..."})]})})})});iI.displayName="TreeView.LoadingItem";const rI=()=>f.jsx(MI,{id:Jt(),expanded:null,children:f.jsx(dr,{className:eI,children:"No items found"})});function oI(e){const{count:t,state:a,children:n,"aria-label":i}=e,{announceUpdate:r}=o.useContext(mT),{itemId:s,isExpanded:l,isSubTreeEmpty:c,setIsSubTreeEmpty:d}=o.useContext(pT),u=o.useRef(null),m=o.useRef(null),[p,h]=o.useState(!1),[g,v]=o.useState(""),b=(e=>{const t=o.useRef(e);return o.useEffect(()=>{t.current=e},[e]),t.current})(a);return o.useEffect(()=>{void 0!==a&&"done"!==a||d(!n)},[a,n,d]),o.useEffect(()=>{var e;const t=document.getElementById(s);if(!t)return;const n=vT(t);if(v(n),"loading"===a)return void r(`${n} content loading`);if("loading"!==b||"done"!==a)return;if(r((null===(e=u.current)||void 0===e?void 0:e.childElementCount)?`${n} content loaded`:`${n} is empty`),!p)return;const i=window.setTimeout(()=>{var e;(null!==(e=xT(t))&&void 0!==e?e:t).focus()});return h(!1),()=>{window.clearTimeout(i)}},[s,a,b,p,r]),o.useEffect(()=>{const e=m.current;if(!e)return;const t=()=>h(!0),a=e=>{e.relatedTarget&&h(!1)};return e.addEventListener("focus",t),e.addEventListener("blur",a),()=>{e.removeEventListener("focus",t),e.removeEventListener("blur",a)}},[a]),l?f.jsxs("ul",{ref:u,role:"group","aria-label":i||g,className:et(QT),"data-component":"TreeView.SubTree",children:["loading"===a?f.jsx(iI,{ref:m,count:t}):n,c&&"loading"!==a?f.jsx(rI,{}):null]}):null}oI.displayName="TreeView.SubTree";const sI="tree-view-trailing-action",lI="shrink",cI="sr-only";function dI(e){const{items:t,shortcutText:a}=e,{itemId:n,trailingActionId:i}=o.useContext(pT),r=()=>{var e;null===(e=document.getElementById(n))||void 0===e||e.focus()};return f.jsxs(f.Fragment,{children:[f.jsx("span",{id:i,className:cI,children:a}),f.jsx("span",{className:sI,"aria-hidden":"true",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),"data-component":"TreeView.TrailingAction",children:t.map(({label:e,onClick:t,icon:a,count:n,className:i},o)=>n?f.jsx(GC,{text:e,children:f.jsx(vn,{variant:"invisible",leadingVisual:a,count:n,"aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:et(lI,i)})},o):f.jsx(yn,{icon:a,variant:"invisible","aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:et(lI,i)},o))})]})}function uI(e){const{trailingVisualId:t}=o.useContext(pT);return f.jsx(KT,{label:e.label,labelId:t,className:WT,"data-component":"TreeView.TrailingVisual",children:e.children})}dI.displayName="TreeView.TrailingAction",uI.displayName="TreeView.TrailingVisual";const mI="tree-view-item",pI="tree-view-item-container",hI="tree-view-item-container-flat",gI="tree-view-item-container-has-leading-action",fI="tree-view-item-container-current",vI="tree-view-item-container-loading",bI="tree-view-item-spacer",xI="tree-view-item-level-lines",yI="tree-view-item-level-line",wI="tree-view-item-toggle",NI="tree-view-item-toggle-hover",jI="tree-view-item-toggle-end",kI="tree-view-item-content",CI="tree-view-item-label",SI=({level:e})=>f.jsx("span",{className:xI,children:Array.from({length:e-1},(e,t)=>f.jsx("span",{className:yI},t))});function OI(e,t){const a=e,{as:n,id:i,children:r,className:l,current:c=!1,defaultExpanded:d,expanded:u,onExpandedChange:m,onSelect:p,containIntrinsicSize:h,secondaryActions:g,"aria-label":v,"aria-labelledby":b}=a,x=s(a,["as","id","children","className","current","defaultExpanded","expanded","onExpandedChange","onSelect","containIntrinsicSize","secondaryActions","aria-label","aria-labelledby"]),{expandedStateCache:y,scrollElementIntoView:w}=o.useContext(mT),{level:N}=o.useContext(pT),j=o.useContext(hT),k=Xx(),[C,S]=(e=>va(e,{leadingAction:YT,leadingVisual:ZT,trailingVisual:uI,subTree:oI}))(r),O=Boolean(C.subTree),M=Jt(),A=Jt(),T=Jt(),I=Jt(),D=void 0!==u,[L,z]=o.useState(()=>{var e,t,a;return null!==(a=null!==(t=null===(e=y.current)||void 0===e?void 0:e.get(i))&&void 0!==t?t:d)&&void 0!==a?a:c}),E=D?!0===u:L,[P,$]=o.useState(!O),[R,B]=o.useState(!1),[V,_]=o.useState(!1),F=o.useCallback(e=>{var t;z(e),null===(t=y.current)||void 0===t||t.set(i,e),null==m||m(e)},[i,y,m]),H=o.useCallback(e=>{F(!E),null==e||e.stopPropagation()},[E,F]),W=o.useCallback(()=>{(null==g?void 0:g.length)&&(1!==g.length?_(!0):g[0].onClick())},[g]),G=`Press (${Kx(`Shift+${"apple"===k?"Meta":"Control"}+U`,k)}) for more actions.`,q=[C.leadingVisual?A:void 0,C.trailingVisual?T:void 0].filter(Boolean),K=o.useMemo(()=>({itemId:i,level:N+1,isSubTreeEmpty:P,setIsSubTreeEmpty:$,isExpanded:E,setIsExpanded:F,leadingVisualId:A,trailingVisualId:T,trailingActionId:I}),[i,N,P,E,F,A,T,I]),U=(!P||E&&O)&&null!==u?E:void 0,Y=null!=n?n:"li",Z=void 0!==n&&"li"!==n,Q=f.jsxs(Y,Object.assign({ref:t,id:i,role:"treeitem",tabIndex:-1,"aria-label":g&&v?`${v}. ${G}`:v,"aria-labelledby":v?void 0:`${b||M} ${g?I:""}`.trim(),"aria-describedby":q.length>0?q.join(" "):void 0,"aria-level":N,"aria-expanded":U,"aria-current":c?"true":void 0,"aria-selected":R?"true":"false",className:et(mI,l),"data-component":"TreeView.Item","data-has-leading-action":C.leadingAction?"":void 0,"data-loading":j?"":void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":p?p(e):H(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),F(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),F(!1);break;case"U":case"u":if(!e.shiftKey||!e.metaKey&&!e.ctrlKey)return;W()}},onClick:e=>{p?p(e):H(e),e.stopPropagation()},onAuxClick:e=>{p&&1===e.button&&p(e),e.stopPropagation()},onFocus:e=>{w(e.currentTarget.firstElementChild),B(!0),e.stopPropagation()},onBlur:()=>B(!1)},x,{children:[f.jsxs("span",{className:et(pI,hI,C.leadingAction&&gI,c&&fI,j&&vI),style:{"--tree-view-level":N,contentVisibility:h?"auto":void 0,containIntrinsicSize:h},children:[f.jsx("span",{className:bI,children:f.jsx(SI,{level:N})}),C.leadingAction,O?f.jsx("span",{className:et(wI,p&&NI,1===N&&jI),onClick:e=>{p&&H(e)},"data-component":"TreeView.Item.Toggle",children:E?f.jsx(bt,{width:12,height:12}):f.jsx(yt,{width:12,height:12})}):null,f.jsxs("span",{id:M,className:kI,children:[C.leadingVisual,f.jsx("span",{className:CI,"data-component":"TreeView.Item.Label",children:S}),C.trailingVisual]}),(null==g?void 0:g.length)?f.jsx(dI,{items:g,shortcutText:G}):null]}),C.subTree,V&&g?f.jsx(HT,{items:g,onClose:()=>_(!1)}):null]}));return f.jsx(pT.Provider,{value:K,children:Z?f.jsx("li",{role:"none",children:Q}):Q})}OI.displayName="TreeView.Item";var MI=tt(OI);const AI=Object.assign(ET,{Item:MI,SubTree:oI,LeadingAction:YT,LeadingVisual:ZT,TrailingVisual:uI,DirectoryIcon:$T,ErrorDialog:BT}),TI=125,II="truncate-text",DI="truncate-text-block",LI="inline-block align-top",zI="truncate-text-expandable";function EI(e,t){const a=e,{as:n="div",className:i,title:r,maxWidth:o=TI,inline:l,expandable:c,style:d}=a,u=s(a,["as","className","title","maxWidth","inline","expandable","style"]);return f.jsx(n,Object.assign({ref:t,title:r,className:et(II,l?LI:DI,c&&zI,i),style:Object.assign(Object.assign({},d),{"--truncate-max-width":"number"==typeof o?`${o}px`:o}),"data-component":"Truncate","data-inline":l,"data-expandable":c},u))}EI.displayName="Truncate";var PI=tt(EI);const $I=["bytes","KB","MB","GB","TB"],RI=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${$I[0]}`;let t=e,a=0;for(;t>=1024&&a<$I.length-1;)t/=1024,a+=1;return`${0===a?Math.round(t):Math.round(10*t)/10} ${$I[a]}`},BI=(e,t)=>{const a=(null!=t?t:"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean);if(0===a.length)return!0;const n=e.name.toLowerCase(),i=e.type.toLowerCase();return a.some(e=>e.startsWith(".")?n.endsWith(e):e.endsWith("/*")?i.startsWith(e.slice(0,-1)):i===e)},VI=(e,t)=>{const{accept:a,maxSize:n,multiple:i}=t,r=[],o=[];return e.forEach(e=>{BI(e,a)?void 0!==n&&e.size>n?o.push({file:e,reason:"size"}):!i&&r.length>0?o.push({file:e,reason:"count"}):r.push(e):o.push({file:e,reason:"type"})}),{accepted:r,rejected:o}},_I=e.createContext({}),FI="upload-description";function HI(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{descriptionId:r}=o.useContext(_I);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(FI,a),"data-component":"Upload.Description"},i))}HI.displayName="Upload.Description";var WI=tt(HI);const GI="upload-icon";function qI(e,t){const{icon:a=pt,className:n,"aria-label":i}=e,r=s(e,["icon","className","aria-label"]);return f.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:et(GI,n),"data-component":"Upload.Icon"},r,{children:f.jsx(a,{})}))}qI.displayName="Upload.Icon";var KI=tt(qI);const UI="upload-label";function YI(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{labelId:r}=o.useContext(_I);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(UI,a),"data-component":"Upload.Label"},i))}YI.displayName="Upload.Label";var ZI=tt(YI);const QI="upload-list";function XI(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]);return 0===o.Children.toArray(n).length?null:f.jsx("ul",Object.assign({ref:t,role:"list",className:et(QI,a),"data-component":"Upload.List"},i,{children:n}))}XI.displayName="Upload.List";var JI=tt(XI);const eD="sr-only",tD=Xe("upload",{variants:{size:{small:"upload-small",medium:"upload-medium",large:"upload-large"}}}),aD=Xe("upload-zone",{variants:{dragging:{true:"upload-zone-dragging",false:""},disabled:{true:"upload-zone-disabled",false:"upload-zone-interactive"},validation:{error:"upload-zone-error",success:"upload-zone-success"}}});function nD(e,t){const{className:a,children:n,size:i="medium",accept:r,multiple:l,disabled:c,required:d,name:u,maxSize:m,validationStatus:p,onSelect:h,onReject:g,id:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["className","children","size","accept","multiple","disabled","required","name","maxSize","validationStatus","onSelect","onReject","id","aria-label","aria-labelledby","aria-describedby"]),N=o.useRef(null),j=Jt(v),k=Jt(),C=Jt(),S=o.useRef(0),[O,M]=o.useState(!1),[A,T]=va(n,{icon:KI,label:ZI,description:WI,list:JI}),I=(e,t)=>{const{accepted:a,rejected:n}=VI(e,{accept:r,maxSize:m,multiple:l});"drop"===t&&a.length>0&&((e,t)=>{if(!e||"undefined"==typeof DataTransfer)return;const a=new DataTransfer;t.forEach(e=>a.items.add(e)),e.files=a.files})(N.current,a),n.length>0&&(null==g||g(n,t)),a.length>0&&(null==h||h(a,t))},D=null!=x?x:A.label&&!b?k:void 0,L=[A.description?C:void 0,y].filter(Boolean).join(" ")||void 0;return f.jsx(_I.Provider,{value:{labelId:k,descriptionId:C},children:f.jsxs("div",Object.assign({ref:t,className:et(tD({size:i}),a),"data-component":"Upload","data-size":i,"data-disabled":c,"data-dragging":O||void 0,"data-validation":p},w,{children:[f.jsxs("label",{className:et(aD({dragging:O,disabled:Boolean(c),validation:p})),onDragEnter:e=>{c||(e.preventDefault(),S.current+=1,M(!0))},onDragOver:e=>{c||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))},onDragLeave:()=>{c||(S.current=Math.max(S.current-1,0),0===S.current&&M(!1))},onDrop:e=>{var t,a;c||(e.preventDefault(),S.current=0,M(!1),I(Array.from(null!==(a=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)&&void 0!==a?a:[]),"drop"))},"data-component":"Upload.Zone",children:[f.jsx("input",{ref:N,id:j,type:"file",name:u,accept:r,multiple:l,disabled:c,required:d,onChange:e=>{var t;I(Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),"input")},className:eD,"aria-label":b,"aria-labelledby":D,"aria-describedby":L,"aria-invalid":"error"===p||void 0,"data-component":"Upload.Input"}),A.icon,A.label,A.description]}),A.list,T]}))})}nD.displayName="Upload";var iD=tt(nD);const rD="upload-item",oD="upload-item-icon",sD="upload-item-body",lD="upload-item-heading",cD="upload-item-name",dD="upload-item-file-size",uD="upload-item-description",mD="upload-item-description-error",pD="upload-item-status",hD={success:{icon:ft,className:"upload-item-status-success"},error:{icon:Ot,className:"upload-item-status-error"}};function gD(e,t){const{className:a,name:n,fileSize:i,status:r="pending",progress:o,description:l,icon:c=St,onRemove:d,removeLabel:u,children:m}=e,p=s(e,["className","name","fileSize","status","progress","description","icon","onRemove","removeLabel","children"]),h="success"===r||"error"===r?hD[r]:void 0,g=null==h?void 0:h.icon;return f.jsxs("li",Object.assign({ref:t,className:et(rD,a),"data-component":"Upload.Item","data-status":r},p,{children:[f.jsx("span",{className:oD,"aria-hidden":"true","data-component":"Upload.Item.Icon",children:f.jsx(c,{})}),f.jsxs("span",{className:sD,children:[f.jsxs("span",{className:lD,children:[f.jsx("span",{className:cD,"data-component":"Upload.Item.Name",children:n}),void 0===i?null:f.jsx("span",{className:dD,"data-component":"Upload.Item.Size",children:RI(i)})]}),"uploading"===r?f.jsx(Bk,{progress:o,variant:"accent",size:"small",animated:!0,"aria-label":`Uploading ${n}`}):null,l?f.jsx("span",{className:et(uD,"error"===r&&mD),"data-component":"Upload.Item.Description",children:l}):null,m]}),g?f.jsx("span",{className:et(pD,null==h?void 0:h.className),"aria-hidden":"true","data-component":"Upload.Item.Status",children:f.jsx(g,{})}):null,d?f.jsx(yn,{icon:Ct,variant:"invisible",size:"small","aria-label":null!=u?u:`Remove ${n}`,onClick:d,"data-component":"Upload.Item.RemoveButton"}):null]}))}gD.displayName="Upload.Item";var fD=tt(gD);const vD=Object.assign(iD,{Icon:KI,Label:ZI,Description:WI,List:JI,Item:fD}),bD=(t,{isPropUpdateDisabled:a=!1,isEqual:n=Object.is}={})=>{const[i,r]=e.useState(t),[o,s]=e.useState(t),l=t instanceof Function?t():t;return a||n(o,l)||(s(l),r(l)),[i,r]},xD=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),yD=()=>e.useContext(xD),wD="(prefers-color-scheme: dark)",ND=e=>{var t;const a=null===(t=null===window||void 0===window?void 0:window.matchMedia)||void 0===t?void 0:t.call(window,wD);return null==a||a.addEventListener("change",e),()=>null==a?void 0:a.removeEventListener("change",e)},jD=()=>{var e,t;return(null===(t=null===(e=null===window||void 0===window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,wD))||void 0===t?void 0:t.matches)?"night":"day"},kD=()=>"day";function CD(e){var t,a,n,i,r,l,{children:c,className:d,contextOnly:u}=e,m=s(e,["children","className","contextOnly"]);const{colorMode:p,dayScheme:h,nightScheme:g}=yD(),[v,b]=bD(null!==(a=null!==(t=m.colorMode)&&void 0!==t?t:p)&&void 0!==a?a:"day"),[x,y]=bD(null!==(i=null!==(n=m.dayScheme)&&void 0!==n?n:h)&&void 0!==i?i:"light"),[w,N]=bD(null!==(l=null!==(r=m.nightScheme)&&void 0!==r?r:g)&&void 0!==l?l:"dark"),j=o.useSyncExternalStore(ND,jD,kD),k=((e,t)=>"auto"===e?t:e)(v,j),C=((e,t,a)=>{switch(e){case"day":case"light":return t;case"night":case"dark":return a}})(k,x,w),S=o.useMemo(()=>({colorScheme:C,colorMode:v,resolvedColorMode:k,dayScheme:x,nightScheme:w,setColorMode:b,setDayScheme:y,setNightScheme:N}),[C,v,k,x,w,b,y,N]);return u?f.jsx(xD.Provider,{value:S,children:c}):f.jsx(xD.Provider,{value:S,children:f.jsx("div",{className:d,"data-component":"ThemeProvider","data-theme":C,"data-color-mode":v,children:c})})}CD.displayName="ThemeProvider",exports.ARROW_KEY_STEP=3,exports.Accordion=sa,exports.AccordionContext=at,exports.AccordionHeader=Xt,exports.AccordionItem=aa,exports.AccordionItemContext=Wt,exports.AccordionPanel=oa,exports.ActionBar=Qi,exports.ActionBarButton=Zi,exports.ActionBarContext=wi,exports.ActionBarDivider=Oi,exports.ActionBarGroup=Ii,exports.ActionBarIconButton=zi,exports.ActionBarItemContext=Ni,exports.ActionBarMenu=Bi,exports.ActionList=Bn,exports.ActionListContainerContext=Oa,exports.ActionListContext=Na,exports.ActionListDescription=Pa,exports.ActionListDivider=Ra,exports.ActionListGroup=Ya,exports.ActionListGroupContext=Ba,exports.ActionListGroupHeading=Ga,exports.ActionListHeading=Sa,exports.ActionListItem=Pn,exports.ActionListItemContext=La,exports.ActionListLeadingVisual=on,exports.ActionListLinkItem=Rn,exports.ActionListSubItem=sn,exports.ActionListTrailingAction=kn,exports.ActionListTrailingVisual=Cn,exports.ActionMenu=yi,exports.ActionMenuAnchor=_n,exports.ActionMenuButton=Fn,exports.ActionMenuContext=Vn,exports.ActionMenuOverlay=xi,exports.Alert=er,exports.AnchoredOverlay=vi,exports.AspectRatio=nr,exports.Autocomplete=Er,exports.AutocompleteContext=ir,exports.AutocompleteDeferredInputContext=or,exports.AutocompleteInput=Sr,exports.AutocompleteInputContext=rr,exports.AutocompleteMenu=Ir,exports.AutocompleteOverlay=zr,exports.Avatar=Vr,exports.AvatarStack=Wr,exports.BAR_RADIUS=4,exports.Banner=bo,exports.BannerContext=Gr,exports.BannerDescription=Kr,exports.BannerPrimaryAction=go,exports.BannerSecondaryAction=vo,exports.BannerTitle=Zr,exports.Blankslate=Go,exports.BlankslateDescription=ko,exports.BlankslateHeading=Oo,exports.BlankslatePrimaryAction=Lo,exports.BlankslateSecondaryAction=Vo,exports.BlankslateVisual=Wo,exports.Blockquote=Uo,exports.Breadcrumbs=ps,exports.BreadcrumbsContext=Zo,exports.BreadcrumbsItem=ms,exports.Button=vn,exports.ButtonGroup=ws,exports.CHART_OVERFLOW_COLOR=Bc,exports.CHART_SERIES_COLORS=Rc,exports.Calendar=Al,exports.CalendarDay=Is,exports.Card=nc,exports.CardAction=Dl,exports.CardDescription=Pl,exports.CardHeading=Vl,exports.CardIcon=Wl,exports.CardImage=Kl,exports.CardMetadata=Zl,exports.Carousel=Dc,exports.CarouselContext=rc,exports.CarouselControls=yc,exports.CarouselIndicators=uc,exports.CarouselNextButton=pc,exports.CarouselPlayButton=gc,exports.CarouselPreviousButton=vc,exports.CarouselSlide=jc,exports.CarouselSlideContext=oc,exports.Chart=Om,exports.ChartLegend=$c,exports.ChartTooltip=rm,exports.Checkbox=Pm,exports.CheckboxGroup=rp,exports.CheckboxGroupCaption=Bm,exports.CheckboxGroupContext=Mm,exports.CheckboxGroupLabel=Gm,exports.CheckboxGroupValidation=Zm,exports.Collapsible=kp,exports.CollapsibleContent=pp,exports.CollapsibleContext=op,exports.CollapsibleTrigger=jp,exports.CommandPalette=hh,exports.CommandPaletteContext=Op,exports.CommandPaletteDialog=Vp,exports.CommandPaletteEmpty=Hp,exports.CommandPaletteGroup=Up,exports.CommandPaletteGroupContext=Mp,exports.CommandPaletteInput=Qp,exports.CommandPaletteItem=nh,exports.CommandPaletteList=sh,exports.CommandPaletteLoading=dh,exports.CommandPaletteSeparator=ph,exports.ConfirmationDialog=Jh,exports.CounterLabel=un,exports.DAYS_IN_WEEK=7,exports.DAY_KEY_FORMAT=Xs,exports.DEFAULT_AVATAR_SIZE=$r,exports.DEFAULT_COLOR_MODE="day",exports.DEFAULT_ISSUE_LABEL_FILL_COLOR=GA,exports.DEFAULT_RELATIVE_TIME_PREFIX=vC,exports.DEFAULT_RELATIVE_TIME_THRESHOLD=fC,exports.DEFAULT_SORT_DIRECTION=kf,exports.DEFAULT_TABLE_PAGE_SIZE=Bg,exports.DEFAULT_TABLE_SKELETON_ROWS=sf,exports.DEFAULT_TEXTAREA_COLS=$b,exports.DEFAULT_TEXTAREA_RESIZE=Rb,exports.DEFAULT_TEXTAREA_ROWS=Pb,exports.DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY=uA,exports.DEFAULT_TOKEN_SIZE=AA,exports.DEFAULT_TRUNCATE_MAX_WIDTH=TI,exports.DataTable=Ef,exports.DatePicker=_f,exports.Details=Uf,exports.DetailsSummary=Kf,exports.Dialog=Yf,exports.DialogBody=wh,exports.DialogButtons=jh,exports.DialogCloseButton=Ch,exports.DialogContext=Nh,exports.DialogFooter=Ah,exports.DialogHeader=Dh,exports.DialogSubtitle=Eh,exports.DialogTitle=Rh,exports.DragHandle=oj,exports.Drawer=yv,exports.DrawerBody=Xf,exports.DrawerCloseButton=av,exports.DrawerContext=Jf,exports.DrawerFooter=rv,exports.DrawerHeader=cv,exports.DrawerSubtitle=mv,exports.DrawerTitle=gv,exports.Em=jv,exports.EmptyState=Iv,exports.FilteredActionList=kb,exports.FilteredActionListBodyLoader=ub,exports.FilteredActionListInput=Qv,exports.FilteredActionListItem=eb,exports.FormControl=Cx,exports.FormControlCaption=Qb,exports.FormControlContext=Kb,exports.FormControlLabel=nx,exports.FormControlLeadingVisual=lx,exports.FormControlValidation=px,exports.Heading=wa,exports.Hidden=Mx,exports.IconButton=yn,exports.Image=Ix,exports.InlineMessage=$x,exports.IssueLabelToken=aT,exports.KeybindingHint=oy,exports.Label=cy,exports.Link=Ro,exports.LinkButton=uy,exports.MARK_GAP=2,exports.MAX_BAR_THICKNESS=24,exports.NavList=Fy,exports.NavListGroup=jy,exports.NavListGroupExpand=Ry,exports.NavListGroupHeading=_y,exports.NavListHeading=hy,exports.NavListItem=Ey,exports.NavListSubNav=Iy,exports.PageContent=ew,exports.PageContentSection=Jy,exports.PageFooter=Aw,exports.PageFooterActions=xw,exports.PageFooterCopyright=Nw,exports.PageFooterDescription=Cw,exports.PageFooterLeadingVisual=Mw,exports.PageFooterNavigation=uw,exports.PageHeader=TN,exports.PageHeaderActions=Zw,exports.PageHeaderBreadcrumbs=Jw,exports.PageHeaderContextArea=aN,exports.PageHeaderContextAreaActions=rN,exports.PageHeaderContextBar=lN,exports.PageHeaderDescription=uN,exports.PageHeaderLeadingAction=hN,exports.PageHeaderLeadingVisual=vN,exports.PageHeaderNavigation=Vw,exports.PageHeaderParentLink=yN,exports.PageHeaderTitle=jN,exports.PageHeaderTitleArea=Hw,exports.PageHeaderTrailingAction=SN,exports.PageHeaderTrailingVisual=AN,exports.PageLayout=Gj,exports.PageLayoutContent=Lj,exports.PageLayoutContext=DN,exports.PageLayoutFooter=_N,exports.PageLayoutHeader=KN,exports.PageLayoutPane=Wj,exports.PageLayoutSidebar=Nj,exports.PageSidebar=Nk,exports.PageSidebarActions=nk,exports.PageSidebarContent=ok,exports.PageSidebarFooter=ck,exports.PageSidebarHeader=mk,exports.PageSidebarNavigation=gk,exports.PageSidebarSection=bk,exports.PageSidebarTitle=wk,exports.Pagination=Ak,exports.Placeholder=Dk,exports.PlatformContext=Ux,exports.Portal=oi,exports.PortalContext=Jn,exports.ProgressBar=Bk,exports.ProgressBarItem=Ek,exports.Radio=Tb,exports.RadioGroup=lC,exports.RadioGroupCaption=Fk,exports.RadioGroupContext=Cb,exports.RadioGroupLabel=Uk,exports.RadioGroupValidation=Jk,exports.RelativeTime=IC,exports.SCREEN_READER_DELAY=500,exports.ScrollableRegion=bh,exports.SegmentedControl=wS,exports.SegmentedControlButton=lS,exports.SegmentedControlIconButton=mS,exports.Select=SS,exports.SelectOptGroup=jS,exports.SelectOption=CS,exports.SelectPanel=vO,exports.SelectPanelButton=MS,exports.SelectPanelContext=AS,exports.SelectPanelFooter=PS,exports.SelectPanelHeader=ZS,exports.SelectPanelLoading=lO,exports.SelectPanelMessage=uO,exports.SelectPanelSearchInput=BS,exports.SelectPanelSecondaryAction=fO,exports.Separator=yO,exports.SkeletonAvatar=NO,exports.SkeletonBox=Xg,exports.SkeletonText=tf,exports.Slider=SO,exports.Spinner=en,exports.Stack=sb,exports.StackItem=ob,exports.StateLabel=LO,exports.Tab=GO,exports.TabList=ZO,exports.TabPanel=JO,exports.Table=Pf,exports.TableActions=sg,exports.TableBody=ug,exports.TableCell=fg,exports.TableCellPlaceholder=xg,exports.TableContainer=jg,exports.TableDivider=Sg,exports.TableErrorDialog=Mg,exports.TableHead=Tg,exports.TableHeader=Eg,exports.TablePagination=qg,exports.TableRow=Ug,exports.TableSkeleton=cf,exports.TableSortHeader=vf,exports.TableSubtitle=yf,exports.TableTitle=jf,exports.Tabs=eM,exports.TabsContext=zO,exports.Text=dr,exports.TextInput=Nr,exports.TextInputAction=wr,exports.Textarea=qb,exports.ThemeContext=xD,exports.ThemeProvider=CD,exports.Timeline=DM,exports.TimelineActions=cM,exports.TimelineAvatar=mM,exports.TimelineBadge=fM,exports.TimelineBody=xM,exports.TimelineBreak=jM,exports.TimelineItem=IM,exports.Toaster=dA,exports.ToggleSwitch=OA,exports.Token=WA,exports.TokenBase=DA,exports.TokenRemoveButton=zA,exports.TokenText=RA,exports.Tooltip=GC,exports.TooltipContext=DC,exports.TopicTag=uT,exports.TopicTagGroup=dT,exports.TreeView=AI,exports.TreeViewDirectoryIcon=$T,exports.TreeViewErrorDialog=BT,exports.TreeViewItem=MI,exports.TreeViewItemContext=pT,exports.TreeViewLeadingAction=YT,exports.TreeViewLeadingVisual=ZT,exports.TreeViewRootContext=mT,exports.TreeViewSubTree=oI,exports.TreeViewTrailingVisual=uI,exports.Truncate=PI,exports.Upload=vD,exports.UploadContext=_I,exports.UploadDescription=WI,exports.UploadIcon=KI,exports.UploadItem=fD,exports.UploadLabel=ZI,exports.UploadList=JI,exports.buildPaginationModel=Pg,exports.buildPaginationPageData=$g,exports.commandScore=Sp,exports.createColumnHelper=()=>({column:e=>{var t;return Object.assign(Object.assign({},e),{id:null!==(t=e.id)&&void 0!==t?t:e.field})}}),exports.defaultPaneWidth=YN,exports.extendRange=ml,exports.formatFileSize=RI,exports.formatRelativeTime=AC,exports.formatTitle=MC,exports.getAccessibleKeybindingHintString=Kx,exports.getAnchoredPosition=ui,exports.getCharacterCount=ur,exports.getFirstDayOfWeek=il,exports.getIssueLabelColors=YA,exports.getMonthWeeks=sl,exports.getPlatform=Zx,exports.getRangePosition=ul,exports.getSeriesColor=Vc,exports.getWeekdays=rl,exports.isDateSelectable=ll,exports.isDateWithinRange=dl,exports.isFileAccepted=BI,exports.isTokenInteractive=TA,exports.parseDate=pl,exports.registerPortalRoot=ii,exports.sortStrategies=Mf,exports.startOfWeek=ol,exports.toDayKey=tl,exports.toast=KM,exports.transitionSortDirection=Cf,exports.triageFiles=VI,exports.updateAriaValues=tj,exports.useAnnouncements=mb,exports.useColorSchemeVar=(e,t)=>{var a;const{colorScheme:n}=yD();return null!==(a=n?e[n]:void 0)&&void 0!==a?a:t},exports.useConfirm=()=>eg,exports.useFormControlForwardedProps=kx,exports.usePaneWidth=dj,exports.usePlatform=Xx,exports.useTab=RO,exports.useTabList=qO,exports.useTabPanel=QO,exports.useTabs=$O,exports.useTheme=yD;
10
+ */function z(){return I||(I=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case f:return"Profiler";case g:return"StrictMode";case y:return"Suspense";case w:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var a=e.render;return(e=e.displayName)||(e=""!==(e=a.displayName||a.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(a=e.displayName||null)?a:t(e.type)||"Memo";case j:a=e._payload,e=e._init;try{return t(e(a))}catch(e){}}return null}function a(e){return""+e}function n(e){try{a(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),a(e)}}function i(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===j)return"<...>";try{var a=t(e);return a?"<"+a+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function o(){var e=t(this.type);return A[e]||(A[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,a,i,r,s,c){var u,p=a.children;if(void 0!==p)if(r)if(M(p)){for(r=0;r<p.length;r++)l(p[r]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(p);if(O.call(a,"key")){p=t(e);var h=Object.keys(a).filter(function(e){return"key"!==e});r=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",D[p+r]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',r,p,h,p),D[p+r]=!0)}if(p=null,void 0!==i&&(n(i),p=""+i),function(e){if(O.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(a)&&(n(a.key),p=""+a.key),"key"in a)for(var g in i={},a)"key"!==g&&(i[g]=a[g]);else i=a;return p&&function(e,t){function a(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,a,n,i,r){var s=a.ref;return e={$$typeof:m,type:e,key:t,props:a,_owner:n},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,i,null===(u=S.A)?null:u.getOwner(),s,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===j&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,M=Array.isArray,T=console.createTask?console.createTask:function(){return null},A={},L=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,r)(),I=T(i(r)),D={};E.Fragment=h,E.jsx=function(e,t,a){var n=1e4>S.recentlyCreatedOwnerStacks++;return s(e,t,a,!1,n?Error("react-stack-top-frame"):L,n?T(i(e)):I)},E.jsxs=function(e,t,a){var n=1e4>S.recentlyCreatedOwnerStacks++;return s(e,t,a,!0,n?Error("react-stack-top-frame"):L,n?T(i(e)):I)}}()),E}var P=(D||(D=1,"production"===process.env.NODE_ENV?A.exports=function(){if(T)return L;T=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(t,a,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==a.key&&(i=""+a.key),"key"in a)for(var r in n={},a)"key"!==r&&(n[r]=a[r]);else n=a;return a=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==a?a:null,props:n}}return L.Fragment=t,L.jsx=a,L.jsxs=a,L}():A.exports=z()),A.exports);const R=!("undefined"==typeof window||!window.document||!window.document.createElement),$=e.version.split("."),B=parseInt($[0],10),_=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(e.version),V=B>=19||_,H=(t,a)=>e.useCallback(e=>{const n=F(t,e),i=F(a,e);if(V)return()=>{n?n():F(t,null),i?i():F(a,null)}},[t,a]),F=(e,t)=>{if("function"==typeof e)return e(t);e&&(e.current=t)};function W(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=W(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function q(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=W(e))&&(n&&(n+=" "),n+=t);return n}const G=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),K="-",U=[],Y=e=>{const t=X(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Q(e);const a=e.split(K),n=""===a[0]&&a.length>1?1:0;return Z(a,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],i=a[e];return t?i?((e,t)=>{const a=new Array(e.length+t.length);for(let t=0;t<e.length;t++)a[t]=e[t];for(let n=0;n<t.length;n++)a[e.length+n]=t[n];return a})(i,t):t:i||U}return a[e]||U}}},Z=(e,t,a)=>{if(0===e.length-t)return a.classGroupId;const n=e[t],i=a.nextPart.get(n);if(i){const a=Z(e,t+1,i);if(a)return a}const r=a.validators;if(null===r)return;const o=0===t?e.join(K):e.slice(t).join(K),s=r.length;for(let e=0;e<s;e++){const t=r[e];if(t.validator(o))return t.classGroupId}},Q=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),n=t.slice(0,a);return n?"arbitrary.."+n:void 0})(),X=e=>{const{theme:t,classGroups:a}=e;return J(a,t)},J=(e,t)=>{const a=G();for(const n in e){const i=e[n];ee(i,a,n,t)}return a},ee=(e,t,a,n)=>{const i=e.length;for(let r=0;r<i;r++){const i=e[r];te(i,t,a,n)}},te=(e,t,a,n)=>{"string"!=typeof e?"function"!=typeof e?ie(e,t,a,n):ne(e,t,a,n):ae(e,t,a)},ae=(e,t,a)=>{(""===e?t:re(t,e)).classGroupId=a},ne=(e,t,a,n)=>{oe(e)?ee(e(n),t,a,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(a,e)))},ie=(e,t,a,n)=>{const i=Object.entries(e),r=i.length;for(let e=0;e<r;e++){const[r,o]=i[e];ee(o,re(t,r),a,n)}},re=(e,t)=>{let a=e;const n=t.split(K),i=n.length;for(let e=0;e<i;e++){const t=n[e];let i=a.nextPart.get(t);i||(i=G(),a.nextPart.set(t,i)),a=i}return a},oe=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,se=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),n=Object.create(null);const i=(i,r)=>{a[i]=r,t++,t>e&&(t=0,n=a,a=Object.create(null))};return{get(e){let t=a[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in a?a[e]=t:i(e,t)}}},le=[],ce=(e,t,a,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:n,isExternal:i}),de=e=>{const{prefix:t,experimentalParseClassName:a}=e;let n=e=>{const t=[];let a,n=0,i=0,r=0;const o=e.length;for(let s=0;s<o;s++){const o=e[s];if(0===n&&0===i){if(":"===o){t.push(e.slice(r,s)),r=s+1;continue}if("/"===o){a=s;continue}}"["===o?n++:"]"===o?n--:"("===o?i++:")"===o&&i--}const s=0===t.length?e:e.slice(r);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return ce(t,c,l,a&&a>r?a-r:void 0)};if(t){const e=t+":",a=n;n=t=>t.startsWith(e)?a(t.slice(e.length)):ce(le,!1,t,void 0,!0)}if(a){const e=n;n=t=>a({className:t,parseClassName:e})}return n},ue=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,a)=>{t.set(e,1e6+a)}),e=>{const a=[];let n=[];for(let i=0;i<e.length;i++){const r=e[i],o="["===r[0],s=t.has(r);o||s?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(r)):n.push(r)}return n.length>0&&(n.sort(),a.push(...n)),a}},me=e=>{const t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let e=0;e<a.length;e++)t[a[e]]=!0;return t},pe=/\s+/,he=e=>{if("string"==typeof e)return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=he(e[n]))&&(a&&(a+=" "),a+=t);return a},ge=(e,...t)=>{let a,n,i,r;const o=e=>{const t=n(e);if(t)return t;const r=((e,t)=>{const{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:r,postfixLookupClassGroupIds:o}=t,s=[],l=e.trim().split(pe);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:d,modifiers:u,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}=a(t);if(d){c=t+(c.length>0?" "+c:c);continue}let g,f=!!h;if(f){g=n(p.substring(0,h));const e=g&&o[g]?n(p):void 0;e&&e!==g&&(g=e,f=!1)}else g=n(p);if(!g){if(!f){c=t+(c.length>0?" "+c:c);continue}if(g=n(p),!g){c=t+(c.length>0?" "+c:c);continue}f=!1}const v=0===u.length?"":1===u.length?u[0]:r(u).join(":"),b=m?v+"!":v,x=b+g;if(s.indexOf(x)>-1)continue;s.push(x);const y=i(g,f);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}c=t+(c.length>0?" "+c:c)}return c})(e,a);return i(e,r),r};return r=s=>{const l=t.reduce((e,t)=>t(e),e());return a=(e=>({cache:se(e.cacheSize),parseClassName:de(e),sortModifiers:ue(e),postfixLookupClassGroupIds:me(e),...Y(e)}))(l),n=a.cache.get,i=a.cache.set,r=o,o(s)},(...e)=>r(((...e)=>{let t,a,n=0,i="";for(;n<e.length;)(t=e[n++])&&(a=he(t))&&(i&&(i+=" "),i+=a);return i})(...e))},fe=[],ve=e=>{const t=t=>t[e]||fe;return t.isThemeGetter=!0,t},be=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ye=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,we=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ne=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Se=e=>ye.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),Te=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),Ae=e=>we.test(e),Le=()=>!0,Ie=e=>Ne.test(e)&&!je.test(e),De=()=>!1,Ee=e=>ke.test(e),ze=e=>Ce.test(e),Pe=e=>!Be(e)&&!Ke(e),Re=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),$e=e=>tt(e,rt,De),Be=e=>be.test(e),_e=e=>tt(e,ot,Ie),Ve=e=>tt(e,st,Oe),He=e=>tt(e,ct,Le),Fe=e=>tt(e,lt,De),We=e=>tt(e,nt,De),qe=e=>tt(e,it,ze),Ge=e=>tt(e,dt,Ee),Ke=e=>xe.test(e),Ue=e=>at(e,ot),Ye=e=>at(e,lt),Ze=e=>at(e,nt),Qe=e=>at(e,rt),Xe=e=>at(e,it),Je=e=>at(e,dt,!0),et=e=>at(e,ct,!0),tt=(e,t,a)=>{const n=be.exec(e);return!!n&&(n[1]?t(n[1]):a(n[2]))},at=(e,t,a=!1)=>{const n=xe.exec(e);return!!n&&(n[1]?t(n[1]):a)},nt=e=>"position"===e||"percentage"===e,it=e=>"image"===e||"url"===e,rt=e=>"length"===e||"size"===e||"bg-size"===e,ot=e=>"length"===e,st=e=>"number"===e,lt=e=>"family-name"===e,ct=e=>"number"===e||"weight"===e,dt=e=>"shadow"===e,ut=()=>{const e=ve("color"),t=ve("font"),a=ve("text"),n=ve("font-weight"),i=ve("tracking"),r=ve("leading"),o=ve("breakpoint"),s=ve("container"),l=ve("spacing"),c=ve("radius"),d=ve("shadow"),u=ve("inset-shadow"),m=ve("text-shadow"),p=ve("drop-shadow"),h=ve("blur"),g=ve("perspective"),f=ve("aspect"),v=ve("ease"),b=ve("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ke,Be],y=()=>[Ke,Be,l],w=()=>[Se,"full","auto",...y()],N=()=>[Me,"none","subgrid",Ke,Be],j=()=>["auto",{span:["full",Me,Ke,Be]},Me,Ke,Be],k=()=>[Me,"auto",Ke,Be],C=()=>["auto","min","max","fr",Ke,Be],S=()=>["auto",...y()],O=()=>[Se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[Se,"screen","full","dvw","lvw","svw","min","max","fit",...y()],T=()=>[Se,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],A=()=>[e,Ke,Be],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ze,We,{position:[Ke,Be]}],I=()=>["auto","cover","contain",Qe,$e,{size:[Ke,Be]}],D=()=>[Te,Ue,_e],E=()=>["","none","full",c,Ke,Be],z=()=>["",Oe,Ue,_e],P=()=>[Oe,Te,Ze,We],R=()=>["","none",h,Ke,Be],$=()=>["none",Oe,Ke,Be],B=()=>["none",Oe,Ke,Be],_=()=>[Oe,Ke,Be],V=()=>[Se,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ae],breakpoint:[Ae],color:[Le],container:[Ae],"drop-shadow":[Ae],ease:["in","out","in-out"],font:[Pe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ae],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ae],shadow:[Ae],spacing:["px",Oe],text:[Ae],"text-shadow":[Ae],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Se,Be,Ke,f]}],container:["container"],"container-type":[{"@container":["","normal","size",Ke,Be]}],"container-named":[Re],columns:[{columns:[Oe,Be,Ke,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",Ke,Be]}],basis:[{basis:[Se,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,Se,"auto","initial","none",Be]}],grow:[{grow:["",Oe,Ke,Be]}],shrink:[{shrink:["",Oe,Ke,Be]}],order:[{order:[Me,"first","last","none",Ke,Be]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...T()]}],"min-block-size":[{"min-block":["auto",...T()]}],"max-block-size":[{"max-block":["none",...T()]}],w:[{w:[s,"screen",...O()]}],"min-w":[{"min-w":[s,"screen","none",...O()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",a,Ue,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,et,He]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Te,Be]}],"font-family":[{font:[Ye,Fe,t]}],"font-features":[{"font-features":[Be]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ke,Be]}],"line-clamp":[{"line-clamp":[Oe,"none",Ke,Ve]}],leading:[{leading:[r,...y()]}],"list-image":[{"list-image":["none",Ke,Be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ke,Be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",Ke,_e]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Oe,"auto",Ke,Be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"tab-size":[{tab:[Me,Ke,Be]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ke,Be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ke,Be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,Ke,Be],radial:["",Ke,Be],conic:[Me,Ke,Be]},Xe,qe]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,Ke,Be]}],"outline-w":[{outline:["",Oe,Ue,_e]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,Je,Ge]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,Je,Ge]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Oe,_e]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",m,Je,Ge]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Oe,Ke,Be]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Ke,Be]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ke,Be]}],filter:[{filter:["","none",Ke,Be]}],blur:[{blur:R()}],brightness:[{brightness:[Oe,Ke,Be]}],contrast:[{contrast:[Oe,Ke,Be]}],"drop-shadow":[{"drop-shadow":["","none",p,Je,Ge]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Oe,Ke,Be]}],"hue-rotate":[{"hue-rotate":[Oe,Ke,Be]}],invert:[{invert:["",Oe,Ke,Be]}],saturate:[{saturate:[Oe,Ke,Be]}],sepia:[{sepia:["",Oe,Ke,Be]}],"backdrop-filter":[{"backdrop-filter":["","none",Ke,Be]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,Ke,Be]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,Ke,Be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,Ke,Be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,Ke,Be]}],"backdrop-invert":[{"backdrop-invert":["",Oe,Ke,Be]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,Ke,Be]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,Ke,Be]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,Ke,Be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ke,Be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",Ke,Be]}],ease:[{ease:["linear","initial",v,Ke,Be]}],delay:[{delay:[Oe,Ke,Be]}],animate:[{animate:["none",b,Ke,Be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Ke,Be]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[Ke,Be,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Me,Ke,Be]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ke,Be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ke,Be]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Oe,Ue,_e,Ve]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mt=(e,t,a)=>{void 0!==a&&(e[t]=a)},pt=(e,t)=>{if(t)for(const a in t)mt(e,a,t[a])},ht=(e,t)=>{if(t)for(const a in t)gt(e,t,a)},gt=(e,t,a)=>{const n=t[a];void 0!==n&&(e[a]=e[a]?e[a].concat(n):n)},ft=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,vt=q,bt=(e,t)=>a=>{var n;if(null==(null==t?void 0:t.variants))return vt(e,null==a?void 0:a.class,null==a?void 0:a.className);const{variants:i,defaultVariants:r}=t,o=Object.keys(i).map(e=>{const t=null==a?void 0:a[e],n=null==r?void 0:r[e];if(null===t)return null;const o=ft(t)||ft(n);return i[e][o]}),s=a&&Object.entries(a).reduce((e,t)=>{let[a,n]=t;return void 0===n||(e[a]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:a,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...r,...s}[t]):{...r,...s}[t]===a})?[...e,a,n]:e},[]);return vt(e,o,l,null==a?void 0:a.class,null==a?void 0:a.className)},xt=((e,...t)=>"function"==typeof e?ge(ut,e,...t):ge(()=>((e,{cacheSize:t,prefix:a,experimentalParseClassName:n,extend:i={},override:r={}})=>(mt(e,"cacheSize",t),mt(e,"prefix",a),mt(e,"experimentalParseClassName",n),pt(e.theme,r.theme),pt(e.classGroups,r.classGroups),pt(e.conflictingClassGroups,r.conflictingClassGroups),pt(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),mt(e,"postfixLookupClassGroups",r.postfixLookupClassGroups),mt(e,"orderSensitiveModifiers",r.orderSensitiveModifiers),ht(e.theme,i.theme),ht(e.classGroups,i.classGroups),ht(e.conflictingClassGroups,i.conflictingClassGroups),ht(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),gt(e,i,"postfixLookupClassGroups"),gt(e,i,"orderSensitiveModifiers"),e))(ut(),e),...t))({extend:{classGroups:{typography:["text-body-large","text-body-medium","text-body-small","text-caption","text-code-block","text-code-inline","text-display","text-subtitle","text-title-large","text-title-medium","text-title-small"],textSize:["text-size-large","text-size-medium","text-size-small"],textWeight:["text-weight-light","text-weight-normal","text-weight-medium","text-weight-semibold"],animate:["shimmer"],duration:["duration-micro","duration-short","duration-medium","duration-long"],ease:["ease-enter","ease-exit","ease-hover","ease-move"],z:["z-behind","z-default","z-dropdown","z-modal","z-overlay","z-popover","z-skip-link","z-sticky"]}}}),yt=(...e)=>xt(q(e)),wt=e.forwardRef,Nt=e.createContext({}),jt="accordion";function kt(e,t){const a=e,{as:n="div",className:i,value:r,defaultValue:o,onChange:s,multiple:l=!1,disabled:c,headingLevel:d="h3",onKeyDown:u}=a,m=S(a,["as","className","value","defaultValue","onChange","multiple","disabled","headingLevel","onKeyDown"]),p=C.useRef(null),h=H(t,p),g=void 0!==r,[f,v]=C.useState(()=>null!=o?o:[]),b=g?r:f;return P.jsx(Nt.Provider,{value:{open:b,toggle:e=>{const t=b.includes(e)?b.filter(t=>t!==e):l?[...b,e]:[e];g||v(t),null==s||s(t)},disabled:c,headingLevel:d},children:P.jsx(n,Object.assign({ref:h,className:yt(jt,i),onKeyDown:e=>{null==u||u(e);const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,a="Home"===e.key||"End"===e.key;if(e.defaultPrevented||0===t&&!a)return;const n=(i=p.current)?Array.from(i.querySelectorAll("[data-component='Accordion.HeaderButton']:not([disabled])")).filter(e=>e.closest("[data-component='Accordion']")===i):[];var i;const r=n.indexOf(document.activeElement);-1!==r&&(e.preventDefault(),(a?n["Home"===e.key?0:n.length-1]:n[(r+t+n.length)%n.length]).focus())},"data-component":"Accordion","data-multiple":l,"data-disabled":Boolean(c)},m))})}kt.displayName="Accordion";var Ct=wt(kt);function St(t,a,n){const i=n(),r=Object.keys(i),o=e.forwardRef(({"aria-label":t,"aria-labelledby":n,tabIndex:o,className:s="",fill:l="currentColor",size:c=16,id:d,title:u,style:m,...p},h)=>{const g=c,f=function(e,t){const a=e.map(e=>parseInt(e,10)).reduce((e,a)=>a<=t?a:e,parseInt(e[0],10));return a.toString()}(r,g),v=i[f].width,b=g*(v/parseInt(f,10)),x=i[f].path,y=t||n,w=y?"img":void 0,N=`${a} ${s}`.trim();return e.createElement("svg",{ref:h,...p,"aria-hidden":y?void 0:"true",tabIndex:o,focusable:(o??-1)>=0?"true":"false","aria-label":t,"aria-labelledby":n,className:N,role:w,viewBox:`0 0 ${v} ${f}`,width:b,height:g,fill:l,id:d,display:"inline-block",overflow:"visible",style:m},u?e.createElement("title",null,u):null,x)});return o.displayName=t,o}const Ot=St("AddRegular","icon icon-add-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75"})}})),Mt=St("ArchiveRegular","icon icon-archive-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z"})}})),Tt=St("ArrowClockwiseRegular","icon icon-arrow-clockwise-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2"})}})),At=St("ArrowLeftRegular","icon icon-arrow-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z"})}})),Lt=St("ArrowRedoRegular","icon icon-arrow-redo-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M19.25 2a.75.75 0 0 0-.743.648l-.007.102v5.69l-4.574-4.56a6.41 6.41 0 0 0-8.878-.179l-.186.18a6.41 6.41 0 0 0 0 9.063l8.845 8.84a.75.75 0 0 0 1.06-1.062l-8.845-8.838a4.91 4.91 0 0 1 6.766-7.112l.178.17L17.438 9.5H11.75a.75.75 0 0 0-.743.648L11 10.25c0 .38.282.694.648.743l.102.007h7.5a.75.75 0 0 0 .743-.648L20 10.25v-7.5a.75.75 0 0 0-.75-.75"})}})),It=St("ArrowSortDownRegular","icon icon-arrow-sort-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z"})}})),Dt=St("ArrowSortUpRegular","icon icon-arrow-sort-up-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z"})}})),Et=St("ArrowUndoRegular","icon icon-arrow-undo-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.75 2a.75.75 0 0 1 .743.648l.007.102v5.69l4.574-4.56a6.41 6.41 0 0 1 8.879-.179l.186.18a6.41 6.41 0 0 1 0 9.063l-8.846 8.84a.75.75 0 0 1-1.06-1.062l8.845-8.838a4.91 4.91 0 0 0-6.766-7.112l-.178.17L6.562 9.5h5.688a.75.75 0 0 1 .743.648l.007.102a.75.75 0 0 1-.648.743L12.25 11h-7.5a.75.75 0 0 1-.743-.648L4 10.25v-7.5A.75.75 0 0 1 4.75 2"})}})),zt=St("ArrowUploadRegular","icon icon-arrow-upload-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743"})}})),Pt=St("BranchRegular","icon icon-branch-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0"})}})),Rt=St("CalendarLtrRegular","icon icon-calendar-ltr-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75"})}})),$t=St("CheckmarkCircleRegular","icon icon-checkmark-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z"})}})),Bt=St("CheckmarkRegular","icon icon-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z"})}})),_t=St("ChevronDownRegular","icon icon-chevron-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06"})}})),Vt=St("ChevronLeftRegular","icon icon-chevron-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0"})}})),Ht=St("ChevronRightRegular","icon icon-chevron-right-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"})}})),Ft=St("ChevronUpDownRegular","icon icon-chevron-up-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.54 2.23a.75.75 0 0 0-1.08 0l-6.25 6.5a.75.75 0 1 0 1.08 1.04L12 3.832l5.71 5.938a.75.75 0 1 0 1.08-1.04zm0 19.54a.75.75 0 0 1-1.08 0l-6.25-6.5a.75.75 0 1 1 1.08-1.04L12 20.168l5.71-5.938a.75.75 0 1 1 1.08 1.04z"})}})),Wt=St("CircleHintRegular","icon icon-circle-hint-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49"})}})),qt=St("ClockRegular","icon icon-clock-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z"})}})),Gt=St("CodeRegular","icon icon-code-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m8.066 18.943 6.5-14.5a.75.75 0 0 1 1.404.518l-.036.096-6.5 14.5a.75.75 0 0 1-1.404-.518zl6.5-14.5zM2.22 11.47l4.25-4.25a.75.75 0 0 1 1.133.976l-.073.085L3.81 12l3.72 3.719a.75.75 0 0 1-.976 1.133l-.084-.073-4.25-4.25a.75.75 0 0 1-.073-.976zl4.25-4.25zm14.25-4.25a.75.75 0 0 1 .976-.073l.084.073 4.25 4.25a.75.75 0 0 1 .073.976l-.073.085-4.25 4.25a.75.75 0 0 1-1.133-.977l.073-.084L20.19 12l-3.72-3.72a.75.75 0 0 1 0-1.06"})}})),Kt=St("DismissCircleRegular","icon icon-dismiss-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072"})}})),Ut=St("DismissRegular","icon icon-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z"})}})),Yt=St("DocumentRegular","icon icon-document-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z"})}})),Zt=St("ErrorCircleRegular","icon icon-error-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751"})}})),Qt=St("FilterDismissRegular","icon icon-filter-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z"})}})),Xt=St("FolderOpenRegular","icon icon-folder-open-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124"})}})),Jt=St("FolderRegular","icon icon-folder-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z"})}})),ea=St("InfoRegular","icon icon-info-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),ta=St("LinkRegular","icon icon-link-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M9.25 7a.75.75 0 0 1 .11 1.492l-.11.008H7a3.5 3.5 0 0 0-.206 6.994L7 15.5h2.25a.75.75 0 0 1 .11 1.492L9.25 17H7a5 5 0 0 1-.25-9.994L7 7zM17 7a5 5 0 0 1 .25 9.994L17 17h-2.25a.75.75 0 0 1-.11-1.492l.11-.008H17a3.5 3.5 0 0 0 .206-6.994L17 8.5h-2.25a.75.75 0 0 1-.11-1.492L14.75 7zM7 11.25h10a.75.75 0 0 1 .102 1.493L17 12.75H7a.75.75 0 0 1-.102-1.493zh10z"})}})),aa=St("MergeRegular","icon icon-merge-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75"})}})),na=St("MoreHorizontalRegular","icon icon-more-horizontal-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5"})}})),ia=St("PauseRegular","icon icon-pause-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z"})}})),ra=St("PlayRegular","icon icon-play-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z"})}})),oa=St("ProhibitedRegular","icon icon-prohibited-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5"})}})),sa=St("RecordRegular","icon icon-record-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0"})}})),la=St("SearchRegular","icon icon-search-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0"})}})),ca=St("ShieldCheckmarkRegular","icon icon-shield-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708"})}})),da=St("ShieldDismissRegular","icon icon-shield-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22"})}})),ua=St("ShieldErrorRegular","icon icon-shield-error-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),ma=St("ShieldRegular","icon icon-shield-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8"})}})),pa=St("TextBoldRegular","icon icon-text-bold-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6.935 4.44A1.5 1.5 0 0 1 7.996 4h4.384C15.016 4 17 6.182 17 8.625a4.63 4.63 0 0 1-.866 2.682c1.077.827 1.866 2.12 1.866 3.813 0 3.112-2.7 4.88-4.88 4.88H8a1.5 1.5 0 0 1-1.5-1.5l-.004-13c0-.397.158-.779.44-1.06M9.5 10.25h2.88c.903 0 1.62-.76 1.62-1.625S13.282 7 12.38 7H9.498zm0 3V17h3.62c.874 0 1.88-.754 1.88-1.88 0-1.13-.974-1.87-1.88-1.87z"})}})),ha=St("TextBulletListLtrRegular","icon icon-text-bullet-list-ltr-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.25 17.5a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493L21.25 13H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5z"})}})),ga=St("TextHeader_1Regular","icon icon-text-header-1-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M19.59 5.082a.75.75 0 0 0-.809.083.75.75 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5z"})}})),fa=St("TextHeader_2Regular","icon icon-text-header-2-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.75 5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75m7-.5A4.25 4.25 0 0 1 22 8.75c0 1.299-.545 2.3-1.29 3.115-.722.79-1.673 1.45-2.524 2.058-1.554 1.11-2.799 2.084-3.11 3.577h6.174a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75c0-2.812 2.114-4.333 3.814-5.548.899-.642 1.698-1.201 2.288-1.848.568-.622.898-1.278.898-2.104a2.75 2.75 0 0 0-5.473-.393.75.75 0 0 1-1.484-.211A4.25 4.25 0 0 1 17.75 4.5"})}})),va=St("TextHeader_3Regular","icon icon-text-header-3-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M17.751 4.5c2.321 0 4.25 1.822 4.25 4.125 0 1.407-.721 2.633-1.81 3.375 1.089.742 1.81 1.968 1.81 3.375 0 2.303-1.929 4.125-4.25 4.125-.85 0-1.715-.243-2.447-.654-.73-.41-1.38-1.015-1.735-1.782a.75.75 0 0 1 1.362-.63c.19.412.578.808 1.106 1.104a3.6 3.6 0 0 0 1.714.462c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625H16.75a.75.75 0 0 1 0-1.5h1.001c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625-.575 0-1.19.167-1.714.462-.528.296-.915.692-1.106 1.104a.75.75 0 0 1-1.362-.63c.355-.767 1.005-1.372 1.735-1.782A5.1 5.1 0 0 1 17.75 4.5m-7 .5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75"})}})),ba=St("TextItalicRegular","icon icon-text-italic-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M18.75 4a.75.75 0 0 1 0 1.5h-3.482l-4.932 13h3.414a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.482l4.932-13H10.25a.75.75 0 0 1 0-1.5z"})}})),xa=St("TextNumberListLtrRegular","icon icon-text-number-list-ltr-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003-.011.024-.056.108a4 4 0 0 1-.238.385c-.217.312-.524.662-.906.901a.75.75 0 1 0 .794 1.272q.188-.117.353-.248V7.25a.75.75 0 1 0 1.5 0zm14.5 16a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.506a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.494a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75M5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 0 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a6 6 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.313.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12M2.97 21.28s.093.084.004.005l.006.005.013.013a1.4 1.4 0 0 0 .15.125c.095.071.227.158.397.243.341.17.83.33 1.46.33.64 0 1.196-.182 1.601-.54.408-.36.61-.858.595-1.36a1.78 1.78 0 0 0-.426-1.1c.259-.306.412-.686.426-1.102a1.73 1.73 0 0 0-.595-1.36C6.196 16.182 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.6 2.6 0 0 0-.51.334l-.037.033-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072l.026-.02a1 1 0 0 1 .166-.101c.159-.08.42-.17.79-.17.36 0 .536.099.608.163a.23.23 0 0 1 .088.187.33.33 0 0 1-.123.23c-.089.078-.263.17-.573.17a.75.75 0 0 0 0 1.5c.31 0 .484.09.573.167.091.08.121.166.123.231a.23.23 0 0 1-.088.188c-.072.063-.247.163-.608.163a1.75 1.75 0 0 1-.79-.17 1 1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072m.002-4.562c.007-.005.2-.166 0 0"})}})),ya=St("TextQuoteRegular","icon icon-text-quote-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M8 5a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.028-.026.113-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 8 5m8 0a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.027-.026.114-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 16 5M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"})}})),wa=St("TextStrikethroughRegular","icon icon-text-strikethrough-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.75 12h14.5a.75.75 0 0 1 .102 1.493l-.101.007h-2.975c.88.813 1.336 1.793 1.336 2.935 0 2.825-3.232 4.64-6.754 4.23-2.235-.26-3.809-1.155-4.635-2.702a.75.75 0 0 1 1.323-.707c.57 1.068 1.702 1.712 3.485 1.92 2.743.318 5.081-.995 5.081-2.741 0-1.172-.805-2.127-2.565-2.886l-.116-.049H4.75a.75.75 0 0 1-.743-.648L4 12.75a.75.75 0 0 1 .648-.743zh14.5zm1.511-3.877c.152-2.83 2.822-4.468 6.324-4.061 2.188.254 3.863 1.053 4.982 2.409a.75.75 0 1 1-1.157.955c-.852-1.033-2.17-1.662-3.999-1.874-2.717-.316-4.65.804-4.65 2.571 0 .772.234 1.348.83 1.982l.128.132c.094.096.197.195.25.24l.031.02H7.08l-.024-.038c-.143-.206-.856-1.195-.795-2.336"})}})),Na=St("TextUnderlineRegular","icon icon-text-underline-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6.75 19h10.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh10.5zm10.5-15a.75.75 0 0 1 .743.648L18 4.75v6c0 4.394-2.063 6.75-6.003 6.75-3.855 0-5.91-2.255-5.994-6.466L6 10.75v-6a.75.75 0 0 1 1.493-.102l.007.102v6C7.496 14.358 8.933 16 11.997 16c2.985 0 4.428-1.56 4.5-4.976l.003-.274v-6a.75.75 0 0 1 .75-.75"})}})),ja=St("WarningRegular","icon icon-warning-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5"})}})),ka=e.createContext({}),Ca="accordion-header",Sa="accordion-header-button",Oa="accordion-header-button-disabled",Ma="min-w-0",Ta="accordion-header-indicator",Aa="rotate-180";function La(e,t){var a;const{className:n,children:i,headingLevel:r}=e,o=S(e,["className","children","headingLevel"]),{headingLevel:s}=C.useContext(Nt),{headerId:l,panelId:c,isOpen:d,disabled:u,toggle:m}=C.useContext(ka),p=null!==(a=null!=r?r:s)&&void 0!==a?a:"h3";return P.jsx(p,{className:Ca,"data-component":"Accordion.Header",children:P.jsxs("button",Object.assign({ref:t,type:"button",id:l,className:yt(Sa,u&&Oa,n),onClick:m,disabled:u,"aria-expanded":Boolean(d),"aria-controls":c,"data-component":"Accordion.HeaderButton","data-open":Boolean(d)},o,{children:[P.jsx("span",{className:Ma,children:i}),P.jsx(_t,{className:yt(Ta,d&&Aa),"aria-hidden":"true"})]}))})}La.displayName="Accordion.Header";var Ia=wt(La);const Da=t=>{const a=e.useId();return t||a},Ea="accordion-item";function za(e,t){var a,n;const i=e,{as:r="div",className:o,value:s,disabled:l}=i,c=S(i,["as","className","value","disabled"]),{open:d,toggle:u,disabled:m}=C.useContext(Nt),p=Da(),h=null!=s?s:p,g=null!==(a=null==d?void 0:d.includes(h))&&void 0!==a&&a,f=null!==(n=null!=l?l:m)&&void 0!==n&&n,v={headerId:`${p}-header`,panelId:`${p}-panel`,isOpen:g,disabled:f,toggle:()=>null==u?void 0:u(h)};return P.jsx(ka.Provider,{value:v,children:P.jsx(r,Object.assign({ref:t,className:yt(Ea,o),"data-component":"Accordion.Item","data-value":h,"data-open":g,"data-disabled":f},c))})}za.displayName="Accordion.Item";var Pa=wt(za);const Ra="accordion-panel",$a="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function Ba(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]),{headerId:o,panelId:s,isOpen:l}=C.useContext(ka);return P.jsx(n,Object.assign({ref:t,id:s,hidden:!l,role:"region","aria-labelledby":o,className:yt(Ra,l&&$a,i),"data-component":"Accordion.Panel","data-open":Boolean(l)},r))}Ba.displayName="Accordion.Panel";var _a=wt(Ba);const Va=Object.assign(Ct,{Item:Pa,Header:Ia,Panel:_a}),Ha=["[disabled]","[hidden]","[inert]","[tabindex='-1']"],Fa=["a[href]","button","summary","select","input:not([type=hidden])","textarea","[tabindex='0']","audio[controls]","video[controls]","[contenteditable]"].map(e=>`${e}:not(${Ha.join("):not(")})`).join(", "),Wa=e=>{if(e.matches("[disabled], [hidden], [inert]"))return!0;const t=getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility},qa=e=>!e||Wa(e)?[]:Array.from(e.querySelectorAll(Fa)).filter(e=>!Wa(e)),Ga={vertical:{previous:"ArrowUp",next:"ArrowDown"},horizontal:{previous:"ArrowLeft",next:"ArrowRight"}},Ka=({containerRef:t,direction:a="vertical",wrap:n=!1,disabled:i,focusableFilter:r})=>{e.useEffect(()=>{const e=t.current;if(!e||i)return;const{previous:o,next:s}=Ga[a],l=t=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;const a="End"===t.key,i="Home"===t.key,l=t.key===s?1:t.key===o?-1:0;if(0===l&&!i&&!a)return;const c=qa(e).filter(e=>{var t;return null===(t=null==r?void 0:r(e))||void 0===t||t});if(0===c.length)return;if(t.preventDefault(),i||a)return void c[i?0:c.length-1].focus();const d=c.indexOf(document.activeElement),u=-1===d?0:d+l;u>=0&&u<c.length?c[u].focus():n&&c[(u+c.length)%c.length].focus()};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}},[t,a,n,i,r])},Ua=(e,t)=>{var a,n;const i=typeof e;if("object"!==i&&"function"!==i&&null!==e)return!1;const r=e,o=null!==(a=r.__SLOT__)&&void 0!==a?a:null===(n=r.type)||void 0===n?void 0:n.__SLOT__;return!!t.__SLOT__&&o===t.__SLOT__},Ya=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),Za=(e,t)=>{if(Array.isArray(t)){const[a,n]=t;return(e.type===a||Ua(e,a))&&n(e.props)}return e.type===t||Ua(e,t)},Qa=(t,a)=>{const n=[],i=Object.keys(a),r=Object.values(a),o=i.length,s={};for(let e=0;e<o;e++)s[i[e]]=void 0;let l=0;return e.Children.forEach(t,t=>{if(!e.isValidElement(t))return void n.push(t);if(l===o)return void n.push(t);const a=Xa(t,r,o);if(-1===a)return void n.push(t);const c=i[a];void 0===s[c]&&(s[c]=t,l++)}),[s,n]},Xa=(e,t,a)=>{for(let n=0;n<a;n++)if(Za(e,t[n]))return n;return-1},Ja=bt("heading",{variants:{size:{large:"text-title-large",medium:"text-title-medium",small:"text-title-small"}}});function en(e,t){const a=e,{as:n="h2",className:i,size:r="large"}=a,o=S(a,["as","className","size"]);return P.jsx(n,Object.assign({ref:t,className:yt(Ja({size:r}),i),"data-component":"Heading","data-size":r},o))}en.displayName="Heading";var tn=wt(en);const an=e.createContext({}),nn="action-list-heading",rn="sr-only";function on(e,t){const a=e,{as:n,className:i,visuallyHidden:r=!1,id:o}=a,s=S(a,["as","className","visuallyHidden","id"]),{headingId:l}=C.useContext(an);return P.jsx(tn,Object.assign({ref:t,as:n,id:null!=o?o:l,className:yt(nn,r&&rn,i),"data-component":"ActionList.Heading"},s))}on.displayName="ActionList.Heading";var sn=wt(on);const ln=e.createContext({}),cn=bt("action-list",{variants:{variant:{inset:"action-list-inset",full:"action-list-full"},dividers:{true:"action-list-dividers",false:""}}}),dn={heading:sn},un=["menu","menubar","listbox"];function mn(e,t){var a;const n=e,{as:i="ul",className:r,children:o,variant:s="inset",selectionVariant:l,showDividers:c=!1,disableFocusZone:d=!1,role:u}=n,m=S(n,["as","className","children","variant","selectionVariant","showDividers","disableFocusZone","role"]),[p,h]=Qa(o,dn),g=Da(),{listRole:f,listLabelledBy:v,selectionVariant:b,enableFocusZone:x}=C.useContext(ln),y=null!=u?u:f,w=null!=l?l:b,N=p.heading?null!==(a=p.heading.props.id)&&void 0!==a?a:g:v,j=C.useRef(null),k=H(t,j),O=null!=x?x:void 0!==y&&!d&&un.includes(y);Ka({containerRef:j,disabled:!O,wrap:"menu"===y});const M=C.useMemo(()=>({variant:s,selectionVariant:w,showDividers:c,role:y,headingId:g}),[s,w,c,y,g]);return P.jsxs(an.Provider,{value:M,children:[p.heading,P.jsx(i,Object.assign({ref:k,role:y,"aria-labelledby":N,className:yt(cn({variant:s,dividers:c}),r),"data-component":"ActionList","data-variant":s,"data-dividers":c?"":void 0},m,{children:h}))]})}mn.displayName="ActionList";var pn=wt(mn);const hn=e.createContext({}),gn="action-list-description",fn="min-w-0 truncate";function vn(e){const{className:t,variant:a="inline"}=e,n=S(e,["className","variant"]),{blockDescriptionId:i,inlineDescriptionId:r}=C.useContext(hn);return P.jsx("span",Object.assign({id:"block"===a?i:r,className:yt(gn,"inline"===a&&fn,t),"data-component":"ActionList.Description","data-variant":a},n))}vn.displayName="ActionList.Description";const bn="action-list-divider";function xn(e){const{className:t}=e,a=S(e,["className"]);return P.jsx("li",Object.assign({"aria-hidden":"true",className:yt(bn,t),"data-component":"ActionList.Divider"},a))}xn.displayName="ActionList.Divider";const yn=e.createContext({}),wn={__SLOT__:Symbol("ActionList.GroupHeading")},Nn="action-list-group-heading-label",jn="action-list-group-heading-auxiliary",kn=bt("action-list-group-heading",{variants:{variant:{subtle:"",filled:"action-list-group-heading-filled"}}});function Cn(e){const{as:t,className:a,children:n,variant:i="subtle",auxiliaryText:r}=e,o=S(e,["as","className","children","variant","auxiliaryText"]),{role:s}=C.useContext(an),{groupHeadingId:l}=C.useContext(yn),c=void 0!==s&&"list"!==s,d=null!=t?t:"h3";return P.jsxs("div",Object.assign({className:yt(kn({variant:i})),"data-component":"ActionList.GroupHeading","data-variant":i},c?{role:"presentation","aria-hidden":!0}:{},{children:[c?P.jsx("span",Object.assign({id:l,className:yt(Nn,a)},o,{children:n})):P.jsx(d,Object.assign({id:l,className:yt(Nn,a)},o,{children:n})),r?P.jsx("div",{className:jn,children:r}):null]}))}Cn.displayName="ActionList.GroupHeading";const Sn=Ya(Cn,wn),On="action-list-group",Mn="action-list-group-items",Tn={groupHeading:Sn};function An(e){var t,a;const{className:n,children:i,selectionVariant:r,role:o,"aria-label":s}=e,l=S(e,["className","children","selectionVariant","role","aria-label"]),c=Da(),{role:d}=C.useContext(an),[u,m]=Qa(i,Tn),p=u.groupHeading?null!==(t=u.groupHeading.props.id)&&void 0!==t?t:c:void 0,h=C.useMemo(()=>({selectionVariant:r,groupHeadingId:p}),[r,p]),g=d&&"string"==typeof(null===(a=u.groupHeading)||void 0===a?void 0:a.props.children)?u.groupHeading.props.children:void 0;return P.jsx("li",Object.assign({className:yt(On,n),"data-component":"ActionList.Group",role:d?"none":void 0},l,{children:P.jsxs(yn.Provider,{value:h,children:[u.groupHeading,P.jsx("ul",{className:Mn,role:null!=o?o:d?"group":void 0,"aria-labelledby":d?void 0:p,"aria-label":null!=s?s:g,children:m})]})}))}An.displayName="ActionList.Group";const Ln="spinner",In="sr-only",Dn=bt("motion-safe:animate-spin",{variants:{size:{small:"spinner-small",medium:"spinner-medium",large:"spinner-large"}}});function En(e,t){const a=e,{as:n="span",size:i="medium",srText:r="Loading",className:o,"aria-label":s}=a,l=S(a,["as","size","srText","className","aria-label"]);return P.jsxs(n,Object.assign({ref:t,role:"status","aria-label":null!=s?s:void 0,className:yt(Ln,o),"data-component":"Spinner"},l,{children:[P.jsx(Tt,{className:yt(Dn({size:i})),"aria-hidden":"true"}),null!==r&&void 0===s?P.jsx("span",{className:In,children:r}):null]}))}En.displayName="Spinner";var zn=wt(En);const Pn="action-list-visual",Rn="action-list-visual-muted",$n="action-list-visual-inherit",Bn=e=>{var{className:t}=e,a=S(e,["className"]);const{variant:n,disabled:i,inactive:r}=C.useContext(hn),o="danger"===n||i||r;return P.jsx("span",Object.assign({className:yt(Pn,o?$n:Rn,t)},a))};function _n(e){return P.jsx(Bn,Object.assign({"data-component":"ActionList.LeadingVisual"},e))}function Vn({children:e}){return P.jsx(P.Fragment,{children:e})}_n.displayName="ActionList.LeadingVisual",Vn.displayName="ActionList.SubItem";const Hn="sr-only",Fn=bt("counter-label",{variants:{variant:{primary:"counter-label-primary",secondary:"counter-label-secondary"}}});function Wn(e,t){const a=e,{as:n="span",className:i,variant:r="secondary",children:o}=a,s=S(a,["as","className","variant","children"]);return P.jsxs(P.Fragment,{children:[P.jsx(n,Object.assign({ref:t,"aria-hidden":"true",className:yt(Fn({variant:r}),i),"data-component":"CounterLabel","data-variant":r},s,{children:o})),P.jsxs("span",{className:Hn,children:[" (",o,")"]})]})}Wn.displayName="CounterLabel";var qn=wt(Wn);const Gn={base:"button",disabled:"button-disabled",block:"button-block",size:{small:"button-small",medium:"",large:"button-large"},variant:{default:{rest:"button-default",disabled:"button-default-disabled"},primary:{rest:"button-primary",disabled:"button-primary-disabled"},danger:{rest:"button-danger",disabled:"button-danger-disabled"},invisible:{rest:"button-invisible",disabled:"button-invisible-disabled"},link:{rest:"button-link",disabled:"button-link-disabled"}},link:"button-link-shape",linkUnderlines:"button-link-underlines",inactive:"button-inactive",inactiveLink:"button-inactive-link",iconTone:{default:"button-icon-tone-default",primary:"",danger:"",invisible:"button-icon-tone-invisible",link:""},labelWrapRoot:"button-label-wrap",labelWrapHeight:{small:"button-label-wrap-small",medium:"button-label-wrap-medium",large:"button-label-wrap-large"},labelWrapContent:{small:"button-label-wrap-content-small",medium:"button-label-wrap-content-medium",large:"button-label-wrap-content-large"},labelWrapLabel:"button-label-wrap-label",iconOnlyCounter:{small:"button-icon-only-counter-small",medium:"button-icon-only-counter-medium",large:"button-icon-only-counter-large"},content:"button-content",contentGap:{small:"button-content-gap-small",medium:"button-content-gap-medium",large:"button-content-gap-large"},align:{start:"justify-start",center:"justify-center"},label:"button-label",labelLineHeight:{small:"button-label-small",medium:"button-label-medium",large:"button-label-large"},labelHidden:"invisible",visualBase:"button-visual",visual:{default:"button-visual-default",primary:"button-visual-primary",danger:"button-visual-danger",invisible:"button-visual-invisible",link:"button-visual-link"},visualMuted:"button-visual-muted",counter:{default:"button-counter-default",primary:"button-counter-primary",danger:"button-counter-danger",invisible:"button-counter-invisible",link:""},counterMuted:"button-counter-muted",counterMutedDanger:"button-counter-muted-danger",leadingVisual:"button-leading-visual",trailingVisual:"button-trailing-visual",trailingAction:"button-trailing-action",loadingSpinner:"items-center justify-center",standaloneSpinner:"button-standalone-spinner",loadingWrapper:"inline-flex",loadingWrapperBlock:"block",srOnly:"sr-only"},Kn=(e,t,a,n)=>{const i=e;return P.jsx("span",{"data-component":t,className:yt(Gn.visualBase,a&&Gn.loadingSpinner,n),children:a?P.jsx(zn,{size:"small",srText:null,role:"presentation"}):C.isValidElement(e)?e:P.jsx(i,{})})};function Un(e,t){const{as:a="button",className:n,children:i,icon:r,leadingVisual:o,trailingVisual:s,trailingAction:l,count:c,variant:d="default",size:u="medium",alignContent:m="center",block:p=!1,loading:h,loadingAnnouncement:g="Loading",inactive:f,labelWrap:v,disabled:b,id:x,onClick:y,"aria-describedby":w,"aria-labelledby":N,"aria-disabled":j}=e,k=S(e,["as","className","children","icon","leadingVisual","trailingVisual","trailingAction","count","variant","size","alignContent","block","loading","loadingAnnouncement","inactive","labelWrap","disabled","id","onClick","aria-describedby","aria-labelledby","aria-disabled"]),C=Da(x),O=`${C}-label`,M=`${C}-loading-announcement`,T=Boolean(h),A=!0===j||"true"===j,L=Boolean(b)||A&&!T,I=!L&&!f,D=Boolean(o||s||l),E=T&&!D&&void 0===c,z=void 0!==c&&Boolean(o)&&!i,R=f?"link"===d?Gn.inactiveLink:Gn.inactive:Gn.variant[d][L?"disabled":"rest"],$=I?Gn.visual[d]:Gn.visualMuted,B=I?Gn.counter[d]:"danger"===d?Gn.counterMutedDanger:yt(Gn.counter[d],Gn.counterMuted),_=P.jsx(a,Object.assign({ref:t,className:yt(Gn.base,Gn.size[u],"link"===d&&Gn.link,"link"===d&&!D&&Gn.linkUnderlines,R,r&&I&&Gn.iconTone[d],L&&Gn.disabled,p&&Gn.block,v&&Gn.labelWrapRoot,v&&Gn.labelWrapHeight[u],z&&Gn.iconOnlyCounter[u],n),"data-component":"Button","data-block":p?"block":void 0,"data-inactive":f?"":void 0,"data-loading":T?"true":void 0,"data-no-visuals":D?void 0:"","data-size":u,"data-variant":d,"data-label-wrap":v?"true":void 0,"data-has-count":void 0!==c?"true":void 0,"data-icon-only-counter":z?"true":void 0,disabled:b,id:x,"aria-disabled":!!T||j,"aria-describedby":T?[M,w].filter(Boolean).join(" "):w,"aria-labelledby":T&&i?[O,N].filter(Boolean).join(" "):N,onClick:T?void 0:y},k,{children:r?Kn(r,"icon",T,""):P.jsxs(P.Fragment,{children:[P.jsxs("span",{"data-component":"buttonContent","data-align":m,className:yt(Gn.content,!E&&Gn.contentGap[u],Gn.align[m],v&&Gn.labelWrapContent[u]),children:[E?Kn(zn,"loadingSpinner",!0,yt($,Gn.standaloneSpinner)):null,o?Kn(o,"leadingVisual",T,yt($,Gn.leadingVisual)):null,i?P.jsx("span",{"data-component":"text",id:T?O:void 0,className:yt(Gn.label,Gn.labelLineHeight[u],v&&Gn.labelWrapLabel,E&&Gn.labelHidden),children:i}):null,void 0===c||s?s?Kn(s,"trailingVisual",T&&!o,yt($,Gn.trailingVisual)):null:Kn(P.jsx(qn,{className:B,"data-component":"ButtonCounter",children:c}),"trailingVisual",T&&!o,Gn.trailingVisual)]}),l?Kn(l,"trailingAction",T&&!o&&!s,yt($,Gn.trailingAction)):null]})}));return void 0===h?_:P.jsxs("span",{className:p?Gn.loadingWrapperBlock:Gn.loadingWrapper,"data-loading-wrapper":"",children:[_,P.jsx("span",{id:M,role:"status",className:Gn.srOnly,children:T?g:""})]})}Un.displayName="ButtonBase";var Yn=wt(Un);function Zn(e,t){const a=e,{as:n="button",type:i="button"}=a,r=S(a,["as","type"]);return P.jsx(Yn,Object.assign({ref:t,as:n,type:i},r))}Zn.displayName="Button";var Qn=wt(Zn);const Xn=bt("icon-button",{variants:{size:{small:"icon-button-small",medium:"icon-button-medium",large:"icon-button-large"}}});function Jn(e,t){const a=e,{as:n="button",className:i,size:r="medium"}=a,o=S(a,["as","className","size"]);return P.jsx(Yn,Object.assign({ref:t,as:n,type:"button",size:r,"data-component":"IconButton",className:yt(Xn({size:r}),i)},o))}Jn.displayName="IconButton";var ei=wt(Jn);const ti="action-list-trailing-action",ai="action-list-trailing-action-button";function ni(e,t){const{className:a,icon:n,label:i}=e,r=S(e,["className","icon","label"]);return P.jsx("span",{className:ti,"data-component":"ActionList.TrailingAction",children:n?P.jsx(ei,Object.assign({ref:t,icon:n,"aria-label":i,variant:"invisible",size:"small",className:yt(ai,a)},r)):P.jsx(Qn,Object.assign({ref:t,variant:"invisible",size:"small",className:yt(ai,a)},r,{children:i}))})}ni.displayName="ActionList.TrailingAction";var ii=wt(ni);function ri(e){const{trailingVisualId:t}=C.useContext(hn);return P.jsx(Bn,Object.assign({id:t,"data-component":"ActionList.TrailingVisual"},e))}ri.displayName="ActionList.TrailingVisual";const oi="invisible",si="action-list-selection-checkmark",li="action-list-selection-checkbox",ci="action-list-selection-checkbox-selected",di=({selected:e,className:t})=>{const{selectionVariant:a}=C.useContext(an),{selectionVariant:n}=C.useContext(yn),i=void 0===n?a:n;return i?"multiple"===i?P.jsx(Bn,{className:t,"data-component":"ActionList.Selection",children:P.jsx("span",{className:yt(li,e&&ci),children:P.jsx(Bt,{className:e?void 0:oi})})}):P.jsx(Bn,{className:t,"data-component":"ActionList.Selection",children:P.jsx(Bt,{className:yt(si,!e&&oi)})}):null},ui={root:"action-list-item",content:"action-list-item-content",size:{medium:"",large:"action-list-item-content-large"},danger:"action-list-item-content-danger",disabled:"action-list-item-content-disabled",inactive:"action-list-item-content-inactive",loading:"cursor-default",active:"action-list-item-content-active",main:"action-list-item-main",labelWrap:"action-list-item-label-wrap",labelWrapBlock:"flex-col gap-0",label:"min-w-0",inactiveWarning:"action-list-item-inactive-warning",srOnly:"sr-only"},mi={leadingVisual:_n,trailingVisual:ri,trailingAction:ii,description:vn,subItem:Vn},pi=["option","menuitem","menuitemradio","menuitemcheckbox"],hi=["listbox","menu","list"];function gi(e,t){var a,n,i;const r=e,{as:o,className:s,children:l,id:c,role:d,variant:u="default",size:m="medium",selected:p,active:h=!1,disabled:g=!1,loading:f=!1,inactiveText:v,onSelect:b}=r,x=S(r,["as","className","children","id","role","variant","size","selected","active","disabled","loading","inactiveText","onSelect"]),[y,w]=Qa(l,mi),{container:N,afterSelect:j,selectionAttribute:k,defaultTrailingVisual:O}=C.useContext(ln),{role:M,selectionVariant:T}=C.useContext(an),{selectionVariant:A}=C.useContext(yn),L=Boolean(v),I=void 0===A?T:A||void 0;let D;"ActionMenu"===N||"menu"===M?D="single"===I?"menuitemradio":"multiple"===I?"menuitemcheckbox":"menuitem":"listbox"===M&&I&&(D="option");const E=null!=d?d:D,z=null!=k?k:"menuitemradio"===E||"menuitemcheckbox"===E?"aria-checked":"option"===E?"aria-selected":void 0,R=void 0!==M&&hi.includes(M)||L||void 0!==E&&pi.includes(E),$=null!=o?o:R?"div":"button",B=void 0!==o||!R,_=!B||"button"!==$&&"a"!==$,V="ActionMenu"===N||"menu"===M||"listbox"===M,H=!g&&!L&&!f,F=e=>{H&&(null==b||b(e),e.defaultPrevented||null==j||j(e))},W=Da(c),q=`${W}--label`,G=`${W}--inline-description`,K=`${W}--block-description`,U=`${W}--trailing-visual`,Y=L?`${W}--inactive-warning`:void 0,Z=null!==(n=null===(a=y.description)||void 0===a?void 0:a.props.variant)&&void 0!==n?n:"inline",Q=null!==(i=y.trailingVisual)&&void 0!==i?i:O?P.jsx(ri,{children:O}):null,X=f&&!L,J=P.jsx(zn,{size:"small",srText:null}),ee=X&&y.leadingVisual?P.jsx(_n,{children:J}):y.leadingVisual,te=X&&!y.leadingVisual?P.jsx(ri,{children:J}):Q,ae=[y.description?"block"===Z?K:G:void 0,Y].filter(Boolean),ne=Object.assign({id:W,role:E,tabIndex:0,onClick:F,onKeyDown:_?e=>{" "!==e.key&&"Enter"!==e.key||(" "===e.key&&e.preventDefault(),F(e))}:void 0,"aria-disabled":!!(g||L||f)||void 0,"aria-labelledby":[q,y.trailingVisual?U:void 0].filter(Boolean).join(" "),"aria-describedby":ae.length>0?ae.join(" "):void 0},z&&I?{[z]:Boolean(p)}:{}),ie=V||L||f?null:y.trailingAction,re=C.useMemo(()=>({variant:u,size:m,disabled:g,inactive:L,inlineDescriptionId:G,blockDescriptionId:K,trailingVisualId:U}),[u,m,g,L,G,K,U]),oe=yt(ui.content,ui.size[m],"danger"===u&&!g&&!L&&ui.danger,h&&ui.active,f&&ui.loading,L&&ui.inactive,g&&ui.disabled);return P.jsx(hn.Provider,{value:re,children:P.jsxs("li",Object.assign({ref:B?null:t,className:yt(ui.root,s),"data-component":"ActionList.Item","data-variant":"danger"===u?u:void 0,"data-active":h?"":void 0,"data-inactive":L?"":void 0,"data-disabled":g?"":void 0,"data-loading":f?"":void 0,"data-has-description":y.description?"":void 0,"data-has-trailing-action":ie?"":void 0,"data-has-sub-item":y.subItem?"":void 0},B?{role:E?"none":void 0}:Object.assign(Object.assign({},ne),x),{children:[P.jsxs($,Object.assign({ref:B?t:void 0,className:oe,"data-component":"ActionList.Item.Content","data-size":m},B?Object.assign(Object.assign(Object.assign({},ne),x),"button"===$?{type:"button"}:{}):{},{children:[P.jsx(di,{selected:p}),ee,P.jsxs("span",{className:ui.main,children:[P.jsxs("span",{className:yt(ui.labelWrap,"block"===Z&&ui.labelWrapBlock),children:[P.jsxs("span",{id:q,className:ui.label,"data-component":"ActionList.Item.Label",children:[w,X?P.jsx("span",{className:ui.srOnly,children:"Loading"}):null]}),y.description]}),te]})]})),L?P.jsx("span",{id:Y,className:ui.inactiveWarning,children:v}):null,ie,y.subItem]}))})}gi.displayName="ActionList.Item";var fi=wt(gi);function vi(e,t){const a=e,{as:n}=a,i=S(a,["as"]);return P.jsx(fi,Object.assign({ref:t,as:null!=n?n:"a"},i))}vi.displayName="ActionList.LinkItem";var bi=wt(vi);const xi=Object.assign(pn,{Item:fi,LinkItem:bi,Group:An,GroupHeading:Sn,Heading:sn,Description:vn,Divider:xn,LeadingVisual:_n,TrailingVisual:ri,TrailingAction:ii,SubItem:Vn}),yi=e.createContext(void 0);function wi(e){const{children:t,className:a,onClick:n,onKeyDown:i}=e,r=S(e,["children","className","onClick","onKeyDown"]),o=C.useContext(yi),s=C.useContext(ln),l=Boolean(null==o?void 0:o.isSubmenu),c=null==o?void 0:o.onOpen,d=C.useMemo(()=>l?Object.assign(Object.assign({},s),{defaultTrailingVisual:P.jsx(Ht,{}),afterSelect:()=>null==c?void 0:c()}):s,[l,c,s]);if(!C.isValidElement(t))return null;const u=t.props;return P.jsx(ln.Provider,{value:d,children:C.cloneElement(t,Object.assign(Object.assign({},r),{ref:null==o?void 0:o.anchorRef,className:yt(a,u.className),onClick:e=>{var t;null===(t=u.onClick)||void 0===t||t.call(u,e),null==n||n(e)},onKeyDown:e=>{var t;null===(t=u.onKeyDown)||void 0===t||t.call(u,e),l&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==c||c(),e.preventDefault()),null==i||i(e)}}))})}function Ni(e){return P.jsx(wi,{children:P.jsx(Qn,Object.assign({type:"button",trailingAction:_t,"data-component":"ActionMenu.Button"},e))})}wi.displayName="ActionMenu.Anchor",Ni.displayName="ActionMenu.Button";const ji=e=>C.isValidElement(e)&&(e.type===wi||e.type===Ni);function ki(e){const{children:t,open:a,onOpenChange:n,anchorRef:i}=e,r=C.useContext(yi),o=C.useRef(null),s=null!=i?i:o,l=void 0!==a,[c,d]=C.useState(!1),u=l?a:c,m=C.useCallback(e=>{d(e),null==n||n(e)},[n]),p=C.useCallback(()=>m(!0),[m]),h=null==r?void 0:r.onClose,g=C.useCallback(e=>{m(!1),"item-select"!==e&&"tab"!==e||null==h||h(e)},[m,h]),f=C.Children.toArray(t),v=f.find(ji),b=Da(null==v?void 0:v.props.id),x=v?e=>C.cloneElement(v,((e,t)=>({id:e.id,"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],tabIndex:e.tabIndex,onClick:a=>{var n;null===(n=t.onClick)||void 0===n||n.call(t,a),e.onClick(a)},onKeyDown:a=>{var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,a),e.onKeyDown(a)}}))(e,v.props)):null,y=void 0!==r,w=C.useMemo(()=>({anchorRef:s,renderAnchor:x,anchorId:b,open:u,onOpen:p,onClose:g,isSubmenu:y}),[s,x,b,u,p,g,y]);return P.jsx(yi.Provider,{value:w,children:f.filter(e=>e!==v)})}ki.displayName="ActionMenu";const Ci=[],Si=({containerRef:t,initialFocusRef:a,returnFocusRef:n,disabled:i})=>{e.useEffect(()=>{var e,r;const o=t.current;if(!o||i)return;const s=document.activeElement;Ci.push(o),(null!==(r=null!==(e=null==a?void 0:a.current)&&void 0!==e?e:qa(o)[0])&&void 0!==r?r:o).focus();const l=e=>{if("Tab"!==e.key||Ci[Ci.length-1]!==o)return;const t=qa(o);if(0===t.length)return void e.preventDefault();const a=t[0],n=t[t.length-1],i=document.activeElement;!(e.shiftKey?i===a:i===n)&&o.contains(i)||(e.preventDefault(),(e.shiftKey?n:a).focus())};return document.addEventListener("keydown",l),()=>{var e;document.removeEventListener("keydown",l),Ci.splice(Ci.indexOf(o),1);const t=null!==(e=null==n?void 0:n.current)&&void 0!==e?e:s;t instanceof HTMLElement&&t.focus()}},[t,a,n,i])},Oi=R?e.useLayoutEffect:e.useEffect,Mi=[],Ti=e=>{if("Escape"===e.key&&!e.defaultPrevented)for(const t of[...Mi].reverse())if(t(e),e.defaultPrevented)break},Ai=t=>{const a=e.useRef(t);e.useEffect(()=>{a.current=t},[t]),e.useEffect(()=>{const e=e=>a.current(e);return 0===Mi.length&&document.addEventListener("keydown",Ti),Mi.push(e),()=>{Mi.splice(Mi.indexOf(e),1),0===Mi.length&&document.removeEventListener("keydown",Ti)}},[])},Li=(e,t)=>{if(null!=t)return"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,a])=>Ii(`data-${e}-${t}`,a))):Object.fromEntries([Ii(`data-${e}`,t)])},Ii=(e,t)=>[e,t],Di=e.createContext({}),Ei="__baseUiPortalRoot__",zi="__default__",Pi="portal-root",Ri={},$i=(e,t=zi)=>{Ri[t]=e},Bi="portal";function _i({children:e,onMount:a,containerName:n}){const{portalContainerName:i}=C.useContext(Di),r=C.useRef(null);if(!r.current){const e=document.createElement("div");e.setAttribute("data-component","Portal"),e.className=Bi,r.current=e}const o=r.current;return Oi(()=>{let e=null!=n?n:i;void 0===e&&(e=zi,(()=>{const e=Ri[zi];if(e&&document.body.contains(e))return;let t=document.getElementById(Ei);if(!t){t=document.createElement("div"),t.setAttribute("id",Ei),t.className=Pi;const e=document.querySelector("[data-portal-root]");(null!=e?e:document.body).appendChild(t)}$i(t)})());const t=(e=>Ri[e])(e);if(!t)throw new Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return t.appendChild(o),null==a||a(),()=>{t.removeChild(o)}},[o,n,i]),t.createPortal(e,o)}_i.displayName="Portal";const Vi={"outside-top":"outside-bottom","outside-bottom":"outside-top","outside-left":"outside-right","outside-right":"outside-left"},Hi=e=>"outside-top"===e||"outside-bottom"===e,Fi=(e,t,a,n)=>"outside-top"===e?t.top-a.height-n:"outside-bottom"===e?t.bottom+n:"outside-left"===e?t.left-a.width-n:t.right+n,Wi=(e,t,a,n,i)=>"start"===e?t+i:"end"===e?t+a-n-i:t+(a-n)/2+i,qi=(e,t,{side:a,align:n,anchorOffset:i=4,alignmentOffset:r=0})=>{const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=window.innerWidth,c=window.innerHeight;let d=a,u=Fi(d,o,s,i);const m=Hi(d)?s.height:s.width,p=Hi(d)?c:l;if(u<0||u+m>p){const e=Fi(Vi[a],o,s,i);e>=0&&e+m<=p&&(d=Vi[a],u=e)}const h=Hi(d),g=h?o.left:o.top,f=h?o.width:o.height,v=h?s.width:s.height,b=h?l:c;let x=n,y=Wi(n,g,f,v,r);return y<0?(x="start",y=Wi(x,g,f,v,r)):y+v>b&&(x="end",y=Wi(x,g,f,v,r)),y=Math.max(0,Math.min(y,b-v)),{top:h?u:y,left:h?y:u,anchorSide:d,anchorAlign:x}},Gi="anchored-overlay-close-button-container",Ki="anchored-overlay-close-button",Ui=bt(["anchored-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2"],{variants:{width:{xsmall:"anchored-overlay-width-xsmall",small:"anchored-overlay-width-small",medium:"anchored-overlay-width-medium",large:"anchored-overlay-width-large",xlarge:"anchored-overlay-width-xlarge",auto:"anchored-overlay-width-auto"},height:{small:"anchored-overlay-height-small",medium:"anchored-overlay-height-medium",large:"anchored-overlay-height-large",xlarge:"anchored-overlay-height-xlarge",auto:"anchored-overlay-height-auto"},reflow:{true:"anchored-overlay-reflow",false:""},fullscreen:{true:"anchored-overlay-fullscreen",false:""},unplaced:{true:"invisible",false:""}}}),Yi={regular:"anchored",narrow:"anchored"},Zi=["ArrowDown","ArrowUp"," ","Enter"];function Qi(e){var t,a,n,i;const{renderAnchor:r,anchorRef:o,anchorId:s,children:l,open:c,onOpen:d,onClose:u,side:m="outside-bottom",align:p="start",anchorOffset:h,alignmentOffset:g,width:f="auto",height:v="auto",overlayProps:b,focusTrapSettings:x,preventOverflow:y=!0,variant:w=Yi,displayCloseButton:N=!0,closeButtonProps:j,onPositionChange:k,className:O}=e,M=null!=b?b:{},{ref:T,className:A,style:L,portalContainerName:I}=M,D=S(M,["ref","className","style","portalContainerName"]),E=null!=j?j:{},{className:z,"aria-label":R}=E,$=S(E,["className","aria-label"]),B=C.useRef(null),_=null!=o?o:B,V=Da(s),F=C.useRef(null),W=H(T,F),q=C.useRef(null),[G,K]=C.useState(null),U=C.useCallback(()=>{const e=_.current,t=F.current;if(!e||!t)return;const a=qi(t,e,{side:m,align:p,anchorOffset:h,alignmentOffset:g});q.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(q.current,a)||(q.current=a,K(a),null==k||k({position:a}))},[_,m,p,h,g,k]);Oi(()=>{if(!c)return q.current=null,void K(null);U();const e=new ResizeObserver(U);return F.current&&e.observe(F.current),window.addEventListener("resize",U),window.addEventListener("scroll",U,!0),()=>{e.disconnect(),window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)}},[c,U]),Si(Object.assign(Object.assign({containerRef:F,returnFocusRef:_},x),{disabled:!c||!G||Boolean(null==x?void 0:x.disabled)})),Ai(e=>{c&&(e.preventDefault(),null==u||u("escape"))}),C.useEffect(()=>{if(!c)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=F.current)||void 0===t?void 0:t.contains(n))||(null===(a=_.current)||void 0===a?void 0:a.contains(n))||null==u||u("click-outside"))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[_,c,u]);const Y="fullscreen"===w.narrow,Z=Boolean(u)&&Y&&N;return P.jsxs(P.Fragment,{children:[r?r({ref:_,id:V,"aria-haspopup":"true","aria-expanded":c,tabIndex:0,onClick:e=>{e.defaultPrevented||0!==e.button||(c?null==u||u("anchor-click"):null==d||d("anchor-click"))},onKeyDown:e=>{e.defaultPrevented||c||!Zi.includes(e.key)||(null==d||d("anchor-key-press",e),e.preventDefault())}}):null,c?P.jsx(_i,{containerName:I,children:P.jsxs("div",Object.assign({ref:W,tabIndex:-1,className:yt(Ui({width:f,height:v,reflow:!y,fullscreen:Y,unplaced:!G}),O,A),style:Object.assign(Object.assign({},L),{"--anchored-overlay-top":`${null!==(t=null==G?void 0:G.top)&&void 0!==t?t:0}px`,"--anchored-overlay-left":`${null!==(a=null==G?void 0:G.left)&&void 0!==a?a:0}px`}),"data-component":"AnchoredOverlay","data-side":null!==(n=null==G?void 0:G.anchorSide)&&void 0!==n?n:m,"data-align":null!==(i=null==G?void 0:G.anchorAlign)&&void 0!==i?i:p,"data-width":f,"data-height":v,"data-visibility":G?"visible":"hidden"},Li("variant",w),D,{children:[Z?P.jsx("div",{className:Gi,children:P.jsx(ei,Object.assign({icon:Ut,variant:"invisible","aria-label":null!=R?R:"Close",onClick:()=>null==u?void 0:u("close-button"),className:yt(Ki,z),"data-component":"AnchoredOverlay.CloseButton"},$))}):null,l]}))}):null]})}Qi.displayName="AnchoredOverlay";const Xi="action-menu-overlay";function Ji(e){const{children:t,align:a="start",side:n,className:i,returnFocusRef:r,"aria-labelledby":o}=e,s=S(e,["children","align","side","className","returnFocusRef","aria-labelledby"]),l=C.useContext(yi),c=Boolean(null==l?void 0:l.isSubmenu),d=null==l?void 0:l.onClose,u=C.useCallback(e=>null==d?void 0:d(e),[d]),m=C.useMemo(()=>({container:"ActionMenu",listRole:"menu",listLabelledBy:null!=o?o:null==l?void 0:l.anchorId,selectionAttribute:"aria-checked",afterSelect:()=>null==d?void 0:d("item-select")}),[o,null==l?void 0:l.anchorId,d]);return l?P.jsx(Qi,Object.assign({anchorRef:l.anchorRef,renderAnchor:l.renderAnchor,anchorId:l.anchorId,open:l.open,onOpen:l.onOpen,onClose:u,align:a,side:null!=n?n:c?"outside-right":"outside-bottom",className:i,focusTrapSettings:r?{returnFocusRef:r}:void 0},s,{children:P.jsx("div",{className:Xi,onKeyDown:e=>{e.defaultPrevented||("Tab"!==e.key?c&&"ArrowLeft"===e.key&&(null==d||d("arrow-left"),e.preventDefault()):null==d||d("tab"))},"data-component":"ActionMenu.Overlay",children:P.jsx(ln.Provider,{value:m,children:t})})})):null}Ji.displayName="ActionMenu.Overlay";const er=Object.assign(ki,{Anchor:wi,Button:Ni,Overlay:Ji,Divider:xn}),tr=e.createContext({size:"medium"}),ar=e.createContext({}),nr={current:null},ir=t=>{const{size:a,rootRef:n,setOverflowing:i}=C.useContext(tr),{index:r,inGroup:o}=C.useContext(ar),s=(({ref:t,rootRef:a,disabled:n})=>{const[i,r]=e.useState(!1);return e.useEffect(()=>{const e=t.current,i=a.current;if(!e||!i||n)return void r(!1);const o=new IntersectionObserver(e=>{for(const t of e)r(t.intersectionRatio<1)},{root:i,threshold:1});return o.observe(e),()=>{o.disconnect()}},[t,a,n]),i})({ref:t,rootRef:null!=n?n:nr,disabled:o});return C.useEffect(()=>{void 0!==r&&(null==i||i(r,s))},[r,s,i]),{size:a,isOverflowing:s}},rr="action-bar-divider",or="invisible";function sr(e){const{className:t}=e,a=S(e,["className"]),n=C.useRef(null),{isOverflowing:i}=ir(n);return P.jsx("div",Object.assign({ref:n,"aria-hidden":"true",className:yt(rr,i&&or,t),"data-component":"ActionBar.Divider","data-overflowing":i?"":void 0},a))}sr.displayName="ActionBar.Divider";const lr="action-bar-group",cr="invisible",dr={inGroup:!0};function ur(e){const{className:t,children:a}=e,n=S(e,["className","children"]),i=C.useRef(null),{isOverflowing:r}=ir(i);return P.jsx("div",Object.assign({ref:i,className:yt(lr,r&&cr,t),"data-component":"ActionBar.Group","data-overflowing":r?"":void 0},n,{children:P.jsx(ar.Provider,{value:dr,children:a})}))}ur.displayName="ActionBar.Group";const mr="invisible";function pr(e,t){const a=e,{className:n}=a,i=S(a,["className"]),r=C.useRef(null),o=H(t,r),{size:s,isOverflowing:l}=ir(r);return P.jsx(ei,Object.assign({ref:o,size:s,variant:"invisible",className:yt(l&&mr,n),"data-component":"ActionBar.IconButton","data-overflowing":l?"":void 0},i))}pr.displayName="ActionBar.IconButton";var hr=wt(pr);const gr=e=>{if("string"==typeof e)return P.jsx("span",{children:e});if(C.isValidElement(e))return e;const t=e;return P.jsx(t,{})},fr=({items:e})=>P.jsx(P.Fragment,{children:e.map((e,t)=>{if("divider"===e.type)return P.jsx(xi.Divider,{},t);const{label:a,disabled:n,variant:i,leadingVisual:r,trailingVisual:o,onClick:s}=e,l=P.jsxs(P.Fragment,{children:[r?P.jsx(xi.LeadingVisual,{children:gr(r)}):null,a,o?P.jsx(xi.TrailingVisual,{children:gr(o)}):null]});return e.items&&e.items.length>0?P.jsxs(er,{children:[P.jsx(er.Anchor,{children:P.jsx(xi.Item,{disabled:n,variant:i,children:l})}),P.jsx(er.Overlay,{children:P.jsx(xi,{children:P.jsx(fr,{items:e.items})})})]},t):P.jsx(xi.Item,{onSelect:s,disabled:n,variant:i,children:l},t)})}),vr="invisible";function br(e,t){const{className:a,icon:n,items:i,returnFocusRef:r,overflowIcon:o}=e,s=S(e,["className","icon","items","returnFocusRef","overflowIcon"]),l=C.useRef(null),c=H(t,l),{size:d,isOverflowing:u}=ir(l);return P.jsxs(er,{anchorRef:l,children:[P.jsx(er.Anchor,{children:P.jsx(ei,Object.assign({ref:c,icon:n,size:d,variant:"invisible",className:yt(u&&vr,a),"data-component":"ActionBar.Menu","data-overflowing":u?"":void 0},s))}),P.jsx(er.Overlay,{returnFocusRef:r,children:P.jsx(xi,{children:P.jsx(fr,{items:i})})})]})}br.displayName="ActionBar.Menu";var xr=wt(br);const yr={size:{small:"action-bar-size-small",medium:"action-bar-size-medium",large:"action-bar-size-large"},spacer:"shrink-0",moreButtonEmpty:"invisible"},wr=bt("action-bar",{variants:{flush:{true:"",false:"action-bar-inset"}}}),Nr=bt("action-bar-toolbar",{variants:{size:yr.size}}),jr=bt("action-bar-items",{variants:{size:yr.size,gap:{none:"action-bar-gap-none",condensed:"action-bar-gap-condensed"}}}),kr=new Set,Cr=e=>{if(C.isValidElement(e))return e;const t=e;return P.jsx(t,{})},Sr=(e,t)=>{var a;const n=e.props;if(e.type===sr)return P.jsx(xi.Divider,{},t);if(e.type===ur)return C.Children.toArray(n.children).filter(e=>C.isValidElement(e)).map((e,a)=>Sr(e,`${t}-${a}`));if(e.type===xr){const e=null!==(a=n.overflowIcon)&&void 0!==a?a:n.icon;return P.jsxs(er,{children:[P.jsx(er.Anchor,{children:P.jsxs(xi.Item,{children:[e?P.jsx(xi.LeadingVisual,{children:Cr(e)}):null,n["aria-label"]]})}),P.jsx(er.Overlay,{returnFocusRef:n.returnFocusRef,children:P.jsx(xi,{children:P.jsx(fr,{items:n.items})})})]},t)}const i=e.type===hr?n.icon:n.leadingVisual,r=e.type===hr?n["aria-label"]:n.children;return P.jsxs(xi.Item,{onSelect:n.onClick,disabled:n.disabled,children:[i?P.jsx(xi.LeadingVisual,{children:Cr(i)}):null,r]},t)};function Or(e){const{className:t,children:a,size:n="medium",flush:i=!1,gap:r="condensed","aria-label":o,"aria-labelledby":s}=e,l=C.useRef(null),c=C.useRef(null),[d,u]=C.useState(kr),m=C.useCallback((e,t)=>{u(a=>{if(a.has(e)===t)return a;const n=new Set(a);return t?n.add(e):n.delete(e),n})},[]);Ka({containerRef:l,direction:"horizontal",wrap:!0});const p=C.useMemo(()=>({size:n,rootRef:c,setOverflowing:m}),[n,m]),h=C.Children.toArray(a),g=h.length,f=C.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((e,t)=>d.has(t)&&C.isValidElement(e)?Sr(e,t):null).filter(Boolean);return P.jsx(tr.Provider,{value:p,children:P.jsx("div",{className:yt(wr({flush:i}),t),"data-component":"ActionBar","data-flush":i?"":void 0,children:P.jsxs("div",{ref:l,role:"toolbar","aria-label":o,"aria-labelledby":s,className:yt(Nr({size:n})),"data-size":n,"data-gap":r,"data-has-overflow":v.length>0?"":void 0,children:[P.jsxs("div",{ref:c,className:yt(jr({size:n,gap:r})),children:[P.jsx("div",{className:yr.spacer}),h.map((e,t)=>P.jsx(ar.Provider,{value:f[t],children:e},t))]}),P.jsxs(er,{children:[P.jsx(er.Anchor,{children:P.jsx(ei,{icon:na,"aria-label":"More items",size:n,variant:"invisible",className:v.length>0?void 0:yr.moreButtonEmpty,"data-component":"ActionBar.MoreButton"})}),P.jsx(er.Overlay,{children:P.jsx(xi,{children:v})})]})]})})})}Or.displayName="ActionBar";const Mr="invisible";function Tr(e,t){const{className:a}=e,n=S(e,["className"]),i=C.useRef(null),r=H(t,i),{size:o,isOverflowing:s}=ir(i);return P.jsx(Qn,Object.assign({ref:r,size:o,variant:"invisible",className:yt(s&&Mr,a),"data-component":"ActionBar.Button","data-overflowing":s?"":void 0},n))}Tr.displayName="ActionBar.Button";var Ar=wt(Tr);const Lr=Object.assign(Or,{Button:Ar,IconButton:hr,Divider:sr,Group:ur,Menu:xr}),Ir=bt("alert",{variants:{variant:{default:"alert-default",success:"alert-success",warning:"alert-warning",danger:"alert-danger"}}});function Dr(e,t){const a=e,{as:n="div",className:i,variant:r="default"}=a,o=S(a,["as","className","variant"]);return P.jsx(n,Object.assign({ref:t,className:yt(Ir({variant:r}),i),"data-component":"Alert","data-variant":r},o))}Dr.displayName="Alert";var Er=wt(Dr);const zr=bt("aspect-ratio",{variants:{ratio:{"1:1":"aspect-ratio-1-1","16:9":"aspect-ratio-16-9","4:3":"aspect-ratio-4-3",custom:""}}});function Pr(e,t){const a=e,{as:n="div",className:i,ratio:r="1:1",width:o=1,height:s=1,style:l}=a,c=S(a,["as","className","ratio","width","height","style"]);return P.jsx(n,Object.assign({ref:t,className:yt(zr({ratio:r}),i),style:Object.assign(Object.assign({},l),{"--aspect-ratio":"custom"===r?`${o}/${s}`:void 0}),"data-component":"AspectRatio","data-ratio":r},c))}Pr.displayName="AspectRatio";var Rr=wt(Pr);const $r=e.createContext({}),Br=e.createContext({}),_r=e.createContext({});function Vr({children:e,id:t}){const a=Da(t),n=C.useRef(null),i=C.useRef(null),[r,o]=C.useState(""),[s,l]=C.useState(""),[c,d]=C.useState(),[u,m]=C.useState(!1),p=C.useCallback(e=>{m(e),e||(d(void 0),l(""))},[]),h=C.useMemo(()=>({id:a,inputRef:n,scrollContainerRef:i,activeDescendantId:c,setActiveDescendantId:d,showMenu:u,setShowMenu:p,setInputValue:o,setAutocompleteSuggestion:l}),[a,c,u,p]),g=C.useMemo(()=>({inputValue:r,autocompleteSuggestion:s}),[r,s]),f=C.useDeferredValue(r),v=C.useMemo(()=>({deferredInputValue:f}),[f]);return P.jsx($r.Provider,{value:h,children:P.jsx(Br.Provider,{value:g,children:P.jsx(_r.Provider,{value:v,children:e})})})}Vr.displayName="Autocomplete";const Hr=bt("text",{variants:{size:{large:"text-size-large",medium:"text-size-medium",small:"text-size-small"},weight:{light:"text-weight-light",normal:"text-weight-normal",medium:"text-weight-medium",semibold:"text-weight-semibold"},whiteSpace:{pre:"whitespace-pre",normal:"whitespace-normal",nowrap:"whitespace-nowrap","pre-wrap":"whitespace-pre-wrap","pre-line":"whitespace-pre-line"}}});function Fr(e,t){const a=e,{as:n="span",className:i,size:r="medium",weight:o,whiteSpace:s}=a,l=S(a,["as","className","size","weight","whiteSpace"]);return P.jsx(n,Object.assign({ref:t,className:yt(Hr({size:r,weight:o,whiteSpace:s}),i),"data-component":"Text","data-size":r,"data-weight":o,"data-white-space":s},l))}Fr.displayName="Text";var Wr=wt(Fr);const qr=(e,t)=>{const a=t-e;if(a>=0)return{count:a,isOverLimit:!1,message:`${a} ${1===a?"character":"characters"} remaining`};const n=-a;return{count:n,isOverLimit:!0,message:`${n} ${1===n?"character":"characters"} over`}},Gr={field:"input",size:{small:"input-small",medium:"input-medium",large:"input-large"},focus:"input-focus",focusTracked:"input-focus-tracked",block:"input-block",contrast:"input-contrast",monospace:"input-monospace",disabled:"input-disabled",validation:{error:"input-error",success:"input-success"},validationFocus:"input-validation-focus",validationFocusTracked:"input-validation-focus-tracked",leadingVisual:"input-leading-visual-padding",leadingVisualLarge:"input-leading-visual-padding-wide",trailingVisual:"input-trailing-visual-padding",trailingVisualLarge:"input-trailing-visual-padding-wide",input:"input-control",inputPadStart:"input-control-pad-start",inputPadStartWide:"input-control-pad-start-wide",inputPadEnd:"input-control-pad-end",inputPadEndWide:"input-control-pad-end-wide",visual:"input-visual",visualBox:"input-visual-box",spinner:"input-spinner",spinnerLeading:"input-spinner-leading",spinnerHidden:"invisible",spinnerVisible:"visible",counter:"input-counter",counterOverLimit:"input-counter-over-limit",counterIcon:"input-counter-icon",hidden:"sr-only"},Kr=["date","time","datetime-local"],Ur=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})},Yr=({id:e,position:t,hasLoader:a,showLoader:n,children:i})=>{const r="leading"===t?"TextInput.LeadingVisual":"TextInput.TrailingVisual";return a?P.jsx("span",{className:Gr.visual,"data-component":r,children:P.jsxs("span",{id:e,className:Gr.visualBox,children:[i?P.jsx("span",{className:n?Gr.spinnerHidden:Gr.spinnerVisible,children:i}):null,P.jsx(zn,{srText:null,size:i?void 0:"small",className:yt(n?Gr.spinnerVisible:Gr.spinnerHidden,i&&Gr.spinner,i&&"leading"===t&&Gr.spinnerLeading)})]})}):P.jsx("span",{id:e,className:Gr.visual,"aria-hidden":"true","data-component":r,children:i})};function Zr(e,t){var a;const{className:n,type:i="text",size:r="medium",block:o,contrast:s,monospace:l,disabled:c,required:d,validationStatus:u,leadingVisual:m,trailingVisual:p,trailingAction:h,loading:g,loaderPosition:f="auto",loaderText:v="Loading",characterLimit:b,value:x,defaultValue:y,onChange:w,onFocus:N,onBlur:j,"aria-describedby":k}=e,O=S(e,["className","type","size","block","contrast","monospace","disabled","required","validationStatus","leadingVisual","trailingVisual","trailingAction","loading","loaderPosition","loaderText","characterLimit","value","defaultValue","onChange","onFocus","onBlur","aria-describedby"]),M=C.useRef(null),T=H(t,M),A=Da(),L=Da(),I=Da(),D=Da(),[E,z]=C.useState(!1),R=void 0!==x,[$,B]=C.useState(()=>void 0===y?0:String(y).length),_=R?String(x).length:$,V=b?qr(_,b):void 0,F=null!==(a=null==V?void 0:V.isOverLimit)&&void 0!==a&&a,W=F?"error":u,q=C.useRef(!1),[G,K]=C.useState(""),U=null==V?void 0:V.message;C.useEffect(()=>{if(!q.current)return;const e=window.setTimeout(()=>{K(null!=U?U:"")},500);return()=>{window.clearTimeout(e)}},[U]);const Y=Boolean(g&&("leading"===f||m&&"trailing"!==f)),Z=Boolean(g&&("trailing"===f||"auto"===f&&!m)),Q="boolean"==typeof g,X=Boolean(m)||Y,J=Boolean(p)||Z,ee=Boolean(h),te=Boolean(p)||Q,ae=ee,ne="large"===r,ie=[b?D:void 0,k,m?A:void 0,p?L:void 0,g?I:void 0].filter(Boolean).join(" ")||void 0;return P.jsxs(P.Fragment,{children:[P.jsxs("span",{className:yt(Gr.field,Gr.size[r],ae?E&&Gr.focusTracked:Gr.focus,o&&Gr.block,s&&Gr.contrast,l&&Gr.monospace,c&&Gr.disabled,W&&Gr.validation[W],"error"===W&&(ae?E&&Gr.validationFocusTracked:Gr.validationFocus),X&&(ne?Gr.leadingVisualLarge:Gr.leadingVisual),J&&!ee&&(ne?Gr.trailingVisualLarge:Gr.trailingVisual),n),onClick:e=>{var t;e.target===M.current&&Kr.includes(i)||null===(t=M.current)||void 0===t||t.focus()},"aria-busy":!!g||void 0,"data-component":"TextInput","data-size":r,"data-block":o,"data-contrast":s,"data-monospace":l,"data-disabled":c,"data-validation":W,"data-focused":E||void 0,"data-leading-visual":X||void 0,"data-trailing-visual":J||void 0,"data-trailing-action":ee||void 0,children:[X?P.jsx(Yr,{id:A,position:"leading",hasLoader:Q,showLoader:Y,children:m?Ur(m):null}):null,P.jsx("input",Object.assign({ref:T,type:i,value:x,defaultValue:y,disabled:c,required:d,"aria-required":!!d||void 0,"aria-invalid":"error"===W||void 0,"aria-describedby":ie,onChange:e=>{q.current=!0,b&&!R&&B(e.target.value.length),null==w||w(e)},onFocus:e=>{z(!0),null==N||N(e)},onBlur:e=>{z(!1),null==j||j(e)},className:yt(Gr.input,!X&&(J||ee?Gr.inputPadStart:Gr.inputPadStartWide),!J&&!ee&&(X?Gr.inputPadEnd:Gr.inputPadEndWide)),"data-component":"TextInput.Input"},O)),g?P.jsx("span",{id:I,className:Gr.hidden,children:v}):null,te?P.jsx(Yr,{id:L,position:"trailing",hasLoader:Q,showLoader:Z,children:p?Ur(p):null}):null,h]}),V?P.jsxs(P.Fragment,{children:[P.jsx("span",{role:"status","aria-live":"polite",className:Gr.hidden,children:G}),P.jsxs("span",{id:D,className:Gr.hidden,children:["You can enter up to ",b," ",1===b?"character":"characters"]}),P.jsxs(Wr,{"aria-hidden":"true",size:"small",className:yt(Gr.counter,F&&Gr.counterOverLimit),"data-component":"TextInput.CharacterCount",children:[F?P.jsx(Zt,{className:Gr.counterIcon}):null,V.message]})]}):null]})}Zr.displayName="TextInput";var Qr=wt(Zr);const Xr="input-action",Jr="input-action-button";function eo(e,t){const{className:a,icon:n}=e,i=S(e,["className","icon"]);return P.jsx("span",{className:Xr,"data-component":"TextInput.Action",children:P.jsx(ei,Object.assign({ref:t,type:"button",variant:"invisible",size:"small",icon:n,className:yt(Jr,a)},i))})}eo.displayName="TextInput.Action";var to=wt(eo);const ao=Object.assign(Qr,{Action:to}),no=["ArrowDown","ArrowUp"],io=["Backspace","Delete"];function ro(e,t){const a=e,{as:n=ao,className:i,openOnFocus:r=!1,value:o,onFocus:s,onBlur:l,onClick:c,onChange:d,onKeyDown:u,onKeyUp:m}=a,p=S(a,["as","className","openOnFocus","value","onFocus","onBlur","onClick","onChange","onKeyDown","onKeyUp"]),{id:h,inputRef:g,activeDescendantId:f,showMenu:v,setShowMenu:b,setInputValue:x}=C.useContext($r),{inputValue:y="",autocompleteSuggestion:w=""}=C.useContext(Br),N=H(t,g),[j,k]=C.useState(!0);return C.useEffect(()=>{const e=null==g?void 0:g.current;e&&(w?j&&document.activeElement===e&&(e.value=w,w.toLowerCase().startsWith(y.toLowerCase())&&e.setSelectionRange(y.length,w.length)):e.value=y)},[w,y,g,j]),C.useEffect(()=>{void 0!==o&&(null==x||x(String(o)))},[o,x]),P.jsx(n,Object.assign({ref:N,id:h,role:"combobox",autoComplete:"off","aria-autocomplete":"both","aria-haspopup":"listbox","aria-expanded":Boolean(v),"aria-controls":`${h}-listbox`,"aria-activedescendant":f,className:i,onFocus:e=>{null==s||s(e),r&&(null==b||b(!0))},onBlur:e=>{null==l||l(e),null==b||b(!1)},onClick:e=>{null==c||c(e),r&&(null==b||b(!0))},onChange:e=>{null==d||d(e),null==x||x(e.currentTarget.value),null==b||b(!0)},onKeyDown:e=>{null==u||u(e),e.defaultPrevented||(io.includes(e.key)&&k(!1),"Escape"!==e.key?v||e.altKey||!no.includes(e.key)||null==b||b(!0):v?null==b||b(!1):e.currentTarget.value&&(null==x||x(""),e.currentTarget.value=""))},onKeyUp:e=>{null==m||m(e),io.includes(e.key)&&k(!0)},"data-component":"Autocomplete.Input"},p))}ro.displayName="Autocomplete.Input";var oo=wt(ro);const so="autocomplete-menu-loading",lo="autocomplete-menu-empty-state",co="sr-only",uo=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})};function mo(e){var t;const{items:a,selectedItemIds:n=[],selectionVariant:i="single",filter:r,sortOnClose:o,emptyStateText:s="No selectable options",addNewItem:l,loading:c=!1,onOpenChange:d,onSelectedChange:u,customScrollContainerRef:m,"aria-labelledby":p,className:h}=e,{id:g,inputRef:f,scrollContainerRef:v,activeDescendantId:b,setActiveDescendantId:x,showMenu:y,setShowMenu:w,setInputValue:N,setAutocompleteSuggestion:j}=C.useContext($r),{deferredInputValue:k=""}=C.useContext(_r),O=`${g}-listbox`,M=C.useCallback(e=>`${O}-${e}`,[O]),[T,A]=C.useState(()=>a.map(e=>e.id));C.useEffect(()=>{if(y)return;const e=a.map(e=>e.id).sort(null!=o?o:(t=e=>n.includes(e),(e,a)=>t(e)===t(a)?0:t(e)?-1:1));var t;A(t=>((e,t)=>e.length===t.length&&e.every((e,a)=>e===t[a]))(e,t)?t:e)},[y,a,n,o]);const L=C.useMemo(()=>new Map(T.map((e,t)=>[e,t])),[T]),I=C.useMemo(()=>{return a.filter(null!=r?r:(e=k,t=>{var a;return Boolean(null===(a=t.text)||void 0===a?void 0:a.toLowerCase().startsWith(e.toLowerCase()))})).sort((e,t)=>{var a,n;return(null!==(a=L.get(e.id))&&void 0!==a?a:Number.MAX_SAFE_INTEGER)-(null!==(n=L.get(t.id))&&void 0!==n?n:Number.MAX_SAFE_INTEGER)});var e},[a,r,k,L]),D=C.useMemo(()=>l?[...I,l.item]:I,[I,l]),E=C.useMemo(()=>D.filter(e=>!e.disabled),[D]),z=E.findIndex(e=>M(e.id)===b),R=E[z],[$,B]=C.useState(!1),_=e=>{var t;if(l&&e.id===l.item.id)l.onAdd(e);else{const r="single"===i?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];u?u(r.map(e=>a.find(t=>t.id===e)).filter(e=>void 0!==e)):"single"===i&&(null==N||N(null!==(t=e.text)&&void 0!==t?t:""))}if("multiple"===i)return null==N||N(""),void(null==j||j(""));null==w||w(!1)},V=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if("Enter"===e.key){if(!R)return;return e.preventDefault(),void _(R)}const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0;0!==t&&(e.preventDefault(),(e=>{if(0===E.length)return;const t=(e+E.length)%E.length;B(!0),null==x||x(M(E[t].id))})(-1===z?1===t?0:-1:z+t))},H=C.useRef(V);C.useEffect(()=>{H.current=V}),C.useEffect(()=>{const e=null==f?void 0:f.current;if(!e||!y)return;const t=e=>H.current(e);return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[f,y]);const F=null!==(t=null==R?void 0:R.text)&&void 0!==t?t:"",W=$&&Boolean(R)&&F.toLowerCase().startsWith(k.toLowerCase())&&!n.includes(R.id);C.useEffect(()=>{null==j||j(W?F:"")},[W,F,j]),C.useEffect(()=>{var e;if(!b||!$)return;const t=null!==(e=null==m?void 0:m.current)&&void 0!==e?e:null==v?void 0:v.current,a=document.getElementById(b);if(!t||!a||!t.contains(a))return;const n=t.getBoundingClientRect(),i=a.getBoundingClientRect();i.top<n.top?t.scrollTop-=n.top-i.top:i.bottom>n.bottom&&(t.scrollTop+=i.bottom-n.bottom)},[b,$,m,v]);const q=C.useRef(!1);C.useEffect(()=>{const e=Boolean(y);q.current!==e&&(q.current=e,null==d||d(e))},[y,d]);const G="string"==typeof s?s:"No options available",K=c?"":0===D.length?G:`${D.length} option${1===D.length?"":"s"} available.`,[U,Y]=C.useState(""),Z=C.useRef("");C.useEffect(()=>{if(!y)return Z.current="",void Y("");if(K===Z.current)return;Z.current=K;const e=window.setTimeout(()=>Y(K),500);return()=>{window.clearTimeout(e)}},[y,K]);const Q=C.useMemo(()=>({container:"Autocomplete",listRole:"listbox",listLabelledBy:p,selectionAttribute:"aria-selected",selectionVariant:i,enableFocusZone:!1}),[p,i]),X=e=>{const{id:t,text:a,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:s,children:c}=e,d=S(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","children"]),u=l&&t===l.item.id?Ot:o;return P.jsxs(xi.Item,Object.assign({id:M(t),tabIndex:-1,active:M(t)===b,selected:n.includes(t),onSelect:()=>_(e),"data-id":t},d,{children:[u?P.jsx(xi.LeadingVisual,{children:uo(u)}):null,c,a,i?P.jsx(xi.Description,{variant:r,children:i}):null,s?P.jsx(xi.TrailingVisual,{children:uo(s)}):null]}),t)};return P.jsxs("div",{className:yt(h),onMouseDown:e=>e.preventDefault(),onMouseMove:e=>{const t=e.target.closest('[role="option"]');t&&t.id!==b&&E.some(e=>M(e.id)===t.id)&&(B(!1),null==x||x(t.id))},"data-component":"Autocomplete.Menu","data-loading":c?"":void 0,children:[c?P.jsx("div",{className:so,"data-component":"Autocomplete.Loading",children:P.jsx(zn,{})}):0===D.length?s?P.jsx("div",{className:lo,"data-component":"Autocomplete.EmptyState",children:s}):null:P.jsx(ln.Provider,{value:Q,children:P.jsx(xi,{id:O,children:D.map(X)})}),P.jsx("span",{role:"status","aria-live":"polite",className:co,"data-component":"Autocomplete.Announcement",children:U})]})}mo.displayName="Autocomplete.Menu";const po="sr-only",ho=bt(["autocomplete-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2"],{variants:{width:{xsmall:"autocomplete-overlay-width-xsmall",small:"autocomplete-overlay-width-small",medium:"autocomplete-overlay-width-medium",large:"autocomplete-overlay-width-large",xlarge:"autocomplete-overlay-width-xlarge",auto:"autocomplete-overlay-width-auto",anchor:"autocomplete-overlay-width-anchor"},height:{small:"autocomplete-overlay-height-small",medium:"autocomplete-overlay-height-medium",large:"autocomplete-overlay-height-large",xlarge:"autocomplete-overlay-height-xlarge",auto:"autocomplete-overlay-height-auto"},maxHeight:{small:"autocomplete-overlay-max-height-small",medium:"autocomplete-overlay-max-height-medium",large:"autocomplete-overlay-max-height-large",xlarge:"autocomplete-overlay-max-height-xlarge"},unplaced:{true:"invisible",false:""}}});function go(e){var t,a,n,i,r;const{menuAnchorRef:o,side:s="outside-bottom",align:l="start",width:c="anchor",height:d="auto",maxHeight:u="medium",portalContainerName:m,children:p,className:h,style:g}=e,f=S(e,["menuAnchorRef","side","align","width","height","maxHeight","portalContainerName","children","className","style"]),{inputRef:v,scrollContainerRef:b,showMenu:x,setShowMenu:y}=C.useContext($r),w=C.useRef(null),N=H(b,w),j=C.useCallback(()=>{var e,t,a;const n=null!==(e=null==v?void 0:v.current)&&void 0!==e?e:null;return null!==(a=null!==(t=null==o?void 0:o.current)&&void 0!==t?t:null==n?void 0:n.closest('[data-component="TextInput"]'))&&void 0!==a?a:n},[o,v]),k=C.useRef(null),[O,M]=C.useState(null),T=C.useCallback(()=>{const e=j(),t=w.current;if(!e||!t)return;const a=Object.assign(Object.assign({},qi(t,e,{side:s,align:l})),{anchorWidth:e.getBoundingClientRect().width});k.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth)(k.current,a)||(k.current=a,M(a))},[j,s,l]);return Oi(()=>{if(!x)return k.current=null,void M(null);T();const e=new ResizeObserver(T),t=j();return w.current&&e.observe(w.current),t&&e.observe(t),window.addEventListener("resize",T),window.addEventListener("scroll",T,!0),()=>{e.disconnect(),window.removeEventListener("resize",T),window.removeEventListener("scroll",T,!0)}},[x,T,j]),C.useEffect(()=>{if(!x)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=w.current)||void 0===t?void 0:t.contains(n))||(null===(a=j())||void 0===a?void 0:a.contains(n))||null==y||y(!1))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[x,y,j]),P.jsx(_i,{containerName:m,children:P.jsx("div",Object.assign({ref:N,"aria-hidden":x?void 0:"true",className:yt(x?ho({width:c,height:d,maxHeight:u,unplaced:!O}):po,h),style:Object.assign(Object.assign({},g),{"--autocomplete-overlay-top":`${null!==(t=null==O?void 0:O.top)&&void 0!==t?t:0}px`,"--autocomplete-overlay-left":`${null!==(a=null==O?void 0:O.left)&&void 0!==a?a:0}px`,"--autocomplete-overlay-anchor-width":`${null!==(n=null==O?void 0:O.anchorWidth)&&void 0!==n?n:0}px`}),"data-component":"Autocomplete.Overlay","data-open":x?"":void 0,"data-side":null!==(i=null==O?void 0:O.anchorSide)&&void 0!==i?i:s,"data-align":null!==(r=null==O?void 0:O.anchorAlign)&&void 0!==r?r:l,"data-width":c,"data-height":d},f,{children:p}))})}go.displayName="Autocomplete.Overlay";const fo=Object.assign(Vr,{Input:oo,Menu:mo,Overlay:go});e.createContext({});const vo=e=>"object"==typeof e&&Object.keys(e).some(e=>["narrow","regular","wide"].includes(e)),bo=20,xo=bt("avatar",{variants:{shape:{circle:"avatar-circle",square:"avatar-square"},responsive:{true:"avatar-responsive",false:""}}});function yo(e,t){const a=e,{as:n="img",className:i,alt:r="",size:o=bo,shape:s="circle",style:l}=a,c=S(a,["as","className","alt","size","shape","style"]),d=vo(o),u={"--avatar-size-regular":`${bo}px`};if(d)for(const[e,t]of Object.entries(o))void 0!==t&&(u[`--avatar-size-${e}`]=`${t}px`);else u["--avatar-size-regular"]=`${o}px`;return P.jsx(n,Object.assign({ref:t,alt:r,width:d?void 0:o,height:d?void 0:o,className:yt(xo({shape:s,responsive:d}),i),style:Object.assign(Object.assign({},l),u),"data-component":"Avatar","data-responsive":d||void 0,"data-shape":s},c))}yo.displayName="Avatar";var wo=wt(yo);const No=["narrow","regular","wide"],jo={root:"avatar-stack",responsive:"avatar-stack-responsive",alignLeft:"avatar-stack-align-left",alignRight:"avatar-stack-align-right",variant:{cascade:"avatar-stack-cascade",stack:"avatar-stack-stack"},width:{cascade:{two:"avatar-stack-cascade-two",three:"avatar-stack-cascade-three",more:"avatar-stack-cascade-more"},stack:{two:"avatar-stack-stack-two",three:"avatar-stack-stack-three",more:"avatar-stack-stack-more"}},body:{collapsed:"avatar-stack-body",expandable:"avatar-stack-body-expandable"},item:{root:"avatar-stack-item",first:"avatar-stack-item-first",overlapped:"avatar-stack-item-overlapped",mask:"avatar-stack-item-mask",shape:{circle:"avatar-stack-item-circle",square:"avatar-stack-item-square"},edge:{circle:"avatar-stack-item-edge-circle",square:"avatar-stack-item-edge-square"},edgeAlignRight:"avatar-stack-item-edge-align-right",layer:["z-5","z-4","z-3","z-2","z-1"],fade:["","","avatar-stack-item-fade-third","avatar-stack-item-fade-fourth","avatar-stack-item-fade-fifth"],overflow:"avatar-stack-item-overflow",expanded:"avatar-stack-item-expanded",expandedFirst:"avatar-stack-item-expanded-first"}};function ko(e,t){var a;const n=e,{as:i="span",className:r,children:o,variant:s="cascade",shape:l="circle",size:c,alignRight:d,disableExpand:u,style:m}=n,p=S(n,["as","className","children","variant","shape","size","alignRight","disableExpand","style"]),h=C.useRef(null),[g,f]=C.useState(!1);C.useEffect(()=>{if(!h.current)return;const e=h.current,t=()=>{f(qa(e).length>0)},a=new MutationObserver(t);return a.observe(e,{childList:!0}),t(),()=>{a.disconnect()}},[]);const v=C.Children.count(o),b=v>3?"more":3===v?"three":2===v?"two":void 0,x=!c||vo(c),y=!u,w={};if(vo(c))for(const e of No)w[`--avatar-stack-size-${e}`]=`${null!==(a=c[e])&&void 0!==a?a:bo}px`;else if(c)w["--avatar-stack-size"]=`${c}px`;else{const e=(e=>{var t;const a={narrow:[],regular:[],wide:[]};for(const n of C.Children.toArray(e)){if(!C.isValidElement(n))continue;const e=n.props.size;for(const n of No)a[n].push(vo(e)?null!==(t=e[n])&&void 0!==t?t:bo:null!=e?e:bo)}return Object.fromEntries(No.map(e=>[e,a[e].length>0?Math.min(...a[e]):bo]))})(o);for(const t of No)w[`--avatar-stack-size-${t}`]=`${e[t]}px`}const N=C.Children.map(o,(e,t)=>C.isValidElement(e)?C.cloneElement(e,{className:yt(jo.item.root,0===t?jo.item.first:jo.item.overlapped,jo.item.shape[l],d&&"square"===l?jo.item.edgeAlignRight:jo.item.edge[l],t>0&&"circle"===l&&jo.item.mask,"square"===l&&jo.item.layer[Math.min(t,4)],"cascade"===s&&jo.item.fade[t],t>4&&jo.item.overflow,y&&jo.item.expanded,y&&0===t&&jo.item.expandedFirst,e.props.className)}):e);return P.jsx(i,Object.assign({ref:t,className:yt(jo.root,jo.variant[s],b&&jo.width[s][b],d?jo.alignRight:jo.alignLeft,x&&jo.responsive,r),style:Object.assign(Object.assign({},m),w),"data-component":"AvatarStack","data-variant":s,"data-shape":l,"data-avatar-count":v>3?"3+":v,"data-align-right":d,"data-responsive":x||void 0},p,{children:P.jsx("div",{ref:h,className:y?jo.body.expandable:jo.body.collapsed,tabIndex:y&&!g?0:void 0,"data-component":"AvatarStack.Body","data-disable-expand":u,children:N})}))}ko.displayName="AvatarStack";var Co=wt(ko);const So=e.createContext({});function Oo(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(a),"data-component":"Banner.Description"},n))}Oo.displayName="Banner.Description";var Mo=wt(Oo);const To="banner-title";function Ao(e,t){const{as:a="h2",className:n,id:i}=e,r=S(e,["as","className","id"]),{titleId:o}=C.useContext(So);return P.jsx(a,Object.assign({ref:t,id:null!=i?i:o,className:yt(To,n),"data-component":"Banner.Title"},r))}Ao.displayName="Banner.Title";var Lo=wt(Ao);const Io="banner-container",Do="banner-actions",Eo="banner-actions-inline",zo="banner-actions-stacked",Po={shown:"banner-actions-shown",hidden:"banner-actions-hidden",inlineLeading:"banner-actions-inline-leading",inlineTrailing:"banner-actions-inline-trailing",responsiveLeading:"banner-actions-responsive-leading",responsiveTrailing:"banner-actions-responsive-trailing"},Ro="sr-only",$o=bt("banner",{variants:{layout:{default:"banner-default",compact:"banner-compact"},variant:{critical:"banner-critical",info:"banner-info",success:"banner-success",upsell:"banner-upsell",warning:"banner-warning"},flush:{true:"banner-flush",false:""}}}),Bo=bt("banner-icon",{variants:{tight:{true:"banner-icon-tight",false:""}}}),_o=bt("banner-body",{variants:{actions:{stacked:"banner-body-stacked",inline:"banner-body-inline",responsive:"banner-body-responsive"}}}),Vo=bt("banner-content",{variants:{tight:{true:"banner-content-tight",false:""}}}),Ho=bt("banner-dismiss",{variants:{withActions:{true:"banner-dismiss-with-actions",false:""}}}),Fo={critical:Zt,info:ea,success:$t,upsell:ea,warning:ja},Wo=["info","upsell"],qo=({primaryAction:e,secondaryAction:t,className:a,leadingClassName:n,trailingClassName:i})=>P.jsxs("div",{"data-component":"Banner.Actions",children:[P.jsxs("div",{className:yt(Do,a,i),"data-primary-action":"trailing",children:[t,e]}),P.jsxs("div",{className:yt(Do,a,n),"data-primary-action":"leading",children:[e,t]})]});function Go(e,t){const{className:a,children:n,title:i,description:r,hideTitle:o,leadingVisual:s,variant:l="info",layout:c="default",actionsLayout:d="default",flush:u=!1,onDismiss:m,primaryAction:p,secondaryAction:h,"aria-label":g,"aria-labelledby":f}=e,v=S(e,["className","children","title","description","hideTitle","leadingVisual","variant","layout","actionsLayout","flush","onDismiss","primaryAction","secondaryAction","aria-label","aria-labelledby"]),b=Da(),x=Boolean(m),y=Boolean(p||h),w=Boolean(o)&&!y,N=Fo[l],j=s&&Wo.includes(l)?s:P.jsx(N,{}),k="stacked"===d||x&&!o&&"inline"!==d,C=k?{leading:Po.shown,trailing:Po.hidden}:"inline"===d?{leading:Po.inlineLeading,trailing:Po.inlineTrailing}:{leading:Po.responsiveLeading,trailing:Po.responsiveTrailing},O=i?P.jsx(Lo,{children:i}):null;return P.jsx(So.Provider,{value:{titleId:b},children:P.jsx("div",{className:Io,children:P.jsxs("section",Object.assign({ref:t,"aria-labelledby":null!=f?f:g?void 0:b,"aria-label":f?void 0:g,tabIndex:-1,className:yt($o({layout:c,variant:l,flush:u}),a),"data-component":"Banner","data-variant":l,"data-layout":c,"data-actions-layout":d,"data-dismissible":x||void 0,"data-has-actions":y||void 0,"data-title-hidden":o||void 0,"data-flush":u||void 0},v,{children:[P.jsx("div",{className:yt(Bo({tight:w})),"data-component":"Banner.Icon",children:j}),P.jsxs("div",{className:yt(_o({actions:k?"stacked":"inline"===d?"inline":"responsive"})),children:[P.jsxs("div",{className:yt(Vo({tight:w})),"data-component":"Banner.Content",children:[O?o?P.jsx("span",{className:Ro,children:O}):O:null,r?P.jsx(Mo,{children:r}):null,n]}),y?P.jsx(qo,{primaryAction:p,secondaryAction:h,className:yt("inline"===d&&Eo,k&&zo),leadingClassName:C.leading,trailingClassName:C.trailing}):null]}),x?P.jsx(ei,{icon:Ut,"aria-label":"Dismiss banner",variant:"invisible",onClick:m,className:yt(Ho({withActions:y})),"data-component":"Banner.Dismiss"}):null]}))})})}Go.displayName="Banner";var Ko=wt(Go);function Uo(e,t){return P.jsx(Qn,Object.assign({ref:t,variant:"default","data-component":"Banner.PrimaryAction"},e))}Uo.displayName="Banner.PrimaryAction";var Yo=wt(Uo);function Zo(e,t){return P.jsx(Qn,Object.assign({ref:t,variant:"invisible","data-component":"Banner.SecondaryAction"},e))}Zo.displayName="Banner.SecondaryAction";var Qo=wt(Zo);const Xo=Object.assign(Ko,{Title:Lo,Description:Mo,PrimaryAction:Yo,SecondaryAction:Qo}),Jo={container:"blankslate-container",root:"blankslate",border:"blankslate-border",narrow:"blankslate-narrow",size:{small:"blankslate-small",medium:"blankslate-medium",large:"blankslate-large"},padding:{small:"blankslate-padding-small",medium:"blankslate-padding-medium",large:"blankslate-padding-large"},spaciousPadding:{small:"blankslate-padding-spacious-small",medium:"blankslate-padding-spacious-medium",large:"blankslate-padding-spacious-large"},tightType:"blankslate-tight-type",tightPadding:{small:"blankslate-tight-padding-small",medium:"blankslate-tight-padding-medium",large:"blankslate-tight-padding-large"},tightSpaciousPadding:"blankslate-tight-padding-spacious"};function es(e,t){const a=e,{as:n="div",className:i,size:r="medium",border:o,narrow:s,spacious:l}=a,c=S(a,["as","className","size","border","narrow","spacious"]);return P.jsx("div",{className:Jo.container,children:P.jsx(n,Object.assign({ref:t,className:yt(Jo.root,Jo.size[r],l?Jo.spaciousPadding[r]:Jo.padding[r],Jo.tightType,l?Jo.tightSpaciousPadding:Jo.tightPadding[r],o&&Jo.border,s&&Jo.narrow,i),"data-component":"Blankslate","data-size":r,"data-border":o,"data-narrow":s,"data-spacious":l},c))})}es.displayName="Blankslate";var ts=wt(es);const as="blankslate-description";function ns(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("p",Object.assign({ref:t,className:yt(as,a),"data-component":"Blankslate.Description"},n))}ns.displayName="Blankslate.Description";var is=wt(ns);const rs="blankslate-heading";function os(e,t){const{as:a="h2",className:n}=e,i=S(e,["as","className"]);return P.jsx(a,Object.assign({ref:t,className:yt(rs,n),"data-component":"Blankslate.Heading"},i))}os.displayName="Blankslate.Heading";var ss=wt(os);const ls="blankslate-action",cs="blankslate-action-tight";function ds(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(ls,cs,a)},n))}ds.displayName="Blankslate.Action";var us=wt(ds);function ms(e,t){return P.jsx(us,Object.assign({ref:t,"data-component":"Blankslate.PrimaryAction"},e))}ms.displayName="Blankslate.PrimaryAction";var ps=wt(ms);const hs="link",gs="link-inline",fs="link-muted";function vs(e,t){const a=e,{as:n="a",className:i,muted:r,inline:o}=a,s=S(a,["as","className","muted","inline"]);return P.jsx(n,Object.assign({ref:t,className:yt(hs,o&&gs,r&&fs,i),"data-component":"Link","data-muted":r,"data-inline":o},s))}vs.displayName="Link";var bs=wt(vs);function xs(e,t){const{href:a,children:n}=e,i=S(e,["href","children"]);return P.jsx(us,Object.assign({ref:t,"data-component":"Blankslate.SecondaryAction"},i,{children:void 0===a?n:P.jsx(bs,{href:a,children:n})}))}xs.displayName="Blankslate.SecondaryAction";var ys=wt(xs);const ws="blankslate-visual",Ns="blankslate-visual-tight";function js(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("span",Object.assign({ref:t,className:yt(ws,Ns,a),"data-component":"Blankslate.Visual"},n))}js.displayName="Blankslate.Visual";var ks=wt(js);const Cs=Object.assign(ts,{Visual:ks,Heading:ss,Description:is,PrimaryAction:ps,SecondaryAction:ys}),Ss=bt("blockquote",{variants:{size:{large:"blockquote-large",medium:"blockquote-medium",small:"blockquote-small"},variant:{subtle:"blockquote-subtle",default:"blockquote-default",emphasis:"blockquote-emphasis"}}});function Os(e,t){const a=e,{as:n="blockquote",className:i,size:r="medium",variant:o="default"}=a,s=S(a,["as","className","size","variant"]);return P.jsx(n,Object.assign({ref:t,className:yt(Ss({size:r,variant:o}),i),"data-component":"Blockquote","data-size":r,"data-variant":o},s))}Os.displayName="Blockquote";var Ms=wt(Os);function Ts({items:e}){return P.jsxs(er,{children:[P.jsx(er.Anchor,{children:P.jsx(ei,{icon:na,"aria-label":`${e.length} more breadcrumb items`,variant:"invisible",size:"small","data-component":"Breadcrumbs.OverflowMenu"})}),P.jsx(er.Overlay,{children:P.jsx(xi,{children:e.map((e,t)=>{const a=e.props,{children:n,selected:i,as:r}=a,o=S(a,["children","selected","as"]);return P.jsx(xi.LinkItem,Object.assign({as:r,"aria-current":i?"page":void 0},o,{children:n}),t)})})})]})}Ts.displayName="Breadcrumbs.OverflowMenu";const As=e.createContext({}),Ls="breadcrumbs",Is="breadcrumbs-list",Ds="breadcrumbs-list-wrap",Es="breadcrumbs-list-menu",zs="breadcrumbs-item",Ps="breadcrumbs-item-menu",Rs="breadcrumbs-separator",$s=()=>P.jsx("span",{className:Rs,"aria-hidden":"true","data-component":"Breadcrumbs.Separator",children:P.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z",fill:"currentcolor"})})});function Bs(e){const{className:t,children:a,style:n,overflow:i="wrap",variant:r="normal"}=e,o=C.useRef(null),s=C.useMemo(()=>(e=>C.Children.toArray(e).filter(e=>C.isValidElement(e)))(a),[a]),l=s[0],c="menu-with-root"!==i,[d,u]=C.useState([]),[m,p]=C.useState(null),[h,g]=C.useState(28),f=C.useCallback(e=>{const t=null==e?void 0:e.querySelector("button");t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);Oi(()=>{if("wrap"===i)return;const e=o.current;if(!e)return;p(t=>t===e.offsetWidth?t:e.offsetWidth);const t=e.querySelectorAll("li[data-crumb]");t.length===s.length&&u(Array.from(t,e=>e.offsetWidth))},[s,i]),C.useEffect(()=>{const e=o.current;if("wrap"===i||!e)return;const t=new ResizeObserver(e=>{for(const t of e){const e=Math.round(t.contentRect.width);p(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[i]);const{menuItemCount:v,hideRoot:b}=C.useMemo(()=>"wrap"===i||d.length!==s.length?{menuItemCount:0,hideRoot:c}:(({availableWidth:e,itemCount:t,itemWidths:a,menuButtonWidth:n,overflow:i,hideRoot:r})=>{var o;let s=r;const l=null!==(o=a[0])&&void 0!==o?o:0;let c=4;s?e<544&&t>2&&(c=1):c=3;const d=e=>{const t=e.reduce((e,t)=>e+t+16,0);return s?t:l+t};let u=[...a],m=0;if(e>0&&u.length>0){let t=d(u);for(;"wrap"!==i&&(t>e||u.length>c);){if(m+=1,u=u.slice(1),t=d(u)+n,1===u.length&&t>e){s=!0;break}s=r}}return{menuItemCount:m,hideRoot:s}})({availableWidth:null!=m?m:800,itemCount:s.length,itemWidths:d,menuButtonWidth:h,overflow:i,hideRoot:c}),[i,c,s,d,m,h]),x=C.useMemo(()=>({variant:r}),[r]),y=C.useMemo(()=>{const e=(e,t)=>P.jsxs("li",{className:zs,"data-crumb":"",children:[e,P.jsx($s,{})]},t);if(0===v)return s.map((t,a)=>e(t,a));const t=s.slice(0,v),a=s.slice(v),n=b?t:t.slice(1),i=P.jsxs("li",{ref:f,className:yt(zs,Ps),"data-overflow-menu":"",children:[P.jsx(Ts,{items:n}),P.jsx($s,{})]},"overflow-menu"),r=a.map((t,a)=>e(t,`visible-${a}`));return b?[i,...r]:[e(l,"root"),i,...r]},[s,v,b,f,l]);return P.jsx(As.Provider,{value:x,children:P.jsx("nav",{ref:o,"aria-label":"Breadcrumbs",className:yt(Ls,t),style:n,"data-component":"Breadcrumbs","data-overflow":i,"data-variant":r,children:P.jsx("ol",{className:yt(Is,"wrap"===i?Ds:Es),children:y})})})}Bs.displayName="Breadcrumbs";const _s="breadcrumbs-link",Vs="breadcrumbs-link-normal",Hs="breadcrumbs-link-normal-selected",Fs="breadcrumbs-link-spacious",Ws="breadcrumbs-link-spacious-selected";function qs(e,t){const a=e,{as:n="a",className:i,selected:r}=a,o=S(a,["as","className","selected"]),{variant:s="normal"}=C.useContext(As),l="spacious"===s;return P.jsx(n,Object.assign({ref:t,"aria-current":r?"page":void 0,className:yt(_s,l?Fs:Vs,r&&(l?Ws:Hs),i),"data-component":"Breadcrumbs.Item","data-selected":r?"":void 0},o))}qs.displayName="Breadcrumbs.Item";var Gs=wt(qs);const Ks=Object.assign(Bs,{Item:Gs}),Us="button-group",Ys={root:"button-group-item",first:"button-group-item-first",last:"button-group-item-last"},Zs=["[disabled]","[hidden]","[inert]"],Qs=["button","a[href]","summary"].map(e=>`${e}:not(${Zs.join("):not(")})`).join(", "),Xs=e=>e?Array.from(e.querySelectorAll(Qs)):[],Js=(e,t)=>{for(const a of e)a.tabIndex=a===t?0:-1};function el(e,t){const a=e,{as:n="div",className:i,children:r,role:o,onFocus:s,onKeyDown:l}=a,c=S(a,["as","className","children","role","onFocus","onKeyDown"]),d=C.useRef(null),u=H(t,d),m="toolbar"===o,p=C.useCallback(()=>{if(!m)return;const e=Xs(d.current),t=e.find(e=>e===document.activeElement);Js(e,null!=t?t:e[0])},[m]);C.useEffect(p),C.useEffect(()=>{if(!m||null===d.current)return;const e=d.current,t=new MutationObserver(p);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(const t of Xs(e))t.removeAttribute("tabindex")}},[m,p]);const h=C.Children.toArray(r);return P.jsx(n,Object.assign({ref:u,className:yt(Us,i),role:o,onFocus:e=>{if(null==s||s(e),!m)return;const t=Xs(d.current);t.includes(e.target)&&Js(t,e.target)},onKeyDown:e=>{null==l||l(e);const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(!m||0===t||e.defaultPrevented)return;const a=Xs(d.current),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},"data-component":"ButtonGroup"},c,{children:h.map((e,t)=>P.jsx("div",{className:yt(Ys.root,0===t&&Ys.first,t===h.length-1&&Ys.last),"data-component":"ButtonGroup.Item",children:e},C.isValidElement(e)?e.key:t))}))}el.displayName="ButtonGroup";var tl=wt(el);const al="calendar-day",nl="calendar-day-interactive",il="calendar-day-selected",rl="calendar-day-between",ol="calendar-day-outside",sl="calendar-day-unavailable",ll="sr-only";function cl(e,t){const{label:a,name:n,dayKey:i,selected:r,range:o,today:s,outside:l,unavailable:c,tabbable:d,className:u}=e,m=S(e,["label","name","dayKey","selected","range","today","outside","unavailable","tabbable","className"]),p="middle"===o,h=r&&!p;return P.jsxs("button",Object.assign({ref:t,type:"button",tabIndex:d?0:-1,"aria-pressed":r,"aria-current":s?"date":void 0,"aria-disabled":c||void 0,className:yt(al,!c&&!r&&nl,l&&ol,p&&rl,c&&sl,h&&il,u),"data-component":"Calendar.Day","data-date":i,"data-selected":r,"data-range":o,"data-today":s||void 0,"data-outside":l||void 0,"data-unavailable":c||void 0,"data-tabbable":d},m,{children:[P.jsx("span",{"aria-hidden":"true",children:a}),P.jsx("span",{className:ll,children:n})]}))}cl.displayName="Calendar.Day";var dl,ul=wt(cl),ml={exports:{}};var pl,hl=(dl||(dl=1,ml.exports=function(){var e=1e3,t=6e4,a=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",l="week",c="month",d="quarter",u="year",m="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},v=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},b={s:v,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),i=a%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,a){if(t.date()<a.date())return-e(a,t);var n=12*(a.year()-t.year())+(a.month()-t.month()),i=t.clone().add(n,c),r=a-i<0,o=t.clone().add(n+(r?-1:1),c);return+(-(n+(a-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:s,D:m,h:o,m:r,s:i,ms:n,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",y={};y[x]=f;var w="$isDayjsObject",N=function(e){return e instanceof S||!(!e||!e[w])},j=function e(t,a,n){var i;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();y[r]&&(i=r),a&&(y[r]=a,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(x=i),i||!n&&x},k=function(e,t){if(N(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new S(a)},C=b;C.l=j,C.i=N,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function f(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var a=k(e);return this.startOf(t)<=a&&a<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,a){return C.u(e)?this[t]:this.set(a,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var a=this,n=!!C.u(t)||t,d=C.p(e),p=function(e,t){var i=C.w(a.$u?Date.UTC(a.$y,t,e):new Date(a.$y,t,e),a);return n?i:i.endOf(s)},h=function(e,t){return C.w(a.toDate()[e].apply(a.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),a)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return n?p(1,0):p(31,11);case c:return n?p(1,f):p(0,f+1);case l:var x=this.$locale().weekStart||0,y=(g<x?g+7:g)-x;return p(n?v-y:v+(6-y),f);case s:case m:return h(b+"Hours",0);case o:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case i:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var a,l=C.p(e),d="set"+(this.$u?"UTC":""),p=(a={},a[s]=d+"Date",a[m]=d+"Date",a[c]=d+"Month",a[u]=d+"FullYear",a[o]=d+"Hours",a[r]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===u){var g=this.clone().set(m,1);g.$d[p](h),g.init(),this.$d=g.set(m,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(n,d){var m,p=this;n=Number(n);var h=C.p(d),g=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(h===c)return this.set(c,this.$M+n);if(h===u)return this.set(u,this.$y+n);if(h===s)return g(1);if(h===l)return g(7);var f=(m={},m[r]=t,m[o]=a,m[i]=e,m)[h]||1,v=this.$d.getTime()+n*f;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,a=this.$locale();if(!this.isValid())return a.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),r=this.$H,o=this.$m,s=this.$M,l=a.weekdays,c=a.months,d=a.meridiem,u=function(e,a,i,r){return e&&(e[a]||e(t,n))||i[a].slice(0,r)},m=function(e){return C.s(r%12||12,e,"0")},h=d||function(e,t,a){var n=e<12?"AM":"PM";return a?n.toLowerCase():n};return n.replace(g,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return u(a.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(a.weekdaysMin,t.$W,l,2);case"ddd":return u(a.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return C.s(r,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return h(r,o,!0);case"A":return h(r,o,!1);case"m":return String(o);case"mm":return C.s(o,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,m,p){var h,g=this,f=C.p(m),v=k(n),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,y=function(){return C.m(g,v)};switch(f){case u:h=y()/12;break;case c:h=y();break;case d:h=y()/3;break;case l:h=(x-b)/6048e5;break;case s:h=(x-b)/864e5;break;case o:h=x/a;break;case r:h=x/t;break;case i:h=x/e;break;default:h=x}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var a=this.clone(),n=j(e,t,!0);return n&&(a.$L=n),a},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),O=S.prototype;return k.prototype=O,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",s],["$M",c],["$y",u],["$D",m]].forEach(function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,S,k),e.$i=!0),k},k.locale=j,k.isDayjs=N,k.unix=function(e){return k(1e3*e)},k.en=y[x],k.Ls=y,k.p={},k}()),ml.exports),gl=M(hl),fl={exports:{}};var vl,bl=(pl||(pl=1,fl.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),a=60*t[1]+(+t[2]||0);return 0===a?0:"+"===t[0]?-a:a}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var a,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){a=i>12;break}}else a=e===(t?"pm":"PM");return a},m={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],Q:[a,function(e){this.month=3*(e-1)+1}],S:[a,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[n,l("day")],Do:[r,function(e){var t=o.ordinal,a=e.match(/\d+/);if(this.day=a[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,l("week")],ww:[n,l("week")],M:[i,l("month")],MM:[n,l("month")],MMM:[r,function(e){var t=d("months"),a=(d("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(a<1)throw new Error;this.month=a%12||a}],MMMM:[r,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(a){var n,i;n=a,i=o&&o.formats;for(var r=(a=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,a,n){var r=n&&n.toUpperCase();return a||i[n]||e[n]||i[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})).match(t),s=r.length,l=0;l<s;l+=1){var c=r[l],d=m[c],u=d&&d[0],p=d&&d[1];r[l]=p?{regex:u,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},a=0,n=0;a<s;a+=1){var i=r[a];if("string"==typeof i)n+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(n),d=o.exec(c)[0];l.call(t,d),e=e.replace(d,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var a=e.hours;t?a<12&&(e.hours+=12):12===a&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,r=e.args;this.$u=n;var s=r[1];if("string"==typeof s){var l=!0===r[2],c=!0===r[3],d=l||c,u=r[2];c&&(u=r[2]),o=this.$locale(),!l&&u&&(o=a.Ls[u]),this.$d=function(e,t,a,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),r=i.year,o=i.month,s=i.day,l=i.hours,c=i.minutes,d=i.seconds,u=i.milliseconds,m=i.zone,h=i.week,g=new Date,f=s||(r||o?1:g.getDate()),v=r||g.getFullYear(),b=0;r&&!o||(b=o>0?o-1:g.getMonth());var x,y=l||0,w=c||0,N=d||0,j=u||0;return m?new Date(Date.UTC(v,b,f,y,w,N,j+60*m.offset*1e3)):a?new Date(Date.UTC(v,b,f,y,w,N,j)):(x=new Date(v,b,f,y,w,N,j),h&&(x=n(x).week(h).toDate()),x)}catch(e){return new Date("")}}(t,s,n,a),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var m=s.length,h=1;h<=m;h+=1){r[1]=s[h-1];var g=a.apply(this,r);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===m&&(this.$d=new Date(""))}else i.call(this,e)}}}()),fl.exports),xl=M(bl),yl={exports:{}};var wl,Nl=(vl||(vl=1,yl.exports=function(e,t,a){var n=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},r=function(e,t,a,n,r){var o=e.name?e:e.$locale(),s=i(o[t]),l=i(o[a]),c=s||l.map(function(e){return e.slice(0,n)});if(!r)return c;var d=o.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},o=function(){return a.Ls[a.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):r(e,"months")},monthsShort:function(t){return t?t.format("MMM"):r(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):r(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):r(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):r(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return l.bind(this)()},a.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},a.months=function(){return r(o(),"months")},a.monthsShort=function(){return r(o(),"monthsShort","months",3)},a.weekdays=function(e){return r(o(),"weekdays",null,null,e)},a.weekdaysShort=function(e){return r(o(),"weekdaysShort","weekdays",3,e)},a.weekdaysMin=function(e){return r(o(),"weekdaysMin","weekdays",2,e)}}),yl.exports),jl=M(Nl),kl={exports:{}};var Cl,Sl,Ol=(wl||(wl=1,kl.exports=(Cl={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,a){var n=t.prototype,i=n.format;a.en.formats=Cl,n.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,a=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,a,n){var i=n&&n.toUpperCase();return a||t[n]||Cl[n]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})}(e,void 0===t?{}:t);return i.call(this,a)}})),kl.exports),Ml=M(Ol),Tl={exports:{}};var Al=(Sl||(Sl=1,Tl.exports=function(){var e="week",t="year";return function(a,n,i){var r=n.prototype;r.week=function(a){if(void 0===a&&(a=null),null!==a)return this.add(7*(a-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=i(this).startOf(t).add(1,t).date(n),o=i(this).endOf(e);if(r.isBefore(o))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),Tl.exports),Ll=M(Al);gl.extend(xl),gl.extend(jl),gl.extend(Ml),gl.extend(Ll);const Il="YYYY-MM-DD",Dl=e=>gl(e),El=e=>{if(null==e)return null;const t=Dl(e);return t.isValid()?t:null},zl=e=>e.format(Il),Pl={from:null,to:null},Rl=(e,t)=>{if(null==e)return Pl;if(t){const t=e;return{from:El(t.from),to:El(t.to)}}const a=El(e);return{from:a,to:a}},$l=()=>{var e;return null!==(e=gl().localeData().firstDayOfWeek())&&void 0!==e?e:0},Bl=e=>{const t=gl().localeData(),a=t.weekdaysMin(),n=t.weekdays();return Array.from({length:7},(t,i)=>{const r=(e+i)%7;return{day:r,narrow:a[r],full:n[r]}})},_l=(e,t)=>e.subtract((e.day()-t+7)%7,"day"),Vl=(e,t,a=!1)=>{const n=e.startOf("month"),i=_l(n,t),r=(n.day()-t+7)%7,o=(t+7-1-e.endOf("month").day())%7,s=r+e.daysInMonth()+o,l=a?6:s/7;return Array.from({length:l},(e,t)=>Array.from({length:7},(e,a)=>i.add(7*t+a,"day")))},Hl=(e,t,a,n)=>!(null!==t&&e.isBefore(t,"day")||null!==a&&e.isAfter(a,"day")||(null==n?void 0:n(e.toDate()))),Fl=(e,t)=>e.isAfter(t,"day")?[t,e]:[e,t],Wl=(e,t,a)=>{if(null===t)return null!==a&&e.isSame(a,"day");if(null===a)return e.isSame(t,"day");const[n,i]=Fl(t,a);return!e.isBefore(n,"day")&&!e.isAfter(i,"day")},ql=(e,t,a)=>{if(null===t||null===a||t.isSame(a,"day"))return;const[n,i]=Fl(t,a);return e.isSame(n,"day")?"start":e.isSame(i,"day")?"end":e.isAfter(n,"day")&&e.isBefore(i,"day")?"middle":void 0},Gl=(e,t,a)=>{if(null===e||null!==t)return{from:a,to:null};if(a.isSame(e,"day"))return Pl;const[n,i]=Fl(e,a);return{from:n,to:i}},Kl=(e,t)=>{const a=gl(e,t,!0);return a.isValid()?a:null},Ul=()=>gl(),Yl="calendar",Zl="calendar-header",Ql="calendar-caption",Xl="calendar-grid",Jl="calendar-weekday",ec="calendar-week-number-header",tc="calendar-week-number",ac="calendar-cell",nc="calendar-cell-range",ic="calendar-cell-range-start",rc="calendar-cell-range-end",oc="sr-only";function sc(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:o,month:s,defaultMonth:l,onMonthChange:c,min:d,max:u,isDateDisabled:m,weekStartsOn:p,fixedWeeks:h=!1,showOutsideDays:g=!0,showWeekNumbers:f=!1,monthFormat:v="MMMM YYYY",dayFormat:b="LL",focusableDayRef:x,previousMonthLabel:y="Previous month",nextMonthLabel:w="Next month",weekNumberLabel:N="Week",className:j}=a,k=S(a,["mode","value","defaultValue","onChange","month","defaultMonth","onMonthChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showOutsideDays","showWeekNumbers","monthFormat","dayFormat","focusableDayRef","previousMonthLabel","nextMonthLabel","weekNumberLabel","className"]),O=Da(),M=C.useRef(null),T=Ul(),A="range"===n,L=void 0!==i,[I,D]=C.useState(()=>Rl(r,A)),E=L?Rl(i,A):I,z=void 0!==s,[R,$]=C.useState(()=>{var e,t,a;return(null!==(a=null!==(t=null!==(e=El(l))&&void 0!==e?e:Rl(r,A).from)&&void 0!==t?t:Rl(i,A).from)&&void 0!==a?a:Ul()).startOf("month")}),B=(z?Dl(s):R).startOf("month"),_=El(d),V=El(u),H=null!=p?p:$l(),F=Bl(H),W=Vl(B,H,h),[q,G]=C.useState(null),K=C.useRef(null),[U,Y]=C.useState(null),Z=A&&null!==E.from&&null===E.to,Q=Z?U:E.to,X=zl((()=>{for(const e of[q,E.from,T])if(e&&e.isSame(B,"month"))return e;return B})());C.useEffect(()=>{var e,t;const a=K.current;null!==a&&(K.current=null,null===(t=null===(e=M.current)||void 0===e?void 0:e.querySelector(`[data-date='${a}']`))||void 0===t||t.focus())});const J=e=>{const t=e.startOf("month");z||$(t),null==c||c(t.toDate())},ee=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const a=t=>{e.preventDefault(),(e=>{G(e),K.current=zl(e),e.isSame(B,"month")||J(e)})(t)};switch(e.key){case"ArrowLeft":return a(t.subtract(1,"day"));case"ArrowRight":return a(t.add(1,"day"));case"ArrowUp":return a(t.subtract(7,"day"));case"ArrowDown":return a(t.add(7,"day"));case"Home":return a(_l(t,H));case"End":return a(_l(t,H).add(6,"day"));case"PageUp":return a(t.subtract(1,e.shiftKey?"year":"month"));case"PageDown":return a(t.add(1,e.shiftKey?"year":"month"));default:return}},te=B.subtract(1,"month"),ae=B.add(1,"month"),ne=null===_||!te.endOf("month").isBefore(_,"day"),ie=null===V||!ae.isAfter(V,"day");return P.jsxs("div",Object.assign({ref:t,className:yt(Yl,j),"data-component":"Calendar"},k,{children:[P.jsxs("div",{className:Zl,"data-component":"Calendar.Header",children:[P.jsx(ei,{icon:Vt,"aria-label":y,variant:"invisible",size:"small",disabled:!ne,onClick:()=>J(te),"data-component":"Calendar.PreviousMonth"}),P.jsx("div",{id:O,"aria-live":"polite",className:Ql,"data-component":"Calendar.Caption",children:B.format(v)}),P.jsx(ei,{icon:Ht,"aria-label":w,variant:"invisible",size:"small",disabled:!ie,onClick:()=>J(ae),"data-component":"Calendar.NextMonth"})]}),P.jsxs("table",{ref:M,"aria-labelledby":O,className:Xl,onPointerLeave:()=>{Y(null)},"data-component":"Calendar.Grid","data-mode":n,children:[P.jsx("thead",{children:P.jsxs("tr",{children:[f?P.jsx("th",{scope:"col",className:ec,children:P.jsx("span",{className:oc,children:N})}):null,F.map(e=>P.jsxs("th",{scope:"col",className:Jl,"data-component":"Calendar.Weekday",children:[P.jsx("span",{"aria-hidden":"true",children:e.narrow}),P.jsx("span",{className:oc,children:e.full})]},e.day))]})}),P.jsx("tbody",{children:W.map(e=>P.jsxs("tr",{"data-component":"Calendar.Week",children:[f?P.jsx("th",{scope:"row",className:tc,"data-component":"Calendar.WeekNumber",children:e[0].week()}):null,e.map(e=>{const t=zl(e),a=!e.isSame(B,"month");if(a&&!g)return P.jsx("td",{className:ac},t);const n=t===X,i=ql(e,E.from,Q);return P.jsx("td",{className:yt(ac,i&&nc,"start"===i&&ic,"end"===i&&rc),children:P.jsx(ul,{ref:n?x:void 0,label:e.format("D"),name:e.format(b),dayKey:t,selected:Wl(e,E.from,E.to),range:i,today:e.isSame(T,"day"),outside:a,unavailable:!Hl(e,_,V,m),tabbable:n,onClick:()=>(e=>{var t,a,n,i;if(!Hl(e,_,V,m))return;G(e),e.isSame(B,"month")||J(e);const r=A?Gl(E.from,E.to,e):{from:e,to:e};if(L||D(r),A){return void(null==o||o({from:null!==(a=null===(t=r.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=r.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==o||o(e.toDate())})(e),onKeyDown:t=>ee(t,e),onFocus:()=>(e=>{G(t=>(null==t?void 0:t.isSame(e,"day"))?t:e),Z&&Y(e)})(e),onPointerEnter:()=>(e=>{Z&&Y(e)})(e)})},t)})]},zl(e[0])))})]})]}))}sc.displayName="Calendar";var lc=wt(sc);const cc=Object.assign(lc,{Day:ul}),dc="card-action";function uc(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(dc,a),"data-component":"Card.Action"},n))}uc.displayName="Card.Action";var mc=wt(uc);const pc=e.createContext({}),hc="card-description text-body-medium";function gc(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("p",Object.assign({ref:t,className:yt(hc,a),"data-component":"Card.Description"},n))}gc.displayName="Card.Description";var fc=wt(gc);const vc="card-heading",bc="card-heading-compact";function xc(e,t){const{as:a="h3",className:n,id:i}=e,r=S(e,["as","className","id"]),{titleId:o,layout:s}=C.useContext(pc);return P.jsx(a,Object.assign({ref:t,id:null!=i?i:o,className:yt(vc,"compact"===s&&bc,n),"data-component":"Card.Heading"},r))}xc.displayName="Card.Heading";var yc=wt(xc);const wc="card-icon",Nc="card-icon-tile";function jc(e,t){const{icon:a,className:n,"aria-label":i}=e,r=S(e,["icon","className","aria-label"]),{layout:o}=C.useContext(pc);return P.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:yt(wc,"compact"!==o&&Nc,n),"data-component":"Card.Icon"},r,{children:P.jsx(a,{})}))}jc.displayName="Card.Icon";var kc=wt(jc);const Cc="card-image";function Sc(e,t){const{className:a,alt:n=""}=e,i=S(e,["className","alt"]);return P.jsx("img",Object.assign({ref:t,alt:n,className:yt(Cc,a),"data-component":"Card.Image"},i))}Sc.displayName="Card.Image";var Oc=wt(Sc);const Mc="card-metadata text-body-small";function Tc(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(Mc,a),"data-component":"Card.Metadata"},n))}Tc.displayName="Card.Metadata";var Ac=wt(Tc);const Lc="card-content",Ic=bt("card",{variants:{borderRadius:{medium:"card-radius-medium",large:"card-radius-large"},layout:{default:"",compact:"card-compact"},padding:{none:"card-padding-none",condensed:"card-padding-condensed",normal:"card-padding-normal"}},compoundVariants:[{layout:"compact",padding:"normal",class:"card-compact-padding-normal"}]}),Dc=bt("card-header",{variants:{edgeToEdge:{true:"card-header-edge-to-edge",false:""},layout:{default:"",compact:"card-header-compact"}}}),Ec=bt("card-body",{variants:{layout:{default:"",compact:"card-body-compact"}}});function zc(e,t){var a;const n=e,{as:i="div",className:r,children:o,padding:s="normal",borderRadius:l="large",layout:c="default","aria-label":d,"aria-labelledby":u}=n,m=S(n,["as","className","children","padding","borderRadius","layout","aria-label","aria-labelledby"]),p=Da(),[h]=Qa(o,{icon:kc,image:Oc,heading:yc,description:fc,metadata:Ac,action:mc}),g="section"===i,f=g?p:void 0,v=null!=u?u:g&&!d?f:void 0,b=null!==(a=h.image)&&void 0!==a?a:h.icon,x=Boolean(b||h.heading||h.description||h.metadata||h.action);return 0===C.Children.toArray(o).length?null:P.jsx(pc.Provider,{value:{titleId:f,layout:c},children:P.jsx(i,Object.assign({ref:t,"aria-label":d,"aria-labelledby":v,className:yt(Ic({borderRadius:l,layout:c,padding:s}),r),"data-component":"Card","data-padding":s,"data-border-radius":l,"data-layout":c},m,{children:x?P.jsxs(P.Fragment,{children:[b?P.jsx("div",{className:yt(Dc({edgeToEdge:Boolean(h.image),layout:c})),children:b}):null,P.jsxs("div",{className:yt(Ec({layout:c})),children:[P.jsxs("div",{className:Lc,children:[h.heading,h.description]}),h.metadata]}),h.action]}):o}))})}zc.displayName="Card";var Pc=wt(zc);const Rc=Object.assign(Pc,{Icon:kc,Image:Oc,Heading:yc,Description:fc,Metadata:Ac,Action:mc}),$c=()=>{},Bc=e.createContext({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:$c,previous:$c,next:$c,togglePlaying:$c,slidesId:""}),_c=e.createContext({index:0}),Vc="carousel-indicators",Hc="carousel-indicator",Fc="carousel-indicator-current";function Wc(e,t){const{className:a}=e,n=S(e,["className"]),{index:i,count:r,goTo:o,slidesId:s}=C.useContext(Bc);return 0===r?null:P.jsx("div",Object.assign({ref:t,className:yt(Vc,a),"data-component":"Carousel.Indicators"},n,{children:Array.from({length:r},(e,t)=>{const a=t===i;return P.jsx("button",{type:"button","aria-label":`Slide ${t+1}`,"aria-current":a||void 0,"aria-controls":s||void 0,onClick:()=>o(t,"indicator"),className:yt(Hc,a&&Fc),"data-component":"Carousel.Indicator","data-current":a||void 0},t)})}))}Wc.displayName="Carousel.Indicators";var qc=wt(Wc);function Gc(e,t){const{className:a,onClick:n}=e,i=S(e,["className","onClick"]),{index:r,count:o,loop:s,next:l,slidesId:c}=C.useContext(Bc);return P.jsx(ei,Object.assign({ref:t,icon:Ht,"aria-label":"Next slide","aria-controls":c||void 0,variant:"invisible",disabled:!s&&r>=o-1,onClick:e=>{null==n||n(e),e.defaultPrevented||l()},className:a,"data-component":"Carousel.NextButton"},i))}Gc.displayName="Carousel.NextButton";var Kc=wt(Gc);function Uc(e,t){const{className:a,onClick:n}=e,i=S(e,["className","onClick"]),{isPlaying:r,togglePlaying:o,slidesId:s}=C.useContext(Bc);return P.jsx(ei,Object.assign({ref:t,icon:r?ia:ra,"aria-label":r?"Stop automatic slide show":"Start automatic slide show","aria-controls":s||void 0,variant:"invisible",onClick:e=>{null==n||n(e),e.defaultPrevented||o()},className:a,"data-component":"Carousel.PlayButton","data-playing":r||void 0},i))}Uc.displayName="Carousel.PlayButton";var Yc=wt(Uc);function Zc(e,t){const{className:a,onClick:n}=e,i=S(e,["className","onClick"]),{index:r,loop:o,previous:s,slidesId:l}=C.useContext(Bc);return P.jsx(ei,Object.assign({ref:t,icon:Vt,"aria-label":"Previous slide","aria-controls":l||void 0,variant:"invisible",disabled:!o&&r<=0,onClick:e=>{null==n||n(e),e.defaultPrevented||s()},className:a,"data-component":"Carousel.PreviousButton"},i))}Zc.displayName="Carousel.PreviousButton";var Qc=wt(Zc);const Xc="carousel-controls";function Jc(e,t){const{className:a,children:n}=e,i=S(e,["className","children"]),{autoPlay:r}=C.useContext(Bc),o=C.Children.toArray(n).length>0;return P.jsx("div",Object.assign({ref:t,className:yt(Xc,a),"data-component":"Carousel.Controls"},i,{children:o?n:P.jsxs(P.Fragment,{children:[P.jsx(Qc,{}),P.jsx(qc,{}),P.jsx(Kc,{}),r?P.jsx(Yc,{}):null]})}))}Jc.displayName="Carousel.Controls";var ed=wt(Jc);const td="carousel-slide";function ad(e,t){const{className:a}=e,n=S(e,["className"]),{index:i,count:r}=C.useContext(Bc),{index:o}=C.useContext(_c),s=o===i;return P.jsx("div",Object.assign({ref:t,role:"group","aria-roledescription":"slide","aria-label":`${o+1} of ${r}`,inert:!s,className:yt(td,a),"data-component":"Carousel.Slide","data-current":s||void 0},n))}ad.displayName="Carousel.Slide";var nd=wt(ad);const id="carousel",rd="carousel-viewport",od="carousel-track",sd="motion-safe:[transition:translate_var(--motion-transition-state-change)]",ld=5e3,cd=(e,t,a)=>t<=0?0:a?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function dd(e,t){const a=e,{className:n,children:i,index:r,defaultIndex:o=0,onChange:s,loop:l=!1,autoPlay:c=!1,interval:d=ld}=a,u=S(a,["className","children","index","defaultIndex","onChange","loop","autoPlay","interval"]),m=Da(),p=void 0!==r,[h,g]=C.useState(o),[f,v]=C.useState(c),[b,x]=C.useState(!1),y=C.useRef(s);Oi(()=>{y.current=s},[s]);const w=[],N=[];let j=null;C.Children.forEach(i,e=>{C.isValidElement(e)?e.type!==nd?e.type!==ed||null!==j?N.push(e):j=e:w.push(e):N.push(e)});const k=w.length,O=cd(p?r:h,k,l),M=(e,t)=>{var a;const n=cd(e,k,l);p||g(n),null===(a=y.current)||void 0===a||a.call(y,n,t)};C.useEffect(()=>{if(!f||b||k<2)return;const e=window.setTimeout(()=>{var e;if(!l&&O>=k-1)return void v(!1);const t=cd(O+1,k,l);p||g(t),null===(e=y.current)||void 0===e||e.call(y,t,"auto")},d);return()=>{window.clearTimeout(e)}},[f,b,k,O,d,l,p]);const T={index:O,count:k,loop:l,autoPlay:c,isPlaying:f,goTo:M,previous:()=>M(O-1,"previous"),next:()=>M(O+1,"next"),togglePlaying:()=>v(e=>!e),slidesId:m},A=u,{onMouseEnter:L,onMouseLeave:I,onFocus:D,onBlur:E}=A,z=S(A,["onMouseEnter","onMouseLeave","onFocus","onBlur"]),R=f&&!b;return P.jsx(Bc.Provider,{value:T,children:P.jsxs("section",Object.assign({ref:t,"aria-roledescription":"carousel",className:yt(id,n),onMouseEnter:e=>{null==L||L(e),x(!0)},onMouseLeave:e=>{null==I||I(e),x(!1)},onFocus:e=>{null==D||D(e),x(!0)},onBlur:e=>{null==E||E(e),e.currentTarget.contains(e.relatedTarget)||x(!1)},"data-component":"Carousel","data-count":k,"data-index":O,"data-playing":R||void 0},z,{children:[P.jsx("div",{id:m,className:rd,"aria-live":R?"off":"polite","aria-atomic":"false","data-component":"Carousel.Viewport",children:P.jsx("div",{className:yt(od,sd),style:{"--carousel-index":O},"data-component":"Carousel.Track",children:w.map((e,t)=>{var a;return P.jsx(_c.Provider,{value:{index:t},children:e},null!==(a=e.key)&&void 0!==a?a:t)})})}),null!=j?j:P.jsx(ed,{}),N]}))})}dd.displayName="Carousel";var ud=wt(dd);const md=Object.assign(ud,{Slide:nd,Controls:ed,PreviousButton:Qc,NextButton:Kc,Indicators:qc,PlayButton:Yc}),pd="chart-legend",hd="chart-legend-item",gd="chart-swatch";function fd(e,t){const{series:a,className:n}=e,i=S(e,["series","className"]);return P.jsx("ul",Object.assign({ref:t,className:yt(pd,n),"data-component":"Chart.Legend"},i,{children:a.map(e=>P.jsxs("li",{className:hd,"data-component":"Chart.LegendItem",children:[P.jsx("span",{className:gd,style:{background:e.color},"aria-hidden":"true"}),e.name]},e.key))}))}fd.displayName="Chart.Legend";var vd=wt(fd);const bd=["var(--base-display-color-blue-5)","var(--base-display-color-orange-5)","var(--base-display-color-purple-5)","var(--base-display-color-green-5)","var(--base-display-color-pink-5)"],xd="var(--foreground-color-muted)",yd=(e,t)=>{var a;return null!==(a=null!=t?t:bd[e])&&void 0!==a?a:xd};function wd(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Nd(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function jd(e){let t,a,n;function i(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<0?i=t+1:r=t}while(i<r)}return i}return 2!==e.length?(t=wd,a=(t,a)=>wd(e(t),a),n=(t,a)=>e(t)-a):(t=e===wd||e===Nd?e:kd,a=e,n=e),{left:i,center:function(e,t,a=0,r=e.length){const o=i(e,t,a,r-1);return o>a&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<=0?i=t+1:r=t}while(i<r)}return i}}}function kd(){return 0}const Cd=jd(wd).right;jd(function(e){return null===e?NaN:+e}).center;class Sd extends Map{constructor(e,t=Md){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,a]of e)this.set(t,a)}get(e){return super.get(Od(this,e))}has(e){return super.has(Od(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):(e.set(n,a),a)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},a){const n=t(a);e.has(n)&&(a=e.get(n),e.delete(n));return a}(this,e))}}function Od({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):a}function Md(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Td=Math.sqrt(50),Ad=Math.sqrt(10),Ld=Math.sqrt(2);function Id(e,t,a){const n=(t-e)/Math.max(0,a),i=Math.floor(Math.log10(n)),r=n/Math.pow(10,i),o=r>=Td?10:r>=Ad?5:r>=Ld?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=a&&a<2?Id(e,t,2*a):[s,l,c]}function Dd(e,t,a){return Id(e=+e,t=+t,a=+a)[2]}function Ed(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const zd=Symbol("implicit");function Pd(){var e=new Sd,t=[],a=[],n=zd;function i(i){let r=e.get(i);if(void 0===r){if(n!==zd)return n;e.set(i,r=t.push(i)-1)}return a[r%a.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Sd;for(const n of a)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(a=Array.from(e),i):a.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return Pd(t,a).unknown(n)},Ed.apply(i,arguments),i}function Rd(){var e,t,a=Pd().unknown(void 0),n=a.domain,i=a.range,r=0,o=1,s=!1,l=0,c=0,d=.5;function u(){var a=n().length,u=o<r,m=u?o:r,p=u?r:o;e=(p-m)/Math.max(1,a-l+2*c),s&&(e=Math.floor(e)),m+=(p-m-e*(a-l))*d,t=e*(1-l),s&&(m=Math.round(m),t=Math.round(t));var h=function(e,t,a){e=+e,t=+t,a=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+a;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/a)),r=new Array(i);++n<i;)r[n]=e+n*a;return r}(a).map(function(t){return m+e*t});return i(u?h.reverse():h)}return delete a.unknown,a.domain=function(e){return arguments.length?(n(e),u()):n()},a.range=function(e){return arguments.length?([r,o]=e,r=+r,o=+o,u()):[r,o]},a.rangeRound=function(e){return[r,o]=e,r=+r,o=+o,s=!0,u()},a.bandwidth=function(){return t},a.step=function(){return e},a.round=function(e){return arguments.length?(s=!!e,u()):s},a.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),u()):l},a.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),u()):l},a.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},a.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},a.copy=function(){return Rd(n(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(d)},Ed.apply(u(),arguments)}function $d(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $d(t())},e}function Bd(){return $d(Rd.apply(null,arguments).paddingInner(1))}function _d(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function Vd(e,t){var a=Object.create(e.prototype);for(var n in t)a[n]=t[n];return a}function Hd(){}var Fd=.7,Wd=1/Fd,qd="\\s*([+-]?\\d+)\\s*",Gd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ud=/^#([0-9a-f]{3,8})$/,Yd=new RegExp(`^rgb\\(${qd},${qd},${qd}\\)$`),Zd=new RegExp(`^rgb\\(${Kd},${Kd},${Kd}\\)$`),Qd=new RegExp(`^rgba\\(${qd},${qd},${qd},${Gd}\\)$`),Xd=new RegExp(`^rgba\\(${Kd},${Kd},${Kd},${Gd}\\)$`),Jd=new RegExp(`^hsl\\(${Gd},${Kd},${Kd}\\)$`),eu=new RegExp(`^hsla\\(${Gd},${Kd},${Kd},${Gd}\\)$`),tu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function au(){return this.rgb().formatHex()}function nu(){return this.rgb().formatRgb()}function iu(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=Ud.exec(e))?(a=t[1].length,t=parseInt(t[1],16),6===a?ru(t):3===a?new lu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===a?ou(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===a?ou(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Yd.exec(e))?new lu(t[1],t[2],t[3],1):(t=Zd.exec(e))?new lu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qd.exec(e))?ou(t[1],t[2],t[3],t[4]):(t=Xd.exec(e))?ou(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jd.exec(e))?hu(t[1],t[2]/100,t[3]/100,1):(t=eu.exec(e))?hu(t[1],t[2]/100,t[3]/100,t[4]):tu.hasOwnProperty(e)?ru(tu[e]):"transparent"===e?new lu(NaN,NaN,NaN,0):null}function ru(e){return new lu(e>>16&255,e>>8&255,255&e,1)}function ou(e,t,a,n){return n<=0&&(e=t=a=NaN),new lu(e,t,a,n)}function su(e,t,a,n){return 1===arguments.length?((i=e)instanceof Hd||(i=iu(i)),i?new lu((i=i.rgb()).r,i.g,i.b,i.opacity):new lu):new lu(e,t,a,null==n?1:n);var i}function lu(e,t,a,n){this.r=+e,this.g=+t,this.b=+a,this.opacity=+n}function cu(){return`#${pu(this.r)}${pu(this.g)}${pu(this.b)}`}function du(){const e=uu(this.opacity);return`${1===e?"rgb(":"rgba("}${mu(this.r)}, ${mu(this.g)}, ${mu(this.b)}${1===e?")":`, ${e})`}`}function uu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pu(e){return((e=mu(e))<16?"0":"")+e.toString(16)}function hu(e,t,a,n){return n<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new fu(e,t,a,n)}function gu(e){if(e instanceof fu)return new fu(e.h,e.s,e.l,e.opacity);if(e instanceof Hd||(e=iu(e)),!e)return new fu;if(e instanceof fu)return e;var t=(e=e.rgb()).r/255,a=e.g/255,n=e.b/255,i=Math.min(t,a,n),r=Math.max(t,a,n),o=NaN,s=r-i,l=(r+i)/2;return s?(o=t===r?(a-n)/s+6*(a<n):a===r?(n-t)/s+2:(t-a)/s+4,s/=l<.5?r+i:2-r-i,o*=60):s=l>0&&l<1?0:o,new fu(o,s,l,e.opacity)}function fu(e,t,a,n){this.h=+e,this.s=+t,this.l=+a,this.opacity=+n}function vu(e){return(e=(e||0)%360)<0?e+360:e}function bu(e){return Math.max(0,Math.min(1,e||0))}function xu(e,t,a){return 255*(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)}_d(Hd,iu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gu(this).formatHsl()},formatRgb:nu,toString:nu}),_d(lu,su,Vd(Hd,{brighter(e){return e=null==e?Wd:Math.pow(Wd,e),new lu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Fd:Math.pow(Fd,e),new lu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lu(mu(this.r),mu(this.g),mu(this.b),uu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cu,formatHex:cu,formatHex8:function(){return`#${pu(this.r)}${pu(this.g)}${pu(this.b)}${pu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:du,toString:du})),_d(fu,function(e,t,a,n){return 1===arguments.length?gu(e):new fu(e,t,a,null==n?1:n)},Vd(Hd,{brighter(e){return e=null==e?Wd:Math.pow(Wd,e),new fu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Fd:Math.pow(Fd,e),new fu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,n=a+(a<.5?a:1-a)*t,i=2*a-n;return new lu(xu(e>=240?e-240:e+120,i,n),xu(e,i,n),xu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new fu(vu(this.h),bu(this.s),bu(this.l),uu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=uu(this.opacity);return`${1===e?"hsl(":"hsla("}${vu(this.h)}, ${100*bu(this.s)}%, ${100*bu(this.l)}%${1===e?")":`, ${e})`}`}}));var yu=e=>()=>e;function wu(e){return 1===(e=+e)?Nu:function(t,a){return a-t?function(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(n){return Math.pow(e+n*t,a)}}(t,a,e):yu(isNaN(t)?a:t)}}function Nu(e,t){var a=t-e;return a?function(e,t){return function(a){return e+a*t}}(e,a):yu(isNaN(e)?t:e)}var ju=function e(t){var a=wu(t);function n(e,t){var n=a((e=su(e)).r,(t=su(t)).r),i=a(e.g,t.g),r=a(e.b,t.b),o=Nu(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=r(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function ku(e,t){t||(t=[]);var a,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(r){for(a=0;a<n;++a)i[a]=e[a]*(1-r)+t[a]*r;return i}}function Cu(e,t){var a,n=t?t.length:0,i=e?Math.min(n,e.length):0,r=new Array(i),o=new Array(n);for(a=0;a<i;++a)r[a]=Iu(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(e){for(a=0;a<i;++a)o[a]=r[a](e);return o}}function Su(e,t){var a=new Date;return e=+e,t=+t,function(n){return a.setTime(e*(1-n)+t*n),a}}function Ou(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}function Mu(e,t){var a,n={},i={};for(a in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)a in e?n[a]=Iu(e[a],t[a]):i[a]=t[a];return function(e){for(a in n)i[a]=n[a](e);return i}}var Tu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Au=new RegExp(Tu.source,"g");function Lu(e,t){var a,n,i,r=Tu.lastIndex=Au.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(a=Tu.exec(e))&&(n=Au.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(a=a[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Ou(a,n)})),r=Au.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var a,n=0;n<t;++n)s[(a=l[n]).i]=a.x(e);return s.join("")})}function Iu(e,t){var a,n=typeof t;return null==t||"boolean"===n?yu(t):("number"===n?Ou:"string"===n?(a=iu(t))?(t=a,ju):Lu:t instanceof iu?ju:t instanceof Date?Su:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?ku:Array.isArray(t)?Cu:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Mu:Ou)(e,t)}function Du(e,t){return e=+e,t=+t,function(a){return Math.round(e*(1-a)+t*a)}}function Eu(e){return+e}var zu=[0,1];function Pu(e){return e}function Ru(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function $u(e,t,a){var n=e[0],i=e[1],r=t[0],o=t[1];return i<n?(n=Ru(i,n),r=a(o,r)):(n=Ru(n,i),r=a(r,o)),function(e){return r(n(e))}}function Bu(e,t,a){var n=Math.min(e.length,t.length)-1,i=new Array(n),r=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Ru(e[o],e[o+1]),r[o]=a(t[o],t[o+1]);return function(t){var a=Cd(e,t,1,n)-1;return r[a](i[a](t))}}function _u(){var e,t,a,n,i,r,o=zu,s=zu,l=Iu,c=Pu;function d(){var e,t,a,l=Math.min(o.length,s.length);return c!==Pu&&(e=o[0],t=o[l-1],e>t&&(a=e,e=t,t=a),c=function(a){return Math.max(e,Math.min(t,a))}),n=l>2?Bu:$u,i=r=null,u}function u(t){return null==t||isNaN(t=+t)?a:(i||(i=n(o.map(e),s,l)))(e(c(t)))}return u.invert=function(a){return c(t((r||(r=n(s,o.map(e),Ou)))(a)))},u.domain=function(e){return arguments.length?(o=Array.from(e,Eu),d()):o.slice()},u.range=function(e){return arguments.length?(s=Array.from(e),d()):s.slice()},u.rangeRound=function(e){return s=Array.from(e),l=Du,d()},u.clamp=function(e){return arguments.length?(c=!!e||Pu,d()):c!==Pu},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(a=e,u):a},function(a,n){return e=a,t=n,d()}}function Vu(e,t){if(!isFinite(e)||0===e)return null;var a=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,a);return[n.length>1?n[0]+n.slice(2):n,+e.slice(a+1)]}function Hu(e){return(e=Vu(Math.abs(e)))?e[1]:NaN}var Fu,Wu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qu(e){if(!(t=Wu.exec(e)))throw new Error("invalid format: "+e);var t;return new Gu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Gu(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Ku(e,t){var a=Vu(e,t);if(!a)return e+"";var n=a[0],i=a[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}qu.prototype=Gu.prototype,Gu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Uu={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ku(100*e,t),r:Ku,s:function(e,t){var a=Vu(e,t);if(!a)return Fu=void 0,e.toPrecision(t);var n=a[0],i=a[1],r=i-(Fu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return r===o?n:r>o?n+new Array(r-o+1).join("0"):r>0?n.slice(0,r)+"."+n.slice(r):"0."+new Array(1-r).join("0")+Vu(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Yu(e){return e}var Zu,Qu,Xu,Ju=Array.prototype.map,em=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tm(e){var t,a,n=void 0===e.grouping||void 0===e.thousands?Yu:(t=Ju.call(e.grouping,Number),a=e.thousands+"",function(e,n){for(var i=e.length,r=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),r.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return r.reverse().join(a)}),i=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Yu:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Ju.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e,t){var a=(e=qu(e)).fill,u=e.align,m=e.sign,p=e.symbol,h=e.zero,g=e.width,f=e.comma,v=e.precision,b=e.trim,x=e.type;"n"===x?(f=!0,x="g"):Uu[x]||(void 0===v&&(v=12),b=!0,x="g"),(h||"0"===a&&"="===u)&&(h=!0,a="0",u="=");var y=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===p?r:/[%p]/.test(x)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),N=Uu[x],j=/[defgprs%]/.test(x);function k(e){var t,i,r,l=y,p=w;if("c"===x)p=N(e)+p,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:N(Math.abs(e),v),b&&(e=function(e){e:for(var t,a=e.length,n=1,i=-1;n<a;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==m&&(k=!1),l=(k?"("===m?m:c:"-"===m||"("===m?"":m)+l,p=("s"!==x||isNaN(e)||void 0===Fu?"":em[8+Fu/3])+p+(k&&"("===m?")":""),j)for(t=-1,i=e.length;++t<i;)if(48>(r=e.charCodeAt(t))||r>57){p=(46===r?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}f&&!h&&(e=n(e,1/0));var C=l.length+e.length+p.length,S=C<g?new Array(g-C+1).join(a):"";switch(f&&h&&(e=n(S+e,S.length?g-p.length:1/0),S=""),u){case"<":e=l+e+p+S;break;case"=":e=l+S+e+p;break;case"^":e=S.slice(0,C=S.length>>1)+l+e+p+S.slice(C);break;default:e=S+l+e+p}return s(e)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:u,formatPrefix:function(e,t){var a=3*Math.max(-8,Math.min(8,Math.floor(Hu(t)/3))),n=Math.pow(10,-a),i=u(((e=qu(e)).type="f",e),{suffix:em[8+a/3]});return function(e){return i(n*e)}}}}function am(e,t,a,n){var i,r=function(e,t,a){a=+a;const n=(t=+t)<(e=+e),i=n?Dd(t,e,a):Dd(e,t,a);return(n?-1:1)*(i<0?1/-i:i)}(e,t,a);switch((n=qu(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Hu(t)/3)))-Hu(Math.abs(e)))}(r,o))||(n.precision=i),Xu(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hu(t)-Hu(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-Hu(Math.abs(e)))}(r))||(n.precision=i-2*("%"===n.type))}return Qu(n)}function nm(e){var t=e.domain;return e.ticks=function(e){var a=t();return function(e,t,a){if(!((a=+a)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,r,o]=n?Id(t,e,a):Id(e,t,a);if(!(r>=i))return[];const s=r-i+1,l=new Array(s);if(n)if(o<0)for(let e=0;e<s;++e)l[e]=(r-e)/-o;else for(let e=0;e<s;++e)l[e]=(r-e)*o;else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}(a[0],a[a.length-1],null==e?10:e)},e.tickFormat=function(e,a){var n=t();return am(n[0],n[n.length-1],null==e?10:e,a)},e.nice=function(a){null==a&&(a=10);var n,i,r=t(),o=0,s=r.length-1,l=r[o],c=r[s],d=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);d-- >0;){if((i=Dd(l,c,a))===n)return r[o]=l,r[s]=c,t(r);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}n=i}return e},e}function im(){var e=_u()(Pu,Pu);return e.copy=function(){return t=e,im().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},Ed.apply(e,arguments),nm(e)}function rm(e){return function(){return e}}Zu=tm({thousands:",",grouping:[3],currency:["$",""]}),Qu=Zu.format,Xu=Zu.formatPrefix;const om=Math.PI,sm=2*om,lm=1e-6,cm=sm-lm;function dm(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=arguments[t]+e[t]}class um{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?dm:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return dm;const a=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*a)/a+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,a,n){this._append`Q${+e},${+t},${this._x1=+a},${this._y1=+n}`}bezierCurveTo(e,t,a,n,i,r){this._append`C${+e},${+t},${+a},${+n},${this._x1=+i},${this._y1=+r}`}arcTo(e,t,a,n,i){if(e=+e,t=+t,a=+a,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let r=this._x1,o=this._y1,s=a-e,l=n-t,c=r-e,d=o-t,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(u>lm)if(Math.abs(d*s-l*c)>lm&&i){let m=a-r,p=n-o,h=s*s+l*l,g=m*m+p*p,f=Math.sqrt(h),v=Math.sqrt(u),b=i*Math.tan((om-Math.acos((h+u-g)/(2*f*v)))/2),x=b/v,y=b/f;Math.abs(x-1)>lm&&this._append`L${e+x*c},${t+x*d}`,this._append`A${i},${i},0,0,${+(d*m>c*p)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,a,n,i,r){if(e=+e,t=+t,r=!!r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let o=a*Math.cos(n),s=a*Math.sin(n),l=e+o,c=t+s,d=1^r,u=r?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>lm||Math.abs(this._y1-c)>lm)&&this._append`L${l},${c}`,a&&(u<0&&(u=u%sm+sm),u>cm?this._append`A${a},${a},0,1,${d},${e-o},${t-s}A${a},${a},0,1,${d},${this._x1=l},${this._y1=c}`:u>lm&&this._append`A${a},${a},0,${+(u>=om)},${d},${this._x1=e+a*Math.cos(i)},${this._y1=t+a*Math.sin(i)}`)}rect(e,t,a,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${a=+a}v${+n}h${-a}Z`}toString(){return this._}}function mm(e){let t=3;return e.digits=function(a){if(!arguments.length)return t;if(null==a)t=null;else{const e=Math.floor(a);if(!(e>=0))throw new RangeError(`invalid digits: ${a}`);t=e}return e},()=>new um(t)}function pm(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function hm(e){this._context=e}function gm(e){return new hm(e)}function fm(e){return e[0]}function vm(e){return e[1]}function bm(e,t){var a=rm(!0),n=null,i=gm,r=null,o=mm(s);function s(s){var l,c,d,u=(s=pm(s)).length,m=!1;for(null==n&&(r=i(d=o())),l=0;l<=u;++l)!(l<u&&a(c=s[l],l,s))===m&&((m=!m)?r.lineStart():r.lineEnd()),m&&r.point(+e(c,l,s),+t(c,l,s));if(d)return r=null,d+""||null}return e="function"==typeof e?e:void 0===e?fm:rm(e),t="function"==typeof t?t:void 0===t?vm:rm(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:rm(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:rm(+e),s):t},s.defined=function(e){return arguments.length?(a="function"==typeof e?e:rm(!!e),s):a},s.curve=function(e){return arguments.length?(i=e,null!=n&&(r=i(n)),s):i},s.context=function(e){return arguments.length?(null==e?n=r=null:r=i(n=e),s):n},s}function xm(e){return e<0?-1:1}function ym(e,t,a){var n=e._x1-e._x0,i=t-e._x1,r=(e._y1-e._y0)/(n||i<0&&-0),o=(a-e._y1)/(i||n<0&&-0),s=(r*i+o*n)/(n+i);return(xm(r)+xm(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function wm(e,t){var a=e._x1-e._x0;return a?(3*(e._y1-e._y0)/a-t)/2:t}function Nm(e,t,a){var n=e._x0,i=e._y0,r=e._x1,o=e._y1,s=(r-n)/3;e._context.bezierCurveTo(n+s,i+s*t,r-s,o-s*a,r,o)}function jm(e){this._context=e}function km(e){return new jm(e)}hm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},jm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Nm(this,this._t0,wm(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var a=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Nm(this,wm(this,a=ym(this,e,t)),a);break;default:Nm(this,this._t0,a=ym(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=a}}},Object.create(jm.prototype).point=function(e,t){jm.prototype.point.call(this,t,e)};const Cm=8,Sm=8,Om=(e,t)=>{const a=e[t];return"number"==typeof a&&Number.isFinite(a)?a:null},Mm=(e,t)=>im().domain(e).nice().range(t),Tm=(e,t,a,n,i)=>{if(a<=0||n<=0)return"";const r=Math.min(4,a/2,n/2),o=e+a,s=t+n;return`${{top:[`M${e},${s}`,`L${e},${t+r}`,`Q${e},${t} ${e+r},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s}`],bottom:[`M${e},${t}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o-r},${s}`,`Q${o},${s} ${o},${s-r}`,`L${o},${t}`],right:[`M${e},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s-r}`,`Q${o},${s} ${o-r},${s}`,`L${e},${s}`],left:[`M${o},${t}`,`L${e+r},${t}`,`Q${e},${t} ${e},${t+r}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o},${s}`]}[i].join(" ")} Z`},Am=(e,t,a)=>{var n;return null!==(n=bm().defined(e=>null!==e.value).x(e=>e.x).y(e=>{var a;return t(null!==(a=e.value)&&void 0!==a?a:0)}).curve(a?km:gm)(e))&&void 0!==n?n:""},Lm=(e,t,a)=>{var n;return null!==(n=function(e,t,a){var n=null,i=rm(!0),r=null,o=gm,s=null,l=mm(c);function c(c){var d,u,m,p,h,g=(c=pm(c)).length,f=!1,v=new Array(g),b=new Array(g);for(null==r&&(s=o(h=l())),d=0;d<=g;++d){if(!(d<g&&i(p=c[d],d,c))===f)if(f=!f)u=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=u;--m)s.point(v[m],b[m]);s.lineEnd(),s.areaEnd()}f&&(v[d]=+e(p,d,c),b[d]=+t(p,d,c),s.point(n?+n(p,d,c):v[d],a?+a(p,d,c):b[d]))}if(h)return s=null,h+""||null}function d(){return bm().defined(i).curve(o).context(r)}return e="function"==typeof e?e:void 0===e?fm:rm(+e),t="function"==typeof t?t:rm(void 0===t?0:+t),a="function"==typeof a?a:void 0===a?vm:rm(+a),c.x=function(t){return arguments.length?(e="function"==typeof t?t:rm(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:rm(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:rm(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:rm(+e),a=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:rm(+e),c):t},c.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:rm(+e),c):a},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(a)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:rm(!!e),c):i},c.curve=function(e){return arguments.length?(o=e,null!=r&&(s=o(r)),c):o},c.context=function(e){return arguments.length?(null==e?r=s=null:s=o(r=e),c):r},c}().defined(e=>null!==e.value).x(e=>e.x).y0(e=>t(e.start)).y1(e=>{var a,n;return t((null!==(a=e.start)&&void 0!==a?a:0)+(null!==(n=e.value)&&void 0!==n?n:0))}).curve(a?km:gm)(e))&&void 0!==n?n:""},Im="chart-tooltip",Dm="chart-tooltip-label",Em="chart-tooltip-row",zm="chart-swatch",Pm="chart-tooltip-name",Rm="chart-tooltip-value";function $m(e,t){const{reading:a,valueFormat:n,labelFormat:i,className:r}=e,o=S(e,["reading","valueFormat","labelFormat","className"]);return P.jsxs("div",Object.assign({ref:t,className:yt(Im,r),"data-component":"Chart.Tooltip"},o,{children:[P.jsx("div",{className:Dm,children:i(a.label)}),a.values.map(({series:e,value:t})=>P.jsxs("div",{className:Em,children:[P.jsx("span",{className:zm,style:{background:e.color},"aria-hidden":"true"}),P.jsx("span",{className:Pm,children:e.name}),P.jsx("span",{className:Rm,children:null===t?"—":n(t)})]},e.key))]}))}$m.displayName="Chart.Tooltip";var Bm=wt($m);const _m="chart",Vm="chart-caption",Hm="chart-title",Fm="chart-description",Wm="chart-plot",qm="chart-svg",Gm="chart-grid",Km="chart-axis",Um="chart-tick",Ym="chart-label",Zm="chart-crosshair",Qm="chart-line",Xm="chart-area",Jm="chart-marker",ep="chart-empty",tp="sr-only",ap=240,np=4,ip=e=>e.toLocaleString();function rp(e,t){var a;const{type:n="line",data:i,xKey:r,series:o,title:s,description:l,stacked:c=!1,horizontal:d=!1,height:u=ap,valueFormat:m=ip,labelFormat:p=e=>e,tickCount:h=np,showGrid:g=!0,showLegend:f,smooth:v=!1,emptyText:b="No data to show",className:x}=e,y=S(e,["type","data","xKey","series","title","description","stacked","horizontal","height","valueFormat","labelFormat","tickCount","showGrid","showLegend","smooth","emptyText","className"]),w=Da(),N=Da(),j=C.useRef(null),k=((e,t)=>{const[a,n]=C.useState(t);return Oi(()=>{const a=e.current;if(!a)return;const i=()=>{const e=a.getBoundingClientRect().width;n(e>0?e:t)};if(i(),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(i);return r.observe(a),()=>{r.disconnect()}},[e,t]),a})(j,480),[O,M]=C.useState(null),T=o.map((e,t)=>{var a;return Object.assign(Object.assign({},e),{name:null!==(a=e.name)&&void 0!==a?a:e.key,color:yd(t,e.color)})}),A="bar"===n,L=A&&d,I=c&&(A||"area"===n),D=0===i.length||0===T.length,E=i.map(e=>((e,t)=>{var a;return String(null!==(a=e[t])&&void 0!==a?a:"")})(e,r)),z=((e,t,a)=>e.map(e=>{let n=0;return t.map(t=>{const i=Om(e,t.key);if(null===i)return{value:null,start:0,end:0};const r=a?n:0;return n=a?n+i:n,{value:i,start:r,end:r+i}})}))(i,T,I),R=((e,t)=>{const a=e.flat().filter(e=>null!==e.value).flatMap(e=>[e.start,e.end]),n="line"===t?a:[...a,0];if(0===n.length)return[0,1];const i=Math.min(...n),r=Math.max(...n);return i===r?[Math.min(i,0),0===r?1:r]:[i,r]})(z,n),$=Mm(R,[0,1]).ticks(h),B=Math.max(...$.map(e=>m(e).length),1),_=Math.max(...E.map(e=>p(e).length),1),V=7*B+12,H=Math.min(7*_+12,160),F=L?H:V,W=Math.max(k-F-Sm,0),q=Math.max(u-Cm-24,0),G=A?((e,t)=>Rd().domain(e).range([0,t]).paddingInner(.3).paddingOuter(.15))(E,L?q:W):((e,t)=>Bd().domain(e).range([0,t]).padding(.5))(E,W),K=Mm(R,L?[0,W]:[q,0]),U=e=>{var t,a;const n=G(E[e]);return(null!=n?n:0)+(A?(null!==(a=null===(t=G.bandwidth)||void 0===t?void 0:t.call(G))&&void 0!==a?a:0)/2:0)},Y=i.map((e,t)=>({index:t,label:E[t],values:T.map(t=>({series:t,value:Om(e,t.key)}))})),Z=null===O?null:null!==(a=Y[O])&&void 0!==a?a:null,Q=null!=f?f:T.length>1,X=K(0),J=T.map((e,t)=>{var a,r;if(A){const n=null!==(r=null===(a=G.bandwidth)||void 0===a?void 0:a.call(G))&&void 0!==r?r:0,{offset:o,thickness:s}=((e,t,a,n)=>{if(!n){const t=Math.min(e,24);return{offset:(e-t)/2,thickness:t}}const i=(e-2*(t-1))/t,r=Math.max(Math.min(i,24),1);return{offset:(e-(r*t+2*(t-1)))/2+a*(r+2),thickness:r}})(n,T.length,t,!I&&T.length>1);return P.jsx("g",{"data-component":"Chart.Series","data-series":e.key,children:i.map((a,n)=>{var i;const{value:r,start:l,end:c}=z[n][t];if(null===r)return null;const d=K(l),u=K(c),m=(null!==(i=G(E[n]))&&void 0!==i?i:0)+o,p=I&&t>0?2:0,h=L?Tm(Math.min(d,u)+p,m,Math.abs(u-d)-p,s,r<0?"left":"right"):Tm(m,Math.min(d,u),s,Math.abs(u-d)-p,r<0?"bottom":"top");return P.jsx("path",{d:h,fill:e.color,opacity:null===O||O===n?1:.5,"data-component":"Chart.Bar"},E[n])})},e.key)}const o=i.map((e,a)=>({x:U(a),value:z[a][t].value,start:z[a][t].start}));return P.jsxs("g",{"data-component":"Chart.Series","data-series":e.key,children:["area"===n?P.jsx("path",{d:Lm(o,K,v),fill:e.color,className:Xm,"data-component":"Chart.Area"}):null,P.jsx("path",{d:Am("area"===n?o.map(e=>Object.assign(Object.assign({},e),{value:null===e.value?null:e.start+e.value})):o,K,v),stroke:e.color,className:Qm,"data-component":"Chart.Line"}),o.map((t,a)=>null===t.value||null!==O&&O!==a?null:P.jsx("circle",{cx:t.x,cy:K("area"===n?t.start+t.value:t.value),r:4,fill:e.color,className:Jm,opacity:O===a||i.length<=12?1:0,"data-component":"Chart.Marker"},E[a]))]},e.key)});return P.jsxs("figure",Object.assign({ref:t,className:yt(_m,x),"data-component":"Chart","data-type":n},y,{children:[s||l?P.jsxs("figcaption",{className:Vm,"data-component":"Chart.Caption",children:[s?P.jsx("span",{id:w,className:Hm,children:s}):null,l?P.jsx("span",{id:N,className:Fm,children:l}):null]}):null,Q&&!D?P.jsx(vd,{series:T}):null,P.jsxs("div",{ref:j,className:Wm,style:{height:`${u}px`},tabIndex:D?void 0:0,role:D?void 0:"img","aria-labelledby":s?w:void 0,"aria-describedby":l?N:void 0,onPointerMove:D?void 0:e=>{const t=e.currentTarget.getBoundingClientRect(),a=L?e.clientY-t.top-Cm:e.clientX-t.left-F;M((e=>{if(0===i.length)return null;if(A){const t=(L?q:W)/i.length;return Math.min(Math.max(Math.floor(e/t),0),i.length-1)}let t=0;return i.forEach((a,n)=>{Math.abs(U(n)-e)<Math.abs(U(t)-e)&&(t=n)}),t})(a))},onPointerLeave:()=>M(null),onKeyDown:D?void 0:e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0!==t&&0!==i.length&&(e.preventDefault(),M(e=>{const a=(null!=e?e:t>0?-1:i.length)+t;return Math.min(Math.max(a,0),i.length-1)}))},onBlur:()=>M(null),"data-component":"Chart.Plot",children:[D?P.jsx("div",{className:ep,style:{height:`${u}px`},children:b}):P.jsx("svg",{width:k,height:u,className:qm,"aria-hidden":"true",focusable:"false","data-component":"Chart.Canvas",children:P.jsxs("g",{transform:`translate(${F}, ${Cm})`,children:[g?$.map(e=>P.jsx("line",{x1:L?K(e):0,x2:L?K(e):W,y1:L?0:K(e),y2:L?q:K(e),className:Gm,"data-component":"Chart.GridLine"},e)):null,P.jsx("line",{x1:L?X:0,x2:L?X:W,y1:L?0:X,y2:L?q:X,className:Km,"data-component":"Chart.Baseline"}),Z?P.jsx("line",{x1:L?0:U(Z.index),x2:L?W:U(Z.index),y1:L?U(Z.index):0,y2:L?U(Z.index):q,className:Zm,"data-component":"Chart.Crosshair"}):null,J,$.map(e=>P.jsx("text",{x:L?K(e):-6,y:L?q+12:K(e),textAnchor:L?"middle":"end",dominantBaseline:L?"hanging":"middle",className:Um,"data-component":"Chart.Tick",children:m(e)},e)),E.map((e,t)=>P.jsx("text",{x:L?-6:U(t),y:L?U(t):q+12,textAnchor:L?"end":"middle",dominantBaseline:L?"middle":"hanging",className:Ym,"data-component":"Chart.Label",children:p(e)},e))]})}),Z?P.jsx(Bm,{reading:Z,valueFormat:m,labelFormat:p,style:{left:L?F+W/2:F+U(Z.index)}}):null]}),P.jsxs("table",{className:tp,"aria-labelledby":s?w:void 0,"data-component":"Chart.Table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{scope:"col",children:r}),T.map(e=>P.jsx("th",{scope:"col",children:e.name},e.key))]})}),P.jsx("tbody",{children:Y.map(e=>P.jsxs("tr",{children:[P.jsx("th",{scope:"row",children:p(e.label)}),e.values.map(({series:e,value:t})=>P.jsx("td",{children:null===t?"—":m(t)},e.key))]},e.label))})]}),P.jsx("span",{role:"status","aria-live":"polite",className:tp,children:Z?`${p(Z.label)}: ${Z.values.map(({series:e,value:t})=>`${e.name} ${null===t?"no value":m(t)}`).join(", ")}`:""})]}))}rp.displayName="Chart";var op=wt(rp);const sp=Object.assign(op,{Legend:vd,Tooltip:Bm}),lp=e.createContext({}),cp='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")',dp='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")',up="checkbox",mp="checkbox-mark",pp="checkbox-checked",hp="checkbox-disabled";function gp(e,t){const{className:a,style:n,checked:i,indeterminate:r,required:o,validationStatus:s,value:l,onChange:c}=e,d=S(e,["className","style","checked","indeterminate","required","validationStatus","value","onChange"]),u=C.useRef(null),m=H(t,u),p=C.useContext(lp);Oi(()=>{u.current&&(u.current.indeterminate=null!=r&&r)},[r,i]);return P.jsx("input",Object.assign({ref:m,type:"checkbox",checked:(!r||void 0===i)&&i,required:o,value:l,name:l,"aria-checked":r?"mixed":void 0,"aria-required":!!o||void 0,"aria-invalid":"error"===s||void 0,onChange:e=>{var t;null===(t=p.onChange)||void 0===t||t.call(p,e),null==c||c(e)},className:yt(up,mp,pp,hp,a),style:Object.assign(Object.assign({},n),{"--checkbox-mark":r?dp:cp}),"data-component":"Checkbox"},d))}gp.displayName="Checkbox";var fp=wt(gp);const vp="checkbox-group-caption";function bp(e,t){const{className:a}=e,n=S(e,["className"]),{captionId:i}=C.useContext(lp);return P.jsx("span",Object.assign({ref:t,id:i,className:yt(vp,a),"data-component":"CheckboxGroup.Caption"},n))}bp.displayName="CheckboxGroup.Caption";var xp=wt(bp);const yp="checkbox-group-label",wp="checkbox-group-label-disabled",Np="sr-only",jp="checkbox-group-label-required";function kp(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=S(e,["className","children","visuallyHidden"]),{disabled:o,required:s}=C.useContext(lp);return P.jsxs("span",Object.assign({ref:t,title:s?"required field":void 0,className:yt(yp,o&&wp,i&&Np,a),"data-component":"CheckboxGroup.Label","data-label-disabled":o},r,{children:[n,s?P.jsx("span",{className:jp,children:"*"}):null]}))}kp.displayName="CheckboxGroup.Label";var Cp=wt(kp);const Sp={success:$t,error:Zt},Op="checkbox-group-validation-icon",Mp=bt("checkbox-group-validation",{variants:{variant:{success:"checkbox-group-validation-success",error:"checkbox-group-validation-error"}}});function Tp(e,t){const{className:a,children:n,variant:i}=e,r=S(e,["className","children","variant"]),{validationMessageId:o}=C.useContext(lp),s=Sp[i];return P.jsxs("span",Object.assign({ref:t,className:yt(Mp({variant:i}),a),"data-component":"CheckboxGroup.Validation","data-validation-status":i},r,{children:[P.jsx(s,{className:Op,"aria-hidden":"true"}),P.jsx("span",{id:o,children:n})]}))}Tp.displayName="CheckboxGroup.Validation";var Ap=wt(Tp);const Lp="checkbox-group",Ip="checkbox-group-legend",Dp="checkbox-group-legend-visible",Ep="checkbox-group-body",zp="checkbox-group-validation-slot",Pp="sr-only";function Rp(e,t){const a=e,{as:n="fieldset",className:i,children:r,disabled:o,required:s,onChange:l,id:c,"aria-labelledby":d}=a,u=S(a,["as","className","children","disabled","required","onChange","id","aria-labelledby"]),[m,p]=Qa(r,{label:Cp,caption:xp,validation:Ap}),h=Da(c),g=m.caption?`${h}-caption`:void 0,f=m.validation?`${h}-validation`:void 0,[v,b]=C.useState(()=>(e=>{const t=[],a=e=>{C.Children.forEach(e,e=>{if(C.isValidElement(e)){if(e.type===fp){const{checked:a,defaultChecked:n,value:i}=e.props;return void((a||n)&&i&&t.push(i))}a(e.props.children)}})};return a(e),t})(r)),x=!!C.isValidElement(m.label)&&!m.label.props.visuallyHidden,y={disabled:o,required:s,captionId:g,validationMessageId:f,onChange:e=>{const{value:t,checked:a}=e.currentTarget,n=a?[...v,t]:v.filter(e=>e!==t);b(n),null==l||l(n,e)}};return P.jsx(lp.Provider,{value:y,children:P.jsxs(n,Object.assign({ref:t,id:h,disabled:o,"aria-labelledby":m.label?void 0:d,"aria-describedby":[f,g].filter(Boolean).join(" ")||void 0,className:yt(Lp,i),"data-component":"CheckboxGroup","data-disabled":o,"data-required":s},u,{children:[m.label?P.jsxs("legend",{className:yt(Ip,x&&Dp),children:[m.label,s?P.jsx("span",{className:Pp,children:", required"}):null,m.caption]}):m.caption,P.jsx("div",{className:Ep,children:p}),m.validation?P.jsx("div",{className:zp,children:m.validation}):null]}))})}Rp.displayName="CheckboxGroup";var $p=wt(Rp);const Bp=Object.assign($p,{Label:Cp,Caption:xp,Validation:Ap}),_p="code";function Vp(e,t){const a=e,{as:n="code",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(_p,i),"data-component":"Code"},r))}Vp.displayName="Code";var Hp=wt(Vp);const Fp=e.createContext({}),Wp="text",qp="github-light",Gp="github-dark",Kp=e=>e.split("\n").map(e=>e.length>0?[{content:e}]:[]),Up={root:"code-block",numbered:"code-block-numbered",wrap:"code-block-wrap",nowrap:"code-block-nowrap"};function Yp(e,t){const a=e,{as:n="div",className:i,language:r=Wp,lightTheme:o=qp,darkTheme:s=Gp,showLineNumbers:l=!1,wrap:c="nowrap"}=a,d=S(a,["as","className","language","lightTheme","darkTheme","showLineNumbers","wrap"]),u={language:r,lightTheme:o,darkTheme:s,showLineNumbers:l,wrap:c};return P.jsx(Fp.Provider,{value:u,children:P.jsx(n,Object.assign({ref:t,className:yt(Up.root,l&&Up.numbered,Up[c],i),"data-component":"CodeBlock","data-language":r},d))})}Yp.displayName="CodeBlock";var Zp=wt(Yp);const Qp="code-block-pre",Xp="code-block-code",Jp="code-block-line",eh="code-block-token";function th(e,t){const{className:a,children:i="",language:r}=e,o=S(e,["className","children","language"]),{language:s=Wp,lightTheme:l=qp,darkTheme:c=Gp}=C.useContext(Fp),d=null!=r?r:s,u=i.replace(/\n$/,""),[m,p]=C.useState(null);C.useEffect(()=>{let e=!1;var t,a;return(t=u,a={language:d,lightTheme:l,darkTheme:c},O(void 0,void 0,void 0,function*(){const{tokens:e}=yield n.codeToTokens(t,{lang:a.language,themes:{light:a.lightTheme,dark:a.darkTheme},defaultColor:!1});return e.map(e=>e.map(e=>({content:e.content,style:e.htmlStyle})))})).then(t=>{e||p({source:u,lines:t})}).catch(()=>{e||p({source:u,lines:Kp(u)})}),()=>{e=!0}},[u,d,l,c]);const h=(null==m?void 0:m.source)===u,g=h?m.lines:Kp(u);return P.jsx("pre",Object.assign({ref:t,className:yt(Qp,a),"data-component":"CodeBlock.Code","data-language":d,"data-highlighted":h},o,{children:P.jsx("code",{className:Xp,children:g.map((e,t)=>P.jsxs(C.Fragment,{children:[t>0?"\n":null,P.jsx("span",{className:Jp,children:e.map((e,t)=>P.jsx("span",{className:eh,style:e.style,children:e.content},t))})]},t))})}))}th.displayName="CodeBlock.Code";var ah=wt(th);const nh=t=>{const[a,n]=e.useState(!1);return e.useEffect(()=>{if(null===t.current)return;const e=new ResizeObserver(e=>{for(const t of e)if(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth){n(!0);break}});return e.observe(t.current),()=>{e.disconnect()}},[t]),a},ih="code-block-content";function rh(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]),o=C.useRef(null),s=H(t,o),l=nh(o);return P.jsx(n,Object.assign({ref:s,tabIndex:l?0:void 0,className:yt(ih,i),"data-component":"CodeBlock.Content"},r))}rh.displayName="CodeBlock.Content";var oh=wt(rh);const sh="code-block-header";function lh(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(sh,i),"data-component":"CodeBlock.Header"},r))}lh.displayName="CodeBlock.Header";var ch=wt(lh);const dh="code-block-title";function uh(e,t){const a=e,{as:n="span",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(dh,i),"data-component":"CodeBlock.Title"},r))}uh.displayName="CodeBlock.Title";var mh=wt(uh);const ph=Object.assign(Zp,{Header:ch,Title:mh,Content:oh,Code:ah}),hh=e.createContext({}),gh="block";function fh(e,t){const a=e,{as:n="div",className:i,open:r,defaultOpen:o,disabled:s,onChange:l}=a,c=S(a,["as","className","open","defaultOpen","disabled","onChange"]),d=Da(),u=void 0!==r,[m,p]=C.useState(Boolean(o)),h=u?r:m,g={triggerId:`${d}-trigger`,contentId:`${d}-content`,isOpen:h,disabled:Boolean(s),toggle:()=>{if(s)return;const e=!h;u||p(e),null==l||l(e)}};return P.jsx(hh.Provider,{value:g,children:P.jsx(n,Object.assign({ref:t,className:yt(gh,i),"data-component":"Collapsible","data-open":h,"data-disabled":Boolean(s)},c))})}fh.displayName="Collapsible";var vh=wt(fh);const bh="collapsible-content",xh="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function yh(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]),{contentId:o,isOpen:s}=C.useContext(hh);return P.jsx(n,Object.assign({ref:t,id:o,hidden:!s,className:yt(bh,s&&xh,i),"data-component":"Collapsible.Content","data-open":Boolean(s)},r))}yh.displayName="Collapsible.Content";var wh=wt(yh);const Nh="collapsible-trigger",jh="collapsible-trigger-disabled",kh="min-w-0 grow",Ch="min-w-0",Sh="collapsible-trigger-indicator",Oh="rotate-180",Mh="-rotate-90",Th="rotate-0";function Ah(e,t){const{className:a,children:n,indicator:i="end",onClick:r}=e,o=S(e,["className","children","indicator","onClick"]),{triggerId:s,contentId:l,isOpen:c,disabled:d,toggle:u}=C.useContext(hh),m="none"===i?null:P.jsx(_t,{className:yt(Sh,"start"===i?c?Th:Mh:c&&Oh),"aria-hidden":"true"});return P.jsxs("button",Object.assign({ref:t,type:"button",id:s,className:yt(Nh,d&&jh,a),onClick:e=>{null==r||r(e),e.defaultPrevented||null==u||u()},disabled:d,"aria-expanded":Boolean(c),"aria-controls":l,"data-component":"Collapsible.Trigger","data-open":Boolean(c),"data-indicator":i},o,{children:["start"===i?m:null,P.jsx("span",{className:"end"===i?kh:Ch,children:n}),"end"===i?m:null]}))}Ah.displayName="Collapsible.Trigger";var Lh=wt(Ah);const Ih=Object.assign(vh,{Trigger:Lh,Content:wh}),Dh=(e,t)=>{if(e===t)return 1;if(e.startsWith(t))return.9;const a=e.indexOf(t);return a>0?/\s|[-_/]/.test(e[a-1])?.8:.6:((e,t)=>{let a=0,n=0;for(const i of t){const t=e.indexOf(i,a);if(-1===t)return 0;n+=t-a,a=t+1}return Math.max(.5-.01*n,.1)})(e,t)},Eh=(e,t,a=[])=>{const n=t.trim().toLowerCase();return""===n?1:[e,...a].map(e=>Dh(e.trim().toLowerCase(),n)).reduce((e,t)=>Math.max(e,t),0)},zh=e.createContext(null),Ph=e.createContext(null),Rh="command-palette",$h="sr-only";function Bh(e,t){var a,n;const{search:i,defaultSearch:r="",onSearchChange:o,value:s,defaultValue:l="",onValueChange:c,onSelect:d,filter:u=Eh,shouldFilter:m=!0,loop:p=!1,label:h="Command palette",className:g,children:f}=e,v=S(e,["search","defaultSearch","onSearchChange","value","defaultValue","onValueChange","onSelect","filter","shouldFilter","loop","label","className","children"]),b=Da(),x=Da(),y=void 0!==i,[w,N]=C.useState(r),j=y?i:w,k=void 0!==s,[O,M]=C.useState(l),T=k?s:O,[A,L]=C.useState([]),I=C.useCallback(e=>{L(t=>[...t.filter(t=>t.value!==e.value),e])},[]),D=C.useCallback(e=>{L(t=>t.filter(t=>t.value!==e))},[]),E=C.useMemo(()=>{const e={};for(const t of A)e[t.value]=m?u(t.value,j,t.keywords):1;return e},[A,u,j,m]),z=C.useMemo(()=>((e,t)=>e.map((e,t)=>({entry:e,index:t})).filter(({entry:e})=>{var a;return e.forceMount||(null!==(a=t[e.value])&&void 0!==a?a:0)>0}).sort((e,a)=>{var n,i;const r=(null!==(n=t[a.entry.value])&&void 0!==n?n:0)-(null!==(i=t[e.entry.value])&&void 0!==i?i:0);return 0===r?e.index-a.index:r}).map(({entry:e})=>e.value))(A,E),[A,E]),R=C.useMemo(()=>z.filter(e=>{var t;return!(null===(t=A.find(t=>t.value===e))||void 0===t?void 0:t.disabled)}),[A,z]),$=R.includes(T)?T:null!==(a=R[0])&&void 0!==a?a:"",B=null===(n=A.find(e=>e.value===$))||void 0===n?void 0:n.id,_=C.useCallback(e=>{k||M(e),null==c||c(e)},[k,c]),V=C.useRef($);C.useEffect(()=>{V.current!==$&&(V.current=$,null==c||c($))},[c,$]);const H=C.useCallback(e=>{y||N(e),null==o||o(e)},[y,o]),F=C.useCallback(e=>{null==d||d(e)},[d]),W=C.useMemo(()=>({search:j,setSearch:H,value:$,activeId:B,setValue:_,order:z,entries:A,scores:E,register:I,unregister:D,onSelect:F,listId:b,labelId:x,shouldFilter:m}),[B,A,F,x,b,z,I,E,j,H,_,m,D,$]);return P.jsx(zh.Provider,{value:W,children:P.jsxs("div",Object.assign({ref:t,className:yt(Rh,g),onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey))return"ArrowDown"===e.key||"ArrowUp"===e.key?(e.preventDefault(),void(e=>{if(0===R.length)return;const t=R.indexOf($)+e,a=p?(t+R.length)%R.length:Math.min(Math.max(t,0),R.length-1);_(R[a])})("ArrowDown"===e.key?1:-1)):void("Enter"===e.key&&""!==$&&(e.preventDefault(),F($)))},"data-component":"CommandPalette"},v,{children:[P.jsx("span",{id:x,className:$h,children:h}),f]}))})}Bh.displayName="CommandPalette";var _h=wt(Bh);let Vh=0,Hh="",Fh="";const Wh=t=>{e.useEffect(()=>{if(!t){if(Vh++,1===Vh){const e=window.innerWidth-document.body.clientWidth;Hh=document.body.style.overflow,Fh=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-scroll-locked","")}return()=>{Vh--,0===Vh&&(document.body.style.overflow=Hh,document.body.style.paddingRight=Fh,document.body.removeAttribute("data-scroll-locked"))}}},[t])},qh="command-palette-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",Gh="command-palette-panel motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-short";function Kh(e,t){var a;const{open:n,onOpenChange:i,returnFocusRef:r,overlayClassName:o,className:s,children:l}=e,c=S(e,["open","onOpenChange","returnFocusRef","overlayClassName","className","children"]),d=C.useRef(null);return Si({containerRef:d,returnFocusRef:r,disabled:!n}),Ai(e=>{n&&(e.preventDefault(),i(!1))}),Wh(!n),n?P.jsx(_i,{children:P.jsx("div",{className:yt(qh,o),onMouseDown:e=>{e.target===e.currentTarget&&i(!1)},"data-component":"CommandPalette.Backdrop",children:P.jsx("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":null!==(a=c.label)&&void 0!==a?a:"Command palette",className:Gh,"data-component":"CommandPalette.Dialog",children:P.jsx(_h,Object.assign({ref:t,className:s},c,{children:l}))})})}):null}Kh.displayName="CommandPalette.Dialog";var Uh=wt(Kh);const Yh="command-palette-empty";function Zh(e,t){const{className:a,children:n="No results found"}=e,i=S(e,["className","children"]),r=C.useContext(zh);return!r||0===r.entries.length||r.order.length>0?null:P.jsx("div",Object.assign({ref:t,role:"presentation",className:yt(Yh,a),"data-component":"CommandPalette.Empty"},i,{children:n}))}Zh.displayName="CommandPalette.Empty";var Qh=wt(Zh);const Xh="command-palette-group",Jh="command-palette-group-heading",eg="hidden";function tg(e,t){var a;const{heading:n,forceMount:i=!1,className:r,children:o}=e,s=S(e,["heading","forceMount","className","children"]),l=Da(),c=Da(),d=C.useContext(zh),u=C.useMemo(()=>({groupId:l}),[l]),m=(null!==(a=null==d?void 0:d.entries)&&void 0!==a?a:[]).filter(e=>e.groupId===l),p=m.map(e=>{var t;return null!==(t=null==d?void 0:d.order.indexOf(e.value))&&void 0!==t?t:-1}).filter(e=>-1!==e),h=i||0===m.length||p.length>0;return P.jsx(Ph.Provider,{value:u,children:P.jsxs("div",Object.assign({ref:t,role:"group","aria-labelledby":n?c:void 0,className:yt(Xh,!h&&eg,r),style:{order:p.length>0?Math.min(...p):void 0},"data-component":"CommandPalette.Group"},s,{children:[n?P.jsx("div",{id:c,className:Jh,"data-component":"CommandPalette.GroupHeading",children:n}):null,o]}))})}tg.displayName="CommandPalette.Group";var ag=wt(tg);const ng="command-palette-input";function ig(e,t){const{className:a,placeholder:n="Type a command or search"}=e,i=S(e,["className","placeholder"]),r=C.useContext(zh);return r?P.jsx(ao,Object.assign({ref:t,type:"text",size:"large",block:!0,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":r.listId,"aria-labelledby":r.labelId,"aria-activedescendant":r.activeId,autoComplete:"off",leadingVisual:la,placeholder:n,value:r.search,onChange:e=>r.setSearch(e.target.value),className:yt(ng,a),"data-component":"CommandPalette.Input"},i)):null}ig.displayName="CommandPalette.Input";var rg=wt(ig);const og="command-palette-item",sg="command-palette-item-active",lg="command-palette-item-unavailable",cg="hidden";function dg(e,t){var a;const{value:n,keywords:i,disabled:r=!1,forceMount:o=!1,onSelect:s,className:l,children:c,onClick:d,onPointerMove:u}=e,m=S(e,["value","keywords","disabled","forceMount","onSelect","className","children","onClick","onPointerMove"]),p=Da(),h=C.useContext(zh),g=C.useContext(Ph),f=C.useRef(null),v=H(t,f),[b,x]=C.useState(null!=n?n:"");Oi(()=>{var e,t;x(null!=n?n:(null!==(t=null===(e=f.current)||void 0===e?void 0:e.textContent)&&void 0!==t?t:"").trim())},[n,c]);const y=(null!=i?i:[]).join("\0"),w=null==h?void 0:h.register,N=null==h?void 0:h.unregister,j=null==g?void 0:g.groupId;C.useEffect(()=>{if(w&&N&&""!==b)return w({value:b,id:p,keywords:""===y?[]:y.split("\0"),groupId:j,disabled:r,forceMount:o}),()=>{N(b)}},[r,o,j,p,y,w,N,b]);const k=null!==(a=null==h?void 0:h.order.indexOf(b))&&void 0!==a?a:-1,O=(null==h?void 0:h.value)===b&&""!==b,M=!(null!==h&&""!==b&&void 0!==h.scores[b])||-1!==k;C.useEffect(()=>{var e,t;O&&(null===(t=null===(e=f.current)||void 0===e?void 0:e.scrollIntoView)||void 0===t||t.call(e,{block:"nearest"}))},[O]);return P.jsx("div",Object.assign({ref:v,id:p,role:"option","aria-selected":O,"aria-disabled":r||void 0,className:yt(og,O&&sg,r&&lg,!M&&cg,l),style:{order:-1===k?void 0:k},onClick:e=>{null==d||d(e),r||e.defaultPrevented||(null==s||s(b),null==h||h.onSelect(b))},onPointerMove:e=>{null==u||u(e),r||O||null==h||h.setValue(b)},"data-component":"CommandPalette.Item","data-value":b||void 0,"data-active":O||void 0,"data-disabled":r||void 0},m,{children:c}))}dg.displayName="CommandPalette.Item";var ug=wt(dg);const mg="command-palette-list",pg=400;function hg(e,t){const{maxHeight:a=pg,className:n,style:i,children:r}=e,o=S(e,["maxHeight","className","style","children"]),s=C.useContext(zh);return s?P.jsx("div",Object.assign({ref:t,id:s.listId,role:"listbox","aria-labelledby":s.labelId,className:yt(mg,n),style:Object.assign(Object.assign({},i),{maxHeight:`${a}px`}),"data-component":"CommandPalette.List"},o,{children:r})):null}hg.displayName="CommandPalette.List";var gg=wt(hg);const fg="command-palette-loading";function vg(e,t){const{label:a="Loading",className:n,children:i}=e,r=S(e,["label","className","children"]);return P.jsx("div",Object.assign({ref:t,role:"presentation",className:yt(fg,n),"data-component":"CommandPalette.Loading"},r,{children:null!=i?i:P.jsx(zn,{size:"small",srText:a})}))}vg.displayName="CommandPalette.Loading";var bg=wt(vg);const xg="command-palette-separator";function yg(e,t){const{alwaysRender:a=!1,className:n}=e,i=S(e,["alwaysRender","className"]),r=C.useContext(zh);return a||null===r||""===r.search.trim()?P.jsx("div",Object.assign({ref:t,role:"separator",className:yt(xg,n),"data-component":"CommandPalette.Separator"},i)):null}yg.displayName="CommandPalette.Separator";var wg=wt(yg);const Ng=Object.assign(_h,{Dialog:Uh,Input:rg,List:gg,Group:ag,Item:ug,Separator:wg,Empty:Qh,Loading:bg}),jg="scrollable-region";function kg(e,t){const a=e,{as:n="div",className:i,"aria-label":r,"aria-labelledby":o}=a,s=S(a,["as","className","aria-label","aria-labelledby"]),l=C.useRef(null),c=H(t,l),d=nh(l)?{role:"region",tabIndex:0,"aria-label":r,"aria-labelledby":o}:{};return P.jsx(n,Object.assign({ref:c,className:yt(jg,i),"data-component":"ScrollableRegion"},d,s))}kg.displayName="ScrollableRegion";var Cg=wt(kg);const Sg="dialog-body";function Og(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Sg,i),"data-component":"Dialog.Body"},r))}Og.displayName="Dialog.Body";var Mg=wt(Og);const Tg=e.createContext(void 0);function Ag({buttons:e}){var t;const a=C.useContext(Tg),n=e.findIndex(e=>e.autoFocus),i=H(null==a?void 0:a.autoFocusRef,null===(t=e[n])||void 0===t?void 0:t.ref);return P.jsx(P.Fragment,{children:e.map((e,t)=>{const{content:a,buttonType:r="default",autoFocus:o,ref:s}=e,l=S(e,["content","buttonType","autoFocus","ref"]);return P.jsx(Qn,Object.assign({ref:o&&t===n?i:s,variant:"normal"===r?"default":r,"data-component":"Dialog.FooterButton"},l,{children:a}),t)})})}function Lg(e,t){const{onClose:a}=e,n=S(e,["onClose"]);return P.jsx(ei,Object.assign({ref:t,icon:Ut,"aria-label":"Close",variant:"invisible",onClick:a,"data-component":"Dialog.CloseButton"},n))}Ag.displayName="Dialog.Buttons",Lg.displayName="Dialog.CloseButton";var Ig=wt(Lg);const Dg="dialog-footer",Eg="dialog-footer-scroll";function zg(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Dg,Eg,i),"data-component":"Dialog.Footer"},r))}zg.displayName="Dialog.Footer";var Pg=wt(zg);const Rg="dialog-header";function $g(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Rg,i),"data-component":"Dialog.Header"},r))}$g.displayName="Dialog.Header";var Bg=wt($g);const _g="dialog-subtitle";function Vg(e,t){const a=e,{as:n="h2",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(_g,i),"data-component":"Dialog.Subtitle"},r))}Vg.displayName="Dialog.Subtitle";var Hg=wt(Vg);const Fg="dialog-title";function Wg(e,t){const a=e,{as:n="h1",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Fg,i),"data-component":"Dialog.Title"},r))}Wg.displayName="Dialog.Title";var qg=wt(Wg);const Gg={backdrop:"dialog-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropPosition:{center:"dialog-backdrop-center",left:"dialog-backdrop-left",right:"dialog-backdrop-right"},backdropNarrowPosition:{center:"dialog-backdrop-narrow-center",bottom:"dialog-backdrop-narrow-bottom",fullscreen:"dialog-backdrop-narrow-fullscreen"},backdropAlign:{top:"dialog-backdrop-align-top",center:"dialog-backdrop-align-center",bottom:"dialog-backdrop-align-bottom"},backdropNarrowAlign:{top:"dialog-backdrop-narrow-align-top",center:"dialog-backdrop-narrow-align-center",bottom:"dialog-backdrop-narrow-align-bottom"},root:"dialog motion-safe:animate-in motion-safe:duration-short",width:{small:"dialog-width-small",medium:"dialog-width-medium",large:"dialog-width-large",xlarge:"dialog-width-xlarge"},customWidth:"dialog-width-custom",height:{small:"dialog-height-small",large:"dialog-height-large",auto:"dialog-height-auto"},position:{center:"motion-safe:fade-in motion-safe:zoom-in-50",left:"dialog-left motion-safe:slide-in-from-left",right:"dialog-right motion-safe:slide-in-from-right"},narrowPosition:{center:"",bottom:"dialog-narrow-bottom max-medium:motion-safe:zoom-in-100 max-medium:motion-safe:slide-in-from-bottom",fullscreen:"dialog-narrow-fullscreen"},align:{top:"dialog-align-top",center:"",bottom:"dialog-align-bottom"},headerInner:"dialog-header-inner",headerContent:"dialog-header-content",overflowWrapper:"dialog-overflow-wrapper",overflowWrapperBordered:"dialog-overflow-wrapper-bordered"},Kg={narrow:"center",regular:"center"};let Ug=0,Yg="",Zg="";const Qg=e=>"string"==typeof e&&e in Gg.width,Xg=e=>"number"==typeof e?`${e}px`:e,Jg=({title:e,subtitle:t,dialogLabelId:a,dialogDescriptionId:n,onClose:i})=>P.jsx(Bg,{children:P.jsxs("div",{className:Gg.headerInner,children:[P.jsxs("div",{className:Gg.headerContent,children:[P.jsx(qg,{id:a,children:e}),t?P.jsx(Hg,{id:n,children:t}):null]}),P.jsx(Ig,{onClose:()=>i("close-button")})]})}),ef=({children:e})=>P.jsx(Mg,{children:e}),tf=e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(e.defaultPrevented||0===t)return;const a=Array.from(e.currentTarget.querySelectorAll("[data-component='Dialog.FooterButton']:not([disabled])")),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},af=({footerButtons:e})=>e?P.jsx(Pg,{onKeyDown:tf,children:P.jsx(Ag,{buttons:e})}):null;function nf(e,t){var a,n,i,r;const{title:o="Dialog",subtitle:s="",renderHeader:l,renderBody:c,renderFooter:d,footerButtons:u,onClose:m,role:p="dialog",width:h="xlarge",height:g="auto",position:f=Kg,align:v,returnFocusRef:b,initialFocusRef:x,className:y,style:w,children:N}=e,j=S(e,["title","subtitle","renderHeader","renderBody","renderFooter","footerButtons","onClose","role","width","height","position","align","returnFocusRef","initialFocusRef","className","style","children"]),k=Da(),O=Da(),M=C.useRef(null),T=H(t,M),A=C.useRef(null),L=C.useRef(null),I=C.useRef(null),[D,E]=C.useState(!1),[z,R]=C.useState("wrap"),$=nh(L);Si({containerRef:M,initialFocusRef:null!=x?x:I,returnFocusRef:b}),Ai(e=>{m("escape"),e.preventDefault()}),C.useEffect(()=>{if(Ug++,1===Ug){const e=window.innerWidth-document.body.clientWidth;Yg=document.body.style.overflow,Zg=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-dialog-scroll-disabled","")}return()=>{Ug--,0===Ug&&(document.body.style.overflow=Yg,document.body.style.paddingRight=Zg,document.body.removeAttribute("data-dialog-scroll-disabled"))}},[]);const[B,_]=Qa(N,{header:Bg,body:Mg,footer:Pg}),V=Object.assign(Object.assign({},e),{title:o,subtitle:s,role:p,footerButtons:u,dialogLabelId:k,dialogDescriptionId:O}),F=null!==(a=B.header)&&void 0!==a?a:(null!=l?l:Jg)(V),W=null!==(n=B.body)&&void 0!==n?n:(null!=c?c:ef)(Object.assign(Object.assign({},V),{children:_})),q=null!==(i=B.footer)&&void 0!==i?i:(null!=d?d:af)(V),G=Boolean(q),K=C.useCallback(()=>{const e=M.current,t=L.current;if(!G||!e||!t)return;e.setAttribute("data-footer-button-layout","wrap");const a=t.clientHeight>=48?"wrap":"scroll";e.setAttribute("data-footer-button-layout",a),R(a)},[G]);C.useEffect(()=>{const e=A.current;if(!e)return;const t=new ResizeObserver(K);return t.observe(e),()=>{t.disconnect()}},[K]);const U="string"==typeof f?{regular:f}:f,Y=null!==(r=U.regular)&&void 0!==r?r:"center",Z=U.narrow,Q="center"===Y?v:void 0,X=Li("position",U),J=v?{"data-align":v}:void 0;return P.jsx(Tg.Provider,{value:{autoFocusRef:I},children:P.jsx(_i,{children:P.jsx("div",Object.assign({ref:A,className:yt(Gg.backdrop,Gg.backdropPosition[Y],Q&&Gg.backdropAlign[Q],Z&&Gg.backdropNarrowPosition[Z],"center"===Z&&Q&&Gg.backdropNarrowAlign[Q]),onClick:e=>{e.target===e.currentTarget&&D&&m("escape")},onMouseDown:e=>{E(e.target===e.currentTarget)},"data-component":"Dialog.Backdrop"},X,J,{children:P.jsxs("div",Object.assign({ref:T,role:p,"aria-labelledby":k,"aria-describedby":O,"aria-modal":!0,className:yt(Gg.root,Qg(h)?Gg.width[h]:Gg.customWidth,Gg.height[g],Gg.position[Y],Q&&Gg.align[Q],Z&&Gg.narrowPosition[Z],y),style:Object.assign(Object.assign({},w),Qg(h)?{}:{"--dialog-width":Xg(h)}),"data-component":"Dialog","data-width":Qg(h)?h:void 0,"data-height":g,"data-has-footer":G?"":void 0,"data-footer-button-layout":G?z:void 0},X,J,j,{children:[F,P.jsx(Cg,{ref:L,"aria-labelledby":k,className:yt(Gg.overflowWrapper,G&&$&&Gg.overflowWrapperBordered),children:W}),q]}))}))})})}nf.displayName="Dialog";var rf=wt(nf);function of(e,t){const{onClose:a,title:n,cancelButtonContent:i="Cancel",confirmButtonContent:r="OK",confirmButtonType:o="normal",cancelButtonLoading:s=!1,confirmButtonLoading:l=!1,overrideButtonFocus:c,width:d="medium",height:u,className:m,children:p}=e,h=null!=c?c:"danger"===o?"cancel":"confirm",g=[{content:i,onClick:()=>a("cancel"),autoFocus:"cancel"===h,loading:s},{content:r,buttonType:o,onClick:()=>a("confirm"),autoFocus:"confirm"===h,loading:l}];return P.jsx(rf,{ref:t,title:n,onClose:a,footerButtons:g,role:"alertdialog",width:d,height:u,className:m,"data-component":"ConfirmationDialog",children:p})}of.displayName="ConfirmationDialog";var sf=wt(of);const lf=e=>{var{content:t}=e,a=S(e,["content"]);return new Promise(e=>{const n=document.createElement("div");document.body.append(n);const r=i.createRoot(n);r.render(P.jsx(sf,Object.assign({},a,{onClose:t=>{queueMicrotask(()=>{r.unmount(),n.remove()}),e("confirm"===t)},children:t})))})},cf="data-table-wrapper",df=bt("data-table",{variants:{cellPadding:{condensed:"data-table-cell-padding-condensed",normal:"data-table-cell-padding-normal",spacious:"data-table-cell-padding-spacious"}}});function uf(e,t){const{className:a,style:n,cellPadding:i="normal",gridTemplateColumns:r,"aria-labelledby":o}=e,s=S(e,["className","style","cellPadding","gridTemplateColumns","aria-labelledby"]),l=o?{"aria-labelledby":o}:{"aria-label":"Table"};return P.jsx(Cg,Object.assign({},l,{className:cf,children:P.jsx("table",Object.assign({ref:t,role:"table","aria-labelledby":o,className:yt(df({cellPadding:i}),a),style:Object.assign(Object.assign({},n),{"--table-grid-template-columns":r}),"data-component":"Table","data-cell-padding":i},s))}))}uf.displayName="Table";var mf=wt(uf);const pf="data-table-actions";function hf(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(pf,a),"data-component":"Table.Actions"},n))}hf.displayName="Table.Actions";var gf=wt(hf);const ff="data-table-subgrid",vf=e=>(e=>e.map(e=>{var t;const a=null!==(t=e.width)&&void 0!==t?t:"grow";let n="auto",i="1fr";return"auto"===a&&(i="auto"),"grow"!==a||e.maxWidth||(n="max-content"),"growCollapse"===a&&(n="0"),e.minWidth&&(n="number"==typeof e.minWidth?`${e.minWidth}px`:e.minWidth),e.maxWidth&&(i="number"==typeof e.maxWidth?`${e.maxWidth}px`:e.maxWidth),"number"!=typeof a&&["grow","growCollapse","auto"].includes(a)?n===i?n:`minmax(${n}, ${i})`:"number"==typeof a?`${a}px`:a}))(e).join(" ");function bf(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("tbody",Object.assign({ref:t,role:"rowgroup",className:yt(ff,a),"data-component":"Table.Body"},n))}bf.displayName="Table.Body";var xf=wt(bf);const yf="data-table-cell",wf="data-table-cell-end",Nf="data-table-cell-row-header";function jf(e,t){const{className:a,align:n,scope:i}=e,r=S(e,["className","align","scope"]),o=i?"th":"td";return P.jsx(o,Object.assign({ref:t,scope:i,role:i?"rowheader":"cell",className:yt(yf,"end"===n&&wf,i&&Nf,a),"data-component":"Table.Cell","data-cell-align":n},r))}jf.displayName="Table.Cell";var kf=wt(jf);const Cf="data-table-cell-placeholder";function Sf(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(Wr,Object.assign({ref:t,className:yt(Cf,a),"data-component":"Table.CellPlaceholder"},n))}Sf.displayName="Table.CellPlaceholder";var Of=wt(Sf);const Mf="data-table-container",Tf="data-table-container-spacing";function Af(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Mf,Tf,i),"data-component":"Table.Container"},r))}Af.displayName="Table.Container";var Lf=wt(Af);const If="data-table-divider";function Df(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,role:"presentation",className:yt(If,a),"data-component":"Table.Divider"},n))}Df.displayName="Table.Divider";var Ef=wt(Df);function zf(e,t){const{title:a="Error",children:n,onRetry:i,onDismiss:r}=e;return P.jsx(sf,{ref:t,title:a,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{"confirm"!==e?null==r||r():null==i||i()},children:n})}zf.displayName="Table.ErrorDialog";var Pf=wt(zf);function Rf(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("thead",Object.assign({ref:t,role:"rowgroup",className:yt(ff,a),"data-component":"Table.Head"},n))}Rf.displayName="Table.Head";var $f=wt(Rf);const Bf="data-table-header",_f="data-table-header-end",Vf="data-table-header-sorted";function Hf(e,t){const{className:a,align:n}=e,i=S(e,["className","align"]);return P.jsx("th",Object.assign({ref:t,role:"columnheader",scope:"col",className:yt(Bf,Vf,"end"===n&&_f,a),"data-component":"Table.Header","data-cell-align":n},i))}Hf.displayName="Table.Header";var Ff=wt(Hf);const Wf=(e,t,a,n,i)=>{const r={type:"previous",num:t-1,disabled:1===t},o={type:"next",num:t+1,disabled:t===e};if(!a)return[r,o];if(e<=0)return[r,Object.assign(Object.assign({},o),{disabled:!0})];const s=[],l=(e,a,n=!1)=>{for(let i=e;i<=a;i++)s.push({type:"number",num:i,selected:i===t,precedesBreak:i===a&&n})},c=e=>{s.push({type:"break",num:e+1})},d=i+n;if(e<=d+d+3)return l(1,e),[r,...s,o];let u=0,m=0;t-d-1<=1?m=t-d-2:u=t-d-1;let p=0,h=0;e-t-d<=1?h=e-t-d-1:p=e-t-d;const g=u>0,f=p>0;return l(1,n,g),g&&c(n),l(n+u+h+1,e-m-p-n,f),f&&c(e-m-p-n),l(e-n+1,e),[r,...s,o]},qf=(e,t,a)=>{if("break"===e.type)return{key:`page-${e.num}-break`,content:"…",presentational:!0,props:{}};if("number"===e.type)return{key:`page-${e.num}`,content:String(e.num),props:{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,"aria-current":e.selected?"page":void 0,onClick:a}};const n="previous"===e.type?"prev":"next",i="previous"===e.type?"Previous":"Next",r=`page-${n}`;return e.disabled?{key:r,content:i,props:{rel:n,"aria-hidden":!0,"aria-disabled":!0}}:{key:r,content:i,props:{rel:n,href:t(e.num),"aria-label":`${i} Page`,onClick:a}}},Gf=["narrow","regular","wide"],Kf=25,Uf={narrow:!1},Yf={root:"data-table-pagination",range:"data-table-pagination-range",steps:"data-table-pagination-steps",step:"data-table-pagination-step",button:"data-table-pagination-button",truncation:"data-table-pagination-truncation",icon:"data-table-pagination-icon",hiddenRange:{narrow:"data-table-pagination-hidden-range-narrow",regular:"data-table-pagination-hidden-range-regular",wide:"data-table-pagination-hidden-range-wide"},hidden:"sr-only"},Zf=bt([Yf.button,"data-table-pagination-jump"],{variants:{enabled:{true:"data-table-pagination-jump-enabled",false:""}}}),Qf=bt([Yf.button,"data-table-pagination-page"],{variants:{active:{true:"data-table-pagination-page-active",false:""}}}),Xf=({children:e})=>P.jsx("li",{className:Yf.step,"data-component":"Table.Pagination.Step",children:e});function Jf(e,t){const{className:a,totalCount:n,pageSize:i=Kf,defaultPageIndex:r,onChange:o,showPages:s=Uf}=e,l=S(e,["className","totalCount","pageSize","defaultPageIndex","onChange","showPages"]),{pageIndex:c,pageCount:d,pageStart:u,pageEnd:m,hasPreviousPage:p,hasNextPage:h,selectPage:g}=(({defaultPageIndex:e,onChange:t,pageSize:a,totalCount:n})=>{const i=Math.ceil(n/a),r=e=>void 0!==e&&e>=0&&e<i,[o,s]=C.useState(()=>r(e)?e:0),[l,c]=C.useState(o);return r(e)&&o!==e&&(s(e),c(e),null==t||t({pageIndex:e})),{pageIndex:l,pageCount:i,pageStart:l*a,pageEnd:Math.min((l+1)*a,n),hasPreviousPage:l>0,hasNextPage:l+1<i,selectPage:e=>{l!==e&&(c(e),null==t||t({pageIndex:e}))}}})({defaultPageIndex:r,onChange:o,pageSize:i,totalCount:n}),f=C.useMemo(()=>Wf(d,c+1,Boolean(s),1,2),[d,c,s]),v=(e=>"object"==typeof e?Gf.filter(t=>!1===e[t]):e?[]:[...Gf])(s),b=u+1;return P.jsxs("nav",Object.assign({ref:t,className:yt(Yf.root,a),"data-component":"Table.Pagination"},l,{children:[P.jsxs("span",{role:"status","aria-live":"polite",className:Yf.hidden,children:["Showing ",b," through ",m," of ",n]}),P.jsxs("p",{className:Yf.range,"data-component":"Table.Pagination.Range",children:[b,P.jsx("span",{className:Yf.hidden,children:" through "}),P.jsx("span",{"aria-hidden":"true",children:"‒"}),m," of ",n]}),P.jsxs("ol",{className:yt(Yf.steps,v.map(e=>Yf.hiddenRange[e])),"data-hidden-viewport-ranges":v.join(" ")||void 0,children:[P.jsx(Xf,{children:P.jsxs("button",{type:"button",className:yt(Zf({enabled:p})),"data-has-page":p||void 0,"aria-disabled":!p||void 0,onClick:()=>{p&&g(c-1)},"data-component":"Table.Pagination.PreviousPageButton",children:[p?P.jsx(Vt,{className:Yf.icon}):null,P.jsx("span",{children:"Previous"}),P.jsx("span",{className:Yf.hidden,children:" page"})]})}),f.map((e,t)=>"break"===e.type?P.jsx("li",{"aria-hidden":"true",className:Yf.truncation,"data-component":"Table.Pagination.TruncationStep",children:"…"},`break-${t}`):"number"===e.type?P.jsx(Xf,{children:P.jsxs("button",{type:"button",className:yt(Qf({active:e.selected})),"data-active":e.selected||void 0,"aria-current":e.selected||void 0,onClick:()=>g(e.num-1),"data-component":"Table.Pagination.Page",children:[P.jsx("span",{className:Yf.hidden,children:"Page "}),e.num,e.precedesBreak?P.jsx("span",{className:Yf.hidden,children:"…"}):null]})},`page-${e.num}`):null),P.jsx(Xf,{children:P.jsxs("button",{type:"button",className:yt(Zf({enabled:h})),"data-has-page":h||void 0,"aria-disabled":!h||void 0,onClick:()=>{h&&g(c+1)},"data-component":"Table.Pagination.NextPageButton",children:[P.jsx("span",{children:"Next"}),P.jsx("span",{className:Yf.hidden,children:" page"}),h?P.jsx(Ht,{className:Yf.icon}):null]})})]})]}))}Jf.displayName="Table.Pagination";var ev=wt(Jf);function tv(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("tr",Object.assign({ref:t,role:"row",className:yt(ff,a),"data-component":"Table.Row"},n))}tv.displayName="Table.Row";var av=wt(tv);const nv="skeleton-box",iv="motion-safe:shimmer";function rv(e,t){const a=e,{as:n="div",className:i,width:r,height:o,style:s}=a,l=S(a,["as","className","width","height","style"]);return P.jsx(n,Object.assign({ref:t,className:yt(nv,iv,i),style:Object.assign(Object.assign({},s),{"--skeleton-box-width":r,"--skeleton-box-height":o}),"data-component":"SkeletonBox"},l))}rv.displayName="SkeletonBox";var ov=wt(rv);const sv="skeleton-text-wrapper",lv=bt("skeleton-text",{variants:{size:{display:"skeleton-text-display",titleLarge:"skeleton-text-title-large",titleMedium:"skeleton-text-title-medium",titleSmall:"skeleton-text-title-small",bodyLarge:"skeleton-text-body-large",bodyMedium:"skeleton-text-body-medium",bodySmall:"skeleton-text-body-small",subtitle:"skeleton-text-subtitle"},multiline:{true:"skeleton-text-multiline",false:""}}});function cv(e){var{lines:t=1,maxWidth:a,size:n="bodyMedium",className:i,style:r}=e,o=S(e,["lines","maxWidth","size","className","style"]);return t<2?P.jsx(ov,Object.assign({width:"100%",height:"var(--skeleton-text-font-size)",className:yt(lv({size:n}),i),style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-size":n},o,{"data-component":"SkeletonText"})):P.jsx("div",{className:sv,style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-component":"SkeletonText",children:Array.from({length:t},(e,t)=>P.jsx(ov,Object.assign({height:"var(--skeleton-text-font-size)",className:yt(lv({size:n,multiline:!0}),i),"data-size":n},o),t))})}cv.displayName="SkeletonText";const dv="data-table-skeleton-cell",uv="data-table-skeleton-items",mv="data-table-skeleton-item",pv="sr-only",hv=10;function gv(e,t){const{columns:a,cellPadding:n,rows:i=hv}=e,r=S(e,["columns","cellPadding","rows"]);return P.jsxs(mf,Object.assign({ref:t,cellPadding:n,gridTemplateColumns:vf(a),"data-component":"Table.Skeleton"},r,{children:[P.jsx($f,{children:P.jsx(av,{children:a.map((e,t)=>{var a,n;return P.jsx(Ff,{children:"string"==typeof e.header?e.header:e.header()},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})}),P.jsx(xf,{children:P.jsx(av,{children:a.map((e,t)=>{var a,n;return P.jsxs(kf,{className:dv,"data-cell-skeleton":"",children:[P.jsx("span",{className:pv,children:"Loading"}),P.jsx("div",{className:uv,children:Array.from({length:i},(e,t)=>P.jsx("div",{className:mv,"data-cell-skeleton-item":"",children:P.jsx(cv,{})},t))})]},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})})]}))}gv.displayName="Table.Skeleton";var fv=wt(gv);const vv="data-table-sort-header",bv="data-table-sort-header-button",xv="data-table-sort-header-button-end",yv="data-table-sort-header-icon",wv="data-table-sort-header-icon-resting",Nv="sr-only";function jv(e,t){const{className:a,align:n,children:i,direction:r,onToggleSort:o}=e,s=S(e,["className","align","children","direction","onToggleSort"]),l="ASC"===r?"ascending":"DESC"===r?"descending":void 0,c="DESC"===r?It:Dt;return P.jsx(Ff,Object.assign({ref:t,align:n,"aria-sort":l,className:yt(vv,a),"data-component":"Table.SortHeader"},s,{children:P.jsxs("button",{type:"button",onClick:o,className:yt(bv,"end"===n&&xv),"data-component":"Table.SortHeader.Button",children:[i,P.jsx(c,{className:yt(yv,"NONE"===r&&wv),"aria-hidden":"true","data-sort-icon":"DESC"===r?"descending":"ascending"}),"NONE"===r?P.jsx("span",{className:Nv,children:"sort ascending"}):null]})}))}jv.displayName="Table.SortHeader";var kv=wt(jv);const Cv="data-table-subtitle";function Sv(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Cv,i),"data-component":"Table.Subtitle"},r))}Sv.displayName="Table.Subtitle";var Ov=wt(Sv);const Mv="data-table-title";function Tv(e,t){const a=e,{as:n="h2",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(Mv,i),"data-component":"Table.Title"},r))}Tv.displayName="Table.Title";var Av=wt(Tv);const Lv="ASC",Iv=e=>"ASC"===e?"DESC":"ASC",Dv=e=>{const t=[];let a=0;for(;a<e.length;){let n=e[a];if(Ev(n)){for(;a+1<e.length&&Ev(e[a+1]);)n+=e[a+1],a++;t.push(parseInt(n,10))}else{for(;a+1<e.length&&!Ev(e[a+1]);)n+=e[a+1],a++;t.push(n)}a++}return t},Ev=e=>!Number.isNaN(parseInt(e,10)),zv={alphanumeric:(e,t)=>{const a=Dv(e),n=Dv(t);for(;0!==a.length&&0!==n.length;){const e=a.shift(),t=n.shift();if(e!==t){if("string"==typeof e&&"string"==typeof t)return e.localeCompare(t);if("number"==typeof e&&"number"==typeof t)return e>t?1:-1;if("number"==typeof e&&"string"==typeof t)return-1;if("string"==typeof e&&"number"==typeof t)return 1;if(void 0===e||void 0===t)break}}return a.length>n.length?1:-1},basic:(e,t)=>e===t?0:e<t?-1:1,datetime:(e,t)=>{const a=e instanceof Date?e.getTime():e,n=t instanceof Date?t.getTime():t;return a>n?1:a<n?-1:0}},Pv=(e,t)=>{let a=e;for(const e of t.split("."))a=a[e];return a},Rv=e=>null==e||""===e,$v=({columns:e,data:t,initialSortColumn:a,initialSortDirection:n,externalSorting:i,getRowId:r})=>{const[o,s]=C.useState(t),[l,c]=C.useState(t),[d,u]=C.useState(e),[m,p]=C.useState(()=>((e,t,a)=>{var n;const i=e=>void 0!==e.sortBy&&!1!==e.sortBy;if(void 0!==t){const n=e.find(e=>e.id===t||e.field===t);return n&&i(n)?{id:`${t}`,direction:null!=a?a:Lv}:null}if(void 0!==a){const t=e.find(i),r=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null==t?void 0:t.field;return void 0===r?null:{id:r,direction:a}}return null})(e,a,n)),h=vf(e);if(e!==d&&(u(e),m)){e.some(e=>{var t;return(null!==(t=e.id)&&void 0!==t?t:e.field)===m.id})||p(null)}const g=e.map(e=>{var t;const a=null!==(t=e.id)&&void 0!==t?t:e.field;if(void 0===a)throw new Error("Expected either an `id` or a `field` to be given for a Column");const n=void 0!==e.sortBy&&!1!==e.sortBy;return{id:a,column:e,isSortable:()=>n,getSortDirection:()=>m&&m.id===a?m.direction:"NONE"}}),f=e=>{const t=g.find(t=>t.id===e.id);if(!t)throw new Error(`Unable to find a header with the id: ${e.id}`);const{sortBy:a,field:n}=t.column;if(!1===a||void 0===a)throw new Error("The column for this header cannot be sorted");if(i)return;const r="string"==typeof a?zv[a]:zv.basic;s(t=>t.slice().sort((t,i)=>{if("function"==typeof a)return"ASC"===e.direction?a(t,i):a(i,t);if(void 0===n)return 0;const o=Pv(t,n),s=Pv(i,n),l=Rv(o),c=Rv(s);return l||c?l?c?0:1:-1:"ASC"===e.direction?r(o,s):r(s,o)}))};t!==l&&(c(t),s(t),m&&f(m));return{headers:g,rows:o.map(e=>{const t=r(e);return{id:`${t}`,getValue:()=>e,getCells:()=>g.map(a=>{var n;return{id:`${t}:${a.id}`,column:a.column,rowHeader:null!==(n=a.column.rowHeader)&&void 0!==n&&n,getValue:()=>{if(void 0===a.column.field)throw new Error(`Unable to get a value for the column: ${a.id}`);return Pv(e,a.column.field)}}})}}),actions:{sortBy:e=>{const t={id:e.id,direction:m&&m.id===e.id?Iv(m.direction):Lv};p(t),f(t)}},gridTemplateColumns:h}},Bv=e=>"string"==typeof e.header?e.header:e.header(),_v=e=>e.id;function Vv(e,t){const{data:a,columns:n,cellPadding:i,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l=_v,onToggleSort:c,"aria-labelledby":d,"aria-describedby":u}=e,{headers:m,rows:p,actions:h,gridTemplateColumns:g}=$v({data:a,columns:n,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l});return P.jsxs(mf,{ref:t,"aria-labelledby":d,"aria-describedby":u,cellPadding:i,gridTemplateColumns:g,children:[P.jsx($f,{children:P.jsx(av,{children:m.map(e=>e.isSortable()?P.jsx(kv,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{const t="ASC"===e.getSortDirection()?"DESC":"ASC";h.sortBy(e),null==c||c(e.id,t)},children:Bv(e.column)},e.id):P.jsx(Ff,{align:e.column.align,children:Bv(e.column)},e.id))})}),P.jsx(xf,{children:p.map(e=>P.jsx(av,{children:e.getCells().map(t=>P.jsx(kf,{scope:t.rowHeader?"row":void 0,align:t.column.align,children:t.column.renderCell?t.column.renderCell(e.getValue()):t.getValue()},t.id))},e.id))})]})}Vv.displayName="DataTable";var Hv=wt(Vv);const Fv=Object.assign(mf,{Container:Lf,Title:Av,Subtitle:Ov,Actions:gf,Divider:Ef,Skeleton:fv,Head:$f,Body:xf,Header:Ff,SortHeader:kv,Row:av,Cell:kf,CellPlaceholder:Of,Pagination:ev,ErrorDialog:Pf}),Wv="date-picker",qv="date-picker-block",Gv="date-picker-overlay";function Kv(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:o,format:s="YYYY-MM-DD",rangeSeparator:l=" - ",open:c,defaultOpen:d=!1,onOpenChange:u,min:m,max:p,isDateDisabled:h,weekStartsOn:g,fixedWeeks:f=!0,showWeekNumbers:v,monthFormat:b,calendarButtonLabel:x="Choose a date",calendarLabel:y="Choose a date",placeholder:w,disabled:N,block:j,onBlur:k,inputClassName:O,className:M}=a,T=S(a,["mode","value","defaultValue","onChange","format","rangeSeparator","open","defaultOpen","onOpenChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showWeekNumbers","monthFormat","calendarButtonLabel","calendarLabel","placeholder","disabled","block","onBlur","inputClassName","className"]),A=Da(),L=C.useRef(null),I=C.useRef(null),D=H(t,I),E=C.useRef(null),z=El(m),R=El(p),$="range"===n,B=void 0!==i,[_,V]=C.useState(()=>Rl(r,$)),F=B?Rl(i,$):_,W=void 0!==c,[q,G]=C.useState(d),K=W?c:q,[U,Y]=C.useState(null),Z=null!=U?U:(({from:e,to:t})=>null===e?"":$&&null!==t?`${e.format(s)}${l}${t.format(s)}`:e.format(s))(F),Q=(e,t)=>{W||G(e),null==u||u(e,t)},X=e=>{var t,a,n,i,r,s;const l=[e.from,e.to].every(e=>null===e||Hl(e,z,R,h));if(l){if(B||V(e),$){const r=o;return void(null==r||r({from:null!==(a=null===(t=e.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=e.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==o||o(null!==(s=null===(r=e.from)||void 0===r?void 0:r.toDate())&&void 0!==s?s:null)}},J={min:m,max:p,isDateDisabled:h,weekStartsOn:g,fixedWeeks:f,showWeekNumbers:v,monthFormat:b,focusableDayRef:E,"data-component":"DatePicker.Calendar"};return P.jsxs("span",{className:yt(Wv,j&&qv,M),"data-component":"DatePicker","data-open":K,children:[P.jsx("span",{ref:L,className:yt(Wv,j&&qv),"data-component":"DatePicker.Field",children:P.jsx(ao,Object.assign({ref:D,type:"text",value:Z,onChange:e=>{const t=e.target.value;Y(t);const a=(e=>{if(""===e.trim())return Pl;const t=($?e.split(l):[e]).map(e=>Kl(e.trim(),s));if(t.length>2||t.some(e=>null===e))return;const[a,n=null]=t;return $?n&&a.isAfter(n,"day")?{from:n,to:a}:{from:a,to:n}:{from:a,to:a}})(t);a&&X(a)},onBlur:e=>{Y(null),null==k||k(e)},placeholder:null!=w?w:$?`${s}${l}${s}`:s,disabled:N,block:j,className:O,trailingAction:P.jsx(ao.Action,{icon:Rt,"aria-label":x,"aria-haspopup":"dialog","aria-expanded":K,"aria-controls":K?A:void 0,disabled:N,onClick:()=>Q(!K,"button"),"data-component":"DatePicker.CalendarButton"})},T))}),P.jsx(Qi,{renderAnchor:null,anchorRef:L,open:K,onClose:e=>{Q(!1,"escape"===e?"escape":"click-outside")},side:"outside-bottom",align:"start",className:Gv,overlayProps:{id:A,role:"dialog","aria-label":y},focusTrapSettings:{initialFocusRef:E,returnFocusRef:I},children:$?P.jsx(cc,Object.assign({mode:"range",value:{from:F.from,to:F.to},onChange:e=>{Y(null),X(Rl(e,!0)),e.from&&e.to&&Q(!1,"date-select")}},J)):P.jsx(cc,Object.assign({value:F.from,onChange:e=>{Y(null),X(Rl(e,!1)),Q(!1,"date-select")}},J))})]})}Kv.displayName="DatePicker";var Uv=wt(Kv);const Yv="details";function Zv(e,t){const{className:a,open:n,defaultOpen:i,closeOnOutsideClick:r,onChange:o,onToggle:s}=e,l=S(e,["className","open","defaultOpen","closeOnOutsideClick","onChange","onToggle"]),c=C.useRef(null),d=H(t,c),u=void 0!==n,[m,p]=C.useState(Boolean(i)),h=u?n:m;return C.useEffect(()=>{const e=c.current;e&&e.open!==h&&(e.open=h)}),C.useEffect(()=>{if(!r||!h)return;const e=e=>{const{target:t}=e;t instanceof Element&&t.closest("details")!==c.current&&(p(!1),null==o||o(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[r,h,o]),P.jsx("details",Object.assign({ref:d,open:h,onToggle:e=>{null==s||s(e);const{open:t}=e.currentTarget;p(t),t!==h&&(null==o||o(t))},className:yt(Yv,a),"data-component":"Details"},l))}Zv.displayName="Details";var Qv=wt(Zv);const Xv="details-summary";function Jv(e,t){const a=e,{as:n,className:i}=a,r=S(a,["as","className"]),o=null!=n?n:"summary",s="summary"===o?{}:{as:"summary"};return P.jsx(o,Object.assign({ref:t,className:yt(Xv,i),"data-component":"Details.Summary"},s,r))}Jv.displayName="Details.Summary";var eb=wt(Jv);const tb=Object.assign(Qv,{Summary:eb}),ab=Object.assign(rf,{Header:Bg,Title:qg,Subtitle:Hg,Body:Mg,Footer:Pg,Buttons:Ag,CloseButton:Ig}),nb="drawer-body";function ib(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(nb,i),"data-component":"Drawer.Body"},r))}ib.displayName="Drawer.Body";var rb=wt(ib);const ob=e.createContext({}),sb="drawer-close-button";function lb(e,t){const{className:a,onClose:n}=e,i=S(e,["className","onClose"]),{onClose:r}=C.useContext(ob);return P.jsx(ei,Object.assign({ref:t,icon:Ut,"aria-label":"Close",variant:"invisible",className:yt(sb,a),onClick:null!=n?n:r,"data-component":"Drawer.CloseButton"},i))}lb.displayName="Drawer.CloseButton";var cb=wt(lb);const db="drawer-footer";function ub(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(db,i),"data-component":"Drawer.Footer"},r))}ub.displayName="Drawer.Footer";var mb=wt(ub);const pb="drawer-header",hb="drawer-header-direct-title";function gb(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(pb,hb,i),"data-component":"Drawer.Header"},r))}gb.displayName="Drawer.Header";var fb=wt(gb);const vb="drawer-subtitle";function bb(e,t){const a=e,{as:n="h2",className:i,id:r}=a,o=S(a,["as","className","id"]),{descriptionId:s}=C.useContext(ob);return P.jsx(n,Object.assign({ref:t,id:null!=r?r:s,className:yt(vb,i),"data-component":"Drawer.Subtitle"},o))}bb.displayName="Drawer.Subtitle";var xb=wt(bb);const yb="drawer-title";function wb(e,t){const a=e,{as:n="h1",className:i,id:r}=a,o=S(a,["as","className","id"]),{labelId:s}=C.useContext(ob);return P.jsx(n,Object.assign({ref:t,id:null!=r?r:s,className:yt(yb,i),"data-component":"Drawer.Title"},o))}wb.displayName="Drawer.Title";var Nb=wt(wb);const jb={backdrop:"drawer-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropModeless:"drawer-backdrop-modeless",backdropPosition:{left:"drawer-backdrop-left",right:"drawer-backdrop-right",top:"drawer-backdrop-top",bottom:"drawer-backdrop-bottom"},root:"drawer motion-safe:animate-in motion-safe:duration-short",rootModeless:"drawer-modeless",position:{left:"drawer-left motion-safe:slide-in-from-left",right:"drawer-right motion-safe:slide-in-from-right",top:"drawer-top motion-safe:slide-in-from-top",bottom:"drawer-bottom motion-safe:slide-in-from-bottom"},inlineSize:{small:"drawer-inline-size-small",medium:"drawer-inline-size-medium",large:"drawer-inline-size-large",xlarge:"drawer-inline-size-xlarge"},blockSize:{small:"drawer-block-size-small",medium:"drawer-block-size-medium",large:"drawer-block-size-large",xlarge:"drawer-block-size-xlarge"},customInlineSize:"drawer-inline-size-custom",customBlockSize:"drawer-block-size-custom",headerContent:"drawer-header-content",overflowWrapper:"drawer-overflow-wrapper",overflowWrapperBordered:"drawer-overflow-wrapper-bordered"},kb=e=>"number"==typeof e?`${e}px`:e;function Cb(e,t){var a,n;const{title:i="Drawer",subtitle:r="",onClose:o,position:s="right",size:l="medium",modal:c=!0,returnFocusRef:d,initialFocusRef:u,className:m,style:p,children:h,"aria-label":g,"aria-labelledby":f,"aria-describedby":v}=e,b=S(e,["title","subtitle","onClose","position","size","modal","returnFocusRef","initialFocusRef","className","style","children","aria-label","aria-labelledby","aria-describedby"]),x=Da(),y=Da(),w=C.useRef(null),N=H(t,w),j=C.useRef(null),[k,O]=C.useState(!1),M=nh(j);Si({containerRef:w,initialFocusRef:u,returnFocusRef:d,disabled:!c}),Ai(e=>{o("escape"),c&&e.preventDefault()}),Wh(!c);const[T,A]=Qa(h,{header:fb,body:rb,footer:mb}),L=null!==(a=T.header)&&void 0!==a?a:P.jsxs(fb,{children:[P.jsxs("div",{className:jb.headerContent,children:[P.jsx(Nb,{children:i}),r?P.jsx(xb,{children:r}):null]}),P.jsx(cb,{})]}),I=null!==(n=T.body)&&void 0!==n?n:P.jsx(rb,{children:A}),D=T.footer,E=Boolean(D),z="left"===s||"right"===s,R=(e=>"string"==typeof e&&e in jb.inlineSize)(l),$=null!=f?f:g?void 0:x,B=null!=v?v:r?y:void 0;return P.jsx(ob.Provider,{value:{labelId:x,descriptionId:y,onClose:()=>{o("close-button")}},children:P.jsx(_i,{children:P.jsx("div",{className:yt(jb.backdrop,jb.backdropPosition[s],!c&&jb.backdropModeless),onClick:e=>{c&&e.target===e.currentTarget&&k&&o("escape")},onMouseDown:e=>{O(e.target===e.currentTarget)},"data-component":"Drawer.Backdrop","data-position":s,"data-modal":c,children:P.jsxs("div",Object.assign({ref:N,role:"dialog","aria-labelledby":$,"aria-describedby":B,"aria-label":g,"aria-modal":c||void 0,className:yt(jb.root,jb.position[s],R?z?jb.inlineSize[l]:jb.blockSize[l]:z?jb.customInlineSize:jb.customBlockSize,!c&&jb.rootModeless,m),style:Object.assign(Object.assign({},p),R?{}:{"--drawer-size":kb(l)}),"data-component":"Drawer","data-position":s,"data-size":R?l:void 0,"data-modal":c,"data-has-footer":E?"":void 0},b,{children:[L,P.jsx(Cg,{ref:j,"aria-labelledby":x,className:yt(jb.overflowWrapper,E&&M&&jb.overflowWrapperBordered),children:I}),D]}))})})})}Cb.displayName="Drawer";var Sb=wt(Cb);const Ob=Object.assign(Sb,{Header:fb,Title:Nb,Subtitle:xb,Body:rb,Footer:mb,CloseButton:cb}),Mb=bt("em",{variants:{size:{large:"em-size-large",medium:"em-size-medium",small:"em-size-small"},weight:{light:"em-weight-light",normal:"em-weight-normal",medium:"em-weight-medium",semibold:"em-weight-semibold"}}});function Tb(e,t){const a=e,{as:n="em",className:i,size:r,weight:o}=a,s=S(a,["as","className","size","weight"]);return P.jsx(n,Object.assign({ref:t,className:yt(Mb({size:r,weight:o}),i),"data-component":"Em","data-size":r,"data-weight":o},s))}Tb.displayName="Em";var Ab=wt(Tb);const Lb=bt("empty-state",{variants:{size:{small:"empty-state-small",medium:"empty-state-medium"}}}),Ib="empty-state-icon",Db="empty-state-title",Eb="empty-state-description",zb="empty-state-actions",Pb=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})};function Rb(e,t){const a=e,{as:n="div",className:i,children:r,title:o,description:s,icon:l,size:c="medium",actions:d}=a,u=S(a,["as","className","children","title","description","icon","size","actions"]);return P.jsxs(n,Object.assign({ref:t,className:yt(Lb({size:c}),i),"data-component":"EmptyState","data-size":c},u,{children:[void 0===l?null:P.jsx("span",{className:Ib,"aria-hidden":"true","data-component":"EmptyState.Icon",children:Pb(l)}),P.jsx("span",{className:Db,"data-component":"EmptyState.Title",children:o}),s?P.jsx("span",{className:Eb,"data-component":"EmptyState.Description",children:s}):null,r,d?P.jsx("div",{className:zb,"data-component":"EmptyState.Actions",children:d}):null]}))}Rb.displayName="EmptyState";var $b=wt(Rb);function Bb(e,t,a){let n,i=a.initialDeps??[],r=!0;function o(){var o;const s="production"!==process.env.NODE_ENV&&!!a.key&&!!(null==(o=a.debug)?void 0:o.call(a));let l=0;s&&(l=Date.now());const c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return n;i=c;let d=0;if(s&&(d=Date.now()),n=t(...c),s){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-d))/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==a?void 0:a.key)}return!(null==a?void 0:a.onChange)||r&&a.skipInitialOnChange||a.onChange(n),r=!1,n}return o.updateDeps=e=>{i=e},o}function _b(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const Vb=(e,t,a)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),a)}};let Hb;const Fb=()=>{if(void 0!==Hb)return Hb;if("undefined"==typeof navigator)return Hb=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Hb=!0;const e=navigator.maxTouchPoints;return Hb="MacIntel"===navigator.platform&&void 0!==e&&e>0},Wb=e=>{const{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},qb=e=>e,Gb=e=>{const t=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=new Array(a);for(let e=0;e<a;e++)n[e]=t+e;return n},Kb=(e,t)=>{const a=e.scrollElement;if(!a)return;const n=e.targetWindow;if(!n)return;const i=e=>{const{width:a,height:n}=e;t({width:Math.round(a),height:Math.round(n)})};if(i(Wb(a)),!n.ResizeObserver)return()=>{};const r=new n.ResizeObserver(t=>{const n=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(Wb(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return r.observe(a,{box:"border-box"}),()=>{r.unobserve(a)}},Ub={passive:!0},Yb="undefined"==typeof window||"onscrollend"in window,Zb=(e,t)=>((e,t,a)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=e.options.useScrollendEvent&&Yb;let o=0;const s=r?null:Vb(i,()=>t(o,!1),e.options.isScrollingResetDelay),l=e=>()=>{o=a(n),null==s||s(),t(o,e)},c=l(!0),d=l(!1);return n.addEventListener("scroll",c,Ub),r&&n.addEventListener("scrollend",d,Ub),()=>{n.removeEventListener("scroll",c),r&&n.removeEventListener("scrollend",d)}})(e,t,t=>{const{horizontal:a,isRtl:n}=e.options;return a?t.scrollLeft*(n?-1:1):t.scrollTop}),Qb=(e,t,a)=>{if(a.options.useCachedMeasurements){const t=a.indexFromElement(e),n=a.options.getItemKey(t);return a.itemSizeCache.get(n)??a.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[a.options.horizontal?"inlineSize":"blockSize"])}}if(!t){const t=a.indexFromElement(e),n=a.options.getItemKey(t),i=a.itemSizeCache.get(n);if(void 0!==i)return i}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},Xb=(e,{adjustments:t=0,behavior:a},n)=>{var i,r;null==(r=null==(i=n.scrollElement)?void 0:i.scrollTo)||r.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:a})};class Jb{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,a;return(null==(a=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:a.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,a=this.indexFromElement(t);if(t.isConnected)this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,a]of this.elementsCache)if(a===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var a;null==(a=t())||a.disconnect(),e=null},observe:e=>{var a;return null==(a=t())?void 0:a.observe(e,{box:"border-box"})},unobserve:e=>{var a;return null==(a=t())?void 0:a.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,a;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:qb,rangeExtractor:Gb,onChange:()=>{},measureElement:Qb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const a=e[t];void 0!==a&&(n[t]=a)}const i=this.options;let r=null,o=null,s=!1;if(void 0!==i&&i.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=i.count,l=n.count,c=this.getMeasurements(),d=e>0?(null==(t=c[0])?void 0:t.key)??i.getItemKey(0):null,u=e>0?(null==(a=c[e-1])?void 0:a.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(n.getItemKey(0)!==d||n.getItemKey(l-1)!==u)){s=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(r=[t.key,this.getScrollOffset()-t.start]);const a=!0===n.followOnAppend?"auto":n.followOnAppend||null;a&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||n.getItemKey(l-1)!==u)&&(o=a)}}this.options=n,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let l=!1,c=0;if(r&&null!==this.scrollOffset){const[e,t]=r,a=this.getMeasurements(),{count:n,getItemKey:i}=this.options;let o=0;for(;o<n&&i(o)!==e;)o++;if(o<n){const e=a[o];if(e){const a=Math.max(0,e.start+t);a!==this.scrollOffset&&(c=a-this.scrollOffset,this.scrollOffset=a,l=!0)}}}(l||o)&&(this.pendingScrollAnchor=[l?r[0]:null,l?r[1]:0,o,c])},this.notify=e=>{var t,a;null==(a=(t=this.options).onChange)||a.call(t,this,e)},this.maybeNotify=Bb(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:"production"!==process.env.NODE_ENV&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const a=this.getScrollOffset();this.scrollDirection=t?a===e?this.scrollDirection:a<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},a=()=>{this._iosTouching=!1,Fb()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,Ub),e.addEventListener("touchend",a,Ub),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",a),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const a=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,a&&this.scrollElement&&this.options.enabled){const[e,t,n,i]=a;null===e||n||(Fb()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const a=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=a,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Bb(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,a,n,i,r,o,s)=>(void 0!==this.prevLanes&&this.prevLanes!==r&&(this.lanesChangedFlag=!0),this.prevLanes=r,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=Bb(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s},l)=>{const c=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===r){const i=2*e;let r,o=this._flatMeasurements;if(!o||o.length<i){const e=new Float64Array(i);o&&d>0&&e.set(o.subarray(0,2*d)),o=e,this._flatMeasurements=o}if(0===d)r=t+a;else{const e=d-1;r=o[2*e]+o[2*e+1]+s}for(let t=d;t<e;t++){const e=n(t),a=c.get(e),i="number"==typeof a?a:this.options.estimateSize(t);o[2*t]=r,o[2*t+1]=i,r+=i+s}const l=function(e,t,a){const n=new Array(e);return new Proxy(n,{get(n,i,r){if("string"==typeof i){const r=i.charCodeAt(0);if(r>=48&&r<=57){const r=+i;if(Number.isInteger(r)&&r>=0&&r<e){let e=n[r];if(!e){const i=t[2*r];e=n[r]={index:r,key:a(r),start:i,size:t[2*r+1],end:i+t[2*r+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(n,i,r)}})}(e,o,n);return this.measurementsCache=l,l}const u=this.measurementsCache.slice(0,d),m=new Array(r).fill(void 0),p=new Float64Array(r);let h=0;for(let e=0;e<d;e++){const t=u[e];t&&(void 0===m[t.lane]&&h++,m[t.lane]=e,p[t.lane]=t.end)}for(let i=d;i<e;i++){const e=n(i),l=this.laneAssignments.get(i);let d,g;const f="estimate"===o||c.has(e);if(void 0!==l&&this.options.lanes>1){d=l;const e=m[d],n=void 0!==e?u[e]:void 0;g=n?n.end+s:t+a}else if(h===r){let e=0,t=p[0],a=m[0];for(let n=1;n<r;n++){const i=p[n];(i<t||i===t&&m[n]<a)&&(e=n,t=i,a=m[n])}d=e,g=t+s,f&&this.laneAssignments.set(i,d)}else d=i%this.options.lanes,g=t+a,f&&this.laneAssignments.set(i,d);const v=c.get(e),b="number"==typeof v?v:this.options.estimateSize(i),x=g+b;u[i]={index:i,start:g,size:b,end:x,key:e,lane:d},void 0===m[d]&&h++,m[d]=i,p[d]=x}return this.measurementsCache=u,u},{key:"production"!==process.env.NODE_ENV&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Bb(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,a,n)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,a,n,i){const r=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:r};if(1===n&&null!==i){const e=function(e,t,a){let n=0;for(;n<=t;){const i=(n+t)/2|0,r=e[2*i];if(r<a)n=i+1;else{if(!(r>a))return i;t=i-1}}return n>0?n-1:0}(i,r,a);let n=e;const o=a+t;for(;n<r&&i[2*n]+i[2*n+1]<o;)n++;return{startIndex:e,endIndex:n}}const o=t=>e[t].start;let s=ex(0,r,o,a),l=s;if(1===n)for(;l<r&&e[l].end<a+t;)l++;else if(n>1){const i=Array(n).fill(0);for(;l<r&&i.some(e=>e<a+t);){const t=e[l];i[t.lane]=t.end,l++}const o=Array(n).fill(a+t);for(;s>=0&&o.some(e=>e>=a);){const t=e[s];o[t.lane]=t.start,s--}s=Math.max(0,s-s%n),l=Math.min(r,l+(n-1-l%n))}return{startIndex:s,endIndex:l}}(e,t,a,n,1===n&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:"production"!==process.env.NODE_ENV&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Bb(()=>{let e=null,t=null;const a=this.calculateRange();return a&&(e=a.startIndex,t=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,a,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:a}),{key:"production"!==process.env.NODE_ENV&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,a=e.getAttribute(t);return a?parseInt(a,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const a=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==a&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,a-t),i=Math.min(this.options.count-1,a+t);return e>=n&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),a=this.options.getItemKey(t),n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var a,n;if(e<0||e>=this.options.count)return;let i,r,o;const s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)o=this.options.getItemKey(e),r=s[2*e],i=s[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;o=t.key,r=t.start,i=t.size}const l=this.itemSizeCache.get(o)??i,c=t-l;if(0!==c){const s="end"===this.options.anchorTo&&"smooth"!==(null==(a=this.scrollState)?void 0:a.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=s?this.getTotalSize():0,u=this.getScrollOffset()+this.scrollAdjustments,m=!this.itemSizeCache.has(o)?r<u:r+l<=u&&"backward"!==this.scrollDirection,p="smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:o,start:r,size:i,end:r+i,lane:0},c,this):m);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(o,t),this.itemSizeCacheVersion++;let h=!1;s?h=this.applyScrollAdjustment(this.getTotalSize()-d):p&&(h=this.applyScrollAdjustment(c)),this.notify(h)}},this.getVirtualItems=Bb(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const a=[];for(let n=0,i=e.length;n<i;n++){const i=t[e[n]];a.push(i)}return a},{key:"production"!==process.env.NODE_ENV&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0===t.length)return;const a=this._flatMeasurements,n=1===this.options.lanes&&null!=a,i=ex(0,t.length-1,n?e=>a[2*e]:e=>_b(t[e]).start,e);return _b(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,a=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(a-n)/2:"end"===t&&(e-=n);const r=this.getMaxScrollOffset();return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.getSize(),n=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=n+a-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const r="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0;const n=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:a,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getOffsetForIndex(e,t);if(!n)return;const[i,r]=n,o=this.now();this.scrollState={index:e,align:r,behavior:a,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const a=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let a;if(0===t.length)a=this.options.paddingStart;else if(1===this.options.lanes){const n=t.length-1,i=this._flatMeasurements;a=null!=i?i[2*n]+i[2*n+1]:(null==(e=t[n])?void 0:e.end)??0}else{const e=Array(this.options.lanes).fill(null);let n=t.length-1;for(;n>=0&&e.some(e=>null===e);){const a=t[n];null===e[a.lane]&&(e[a.lane]=a.end),n--}a=Math.max(...e.filter(e=>null!==e))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const a of t)a&&this.itemSizeCache.has(a.key)&&e.push({index:a.index,key:a.key,start:a.start,size:a.size,end:a.end,lane:a.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:a})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:a,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return 0!==e&&("production"!==process.env.NODE_ENV&&this.options.debug&&console.info("correction",e),Fb()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,a=t!==this.scrollState.lastTargetOffset;if(!a&&(n=t,i=this.getScrollOffset(),Math.abs(n-i)<1.01)){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,a){const e=this.getSize()||600,a=Math.abs(t-this.getScrollOffset()),n="smooth"===this.scrollState.behavior&&a>e;this.scrollState.lastTargetOffset=t,n||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:n?"smooth":"auto"})}var n,i;this.scheduleScrollReconcile()}}const ex=(e,t,a,n)=>{for(;e<=t;){const i=(e+t)/2|0,r=a(i);if(r<n)e=i+1;else{if(!(r>n))return i;t=i-1}}return e>0?e-1:0};const tx="undefined"!=typeof document?C.useLayoutEffect:C.useEffect;function ax(e){return function({useFlushSync:e=!0,directDomUpdates:a=!1,directDomUpdatesMode:n="transform",...i}){const r=C.useReducer(e=>e+1,0)[1],o=C.useRef({enabled:a,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=a,o.current.mode=n;const s=e=>{const t=o.current;if(!t.enabled||!t.container)return;const a=e.getTotalSize();if(a!==t.lastSize){t.lastSize=a;const n=e.options.horizontal?"width":"height";t.container.style[n]=`${a}px`}},l=e=>{const t=o.current;if(!t.enabled||!t.container)return;s(e);const a=!!e.options.horizontal,n="transform"===t.mode,i=a?"left":"top",r=e.options.scrollMargin,l=e.getVirtualItems();for(const o of l){const s=o.start-r,l=e.elementsCache.get(o.key);l&&t.lastPositions.get(l)!==s&&(t.lastPositions.set(l,s),n?l.style.transform=a?`translate3d(${s}px, 0, 0)`:`translate3d(0, ${s}px, 0)`:l.style[i]=`${s}px`)}},c={...i,onChange:(a,n)=>{var s;const c=o.current;let d=!0;if(c.enabled){l(a);const e=a.range,t=c.prevRange;d=!t||t.isScrolling!==a.isScrolling||t.startIndex!==(null==e?void 0:e.startIndex)||t.endIndex!==(null==e?void 0:e.endIndex),d&&(c.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:a.isScrolling}:null)}d&&(e&&n?t.flushSync(r):r()),null==(s=i.onChange)||s.call(i,a,n)}},[d]=C.useState(()=>{const e=new Jb(c);return Object.assign(e,{containerRef:t=>{const a=o.current;if(a.container=t,a.lastSize=null,t&&a.enabled){const n=e.getTotalSize();a.lastSize=n;const i=e.options.horizontal?"width":"height";t.style[i]=`${n}px`}}})});return d.setOptions(c),tx(()=>d._didMount(),[]),tx(()=>(s(d),d._willUpdate())),tx(()=>{l(d)}),d}({observeElementRect:Kb,observeElementOffset:Zb,scrollToFn:Xb,...e})}const nx="filtered-action-list-input";function ix(e){const{inputRef:t,value:a,onInputChange:n,onInputKeyDown:i,placeholderText:r,listId:o,inputDescriptionId:s,loading:l=!1}=e,c=S(e,["inputRef","value","onInputChange","onInputKeyDown","placeholderText","listId","inputDescriptionId","loading"]);return P.jsx("div",{className:nx,"data-component":"FilteredActionList.Header",children:P.jsx(ao,Object.assign({ref:t,block:!0,value:a,onChange:n,onKeyDown:i,placeholder:r,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":o,"aria-label":r,"aria-describedby":s,loading:l,loaderPosition:"leading"},c))})}ix.displayName="FilteredActionList.Input";const rx=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})};function ox(e,t){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:a,text:n,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:s,onAction:l,children:c,groupId:d,renderItem:u}=e,m=S(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","onAction","children","groupId","renderItem"]);return P.jsxs(xi.Item,Object.assign({ref:t,role:"option",onSelect:t=>null==l?void 0:l(e,t),"data-id":a},m,{children:[o?P.jsx(xi.LeadingVisual,{children:P.jsx(o,{})}):null,c,n,i?P.jsx(xi.Description,{variant:r,children:i}):null,s?P.jsx(xi.TrailingVisual,{children:rx(s)}):null]}))}ox.displayName="FilteredActionList.Item";var sx=wt(ox);const lx=bt("stack",{variants:{gap:{none:"stack-gap-none",tight:"stack-gap-tight",condensed:"stack-gap-condensed",cozy:"stack-gap-cozy",normal:"stack-gap-normal",spacious:"stack-gap-spacious"},direction:{horizontal:"stack-horizontal",vertical:"stack-vertical"},align:{stretch:"stack-align-stretch",start:"stack-align-start",center:"stack-align-center",end:"stack-align-end",baseline:"stack-align-baseline"},wrap:{wrap:"stack-wrap",nowrap:"stack-nowrap"},justify:{start:"stack-justify-start",center:"stack-justify-center",end:"stack-justify-end","space-between":"stack-justify-space-between","space-evenly":"stack-justify-space-evenly"},padding:{none:"stack-padding-none",tight:"stack-padding-tight",condensed:"stack-padding-condensed",cozy:"stack-padding-cozy",normal:"stack-padding-normal",spacious:"stack-padding-spacious"},paddingBlock:{none:"stack-padding-block-none",tight:"stack-padding-block-tight",condensed:"stack-padding-block-condensed",cozy:"stack-padding-block-cozy",normal:"stack-padding-block-normal",spacious:"stack-padding-block-spacious"},paddingInline:{none:"stack-padding-inline-none",tight:"stack-padding-inline-tight",condensed:"stack-padding-inline-condensed",cozy:"stack-padding-inline-cozy",normal:"stack-padding-inline-normal",spacious:"stack-padding-inline-spacious"}}});function cx(e,t){const a=e,{as:n="div",className:i,gap:r,direction:o="vertical",align:s="stretch",wrap:l="nowrap",justify:c="start",padding:d="none",paddingBlock:u,paddingInline:m}=a,p=S(a,["as","className","gap","direction","align","wrap","justify","padding","paddingBlock","paddingInline"]);return P.jsx(n,Object.assign({ref:t,className:yt(lx({gap:r,direction:o,align:s,wrap:l,justify:c,padding:d,paddingBlock:u,paddingInline:m}),i),"data-component":"Stack","data-gap":r,"data-direction":o,"data-align":s,"data-wrap":l,"data-justify":c,"data-padding":d,"data-padding-block":u,"data-padding-inline":m},p))}cx.displayName="Stack";var dx=wt(cx);const ux=bt("stack-item",{variants:{grow:{true:"stack-item-grow",false:"stack-item-no-grow"},shrink:{true:"stack-item-shrink",false:"stack-item-no-shrink"}}});function mx(e,t){const a=e,{as:n="div",className:i,grow:r,shrink:o}=a,s=S(a,["as","className","grow","shrink"]);return P.jsx(n,Object.assign({ref:t,className:yt(ux({grow:r,shrink:o}),i),"data-component":"StackItem","data-grow":r,"data-shrink":o},s))}mx.displayName="StackItem";var px=wt(mx);const hx=Object.assign(dx,{Item:px}),gx="filtered-action-list-spinner",fx="filtered-action-list-skeleton",vx=["80%","52.5%","67.5%","40%","72.5%"];function bx(e){const{loadingType:t,height:a=0,className:n}=e,i=S(e,["loadingType","height","className"]);if("input"===t)return null;if("body-skeleton"===t){const e=Math.max(Math.floor(a/24),3);return P.jsx(hx,Object.assign({gap:"condensed",justify:"center",className:yt(fx,n),"data-component":"FilteredActionList.Skeleton"},i,{children:Array.from({length:e},(e,t)=>P.jsxs(hx,{direction:"horizontal",gap:"condensed",align:"center",children:[P.jsx(ov,{width:"16px",height:"16px"}),P.jsx(ov,{width:vx[t%vx.length],height:"10px"})]},t))}))}return P.jsx("div",Object.assign({className:yt(gx,n),"data-component":"FilteredActionList.Spinner"},i,{children:P.jsx(zn,{})}))}bx.displayName="FilteredActionList.BodyLoader";const xx=({items:e,enabled:t=!0,loading:a=!1,messageText:n})=>{const[i,r]=C.useState(""),o=e.length,s=e.filter(e=>e.selected).length,l=0===o&&!a,c=n?`${n.title}. ${n.description}`:"",d=l?c:`${o} item${1===o?"":"s"} available, ${s} selected.`,u=C.useRef(d);return C.useEffect(()=>{if(!t||d===u.current)return;u.current=d;const e=window.setTimeout(()=>r(d),500);return()=>{window.clearTimeout(e)}},[t,d]),t?i:""},yx="filtered-action-list",wx="filtered-action-list-container",Nx="filtered-action-list-list",jx="filtered-action-list-message",kx="filtered-action-list-virtual-list",Cx="filtered-action-list-virtual-item",Sx="filtered-action-list-select-all",Ox="filtered-action-list-select-all-label",Mx="sr-only",Tx=(e,t)=>{var a,n,i;return null!==(i=null!==(a=e.key)&&void 0!==a?a:null===(n=e.id)||void 0===n?void 0:n.toString())&&void 0!==i?i:t.toString()};function Ax(t){const{items:a,groupMetadata:n,filterValue:i,onFilterChange:r,placeholderText:o,loading:s=!1,loadingType:l="body-spinner",message:c,messageText:d,selectionVariant:u,showItemDividers:m,onSelectAllChange:p,renderItem:h,announcementsEnabled:g=!0,virtualized:f=!1,textInputProps:v,actionListProps:b,inputRef:x,scrollContainerRef:y,onListContainerRefChanged:w,onInputRefChanged:N,className:j}=t,k=void 0!==i,[S,O]=C.useState(""),M=k?i:S,T=C.useRef(null),A=H(x,T),L=C.useRef(null),I=H(y,L),D=C.useRef(null),E=C.useCallback(e=>{D.current=e,null==w||w(e)},[w]);C.useEffect(()=>{null==N||N(T)},[N]);const z=s&&"input"!==l,[R,$]=C.useState(0);Oi(()=>{const e=L.current;if(!e||!z)return;const t=()=>$(e.clientHeight);t();const a=new ResizeObserver(t);return a.observe(e),()=>{a.disconnect()}},[z]);const B=Da(null==b?void 0:b.id),_=Da(),V=Da(),F=f&&!(null==n?void 0:n.length),W=ax({count:a.length,getScrollElement:()=>L.current,estimateSize:()=>32,overscan:10,enabled:F,getItemKey:e=>{const t=a[e];return t?Tx(t,e):e.toString()},measureElement:e=>e.scrollHeight}),q=F?W.getVirtualItems():void 0,[G,K]=C.useState(null);C.useEffect(()=>{var e;if(null===G)return;const t=null===(e=D.current)||void 0===e?void 0:e.querySelector(`[data-index="${G}"]`);t&&(t.focus(),K(null))},[G,q]);const U=C.useCallback(e=>{var t,n;if(e<0||e>=a.length)return;if(F)return W.scrollToIndex(e,{align:"auto"}),void K(e);const i=null===(t=D.current)||void 0===t?void 0:t.querySelectorAll('[role="option"]');null===(n=null==i?void 0:i[e])||void 0===n||n.focus()},[F,a.length,W]),Y=C.useCallback(e=>a.filter(t=>t.groupId===e),[a]),Z=(null==n?void 0:n.length)?n.map(e=>Y(e.groupId)[0]).find(Boolean):a[0],Q=a.length>0&&a.every(e=>e.selected),X=!Q&&a.some(e=>e.selected),J=xx({items:a,enabled:g,loading:s,messageText:d}),ee=C.useMemo(()=>({container:"FilteredActionList",listRole:"listbox",selectionAttribute:"aria-selected",enableFocusZone:!F}),[F]);return P.jsxs("div",{className:yt(yx,j),"data-component":"FilteredActionList","data-virtualized":F?"":void 0,children:[P.jsx(ix,Object.assign({inputRef:A,value:M,onInputChange:e=>{const{value:t}=e.target;k||O(t),r(t,e)},onInputKeyDown:e=>{if("ArrowDown"===e.key)return e.preventDefault(),void U(0);"Enter"===e.key&&(null==Z?void 0:Z.onAction)&&(e.preventDefault(),Z.onAction(Z,e))},placeholderText:o,listId:B,inputDescriptionId:_,loading:s&&"input"===l},v)),P.jsx("span",{id:_,className:Mx,children:"Items will be filtered as you type"}),p?P.jsxs("div",{className:Sx,"data-component":"FilteredActionList.SelectAll",children:[P.jsx(fp,{id:V,checked:Q,indeterminate:X,onChange:e=>p(e.target.checked),"data-component":"FilteredActionList.SelectAllCheckbox"}),P.jsx("label",{htmlFor:V,className:Ox,children:Q?"Deselect all":"Select all"})]}):null,P.jsx("div",{ref:I,className:wx,onKeyDown:e=>{if(!F||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const t=e.target.closest("[data-index]"),n=t?Number(t.dataset.index):-1,i="ArrowDown"===e.key?n+1:"ArrowUp"===e.key?n-1:"Home"===e.key?0:"End"===e.key?a.length-1:null;null!==i&&(e.preventDefault(),U(i))},"data-component":"FilteredActionList.Container",children:z?P.jsx(bx,{loadingType:l,height:R}):c?P.jsx("div",{className:jx,"data-component":"FilteredActionList.Message",children:c}):P.jsx(ln.Provider,{value:ee,children:P.jsx(xi,Object.assign({ref:E,id:B,selectionVariant:u,showDividers:m},b,{className:yt(Nx,F&&kx,null==b?void 0:b.className),style:F?Object.assign(Object.assign({},null==b?void 0:b.style),{height:W.getTotalSize()}):null==b?void 0:b.style,children:(null==n?void 0:n.length)?n.map(t=>{var a,n,i;return P.jsxs(xi.Group,{children:[P.jsx(xi.GroupHeading,{variant:null===(a=t.header)||void 0===a?void 0:a.variant,children:null!==(i=null===(n=t.header)||void 0===n?void 0:n.title)&&void 0!==i?i:`Group ${t.groupId}`}),Y(t.groupId).map((t,a)=>{var n;return e.createElement(sx,Object.assign({},t,{key:Tx(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:h}))})]},t.groupId)}):q?q.map(t=>{var n;const i=a[t.index];return e.createElement(sx,Object.assign({},i,{key:t.key,ref:W.measureElement,renderItem:null!==(n=i.renderItem)&&void 0!==n?n:h,"data-index":t.index,className:yt(Cx,i.className),style:Object.assign(Object.assign({},i.style),{transform:`translateY(${t.start}px)`})}))}):a.map((t,a)=>{var n;return e.createElement(sx,Object.assign({},t,{key:Tx(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:h}))})}))})}),P.jsx("span",{role:"status","aria-live":"polite",className:Mx,"data-component":"FilteredActionList.Announcement",children:J})]})}Ax.displayName="FilteredActionList";const Lx=Object.assign(Ax,{Input:ix,Item:sx,BodyLoader:bx}),Ix=e.createContext({}),Dx="radio",Ex="radio-checked",zx="radio-disabled";function Px(e,t){const{className:a,name:n,required:i,validationStatus:r,value:o,onChange:s}=e,l=S(e,["className","name","required","validationStatus","value","onChange"]),c=C.useContext(Ix);return P.jsx("input",Object.assign({ref:t,type:"radio",value:o,name:null!=n?n:c.name,required:i,"aria-required":!!i||void 0,"aria-invalid":"error"===r||void 0,onChange:e=>{var t;null===(t=c.onChange)||void 0===t||t.call(c,e),null==s||s(e)},className:yt(Dx,Ex,zx,a),"data-component":"Radio"},l))}Px.displayName="Radio";var Rx=wt(Px);const $x="select-control",Bx="select-indicator",_x=bt("select",{variants:{size:{small:"select-small",medium:"select-medium",large:"select-large"},block:{true:"select-block",false:""},disabled:{true:"select-disabled",false:""},validation:{error:"select-error",success:"select-success"}}});function Vx(e,t){const{className:a,children:n,placeholder:i,size:r="medium",block:o,disabled:s,required:l,validationStatus:c,defaultValue:d}=e,u=S(e,["className","children","placeholder","size","block","disabled","required","validationStatus","defaultValue"]),m="value"in u;return P.jsxs("span",{className:yt(_x({size:r,block:o,disabled:s,validation:c}),a),"data-component":"Select","data-size":r,"data-block":o,"data-disabled":s,"data-validation":c,children:[P.jsxs("select",Object.assign({ref:t,disabled:s,required:l,"aria-invalid":"error"===c||void 0,className:$x,defaultValue:m?void 0:null!=d?d:i?"":void 0,"data-has-placeholder":Boolean(i)||void 0},u,{children:[i?P.jsx("option",{value:"",disabled:l,hidden:l,"data-component":"Select.Option",children:i}):null,n]})),P.jsx(Ft,{className:Bx,"aria-hidden":"true"})]})}Vx.displayName="Select";var Hx=wt(Vx);const Fx=7,Wx=30,qx="both",Gx="textarea-counter",Kx="textarea-counter-over-limit",Ux="textarea-counter-icon",Yx="sr-only",Zx=bt("textarea-field",{variants:{block:{true:"textarea-field-block",false:""},contrast:{true:"textarea-field-contrast",false:""},disabled:{true:"textarea-field-disabled",false:""},validation:{error:"textarea-field-error",success:"textarea-field-success"}}}),Qx=bt("textarea",{variants:{resize:{none:"textarea-resize-none",both:"textarea-resize-both",horizontal:"textarea-resize-horizontal",vertical:"textarea-resize-vertical"}}});function Xx(e,t){var a;const{className:n,style:i,value:r,defaultValue:o,onChange:s,rows:l=Fx,cols:c=Wx,resize:d=qx,block:u,contrast:m,disabled:p,required:h,validationStatus:g,minHeight:f,maxHeight:v,characterLimit:b,"aria-describedby":x}=e,y=S(e,["className","style","value","defaultValue","onChange","rows","cols","resize","block","contrast","disabled","required","validationStatus","minHeight","maxHeight","characterLimit","aria-describedby"]),w=Da(),N=void 0!==r,[j,k]=C.useState(()=>void 0===o?0:String(o).length),O=N?String(r).length:j,M=b?qr(O,b):void 0,T=null!==(a=null==M?void 0:M.isOverLimit)&&void 0!==a&&a,A=T?"error":g,L=C.useRef(!1),[I,D]=C.useState(""),E=null==M?void 0:M.message;C.useEffect(()=>{if(!L.current)return;const e=window.setTimeout(()=>{D(null!=E?E:"")},500);return()=>{window.clearTimeout(e)}},[E]);return P.jsxs(P.Fragment,{children:[P.jsx("span",{className:yt(Zx({block:u,contrast:m,disabled:p,validation:A}),n),"data-component":"Textarea","data-block":u,"data-contrast":m,"data-disabled":p,"data-validation":A,children:P.jsx("textarea",Object.assign({ref:t,value:r,defaultValue:o,rows:l,cols:c,disabled:p,required:h,"aria-required":!!h||void 0,"aria-invalid":"error"===A||void 0,"aria-describedby":b?[w,x].filter(Boolean).join(" "):x,onChange:e=>{L.current=!0,b&&!N&&k(e.target.value.length),null==s||s(e)},className:yt(Qx({resize:d})),style:Object.assign({minHeight:f,maxHeight:v},i),"data-resize":d},y))}),M?P.jsxs(P.Fragment,{children:[P.jsx("span",{role:"status","aria-live":"polite",className:Yx,children:I}),P.jsxs("span",{id:w,className:Yx,children:["You can enter up to ",b," ",1===b?"character":"characters"]}),P.jsxs(Wr,{"aria-hidden":"true",size:"small",className:yt(Gx,T&&Kx),"data-component":"Textarea.CharacterCount",children:[T?P.jsx(Zt,{className:Ux}):null,M.message]})]}):null]})}Xx.displayName="Textarea";var Jx=wt(Xx);const ey=e.createContext({}),ty="form-control-caption",ay="form-control-caption-disabled";function ny(e,t){const{className:a,id:n}=e,i=S(e,["className","id"]),{captionId:r,disabled:o}=C.useContext(ey);return P.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:yt(ty,o&&ay,a),"data-component":"FormControl.Caption","data-control-disabled":o},i))}ny.displayName="FormControl.Caption";var iy=wt(ny);const ry="form-control-label",oy="form-control-label-disabled",sy="sr-only",ly="form-control-label-required";function cy(e,t){const a=e,{as:n="label",className:i,children:r,htmlFor:o,id:s,visuallyHidden:l,requiredIndicator:c=!0,requiredText:d}=a,u=S(a,["as","className","children","htmlFor","id","visuallyHidden","requiredIndicator","requiredText"]),{id:m,disabled:p,required:h,labelId:g}=C.useContext(ey);return P.jsx(n,Object.assign({ref:t,id:null!=s?s:g,htmlFor:"label"===n?null!=o?o:m:void 0,className:yt(ry,p&&oy,l&&sy,i),"data-component":"FormControl.Label","data-control-disabled":p},u,{children:h||d?P.jsxs("span",{className:ly,children:[P.jsx("span",{children:r}),P.jsx("span",{"aria-hidden":!c||void 0,children:null!=d?d:"*"})]}):r}))}cy.displayName="FormControl.Label";var dy=wt(cy);const uy="form-control-leading-visual",my="form-control-leading-visual-disabled",py="form-control-leading-visual-with-caption";function hy(e,t){const{className:a}=e,n=S(e,["className"]),{captionId:i,disabled:r}=C.useContext(ey);return P.jsx("div",Object.assign({ref:t,className:yt(uy,i&&py,r&&my,a),"data-component":"FormControl.LeadingVisual","data-control-disabled":r,"data-has-caption":!!i||void 0},n))}hy.displayName="FormControl.LeadingVisual";var gy=wt(hy);const fy={success:$t,error:Zt},vy="form-control-validation-icon",by=bt("form-control-validation",{variants:{variant:{success:"form-control-validation-success",error:"form-control-validation-error"}}});function xy(e,t){const{className:a,children:n,variant:i,id:r}=e,o=S(e,["className","children","variant","id"]),{validationMessageId:s}=C.useContext(ey),l=fy[i];return P.jsxs("span",Object.assign({ref:t,className:yt(by({variant:i}),a),"data-component":"FormControl.Validation","data-validation-status":i},o,{children:[P.jsx(l,{className:vy,"aria-hidden":"true"}),P.jsx("span",{id:null!=r?r:s,children:n})]}))}xy.displayName="FormControl.Validation";var yy=wt(xy);const wy="form-control-vertical",Ny="form-control-vertical-with-label",jy="form-control-horizontal",ky="form-control-horizontal-with-leading-visual",Cy="form-control-choice-input",Sy="form-control-label-container",Oy=[fp,Rx,Hx,Jx,Qr],My=(e,t)=>C.isValidElement(e)&&(e.type===t||Ua(e,t));function Ty(e,t){var a;const{className:n,children:i,disabled:r,required:o,layout:s="vertical",id:l}=e,c=S(e,["className","children","disabled","required","layout","id"]),[d,u]=Qa(i,{label:dy,caption:iy,leadingVisual:gy,validation:yy}),m=C.useContext(lp),p=C.useContext(Ix),h=m.disabled||p.disabled||r,g=Da(l),f=d.caption?`${g}-caption`:void 0,v=d.validation?`${g}-validation`:void 0,b=C.isValidElement(d.label)?d.label:void 0,x=b?null!==(a=b.props.id)&&void 0!==a?a:`${g}-label`:void 0,y=!!b&&!b.props.visuallyHidden,w=C.isValidElement(d.validation)?d.validation.props.variant:void 0,N=u.find(e=>Oy.some(t=>My(e,t))),j=My(N,fp)||My(N,Rx),k=My(N,Rx),O=j||"horizontal"===s,M=u.filter(e=>e!==N),T={id:g,disabled:h,required:o,captionId:f,validationMessageId:v,labelId:x},A=C.isValidElement(N)?C.cloneElement(N,O?{id:g,disabled:h,required:o&&!k,"aria-describedby":f}:Object.assign({id:g,disabled:h,required:o,validationStatus:w,"aria-describedby":[v,f].filter(Boolean).join(" ")||void 0},N.props)):null;return P.jsx(ey.Provider,{value:T,children:O?P.jsxs("div",Object.assign({ref:t,className:yt(jy,d.leadingVisual&&ky,n),"data-component":"FormControl","data-layout":"horizontal","data-disabled":h,"data-required":o,"data-has-leading-visual":!!d.leadingVisual||void 0},c,{children:[P.jsxs("div",{className:Cy,children:[A,M]}),d.leadingVisual,P.jsxs("div",{className:Sy,children:[d.label,d.caption]})]})):P.jsxs("div",Object.assign({ref:t,className:yt(wy,y&&Ny,n),"data-component":"FormControl","data-layout":"vertical","data-disabled":h,"data-required":o,"data-has-label":!!y||void 0},c,{children:[d.label,A,M,d.validation,d.caption]}))})}Ty.displayName="FormControl";var Ay=wt(Ty);const Ly=e=>{const{id:t,disabled:a,required:n,captionId:i,validationMessageId:r}=C.useContext(ey);return Object.assign({id:t,disabled:a,required:n,"aria-describedby":[r,i].filter(Boolean).join(" ")||void 0},e)},Iy=Object.assign(Ay,{Label:dy,Caption:iy,LeadingVisual:gy,Validation:yy}),Dy={when:{narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"}};function Ey(e,t){const a=e,{as:n="div",className:i,when:r}=a,o=S(a,["as","className","when"]),s=Array.isArray(r)?r:[r];return P.jsx(n,Object.assign({ref:t,className:yt(s.map(e=>Dy.when[e]),i),"data-component":"Hidden","data-when":s.join(" ")},o))}Ey.displayName="Hidden";var zy=wt(Ey);const Py=bt("mark",{variants:{variant:{attention:"mark-attention",accent:"mark-accent",success:"mark-success",danger:"mark-danger",neutral:"mark-neutral"},size:{large:"mark-size-large",medium:"mark-size-medium",small:"mark-size-small"},weight:{light:"mark-weight-light",normal:"mark-weight-normal",medium:"mark-weight-medium",semibold:"mark-weight-semibold"}}});function Ry(e,t){const a=e,{as:n="mark",className:i,variant:r="attention",size:o,weight:s}=a,l=S(a,["as","className","variant","size","weight"]);return P.jsx(n,Object.assign({ref:t,className:yt(Py({variant:r,size:o,weight:s}),i),"data-component":"Mark","data-variant":r,"data-size":o,"data-weight":s},l))}Ry.displayName="Mark";var $y=wt(Ry);const By=(e,t,a=!1)=>{const n=(e=>("string"==typeof e?[e]:null!=e?e:[]).filter(e=>e.length>0).sort((e,t)=>t.length-e.length))(t);if(0===e.length)return[];if(0===n.length)return[{text:e,matched:!1}];const i=a?e:e.toLowerCase(),r=a?n:n.map(e=>e.toLowerCase()),o=[];let s=0,l=0;const c=t=>{t>l&&o.push({text:e.slice(l,t),matched:!1})};for(;s<e.length;){const t=r.find(e=>i.startsWith(e,s));if(void 0===t){s+=1;continue}c(s);const a=s+t.length,n=o[o.length-1];(null==n?void 0:n.matched)?n.text+=e.slice(s,a):o.push({text:e.slice(s,a),matched:!0}),s=a,l=a}return c(e.length),o};function _y(e,t){const a=e,{as:n="span",children:i="",match:r,caseSensitive:o=!1,variant:s="attention"}=a,l=S(a,["as","children","match","caseSensitive","variant"]),c=C.useMemo(()=>By(i,r,o),[i,r,o]);return P.jsx(n,Object.assign({ref:t,"data-component":"Highlight","data-variant":s,"data-case-sensitive":o},l,{children:c.map((e,t)=>e.matched?P.jsx($y,{variant:s,children:e.text},t):e.text)}))}_y.displayName="Highlight";var Vy=wt(_y);const Hy=bt("image",{variants:{fit:{contain:"image-fit-contain",cover:"image-fit-cover",fill:"image-fit-fill",none:"image-fit-none","scale-down":"image-fit-scale-down"},borderRadius:{none:"image-radius-none",small:"image-radius-small",medium:"image-radius-medium",large:"image-radius-large",full:"image-radius-full"}}});function Fy(e,t){const a=e,{as:n="img",className:i,alt:r="",borderRadius:o="none",fit:s="cover",fallbackSrc:l,loading:c="lazy",src:d,onError:u}=a,m=S(a,["as","className","alt","borderRadius","fit","fallbackSrc","loading","src","onError"]),[p,h]=C.useState(void 0),g=void 0!==l&&void 0!==d&&d===p;return P.jsx(n,Object.assign({ref:t,alt:r,src:g?l:d,loading:c,onError:e=>{h(d),null==u||u(e)},className:yt(Hy({borderRadius:o,fit:s}),i),"data-component":"Image","data-border-radius":o,"data-fit":s,"data-fallback":g||void 0},m))}Fy.displayName="Image";var Wy=wt(Fy);const qy="inline-message-icon",Gy=bt("inline-message",{variants:{size:{small:"inline-message-small",medium:"inline-message-medium"},variant:{critical:"inline-message-critical",success:"inline-message-success",unavailable:"inline-message-unavailable",warning:"inline-message-warning"}}}),Ky={critical:Zt,success:$t,unavailable:ja,warning:ja},Uy=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})};function Yy(e,t){const{className:a,children:n,size:i="medium",variant:r,leadingVisual:o}=e,s=S(e,["className","children","size","variant","leadingVisual"]),l=r?Ky[r]:ea;return P.jsxs("div",Object.assign({ref:t,className:yt(Gy({size:i,variant:r}),a),"data-component":"InlineMessage","data-size":i,"data-variant":r},s,{children:[P.jsx("span",{className:qy,"data-component":"InlineMessage.Icon",children:void 0===o?P.jsx(l,{}):Uy(o)}),P.jsx("span",{"data-component":"InlineMessage.Content",children:n})]}))}Yy.displayName="InlineMessage";var Zy=wt(Yy);const Qy=([e,...t])=>{var a;return(null!==(a=null==e?void 0:e.toUpperCase())&&void 0!==a?a:"")+t.join("").toLowerCase()},Xy=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"⌥":"Alt",control:"⌃",shift:"⇧",meta:"apple"===e?"⌘":"windows"===e?"Win":"Meta",mod:"apple"===e?"⌘":"⌃",pageup:"PgUp",pagedown:"PgDn",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",plus:"+",backspace:"⌫",delete:"Del",space:"␣",tab:"⇥",enter:"⏎",escape:"Esc",function:"Fn",capslock:"CapsLock",insert:"Ins",printscreen:"PrtScn"}))(t)[e])&&void 0!==a?a:Qy(e)},Jy=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"Option":"Alt",meta:"apple"===e?"Command":"windows"===e?"Windows":"Meta",mod:"apple"===e?"Command":"Control","+":"Plus",pageup:"Page Up",pagedown:"Page Down",arrowup:"Up Arrow",arrowdown:"Down Arrow",arrowleft:"Left Arrow",arrowright:"Right Arrow",capslock:"Caps Lock",printscreen:"Print Screen"}))(t)[e])&&void 0!==a?a:Qy(e)},ew=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"option":"alt",meta:"apple"===e?"command":"windows"===e?"Windows":"meta",mod:"apple"===e?"command":"control",pageup:"page up",pagedown:"page down",arrowup:"up arrow",arrowdown:"down arrow",arrowleft:"left arrow",arrowright:"right arrow",capslock:"caps lock",printscreen:"print screen","`":"backtick","~":"tilde","!":"exclamation point","@":"at","#":"hash",$:"dollar sign","%":"percent","^":"caret","&":"ampersand","*":"asterisk","(":"left parenthesis",")":"right parenthesis",_:"underscore","-":"dash","+":"plus","=":"equals","[":"left bracket","{":"left curly brace","]":"right bracket","}":"right curly brace","\\":"backslash","|":"pipe",";":"semicolon",":":"colon","'":"single quote",'"':"double quote",",":"comma","<":"left angle bracket",".":"period",">":"right angle bracket","/":"forward slash","?":"question mark"," ":"space"}))(t)[e])&&void 0!==a?a:e.toLowerCase()},tw={control:1,meta:2,alt:3,option:4,shift:5,function:6},aw=e=>{var t;return null!==(t=tw[e])&&void 0!==t?t:1/0},nw=e=>e.split("+").map(e=>e.toLowerCase()).sort((e,t)=>aw(e)-aw(t)),iw=e=>e.split(" "),rw=(e,t)=>iw(e).map(e=>((e,t)=>nw(e).map(e=>ew(e,t)).join(" "))(e,t)).join(" then "),ow=(e,t)=>rw(e,t),sw=e.createContext(null),lw=()=>()=>{},cw=()=>{const e="undefined"==typeof navigator?"":`${navigator.platform} ${navigator.userAgent}`;return/mac|iphone|ipad|ipod/i.test(e)?"apple":/win/i.test(e)?"windows":"other"},dw=()=>"other",uw=()=>{const t=e.useContext(sw),a=e.useSyncExternalStore(lw,cw,dw);return null!=t?t:a},mw="sr-only";function pw(e){const{name:t,format:a="condensed"}=e,n=uw();return P.jsxs(P.Fragment,{children:[P.jsx("span",{className:mw,children:ew(t,n)}),P.jsx("span",{"aria-hidden":"true",children:"condensed"===a?Xy(t,n):Jy(t,n)})]})}pw.displayName="KeybindingHint.Key";const hw=bt("keybinding-hint-chord",{variants:{variant:{normal:"keybinding-hint-chord-normal",onEmphasis:"keybinding-hint-chord-on-emphasis",onPrimary:"keybinding-hint-chord-on-primary"},size:{normal:"keybinding-hint-chord-size-normal",small:"keybinding-hint-chord-size-small"}}});function gw(e){const{keys:t,format:a="condensed",variant:n="normal",size:i="normal"}=e;return P.jsx("span",{className:yt(hw({variant:n,size:i})),"data-component":"KeybindingHint.Chord",children:nw(t).map((e,t)=>P.jsxs(C.Fragment,{children:[t>0&&"full"===a?P.jsx("span",{"aria-hidden":"true",children:" + "}):" ",P.jsx(pw,{name:e,format:a})]},t))})}gw.displayName="KeybindingHint.Chord";const fw="keybinding-hint",vw="sr-only";function bw(e,t){const{className:a,keys:n,format:i="condensed",variant:r="normal",size:o="normal"}=e,s=S(e,["className","keys","format","variant","size"]);return P.jsx("kbd",Object.assign({ref:t,className:yt(fw,a),"data-component":"KeybindingHint","data-format":i,"data-variant":r,"data-size":o},s,{children:iw(n).map((e,t)=>P.jsxs(C.Fragment,{children:[t>0?P.jsxs(P.Fragment,{children:[P.jsx("span",{className:vw,children:"then"})," "]}):null,P.jsx(gw,{keys:e,format:i,variant:r,size:o})]},t))}))}bw.displayName="KeybindingHint";var xw=wt(bw);const yw=bt("label",{variants:{size:{small:"label-small",medium:"label-medium",large:"label-large"},variant:{default:"label-default",primary:"label-primary",secondary:"label-secondary",accent:"label-accent",success:"label-success",attention:"label-attention",severe:"label-severe",danger:"label-danger",done:"label-done",sponsors:"label-sponsors"}}});function ww(e,t){const a=e,{as:n="span",className:i,size:r="small",variant:o="default"}=a,s=S(a,["as","className","size","variant"]);return P.jsx(n,Object.assign({ref:t,className:yt(yw({size:r,variant:o}),i),"data-component":"Label","data-size":r,"data-variant":o},s))}ww.displayName="Label";var Nw=wt(ww);function jw(e,t){const a=e,{as:n="a"}=a,i=S(a,["as"]);return P.jsx(Yn,Object.assign({ref:t,as:n,"data-component":"LinkButton"},i))}jw.displayName="LinkButton";var kw=wt(jw);const Cw="markdown";function Sw(e,t){const{className:a,source:n,transformers:i,preserveNewLines:r=!1}=e,l=S(e,["className","source","transformers","preserveNewLines"]),[c]=s.useLexicalComposerContext(),d=C.useCallback(e=>{c.setRootElement(e)},[c]),u=H(t,d);return Oi(()=>{c.update(()=>{o.$convertFromMarkdownString(n,i,void 0,r)},{discrete:!0})},[c,n,i,r]),P.jsx("div",Object.assign({ref:u,className:yt(Cw,a),"data-component":"Markdown"},l))}Sw.displayName="MarkdownProse";var Ow=wt(Sw);const Mw="Markdown",Tw=[u.HeadingNode,u.QuoteNode,d.ListNode,d.ListItemNode,c.LinkNode,l.CodeNode,l.CodeHighlightNode],Aw=[o.CHECK_LIST,...o.TRANSFORMERS],Lw={paragraph:"markdown-paragraph",heading:{h1:"markdown-heading-1",h2:"markdown-heading-2",h3:"markdown-heading-3",h4:"markdown-heading-4",h5:"markdown-heading-5",h6:"markdown-heading-6"},quote:"markdown-quote",link:"markdown-link",code:"markdown-code-block",list:{ul:"markdown-list-bullet",ol:"markdown-list-number",listitem:"markdown-list-item",checklist:"markdown-list-check",listitemChecked:"markdown-list-item-checked",listitemUnchecked:"markdown-list-item-unchecked",nested:{listitem:"markdown-list-item-nested"}},text:{bold:"markdown-bold",italic:"markdown-italic",strikethrough:"markdown-strikethrough",highlight:"markdown-highlight",code:"markdown-code-inline"},ltr:"markdown-ltr",rtl:"markdown-rtl"};function Iw(e,t){const{className:a,children:n="",transformers:i=Aw,preserveNewLines:o=!1,namespace:s=Mw,onError:l}=e,c=S(e,["className","children","transformers","preserveNewLines","namespace","onError"]),d={namespace:s,theme:Lw,nodes:Tw,editable:!1,onError:null!=l?l:e=>{throw e}};return P.jsx(r.LexicalComposer,{initialConfig:d,children:P.jsx(Ow,Object.assign({ref:t,className:a,source:n,transformers:i,preserveNewLines:o},c))})}Iw.displayName="Markdown";var Dw=wt(Iw);const Ew="nav-list-heading",zw="sr-only";function Pw(e){const{as:t="h2",visuallyHidden:a=!1,className:n}=e,i=S(e,["as","visuallyHidden","className"]);return P.jsx(tn,Object.assign({as:t,size:"small",className:yt(a?zw:Ew,n),"data-component":"NavList.Heading"},i))}Pw.displayName="NavList.Heading";const Rw=C.createContext(null),$w=C.createContext({depth:0}),Bw=C.createContext({buttonId:"",subNavId:"",isOpen:!1}),_w=e=>{const t=null===e?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},Vw={heading:Pw},Hw={container:"NavList"};function Fw(e,t){var a,n;const{children:i,className:r,"aria-label":o,"aria-labelledby":s}=e,l=S(e,["children","className","aria-label","aria-labelledby"]),[c,d]=Qa(i,Vw),u=Da(),m=c.heading,p=m?null!==(a=m.props.id)&&void 0!==a?a:u:void 0,h=m?(g=null!==(n=m.props.as)&&void 0!==n?n:"h2",Number.parseInt(g.slice(1),10)):null;var g;const f=null!=s?s:o?void 0:p;return P.jsx("nav",Object.assign({ref:t,"aria-label":o,"aria-labelledby":f,className:yt(r),"data-component":"NavList"},l,{children:P.jsxs(Rw.Provider,{value:h,children:[m?C.cloneElement(m,{id:p}):null,P.jsx(ln.Provider,{value:Hw,children:P.jsx(xi,{children:d})})]})}))}Fw.displayName="NavList";var Ww=C.forwardRef(Fw);function qw(e){const{title:t,children:a,hideDivider:n=!1}=e,i=S(e,["title","children","hideDivider"]),r=C.useContext(Rw);return P.jsxs(P.Fragment,{children:[n?null:P.jsx(xi.Divider,{}),P.jsxs(xi.Group,Object.assign({"data-component":"NavList.Group"},i,{children:[t?P.jsx(xi.GroupHeading,{as:_w(r),children:t}):null,a]}))]})}qw.displayName="NavList.Group";const Gw="nav-list-chevron",Kw={trailingVisual:xi.TrailingVisual},Uw=e=>{if(!C.isValidElement(e))return!1;const t=e.props["aria-current"];return!(!Boolean(t)||"false"===t)||C.Children.toArray(e.props.children).some(Uw)};function Yw(e){var t;const{children:a,subNav:n,defaultOpen:i,className:r}=e,o=Da(),s=Da(),l=C.useRef(null),c=C.useMemo(()=>Uw(n),[n]),[d,u]=C.useState(null!=i?i:c),[m,p]=C.useState(c);Oi(()=>{var e;const t=c||Boolean(null===(e=l.current)||void 0===e?void 0:e.querySelector("[aria-current]:not([aria-current='false'])"));p(t),t&&u(!0)},[c,n]);const h=C.useMemo(()=>({buttonId:o,subNavId:s,isOpen:d}),[o,s,d]),[g,f]=Qa(a,Kw);return P.jsx(Bw.Provider,{value:h,children:P.jsxs(xi.Item,{id:o,active:!d&&m,"aria-expanded":d,"aria-controls":s,onSelect:()=>u(e=>!e),className:r,"data-component":"NavList.Item",children:[f,P.jsxs(xi.TrailingVisual,{children:[null===(t=g.trailingVisual)||void 0===t?void 0:t.props.children,P.jsx(_t,{className:Gw})]}),P.jsx(xi.SubItem,{children:C.cloneElement(n,{ref:l})})]})})}Yw.displayName="NavList.ItemWithSubNav";const Zw="nav-list-sub-nav",Qw="nav-list-sub-nav-items";function Xw(e,t){const{className:a,children:n}=e,i=S(e,["className","children"]),{buttonId:r,subNavId:o,isOpen:s}=C.useContext(Bw),{depth:l}=C.useContext($w),c=C.useMemo(()=>({depth:l+1}),[l]);return!r||!o||l>=4?null:P.jsx($w.Provider,{value:c,children:P.jsx("ul",Object.assign({ref:t,id:o,hidden:!s,"aria-labelledby":r,className:yt(Zw,Qw,a),"data-component":"NavList.SubNav","data-depth":l+1},i,{children:n}))})}Xw.displayName="NavList.SubNav";var Jw=wt(Xw);const eN={subNav:Jw},tN=xi.LinkItem;function aN(e,t){const a=e,{as:n,children:i,className:r,defaultOpen:o,"aria-current":s}=a,l=S(a,["as","children","className","defaultOpen","aria-current"]),[c,d]=Qa(i,eN);return c.subNav?P.jsx(Yw,{subNav:c.subNav,defaultOpen:o,className:r,children:d}):P.jsx(tN,Object.assign({ref:t,as:n,"aria-current":s,active:Boolean(s)&&"false"!==s,className:r,"data-component":"NavList.Item"},l,{children:i}))}aN.displayName="NavList.Item";var nN=wt(aN);const iN=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})};function rN(e,t){const{label:a="Show more",pages:n=0,items:i,renderItem:r}=e,o=S(e,["label","pages","items","renderItem"]),[s,l]=C.useState(0),c=Da(),d=i.length/n,u=0===n?i.length:Math.ceil(d*s),m=1===s?0:u-Math.floor(d);return Oi(()=>{if(0===s)return;const e=document.querySelector(`[data-expand-focus-target="${c}"]`);null==e||e.focus()},[s,c]),P.jsxs(P.Fragment,{children:[s>0?i.slice(0,u).map((e,t)=>{var a;const{text:n,leadingVisual:i,trailingVisual:o,trailingAction:s}=e,l=S(e,["text","leadingVisual","trailingVisual","trailingAction"]),d=t===m?c:void 0;return r?r(Object.assign(Object.assign({},e),{"data-expand-focus-target":d})):P.jsxs(nN,Object.assign({"data-expand-focus-target":d},l,{children:[i?P.jsx(xi.LeadingVisual,{children:P.jsx(i,{})}):null,n,o?P.jsx(xi.TrailingVisual,{children:iN(o)}):null,s?P.jsx(xi.TrailingAction,Object.assign({},s)):null]}),null!==(a=e.id)&&void 0!==a?a:t)}):null,s<n||0===s?P.jsxs(xi.Item,Object.assign({ref:t,as:"button","aria-expanded":!1,onSelect:()=>l(e=>e+1),"data-component":"NavList.GroupExpand"},o,{children:[a,P.jsx(xi.TrailingVisual,{children:P.jsx(Ot,{})})]})):null]})}rN.displayName="NavList.GroupExpand";var oN=C.forwardRef(rN);const sN="nav-list-group-heading";function lN(e){const{as:t,className:a}=e,n=S(e,["as","className"]),i=C.useContext(Rw);return P.jsx(xi.GroupHeading,Object.assign({as:null!=t?t:_w(i),className:yt(sN,a),"data-component":"NavList.GroupHeading"},n))}lN.displayName="NavList.GroupHeading";const cN=Ya(lN,wn),dN=Object.assign(Ww,{Heading:Pw,Item:nN,SubNav:Jw,Group:qw,GroupHeading:cN,GroupExpand:oN,Description:vn,LeadingVisual:_n,TrailingVisual:ri,TrailingAction:ii,Divider:xn}),uN=bt("page-content",{variants:{width:{full:"page-content-width-full",medium:"page-content-width-medium",large:"page-content-width-large",xlarge:"page-content-width-xlarge"},padding:{none:"page-content-padding-none",condensed:"page-content-padding-condensed",normal:"page-content-padding-normal",spacious:"page-content-padding-spacious"},gap:{none:"page-content-gap-none",condensed:"page-content-gap-condensed",normal:"page-content-gap-normal",spacious:"page-content-gap-spacious"}}});function mN(e,t){const a=e,{as:n="main",className:i,width:r="full",padding:o="none",gap:s="normal"}=a,l=S(a,["as","className","width","padding","gap"]);return P.jsx(n,Object.assign({ref:t,className:yt(uN({width:r,padding:o,gap:s}),i),"data-component":"PageContent","data-width":r,"data-padding":o,"data-gap":s},l))}mN.displayName="PageContent";var pN=wt(mN);const hN=["narrow","regular","wide"],gN="hidden",fN={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},vN=e=>{return a=gN,n=fN,(t=e).length===hN.length?a:t.map(e=>n[e]);var t,a,n},bN=e=>e.length>0?e.join(" "):void 0,xN="page-content-section";function yN(e,t){const a=e,{as:n="section",className:i,hidden:r}=a,o=S(a,["as","className","hidden"]),s=((e=!1)=>"boolean"==typeof e?e?[...hN]:[]:hN.filter(t=>e[t]))(r);return P.jsx(n,Object.assign({ref:t,className:yt(xN,i,vN(s)),"data-component":"PageContent.Section","data-hidden":bN(s)},o))}yN.displayName="PageContent.Section";var wN=wt(yN);const NN=Object.assign(pN,{Section:wN}),jN=["narrow","regular","wide"],kN="hidden",CN={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},SN=(e=!1)=>"boolean"==typeof e?e?[...jN]:[]:jN.filter(t=>e[t]),ON=(e,t,a)=>e.length===jN.length?t:e.map(e=>a[e]),MN=e=>ON(e,kN,CN),TN=e=>e.length>0?e.join(" "):void 0;var AN=wt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=S(a,["as","className","hidden"]),s=SN(r);return P.jsx(n,Object.assign({ref:t,className:yt(i,MN(s)),"data-hidden":TN(s)},o))});const LN="page-footer-navigation";function IN(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=S(e,["className","as","aria-label","aria-labelledby"]),s="nav"===n;return P.jsx(AN,Object.assign({ref:t,as:n,"aria-label":s?i:void 0,"aria-labelledby":s?r:void 0,className:yt(LN,a),"data-component":"PageFooter.Navigation"},o))}IN.displayName="PageFooter.Navigation";var DN=wt(IN);const EN={root:"page-footer",text:"page-footer-text",variant:{normal:"page-footer-normal",condensed:"page-footer-condensed"},narrowVariant:{normal:"page-footer-narrow-normal",condensed:"page-footer-narrow-condensed"},regularVariant:{normal:"page-footer-regular-normal",condensed:"page-footer-regular-condensed"},wideVariant:{normal:"page-footer-wide-normal",condensed:"page-footer-wide-condensed"},border:"page-footer-border",borderWhen:{narrow:"page-footer-border-narrow",regular:"page-footer-border-regular",wide:"page-footer-border-wide"}},zN=e=>{var t;const a={hasNavigation:!1};for(const n of C.Children.toArray(e))if(C.isValidElement(n)){if(n.type===C.Fragment){const e=zN(n.props.children);e.hasNavigation&&(a.hasNavigation=!0,a.navigationHidden=e.navigationHidden);continue}n.type===DN&&(a.hasNavigation=!0,a.navigationHidden=null!==(t=n.props.hidden)&&void 0!==t&&t)}return a},PN=e=>"string"==typeof e?EN.variant[e]:[(null==e?void 0:e.narrow)&&EN.narrowVariant[e.narrow],(null==e?void 0:e.regular)&&EN.regularVariant[e.regular],(null==e?void 0:e.wide)&&EN.wideVariant[e.wide]];function RN(e,t){const a=e,{as:n="footer",className:i,children:r,variant:o="normal",hasBorder:s}=a,l=S(a,["as","className","children","variant","hasBorder"]),{hasNavigation:c,navigationHidden:d}=zN(r),u=SN(!c||d);return P.jsx(n,Object.assign({ref:t,className:yt(EN.root,EN.text,PN(o),s&&ON(u,EN.border,EN.borderWhen),i),"data-component":"PageFooter","data-has-border":s?"":void 0,"data-has-navigation":c?"":void 0},Li("size-variant",o),l,{children:r}))}RN.displayName="PageFooter";var $N=wt(RN);const BN="page-footer-actions";function _N(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(AN,Object.assign({ref:t,className:yt(BN,a),"data-component":"PageFooter.Actions"},n))}_N.displayName="PageFooter.Actions";var VN=wt(_N);const HN="page-footer-copyright";function FN(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(AN,Object.assign({ref:t,className:yt(HN,a),"data-component":"PageFooter.Copyright"},n))}FN.displayName="PageFooter.Copyright";var WN=wt(FN);const qN="page-footer-description";function GN(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(AN,Object.assign({ref:t,className:yt(qN,a),"data-component":"PageFooter.Description"},n))}GN.displayName="PageFooter.Description";var KN=wt(GN);const UN="page-footer-leading-visual";function YN(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(AN,Object.assign({ref:t,className:yt(UN,a),"data-component":"PageFooter.LeadingVisual"},n))}YN.displayName="PageFooter.LeadingVisual";var ZN=wt(YN);const QN=Object.assign($N,{Navigation:DN,LeadingVisual:ZN,Copyright:WN,Actions:VN,Description:KN}),XN=["narrow","regular","wide"],JN="hidden",ej={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},tj=(e=!1)=>"boolean"==typeof e?e?[...XN]:[]:XN.filter(t=>e[t]),aj=(e,t,a)=>e.length===XN.length?t:e.map(e=>a[e]),nj=e=>aj(e,JN,ej),ij=e=>e.length>0?e.join(" "):void 0;var rj=wt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=S(a,["as","className","hidden"]),s=tj(r);return P.jsx(n,Object.assign({ref:t,className:yt(i,nj(s)),"data-hidden":ij(s)},o))});const oj="page-header-navigation";function sj(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=S(e,["className","as","aria-label","aria-labelledby"]),s="nav"===n;return P.jsx(rj,Object.assign({ref:t,as:n,"aria-label":s?i:void 0,"aria-labelledby":s?r:void 0,className:yt(oj,a),"data-component":"PageHeader.Navigation"},o))}sj.displayName="PageHeader.Navigation";var lj=wt(sj);const cj="page-header-title-area";function dj(e,t){const{className:a,variant:n="medium"}=e,i=S(e,["className","variant"]);return P.jsx(rj,Object.assign({ref:t,className:yt(cj,a),"data-component":"PageHeader.TitleArea"},Li("size-variant",n),i))}dj.displayName="PageHeader.TitleArea";var uj=wt(dj);const mj={root:"page-header",title:"page-header-title-type",titleVariant:{subtitle:"page-header-title-subtitle",medium:"page-header-title-medium",large:"page-header-title-large"},narrowTitleVariant:{subtitle:"page-header-narrow-title-subtitle",medium:"page-header-narrow-title-medium",large:"page-header-narrow-title-large"},regularTitleVariant:{subtitle:"page-header-regular-title-subtitle",medium:"page-header-regular-title-medium",large:"page-header-regular-title-large"},wideTitleVariant:{subtitle:"page-header-wide-title-subtitle",medium:"page-header-wide-title-medium",large:"page-header-wide-title-large"},border:"page-header-border",borderWhen:{narrow:"page-header-border-narrow",regular:"page-header-border-regular",wide:"page-header-border-wide"}},pj=e=>{var t,a;const n={hasNavigation:!1};for(const i of C.Children.toArray(e))if(C.isValidElement(i)){if(i.type===C.Fragment){const e=pj(i.props.children);void 0!==e.titleVariant&&(n.titleVariant=e.titleVariant),e.hasNavigation&&(n.hasNavigation=!0,n.navigationHidden=e.navigationHidden);continue}i.type!==uj?i.type===lj&&(n.hasNavigation=!0,n.navigationHidden=null!==(a=i.props.hidden)&&void 0!==a&&a):n.titleVariant=null!==(t=i.props.variant)&&void 0!==t?t:"medium"}return n};function hj(e,t){const a=e,{as:n="div",className:i,children:r,hasBorder:o}=a,s=S(a,["as","className","children","hasBorder"]),{titleVariant:l,hasNavigation:c,navigationHidden:d}=pj(r),u=tj(!c||d);return P.jsx(n,Object.assign({ref:t,className:yt(mj.root,l&&mj.title,l&&(m=l,"string"==typeof m?mj.titleVariant[m]:[(null==m?void 0:m.narrow)&&mj.narrowTitleVariant[m.narrow],(null==m?void 0:m.regular)&&mj.regularTitleVariant[m.regular],(null==m?void 0:m.wide)&&mj.wideTitleVariant[m.wide]]),o&&aj(u,mj.border,mj.borderWhen),i),"data-component":"PageHeader","data-has-border":o?"":void 0,"data-has-navigation":c?"":void 0},Li("title-size-variant",l),s,{children:r}));var m}hj.displayName="PageHeader";var gj=wt(hj);const fj="page-header-actions";function vj(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(rj,Object.assign({ref:t,className:yt(fj,a),"data-component":"PageHeader.Actions"},n))}vj.displayName="PageHeader.Actions";var bj=wt(vj);const xj="page-header-breadcrumbs";function yj(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(rj,Object.assign({ref:t,className:yt(xj,a),"data-component":"PageHeader.Breadcrumbs"},n))}yj.displayName="PageHeader.Breadcrumbs";var wj=wt(yj);const Nj="page-header-context-area";function jj(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=S(e,["className","hidden"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Nj,a),hidden:n,"data-component":"PageHeader.ContextArea"},i))}jj.displayName="PageHeader.ContextArea";var kj=wt(jj);const Cj="page-header-context-area-actions";function Sj(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=S(e,["className","hidden"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Cj,a),hidden:n,"data-component":"PageHeader.ContextAreaActions"},i))}Sj.displayName="PageHeader.ContextAreaActions";var Oj=wt(Sj);const Mj="page-header-context-bar";function Tj(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=S(e,["className","hidden"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Mj,a),hidden:n,"data-component":"PageHeader.ContextBar"},i))}Tj.displayName="PageHeader.ContextBar";var Aj=wt(Tj);const Lj="page-header-description";function Ij(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Lj,a),"data-component":"PageHeader.Description"},n))}Ij.displayName="PageHeader.Description";var Dj=wt(Ij);const Ej="page-header-leading-action";function zj(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=S(e,["className","hidden"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Ej,a),hidden:n,"data-component":"PageHeader.LeadingAction"},i))}zj.displayName="PageHeader.LeadingAction";var Pj=wt(zj);const Rj="page-header-leading-visual";function $j(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Rj,a),"data-component":"PageHeader.LeadingVisual"},n))}$j.displayName="PageHeader.LeadingVisual";var Bj=wt($j);const _j="page-header-parent-link";function Vj(e,t){const a=e,{className:n,children:i,hidden:r={regular:!0,wide:!0}}=a,o=S(a,["className","children","hidden"]),s=tj(r);return P.jsxs(bs,Object.assign({ref:t,muted:!0,className:yt(_j,n,nj(s)),"data-component":"PageHeader.ParentLink","data-hidden":ij(s)},o,{children:[P.jsx(At,{}),P.jsx("span",{children:i})]}))}Vj.displayName="PageHeader.ParentLink";var Hj=wt(Vj);const Fj="page-header-title";function Wj(e,t){const{className:a,as:n="h2"}=e,i=S(e,["className","as"]);return P.jsx(rj,Object.assign({ref:t,as:n,className:yt(Fj,a),"data-component":"PageHeader.Title"},i))}Wj.displayName="PageHeader.Title";var qj=wt(Wj);const Gj="page-header-trailing-action";function Kj(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=S(e,["className","hidden"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Gj,a),hidden:n,"data-component":"PageHeader.TrailingAction"},i))}Kj.displayName="PageHeader.TrailingAction";var Uj=wt(Kj);const Yj="page-header-trailing-visual";function Zj(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(rj,Object.assign({ref:t,className:yt(Yj,a),"data-component":"PageHeader.TrailingVisual"},n))}Zj.displayName="PageHeader.TrailingVisual";var Qj=wt(Zj);const Xj=Object.assign(gj,{ContextArea:kj,ParentLink:Hj,ContextBar:Aj,ContextAreaActions:Oj,TitleArea:uj,LeadingAction:Pj,Breadcrumbs:wj,LeadingVisual:Bj,Title:qj,TrailingVisual:Qj,TrailingAction:Uj,Actions:bj,Description:Dj,Navigation:lj}),Jj={current:null},ek=e.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:Jj,contentWrapperRef:Jj,sidebarRef:Jj,sidebarContentWrapperRef:Jj}),tk="page-layout-horizontal-divider";function ak(e,t){const{className:a,style:n,variant:i="none",position:r}=e,o=S(e,["className","style","variant","position"]),{padding:s}=C.useContext(ek);return P.jsx("div",Object.assign({ref:t,className:yt(tk,a),style:Object.assign({"--spacing-divider":`var(--page-layout-spacing-${s})`},n),"data-component":"PageLayout.HorizontalDivider"},Li("variant",i),Li("position",r),o))}ak.displayName="PageLayout.HorizontalDivider";var nk=wt(ak);const ik="page-layout-footer",rk="page-layout-hidden",ok="page-layout-footer-divider",sk="page-layout-region-content";function lk(e,t){const{className:a,style:n,children:i,padding:r="none",divider:o="none",hidden:s=!1}=e,l=S(e,["className","style","children","padding","divider","hidden"]),{rowGap:c}=C.useContext(ek);return P.jsxs("footer",Object.assign({ref:t,className:yt(ik,rk,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${c})`},n),"data-component":"PageLayout.Footer"},Li("hidden",s),l,{children:[P.jsx(nk,{variant:o,className:ok,style:{"--spacing":`var(--page-layout-spacing-${c})`}}),P.jsx("div",{className:sk,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i})]}))}lk.displayName="PageLayout.Footer";var ck=wt(lk);const dk="page-layout-header",uk="page-layout-hidden",mk="page-layout-region-content",pk="page-layout-header-divider";function hk(e,t){const{className:a,style:n,children:i,padding:r="none",divider:o="none",hidden:s=!1}=e,l=S(e,["className","style","children","padding","divider","hidden"]),{rowGap:c}=C.useContext(ek);return P.jsxs("header",Object.assign({ref:t,className:yt(dk,uk,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${c})`},n),"data-component":"PageLayout.Header"},Li("hidden",s),l,{children:[P.jsx("div",{className:mk,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i}),P.jsx(nk,{variant:o,className:pk,style:{"--spacing":`var(--page-layout-spacing-${c})`}})]}))}hk.displayName="PageLayout.Header";var gk=wt(hk);const fk=1280,vk={small:256,medium:296,large:320},bk=e=>"object"==typeof e&&"min"in e&&"default"in e&&"max"in e,xk=e=>"small"===e||"medium"===e||"large"===e,yk=e=>xk(e)?vk[e]:bk(e)?parseInt(e.default,10):0,wk=()=>"undefined"==typeof window?511:window.innerWidth>=fk?959:511,Nk=e=>`Pane width ${e} pixels`,jk=(e,t)=>{e&&(void 0!==t.min&&e.setAttribute("aria-valuemin",String(t.min)),void 0!==t.max&&e.setAttribute("aria-valuemax",String(t.max)),void 0!==t.current&&(e.setAttribute("aria-valuenow",String(t.current)),e.setAttribute("aria-valuetext",Nk(t.current))))},kk=(e,t)=>{try{localStorage.setItem(e,String(t))}catch(e){}},Ck=e=>{try{const t=localStorage.getItem(e);if(null!==t){const e=Number(t);if(!Number.isNaN(e)&&e>0)return Math.round(e)}}catch(e){}return null},Sk="page-layout-drag-handle",Ok=e=>"ArrowLeft"===e||"ArrowRight"===e||"ArrowUp"===e||"ArrowDown"===e;function Mk(e){const{className:t,handleRef:a,onDragStart:n,onDrag:i,onDragEnd:r,onDoubleClick:o,"aria-label":s,"aria-labelledby":l,"aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":u,dragTargetRef:m,contentWrapperRef:p}=e,h=C.useRef({onDragStart:n,onDrag:i,onDragEnd:r});C.useEffect(()=>{h.current={onDragStart:n,onDrag:i,onDragEnd:r}});const g=C.useRef(!1),f=C.useRef(null),v=C.useRef(null),b=C.useCallback(()=>{var e,t;g.current||((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.setProperty("--drag-handle-background-color","var(--background-color-accent-emphasis)"),null==e||e.style.setProperty("--drag-handle-opacity","1"),null==e||e.style.setProperty("--drag-handle-transition","none"),null==t||t.setAttribute("data-dragging","true"),null==a||a.setAttribute("data-dragging","true")})({handle:a.current,pane:null!==(e=null==m?void 0:m.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==p?void 0:p.current)&&void 0!==t?t:null}),g.current=!0)},[a,m,p]),x=C.useCallback(()=>{var e,t;g.current&&((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.removeProperty("--drag-handle-background-color"),null==e||e.style.removeProperty("--drag-handle-opacity"),null==e||e.style.removeProperty("--drag-handle-transition"),null==t||t.removeAttribute("data-dragging"),null==a||a.removeAttribute("data-dragging")})({handle:a.current,pane:null!==(e=null==m?void 0:m.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==p?void 0:p.current)&&void 0!==t?t:null}),g.current=!1)},[a,m,p]);C.useEffect(()=>()=>{null!==f.current&&(cancelAnimationFrame(f.current),f.current=null)},[]);return P.jsx("div",{ref:a,role:"slider",tabIndex:0,"aria-label":l?void 0:null!=s?s:"Draggable pane splitter","aria-labelledby":l,"aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":u,"aria-valuetext":void 0===u?void 0:Nk(u),className:yt(Sk,t),onPointerDown:e=>{if(0===e.button){e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}h.current.onDragStart(e.clientX),b()}},onPointerMove:e=>{g.current&&(e.preventDefault(),v.current=e.clientX,null===f.current&&(f.current=requestAnimationFrame(()=>{f.current=null,null!==v.current&&(h.current.onDrag(v.current,!1),v.current=null)})))},onPointerUp:e=>e.preventDefault(),onLostPointerCapture:()=>{g.current&&(null!==f.current&&(cancelAnimationFrame(f.current),f.current=null,v.current=null),x(),h.current.onDragEnd())},onKeyDown:e=>{var t;Ok(e.key)&&(e.preventDefault(),b(),h.current.onDrag("ArrowLeft"===(t=e.key)||"ArrowDown"===t?-3:3,!0))},onKeyUp:e=>{Ok(e.key)&&(e.preventDefault(),x(),h.current.onDragEnd())},onDoubleClick:o,"data-component":"PageLayout.DragHandle"})}Mk.displayName="PageLayout.DragHandle";const Tk="page-layout-vertical-divider";function Ak(e,t){const{className:a,variant:n="none",position:i}=e,r=S(e,["className","variant","position"]);return P.jsx("div",Object.assign({ref:t,className:yt(Tk,a),"data-component":"PageLayout.VerticalDivider"},Li("variant",n),Li("position",i),r))}Ak.displayName="PageLayout.VerticalDivider";var Lk=wt(Ak);const Ik=({width:e,minWidth:t,resizable:a,widthStorageKey:n,paneRef:i,handleRef:r,contentWrapperRef:o,constrainToViewport:s=!1,onResizeEnd:l,currentWidth:c})=>{const d=bk(e),u=d?parseInt(e.min,10):t,m=d?parseInt(e.max,10):null,p=C.useMemo(()=>yk(e),[e]),h=C.useRef(n),g=C.useRef(l);Oi(()=>{h.current=n,g.current=l});const f=C.useRef(s?256:511),v=C.useCallback(()=>{const e=window.innerWidth,t=e>0?Math.max(u,e-f.current):u;return null!==m?s?Math.min(m,t):m:t},[m,u,s]),[b,x]=C.useState(()=>{var e;if("number"==typeof c)return c;return void 0===l&&!0===a&&void 0!==n&&null!==(e=Ck(n))&&void 0!==e?e:p}),[y,w]=C.useState(p),[N,j]=C.useState(c),k=c!==N;k&&(j(c),"number"==typeof c?x(c):void 0!==N&&x(p)),p!==y&&(w(p),void 0!==c||k||x(p));const S=null!=c?c:b,O=C.useRef(S),[M,T]=C.useState(()=>null!=m?m:600),A=C.useRef(M);Oi(()=>{O.current=S},[S]);const L=C.useCallback(()=>yk(e),[e]),I=C.useCallback(e=>{const t=Math.round(e);O.current=t,C.startTransition(()=>{x(t)}),g.current?g.current(t):a&&h.current&&kk(h.current,t)},[a]),D=C.useRef(v);return Oi(()=>{D.current=v}),Oi(()=>{var e;if(!a)return;let t=window.innerWidth;const n=()=>{var e,a;const n=window.innerWidth,o=t<fk!=n<fk;t=n,o&&(f.current=wk());const s=D.current();null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${s}px`);const l=O.current>s;l&&(O.current=s,null===(a=i.current)||void 0===a||a.style.setProperty("--pane-width",`${s}px`)),jk(r.current,{max:s,current:O.current}),(s!==A.current||l)&&(A.current=s,C.startTransition(()=>{T(s),l&&x(s)}))};f.current=wk();const l=D.current();if(A.current=l,null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${l}px`),jk(r.current,{min:u,max:l,current:O.current}),C.startTransition(()=>{T(l)}),null!==m&&!s)return;let c=0,d=null,p=null,h=!1;const g=()=>{var e,t;h&&(h=!1,null===(e=i.current)||void 0===e||e.removeAttribute("data-dragging"),null===(t=null==o?void 0:o.current)||void 0===t||t.removeAttribute("data-dragging"))},v=()=>{(()=>{var e,t;h||(h=!0,null===(e=i.current)||void 0===e||e.setAttribute("data-dragging","true"),null===(t=null==o?void 0:o.current)||void 0===t||t.setAttribute("data-dragging","true"))})();const e=performance.now();e-c>=16?(c=e,n()):null===d&&(d=requestAnimationFrame(()=>{d=null,c=performance.now(),n()})),null!==p&&clearTimeout(p),p=setTimeout(g,150)};return window.addEventListener("resize",v),()=>{null!==d&&cancelAnimationFrame(d),null!==p&&clearTimeout(p),g(),window.removeEventListener("resize",v)}},[a,m,s,u,i,r,o]),{currentWidth:S,currentWidthRef:O,minPaneWidth:u,maxPaneWidth:M,getMaxPaneWidth:v,getDefaultWidth:L,saveWidth:I}},Dk="page-layout-sidebar-wrapper",Ek="page-layout-hidden",zk="page-layout-sidebar-position",Pk="page-layout-sidebar-sticky",Rk="page-layout-sidebar-fullscreen",$k="page-layout-sidebar",Bk="page-layout-sidebar-resizable",_k="page-layout-dragging",Vk="page-layout-sidebar-fullscreen-inner",Hk="page-layout-sidebar-divider";function Fk(e,t){const{className:a,style:n,children:i,id:r,position:o="start",width:s="medium",minWidth:l=256,currentWidth:c,onResizeEnd:d,widthStorageKey:u,padding:m="none",divider:p="none",resizable:h=!1,sticky:g=!1,responsiveVariant:f="default",hidden:v=!1,"aria-label":b,"aria-labelledby":x}=e,y=S(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","responsiveVariant","hidden","aria-label","aria-labelledby"]),{columnGap:w,sidebarRef:N,sidebarContentWrapperRef:j}=C.useContext(ek),k=C.useRef(null),O=C.useRef(0),M=C.useRef(0),T=C.useRef(0),{currentWidth:A,currentWidthRef:L,minPaneWidth:I,maxPaneWidth:D,getMaxPaneWidth:E,getDefaultWidth:z,saveWidth:R}=Ik({width:s,minWidth:l,resizable:h,widthStorageKey:u,paneRef:N,handleRef:k,contentWrapperRef:j,constrainToViewport:!0,onResizeEnd:d,currentWidth:c}),$=H(t,N),B=nh(N),_=Da(r),V=B?Object.assign({role:"region",tabIndex:0},x?{"aria-labelledby":x}:b?{"aria-label":b}:{}):{},F=e=>{var t;null===(t=N.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),L.current=e},W=P.jsx(Lk,{variant:h?"line":p,position:o,className:Hk,style:{"--spacing-column":`var(--page-layout-spacing-${w})`},children:h?P.jsx(Mk,{handleRef:k,dragTargetRef:N,contentWrapperRef:j,"aria-valuemin":I,"aria-valuemax":D,"aria-valuenow":A,onDragStart:e=>{var t,a;O.current=e,M.current=null!==(a=null===(t=N.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:L.current,T.current=E()},onDrag:(e,t)=>{const a=t?E():T.current;if(t){const t="end"===o?-e:e,n=Math.max(I,Math.min(a,L.current+t));return void(n!==L.current&&(F(n),jk(k.current,{current:n,max:a})))}if(!N.current)return;const n=e-O.current,i=Math.max(I,Math.min(a,M.current+("end"===o?-n:n)));Math.round(i)!==Math.round(L.current)&&(F(i),jk(k.current,{current:Math.round(i),max:a}))},onDragEnd:()=>R(L.current),onDoubleClick:()=>{const e=z();F(e),jk(k.current,{current:e}),R(e)}}):null});return P.jsxs("div",Object.assign({className:yt(Dk,Ek,zk,Pk,Rk,a),style:Object.assign({"--spacing-column":`var(--page-layout-spacing-${w})`},n),"data-position":o,"data-sticky":g||void 0,"data-responsive-variant":"default"===f?void 0:f},Li("is-hidden",v),{children:["end"===o?W:null,P.jsx("div",Object.assign({ref:$,suppressHydrationWarning:h&&Boolean(u)&&!d,className:yt($k,Bk,Vk,_k),style:{"--spacing":`var(--page-layout-spacing-${m})`,"--pane-min-width":bk(s)?s.min:`${l}px`,"--pane-max-width":bk(s)?s.max:"calc(100vw - var(--sidebar-max-width-diff))","--pane-width-custom":bk(s)?s.default:void 0,"--pane-width-size":`var(--pane-width-${xk(s)?s:"custom"})`,"--pane-width":`${A}px`},"data-component":"PageLayout.Sidebar","data-resizable":h||void 0},V,r?{id:_}:{},y,{children:i})),"start"===o?W:null]}))}Fk.displayName="PageLayout.Sidebar";var Wk=wt(Fk);const qk="page-layout-content-row",Gk=bt("page-layout",{variants:{hasSidebar:{true:"page-layout-has-sidebar",false:""}}}),Kk=bt("page-layout-wrapper",{variants:{width:{full:"page-layout-width-full",medium:"page-layout-width-medium",large:"page-layout-width-large",xlarge:"page-layout-width-xlarge"}}});function Uk(e,t){const{className:a,style:n,children:i,containerWidth:r="xlarge",padding:o="normal",rowGap:s="normal",columnGap:l="normal"}=e,c=S(e,["className","style","children","containerWidth","padding","rowGap","columnGap"]),d=C.useRef(null),u=C.useRef(null),m=C.useRef(null),p=C.useRef(null),[h,g]=Qa(i,{header:gk,footer:ck,sidebar:Wk}),f=C.useMemo(()=>({padding:o,rowGap:s,columnGap:l,paneRef:d,contentWrapperRef:u,sidebarRef:m,sidebarContentWrapperRef:p}),[o,s,l]);return P.jsx(ek.Provider,{value:f,children:P.jsxs("div",Object.assign({ref:t,className:yt(Gk({hasSidebar:Boolean(h.sidebar)}),a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${o})`},n),"data-component":"PageLayout","data-has-sidebar":h.sidebar?"":void 0},c,{children:[h.sidebar,P.jsxs("div",{ref:p,className:yt(Kk({width:r})),"data-page-layout-wrapper":"","data-width":r,children:[h.header,P.jsx("div",{className:qk,children:g}),h.footer]})]}))})}Uk.displayName="PageLayout";var Yk=wt(Uk);const Zk="page-layout-content-wrapper",Qk="page-layout-hidden",Xk="page-layout-dragging",Jk=bt("page-layout-content",{variants:{width:{full:"page-layout-content-width-full",medium:"page-layout-content-width-medium",large:"page-layout-content-width-large",xlarge:"page-layout-content-width-xlarge"}}});function eC(e,t){const{as:a="main",className:n,children:i,width:r="full",padding:o="none",hidden:s=!1}=e,l=S(e,["as","className","children","width","padding","hidden"]),{contentWrapperRef:c}=C.useContext(ek),d=H(t,c);return P.jsx(a,Object.assign({ref:d,className:yt(Zk,Qk,Xk,n),"data-component":"PageLayout.Content"},Li("is-hidden",s),l,{children:P.jsx("div",{className:yt(Jk({width:r})),"data-width":r,style:{"--spacing":`var(--page-layout-spacing-${o})`},children:i})}))}eC.displayName="PageLayout.Content";var tC=wt(eC);const aC="page-layout-pane-wrapper",nC="page-layout-hidden",iC="page-layout-pane-position",rC="page-layout-pane-sticky",oC="page-layout-pane",sC="page-layout-pane-resizable",lC="page-layout-dragging",cC="page-layout-pane-horizontal-divider",dC="page-layout-pane-vertical-divider";function uC(e,t){var a,n,i;const{className:r,style:o,children:s,id:l,position:c="end",width:d="medium",minWidth:u=256,currentWidth:m,onResizeEnd:p,widthStorageKey:h="paneWidth",padding:g="none",divider:f="none",resizable:v=!1,sticky:b=!1,offsetHeader:x=0,hidden:y=!1,"aria-label":w,"aria-labelledby":N}=e,j=S(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","offsetHeader","hidden","aria-label","aria-labelledby"]),k=vo(c)?"end":c,O=vo(f)?"none":f,{rowGap:M,columnGap:T,paneRef:A,contentWrapperRef:L}=C.useContext(ek),I=C.useRef(null),D=C.useRef(0),E=C.useRef(0),z=C.useRef(0),{currentWidth:R,currentWidthRef:$,minPaneWidth:B,maxPaneWidth:_,getMaxPaneWidth:V,getDefaultWidth:F,saveWidth:W}=Ik({width:d,minWidth:u,resizable:v,widthStorageKey:h,paneRef:A,handleRef:I,contentWrapperRef:L,onResizeEnd:p,currentWidth:m}),q=H(t,A),G=nh(A),K=Da(l),U=G?Object.assign({role:"region",tabIndex:0},N?{"aria-labelledby":N}:w?{"aria-label":w}:{}):{},Y=e=>{var t;null===(t=A.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),$.current=e};return P.jsxs("div",Object.assign({className:yt(aC,nC,iC,rC,r),style:Object.assign({"--offset-header":"number"==typeof x?`${x}px`:x,"--spacing-row":`var(--page-layout-spacing-${M})`,"--spacing-column":`var(--page-layout-spacing-${T})`},o),"data-sticky":b||void 0},Li("is-hidden",y),Li("position",c),{children:[P.jsx(nk,{variant:vo(f)?f:{narrow:O,regular:"none"},position:c,className:cC,style:{"--spacing":`var(--page-layout-spacing-${M})`}}),P.jsx("div",Object.assign({ref:q,suppressHydrationWarning:v&&!p,className:yt(oC,sC,lC),style:{"--spacing":`var(--page-layout-spacing-${g})`,"--pane-min-width":bk(d)?d.min:`${u}px`,"--pane-max-width":bk(d)?d.max:"calc(100vw - var(--pane-max-width-diff))","--pane-width-custom":bk(d)?d.default:void 0,"--pane-width-size":`var(--pane-width-${xk(d)?d:"custom"})`,"--pane-width":`${R}px`},"data-component":"PageLayout.Pane","data-resizable":v||void 0},U,l?{id:K}:{},j,{children:s})),P.jsx(Lk,{variant:vo(f)?{narrow:"none",regular:v?"line":null!==(a=f.regular)&&void 0!==a?a:"none",wide:v?"line":null!==(i=null!==(n=f.wide)&&void 0!==n?n:f.regular)&&void 0!==i?i:"none"}:{narrow:"none",regular:v?"line":O},position:c,className:dC,style:{"--spacing":`var(--page-layout-spacing-${T})`},children:v?P.jsx(Mk,{handleRef:I,dragTargetRef:A,contentWrapperRef:L,"aria-valuemin":B,"aria-valuemax":_,"aria-valuenow":R,onDragStart:e=>{var t,a;D.current=e,E.current=null!==(a=null===(t=A.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:$.current,z.current=V()},onDrag:(e,t)=>{const a=t?V():z.current;if(t){const t=Math.max(B,Math.min(a,$.current+e));return void(t!==$.current&&(Y(t),jk(I.current,{current:t,max:a})))}if(!A.current)return;const n=e-D.current,i=Math.max(B,Math.min(a,E.current+("end"===k?-n:n)));Math.round(i)!==Math.round($.current)&&(Y(i),jk(I.current,{current:Math.round(i),max:a}))},onDragEnd:()=>W($.current),onDoubleClick:()=>{const e=F();Y(e),jk(I.current,{current:e}),W(e)}}):null})]}))}uC.displayName="PageLayout.Pane";var mC=wt(uC);const pC=Object.assign(Yk,{Header:gk,Content:tC,Pane:mC,Sidebar:Wk,Footer:ck}),hC=bt("page-sidebar",{variants:{width:{small:"page-sidebar-width-small",medium:"page-sidebar-width-medium",large:"page-sidebar-width-large"},position:{start:"page-sidebar-start",end:"page-sidebar-end"},padding:{none:"page-sidebar-padding-none",condensed:"page-sidebar-padding-condensed",normal:"page-sidebar-padding-normal",spacious:"page-sidebar-padding-spacious"},gap:{none:"page-sidebar-gap-none",condensed:"page-sidebar-gap-condensed",normal:"page-sidebar-gap-normal",spacious:"page-sidebar-gap-spacious"},sticky:{true:"page-sidebar-sticky",false:""},hasBorder:{true:"",false:""}},compoundVariants:[{hasBorder:!0,position:"start",class:"page-sidebar-border-start"},{hasBorder:!0,position:"end",class:"page-sidebar-border-end"}]});function gC(e,t){const a=e,{as:n="aside",className:i,position:r="start",width:o="medium",padding:s="normal",gap:l="normal",sticky:c,hasBorder:d}=a,u=S(a,["as","className","position","width","padding","gap","sticky","hasBorder"]);return P.jsx(n,Object.assign({ref:t,className:yt(hC({width:o,position:r,padding:s,gap:l,sticky:c,hasBorder:d}),i),"data-component":"PageSidebar","data-position":r,"data-width":o,"data-padding":s,"data-gap":l,"data-sticky":c?"":void 0,"data-has-border":d?"":void 0},u))}gC.displayName="PageSidebar";var fC=wt(gC);const vC=["narrow","regular","wide"],bC="hidden",xC={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},yC=e=>{return a=bC,n=xC,(t=e).length===vC.length?a:t.map(e=>n[e]);var t,a,n},wC=e=>e.length>0?e.join(" "):void 0;var NC=wt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=S(a,["as","className","hidden"]),s=((e=!1)=>"boolean"==typeof e?e?[...vC]:[]:vC.filter(t=>e[t]))(r);return P.jsx(n,Object.assign({ref:t,className:yt(i,yC(s)),"data-hidden":wC(s)},o))});const jC="page-sidebar-actions";function kC(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(NC,Object.assign({ref:t,className:yt(jC,a),"data-component":"PageSidebar.Actions"},n))}kC.displayName="PageSidebar.Actions";var CC=wt(kC);const SC="page-sidebar-content";function OC(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(NC,Object.assign({ref:t,className:yt(SC,a),"data-component":"PageSidebar.Content"},n))}OC.displayName="PageSidebar.Content";var MC=wt(OC);const TC="page-sidebar-footer";function AC(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(NC,Object.assign({ref:t,className:yt(TC,a),"data-component":"PageSidebar.Footer"},n))}AC.displayName="PageSidebar.Footer";var LC=wt(AC);const IC="page-sidebar-header";function DC(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(NC,Object.assign({ref:t,className:yt(IC,a),"data-component":"PageSidebar.Header"},n))}DC.displayName="PageSidebar.Header";var EC=wt(DC);const zC="block";function PC(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=S(e,["className","as","aria-label","aria-labelledby"]),s="nav"===n;return P.jsx(NC,Object.assign({ref:t,as:n,"aria-label":s?i:void 0,"aria-labelledby":s?r:void 0,className:yt(zC,a),"data-component":"PageSidebar.Navigation"},o))}PC.displayName="PageSidebar.Navigation";var RC=wt(PC);const $C="page-sidebar-section";function BC(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx(NC,Object.assign({ref:t,className:yt($C,a),"data-component":"PageSidebar.Section"},n))}BC.displayName="PageSidebar.Section";var _C=wt(BC);const VC="page-sidebar-title";function HC(e,t){const{className:a,as:n="h2"}=e,i=S(e,["className","as"]);return P.jsx(NC,Object.assign({ref:t,as:n,className:yt(VC,a),"data-component":"PageSidebar.Title"},i))}HC.displayName="PageSidebar.Title";var FC=wt(HC);const WC=Object.assign(fC,{Header:EC,Title:FC,Actions:CC,Content:MC,Navigation:RC,Section:_C,Footer:LC}),qC=["narrow","regular","wide"],GC={root:"pagination",steps:"pagination-steps",hidden:{narrow:"pagination-hidden-narrow",regular:"pagination-hidden-regular",wide:"pagination-hidden-wide"}},KC=bt("pagination-step",{variants:{step:{previous:"pagination-step-previous",next:"pagination-step-next"},current:{true:"pagination-step-current",false:""},inert:{true:"pagination-step-inert",false:""}}}),UC=({page:e,children:t})=>P.jsxs(P.Fragment,{children:["previous"===e.type?P.jsx(Vt,{"data-component":"Pagination.PreviousPageIcon"}):null,t,"next"===e.type?P.jsx(Ht,{"data-component":"Pagination.NextPageIcon"}):null]}),YC=e=>`#${e}`;function ZC(e,t){const a=e,{as:n="nav",className:i,pageCount:r,currentPage:o,onPageChange:s,hrefBuilder:l=YC,marginPageCount:c=1,surroundingPageCount:d=2,showPages:u=!0,renderPage:m}=a,p=S(a,["as","className","pageCount","currentPage","onPageChange","hrefBuilder","marginPageCount","surroundingPageCount","showPages","renderPage"]),h=C.useMemo(()=>Wf(r,o,Boolean(u),c,d),[r,o,u,c,d]),g=(e=>"object"==typeof e?qC.filter(t=>!1===e[t]):e?[]:[...qC])(u),f=h.map(e=>{const{key:t,content:a,presentational:n,props:i}=qf(e,l,t=>null==s?void 0:s(t,e.num)),r="previous"===e.type||"next"===e.type,o=Boolean(n)||Boolean(i["aria-hidden"]),c=yt(KC({step:r?e.type:void 0,current:e.selected,inert:o}));if(m&&!n)return m(Object.assign({key:t,children:P.jsx(UC,{page:e,children:a}),number:e.num,className:c,"data-component":"Pagination.Page"},i));const d=n?"span":"a",u=r?"previous"===e.type?"Pagination.PreviousPage":"Pagination.NextPage":"Pagination.Page";return P.jsx(d,Object.assign({role:n?"presentation":void 0,className:c,"data-component":u},i,{children:P.jsx(UC,{page:e,children:a})}),t)});return P.jsx(n,Object.assign({ref:t,"aria-label":"Pagination",className:yt(GC.root,i),"data-component":"Pagination"},p,{children:P.jsx("div",{className:yt(GC.steps,g.map(e=>GC.hidden[e])),"data-hidden-viewport-ranges":g.join(" ")||void 0,children:f})}))}ZC.displayName="Pagination";var QC=wt(ZC);const XC="placeholder";function JC(e,t){const a=e,{as:n="div",className:i,width:r,height:o,label:s,style:l,children:c}=a,d=S(a,["as","className","width","height","label","style","children"]);return P.jsx(n,Object.assign({ref:t,className:yt(XC,i),style:Object.assign(Object.assign({},l),{"--placeholder-width":r,"--placeholder-height":o}),"data-component":"Placeholder"},d,{children:null!=c?c:s}))}JC.displayName="Placeholder";var eS=wt(JC);const tS=bt("progress-bar-item",{variants:{variant:{accent:"progress-bar-item-accent",attention:"progress-bar-item-attention",danger:"progress-bar-item-danger",done:"progress-bar-item-done",neutral:"progress-bar-item-neutral",severe:"progress-bar-item-severe",sponsors:"progress-bar-item-sponsors",success:"progress-bar-item-success"},animated:{true:"motion-safe:shimmer",false:""}}});function aS(e,t){const a=e,{as:n="span",className:i,progress:r=0,variant:o="success",animated:s,style:l,"aria-valuenow":c}=a,d=S(a,["as","className","progress","variant","animated","style","aria-valuenow"]);return P.jsx(n,Object.assign({ref:t,role:"progressbar","aria-valuenow":null!=c?c:Math.round(Math.max(r,0)),"aria-valuemin":0,"aria-valuemax":100,className:yt(tS({variant:o,animated:s}),i),style:Object.assign(Object.assign({},l),{"--progress-bar-item-width":`${r}%`}),"data-component":"ProgressBar.Item","data-variant":o,"data-animated":s},d))}aS.displayName="ProgressBar.Item";var nS=wt(aS);const iS=bt("progress-bar",{variants:{size:{small:"progress-bar-small",medium:"progress-bar-medium",large:"progress-bar-large"},inline:{true:"progress-bar-inline",false:""}}});function rS(e,t){const a=e,{as:n="span",className:i,progress:r,size:o="medium",variant:s="success",inline:l,animated:c,children:d,"aria-label":u,"aria-valuenow":m,"aria-valuetext":p}=a,h=S(a,["as","className","progress","size","variant","inline","animated","children","aria-label","aria-valuenow","aria-valuetext"]);if(d&&r)throw new Error("Pass either `progress` or children to ProgressBar, not both.");const g=C.Children.toArray(d).length>0;return P.jsx(n,Object.assign({ref:t,className:yt(iS({size:o,inline:l}),i),"data-component":"ProgressBar","data-size":o,"data-inline":l},h,{children:g?d:P.jsx(nS,{progress:r,variant:s,animated:c,"aria-label":u,"aria-valuenow":m,"aria-valuetext":p})}))}rS.displayName="ProgressBar";var oS=wt(rS);const sS=Object.assign(oS,{Item:nS}),lS="progress-circle-ring",cS="progress-circle-track",dS="progress-circle-indicator",uS="progress-circle-label",mS=bt("progress-circle",{variants:{size:{small:"progress-circle-small",medium:"progress-circle-medium",large:"progress-circle-large"},variant:{accent:"progress-circle-accent",attention:"progress-circle-attention",danger:"progress-circle-danger",done:"progress-circle-done",neutral:"progress-circle-neutral",severe:"progress-circle-severe",sponsors:"progress-circle-sponsors",success:"progress-circle-success"}}});function pS(e,t){const a=e,{as:n="span",className:i,progress:r=0,size:o="medium",variant:s="success",style:l,children:c,"aria-valuenow":d}=a,u=S(a,["as","className","progress","size","variant","style","children","aria-valuenow"]),m=Math.min(Math.max(r,0),100),p=C.Children.toArray(c).length>0;return P.jsxs(n,Object.assign({ref:t,role:"progressbar","aria-valuenow":null!=d?d:Math.round(m),"aria-valuemin":0,"aria-valuemax":100,className:yt(mS({size:o,variant:s}),i),style:Object.assign(Object.assign({},l),{"--progress-circle-progress":m}),"data-component":"ProgressCircle","data-size":o,"data-variant":s},u,{children:[P.jsxs("svg",{className:lS,viewBox:"0 0 32 32","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("circle",{className:cS,cx:16,cy:16,r:14,pathLength:100}),P.jsx("circle",{className:dS,cx:16,cy:16,r:14,pathLength:100})]}),p?P.jsx("span",{className:uS,children:c}):null]}))}pS.displayName="ProgressCircle";var hS=wt(pS);const gS="radio-group-caption";function fS(e,t){const{className:a}=e,n=S(e,["className"]),{captionId:i}=C.useContext(Ix);return P.jsx("span",Object.assign({ref:t,id:i,className:yt(gS,a),"data-component":"RadioGroup.Caption"},n))}fS.displayName="RadioGroup.Caption";var vS=wt(fS);const bS="radio-group-label",xS="radio-group-label-disabled",yS="sr-only",wS="radio-group-label-required";function NS(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=S(e,["className","children","visuallyHidden"]),{disabled:o,required:s}=C.useContext(Ix);return P.jsxs("span",Object.assign({ref:t,title:s?"required field":void 0,className:yt(bS,o&&xS,i&&yS,a),"data-component":"RadioGroup.Label","data-label-disabled":o},r,{children:[n,s?P.jsx("span",{className:wS,children:"*"}):null]}))}NS.displayName="RadioGroup.Label";var jS=wt(NS);const kS={success:$t,error:Zt},CS="radio-group-validation-icon",SS=bt("radio-group-validation",{variants:{variant:{success:"radio-group-validation-success",error:"radio-group-validation-error"}}});function OS(e,t){const{className:a,children:n,variant:i}=e,r=S(e,["className","children","variant"]),{validationMessageId:o}=C.useContext(Ix),s=kS[i];return P.jsxs("span",Object.assign({ref:t,className:yt(SS({variant:i}),a),"data-component":"RadioGroup.Validation","data-validation-status":i},r,{children:[P.jsx(s,{className:CS,"aria-hidden":"true"}),P.jsx("span",{id:o,children:n})]}))}OS.displayName="RadioGroup.Validation";var MS=wt(OS);const TS="radio-group",AS="radio-group-legend",LS="radio-group-legend-visible",IS="radio-group-body",DS="radio-group-validation-slot",ES="sr-only";function zS(e,t){const a=e,{as:n="fieldset",className:i,children:r,name:o,disabled:s,required:l,onChange:c,id:d,"aria-labelledby":u}=a,m=S(a,["as","className","children","name","disabled","required","onChange","id","aria-labelledby"]),[p,h]=Qa(r,{label:jS,caption:vS,validation:MS}),g=Da(d),f=p.caption?`${g}-caption`:void 0,v=p.validation?`${g}-validation`:void 0,b=!!C.isValidElement(p.label)&&!p.label.props.visuallyHidden,x={name:o,disabled:s,required:l,captionId:f,validationMessageId:v,onChange:e=>{const{value:t,checked:a}=e.currentTarget;a&&(null==c||c(t,e))}};return P.jsx(Ix.Provider,{value:x,children:P.jsxs(n,Object.assign({ref:t,id:g,disabled:s,"aria-labelledby":p.label?void 0:u,"aria-describedby":[v,f].filter(Boolean).join(" ")||void 0,className:yt(TS,i),"data-component":"RadioGroup","data-disabled":s,"data-required":l},m,{children:[p.label?P.jsxs("legend",{className:yt(AS,b&&LS),children:[p.label,l?P.jsx("span",{className:ES,children:", required"}):null,p.caption]}):p.caption,P.jsx("div",{className:IS,children:h}),p.validation?P.jsx("div",{className:DS,children:p.validation}):null]}))})}zS.displayName="RadioGroup";var PS=wt(zS);const RS=Object.assign(PS,{Label:jS,Caption:vS,Validation:MS}),$S=5,BS="rating-item",_S="rating-input",VS="sr-only",HS="rating-star",FS="rating-star-track",WS="rating-star-fill",qS="rating-star-fill-icon",GS=bt("rating",{variants:{size:{small:"rating-small",medium:"rating-medium",large:"rating-large"},interactive:{true:"rating-interactive",false:""},disabled:{true:"rating-disabled",false:""}}}),KS=e=>1===e?"1 star":`${e} stars`,US=(e,t)=>`${e} out of ${t} stars`,YS=({className:e})=>P.jsx("svg",{className:e,"aria-hidden":"true",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"})});function ZS(e,t){const{className:a,style:n,count:i=$S,value:r,defaultValue:o,size:s="medium",readOnly:l,disabled:c,clearable:d,name:u,onChange:m,itemLabel:p=KS,valueLabel:h=US,"aria-label":g}=e,f=S(e,["className","style","count","value","defaultValue","size","readOnly","disabled","clearable","name","onChange","itemLabel","valueLabel","aria-label"]),v=void 0!==r,[b,x]=C.useState(()=>null!=o?o:0),y=v?r:b,w=Math.max(Math.trunc(i),0),N=Math.min(Math.max(y,0),w),j=Da(u),k=!l&&!c,O=e=>{k&&(v||x(e),null==m||m(e))},M=e=>{O(Number(e.currentTarget.value))},T=e=>{d&&Number(e.currentTarget.value)===N&&O(0)},A=l?"span":"label";return P.jsx("span",Object.assign({ref:t,role:l?"img":"radiogroup","aria-label":l?null!=g?g:h(N,w):g,className:yt(GS({size:s,interactive:k,disabled:Boolean(c)}),a),style:Object.assign(Object.assign({},n),{"--rating-value":N}),"data-component":"Rating","data-size":s,"data-value":N,"data-count":w,"data-readonly":l,"data-disabled":c},f,{children:Array.from({length:w},(e,t)=>{const a=t+1;return P.jsxs(A,{className:BS,style:{"--rating-item-index":t},"data-component":"Rating.Item",children:[l?null:P.jsx("input",{type:"radio",className:yt(_S,VS),name:j,value:a,checked:a===N,disabled:c,"aria-label":p(a,w),onChange:M,onClick:T,"data-component":"Rating.Input"}),P.jsxs("span",{className:HS,"aria-hidden":"true",children:[P.jsx(YS,{className:FS}),P.jsx("span",{className:WS,children:P.jsx(YS,{className:qS})})]})]},a)})}))}ZS.displayName="Rating";var QS=wt(ZS);const XS=1e3,JS=6e4,eO=36e5,tO=24*eO,aO=7*tO,nO=30*tO,iO=12*nO,rO="P30D",oO="on",sO=30*tO,lO=[{unit:"year",length:iO},{unit:"month",length:nO},{unit:"week",length:aO},{unit:"day",length:tO},{unit:"hour",length:eO},{unit:"minute",length:JS},{unit:"second",length:XS}],cO=["year","month","day","hour","minute","second"],dO={year:"y",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"},uO=new RegExp("^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$"),mO=e=>{const t=Math.abs(e),a=lO.find(({length:e})=>t>=e),{unit:n,length:i}=null!=a?a:lO[lO.length-1];return{value:Math.sign(e)*Math.round(t/i),unit:n,length:i}},pO=e=>{const{value:t,unit:a}=mO(e);return"second"===a?"1m":`${Math.abs(t)}${dO[a]}`},hO=(e,t)=>{const a=((e,t)=>{const a=Math.abs(e),n=Math.floor(a/XS),i=Math.floor(n/60),r=Math.floor(i/60),o=Math.floor(r/24),s=Math.floor(o/30),l=Math.floor(s/12),c={year:l,month:s-12*l,day:o-30*s,hour:r-24*o,minute:i-60*r,second:n-60*i};return cO.slice(0,cO.indexOf(t)+1).map(e=>({unit:e,count:c[e]}))})(e,t).filter(({count:e})=>e>0);return 0===a.length?`0${dO[t]}`:a.map(({unit:e,count:t})=>`${t}${dO[e]}`).join(" ")},gO=(e,t)=>{const{value:a,unit:n}=mO(e);return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(a,n)},fO=(e,t,a,n)=>new Intl.DateTimeFormat(n,((e,t,a)=>{var n,i,r;const o=e.getFullYear()===new Date(t).getFullYear();return{weekday:a.weekday,year:null!==(n=a.year)&&void 0!==n?n:o?void 0:"numeric",month:null!==(i=a.month)&&void 0!==i?i:"short",day:null!==(r=a.day)&&void 0!==r?r:"numeric",hour:a.hour,minute:a.minute,second:a.second,timeZoneName:a.timeZoneName}})(e,t,a)).format(e),vO=(e,t)=>new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e),bO=(e,t,a)=>{var n,i,r;const{format:o,tense:s,precision:l,threshold:c,prefix:d,dateOptions:u,locale:m}=a,p=e.getTime()-t;if("elapsed"===o)return{text:hO(p,l),updateDelay:null!==(i=null===(n=lO.find(({unit:e})=>e===l))||void 0===n?void 0:n.length)&&void 0!==i?i:XS};const h=null!==(r=(e=>{const t=uO.exec(e);if(!t||t.slice(1).every(e=>void 0===e))return null;const[,a,n,i,r,o,s,l]=t;return Number(null!=a?a:0)*iO+Number(null!=n?n:0)*nO+Number(null!=i?i:0)*aO+Number(null!=r?r:0)*tO+Number(null!=o?o:0)*eO+Number(null!=s?s:0)*JS+Number(null!=l?l:0)*XS})(c))&&void 0!==r?r:sO,g="auto"===s||"past"===s&&p<=0||"future"===s&&p>=0;if(Math.abs(p)<=h&&g){const{length:e}=mO(p);return{text:"micro"===o?pO(p):gO(p,m),updateDelay:e}}const f=fO(e,t,u,m),v=p-h;return{text:d?`${d} ${f}`:f,updateDelay:p<=0?null:v>0?v:p}};function xO(e,t){const a=e,{as:n="time",children:i,date:r,datetime:o,format:s="auto",tense:l="auto",precision:c="second",threshold:d=rO,prefix:u=oO,noTitle:m,weekday:p,year:h,month:g,day:f,hour:v,minute:b,second:x,timeZoneName:y}=a,w=S(a,["as","children","date","datetime","format","tense","precision","threshold","prefix","noTitle","weekday","year","month","day","hour","minute","second","timeZoneName"]),N=((e,t)=>{const a=null!=e?e:void 0===t?void 0:new Date(t);return a&&!Number.isNaN(a.getTime())?a:void 0})(r,o),[j,k]=C.useState(()=>Date.now()),{text:O,updateDelay:M}=N?bO(N,j,{format:s,tense:l,precision:c,threshold:d,prefix:u,dateOptions:{weekday:p,year:h,month:g,day:f,hour:v,minute:b,second:x,timeZoneName:y}}):{text:"",updateDelay:null};return C.useEffect(()=>{if(null===M)return;const e=window.setTimeout(()=>{k(Date.now())},M);return()=>{window.clearTimeout(e)}},[j,M]),P.jsx(n,Object.assign({ref:t,dateTime:null==N?void 0:N.toISOString(),title:m||!N?void 0:vO(N),"data-component":"RelativeTime","data-format":s,"data-tense":l},w,{children:null!=i?i:O}))}xO.displayName="RelativeTime";var yO=wt(xO);const wO=e.createContext({}),NO="RichTextEditor",jO=[u.HeadingNode,u.QuoteNode,d.ListNode,d.ListItemNode,c.LinkNode,c.AutoLinkNode],kO={paragraph:"rich-text-editor-paragraph",heading:{h1:"rich-text-editor-heading-1",h2:"rich-text-editor-heading-2",h3:"rich-text-editor-heading-3"},quote:"rich-text-editor-quote",link:"rich-text-editor-link",list:{ul:"rich-text-editor-list-bullet",ol:"rich-text-editor-list-number",listitem:"rich-text-editor-list-item",nested:{listitem:"rich-text-editor-list-item-nested"}},text:{bold:"rich-text-editor-bold",italic:"rich-text-editor-italic",underline:"rich-text-editor-underline",strikethrough:"rich-text-editor-strikethrough",underlineStrikethrough:"rich-text-editor-underline-strikethrough",code:"rich-text-editor-inline-code"},ltr:"rich-text-editor-ltr",rtl:"rich-text-editor-rtl"},CO="rich-text-editor",SO="rich-text-editor-read-only",OO=({readOnly:e})=>{const[t]=s.useLexicalComposerContext();return C.useEffect(()=>{t.setEditable(!e)},[t,e]),null};function MO(e,t){const{className:a,children:n,defaultValue:i,onChange:o,placeholder:s,readOnly:l,nodes:c,namespace:d=NO,onError:u,minHeight:v,maxHeight:b,"aria-label":x,"aria-labelledby":y,"aria-describedby":w}=e,N=S(e,["className","children","defaultValue","onChange","placeholder","readOnly","nodes","namespace","onError","minHeight","maxHeight","aria-label","aria-labelledby","aria-describedby"]),j={namespace:d,theme:kO,nodes:c?[...jO,...c]:jO,editable:!l,editorState:i,onError:null!=u?u:e=>{throw e}},k={readOnly:l,placeholder:s,minHeight:v,maxHeight:b,ariaLabel:x,ariaLabelledBy:y,ariaDescribedBy:w};return P.jsx("div",Object.assign({ref:t,className:yt(CO,l&&SO,a),"data-component":"RichTextEditor","data-read-only":l},N,{children:P.jsx(r.LexicalComposer,{initialConfig:j,children:P.jsxs(wO.Provider,{value:k,children:[P.jsx(m.HistoryPlugin,{}),P.jsx(h.ListPlugin,{}),P.jsx(p.LinkPlugin,{}),P.jsx(f.TabIndentationPlugin,{}),P.jsx(OO,{readOnly:l}),o?P.jsx(g.OnChangePlugin,{onChange:(e,t)=>o(e,t)}):null,n]})})}))}MO.displayName="RichTextEditor";var TO=wt(MO);const AO="rich-text-editor-scroll",LO="rich-text-editor-content",IO="rich-text-editor-placeholder";function DO(e,t){const{className:a,style:n}=e,i=S(e,["className","style"]),{placeholder:r,minHeight:o,maxHeight:s,ariaLabel:l,ariaLabelledBy:c,ariaDescribedBy:d}=C.useContext(wO),u=P.jsx("div",{className:AO,style:{minHeight:void 0===o?void 0:`${o}px`,maxHeight:void 0===s?void 0:`${s}px`},"data-component":"RichTextEditor.Scroll",children:r?P.jsx(v.ContentEditable,Object.assign({ref:t,className:yt(LO,a),style:n,ariaLabel:l,ariaLabelledBy:c,ariaDescribedBy:d,"aria-placeholder":r,placeholder:P.jsx("div",{className:IO,children:r}),"data-component":"RichTextEditor.Content"},i)):P.jsx(v.ContentEditable,Object.assign({ref:t,className:yt(LO,a),style:n,ariaLabel:l,ariaLabelledBy:c,ariaDescribedBy:d,placeholder:null,"data-component":"RichTextEditor.Content"},i))});return P.jsx(x.RichTextPlugin,{contentEditable:u,ErrorBoundary:b.LexicalErrorBoundary})}DO.displayName="RichTextEditor.Content";var EO=wt(DO);const zO=["history","inline","block","list","link"],PO="rich-text-editor-toolbar",RO="rich-text-editor-toolbar-controls",$O="rich-text-editor-toolbar-group",BO="rich-text-editor-toolbar-divider",_O="rich-text-editor-link-field",VO="rich-text-editor-link-input",HO=[{format:"bold",icon:pa,label:"Bold"},{format:"italic",icon:ba,label:"Italic"},{format:"underline",icon:Na,label:"Underline"},{format:"strikethrough",icon:wa,label:"Strikethrough"},{format:"code",icon:Gt,label:"Code"}],FO=[{tag:"h1",icon:ga,label:"Heading 1"},{tag:"h2",icon:fa,label:"Heading 2"},{tag:"h3",icon:va,label:"Heading 3"}],WO={bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1};function qO(e){const{className:t,children:a,controls:n=zO,"aria-label":i="Formatting"}=e,r=S(e,["className","children","controls","aria-label"]),[o]=s.useLexicalComposerContext(),{readOnly:l}=C.useContext(wO),m=C.useRef(null);Ka({containerRef:m,direction:"horizontal",wrap:!0});const[p,h]=C.useState(WO),[g,f]=C.useState("paragraph"),[v,b]=C.useState(!1),[x,j]=C.useState(!1),[k,O]=C.useState(!1),[M,T]=C.useState(null),A=C.useCallback(()=>{const e=N.$getSelection();if(!N.$isRangeSelection(e))return;h({bold:e.hasFormat("bold"),italic:e.hasFormat("italic"),underline:e.hasFormat("underline"),strikethrough:e.hasFormat("strikethrough"),code:e.hasFormat("code")});const t=e.anchor.getNode(),a="root"===t.getKey()?t:t.getTopLevelElement();if(d.$isListNode(a))f("number"===a.getListType()?"number":"bullet");else if(u.$isHeadingNode(a)){const e=a.getTag();f("h1"===e||"h2"===e||"h3"===e?e:"paragraph")}else u.$isQuoteNode(a)?f("quote"):f("paragraph");b(c.$isLinkNode(t)||c.$isLinkNode(t.getParent()))},[]);C.useEffect(()=>w.mergeRegister(o.registerUpdateListener(({editorState:e})=>{e.read(A)}),o.registerCommand(N.SELECTION_CHANGE_COMMAND,()=>(A(),!1),N.COMMAND_PRIORITY_CRITICAL),o.registerCommand(N.CAN_UNDO_COMMAND,e=>(j(e),!1),N.COMMAND_PRIORITY_CRITICAL),o.registerCommand(N.CAN_REDO_COMMAND,e=>(O(e),!1),N.COMMAND_PRIORITY_CRITICAL)),[o,A]);const L=e=>{o.update(()=>{const t=N.$getSelection();N.$isRangeSelection(t)&&(g!==e?y.$setBlocksType(t,()=>"quote"===e?u.$createQuoteNode():u.$createHeadingNode(e)):y.$setBlocksType(t,()=>N.$createParagraphNode()))})},I=e=>{g!==e?o.dispatchCommand("bullet"===e?d.INSERT_UNORDERED_LIST_COMMAND:d.INSERT_ORDERED_LIST_COMMAND,void 0):o.dispatchCommand(d.REMOVE_LIST_COMMAND,void 0)},D=()=>{M&&o.dispatchCommand(c.TOGGLE_LINK_COMMAND,M),T(null),o.focus()},E=(e,t,a,n,i,r)=>P.jsx(ei,{icon:a,size:"small",variant:"invisible","aria-label":t,"aria-pressed":n,disabled:l||r,onClick:i,"data-component":`RichTextEditor.${e}`},e),z={history:P.jsxs(P.Fragment,{children:[P.jsx(ei,{icon:Et,size:"small",variant:"invisible","aria-label":"Undo",disabled:l||!x,onClick:()=>o.dispatchCommand(N.UNDO_COMMAND,void 0),"data-component":"RichTextEditor.Undo"}),P.jsx(ei,{icon:Lt,size:"small",variant:"invisible","aria-label":"Redo",disabled:l||!k,onClick:()=>o.dispatchCommand(N.REDO_COMMAND,void 0),"data-component":"RichTextEditor.Redo"})]}),inline:P.jsx(P.Fragment,{children:HO.map(({format:e,icon:t,label:a})=>E(a,a,t,p[e],()=>o.dispatchCommand(N.FORMAT_TEXT_COMMAND,e)))}),block:P.jsxs(P.Fragment,{children:[FO.map(({tag:e,icon:t,label:a})=>E(a,a,t,g===e,()=>L(e))),E("Quote","Quote",ya,"quote"===g,()=>L("quote"))]}),list:P.jsxs(P.Fragment,{children:[E("Bulleted list","Bulleted list",ha,"bullet"===g,()=>I("bullet")),E("Numbered list","Numbered list",xa,"number"===g,()=>I("number"))]}),link:E("Link",v?"Remove link":"Link",ta,v||null!==M,()=>{v?o.dispatchCommand(c.TOGGLE_LINK_COMMAND,null):T(e=>null===e?"":null)})};return P.jsxs("div",{className:yt(PO,t),"data-component":"RichTextEditor.Toolbar",children:[P.jsxs("div",Object.assign({ref:m,role:"toolbar","aria-label":i,"aria-orientation":"horizontal",className:RO},r,{children:[n.map((e,t)=>P.jsxs(C.Fragment,{children:[t>0?P.jsx("span",{"aria-hidden":"true",className:BO,"data-component":"RichTextEditor.ToolbarDivider"}):null,P.jsx("div",{className:$O,"data-control":e,children:z[e]})]},e)),a]})),null===M?null:P.jsxs("div",{className:_O,"data-component":"RichTextEditor.LinkField",children:[P.jsx(ao,{autoFocus:!0,size:"small",type:"url",value:M,placeholder:"https://example.com","aria-label":"Link address",className:VO,onChange:e=>T(e.currentTarget.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),D()),"Escape"===e.key&&(T(null),o.focus())}}),P.jsx(Qn,{size:"small",onClick:D,children:"Apply"})]})]})}qO.displayName="RichTextEditor.Toolbar";const GO=Object.assign(TO,{Toolbar:qO,Content:EO}),KO=e.createContext({}),UO="tooltip",YO="tooltip-open motion-safe:[&:popover-open]:animate-in motion-safe:[&:popover-open]:fade-in motion-safe:[&:popover-open]:duration-100",ZO="tooltip-open-polyfilled motion-safe:[&[class~=':popover-open']]:animate-in motion-safe:[&[class~=':popover-open']]:fade-in motion-safe:[&[class~=':popover-open']]:duration-100",QO="tooltip-bridge",XO="tooltip-bridge-vertical",JO="tooltip-bridge-horizontal",eM={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},tM={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},aM={short:50,medium:400,long:1200},nM=["a[href]","button:not([disabled])","summary","select","input:not([type=hidden])","textarea"],iM=e=>nM.some(t=>e.matches(t))||"button"===e.getAttribute("role");function rM(e,t){const{className:a,children:n,text:i,id:r,direction:o="s",type:s="description",delay:l="short"}=e,c=S(e,["className","children","text","id","direction","type","delay"]),d=Da(r),u=C.Children.only(n),m=C.useRef(null),p=H(t,m),h=C.useRef(null),g=C.useRef(null),f=C.useRef(null),[v,b]=C.useState(!1),[x,y]=C.useState(o),w=()=>{null!==g.current&&(window.clearTimeout(g.current),g.current=null),null!==f.current&&(window.clearTimeout(f.current),f.current=null)};C.useEffect(()=>w,[]);const N=()=>{var e;const t=h.current,a=m.current;if(!t||!a)return;try{t.showPopover()}catch(e){return}b(!0);const{side:n,align:i}=eM[o],{top:r,left:s,anchorSide:l,anchorAlign:c}=qi(t,a,{side:n,align:i});y(null!==(e=tM[`${l}-${c}`])&&void 0!==e?e:o),t.style.top=`${r}px`,t.style.left=`${s}px`},k=()=>{var e;w(),b(!1);try{null===(e=h.current)||void 0===e||e.hidePopover()}catch(e){}};C.useEffect(()=>{const e=h.current,t=m.current;if(e&&t){if(!iM(a=t)&&!Array.from(a.childNodes).some(e=>e instanceof HTMLElement&&iM(e)||Array.from(e.childNodes).some(e=>e instanceof HTMLElement&&iM(e))))throw new Error("The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or an equivalent element instead.");var a;"undefined"==typeof window||j.isSupported()||j.apply(),e.setAttribute("popover","manual")}},[]),Ai(e=>{v&&(e.preventDefault(),k())});const O=C.useMemo(()=>({tooltipId:d}),[d]);if(!C.isValidElement(u))return null;const M=u.props,T=C.cloneElement(u,{ref:p,"aria-describedby":"description"===s?[M["aria-describedby"],d].filter(Boolean).join(" "):M["aria-describedby"],"aria-labelledby":"label"===s?d:M["aria-labelledby"],onFocus:e=>{var t;try{if(!e.target.matches(":focus-visible"))return}catch(e){}N(),null===(t=M.onFocus)||void 0===t||t.call(M,e)},onBlur:e=>{var t;k(),null===(t=M.onBlur)||void 0===t||t.call(M,e)},onMouseOverCapture:e=>{g.current=window.setTimeout(()=>{var t;null!==g.current&&(N(),null===(t=M.onMouseEnter)||void 0===t||t.call(M,e))},aM[l])},onMouseLeave:e=>{var t;k(),null===(t=M.onMouseLeave)||void 0===t||t.call(M,e)},onTouchEnd:e=>{var t;null===(t=M.onTouchEnd)||void 0===t||t.call(M,e),f.current=window.setTimeout(k,10)}});return P.jsxs(KO.Provider,{value:O,children:[T,P.jsx("span",Object.assign({ref:h,id:d,role:"description"===s?"tooltip":void 0,"aria-hidden":"true",className:yt(UO,YO,ZO,QO,XO,JO,a),onMouseEnter:N,onMouseLeave:k,"data-component":"Tooltip","data-direction":x},c,{children:i}))]})}rM.displayName="Tooltip";var oM=wt(rM);const sM="segmented-control-segment",lM="segmented-control-segment-separator",cM="segmented-control-segment-separator-hidden",dM="segmented-control-button",uM="segmented-control-button-selected",mM="segmented-control-button-disabled",pM="segmented-control-content",hM="segmented-control-content-selected",gM="segmented-control-content-interactive",fM=e=>{const t=e;return C.isValidElement(e)?e:P.jsx(t,{})};function vM(e){const{component:t,className:a,children:n,selected:i,disabled:r,tooltip:o,tooltipType:s,tooltipDirection:l,"aria-disabled":c}=e,d=S(e,["component","className","children","selected","disabled","tooltip","tooltipType","tooltipDirection","aria-disabled"]),u=Boolean(r)||!0===c||"true"===c,m=P.jsx("button",Object.assign({type:"button","aria-pressed":i,"aria-disabled":u||void 0,className:yt(dM,i&&uM,u&&!i&&mM,a)},d,{children:P.jsx("span",{className:yt(pM,i&&hM,!i&&!u&&gM),children:n})}));return P.jsx("li",{className:yt(sM,lM,cM),"data-component":t,"data-selected":i?"":void 0,children:o?P.jsx(oM,{text:o,type:s,direction:l,children:m}):m})}vM.displayName="SegmentedControlSegment";const bM="segmented-control-visual",xM="segmented-control-visual-disabled",yM="segmented-control-text",wM="segmented-control-text-hidden",NM="segmented-control-counter";function jM(e){const{children:t,className:a,count:n,leadingVisual:i,selected:r,disabled:o,defaultSelected:s}=e,l=S(e,["children","className","count","leadingVisual","selected","disabled","defaultSelected"]);return P.jsxs(vM,Object.assign({component:"SegmentedControl.Button",className:a,selected:r,disabled:o},l,{children:[i?P.jsx("span",{className:yt(bM,o&&xM),"data-component":"SegmentedControl.LeadingVisual",children:fM(i)}):null,P.jsx("span",{className:yt(yM,wM),"data-component":"SegmentedControl.Text","data-text":t,children:t}),void 0!==n?P.jsx("span",{className:NM,children:P.jsx(qn,{children:n})}):null]}))}jM.displayName="SegmentedControl.Button";const kM="segmented-control-icon-button",CM="segmented-control-icon-visual",SM="segmented-control-visual-disabled";function OM(e){const{"aria-label":t,className:a,description:n,icon:i,selected:r,disabled:o,tooltipDirection:s,defaultSelected:l}=e,c=S(e,["aria-label","className","description","icon","selected","disabled","tooltipDirection","defaultSelected"]);return P.jsx(vM,Object.assign({component:"SegmentedControl.IconButton",className:yt(kM,a),selected:r,disabled:o,"aria-label":n?t:void 0,tooltip:null!=n?n:t,tooltipType:n?void 0:"label",tooltipDirection:s},c,{children:P.jsx("span",{className:yt(CM,o&&SM),"data-component":"SegmentedControl.Icon",children:fM(i)})}))}OM.displayName="SegmentedControl.IconButton";const MM="segmented-control-dropdown",TM=bt("segmented-control",{variants:{size:{small:"segmented-control-small",medium:""}}}),AM=e=>e.type===jM,LM=e=>e.type===OM,IM=e=>{if(void 0!==e)return AM(e)?e.props.children:LM(e)?e.props["aria-label"]:void 0},DM=e=>{var t;return void 0===e?null:AM(e)?null!==(t=e.props.leadingVisual)&&void 0!==t?t:null:LM(e)?e.props.icon:null},EM=e=>{const t=e.props["aria-disabled"];return!0===e.props.disabled||!0===t||"true"===t};function zM(e){const t=e,{"aria-label":a,"aria-labelledby":n,className:i,children:r,fullWidth:o,onChange:s,size:l="medium",variant:c="default"}=t,d=S(t,["aria-label","aria-labelledby","className","children","fullWidth","onChange","size","variant"]),u=(e=>C.Children.toArray(e).filter(e=>C.isValidElement(e)))(r),m=void 0===s||u.some(e=>void 0!==e.props.defaultSelected),p=u.findIndex(e=>e.props.defaultSelected||e.props.selected),h=-1===p?0:p,[g,f]=C.useState(h),v=m?g:h,b=u[v],x=(e,t,a)=>{var n,i;EM(t)||(m&&f(e),null==s||s(e),null===(i=(n=t.props).onClick)||void 0===i||i.call(n,a))},y=P.jsx("ul",Object.assign({"aria-label":a,"aria-labelledby":n,className:yt(TM({size:l}),i),"data-component":"SegmentedControl","data-size":l},Li("full-width",o),Li("variant",c),d,{children:u.map((e,t)=>C.cloneElement(e,{selected:t===v,onClick:a=>x(t,e,a)}))}));return vo(c)&&Object.values(c).includes("dropdown")?P.jsxs(P.Fragment,{children:[P.jsx("div",Object.assign({className:MM,"data-component":"SegmentedControl.Dropdown"},Li("variant",c),{children:P.jsxs(er,{children:[P.jsx(er.Button,{"aria-label":a&&`${IM(b)}, ${a}`,leadingVisual:DM(b),children:IM(b)}),P.jsx(er.Overlay,{"aria-labelledby":n,children:P.jsx(xi,{selectionVariant:"single",children:u.map((e,t)=>{const a=DM(e);return P.jsxs(xi.Item,{selected:t===v,disabled:EM(e),onSelect:a=>x(t,e,a),children:[a?P.jsx(xi.LeadingVisual,{children:fM(a)}):null,IM(e)]},t)})})})]})})),y]}):y}zM.displayName="SegmentedControl";const PM=Object.assign(zM,{Button:jM,IconButton:OM});function RM(e,t){return P.jsx("optgroup",Object.assign({ref:t,"data-component":"Select.OptGroup"},e))}RM.displayName="Select.OptGroup";var $M=wt(RM);function BM(e,t){return P.jsx("option",Object.assign({ref:t,"data-component":"Select.Option"},e))}BM.displayName="Select.Option";var _M=wt(BM);const VM=Object.assign(Hx,{Option:_M,OptGroup:$M});function HM(e,t){const{className:a,children:n}=e,i=S(e,["className","children"]),r=Ly(i),{required:o}=r,s=S(r,["required"]),{labelId:l}=C.useContext(ey),c=Da();return P.jsx(Qn,Object.assign({ref:t,type:"button","aria-labelledby":l?`${c} ${l}`:void 0,className:yt(a),"data-component":"SelectPanel.Button"},s,{children:l?P.jsx("span",{id:c,children:n}):n}))}HM.displayName="SelectPanel.Button";var FM=wt(HM);const WM=e.createContext({}),qM="select-panel-footer",GM="select-panel-footer-without-actions",KM="select-panel-footer-content",UM="select-panel-footer-content-without-actions",YM="select-panel-footer-actions";function ZM(e,t){const{className:a,children:n}=e,i=S(e,["className","children"]),{selectionVariant:r,onCancel:o}=C.useContext(WM),s="instant"!==r;return s||n?P.jsxs("div",Object.assign({ref:t,className:yt(qM,!s&&GM,a),"data-component":"SelectPanel.Footer","data-has-actions":s?"":void 0},i,{children:[P.jsx("div",{className:yt(KM,!s&&UM),children:n}),s?P.jsxs("div",{className:YM,children:[P.jsx(Qn,{type:"button",size:"small",onClick:o,children:"Cancel"}),P.jsx(Qn,{type:"submit",size:"small",variant:"primary",children:"Save"})]}):null]})):null}ZM.displayName="SelectPanel.Footer";var QM=wt(ZM);const XM="select-panel-search-input";function JM(e,t){var a;const{className:n,value:i,onChange:r,onKeyDown:o}=e,s=S(e,["className","value","onChange","onKeyDown"]),{searchQuery:l,setSearchQuery:c,searchInputRef:d,moveFocusToList:u}=C.useContext(WM),m=C.useRef(null),p=H(d,m),h=H(t,p),g=null!==(a=null!=i?i:l)&&void 0!==a?a:"";return P.jsx(ao,Object.assign({ref:h,block:!0,leadingVisual:la,placeholder:"Search",value:g,onChange:e=>{null==c||c(e.currentTarget.value),null==r||r(e.currentTarget.value,e)},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),null==u||u()),null==o||o(e)},trailingAction:g?P.jsx(ao.Action,{icon:Kt,"aria-label":"Clear",onClick:()=>{var e;null==c||c(""),null==r||r("",null),null===(e=m.current)||void 0===e||e.focus()}}):void 0,className:yt(XM,n),"data-component":"SelectPanel.SearchInput"},s))}JM.displayName="SelectPanel.SearchInput";var eT=wt(JM);const tT="select-panel-header",aT="select-panel-header-content",nT="select-panel-header-content-with-search",iT="select-panel-header-title-row",rT="select-panel-header-title",oT="select-panel-header-heading",sT="select-panel-header-description",lT="select-panel-header-actions",cT={searchInput:eT};function dT(e,t){const{className:a,children:n,onBack:i}=e,r=S(e,["className","children","onBack"]),[o,s]=Qa(n,cT),{panelId:l,title:c,description:d,onCancel:u,onClearSelection:m}=C.useContext(WM);return P.jsxs("div",Object.assign({ref:t,className:yt(tT,a),"data-component":"SelectPanel.Header"},r,{children:[P.jsxs("div",{className:yt(aT,o.searchInput&&nT),"data-has-description":d?"":void 0,"data-has-search-input":o.searchInput?"":void 0,children:[P.jsxs("div",{className:iT,children:[i?P.jsx(ei,{type:"button",variant:"invisible",icon:At,"aria-label":"Back",onClick:i,"data-component":"SelectPanel.BackButton"}):null,P.jsxs("div",{className:rT,"data-has-description":d?"":void 0,"data-has-back":i?"":void 0,children:[P.jsx(tn,{as:"h1",id:l?`${l}-title`:void 0,className:oT,children:c}),d?P.jsx("span",{id:l?`${l}-description`:void 0,className:sT,children:d}):null]})]}),P.jsxs("div",{className:lT,children:[m?P.jsx(ei,{type:"button",variant:"invisible",icon:Qt,"aria-label":"Clear selection",onClick:m,"data-component":"SelectPanel.ClearSelectionButton"}):null,P.jsx(ei,{type:"button",variant:"invisible",icon:Ut,"aria-label":"Close",onClick:u,"data-component":"SelectPanel.CloseButton"})]})]}),o.searchInput,s]}))}dT.displayName="SelectPanel.Header";var uT=wt(dT);const mT="select-panel-form",pT="select-panel-container",hT=bt("select-panel-backdrop",{variants:{variant:{anchored:"",modal:"select-panel-backdrop-modal motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short"},narrowVariant:{anchored:"",modal:"select-panel-backdrop-narrow-modal","full-screen":"","bottom-sheet":"select-panel-backdrop-narrow-bottom-sheet"}}}),gT=bt("select-panel motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",{variants:{width:{small:"select-panel-width-small",medium:"select-panel-width-medium",large:"select-panel-width-large",xlarge:"select-panel-width-xlarge",auto:"select-panel-width-auto"},maxHeight:{small:"select-panel-max-height-small",medium:"select-panel-max-height-medium",large:"select-panel-max-height-large",xlarge:"select-panel-max-height-xlarge","fit-content":"select-panel-max-height-fit-content"},variant:{anchored:"select-panel-anchored",modal:""},narrowVariant:{anchored:"select-panel-narrow-anchored",modal:"select-panel-narrow-modal","full-screen":"select-panel-narrow-full-screen","bottom-sheet":"select-panel-narrow-bottom-sheet"},unplaced:{true:"invisible",false:""}}}),fT={regular:"anchored",narrow:"full-screen"},vT=e=>C.isValidElement(e)&&e.type===FM;function bT(e,t){var a,n,i,r,o,s;const{className:l,children:c,title:d,description:u,variant:m=fT,selectionVariant:p="multiple",id:h,defaultOpen:g=!1,open:f,anchorRef:v,side:b="outside-bottom",align:x="start",onCancel:y,onClearSelection:w,onSubmit:N,width:j="medium",maxHeight:k="large"}=e,O=S(e,["className","children","title","description","variant","selectionVariant","id","defaultOpen","open","anchorRef","side","align","onCancel","onClearSelection","onSubmit","width","maxHeight"]),M=Da(h),T=C.useRef(null),A=null!=v?v:T,L=C.useRef(null),I=H(t,L),D=C.useRef(null),E=void 0!==f,[z,R]=C.useState(g),$=E?f:z,B=C.useCallback(()=>{E||R(!1)},[E]),_=C.useCallback(()=>{B(),null==y||y()},[B,y]),V=C.useCallback(()=>null==w?void 0:w(),[w]),F=C.useCallback(e=>{null==e||e.preventDefault(),B(),null==N||N(e)},[B,N]),W=C.useCallback(()=>{var e,t;null===(t=null===(e=L.current)||void 0===e?void 0:e.querySelector('[role="option"]'))||void 0===t||t.focus()},[]),q=C.useCallback(()=>{"instant"===p&&F()},[p,F]),[G,K]=C.useState(""),U=C.Children.toArray(c),Y=U.find(vT),[Z,Q]=Qa(U.filter(e=>e!==Y),{header:uT,footer:QM}),X=null==Y?void 0:Y.props.onClick,J=Y?C.cloneElement(Y,{ref:A,onClick:e=>{null==X||X(e),e.defaultPrevented||($?_():E||R(!0))},"aria-haspopup":!0,"aria-expanded":$}):null,ee=Object.assign(Object.assign({},fT),"string"==typeof m?{regular:m}:m),te=null!==(a=ee.regular)&&void 0!==a?a:"anchored",ae=ee.narrow,ne="anchored"===te||"anchored"===ae,ie=C.useRef(null),[re,oe]=C.useState(null),se=C.useCallback(()=>{const e=A.current,t=L.current;if(!e||!t)return;const a=qi(t,e,{side:b,align:x});ie.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(ie.current,a)||(ie.current=a,oe(a))},[A,b,x]);Oi(()=>{if(!$||!ne)return ie.current=null,void oe(null);se();const e=new ResizeObserver(se);return L.current&&e.observe(L.current),window.addEventListener("resize",se),window.addEventListener("scroll",se,!0),()=>{e.disconnect(),window.removeEventListener("resize",se),window.removeEventListener("scroll",se,!0)}},[$,ne,se]),Si({containerRef:L,initialFocusRef:D,returnFocusRef:A,disabled:!$}),C.useEffect(()=>{$&&!D.current&&W()},[$,W]),Ai(e=>{$&&(e.preventDefault(),_())});const le=C.useMemo(()=>({panelId:M,title:d,description:u,selectionVariant:p,searchQuery:G,setSearchQuery:K,searchInputRef:D,onCancel:_,onClearSelection:w?V:void 0,moveFocusToList:W}),[M,d,u,p,G,_,w,V,W]),ce=C.useMemo(()=>({container:"SelectPanel",listRole:"listbox",listLabelledBy:`${M}-title`,selectionAttribute:"aria-selected",selectionVariant:"instant"===p?"single":p,afterSelect:q,enableFocusZone:!0}),[M,p,q]);return P.jsxs(P.Fragment,{children:[J,$?P.jsx(_i,{children:P.jsx("div",Object.assign({className:yt(hT({variant:te,narrowVariant:ae})),onClick:e=>{e.target===e.currentTarget&&_()},"data-component":"SelectPanel.Backdrop"},Li("variant",ee),{children:P.jsx("div",Object.assign({ref:I,role:"dialog","aria-modal":!0,"aria-labelledby":`${M}-title`,"aria-describedby":u?`${M}-description`:void 0,className:yt(gT({width:j,maxHeight:k,variant:te,narrowVariant:ae,unplaced:ne&&!re}),l),style:{"--select-panel-top":`${null!==(n=null==re?void 0:re.top)&&void 0!==n?n:0}px`,"--select-panel-left":`${null!==(i=null==re?void 0:re.left)&&void 0!==i?i:0}px`},"data-component":"SelectPanel","data-width":j,"data-max-height":k,"data-side":null!==(r=null==re?void 0:re.anchorSide)&&void 0!==r?r:b,"data-align":null!==(o=null==re?void 0:re.anchorAlign)&&void 0!==o?o:x},Li("variant",ee),O,{children:P.jsx("form",{className:mT,onSubmit:F,children:P.jsxs(WM.Provider,{value:le,children:[null!==(s=Z.header)&&void 0!==s?s:P.jsx(uT,{}),P.jsx("div",{className:pT,children:P.jsx(ln.Provider,{value:ce,children:Q})}),Z.footer]})})}))}))}):null]})}bT.displayName="SelectPanel";var xT=wt(bT);const yT="select-panel-loading",wT="select-panel-loading-text";function NT(e,t){const{className:a,children:n="Fetching items..."}=e,i=S(e,["className","children"]);return P.jsxs("div",Object.assign({ref:t,role:"status","aria-live":"polite",className:yt(yT,a),"data-component":"SelectPanel.Loading"},i,{children:[P.jsx(zn,{size:"medium",srText:null,role:"presentation"}),P.jsx("span",{className:wT,children:n})]}))}NT.displayName="SelectPanel.Loading";var jT=wt(NT);const kT={full:"select-panel-message-full",fullIcon:"select-panel-message-full-icon",fullTitle:"select-panel-message-full-title",fullContent:"select-panel-message-full-content",inline:"select-panel-message-inline",inlineIcon:"select-panel-message-inline-icon",variant:{warning:"select-panel-message-warning",error:"select-panel-message-error",empty:""},inlineVariant:{warning:"select-panel-message-inline-warning",error:"select-panel-message-inline-error",empty:""}};function CT(e,t){const{className:a,children:n,variant:i,size:r,title:o}=e,s=S(e,["className","children","variant","size","title"]),l="empty"!==i?{role:"status","aria-live":"polite"}:void 0;return"full"===(null!=r?r:"empty"===i?"full":"inline")?P.jsxs("div",Object.assign({ref:t,className:yt(kT.full,a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"full"},l,s,{children:["empty"===i?null:P.jsx(ja,{className:yt(kT.fullIcon,kT.variant[i]),"aria-hidden":"true"}),P.jsx("span",{className:kT.fullTitle,children:o}),P.jsx("span",{className:kT.fullContent,children:n})]})):P.jsxs("div",Object.assign({ref:t,className:yt(kT.inline,kT.variant[i],kT.inlineVariant[i],a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"inline"},l,s,{children:[P.jsx(ja,{className:kT.inlineIcon,"aria-hidden":"true"}),P.jsx("div",{children:n})]}))}CT.displayName="SelectPanel.Message";var ST=wt(CT);const OT="select-panel-secondary-action-small",MT="select-panel-secondary-action-checkbox",TT="select-panel-secondary-action-box",AT=e=>{const{id:t,children:a,className:n}=e,i=S(e,["id","children","className"]),r=Da(t);return P.jsxs("span",{className:MT,"data-component":"SelectPanel.SecondaryAction",children:[P.jsx(fp,Object.assign({id:r,className:yt(TT,n)},i)),P.jsx("label",{htmlFor:r,className:OT,children:a})]})};function LT(e){if("checkbox"===e.variant){const{variant:t}=e,a=S(e,["variant"]);return P.jsx(AT,Object.assign({},a))}if("link"===e.variant){const{variant:t,className:a}=e,n=S(e,["variant","className"]);return P.jsx(bs,Object.assign({className:yt(OT,a),"data-component":"SelectPanel.SecondaryAction"},n))}const{variant:t}=e,a=S(e,["variant"]);return P.jsx(Qn,Object.assign({type:"button",size:"small",block:!0,"data-component":"SelectPanel.SecondaryAction"},a))}LT.displayName="SelectPanel.SecondaryAction";const IT=Object.assign(xT,{Button:FM,Header:uT,SearchInput:eT,Footer:QM,SecondaryAction:LT,Loading:jT,Message:ST}),DT=bt("separator",{variants:{orientation:{horizontal:"separator-horizontal",vertical:"separator-vertical"},variant:{subtle:"separator-subtle",default:"separator-default",emphasis:"separator-emphasis"}}});function ET(e,t){const a=e,{as:n="div",className:i,orientation:r="horizontal",variant:o="default"}=a,s=S(a,["as","className","orientation","variant"]);return P.jsx(n,Object.assign({ref:t,role:"separator","aria-orientation":r,className:yt(DT({orientation:r,variant:o}),i),"data-component":"Separator","data-orientation":r,"data-variant":o},s))}ET.displayName="Separator";var zT=wt(ET);const PT=bt("skeleton-avatar",{variants:{shape:{circle:"skeleton-avatar-circle",square:"skeleton-avatar-square"},responsive:{true:"skeleton-avatar-responsive",false:""}}});function RT(e){var{size:t=bo,shape:a="circle",className:n,style:i}=e,r=S(e,["size","shape","className","style"]);const o=vo(t),s={"--avatar-size-regular":`${bo}px`};if(o)for(const[e,a]of Object.entries(t))void 0!==a&&(s[`--avatar-size-${e}`]=`${a}px`);else s["--avatar-size-regular"]=`${t}px`;return P.jsx(ov,Object.assign({width:"var(--avatar-size-regular)",height:"var(--avatar-size-regular)",className:yt(PT({shape:a,responsive:o}),n),style:Object.assign(Object.assign({},i),s)},r,{"data-component":"SkeletonAvatar","data-responsive":o||void 0,"data-shape":a}))}RT.displayName="SkeletonAvatar";const $T=bt("slider",{variants:{size:{small:"slider-small",medium:"slider-medium",large:"slider-large"},orientation:{horizontal:"slider-horizontal",vertical:"slider-vertical"},block:{true:"",false:""}},compoundVariants:[{block:!0,orientation:"horizontal",class:"slider-block-horizontal"},{block:!0,orientation:"vertical",class:"slider-block-vertical"}]}),BT=(e,t,a)=>{if(a<=t)return 0;const n=(e-t)/(a-t)*100;return Math.min(Math.max(n,0),100)};function _T(e,t){const{className:a,style:n,size:i="medium",orientation:r="horizontal",block:o,min:s=0,max:l=100,step:c=1,value:d,defaultValue:u,disabled:m,onChange:p}=e,h=S(e,["className","style","size","orientation","block","min","max","step","value","defaultValue","disabled","onChange"]),g=void 0!==d,[f,v]=C.useState(()=>null!=u?u:s),b=g?d:f;return P.jsx("input",Object.assign({ref:t,type:"range",min:s,max:l,step:c,value:b,disabled:m,onChange:e=>{const t=Number(e.currentTarget.value);g||v(t),null==p||p(t,e)},className:yt($T({size:i,orientation:r,block:o}),a),style:Object.assign(Object.assign({},n),{"--slider-fill":`${BT(b,s,l)}%`}),"aria-orientation":"vertical"===r?"vertical":void 0,"data-component":"Slider","data-size":i,"data-orientation":r,"data-block":o,"data-disabled":m},h))}_T.displayName="Slider";var VT=wt(_T);const HT={open:"open",issueOpened:"open",pullOpened:"open",alertOpened:"open",closed:"done",issueClosed:"done",pullMerged:"done",alertFixed:"done",pullClosed:"closed",alertClosed:"closed",issueClosedNotPlanned:"neutral",unavailable:"neutral",archived:"neutral",pullQueued:"attention",draft:"draft",issueDraft:"draft",alertDismissed:"draft"},FT={open:null,closed:null,draft:Wt,archived:Mt,unavailable:ja,issueOpened:sa,issueClosed:$t,issueClosedNotPlanned:oa,issueDraft:Wt,pullOpened:Pt,pullClosed:Kt,pullMerged:aa,pullQueued:qt,alertOpened:ma,alertClosed:ua,alertFixed:ca,alertDismissed:da},WT={open:"",closed:"",draft:"Pull request",archived:"Archived",unavailable:"",issueOpened:"Issue",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",issueDraft:"Issue",pullOpened:"Pull request",pullClosed:"Pull request",pullMerged:"Pull request",pullQueued:"Pull request",alertOpened:"Alert",alertClosed:"Alert",alertFixed:"Alert",alertDismissed:"Alert"},qT=bt("state-label",{variants:{size:{small:"state-label-small",medium:"state-label-medium"},tone:{open:"state-label-open",closed:"state-label-closed",done:"state-label-done",draft:"state-label-draft",attention:"state-label-attention",neutral:"state-label-neutral"}}}),GT=bt("state-label-visual",{variants:{size:{small:"state-label-visual-small",medium:"state-label-visual-medium"}}});function KT(e,t){const a=e,{as:n="span",className:i,status:r,size:o="medium",children:s}=a,l=S(a,["as","className","status","size","children"]),c=FT[r],d=WT[r];return P.jsxs(n,Object.assign({ref:t,className:yt(qT({size:o,tone:HT[r]}),i),"data-component":"StateLabel","data-status":r,"data-size":o},l,{children:[c?P.jsx(c,{className:yt(GT({size:o})),role:d?"img":void 0,"aria-label":d||void 0,"aria-hidden":!d||void 0}):null,s]}))}KT.displayName="StateLabel";var UT=wt(KT);const YT=e.createContext({}),ZT="sr-only",QT=bt("status",{variants:{variant:{accent:"status-accent",success:"status-success",attention:"status-attention",severe:"status-severe",danger:"status-danger",done:"status-done",neutral:"status-neutral"},size:{small:"status-small",medium:"status-medium",large:"status-large"}}});function XT(e,t){const a=e,{as:n="span",className:i,variant:r="neutral",size:o="medium",srText:s,children:l}=a,c=S(a,["as","className","variant","size","srText","children"]);return P.jsx(YT.Provider,{value:{variant:r,size:o},children:P.jsxs(n,Object.assign({ref:t,className:yt(QT({variant:r,size:o}),i),"data-component":"Status","data-variant":r,"data-size":o},c,{children:[s?P.jsx("span",{className:ZT,children:s}):null,l]}))})}XT.displayName="Status";var JT=wt(XT);const eA=bt("status-indicator",{variants:{variant:{accent:"status-indicator-accent",success:"status-indicator-success",attention:"status-indicator-attention",severe:"status-indicator-severe",danger:"status-indicator-danger",done:"status-indicator-done",neutral:"status-indicator-neutral"},size:{small:"status-indicator-small",medium:"status-indicator-medium",large:"status-indicator-large"}}});function tA(e,t){var a,n;const{className:i,variant:r,size:o}=e,s=S(e,["className","variant","size"]),l=C.useContext(YT),c=null!==(a=null!=r?r:l.variant)&&void 0!==a?a:"neutral",d=null!==(n=null!=o?o:l.size)&&void 0!==n?n:"medium";return P.jsx("span",Object.assign({ref:t,"aria-hidden":"true",className:yt(eA({variant:c,size:d}),i),"data-component":"Status.Indicator","data-variant":c,"data-size":d},s))}tA.displayName="Status.Indicator";var aA=wt(tA);const nA=Object.assign(JT,{Indicator:aA}),iA=e.createContext(null);function rA(e){const{children:t,id:a,value:n,defaultValue:i,onChange:r}=e,o=Da(a),s=void 0!==n,[l,c]=C.useState(i),d=s?n:l,u=C.useRef(r);Oi(()=>{u.current=r},[r]);const m=C.useMemo(()=>({groupId:o,selectedValue:d,selectTab:e=>{var t;s||c(e),null===(t=u.current)||void 0===t||t.call(u,e)}}),[o,d,s]);return P.jsx(iA.Provider,{value:m,children:t})}rA.displayName="Tabs";const oA=(...e)=>t=>{for(const a of e)if(null==a||a(t),t.defaultPrevented)break},sA=()=>{const t=e.useContext(iA);if(!t)throw new Error("A tablist, a tab and a panel all have to stand within a `Tabs` component.");return t},lA=e=>{const{value:t,disabled:a}=e,n=sA(),i=n.selectedValue===t;return{selected:i,tabProps:{id:`${n.groupId}-tab-${t}`,role:"tab","aria-controls":`${n.groupId}-panel-${t}`,"aria-selected":i,"aria-disabled":!!a||void 0,tabIndex:i?0:-1,onKeyDown:e=>{" "!==e.key&&"Enter"!==e.key||n.selectTab(t)},onMouseDown:e=>{a||0!==e.button||e.ctrlKey?e.preventDefault():n.selectTab(t)},onFocus:()=>{i||a||n.selectTab(t)}}}},cA="tab",dA="tab-vertical",uA="tab-hover",mA="tab-selected",pA="tab-disabled";function hA(e,t){const{className:a,value:n,disabled:i,onKeyDown:r,onMouseDown:o,onFocus:s}=e,l=S(e,["className","value","disabled","onKeyDown","onMouseDown","onFocus"]),{selected:c,tabProps:d}=lA({value:n,disabled:i});return P.jsx("button",Object.assign({},l,d,{ref:t,type:"button",onKeyDown:oA(r,d.onKeyDown),onMouseDown:oA(o,d.onMouseDown),onFocus:oA(s,d.onFocus),className:yt(cA,dA,uA,c&&mA,i&&pA,a),"data-component":"Tabs.Tab","data-value":n,"data-selected":c?"":void 0}))}hA.displayName="Tabs.Tab";var gA=wt(hA);const fA=e=>{const{"aria-label":t,"aria-labelledby":a,"aria-orientation":n,ref:i}=e,r=C.useRef(null),o=H(i,r),s=null!=n?n:"horizontal";return{tabListProps:{ref:o,role:"tablist","aria-label":t,"aria-labelledby":a,"aria-orientation":s,onKeyDown:e=>{const t=r.current;if(!t)return;const a="vertical"===s,n=a?"ArrowDown":"ArrowRight",i=a?"ArrowUp":"ArrowLeft",o="Home"===e.key||"End"===e.key,l=e.key===n?1:e.key===i?-1:0;if(0===l&&!o)return;e.preventDefault(),e.stopPropagation();const c=(e=>Array.from(e.querySelectorAll("[role='tab']:not([aria-disabled])")))(t);if(0===c.length)return;if(o)return void c["Home"===e.key?0:c.length-1].focus();const d=c.findIndex(e=>"true"===e.getAttribute("aria-selected"));c[-1===d?0:(d+l+c.length)%c.length].focus()}}}},vA="tab-list",bA="tab-list-vertical";function xA(e,t){const{className:a,onKeyDown:n,"aria-label":i,"aria-labelledby":r,"aria-orientation":o}=e,s=S(e,["className","onKeyDown","aria-label","aria-labelledby","aria-orientation"]),{tabListProps:l}=fA({"aria-label":i,"aria-labelledby":r,"aria-orientation":o,ref:t}),c="vertical"===l["aria-orientation"];return P.jsx("div",Object.assign({},s,l,{onKeyDown:oA(n,l.onKeyDown),className:yt(vA,c&&bA,a),"data-component":"Tabs.List","data-orientation":l["aria-orientation"]}))}xA.displayName="Tabs.List";var yA=wt(xA);const wA=e=>{const{value:t}=e,a=sA(),n=a.selectedValue===t;return{tabPanelProps:{id:`${a.groupId}-panel-${t}`,role:"tabpanel","aria-labelledby":`${a.groupId}-tab-${t}`,hidden:!n,"data-selected":n?"":void 0}}};function NA(e,t){const{className:a,value:n}=e,i=S(e,["className","value"]),{tabPanelProps:r}=wA({value:n});return P.jsx("div",Object.assign({},i,r,{ref:t,className:a,"data-component":"Tabs.Panel","data-value":n}))}NA.displayName="Tabs.Panel";var jA=wt(NA);const kA=Object.assign(rA,{List:yA,Tab:gA,Panel:jA}),CA="timeline",SA="timeline-clip-start",OA="timeline-clip-end";function MA(e,t){const{className:a,clipSidebar:n}=e,i=S(e,["className","clipSidebar"]),r=(e=>!0===e||"both"===e?"both":"start"===e||"end"===e?e:void 0)(n);return P.jsx("ol",Object.assign({ref:t,role:"list",className:yt(CA,("start"===r||"both"===r)&&SA,("end"===r||"both"===r)&&OA,a),"data-component":"Timeline","data-clip-sidebar":r},i))}MA.displayName="Timeline";var TA=wt(MA);const AA="timeline-actions",LA="timeline-actions-narrow";function IA(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(AA,LA,a),"data-component":"Timeline.Actions"},n))}IA.displayName="Timeline.Actions";var DA=wt(IA);const EA="timeline-avatar";function zA(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(EA,a),"data-component":"Timeline.Avatar"},n))}zA.displayName="Timeline.Avatar";var PA=wt(zA);const RA="timeline-badge-wrapper",$A=bt("timeline-badge",{variants:{variant:{accent:"timeline-badge-accent",success:"timeline-badge-success",attention:"timeline-badge-attention",severe:"timeline-badge-severe",danger:"timeline-badge-danger",done:"timeline-badge-done",open:"timeline-badge-open",closed:"timeline-badge-closed",sponsors:"timeline-badge-sponsors"}}});function BA(e,t){const{className:a,variant:n}=e,i=S(e,["className","variant"]);return P.jsx("div",{className:RA,children:P.jsx("div",Object.assign({ref:t,className:yt($A({variant:n}),a),"data-component":"Timeline.Badge","data-variant":n},i))})}BA.displayName="Timeline.Badge";var _A=wt(BA);const VA="timeline-body";function HA(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("div",Object.assign({ref:t,className:yt(VA,a),"data-component":"Timeline.Body"},n))}HA.displayName="Timeline.Body";var FA=wt(HA);const WA="timeline-break",qA="timeline-break-before-condensed";function GA(e,t){const{className:a}=e,n=S(e,["className"]);return P.jsx("li",Object.assign({ref:t,role:"presentation",className:yt(WA,qA,a),"data-component":"Timeline.Break"},n))}GA.displayName="Timeline.Break";var KA=wt(GA);const UA="timeline-item",YA="timeline-item-rail",ZA="timeline-item-condensed",QA="timeline-item-condensed-badge",XA="timeline-item-condensed-avatar",JA="timeline-item-narrow";function eL(e,t){const{className:a,condensed:n}=e,i=S(e,["className","condensed"]);return P.jsx("li",Object.assign({ref:t,className:yt(UA,YA,JA,n&&ZA,n&&QA,n&&XA,a),"data-component":"Timeline.Item","data-timeline-item":"","data-condensed":n?"":void 0},i))}eL.displayName="Timeline.Item";var tL=wt(eL);const aL=Object.assign(TA,{Item:tL,Avatar:PA,Badge:_A,Body:FA,Break:KA,Actions:DA});let nL=[],iL=0;const rL=new Set,oL=()=>{for(const e of rL)e()},sL=e=>(rL.add(e),()=>{rL.delete(e)}),lL=()=>nL,cL=[],dL=()=>cL,uL=e=>{const t=nL.some(t=>t.id===e.id);return nL=t?nL.map(t=>t.id!==e.id?t:Object.assign(Object.assign(Object.assign({},t),e),{dismissed:!1,revision:t.revision+1})):[Object.assign(Object.assign({},e),{revision:0}),...nL],oL(),e.id},mL=e=>(nL=nL.map(t=>void 0===e||t.id===e?Object.assign(Object.assign({},t),{dismissed:!0}):t),oL(),e),pL=()=>"toast-"+ ++iL,hL=(e,t,a={})=>{var n;return uL(Object.assign(Object.assign({},a),{id:null!==(n=a.id)&&void 0!==n?n:pL(),title:t,variant:e}))},gL=(e,t)=>"function"==typeof e?e(t):e,fL=(e,t)=>hL("default",e,t),vL=Object.assign(fL,{message:fL,success:(e,t)=>hL("success",e,t),error:(e,t)=>hL("error",e,t),warning:(e,t)=>hL("warning",e,t),info:(e,t)=>hL("info",e,t),loading:(e,t)=>hL("loading",e,Object.assign({duration:1/0},t)),custom:(e,t={})=>{var a;return uL(Object.assign(Object.assign({},t),{id:null!==(a=t.id)&&void 0!==a?a:pL(),variant:"default",render:e}))},promise:(e,t,a={})=>{var n;const i=null!==(n=a.id)&&void 0!==n?n:pL();hL("loading",t.loading,Object.assign(Object.assign({},a),{id:i,duration:1/0}));const r=(e,t)=>{null!=t?hL(e,t,Object.assign(Object.assign({},a),{id:i,duration:a.duration})):mL(i)};return("function"==typeof e?e():e).then(e=>r("success",gL(t.success,e)),e=>r("error",gL(t.error,e))),i},dismiss:mL,getToasts:lL}),bL={root:"toast",animated:"motion-safe:[transition:transform_var(--motion-transition-state-change),opacity_var(--motion-transition-state-change),height_var(--motion-transition-state-change)]",grabbable:"toast-grabbable",lift:{top:"toast-lift-top",bottom:"toast-lift-bottom"},bridge:"toast-bridge",bridgeTop:"toast-bridge-top",bridgeBottom:"toast-bridge-bottom",card:"toast-card",iconColor:{default:"",success:"toast-icon-success",error:"toast-icon-error",warning:"toast-icon-warning",info:"toast-icon-info",loading:""},richColors:{default:"",success:"toast-rich-success",error:"toast-rich-error",warning:"toast-rich-warning",info:"toast-rich-info",loading:""},hidden:"opacity-0",waiting:"pointer-events-none",dragging:"select-none",body:"toast-body motion-safe:[transition:opacity_var(--motion-transition-state-change)]",bodyStacked:"opacity-0",icon:"toast-icon",content:"toast-content",title:"toast-title",description:"toast-description",actions:"toast-actions"},xL={default:null,success:$t,error:Zt,warning:ja,info:ea,loading:null};function yL(e){var t,a,n,i,r,o;const{toast:s,place:l,position:c,height:d,frontHeight:u,stackSize:m,expanded:p,visible:h,paused:g,swipeDirections:f,icons:v,defaults:b,onHeight:x}=e,{id:y,variant:w,title:N,description:j,render:k}=s,S=null!==(t=s.duration)&&void 0!==t?t:b.duration,O=null!==(a=s.dismissible)&&void 0!==a?a:b.dismissible,M=null!==(n=s.closeButton)&&void 0!==n?n:b.closeButton,T=null!==(i=s.richColors)&&void 0!==i?i:b.richColors,A=null!==(o=null!==(r=s.important)&&void 0!==r?r:b.important)&&void 0!==o&&o,L=C.useRef(null),[I,D]=C.useState(!1),[E,z]=C.useState({x:0,y:0}),[R,$]=C.useState(!1),[B,_]=C.useState(!1),V=C.useRef(null),H=Boolean(s.dismissed),F=0===l.index,W=I&&!p&&!F,q=Boolean(k),G=c.startsWith("top")?"top":"bottom",K=e=>{var t,a;s.dismissed||(mL(y),"timeout"===e?null===(t=s.onAutoClose)||void 0===t||t.call(s,s):null===(a=s.onDismiss)||void 0===a||a.call(s,s))};C.useEffect(()=>{D(!0)},[]);const U=C.useRef({revision:-1,time:S});C.useEffect(()=>{if(U.current.revision!==s.revision&&(U.current={revision:s.revision,time:S}),g||H||S===1/0)return;const e=Date.now(),t=window.setTimeout(()=>K("timeout"),Math.max(U.current.time,0));return()=>{window.clearTimeout(t),U.current.time-=Date.now()-e}},[s,S,g,H]),C.useEffect(()=>{if(!H)return;const e=window.setTimeout(()=>(e=>{nL=nL.filter(t=>t.id!==e),oL()})(y),200);return()=>{window.clearTimeout(e)}},[H,y]),Oi(()=>{const e=L.current;if(!e)return;const t=e.style.height;e.style.height="auto";const a=e.getBoundingClientRect().height;e.style.height=t,x(y,a)},[x,y,s.revision,N,j,p]);const Y=e=>f.includes(e),Z=(e,t,a)=>e<0?Y(t)?e:0:Y(a)?e:0,Q=p?"calc(var(--toast-lift) * var(--toast-offset))":"calc(var(--toast-lift) * var(--toaster-gap) * var(--toast-index))",X="calc(var(--toast-lift) * -100%)",J={"--toast-index":l.index,"--toast-offset":`${l.offset}px`,"--toast-z-index":m-l.index,"--toast-height":(ee=W?u:d,ee>0?`${ee}px`:"auto"),"--toast-shift":I?!H||B?Q:F?X:p?`calc(${Q} + ${X})`:Q:X,"--toast-scale":W?Math.max(1-.05*l.index,0):1,"--toast-swipe-x":`${E.x}px`,"--toast-swipe-y":`${E.y}px`};var ee;const te=xL[w],ae=void 0!==s.icon?s.icon:null==v?void 0:v[w],ne=void 0!==ae?ae:"loading"===w?P.jsx(zn,{size:"small",srText:null}):te?P.jsx(te,{}):null,ie=(e,t,a)=>(e=>"object"==typeof e&&null!==e&&"label"in e&&!C.isValidElement(e))(e)?P.jsx(Qn,{size:"small",variant:a,onClick:a=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,a),a.defaultPrevented||K(t)},"data-component":"Toast."+("action"===t?"Action":"Cancel"),children:e.label}):e,re=void 0!==s.action||void 0!==s.cancel;return P.jsx("li",{ref:L,role:A?"alert":"status","aria-live":A?"assertive":"polite","aria-atomic":"true",className:yt(bL.root,bL.lift[G],bL.bridge,"top"===G?bL.bridgeTop:bL.bridgeBottom,O&&bL.grabbable,!q&&bL.card,!q&&bL.iconColor[w],!q&&T&&bL.richColors[w],(!I||H||!h)&&bL.hidden,!h&&bL.waiting,R?bL.dragging:bL.animated,b.className,s.className),style:J,"data-component":"Toast","data-variant":w,"data-position":c,"data-mounted":I,"data-removed":H,"data-front":F,"data-expanded":p,"data-stacked":W,"data-visible":h,"data-dragging":R,"data-swiped-out":B,"data-rich-colors":T||void 0,onPointerDown:e=>{var t,a;O&&0===e.button&&!e.target.closest("button")&&(V.current={pointerId:e.pointerId,x:e.clientX,y:e.clientY},null===(a=(t=e.currentTarget).setPointerCapture)||void 0===a||a.call(t,e.pointerId),$(!0))},onPointerMove:e=>{const t=V.current;t&&t.pointerId===e.pointerId&&z({x:Z(e.clientX-t.x,"left","right"),y:Z(e.clientY-t.y,"top","bottom")})},onPointerUp:e=>{const t=V.current;if(!t||t.pointerId!==e.pointerId)return;if(V.current=null,$(!1),Math.max(Math.abs(E.x),Math.abs(E.y))<45)return void z({x:0,y:0});const a=e.currentTarget.getBoundingClientRect(),n=(e,t)=>0===e?0:Math.sign(e)*(t+32);z({x:n(E.x,a.width),y:n(E.y,a.height)}),_(!0),K("swipe")},onPointerCancel:()=>{V.current=null,$(!1),z({x:0,y:0})},children:q?null==k?void 0:k(s):P.jsxs("div",{className:yt(bL.body,W&&bL.bodyStacked),"data-component":"Toast.Body",children:[null===ne?null:P.jsx("span",{className:bL.icon,"aria-hidden":"true","data-component":"Toast.Icon",children:ne}),P.jsxs("div",{className:bL.content,"data-component":"Toast.Content",children:[P.jsx("div",{className:bL.title,"data-component":"Toast.Title",children:N}),void 0===j?null:P.jsx("div",{className:bL.description,"data-component":"Toast.Description",children:j})]}),re?P.jsxs("div",{className:bL.actions,"data-component":"Toast.Actions",children:[ie(s.cancel,"cancel","invisible"),ie(s.action,"action","default")]}):null,M&&O?P.jsx(ei,{icon:Ut,"aria-label":"Close",variant:"invisible",size:"small",onClick:()=>K("close-button"),"data-component":"Toast.CloseButton"}):null]})})}yL.displayName="Toast";const wL=bt("toaster z-popover",{variants:{position:{"top-left":"toaster-top-left","top-center":"toaster-top-center","top-right":"toaster-top-right","bottom-left":"toaster-bottom-left","bottom-center":"toaster-bottom-center","bottom-right":"toaster-bottom-right"}}}),NL=4e3,jL=3,kL=14,CL=24,SL=16,OL=356,ML=["altKey","KeyT"],TL=e=>"number"==typeof e?`${e}px`:e,AL=e=>(document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}),LL=()=>"hidden"===document.visibilityState,IL=()=>!1;function DL(e,t){var a;const{position:n="bottom-right",expand:i=!1,visibleToasts:r=jL,toastOptions:o,duration:s=NL,closeButton:l=!1,richColors:c=!1,gap:d=kL,offset:u=CL,mobileOffset:m=SL,width:p=OL,hotkey:h=ML,swipeDirections:g,icons:f,containerAriaLabel:v="Notifications",className:b,style:x}=e,y=S(e,["position","expand","visibleToasts","toastOptions","duration","closeButton","richColors","gap","offset","mobileOffset","width","hotkey","swipeDirections","icons","containerAriaLabel","className","style"]),w=C.useSyncExternalStore(sL,lL,dL),N=C.useSyncExternalStore(AL,LL,IL),j=C.useRef(null),k=H(t,j),[O,M]=C.useState({}),[T,A]=C.useState(!1),L=i||T,I=C.useCallback((e,t)=>{M(a=>a[e]===t?a:Object.assign(Object.assign({},a),{[e]:t}))},[]);C.useEffect(()=>{M(e=>{const t=Object.keys(e).filter(e=>w.some(t=>t.id===e));return t.length===Object.keys(e).length?e:Object.fromEntries(t.map(t=>[t,e[t]]))})},[w]);const D=w.filter(e=>!e.dismissed),E=new Map;let z=0;D.forEach((e,t)=>{var a;E.set(e.id,{index:t,offset:z}),z+=(null!==(a=O[e.id])&&void 0!==a?a:0)+d});const R=C.useRef(E);for(const e of w)if(!E.has(e.id)){const t=R.current.get(e.id);t&&E.set(e.id,t)}R.current=E;const $=D.length>0&&null!==(a=O[D[0].id])&&void 0!==a?a:0;C.useEffect(()=>{const e=e=>{var t;const a=j.current,n=null!==a&&(document.activeElement===a||a.contains(document.activeElement));if("Escape"===e.code&&n)return void A(!1);h.every(t=>Boolean(e[t])||e.code===t)&&(A(!0),null===(t=j.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[h]);const B=Object.assign({duration:s,closeButton:l,richColors:c,dismissible:!0},o),_=null!=g?g:(e=>{const[t,a]=e.split("-"),n=[t];return"left"!==a&&"right"!==a||n.push(a),n})(n);return P.jsx(_i,{children:P.jsx("section",{"aria-label":v,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,"data-component":"Toaster.Region",children:P.jsx("ol",Object.assign({ref:k,tabIndex:-1,className:yt(wL({position:n}),b),style:Object.assign(Object.assign({},x),{"--toaster-width":TL(p),"--toaster-viewport-offset":TL(u),"--toaster-mobile-offset":TL(m),"--toaster-gap":`${d}px`}),"data-component":"Toaster","data-position":n,"data-expanded":L,onPointerEnter:()=>A(!0),onPointerLeave:()=>A(!1),onFocus:()=>A(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||A(!1)}},y,{children:w.map(e=>{var t,a;const i=null!==(t=E.get(e.id))&&void 0!==t?t:{index:0,offset:0};return P.jsx(yL,{toast:e,place:i,position:n,height:null!==(a=O[e.id])&&void 0!==a?a:0,frontHeight:$,stackSize:w.length,expanded:L,visible:i.index<r,paused:T||N,swipeDirections:_,icons:f,defaults:B,onHeight:I},e.id)})}))})})}DL.displayName="Toaster";var EL=wt(DL);const zL=2e3,PL="toggle-switch-content",RL="sr-only",$L="toggle-switch-icon",BL=bt("toggle-switch",{variants:{statusLabelPosition:{start:"toggle-switch-label-start",end:"toggle-switch-label-end"}}}),_L=bt("toggle-switch-status",{variants:{statusLabelPosition:{start:"",end:"toggle-switch-status-end"}}}),VL=bt("toggle-switch-status-label",{variants:{size:{small:"toggle-switch-status-label-small",medium:"toggle-switch-status-label-medium"},disabled:{true:"toggle-switch-status-label-disabled",false:""}}}),HL=bt("toggle-switch-status-text",{variants:{hidden:{true:"toggle-switch-status-text-hidden",false:""}}}),FL=bt("toggle-switch-track",{variants:{size:{small:"toggle-switch-track-small",medium:"toggle-switch-track-medium"},track:{off:"toggle-switch-track-off",on:"toggle-switch-track-on",disabled:"toggle-switch-track-disabled"}}}),WL=bt($L,{variants:{disabled:{true:"toggle-switch-circle-icon-disabled",false:"toggle-switch-circle-icon"},checked:{true:"translate-x-0",false:"-translate-x-full"}}}),qL=bt($L,{variants:{disabled:{true:"toggle-switch-line-icon-disabled",false:"toggle-switch-line-icon"},checked:{true:"translate-x-full",false:"translate-x-0"}}}),GL=bt("toggle-switch-knob",{variants:{checked:{true:"toggle-switch-knob-checked",false:"translate-x-0"},disabled:{true:"toggle-switch-knob-disabled",false:""}}}),KL={small:12,medium:16},UL=({size:e})=>P.jsx("svg",{"aria-hidden":"true",width:KL[e],height:KL[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"})}),YL=({size:e})=>P.jsx("svg",{"aria-hidden":"true",width:KL[e],height:KL[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"})});function ZL(e,t){const{className:a,checked:n,defaultChecked:i,disabled:r,loading:o,onChange:s,onClick:l,size:c="medium",statusLabelPosition:d="start",buttonType:u="button",loadingLabel:m="Loading",loadingLabelDelay:p=zL,buttonLabelOn:h="On",buttonLabelOff:g="Off","aria-labelledby":f,"aria-describedby":v}=e,b=S(e,["className","checked","defaultChecked","disabled","loading","onChange","onClick","size","statusLabelPosition","buttonType","loadingLabel","loadingLabelDelay","buttonLabelOn","buttonLabelOff","aria-labelledby","aria-describedby"]),x=void 0!==n,[y,w]=C.useState(Boolean(i)),N=x?n:y,j=!r&&!o,k=`${Da()}-loading-label`,[O,M]=C.useState(!1);C.useEffect(()=>{if(!o)return void M(!1);const e=window.setTimeout(()=>{M(!0)},p);return()=>{window.clearTimeout(e)}},[o,p]);const T=e=>{j&&(x||w(!N),null==s||s(!N),null==l||l(e))},A=[O?k:void 0,v].filter(Boolean).join(" ");return P.jsxs("div",Object.assign({className:yt(BL({statusLabelPosition:d}),a),"data-component":"ToggleSwitch","data-size":c,"data-status-label-position":d,"data-checked":N,"data-disabled":!j,"data-loading":o?"true":void 0},b,{children:[P.jsx("span",{id:k,role:"status",className:RL,children:O?m:""}),o?P.jsx("span",{className:yt(_L({statusLabelPosition:d})),"data-component":"ToggleSwitch.LoadingSpinner",children:P.jsx(zn,{size:"small",srText:null,role:"presentation"})}):null,P.jsxs("span",{className:yt(VL({size:c,disabled:!j})),"aria-hidden":"true",onClick:T,"data-component":"ToggleSwitch.StatusText",children:[P.jsx("span",{className:yt(HL({hidden:!N})),children:h}),P.jsx("span",{className:yt(HL({hidden:N})),children:g})]}),P.jsxs("button",{ref:t,type:u,className:yt(FL({size:c,track:j?N?"on":"off":"disabled"})),onClick:T,"aria-labelledby":f,"aria-describedby":A||void 0,"aria-pressed":N,"aria-disabled":!j,"data-component":"ToggleSwitch.SwitchButton",children:[P.jsxs("span",{className:PL,"aria-hidden":"true",children:[P.jsx("span",{className:yt(WL({disabled:!j,checked:N})),"data-component":"ToggleSwitch.LineIcon",children:P.jsx(YL,{size:c})}),P.jsx("span",{className:yt(qL({disabled:!j,checked:N})),"data-component":"ToggleSwitch.CircleIcon",children:P.jsx(UL,{size:c})})]}),P.jsx("span",{className:yt(GL({checked:N,disabled:!j})),"aria-hidden":"true","data-component":"ToggleSwitch.ToggleKnob"})]})]}))}ZL.displayName="ToggleSwitch";var QL=wt(ZL);const XL=bt("token",{variants:{size:{small:"token-small",medium:"token-medium",large:"token-large",xlarge:"token-xlarge"},interactive:{true:"token-interactive",false:"token-static"}}}),JL="medium",eI=({as:e="span",onClick:t,onFocus:a,tabIndex:n=-1,disabled:i})=>!i&&Boolean(a||t||n>-1||"a"===e||"button"===e);function tI(e,t){const a=e,{as:n="span",className:i,size:r=JL,isSelected:o,onRemove:s,onKeyDown:l}=a,c=S(a,["as","className","size","isSelected","onRemove","onKeyDown"]),d=eI({as:n,onClick:c.onClick,onFocus:c.onFocus,tabIndex:c.tabIndex,disabled:c.disabled});return P.jsx(n,Object.assign({ref:t,onKeyDown:e=>{null==l||l(e),"Backspace"!==e.key&&"Delete"!==e.key||null==s||s()},className:yt(XL({size:r,interactive:d}),i),"data-component":"Token","data-size":r,"data-interactive":d?"":void 0,"data-selected":o?"":void 0},"button"===n?{type:"button"}:{},c))}tI.displayName="TokenBase";var aI=wt(tI);const nI=bt("token-remove-button",{variants:{size:{small:"token-remove-button-small",medium:"token-remove-button-medium",large:"token-remove-button-large",xlarge:"token-remove-button-xlarge"},raised:{true:"token-remove-button-raised",false:""}}});function iI(e){const{className:t,size:a=JL,isParentInteractive:n}=e,i=S(e,["className","size","isParentInteractive"]),r=yt(nI({size:a,raised:n}),t);return n?P.jsx("span",Object.assign({"aria-hidden":"true",tabIndex:-1,className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:P.jsx(Ut,{})})):P.jsx("button",Object.assign({type:"button","aria-label":"Remove token",className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:P.jsx(Ut,{})}))}iI.displayName="Token.RemoveButton";const rI="token-text",oI="token-text-interactive";function sI(e,t){const a=e,{as:n="span",className:i,interactive:r}=a,o=S(a,["as","className","interactive"]);return P.jsx(n,Object.assign({ref:t,className:yt(rI,r&&oI,i),"data-component":"Token.Text"},"button"===n?{type:"button"}:{},o))}sI.displayName="Token.Text";var lI=wt(sI);const cI="sr-only",dI=bt("token-default",{variants:{interactive:{true:"token-default-interactive",false:""},selected:{true:"token-default-selected",false:""},withRemoveButton:{true:"token-with-remove-button",false:""}}}),uI=bt("token-visual",{variants:{size:{small:"",medium:"token-visual-medium",large:"token-visual-large",xlarge:"token-visual-xlarge"}}}),mI=e=>{if(C.isValidElement(e))return e;const t=e;return P.jsx(t,{})};function pI(e,t){const a=e,{as:n,className:i,text:r,size:o=JL,leadingVisual:s,onRemove:l,hideRemoveButton:c,isSelected:d,href:u,onClick:m}=a,p=S(a,["as","className","text","size","leadingVisual","onRemove","hideRemoveButton","isSelected","href","onClick"]),h=eI({as:n,onClick:m,onFocus:p.onFocus,tabIndex:p.tabIndex,disabled:p.disabled}),g=Boolean(l)&&!c,f=h&&g,v={as:n,href:u,onClick:m};return P.jsxs(aI,Object.assign({ref:t,size:o,isSelected:d,onRemove:l,className:yt(dI({interactive:h,selected:d,withRemoveButton:g}),i),"data-has-remove-button":g?"":void 0},f?{}:v,p,{children:[s&&"small"!==o?P.jsx("span",{className:yt(uI({size:o})),"data-component":"Token.LeadingVisual",children:mI(s)}):null,P.jsxs(lI,Object.assign({interactive:f},f?v:{},{children:[r,l?P.jsx("span",{className:cI,children:" (press backspace or delete to remove)"}):null]})),g?P.jsx(iI,{size:o,isParentInteractive:h,onClick:e=>{e.stopPropagation(),null==l||l()}}):null]}))}pI.displayName="Token";var hI=wt(pI);const gI="#999999",fI=(e,t,a)=>Math.max(t,Math.min(e,a)),vI=e=>fI(Math.round(e),0,100),bI=e=>{const t=e.trim();if(t.startsWith("#")){const e=t.slice(1);if(3===e.length){const[t,a,n]=[...e].map(e=>parseInt(e+e,16));return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}if(6===e.length){const t=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),n=parseInt(e.slice(4,6),16);return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}return null}const a=t.match(/^rgba?\(([^)]+)\)$/i);if(!a)return null;const n=a[1].split(/[\s,/]+/).filter(Boolean).map(Number);if(n.length<3||n.slice(0,3).some(Number.isNaN))return null;const[i,r,o]=n;return{r:i,g:r,b:o}},xI=e=>{var t;const a=null!==(t=bI(e))&&void 0!==t?t:bI(gI),{h:n,s:i,l:r}=(({r:e,g:t,b:a})=>{const n=e/255,i=t/255,r=a/255,o=Math.max(n,i,r),s=Math.min(n,i,r),l=o-s,c=(o+s)/2;if(0===l)return{h:0,s:0,l:Math.round(100*c)};const d=l/(1-Math.abs(2*c-1));let u;return u=o===n?(i-r)/l%6:o===i?(r-n)/l+2:(n-i)/l+4,u=Math.round(60*u),{h:u<0?u+360:u,s:Math.round(100*d),l:Math.round(100*c)}})(a),o=(({r:e,g:t,b:a})=>(.2126*e+.7152*t+.0722*a)/255)(a),{r:s,g:l,b:c}=a,d=fI(1/(.453-o),0,1),u=fI(100*(o-.96),0,1),m=100*(.6-o)*fI(1/(.6-o),0,1),p=vI(r+m);return{light:{background:`rgb(${s}, ${l}, ${c})`,foreground:`hsl(0deg, 0%, ${Math.round(100*d)}%)`,border:`hsla(${n}deg, ${i}%, ${vI(r-25)}%, ${u})`,ring:`rgb(${s}, ${l}, ${c})`,backgroundHover:`hsl(${n}deg, ${i}%, ${vI(r-5)}%)`},dark:{background:`rgba(${s}, ${l}, ${c}, 0.18)`,foreground:`hsl(${n}deg, ${i}%, ${p}%)`,border:`hsla(${n}deg, ${i}%, ${p}%, 0.3)`,ring:`hsl(${n}deg, ${i}%, ${p}%)`,backgroundHover:`hsla(${n}deg, ${i}%, ${vI(r+10)}%, 0.3)`}}},yI="issue-label-token",wI="issue-label-token-interactive",NI="issue-label-token-selected",jI="token-with-remove-button",kI="sr-only";function CI(e,t){const a=e,{as:n,className:i,style:r,text:o,size:s=JL,fillColor:l=gI,onRemove:c,hideRemoveButton:d,isSelected:u,href:m,onClick:p}=a,h=S(a,["as","className","style","text","size","fillColor","onRemove","hideRemoveButton","isSelected","href","onClick"]),g=C.useMemo(()=>xI(l),[l]),f=eI({as:n,onClick:p,onFocus:h.onFocus,tabIndex:h.tabIndex,disabled:h.disabled}),v=Boolean(c)&&!d,b=f&&v,x={as:n,href:m,onClick:p};return P.jsxs(aI,Object.assign({ref:t,size:s,isSelected:u,onRemove:c,className:yt(yI,f&&wI,u&&NI,v&&jI,i),style:Object.assign(Object.assign({},r),{"--issue-label-background":g.light.background,"--issue-label-foreground":g.light.foreground,"--issue-label-border":g.light.border,"--issue-label-ring":g.light.ring,"--issue-label-background-hover":g.light.backgroundHover,"--issue-label-dark-background":g.dark.background,"--issue-label-dark-foreground":g.dark.foreground,"--issue-label-dark-border":g.dark.border,"--issue-label-dark-ring":g.dark.ring,"--issue-label-dark-background-hover":g.dark.backgroundHover}),"data-component":"IssueLabelToken","data-has-remove-button":v?"":void 0},b?{}:x,h,{children:[P.jsxs(lI,Object.assign({interactive:b},b?x:{},{children:[o,c?P.jsx("span",{className:kI,children:" (press backspace or delete to remove)"}):null]})),v?P.jsx(iI,{size:s,isParentInteractive:f,onClick:e=>{e.stopPropagation(),null==c||c()}}):null]}))}CI.displayName="IssueLabelToken";var SI=wt(CI);const OI="topic-tag",MI="topic-tag-interactive",TI="topic-tag-hover";function AI(e,t){const a=e,{as:n="a",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(OI,MI,TI,i),"data-component":"TopicTag"},r))}AI.displayName="TopicTag";var LI=wt(AI);const II="topic-tag-group";function DI(e,t){const a=e,{as:n="div",className:i}=a,r=S(a,["as","className"]);return P.jsx(n,Object.assign({ref:t,className:yt(II,i),"data-component":"TopicTag.Group"},r))}DI.displayName="TopicTag.Group";var EI=wt(DI);const zI=Object.assign(LI,{Group:EI}),PI=C.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map},scrollElementIntoView:()=>{}}),RI=C.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:"",trailingActionId:""}),$I=C.createContext(!1),BI="[role=tree]",_I="[role=treeitem]",VI=e=>{var t,a,n;const i=e.getAttribute("aria-label");if(i)return i;const r=e.getAttribute("aria-labelledby");return r?null!==(a=null===(t=document.getElementById(r))||void 0===t?void 0:t.textContent)&&void 0!==a?a:"":null!==(n=e.textContent)&&void 0!==n?n:""},HI=e=>{var t;return Boolean(null===(t=e.parentElement)||void 0===t?void 0:t.closest("[role=treeitem][aria-expanded=false]"))},FI=e=>{const t=e.querySelector(_I);return t instanceof HTMLElement?t:void 0},WI=e=>{var t;const a=null===(t=e.closest("[role=group]"))||void 0===t?void 0:t.closest(_I);return a instanceof HTMLElement?a:void 0},qI=(e,t)=>{const a=e.closest(BI);if(!a)return;const n=Array.from(a.querySelectorAll(_I)),i="next"===t?1:-1;for(let t=n.indexOf(e)+i;t>=0&&t<n.length;t+=i)if(!HI(n[t]))return n[t]},GI=(e,t)=>{var a,n;const i=(null==t?void 0:t.getBoundingClientRect().height)||32,r=null!==(n=null===(a=(e=>{let t=e.parentElement;for(;t;){const{overflowY:e}=getComputedStyle(t);if("auto"===e||"scroll"===e)return t;t=t.parentElement}})(e))||void 0===a?void 0:a.clientHeight)&&void 0!==n?n:window.innerHeight;return Math.max(Math.floor(r/i),1)},KI=(e,t)=>{const a=e.closest(BI);if(!a)return;const n=Array.from(a.querySelectorAll(_I));if(0===n.length)return;const i=GI(a,n[0].firstElementChild),r=n.indexOf(e),o=Math.floor(r/i),s=(o+("next"===t?1:-1))*i+(r-i*o);return n[Math.min(Math.max(s,0),n.length-1)]},UI={"open ArrowRight":FI,"closed ArrowLeft":WI,"end ArrowLeft":WI},YI=new Set(["ArrowLeft","ArrowRight"]),ZI={ArrowUp:e=>qI(e,"previous"),ArrowDown:e=>qI(e,"next"),Backspace:WI,Home:e=>{var t;const a=null===(t=e.closest(BI))||void 0===t?void 0:t.querySelector(_I);return a instanceof HTMLElement?a:void 0},End:e=>{const t=e.closest(BI);if(!t)return;const a=Array.from(t.querySelectorAll(_I));for(let e=a.length-1;e>=0;e--)if(!HI(a[e]))return a[e]},PageUp:e=>KI(e,"previous"),PageDown:e=>KI(e,"next")},QI="[role=treeitem]",XI=({containerRef:e})=>{Oi(()=>{const t=e.current;if(!t)return;const a=e=>{var a,n,i;const r=Array.from(t.querySelectorAll(QI));if(0===r.length)return;const o=null!==(i=null!==(n=null!==(a=e instanceof HTMLElement&&t.contains(e)?e.closest(QI):null)&&void 0!==a?a:r.find(e=>0===e.tabIndex))&&void 0!==n?n:r.find(e=>"true"===e.getAttribute("aria-current")))&&void 0!==i?i:r[0];for(const e of r)e.tabIndex=e===o?0:-1};a();const n=e=>{a(e.target)},i=e=>{var a;if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const n=null===(a=e.target)||void 0===a?void 0:a.closest(QI);if(!n||!t.contains(n))return;const i=((e,t)=>{var a,n;return YI.has(t)?null===(a=UI[`${(e=>{const t=e.getAttribute("aria-expanded");return"true"===t?"open":"false"===t?"closed":"end"})(e)} ${t}`])||void 0===a?void 0:a.call(UI,e):null===(n=ZI[t])||void 0===n?void 0:n.call(ZI,e)})(n,e.key);i&&(e.preventDefault(),i.focus())},r=new MutationObserver(()=>a(document.activeElement));return r.observe(t,{childList:!0,subtree:!0}),t.addEventListener("focusin",n),t.addEventListener("keydown",i),()=>{r.disconnect(),t.removeEventListener("focusin",n),t.removeEventListener("keydown",i)}},[e])},JI=({containerRef:e,onFocusChange:t})=>{const a=C.useRef(""),n=C.useRef(0),i=C.useRef(t);C.useEffect(()=>{i.current=t},[t]),C.useEffect(()=>{const t=e.current;if(!t)return;let r=null;const o=new MutationObserver(()=>{r=null});o.observe(t,{childList:!0,subtree:!0});const s=e=>{if(!e.key||e.key.length>1||" "===e.key)return;if(e.ctrlKey||e.altKey||e.metaKey)return;a.current+=e.key;const o=(null!=r||(r=Array.from(t.querySelectorAll("[role=treeitem]"))),r),s=o.findIndex(e=>e===document.activeElement),l=((e,t)=>e.map((a,n)=>e[(t+n)%e.length]))(o,Math.max(s,0)),c=1===a.current.length?l.slice(1):l,d=a.current.toLowerCase(),u=c.find(e=>VI(e).trim().toLowerCase().startsWith(d));u&&i.current(u),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{a.current=""},300),e.preventDefault(),e.stopPropagation()};return t.addEventListener("keydown",s),()=>{o.disconnect(),t.removeEventListener("keydown",s),window.clearTimeout(n.current)}},[e])},eD="tree-view",tD="tree-view-hover",aD="tree-view-coarse",nD="sr-only";function iD(e,t){var a;const{children:n,className:i,flat:r,truncate:o=!0}=e,s=S(e,["children","className","flat","truncate"]),l=C.useRef(null),c=H(t,l),[d,u]=C.useState(""),m=C.useCallback(e=>u(e),[]);XI({containerRef:l}),JI({containerRef:l,onFocusChange:e=>e.focus()});const p=C.useRef(null),h=C.useCallback(e=>{e&&(null!==p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{p.current=null,e.isConnected&&e.scrollIntoView({block:"nearest",inline:"nearest"})}))},[]);C.useEffect(()=>()=>{null!==p.current&&cancelAnimationFrame(p.current)},[]);const g=C.useRef(null);null!==(a=g.current)&&void 0!==a||(g.current=new Map);const f=C.useMemo(()=>({announceUpdate:m,expandedStateCache:g,scrollElementIntoView:h}),[m,h]);return P.jsxs(PI.Provider,{value:f,children:[P.jsx("span",{role:"status","aria-live":"polite",className:nD,"data-component":"TreeView.Announcement",children:d}),P.jsx("ul",Object.assign({ref:c,role:"tree",className:yt(eD,tD,aD,i),"data-component":"TreeView","data-omit-spacer":r?"true":void 0,"data-truncate-text":o?"true":"false"},s,{children:n}))]})}iD.displayName="TreeView";var rD=C.forwardRef(iD);const oD="tree-view-directory-icon";function sD(){const{isExpanded:e}=C.useContext(RI),t=e?Xt:Jt;return P.jsx("span",{className:oD,"data-component":"TreeView.DirectoryIcon",children:P.jsx(t,{})})}sD.displayName="TreeView.DirectoryIcon";const lD=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];function cD(e){const{title:t="Error",children:a,onRetry:n,onDismiss:i}=e,{itemId:r,setIsExpanded:o}=C.useContext(RI);return P.jsx("div",{onKeyDown:e=>{lD.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ErrorDialog",children:P.jsx(sf,{title:t,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{window.setTimeout(()=>{var e;return null===(e=document.getElementById(r))||void 0===e?void 0:e.focus()}),"confirm"!==e?(o(!1),null==i||i()):null==n||n()},children:a})})}cD.displayName="TreeView.ErrorDialog";const dD="sr-only",uD=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"],mD=e=>{if(!a.isValidElementType(e))return e;const t=e;return P.jsx(t,{})};function pD(e){const{items:t,onClose:a}=e,{itemId:n}=C.useContext(RI);return P.jsx("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>{uD.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ActionDialog",children:P.jsx(ab,{title:"Supplemental actions",onClose:()=>{null==a||a(),window.setTimeout(()=>{var e;return null===(e=document.getElementById(n))||void 0===e?void 0:e.focus()})},children:P.jsx(xi,{children:t.map(({label:e,onClick:t,icon:a,count:n},i)=>P.jsxs(xi.Item,{onSelect:t,children:[P.jsx(xi.LeadingVisual,{children:mD(a)}),e,n?P.jsxs(xi.TrailingVisual,{children:[n,P.jsx("span",{className:dD,children:" items"})]}):null]},i))})})})}pD.displayName="TreeView.ActionDialog";const hD="tree-view-visual",gD="sr-only",fD=(e,t)=>"function"==typeof e?e({isExpanded:t}):e,vD=e=>{const{children:t,label:a,labelId:n,className:i,"data-component":r}=e,{isExpanded:o}=C.useContext(RI);return P.jsxs(P.Fragment,{children:[P.jsx("span",{id:n,className:gD,"aria-hidden":"true",children:a}),P.jsx("span",{className:i,"aria-hidden":"true","data-component":r,children:fD(t,o)})]})},bD="tree-view-leading-action";function xD(e){return P.jsx(vD,{label:e.label,className:bD,"data-component":"TreeView.LeadingAction",children:e.children})}function yD(e){const{leadingVisualId:t}=C.useContext(RI);return P.jsx(vD,{label:e.label,labelId:t,className:hD,"data-component":"TreeView.LeadingVisual",children:e.children})}xD.displayName="TreeView.LeadingAction",yD.displayName="TreeView.LeadingVisual";const wD="tree-view-sub-tree",ND="tree-view-skeleton-row",jD="tree-view-skeleton-text",kD="tree-view-muted",CD="sr-only",SD=["67%","47%","73%","64%","50%"],OD=({index:e})=>P.jsxs("span",{className:ND,style:{"--tree-view-skeleton-width":SD[e%SD.length]},"aria-hidden":"true",children:[P.jsx(RT,{size:16,shape:"square"}),P.jsx(cv,{className:jD})]}),MD=C.forwardRef(({count:e},t)=>{const a=Da();return P.jsx($I.Provider,{value:!0,children:P.jsx(XD,{ref:t,id:a,children:e?P.jsxs(P.Fragment,{children:[Array.from({length:e},(e,t)=>P.jsx(OD,{index:t},t)),P.jsxs("span",{className:CD,children:["Loading ",e," items"]})]}):P.jsxs(P.Fragment,{children:[P.jsx(yD,{children:P.jsx(zn,{size:"small",srText:null})}),P.jsx(Wr,{className:kD,children:"Loading..."})]})})})});MD.displayName="TreeView.LoadingItem";const TD=()=>P.jsx(XD,{id:Da(),expanded:null,children:P.jsx(Wr,{className:kD,children:"No items found"})});function AD(e){const{count:t,state:a,children:n,"aria-label":i}=e,{announceUpdate:r}=C.useContext(PI),{itemId:o,isExpanded:s,isSubTreeEmpty:l,setIsSubTreeEmpty:c}=C.useContext(RI),d=C.useRef(null),u=C.useRef(null),[m,p]=C.useState(!1),[h,g]=C.useState(""),f=(e=>{const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t.current})(a);return C.useEffect(()=>{void 0!==a&&"done"!==a||c(!n)},[a,n,c]),C.useEffect(()=>{var e;const t=document.getElementById(o);if(!t)return;const n=VI(t);if(g(n),"loading"===a)return void r(`${n} content loading`);if("loading"!==f||"done"!==a)return;if(r((null===(e=d.current)||void 0===e?void 0:e.childElementCount)?`${n} content loaded`:`${n} is empty`),!m)return;const i=window.setTimeout(()=>{var e;(null!==(e=FI(t))&&void 0!==e?e:t).focus()});return p(!1),()=>{window.clearTimeout(i)}},[o,a,f,m,r]),C.useEffect(()=>{const e=u.current;if(!e)return;const t=()=>p(!0),a=e=>{e.relatedTarget&&p(!1)};return e.addEventListener("focus",t),e.addEventListener("blur",a),()=>{e.removeEventListener("focus",t),e.removeEventListener("blur",a)}},[a]),s?P.jsxs("ul",{ref:d,role:"group","aria-label":i||h,className:yt(wD),"data-component":"TreeView.SubTree",children:["loading"===a?P.jsx(MD,{ref:u,count:t}):n,l&&"loading"!==a?P.jsx(TD,{}):null]}):null}AD.displayName="TreeView.SubTree";const LD="tree-view-trailing-action",ID="shrink",DD="sr-only";function ED(e){const{items:t,shortcutText:a}=e,{itemId:n,trailingActionId:i}=C.useContext(RI),r=()=>{var e;null===(e=document.getElementById(n))||void 0===e||e.focus()};return P.jsxs(P.Fragment,{children:[P.jsx("span",{id:i,className:DD,children:a}),P.jsx("span",{className:LD,"aria-hidden":"true",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),"data-component":"TreeView.TrailingAction",children:t.map(({label:e,onClick:t,icon:a,count:n,className:i},o)=>n?P.jsx(oM,{text:e,children:P.jsx(Qn,{variant:"invisible",leadingVisual:a,count:n,"aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:yt(ID,i)})},o):P.jsx(ei,{icon:a,variant:"invisible","aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:yt(ID,i)},o))})]})}function zD(e){const{trailingVisualId:t}=C.useContext(RI);return P.jsx(vD,{label:e.label,labelId:t,className:hD,"data-component":"TreeView.TrailingVisual",children:e.children})}ED.displayName="TreeView.TrailingAction",zD.displayName="TreeView.TrailingVisual";const PD="tree-view-item",RD="tree-view-item-container",$D="tree-view-item-container-flat",BD="tree-view-item-container-has-leading-action",_D="tree-view-item-container-current",VD="tree-view-item-container-loading",HD="tree-view-item-spacer",FD="tree-view-item-level-lines",WD="tree-view-item-level-line",qD="tree-view-item-toggle",GD="tree-view-item-toggle-hover",KD="tree-view-item-toggle-end",UD="tree-view-item-content",YD="tree-view-item-label",ZD=({level:e})=>P.jsx("span",{className:FD,children:Array.from({length:e-1},(e,t)=>P.jsx("span",{className:WD},t))});function QD(e,t){const a=e,{as:n,id:i,children:r,className:o,current:s=!1,defaultExpanded:l,expanded:c,onExpandedChange:d,onSelect:u,containIntrinsicSize:m,secondaryActions:p,"aria-label":h,"aria-labelledby":g}=a,f=S(a,["as","id","children","className","current","defaultExpanded","expanded","onExpandedChange","onSelect","containIntrinsicSize","secondaryActions","aria-label","aria-labelledby"]),{expandedStateCache:v,scrollElementIntoView:b}=C.useContext(PI),{level:x}=C.useContext(RI),y=C.useContext($I),w=uw(),[N,j]=(e=>Qa(e,{leadingAction:xD,leadingVisual:yD,trailingVisual:zD,subTree:AD}))(r),k=Boolean(N.subTree),O=Da(),M=Da(),T=Da(),A=Da(),L=void 0!==c,[I,D]=C.useState(()=>{var e,t,a;return null!==(a=null!==(t=null===(e=v.current)||void 0===e?void 0:e.get(i))&&void 0!==t?t:l)&&void 0!==a?a:s}),E=L?!0===c:I,[z,R]=C.useState(!k),[$,B]=C.useState(!1),[_,V]=C.useState(!1),H=C.useCallback(e=>{var t;D(e),null===(t=v.current)||void 0===t||t.set(i,e),null==d||d(e)},[i,v,d]),F=C.useCallback(e=>{H(!E),null==e||e.stopPropagation()},[E,H]),W=C.useCallback(()=>{(null==p?void 0:p.length)&&(1!==p.length?V(!0):p[0].onClick())},[p]),q=`Press (${ow(`Shift+${"apple"===w?"Meta":"Control"}+U`,w)}) for more actions.`,G=[N.leadingVisual?M:void 0,N.trailingVisual?T:void 0].filter(Boolean),K=C.useMemo(()=>({itemId:i,level:x+1,isSubTreeEmpty:z,setIsSubTreeEmpty:R,isExpanded:E,setIsExpanded:H,leadingVisualId:M,trailingVisualId:T,trailingActionId:A}),[i,x,z,E,H,M,T,A]),U=(!z||E&&k)&&null!==c?E:void 0,Y=null!=n?n:"li",Z=void 0!==n&&"li"!==n,Q=P.jsxs(Y,Object.assign({ref:t,id:i,role:"treeitem",tabIndex:-1,"aria-label":p&&h?`${h}. ${q}`:h,"aria-labelledby":h?void 0:`${g||O} ${p?A:""}`.trim(),"aria-describedby":G.length>0?G.join(" "):void 0,"aria-level":x,"aria-expanded":U,"aria-current":s?"true":void 0,"aria-selected":$?"true":"false",className:yt(PD,o),"data-component":"TreeView.Item","data-has-leading-action":N.leadingAction?"":void 0,"data-loading":y?"":void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":u?u(e):F(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),H(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),H(!1);break;case"U":case"u":if(!e.shiftKey||!e.metaKey&&!e.ctrlKey)return;W()}},onClick:e=>{u?u(e):F(e),e.stopPropagation()},onAuxClick:e=>{u&&1===e.button&&u(e),e.stopPropagation()},onFocus:e=>{b(e.currentTarget.firstElementChild),B(!0),e.stopPropagation()},onBlur:()=>B(!1)},f,{children:[P.jsxs("span",{className:yt(RD,$D,N.leadingAction&&BD,s&&_D,y&&VD),style:{"--tree-view-level":x,contentVisibility:m?"auto":void 0,containIntrinsicSize:m},children:[P.jsx("span",{className:HD,children:P.jsx(ZD,{level:x})}),N.leadingAction,k?P.jsx("span",{className:yt(qD,u&&GD,1===x&&KD),onClick:e=>{u&&F(e)},"data-component":"TreeView.Item.Toggle",children:E?P.jsx(_t,{width:12,height:12}):P.jsx(Ht,{width:12,height:12})}):null,P.jsxs("span",{id:O,className:UD,children:[N.leadingVisual,P.jsx("span",{className:YD,"data-component":"TreeView.Item.Label",children:j}),N.trailingVisual]}),(null==p?void 0:p.length)?P.jsx(ED,{items:p,shortcutText:q}):null]}),N.subTree,_&&p?P.jsx(pD,{items:p,onClose:()=>V(!1)}):null]}));return P.jsx(RI.Provider,{value:K,children:Z?P.jsx("li",{role:"none",children:Q}):Q})}QD.displayName="TreeView.Item";var XD=wt(QD);const JD=Object.assign(rD,{Item:XD,SubTree:AD,LeadingAction:xD,LeadingVisual:yD,TrailingVisual:zD,DirectoryIcon:sD,ErrorDialog:cD}),eE=125,tE="truncate-text",aE="truncate-text-block",nE="inline-block align-top",iE="truncate-text-expandable";function rE(e,t){const a=e,{as:n="div",className:i,title:r,maxWidth:o=eE,inline:s,expandable:l,style:c}=a,d=S(a,["as","className","title","maxWidth","inline","expandable","style"]);return P.jsx(n,Object.assign({ref:t,title:r,className:yt(tE,s?nE:aE,l&&iE,i),style:Object.assign(Object.assign({},c),{"--truncate-max-width":"number"==typeof o?`${o}px`:o}),"data-component":"Truncate","data-inline":s,"data-expandable":l},d))}rE.displayName="Truncate";var oE=wt(rE);const sE=["bytes","KB","MB","GB","TB"],lE=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${sE[0]}`;let t=e,a=0;for(;t>=1024&&a<sE.length-1;)t/=1024,a+=1;return`${0===a?Math.round(t):Math.round(10*t)/10} ${sE[a]}`},cE=(e,t)=>{const a=(null!=t?t:"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean);if(0===a.length)return!0;const n=e.name.toLowerCase(),i=e.type.toLowerCase();return a.some(e=>e.startsWith(".")?n.endsWith(e):e.endsWith("/*")?i.startsWith(e.slice(0,-1)):i===e)},dE=(e,t)=>{const{accept:a,maxSize:n,multiple:i}=t,r=[],o=[];return e.forEach(e=>{cE(e,a)?void 0!==n&&e.size>n?o.push({file:e,reason:"size"}):!i&&r.length>0?o.push({file:e,reason:"count"}):r.push(e):o.push({file:e,reason:"type"})}),{accepted:r,rejected:o}},uE=e.createContext({}),mE="upload-description";function pE(e,t){const{className:a,id:n}=e,i=S(e,["className","id"]),{descriptionId:r}=C.useContext(uE);return P.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:yt(mE,a),"data-component":"Upload.Description"},i))}pE.displayName="Upload.Description";var hE=wt(pE);const gE="upload-icon";function fE(e,t){const{icon:a=zt,className:n,"aria-label":i}=e,r=S(e,["icon","className","aria-label"]);return P.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:yt(gE,n),"data-component":"Upload.Icon"},r,{children:P.jsx(a,{})}))}fE.displayName="Upload.Icon";var vE=wt(fE);const bE="upload-label";function xE(e,t){const{className:a,id:n}=e,i=S(e,["className","id"]),{labelId:r}=C.useContext(uE);return P.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:yt(bE,a),"data-component":"Upload.Label"},i))}xE.displayName="Upload.Label";var yE=wt(xE);const wE="upload-list";function NE(e,t){const{className:a,children:n}=e,i=S(e,["className","children"]);return 0===C.Children.toArray(n).length?null:P.jsx("ul",Object.assign({ref:t,role:"list",className:yt(wE,a),"data-component":"Upload.List"},i,{children:n}))}NE.displayName="Upload.List";var jE=wt(NE);const kE="sr-only",CE=bt("upload",{variants:{size:{small:"upload-small",medium:"upload-medium",large:"upload-large"}}}),SE=bt("upload-zone",{variants:{dragging:{true:"upload-zone-dragging",false:""},disabled:{true:"upload-zone-disabled",false:"upload-zone-interactive"},validation:{error:"upload-zone-error",success:"upload-zone-success"}}});function OE(e,t){const{className:a,children:n,size:i="medium",accept:r,multiple:o,disabled:s,required:l,name:c,maxSize:d,validationStatus:u,onSelect:m,onReject:p,id:h,"aria-label":g,"aria-labelledby":f,"aria-describedby":v}=e,b=S(e,["className","children","size","accept","multiple","disabled","required","name","maxSize","validationStatus","onSelect","onReject","id","aria-label","aria-labelledby","aria-describedby"]),x=C.useRef(null),y=Da(h),w=Da(),N=Da(),j=C.useRef(0),[k,O]=C.useState(!1),[M,T]=Qa(n,{icon:vE,label:yE,description:hE,list:jE}),A=(e,t)=>{const{accepted:a,rejected:n}=dE(e,{accept:r,maxSize:d,multiple:o});"drop"===t&&a.length>0&&((e,t)=>{if(!e||"undefined"==typeof DataTransfer)return;const a=new DataTransfer;t.forEach(e=>a.items.add(e)),e.files=a.files})(x.current,a),n.length>0&&(null==p||p(n,t)),a.length>0&&(null==m||m(a,t))},L=null!=f?f:M.label&&!g?w:void 0,I=[M.description?N:void 0,v].filter(Boolean).join(" ")||void 0;return P.jsx(uE.Provider,{value:{labelId:w,descriptionId:N},children:P.jsxs("div",Object.assign({ref:t,className:yt(CE({size:i}),a),"data-component":"Upload","data-size":i,"data-disabled":s,"data-dragging":k||void 0,"data-validation":u},b,{children:[P.jsxs("label",{className:yt(SE({dragging:k,disabled:Boolean(s),validation:u})),onDragEnter:e=>{s||(e.preventDefault(),j.current+=1,O(!0))},onDragOver:e=>{s||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))},onDragLeave:()=>{s||(j.current=Math.max(j.current-1,0),0===j.current&&O(!1))},onDrop:e=>{var t,a;s||(e.preventDefault(),j.current=0,O(!1),A(Array.from(null!==(a=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)&&void 0!==a?a:[]),"drop"))},"data-component":"Upload.Zone",children:[P.jsx("input",{ref:x,id:y,type:"file",name:c,accept:r,multiple:o,disabled:s,required:l,onChange:e=>{var t;A(Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),"input")},className:kE,"aria-label":g,"aria-labelledby":L,"aria-describedby":I,"aria-invalid":"error"===u||void 0,"data-component":"Upload.Input"}),M.icon,M.label,M.description]}),M.list,T]}))})}OE.displayName="Upload";var ME=wt(OE);const TE="upload-item",AE="upload-item-icon",LE="upload-item-body",IE="upload-item-heading",DE="upload-item-name",EE="upload-item-file-size",zE="upload-item-description",PE="upload-item-description-error",RE="upload-item-status",$E={success:{icon:$t,className:"upload-item-status-success"},error:{icon:Zt,className:"upload-item-status-error"}};function BE(e,t){const{className:a,name:n,fileSize:i,status:r="pending",progress:o,description:s,icon:l=Yt,onRemove:c,removeLabel:d,children:u}=e,m=S(e,["className","name","fileSize","status","progress","description","icon","onRemove","removeLabel","children"]),p="success"===r||"error"===r?$E[r]:void 0,h=null==p?void 0:p.icon;return P.jsxs("li",Object.assign({ref:t,className:yt(TE,a),"data-component":"Upload.Item","data-status":r},m,{children:[P.jsx("span",{className:AE,"aria-hidden":"true","data-component":"Upload.Item.Icon",children:P.jsx(l,{})}),P.jsxs("span",{className:LE,children:[P.jsxs("span",{className:IE,children:[P.jsx("span",{className:DE,"data-component":"Upload.Item.Name",children:n}),void 0===i?null:P.jsx("span",{className:EE,"data-component":"Upload.Item.Size",children:lE(i)})]}),"uploading"===r?P.jsx(sS,{progress:o,variant:"accent",size:"small",animated:!0,"aria-label":`Uploading ${n}`}):null,s?P.jsx("span",{className:yt(zE,"error"===r&&PE),"data-component":"Upload.Item.Description",children:s}):null,u]}),h?P.jsx("span",{className:yt(RE,null==p?void 0:p.className),"aria-hidden":"true","data-component":"Upload.Item.Status",children:P.jsx(h,{})}):null,c?P.jsx(ei,{icon:Ut,variant:"invisible",size:"small","aria-label":null!=d?d:`Remove ${n}`,onClick:c,"data-component":"Upload.Item.RemoveButton"}):null]}))}BE.displayName="Upload.Item";var _E=wt(BE);const VE=Object.assign(ME,{Icon:vE,Label:yE,Description:hE,List:jE,Item:_E}),HE=(t,{isPropUpdateDisabled:a=!1,isEqual:n=Object.is}={})=>{const[i,r]=e.useState(t),[o,s]=e.useState(t),l=t instanceof Function?t():t;return a||n(o,l)||(s(l),r(l)),[i,r]},FE=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),WE=()=>e.useContext(FE),qE="(prefers-color-scheme: dark)",GE=e=>{var t;const a=null===(t=null===window||void 0===window?void 0:window.matchMedia)||void 0===t?void 0:t.call(window,qE);return null==a||a.addEventListener("change",e),()=>null==a?void 0:a.removeEventListener("change",e)},KE=()=>{var e,t;return(null===(t=null===(e=null===window||void 0===window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,qE))||void 0===t?void 0:t.matches)?"night":"day"},UE=()=>"day";function YE(e){var t,a,n,i,r,o,{children:s,className:l,contextOnly:c}=e,d=S(e,["children","className","contextOnly"]);const{colorMode:u,dayScheme:m,nightScheme:p}=WE(),[h,g]=HE(null!==(a=null!==(t=d.colorMode)&&void 0!==t?t:u)&&void 0!==a?a:"day"),[f,v]=HE(null!==(i=null!==(n=d.dayScheme)&&void 0!==n?n:m)&&void 0!==i?i:"light"),[b,x]=HE(null!==(o=null!==(r=d.nightScheme)&&void 0!==r?r:p)&&void 0!==o?o:"dark"),y=C.useSyncExternalStore(GE,KE,UE),w=((e,t)=>"auto"===e?t:e)(h,y),N=((e,t,a)=>{switch(e){case"day":case"light":return t;case"night":case"dark":return a}})(w,f,b),j=C.useMemo(()=>({colorScheme:N,colorMode:h,resolvedColorMode:w,dayScheme:f,nightScheme:b,setColorMode:g,setDayScheme:v,setNightScheme:x}),[N,h,w,f,b,g,v,x]);return c?P.jsx(FE.Provider,{value:j,children:s}):P.jsx(FE.Provider,{value:j,children:P.jsx("div",{className:l,"data-component":"ThemeProvider","data-theme":N,"data-color-mode":h,children:s})})}YE.displayName="ThemeProvider",exports.ARROW_KEY_STEP=3,exports.Accordion=Va,exports.AccordionContext=Nt,exports.AccordionHeader=Ia,exports.AccordionItem=Pa,exports.AccordionItemContext=ka,exports.AccordionPanel=_a,exports.ActionBar=Lr,exports.ActionBarButton=Ar,exports.ActionBarContext=tr,exports.ActionBarDivider=sr,exports.ActionBarGroup=ur,exports.ActionBarIconButton=hr,exports.ActionBarItemContext=ar,exports.ActionBarMenu=xr,exports.ActionList=xi,exports.ActionListContainerContext=ln,exports.ActionListContext=an,exports.ActionListDescription=vn,exports.ActionListDivider=xn,exports.ActionListGroup=An,exports.ActionListGroupContext=yn,exports.ActionListGroupHeading=Sn,exports.ActionListHeading=sn,exports.ActionListItem=fi,exports.ActionListItemContext=hn,exports.ActionListLeadingVisual=_n,exports.ActionListLinkItem=bi,exports.ActionListSubItem=Vn,exports.ActionListTrailingAction=ii,exports.ActionListTrailingVisual=ri,exports.ActionMenu=er,exports.ActionMenuAnchor=wi,exports.ActionMenuButton=Ni,exports.ActionMenuContext=yi,exports.ActionMenuOverlay=Ji,exports.Alert=Er,exports.AnchoredOverlay=Qi,exports.AspectRatio=Rr,exports.Autocomplete=fo,exports.AutocompleteContext=$r,exports.AutocompleteDeferredInputContext=_r,exports.AutocompleteInput=oo,exports.AutocompleteInputContext=Br,exports.AutocompleteMenu=mo,exports.AutocompleteOverlay=go,exports.Avatar=wo,exports.AvatarStack=Co,exports.BAR_RADIUS=4,exports.Banner=Xo,exports.BannerContext=So,exports.BannerDescription=Mo,exports.BannerPrimaryAction=Yo,exports.BannerSecondaryAction=Qo,exports.BannerTitle=Lo,exports.Blankslate=Cs,exports.BlankslateDescription=is,exports.BlankslateHeading=ss,exports.BlankslatePrimaryAction=ps,exports.BlankslateSecondaryAction=ys,exports.BlankslateVisual=ks,exports.Blockquote=Ms,exports.Breadcrumbs=Ks,exports.BreadcrumbsContext=As,exports.BreadcrumbsItem=Gs,exports.Button=Qn,exports.ButtonGroup=tl,exports.CHART_OVERFLOW_COLOR=xd,exports.CHART_SERIES_COLORS=bd,exports.Calendar=cc,exports.CalendarDay=ul,exports.Card=Rc,exports.CardAction=mc,exports.CardDescription=fc,exports.CardHeading=yc,exports.CardIcon=kc,exports.CardImage=Oc,exports.CardMetadata=Ac,exports.Carousel=md,exports.CarouselContext=Bc,exports.CarouselControls=ed,exports.CarouselIndicators=qc,exports.CarouselNextButton=Kc,exports.CarouselPlayButton=Yc,exports.CarouselPreviousButton=Qc,exports.CarouselSlide=nd,exports.CarouselSlideContext=_c,exports.Chart=sp,exports.ChartLegend=vd,exports.ChartTooltip=Bm,exports.Checkbox=fp,exports.CheckboxGroup=Bp,exports.CheckboxGroupCaption=xp,exports.CheckboxGroupContext=lp,exports.CheckboxGroupLabel=Cp,exports.CheckboxGroupValidation=Ap,exports.Code=Hp,exports.CodeBlock=ph,exports.CodeBlockCode=ah,exports.CodeBlockContent=oh,exports.CodeBlockContext=Fp,exports.CodeBlockHeader=ch,exports.CodeBlockTitle=mh,exports.Collapsible=Ih,exports.CollapsibleContent=wh,exports.CollapsibleContext=hh,exports.CollapsibleTrigger=Lh,exports.CommandPalette=Ng,exports.CommandPaletteContext=zh,exports.CommandPaletteDialog=Uh,exports.CommandPaletteEmpty=Qh,exports.CommandPaletteGroup=ag,exports.CommandPaletteGroupContext=Ph,exports.CommandPaletteInput=rg,exports.CommandPaletteItem=ug,exports.CommandPaletteList=gg,exports.CommandPaletteLoading=bg,exports.CommandPaletteSeparator=wg,exports.ConfirmationDialog=sf,exports.CounterLabel=qn,exports.DAYS_IN_WEEK=7,exports.DAY_KEY_FORMAT=Il,exports.DEFAULT_AVATAR_SIZE=bo,exports.DEFAULT_COLOR_MODE="day",exports.DEFAULT_ISSUE_LABEL_FILL_COLOR=gI,exports.DEFAULT_MARKDOWN_NAMESPACE=Mw,exports.DEFAULT_RATING_COUNT=$S,exports.DEFAULT_RELATIVE_TIME_PREFIX=oO,exports.DEFAULT_RELATIVE_TIME_THRESHOLD=rO,exports.DEFAULT_RICH_TEXT_EDITOR_CONTROLS=zO,exports.DEFAULT_RICH_TEXT_EDITOR_NAMESPACE=NO,exports.DEFAULT_SORT_DIRECTION=Lv,exports.DEFAULT_TABLE_PAGE_SIZE=Kf,exports.DEFAULT_TABLE_SKELETON_ROWS=hv,exports.DEFAULT_TEXTAREA_COLS=Wx,exports.DEFAULT_TEXTAREA_RESIZE=qx,exports.DEFAULT_TEXTAREA_ROWS=Fx,exports.DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY=zL,exports.DEFAULT_TOKEN_SIZE=JL,exports.DEFAULT_TRUNCATE_MAX_WIDTH=eE,exports.DataTable=Hv,exports.DatePicker=Uv,exports.Details=tb,exports.DetailsSummary=eb,exports.Dialog=ab,exports.DialogBody=Mg,exports.DialogButtons=Ag,exports.DialogCloseButton=Ig,exports.DialogContext=Tg,exports.DialogFooter=Pg,exports.DialogHeader=Bg,exports.DialogSubtitle=Hg,exports.DialogTitle=qg,exports.DragHandle=Mk,exports.Drawer=Ob,exports.DrawerBody=rb,exports.DrawerCloseButton=cb,exports.DrawerContext=ob,exports.DrawerFooter=mb,exports.DrawerHeader=fb,exports.DrawerSubtitle=xb,exports.DrawerTitle=Nb,exports.Em=Ab,exports.EmptyState=$b,exports.FilteredActionList=Lx,exports.FilteredActionListBodyLoader=bx,exports.FilteredActionListInput=ix,exports.FilteredActionListItem=sx,exports.FormControl=Iy,exports.FormControlCaption=iy,exports.FormControlContext=ey,exports.FormControlLabel=dy,exports.FormControlLeadingVisual=gy,exports.FormControlValidation=yy,exports.Heading=tn,exports.Hidden=zy,exports.Highlight=Vy,exports.IconButton=ei,exports.Image=Wy,exports.InlineMessage=Zy,exports.IssueLabelToken=SI,exports.KeybindingHint=xw,exports.Label=Nw,exports.Link=bs,exports.LinkButton=kw,exports.MARKDOWN_NODES=Tw,exports.MARKDOWN_TRANSFORMERS=Aw,exports.MARK_GAP=2,exports.MAX_BAR_THICKNESS=24,exports.Mark=$y,exports.Markdown=Dw,exports.NavList=dN,exports.NavListGroup=qw,exports.NavListGroupExpand=oN,exports.NavListGroupHeading=cN,exports.NavListHeading=Pw,exports.NavListItem=nN,exports.NavListSubNav=Jw,exports.PageContent=NN,exports.PageContentSection=wN,exports.PageFooter=QN,exports.PageFooterActions=VN,exports.PageFooterCopyright=WN,exports.PageFooterDescription=KN,exports.PageFooterLeadingVisual=ZN,exports.PageFooterNavigation=DN,exports.PageHeader=Xj,exports.PageHeaderActions=bj,exports.PageHeaderBreadcrumbs=wj,exports.PageHeaderContextArea=kj,exports.PageHeaderContextAreaActions=Oj,exports.PageHeaderContextBar=Aj,exports.PageHeaderDescription=Dj,exports.PageHeaderLeadingAction=Pj,exports.PageHeaderLeadingVisual=Bj,exports.PageHeaderNavigation=lj,exports.PageHeaderParentLink=Hj,exports.PageHeaderTitle=qj,exports.PageHeaderTitleArea=uj,exports.PageHeaderTrailingAction=Uj,exports.PageHeaderTrailingVisual=Qj,exports.PageLayout=pC,exports.PageLayoutContent=tC,exports.PageLayoutContext=ek,exports.PageLayoutFooter=ck,exports.PageLayoutHeader=gk,exports.PageLayoutPane=mC,exports.PageLayoutSidebar=Wk,exports.PageSidebar=WC,exports.PageSidebarActions=CC,exports.PageSidebarContent=MC,exports.PageSidebarFooter=LC,exports.PageSidebarHeader=EC,exports.PageSidebarNavigation=RC,exports.PageSidebarSection=_C,exports.PageSidebarTitle=FC,exports.Pagination=QC,exports.Placeholder=eS,exports.PlatformContext=sw,exports.Portal=_i,exports.PortalContext=Di,exports.ProgressBar=sS,exports.ProgressBarItem=nS,exports.ProgressCircle=hS,exports.RICH_TEXT_EDITOR_NODES=jO,exports.Radio=Rx,exports.RadioGroup=RS,exports.RadioGroupCaption=vS,exports.RadioGroupContext=Ix,exports.RadioGroupLabel=jS,exports.RadioGroupValidation=MS,exports.Rating=QS,exports.RelativeTime=yO,exports.RichTextEditor=GO,exports.RichTextEditorContent=EO,exports.RichTextEditorToolbar=qO,exports.SCREEN_READER_DELAY=500,exports.ScrollableRegion=Cg,exports.SegmentedControl=PM,exports.SegmentedControlButton=jM,exports.SegmentedControlIconButton=OM,exports.Select=VM,exports.SelectOptGroup=$M,exports.SelectOption=_M,exports.SelectPanel=IT,exports.SelectPanelButton=FM,exports.SelectPanelContext=WM,exports.SelectPanelFooter=QM,exports.SelectPanelHeader=uT,exports.SelectPanelLoading=jT,exports.SelectPanelMessage=ST,exports.SelectPanelSearchInput=eT,exports.SelectPanelSecondaryAction=LT,exports.Separator=zT,exports.SkeletonAvatar=RT,exports.SkeletonBox=ov,exports.SkeletonText=cv,exports.Slider=VT,exports.Spinner=zn,exports.Stack=hx,exports.StackItem=px,exports.StateLabel=UT,exports.Status=nA,exports.StatusIndicator=aA,exports.Tab=gA,exports.TabList=yA,exports.TabPanel=jA,exports.Table=Fv,exports.TableActions=gf,exports.TableBody=xf,exports.TableCell=kf,exports.TableCellPlaceholder=Of,exports.TableContainer=Lf,exports.TableDivider=Ef,exports.TableErrorDialog=Pf,exports.TableHead=$f,exports.TableHeader=Ff,exports.TablePagination=ev,exports.TableRow=av,exports.TableSkeleton=fv,exports.TableSortHeader=kv,exports.TableSubtitle=Ov,exports.TableTitle=Av,exports.Tabs=kA,exports.TabsContext=iA,exports.Text=Wr,exports.TextInput=ao,exports.TextInputAction=to,exports.Textarea=Jx,exports.ThemeContext=FE,exports.ThemeProvider=YE,exports.Timeline=aL,exports.TimelineActions=DA,exports.TimelineAvatar=PA,exports.TimelineBadge=_A,exports.TimelineBody=FA,exports.TimelineBreak=KA,exports.TimelineItem=tL,exports.Toaster=EL,exports.ToggleSwitch=QL,exports.Token=hI,exports.TokenBase=aI,exports.TokenRemoveButton=iI,exports.TokenText=lI,exports.Tooltip=oM,exports.TooltipContext=KO,exports.TopicTag=zI,exports.TopicTagGroup=EI,exports.TreeView=JD,exports.TreeViewDirectoryIcon=sD,exports.TreeViewErrorDialog=cD,exports.TreeViewItem=XD,exports.TreeViewItemContext=RI,exports.TreeViewLeadingAction=xD,exports.TreeViewLeadingVisual=yD,exports.TreeViewRootContext=PI,exports.TreeViewSubTree=AD,exports.TreeViewTrailingVisual=zD,exports.Truncate=oE,exports.Upload=VE,exports.UploadContext=uE,exports.UploadDescription=hE,exports.UploadIcon=vE,exports.UploadItem=_E,exports.UploadLabel=yE,exports.UploadList=jE,exports.buildPaginationModel=Wf,exports.buildPaginationPageData=qf,exports.commandScore=Eh,exports.createColumnHelper=()=>({column:e=>{var t;return Object.assign(Object.assign({},e),{id:null!==(t=e.id)&&void 0!==t?t:e.field})}}),exports.defaultPaneWidth=vk,exports.extendRange=Gl,exports.formatFileSize=lE,exports.formatRelativeTime=bO,exports.formatTitle=vO,exports.getAccessibleKeybindingHintString=ow,exports.getAnchoredPosition=qi,exports.getCharacterCount=qr,exports.getFirstDayOfWeek=$l,exports.getIssueLabelColors=xI,exports.getMonthWeeks=Vl,exports.getPlatform=cw,exports.getRangePosition=ql,exports.getSeriesColor=yd,exports.getWeekdays=Bl,exports.isDateSelectable=Hl,exports.isDateWithinRange=Wl,exports.isFileAccepted=cE,exports.isTokenInteractive=eI,exports.markdownTheme=Lw,exports.parseDate=Kl,exports.registerPortalRoot=$i,exports.richTextEditorTheme=kO,exports.sortStrategies=zv,exports.splitHighlightChunks=By,exports.startOfWeek=_l,exports.toDayKey=zl,exports.toast=vL,exports.transitionSortDirection=Iv,exports.triageFiles=dE,exports.updateAriaValues=jk,exports.useAnnouncements=xx,exports.useColorSchemeVar=(e,t)=>{var a;const{colorScheme:n}=WE();return null!==(a=n?e[n]:void 0)&&void 0!==a?a:t},exports.useConfirm=()=>lf,exports.useFormControlForwardedProps=Ly,exports.usePaneWidth=Ik,exports.usePlatform=uw,exports.useTab=lA,exports.useTabList=fA,exports.useTabPanel=wA,exports.useTabs=sA,exports.useTheme=WE;