@gyramais/gyra-design 0.2.35 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Chart/index.js +29 -0
- package/dist/components/Chart/index.js.map +1 -0
- package/dist/components/ChatWidget/index.js +45 -0
- package/dist/components/ChatWidget/index.js.map +1 -0
- package/dist/components/Checkbox/index.js +45 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Col/index.js +7 -0
- package/dist/components/Col/index.js.map +1 -0
- package/dist/components/Collapse/index.js +45 -0
- package/dist/components/Collapse/index.js.map +1 -0
- package/dist/components/ContextMenu/index.js +7 -0
- package/dist/components/ContextMenu/index.js.map +1 -0
- package/dist/components/DistributionBar/index.js +7 -0
- package/dist/components/DistributionBar/index.js.map +1 -0
- package/dist/components/Divider/index.js +7 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/Drawer/index.js +45 -0
- package/dist/components/Drawer/index.js.map +1 -0
- package/dist/components/DropdownMenu/index.js +7 -0
- package/dist/components/DropdownMenu/index.js.map +1 -0
- package/dist/components/Email/index.js +2 -0
- package/dist/components/Email/index.js.map +1 -0
- package/dist/components/Empty/index.js +45 -0
- package/dist/components/Empty/index.js.map +1 -0
- package/dist/components/Filter/index.js +50 -0
- package/dist/components/Filter/index.js.map +1 -0
- package/dist/components/FloatingCard/index.js +45 -0
- package/dist/components/FloatingCard/index.js.map +1 -0
- package/dist/components/Form/index.js +2 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/Gauge/index.js +7 -0
- package/dist/components/Gauge/index.js.map +1 -0
- package/dist/components/HoverCard/index.js +7 -0
- package/dist/components/HoverCard/index.js.map +1 -0
- package/dist/components/Icon/index.js +7 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/IconDisplay/index.js +7 -0
- package/dist/components/IconDisplay/index.js.map +1 -0
- package/dist/components/Information/index.js +7 -0
- package/dist/components/Information/index.js.map +1 -0
- package/dist/components/Input/index.js +25 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Label/index.js +2 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/Layout/index.js +7 -0
- package/dist/components/Layout/index.js.map +1 -0
- package/dist/components/List/index.js +45 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/Loading/index.js +7 -0
- package/dist/components/Loading/index.js.map +1 -0
- package/dist/components/Logo/index.js +7 -0
- package/dist/components/Logo/index.js.map +1 -0
- package/dist/components/Menubar/index.js +7 -0
- package/dist/components/Menubar/index.js.map +1 -0
- package/dist/components/Modal/index.js +63 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/MultiSelectPicker/index.js +45 -0
- package/dist/components/MultiSelectPicker/index.js.map +1 -0
- package/dist/components/OperatorPicker/index.js +45 -0
- package/dist/components/OperatorPicker/index.js.map +1 -0
- package/dist/components/PickerPopover/index.js +45 -0
- package/dist/components/PickerPopover/index.js.map +1 -0
- package/dist/components/Popover/index.js +7 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/ProcessingChip/index.js +7 -0
- package/dist/components/ProcessingChip/index.js.map +1 -0
- package/dist/components/Progress/index.js +7 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/RadioGroup/index.js +7 -0
- package/dist/components/RadioGroup/index.js.map +1 -0
- package/dist/components/RichInput/index.js +12 -0
- package/dist/components/RichInput/index.js.map +1 -0
- package/dist/components/Row/index.js +7 -0
- package/dist/components/Row/index.js.map +1 -0
- package/dist/components/RuleSearchPicker/index.js +45 -0
- package/dist/components/RuleSearchPicker/index.js.map +1 -0
- package/dist/components/ScoreBar/index.js +7 -0
- package/dist/components/ScoreBar/index.js.map +1 -0
- package/dist/components/SegmentedPicker/index.js +45 -0
- package/dist/components/SegmentedPicker/index.js.map +1 -0
- package/dist/components/SegmentedToggle/index.js +7 -0
- package/dist/components/SegmentedToggle/index.js.map +1 -0
- package/dist/components/Select/index.js +45 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/SelectTree/index.js +50 -0
- package/dist/components/SelectTree/index.js.map +1 -0
- package/dist/components/Selector/index.js +7 -0
- package/dist/components/Selector/index.js.map +1 -0
- package/dist/components/StatusTag/index.js +7 -0
- package/dist/components/StatusTag/index.js.map +1 -0
- package/dist/components/Stepper/index.js +7 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/Switch/index.js +7 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/SyncChip/index.js +45 -0
- package/dist/components/SyncChip/index.js.map +1 -0
- package/dist/components/Table/index.js +45 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/index.js +7 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Tag/index.js +7 -0
- package/dist/components/Tag/index.js.map +1 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Tooltip/index.js +7 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/TourGuide/index.js +7 -0
- package/dist/components/TourGuide/index.js.map +1 -0
- package/dist/components/Waypoint/index.js +24 -0
- package/dist/components/Waypoint/index.js.map +1 -0
- package/dist/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-400-latin.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-500-latin.woff2 +0 -0
- package/dist/fonts/Inter-Variable-latin-ext.woff2 +0 -0
- package/dist/fonts/Inter-Variable-latin.woff2 +0 -0
- package/dist/fonts/Lexend-Variable-latin-ext.woff2 +0 -0
- package/dist/fonts/Lexend-Variable-latin.woff2 +0 -0
- package/package.json +2 -2
- package/dist/emails/balance-sheet-finalized/email-layout.d.ts +0 -46
- package/dist/emails/balance-sheet-finalized/email-layout.js +0 -180
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";import t from"react";function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e,a={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/e=a,function(){var t={}.hasOwnProperty;function r(){for(var t="",r=0;r<arguments.length;r++){var e=arguments[r];e&&(t=n(t,a(e)))}return t}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)t.call(e,o)&&e[o]&&(a=n(a,o));return a}function n(t,r){return r?t?t+" "+r:t+r:t}e.exports?(r.default=r,e.exports=r):window.classNames=r}();var n=r(a.exports);const o=[{at:700,variant:"success"},{at:550,variant:"warning"}],s=({id:r,className:e,value:a,max:s=1e3,thresholds:i=o,belowVariant:c="danger",barWidth:l=36,showValue:u=!0,emptyText:f="—"})=>{const p="number"==typeof a&&a>0,m=p?((t,r,e)=>{const a=[...r].sort((t,r)=>r.at-t.at);for(const r of a)if(t>=r.at)return r.variant;return e})(a,i,c):c,y=p?Math.min(100,Math.max(2,a/s*100)):0;return t.createElement("span",{id:r,className:n("gyramais-score-bar",e)},t.createElement("span",{className:n("gyramais-score-bar__track",`is-${m}`),style:{width:l}},t.createElement("i",{style:{width:`${y}%`}})),u&&t.createElement("span",{className:"gyramais-score-bar__value"},p?a:f))};export{s as ScoreBar};
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/classnames/index.js","../../../src/components/ScoreBar/ScoreBar.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from \"react\";\nimport classNames from \"classnames\";\nimport \"./index.css\";\n\nexport type ScoreBarVariant = \"success\" | \"warning\" | \"danger\" | \"info\" | \"neutral\";\n\nexport type ScoreThreshold = {\n /** Minimum value (inclusive) at which this variant applies. */\n at: number;\n variant: ScoreBarVariant;\n};\n\ntype ScoreBarProps = {\n id?: string;\n className?: string;\n value?: number | null;\n /** Maximum value of the scale. Default 1000 (matches Brazilian credit bureaus). */\n max?: number;\n /** Thresholds, evaluated highest -> lowest. The first threshold whose `at`\n * is <= value wins. Anything below the lowest threshold falls back to\n * the bar's default `belowVariant`. */\n thresholds?: ScoreThreshold[];\n /** Variant when value is null/0 or below the lowest threshold. Default: \"danger\". */\n belowVariant?: ScoreBarVariant;\n /** Width of the inline bar in pixels. Default 36. */\n barWidth?: number;\n /** Render the numeric value next to the bar. Default true. */\n showValue?: boolean;\n /** Replaces the numeric when value is missing. Default \"—\". */\n emptyText?: string;\n};\n\nconst DEFAULT_THRESHOLDS: ScoreThreshold[] = [\n { at: 700, variant: \"success\" },\n { at: 550, variant: \"warning\" },\n];\n\nconst resolveVariant = (\n value: number,\n thresholds: ScoreThreshold[],\n fallback: ScoreBarVariant,\n): ScoreBarVariant => {\n const sorted = [...thresholds].sort((a, b) => b.at - a.at);\n for (const t of sorted) {\n if (value >= t.at) return t.variant;\n }\n return fallback;\n};\n\nconst ScoreBar = ({\n id,\n className,\n value,\n max = 1000,\n thresholds = DEFAULT_THRESHOLDS,\n belowVariant = \"danger\",\n barWidth = 36,\n showValue = true,\n emptyText = \"—\",\n}: ScoreBarProps) => {\n const hasValue = typeof value === \"number\" && value > 0;\n const variant = hasValue\n ? resolveVariant(value, thresholds, belowVariant)\n : belowVariant;\n const pct = hasValue ? Math.min(100, Math.max(2, (value / max) * 100)) : 0;\n\n return (\n <span\n id={id}\n className={classNames(\"gyramais-score-bar\", className)}\n >\n <span\n className={classNames(\"gyramais-score-bar__track\", `is-${variant}`)}\n style={{ width: barWidth }}\n >\n <i style={{ width: `${pct}%` }} />\n </span>\n {showValue && (\n <span className=\"gyramais-score-bar__value\">\n {hasValue ? value : emptyText}\n </span>\n )}\n </span>\n );\n};\n\nexport { ScoreBar };\nexport type { ScoreBarProps };\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","Object","prototype","includes","key","call","value","newClass","module","exports","default","window","DEFAULT_THRESHOLDS","at","variant","ScoreBar","id","className","max","thresholds","belowVariant","barWidth","showValue","emptyText","hasValue","fallback","sorted","sort","a","b","t","resolveVariant","pct","Math","min","React","createElement","style","width"],"mappings":";;;;;MAOC,WAGA,IAAIA,EAAS,CAAA,EAAGC,eAEhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GAChBG,IACHJ,EAAUK,EAAYL,EAASM,EAAWF,IAE9C,CAEE,OAAOJ,CACT,CAEC,SAASM,EAAYF,GACpB,GAAmB,iBAARA,GAAmC,iBAARA,EACrC,OAAOA,EAGR,GAAmB,iBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAOL,EAAWU,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAaC,OAAOC,UAAUF,WAAaN,EAAIM,SAASA,WAAWG,SAAS,iBACnF,OAAOT,EAAIM,WAGZ,IAAIV,EAAU,GAEd,IAAK,IAAIc,KAAOV,EACXP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,KAChCd,EAAUK,EAAYL,EAASc,IAIjC,OAAOd,CACT,CAEC,SAASK,EAAaW,EAAOC,GAC5B,OAAKA,EAIDD,EACIA,EAAQ,IAAMC,EAGfD,EAAQC,EAPPD,CAQV,CAEsCE,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,UAAiBnB,GAOjBsB,OAAOtB,WAAaA,CAEtB,CArEA,sBCyBA,MAAMuB,EAAuC,CAC3C,CAAEC,GAAI,IAAKC,QAAS,WACpB,CAAED,GAAI,IAAKC,QAAS,YAehBC,EAAW,EACfC,KACAC,YACAX,QACAY,MAAM,IACNC,aAAaP,EACbQ,eAAe,SACfC,WAAW,GACXC,aAAY,EACZC,YAAY,QAEZ,MAAMC,EAA4B,iBAAVlB,GAAsBA,EAAQ,EAChDQ,EAAUU,EAxBK,EACrBlB,EACAa,EACAM,KAEA,MAAMC,EAAS,IAAIP,GAAYQ,KAAK,CAACC,EAAGC,IAAMA,EAAEhB,GAAKe,EAAEf,IACvD,IAAK,MAAMiB,KAAKJ,EACd,GAAIpB,GAASwB,EAAEjB,GAAI,OAAOiB,EAAEhB,QAE9B,OAAOW,GAgBHM,CAAezB,EAAOa,EAAYC,GAClCA,EACEY,EAAMR,EAAWS,KAAKC,IAAI,IAAKD,KAAKf,IAAI,EAAIZ,EAAQY,EAAO,MAAQ,EAEzE,OACEiB,EAAAC,cAAA,OAAA,CACEpB,GAAIA,EACJC,UAAW5B,EAAW,qBAAsB4B,IAE5CkB,EAAAC,cAAA,OAAA,CACEnB,UAAW5B,EAAW,4BAA6B,MAAMyB,KACzDuB,MAAO,CAAEC,MAAOjB,IAEhBc,EAAAC,cAAA,IAAA,CAAGC,MAAO,CAAEC,MAAO,GAAGN,SAEvBV,GACCa,EAAAC,cAAA,OAAA,CAAMnB,UAAU,6BACbO,EAAWlB,EAAQiB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";import*as e from"react";import t,{useLayoutEffect as n,useState as r,forwardRef as o,useContext as i,useMemo as a,useRef as s,useEffect as c}from"react";import l,{jsx as u,jsxs as f}from"react/jsx-runtime";import*as d from"react-dom";import p from"react-dom";function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var h,g={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/h=g,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}h.exports?(t.default=t,h.exports=t):window.classNames=t}();var v=m(g.exports);function b(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let n=!1;const r=e.map(e=>{const r=w(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():w(e[t],null)}}}}function E(...t){return e.useCallback(x(...t),t)}function S(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,c=r?.[t]?.[a]||i,l=e.useMemo(()=>s,Object.values(s));return u(c.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(r,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},O(o,...n)]}function O(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function k(t){const n=C(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find($);if(s){const t=s.props.children,o=a.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return u(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return u(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function C(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?x(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var _=Symbol("radix.slottable");function $(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===_}var P=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=k(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),u(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function N(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var A,T="dismissableLayer.update",R="dismissableLayer.pointerDownOutside",M="dismissableLayer.focusOutside",j=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=t,f=e.useContext(j),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,y]=e.useState({}),h=E(n,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),x=d?g.indexOf(d):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,O=x>=w,k=function(t,n=globalThis?.document){const r=N(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){L(R,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));O&&!n&&(i?.(e),s?.(e),e.defaultPrevented||c?.())},m),C=function(t,n=globalThis?.document){const r=N(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){L(M,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||c?.())},m);return function(t,n=globalThis?.document){const r=N(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{x===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),e.useEffect(()=>{if(d)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(A=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),z(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=A)}},[d,m,r,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),z())},[d,f]),e.useEffect(()=>{const e=()=>y({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),u(P.div,{...l,ref:h,style:{pointerEvents:S?O?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,C.onFocusCapture),onBlurCapture:b(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,k.onPointerDownCapture)})});I.displayName="DismissableLayer";var D=e.forwardRef((t,n)=>{const r=e.useContext(j),o=e.useRef(null),i=E(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),u(P.div,{...t,ref:i})});function z(){const e=new CustomEvent(T);document.dispatchEvent(e)}function L(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}D.displayName="DismissableLayerBranch";var F=0;function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var W="focusScope.autoFocusOnMount",B="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},H=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[c,l]=e.useState(null),f=N(i),d=N(a),p=e.useRef(null),m=E(n,e=>l(e)),y=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(y.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Y(p.current,{select:!0})},t=function(e){if(y.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Y(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Y(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,c,y.paused]),e.useEffect(()=>{if(c){X.add(y);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(W,U);c.addEventListener(W,f),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Y(r,{select:t}),document.activeElement!==n)return}((e=G(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Y(c))}return()=>{c.removeEventListener(W,f),setTimeout(()=>{const e=new CustomEvent(B,U);c.addEventListener(B,d),c.dispatchEvent(e),e.defaultPrevented||Y(t??document.body,{select:!0}),c.removeEventListener(B,d),X.remove(y)},0)}}var e},[c,f,d,y]);const h=e.useCallback(e=>{if(!r&&!o)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=G(e),n=K(t,e),r=K(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Y(i,{select:!0})):(e.preventDefault(),r&&Y(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,y.paused]);return u(P.div,{tabIndex:-1,...s,ref:m,onKeyDown:h})});function G(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function K(e,t){for(const n of e)if(!q(n,{upTo:t}))return n}function q(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Y(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}H.displayName="FocusScope";var X=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=J(e,t),e.unshift(t)},remove(t){e=J(e,t),e[0]?.resume()}}}();function J(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Z=globalThis?.document?e.useLayoutEffect:()=>{},Q=e[" useId ".trim().toString()]||(()=>{}),ee=0;function te(t){const[n,r]=e.useState(Q());return Z(()=>{r(e=>e??String(ee++))},[t]),t||(n?`radix-${n}`:"")}const ne=["top","right","bottom","left"],re=Math.min,oe=Math.max,ie=Math.round,ae=Math.floor,se=e=>({x:e,y:e}),ce={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e,t,n){return oe(e,re(t,n))}function ue(e,t){return"function"==typeof e?e(t):e}function fe(e){return e.split("-")[0]}function de(e){return e.split("-")[1]}function pe(e){return"x"===e?"y":"x"}function me(e){return"y"===e?"height":"width"}function ye(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function he(e){return pe(ye(e))}function ge(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ve=["left","right"],be=["right","left"],we=["top","bottom"],xe=["bottom","top"];function Ee(e,t,n,r){const o=de(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?be:ve:t?ve:be;case"left":case"right":return t?we:xe;default:return[]}}(fe(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ge)))),i}function Se(e){const t=fe(e);return ce[t]+e.slice(t.length)}function Oe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ke(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ce(e,t,n){let{reference:r,floating:o}=e;const i=ye(t),a=he(t),s=me(a),c=fe(t),l="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(de(t)){case"start":p[a]-=d*(n&&l?-1:1);break;case"end":p[a]+=d*(n&&l?-1:1)}return p}async function _e(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ue(t,e),m=Oe(p),y=s[d?"floating"===f?"reference":"floating":f],h=ke(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=ke(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-w.top+m.top)/b.y,bottom:(w.bottom-h.bottom+m.bottom)/b.y,left:(h.left-w.left+m.left)/b.x,right:(w.right-h.right+m.right)/b.x}}function $e(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pe(e){return ne.some(t=>e[t]>=0)}const Ne=new Set(["left","top"]);function Ae(){return"undefined"!=typeof window}function Te(e){return je(e)?(e.nodeName||"").toLowerCase():"#document"}function Re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Me(e){var t;return null==(t=(je(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function je(e){return!!Ae()&&(e instanceof Node||e instanceof Re(e).Node)}function Ie(e){return!!Ae()&&(e instanceof Element||e instanceof Re(e).Element)}function De(e){return!!Ae()&&(e instanceof HTMLElement||e instanceof Re(e).HTMLElement)}function ze(e){return!(!Ae()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Re(e).ShadowRoot)}function Le(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Fe(e){return/^(table|td|th)$/.test(Te(e))}function Ve(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const We=/transform|translate|scale|rotate|perspective|filter/,Be=/paint|layout|strict|content/,Ue=e=>!!e&&"none"!==e;let He;function Ge(e){const t=Ie(e)?Ye(e):e;return Ue(t.transform)||Ue(t.translate)||Ue(t.scale)||Ue(t.rotate)||Ue(t.perspective)||!Ke()&&(Ue(t.backdropFilter)||Ue(t.filter))||We.test(t.willChange||"")||Be.test(t.contain||"")}function Ke(){return null==He&&(He="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),He}function qe(e){return/^(html|body|#document)$/.test(Te(e))}function Ye(e){return Re(e).getComputedStyle(e)}function Xe(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if("html"===Te(e))return e;const t=e.assignedSlot||e.parentNode||ze(e)&&e.host||Me(e);return ze(t)?t.host:t}function Ze(e){const t=Je(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Le(t)?t:Ze(t)}function Qe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ze(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Re(o);if(i){const e=et(a);return t.concat(a,a.visualViewport||[],Le(o)?o:[],e&&n?Qe(e):[])}return t.concat(o,Qe(o,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tt(e){const t=Ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=De(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ie(n)!==i||ie(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function nt(e){return Ie(e)?e:e.contextElement}function rt(e){const t=nt(e);if(!De(t))return se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t);let a=(i?ie(n.width):n.width)/r,s=(i?ie(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ot=se(0);function it(e){const t=Re(e);return Ke()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ot}function at(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let a=se(1);t&&(r?Ie(r)&&(a=rt(r)):a=rt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Re(e))&&t}(i,n,r)?it(i):se(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=Re(i),t=r&&Ie(r)?Re(r):r;let n=e,o=et(n);for(;o&&r&&t!==n;){const e=rt(o),t=o.getBoundingClientRect(),r=Ye(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,n=Re(o),o=et(n)}}return ke({width:u,height:f,x:c,y:l})}function st(e,t){const n=Xe(e).scrollLeft;return t?t.left+n:at(Me(e)).left+n}function ct(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-st(e,n),y:n.top+t.scrollTop}}function lt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Re(e),r=Me(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Ke();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=st(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Me(e),n=Xe(e),r=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+st(e);const s=-n.scrollTop;return"rtl"===Ye(r).direction&&(a+=oe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Me(e));else if(Ie(t))r=function(e,t){const n=at(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=De(e)?rt(e):se(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=it(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ke(r)}function ut(e,t){const n=Je(e);return!(n===t||!Ie(n)||qe(n))&&("fixed"===Ye(n).position||ut(n,t))}function ft(e,t,n){const r=De(t),o=Me(t),i="fixed"===n,a=at(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=se(0);function l(){c.x=st(o)}if(r||!r&&!i)if(("body"!==Te(t)||Le(o))&&(s=Xe(t)),r){const e=at(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?se(0):ct(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function dt(e){return"static"===Ye(e).position}function pt(e,t){if(!De(e)||"fixed"===Ye(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function mt(e,t){const n=Re(e);if(Ve(e))return n;if(!De(e)){let t=Je(e);for(;t&&!qe(t);){if(Ie(t)&&!dt(t))return t;t=Je(t)}return n}let r=pt(e,t);for(;r&&Fe(r)&&dt(r);)r=pt(r,t);return r&&qe(r)&&dt(r)&&!Ge(r)?n:r||function(e){let t=Je(e);for(;De(t)&&!qe(t);){if(Ge(t))return t;if(Ve(t))return null;t=Je(t)}return null}(e)||n}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Me(r),s=!!t&&Ve(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=se(1);const u=se(0),f=De(r);if((f||!f&&!i)&&(("body"!==Te(r)||Le(a))&&(c=Xe(r)),f)){const e=at(r);l=rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||f||i?se(0):ct(a,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Me,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ve(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Qe(e,[],!1).filter(e=>Ie(e)&&"body"!==Te(e)),o=null;const i="fixed"===Ye(e).position;let a=i?Je(e):e;for(;Ie(a)&&!qe(a);){const t=Ye(a),n=Ge(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Le(a)&&!n&&ut(e,a))?r=r.filter(e=>e!==a):o=t,a=Je(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=lt(t,i[0],o);let s=a.top,c=a.right,l=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const n=lt(t,i[e],o);s=oe(n.top,s),c=re(n.right,c),l=re(n.bottom,l),u=oe(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}},getOffsetParent:mt,getElementRects:async function(e){const t=this.getOffsetParent||mt,n=this.getDimensions,r=await n(e.floating);return{reference:ft(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=tt(e);return{width:t,height:n}},getScale:rt,isElement:Ie,isRTL:function(e){return"rtl"===Ye(e).direction}};function ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=nt(e),u=o||i?[...l?Qe(l):[],...t?Qe(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=l&&s?function(e,t){let n,r=null;const o=Me(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-ae(f)+"px "+-ae(o.clientWidth-(u+d))+"px "+-ae(o.clientHeight-(f+p))+"px "+-ae(u)+"px",threshold:oe(0,re(1,c))||1};let y=!0;function h(t){const r=t[0].intersectionRatio;if(r!==c){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ht(l,e.getBoundingClientRect())||a(),y=!1}try{r=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),i}(l,n):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let y=c?at(e):null;return c&&function t(){const r=at(e);y&&!ht(y,r)&&n();y=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const vt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=fe(n),s=de(n),c="y"===ye(n),l=Ne.has(a)?-1:1,u=i&&c?-1:1,f=ue(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},bt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ue(e,t),u={x:n,y:r},f=await i.detectOverflow(t,l),d=ye(fe(o)),p=pe(d);let m=u[p],y=u[d];if(a){const e="y"===p?"bottom":"right";m=le(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";y=le(y+f["y"===d?"top":"left"],y,y-f[e])}const h=c.fn({...t,[p]:m,[d]:y});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:a,[d]:s}}}}}},wt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...h}=ue(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=fe(o),v=ye(s),b=fe(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!y?[Se(s)]:function(e){const t=Se(e);return[ge(e),t,ge(t)]}(s)),E="none"!==m;!d&&E&&x.push(...Ee(s,y,m,w));const S=[s,...x],O=await c.detectOverflow(t,h),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=de(e),o=he(e),i=me(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Se(a)),[a,Se(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var _,$;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ye(t))||C.every(e=>ye(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==($=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(E){const t=ye(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},xt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=ue(e,t),u=await a.detectOverflow(t,l),f=fe(o),d=de(o),p="y"===ye(o),{width:m,height:y}=i.floating;let h,g;"top"===f||"bottom"===f?(h=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,h="end"===d?"top":"bottom");const v=y-u.top-u.bottom,b=m-u.left-u.right,w=re(y-u[h],v),x=re(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),E&&!d){const e=oe(u.left,0),t=oe(u.right,0),n=oe(u.top,0),r=oe(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:oe(u.left,u.right)):S=y-2*(0!==n||0!==r?n+r:oe(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}},Et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{const e=$e(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pe(e)}}}case"escaped":{const e=$e(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pe(e)}}}default:return{}}}}},St=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ue(e,t)||{};if(null==l)return{};const f=Oe(u),d={x:n,y:r},p=he(o),m=me(p),y=await a.getDimensions(l),h="y"===p,g=h?"top":"left",v=h?"bottom":"right",b=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-y[m]/2-1,C=re(f[g],k),_=re(f[v],k),$=C,P=S-y[m]-_,N=S/2-y[m]/2+O,A=le($,N,P),T=!c.arrow&&null!=de(o)&&N!==A&&i.reference[m]/2-(N<$?C:_)-y[m]/2<0,R=T?N<$?N-$:N-P:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:N-A-R,...T&&{alignmentOffset:R}},reset:T}}}),Ot=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ue(e,t),u={x:n,y:r},f=ye(o),d=pe(f);let p=u[d],m=u[f];const y=ue(s,t),h="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,n=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=Ne.has(fe(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},kt=(e,t,n)=>{const r=new Map,o={platform:yt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:_e},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ce(l,r,c),d=r,p=0;const m={};for(let n=0;n<i.length;n++){const y=i[n];if(!y)continue;const{name:h,fn:g}=y,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[h]={...m[h],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=Ce(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var Ct="undefined"!=typeof document?n:function(){};function _t(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!_t(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!_t(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $t(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pt(e,t){const n=$t(e);return Math.round(t*n)/n}function Nt(t){const n=e.useRef(t);return Ct(()=>{n.current=t}),n}const At=(e,t)=>{const n=vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tt=(e,t)=>{const n=bt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rt=(e,t)=>({fn:Ot(e).fn,options:[e,t]}),Mt=(e,t)=>{const n=wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},jt=(e,t)=>{const n=xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=(e,t)=>{const n=Et(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dt=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?St({element:n.current,padding:r}).fn(t):{}:n?St({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var zt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u(P.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u("polygon",{points:"0,0 30,0 15,10"})})});zt.displayName="Arrow";var Lt=zt;var Ft="Popper",[Vt,Wt]=S(Ft),[Bt,Ut]=Vt(Ft),Ht=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return u(Bt,{scope:n,anchor:o,onAnchorChange:i,children:r})};Ht.displayName=Ft;var Gt="PopperAnchor",Kt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ut(Gt,r),s=e.useRef(null),c=E(n,s),l=e.useRef(null);return e.useEffect(()=>{const e=l.current;l.current=o?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),o?null:u(P.div,{...i,ref:c})});Kt.displayName=Gt;var qt="PopperContent",[Yt,Xt]=Vt(qt),Jt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=Ut(qt,r),[w,x]=e.useState(null),S=E(n,e=>x(e)),[O,k]=e.useState(null),C=function(t){const[n,r]=e.useState(void 0);return Z(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(O),_=C?.width??0,$=C?.height??0,A=o+("center"!==a?"-"+a:""),T="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},R=Array.isArray(f)?f:[f],M=R.length>0,j={padding:T,boundary:R.filter(tn),altBoundary:M},{refs:I,floatingStyles:D,placement:z,isPositioned:L,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,y]=e.useState(o);_t(m,o)||y(o);const[h,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||h,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(f),_=null!=l,$=Nt(l),P=Nt(i),N=Nt(u),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};P.current&&(e.platform=P.current),kt(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};T.current&&!_t(C.current,t)&&(C.current=t,d.flushSync(()=>{p(t)}))})},[m,n,r,P,N]);Ct(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const T=e.useRef(!1);Ct(()=>(T.current=!0,()=>{T.current=!1}),[]),Ct(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if($.current)return $.current(E,S,A);A()}},[E,S,A,$,_]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Pt(M.floating,f.x),n=Pt(M.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...$t(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,M.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:A,refs:R,elements:M,floatingStyles:j}),[f,A,R,M,j])}({strategy:"fixed",placement:A,whileElementsMounted:(...e)=>gt(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[At({mainAxis:i+$,alignmentAxis:s}),l&&Tt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Rt():void 0,...j}),l&&Mt({...j}),jt({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&Dt({element:O,padding:c}),nn({arrowWidth:_,arrowHeight:$}),y&&It({strategy:"referenceHidden",...j})]}),[V,W]=rn(z),B=N(g);Z(()=>{L&&B?.()},[L,B]);const U=F.arrow?.x,H=F.arrow?.y,G=0!==F.arrow?.centerOffset,[K,q]=e.useState();return Z(()=>{w&&q(window.getComputedStyle(w).zIndex)},[w]),u("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:L?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u(Yt,{scope:r,placedSide:V,onArrowChange:k,arrowX:U,arrowY:H,shouldHideArrow:G,children:u(P.div,{"data-side":V,"data-align":W,...v,ref:S,style:{...v.style,animation:L?void 0:"none"}})})})});Jt.displayName=qt;var Zt="PopperArrow",Qt={top:"bottom",right:"left",bottom:"top",left:"right"},en=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Xt(Zt,n),i=Qt[o.placedSide];return u("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u(Lt,{...r,ref:t,style:{...r.style,display:"block"}})})});function tn(e){return null!==e}en.displayName=Zt;var nn=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,l]=rn(n),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${r.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function rn(e){const[t,n="center"]=e.split("-");return[t,n]}var on=Ht,an=Kt,sn=Jt,cn=en,ln=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,a]=e.useState(!1);Z(()=>a(!0),[]);const s=r||i&&globalThis?.document?.body;return s?p.createPortal(u(P.div,{...o,ref:n}),s):null});ln.displayName="Portal";var un=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=fn(o.current);a.current="mounted"===c?e:"none"},[c]),Z(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=fn(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Z(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=fn(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(l("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=fn(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=E(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function fn(e){return e?.animationName||"none"}un.displayName="Presence";var dn=e[" useInsertionEffect ".trim().toString()]||Z;function pn({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return dn(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),c=void 0!==t,l=c?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==c){const t=e?"controlled":"uncontrolled",n=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=c},[c,o])}const u=e.useCallback(e=>{if(c){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[c,t,a,s]);return[l,u]}var mn=new WeakMap,yn=new WeakMap,hn={},gn=0,vn=function(e){return e&&(e.host||vn(e.parentNode))},bn=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=vn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);hn[n]||(hn[n]=new WeakMap);var i=hn[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(mn.get(e)||0)+1,l=(i.get(e)||0)+1;mn.set(e,c),i.set(e,l),a.push(e),1===c&&o&&yn.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),gn++,function(){a.forEach(function(e){var t=mn.get(e)-1,o=i.get(e)-1;mn.set(e,t),i.set(e,o),t||(yn.has(e)||e.removeAttribute(r),yn.delete(e)),o||e.removeAttribute(n)}),--gn||(mn=new WeakMap,mn=new WeakMap,yn=new WeakMap,hn={})}},wn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bn(r,o,n,"aria-hidden")):function(){return null}},xn=function(){return xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xn.apply(this,arguments)};function En(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Sn="right-scroll-bar-position",On="width-before-scroll-bar";function kn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Cn="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,_n=new WeakMap;function $n(e,t){var n,o,i,a=(n=null,o=function(t){return e.forEach(function(e){return kn(e,t)})},(i=r(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Cn(function(){var t=_n.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||kn(e,null)}),r.forEach(function(e){n.has(e)||kn(e,o)})}_n.set(a,e)},[e]),a}function Pn(e){return e}var Nn=function(t){var n=t.sideCar,r=En(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,xn({},r))};Nn.isSideCarExport=!0;var An=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=xn({async:!0,ssr:!1},e),t}(),Tn=function(){},Rn=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Tn,onWheelCapture:Tn,onTouchMoveCapture:Tn}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,y=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=En(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=$n([r,n]),O=xn(xn({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:An,removeScrollBar:u,shards:d,noRelative:m,noIsolation:y,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(c),xn(xn({},O),{ref:S})):e.createElement(b,xn({},O,{className:l,ref:S}),c))});Rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rn.classNames={fullWidth:On,zeroRight:Sn};function Mn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var jn=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Mn())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},In=function(){var t,n=(t=jn(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Dn={left:0,top:0,right:0,gap:0},zn=function(e){return parseInt(e||"",10)||0},Ln=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[zn(n),zn(r),zn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fn=In(),Vn="data-scroll-locked",Wn=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Vn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Sn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(On," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(On," .").concat(On," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Vn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Bn=function(){var e=parseInt(document.body.getAttribute(Vn)||"0",10);return isFinite(e)?e:0},Un=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Vn,(Bn()+1).toString()),function(){var e=Bn()-1;e<=0?document.body.removeAttribute(Vn):document.body.setAttribute(Vn,e.toString())}},[]);var a=e.useMemo(function(){return Ln(i)},[i]);return e.createElement(Fn,{styles:Wn(a,!n,i,r?"":"!important")})},Hn=!1;if("undefined"!=typeof window)try{var Gn=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch(e){Hn=!1}var Kn=!!Hn&&{passive:!1},qn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Yn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Xn(e,r)){var o=Jn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xn=function(e,t){return"v"===e?function(e){return qn(e,"overflowY")}(t):function(e){return qn(e,"overflowX")}(t)},Jn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Zn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qn=function(e){return[e.deltaX,e.deltaY]},er=function(e){return e&&"current"in e?e.current:e},tr=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},nr=0,rr=[];function or(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ir,ar=(ir=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(nr++)[0],a=e.useState(In)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(er),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Zn(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Yn(f,u);if(!m)return!0;if(m?n=f:(n="v"===f?"h":"v",m=Yn(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var y=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Jn(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&Xn(e,a)&&(u+=m,f+=p);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(y,t,e,"h"===y?c:l)},[]),l=e.useCallback(function(e){var t=e;if(rr.length&&rr[rr.length-1]===a){var r="deltaY"in t?Qn(t):Zn(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(er).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:or(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){r.current=Zn(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Qn(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Zn(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return rr.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Kn),document.addEventListener("touchmove",l,Kn),document.addEventListener("touchstart",f,Kn),function(){rr=rr.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Kn),document.removeEventListener("touchmove",l,Kn),document.removeEventListener("touchstart",f,Kn)}},[]);var m=t.removeScrollBar,y=t.inert;return e.createElement(e.Fragment,null,y?e.createElement(a,{styles:tr(i)}):null,m?e.createElement(Un,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},An.useMedium(ir),Nn),sr=e.forwardRef(function(t,n){return e.createElement(Rn,xn({},t,{ref:n,sideCar:ar}))});sr.classNames=Rn.classNames;var cr="Popover",[lr]=S(cr,[Wt]),ur=Wt(),[fr,dr]=lr(cr),pr=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,c=ur(n),l=e.useRef(null),[f,d]=e.useState(!1),[p,m]=pn({prop:o,defaultProp:i??!1,onChange:a,caller:cr});return u(on,{...c,children:u(fr,{scope:n,contentId:te(),triggerRef:l,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};pr.displayName=cr;var mr="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=dr(mr,r),a=ur(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=i;return e.useEffect(()=>(s(),()=>c()),[s,c]),u(an,{...a,...o,ref:n})}).displayName=mr;var yr="PopoverTrigger",hr=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(yr,n),i=ur(n),a=E(t,o.triggerRef),s=u(P.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$r(o.open),...r,ref:a,onClick:b(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u(an,{asChild:!0,...i,children:s})});hr.displayName=yr;var gr="PopoverPortal",[vr,br]=lr(gr,{forceMount:void 0}),wr=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=dr(gr,t);return u(vr,{scope:t,forceMount:n,children:u(un,{present:n||i.open,children:u(ln,{asChild:!0,container:o,children:r})})})};wr.displayName=gr;var xr="PopoverContent",Er=e.forwardRef((e,t)=>{const n=br(xr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=dr(xr,e.__scopePopover);return u(un,{present:r||i.open,children:i.modal?u(Or,{...o,ref:t}):u(kr,{...o,ref:t})})});Er.displayName=xr;var Sr=k("PopoverContent.RemoveScroll"),Or=e.forwardRef((t,n)=>{const r=dr(xr,t.__scopePopover),o=e.useRef(null),i=E(n,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return wn(e)},[]),u(sr,{as:Sr,allowPinchZoom:!0,children:u(Cr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:b(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:b(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),kr=e.forwardRef((t,n)=>{const r=dr(xr,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return u(Cr,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Cr=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:d,...p}=t,m=dr(xr,r),y=ur(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??V()),document.body.insertAdjacentElement("beforeend",e[1]??V()),F++,()=>{1===F&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),F--}},[]),u(H,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:u(I,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:u(sn,{"data-state":$r(m.open),role:"dialog",id:m.contentId,...y,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),_r="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(_r,n);return u(P.button,{type:"button",...r,ref:t,onClick:b(e.onClick,()=>o.onOpenChange(!1))})}).displayName=_r;function $r(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ur(n);return u(cn,{...o,...r,ref:t})}).displayName="PopoverArrow";var Pr=pr,Nr=hr,Ar=wr,Tr=Er;function Rr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Rr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Rr(e))&&(r&&(r+=" "),r+=t);return r}const jr=e=>{const t=Lr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ir(n,t)||zr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ir=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ir(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Dr=/^\[(.+)\]$/,zr=e=>{if(Dr.test(e)){const t=Dr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Lr=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Br(Object.entries(e.classGroups),n).forEach(([e,n])=>{Fr(n,r,e,t)}),r},Fr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Vr(t,e)).classGroupId=n)}if("function"==typeof e)return Wr(e)?void Fr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Fr(o,Vr(t,e),n,r)})})},Vr=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Wr=e=>e.isThemeGetter,Br=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Ur=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Hr=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(r||e.slice(l,l+i)===t)){n.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===n.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return n?e=>n({className:e,parseClassName:a}):a},Gr=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Kr=/\s+/;function qr(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const Yr=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Yr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xr(e,...t){let n,r,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ur(e.cacheSize),parseClassName:Hr(e),...jr(e)}))(c),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Kr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=n(t);let d=Boolean(f),p=r(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Gr(c).join(":"),y=l?m+"!":m,h=y+p;if(i.includes(h))continue;i.push(h);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(qr.apply(null,arguments))}}const Jr=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Zr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qr=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\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$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ao=e=>co(e)||eo.has(e)||Qr.test(e),so=e=>Eo(e,"length",So),co=e=>Boolean(e)&&!Number.isNaN(Number(e)),lo=e=>Eo(e,"number",co),uo=e=>Boolean(e)&&Number.isInteger(Number(e)),fo=e=>e.endsWith("%")&&co(e.slice(0,-1)),po=e=>Zr.test(e),mo=e=>to.test(e),yo=new Set(["length","size","percentage"]),ho=e=>Eo(e,yo,Oo),go=e=>Eo(e,"position",Oo),vo=new Set(["image","url"]),bo=e=>Eo(e,vo,Co),wo=e=>Eo(e,"",ko),xo=()=>!0,Eo=(e,t,n)=>{const r=Zr.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},So=e=>no.test(e)&&!ro.test(e),Oo=()=>!1,ko=e=>oo.test(e),Co=e=>io.test(e),_o=()=>{const e=Jr("colors"),t=Jr("spacing"),n=Jr("blur"),r=Jr("brightness"),o=Jr("borderColor"),i=Jr("borderRadius"),a=Jr("borderSpacing"),s=Jr("borderWidth"),c=Jr("contrast"),l=Jr("grayscale"),u=Jr("hueRotate"),f=Jr("invert"),d=Jr("gap"),p=Jr("gradientColorStops"),m=Jr("gradientColorStopPositions"),y=Jr("inset"),h=Jr("margin"),g=Jr("opacity"),v=Jr("padding"),b=Jr("saturate"),w=Jr("scale"),x=Jr("sepia"),E=Jr("skew"),S=Jr("space"),O=Jr("translate"),k=()=>["auto",po,t],C=()=>[po,t],_=()=>["",ao,so],$=()=>["auto",co,po],P=()=>["","0",po],N=()=>[co,po];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[ao,so],blur:["none","",mo,po],brightness:N(),borderColor:[e],borderRadius:["none","","full",mo,po],borderSpacing:C(),borderWidth:_(),contrast:N(),grayscale:P(),hueRotate:N(),invert:P(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[fo,so],inset:k(),margin:k(),opacity:N(),padding:C(),saturate:N(),scale:N(),sepia:P(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",po]}],container:["container"],columns:[{columns:[mo]}],"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"],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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",po]}],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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,po]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",po]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",uo,po]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",uo,po]},po]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[uo,po]},po]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",po]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",po]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",po,t]}],"min-w":[{"min-w":[po,t,"min","max","fit"]}],"max-w":[{"max-w":[po,t,"none","full","min","max","fit","prose",{screen:[mo]},mo]}],h:[{h:[po,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[po,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[po,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[po,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mo,so]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lo]}],"font-family":[{font:[xo]}],"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:["tighter","tight","normal","wide","wider","widest",po]}],"line-clamp":[{"line-clamp":["none",co,lo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ao,po]}],"list-image":[{"list-image":["none",po]}],"list-style-type":[{list:["none","disc","decimal",po]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ao,so]}],"underline-offset":[{"underline-offset":["auto",ao,po]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",po]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",po]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",go]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ho]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[ao,po]}],"outline-w":[{outline:[ao,so]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ao,so]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mo,wo]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[g]}],"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-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",mo,po]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",po]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",po]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",po]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[uo,po]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",po]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",po]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",po]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ao,so,lo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},$o=Xr(_o);function Po(...e){return $o(Mr(e))}const No=Pr,Ao=Nr,To=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Ar,null,e.createElement(Tr,{ref:i,align:n,sideOffset:r,className:Po("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));To.displayName=Tr.displayName;const Ro=({id:e,className:n,align:r,side:o,sideOffset:i=8,visible:a,content:s,children:c,onPointerDownOutside:l,onOpenAutoFocus:u})=>t.createElement(No,{open:a},t.createElement(Ao,{asChild:!0},c),t.createElement(To,{id:e,className:v("gyramais-popover-content",n),align:r,side:o,sideOffset:i,onPointerDownOutside:l,onOpenAutoFocus:u},s));var Mo={},jo={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(jo);var Io=jo.exports,Do={};function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zo.apply(null,arguments)}function Lo(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Fo(t){if(e.isValidElement(t)||!Lo(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=Fo(t[e])}),n}function Vo(t,n,r={clone:!0}){const o=r.clone?zo({},t):t;return Lo(t)&&Lo(n)&&Object.keys(n).forEach(i=>{e.isValidElement(n[i])?o[i]=n[i]:Lo(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Lo(t[i])?o[i]=Vo(t[i],n[i],r):r.clone?o[i]=Lo(n[i])?Fo(n[i]):n[i]:o[i]=n[i]}),o}var Wo,Bo=Object.freeze({__proto__:null,default:Vo,isPlainObject:Lo}),Uo={exports:{}},Ho={exports:{}},Go={};var Ko,qo,Yo,Xo,Jo,Zo,Qo,ei,ti,ni,ri,oi,ii,ai,si={};
|
|
7
|
+
/** @license React v16.13.1
|
|
8
|
+
* react-is.development.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/function ci(){return qo||(qo=1,"production"===process.env.NODE_ENV?Ho.exports=function(){if(Wo)return Go;Wo=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case p:case a:return e;default:return d}}case n:return d}}}function w(e){return b(e)===l}return Go.AsyncMode=c,Go.ConcurrentMode=l,Go.ContextConsumer=s,Go.ContextProvider=a,Go.Element=t,Go.ForwardRef=u,Go.Fragment=r,Go.Lazy=m,Go.Memo=p,Go.Portal=n,Go.Profiler=i,Go.StrictMode=o,Go.Suspense=f,Go.isAsyncMode=function(e){return w(e)||b(e)===c},Go.isConcurrentMode=w,Go.isContextConsumer=function(e){return b(e)===s},Go.isContextProvider=function(e){return b(e)===a},Go.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Go.isForwardRef=function(e){return b(e)===u},Go.isFragment=function(e){return b(e)===r},Go.isLazy=function(e){return b(e)===m},Go.isMemo=function(e){return b(e)===p},Go.isPortal=function(e){return b(e)===n},Go.isProfiler=function(e){return b(e)===i},Go.isStrictMode=function(e){return b(e)===o},Go.isSuspense=function(e){return b(e)===f},Go.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y)},Go.typeOf=b,Go}():Ho.exports=(Ko||(Ko=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var y=e.type;switch(y){case c:case l:case r:case i:case o:case f:return y;default:var h=y&&y.$$typeof;switch(h){case s:case u:case m:case p:case a:return h;default:return d}}case n:return d}}}var w=c,x=l,E=s,S=a,O=t,k=u,C=r,_=m,$=p,P=n,N=i,A=o,T=f,R=!1;function M(e){return b(e)===l}si.AsyncMode=w,si.ConcurrentMode=x,si.ContextConsumer=E,si.ContextProvider=S,si.Element=O,si.ForwardRef=k,si.Fragment=C,si.Lazy=_,si.Memo=$,si.Portal=P,si.Profiler=N,si.StrictMode=A,si.Suspense=T,si.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===c},si.isConcurrentMode=M,si.isContextConsumer=function(e){return b(e)===s},si.isContextProvider=function(e){return b(e)===a},si.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},si.isForwardRef=function(e){return b(e)===u},si.isFragment=function(e){return b(e)===r},si.isLazy=function(e){return b(e)===m},si.isMemo=function(e){return b(e)===p},si.isPortal=function(e){return b(e)===n},si.isProfiler=function(e){return b(e)===i},si.isStrictMode=function(e){return b(e)===o},si.isSuspense=function(e){return b(e)===f},si.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y)},si.typeOf=b}()),si)),Ho.exports}
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/function li(){if(Xo)return Yo;Xo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Yo=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))t.call(i,l)&&(s[l]=i[l]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Yo}function ui(){if(Zo)return Jo;Zo=1;return Jo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function fi(){return ei?Qo:(ei=1,Qo=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var di=ci();Uo.exports=function(){if(oi)return ri;oi=1;var e=ci(),t=li(),n=ui(),r=fi(),o=function(){if(ni)return ti;ni=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ui(),n={},r=fi();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var f=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},ti=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),ri=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",f={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:m(a),arrayOf:function(e){return m(function(t,r,o,i,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new p("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null})},element:m(function(e,t,n,r,o){var i=e[t];return s(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:m(function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return m(function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:m(function(e,t,n,r,o){return g(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return m(function(t,o,i,a,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=v(c);if("object"!==l)return new p("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var f=e(c,u,i,a,s+"."+u,n);if(f instanceof Error)return f}return null})},oneOf:function(e){return Array.isArray(e)?m(function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(d(a,e[s]))return null;var c=JSON.stringify(e,function(e,t){return"symbol"===b(t)?String(t):t});return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")}):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),a}return m(function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new p("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")})},shape:function(e){return m(function(t,r,o,i,a){var s=t[r],c=v(s);if("object"!==c)return new p("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return h(o,i,a,l,b(u));var f=u(s,l,o,i,a+"."+l,n);if(f)return f}return null})},exact:function(e){return m(function(o,i,a,s,c){var l=o[i],u=v(l);if("object"!==u)return new p("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var m=e[d];if(r(e,d)&&"function"!=typeof m)return h(a,s,c,d,b(m));if(!m)return new p("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=m(l,d,a,s,c+"."+d,n);if(y)return y}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,f,d,m){if(l=l||u,d=d||s,m!==n){if(c){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=l+":"+s;!t[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[h]=!0,r++)}}return null==a[s]?o?null===a[s]?new p("The "+f+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new p("The "+f+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,f,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(e){return m(function(t,n,r,o,i,a){var s=t[n];return v(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function h(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},ri}()(di.isElement,!0)}else Uo.exports=function(){if(ai)return ii;ai=1;var e=ui();function t(){}function n(){}return n.resetWarningCache=t,ii=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var pi=m(Uo.exports);function mi(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var yi,hi=Object.freeze({__proto__:null,default:mi}),gi={exports:{}},vi={};var bi,wi={};
|
|
20
|
+
/**
|
|
21
|
+
* @license React
|
|
22
|
+
* react-is.development.js
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/"production"===process.env.NODE_ENV?gi.exports=function(){if(yi)return vi;yi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function m(p){if("object"==typeof p&&null!==p){var m=p.$$typeof;switch(m){case e:switch(p=p.type){case n:case o:case r:case c:case l:case d:return p;default:switch(p=p&&p.$$typeof){case a:case s:case f:case u:case i:return p;default:return m}}case t:return m}}}return vi.ContextConsumer=i,vi.ContextProvider=a,vi.Element=e,vi.ForwardRef=s,vi.Fragment=n,vi.Lazy=f,vi.Memo=u,vi.Portal=t,vi.Profiler=o,vi.StrictMode=r,vi.Suspense=c,vi.SuspenseList=l,vi.isContextConsumer=function(e){return m(e)===i},vi.isContextProvider=function(e){return m(e)===a},vi.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},vi.isForwardRef=function(e){return m(e)===s},vi.isFragment=function(e){return m(e)===n},vi.isLazy=function(e){return m(e)===f},vi.isMemo=function(e){return m(e)===u},vi.isPortal=function(e){return m(e)===t},vi.isProfiler=function(e){return m(e)===o},vi.isStrictMode=function(e){return m(e)===r},vi.isSuspense=function(e){return m(e)===c},vi.isSuspenseList=function(e){return m(e)===l},vi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===c||e===l||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},vi.typeOf=m,vi}():gi.exports=(bi||(bi=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case l:case u:case p:return e;default:switch(e=e&&e.$$typeof){case s:case c:case d:case f:case a:return e;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");wi.ContextConsumer=a,wi.ContextProvider=s,wi.Element=t,wi.ForwardRef=c,wi.Fragment=r,wi.Lazy=d,wi.Memo=f,wi.Portal=n,wi.Profiler=i,wi.StrictMode=o,wi.Suspense=l,wi.SuspenseList=u,wi.isContextConsumer=function(t){return e(t)===a},wi.isContextProvider=function(t){return e(t)===s},wi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wi.isForwardRef=function(t){return e(t)===c},wi.isFragment=function(t){return e(t)===r},wi.isLazy=function(t){return e(t)===d},wi.isMemo=function(t){return e(t)===f},wi.isPortal=function(t){return e(t)===n},wi.isProfiler=function(t){return e(t)===i},wi.isStrictMode=function(t){return e(t)===o},wi.isSuspense=function(t){return e(t)===l},wi.isSuspenseList=function(t){return e(t)===u},wi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===m||void 0!==e.getModuleId)},wi.typeOf=e}()),wi);var xi=gi.exports;const Ei=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Si(e){const t=`${e}`.match(Ei);return t&&t[1]||""}function Oi(e,t=""){return e.displayName||e.name||Si(e)||t}function ki(e,t,n){const r=Oi(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ci=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Oi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case xi.ForwardRef:return ki(e,e.render,"ForwardRef");case xi.Memo:return ki(e,e.type,"memo");default:return}}},getFunctionName:Si});function _i(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":mi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var $i=Object.freeze({__proto__:null,default:_i});function Pi(e){return e&&e.ownerDocument||document}function Ni(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Ai="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let Ti=0;const Ri=e["useId".toString()];class Mi{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mi}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}let ji=!0,Ii=!1;const Di=new Mi,zi={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Li(e){e.metaKey||e.altKey||e.ctrlKey||(ji=!0)}function Fi(){ji=!1}function Vi(){"hidden"===this.visibilityState&&Ii&&(ji=!0)}function Wi(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ji||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!zi[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Bi(e,t){const n=zo({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=zo({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=zo({},i),Object.keys(o).forEach(e=>{n[r][e]=Bi(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Ui=e=>e,Hi=(()=>{let e=Ui;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ui}}})(),Gi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ki(e,t,n="Mui"){const r=Gi[t];return r?`${n}-${r}`:`${Hi.generate(e)}-${t}`}var qi=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Yi(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const Xi=e.createContext(void 0);function Ji({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Bi(o.defaultProps,r):o.styleOverrides||o.variants?r:Bi(o,r)}({props:t,name:n,theme:{components:e.useContext(Xi)}})}"production"!==process.env.NODE_ENV&&(pi.node,pi.object),"production"!==process.env.NODE_ENV&&(pi.node,pi.object.isRequired);var Zi,Qi={},ea={exports:{}};var ta,na={exports:{}};var ra=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),oa="-ms-",ia="-moz-",aa="-webkit-",sa="comm",ca="rule",la="decl",ua="@keyframes",fa=Math.abs,da=String.fromCharCode,pa=Object.assign;function ma(e){return e.trim()}function ya(e,t,n){return e.replace(t,n)}function ha(e,t){return e.indexOf(t)}function ga(e,t){return 0|e.charCodeAt(t)}function va(e,t,n){return e.slice(t,n)}function ba(e){return e.length}function wa(e){return e.length}function xa(e,t){return t.push(e),e}var Ea=1,Sa=1,Oa=0,ka=0,Ca=0,_a="";function $a(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ea,column:Sa,length:a,return:""}}function Pa(e,t){return pa($a("",null,null,"",null,null,0),e,{length:-e.length},t)}function Na(){return Ca=ka>0?ga(_a,--ka):0,Sa--,10===Ca&&(Sa=1,Ea--),Ca}function Aa(){return Ca=ka<Oa?ga(_a,ka++):0,Sa++,10===Ca&&(Sa=1,Ea++),Ca}function Ta(){return ga(_a,ka)}function Ra(){return ka}function Ma(e,t){return va(_a,e,t)}function ja(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ia(e){return Ea=Sa=1,Oa=ba(_a=e),ka=0,[]}function Da(e){return _a="",e}function za(e){return ma(Ma(ka-1,Va(91===e?e+2:40===e?e+1:e)))}function La(e){for(;(Ca=Ta())&&Ca<33;)Aa();return ja(e)>2||ja(Ca)>3?"":" "}function Fa(e,t){for(;--t&&Aa()&&!(Ca<48||Ca>102||Ca>57&&Ca<65||Ca>70&&Ca<97););return Ma(e,Ra()+(t<6&&32==Ta()&&32==Aa()))}function Va(e){for(;Aa();)switch(Ca){case e:return ka;case 34:case 39:34!==e&&39!==e&&Va(Ca);break;case 40:41===e&&Va(e);break;case 92:Aa()}return ka}function Wa(e,t){for(;Aa()&&e+Ca!==57&&(e+Ca!==84||47!==Ta()););return"/*"+Ma(t,ka-1)+"*"+da(47===e?e:Aa())}function Ba(e){for(;!ja(Ta());)Aa();return Ma(e,ka)}function Ua(e){return Da(Ha("",null,null,null,[""],e=Ia(e),0,[0],e))}function Ha(e,t,n,r,o,i,a,s,c){for(var l=0,u=0,f=a,d=0,p=0,m=0,y=1,h=1,g=1,v=0,b="",w=o,x=i,E=r,S=b;h;)switch(m=v,v=Aa()){case 40:if(108!=m&&58==ga(S,f-1)){-1!=ha(S+=ya(za(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=za(v);break;case 9:case 10:case 13:case 32:S+=La(m);break;case 92:S+=Fa(Ra()-1,7);continue;case 47:switch(Ta()){case 42:case 47:xa(Ka(Wa(Aa(),Ra()),t,n),c);break;default:S+="/"}break;case 123*y:s[l++]=ba(S)*g;case 125*y:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:-1==g&&(S=ya(S,/\f/g,"")),p>0&&ba(S)-f&&xa(p>32?qa(S+";",r,n,f-1):qa(ya(S," ","")+";",r,n,f-2),c);break;case 59:S+=";";default:if(xa(E=Ga(S,t,n,l,u,o,s,b,w=[],x=[],f),i),123===v)if(0===u)Ha(S,t,E,E,w,i,f,s,x);else switch(99===d&&110===ga(S,3)?100:d){case 100:case 108:case 109:case 115:Ha(e,E,E,r&&xa(Ga(e,E,E,0,0,o,s,b,o,w=[],f),x),o,x,f,s,r?w:x);break;default:Ha(S,E,E,E,[""],x,0,s,x)}}l=u=p=0,y=g=1,b=S="",f=a;break;case 58:f=1+ba(S),p=m;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==Na())continue;switch(S+=da(v),v*y){case 38:g=u>0?1:(S+="\f",-1);break;case 44:s[l++]=(ba(S)-1)*g,g=1;break;case 64:45===Ta()&&(S+=za(Aa())),d=Ta(),u=f=ba(b=S+=Ba(Ra())),v++;break;case 45:45===m&&2==ba(S)&&(y=0)}}return i}function Ga(e,t,n,r,o,i,a,s,c,l,u){for(var f=o-1,d=0===o?i:[""],p=wa(d),m=0,y=0,h=0;m<r;++m)for(var g=0,v=va(e,f+1,f=fa(y=a[m])),b=e;g<p;++g)(b=ma(y>0?d[g]+" "+v:ya(v,/&\f/g,d[g])))&&(c[h++]=b);return $a(e,t,n,0===o?ca:s,c,l,u)}function Ka(e,t,n){return $a(e,t,n,sa,da(Ca),va(e,2,-2),0)}function qa(e,t,n,r){return $a(e,t,n,la,va(e,0,r),va(e,r+1,-1),r)}function Ya(e,t){for(var n="",r=wa(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Xa(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case la:return e.return=e.return||e.value;case sa:return"";case ua:return e.return=e.value+"{"+Ya(e.children,r)+"}";case ca:e.value=e.props.join(",")}return ba(n=Ya(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ja(e){var t=wa(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Za(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Qa="undefined"!=typeof document,es=function(e,t,n){for(var r=0,o=0;r=o,o=Ta(),38===r&&12===o&&(t[n]=1),!ja(o);)Aa();return Ma(e,ka)},ts=function(e,t){return Da(function(e,t){var n=-1,r=44;do{switch(ja(r)){case 0:38===r&&12===Ta()&&(t[n]=1),e[n]+=es(ka-1,t,n);break;case 2:e[n]+=za(r);break;case 4:if(44===r){e[++n]=58===Ta()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=da(r)}}while(r=Aa());return e}(Ia(e),t))},ns=new WeakMap,rs=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ns.get(n))&&!r){ns.set(e,!0);for(var o=[],i=ts(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},os=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function is(e,t){switch(function(e,t){return 45^ga(e,0)?(((t<<2^ga(e,0))<<2^ga(e,1))<<2^ga(e,2))<<2^ga(e,3):0}(e,t)){case 5103:return aa+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return aa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return aa+e+ia+e+oa+e+e;case 6828:case 4268:return aa+e+oa+e+e;case 6165:return aa+e+oa+"flex-"+e+e;case 5187:return aa+e+ya(e,/(\w+).+(:[^]+)/,aa+"box-$1$2"+oa+"flex-$1$2")+e;case 5443:return aa+e+oa+"flex-item-"+ya(e,/flex-|-self/,"")+e;case 4675:return aa+e+oa+"flex-line-pack"+ya(e,/align-content|flex-|-self/,"")+e;case 5548:return aa+e+oa+ya(e,"shrink","negative")+e;case 5292:return aa+e+oa+ya(e,"basis","preferred-size")+e;case 6060:return aa+"box-"+ya(e,"-grow","")+aa+e+oa+ya(e,"grow","positive")+e;case 4554:return aa+ya(e,/([^-])(transform)/g,"$1"+aa+"$2")+e;case 6187:return ya(ya(ya(e,/(zoom-|grab)/,aa+"$1"),/(image-set)/,aa+"$1"),e,"")+e;case 5495:case 3959:return ya(e,/(image-set\([^]*)/,aa+"$1$`$1");case 4968:return ya(ya(e,/(.+:)(flex-)?(.*)/,aa+"box-pack:$3"+oa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+aa+e+e;case 4095:case 3583:case 4068:case 2532:return ya(e,/(.+)-inline(.+)/,aa+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ba(e)-1-t>6)switch(ga(e,t+1)){case 109:if(45!==ga(e,t+4))break;case 102:return ya(e,/(.+:)(.+)-([^]+)/,"$1"+aa+"$2-$3$1"+ia+(108==ga(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ha(e,"stretch")?is(ya(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ga(e,t+1))break;case 6444:switch(ga(e,ba(e)-3-(~ha(e,"!important")&&10))){case 107:return ya(e,":",":"+aa)+e;case 101:return ya(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+aa+(45===ga(e,14)?"inline-":"")+"box$3$1"+aa+"$2$3$1"+oa+"$2box$3")+e}break;case 5936:switch(ga(e,t+11)){case 114:return aa+e+oa+ya(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return aa+e+oa+ya(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return aa+e+oa+ya(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return aa+e+oa+e+e}return e}var as,ss,cs,ls=Qa?void 0:(as=function(){return Za(function(){return{}})},ss=new WeakMap,function(e){if(ss.has(e))return ss.get(e);var t=as(e);return ss.set(e,t),t}),us=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case la:e.return=is(e.value,e.length);break;case ua:return Ya([Pa(e,{value:ya(e.value,"@","@"+aa)})],r);case ca:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ya([Pa(e,{props:[ya(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ya([Pa(e,{props:[ya(t,/:(plac\w+)/,":"+aa+"input-$1")]}),Pa(e,{props:[ya(t,/:(plac\w+)/,":-moz-$1")]}),Pa(e,{props:[ya(t,/:(plac\w+)/,oa+"input-$1")]})],r)}return""})}}],fs=function(e){var t=e.key;if(Qa&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||us,a={},s=[];Qa&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,l=[rs,os];if(ls){var u=[Xa],f=Ja(l.concat(i,u)),d=ls(i)(t),p=function(e,t){var n=t.name;return void 0===d[n]&&(d[n]=Ya(Ua(e?e+"{"+t.styles+"}":t.styles),f)),d[n]};o=function(e,t,n,r){var o=t.name,i=p(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),i):r?void(g.inserted[o]=i):i}}else{var m,y=[Xa,(c=function(e){m.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],h=Ja(l.concat(i,y));o=function(e,t,n,r){m=n,Ya(Ua(e?e+"{"+t.styles+"}":t.styles),h),r&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new ra({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return g.sheet.hydrate(s),g},ds={exports:{}},ps={};var ms,ys={};
|
|
29
|
+
/** @license React v16.13.1
|
|
30
|
+
* react-is.development.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/"production"===process.env.NODE_ENV?ds.exports=function(){if(cs)return ps;cs=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case p:case a:return e;default:return d}}case n:return d}}}function w(e){return b(e)===l}return ps.AsyncMode=c,ps.ConcurrentMode=l,ps.ContextConsumer=s,ps.ContextProvider=a,ps.Element=t,ps.ForwardRef=u,ps.Fragment=r,ps.Lazy=m,ps.Memo=p,ps.Portal=n,ps.Profiler=i,ps.StrictMode=o,ps.Suspense=f,ps.isAsyncMode=function(e){return w(e)||b(e)===c},ps.isConcurrentMode=w,ps.isContextConsumer=function(e){return b(e)===s},ps.isContextProvider=function(e){return b(e)===a},ps.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ps.isForwardRef=function(e){return b(e)===u},ps.isFragment=function(e){return b(e)===r},ps.isLazy=function(e){return b(e)===m},ps.isMemo=function(e){return b(e)===p},ps.isPortal=function(e){return b(e)===n},ps.isProfiler=function(e){return b(e)===i},ps.isStrictMode=function(e){return b(e)===o},ps.isSuspense=function(e){return b(e)===f},ps.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y)},ps.typeOf=b,ps}():ds.exports=(ms||(ms=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var y=e.type;switch(y){case c:case l:case r:case i:case o:case f:return y;default:var h=y&&y.$$typeof;switch(h){case s:case u:case m:case p:case a:return h;default:return d}}case n:return d}}}var w=c,x=l,E=s,S=a,O=t,k=u,C=r,_=m,$=p,P=n,N=i,A=o,T=f,R=!1;function M(e){return b(e)===l}ys.AsyncMode=w,ys.ConcurrentMode=x,ys.ContextConsumer=E,ys.ContextProvider=S,ys.Element=O,ys.ForwardRef=k,ys.Fragment=C,ys.Lazy=_,ys.Memo=$,ys.Portal=P,ys.Profiler=N,ys.StrictMode=A,ys.Suspense=T,ys.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===c},ys.isConcurrentMode=M,ys.isContextConsumer=function(e){return b(e)===s},ys.isContextProvider=function(e){return b(e)===a},ys.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ys.isForwardRef=function(e){return b(e)===u},ys.isFragment=function(e){return b(e)===r},ys.isLazy=function(e){return b(e)===m},ys.isMemo=function(e){return b(e)===p},ys.isPortal=function(e){return b(e)===n},ys.isProfiler=function(e){return b(e)===i},ys.isStrictMode=function(e){return b(e)===o},ys.isSuspense=function(e){return b(e)===f},ys.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y)},ys.typeOf=b}()),ys);var hs=ds.exports,gs={};gs[hs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gs[hs.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var vs="undefined"!=typeof document;function bs(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ws=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===vs&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},xs=function(e,t,n){ws(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);vs||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!vs&&0!==o.length)return o}};var Es={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ss=/[A-Z]|^ms/g,Os=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ks=function(e){return 45===e.charCodeAt(1)},Cs=function(e){return null!=e&&"boolean"!=typeof e},_s=Za(function(e){return ks(e)?e:e.replace(Ss,"-$&").toLowerCase()}),$s=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Os,function(e,t,n){return Ns={name:t,styles:n,next:Ns},t})}return 1===Es[e]||ks(e)||"number"!=typeof t||0===t?t:t+"px"};function Ps(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ns={name:o.name,styles:o.styles,next:Ns},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ns={name:a.name,styles:a.styles,next:Ns},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ps(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Cs(s)&&(r+=_s(i)+":"+$s(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=Ps(e,t,a);switch(i){case"animation":case"animationName":r+=_s(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var l=0;l<a.length;l++)Cs(a[l])&&(r+=_s(i)+":"+$s(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ns,c=n(e);return Ns=s,Ps(e,t,c)}}var l=n;if(null==t)return l;var u=t[l];return void 0!==u?u:l}var Ns,As=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ts(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ns=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ps(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Ps(n,t,e[a]),r)o+=i[a]}As.lastIndex=0;for(var s,c="";null!==(s=As.exec(o));)c+="-"+s[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:Ns}}var Rs="undefined"!=typeof document,Ms=function(e){return e()},js=!!e.useInsertionEffect&&e.useInsertionEffect,Is=Rs&&js||Ms,Ds=js||e.useLayoutEffect,zs="undefined"!=typeof document,Ls=e.createContext("undefined"!=typeof HTMLElement?fs({key:"css"}):null),Fs=Ls.Provider,Vs=function(e){return o(function(t,n){var r=i(Ls);return e(t,r,n)})};zs||(Vs=function(t){return function(n){var r=i(Ls);return null===r?(r=fs({key:"css"}),e.createElement(Ls.Provider,{value:r},t(n,r))):t(n,r)}});var Ws,Bs,Us=e.createContext({}),Hs={}.hasOwnProperty,Gs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ks=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;ws(n,r,o);var i=Is(function(){return xs(n,r,o)});if(!zs&&void 0!==i){for(var a,s=r.name,c=r.next;void 0!==c;)s+=" "+c.name,c=c.next;return e.createElement("style",((a={})["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=n.sheet.nonce,a))}return null},qs=Vs(function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[Gs],a=[o],s="";"string"==typeof t.className?s=bs(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var c=Ts(a,void 0,e.useContext(Us));s+=n.key+"-"+c.name;var l={};for(var u in t)Hs.call(t,u)&&"css"!==u&&u!==Gs&&(l[u]=t[u]);return l.className=s,r&&(l.ref=r),e.createElement(e.Fragment,null,e.createElement(Ks,{cache:n,serialized:c,isStringTag:"string"==typeof i}),e.createElement(i,l))}),Ys=qs,Xs=function(t,n){var r=arguments;if(null==n||!Hs.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ys,i[1]=function(e,t){var n={};for(var r in t)Hs.call(t,r)&&(n[r]=t[r]);return n[Gs]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)};Ws=Xs||(Xs={}),Bs||(Bs=Ws.JSX||(Ws.JSX={}));var Js=Vs(function(t,n){var r=Ts([t.styles],void 0,e.useContext(Us));if(!zs){for(var o,i=r.name,a=r.styles,s=r.next;void 0!==s;)i+=" "+s.name,a+=s.styles,s=s.next;var c=!0===n.compat,l=n.insert("",{name:i,styles:a},n.sheet,c);return c?null:e.createElement("style",((o={})["data-emotion"]=n.key+"-global "+i,o.dangerouslySetInnerHTML={__html:l},o.nonce=n.sheet.nonce,o))}var u=e.useRef();return Ds(function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),u.current=[t,o],function(){t.flush()}},[n]),Ds(function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&xs(n,r.next,!0),t.tags.length){var o=t.tags[t.tags.length-1].nextElementSibling;t.before=o,t.flush()}n.insert("",r,t,!1)}},[n,r.name]),null});function Zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ts(t)}var Qs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ec="undefined"!=typeof document,tc=Za(function(e){return Qs.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),nc=function(e){return"theme"!==e},rc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?tc:nc},oc=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ic=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;ws(n,r,o);var i=Is(function(){return xs(n,r,o)});if(!ec&&void 0!==i){for(var a,s=r.name,c=r.next;void 0!==c;)s+=" "+c.name,c=c.next;return e.createElement("style",((a={})["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=n.sheet.nonce,a))}return null},ac=function t(n,r){var o,i,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var c=oc(n,r,a),l=c||rc(s),u=!l("as");return function(){var f=arguments,d=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&d.push("label:"+o+";"),null==f[0]||void 0===f[0].raw)d.push.apply(d,f);else{var p=f[0];d.push(p[0]);for(var m=f.length,y=1;y<m;y++)d.push(f[y],p[y])}var h=Vs(function(t,n,r){var o=u&&t.as||s,a="",f=[],p=t;if(null==t.theme){for(var m in p={},t)p[m]=t[m];p.theme=e.useContext(Us)}"string"==typeof t.className?a=bs(n.registered,f,t.className):null!=t.className&&(a=t.className+" ");var y=Ts(d.concat(f),n.registered,p);a+=n.key+"-"+y.name,void 0!==i&&(a+=" "+i);var h=u&&void 0===c?rc(o):l,g={};for(var v in t)u&&"as"===v||h(v)&&(g[v]=t[v]);return g.className=a,r&&(g.ref=r),e.createElement(e.Fragment,null,e.createElement(ic,{cache:n,serialized:y,isStringTag:"string"==typeof o}),e.createElement(o,g))});return h.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=n.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=d,h.__emotion_forwardProp=c,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(e,n){return t(e,zo({},r,n,{shouldForwardProp:oc(h,n,!0)})).apply(void 0,d)},h}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){ac[e]=ac(e)});const sc=new Map;function cc(t){const{injectFirst:n,enableCssLayer:r,children:o}=t,i=e.useMemo(()=>{const e=`${n}-${r}`;if("object"==typeof document&&sc.has(e))return sc.get(e);const t=function(e,t){const n=fs({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(n,r);return sc.set(e,t),t},[n,r]);return n||r?u(Fs,{value:i,children:o}):o}function lc(e){const{styles:t,defaultTheme:n={}}=e;return u(Js,{styles:"function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t})}"production"!==process.env.NODE_ENV&&(cc.propTypes={children:pi.node,enableCssLayer:pi.bool,injectFirst:pi.bool}),"production"!==process.env.NODE_ENV&&(lc.propTypes={defaultTheme:pi.object,styles:pi.oneOfType([pi.array,pi.string,pi.object,pi.func])});const uc=[];var fc=Object.freeze({__proto__:null,GlobalStyles:lc,StyledEngineProvider:cc,ThemeContext:Us,css:Zs,default:
|
|
37
|
+
/**
|
|
38
|
+
* @mui/styled-engine v5.18.0
|
|
39
|
+
*
|
|
40
|
+
* @license MIT
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
function(e,t){const n=ac(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return uc[0]=e,Ts(uc)},keyframes:function(){var e=Zs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}),dc=y(fc),pc=y(Bo),mc=y($i),yc=y(Ci);const hc=["values","unit","step"];function gc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Yi(e,hc),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>zo({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function c(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function l(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return zo({keys:a,values:i,up:s,down:c,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?c(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const vc={borderRadius:4},bc="production"!==process.env.NODE_ENV?pi.oneOfType([pi.number,pi.string,pi.object,pi.array]):{};function wc(e,t){return t?Vo(e,t,{clone:!1}):e}const xc={xs:0,sm:600,md:900,lg:1200,xl:1536},Ec={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xc[e]}px)`};function Sc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ec;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Ec;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||xc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function Oc(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function kc(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Cc(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:kc(e,n)||r,t&&(o=t(o,r,e)),o}function _c(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=kc(e.theme,r)||{};return Sc(e,i,e=>{let r=Cc(a,o,e);return e===r&&"string"==typeof e&&(r=Cc(a,o,`${t}${"default"===e?"":_i(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:bc}:{},i.filterProps=[t],i}const $c={m:"margin",p:"padding"},Pc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ac=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Nc[e])return[e];e=Nc[e]}const[t,n]=e.split(""),r=$c[t],o=Pc[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Tc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Mc=[...Tc,...Rc];function jc(e,t,n,r){var o;const i=null!=(o=kc(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Ic(e){return jc(e,"spacing",8,"spacing")}function Dc(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function zc(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Dc(t,n),e),{})}(Ac(n),r);return Sc(e,e[n],o)}function Lc(e,t){const n=Ic(e.theme);return Object.keys(e).map(r=>zc(e,t,r,n)).reduce(wc,{})}function Fc(e){return Lc(e,Tc)}function Vc(e){return Lc(e,Rc)}function Wc(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?wc(n,t[r](e)):n,{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Bc(e){return"number"!=typeof e?e:`${e}px solid`}function Uc(e,t){return _c({prop:e,themeKey:"borders",transform:t})}Fc.propTypes="production"!==process.env.NODE_ENV?Tc.reduce((e,t)=>(e[t]=bc,e),{}):{},Fc.filterProps=Tc,Vc.propTypes="production"!==process.env.NODE_ENV?Rc.reduce((e,t)=>(e[t]=bc,e),{}):{},Vc.filterProps=Rc,"production"===process.env.NODE_ENV||Mc.reduce((e,t)=>(e[t]=bc,e),{});const Hc=Uc("border",Bc),Gc=Uc("borderTop",Bc),Kc=Uc("borderRight",Bc),qc=Uc("borderBottom",Bc),Yc=Uc("borderLeft",Bc),Xc=Uc("borderColor"),Jc=Uc("borderTopColor"),Zc=Uc("borderRightColor"),Qc=Uc("borderBottomColor"),el=Uc("borderLeftColor"),tl=Uc("outline",Bc),nl=Uc("outlineColor"),rl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jc(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Dc(t,e)});return Sc(e,e.borderRadius,n)}return null};rl.propTypes="production"!==process.env.NODE_ENV?{borderRadius:bc}:{},rl.filterProps=["borderRadius"],Wc(Hc,Gc,Kc,qc,Yc,Xc,Jc,Zc,Qc,el,rl,tl,nl);const ol=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jc(e.theme,"spacing",8,"gap"),n=e=>({gap:Dc(t,e)});return Sc(e,e.gap,n)}return null};ol.propTypes="production"!==process.env.NODE_ENV?{gap:bc}:{},ol.filterProps=["gap"];const il=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jc(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Dc(t,e)});return Sc(e,e.columnGap,n)}return null};il.propTypes="production"!==process.env.NODE_ENV?{columnGap:bc}:{},il.filterProps=["columnGap"];const al=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jc(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Dc(t,e)});return Sc(e,e.rowGap,n)}return null};al.propTypes="production"!==process.env.NODE_ENV?{rowGap:bc}:{},al.filterProps=["rowGap"];function sl(e,t){return"grey"===t?t:e}Wc(ol,il,al,_c({prop:"gridColumn"}),_c({prop:"gridRow"}),_c({prop:"gridAutoFlow"}),_c({prop:"gridAutoColumns"}),_c({prop:"gridAutoRows"}),_c({prop:"gridTemplateColumns"}),_c({prop:"gridTemplateRows"}),_c({prop:"gridTemplateAreas"}),_c({prop:"gridArea"}));function cl(e){return e<=1&&0!==e?100*e+"%":e}Wc(_c({prop:"color",themeKey:"palette",transform:sl}),_c({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sl}),_c({prop:"backgroundColor",themeKey:"palette",transform:sl}));const ll=_c({prop:"width",transform:cl}),ul=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||xc[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:cl(t)}};return Sc(e,e.maxWidth,t)}return null};ul.filterProps=["maxWidth"];const fl=_c({prop:"minWidth",transform:cl}),dl=_c({prop:"height",transform:cl}),pl=_c({prop:"maxHeight",transform:cl}),ml=_c({prop:"minHeight",transform:cl});_c({prop:"size",cssProperty:"width",transform:cl}),_c({prop:"size",cssProperty:"height",transform:cl});Wc(ll,ul,fl,dl,pl,ml,_c({prop:"boxSizing"}));const yl={border:{themeKey:"borders",transform:Bc},borderTop:{themeKey:"borders",transform:Bc},borderRight:{themeKey:"borders",transform:Bc},borderBottom:{themeKey:"borders",transform:Bc},borderLeft:{themeKey:"borders",transform:Bc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:rl},color:{themeKey:"palette",transform:sl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sl},backgroundColor:{themeKey:"palette",transform:sl},p:{style:Vc},pt:{style:Vc},pr:{style:Vc},pb:{style:Vc},pl:{style:Vc},px:{style:Vc},py:{style:Vc},padding:{style:Vc},paddingTop:{style:Vc},paddingRight:{style:Vc},paddingBottom:{style:Vc},paddingLeft:{style:Vc},paddingX:{style:Vc},paddingY:{style:Vc},paddingInline:{style:Vc},paddingInlineStart:{style:Vc},paddingInlineEnd:{style:Vc},paddingBlock:{style:Vc},paddingBlockStart:{style:Vc},paddingBlockEnd:{style:Vc},m:{style:Fc},mt:{style:Fc},mr:{style:Fc},mb:{style:Fc},ml:{style:Fc},mx:{style:Fc},my:{style:Fc},margin:{style:Fc},marginTop:{style:Fc},marginRight:{style:Fc},marginBottom:{style:Fc},marginLeft:{style:Fc},marginX:{style:Fc},marginY:{style:Fc},marginInline:{style:Fc},marginInlineStart:{style:Fc},marginInlineEnd:{style:Fc},marginBlock:{style:Fc},marginBlockStart:{style:Fc},marginBlockEnd:{style:Fc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ol},rowGap:{style:al},columnGap:{style:il},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cl},maxWidth:{style:ul},minWidth:{transform:cl},height:{transform:cl},maxHeight:{transform:cl},minHeight:{transform:cl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hl(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:c,style:l}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=kc(n,s)||{};if(l)return l(o);return Sc(o,t,t=>{let n=Cc(u,c,t);return t===n&&"string"==typeof t&&(n=Cc(u,c,`${e}${"default"===t?"":_i(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:yl;function c(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),c=Object.keys(o);let l=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],c=i,"function"==typeof a?a(c):a);var a,c;if(null!=o)if("object"==typeof o)if(s[n])l=wc(l,e(n,o,i,s));else{const e=Sc({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?l=wc(l,e):l[n]=t({sx:o,theme:i,nested:!0})}else l=wc(l,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Oc(c,l)}:Oc(c,l)}return Array.isArray(o)?o.map(c):c(o)}}const gl=hl();function vl(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}gl.filterProps=["sx"];const bl=["breakpoints","palette","spacing","shape"];function wl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Yi(e,bl),s=gc(n),c=function(e=8){if(e.mui)return e;const t=Ic({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" "));return n.mui=!0,n}(o);let l=Vo({breakpoints:s,direction:"ltr",components:{},palette:zo({mode:"light"},r),spacing:c,shape:zo({},vc,i)},a);return l.applyStyles=vl,l=t.reduce((e,t)=>Vo(e,t),l),l.unstable_sxConfig=zo({},yl,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return gl({sx:e,theme:this})},l}var xl=y(Object.freeze({__proto__:null,default:wl,private_createBreakpoints:gc,unstable_applyStyles:vl}));const El=["sx"];var Sl=y(Object.freeze({__proto__:null,default:gl,extendSxProp:function(e){const{sx:t}=e,n=Yi(e,El),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:yl;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Lo(n)?zo({},r,n):r}:zo({},r,t),zo({},o,{sx:i})},unstable_createStyleFunctionSx:hl,unstable_defaultSxConfig:yl})),Ol=Io;Object.defineProperty(Qi,"__esModule",{value:!0});var kl=Qi.default=function(e={}){const{themeId:t,defaultTheme:n=Fl,rootShouldForwardProp:r=zl,slotShouldForwardProp:o=zl}=e,i=e=>(0,Rl.default)((0,Cl.default)({},e,{theme:Wl((0,Cl.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,$l.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:l,skipSx:u,overridesResolver:f=Bl(Vl(c))}=a,d=(0,_l.default)(a,Il),p=s&&s.startsWith("Mui")||c?"components":"custom",m=void 0!==l?l:c&&"Root"!==c&&"root"!==c||!1,y=u||!1;let h;"production"!==process.env.NODE_ENV&&s&&(h=`${s}-${Vl(c||"Root")}`);let g=zl;"Root"===c||"root"===c?g=r:c?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,$l.default)(e,(0,Cl.default)({shouldForwardProp:g,label:h},d)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Pl.isPlainObject)(e)?r=>{const o=Wl({theme:r.theme,defaultTheme:n,themeId:t});return Ul(e,(0,Cl.default)({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&f&&l.push(e=>{const r=Wl((0,Cl.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=Ul(n,(0,Cl.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&l.push(e=>{var r;const o=Wl((0,Cl.default)({},e,{defaultTheme:n,themeId:t}));return Ul({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Cl.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),y||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=v(a,...l);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,Nl.default)(c||"")}`),void 0===t&&(t=`Styled(${(0,Al.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(w.withConfig=v.withConfig),w}};Qi.shouldForwardProp=zl,Qi.systemDefaultTheme=void 0;var Cl=Ol((Zi||(Zi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ea)),ea.exports)),_l=Ol((ta||(ta=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(na)),na.exports)),$l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Dl(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(dc),Pl=pc,Nl=Ol(mc),Al=Ol(yc),Tl=Ol(xl),Rl=Ol(Sl);const Ml=["ownerState"],jl=["variants"],Il=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Dl=function(e){return e?n:t})(e)}function zl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Ll(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Fl=Qi.systemDefaultTheme=(0,Tl.default)(),Vl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Wl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Bl(e){return e?(t,n)=>n[e]:null}function Ul(e,t,n){let{ownerState:r}=t,o=(0,_l.default)(t,Ml);const i="function"==typeof e?e((0,Cl.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>Ul(e,(0,Cl.default)({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,_l.default)(i,jl);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Cl.default)({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Cl.default)({ownerState:r},o,r)):e.style;t.push(n?Ll((0,$l.internal_serializeStyles)(i),n):i)}}),t}return n?Ll((0,$l.internal_serializeStyles)(i),n):i}var Hl={},Gl=y(hi),Kl=y(qi),ql=Io;Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.alpha=su,Hl.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=nu(e),a=nu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ou({type:"rgb",values:s})},Hl.colorChannel=void 0;var Yl=Hl.darken=cu;Hl.decomposeColor=nu,Hl.emphasize=uu;var Xl=Hl.getContrastRatio=function(e,t){const n=au(e),r=au(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Hl.getLuminance=au,Hl.hexToRgb=tu,Hl.hslToRgb=iu;var Jl=Hl.lighten=lu;Hl.private_safeAlpha=function(e,t,n){try{return su(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Hl.private_safeColorChannel=void 0,Hl.private_safeDarken=function(e,t,n){try{return cu(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Hl.private_safeEmphasize=function(e,t,n){try{return uu(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Hl.private_safeLighten=function(e,t,n){try{return lu(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Hl.recomposeColor=ou,Hl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=nu(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var Zl=ql(Gl),Ql=ql(Kl);function eu(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Ql.default)(e,t,n)}function tu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function nu(e){if(e.type)return e;if("#"===e.charAt(0))return nu(tu(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Zl.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Zl.default)(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const ru=e=>{const t=nu(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Hl.colorChannel=ru;function ou(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function iu(e){e=nu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),ou({type:s,values:c})}function au(e){let t="hsl"===(e=nu(e)).type||"hsla"===e.type?nu(iu(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function su(e,t){return e=nu(e),t=eu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ou(e)}function cu(e,t){if(e=nu(e),t=eu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ou(e)}function lu(e,t){if(e=nu(e),t=eu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ou(e)}function uu(e,t=.15){return au(e)>.5?cu(e,t):lu(e,t)}Hl.private_safeColorChannel=(e,t)=>{try{return ru(e)}catch(n){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const fu={black:"#000",white:"#fff"},du={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},pu="#f3e5f5",mu="#ce93d8",yu="#ba68c8",hu="#ab47bc",gu="#9c27b0",vu="#7b1fa2",bu="#e57373",wu="#ef5350",xu="#f44336",Eu="#d32f2f",Su="#c62828",Ou="#ffb74d",ku="#ffa726",Cu="#ff9800",_u="#f57c00",$u="#e65100",Pu="#e3f2fd",Nu="#90caf9",Au="#42a5f5",Tu="#1976d2",Ru="#1565c0",Mu="#4fc3f7",ju="#29b6f6",Iu="#03a9f4",Du="#0288d1",zu="#01579b",Lu="#81c784",Fu="#66bb6a",Vu="#4caf50",Wu="#388e3c",Bu="#2e7d32",Uu="#1b5e20",Hu=["mode","contrastThreshold","tonalOffset"],Gu={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fu.white,default:fu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ku={text:{primary:fu.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function qu(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Jl(e.main,o):"dark"===t&&(e.dark=Yl(e.main,i)))}function Yu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Yi(e,Hu),i=e.primary||function(e="light"){return"dark"===e?{main:Nu,light:Pu,dark:Au}:{main:Tu,light:Au,dark:Ru}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mu,light:pu,dark:hu}:{main:gu,light:yu,dark:vu}}(t),s=e.error||function(e="light"){return"dark"===e?{main:xu,light:bu,dark:Eu}:{main:Eu,light:wu,dark:Su}}(t),c=e.info||function(e="light"){return"dark"===e?{main:ju,light:Mu,dark:Du}:{main:Du,light:Iu,dark:zu}}(t),l=e.success||function(e="light"){return"dark"===e?{main:Fu,light:Lu,dark:Wu}:{main:Bu,light:Vu,dark:Uu}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:ku,light:Ou,dark:_u}:{main:"#ed6c02",light:Cu,dark:$u}}(t);function f(e){const t=Xl(e,Ku.text.primary)>=n?Ku.text.primary:Gu.text.primary;if("production"!==process.env.NODE_ENV){const n=Xl(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=zo({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:mi(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:mi(12,t?` (${t})`:"",JSON.stringify(e.main)));return qu(e,"light",o,r),qu(e,"dark",i,r),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Ku,light:Gu};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return Vo(zo({common:zo({},fu),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:du,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},p[t]),o)}const Xu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ju={textTransform:"uppercase"},Zu='"Roboto", "Helvetica", "Arial", sans-serif';function Qu(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:f}=n,d=Yi(n,Xu);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/l*p+"rem"),y=(e,t,n,o,i)=>{return zo({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Zu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},h={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,Ju),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,Ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vo(zo({htmlFontSize:l,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},h),d,{clone:!1})}function ef(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const tf=["none",ef(0,2,1,-1,0,1,1,0,0,1,3,0),ef(0,3,1,-2,0,2,2,0,0,1,5,0),ef(0,3,3,-2,0,3,4,0,0,1,8,0),ef(0,2,4,-1,0,4,5,0,0,1,10,0),ef(0,3,5,-1,0,5,8,0,0,1,14,0),ef(0,3,5,-1,0,6,10,0,0,1,18,0),ef(0,4,5,-2,0,7,10,1,0,2,16,1),ef(0,5,5,-3,0,8,10,1,0,3,14,2),ef(0,5,6,-3,0,9,12,1,0,3,16,2),ef(0,6,6,-3,0,10,14,1,0,4,18,3),ef(0,6,7,-4,0,11,15,1,0,4,20,3),ef(0,7,8,-4,0,12,17,2,0,5,22,4),ef(0,7,8,-4,0,13,19,2,0,5,24,4),ef(0,7,9,-4,0,14,21,2,0,5,26,4),ef(0,8,9,-5,0,15,22,2,0,6,28,5),ef(0,8,10,-5,0,16,24,2,0,6,30,5),ef(0,8,11,-5,0,17,26,2,0,6,32,5),ef(0,9,11,-5,0,18,28,2,0,7,34,6),ef(0,9,12,-6,0,19,29,2,0,7,36,6),ef(0,10,13,-6,0,20,31,3,0,8,38,7),ef(0,10,13,-6,0,21,33,3,0,8,40,7),ef(0,10,14,-6,0,22,35,3,0,8,42,7),ef(0,11,14,-7,0,23,36,3,0,9,44,8),ef(0,11,15,-7,0,24,38,3,0,9,46,8)],nf=["duration","easing","delay"],rf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},of={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function af(e){return`${Math.round(e)}ms`}function sf(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function cf(e){const t=zo({},rf,e.easing),n=zo({},of,e.duration);return zo({getAutoHeightDuration:sf,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r,s=Yi(r,nf);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:af(o)} ${i} ${"string"==typeof a?a:af(a)}`).join(",")}},e,{easing:t,duration:n})}const lf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const ff=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Yi(e,uf);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":mi(18));const s=Yu(r),c=wl(e);let l=Vo(c,{mixins:(u=c.breakpoints,f=n,zo({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:tf.slice(),typography:Qu(s,i),transitions:cf(o),zIndex:zo({},lf)});var u,f;if(l=Vo(l,a),l=t.reduce((e,t)=>Vo(e,t),l),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(-1!==e.indexOf(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Ki("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(l.components).forEach(e=>{const n=l.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)})}return l.unstable_sxConfig=zo({},yl,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return gl({sx:e,theme:this})},l}();const df=kl({themeId:"$$material",defaultTheme:ff,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function pf(e){return Ki("MuiSvgIcon",e)}!function(e,t,n="Mui"){const r={};t.forEach(t=>{r[t]=Ki(e,t,n)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mf=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],yf=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}({root:["root","inherit"!==t&&`color${_i(t)}`,`fontSize${_i(n)}`]},pf,r)},hf=df("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${_i(n.color)}`],t[`fontSize${_i(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),gf=e.forwardRef(function(t,n){const r=Ji({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=r,y=Yi(r,mf),h=e.isValidElement(o)&&"svg"===o.type,g=zo({},r,{color:a,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:h}),v={};d||(v.viewBox=m);const b=yf(g);return f(hf,zo({as:s,className:Mr(b.root,i),focusable:"false",color:l,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:n},v,y,h&&o.props,{ownerState:g,children:[h?o.props.children:o,p?u("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(gf.propTypes={children:pi.node,classes:pi.object,className:pi.string,color:pi.oneOfType([pi.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),pi.string]),component:pi.elementType,fontSize:pi.oneOfType([pi.oneOf(["inherit","large","medium","small"]),pi.string]),htmlColor:pi.string,inheritViewBox:pi.bool,shapeRendering:pi.string,sx:pi.oneOfType([pi.arrayOf(pi.oneOfType([pi.func,pi.object,pi.bool])),pi.func,pi.object]),titleAccess:pi.string,viewBox:pi.string}),gf.muiName="SvgIcon";const vf={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Hi.configure(e)}};var bf,wf=Object.freeze({__proto__:null,capitalize:_i,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})},createSvgIcon:function(t,n){function r(e,r){return u(gf,zo({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(r.displayName=`${n}Icon`),r.muiName=gf.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,n,r,o,i)=>{const a=r||"<<anonymous>>",s=i||n;return void 0!==e[n]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,n){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:Pi,ownerWindow:function(e){return Pi(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const n=t?zo({},t.propTypes):null;return t=>(r,o,i,a,s,...c)=>{const l=s||o,u=null==n?void 0:n[l];if(u){const e=u(r,o,i,a,s,...c);if(e)return e}return void 0===r[o]||r[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:Ni,unstable_ClassNameGenerator:vf,unstable_useEnhancedEffect:Ai,unstable_useId:function(t){if(void 0!==Ri){const e=Ri();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect(()=>{null==n&&(Ti+=1,r(`mui-${Ti}`))},[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,r,t]);const{current:a}=e.useRef(n);e.useEffect(()=>{i||Object.is(a,n)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))},[JSON.stringify(n)])}return[c,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const n=e.useRef(t);return Ai(()=>{n.current=t}),e.useRef((...e)=>(0,n.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{Ni(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Li,!0),t.addEventListener("mousedown",Fi,!0),t.addEventListener("pointerdown",Fi,!0),t.addEventListener("touchstart",Fi,!0),t.addEventListener("visibilitychange",Vi,!0))},[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Wi(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Ii=!0,Di.start(100,()=>{Ii=!1}),n.current=!1,!0)},ref:t}}}),xf=y(wf);function Ef(){return bf||(bf=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xf}(Do)),Do}var Sf=Io;Object.defineProperty(Mo,"__esModule",{value:!0});var Of=Mo.default=void 0,kf=Sf(Ef()),Cf=l;Of=Mo.default=(0,kf.default)((0,Cf.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var _f={},$f=Io;Object.defineProperty(_f,"__esModule",{value:!0});var Pf=_f.default=void 0,Nf=$f(Ef()),Af=l;Pf=_f.default=(0,Nf.default)((0,Af.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");const Tf=({id:e,className:n,value:o,options:i,onChange:l,variant:u="primary",disabled:f})=>{const d=a(()=>i.filter(e=>!e.hidden),[i]),p=a(()=>i.find(e=>e.value===o),[i,o]),[m,y]=r(!1),h=s(null);c(()=>{if(!m)return;const e=e=>{const t=e.target;if(!t)return;if(h.current&&h.current.contains(t))return;t instanceof Element&&t.closest(".gyramais-segmented-picker-menu, .gyramais-popover-content")||y(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[m]);return p?t.createElement(Ro,{visible:m,side:"bottom",align:"end",className:"gyramais-segmented-picker-dropdown",content:t.createElement("div",{className:"gyramais-segmented-picker-menu",role:"menu"},d.map(e=>t.createElement("button",{key:e.value,type:"button",role:"menuitemradio","aria-checked":e.value===p.value,className:v("gyramais-segmented-picker-menu-item",e.className,e.value===p.value?"is-on":""),onClick:t=>{t.stopPropagation(),(e=>{l?.(e),y(!1)})(e.value)}},e.icon&&t.createElement("span",{className:v("gyramais-segmented-picker-menu-icon",e.className)},e.icon),t.createElement("span",{className:"gyramais-segmented-picker-menu-body"},t.createElement("span",{className:"gyramais-segmented-picker-menu-title"},e.title),e.description&&t.createElement("span",{className:"gyramais-segmented-picker-menu-desc"},e.description)),e.value===p.value&&t.createElement(Of,{className:"gyramais-segmented-picker-menu-check",style:{fontSize:18}}))))},t.createElement("button",{id:e,ref:h,type:"button",disabled:f,className:v("gyramais-segmented-picker",`gyramais-segmented-picker-${u}`,p.className,n),"aria-expanded":m,onClick:()=>!f&&y(e=>!e)},p.icon&&t.createElement("span",{className:"gyramais-segmented-picker-icon"},p.icon),t.createElement("span",{className:"gyramais-segmented-picker-label"},p.title),t.createElement(Pf,{className:"gyramais-segmented-picker-chev",style:{fontSize:18}}))):null};export{Tf as SegmentedPicker};
|
|
45
|
+
//# sourceMappingURL=index.js.map
|