@codeplex-sac/tema 0.0.15 → 0.0.16
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/index.cjs +33 -1
- package/index.d.ts +1 -0
- package/index.js +3062 -83
- package/lib/alternador-tema/alternador-tema.d.ts +15 -0
- package/lib/alternador-tema/index.d.ts +1 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1 +1,33 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react/jsx-runtime"),oe=require("react"),ne=require("@mui/material"),br=require("react-dom"),gt=require("@mui/system");function vr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ht=vr(oe),Ve=oe.createContext(void 0),xt="codeplex-theme",er=({children:e,temaPorDefecto:t="light"})=>{const[r,n]=oe.useState(()=>{if(typeof window<"u"){const c=localStorage.getItem(xt);if(c==="light"||c==="dark")return c;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return t}),o=oe.useCallback(c=>{const f=document.documentElement;f.classList.remove("light","dark"),f.classList.add(c),localStorage.setItem(xt,c)},[]);oe.useEffect(()=>{o(r)},[r,o]);const a=oe.useCallback(c=>{n(c)},[]),s=oe.useCallback(()=>{n(c=>c==="light"?"dark":"light")},[]);return Q.jsx(Ve.Provider,{value:{tema:r,alternarTema:s,establecerTema:a},children:e})},Sr=({defaultTheme:e,...t})=>Q.jsx(er,{temaPorDefecto:e,...t}),Er=Ve,We=()=>{const e=oe.useContext(Ve);if(!e)throw new Error("usarTema debe ser usado dentro de un CodeplexProveedorTema");return e},Cr=We,Tr=({children:e,sobrescrituraTema:t})=>{const{tema:r}=We(),n=oe.useMemo(()=>{const o=r==="dark",a={palette:{mode:r,primary:{main:"#3b82f6"},background:{default:o?"#1b2431":"#f9fafb",paper:o?"#273142":"#ffffff"},text:{primary:o?"#ffffff":"#111827",secondary:o?"rgba(255,255,255,0.7)":"#4b5563"}},typography:{fontFamily:'"Poppins", "Inter", "system-ui", "-apple-system", sans-serif',h1:{fontWeight:600},h2:{fontWeight:600},h3:{fontWeight:600},h4:{fontWeight:600},h5:{fontWeight:600},h6:{fontWeight:600},button:{fontWeight:500,textTransform:"none"}},shape:{borderRadius:8},components:{MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:600}}}}};return t?ne.createTheme(a,t):ne.createTheme(a)},[r,t]);return oe.useEffect(()=>{const o=document.documentElement,a=n.palette;o.style.setProperty("--cp-primary-main",a.primary.main),o.style.setProperty("--cp-bg-default",a.background.default),o.style.setProperty("--cp-bg-paper",a.background.paper),o.style.setProperty("--cp-text-primary",a.text.primary),o.style.setProperty("--cp-text-secondary",a.text.secondary),o.style.setProperty("--cp-divider",a.divider)},[n]),oe.useEffect(()=>{const o="codeplex-google-resources";if(!document.getElementById(o)){const a=document.createElement("link");a.id=o,a.rel="stylesheet",a.href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200",document.head.appendChild(a)}},[]),Q.jsxs(ne.ThemeProvider,{theme:n,children:[Q.jsx(ne.CssBaseline,{}),e]})};function ye(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const xr="$$material",wr=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function $r(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=wr(t),s=Object.keys(a);function c(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function f(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function d(m,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-n/100}${r})`}function g(m){return s.indexOf(m)+1<s.length?d(m,s[s.indexOf(m)+1]):c(m)}function p(m){const v=s.indexOf(m);return v===0?c(s[1]):v===s.length-1?f(s[v]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:c,down:f,between:d,only:g,not:p,unit:r,...o}}function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Be={exports:{}},G={};var wt;function _r(){if(wt)return G;wt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function b(l){if(typeof l=="object"&&l!==null){var E=l.$$typeof;switch(E){case e:switch(l=l.type,l){case r:case o:case n:case f:case d:case m:return l;default:switch(l=l&&l.$$typeof,l){case s:case c:case p:case g:return l;case a:return l;default:return E}}case t:return E}}}return G.ContextConsumer=a,G.ContextProvider=s,G.Element=e,G.ForwardRef=c,G.Fragment=r,G.Lazy=p,G.Memo=g,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=f,G.SuspenseList=d,G.isContextConsumer=function(l){return b(l)===a},G.isContextProvider=function(l){return b(l)===s},G.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},G.isForwardRef=function(l){return b(l)===c},G.isFragment=function(l){return b(l)===r},G.isLazy=function(l){return b(l)===p},G.isMemo=function(l){return b(l)===g},G.isPortal=function(l){return b(l)===t},G.isProfiler=function(l){return b(l)===o},G.isStrictMode=function(l){return b(l)===n},G.isSuspense=function(l){return b(l)===f},G.isSuspenseList=function(l){return b(l)===d},G.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===f||l===d||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===g||l.$$typeof===s||l.$$typeof===a||l.$$typeof===c||l.$$typeof===v||l.getModuleId!==void 0)},G.typeOf=b,G}var Y={};var $t;function Ar(){return $t||($t=1,process.env.NODE_ENV!=="production"&&(function(){function e(l){if(typeof l=="object"&&l!==null){var E=l.$$typeof;switch(E){case t:switch(l=l.type,l){case n:case a:case o:case d:case g:case v:return l;default:switch(l=l&&l.$$typeof,l){case c:case f:case m:case p:return l;case s:return l;default:return E}}case r:return E}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Y.ContextConsumer=s,Y.ContextProvider=c,Y.Element=t,Y.ForwardRef=f,Y.Fragment=n,Y.Lazy=m,Y.Memo=p,Y.Portal=r,Y.Profiler=a,Y.StrictMode=o,Y.Suspense=d,Y.SuspenseList=g,Y.isContextConsumer=function(l){return e(l)===s},Y.isContextProvider=function(l){return e(l)===c},Y.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},Y.isForwardRef=function(l){return e(l)===f},Y.isFragment=function(l){return e(l)===n},Y.isLazy=function(l){return e(l)===m},Y.isMemo=function(l){return e(l)===p},Y.isPortal=function(l){return e(l)===r},Y.isProfiler=function(l){return e(l)===a},Y.isStrictMode=function(l){return e(l)===o},Y.isSuspense=function(l){return e(l)===d},Y.isSuspenseList=function(l){return e(l)===g},Y.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===a||l===o||l===d||l===g||typeof l=="object"&&l!==null&&(l.$$typeof===m||l.$$typeof===p||l.$$typeof===c||l.$$typeof===s||l.$$typeof===f||l.$$typeof===b||l.getModuleId!==void 0)},Y.typeOf=e})()),Y}var Ot;function Pr(){return Ot||(Ot=1,process.env.NODE_ENV==="production"?Be.exports=_r():Be.exports=Ar()),Be.exports}var tr=Pr();function he(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rr(e){if(ht.isValidElement(e)||tr.isValidElementType(e)||!he(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=rr(e[r])}),t}function ae(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return he(e)&&he(t)&&Object.keys(t).forEach(o=>{ht.isValidElement(t[o])||tr.isValidElementType(t[o])?n[o]=t[o]:he(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&he(e[o])?n[o]=ae(e[o],t[o],r):r.clone?n[o]=he(t[o])?rr(t[o]):t[o]:n[o]=t[o]}),n}function kr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function yt(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),kr(e,t,r)}function Rr(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function be(e){if(e.type)return e;if(e.charAt(0)==="#")return be(Rr(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
2
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ye(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
3
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ye(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Ir=e=>{const t=be(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Ae=(e,t)=>{try{return Ir(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ze(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nr(e){e=be(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(d,g=(d+r/30)%12)=>o-a*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const f=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",f.push(t[3])),ze({type:c,values:f})}function dt(e){e=be(e);let t=e.type==="hsl"||e.type==="hsla"?be(nr(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _t(e,t){const r=dt(e),n=dt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function or(e,t){return e=be(e),t=yt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ze(e)}function Se(e,t,r){try{return or(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ue(e,t){if(e=be(e),t=yt(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ze(e)}function z(e,t,r){try{return Ue(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ge(e,t){if(e=be(e),t=yt(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ze(e)}function U(e,t,r){try{return Ge(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Mr(e,t=.15){return dt(e)>.5?Ue(e,t):Ge(e,t)}function Fe(e,t,r){try{return Mr(e,t)}catch{return e}}const Re={black:"#000",white:"#fff"},Dr={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"},Ee={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ce={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Oe={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Te={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},we={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ir(){return{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:Re.white,default:Re.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}}}const ar=ir();function sr(){return{text:{primary:Re.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:Re.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}}}const pt=sr();function At(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ge(e.main,o):t==="dark"&&(e.dark=Ue(e.main,a)))}function Pt(e,t,r,n,o){const a=o.light||o,s=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function Br(e="light"){return e==="dark"?{main:Te[200],light:Te[50],dark:Te[400]}:{main:Te[700],light:Te[400],dark:Te[800]}}function Fr(e="light"){return e==="dark"?{main:Ee[200],light:Ee[50],dark:Ee[400]}:{main:Ee[500],light:Ee[300],dark:Ee[700]}}function Nr(e="light"){return e==="dark"?{main:Ce[500],light:Ce[300],dark:Ce[700]}:{main:Ce[700],light:Ce[400],dark:Ce[800]}}function jr(e="light"){return e==="dark"?{main:xe[400],light:xe[300],dark:xe[700]}:{main:xe[700],light:xe[500],dark:xe[900]}}function Lr(e="light"){return e==="dark"?{main:we[400],light:we[300],dark:we[700]}:{main:we[800],light:we[500],dark:we[900]}}function Vr(e="light"){return e==="dark"?{main:Oe[400],light:Oe[300],dark:Oe[700]}:{main:"#ed6c02",light:Oe[500],dark:Oe[900]}}function Wr(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function bt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...a}=e,s=e.primary||Br(t),c=e.secondary||Fr(t),f=e.error||Nr(t),d=e.info||jr(t),g=e.success||Lr(t),p=e.warning||Vr(t);function m(E){if(o)return Wr(E);const _=_t(E,pt.text.primary)>=r?pt.text.primary:ar.text.primary;if(process.env.NODE_ENV!=="production"){const B=_t(E,_);B<3&&console.error([`MUI: The contrast ratio of ${B}:1 for ${_} 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(`
|
|
4
|
+
`))}return _}const v=({color:E,name:_,mainShade:B=500,lightShade:F=300,darkShade:x=700})=>{if(E={...E},!E.main&&E[B]&&(E.main=E[B]),!E.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
5
|
+
The color object needs to have a \`main\` property or a \`${B}\` property.`:ye(11,_?` (${_})`:"",B));if(typeof E.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
6
|
+
\`color.main\` should be a string, but \`${JSON.stringify(E.main)}\` was provided instead.
|
|
7
|
+
|
|
8
|
+
Did you intend to use one of the following approaches?
|
|
9
|
+
|
|
10
|
+
import { green } from "@mui/material/colors";
|
|
11
|
+
|
|
12
|
+
const theme1 = createTheme({ palette: {
|
|
13
|
+
primary: green,
|
|
14
|
+
} });
|
|
15
|
+
|
|
16
|
+
const theme2 = createTheme({ palette: {
|
|
17
|
+
primary: { main: green[500] },
|
|
18
|
+
} });`:ye(12,_?` (${_})`:"",JSON.stringify(E.main)));return o?(Pt(o,E,"light",F,n),Pt(o,E,"dark",x,n)):(At(E,"light",F,n),At(E,"dark",x,n)),E.contrastText||(E.contrastText=m(E.main)),E};let b;return t==="light"?b=ir():t==="dark"&&(b=sr()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ae({common:{...Re},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:g,name:"success"}),grey:Dr,contrastThreshold:r,getContrastText:m,augmentColor:v,tonalOffset:n,...b},a)}var Ne={exports:{}},je={exports:{}},j={};var kt;function zr(){if(kt)return j;kt=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function F(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case f:case d:case n:case a:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case c:case g:case b:case v:case s:return y;default:return $}}case r:return $}}}function x(y){return F(y)===d}return j.AsyncMode=f,j.ConcurrentMode=d,j.ContextConsumer=c,j.ContextProvider=s,j.Element=t,j.ForwardRef=g,j.Fragment=n,j.Lazy=b,j.Memo=v,j.Portal=r,j.Profiler=a,j.StrictMode=o,j.Suspense=p,j.isAsyncMode=function(y){return x(y)||F(y)===f},j.isConcurrentMode=x,j.isContextConsumer=function(y){return F(y)===c},j.isContextProvider=function(y){return F(y)===s},j.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},j.isForwardRef=function(y){return F(y)===g},j.isFragment=function(y){return F(y)===n},j.isLazy=function(y){return F(y)===b},j.isMemo=function(y){return F(y)===v},j.isPortal=function(y){return F(y)===r},j.isProfiler=function(y){return F(y)===a},j.isStrictMode=function(y){return F(y)===o},j.isSuspense=function(y){return F(y)===p},j.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===a||y===o||y===p||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===v||y.$$typeof===s||y.$$typeof===c||y.$$typeof===g||y.$$typeof===E||y.$$typeof===_||y.$$typeof===B||y.$$typeof===l)},j.typeOf=F,j}var L={};var Rt;function Ur(){return Rt||(Rt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function F(C){return typeof C=="string"||typeof C=="function"||C===n||C===d||C===a||C===o||C===p||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===v||C.$$typeof===s||C.$$typeof===c||C.$$typeof===g||C.$$typeof===E||C.$$typeof===_||C.$$typeof===B||C.$$typeof===l)}function x(C){if(typeof C=="object"&&C!==null){var fe=C.$$typeof;switch(fe){case t:var De=C.type;switch(De){case f:case d:case n:case a:case o:case p:return De;default:var Tt=De&&De.$$typeof;switch(Tt){case c:case g:case b:case v:case s:return Tt;default:return fe}}case r:return fe}}}var y=f,$=d,le=c,pe=s,Z=t,ee=g,J=n,i=b,w=v,S=r,N=a,V=o,te=p,ue=!1;function nt(C){return ue||(ue=!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.")),h(C)||x(C)===f}function h(C){return x(C)===d}function T(C){return x(C)===c}function R(C){return x(C)===s}function P(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function O(C){return x(C)===g}function I(C){return x(C)===n}function A(C){return x(C)===b}function k(C){return x(C)===v}function M(C){return x(C)===r}function W(C){return x(C)===a}function D(C){return x(C)===o}function re(C){return x(C)===p}L.AsyncMode=y,L.ConcurrentMode=$,L.ContextConsumer=le,L.ContextProvider=pe,L.Element=Z,L.ForwardRef=ee,L.Fragment=J,L.Lazy=i,L.Memo=w,L.Portal=S,L.Profiler=N,L.StrictMode=V,L.Suspense=te,L.isAsyncMode=nt,L.isConcurrentMode=h,L.isContextConsumer=T,L.isContextProvider=R,L.isElement=P,L.isForwardRef=O,L.isFragment=I,L.isLazy=A,L.isMemo=k,L.isPortal=M,L.isProfiler=W,L.isStrictMode=D,L.isSuspense=re,L.isValidElementType=F,L.typeOf=x})()),L}var It;function cr(){return It||(It=1,process.env.NODE_ENV==="production"?je.exports=zr():je.exports=Ur()),je.exports}var ot,Mt;function Gr(){if(Mt)return ot;Mt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(s).map(function(g){return s[g]});if(f.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(g){d[g]=g}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ot=o()?Object.assign:function(a,s){for(var c,f=n(a),d,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){d=e(c);for(var m=0;m<d.length;m++)r.call(c,d[m])&&(f[d[m]]=c[d[m]])}}return f},ot}var it,Dt;function vt(){if(Dt)return it;Dt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return it=e,it}var at,Bt;function lr(){return Bt||(Bt=1,at=Function.call.bind(Object.prototype.hasOwnProperty)),at}var st,Ft;function Yr(){if(Ft)return st;Ft=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=vt(),r={},n=lr();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(a,s,c,f,d){if(process.env.NODE_ENV!=="production"){for(var g in a)if(n(a,g)){var p;try{if(typeof a[g]!="function"){var m=Error((f||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=a[g](s,g,f,c,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var v=d?d():"";e("Failed "+c+" type: "+p.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},st=o,st}var ct,Nt;function qr(){if(Nt)return ct;Nt=1;var e=cr(),t=Gr(),r=vt(),n=lr(),o=Yr(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return ct=function(c,f){var d=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(h){var T=h&&(d&&h[d]||h[g]);if(typeof T=="function")return T}var m="<<anonymous>>",v={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:B(),arrayOf:F,element:x(),elementType:y(),instanceOf:$,node:ee(),objectOf:pe,oneOf:le,oneOfType:Z,shape:i,exact:w};function b(h,T){return h===T?h!==0||1/h===1/T:h!==h&&T!==T}function l(h,T){this.message=h,this.data=T&&typeof T=="object"?T:{},this.stack=""}l.prototype=Error.prototype;function E(h){if(process.env.NODE_ENV!=="production")var T={},R=0;function P(I,A,k,M,W,D,re){if(M=M||m,D=D||k,re!==r){if(f){var C=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 C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=M+":"+k;!T[fe]&&R<3&&(a("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+M+"`. 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[fe]=!0,R++)}}return A[k]==null?I?A[k]===null?new l("The "+W+" `"+D+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new l("The "+W+" `"+D+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:h(A,k,M,W,D)}var O=P.bind(null,!1);return O.isRequired=P.bind(null,!0),O}function _(h){function T(R,P,O,I,A,k){var M=R[P],W=V(M);if(W!==h){var D=te(M);return new l("Invalid "+I+" `"+A+"` of type "+("`"+D+"` supplied to `"+O+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return E(T)}function B(){return E(s)}function F(h){function T(R,P,O,I,A){if(typeof h!="function")return new l("Property `"+A+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var k=R[P];if(!Array.isArray(k)){var M=V(k);return new l("Invalid "+I+" `"+A+"` of type "+("`"+M+"` supplied to `"+O+"`, expected an array."))}for(var W=0;W<k.length;W++){var D=h(k,W,O,I,A+"["+W+"]",r);if(D instanceof Error)return D}return null}return E(T)}function x(){function h(T,R,P,O,I){var A=T[R];if(!c(A)){var k=V(A);return new l("Invalid "+O+" `"+I+"` of type "+("`"+k+"` supplied to `"+P+"`, expected a single ReactElement."))}return null}return E(h)}function y(){function h(T,R,P,O,I){var A=T[R];if(!e.isValidElementType(A)){var k=V(A);return new l("Invalid "+O+" `"+I+"` of type "+("`"+k+"` supplied to `"+P+"`, expected a single ReactElement type."))}return null}return E(h)}function $(h){function T(R,P,O,I,A){if(!(R[P]instanceof h)){var k=h.name||m,M=nt(R[P]);return new l("Invalid "+I+" `"+A+"` of type "+("`"+M+"` supplied to `"+O+"`, expected ")+("instance of `"+k+"`."))}return null}return E(T)}function le(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function T(R,P,O,I,A){for(var k=R[P],M=0;M<h.length;M++)if(b(k,h[M]))return null;var W=JSON.stringify(h,function(re,C){var fe=te(C);return fe==="symbol"?String(C):C});return new l("Invalid "+I+" `"+A+"` of value `"+String(k)+"` "+("supplied to `"+O+"`, expected one of "+W+"."))}return E(T)}function pe(h){function T(R,P,O,I,A){if(typeof h!="function")return new l("Property `"+A+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var k=R[P],M=V(k);if(M!=="object")return new l("Invalid "+I+" `"+A+"` of type "+("`"+M+"` supplied to `"+O+"`, expected an object."));for(var W in k)if(n(k,W)){var D=h(k,W,O,I,A+"."+W,r);if(D instanceof Error)return D}return null}return E(T)}function Z(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var T=0;T<h.length;T++){var R=h[T];if(typeof R!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(R)+" at index "+T+"."),s}function P(O,I,A,k,M){for(var W=[],D=0;D<h.length;D++){var re=h[D],C=re(O,I,A,k,M,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&W.push(C.data.expectedType)}var fe=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new l("Invalid "+k+" `"+M+"` supplied to "+("`"+A+"`"+fe+"."))}return E(P)}function ee(){function h(T,R,P,O,I){return S(T[R])?null:new l("Invalid "+O+" `"+I+"` supplied to "+("`"+P+"`, expected a ReactNode."))}return E(h)}function J(h,T,R,P,O){return new l((h||"React class")+": "+T+" type `"+R+"."+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function i(h){function T(R,P,O,I,A){var k=R[P],M=V(k);if(M!=="object")return new l("Invalid "+I+" `"+A+"` of type `"+M+"` "+("supplied to `"+O+"`, expected `object`."));for(var W in h){var D=h[W];if(typeof D!="function")return J(O,I,A,W,te(D));var re=D(k,W,O,I,A+"."+W,r);if(re)return re}return null}return E(T)}function w(h){function T(R,P,O,I,A){var k=R[P],M=V(k);if(M!=="object")return new l("Invalid "+I+" `"+A+"` of type `"+M+"` "+("supplied to `"+O+"`, expected `object`."));var W=t({},R[P],h);for(var D in W){var re=h[D];if(n(h,D)&&typeof re!="function")return J(O,I,A,D,te(re));if(!re)return new l("Invalid "+I+" `"+A+"` key `"+D+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(R[P],null," ")+`
|
|
19
|
+
Valid keys: `+JSON.stringify(Object.keys(h),null," "));var C=re(k,D,O,I,A+"."+D,r);if(C)return C}return null}return E(T)}function S(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(S);if(h===null||c(h))return!0;var T=p(h);if(T){var R=T.call(h),P;if(T!==h.entries){for(;!(P=R.next()).done;)if(!S(P.value))return!1}else for(;!(P=R.next()).done;){var O=P.value;if(O&&!S(O[1]))return!1}}else return!1;return!0;default:return!1}}function N(h,T){return h==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function V(h){var T=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":N(T,h)?"symbol":T}function te(h){if(typeof h>"u"||h===null)return""+h;var T=V(h);if(T==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return T}function ue(h){var T=te(h);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function nt(h){return!h.constructor||!h.constructor.name?m:h.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},ct}var lt,jt;function Kr(){if(jt)return lt;jt=1;var e=vt();function t(){}function r(){}return r.resetWarningCache=t,lt=function(){function n(s,c,f,d,g,p){if(p!==e){var m=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 m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},lt}var Lt;function Hr(){if(Lt)return Ne.exports;if(Lt=1,process.env.NODE_ENV!=="production"){var e=cr(),t=!0;Ne.exports=qr()(e.isElement,t)}else Ne.exports=Kr()();return Ne.exports}var Xr=Hr();const _e=Or(Xr),ve=process.env.NODE_ENV!=="production"?_e.oneOfType([_e.number,_e.string,_e.object,_e.array]):{};function ke(e,t){return t?ae(e,t,{clone:!1}):e}function Vt(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function Qr(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Jr(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
20
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ye(18,`(${t})`));return null}const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function Zr(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function r(a,s){a.up=(...c)=>t(e.breakpoints.up(...c),s),a.down=(...c)=>t(e.breakpoints.down(...c),s),a.between=(...c)=>t(e.breakpoints.between(...c),s),a.only=(...c)=>t(e.breakpoints.only(...c),s),a.not=(...c)=>{const f=t(e.breakpoints.not(...c),s);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const Ye={xs:0,sm:600,md:900,lg:1200,xl:1536},Wt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ye[e]}px)`},en={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ye[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ge(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Wt;return t.reduce((s,c,f)=>(s[a.up(a.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const a=n.breakpoints||Wt;return Object.keys(t).reduce((s,c)=>{if(Qr(a.keys,c)){const f=Jr(n.containerQueries?n:en,c);f&&(s[f]=r(t[c],c))}else if(Object.keys(a.values||Ye).includes(c)){const f=a.up(c);s[f]=r(t[c],c)}else{const f=c;s[f]=t[f]}return s},{})}return r(t)}function tn(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function zt(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function ur(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ye(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qe(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Le(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=qe(e,r)||n,t&&(o=t(o,n,e)),o}function X(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=s=>{if(s[t]==null)return null;const c=s[t],f=s.theme,d=qe(f,n)||{};return ge(s,c,p=>{let m=Le(d,o,p);return p===m&&typeof p=="string"&&(m=Le(d,o,`${t}${p==="default"?"":ur(p)}`,p)),r===!1?m:{[r]:m}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:ve}:{},a.filterProps=[t],a}function rn(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const nn={m:"margin",p:"padding"},on={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ut={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},an=rn(e=>{if(e.length>2)if(Ut[e])e=Ut[e];else return[e];const[t,r]=e.split(""),n=nn[t],o=on[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Ke=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],He=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],sn=[...Ke,...He];function Ie(e,t,r,n){const o=qe(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a):Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
21
|
+
`)):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(`
|
|
22
|
+
`)));const c=o[s];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
23
|
+
`)),()=>{})}function St(e){return Ie(e,"spacing",8,"spacing")}function Me(e,t){return typeof t=="string"||t==null?t:e(t)}function cn(e,t){return r=>e.reduce((n,o)=>(n[o]=Me(t,r),n),{})}function ln(e,t,r,n){if(!t.includes(r))return null;const o=an(r),a=cn(o,n),s=e[r];return ge(e,s,a)}function fr(e,t){const r=St(e.theme);return Object.keys(e).map(n=>ln(e,t,n,r)).reduce(ke,{})}function K(e){return fr(e,Ke)}K.propTypes=process.env.NODE_ENV!=="production"?Ke.reduce((e,t)=>(e[t]=ve,e),{}):{};K.filterProps=Ke;function H(e){return fr(e,He)}H.propTypes=process.env.NODE_ENV!=="production"?He.reduce((e,t)=>(e[t]=ve,e),{}):{};H.filterProps=He;process.env.NODE_ENV!=="production"&&sn.reduce((e,t)=>(e[t]=ve,e),{});const un={borderRadius:4};function fn(e=8,t=St({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Xe(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?ke(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function se(e){return typeof e!="number"?e:`${e}px solid`}function ce(e,t){return X({prop:e,themeKey:"borders",transform:t})}const dn=ce("border",se),pn=ce("borderTop",se),mn=ce("borderRight",se),gn=ce("borderBottom",se),hn=ce("borderLeft",se),yn=ce("borderColor"),bn=ce("borderTopColor"),vn=ce("borderRightColor"),Sn=ce("borderBottomColor"),En=ce("borderLeftColor"),Cn=ce("outline",se),Tn=ce("outlineColor"),Qe=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ie(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Me(t,n)});return ge(e,e.borderRadius,r)}return null};Qe.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ve}:{};Qe.filterProps=["borderRadius"];Xe(dn,pn,mn,gn,hn,yn,bn,vn,Sn,En,Qe,Cn,Tn);const Je=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ie(e.theme,"spacing",8,"gap"),r=n=>({gap:Me(t,n)});return ge(e,e.gap,r)}return null};Je.propTypes=process.env.NODE_ENV!=="production"?{gap:ve}:{};Je.filterProps=["gap"];const Ze=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ie(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Me(t,n)});return ge(e,e.columnGap,r)}return null};Ze.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ve}:{};Ze.filterProps=["columnGap"];const et=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ie(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Me(t,n)});return ge(e,e.rowGap,r)}return null};et.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ve}:{};et.filterProps=["rowGap"];const xn=X({prop:"gridColumn"}),wn=X({prop:"gridRow"}),$n=X({prop:"gridAutoFlow"}),On=X({prop:"gridAutoColumns"}),_n=X({prop:"gridAutoRows"}),An=X({prop:"gridTemplateColumns"}),Pn=X({prop:"gridTemplateRows"}),kn=X({prop:"gridTemplateAreas"}),Rn=X({prop:"gridArea"});Xe(Je,Ze,et,xn,wn,$n,On,_n,An,Pn,kn,Rn);function $e(e,t){return t==="grey"?t:e}const In=X({prop:"color",themeKey:"palette",transform:$e}),Mn=X({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$e}),Dn=X({prop:"backgroundColor",themeKey:"palette",transform:$e});Xe(In,Mn,Dn);function ie(e){return e<=1&&e!==0?`${e*100}%`:e}const Bn=X({prop:"width",transform:ie}),Et=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Ye[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ie(r)}};return ge(e,e.maxWidth,t)}return null};Et.filterProps=["maxWidth"];const Fn=X({prop:"minWidth",transform:ie}),Nn=X({prop:"height",transform:ie}),jn=X({prop:"maxHeight",transform:ie}),Ln=X({prop:"minHeight",transform:ie});X({prop:"size",cssProperty:"width",transform:ie});X({prop:"size",cssProperty:"height",transform:ie});const Vn=X({prop:"boxSizing"});Xe(Bn,Et,Fn,Nn,jn,Ln,Vn);const tt={border:{themeKey:"borders",transform:se},borderTop:{themeKey:"borders",transform:se},borderRight:{themeKey:"borders",transform:se},borderBottom:{themeKey:"borders",transform:se},borderLeft:{themeKey:"borders",transform:se},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:se},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qe},color:{themeKey:"palette",transform:$e},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$e},backgroundColor:{themeKey:"palette",transform:$e},p:{style:H},pt:{style:H},pr:{style:H},pb:{style:H},pl:{style:H},px:{style:H},py:{style:H},padding:{style:H},paddingTop:{style:H},paddingRight:{style:H},paddingBottom:{style:H},paddingLeft:{style:H},paddingX:{style:H},paddingY:{style:H},paddingInline:{style:H},paddingInlineStart:{style:H},paddingInlineEnd:{style:H},paddingBlock:{style:H},paddingBlockStart:{style:H},paddingBlockEnd:{style:H},m:{style:K},mt:{style:K},mr:{style:K},mb:{style:K},ml:{style:K},mx:{style:K},my:{style:K},margin:{style:K},marginTop:{style:K},marginRight:{style:K},marginBottom:{style:K},marginLeft:{style:K},marginX:{style:K},marginY:{style:K},marginInline:{style:K},marginInlineStart:{style:K},marginInlineEnd:{style:K},marginBlock:{style:K},marginBlockStart:{style:K},marginBlockEnd:{style:K},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:Je},rowGap:{style:et},columnGap:{style:Ze},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ie},maxWidth:{style:Et},minWidth:{transform:ie},height:{transform:ie},maxHeight:{transform:ie},minHeight:{transform:ie},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Wn(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function zn(e,t){return typeof e=="function"?e(t):e}function Un(){function e(r,n,o,a){const s={[r]:n,theme:o},c=a[r];if(!c)return{[r]:n};const{cssProperty:f=r,themeKey:d,transform:g,style:p}=c;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const m=qe(o,d)||{};return p?p(s):ge(s,n,b=>{let l=Le(m,g,b);return b===l&&typeof b=="string"&&(l=Le(m,g,`${r}${b==="default"?"":ur(b)}`,b)),f===!1?l:{[f]:l}})}function t(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const s=o.unstable_sxConfig??tt;function c(f){let d=f;if(typeof f=="function")d=f(o);else if(typeof f!="object")return f;if(!d)return null;const g=tn(o.breakpoints),p=Object.keys(g);let m=g;return Object.keys(d).forEach(v=>{const b=zn(d[v],o);if(b!=null)if(typeof b=="object")if(s[v])m=ke(m,e(v,b,o,s));else{const l=ge({theme:o},b,E=>({[v]:E}));Wn(l,b)?m[v]=t({sx:b,theme:o,nested:!0}):m=ke(m,l)}else m=ke(m,e(v,b,o,s))}),!a&&o.modularCssLayers?{"@layer sx":Vt(o,zt(p,m))}:Vt(o,zt(p,m))}return Array.isArray(n)?n.map(c):c(n)}return t}const rt=Un();rt.filterProps=["sx"];function Gn(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Yn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...s}=e,c=$r(r),f=fn(o);let d=ae({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:f,shape:{...un,...a}},s);return d=Zr(d),d.applyStyles=Gn,d=t.reduce((g,p)=>ae(g,p),d),d.unstable_sxConfig={...tt,...s?.unstable_sxConfig},d.unstable_sx=function(p){return rt({sx:p,theme:this})},d}const Gt=(e,t,r,n=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},qn=(e,t,r)=>{function n(o,a=[],s=[]){Object.entries(o).forEach(([c,f])=>{(!r||r&&!r([...a,c]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?n(f,[...a,c],Array.isArray(f)?[...s,c]:s):t([...a,c],f,s))})}n(e)},Kn=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ut(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},s={};return qn(e,(c,f,d)=>{if((typeof f=="string"||typeof f=="number")&&(!n||!n(c,f))){const g=`--${r?`${r}-`:""}${c.join("-")}`,p=Kn(c,f);Object.assign(o,{[g]:p}),Gt(a,c,`var(${g})`,d),Gt(s,c,`var(${g}, ${p})`,d)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function Hn(e,t={}){const{getSelector:r=_,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:c,defaultColorScheme:f="light",...d}=e,{vars:g,css:p,varsWithDefaults:m}=ut(d,t);let v=m;const b={},{[f]:l,...E}=s;if(Object.entries(E||{}).forEach(([x,y])=>{const{vars:$,css:le,varsWithDefaults:pe}=ut(y,t);v=ae(v,pe),b[x]={css:le,vars:$}}),l){const{css:x,vars:y,varsWithDefaults:$}=ut(l,t);v=ae(v,$),b[f]={css:x,vars:y}}function _(x,y){let $=o;if(o==="class"&&($=".%s"),o==="data"&&($="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&($=`[${o}="%s"]`),x){if($==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${s[x]?.palette?.mode||x})`]:{":root":y}};if($)return e.defaultColorScheme===x?`:root, ${$.replace("%s",String(x))}`:$.replace("%s",String(x))}return":root"}return{vars:v,generateThemeVars:()=>{let x={...g};return Object.entries(b).forEach(([,{vars:y}])=>{x=ae(x,y)}),x},generateStyleSheets:()=>{const x=[],y=e.defaultColorScheme||"light";function $(Z,ee){Object.keys(ee).length&&x.push(typeof Z=="string"?{[Z]:{...ee}}:Z)}$(r(void 0,{...p}),p);const{[y]:le,...pe}=b;if(le){const{css:Z}=le,ee=s[y]?.palette?.mode,J=!n&&ee?{colorScheme:ee,...Z}:{...Z};$(r(y,{...J}),J)}return Object.entries(pe).forEach(([Z,{css:ee}])=>{const J=s[Z]?.palette?.mode,i=!n&&J?{colorScheme:J,...ee}:{...ee};$(r(Z,{...i}),i)}),a&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function Xn(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Qn(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Yt=e=>e,Jn=()=>{let e=Yt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yt}}},Zn=Jn(),eo={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 to(e,t,r="Mui"){const n=eo[t];return n?`${r}-${n}`:`${Zn.generate(e)}-${t}`}function ro(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function no(e){return Math.round(e*1e5)/1e5}const qt={textTransform:"uppercase"},Kt='"Roboto", "Helvetica", "Arial", sans-serif';function oo(e,t){const{fontFamily:r=Kt,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:d,pxToRem:g,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=n/14,v=g||(E=>`${E/f*m}rem`),b=(E,_,B,F,x)=>({fontFamily:r,fontWeight:E,fontSize:v(_),lineHeight:B,...r===Kt?{letterSpacing:`${no(F/_)}em`}:{},...x,...d}),l={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,qt),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,qt),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ae({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c,...l},p,{clone:!1})}const io=.2,ao=.14,so=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${io})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ao})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${so})`].join(",")}const co=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],lo={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)"},uo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ht(e){return`${Math.round(e)}ms`}function fo(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function po(e){const t={...lo,...e.easing},r={...uo,...e.duration};return{getAutoHeightDuration:fo,create:(o=["all"],a={})=>{const{duration:s=r.standard,easing:c=t.easeInOut,delay:f=0,...d}=a;if(process.env.NODE_ENV!=="production"){const g=m=>typeof m=="string",p=m=>!Number.isNaN(parseFloat(m));!g(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(s)&&!g(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),g(c)||console.error('MUI: Argument "easing" must be a string.'),!p(f)&&!g(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&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(`
|
|
24
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof s=="string"?s:Ht(s)} ${c} ${typeof f=="string"?f:Ht(f)}`).join(",")},...e,easing:t,duration:r}}const mo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function go(e){return he(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function dr(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[s,c]=o[a];!go(c)||s.startsWith("unstable_")?delete n[s]:he(c)&&(n[s]={...c},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
25
|
+
|
|
26
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
27
|
+
|
|
28
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
29
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
30
|
+
|
|
31
|
+
export default theme;`}function Xt(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const ho=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function yo(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:or(t,ho(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Xt(r)})`:Ge(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Xt(r)})`:Ue(t,r)}})}function mt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:s={},typography:c={},shape:f,colorSpace:d,...g}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ye(20));const p=bt({...a,colorSpace:d}),m=Yn(e);let v=ae(m,{mixins:ro(m.breakpoints,n),palette:p,shadows:co.slice(),typography:oo(p,c),transitions:po(s),zIndex:{...mo}});if(v=ae(v,g),v=t.reduce((b,l)=>ae(b,l),v),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],l=(E,_)=>{let B;for(B in E){const F=E[B];if(b.includes(B)&&Object.keys(F).length>0){if(process.env.NODE_ENV!=="production"){const x=to("",B);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${B}\` internal state.`,"You can not override it like this: ",JSON.stringify(E,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:F}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
32
|
+
`))}E[B]={}}}};Object.keys(v.components).forEach(E=>{const _=v.components[E].styleOverrides;_&&E.startsWith("Mui")&&l(_,E)})}return v.unstable_sxConfig={...tt,...g?.unstable_sxConfig},v.unstable_sx=function(l){return rt({sx:l,theme:this})},v.toRuntimeSource=dr,yo(v),v}function bo(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const vo=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=bo(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function pr(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mr(e){return e==="dark"?vo:[]}function So(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...a}=e,s=bt({...t,colorSpace:o});return{palette:s,opacity:{...pr(s.mode),...r},overlays:n||mr(s.mode),...a}}function Eo(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Co=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],To=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Co(e.cssVarPrefix).forEach(c=>{s[c]=r[c],delete r[c]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:a?{[a.replace("%s",t)]:s,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function xo(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function u(e,t,r){!e[t]&&r&&(e[t]=r)}function Pe(e){return typeof e!="string"||!e.startsWith("hsl")?e:nr(e)}function me(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ae(Pe(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
33
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function wo(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const de=e=>{try{return e()}catch{}},$o=(e="mui")=>gt.unstable_createGetCssVar(e);function ft(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const a=o==="dark"?"dark":"light";if(!n){t[o]=So({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:s,...c}=mt({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...pr(a),...r?.opacity},overlays:r?.overlays||mr(a)},c}function Oo(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:c=Eo,colorSchemeSelector:f=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...g}=e,p=Object.keys(r)[0],m=n||(r.light&&p!=="light"?"light":p),v=$o(a),{[m]:b,light:l,dark:E,..._}=r,B={..._};let F=b;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(F=!0),!F)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:ye(21,m));let x;s&&(x="oklch");const y=ft(x,B,F,g,m);l&&!B.light&&ft(x,B,l,void 0,"light"),E&&!B.dark&&ft(x,B,E,void 0,"dark");let $={defaultColorScheme:m,...y,cssVarPrefix:a,colorSchemeSelector:f,rootSelector:d,getCssVar:v,colorSchemes:B,font:{...Xn(y.typography),...y.font},spacing:wo(g.spacing)};Object.keys($.colorSchemes).forEach(J=>{const i=$.colorSchemes[J].palette,w=N=>{const V=N.split("-"),te=V[1],ue=V[2];return v(N,i[te][ue])};i.mode==="light"&&(u(i.common,"background","#fff"),u(i.common,"onBackground","#000")),i.mode==="dark"&&(u(i.common,"background","#000"),u(i.common,"onBackground","#fff"));function S(N,V,te){if(x){let ue;return N===Se&&(ue=`transparent ${((1-te)*100).toFixed(0)}%`),N===z&&(ue=`#000 ${(te*100).toFixed(0)}%`),N===U&&(ue=`#fff ${(te*100).toFixed(0)}%`),`color-mix(in ${x}, ${V}, ${ue})`}return N(V,te)}if(xo(i,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),i.mode==="light"){u(i.Alert,"errorColor",S(z,i.error.light,.6)),u(i.Alert,"infoColor",S(z,i.info.light,.6)),u(i.Alert,"successColor",S(z,i.success.light,.6)),u(i.Alert,"warningColor",S(z,i.warning.light,.6)),u(i.Alert,"errorFilledBg",w("palette-error-main")),u(i.Alert,"infoFilledBg",w("palette-info-main")),u(i.Alert,"successFilledBg",w("palette-success-main")),u(i.Alert,"warningFilledBg",w("palette-warning-main")),u(i.Alert,"errorFilledColor",de(()=>i.getContrastText(i.error.main))),u(i.Alert,"infoFilledColor",de(()=>i.getContrastText(i.info.main))),u(i.Alert,"successFilledColor",de(()=>i.getContrastText(i.success.main))),u(i.Alert,"warningFilledColor",de(()=>i.getContrastText(i.warning.main))),u(i.Alert,"errorStandardBg",S(U,i.error.light,.9)),u(i.Alert,"infoStandardBg",S(U,i.info.light,.9)),u(i.Alert,"successStandardBg",S(U,i.success.light,.9)),u(i.Alert,"warningStandardBg",S(U,i.warning.light,.9)),u(i.Alert,"errorIconColor",w("palette-error-main")),u(i.Alert,"infoIconColor",w("palette-info-main")),u(i.Alert,"successIconColor",w("palette-success-main")),u(i.Alert,"warningIconColor",w("palette-warning-main")),u(i.AppBar,"defaultBg",w("palette-grey-100")),u(i.Avatar,"defaultBg",w("palette-grey-400")),u(i.Button,"inheritContainedBg",w("palette-grey-300")),u(i.Button,"inheritContainedHoverBg",w("palette-grey-A100")),u(i.Chip,"defaultBorder",w("palette-grey-400")),u(i.Chip,"defaultAvatarColor",w("palette-grey-700")),u(i.Chip,"defaultIconColor",w("palette-grey-700")),u(i.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),u(i.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),u(i.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),u(i.LinearProgress,"primaryBg",S(U,i.primary.main,.62)),u(i.LinearProgress,"secondaryBg",S(U,i.secondary.main,.62)),u(i.LinearProgress,"errorBg",S(U,i.error.main,.62)),u(i.LinearProgress,"infoBg",S(U,i.info.main,.62)),u(i.LinearProgress,"successBg",S(U,i.success.main,.62)),u(i.LinearProgress,"warningBg",S(U,i.warning.main,.62)),u(i.Skeleton,"bg",x?S(Se,i.text.primary,.11):`rgba(${w("palette-text-primaryChannel")} / 0.11)`),u(i.Slider,"primaryTrack",S(U,i.primary.main,.62)),u(i.Slider,"secondaryTrack",S(U,i.secondary.main,.62)),u(i.Slider,"errorTrack",S(U,i.error.main,.62)),u(i.Slider,"infoTrack",S(U,i.info.main,.62)),u(i.Slider,"successTrack",S(U,i.success.main,.62)),u(i.Slider,"warningTrack",S(U,i.warning.main,.62));const N=x?S(z,i.background.default,.6825):Fe(i.background.default,.8);u(i.SnackbarContent,"bg",N),u(i.SnackbarContent,"color",de(()=>x?pt.text.primary:i.getContrastText(N))),u(i.SpeedDialAction,"fabHoverBg",Fe(i.background.paper,.15)),u(i.StepConnector,"border",w("palette-grey-400")),u(i.StepContent,"border",w("palette-grey-400")),u(i.Switch,"defaultColor",w("palette-common-white")),u(i.Switch,"defaultDisabledColor",w("palette-grey-100")),u(i.Switch,"primaryDisabledColor",S(U,i.primary.main,.62)),u(i.Switch,"secondaryDisabledColor",S(U,i.secondary.main,.62)),u(i.Switch,"errorDisabledColor",S(U,i.error.main,.62)),u(i.Switch,"infoDisabledColor",S(U,i.info.main,.62)),u(i.Switch,"successDisabledColor",S(U,i.success.main,.62)),u(i.Switch,"warningDisabledColor",S(U,i.warning.main,.62)),u(i.TableCell,"border",S(U,S(Se,i.divider,1),.88)),u(i.Tooltip,"bg",S(Se,i.grey[700],.92))}if(i.mode==="dark"){u(i.Alert,"errorColor",S(U,i.error.light,.6)),u(i.Alert,"infoColor",S(U,i.info.light,.6)),u(i.Alert,"successColor",S(U,i.success.light,.6)),u(i.Alert,"warningColor",S(U,i.warning.light,.6)),u(i.Alert,"errorFilledBg",w("palette-error-dark")),u(i.Alert,"infoFilledBg",w("palette-info-dark")),u(i.Alert,"successFilledBg",w("palette-success-dark")),u(i.Alert,"warningFilledBg",w("palette-warning-dark")),u(i.Alert,"errorFilledColor",de(()=>i.getContrastText(i.error.dark))),u(i.Alert,"infoFilledColor",de(()=>i.getContrastText(i.info.dark))),u(i.Alert,"successFilledColor",de(()=>i.getContrastText(i.success.dark))),u(i.Alert,"warningFilledColor",de(()=>i.getContrastText(i.warning.dark))),u(i.Alert,"errorStandardBg",S(z,i.error.light,.9)),u(i.Alert,"infoStandardBg",S(z,i.info.light,.9)),u(i.Alert,"successStandardBg",S(z,i.success.light,.9)),u(i.Alert,"warningStandardBg",S(z,i.warning.light,.9)),u(i.Alert,"errorIconColor",w("palette-error-main")),u(i.Alert,"infoIconColor",w("palette-info-main")),u(i.Alert,"successIconColor",w("palette-success-main")),u(i.Alert,"warningIconColor",w("palette-warning-main")),u(i.AppBar,"defaultBg",w("palette-grey-900")),u(i.AppBar,"darkBg",w("palette-background-paper")),u(i.AppBar,"darkColor",w("palette-text-primary")),u(i.Avatar,"defaultBg",w("palette-grey-600")),u(i.Button,"inheritContainedBg",w("palette-grey-800")),u(i.Button,"inheritContainedHoverBg",w("palette-grey-700")),u(i.Chip,"defaultBorder",w("palette-grey-700")),u(i.Chip,"defaultAvatarColor",w("palette-grey-300")),u(i.Chip,"defaultIconColor",w("palette-grey-300")),u(i.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),u(i.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),u(i.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),u(i.LinearProgress,"primaryBg",S(z,i.primary.main,.5)),u(i.LinearProgress,"secondaryBg",S(z,i.secondary.main,.5)),u(i.LinearProgress,"errorBg",S(z,i.error.main,.5)),u(i.LinearProgress,"infoBg",S(z,i.info.main,.5)),u(i.LinearProgress,"successBg",S(z,i.success.main,.5)),u(i.LinearProgress,"warningBg",S(z,i.warning.main,.5)),u(i.Skeleton,"bg",x?S(Se,i.text.primary,.13):`rgba(${w("palette-text-primaryChannel")} / 0.13)`),u(i.Slider,"primaryTrack",S(z,i.primary.main,.5)),u(i.Slider,"secondaryTrack",S(z,i.secondary.main,.5)),u(i.Slider,"errorTrack",S(z,i.error.main,.5)),u(i.Slider,"infoTrack",S(z,i.info.main,.5)),u(i.Slider,"successTrack",S(z,i.success.main,.5)),u(i.Slider,"warningTrack",S(z,i.warning.main,.5));const N=x?S(U,i.background.default,.985):Fe(i.background.default,.98);u(i.SnackbarContent,"bg",N),u(i.SnackbarContent,"color",de(()=>x?ar.text.primary:i.getContrastText(N))),u(i.SpeedDialAction,"fabHoverBg",Fe(i.background.paper,.15)),u(i.StepConnector,"border",w("palette-grey-600")),u(i.StepContent,"border",w("palette-grey-600")),u(i.Switch,"defaultColor",w("palette-grey-300")),u(i.Switch,"defaultDisabledColor",w("palette-grey-600")),u(i.Switch,"primaryDisabledColor",S(z,i.primary.main,.55)),u(i.Switch,"secondaryDisabledColor",S(z,i.secondary.main,.55)),u(i.Switch,"errorDisabledColor",S(z,i.error.main,.55)),u(i.Switch,"infoDisabledColor",S(z,i.info.main,.55)),u(i.Switch,"successDisabledColor",S(z,i.success.main,.55)),u(i.Switch,"warningDisabledColor",S(z,i.warning.main,.55)),u(i.TableCell,"border",S(z,S(Se,i.divider,1),.68)),u(i.Tooltip,"bg",S(Se,i.grey[700],.92))}me(i.background,"default"),me(i.background,"paper"),me(i.common,"background"),me(i.common,"onBackground"),me(i,"divider"),Object.keys(i).forEach(N=>{const V=i[N];N!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&u(i[N],"mainChannel",Ae(Pe(V.main))),V.light&&u(i[N],"lightChannel",Ae(Pe(V.light))),V.dark&&u(i[N],"darkChannel",Ae(Pe(V.dark))),V.contrastText&&u(i[N],"contrastTextChannel",Ae(Pe(V.contrastText))),N==="text"&&(me(i[N],"primary"),me(i[N],"secondary")),N==="action"&&(V.active&&me(i[N],"active"),V.selected&&me(i[N],"selected")))})}),$=t.reduce((J,i)=>ae(J,i),$);const le={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:To($),enableContrastVars:s},{vars:pe,generateThemeVars:Z,generateStyleSheets:ee}=Hn($,le);return $.vars=pe,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([J,i])=>{$[J]=i}),$.generateThemeVars=Z,$.generateStyleSheets=ee,$.generateSpacing=function(){return gt.createSpacing(g.spacing,St(this))},$.getColorSchemeSelector=Qn(f),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=c,$.unstable_sxConfig={...tt,...g?.unstable_sxConfig},$.unstable_sx=function(i){return rt({sx:i,theme:this})},$.toRuntimeSource=dr,$}function Qt(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:bt({...r===!0?{}:r.palette,mode:t})})}function _o(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...s}=e,c=a||"light",f=o?.[c],d={...o,...r?{[c]:{...typeof f!="boolean"&&f,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return mt(e,...t);let g=r;"palette"in e||d[c]&&(d[c]!==!0?g=d[c].palette:c==="dark"&&(g={mode:"dark"}));const p=mt({...e,palette:g},...t);return p.defaultColorScheme=c,p.colorSchemes=d,p.palette.mode==="light"&&(p.colorSchemes.light={...d.light!==!0&&d.light,palette:p.palette},Qt(p,"dark",d.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:p.palette},Qt(p,"light",d.light)),p}return!r&&!("light"in d)&&c==="light"&&(d.light=!0),Oo({...s,colorSchemes:d,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const Ao=_o();function Po(){const e=gt.useTheme(Ao);return process.env.NODE_ENV!=="production"&&ht.useDebugValue(e),e[xr]||e}const ko="linear(0 0%, 0.0085 31.26%, 0.0167 40.94%, 0.0289 48.86%, 0.0471 55.92%, 0.0717 61.99%, 0.1038 67.32%, 0.1443 72.07%, 0.1989 76.7%, 0.2659 80.89%, 0.3465 84.71%, 0.4419 88.22%, 0.554 91.48%, 0.6835 94.51%, 0.8316 97.34%, 1 100%)",Ro="linear(0 0%, 0.1684 2.66%, 0.3165 5.49%, 0.446 8.52%, 0.5581 11.78%, 0.6535 15.29%, 0.7341 19.11%, 0.8011 23.3%, 0.8557 27.93%, 0.8962 32.68%, 0.9283 38.01%, 0.9529 44.08%, 0.9711 51.14%, 0.9833 59.06%, 0.9915 68.74%, 1 100%)",Io=`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="white"/></svg>')`,Mo=`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="20" cy="20" r="18" fill="white" filter="url(%23blur)"/></svg>')`,Do=`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="0" cy="0" r="18" fill="white" filter="url(%23blur)"/></svg>')`,Bo=`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="white"/><stop offset="0.55" stop-color="white"/><stop offset="0.8" stop-color="white" stop-opacity="0"/></linearGradient></defs><rect width="100" height="100" fill="url(%23g)"/></svg>')`,Jt="cp-alternador-tema-estilos",Fo=`:root{--cp-expo-in:${ko};--cp-expo-out:${Ro};}@keyframes cp-vt-200{to{mask-size:200vmax;}}@keyframes cp-vt-350{to{mask-size:350vmax;}}@keyframes cp-vt-revelar-oscuro{from{clip-path:polygon(50% -71%, -50% 71%, -50% 71%, 50% -71%);}to{clip-path:polygon(50% -71%, -50% 71%, 50% 171%, 171% 50%);}}@keyframes cp-vt-revelar-claro{from{clip-path:polygon(171% 50%, 50% 171%, 50% 171%, 171% 50%);}to{clip-path:polygon(171% 50%, 50% 171%, -50% 71%, 50% -71%);}}@keyframes cp-vt-gif{0%{mask-size:0;}10%{mask-size:50vmax;}90%{mask-size:50vmax;}100%{mask-size:2000vmax;}}html[data-cp-vt="circulo"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="circulo"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}html[data-cp-vt="circulo"]::view-transition-new(root){mask:${Io} center / 0 no-repeat;animation:cp-vt-200 1s;animation-fill-mode:both;}html[data-cp-vt="circulo-desenfoque"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="circulo-desenfoque"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}html[data-cp-vt="circulo-desenfoque"]::view-transition-new(root){mask:${Mo} center / 0 no-repeat;animation:cp-vt-200 1s;animation-fill-mode:both;}html[data-cp-vt="circulo-desenfoque-superior-izquierda"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="circulo-desenfoque-superior-izquierda"]::view-transition-new(root){mask:${Do} top left / 0 no-repeat;mask-origin:content-box;animation:cp-vt-350 1s;animation-fill-mode:both;transform-origin:top left;}html[data-cp-vt="circulo-desenfoque-superior-izquierda"]::view-transition-old(root){animation:cp-vt-350 1s;animation-fill-mode:both;transform-origin:top left;z-index:-1;}html[data-cp-vt="poligono"]::view-transition-group(root){animation-duration:0.7s;animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="poligono"]::view-transition-new(root){animation-name:cp-vt-revelar-claro;animation-fill-mode:both;}html[data-cp-vt="poligono"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}html.dark[data-cp-vt="poligono"]::view-transition-new(root){animation-name:cp-vt-revelar-oscuro;animation-fill-mode:both;}html[data-cp-vt="poligono-degradado"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="poligono-degradado"]::view-transition-new(root){mask:${Bo} top left / 0 no-repeat;mask-origin:top left;animation:cp-vt-200 1s;animation-fill-mode:both;}html[data-cp-vt="poligono-degradado"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}`,No=()=>{if(typeof document>"u"||document.getElementById(Jt))return;const e=document.createElement("style");e.id=Jt,e.textContent=Fo,document.head.appendChild(e)},jo={pequeno:{boton:32,icono:18},mediano:{boton:40,icono:20},grande:{boton:48,icono:24}},Lo=({tamano:e})=>Q.jsx("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:Q.jsx("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})}),Vo=({tamano:e})=>Q.jsx("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:Q.jsx("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"})}),Wo=({variante:e="circulo",tamano:t="mediano",etiquetaAccesible:r,alAlternar:n})=>{const{tema:o,alternarTema:a}=We(),s=Po(),c=o==="dark",f=jo[t];oe.useEffect(()=>{No()},[]);const d=oe.useCallback(()=>{const p=c?"light":"dark",m=()=>{br.flushSync(()=>a())},v=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;typeof document.startViewTransition!="function"||v?a():(document.documentElement.setAttribute("data-cp-vt",e),document.startViewTransition(m)),n?.(p)},[c,a,n,e]),g=r??`Cambiar a modo ${c?"claro":"oscuro"}`;return Q.jsx(ne.Box,{component:"button",type:"button",onClick:d,"aria-label":g,title:g,sx:{width:f.boton,height:f.boton,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",borderRadius:"50%",cursor:"pointer",backgroundColor:"transparent",color:c?s.palette.warning.light:s.palette.text.secondary,transition:s.transitions.create(["background-color","color"],{duration:s.transitions.duration.shorter}),"&:hover":{backgroundColor:s.palette.action.hover,color:c?s.palette.warning.main:s.palette.text.primary},"&:focus-visible":{outline:`2px solid ${s.palette.primary.main}`,outlineOffset:2}},children:c?Q.jsx(Vo,{tamano:f.icono}):Q.jsx(Lo,{tamano:f.icono})})};function zo(){return"tema"}const gr=[{id:"playfair-dm-sans",nombre:"Playfair Display + DM Sans",titular:"Playfair Display",cuerpo:"DM Sans",categoria:"elegante",descripcion:"Serif de alto contraste para titulares con una sans geométrica limpia para el cuerpo."},{id:"cormorant-inter",nombre:"Cormorant Garamond + Inter",titular:"Cormorant Garamond",cuerpo:"Inter",categoria:"editorial",descripcion:"Serif clásica y refinada combinada con una sans neutra muy legible."},{id:"dm-sans-staatliches",nombre:"Staatliches + DM Sans",titular:"Staatliches",cuerpo:"DM Sans",categoria:"moderno",descripcion:"Display condensada de gran impacto para titulares cortos y llamativos."},{id:"bricolage-biorhyme",nombre:"Bricolage Grotesque + BioRhyme",titular:"Bricolage Grotesque",cuerpo:"BioRhyme",categoria:"editorial",descripcion:"Grotesca expresiva con una serif de bloque para un tono editorial contemporáneo."},{id:"eb-garamond-dm-mono",nombre:"EB Garamond + DM Mono",titular:"EB Garamond",cuerpo:"DM Mono",categoria:"tecnico",descripcion:"Serif humanista con una monoespaciada para documentación técnica con carácter."},{id:"poppins-inter",nombre:"Poppins + Inter",titular:"Poppins",cuerpo:"Inter",categoria:"minimalista",descripcion:"Par por defecto del sistema Codeplex: titulares redondeados y cuerpo neutro."},{id:"space-grotesk-ibm-plex",nombre:"Space Grotesk + IBM Plex Sans",titular:"Space Grotesk",cuerpo:"IBM Plex Sans",categoria:"tecnico",descripcion:"Geométrica con detalles técnicos para productos digitales y dashboards."},{id:"fraunces-nunito",nombre:"Fraunces + Nunito Sans",titular:"Fraunces",cuerpo:"Nunito Sans",categoria:"elegante",descripcion:"Serif suave y cálida con una sans amable para marcas cercanas."}];function Uo(e){return gr.find(t=>t.id===e)}function Zt(e){return`"${e}", "Inter", "system-ui", "-apple-system", "Segoe UI", sans-serif`}function hr(e){const t=":wght@300;400;500;600;700";return`https://fonts.googleapis.com/css2?${[e.titular,e.cuerpo].filter((n,o,a)=>a.indexOf(n)===o).map(n=>`family=${n.replace(/ /g,"+")}${t}`).join("&")}&display=swap`}function Ct(e){const t=Zt(e.titular),r=Zt(e.cuerpo);return{fontFamily:r,h1:{fontFamily:t,fontWeight:700},h2:{fontFamily:t,fontWeight:700},h3:{fontFamily:t,fontWeight:600},h4:{fontFamily:t,fontWeight:600},h5:{fontFamily:t,fontWeight:600},h6:{fontFamily:t,fontWeight:600},subtitle1:{fontFamily:r},subtitle2:{fontFamily:r},body1:{fontFamily:r},body2:{fontFamily:r},button:{fontFamily:r,fontWeight:600,textTransform:"none"},caption:{fontFamily:r},overline:{fontFamily:r}}}function Go(e){return{typography:Ct(e)}}function Yo(e){if(typeof document>"u")return;const t=`codeplex-par-fuentes-${e.id}`;if(document.getElementById(t))return;const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.href=hr(e),document.head.appendChild(r)}const yr=[{id:"space-vibrante",nombre:"Space Vibrante",titular:"Space Grotesk",cuerpo:"DM Sans",colores:{fondo:"#FFFFFF",texto:"#111111",primario:"#111111",acento:"#FF5B3E",superficie:"#FFD84D"}},{id:"cormorant-noche",nombre:"Cormorant Noche",titular:"Cormorant Garamond",cuerpo:"Inter",colores:{fondo:"#1A2340",texto:"#F4EAD5",primario:"#D4A574",acento:"#E8C77A",superficie:"#243054"}},{id:"playfair-tierra",nombre:"Playfair Tierra",titular:"Playfair Display",cuerpo:"Lora",colores:{fondo:"#EFEAE2",texto:"#2A1F14",primario:"#2A1F14",acento:"#8B6F4E",superficie:"#C9B896"}},{id:"tanker-pop",nombre:"Tanker Pop",titular:"Bricolage Grotesque",cuerpo:"DM Sans",colores:{fondo:"#FFE8F0",texto:"#3D1A2E",primario:"#A855F7",acento:"#FF5BA0",superficie:"#FFF6CC"}},{id:"plex-tecnico",nombre:"Plex Técnico",titular:"Space Grotesk",cuerpo:"IBM Plex Sans",colores:{fondo:"#0B1120",texto:"#E2E8F0",primario:"#38BDF8",acento:"#22D3EE",superficie:"#1E293B"}},{id:"fraunces-calido",nombre:"Fraunces Cálido",titular:"Fraunces",cuerpo:"Nunito Sans",colores:{fondo:"#FFF8F2",texto:"#3B2A22",primario:"#C2410C",acento:"#F59E0B",superficie:"#FCE7D2"}}];function qo(e){return yr.find(t=>t.id===e)}function Ko(e){const t={id:e.id,nombre:e.nombre,titular:e.titular,cuerpo:e.cuerpo,descripcion:e.nombre};return{palette:{primary:{main:e.colores.primario},secondary:{main:e.colores.acento},background:{default:e.colores.fondo,paper:e.colores.superficie},text:{primary:e.colores.texto}},typography:Ct(t)}}function Ho(e){if(typeof document>"u")return;const t=`codeplex-kit-marca-${e.id}`;if(document.getElementById(t))return;const r=":wght@300;400;500;600;700",n=[e.titular,e.cuerpo].filter((a,s,c)=>c.indexOf(a)===s).map(a=>`family=${a.replace(/ /g,"+")}${r}`).join("&"),o=document.createElement("link");o.id=t,o.rel="stylesheet",o.href=`https://fonts.googleapis.com/css2?${n}&display=swap`,document.head.appendChild(o)}function Xo(e){const t=e.replace("#",""),r=t.length===3?t.split("").map(s=>s+s).join(""):t,n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),a=parseInt(r.slice(4,6),16);return(.299*n+.587*o+.114*a)/255>.6}const Qo=[{clave:"fondo",etiqueta:"Fondo"},{clave:"texto",etiqueta:"Texto"},{clave:"primario",etiqueta:"Primario"},{clave:"acento",etiqueta:"Acento"},{clave:"superficie",etiqueta:"Superficie"}];function Jo(e){return`"${e}", system-ui, sans-serif`}const Zo={borderRadius:3,overflow:"hidden",bgcolor:"background.paper",border:e=>`1px solid ${e.palette.divider}`,transition:"box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease"},ei=({kit:e,seleccionado:t=!1,alSeleccionar:r})=>{const n=!!r;return Q.jsxs(ne.Box,{role:n?"button":void 0,tabIndex:n?0:void 0,"aria-label":n?`Aplicar kit ${e.nombre}`:void 0,onClick:()=>r?.(e),onKeyDown:o=>{n&&(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),r?.(e))},sx:{...Zo,cursor:n?"pointer":"default",borderColor:o=>t?o.palette.primary.main:o.palette.divider,boxShadow:t?6:0,"&:hover":n?{boxShadow:4,transform:"translateY(-2px)"}:void 0},children:[Q.jsx(ne.Box,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",bgcolor:"#16181d"},children:[{tag:"Headline",fuente:e.titular},{tag:"Body",fuente:e.cuerpo}].map(o=>Q.jsxs(ne.Box,{sx:{p:2.5,borderRight:o.tag==="Headline"?"1px solid rgba(255,255,255,0.08)":"none"},children:[Q.jsx(ne.Typography,{sx:{color:"rgba(255,255,255,0.5)",fontSize:11,mb:.5},children:o.tag}),Q.jsx(ne.Typography,{sx:{color:"#fff",fontFamily:Jo(o.fuente),fontSize:22,fontWeight:600,lineHeight:1.15},children:o.fuente})]},o.tag))}),Q.jsx(ne.Box,{sx:{p:1.5,display:"flex",flexDirection:"column",gap:1},children:Qo.map(({clave:o,etiqueta:a})=>{const s=e.colores[o],c=Xo(s);return Q.jsxs(ne.Box,{sx:{bgcolor:s,borderRadius:2,px:2,py:1.25,display:"flex",alignItems:"center",justifyContent:"space-between",border:c?"1px solid rgba(0,0,0,0.06)":"none"},children:[Q.jsx(ne.Typography,{sx:{color:c?"#111":"#fff",fontSize:13,fontWeight:500},children:a}),Q.jsx(ne.Typography,{sx:{color:c?"rgba(0,0,0,0.55)":"rgba(255,255,255,0.8)",fontSize:12,fontFamily:"monospace"},children:s.toUpperCase()})]},o)})})]})};exports.CODEPLEX_KITS_MARCA=yr;exports.CODEPLEX_PARES_FUENTES=gr;exports.CodeplexAlternadorTema=Wo;exports.CodeplexProveedorMui=Tr;exports.CodeplexProveedorTema=er;exports.CodeplexTarjetaMarca=ei;exports.CodeplexThemeProvider=Sr;exports.ContextoTema=Ve;exports.ThemeContext=Er;exports.cargarKitMarca=Ho;exports.cargarParFuentes=Yo;exports.obtenerKitMarca=qo;exports.obtenerParFuentes=Uo;exports.tema=zo;exports.temaDesdeKitMarca=Ko;exports.temaDesdeParFuentes=Go;exports.tipografiaDesdeParFuentes=Ct;exports.urlGoogleFonts=hr;exports.usarTema=We;exports.useTheme=Cr;
|