"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkBYEWDREDcjs = require('./chunk-BYEWDRED.cjs');require('./chunk-2UOGB46U.cjs');var _chunkJ63KZNMOcjs = require('./chunk-J63KZNMO.cjs');require('./chunk-ZBPRDZS4.cjs');var _chunkVLVC3OLVcjs = require('./chunk-VLVC3OLV.cjs');var _react = require('react'); var t = _interopRequireWildcard(_react);var l={dark:!1,colors:{primary:"tomato",background:"gainsboro",card:"white",text:"black",border:"silver",notification:"black",danger:"crimson",info:"royalblue",warning:"moccasin"}},c= exports.CosmotizeContext =t.createContext({theme:void 0}),ro= exports.CosmotizeProvider =({children:o,theme:e})=>t.createElement(c.Provider,{value:{theme:e}},o),io= exports.useTheme =()=>_nullishCoalesce(t.useContext(c).theme, () => (l));var no=(o,e,r)=>{let s={};for(let m=0;mo<=0||o>5?{}:{distance:_chunkVLVC3OLVcjs.a[o][2]+6,endColor:`${_nullishCoalesce(_nullishCoalesce(e, () => (_optionalChain([r, 'optionalAccess', _2 => _2.colors, 'optionalAccess', _3 => _3.primary]))), () => ("000000"))}00`,startColor:`${_nullishCoalesce(_nullishCoalesce(e, () => (_optionalChain([r, 'optionalAccess', _4 => _4.colors, 'optionalAccess', _5 => _5.primary]))), () => ("000000"))}${_chunkVLVC3OLVcjs.c.call(void 0, o)}`},co= exports.injectShadowNative =(o,e)=>o<=0||o>5?{}:{elevation:o,shadowColor:_nullishCoalesce(_optionalChain([e, 'optionalAccess', _6 => _6.colors, 'optionalAccess', _7 => _7.primary]), () => ("#000000")),shadowOffset:{width:0,height:0},shadowOpacity:_chunkVLVC3OLVcjs.a[o][1]+.5,shadowRadius:_chunkVLVC3OLVcjs.a[o][2]+2};exports.CosmotizeContext = c; exports.CosmotizeProvider = ro; exports.EAlignContent = _chunkJ63KZNMOcjs.a; exports.EAlignItems = _chunkJ63KZNMOcjs.b; exports.EAlignSelf = _chunkJ63KZNMOcjs.c; exports.EBorderColor = _chunkJ63KZNMOcjs.d; exports.EBorderRadius = _chunkJ63KZNMOcjs.e; exports.EBorderStyle = _chunkJ63KZNMOcjs.f; exports.EBorderWidth = _chunkJ63KZNMOcjs.g; exports.EFontWeight = _chunkJ63KZNMOcjs.h; exports.EJustifyContent = _chunkJ63KZNMOcjs.i; exports.EMargins = _chunkJ63KZNMOcjs.j; exports.EOverflow = _chunkJ63KZNMOcjs.k; exports.EPaddings = _chunkJ63KZNMOcjs.l; exports.EResizeMode = _chunkJ63KZNMOcjs.m; exports.ETextAlign = _chunkJ63KZNMOcjs.n; exports.alignContentStyles = _chunkBYEWDREDcjs.a; exports.alignItemsStyles = _chunkBYEWDREDcjs.b; exports.alignSelfStyles = _chunkBYEWDREDcjs.c; exports.alphaColor = _chunkVLVC3OLVcjs.b; exports.alphaShadow = _chunkVLVC3OLVcjs.c; exports.backgroundColorStyles = _chunkBYEWDREDcjs.d; exports.borderStyles = _chunkBYEWDREDcjs.e; exports.capitalize = _chunkVLVC3OLVcjs.d; exports.colorStyles = _chunkBYEWDREDcjs.f; exports.defaultTheme = l; exports.extract = _chunkVLVC3OLVcjs.e; exports.flexAlignmentStyles = _chunkBYEWDREDcjs.g; exports.flexDirectionStyles = _chunkBYEWDREDcjs.h; exports.flexGrowStyles = _chunkBYEWDREDcjs.i; exports.flexStyles = _chunkBYEWDREDcjs.j; exports.flexboxStyles = _chunkBYEWDREDcjs.k; exports.fontSizeStyles = _chunkBYEWDREDcjs.m; exports.fontStyleStyles = _chunkBYEWDREDcjs.n; exports.fontStyles = _chunkBYEWDREDcjs.l; exports.fontWeightStyles = _chunkBYEWDREDcjs.o; exports.injectShadow = ao; exports.injectShadowNative = co; exports.injectStyles = no; exports.justifyContentStyles = _chunkBYEWDREDcjs.p; exports.marginStyles = _chunkBYEWDREDcjs.q; exports.merge = _chunkVLVC3OLVcjs.f; exports.omitStyle = _chunkVLVC3OLVcjs.g; exports.overflowStyles = _chunkBYEWDREDcjs.r; exports.paddingStyles = _chunkBYEWDREDcjs.s; exports.pickStyle = _chunkVLVC3OLVcjs.h; exports.positionStyles = _chunkBYEWDREDcjs.t; exports.resizeModeStyles = _chunkBYEWDREDcjs.u; exports.shadeColor = _chunkVLVC3OLVcjs.i; exports.shadows = _chunkVLVC3OLVcjs.a; exports.sizingStyles = _chunkBYEWDREDcjs.v; exports.spacingStyles = _chunkBYEWDREDcjs.w; exports.textAlignStyles = _chunkBYEWDREDcjs.x; exports.tintColor = _chunkVLVC3OLVcjs.j; exports.useTheme = io;