@mhmo91/schmancy 0.2.5 → 0.2.6
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/{animated-text-ZX1snylb.cjs → animated-text-B2Hsj2EE.cjs} +2 -2
- package/dist/{animated-text-ZX1snylb.cjs.map → animated-text-B2Hsj2EE.cjs.map} +1 -1
- package/dist/{animated-text-WprAnY6N.js → animated-text-Cl8DsOSx.js} +3 -3
- package/dist/{animated-text-WprAnY6N.js.map → animated-text-Cl8DsOSx.js.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-BTb4YMjB.js → area.component-B85bKRcZ.js} +3 -3
- package/dist/{area.component-BTb4YMjB.js.map → area.component-B85bKRcZ.js.map} +1 -1
- package/dist/{area.component-e52Eafj8.cjs → area.component-DmfwQylu.cjs} +2 -2
- package/dist/{area.component-e52Eafj8.cjs.map → area.component-DmfwQylu.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-BMJqXHOb.js → autocomplete-JwXoveWr.js} +3 -3
- package/dist/{autocomplete-BMJqXHOb.js.map → autocomplete-JwXoveWr.js.map} +1 -1
- package/dist/{autocomplete-CDURDcuP.cjs → autocomplete-p4IaQ3rG.cjs} +2 -2
- package/dist/{autocomplete-CDURDcuP.cjs.map → autocomplete-p4IaQ3rG.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-CVjDSD7Z.cjs → checkbox-CzjTuT3w.cjs} +2 -2
- package/dist/{checkbox-CVjDSD7Z.cjs.map → checkbox-CzjTuT3w.cjs.map} +1 -1
- package/dist/{checkbox-zjbsRV4T.js → checkbox-YQLMxQp0.js} +2 -2
- package/dist/{checkbox-zjbsRV4T.js.map → checkbox-YQLMxQp0.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-aWPtXsqr.js → chips-CeHrQrCw.js} +3 -3
- package/dist/{chips-aWPtXsqr.js.map → chips-CeHrQrCw.js.map} +1 -1
- package/dist/{chips-D66ZWon8.cjs → chips-RKqKhpMt.cjs} +2 -2
- package/dist/{chips-D66ZWon8.cjs.map → chips-RKqKhpMt.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-BxBuTyht.cjs → date-range-C8QEPoSF.cjs} +2 -2
- package/dist/{date-range-BxBuTyht.cjs.map → date-range-C8QEPoSF.cjs.map} +1 -1
- package/dist/{date-range-Dcbpz5LG.js → date-range-DpmqQQA6.js} +3 -3
- package/dist/{date-range-Dcbpz5LG.js.map → date-range-DpmqQQA6.js.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-D6r9Ffu1.js → delay-BRuD9ZsU.js} +2 -2
- package/dist/{delay-D6r9Ffu1.js.map → delay-BRuD9ZsU.js.map} +1 -1
- package/dist/{delay-oEn5HbAU.cjs → delay-CwoNn0R6.cjs} +2 -2
- package/dist/{delay-oEn5HbAU.cjs.map → delay-CwoNn0R6.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{divider-ev9Kr0U7.cjs → divider-BmOzQ2GN.cjs} +2 -2
- package/dist/{divider-ev9Kr0U7.cjs.map → divider-BmOzQ2GN.cjs.map} +1 -1
- package/dist/{divider-C7Eoqg9K.js → divider-OsKCBnzO.js} +3 -3
- package/dist/{divider-C7Eoqg9K.js.map → divider-OsKCBnzO.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{form-GMVrqpHh.js → form-BrnglTfc.js} +2 -2
- package/dist/{form-GMVrqpHh.js.map → form-BrnglTfc.js.map} +1 -1
- package/dist/{form-1qIEblTD.cjs → form-qcKjLvvI.cjs} +2 -2
- package/dist/{form-1qIEblTD.cjs.map → form-qcKjLvvI.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-BC7HF1LD.cjs → icon-CEMFBCcI.cjs} +2 -2
- package/dist/{icon-BC7HF1LD.cjs.map → icon-CEMFBCcI.cjs.map} +1 -1
- package/dist/{icon-button-jOYAxg9J.js → icon-button-CR1xaeX3.js} +3 -3
- package/dist/{icon-button-jOYAxg9J.js.map → icon-button-CR1xaeX3.js.map} +1 -1
- package/dist/{icon-button-De3ulD_z.cjs → icon-button-Ut2BREU3.cjs} +2 -2
- package/dist/{icon-button-De3ulD_z.cjs.map → icon-button-Ut2BREU3.cjs.map} +1 -1
- package/dist/{icon-DeZg9ygb.js → icon-gMfGHTB7.js} +3 -3
- package/dist/{icon-DeZg9ygb.js.map → icon-gMfGHTB7.js.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +32 -32
- package/dist/{input-CJEATp6c.js → input-DMEOrHcQ.js} +2 -2
- package/dist/{input-CJEATp6c.js.map → input-DMEOrHcQ.js.map} +1 -1
- package/dist/{input-CD6peoaf.cjs → input-I662p43y.cjs} +2 -2
- package/dist/{input-CD6peoaf.cjs.map → input-I662p43y.cjs.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-tfNlySsk.cjs → litElement.mixin-CcvIvqxb.cjs} +2 -2
- package/dist/{litElement.mixin-tfNlySsk.cjs.map → litElement.mixin-CcvIvqxb.cjs.map} +1 -1
- package/dist/{litElement.mixin-7ULqg8XW.js → litElement.mixin-DzAZO77V.js} +2 -2
- package/dist/{litElement.mixin-7ULqg8XW.js.map → litElement.mixin-DzAZO77V.js.map} +1 -1
- package/dist/{menu-DjJq2oIx.js → menu-BCaGhzWH.js} +3 -3
- package/dist/{menu-DjJq2oIx.js.map → menu-BCaGhzWH.js.map} +1 -1
- package/dist/{menu-AjGY7zys.cjs → menu-BvnWyx7C.cjs} +2 -2
- package/dist/{menu-AjGY7zys.cjs.map → menu-BvnWyx7C.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-vffOh8kD.cjs → option-9tcTfHed.cjs} +2 -2
- package/dist/{option-vffOh8kD.cjs.map → option-9tcTfHed.cjs.map} +1 -1
- package/dist/{option-CMO0s0ZA.js → option-D7YIvw13.js} +2 -2
- package/dist/{option-CMO0s0ZA.js.map → option-D7YIvw13.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{outlet-CiF64oFE.js → outlet-BJcvmmU-.js} +2 -2
- package/dist/{outlet-CiF64oFE.js.map → outlet-BJcvmmU-.js.map} +1 -1
- package/dist/{outlet-B-n4OmvF.cjs → outlet-CR51h_EW.cjs} +2 -2
- package/dist/{outlet-B-n4OmvF.cjs.map → outlet-CR51h_EW.cjs.map} +1 -1
- package/dist/{payment-card-form-CzU2JNAf.js → payment-card-form-CWTv6RZW.js} +3 -3
- package/dist/{payment-card-form-CzU2JNAf.js.map → payment-card-form-CWTv6RZW.js.map} +1 -1
- package/dist/{payment-card-form-Db_Z6cO5.cjs → payment-card-form-CfxdH9Ww.cjs} +2 -2
- package/dist/{payment-card-form-Db_Z6cO5.cjs.map → payment-card-form-CfxdH9Ww.cjs.map} +1 -1
- package/dist/{radio-group-7nt46fXZ.js → radio-group-DgWBhZ1z.js} +2 -2
- package/dist/{radio-group-7nt46fXZ.js.map → radio-group-DgWBhZ1z.js.map} +1 -1
- package/dist/{radio-group-DJYSoWBy.cjs → radio-group-g5dYbBjj.cjs} +2 -2
- package/dist/{radio-group-DJYSoWBy.cjs.map → radio-group-g5dYbBjj.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{scroll-DfFQkfsL.js → scroll-CDMKyXlg.js} +2 -2
- package/dist/{scroll-DfFQkfsL.js.map → scroll-CDMKyXlg.js.map} +1 -1
- package/dist/{scroll-wAplw639.cjs → scroll-DdnOkTUU.cjs} +2 -2
- package/dist/{scroll-wAplw639.cjs.map → scroll-DdnOkTUU.cjs.map} +1 -1
- package/dist/{select-B1f_i1ap.cjs → select-C-9U4aXL.cjs} +2 -2
- package/dist/{select-B1f_i1ap.cjs.map → select-C-9U4aXL.cjs.map} +1 -1
- package/dist/{select-D4GoZ34Z.js → select-CgqhzQeG.js} +3 -3
- package/dist/{select-D4GoZ34Z.js.map → select-CgqhzQeG.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/sheet-Bo4UzC3M.js +189 -0
- package/dist/sheet-Bo4UzC3M.js.map +1 -0
- package/dist/sheet-u7gTdCVC.cjs +46 -0
- package/dist/sheet-u7gTdCVC.cjs.map +1 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-Dy2X0oq3.js → slider-C-2Dtp0w.js} +3 -3
- package/dist/{slider-Dy2X0oq3.js.map → slider-C-2Dtp0w.js.map} +1 -1
- package/dist/{slider-CjjoJTVy.cjs → slider-NBL_wss9.cjs} +2 -2
- package/dist/{slider-CjjoJTVy.cjs.map → slider-NBL_wss9.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-C80gw4he.js → spinner-DyhJHfNo.js} +3 -3
- package/dist/{spinner-C80gw4he.js.map → spinner-DyhJHfNo.js.map} +1 -1
- package/dist/{spinner-4EbjEFc8.cjs → spinner-jhDZDoZ_.cjs} +2 -2
- package/dist/{spinner-4EbjEFc8.cjs.map → spinner-jhDZDoZ_.cjs.map} +1 -1
- package/dist/{surface-CQAyPwkD.cjs → surface-BtnEjyvR.cjs} +2 -2
- package/dist/{surface-CQAyPwkD.cjs.map → surface-BtnEjyvR.cjs.map} +1 -1
- package/dist/{surface-Ctrl8tC0.js → surface-C5Lec-AF.js} +2 -2
- package/dist/{surface-Ctrl8tC0.js.map → surface-C5Lec-AF.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-C6evJfhm.cjs → table-DJR_1tnU.cjs} +2 -2
- package/dist/{table-C6evJfhm.cjs.map → table-DJR_1tnU.cjs.map} +1 -1
- package/dist/{table-DqVhvHWO.js → table-upGzIia_.js} +2 -2
- package/dist/{table-DqVhvHWO.js.map → table-upGzIia_.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-group-CL9Pglz4.cjs → tabs-group-CRDP7Djw.cjs} +2 -2
- package/dist/{tabs-group-CL9Pglz4.cjs.map → tabs-group-CRDP7Djw.cjs.map} +1 -1
- package/dist/{tabs-group-ClqcDvFv.js → tabs-group-LuGpm0sj.js} +2 -2
- package/dist/{tabs-group-ClqcDvFv.js.map → tabs-group-LuGpm0sj.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/{tailwind.mixin-sZ3A8X0T.cjs → tailwind.mixin-BZjCpGfl.cjs} +2 -2
- package/dist/{tailwind.mixin-sZ3A8X0T.cjs.map → tailwind.mixin-BZjCpGfl.cjs.map} +1 -1
- package/dist/{tailwind.mixin-qh_Ahoe6.js → tailwind.mixin-C0_Bt1Xe.js} +12 -12
- package/dist/{tailwind.mixin-qh_Ahoe6.js.map → tailwind.mixin-C0_Bt1Xe.js.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/{teleport.component-BZfCUZCo.js → teleport.component-D30hS_n9.js} +34 -34
- package/dist/{teleport.component-BZfCUZCo.js.map → teleport.component-D30hS_n9.js.map} +1 -1
- package/dist/{teleport.component-CBL4y6UF.cjs → teleport.component-THQUVYzw.cjs} +2 -2
- package/dist/{teleport.component-CBL4y6UF.cjs.map → teleport.component-THQUVYzw.cjs.map} +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-BZskb4ff.cjs → textarea-CFZZ1Gu6.cjs} +2 -2
- package/dist/{textarea-BZskb4ff.cjs.map → textarea-CFZZ1Gu6.cjs.map} +1 -1
- package/dist/{textarea-BskVUKzF.js → textarea-VJQ3NGSS.js} +2 -2
- package/dist/{textarea-BskVUKzF.js.map → textarea-VJQ3NGSS.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-DesGHZ6-.js → theme-button-1PV2MUS7.js} +2 -2
- package/dist/{theme-button-DesGHZ6-.js.map → theme-button-1PV2MUS7.js.map} +1 -1
- package/dist/{theme-button-B_sQNI3r.cjs → theme-button-DHQv605r.cjs} +2 -2
- package/dist/{theme-button-B_sQNI3r.cjs.map → theme-button-DHQv605r.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-09GDsjpK.js → theme.component-BmmjcnrT.js} +61 -61
- package/dist/{theme.component-09GDsjpK.js.map → theme.component-BmmjcnrT.js.map} +1 -1
- package/dist/{theme.component-DGdGPj9P.cjs → theme.component-uRe2gufA.cjs} +3 -3
- package/dist/{theme.component-DGdGPj9P.cjs.map → theme.component-uRe2gufA.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{tree-CihS-3ZD.js → tree-DQ9irfDc.js} +2 -2
- package/dist/{tree-CihS-3ZD.js.map → tree-DQ9irfDc.js.map} +1 -1
- package/dist/{tree-DUS1zZNw.cjs → tree-j7aC86In.cjs} +2 -2
- package/dist/{tree-DUS1zZNw.cjs.map → tree-j7aC86In.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-PucRqoAA.js → typewriter-BvTFERZS.js} +4 -4
- package/dist/{typewriter-PucRqoAA.js.map → typewriter-BvTFERZS.js.map} +1 -1
- package/dist/{typewriter-CJAKgz83.cjs → typewriter-CzHNbkkC.cjs} +2 -2
- package/dist/{typewriter-CJAKgz83.cjs.map → typewriter-CzHNbkkC.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-CWsxjQLr.cjs → typography-Ck-J9-0w.cjs} +2 -2
- package/dist/{typography-CWsxjQLr.cjs.map → typography-Ck-J9-0w.cjs.map} +1 -1
- package/dist/{typography-ByDngQWd.js → typography-x0gzDR7s.js} +2 -2
- package/dist/{typography-ByDngQWd.js.map → typography-x0gzDR7s.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/sheet/sheet.d.ts +12 -14
- package/types/src/theme/theme.component.d.ts +1 -0
- package/dist/sheet-Br-tYMRf.js +0 -189
- package/dist/sheet-Br-tYMRf.js.map +0 -1
- package/dist/sheet-CosRC56a.cjs +0 -43
- package/dist/sheet-CosRC56a.cjs.map +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { T as Mr } from "./tailwind.mixin-
|
|
1
|
+
import { T as Mr } from "./tailwind.mixin-C0_Bt1Xe.js";
|
|
2
2
|
import { unsafeCSS as Dr, html as Sr } from "lit";
|
|
3
|
-
import { property as
|
|
3
|
+
import { property as sr, customElement as Tr } from "lit/decorators.js";
|
|
4
4
|
import { Observable as Ir, of as kr, switchMap as Fr } from "rxjs";
|
|
5
|
-
function
|
|
5
|
+
function B(r) {
|
|
6
6
|
return r < 0 ? -1 : r === 0 ? 0 : 1;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function Z(r, e, t) {
|
|
9
9
|
return (1 - t) * r + t * e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function cr(r, e, t) {
|
|
12
12
|
return t < r ? r : t > e ? e : t;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function lr(r) {
|
|
15
15
|
return (r %= 360) < 0 && (r += 360), r;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function hr(r, e) {
|
|
18
18
|
return [r[0] * e[0][0] + r[1] * e[0][1] + r[2] * e[0][2], r[0] * e[1][0] + r[1] * e[1][1] + r[2] * e[1][2], r[0] * e[2][0] + r[1] * e[2][1] + r[2] * e[2][2]];
|
|
19
19
|
}
|
|
20
20
|
const Lr = [[0.41233895, 0.35762064, 0.18051042], [0.2126, 0.7152, 0.0722], [0.01932141, 0.11916382, 0.95034478]], Or = [[3.2413774792388685, -1.5376652402851851, -0.49885366846268053], [-0.9691452513005321, 1.8758853451067872, 0.04156585616912061], [0.05562093689691305, -0.20395524564742123, 1.0571799111220335]], Vr = [95.047, 100, 108.883];
|
|
21
|
-
function
|
|
21
|
+
function dr(r, e, t) {
|
|
22
22
|
return (255 << 24 | (255 & r) << 16 | (255 & e) << 8 | 255 & t) >>> 0;
|
|
23
23
|
}
|
|
24
24
|
function xr(r) {
|
|
25
|
-
return
|
|
25
|
+
return dr(J(r[0]), J(r[1]), J(r[2]));
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function ur(r) {
|
|
28
28
|
const e = function(t) {
|
|
29
29
|
const o = $(function(s) {
|
|
30
30
|
return s >> 16 & 255;
|
|
@@ -33,7 +33,7 @@ function hr(r) {
|
|
|
33
33
|
}(t)), c = $(function(s) {
|
|
34
34
|
return 255 & s;
|
|
35
35
|
}(t));
|
|
36
|
-
return
|
|
36
|
+
return hr([o, a, c], Lr);
|
|
37
37
|
}(r)[1];
|
|
38
38
|
return 116 * Cr(e / 100) - 16;
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@ function G(r) {
|
|
|
43
43
|
return o > 216 / 24389 ? o : (116 * e - 16) / t;
|
|
44
44
|
}((r + 16) / 116);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function mr(r) {
|
|
47
47
|
return 116 * Cr(r / 100) - 16;
|
|
48
48
|
}
|
|
49
49
|
function $(r) {
|
|
@@ -63,7 +63,7 @@ class q {
|
|
|
63
63
|
static make(e = /* @__PURE__ */ function() {
|
|
64
64
|
return Vr;
|
|
65
65
|
}(), t = 200 / Math.PI * G(50) / 100, o = 50, a = 2, c = !1) {
|
|
66
|
-
const s = e, i = 0.401288 * s[0] + 0.650173 * s[1] + -0.051461 * s[2], l = -0.250268 * s[0] + 1.204414 * s[1] + 0.045854 * s[2], h = -2079e-6 * s[0] + 0.048952 * s[1] + 0.953127 * s[2], m = 0.8 + a / 10, f = m >= 0.9 ?
|
|
66
|
+
const s = e, i = 0.401288 * s[0] + 0.650173 * s[1] + -0.051461 * s[2], l = -0.250268 * s[0] + 1.204414 * s[1] + 0.045854 * s[2], h = -2079e-6 * s[0] + 0.048952 * s[1] + 0.953127 * s[2], m = 0.8 + a / 10, f = m >= 0.9 ? Z(0.59, 0.69, 10 * (m - 0.9)) : Z(0.525, 0.59, 10 * (m - 0.8));
|
|
67
67
|
let g = c ? 1 : m * (1 - 1 / 3.6 * Math.exp((-t - 42) / 92));
|
|
68
68
|
g = g > 1 ? 1 : g < 0 ? 0 : g;
|
|
69
69
|
const C = m, p = [g * (100 / i) + 1 - g, g * (100 / l) + 1 - g, g * (100 / h) + 1 - g], w = 1 / (5 * t + 1), v = w * w * w * w, D = 1 - v, k = v * t + 0.1 * D * D * Math.cbrt(5 * t), V = G(o) / e[1], x = 1.48 + Math.sqrt(V), b = 0.725 / Math.pow(V, 0.2), I = b, P = [Math.pow(k * p[0] * i / 100, 0.42), Math.pow(k * p[1] * l / 100, 0.42), Math.pow(k * p[2] * h / 100, 0.42)], T = [400 * P[0] / (P[0] + 27.13), 400 * P[1] / (P[1] + 27.13), 400 * P[2] / (P[2] + 27.13)];
|
|
@@ -86,8 +86,8 @@ class L {
|
|
|
86
86
|
return L.fromIntInViewingConditions(e, q.DEFAULT);
|
|
87
87
|
}
|
|
88
88
|
static fromIntInViewingConditions(e, t) {
|
|
89
|
-
const o = (65280 & e) >> 8, a = 255 & e, c = $((16711680 & e) >> 16), s = $(o), i = $(a), l = 0.41233895 * c + 0.35762064 * s + 0.18051042 * i, h = 0.2126 * c + 0.7152 * s + 0.0722 * i, m = 0.01932141 * c + 0.11916382 * s + 0.95034478 * i, f = 0.401288 * l + 0.650173 * h - 0.051461 * m, g = -0.250268 * l + 1.204414 * h + 0.045854 * m, C = -2079e-6 * l + 0.048952 * h + 0.953127 * m, p = t.rgbD[0] * f, w = t.rgbD[1] * g, v = t.rgbD[2] * C, D = Math.pow(t.fl * Math.abs(p) / 100, 0.42), k = Math.pow(t.fl * Math.abs(w) / 100, 0.42), V = Math.pow(t.fl * Math.abs(v) / 100, 0.42), x = 400 *
|
|
90
|
-
return new L(N,
|
|
89
|
+
const o = (65280 & e) >> 8, a = 255 & e, c = $((16711680 & e) >> 16), s = $(o), i = $(a), l = 0.41233895 * c + 0.35762064 * s + 0.18051042 * i, h = 0.2126 * c + 0.7152 * s + 0.0722 * i, m = 0.01932141 * c + 0.11916382 * s + 0.95034478 * i, f = 0.401288 * l + 0.650173 * h - 0.051461 * m, g = -0.250268 * l + 1.204414 * h + 0.045854 * m, C = -2079e-6 * l + 0.048952 * h + 0.953127 * m, p = t.rgbD[0] * f, w = t.rgbD[1] * g, v = t.rgbD[2] * C, D = Math.pow(t.fl * Math.abs(p) / 100, 0.42), k = Math.pow(t.fl * Math.abs(w) / 100, 0.42), V = Math.pow(t.fl * Math.abs(v) / 100, 0.42), x = 400 * B(p) * D / (D + 27.13), b = 400 * B(w) * k / (k + 27.13), I = 400 * B(v) * V / (V + 27.13), P = (11 * x + -12 * b + I) / 11, T = (x + b - 2 * I) / 9, S = (20 * x + 20 * b + 21 * I) / 20, er = (40 * x + 20 * b + I) / 20, z = 180 * Math.atan2(T, P) / Math.PI, N = z < 0 ? z + 360 : z >= 360 ? z - 360 : z, j = N * Math.PI / 180, R = er * t.nbb, U = 100 * Math.pow(R / t.aw, t.c * t.z), X = 4 / t.c * Math.sqrt(U / 100) * (t.aw + 4) * t.fLRoot, W = N < 20.14 ? N + 360 : N, tr = 5e4 / 13 * (0.25 * (Math.cos(W * Math.PI / 180 + 2) + 3.8)) * t.nc * t.ncb * Math.sqrt(P * P + T * T) / (S + 0.305), or = Math.pow(tr, 0.9) * Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), ar = or * Math.sqrt(U / 100), fr = ar * t.fLRoot, br = 50 * Math.sqrt(or * t.c / (t.aw + 4)), wr = (1 + 100 * 7e-3) * U / (1 + 7e-3 * U), gr = 1 / 0.0228 * Math.log(1 + 0.0228 * fr), vr = gr * Math.cos(j), Pr = gr * Math.sin(j);
|
|
90
|
+
return new L(N, ar, U, X, fr, br, wr, vr, Pr);
|
|
91
91
|
}
|
|
92
92
|
static fromJch(e, t, o) {
|
|
93
93
|
return L.fromJchInViewingConditions(e, t, o, q.DEFAULT);
|
|
@@ -110,18 +110,18 @@ class L {
|
|
|
110
110
|
return this.viewed(q.DEFAULT);
|
|
111
111
|
}
|
|
112
112
|
viewed(e) {
|
|
113
|
-
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), a = this.hue * Math.PI / 180, c = 0.25 * (Math.cos(a + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = c * (5e4 / 13) * e.nc * e.ncb, l = s / e.nbb, h = Math.sin(a), m = Math.cos(a), f = 23 * (l + 0.305) * o / (23 * i + 11 * o * m + 108 * o * h), g = f * m, C = f * h, p = (460 * l + 451 * g + 288 * C) / 1403, w = (460 * l - 891 * g - 261 * C) / 1403, v = (460 * l - 220 * g - 6300 * C) / 1403, D = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), k =
|
|
114
|
-
return function(
|
|
115
|
-
const R = Or, U = R[0][0] *
|
|
116
|
-
return
|
|
113
|
+
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), a = this.hue * Math.PI / 180, c = 0.25 * (Math.cos(a + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = c * (5e4 / 13) * e.nc * e.ncb, l = s / e.nbb, h = Math.sin(a), m = Math.cos(a), f = 23 * (l + 0.305) * o / (23 * i + 11 * o * m + 108 * o * h), g = f * m, C = f * h, p = (460 * l + 451 * g + 288 * C) / 1403, w = (460 * l - 891 * g - 261 * C) / 1403, v = (460 * l - 220 * g - 6300 * C) / 1403, D = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), k = B(p) * (100 / e.fl) * Math.pow(D, 1 / 0.42), V = Math.max(0, 27.13 * Math.abs(w) / (400 - Math.abs(w))), x = B(w) * (100 / e.fl) * Math.pow(V, 1 / 0.42), b = Math.max(0, 27.13 * Math.abs(v) / (400 - Math.abs(v))), I = B(v) * (100 / e.fl) * Math.pow(b, 1 / 0.42), P = k / e.rgbD[0], T = x / e.rgbD[1], S = I / e.rgbD[2];
|
|
114
|
+
return function(z, N, j) {
|
|
115
|
+
const R = Or, U = R[0][0] * z + R[0][1] * N + R[0][2] * j, X = R[1][0] * z + R[1][1] * N + R[1][2] * j, W = R[2][0] * z + R[2][1] * N + R[2][2] * j;
|
|
116
|
+
return dr(J(U), J(X), J(W));
|
|
117
117
|
}(1.86206786 * P - 1.01125463 * T + 0.14918677 * S, 0.38752654 * P + 0.62144744 * T - 897398e-8 * S, -0.0158415 * P - 0.03412294 * T + 1.04996444 * S);
|
|
118
118
|
}
|
|
119
119
|
static fromXyzInViewingConditions(e, t, o, a) {
|
|
120
|
-
const c = 0.401288 * e + 0.650173 * t - 0.051461 * o, s = -0.250268 * e + 1.204414 * t + 0.045854 * o, i = -2079e-6 * e + 0.048952 * t + 0.953127 * o, l = a.rgbD[0] * c, h = a.rgbD[1] * s, m = a.rgbD[2] * i, f = Math.pow(a.fl * Math.abs(l) / 100, 0.42), g = Math.pow(a.fl * Math.abs(h) / 100, 0.42), C = Math.pow(a.fl * Math.abs(m) / 100, 0.42), p = 400 *
|
|
121
|
-
return new L(I, R, S,
|
|
120
|
+
const c = 0.401288 * e + 0.650173 * t - 0.051461 * o, s = -0.250268 * e + 1.204414 * t + 0.045854 * o, i = -2079e-6 * e + 0.048952 * t + 0.953127 * o, l = a.rgbD[0] * c, h = a.rgbD[1] * s, m = a.rgbD[2] * i, f = Math.pow(a.fl * Math.abs(l) / 100, 0.42), g = Math.pow(a.fl * Math.abs(h) / 100, 0.42), C = Math.pow(a.fl * Math.abs(m) / 100, 0.42), p = 400 * B(l) * f / (f + 27.13), w = 400 * B(h) * g / (g + 27.13), v = 400 * B(m) * C / (C + 27.13), D = (11 * p + -12 * w + v) / 11, k = (p + w - 2 * v) / 9, V = (20 * p + 20 * w + 21 * v) / 20, x = (40 * p + 20 * w + v) / 20, b = 180 * Math.atan2(k, D) / Math.PI, I = b < 0 ? b + 360 : b >= 360 ? b - 360 : b, P = I * Math.PI / 180, T = x * a.nbb, S = 100 * Math.pow(T / a.aw, a.c * a.z), er = 4 / a.c * Math.sqrt(S / 100) * (a.aw + 4) * a.fLRoot, z = I < 20.14 ? I + 360 : I, N = 5e4 / 13 * (1 / 4 * (Math.cos(z * Math.PI / 180 + 2) + 3.8)) * a.nc * a.ncb * Math.sqrt(D * D + k * k) / (V + 0.305), j = Math.pow(N, 0.9) * Math.pow(1.64 - Math.pow(0.29, a.n), 0.73), R = j * Math.sqrt(S / 100), U = R * a.fLRoot, X = 50 * Math.sqrt(j * a.c / (a.aw + 4)), W = (1 + 100 * 7e-3) * S / (1 + 7e-3 * S), tr = Math.log(1 + 0.0228 * U) / 0.0228, or = tr * Math.cos(P), ar = tr * Math.sin(P);
|
|
121
|
+
return new L(I, R, S, er, U, X, W, or, ar);
|
|
122
122
|
}
|
|
123
123
|
xyzInViewingConditions(e) {
|
|
124
|
-
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), a = this.hue * Math.PI / 180, c = 0.25 * (Math.cos(a + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = c * (5e4 / 13) * e.nc * e.ncb, l = s / e.nbb, h = Math.sin(a), m = Math.cos(a), f = 23 * (l + 0.305) * o / (23 * i + 11 * o * m + 108 * o * h), g = f * m, C = f * h, p = (460 * l + 451 * g + 288 * C) / 1403, w = (460 * l - 891 * g - 261 * C) / 1403, v = (460 * l - 220 * g - 6300 * C) / 1403, D = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), k =
|
|
124
|
+
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), a = this.hue * Math.PI / 180, c = 0.25 * (Math.cos(a + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = c * (5e4 / 13) * e.nc * e.ncb, l = s / e.nbb, h = Math.sin(a), m = Math.cos(a), f = 23 * (l + 0.305) * o / (23 * i + 11 * o * m + 108 * o * h), g = f * m, C = f * h, p = (460 * l + 451 * g + 288 * C) / 1403, w = (460 * l - 891 * g - 261 * C) / 1403, v = (460 * l - 220 * g - 6300 * C) / 1403, D = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), k = B(p) * (100 / e.fl) * Math.pow(D, 1 / 0.42), V = Math.max(0, 27.13 * Math.abs(w) / (400 - Math.abs(w))), x = B(w) * (100 / e.fl) * Math.pow(V, 1 / 0.42), b = Math.max(0, 27.13 * Math.abs(v) / (400 - Math.abs(v))), I = B(v) * (100 / e.fl) * Math.pow(b, 1 / 0.42), P = k / e.rgbD[0], T = x / e.rgbD[1], S = I / e.rgbD[2];
|
|
125
125
|
return [1.86206786 * P - 1.01125463 * T + 0.14918677 * S, 0.38752654 * P + 0.62144744 * T - 897398e-8 * S, -0.0158415 * P - 0.03412294 * T + 1.04996444 * S];
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -136,10 +136,10 @@ class d {
|
|
|
136
136
|
}
|
|
137
137
|
static chromaticAdaptation(e) {
|
|
138
138
|
const t = Math.pow(Math.abs(e), 0.42);
|
|
139
|
-
return 400 *
|
|
139
|
+
return 400 * B(e) * t / (t + 27.13);
|
|
140
140
|
}
|
|
141
141
|
static hueOf(e) {
|
|
142
|
-
const t =
|
|
142
|
+
const t = hr(e, d.SCALED_DISCOUNT_FROM_LINRGB), o = d.chromaticAdaptation(t[0]), a = d.chromaticAdaptation(t[1]), c = d.chromaticAdaptation(t[2]), s = (11 * o + -12 * a + c) / 11, i = (o + a - 2 * c) / 9;
|
|
143
143
|
return Math.atan2(i, s);
|
|
144
144
|
}
|
|
145
145
|
static areInCyclicOrder(e, t, o) {
|
|
@@ -207,13 +207,13 @@ class d {
|
|
|
207
207
|
}
|
|
208
208
|
static inverseChromaticAdaptation(e) {
|
|
209
209
|
const t = Math.abs(e), o = Math.max(0, 27.13 * t / (400 - t));
|
|
210
|
-
return
|
|
210
|
+
return B(e) * Math.pow(o, 1 / 0.42);
|
|
211
211
|
}
|
|
212
212
|
static findResultByJ(e, t, o) {
|
|
213
213
|
let a = 11 * Math.sqrt(o);
|
|
214
214
|
const c = q.DEFAULT, s = 1 / Math.pow(1.64 - Math.pow(0.29, c.n), 0.73), i = 0.25 * (Math.cos(e + 2) + 3.8) * (5e4 / 13) * c.nc * c.ncb, l = Math.sin(e), h = Math.cos(e);
|
|
215
215
|
for (let m = 0; m < 5; m++) {
|
|
216
|
-
const f = a / 100, g = t === 0 || a === 0 ? 0 : t / Math.sqrt(f), C = Math.pow(g * s, 1 / 0.9), p = c.aw * Math.pow(f, 1 / c.c / c.z) / c.nbb, w = 23 * (p + 0.305) * C / (23 * i + 11 * C * h + 108 * C * l), v = w * h, D = w * l, k = (460 * p + 451 * v + 288 * D) / 1403, V = (460 * p - 891 * v - 261 * D) / 1403, x = (460 * p - 220 * v - 6300 * D) / 1403, b =
|
|
216
|
+
const f = a / 100, g = t === 0 || a === 0 ? 0 : t / Math.sqrt(f), C = Math.pow(g * s, 1 / 0.9), p = c.aw * Math.pow(f, 1 / c.c / c.z) / c.nbb, w = 23 * (p + 0.305) * C / (23 * i + 11 * C * h + 108 * C * l), v = w * h, D = w * l, k = (460 * p + 451 * v + 288 * D) / 1403, V = (460 * p - 891 * v - 261 * D) / 1403, x = (460 * p - 220 * v - 6300 * D) / 1403, b = hr([d.inverseChromaticAdaptation(k), d.inverseChromaticAdaptation(V), d.inverseChromaticAdaptation(x)], d.LINRGB_FROM_SCALED_DISCOUNT);
|
|
217
217
|
if (b[0] < 0 || b[1] < 0 || b[2] < 0) return 0;
|
|
218
218
|
const I = d.Y_FROM_LINRGB[0], P = d.Y_FROM_LINRGB[1], T = d.Y_FROM_LINRGB[2], S = I * b[0] + P * b[1] + T * b[2];
|
|
219
219
|
if (S <= 0) return 0;
|
|
@@ -225,9 +225,9 @@ class d {
|
|
|
225
225
|
static solveToInt(e, t, o) {
|
|
226
226
|
if (t < 1e-4 || o < 1e-4 || o > 99.9999) return function(i) {
|
|
227
227
|
const l = J(G(i));
|
|
228
|
-
return
|
|
228
|
+
return dr(l, l, l);
|
|
229
229
|
}(o);
|
|
230
|
-
const a = (e =
|
|
230
|
+
const a = (e = lr(e)) / 180 * Math.PI, c = G(o), s = d.findResultByJ(a, t, c);
|
|
231
231
|
return s !== 0 ? s : xr(d.bisectToLimit(c, a));
|
|
232
232
|
}
|
|
233
233
|
static solveToCam(e, t, o) {
|
|
@@ -266,28 +266,28 @@ class O {
|
|
|
266
266
|
constructor(e) {
|
|
267
267
|
this.argb = e;
|
|
268
268
|
const t = L.fromInt(e);
|
|
269
|
-
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone =
|
|
269
|
+
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = ur(e), this.argb = e;
|
|
270
270
|
}
|
|
271
271
|
setInternalState(e) {
|
|
272
272
|
const t = L.fromInt(e);
|
|
273
|
-
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone =
|
|
273
|
+
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = ur(e), this.argb = e;
|
|
274
274
|
}
|
|
275
275
|
inViewingConditions(e) {
|
|
276
276
|
const t = L.fromInt(this.toInt()).xyzInViewingConditions(e), o = L.fromXyzInViewingConditions(t[0], t[1], t[2], q.make());
|
|
277
|
-
return O.from(o.hue, o.chroma,
|
|
277
|
+
return O.from(o.hue, o.chroma, mr(t[1]));
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
class
|
|
280
|
+
class yr {
|
|
281
281
|
static harmonize(e, t) {
|
|
282
282
|
const o = O.fromInt(e), a = O.fromInt(t), c = (s = o.hue, i = a.hue, 180 - Math.abs(Math.abs(s - i) - 180));
|
|
283
283
|
var s, i;
|
|
284
|
-
const l = Math.min(0.5 * c, 15), h =
|
|
284
|
+
const l = Math.min(0.5 * c, 15), h = lr(o.hue + l * (m = o.hue, lr(a.hue - m) <= 180 ? 1 : -1));
|
|
285
285
|
var m;
|
|
286
286
|
return O.from(h, o.chroma, o.tone).toInt();
|
|
287
287
|
}
|
|
288
288
|
static hctHue(e, t, o) {
|
|
289
|
-
const a =
|
|
290
|
-
return O.from(c.hue, s.chroma,
|
|
289
|
+
const a = yr.cam16Ucs(e, t, o), c = L.fromInt(a), s = L.fromInt(e);
|
|
290
|
+
return O.from(c.hue, s.chroma, ur(e)).toInt();
|
|
291
291
|
}
|
|
292
292
|
static cam16Ucs(e, t, o) {
|
|
293
293
|
const a = L.fromInt(e), c = L.fromInt(t), s = a.jstar, i = a.astar, l = a.bstar, h = s + (c.jstar - s) * o, m = i + (c.astar - i) * o, f = l + (c.bstar - l) * o;
|
|
@@ -296,7 +296,7 @@ class dr {
|
|
|
296
296
|
}
|
|
297
297
|
class F {
|
|
298
298
|
static ratioOfTones(e, t) {
|
|
299
|
-
return e =
|
|
299
|
+
return e = cr(0, 100, e), t = cr(0, 100, t), F.ratioOfYs(G(e), G(t));
|
|
300
300
|
}
|
|
301
301
|
static ratioOfYs(e, t) {
|
|
302
302
|
const o = e > t ? e : t;
|
|
@@ -306,14 +306,14 @@ class F {
|
|
|
306
306
|
if (e < 0 || e > 100) return -1;
|
|
307
307
|
const o = G(e), a = t * (o + 5) - 5, c = F.ratioOfYs(a, o), s = Math.abs(c - t);
|
|
308
308
|
if (c < t && s > 0.04) return -1;
|
|
309
|
-
const i =
|
|
309
|
+
const i = mr(a) + 0.4;
|
|
310
310
|
return i < 0 || i > 100 ? -1 : i;
|
|
311
311
|
}
|
|
312
312
|
static darker(e, t) {
|
|
313
313
|
if (e < 0 || e > 100) return -1;
|
|
314
314
|
const o = G(e), a = (o + 5) / t - 5, c = F.ratioOfYs(o, a), s = Math.abs(c - t);
|
|
315
315
|
if (c < t && s > 0.04) return -1;
|
|
316
|
-
const i =
|
|
316
|
+
const i = mr(a) - 0.4;
|
|
317
317
|
return i < 0 || i > 100 ? -1 : i;
|
|
318
318
|
}
|
|
319
319
|
static lighterUnsafe(e, t) {
|
|
@@ -325,13 +325,13 @@ class F {
|
|
|
325
325
|
return o < 0 ? 0 : o;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
class
|
|
328
|
+
class pr {
|
|
329
329
|
static isDisliked(e) {
|
|
330
330
|
const t = Math.round(e.hue) >= 90 && Math.round(e.hue) <= 111, o = Math.round(e.chroma) > 16, a = Math.round(e.tone) < 65;
|
|
331
331
|
return t && o && a;
|
|
332
332
|
}
|
|
333
333
|
static fixIfDisliked(e) {
|
|
334
|
-
return
|
|
334
|
+
return pr.isDisliked(e) ? O.from(e.hue, e.chroma, 70) : e;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
class u {
|
|
@@ -359,7 +359,7 @@ class u {
|
|
|
359
359
|
let k = F.ratioOfTones(h, D) >= w ? D : u.foregroundTone(h, w);
|
|
360
360
|
const V = g.tone(e);
|
|
361
361
|
let x = F.ratioOfTones(h, V) >= v ? V : u.foregroundTone(h, v);
|
|
362
|
-
return t && (k = u.foregroundTone(h, w), x = u.foregroundTone(h, v)), (x - k) * p >= s || (x =
|
|
362
|
+
return t && (k = u.foregroundTone(h, w), x = u.foregroundTone(h, v)), (x - k) * p >= s || (x = cr(0, 100, k + s * p), (x - k) * p >= s || (k = cr(0, 100, x - s * p))), 50 <= k && k < 60 ? p > 0 ? (k = 60, x = Math.max(x, k + s * p)) : (k = 49, x = Math.min(x, k + s * p)) : 50 <= x && x < 60 && (l ? p > 0 ? (k = 60, x = Math.max(x, k + s * p)) : (k = 49, x = Math.min(x, k + s * p)) : x = p > 0 ? 60 : 49), C ? k : x;
|
|
363
363
|
}
|
|
364
364
|
{
|
|
365
365
|
let o = this.tone(e);
|
|
@@ -443,7 +443,7 @@ class y {
|
|
|
443
443
|
this.low = e, this.normal = t, this.medium = o, this.high = a;
|
|
444
444
|
}
|
|
445
445
|
get(e) {
|
|
446
|
-
return e <= -1 ? this.low : e < 0 ?
|
|
446
|
+
return e <= -1 ? this.low : e < 0 ? Z(this.low, this.normal, (e - -1) / 1) : e < 0.5 ? Z(this.normal, this.medium, (e - 0) / 0.5) : e < 1 ? Z(this.medium, this.high, (e - 0.5) / 0.5) : this.high;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
class H {
|
|
@@ -451,16 +451,16 @@ class H {
|
|
|
451
451
|
this.roleA = e, this.roleB = t, this.delta = o, this.polarity = a, this.stayTogether = c;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
var
|
|
454
|
+
var rr;
|
|
455
455
|
function K(r) {
|
|
456
|
-
return r.variant ===
|
|
456
|
+
return r.variant === rr.FIDELITY || r.variant === rr.CONTENT;
|
|
457
457
|
}
|
|
458
458
|
function M(r) {
|
|
459
|
-
return r.variant ===
|
|
459
|
+
return r.variant === rr.MONOCHROME;
|
|
460
460
|
}
|
|
461
461
|
(function(r) {
|
|
462
462
|
r[r.MONOCHROME = 0] = "MONOCHROME", r[r.NEUTRAL = 1] = "NEUTRAL", r[r.TONAL_SPOT = 2] = "TONAL_SPOT", r[r.VIBRANT = 3] = "VIBRANT", r[r.EXPRESSIVE = 4] = "EXPRESSIVE", r[r.FIDELITY = 5] = "FIDELITY", r[r.CONTENT = 6] = "CONTENT", r[r.RAINBOW = 7] = "RAINBOW", r[r.FRUIT_SALAD = 8] = "FRUIT_SALAD";
|
|
463
|
-
})(
|
|
463
|
+
})(rr || (rr = {}));
|
|
464
464
|
class n {
|
|
465
465
|
static highestSurface(e) {
|
|
466
466
|
return e.isDark ? n.surfaceBright : n.surfaceDim;
|
|
@@ -485,7 +485,7 @@ n.contentAccentToneDelta = 15, n.primaryPaletteKeyColor = u.fromPalette({ name:
|
|
|
485
485
|
if (M(r)) return r.isDark ? 60 : 49;
|
|
486
486
|
if (!K(r)) return r.isDark ? 30 : 90;
|
|
487
487
|
const e = r.tertiaryPalette.getHct(r.sourceColorHct.tone);
|
|
488
|
-
return
|
|
488
|
+
return pr.fixIfDisliked(e).tone;
|
|
489
489
|
}, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.tertiaryContainer, n.tertiary, 10, "nearer", !1) }), n.onTertiaryContainer = u.fromPalette({ name: "on_tertiary_container", palette: (r) => r.tertiaryPalette, tone: (r) => M(r) ? r.isDark ? 0 : 100 : K(r) ? u.foregroundTone(n.tertiaryContainer.tone(r), 4.5) : r.isDark ? 90 : 30, background: (r) => n.tertiaryContainer, contrastCurve: new y(3, 4.5, 7, 11) }), n.error = u.fromPalette({ name: "error", palette: (r) => r.errorPalette, tone: (r) => r.isDark ? 80 : 40, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(3, 4.5, 7, 7), toneDeltaPair: (r) => new H(n.errorContainer, n.error, 10, "nearer", !1) }), n.onError = u.fromPalette({ name: "on_error", palette: (r) => r.errorPalette, tone: (r) => r.isDark ? 20 : 100, background: (r) => n.error, contrastCurve: new y(4.5, 7, 11, 21) }), n.errorContainer = u.fromPalette({ name: "error_container", palette: (r) => r.errorPalette, tone: (r) => r.isDark ? 30 : 90, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.errorContainer, n.error, 10, "nearer", !1) }), n.onErrorContainer = u.fromPalette({ name: "on_error_container", palette: (r) => r.errorPalette, tone: (r) => M(r) ? r.isDark ? 90 : 10 : r.isDark ? 90 : 30, background: (r) => n.errorContainer, contrastCurve: new y(3, 4.5, 7, 11) }), n.primaryFixed = u.fromPalette({ name: "primary_fixed", palette: (r) => r.primaryPalette, tone: (r) => M(r) ? 40 : 90, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.primaryFixed, n.primaryFixedDim, 10, "lighter", !0) }), n.primaryFixedDim = u.fromPalette({ name: "primary_fixed_dim", palette: (r) => r.primaryPalette, tone: (r) => M(r) ? 30 : 80, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.primaryFixed, n.primaryFixedDim, 10, "lighter", !0) }), n.onPrimaryFixed = u.fromPalette({ name: "on_primary_fixed", palette: (r) => r.primaryPalette, tone: (r) => M(r) ? 100 : 10, background: (r) => n.primaryFixedDim, secondBackground: (r) => n.primaryFixed, contrastCurve: new y(4.5, 7, 11, 21) }), n.onPrimaryFixedVariant = u.fromPalette({ name: "on_primary_fixed_variant", palette: (r) => r.primaryPalette, tone: (r) => M(r) ? 90 : 30, background: (r) => n.primaryFixedDim, secondBackground: (r) => n.primaryFixed, contrastCurve: new y(3, 4.5, 7, 11) }), n.secondaryFixed = u.fromPalette({ name: "secondary_fixed", palette: (r) => r.secondaryPalette, tone: (r) => M(r) ? 80 : 90, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.secondaryFixed, n.secondaryFixedDim, 10, "lighter", !0) }), n.secondaryFixedDim = u.fromPalette({ name: "secondary_fixed_dim", palette: (r) => r.secondaryPalette, tone: (r) => M(r) ? 70 : 80, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.secondaryFixed, n.secondaryFixedDim, 10, "lighter", !0) }), n.onSecondaryFixed = u.fromPalette({ name: "on_secondary_fixed", palette: (r) => r.secondaryPalette, tone: (r) => 10, background: (r) => n.secondaryFixedDim, secondBackground: (r) => n.secondaryFixed, contrastCurve: new y(4.5, 7, 11, 21) }), n.onSecondaryFixedVariant = u.fromPalette({ name: "on_secondary_fixed_variant", palette: (r) => r.secondaryPalette, tone: (r) => M(r) ? 25 : 30, background: (r) => n.secondaryFixedDim, secondBackground: (r) => n.secondaryFixed, contrastCurve: new y(3, 4.5, 7, 11) }), n.tertiaryFixed = u.fromPalette({ name: "tertiary_fixed", palette: (r) => r.tertiaryPalette, tone: (r) => M(r) ? 40 : 90, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.tertiaryFixed, n.tertiaryFixedDim, 10, "lighter", !0) }), n.tertiaryFixedDim = u.fromPalette({ name: "tertiary_fixed_dim", palette: (r) => r.tertiaryPalette, tone: (r) => M(r) ? 30 : 80, isBackground: !0, background: (r) => n.highestSurface(r), contrastCurve: new y(1, 1, 3, 4.5), toneDeltaPair: (r) => new H(n.tertiaryFixed, n.tertiaryFixedDim, 10, "lighter", !0) }), n.onTertiaryFixed = u.fromPalette({ name: "on_tertiary_fixed", palette: (r) => r.tertiaryPalette, tone: (r) => M(r) ? 100 : 10, background: (r) => n.tertiaryFixedDim, secondBackground: (r) => n.tertiaryFixed, contrastCurve: new y(4.5, 7, 11, 21) }), n.onTertiaryFixedVariant = u.fromPalette({ name: "on_tertiary_fixed_variant", palette: (r) => r.tertiaryPalette, tone: (r) => M(r) ? 90 : 30, background: (r) => n.tertiaryFixedDim, secondBackground: (r) => n.tertiaryFixed, contrastCurve: new y(3, 4.5, 7, 11) });
|
|
490
490
|
class E {
|
|
491
491
|
static of(e) {
|
|
@@ -650,7 +650,7 @@ function Er(r, e = []) {
|
|
|
650
650
|
return { source: r, schemes: { light: _.light(r), dark: _.dark(r) }, palettes: { primary: t.a1, secondary: t.a2, tertiary: t.a3, neutral: t.n1, neutralVariant: t.n2, error: t.error }, customColors: e.map((o) => function(a, c) {
|
|
651
651
|
let s = c.value;
|
|
652
652
|
const i = s, l = a;
|
|
653
|
-
c.blend && (s =
|
|
653
|
+
c.blend && (s = yr.harmonize(i, l));
|
|
654
654
|
const h = E.of(s), m = h.a1;
|
|
655
655
|
return { color: c, value: s, light: { color: m.tone(40), onColor: m.tone(100), colorContainer: m.tone(90), onColorContainer: m.tone(10) }, dark: { color: m.tone(80), onColor: m.tone(20), colorContainer: m.tone(30), onColorContainer: m.tone(90) } };
|
|
656
656
|
}(r, o)) };
|
|
@@ -674,22 +674,22 @@ function Rr(r, e = !1) {
|
|
|
674
674
|
return { sys: { color: { scrim: t(o.scrim), outlineVariant: t(o.outlineVariant), outline: t(o.outline), surface: { default: t(o.surface), dim: t(a.sDim), bright: t(a.sBright), on: t(o.onSurface), onVariant: t(o.onSurfaceVariant), highest: t(a.cHighest), high: t(a.cHigh), container: t(a.c), low: t(a.cLow), lowest: t(a.cLowest) }, primary: { default: t(o.primary), on: t(o.onPrimary), container: t(o.primaryContainer), onContainer: t(o.onPrimaryContainer) }, secondary: { default: t(o.secondary), on: t(o.onSecondary), container: t(o.secondaryContainer), onContainer: t(o.onSecondaryContainer) }, tertiary: { default: t(o.tertiary), on: t(o.onTertiary), container: t(o.tertiaryContainer), onContainer: t(o.onTertiaryContainer) }, error: { default: t(o.error), on: t(o.onError), container: t(o.errorContainer), onContainer: t(o.onErrorContainer) }, success: { default: "#00FF00", on: "#000000", container: "#00FF00", onContainer: "#000000" } }, elevation: { 0: "0 0 0 0 rgba(0, 0, 0, 0)", 1: "rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px", 2: "rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px", 3: "rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px", 4: "rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px", 5: "rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 12px 17px 2px, rgba(0, 0, 0, 0.12) 0px 5px 22px 4px" }, outline: { 1: "1px" } } };
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
var Hr = Object.defineProperty,
|
|
678
|
-
for (var a, c = o > 1 ? void 0 : o ?
|
|
677
|
+
var Hr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, nr = (r, e, t, o) => {
|
|
678
|
+
for (var a, c = o > 1 ? void 0 : o ? Br(e, t) : e, s = r.length - 1; s >= 0; s--) (a = r[s]) && (c = (o ? a(e, t, c) : a(c)) || c);
|
|
679
679
|
return o && c && Hr(e, t, c), c;
|
|
680
680
|
};
|
|
681
|
-
const Br = Dr(':host,:root{--md-ref-typeface-brand: "Josefin Sans", sans-serif;--md-ref-typeface-plain: "Josefin Sans", sans-serif;--md-sys-color-primary: var(--schmancy-sys-color-primary-default);--md-sys-color-secondary: var(--schmancy-sys-color-secondary-default);--border-style: solid;--spacing: 4px;--color-scrim: var(--schmancy-sys-color-scrim);--color-outline: var(--schmancy-sys-color-outline);--color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--color-surface-default: var(--schmancy-sys-color-surface-default);--color-surface-dim: var(--schmancy-sys-color-surface-dim);--color-surface-bright: var(--schmancy-sys-color-surface-bright);--color-surface-container: var(--schmancy-sys-color-surface-container);--color-surface-low: var(--schmancy-sys-color-surface-low);--color-surface-high: var(--schmancy-sys-color-surface-high);--color-surface-highest: var(--schmancy-sys-color-surface-highest);--color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--color-surface-on: var(--schmancy-sys-color-surface-on);--color-surface-onVariant: var(--schmancy-sys-color-surface-onVariant);--color-primary-default: var(--schmancy-sys-color-primary-default);--color-primary-on: var(--schmancy-sys-color-primary-on);--color-primary-container: var(--schmancy-sys-color-primary-container);--color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--color-secondary-default: var(--schmancy-sys-color-secondary-default);--color-secondary-on: var(--schmancy-sys-color-secondary-on);--color-secondary-container: var(--schmancy-sys-color-secondary-container);--color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--color-error-default: var(--schmancy-sys-color-error-default);--color-error-on: var(--schmancy-sys-color-error-on);--color-error-container: var(--schmancy-sys-color-error-container);--color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--color-success-default: var(--schmancy-sys-color-success-default);--color-success-on: var(--schmancy-sys-color-success-on);--color-success-container: var(--schmancy-sys-color-success-container);--color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--shadow-0: var(--schmancy-sys-elevation-0);--shadow-1: var(--schmancy-sys-elevation-1);--shadow-2: var(--schmancy-sys-elevation-2);--shadow-3: var(--schmancy-sys-elevation-3);--shadow-4: var(--schmancy-sys-elevation-4);--shadow-5: var(--schmancy-sys-elevation-5);--outline-1: var(--schmancy-sys-outline-1);--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50: oklch(.971 .013 17.38);--color-red-100: oklch(.936 .032 17.717);--color-red-200: oklch(.885 .062 18.334);--color-red-300: oklch(.808 .114 19.571);--color-red-400: oklch(.704 .191 22.216);--color-red-500: oklch(.637 .237 25.331);--color-red-600: oklch(.577 .245 27.325);--color-red-700: oklch(.505 .213 27.518);--color-red-800: oklch(.444 .177 26.899);--color-red-900: oklch(.396 .141 25.723);--color-red-950: oklch(.258 .092 26.042);--color-orange-50: oklch(.98 .016 73.684);--color-orange-100: oklch(.954 .038 75.164);--color-orange-200: oklch(.901 .076 70.697);--color-orange-300: oklch(.837 .128 66.29);--color-orange-400: oklch(.75 .183 55.934);--color-orange-500: oklch(.705 .213 47.604);--color-orange-600: oklch(.646 .222 41.116);--color-orange-700: oklch(.553 .195 38.402);--color-orange-800: oklch(.47 .157 37.304);--color-orange-900: oklch(.408 .123 38.172);--color-orange-950: oklch(.266 .079 36.259);--color-amber-50: oklch(.987 .022 95.277);--color-amber-100: oklch(.962 .059 95.617);--color-amber-200: oklch(.924 .12 95.746);--color-amber-300: oklch(.879 .169 91.605);--color-amber-400: oklch(.828 .189 84.429);--color-amber-500: oklch(.769 .188 70.08);--color-amber-600: oklch(.666 .179 58.318);--color-amber-700: oklch(.555 .163 48.998);--color-amber-800: oklch(.473 .137 46.201);--color-amber-900: oklch(.414 .112 45.904);--color-amber-950: oklch(.279 .077 45.635);--color-yellow-50: oklch(.987 .026 102.212);--color-yellow-100: oklch(.973 .071 103.193);--color-yellow-200: oklch(.945 .129 101.54);--color-yellow-300: oklch(.905 .182 98.111);--color-yellow-400: oklch(.852 .199 91.936);--color-yellow-500: oklch(.795 .184 86.047);--color-yellow-600: oklch(.681 .162 75.834);--color-yellow-700: oklch(.554 .135 66.442);--color-yellow-800: oklch(.476 .114 61.907);--color-yellow-900: oklch(.421 .095 57.708);--color-yellow-950: oklch(.286 .066 53.813);--color-lime-50: oklch(.986 .031 120.757);--color-lime-100: oklch(.967 .067 122.328);--color-lime-200: oklch(.938 .127 124.321);--color-lime-300: oklch(.897 .196 126.665);--color-lime-400: oklch(.841 .238 128.85);--color-lime-500: oklch(.768 .233 130.85);--color-lime-600: oklch(.648 .2 131.684);--color-lime-700: oklch(.532 .157 131.589);--color-lime-800: oklch(.453 .124 130.933);--color-lime-900: oklch(.405 .101 131.063);--color-lime-950: oklch(.274 .072 132.109);--color-green-50: oklch(.982 .018 155.826);--color-green-100: oklch(.962 .044 156.743);--color-green-200: oklch(.925 .084 155.995);--color-green-300: oklch(.871 .15 154.449);--color-green-400: oklch(.792 .209 151.711);--color-green-500: oklch(.723 .219 149.579);--color-green-600: oklch(.627 .194 149.214);--color-green-700: oklch(.527 .154 150.069);--color-green-800: oklch(.448 .119 151.328);--color-green-900: oklch(.393 .095 152.535);--color-green-950: oklch(.266 .065 152.934);--color-emerald-50: oklch(.979 .021 166.113);--color-emerald-100: oklch(.95 .052 163.051);--color-emerald-200: oklch(.905 .093 164.15);--color-emerald-300: oklch(.845 .143 164.978);--color-emerald-400: oklch(.765 .177 163.223);--color-emerald-500: oklch(.696 .17 162.48);--color-emerald-600: oklch(.596 .145 163.225);--color-emerald-700: oklch(.508 .118 165.612);--color-emerald-800: oklch(.432 .095 166.913);--color-emerald-900: oklch(.378 .077 168.94);--color-emerald-950: oklch(.262 .051 172.552);--color-teal-50: oklch(.984 .014 180.72);--color-teal-100: oklch(.953 .051 180.801);--color-teal-200: oklch(.91 .096 180.426);--color-teal-300: oklch(.855 .138 181.071);--color-teal-400: oklch(.777 .152 181.912);--color-teal-500: oklch(.704 .14 182.503);--color-teal-600: oklch(.6 .118 184.704);--color-teal-700: oklch(.511 .096 186.391);--color-teal-800: oklch(.437 .078 188.216);--color-teal-900: oklch(.386 .063 188.416);--color-teal-950: oklch(.277 .046 192.524);--color-cyan-50: oklch(.984 .019 200.873);--color-cyan-100: oklch(.956 .045 203.388);--color-cyan-200: oklch(.917 .08 205.041);--color-cyan-300: oklch(.865 .127 207.078);--color-cyan-400: oklch(.789 .154 211.53);--color-cyan-500: oklch(.715 .143 215.221);--color-cyan-600: oklch(.609 .126 221.723);--color-cyan-700: oklch(.52 .105 223.128);--color-cyan-800: oklch(.45 .085 224.283);--color-cyan-900: oklch(.398 .07 227.392);--color-cyan-950: oklch(.302 .056 229.695);--color-sky-50: oklch(.977 .013 236.62);--color-sky-100: oklch(.951 .026 236.824);--color-sky-200: oklch(.901 .058 230.902);--color-sky-300: oklch(.828 .111 230.318);--color-sky-400: oklch(.746 .16 232.661);--color-sky-500: oklch(.685 .169 237.323);--color-sky-600: oklch(.588 .158 241.966);--color-sky-700: oklch(.5 .134 242.749);--color-sky-800: oklch(.443 .11 240.79);--color-sky-900: oklch(.391 .09 240.876);--color-sky-950: oklch(.293 .066 243.157);--color-blue-50: oklch(.97 .014 254.604);--color-blue-100: oklch(.932 .032 255.585);--color-blue-200: oklch(.882 .059 254.128);--color-blue-300: oklch(.809 .105 251.813);--color-blue-400: oklch(.707 .165 254.624);--color-blue-500: oklch(.623 .214 259.815);--color-blue-600: oklch(.546 .245 262.881);--color-blue-700: oklch(.488 .243 264.376);--color-blue-800: oklch(.424 .199 265.638);--color-blue-900: oklch(.379 .146 265.522);--color-blue-950: oklch(.282 .091 267.935);--color-indigo-50: oklch(.962 .018 272.314);--color-indigo-100: oklch(.93 .034 272.788);--color-indigo-200: oklch(.87 .065 274.039);--color-indigo-300: oklch(.785 .115 274.713);--color-indigo-400: oklch(.673 .182 276.935);--color-indigo-500: oklch(.585 .233 277.117);--color-indigo-600: oklch(.511 .262 276.966);--color-indigo-700: oklch(.457 .24 277.023);--color-indigo-800: oklch(.398 .195 277.366);--color-indigo-900: oklch(.359 .144 278.697);--color-indigo-950: oklch(.257 .09 281.288);--color-violet-50: oklch(.969 .016 293.756);--color-violet-100: oklch(.943 .029 294.588);--color-violet-200: oklch(.894 .057 293.283);--color-violet-300: oklch(.811 .111 293.571);--color-violet-400: oklch(.702 .183 293.541);--color-violet-500: oklch(.606 .25 292.717);--color-violet-600: oklch(.541 .281 293.009);--color-violet-700: oklch(.491 .27 292.581);--color-violet-800: oklch(.432 .232 292.759);--color-violet-900: oklch(.38 .189 293.745);--color-violet-950: oklch(.283 .141 291.089);--color-purple-50: oklch(.977 .014 308.299);--color-purple-100: oklch(.946 .033 307.174);--color-purple-200: oklch(.902 .063 306.703);--color-purple-300: oklch(.827 .119 306.383);--color-purple-400: oklch(.714 .203 305.504);--color-purple-500: oklch(.627 .265 303.9);--color-purple-600: oklch(.558 .288 302.321);--color-purple-700: oklch(.496 .265 301.924);--color-purple-800: oklch(.438 .218 303.724);--color-purple-900: oklch(.381 .176 304.987);--color-purple-950: oklch(.291 .149 302.717);--color-fuchsia-50: oklch(.977 .017 320.058);--color-fuchsia-100: oklch(.952 .037 318.852);--color-fuchsia-200: oklch(.903 .076 319.62);--color-fuchsia-300: oklch(.833 .145 321.434);--color-fuchsia-400: oklch(.74 .238 322.16);--color-fuchsia-500: oklch(.667 .295 322.15);--color-fuchsia-600: oklch(.591 .293 322.896);--color-fuchsia-700: oklch(.518 .253 323.949);--color-fuchsia-800: oklch(.452 .211 324.591);--color-fuchsia-900: oklch(.401 .17 325.612);--color-fuchsia-950: oklch(.293 .136 325.661);--color-pink-50: oklch(.971 .014 343.198);--color-pink-100: oklch(.948 .028 342.258);--color-pink-200: oklch(.899 .061 343.231);--color-pink-300: oklch(.823 .12 346.018);--color-pink-400: oklch(.718 .202 349.761);--color-pink-500: oklch(.656 .241 354.308);--color-pink-600: oklch(.592 .249 .584);--color-pink-700: oklch(.525 .223 3.958);--color-pink-800: oklch(.459 .187 3.815);--color-pink-900: oklch(.408 .153 2.432);--color-pink-950: oklch(.284 .109 3.907);--color-rose-50: oklch(.969 .015 12.422);--color-rose-100: oklch(.941 .03 12.58);--color-rose-200: oklch(.892 .058 10.001);--color-rose-300: oklch(.81 .117 11.638);--color-rose-400: oklch(.712 .194 13.428);--color-rose-500: oklch(.645 .246 16.439);--color-rose-600: oklch(.586 .253 17.585);--color-rose-700: oklch(.514 .222 16.935);--color-rose-800: oklch(.455 .188 13.697);--color-rose-900: oklch(.41 .159 10.272);--color-rose-950: oklch(.271 .105 12.094);--color-slate-50: oklch(.984 .003 247.858);--color-slate-100: oklch(.968 .007 247.896);--color-slate-200: oklch(.929 .013 255.508);--color-slate-300: oklch(.869 .022 252.894);--color-slate-400: oklch(.704 .04 256.788);--color-slate-500: oklch(.554 .046 257.417);--color-slate-600: oklch(.446 .043 257.281);--color-slate-700: oklch(.372 .044 257.287);--color-slate-800: oklch(.279 .041 260.031);--color-slate-900: oklch(.208 .042 265.755);--color-slate-950: oklch(.129 .042 264.695);--color-gray-50: oklch(.985 .002 247.839);--color-gray-100: oklch(.967 .003 264.542);--color-gray-200: oklch(.928 .006 264.531);--color-gray-300: oklch(.872 .01 258.338);--color-gray-400: oklch(.707 .022 261.325);--color-gray-500: oklch(.551 .027 264.364);--color-gray-600: oklch(.446 .03 256.802);--color-gray-700: oklch(.373 .034 259.733);--color-gray-800: oklch(.278 .033 256.848);--color-gray-900: oklch(.21 .034 264.665);--color-gray-950: oklch(.13 .028 261.692);--color-zinc-50: oklch(.985 0 0);--color-zinc-100: oklch(.967 .001 286.375);--color-zinc-200: oklch(.92 .004 286.32);--color-zinc-300: oklch(.871 .006 286.286);--color-zinc-400: oklch(.705 .015 286.067);--color-zinc-500: oklch(.552 .016 285.938);--color-zinc-600: oklch(.442 .017 285.786);--color-zinc-700: oklch(.37 .013 285.805);--color-zinc-800: oklch(.274 .006 286.033);--color-zinc-900: oklch(.21 .006 285.885);--color-zinc-950: oklch(.141 .005 285.823);--color-neutral-50: oklch(.985 0 0);--color-neutral-100: oklch(.97 0 0);--color-neutral-200: oklch(.922 0 0);--color-neutral-300: oklch(.87 0 0);--color-neutral-400: oklch(.708 0 0);--color-neutral-500: oklch(.556 0 0);--color-neutral-600: oklch(.439 0 0);--color-neutral-700: oklch(.371 0 0);--color-neutral-800: oklch(.269 0 0);--color-neutral-900: oklch(.205 0 0);--color-neutral-950: oklch(.145 0 0);--color-stone-50: oklch(.985 .001 106.423);--color-stone-100: oklch(.97 .001 106.424);--color-stone-200: oklch(.923 .003 48.717);--color-stone-300: oklch(.869 .005 56.366);--color-stone-400: oklch(.709 .01 56.259);--color-stone-500: oklch(.553 .013 58.071);--color-stone-600: oklch(.444 .011 73.639);--color-stone-700: oklch(.374 .01 67.558);--color-stone-800: oklch(.268 .007 34.298);--color-stone-900: oklch(.216 .006 56.043);--color-stone-950: oklch(.147 .004 49.25);--color-black: #000;--color-white: #fff;--spacing: .25rem;--breakpoint-sm: 40rem;--breakpoint-md: 48rem;--breakpoint-lg: 64rem;--breakpoint-xl: 80rem;--breakpoint-2xl: 96rem;--container-3xs: 16rem;--container-2xs: 18rem;--container-xs: 20rem;--container-sm: 24rem;--container-md: 28rem;--container-lg: 32rem;--container-xl: 36rem;--container-2xl: 42rem;--container-3xl: 48rem;--container-4xl: 56rem;--container-5xl: 64rem;--container-6xl: 72rem;--container-7xl: 80rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--text-lg: 1.125rem;--text-lg--line-height: calc(1.75 / 1.125);--text-xl: 1.25rem;--text-xl--line-height: calc(1.75 / 1.25);--text-2xl: 1.5rem;--text-2xl--line-height: calc(2 / 1.5);--text-3xl: 1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl: 2.25rem;--text-4xl--line-height: calc(2.5 / 2.25);--text-5xl: 3rem;--text-5xl--line-height: 1;--text-6xl: 3.75rem;--text-6xl--line-height: 1;--text-7xl: 4.5rem;--text-7xl--line-height: 1;--text-8xl: 6rem;--text-8xl--line-height: 1;--text-9xl: 8rem;--text-9xl--line-height: 1;--font-weight-thin: 100;--font-weight-extralight: 200;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800;--font-weight-black: 900;--tracking-tighter: -.05em;--tracking-tight: -.025em;--tracking-normal: 0em;--tracking-wide: .025em;--tracking-wider: .05em;--tracking-widest: .1em;--leading-tight: 1.25;--leading-snug: 1.375;--leading-normal: 1.5;--leading-relaxed: 1.625;--leading-loose: 2;--radius-xs: .125rem;--radius-sm: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--radius-3xl: 1.5rem;--radius-4xl: 2rem;--shadow-2xs: 0 1px rgb(0 0 0 / .05);--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / .05);--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05);--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05);--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05);--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15);--drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12);--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15);--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1);--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / .15);--blur-xs: 4px;--blur-sm: 8px;--blur-md: 12px;--blur-lg: 16px;--blur-xl: 24px;--blur-2xl: 40px;--blur-3xl: 64px;--perspective-dramatic: 100px;--perspective-near: 300px;--perspective-normal: 500px;--perspective-midrange: 800px;--perspective-distant: 1200px;--aspect-video: 16 / 9;--ease-in: cubic-bezier(.4, 0, 1, 1);--ease-out: cubic-bezier(0, 0, .2, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--animate-spin: spin 1s linear infinite;--animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce: bounce 1s infinite;@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}--md-sys-color-scrim: var(--schmancy-sys-color-scrim);--md-sys-color-outline: var(--schmancy-sys-color-outline);--md-sys-color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--md-sys-color-surface-default: var(--schmancy-sys-color-surface-default);--md-sys-color-surface-dim: var(--schmancy-sys-color-surface-dim);--md-sys-color-surface-bright: var(--schmancy-sys-color-surface-bright);--md-sys-color-surface-container: var(--schmancy-sys-color-surface-container);--md-sys-color-surface-low: var(--schmancy-sys-color-surface-low);--md-sys-color-surface-high: var(--schmancy-sys-color-surface-high);--md-sys-color-surface-highest: var(--schmancy-sys-color-surface-highest);--md-sys-color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--md-sys-color-surface-on: var(--schmancy-sys-color-surface-on);--md-sys-color-on-surface-variant: var(--schmancy-sys-color-surface-onVariant);--md-sys-color-on-secondary-container: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-primary-default: var(--schmancy-sys-color-primary-default);--md-sys-color-primary-on: var(--schmancy-sys-color-primary-on);--md-sys-color-primary-container: var(--schmancy-sys-color-primary-container);--md-sys-color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--md-sys-color-secondary-default: var(--schmancy-sys-color-secondary-default);--md-sys-color-secondary-on: var(--schmancy-sys-color-secondary-on);--md-sys-color-secondary-container: var(--schmancy-sys-color-secondary-container);--md-sys-color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--md-sys-color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--md-sys-color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--md-sys-color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--md-sys-color-error-default: var(--schmancy-sys-color-error-default);--md-sys-color-error-on: var(--schmancy-sys-color-error-on);--md-sys-color-error-container: var(--schmancy-sys-color-error-container);--md-sys-color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--md-sys-color-success-default: var(--schmancy-sys-color-success-default);--md-sys-color-success-on: var(--schmancy-sys-color-success-on);--md-sys-color-success-container: var(--schmancy-sys-color-success-container);--md-sys-color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--md-sys-elevation-0: var(--schmancy-sys-elevation-0);--md-sys-elevation-1: var(--schmancy-sys-elevation-1);--md-sys-elevation-2: var(--schmancy-sys-elevation-2);--md-sys-elevation-3: var(--schmancy-sys-elevation-3);--md-sys-elevation-4: var(--schmancy-sys-elevation-4);--md-sys-elevation-5: var(--schmancy-sys-elevation-5);--md-sys-outline-1: var(--schmancy-sys-outline-1)}'), sr = window.matchMedia("(prefers-color-scheme: dark)"), Nr = new Ir((r) => {
|
|
681
|
+
const zr = Dr(':host,:root{--md-ref-typeface-brand: "Josefin Sans", sans-serif;--md-ref-typeface-plain: "Josefin Sans", sans-serif;--md-sys-color-primary: var(--schmancy-sys-color-primary-default);--md-sys-color-secondary: var(--schmancy-sys-color-secondary-default);--border-style: solid;--spacing: 4px;--color-scrim: var(--schmancy-sys-color-scrim);--color-outline: var(--schmancy-sys-color-outline);--color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--color-surface-default: var(--schmancy-sys-color-surface-default);--color-surface-dim: var(--schmancy-sys-color-surface-dim);--color-surface-bright: var(--schmancy-sys-color-surface-bright);--color-surface-container: var(--schmancy-sys-color-surface-container);--color-surface-low: var(--schmancy-sys-color-surface-low);--color-surface-high: var(--schmancy-sys-color-surface-high);--color-surface-highest: var(--schmancy-sys-color-surface-highest);--color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--color-surface-on: var(--schmancy-sys-color-surface-on);--color-surface-onVariant: var(--schmancy-sys-color-surface-onVariant);--color-primary-default: var(--schmancy-sys-color-primary-default);--color-primary-on: var(--schmancy-sys-color-primary-on);--color-primary-container: var(--schmancy-sys-color-primary-container);--color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--color-secondary-default: var(--schmancy-sys-color-secondary-default);--color-secondary-on: var(--schmancy-sys-color-secondary-on);--color-secondary-container: var(--schmancy-sys-color-secondary-container);--color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--color-error-default: var(--schmancy-sys-color-error-default);--color-error-on: var(--schmancy-sys-color-error-on);--color-error-container: var(--schmancy-sys-color-error-container);--color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--color-success-default: var(--schmancy-sys-color-success-default);--color-success-on: var(--schmancy-sys-color-success-on);--color-success-container: var(--schmancy-sys-color-success-container);--color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--shadow-0: var(--schmancy-sys-elevation-0);--shadow-1: var(--schmancy-sys-elevation-1);--shadow-2: var(--schmancy-sys-elevation-2);--shadow-3: var(--schmancy-sys-elevation-3);--shadow-4: var(--schmancy-sys-elevation-4);--shadow-5: var(--schmancy-sys-elevation-5);--outline-1: var(--schmancy-sys-outline-1);--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50: oklch(.971 .013 17.38);--color-red-100: oklch(.936 .032 17.717);--color-red-200: oklch(.885 .062 18.334);--color-red-300: oklch(.808 .114 19.571);--color-red-400: oklch(.704 .191 22.216);--color-red-500: oklch(.637 .237 25.331);--color-red-600: oklch(.577 .245 27.325);--color-red-700: oklch(.505 .213 27.518);--color-red-800: oklch(.444 .177 26.899);--color-red-900: oklch(.396 .141 25.723);--color-red-950: oklch(.258 .092 26.042);--color-orange-50: oklch(.98 .016 73.684);--color-orange-100: oklch(.954 .038 75.164);--color-orange-200: oklch(.901 .076 70.697);--color-orange-300: oklch(.837 .128 66.29);--color-orange-400: oklch(.75 .183 55.934);--color-orange-500: oklch(.705 .213 47.604);--color-orange-600: oklch(.646 .222 41.116);--color-orange-700: oklch(.553 .195 38.402);--color-orange-800: oklch(.47 .157 37.304);--color-orange-900: oklch(.408 .123 38.172);--color-orange-950: oklch(.266 .079 36.259);--color-amber-50: oklch(.987 .022 95.277);--color-amber-100: oklch(.962 .059 95.617);--color-amber-200: oklch(.924 .12 95.746);--color-amber-300: oklch(.879 .169 91.605);--color-amber-400: oklch(.828 .189 84.429);--color-amber-500: oklch(.769 .188 70.08);--color-amber-600: oklch(.666 .179 58.318);--color-amber-700: oklch(.555 .163 48.998);--color-amber-800: oklch(.473 .137 46.201);--color-amber-900: oklch(.414 .112 45.904);--color-amber-950: oklch(.279 .077 45.635);--color-yellow-50: oklch(.987 .026 102.212);--color-yellow-100: oklch(.973 .071 103.193);--color-yellow-200: oklch(.945 .129 101.54);--color-yellow-300: oklch(.905 .182 98.111);--color-yellow-400: oklch(.852 .199 91.936);--color-yellow-500: oklch(.795 .184 86.047);--color-yellow-600: oklch(.681 .162 75.834);--color-yellow-700: oklch(.554 .135 66.442);--color-yellow-800: oklch(.476 .114 61.907);--color-yellow-900: oklch(.421 .095 57.708);--color-yellow-950: oklch(.286 .066 53.813);--color-lime-50: oklch(.986 .031 120.757);--color-lime-100: oklch(.967 .067 122.328);--color-lime-200: oklch(.938 .127 124.321);--color-lime-300: oklch(.897 .196 126.665);--color-lime-400: oklch(.841 .238 128.85);--color-lime-500: oklch(.768 .233 130.85);--color-lime-600: oklch(.648 .2 131.684);--color-lime-700: oklch(.532 .157 131.589);--color-lime-800: oklch(.453 .124 130.933);--color-lime-900: oklch(.405 .101 131.063);--color-lime-950: oklch(.274 .072 132.109);--color-green-50: oklch(.982 .018 155.826);--color-green-100: oklch(.962 .044 156.743);--color-green-200: oklch(.925 .084 155.995);--color-green-300: oklch(.871 .15 154.449);--color-green-400: oklch(.792 .209 151.711);--color-green-500: oklch(.723 .219 149.579);--color-green-600: oklch(.627 .194 149.214);--color-green-700: oklch(.527 .154 150.069);--color-green-800: oklch(.448 .119 151.328);--color-green-900: oklch(.393 .095 152.535);--color-green-950: oklch(.266 .065 152.934);--color-emerald-50: oklch(.979 .021 166.113);--color-emerald-100: oklch(.95 .052 163.051);--color-emerald-200: oklch(.905 .093 164.15);--color-emerald-300: oklch(.845 .143 164.978);--color-emerald-400: oklch(.765 .177 163.223);--color-emerald-500: oklch(.696 .17 162.48);--color-emerald-600: oklch(.596 .145 163.225);--color-emerald-700: oklch(.508 .118 165.612);--color-emerald-800: oklch(.432 .095 166.913);--color-emerald-900: oklch(.378 .077 168.94);--color-emerald-950: oklch(.262 .051 172.552);--color-teal-50: oklch(.984 .014 180.72);--color-teal-100: oklch(.953 .051 180.801);--color-teal-200: oklch(.91 .096 180.426);--color-teal-300: oklch(.855 .138 181.071);--color-teal-400: oklch(.777 .152 181.912);--color-teal-500: oklch(.704 .14 182.503);--color-teal-600: oklch(.6 .118 184.704);--color-teal-700: oklch(.511 .096 186.391);--color-teal-800: oklch(.437 .078 188.216);--color-teal-900: oklch(.386 .063 188.416);--color-teal-950: oklch(.277 .046 192.524);--color-cyan-50: oklch(.984 .019 200.873);--color-cyan-100: oklch(.956 .045 203.388);--color-cyan-200: oklch(.917 .08 205.041);--color-cyan-300: oklch(.865 .127 207.078);--color-cyan-400: oklch(.789 .154 211.53);--color-cyan-500: oklch(.715 .143 215.221);--color-cyan-600: oklch(.609 .126 221.723);--color-cyan-700: oklch(.52 .105 223.128);--color-cyan-800: oklch(.45 .085 224.283);--color-cyan-900: oklch(.398 .07 227.392);--color-cyan-950: oklch(.302 .056 229.695);--color-sky-50: oklch(.977 .013 236.62);--color-sky-100: oklch(.951 .026 236.824);--color-sky-200: oklch(.901 .058 230.902);--color-sky-300: oklch(.828 .111 230.318);--color-sky-400: oklch(.746 .16 232.661);--color-sky-500: oklch(.685 .169 237.323);--color-sky-600: oklch(.588 .158 241.966);--color-sky-700: oklch(.5 .134 242.749);--color-sky-800: oklch(.443 .11 240.79);--color-sky-900: oklch(.391 .09 240.876);--color-sky-950: oklch(.293 .066 243.157);--color-blue-50: oklch(.97 .014 254.604);--color-blue-100: oklch(.932 .032 255.585);--color-blue-200: oklch(.882 .059 254.128);--color-blue-300: oklch(.809 .105 251.813);--color-blue-400: oklch(.707 .165 254.624);--color-blue-500: oklch(.623 .214 259.815);--color-blue-600: oklch(.546 .245 262.881);--color-blue-700: oklch(.488 .243 264.376);--color-blue-800: oklch(.424 .199 265.638);--color-blue-900: oklch(.379 .146 265.522);--color-blue-950: oklch(.282 .091 267.935);--color-indigo-50: oklch(.962 .018 272.314);--color-indigo-100: oklch(.93 .034 272.788);--color-indigo-200: oklch(.87 .065 274.039);--color-indigo-300: oklch(.785 .115 274.713);--color-indigo-400: oklch(.673 .182 276.935);--color-indigo-500: oklch(.585 .233 277.117);--color-indigo-600: oklch(.511 .262 276.966);--color-indigo-700: oklch(.457 .24 277.023);--color-indigo-800: oklch(.398 .195 277.366);--color-indigo-900: oklch(.359 .144 278.697);--color-indigo-950: oklch(.257 .09 281.288);--color-violet-50: oklch(.969 .016 293.756);--color-violet-100: oklch(.943 .029 294.588);--color-violet-200: oklch(.894 .057 293.283);--color-violet-300: oklch(.811 .111 293.571);--color-violet-400: oklch(.702 .183 293.541);--color-violet-500: oklch(.606 .25 292.717);--color-violet-600: oklch(.541 .281 293.009);--color-violet-700: oklch(.491 .27 292.581);--color-violet-800: oklch(.432 .232 292.759);--color-violet-900: oklch(.38 .189 293.745);--color-violet-950: oklch(.283 .141 291.089);--color-purple-50: oklch(.977 .014 308.299);--color-purple-100: oklch(.946 .033 307.174);--color-purple-200: oklch(.902 .063 306.703);--color-purple-300: oklch(.827 .119 306.383);--color-purple-400: oklch(.714 .203 305.504);--color-purple-500: oklch(.627 .265 303.9);--color-purple-600: oklch(.558 .288 302.321);--color-purple-700: oklch(.496 .265 301.924);--color-purple-800: oklch(.438 .218 303.724);--color-purple-900: oklch(.381 .176 304.987);--color-purple-950: oklch(.291 .149 302.717);--color-fuchsia-50: oklch(.977 .017 320.058);--color-fuchsia-100: oklch(.952 .037 318.852);--color-fuchsia-200: oklch(.903 .076 319.62);--color-fuchsia-300: oklch(.833 .145 321.434);--color-fuchsia-400: oklch(.74 .238 322.16);--color-fuchsia-500: oklch(.667 .295 322.15);--color-fuchsia-600: oklch(.591 .293 322.896);--color-fuchsia-700: oklch(.518 .253 323.949);--color-fuchsia-800: oklch(.452 .211 324.591);--color-fuchsia-900: oklch(.401 .17 325.612);--color-fuchsia-950: oklch(.293 .136 325.661);--color-pink-50: oklch(.971 .014 343.198);--color-pink-100: oklch(.948 .028 342.258);--color-pink-200: oklch(.899 .061 343.231);--color-pink-300: oklch(.823 .12 346.018);--color-pink-400: oklch(.718 .202 349.761);--color-pink-500: oklch(.656 .241 354.308);--color-pink-600: oklch(.592 .249 .584);--color-pink-700: oklch(.525 .223 3.958);--color-pink-800: oklch(.459 .187 3.815);--color-pink-900: oklch(.408 .153 2.432);--color-pink-950: oklch(.284 .109 3.907);--color-rose-50: oklch(.969 .015 12.422);--color-rose-100: oklch(.941 .03 12.58);--color-rose-200: oklch(.892 .058 10.001);--color-rose-300: oklch(.81 .117 11.638);--color-rose-400: oklch(.712 .194 13.428);--color-rose-500: oklch(.645 .246 16.439);--color-rose-600: oklch(.586 .253 17.585);--color-rose-700: oklch(.514 .222 16.935);--color-rose-800: oklch(.455 .188 13.697);--color-rose-900: oklch(.41 .159 10.272);--color-rose-950: oklch(.271 .105 12.094);--color-slate-50: oklch(.984 .003 247.858);--color-slate-100: oklch(.968 .007 247.896);--color-slate-200: oklch(.929 .013 255.508);--color-slate-300: oklch(.869 .022 252.894);--color-slate-400: oklch(.704 .04 256.788);--color-slate-500: oklch(.554 .046 257.417);--color-slate-600: oklch(.446 .043 257.281);--color-slate-700: oklch(.372 .044 257.287);--color-slate-800: oklch(.279 .041 260.031);--color-slate-900: oklch(.208 .042 265.755);--color-slate-950: oklch(.129 .042 264.695);--color-gray-50: oklch(.985 .002 247.839);--color-gray-100: oklch(.967 .003 264.542);--color-gray-200: oklch(.928 .006 264.531);--color-gray-300: oklch(.872 .01 258.338);--color-gray-400: oklch(.707 .022 261.325);--color-gray-500: oklch(.551 .027 264.364);--color-gray-600: oklch(.446 .03 256.802);--color-gray-700: oklch(.373 .034 259.733);--color-gray-800: oklch(.278 .033 256.848);--color-gray-900: oklch(.21 .034 264.665);--color-gray-950: oklch(.13 .028 261.692);--color-zinc-50: oklch(.985 0 0);--color-zinc-100: oklch(.967 .001 286.375);--color-zinc-200: oklch(.92 .004 286.32);--color-zinc-300: oklch(.871 .006 286.286);--color-zinc-400: oklch(.705 .015 286.067);--color-zinc-500: oklch(.552 .016 285.938);--color-zinc-600: oklch(.442 .017 285.786);--color-zinc-700: oklch(.37 .013 285.805);--color-zinc-800: oklch(.274 .006 286.033);--color-zinc-900: oklch(.21 .006 285.885);--color-zinc-950: oklch(.141 .005 285.823);--color-neutral-50: oklch(.985 0 0);--color-neutral-100: oklch(.97 0 0);--color-neutral-200: oklch(.922 0 0);--color-neutral-300: oklch(.87 0 0);--color-neutral-400: oklch(.708 0 0);--color-neutral-500: oklch(.556 0 0);--color-neutral-600: oklch(.439 0 0);--color-neutral-700: oklch(.371 0 0);--color-neutral-800: oklch(.269 0 0);--color-neutral-900: oklch(.205 0 0);--color-neutral-950: oklch(.145 0 0);--color-stone-50: oklch(.985 .001 106.423);--color-stone-100: oklch(.97 .001 106.424);--color-stone-200: oklch(.923 .003 48.717);--color-stone-300: oklch(.869 .005 56.366);--color-stone-400: oklch(.709 .01 56.259);--color-stone-500: oklch(.553 .013 58.071);--color-stone-600: oklch(.444 .011 73.639);--color-stone-700: oklch(.374 .01 67.558);--color-stone-800: oklch(.268 .007 34.298);--color-stone-900: oklch(.216 .006 56.043);--color-stone-950: oklch(.147 .004 49.25);--color-black: #000;--color-white: #fff;--spacing: .25rem;--breakpoint-sm: 40rem;--breakpoint-md: 48rem;--breakpoint-lg: 64rem;--breakpoint-xl: 80rem;--breakpoint-2xl: 96rem;--container-3xs: 16rem;--container-2xs: 18rem;--container-xs: 20rem;--container-sm: 24rem;--container-md: 28rem;--container-lg: 32rem;--container-xl: 36rem;--container-2xl: 42rem;--container-3xl: 48rem;--container-4xl: 56rem;--container-5xl: 64rem;--container-6xl: 72rem;--container-7xl: 80rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--text-lg: 1.125rem;--text-lg--line-height: calc(1.75 / 1.125);--text-xl: 1.25rem;--text-xl--line-height: calc(1.75 / 1.25);--text-2xl: 1.5rem;--text-2xl--line-height: calc(2 / 1.5);--text-3xl: 1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl: 2.25rem;--text-4xl--line-height: calc(2.5 / 2.25);--text-5xl: 3rem;--text-5xl--line-height: 1;--text-6xl: 3.75rem;--text-6xl--line-height: 1;--text-7xl: 4.5rem;--text-7xl--line-height: 1;--text-8xl: 6rem;--text-8xl--line-height: 1;--text-9xl: 8rem;--text-9xl--line-height: 1;--font-weight-thin: 100;--font-weight-extralight: 200;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800;--font-weight-black: 900;--tracking-tighter: -.05em;--tracking-tight: -.025em;--tracking-normal: 0em;--tracking-wide: .025em;--tracking-wider: .05em;--tracking-widest: .1em;--leading-tight: 1.25;--leading-snug: 1.375;--leading-normal: 1.5;--leading-relaxed: 1.625;--leading-loose: 2;--radius-xs: .125rem;--radius-sm: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--radius-3xl: 1.5rem;--radius-4xl: 2rem;--shadow-2xs: 0 1px rgb(0 0 0 / .05);--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / .05);--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05);--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05);--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05);--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15);--drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12);--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15);--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1);--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / .15);--blur-xs: 4px;--blur-sm: 8px;--blur-md: 12px;--blur-lg: 16px;--blur-xl: 24px;--blur-2xl: 40px;--blur-3xl: 64px;--perspective-dramatic: 100px;--perspective-near: 300px;--perspective-normal: 500px;--perspective-midrange: 800px;--perspective-distant: 1200px;--aspect-video: 16 / 9;--ease-in: cubic-bezier(.4, 0, 1, 1);--ease-out: cubic-bezier(0, 0, .2, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--animate-spin: spin 1s linear infinite;--animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce: bounce 1s infinite;@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}--md-sys-color-scrim: var(--schmancy-sys-color-scrim);--md-sys-color-outline: var(--schmancy-sys-color-outline);--md-sys-color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--md-sys-color-surface-default: var(--schmancy-sys-color-surface-default);--md-sys-color-surface-dim: var(--schmancy-sys-color-surface-dim);--md-sys-color-surface-bright: var(--schmancy-sys-color-surface-bright);--md-sys-color-surface-container: var(--schmancy-sys-color-surface-container);--md-sys-color-surface-low: var(--schmancy-sys-color-surface-low);--md-sys-color-surface-high: var(--schmancy-sys-color-surface-high);--md-sys-color-surface-highest: var(--schmancy-sys-color-surface-highest);--md-sys-color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--md-sys-color-surface-on: var(--schmancy-sys-color-surface-on);--md-sys-color-on-surface-variant: var(--schmancy-sys-color-surface-onVariant);--md-sys-color-on-secondary-container: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-primary-default: var(--schmancy-sys-color-primary-default);--md-sys-color-primary-on: var(--schmancy-sys-color-primary-on);--md-sys-color-primary-container: var(--schmancy-sys-color-primary-container);--md-sys-color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--md-sys-color-secondary-default: var(--schmancy-sys-color-secondary-default);--md-sys-color-secondary-on: var(--schmancy-sys-color-secondary-on);--md-sys-color-secondary-container: var(--schmancy-sys-color-secondary-container);--md-sys-color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--md-sys-color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--md-sys-color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--md-sys-color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--md-sys-color-error-default: var(--schmancy-sys-color-error-default);--md-sys-color-error-on: var(--schmancy-sys-color-error-on);--md-sys-color-error-container: var(--schmancy-sys-color-error-container);--md-sys-color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--md-sys-color-success-default: var(--schmancy-sys-color-success-default);--md-sys-color-success-on: var(--schmancy-sys-color-success-on);--md-sys-color-success-container: var(--schmancy-sys-color-success-container);--md-sys-color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--md-sys-elevation-0: var(--schmancy-sys-elevation-0);--md-sys-elevation-1: var(--schmancy-sys-elevation-1);--md-sys-elevation-2: var(--schmancy-sys-elevation-2);--md-sys-elevation-3: var(--schmancy-sys-elevation-3);--md-sys-elevation-4: var(--schmancy-sys-elevation-4);--md-sys-elevation-5: var(--schmancy-sys-elevation-5);--md-sys-outline-1: var(--schmancy-sys-outline-1)}'), ir = window.matchMedia("(prefers-color-scheme: dark)"), Nr = new Ir((r) => {
|
|
682
682
|
const e = (o) => {
|
|
683
683
|
const a = o.matches ? "dark" : "light";
|
|
684
684
|
r.next(a);
|
|
685
685
|
};
|
|
686
|
-
|
|
687
|
-
const t =
|
|
688
|
-
return r.next(t), () =>
|
|
686
|
+
ir.addEventListener("change", e);
|
|
687
|
+
const t = ir.matches ? "dark" : "light";
|
|
688
|
+
return r.next(t), () => ir.removeEventListener("change", e);
|
|
689
689
|
});
|
|
690
|
-
let
|
|
690
|
+
let Q = class extends Mr(zr) {
|
|
691
691
|
constructor() {
|
|
692
|
-
super(...arguments), this.color = this.generateRandomColor(), this.scheme = "light";
|
|
692
|
+
super(...arguments), this.color = this.generateRandomColor(), this.scheme = "light", this.root = !1;
|
|
693
693
|
}
|
|
694
694
|
connectedCallback() {
|
|
695
695
|
super.connectedCallback(), kr(this.scheme).pipe(Fr((r) => r === "auto" ? Nr : kr(r))).subscribe((r) => {
|
|
@@ -707,7 +707,7 @@ let ar = class extends Mr(Br) {
|
|
|
707
707
|
}
|
|
708
708
|
registerThemeValues(r = "schmancy", e, t) {
|
|
709
709
|
return typeof t == "object" ? Object.keys(t).map((o) => this.registerThemeValues(r, e + (e ? "-" : "") + o, t[o])).join(`
|
|
710
|
-
`) : void this.shadowRoot.host.style.setProperty(`--${r}-${e}`, t);
|
|
710
|
+
`) : void (this.root ? document.body : this.shadowRoot.host).style.setProperty(`--${r}-${e}`, t);
|
|
711
711
|
}
|
|
712
712
|
generateRandomColor() {
|
|
713
713
|
return "#" + Math.floor(16777215 * Math.random()).toString(16).padStart(6, "0");
|
|
@@ -716,10 +716,10 @@ let ar = class extends Mr(Br) {
|
|
|
716
716
|
return Sr`<slot></slot>`;
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
|
|
719
|
+
nr([sr({ type: String })], Q.prototype, "color", 2), nr([sr({ type: String })], Q.prototype, "scheme", 2), nr([sr({ type: Boolean })], Q.prototype, "root", 2), Q = nr([Tr("schmancy-theme")], Q);
|
|
720
720
|
export {
|
|
721
|
-
|
|
721
|
+
Q as S,
|
|
722
722
|
Rr as f,
|
|
723
|
-
|
|
723
|
+
zr as t
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=theme.component-
|
|
725
|
+
//# sourceMappingURL=theme.component-BmmjcnrT.js.map
|