@roxyapi/ui 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/AGENTS.md +1 -0
  2. package/README.md +1 -0
  3. package/components-catalog.json +194 -149
  4. package/dist/cdn/components/endpoint-form.js +1 -1
  5. package/dist/cdn/components/endpoint-form.js.map +1 -1
  6. package/dist/cdn/components/kp-finance-card.js +350 -0
  7. package/dist/cdn/components/kp-finance-card.js.map +7 -0
  8. package/dist/cdn/locales/de.js +1 -1
  9. package/dist/cdn/locales/de.js.map +2 -2
  10. package/dist/cdn/locales/es.js +1 -1
  11. package/dist/cdn/locales/es.js.map +2 -2
  12. package/dist/cdn/locales/fr.js +1 -1
  13. package/dist/cdn/locales/fr.js.map +2 -2
  14. package/dist/cdn/locales/hi.js +1 -1
  15. package/dist/cdn/locales/hi.js.map +2 -2
  16. package/dist/cdn/locales/pt.js +1 -1
  17. package/dist/cdn/locales/pt.js.map +2 -2
  18. package/dist/cdn/locales/ru.js +1 -1
  19. package/dist/cdn/locales/ru.js.map +2 -2
  20. package/dist/cdn/locales/tr.js +1 -1
  21. package/dist/cdn/locales/tr.js.map +2 -2
  22. package/dist/cdn/roxy-ui.js +68 -68
  23. package/dist/cdn/roxy-ui.js.map +4 -4
  24. package/dist/cdn/widgets.js +1 -1
  25. package/dist/components/endpoint-form.js +1 -1
  26. package/dist/components/endpoint-form.js.map +1 -1
  27. package/dist/components/kp-finance-card.d.ts +53 -0
  28. package/dist/components/kp-finance-card.d.ts.map +1 -0
  29. package/dist/components/kp-finance-card.js +2 -0
  30. package/dist/components/kp-finance-card.js.map +7 -0
  31. package/dist/generated/endpoint-bindings.d.ts.map +1 -1
  32. package/dist/generated/tool-components.d.ts.map +1 -1
  33. package/dist/i18n/chrome-strings.d.ts +1 -1
  34. package/dist/i18n/chrome-strings.d.ts.map +1 -1
  35. package/dist/index.cjs +81 -81
  36. package/dist/index.cjs.map +4 -4
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +85 -85
  40. package/dist/index.js.map +4 -4
  41. package/dist/locales/de.d.ts.map +1 -1
  42. package/dist/locales/de.js +1 -1
  43. package/dist/locales/de.js.map +2 -2
  44. package/dist/locales/es.d.ts.map +1 -1
  45. package/dist/locales/es.js +1 -1
  46. package/dist/locales/es.js.map +2 -2
  47. package/dist/locales/fr.d.ts.map +1 -1
  48. package/dist/locales/fr.js +1 -1
  49. package/dist/locales/fr.js.map +2 -2
  50. package/dist/locales/hi.d.ts.map +1 -1
  51. package/dist/locales/hi.js +1 -1
  52. package/dist/locales/hi.js.map +2 -2
  53. package/dist/locales/pt.d.ts.map +1 -1
  54. package/dist/locales/pt.js +1 -1
  55. package/dist/locales/pt.js.map +2 -2
  56. package/dist/locales/ru.d.ts.map +1 -1
  57. package/dist/locales/ru.js +1 -1
  58. package/dist/locales/ru.js.map +2 -2
  59. package/dist/locales/tr.d.ts.map +1 -1
  60. package/dist/locales/tr.js +1 -1
  61. package/dist/locales/tr.js.map +2 -2
  62. package/dist/manifest.d.ts.map +1 -1
  63. package/dist/manifest.json +1 -0
  64. package/dist/schemas/post--kabbalah-compatibility.json +1 -1
  65. package/dist/schemas/post--kabbalah-gematria.json +1 -1
  66. package/dist/schemas/post--kabbalah-name-profile.json +1 -1
  67. package/dist/schemas/post--vedic-astrology-dasha-current.json +1 -1
  68. package/dist/schemas/post--vedic-astrology-kp-daily-finance.json +1 -0
  69. package/dist/styles/themes/practitioner.css +5 -5
  70. package/dist/tool-component.cjs +1 -1
  71. package/dist/tool-component.cjs.map +2 -2
  72. package/dist/tool-component.js +1 -1
  73. package/dist/tool-component.js.map +2 -2
  74. package/dist/types/index.d.ts +1 -1
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/types.gen.d.ts +556 -26
  77. package/dist/types/types.gen.d.ts.map +1 -1
  78. package/dist/version.d.ts +1 -1
  79. package/package.json +1 -1
  80. package/src/components/kp-finance-card.ts +586 -0
  81. package/src/generated/endpoint-bindings.ts +8 -0
  82. package/src/generated/tool-components.ts +5 -0
  83. package/src/i18n/chrome-strings.ts +25 -0
  84. package/src/index.ts +1 -0
  85. package/src/locales/de.ts +27 -0
  86. package/src/locales/es.ts +26 -0
  87. package/src/locales/field-labels/de.ts +10 -1
  88. package/src/locales/field-labels/es.ts +9 -1
  89. package/src/locales/field-labels/fr.ts +11 -1
  90. package/src/locales/field-labels/hi.ts +9 -1
  91. package/src/locales/field-labels/pt.ts +9 -1
  92. package/src/locales/field-labels/ru.ts +9 -1
  93. package/src/locales/field-labels/tr.ts +9 -1
  94. package/src/locales/fr.ts +26 -0
  95. package/src/locales/hi.ts +28 -0
  96. package/src/locales/pt.ts +25 -0
  97. package/src/locales/ru.ts +26 -0
  98. package/src/locales/tr.ts +29 -0
  99. package/src/manifest.ts +13 -0
  100. package/src/styles/themes/practitioner.css +5 -5
  101. package/src/types/index.ts +1 -1
  102. package/src/types/types.gen.ts +563 -26
  103. package/src/version.ts +1 -1
