@adiakys/feeling-lucky 0.1.0 → 0.3.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 (50) hide show
  1. package/README.md +73 -5
  2. package/dist/config/types.d.ts +11 -0
  3. package/dist/{de-Cp-ILcpM.js → de-CmzpGbNK.js} +19 -3
  4. package/dist/developer/panel.d.ts +2 -0
  5. package/dist/developer/settings.d.ts +2 -0
  6. package/dist/engine/dealer.d.ts +21 -0
  7. package/dist/{es-DHZIstf4.js → es-k_kS6Fn2.js} +19 -3
  8. package/dist/feeling-lucky.iife.js +417 -249
  9. package/dist/feeling-lucky.js +17 -39
  10. package/dist/{fr-BPFoerSF.js → fr-GuCZB1l4.js} +19 -3
  11. package/dist/games/blackjack/blackjack.d.ts +1 -0
  12. package/dist/games/cards/dealer.d.ts +9 -0
  13. package/dist/games/cards/table.d.ts +7 -1
  14. package/dist/games/holdem/holdem.d.ts +2 -0
  15. package/dist/{i18n-CihzHMU5.js → i18n-Cid8bj2R.js} +23 -7
  16. package/dist/icons-DTaPp44c.js +863 -0
  17. package/dist/{it-B95CFDto.js → it-BNztlqHd.js} +19 -3
  18. package/dist/locales/de/cards.d.ts +7 -0
  19. package/dist/locales/de/developer.d.ts +7 -0
  20. package/dist/locales/de/room.d.ts +2 -0
  21. package/dist/locales/en/cards.d.ts +7 -0
  22. package/dist/locales/en/developer.d.ts +7 -0
  23. package/dist/locales/en/room.d.ts +2 -0
  24. package/dist/locales/es/cards.d.ts +7 -0
  25. package/dist/locales/es/developer.d.ts +7 -0
  26. package/dist/locales/es/room.d.ts +2 -0
  27. package/dist/locales/fr/cards.d.ts +7 -0
  28. package/dist/locales/fr/developer.d.ts +7 -0
  29. package/dist/locales/fr/room.d.ts +2 -0
  30. package/dist/locales/it/cards.d.ts +7 -0
  31. package/dist/locales/it/developer.d.ts +7 -0
  32. package/dist/locales/it/room.d.ts +2 -0
  33. package/dist/mount-CMm0qSYk.js +6257 -0
  34. package/dist/multiplayer/blackjack.d.ts +35 -0
  35. package/dist/multiplayer/client.d.ts +55 -0
  36. package/dist/multiplayer/holdem.d.ts +21 -0
  37. package/dist/multiplayer/index.d.ts +2 -0
  38. package/dist/multiplayer/seats.d.ts +16 -0
  39. package/dist/multiplayer/shared.d.ts +33 -0
  40. package/dist/multiplayer-CN0t0j_F.js +502 -0
  41. package/dist/{panel-D1hKmQL7.js → panel-BVgq3Cm5.js} +167 -139
  42. package/dist/resolve-Dc48n2Jo.js +28 -0
  43. package/dist/room/boost.d.ts +1 -1
  44. package/dist/room/lobby.d.ts +1 -0
  45. package/dist/room/room.d.ts +11 -1
  46. package/dist/room/stage.d.ts +2 -1
  47. package/dist/runtime/context.d.ts +3 -1
  48. package/dist/runtime/sound.d.ts +1 -1
  49. package/package.json +2 -2
  50. package/dist/mount-BxDaFww2.js +0 -7034
@@ -0,0 +1,863 @@
1
+ import { t as e } from "./signal-CAveEGrG.js";
2
+ // node_modules/@lit/reactive-element/css-tag.js
3
+ var t = globalThis, n = t.ShadowRoot && (t.ShadyCSS === void 0 || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, r = Symbol(), i = /* @__PURE__ */ new WeakMap(), a = class {
4
+ constructor(e, t, n) {
5
+ if (this._$cssResult$ = !0, n !== r) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
+ this.cssText = e, this.t = t;
7
+ }
8
+ get styleSheet() {
9
+ let e = this.o, t = this.t;
10
+ if (n && e === void 0) {
11
+ let n = t !== void 0 && t.length === 1;
12
+ n && (e = i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && i.set(t, e));
13
+ }
14
+ return e;
15
+ }
16
+ toString() {
17
+ return this.cssText;
18
+ }
19
+ }, o = (e) => new a(typeof e == "string" ? e : e + "", void 0, r), s = (e, r) => {
20
+ if (n) e.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
21
+ else for (let n of r) {
22
+ let r = document.createElement("style"), i = t.litNonce;
23
+ i !== void 0 && r.setAttribute("nonce", i), r.textContent = n.cssText, e.appendChild(r);
24
+ }
25
+ }, c = n ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
26
+ let t = "";
27
+ for (let n of e.cssRules) t += n.cssText;
28
+ return o(t);
29
+ })(e) : e, { is: l, defineProperty: u, getOwnPropertyDescriptor: d, getOwnPropertyNames: ee, getOwnPropertySymbols: te, getPrototypeOf: ne } = Object, f = globalThis, p = f.trustedTypes, re = p ? p.emptyScript : "", ie = f.reactiveElementPolyfillSupport, m = (e, t) => e, h = {
30
+ toAttribute(e, t) {
31
+ switch (t) {
32
+ case Boolean:
33
+ e = e ? re : null;
34
+ break;
35
+ case Object:
36
+ case Array: e = e == null ? e : JSON.stringify(e);
37
+ }
38
+ return e;
39
+ },
40
+ fromAttribute(e, t) {
41
+ let n = e;
42
+ switch (t) {
43
+ case Boolean:
44
+ n = e !== null;
45
+ break;
46
+ case Number:
47
+ n = e === null ? null : Number(e);
48
+ break;
49
+ case Object:
50
+ case Array: try {
51
+ n = JSON.parse(e);
52
+ } catch {
53
+ n = null;
54
+ }
55
+ }
56
+ return n;
57
+ }
58
+ }, g = (e, t) => !l(e, t), ae = {
59
+ attribute: !0,
60
+ type: String,
61
+ converter: h,
62
+ reflect: !1,
63
+ useDefault: !1,
64
+ hasChanged: g
65
+ };
66
+ Symbol.metadata ??= Symbol("metadata"), f.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
+ var _ = class extends HTMLElement {
68
+ static addInitializer(e) {
69
+ this._$Ei(), (this.l ??= []).push(e);
70
+ }
71
+ static get observedAttributes() {
72
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
73
+ }
74
+ static createProperty(e, t = ae) {
75
+ 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) {
76
+ let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
77
+ r !== void 0 && u(this.prototype, e, r);
78
+ }
79
+ }
80
+ static getPropertyDescriptor(e, t, n) {
81
+ let { get: r, set: i } = d(this.prototype, e) ?? {
82
+ get() {
83
+ return this[t];
84
+ },
85
+ set(e) {
86
+ this[t] = e;
87
+ }
88
+ };
89
+ return {
90
+ get: r,
91
+ set(t) {
92
+ let a = r?.call(this);
93
+ i?.call(this, t), this.requestUpdate(e, a, n);
94
+ },
95
+ configurable: !0,
96
+ enumerable: !0
97
+ };
98
+ }
99
+ static getPropertyOptions(e) {
100
+ return this.elementProperties.get(e) ?? ae;
101
+ }
102
+ static _$Ei() {
103
+ if (this.hasOwnProperty(m("elementProperties"))) return;
104
+ let e = ne(this);
105
+ e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
106
+ }
107
+ static finalize() {
108
+ if (this.hasOwnProperty(m("finalized"))) return;
109
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m("properties"))) {
110
+ let e = this.properties, t = [...ee(e), ...te(e)];
111
+ for (let n of t) this.createProperty(n, e[n]);
112
+ }
113
+ let e = this[Symbol.metadata];
114
+ if (e !== null) {
115
+ let t = litPropertyMetadata.get(e);
116
+ if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
117
+ }
118
+ this._$Eh = /* @__PURE__ */ new Map();
119
+ for (let [e, t] of this.elementProperties) {
120
+ let n = this._$Eu(e, t);
121
+ n !== void 0 && this._$Eh.set(n, e);
122
+ }
123
+ this.elementStyles = this.finalizeStyles(this.styles);
124
+ }
125
+ static finalizeStyles(e) {
126
+ let t = [];
127
+ if (Array.isArray(e)) {
128
+ let n = new Set(e.flat(1 / 0).reverse());
129
+ for (let e of n) t.unshift(c(e));
130
+ } else e !== void 0 && t.push(c(e));
131
+ return t;
132
+ }
133
+ static _$Eu(e, t) {
134
+ let n = t.attribute;
135
+ return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
136
+ }
137
+ constructor() {
138
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
139
+ }
140
+ _$Ev() {
141
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
142
+ }
143
+ addController(e) {
144
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
145
+ }
146
+ removeController(e) {
147
+ this._$EO?.delete(e);
148
+ }
149
+ _$E_() {
150
+ let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
151
+ for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
152
+ e.size > 0 && (this._$Ep = e);
153
+ }
154
+ createRenderRoot() {
155
+ let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
156
+ return s(e, this.constructor.elementStyles), e;
157
+ }
158
+ connectedCallback() {
159
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
160
+ }
161
+ enableUpdating(e) {}
162
+ disconnectedCallback() {
163
+ this._$EO?.forEach((e) => e.hostDisconnected?.());
164
+ }
165
+ attributeChangedCallback(e, t, n) {
166
+ this._$AK(e, n);
167
+ }
168
+ _$ET(e, t) {
169
+ let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
170
+ if (r !== void 0 && !0 === n.reflect) {
171
+ let i = (n.converter?.toAttribute === void 0 ? h : n.converter).toAttribute(t, n.type);
172
+ this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
173
+ }
174
+ }
175
+ _$AK(e, t) {
176
+ let n = this.constructor, r = n._$Eh.get(e);
177
+ if (r !== void 0 && this._$Em !== r) {
178
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
179
+ this._$Em = r;
180
+ let a = i.fromAttribute(t, e.type);
181
+ this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
182
+ }
183
+ }
184
+ requestUpdate(e, t, n, r = !1, i) {
185
+ if (e !== void 0) {
186
+ let a = this.constructor;
187
+ if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
188
+ this.C(e, t, n);
189
+ }
190
+ !1 === this.isUpdatePending && (this._$ES = this._$EP());
191
+ }
192
+ C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
193
+ n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), !0 !== i || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), !0 === r && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
194
+ }
195
+ async _$EP() {
196
+ this.isUpdatePending = !0;
197
+ try {
198
+ await this._$ES;
199
+ } catch (e) {
200
+ Promise.reject(e);
201
+ }
202
+ let e = this.scheduleUpdate();
203
+ return e != null && await e, !this.isUpdatePending;
204
+ }
205
+ scheduleUpdate() {
206
+ return this.performUpdate();
207
+ }
208
+ performUpdate() {
209
+ if (!this.isUpdatePending) return;
210
+ if (!this.hasUpdated) {
211
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
212
+ for (let [e, t] of this._$Ep) this[e] = t;
213
+ this._$Ep = void 0;
214
+ }
215
+ let e = this.constructor.elementProperties;
216
+ if (e.size > 0) for (let [t, n] of e) {
217
+ let { wrapped: e } = n, r = this[t];
218
+ !0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
219
+ }
220
+ }
221
+ let e = !1, t = this._$AL;
222
+ try {
223
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((e) => e.hostUpdate?.()), this.update(t)) : this._$EM();
224
+ } catch (t) {
225
+ throw e = !1, this._$EM(), t;
226
+ }
227
+ e && this._$AE(t);
228
+ }
229
+ willUpdate(e) {}
230
+ _$AE(e) {
231
+ this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
232
+ }
233
+ _$EM() {
234
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
235
+ }
236
+ get updateComplete() {
237
+ return this.getUpdateComplete();
238
+ }
239
+ getUpdateComplete() {
240
+ return this._$ES;
241
+ }
242
+ shouldUpdate(e) {
243
+ return !0;
244
+ }
245
+ update(e) {
246
+ this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
247
+ }
248
+ updated(e) {}
249
+ firstUpdated(e) {}
250
+ };
251
+ _.elementStyles = [], _.shadowRootOptions = { mode: "open" }, _[m("elementProperties")] = /* @__PURE__ */ new Map(), _[m("finalized")] = /* @__PURE__ */ new Map(), ie?.({ ReactiveElement: _ }), (f.reactiveElementVersions ??= []).push("2.1.2");
252
+ // node_modules/lit-html/lit-html.js
253
+ var v = globalThis, oe = (e) => e, y = v.trustedTypes, se = y ? y.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, b = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, S = "?" + x, ce = `<${S}>`, C = document, w = () => C.createComment(""), T = (e) => e === null || typeof e != "object" && typeof e != "function", E = Array.isArray, le = (e) => E(e) || typeof e?.[Symbol.iterator] == "function", D = "[ \n\f\r]", O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ue = /-->/g, de = />/g, k = RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), fe = /'/g, pe = /"/g, me = /^(?:script|style|textarea|title)$/i, A = (e) => (t, ...n) => ({
254
+ _$litType$: e,
255
+ strings: t,
256
+ values: n
257
+ }), he = A(1), ge = A(2), _e = A(3), j = Symbol.for("lit-noChange"), M = Symbol.for("lit-nothing"), ve = /* @__PURE__ */ new WeakMap(), N = C.createTreeWalker(C, 129);
258
+ function ye(e, t) {
259
+ if (!E(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
260
+ return se === void 0 ? t : se.createHTML(t);
261
+ }
262
+ var P = (e, t) => {
263
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = O;
264
+ for (let t = 0; t < n; t++) {
265
+ let n = e[t], s, c, l = -1, u = 0;
266
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === O ? c[1] === "!--" ? o = ue : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = k) : (me.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = k) : o = de : o === k ? c[0] === ">" ? (o = i ?? O, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? k : c[3] === "\"" ? pe : fe) : o === pe || o === fe ? o = k : o === ue || o === de ? o = O : (o = k, i = void 0);
267
+ let d = o === k && e[t + 1].startsWith("/>") ? " " : "";
268
+ a += o === O ? n + ce : l >= 0 ? (r.push(s), n.slice(0, l) + b + n.slice(l) + x + d) : n + x + (l === -2 ? t : d);
269
+ }
270
+ return [ye(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
271
+ }, F = class e {
272
+ constructor({ strings: t, _$litType$: n }, r) {
273
+ let i;
274
+ this.parts = [];
275
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = P(t, n);
276
+ if (this.el = e.createElement(l, r), N.currentNode = this.el.content, n === 2 || n === 3) {
277
+ let e = this.el.content.firstChild;
278
+ e.replaceWith(...e.childNodes);
279
+ }
280
+ for (; (i = N.nextNode()) !== null && c.length < s;) {
281
+ if (i.nodeType === 1) {
282
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(b)) {
283
+ let t = u[o++], n = i.getAttribute(e).split(x), r = /([.?@])?(.*)/.exec(t);
284
+ c.push({
285
+ type: 1,
286
+ index: a,
287
+ name: r[2],
288
+ strings: n,
289
+ ctor: r[1] === "." ? xe : r[1] === "?" ? Se : r[1] === "@" ? Ce : R
290
+ }), i.removeAttribute(e);
291
+ } else e.startsWith(x) && (c.push({
292
+ type: 6,
293
+ index: a
294
+ }), i.removeAttribute(e));
295
+ if (me.test(i.tagName)) {
296
+ let e = i.textContent.split(x), t = e.length - 1;
297
+ if (t > 0) {
298
+ i.textContent = y ? y.emptyScript : "";
299
+ for (let n = 0; n < t; n++) i.append(e[n], w()), N.nextNode(), c.push({
300
+ type: 2,
301
+ index: ++a
302
+ });
303
+ i.append(e[t], w());
304
+ }
305
+ }
306
+ } else if (i.nodeType === 8) {
307
+ if (i.data === S) c.push({
308
+ type: 2,
309
+ index: a
310
+ });
311
+ else {
312
+ let e = -1;
313
+ for (; (e = i.data.indexOf(x, e + 1)) !== -1;) c.push({
314
+ type: 7,
315
+ index: a
316
+ }), e += x.length - 1;
317
+ }
318
+ }
319
+ a++;
320
+ }
321
+ }
322
+ static createElement(e, t) {
323
+ let n = C.createElement("template");
324
+ return n.innerHTML = e, n;
325
+ }
326
+ };
327
+ function I(e, t, n = e, r) {
328
+ if (t === j) return t;
329
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = T(t) ? void 0 : t._$litDirective$;
330
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = I(e, i._$AS(e, t.values), i, r)), t;
331
+ }
332
+ var be = class {
333
+ constructor(e, t) {
334
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
335
+ }
336
+ get parentNode() {
337
+ return this._$AM.parentNode;
338
+ }
339
+ get _$AU() {
340
+ return this._$AM._$AU;
341
+ }
342
+ u(e) {
343
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? C).importNode(t, !0);
344
+ N.currentNode = r;
345
+ let i = N.nextNode(), a = 0, o = 0, s = n[0];
346
+ for (; s !== void 0;) {
347
+ if (a === s.index) {
348
+ let t;
349
+ s.type === 2 ? t = new L(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new we(i, this, e)), this._$AV.push(t), s = n[++o];
350
+ }
351
+ a !== s?.index && (i = N.nextNode(), a++);
352
+ }
353
+ return N.currentNode = C, r;
354
+ }
355
+ p(e) {
356
+ let t = 0;
357
+ for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
358
+ }
359
+ }, L = class e {
360
+ get _$AU() {
361
+ return this._$AM?._$AU ?? this._$Cv;
362
+ }
363
+ constructor(e, t, n, r) {
364
+ this.type = 2, this._$AH = M, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
365
+ }
366
+ get parentNode() {
367
+ let e = this._$AA.parentNode, t = this._$AM;
368
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
369
+ }
370
+ get startNode() {
371
+ return this._$AA;
372
+ }
373
+ get endNode() {
374
+ return this._$AB;
375
+ }
376
+ _$AI(e, t = this) {
377
+ e = I(this, e, t), T(e) ? e === M || e == null || e === "" ? (this._$AH !== M && this._$AR(), this._$AH = M) : e !== this._$AH && e !== j && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? le(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
378
+ }
379
+ O(e) {
380
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
381
+ }
382
+ T(e) {
383
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
384
+ }
385
+ _(e) {
386
+ this._$AH !== M && T(this._$AH) ? this._$AA.nextSibling.data = e : this.T(C.createTextNode(e)), this._$AH = e;
387
+ }
388
+ $(e) {
389
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = F.createElement(ye(n.h, n.h[0]), this.options)), n);
390
+ if (this._$AH?._$AD === r) this._$AH.p(t);
391
+ else {
392
+ let e = new be(r, this), n = e.u(this.options);
393
+ e.p(t), this.T(n), this._$AH = e;
394
+ }
395
+ }
396
+ _$AC(e) {
397
+ let t = ve.get(e.strings);
398
+ return t === void 0 && ve.set(e.strings, t = new F(e)), t;
399
+ }
400
+ k(t) {
401
+ E(this._$AH) || (this._$AH = [], this._$AR());
402
+ let n = this._$AH, r, i = 0;
403
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(w()), this.O(w()), this, this.options)) : r = n[i], r._$AI(a), i++;
404
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
405
+ }
406
+ _$AR(e = this._$AA.nextSibling, t) {
407
+ for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
408
+ let t = oe(e).nextSibling;
409
+ oe(e).remove(), e = t;
410
+ }
411
+ }
412
+ setConnected(e) {
413
+ this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
414
+ }
415
+ }, R = class {
416
+ get tagName() {
417
+ return this.element.tagName;
418
+ }
419
+ get _$AU() {
420
+ return this._$AM._$AU;
421
+ }
422
+ constructor(e, t, n, r, i) {
423
+ this.type = 1, this._$AH = M, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = M;
424
+ }
425
+ _$AI(e, t = this, n, r) {
426
+ let i = this.strings, a = !1;
427
+ if (i === void 0) e = I(this, e, t, 0), a = !T(e) || e !== this._$AH && e !== j, a && (this._$AH = e);
428
+ else {
429
+ let r = e, o, s;
430
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = I(this, r[n + o], t, o), s === j && (s = this._$AH[o]), a ||= !T(s) || s !== this._$AH[o], s === M ? e = M : e !== M && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
431
+ }
432
+ a && !r && this.j(e);
433
+ }
434
+ j(e) {
435
+ e === M ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
436
+ }
437
+ }, xe = class extends R {
438
+ constructor() {
439
+ super(...arguments), this.type = 3;
440
+ }
441
+ j(e) {
442
+ this.element[this.name] = e === M ? void 0 : e;
443
+ }
444
+ }, Se = class extends R {
445
+ constructor() {
446
+ super(...arguments), this.type = 4;
447
+ }
448
+ j(e) {
449
+ this.element.toggleAttribute(this.name, !!e && e !== M);
450
+ }
451
+ }, Ce = class extends R {
452
+ constructor(e, t, n, r, i) {
453
+ super(e, t, n, r, i), this.type = 5;
454
+ }
455
+ _$AI(e, t = this) {
456
+ if ((e = I(this, e, t, 0) ?? M) === j) return;
457
+ let n = this._$AH, r = e === M && n !== M || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== M && (n === M || r);
458
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
459
+ }
460
+ handleEvent(e) {
461
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
462
+ }
463
+ }, we = class {
464
+ constructor(e, t, n) {
465
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
466
+ }
467
+ get _$AU() {
468
+ return this._$AM._$AU;
469
+ }
470
+ _$AI(e) {
471
+ I(this, e);
472
+ }
473
+ }, Te = {
474
+ M: b,
475
+ P: x,
476
+ A: S,
477
+ C: 1,
478
+ L: P,
479
+ R: be,
480
+ D: le,
481
+ V: I,
482
+ I: L,
483
+ H: R,
484
+ N: Se,
485
+ U: Ce,
486
+ B: xe,
487
+ F: we
488
+ }, Ee = v.litHtmlPolyfillSupport;
489
+ Ee?.(F, L), (v.litHtmlVersions ??= []).push("3.3.3");
490
+ var De = (e, t, n) => {
491
+ let r = n?.renderBefore ?? t, i = r._$litPart$;
492
+ if (i === void 0) {
493
+ let e = n?.renderBefore ?? null;
494
+ r._$litPart$ = i = new L(t.insertBefore(w(), e), e, void 0, n ?? {});
495
+ }
496
+ return i._$AI(e), i;
497
+ }, z = globalThis, B = class extends _ {
498
+ constructor() {
499
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
500
+ }
501
+ createRenderRoot() {
502
+ let e = super.createRenderRoot();
503
+ return this.renderOptions.renderBefore ??= e.firstChild, e;
504
+ }
505
+ update(e) {
506
+ let t = this.render();
507
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = De(t, this.renderRoot, this.renderOptions);
508
+ }
509
+ connectedCallback() {
510
+ super.connectedCallback(), this._$Do?.setConnected(!0);
511
+ }
512
+ disconnectedCallback() {
513
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
514
+ }
515
+ render() {
516
+ return j;
517
+ }
518
+ };
519
+ B._$litElement$ = !0, B.finalized = !0, z.litElementHydrateSupport?.({ LitElement: B });
520
+ var Oe = z.litElementPolyfillSupport;
521
+ Oe?.({ LitElement: B }), (z.litElementVersions ??= []).push("4.2.2");
522
+ // node_modules/@lit/reactive-element/decorators/custom-element.js
523
+ var ke = (e) => (t, n) => {
524
+ n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
525
+ customElements.define(e, t);
526
+ });
527
+ }, Ae = {
528
+ attribute: !0,
529
+ type: String,
530
+ converter: h,
531
+ reflect: !1,
532
+ hasChanged: g
533
+ }, je = (e = Ae, t, n) => {
534
+ let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
535
+ if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
536
+ let { name: r } = n;
537
+ return {
538
+ set(n) {
539
+ let i = t.get.call(this);
540
+ t.set.call(this, n), this.requestUpdate(r, i, e, !0, n);
541
+ },
542
+ init(t) {
543
+ return t !== void 0 && this.C(r, void 0, e, t), t;
544
+ }
545
+ };
546
+ }
547
+ if (r === "setter") {
548
+ let { name: r } = n;
549
+ return function(n) {
550
+ let i = this[r];
551
+ t.call(this, n), this.requestUpdate(r, i, e, !0, n);
552
+ };
553
+ }
554
+ throw Error("Unsupported decorator location: " + r);
555
+ };
556
+ function Me(e) {
557
+ return (t, n) => typeof n == "object" ? je(e, t, n) : ((e, t, n) => {
558
+ let r = t.hasOwnProperty(n);
559
+ return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
560
+ })(e, t, n);
561
+ }
562
+ // node_modules/@lit/reactive-element/decorators/state.js
563
+ function Ne(e) {
564
+ return Me({
565
+ ...e,
566
+ state: !0,
567
+ attribute: !1
568
+ });
569
+ }
570
+ // node_modules/@lit/reactive-element/decorators/base.js
571
+ var Pe = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
572
+ // node_modules/@lit/reactive-element/decorators/query.js
573
+ function Fe(e, t) {
574
+ return (n, r, i) => {
575
+ let a = (t) => t.renderRoot?.querySelector(e) ?? null;
576
+ if (t) {
577
+ let { get: e, set: t } = typeof r == "object" ? n : i ?? (() => {
578
+ let e = Symbol();
579
+ return {
580
+ get() {
581
+ return this[e];
582
+ },
583
+ set(t) {
584
+ this[e] = t;
585
+ }
586
+ };
587
+ })();
588
+ return Pe(n, r, { get() {
589
+ let n = e.call(this);
590
+ return n === void 0 && (n = a(this), (n !== null || this.hasUpdated) && t.call(this, n)), n;
591
+ } });
592
+ }
593
+ return Pe(n, r, { get() {
594
+ return a(this);
595
+ } });
596
+ };
597
+ }
598
+ // node_modules/lit-html/directive.js
599
+ var Ie = {
600
+ ATTRIBUTE: 1,
601
+ CHILD: 2,
602
+ PROPERTY: 3,
603
+ BOOLEAN_ATTRIBUTE: 4,
604
+ EVENT: 5,
605
+ ELEMENT: 6
606
+ }, Le = (e) => (...t) => ({
607
+ _$litDirective$: e,
608
+ values: t
609
+ }), Re = class {
610
+ constructor(e) {}
611
+ get _$AU() {
612
+ return this._$AM._$AU;
613
+ }
614
+ _$AT(e, t, n) {
615
+ this._$Ct = e, this._$AM = t, this._$Ci = n;
616
+ }
617
+ _$AS(e, t) {
618
+ return this.update(e, t);
619
+ }
620
+ update(e, t) {
621
+ return this.render(...t);
622
+ }
623
+ }, ze = [["path", { d: "M18 6 6 18" }], ["path", { d: "m6 6 12 12" }]], Be = (e, t) => e + Math.random() * (t - e), Ve = (e, t) => Math.floor(Be(e, t + 1)), V = (e) => e[Math.floor(Math.random() * e.length)], He = (e) => e.map((e) => [Math.random(), e]).sort((e, t) => e[0] - t[0]).map(([, e]) => e), Ue = (e, t) => (e % t + t) % t, We = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n), Ge = [
624
+ "small",
625
+ "big",
626
+ "jackpot"
627
+ ], H = (e, t) => Array.isArray(e.variants) ? e.variants.filter((e) => e.tier === t) : [], U = (e) => e.short ?? e.label;
628
+ function Ke(e) {
629
+ let t = (t) => {
630
+ let n = [...new Set(e.flatMap((e) => H(e, t).map(U)))];
631
+ return e.some((e) => !H(e, t).length) ? [...n, null] : n;
632
+ };
633
+ return {
634
+ small: t("small"),
635
+ big: t("big"),
636
+ jackpot: t("jackpot")
637
+ };
638
+ }
639
+ function qe(e, t) {
640
+ if (t === "none") return null;
641
+ let n = H(e, t);
642
+ return n.length ? U(V(n)) : null;
643
+ }
644
+ function Je(e, t, n) {
645
+ let r = e.filter((e) => {
646
+ let r = H(e, t);
647
+ return n === null ? !r.length : r.some((e) => U(e) === n);
648
+ });
649
+ return r.length ? r : e;
650
+ }
651
+ async function Ye(e, t, n) {
652
+ if (typeof e.variants == "function") return e.variants(t);
653
+ let r = H(e, t);
654
+ return r.find((e) => U(e) === n) ?? (r.length ? V(r) : null);
655
+ }
656
+ var Xe = (e, t) => We(0, t - 1).map((n) => e[Math.floor(n * e.length / t)]), Ze = (e, t) => `${e}:${t ?? ""}`, Qe = {}, $e = e(!1), et = e(void 0), tt = e(0);
657
+ function nt(e) {
658
+ Qe = e;
659
+ }
660
+ function rt(e) {
661
+ et.value = { game: e };
662
+ }
663
+ function W(e, t, n) {
664
+ let r = Qe[e];
665
+ return r ? r(t, n) : n();
666
+ }
667
+ // src/engine/dealer.ts
668
+ var it = 3, at = 600, ot = 260;
669
+ function st(e, t) {
670
+ if (!t) return [];
671
+ let n = 2166136261;
672
+ for (let t of `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}:dealer`) n = Math.imul(n ^ t.charCodeAt(0), 16777619) >>> 0;
673
+ return Array.from({ length: it }, (e, r) => {
674
+ let i = at + r * ot + (n >>> r * 8) % 140;
675
+ return {
676
+ start: i,
677
+ end: i + 30 + (n >>> r * 5 + 3) % 61,
678
+ dealer: (n + r) % t
679
+ };
680
+ });
681
+ }
682
+ function ct(e, t) {
683
+ let n = e.getHours() * 60 + e.getMinutes();
684
+ return st(e, t).find((e) => e.start <= n && n < e.end)?.dealer ?? null;
685
+ }
686
+ var lt = e(0), G = e(null);
687
+ function ut(e = /* @__PURE__ */ new Date()) {
688
+ let t = lt.value;
689
+ G.value = t ? W("dealer", { count: t }, () => ct(e, t)) : null;
690
+ }
691
+ // src/engine/tiers.ts
692
+ var K = [
693
+ "wheel",
694
+ "slot",
695
+ "roulette",
696
+ "pachinko",
697
+ "scratch"
698
+ ], q = ["blackjack", "holdem"], dt = [...K, ...q], J = {
699
+ jackpot: 1 / 150,
700
+ big: 1 / 60,
701
+ small: 1 / 30
702
+ }, ft = [
703
+ "none",
704
+ "small",
705
+ "big",
706
+ "jackpot"
707
+ ], pt = ["double", "forever"], mt = ["takeoff", "breakaway"];
708
+ function ht(e = 1, t = Math.random()) {
709
+ return t < e * J.jackpot ? "jackpot" : t < e * (J.jackpot + J.big) ? "big" : t < e * (J.jackpot + J.big + J.small) ? "small" : "none";
710
+ }
711
+ function Y(e = /* @__PURE__ */ new Date()) {
712
+ let t = 2166136261;
713
+ for (let n of `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`) t = Math.imul(t ^ n.charCodeAt(0), 16777619) >>> 0;
714
+ return {
715
+ game: K[t % K.length],
716
+ multiplier: 2 + (t >>> 8) % 4,
717
+ ticket: t >>> 16 & 1 ? "forever" : "double",
718
+ machine: t >>> 20 & 1 ? "breakaway" : "takeoff"
719
+ };
720
+ }
721
+ var gt = (e, t = /* @__PURE__ */ new Date()) => {
722
+ let n = Y(t);
723
+ return n.game === e ? n.multiplier : 1;
724
+ }, X = (e) => W("boost", { game: e }, () => q.includes(e) ? G.value === null ? 1 : 2 : gt(e)), _t = (e, t) => W("tier", {
725
+ game: e,
726
+ boost: t
727
+ }, () => ht(t)), vt = (e, t) => W("prize", {
728
+ game: e,
729
+ prizeIds: t
730
+ }, () => V(t));
731
+ function yt() {
732
+ let e = Y().game;
733
+ return K.filter((e) => X(e) > 1).sort((t, n) => X(n) - X(t) || Number(n === e) - Number(t === e))[0];
734
+ }
735
+ var bt = () => W("slot.machine", {}, () => Y().machine), xt = () => W("scratch.ticket", {}, () => Y().ticket), Z = class extends Event {
736
+ constructor(e, t, n, r) {
737
+ super("context-request", {
738
+ bubbles: !0,
739
+ composed: !0
740
+ }), this.context = e, this.contextTarget = t, this.callback = n, this.subscribe = r ?? !1;
741
+ }
742
+ };
743
+ // node_modules/@lit/context/lib/create-context.js
744
+ function St(e) {
745
+ return e;
746
+ }
747
+ // node_modules/@lit/context/lib/controllers/context-consumer.js
748
+ var Ct = class {
749
+ constructor(e, t, n, r) {
750
+ if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (e, t) => {
751
+ this.unsubscribe && (this.unsubscribe !== t && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = e, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(e, t)), this.unsubscribe = t;
752
+ }, this.host = e, t.context !== void 0) {
753
+ let e = t;
754
+ this.context = e.context, this.callback = e.callback, this.subscribe = e.subscribe ?? !1;
755
+ } else this.context = t, this.callback = n, this.subscribe = r ?? !1;
756
+ this.host.addController(this);
757
+ }
758
+ hostConnected() {
759
+ this.dispatchRequest();
760
+ }
761
+ hostDisconnected() {
762
+ this.unsubscribe &&= (this.unsubscribe(), void 0);
763
+ }
764
+ dispatchRequest() {
765
+ this.host.dispatchEvent(new Z(this.context, this.host, this.t, this.subscribe));
766
+ }
767
+ };
768
+ // node_modules/@lit/context/lib/decorators/consume.js
769
+ function wt({ context: e, subscribe: t }) {
770
+ return (n, r) => {
771
+ typeof r == "object" ? r.addInitializer((function() {
772
+ new Ct(this, {
773
+ context: e,
774
+ callback: (e) => {
775
+ n.set.call(this, e);
776
+ },
777
+ subscribe: t
778
+ });
779
+ })) : n.constructor.addInitializer(((n) => {
780
+ new Ct(n, {
781
+ context: e,
782
+ callback: (e) => {
783
+ n[r] = e;
784
+ },
785
+ subscribe: t
786
+ });
787
+ }));
788
+ };
789
+ }
790
+ // src/runtime/context.ts
791
+ var Tt = St(Symbol("fl-room")), Et = [
792
+ "#9e1b22",
793
+ "#1d3561",
794
+ "#1c6136",
795
+ "#5b2a6e",
796
+ "#7a5418"
797
+ ], Dt = (e) => Et[e % Et.length];
798
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/decorate.js
799
+ function Ot(e, t, n, r) {
800
+ var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
801
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
802
+ else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
803
+ return i > 3 && a && Object.defineProperty(t, n, a), a;
804
+ }
805
+ // src/runtime/element.ts
806
+ var kt = class extends B {
807
+ constructor(...e) {
808
+ super(...e), this.timers = /* @__PURE__ */ new Set(), this.unsubscribes = [], this.watched = [];
809
+ }
810
+ createRenderRoot() {
811
+ return this;
812
+ }
813
+ t(e, t) {
814
+ return this.room.t(e, t);
815
+ }
816
+ watch(...e) {
817
+ this.watched.push(...e), this.isConnected && this.unsubscribes.push(...e.map((e) => e.subscribe(() => this.requestUpdate())));
818
+ }
819
+ later(e, t) {
820
+ let n = setTimeout(() => {
821
+ this.timers.delete(n), e();
822
+ }, t);
823
+ return this.timers.add(n), n;
824
+ }
825
+ connectedCallback() {
826
+ super.connectedCallback(), this.style.display = "contents", this.unsubscribes = this.watched.map((e) => e.subscribe(() => this.requestUpdate()));
827
+ }
828
+ disconnectedCallback() {
829
+ super.disconnectedCallback(), this.timers.forEach(clearTimeout), this.timers.clear(), this.unsubscribes.forEach((e) => e()), this.unsubscribes = [];
830
+ }
831
+ };
832
+ Ot([wt({
833
+ context: Tt,
834
+ subscribe: !0
835
+ }), Ne()], kt.prototype, "room", void 0);
836
+ // node_modules/lit-html/directives/unsafe-html.js
837
+ var Q = class extends Re {
838
+ constructor(e) {
839
+ if (super(e), this.it = M, e.type !== Ie.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
840
+ }
841
+ render(e) {
842
+ if (e === M || e == null) return this._t = void 0, this.it = e;
843
+ if (e === j) return e;
844
+ if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
845
+ if (e === this.it) return this._t;
846
+ this.it = e;
847
+ let t = [e];
848
+ return t.raw = t, this._t = {
849
+ _$litType$: this.constructor.resultType,
850
+ strings: t,
851
+ values: []
852
+ };
853
+ }
854
+ };
855
+ Q.directiveName = "unsafeHTML", Q.resultType = 1;
856
+ // node_modules/lit-html/directives/unsafe-svg.js
857
+ var $ = class extends Q {};
858
+ $.directiveName = "unsafeSVG", $.resultType = 2;
859
+ var At = Le($), jt = (e) => String(e).replace(/[&<>"]/g, (e) => `&#${e.charCodeAt(0)};`);
860
+ function Mt(e, t = "") {
861
+ return ge`<svg class="fl-icon ${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${At(e.map(([e, t]) => `<${e} ${Object.entries(t).map(([e, t]) => `${e}="${jt(t)}"`).join(" ")}/>`).join(""))}</svg>`;
862
+ }
863
+ export { j as $, Ze as A, Be as B, W as C, tt as D, et as E, Ye as F, Le as G, We as H, Xe as I, Fe as J, Re as K, H as L, Ke as M, qe as N, $e as O, Je as P, M as Q, Ue as R, lt as S, rt as T, He as U, Ve as V, ze as W, Me as X, Ne as Y, ke as Z, _t as _, Tt as a, ut as b, mt as c, q as d, _e as et, J as f, vt as g, X as h, Dt as i, U as j, Ge as k, pt as l, yt as m, kt as n, Te as nt, Z as o, ft as p, Ie as q, Ot as r, ge as rt, K as s, Mt as t, he as tt, dt as u, bt as v, nt as w, G as x, xt as y, V as z };