@@ -0,0 +1,350 @@
1
+ var RoxyUI_kp_finance_card=(()=>{var q=Object.defineProperty;var $e=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var ct=Object.prototype.hasOwnProperty;var lt=(o,e)=>{for(var t in e)q(o,t,{get:e[t],enumerable:!0})},ht=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dt(e))!ct.call(o,n)&&n!==t&&q(o,n,{get:()=>e[n],enumerable:!(r=$e(e,n))||r.enumerable});return o};var ut=o=>ht(q({},"__esModule",{value:!0}),o),f=(o,e,t,r)=>{for(var n=r>1?void 0:r?$e(e,t):e,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(e,t,n):i(n))||n);return r&&n&&q(e,t,n),n};var Vt={};lt(Vt,{ROXY_UI_TOKENS_STYLE_ID:()=>G,RoxyKpFinanceCard:()=>O,injectRoxyTokens:()=>K});var ke=`/**
2
+ * Roxy UI design tokens. 47 CSS custom properties that every component reads. Light + dark defaults. Host page overrides at :root or per element. No Tailwind, no class-name overrides, no JS theme switcher.
3
+ *
4
+ * Delivery model: this file ships as a global light-DOM stylesheet (linked, or auto-injected by the CDN bundle). Why every rule sits in a cascade layer is the note above the layer statement below. Custom properties inherit through the shadow boundary, so tokens set on a light-DOM ancestor reach every component shadow. The explicit theme blocks therefore target light-DOM selectors (:root, .dark, [data-theme="dark"], a wrapper element), NOT :host (a :host rule in a global sheet matches nothing). The :host([data-theme]) selectors are kept only for the case where this CSS is ever adopted directly into a shadow root; they are inert in global delivery.
5
+ *
6
+ * Light is the default. Dark applies under any of:
7
+ * - prefers-color-scheme: dark
8
+ * - [data-theme="dark"] on the element itself or any ancestor (typically :root)
9
+ * - .dark class on the element itself or any ancestor (typically :root)
10
+ *
11
+ * Explicit choice wins over the OS: the [data-theme] / .dark blocks come after the @media (prefers-color-scheme: dark) block in source order, and a closer ancestor overrides a farther one through normal custom-property inheritance.
12
+ *
13
+ * Motion gating:
14
+ * - --roxy-motion-duration defaults to 200ms. Set to 0ms to disable.
15
+ * - prefers-reduced-motion: reduce forces 0ms regardless of host overrides.
16
+ */
17
+
18
+ /*
19
+ * Two mechanisms keep the host page in charge of every token, and both are load bearing.
20
+ *
21
+ * The rules below sit in the \`roxy.tokens\` cascade layer, and an unlayered declaration beats a
22
+ * layered one at ANY specificity. So a plain \`:root { --roxy-accent: #8b5cf6 }\` on the host page
23
+ * wins, and so does the same line written inside a layer of its own, because the layer
24
+ * statement above registers ours first and the CDN bundle injects this sheet at the top of
25
+ * <head>. A host that links this file after its own CSS orders the layers itself:
26
+ * \`@layer roxy, base, components, utilities;\` before either sheet.
27
+ *
28
+ * Every selector is ALSO wrapped in :where(), which has ZERO specificity, so a host declaration
29
+ * still wins wherever a layer cannot decide it. Without that, \`:root.dark\` and
30
+ * \`[data-theme="dark"]\` would carry class and attribute specificity (0,1,1) and outrank a plain
31
+ * \`:root\` (0,1,0), and one brand override would hold under prefers-color-scheme and revert
32
+ * under the other two dark signals: one line, three different results.
33
+ *
34
+ * Source order still decides among the rules in THIS file, which is what lets the explicit dark
35
+ * block beat the light defaults when both match.
36
+ */
37
+
38
+ /* Layer order, named here so it is fixed wherever the two files load: the theme presets in
39
+ * styles/themes/*.css reassign tokens and must win over these defaults. Both files declare it,
40
+ * so either one loading alone still orders the pair. */
41
+ @layer roxy.tokens, roxy.theme;
42
+
43
+ @layer roxy.tokens {
44
+ :where(:root, :host) {
45
+ /* Native controls follow the theme, and this is the ONLY thing that makes them.
46
+ *
47
+ * \`color-scheme\` is a real property, not the \`prefers-color-scheme\` query above it, and
48
+ * without it the browser paints every native control in its LIGHT appearance whatever our
49
+ * tokens say. A <select> looks fine closed, because we colour it ourselves, and then opens a
50
+ * light popup whose <option> rows inherit our near-white --roxy-fg: white text on white. The
51
+ * same omission dims a date or time picker's calendar, the number spinner, the autofill
52
+ * highlight and the scrollbar.
53
+ *
54
+ * It belongs HERE and not on the controls, because a per-control fix is one rule per input
55
+ * type per component, forever, and it still cannot reach the popup: that is rendered by the
56
+ * OS outside the DOM, so no selector we write applies to it. Declared once per theme trigger,
57
+ * beside the tokens, it covers every control in every component and on the host page.
58
+ * \`color-scheme\` is inherited, and these selectors match :host, so each shadow root gets it. */
59
+ color-scheme: light;
60
+
61
+ /* Color: brand */
62
+ --roxy-primary: #0f172a;
63
+ --roxy-secondary: #475569;
64
+ --roxy-accent: #f59e0b;
65
+ /* Text-safe accent variant, DERIVED from --roxy-accent so overriding the accent
66
+ * alone rebrands the whole library. Never hardcode a colour here: a consumer
67
+ * following the theming recipe sets only --roxy-accent, and a fixed value leaves
68
+ * the active tab label, the conjunction aspect lines and the focus ring on the
69
+ * old hue, giving a two-tone palette from a one-line override.
70
+ *
71
+ * The raw accent is too light for text (amber-500 is 2.14:1 on white, far under
72
+ * WCAG AA). Mixing 70% of it into black is measured, not guessed: rasterised to
73
+ * real pixels, the darkest of the twelve shipped domain accents still lands at
74
+ * 5.24:1 on white, above AA. At 75% amber falls to 4.46 and fails, so 70 is a
75
+ * ceiling, not a round number.
76
+ *
77
+ * Fills (planet glyphs, chart accents, non-text badges) keep --roxy-accent. */
78
+ --roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
79
+
80
+ /* Color: status. The base value (success, warning, danger, info) is for
81
+ * fills and tints. The -fg partner is the INK for a tint of that base, and it
82
+ * is DERIVED from it exactly as --roxy-accent-ink is derived from the accent,
83
+ * so re-pointing a status colour carries its text with it instead of leaving
84
+ * the old hue on every rule that reads the ink.
85
+ *
86
+ * 70 percent toward black is the ratio the accent already uses, and it is
87
+ * measured rather than chosen: rasterised to real pixels the four shipped
88
+ * pairs land between 7.4 and 9.8 to 1 on the card and between 6.5 and 8.1 on
89
+ * a 12 percent tint of their own base, every one of them above WCAG AA and at
90
+ * or above the fixed hexes they replace. Use -fg whenever status color hits
91
+ * text. */
92
+ --roxy-success: #16a34a;
93
+ --roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
94
+ --roxy-warning: #ea580c;
95
+ --roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
96
+ --roxy-danger: #dc2626;
97
+ --roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
98
+ --roxy-info: #0284c7;
99
+ --roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
100
+
101
+ /* Color: surface */
102
+ --roxy-bg: #ffffff;
103
+ --roxy-surface: #ffffff;
104
+ --roxy-fg: #0a0a0a;
105
+ --roxy-muted: #71717a;
106
+ --roxy-border: #e4e4e7;
107
+ --roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);
108
+
109
+ /* Typography */
110
+ --roxy-font-sans:
111
+ "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
112
+ sans-serif;
113
+ --roxy-font-mono:
114
+ "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
115
+ monospace;
116
+ /* Heading/display font. Defaults to the sans stack so nothing changes for an
117
+ * existing consumer; a preset (the practitioner theme ships a serif) overrides
118
+ * it to restyle every result heading and the self-fetch form title in one token.
119
+ * Fonts do not vary by theme, so it is declared once here and inherited by the
120
+ * dark/light blocks unchanged. */
121
+ --roxy-font-display: var(--roxy-font-sans);
122
+
123
+ --roxy-text-xs: 0.75rem;
124
+ --roxy-text-sm: 0.875rem;
125
+ --roxy-text-base: 1rem;
126
+ --roxy-text-lg: 1.125rem;
127
+ --roxy-text-xl: 1.5rem;
128
+
129
+ --roxy-weight-normal: 400;
130
+ --roxy-weight-bold: 600;
131
+
132
+ --roxy-leading-tight: 1.2;
133
+ --roxy-leading-normal: 1.5;
134
+
135
+ --roxy-tracking-tight: -0.02em;
136
+ --roxy-tracking-normal: 0em;
137
+
138
+ /* Spacing */
139
+ --roxy-space-xs: 0.25rem;
140
+ --roxy-space-sm: 0.5rem;
141
+ --roxy-space-md: 1rem;
142
+ --roxy-space-lg: 1.5rem;
143
+ --roxy-space-xl: 2.5rem;
144
+
145
+ /* Radius */
146
+ --roxy-radius-sm: 4px;
147
+ --roxy-radius-md: 8px;
148
+ --roxy-radius-lg: 12px;
149
+ --roxy-radius-full: 9999px;
150
+
151
+ /* Shadow */
152
+ --roxy-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
153
+ --roxy-shadow-md:
154
+ 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
155
+ --roxy-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.14);
156
+
157
+ /* Motion */
158
+ --roxy-motion-duration: 200ms;
159
+ --roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
160
+
161
+ /* Heat scale: a single base hue. Consumers mix it with \`transparent\` at
162
+ * increasing percentages to paint cooler-to-hotter tiers. The mix-with-
163
+ * transparent approach lets the page bg show through and keeps text
164
+ * colour stable (always --roxy-fg), so the cells read in both themes
165
+ * without per-tier text colours. */
166
+ --roxy-heat: var(--roxy-danger, #ef4444);
167
+ }
168
+
169
+ /* Dark theme via system preference */
170
+ @media (prefers-color-scheme: dark) {
171
+ :where(:root, :host) {
172
+ color-scheme: dark;
173
+ --roxy-primary: #f8fafc;
174
+ --roxy-secondary: #94a3b8;
175
+ --roxy-accent: #fbbf24;
176
+ --roxy-accent-ink: var(--roxy-accent);
177
+
178
+ /* The dark blocks mix toward WHITE, and BOTH dark triggers carry the line.
179
+ * Without it a visitor on system dark with no data-theme attribute inherits
180
+ * the light derivation, which lands a dark green on a near-black surface and
181
+ * fails WCAG AA. */
182
+ --roxy-success: #22c55e;
183
+ --roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
184
+ --roxy-warning: #fb923c;
185
+ --roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
186
+ --roxy-danger: #ef4444;
187
+ --roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
188
+ --roxy-info: #38bdf8;
189
+ --roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
190
+
191
+ --roxy-bg: #0a0a0a;
192
+ --roxy-surface: #18181b;
193
+ --roxy-fg: #fafafa;
194
+ --roxy-muted: #a1a1aa;
195
+ --roxy-border: #27272a;
196
+ --roxy-ring: color-mix(in srgb, var(--roxy-accent) 45%, transparent);
197
+
198
+ --roxy-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
199
+ --roxy-shadow-md:
200
+ 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
201
+ --roxy-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.7);
202
+
203
+ --roxy-heat: var(--roxy-danger, #ef4444);
204
+ }
205
+ }
206
+
207
+ /* Light theme override. Beats the @media (prefers-color-scheme: dark) block
208
+ * when the host explicitly opts back into light. Without this, a dark-mode OS
209
+ * pins the tokens to dark even after data-theme="light" is set. The light-DOM
210
+ * selectors (:root.light, .light, [data-theme="light"]) set the vars on the
211
+ * ancestor or the element itself so they inherit into every component shadow;
212
+ * :host([data-theme="light"]) is inert in global delivery and kept only for
213
+ * shadow-adopted use. */
214
+ :where(
215
+ :root[data-theme="light"],
216
+ [data-theme="light"],
217
+ :root.light,
218
+ .light,
219
+ :host([data-theme="light"])
220
+ ) {
221
+ color-scheme: light;
222
+ --roxy-primary: #0f172a;
223
+ --roxy-secondary: #475569;
224
+ --roxy-accent: #f59e0b;
225
+ --roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
226
+
227
+ --roxy-success: #16a34a;
228
+ --roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
229
+ --roxy-warning: #ea580c;
230
+ --roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
231
+ --roxy-danger: #dc2626;
232
+ --roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
233
+ --roxy-info: #0284c7;
234
+ --roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
235
+
236
+ --roxy-bg: #ffffff;
237
+ --roxy-surface: #ffffff;
238
+ --roxy-fg: #0a0a0a;
239
+ --roxy-muted: #71717a;
240
+ --roxy-border: #e4e4e7;
241
+ --roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);
242
+
243
+ --roxy-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
244
+ --roxy-shadow-md:
245
+ 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
246
+ --roxy-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.14);
247
+ }
248
+
249
+ /* Dark theme via explicit opt-in. The light-DOM selectors (:root.dark, .dark,
250
+ * [data-theme="dark"]) set the vars on the ancestor or the element itself so
251
+ * they inherit into every component shadow; this is what makes a .dark class on
252
+ * any ancestor (Tailwind, shadcn) actually theme the components in global
253
+ * delivery. :host([data-theme="dark"]) is inert in global delivery and kept
254
+ * only for shadow-adopted use. */
255
+ :where(
256
+ :root[data-theme="dark"],
257
+ [data-theme="dark"],
258
+ :root.dark,
259
+ .dark,
260
+ :host([data-theme="dark"])
261
+ ) {
262
+ color-scheme: dark;
263
+ --roxy-primary: #f8fafc;
264
+ --roxy-secondary: #94a3b8;
265
+ --roxy-accent: #fbbf24;
266
+ --roxy-accent-ink: var(--roxy-accent);
267
+
268
+ --roxy-success: #22c55e;
269
+ --roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
270
+ --roxy-warning: #fb923c;
271
+ --roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
272
+ --roxy-danger: #ef4444;
273
+ --roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
274
+ --roxy-info: #38bdf8;
275
+ --roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
276
+
277
+ --roxy-bg: #0a0a0a;
278
+ --roxy-surface: #18181b;
279
+ --roxy-fg: #fafafa;
280
+ --roxy-muted: #a1a1aa;
281
+ --roxy-border: #27272a;
282
+ --roxy-ring: color-mix(in srgb, var(--roxy-accent) 45%, transparent);
283
+
284
+ --roxy-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
285
+ --roxy-shadow-md:
286
+ 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
287
+ --roxy-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.7);
288
+
289
+ --roxy-heat: var(--roxy-danger, #ef4444);
290
+ }
291
+
292
+ /* Reduced motion override */
293
+ @media (prefers-reduced-motion: reduce) {
294
+ :where(:root, :host) {
295
+ --roxy-motion-duration: 0ms;
296
+ }
297
+ }
298
+ }
299
+ `;var G="roxy-ui-tokens";function K(){if(typeof document>"u")return null;let o=document.getElementById(G);if(o)return o;let e=document.createElement("style");return e.id=G,e.textContent=ke,document.head.prepend(e),e}var W=globalThis,V=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ce=Symbol(),Se=new WeakMap,P=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ce)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(V&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Se.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Se.set(t,e))}return e}toString(){return this.cssText}},Ae=o=>new P(typeof o=="string"?o:o+"",void 0,ce),y=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new P(t,o,ce)},_e=(o,e)=>{if(V)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),n=W.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},le=V?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Ae(t)})(o):o;var{is:pt,defineProperty:mt,getOwnPropertyDescriptor:ft,getOwnPropertyNames:gt,getOwnPropertySymbols:yt,getPrototypeOf:xt}=Object,Y=globalThis,Ce=Y.trustedTypes,bt=Ce?Ce.emptyScript:"",vt=Y.reactiveElementPolyfillSupport,U=(o,e)=>o,D={toAttribute(o,e){switch(e){case Boolean:o=o?bt:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},J=(o,e)=>!pt(o,e),Re={attribute:!0,type:String,converter:D,reflect:!1,useDefault:!1,hasChanged:J};Symbol.metadata??=Symbol("metadata"),Y.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Re){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&mt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:s}=ft(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){let c=n?.call(this);s?.call(this,i),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Re}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let e=xt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){let t=this.properties,r=[...gt(t),...yt(t)];for(let n of r)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)t.unshift(le(n))}else e!==void 0&&t.push(le(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _e(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:D).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:D;this._$Em=n;let c=i.fromAttribute(t,s.type);this[n]=c??this._$Ej?.get(n)??c,this._$Em=null}}requestUpdate(e,t,r,n=!1,s){if(e!==void 0){let i=this.constructor;if(n===!1&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??J)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,c=this[n];i!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,s,c)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,vt?.({ReactiveElement:v}),(Y.reactiveElementVersions??=[]).push("2.1.2");var ye=globalThis,Ee=o=>o,Z=ye.trustedTypes,Le=Z?Z.createPolicy("lit-html",{createHTML:o=>o}):void 0,De="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Me="?"+$,wt=`<${Me}>`,_=document,H=()=>_.createComment(""),I=o=>o===null||typeof o!="object"&&typeof o!="function",xe=Array.isArray,$t=o=>xe(o)||typeof o?.[Symbol.iterator]=="function",he=`[
300
+ \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Te=/-->/g,Ne=/>/g,S=RegExp(`>|${he}(?:([^\\s"'>=/]+)(${he}*=${he}*(?:[^
301
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Oe=/'/g,Pe=/"/g,He=/^(?:script|style|textarea|title)$/i,be=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),a=be(1),or=be(2),nr=be(3),C=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Ue=new WeakMap,A=_.createTreeWalker(_,129);function Ie(o,e){if(!xe(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Le!==void 0?Le.createHTML(e):e}var kt=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=M;for(let c=0;c<t;c++){let d=o[c],p,u,h=-1,b=0;for(;b<d.length&&(i.lastIndex=b,u=i.exec(d),u!==null);)b=i.lastIndex,i===M?u[1]==="!--"?i=Te:u[1]!==void 0?i=Ne:u[2]!==void 0?(He.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=S):u[3]!==void 0&&(i=S):i===S?u[0]===">"?(i=n??M,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,p=u[1],i=u[3]===void 0?S:u[3]==='"'?Pe:Oe):i===Pe||i===Oe?i=S:i===Te||i===Ne?i=M:(i=S,n=void 0);let w=i===S&&o[c+1].startsWith("/>")?" ":"";s+=i===M?d+wt:h>=0?(r.push(p),d.slice(0,h)+De+d.slice(h)+$+w):d+$+(h===-2?c:w)}return[Ie(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},j=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,c=e.length-1,d=this.parts,[p,u]=kt(e,t);if(this.el=o.createElement(p,r),A.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=A.nextNode())!==null&&d.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(De)){let b=u[i++],w=n.getAttribute(h).split($),B=/([.?@])?(.*)/.exec(b);d.push({type:1,index:s,name:B[2],strings:w,ctor:B[1]==="."?pe:B[1]==="?"?me:B[1]==="@"?fe:E}),n.removeAttribute(h)}else h.startsWith($)&&(d.push({type:6,index:s}),n.removeAttribute(h));if(He.test(n.tagName)){let h=n.textContent.split($),b=h.length-1;if(b>0){n.textContent=Z?Z.emptyScript:"";for(let w=0;w<b;w++)n.append(h[w],H()),A.nextNode(),d.push({type:2,index:++s});n.append(h[b],H())}}}else if(n.nodeType===8)if(n.data===Me)d.push({type:2,index:s});else{let h=-1;for(;(h=n.data.indexOf($,h+1))!==-1;)d.push({type:7,index:s}),h+=$.length-1}s++}}static createElement(e,t){let r=_.createElement("template");return r.innerHTML=e,r}};function R(o,e,t=o,r){if(e===C)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=I(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=R(o,n._$AS(o,e.values),n,r)),e}var ue=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??_).importNode(t,!0);A.currentNode=n;let s=A.nextNode(),i=0,c=0,d=r[0];for(;d!==void 0;){if(i===d.index){let p;d.type===2?p=new F(s,s.nextSibling,this,e):d.type===1?p=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(p=new ge(s,this,e)),this._$AV.push(p),d=r[++c]}i!==d?.index&&(s=A.nextNode(),i++)}return A.currentNode=_,n}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},F=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=R(this,e,t),I(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==C&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$t(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&I(this._$AH)?this._$AA.nextSibling.data=e:this.T(_.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=j.createElement(Ie(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new ue(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=Ue.get(e.strings);return t===void 0&&Ue.set(e.strings,t=new j(e)),t}k(e){xe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(H()),this.O(H()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Ee(e).nextSibling;Ee(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(s===void 0)e=R(this,e,t,0),i=!I(e)||e!==this._$AH&&e!==C,i&&(this._$AH=e);else{let c=e,d,p;for(e=s[0],d=0;d<s.length-1;d++)p=R(this,c[r+d],t,d),p===C&&(p=this._$AH[d]),i||=!I(p)||p!==this._$AH[d],p===l?e=l:e!==l&&(e+=(p??"")+s[d+1]),this._$AH[d]=p}i&&!n&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pe=class extends E{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},me=class extends E{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},fe=class extends E{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=R(this,e,t,0)??l)===C)return;let r=this._$AH,n=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==l&&(r===l||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ge=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){R(this,e)}};var St=ye.litHtmlPolyfillSupport;St?.(j,F),(ye.litHtmlVersions??=[]).push("3.3.3");var je=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new F(e.insertBefore(H(),s),s,void 0,t??{})}return n._$AI(o),n};var ve=globalThis,k=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};k._$litElement$=!0,k.finalized=!0,ve.litElementHydrateSupport?.({LitElement:k});var At=ve.litElementPolyfillSupport;At?.({LitElement:k});(ve.litElementVersions??=[]).push("4.2.2");var Fe=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var _t={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:J},Ct=(o=_t,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(c){let d=e.get.call(this);e.set.call(this,c),this.requestUpdate(i,d,o,!0,c)},init(c){return c!==void 0&&this.C(i,void 0,o,c),c}}}if(r==="setter"){let{name:i}=t;return function(c){let d=this[i];e.call(this,c),this.requestUpdate(i,d,o,!0,c)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(e,t)=>typeof t=="object"?Ct(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function L(o){return g({...o,state:!0,attribute:!1})}function Q(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ze(o){return o.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}var Rt=(o,e)=>e?o[Q(e)]:void 0,Et={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},Be=o=>Rt(Et,o);var T=o=>o??l;function qe(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var Ge="__ROXY_UI_I18N__";function We(){let o=globalThis,e=o[Ge];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[Ge]=t,t}function Ke(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function Ve(o,e,t){if(!o)return Ke(e,t);let{catalogs:r}=We(),n=o.toLowerCase(),s=r[n]??r[n.split("-")[0]];return Ke(s?.[Q(e)]??e,t)}function Ye(o){let{listeners:e}=We();return e.add(o),()=>{e.delete(o)}}var ee=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=Ye(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var te=class extends k{constructor(){super();this.translator=(t,r)=>this.t(t,r);new ee(this)}t(t,r){return Ve(this.effectiveLang(),t,r)}effectiveLang(){return qe(this)}};var re=y`:host{--roxy-label-col:minmax(0, 25%);font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var Lt="__cols",Tt="__rows";function Nt(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function oe(o){if(Array.isArray(o)){let s=!1,i=o.map(c=>{let d=oe(c);return d!==c&&(s=!0),d});return s?i:o}if(!Nt(o))return o;let e=o[Lt],t=o[Tt];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(o).length===2)return t.map(s=>{let i={};return e.forEach((c,d)=>{i[c]=oe(s[d])}),i});let r=!1,n={};for(let[s,i]of Object.entries(o)){let c=oe(i);c!==i&&(r=!0),n[s]=c}return r?n:o}function Je(o){return oe(o)}var ne="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Ze(o){return!!o&&!o.startsWith("pk_")}function Xe(o,e={}){e.warn&&console.warn(ne),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:ne},bubbles:!0,composed:!0}))}var Ot="https://roxyapi.com/api/v2";async function Pt(o){try{let e=await o.json();if(e?.error)return e.error}catch{}return`Request failed (${o.status})`}var se=class{constructor(e){this.baseUrl=Ot;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:this.proxyBody(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await Pt(r));let n=await r.json();if(t.signal.aborted)return;this.host.data=n}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}proxyBody(e){return JSON.stringify(this.submitContext?{...e,context:this.submitContext}:e)}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return this.publishableKey&&(n["X-API-Key"]=this.publishableKey),e.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:n,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return Ze(this.publishableKey)?(this.host.error=ne,Xe(this.host),!0):!1}};function Qe(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let h=n[u];return delete n[u],encodeURIComponent(String(h??""))}),i=new Set(r),c={},d={};for(let[p,u]of Object.entries(n))u===void 0||u===""||(e==="GET"||i.has(p)?c[p]=u:d[p]=u);return{path:s,method:e,query:c,body:e==="POST"?d:void 0}}function et(){return a`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var fo=y`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ut=y`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,bo=y`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Ut}`;function tt(o,e,t){let r=o.filter(n=>!!n.body);return r.length===0?l:a`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>a`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${et()} ${n.aside?a`<span class="interp-aside"><small>${n.aside}</small></span>`:l}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??l}</div></details>`)}</section>`}var Dt="roxy-data";function Mt(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ie=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(Mt(e)&&e.classList.contains(Dt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var Ht={fromAttribute:o=>{if(o!=null){try{let e=JSON.parse(o);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},m=class extends te{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(Qe(this.endpoint,this.method,r.values,r.queryKeys??[]))};new ie(this),this.fetcher=new se(this)}static{this.styles=[re]}willUpdate(t){if(t.has("data")&&this.data!=null){let r=Je(this.data);r!==this.data&&(this.data=r)}t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl),t.has("submitContext")&&(this.fetcher.submitContext=this.submitContext)}render(){return a`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(n=>n.trim().toLowerCase()).filter(n=>/^[a-z][a-z0-9-]*$/.test(n));if(t.length===0)return l;let r=t.map(n=>`[part~="${n}"]{display:none!important}`).join("");return a`<style>${r}</style>`}renderState(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?a`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?l:tt(t,r,this.t(n??"Reading"))}renderResult(t){let r=this.sticky?a`${this.renderForm()}${this.renderData(t)}`:a`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.renderData(t)}`;return this.showAttribution()?a`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return a`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return a`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${T(this.specUrl)}" publishable-key="${T(this.publishableKey)}" location-url="${T(this.locationUrl)}" submit-label="${T(this.submitLabel)}" lang="${T(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return a`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return a`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=a`<div class="roxy-error" role="alert" part="error">${this.t(t)}</div>`;return this.endpoint?a`${r}${this.renderForm()}`:r}};f([g({attribute:!1})],m.prototype,"data",2),f([g({type:String,attribute:"data-endpoint"})],m.prototype,"endpoint",2),f([g({type:String})],m.prototype,"method",2),f([g({type:String,attribute:"publishable-key"})],m.prototype,"publishableKey",2),f([g({type:String,attribute:"base-url"})],m.prototype,"baseUrl",2),f([g({type:String,attribute:"spec-url"})],m.prototype,"specUrl",2),f([g({type:String,attribute:"submit-url"})],m.prototype,"submitUrl",2),f([g({attribute:"submit-context",converter:Ht})],m.prototype,"submitContext",2),f([g({type:String,attribute:"location-url"})],m.prototype,"locationUrl",2),f([g({type:Boolean})],m.prototype,"remember",2),f([g({type:Boolean,attribute:"hide-readings",reflect:!0})],m.prototype,"hideReadings",2),f([g({type:String,attribute:"hide-sections",reflect:!0})],m.prototype,"hideSections",2),f([g({type:String,attribute:"submit-label"})],m.prototype,"submitLabel",2),f([g({type:String})],m.prototype,"attribution",2),f([L()],m.prototype,"loading",2),f([L()],m.prototype,"error",2),f([L()],m.prototype,"selfFetched",2),f([L()],m.prototype,"editing",2),f([L()],m.prototype,"sticky",2);var we=/^\d{4}-\d{2}-\d{2}$/,It=/^\d{4}-\d{2}$/,ot=/^\d{2}:\d{2}(:\d{2})?$/,jt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,rt=new Map;function ae(o){if(!o)return["en"];let e=rt.get(o);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(o)[0]??"en"}catch{t="en"}return rt.set(o,t),[t,"en"]}function nt(o){let e=ot.test(o)?`1970-01-01T${o}`:we.test(o)?`${o}T00:00:00`:It.test(o)?`${o}-01T00:00:00`:jt.test(o)?o:null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(o)}}function N(o,e){if(typeof e!="string"||e.length===0||we.test(e))return"";let{d:t,timeZone:r}=nt(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString(ae(o),{hour:"numeric",minute:"2-digit",timeZone:r})}function Ft(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=nt(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(ae(o),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function de(o,e){let t=e.filter(Boolean);return t.length<2?t[0]??"":new Intl.ListFormat(ae(o),{style:"long",type:"conjunction"}).format(t)}function x(o,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(ae(o),{maximumFractionDigits:t})}var zt={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function st(o,e,t){let r=typeof e=="string"?zt[e]??ze(e):"",n=typeof t=="number"?`${x(o,t,2)}°`:"";return r&&n?`${r} (${n})`:r||n}function z(o,e,t){let r=typeof e=="string"&&we.test(e)&&typeof t=="string"&&ot.test(t)?`${e}T${t}`:e,n=Ft(o,r),s=N(o,r);return n&&s?`${n}, ${s}`:n||s}var it=y`.roxy-frame{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function at(o,e,t){if(!e?.ayanamsa)return l;let r=st(o,e.ayanamsa);if(!r)return l;let n=typeof e.ayanamsaDegrees=="number"?x(o,e.ayanamsaDegrees,4):void 0;return a`<p class="roxy-frame">${n===void 0?t("Sidereal frame: {{frame}}",{frame:r}):t("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:r,degrees:n})}</p>`}var Bt={strong:"Strong",favourable:"Favourable",mixed:"Mixed",caution:"Caution",unfavourable:"Unfavourable"},qt={favourable:"Favourable",mixed:"Mixed",unfavourable:"Unfavourable",neutral:"Neutral"},Gt={cusps:"Cusps",dasha:"Dasha",rulingPlanets:"Ruling planets",moonWindows:"Moon windows"},Kt={gain:"Gain",loss:"Loss"},Wt={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha",sookshmaDasha:"Sookshma"},O=class extends m{renderData(e){return e.layers?a`<div class="wrap" part="card" aria-label="${this.t("KP daily finance")}">${this.renderHead(e)} ${this.renderSignificators(e)}<section class="block" part="section cusps">${this.renderLayer("cusps",e.layers.cusps,this.renderCuspRows(e.layers.cusps.rows))}</section><section class="block" part="section dasha">${this.renderLayer("dasha",e.layers.dasha,this.renderDashaRows(e.layers.dasha.rows))}</section><section class="block" part="section ruling-planets">${this.renderLayer("rulingPlanets",e.layers.rulingPlanets,this.renderRulingRows(e.layers.rulingPlanets.rows))}</section><section class="block" part="section moon-windows">${this.renderLayer("moonWindows",e.layers.moonWindows,this.renderWindowRows(e.layers.moonWindows.rows))}</section>${this.renderWindows(e)}<section class="block" part="section frame">${at(this.effectiveLang(),{ayanamsa:e.ayanamsa,ayanamsaDegrees:e.ayanamsaDegrees},this.translator)}</section></div>`:this.renderEmpty()}renderHead(e){let t=this.effectiveLang();return a`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("KP daily finance")}</h2><span class="when">${z(t,e.date)}</span></div><div class="verdict-row"><span class="verdict ${e.band}">${this.t(Bt[e.band])}</span> <span class="evidence">${x(t,e.score,1)}</span></div><dl class="facts" part="details"><div class="fact"><dt>${this.t("Reading moment")}</dt><dd>${z(t,e.readingAt)}</dd></div><div class="fact"><dt>${this.t("Gain houses")}</dt><dd>${de(t,e.houses.gain.map(String))}</dd></div><div class="fact"><dt>${this.t("Loss houses")}</dt><dd>${de(t,e.houses.loss.map(String))}</dd></div></dl></header>`}renderSignificators(e){let t=e.significators,r=this.effectiveLang(),n=s=>a`<div class="chips">${s.map(i=>a`<span class="chip">${this.glyphName(i)}</span>`)}</div>`;return a`<section class="block" part="section significators"><h3>${this.t("Significators")}</h3><dl class="facts"><div class="fact"><dt>${this.t("Gain")}</dt><dd>${n(t.gain)}</dd></div><div class="fact"><dt>${this.t("Loss")}</dt><dd>${n(t.loss)}</dd></div></dl>${t.byHouse.length?a`<div class="scroll" part="table" tabindex="0"><table><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Significators")}</th></tr></thead><tbody>${t.byHouse.map(s=>a`<tr><td class="num">${s.house} ${this.groupChip(s.group)}</td><td class="names">${de(r,[...new Set(s.significators)])}</td></tr>`)}</tbody></table></div>`:l}</section>`}renderLayer(e,t,r){let n=this.effectiveLang();return a`<div class="block-head"><h3>${this.t(Gt[e])}</h3><span class="evidence">${this.t("Weight")} ${x(n,t.weight,0)}% · ${this.t("Score")} ${x(n,t.score,1)}</span></div><div class="scroll" part="table" tabindex="0">${r}</div>`}renderCuspRows(e){return a`<table><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sub lord")}</th><th scope="col">${this.t("Star lord")}</th><th scope="col">${this.t("Sign lord")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${e.map(t=>a`<tr><td class="num">${t.house} ${this.groupChip(t.inverted?"loss":"gain")}</td><td>${this.glyphName(t.subLord)}</td><td>${this.glyphName(t.starLord)}</td><td>${this.glyphName(t.signLord)}</td><td>${this.verdictChip(t.verdict)}</td><td class="num">${x(this.effectiveLang(),t.score,0)}</td></tr>`)}</tbody></table>`}renderDashaRows(e){let t=this.effectiveLang();return a`<table><thead><tr><th scope="col">${this.t("Level")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("From")}</th><th scope="col">${this.t("To")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th><th scope="col">${this.t("Weight")}</th></tr></thead><tbody>${e.map(r=>a`<tr><td>${this.t(Wt[r.level])}</td><td>${this.glyphName(r.lord,r.retrograde)}</td><td>${z(t,r.startDate)}</td><td>${z(t,r.endDate)}</td><td>${this.verdictChip(r.verdict)}</td><td class="num">${x(t,r.score,0)}</td><td class="num">${x(t,r.weight,0)}%</td></tr>`)}</tbody></table>`}renderRulingRows(e){return a`<table><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${e.map(t=>a`<tr><td>${this.glyphName(t.planet,t.retrograde)}</td><td>${this.verdictChip(t.verdict)}</td><td class="num">${x(this.effectiveLang(),t.score,0)}</td></tr>`)}</tbody></table>`}renderWindowRows(e){let t=this.effectiveLang();return a`<table><thead><tr><th scope="col">${this.t("From")}</th><th scope="col">${this.t("To")}</th><th scope="col">${this.t("Sub lord")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${e.map(r=>a`<tr><td>${N(t,r.from)}</td><td>${N(t,r.to)}</td><td>${this.glyphName(r.subLord)}</td><td>${this.verdictChip(r.verdict)}</td><td class="num">${x(t,r.score,0)}</td></tr>`)}</tbody></table>`}renderWindows(e){let t=this.effectiveLang(),r=e.bestWindow,n=e.worstWindows??[];if(!r&&!n.length)return l;let s=(i,c)=>a`<span class="window ${c}"><span>${this.glyphName(i.subLord)}</span> <small>${N(t,i.from)} — ${N(t,i.to)}</small></span>`;return a`<section class="block" part="section windows"><dl class="facts">${r?a`<div class="fact"><dt>${this.t("Best window")}</dt><dd><div class="chips">${s(r,"best")}</div></dd></div>`:l} ${n.length?a`<div class="fact"><dt>${this.t("Worst windows")}</dt><dd><div class="chips">${n.map(i=>s(i,"worst"))}</div></dd></div>`:l}</dl></section>`}glyphName(e,t=!1){let r=Be(e);return a`${r?a`<span class="glyph" aria-hidden="true">${r}</span>`:l}${e}${t?a`<span class="retro">${this.t("retrograde")}</span>`:l}`}verdictChip(e){return a`<span class="state ${e}">${this.t(qt[e])}</span>`}groupChip(e){return a`<span class="chip">${this.t(Kt[e])}</span>`}};O.styles=[re,it,y`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-sm,.5rem);display:grid}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.when{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.verdict-row{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);padding:.15rem .6rem}.verdict.strong,.verdict.favourable{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.verdict.mixed,.verdict.caution{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-accent-ink,#b45309)}.verdict.unfavourable{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}.evidence{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.block{padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.block h3{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.block-head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));margin:0;display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.chip{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-secondary,#475569);padding:1px 8px}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:.35rem .5rem}th{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em;font-weight:var(--roxy-weight-bold,600)}td.num{font-variant-numeric:tabular-nums}td.names{white-space:normal}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.retro{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin-left:.3em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);padding:1px 8px}.state.favourable{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.state.mixed{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309)}.state.unfavourable{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}.window{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);gap:1px;padding:.3rem .6rem;display:grid}.window small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.window.best{border-color:color-mix(in srgb, var(--roxy-success,#16a34a) 45%, transparent)}.window.worst{border-color:color-mix(in srgb, var(--roxy-danger,#dc2626) 35%, transparent)}`],O=f([Fe("roxy-kp-finance-card")],O);K();return ut(Vt);})();
302
+ /*! Bundled license information:
303
+
304
+ @lit/reactive-element/css-tag.js:
305
+ (**
306
+ * @license
307
+ * Copyright 2019 Google LLC
308
+ * SPDX-License-Identifier: BSD-3-Clause
309
+ *)
310
+
311
+ @lit/reactive-element/reactive-element.js:
312
+ lit-html/lit-html.js:
313
+ lit-element/lit-element.js:
314
+ @lit/reactive-element/decorators/custom-element.js:
315
+ @lit/reactive-element/decorators/property.js:
316
+ @lit/reactive-element/decorators/state.js:
317
+ @lit/reactive-element/decorators/event-options.js:
318
+ @lit/reactive-element/decorators/base.js:
319
+ @lit/reactive-element/decorators/query.js:
320
+ @lit/reactive-element/decorators/query-all.js:
321
+ @lit/reactive-element/decorators/query-async.js:
322
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
323
+ (**
324
+ * @license
325
+ * Copyright 2017 Google LLC
326
+ * SPDX-License-Identifier: BSD-3-Clause
327
+ *)
328
+
329
+ lit-html/is-server.js:
330
+ (**
331
+ * @license
332
+ * Copyright 2022 Google LLC
333
+ * SPDX-License-Identifier: BSD-3-Clause
334
+ *)
335
+
336
+ @lit/reactive-element/decorators/query-assigned-elements.js:
337
+ (**
338
+ * @license
339
+ * Copyright 2021 Google LLC
340
+ * SPDX-License-Identifier: BSD-3-Clause
341
+ *)
342
+
343
+ lit-html/directives/if-defined.js:
344
+ (**
345
+ * @license
346
+ * Copyright 2018 Google LLC
347
+ * SPDX-License-Identifier: BSD-3-Clause
348
+ *)
349
+ */
350
+ //# sourceMappingURL=kp-finance-card.js.map