@batijs/elements 0.0.3 → 0.0.4

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 (2) hide show
  1. package/dist/elements/full.js +1295 -1665
  2. package/package.json +21 -29
@@ -1,836 +1,616 @@
1
- function cloneProps(props) {
2
- const propKeys = Object.keys(props);
3
- return propKeys.reduce((memo, k) => {
4
- const prop = props[k];
5
- memo[k] = Object.assign({}, prop);
6
- if (isObject(prop.value) && !isFunction(prop.value) && !Array.isArray(prop.value)) memo[k].value = Object.assign({}, prop.value);
7
- if (Array.isArray(prop.value)) memo[k].value = prop.value.slice(0);
8
- return memo;
1
+ function Ye(e) {
2
+ return Object.keys(e).reduce((r, o) => {
3
+ const i = e[o];
4
+ return r[o] = Object.assign({}, i), Se(i.value) && !Je(i.value) && !Array.isArray(i.value) && (r[o].value = Object.assign({}, i.value)), Array.isArray(i.value) && (r[o].value = i.value.slice(0)), r;
9
5
  }, {});
10
6
  }
11
-
12
- function normalizePropDefs(props) {
13
- if (!props) return {};
14
- const propKeys = Object.keys(props);
15
- return propKeys.reduce((memo, k) => {
16
- const v = props[k];
17
- memo[k] = !(isObject(v) && "value" in v) ? {
18
- value: v
19
- } : v;
20
- memo[k].attribute || (memo[k].attribute = toAttribute(k));
21
- memo[k].parse = "parse" in memo[k] ? memo[k].parse : typeof memo[k].value !== "string";
22
- return memo;
23
- }, {});
24
- }
25
- function propValues(props) {
26
- const propKeys = Object.keys(props);
27
- return propKeys.reduce((memo, k) => {
28
- memo[k] = props[k].value;
29
- return memo;
30
- }, {});
31
- }
32
- function initializeProps(element, propDefinition) {
33
- const props = cloneProps(propDefinition),
34
- propKeys = Object.keys(propDefinition);
35
- propKeys.forEach(key => {
36
- const prop = props[key],
37
- attr = element.getAttribute(prop.attribute),
38
- value = element[key];
39
- if (attr) prop.value = prop.parse ? parseAttributeValue(attr) : attr;
40
- if (value != null) prop.value = Array.isArray(value) ? value.slice(0) : value;
41
- prop.reflect && reflect(element, prop.attribute, prop.value);
42
- Object.defineProperty(element, key, {
7
+ function Xe(e) {
8
+ return e ? Object.keys(e).reduce((r, o) => {
9
+ const i = e[o];
10
+ return r[o] = Se(i) && "value" in i ? i : {
11
+ value: i
12
+ }, r[o].attribute || (r[o].attribute = We(o)), r[o].parse = "parse" in r[o] ? r[o].parse : typeof r[o].value != "string", r;
13
+ }, {}) : {};
14
+ }
15
+ function He(e) {
16
+ return Object.keys(e).reduce((r, o) => (r[o] = e[o].value, r), {});
17
+ }
18
+ function qe(e, t) {
19
+ const r = Ye(t);
20
+ return Object.keys(t).forEach((i) => {
21
+ const n = r[i], l = e.getAttribute(n.attribute), a = e[i];
22
+ l && (n.value = n.parse ? Ce(l) : l), a != null && (n.value = Array.isArray(a) ? a.slice(0) : a), n.reflect && we(e, n.attribute, n.value), Object.defineProperty(e, i, {
43
23
  get() {
44
- return prop.value;
24
+ return n.value;
45
25
  },
46
-
47
- set(val) {
48
- const oldValue = prop.value;
49
- prop.value = val;
50
- prop.reflect && reflect(this, prop.attribute, prop.value);
51
-
52
- for (let i = 0, l = this.__propertyChangedCallbacks.length; i < l; i++) {
53
- this.__propertyChangedCallbacks[i](key, val, oldValue);
54
- }
26
+ set(c) {
27
+ const u = n.value;
28
+ n.value = c, n.reflect && we(this, n.attribute, n.value);
29
+ for (let s = 0, d = this.__propertyChangedCallbacks.length; s < d; s++)
30
+ this.__propertyChangedCallbacks[s](i, c, u);
55
31
  },
56
-
57
- enumerable: true,
58
- configurable: true
32
+ enumerable: !0,
33
+ configurable: !0
59
34
  });
60
- });
61
- return props;
62
- }
63
- function parseAttributeValue(value) {
64
- if (!value) return;
65
-
66
- try {
67
- return JSON.parse(value);
68
- } catch (err) {
69
- return value;
70
- }
35
+ }), r;
36
+ }
37
+ function Ce(e) {
38
+ if (e)
39
+ try {
40
+ return JSON.parse(e);
41
+ } catch {
42
+ return e;
43
+ }
71
44
  }
72
- function reflect(node, attribute, value) {
73
- if (value == null || value === false) return node.removeAttribute(attribute);
74
- let reflect = JSON.stringify(value);
75
- node.__updating[attribute] = true;
76
- if (reflect === "true") reflect = "";
77
- node.setAttribute(attribute, reflect);
78
- Promise.resolve().then(() => delete node.__updating[attribute]);
45
+ function we(e, t, r) {
46
+ if (r == null || r === !1)
47
+ return e.removeAttribute(t);
48
+ let o = JSON.stringify(r);
49
+ e.__updating[t] = !0, o === "true" && (o = ""), e.setAttribute(t, o), Promise.resolve().then(() => delete e.__updating[t]);
79
50
  }
80
- function toAttribute(propName) {
81
- return propName.replace(/\.?([A-Z]+)/g, (x, y) => "-" + y.toLowerCase()).replace("_", "-").replace(/^-/, "");
51
+ function We(e) {
52
+ return e.replace(/\.?([A-Z]+)/g, (t, r) => "-" + r.toLowerCase()).replace("_", "-").replace(/^-/, "");
82
53
  }
83
- function isObject(obj) {
84
- return obj != null && (typeof obj === "object" || typeof obj === "function");
54
+ function Se(e) {
55
+ return e != null && (typeof e == "object" || typeof e == "function");
85
56
  }
86
- function isFunction(val) {
87
- return Object.prototype.toString.call(val) === "[object Function]";
57
+ function Je(e) {
58
+ return Object.prototype.toString.call(e) === "[object Function]";
88
59
  }
89
- function isConstructor(f) {
90
- return typeof f === "function" && f.toString().indexOf("class") === 0;
60
+ function Ge(e) {
61
+ return typeof e == "function" && e.toString().indexOf("class") === 0;
91
62
  }
92
-
93
- let currentElement;
94
- function createElementType(BaseElement, propDefinition) {
95
- const propKeys = Object.keys(propDefinition);
96
- return class CustomElement extends BaseElement {
63
+ let re;
64
+ function Qe(e, t) {
65
+ const r = Object.keys(t);
66
+ return class extends e {
97
67
  static get observedAttributes() {
98
- return propKeys.map(k => propDefinition[k].attribute);
68
+ return r.map((i) => t[i].attribute);
99
69
  }
100
-
101
70
  constructor() {
102
- super();
103
- this.__initialized = false;
104
- this.__released = false;
105
- this.__releaseCallbacks = [];
106
- this.__propertyChangedCallbacks = [];
107
- this.__updating = {};
108
- this.props = {};
71
+ super(), this.__initialized = !1, this.__released = !1, this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = {};
109
72
  }
110
-
111
73
  connectedCallback() {
112
- if (this.__initialized) return;
113
- this.__releaseCallbacks = [];
114
- this.__propertyChangedCallbacks = [];
115
- this.__updating = {};
116
- this.props = initializeProps(this, propDefinition);
117
- const props = propValues(this.props),
118
- ComponentType = this.Component,
119
- outerElement = currentElement;
120
-
74
+ if (this.__initialized)
75
+ return;
76
+ this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = qe(this, t);
77
+ const i = He(this.props), n = this.Component, l = re;
121
78
  try {
122
- currentElement = this;
123
- this.__initialized = true;
124
- if (isConstructor(ComponentType)) new ComponentType(props, {
79
+ re = this, this.__initialized = !0, Ge(n) ? new n(i, {
125
80
  element: this
126
- });else ComponentType(props, {
81
+ }) : n(i, {
127
82
  element: this
128
83
  });
129
84
  } finally {
130
- currentElement = outerElement;
85
+ re = l;
131
86
  }
132
87
  }
133
-
134
88
  async disconnectedCallback() {
135
- // prevent premature releasing when element is only temporarely removed from DOM
136
- await Promise.resolve();
137
- if (this.isConnected) return;
89
+ if (await Promise.resolve(), this.isConnected)
90
+ return;
138
91
  this.__propertyChangedCallbacks.length = 0;
139
- let callback = null;
140
-
141
- while (callback = this.__releaseCallbacks.pop()) callback(this);
142
-
143
- delete this.__initialized;
144
- this.__released = true;
92
+ let i = null;
93
+ for (; i = this.__releaseCallbacks.pop(); )
94
+ i(this);
95
+ delete this.__initialized, this.__released = !0;
145
96
  }
146
-
147
- attributeChangedCallback(name, oldVal, newVal) {
148
- if (!this.__initialized) return;
149
- if (this.__updating[name]) return;
150
- name = this.lookupProp(name);
151
-
152
- if (name in propDefinition) {
153
- if (newVal == null && !this[name]) return;
154
- this[name] = propDefinition[name].parse ? parseAttributeValue(newVal) : newVal;
97
+ attributeChangedCallback(i, n, l) {
98
+ if (this.__initialized && !this.__updating[i] && (i = this.lookupProp(i), i in t)) {
99
+ if (l == null && !this[i])
100
+ return;
101
+ this[i] = t[i].parse ? Ce(l) : l;
155
102
  }
156
103
  }
157
-
158
- lookupProp(attrName) {
159
- if (!propDefinition) return;
160
- return propKeys.find(k => attrName === k || attrName === propDefinition[k].attribute);
104
+ lookupProp(i) {
105
+ if (t)
106
+ return r.find((n) => i === n || i === t[n].attribute);
161
107
  }
162
-
163
108
  get renderRoot() {
164
109
  return this.shadowRoot || this.attachShadow({
165
110
  mode: "open"
166
111
  });
167
112
  }
168
-
169
- addReleaseCallback(fn) {
170
- this.__releaseCallbacks.push(fn);
113
+ addReleaseCallback(i) {
114
+ this.__releaseCallbacks.push(i);
171
115
  }
172
-
173
- addPropertyChangedCallback(fn) {
174
- this.__propertyChangedCallbacks.push(fn);
116
+ addPropertyChangedCallback(i) {
117
+ this.__propertyChangedCallbacks.push(i);
175
118
  }
176
-
177
119
  };
178
120
  }
179
-
180
- function register(tag, props = {}, options = {}) {
121
+ function Ze(e, t = {}, r = {}) {
181
122
  const {
182
- BaseElement = HTMLElement,
183
- extension
184
- } = options;
185
- return ComponentType => {
186
- if (!tag) throw new Error("tag is required to register a Component");
187
- let ElementType = customElements.get(tag);
188
-
189
- if (ElementType) {
190
- // Consider disabling this in a production mode
191
- ElementType.prototype.Component = ComponentType;
192
- return ElementType;
193
- }
194
-
195
- ElementType = createElementType(BaseElement, normalizePropDefs(props));
196
- ElementType.prototype.Component = ComponentType;
197
- ElementType.prototype.registeredTag = tag;
198
- customElements.define(tag, ElementType, extension);
199
- return ElementType;
123
+ BaseElement: o = HTMLElement,
124
+ extension: i
125
+ } = r;
126
+ return (n) => {
127
+ if (!e)
128
+ throw new Error("tag is required to register a Component");
129
+ let l = customElements.get(e);
130
+ return l ? (l.prototype.Component = n, l) : (l = Qe(o, Xe(t)), l.prototype.Component = n, l.prototype.registeredTag = e, customElements.define(e, l, i), l);
200
131
  };
201
132
  }
202
-
203
- const sharedConfig = {
204
- context: undefined,
205
- registry: undefined
206
- };
207
-
208
- const equalFn = (a, b) => a === b;
209
- const $PROXY = Symbol("solid-proxy");
210
- const $TRACK = Symbol("solid-track");
211
- const signalOptions = {
212
- equals: equalFn
133
+ const et = (e, t) => e === t, S = Symbol("solid-proxy"), ne = Symbol("solid-track"), Y = {
134
+ equals: et
213
135
  };
214
- let runEffects = runQueue;
215
- const STALE = 1;
216
- const PENDING = 2;
217
- const UNOWNED = {
136
+ let Ae = Le;
137
+ const E = 1, X = 2, $e = {
218
138
  owned: null,
219
139
  cleanups: null,
220
140
  context: null,
221
141
  owner: null
222
142
  };
223
- var Owner = null;
224
- let Transition = null;
225
- let Listener = null;
226
- let Updates = null;
227
- let Effects = null;
228
- let ExecCount = 0;
229
- function createRoot(fn, detachedOwner) {
230
- const listener = Listener,
231
- owner = Owner,
232
- unowned = fn.length === 0,
233
- root = unowned ? UNOWNED : {
234
- owned: null,
235
- cleanups: null,
236
- context: null,
237
- owner: detachedOwner === undefined ? owner : detachedOwner
238
- },
239
- updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
240
- Owner = root;
241
- Listener = null;
143
+ var h = null;
144
+ let oe = null, p = null, y = null, O = null, Z = 0;
145
+ function M(e, t) {
146
+ const r = p, o = h, i = e.length === 0, n = i ? $e : {
147
+ owned: null,
148
+ cleanups: null,
149
+ context: null,
150
+ owner: t === void 0 ? o : t
151
+ }, l = i ? e : () => e(() => A(() => ee(n)));
152
+ h = n, p = null;
242
153
  try {
243
- return runUpdates(updateFn, true);
154
+ return F(l, !0);
244
155
  } finally {
245
- Listener = listener;
246
- Owner = owner;
156
+ p = r, h = o;
247
157
  }
248
158
  }
249
- function createSignal(value, options) {
250
- options = options ? Object.assign({}, signalOptions, options) : signalOptions;
251
- const s = {
252
- value,
159
+ function K(e, t) {
160
+ t = t ? Object.assign({}, Y, t) : Y;
161
+ const r = {
162
+ value: e,
253
163
  observers: null,
254
164
  observerSlots: null,
255
- comparator: options.equals || undefined
256
- };
257
- const setter = value => {
258
- if (typeof value === "function") {
259
- value = value(s.value);
260
- }
261
- return writeSignal(s, value);
262
- };
263
- return [readSignal.bind(s), setter];
264
- }
265
- function createRenderEffect(fn, value, options) {
266
- const c = createComputation(fn, value, false, STALE);
267
- updateComputation(c);
268
- }
269
- function createMemo(fn, value, options) {
270
- options = options ? Object.assign({}, signalOptions, options) : signalOptions;
271
- const c = createComputation(fn, value, true, 0);
272
- c.observers = null;
273
- c.observerSlots = null;
274
- c.comparator = options.equals || undefined;
275
- updateComputation(c);
276
- return readSignal.bind(c);
277
- }
278
- function batch(fn) {
279
- return runUpdates(fn, false);
280
- }
281
- function untrack(fn) {
282
- if (Listener === null) return fn();
283
- const listener = Listener;
284
- Listener = null;
165
+ comparator: t.equals || void 0
166
+ }, o = (i) => (typeof i == "function" && (i = i(r.value)), Ne(r, i));
167
+ return [ze.bind(r), o];
168
+ }
169
+ function x(e, t, r) {
170
+ const o = be(e, t, !1, E);
171
+ R(o);
172
+ }
173
+ function tt(e, t, r) {
174
+ Ae = at;
175
+ const o = be(e, t, !1, E);
176
+ (!r || !r.render) && (o.user = !0), O ? O.push(o) : R(o);
177
+ }
178
+ function C(e, t, r) {
179
+ r = r ? Object.assign({}, Y, r) : Y;
180
+ const o = be(e, t, !0, 0);
181
+ return o.observers = null, o.observerSlots = null, o.comparator = r.equals || void 0, R(o), ze.bind(o);
182
+ }
183
+ function Oe(e) {
184
+ return F(e, !1);
185
+ }
186
+ function A(e) {
187
+ if (p === null)
188
+ return e();
189
+ const t = p;
190
+ p = null;
285
191
  try {
286
- return fn();
192
+ return e();
287
193
  } finally {
288
- Listener = listener;
194
+ p = t;
289
195
  }
290
196
  }
291
- function onCleanup(fn) {
292
- if (Owner === null) ;else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
293
- return fn;
197
+ function rt(e, t, r) {
198
+ const o = Array.isArray(e);
199
+ let i, n = r && r.defer;
200
+ return (l) => {
201
+ let a;
202
+ if (o) {
203
+ a = Array(e.length);
204
+ for (let u = 0; u < e.length; u++)
205
+ a[u] = e[u]();
206
+ } else
207
+ a = e();
208
+ if (n) {
209
+ n = !1;
210
+ return;
211
+ }
212
+ const c = A(() => t(a, i, l));
213
+ return i = a, c;
214
+ };
215
+ }
216
+ function Pe(e) {
217
+ return h === null || (h.cleanups === null ? h.cleanups = [e] : h.cleanups.push(e)), e;
294
218
  }
295
- function getListener() {
296
- return Listener;
219
+ function Ee() {
220
+ return p;
297
221
  }
298
- function createContext(defaultValue, options) {
299
- const id = Symbol("context");
222
+ function ot(e, t) {
223
+ const r = Symbol("context");
300
224
  return {
301
- id,
302
- Provider: createProvider(id),
303
- defaultValue
225
+ id: r,
226
+ Provider: ct(r),
227
+ defaultValue: e
304
228
  };
305
229
  }
306
- function useContext(context) {
307
- let ctx;
308
- return (ctx = lookup(Owner, context.id)) !== undefined ? ctx : context.defaultValue;
309
- }
310
- function children(fn) {
311
- const children = createMemo(fn);
312
- const memo = createMemo(() => resolveChildren(children()));
313
- memo.toArray = () => {
314
- const c = memo();
315
- return Array.isArray(c) ? c : c != null ? [c] : [];
316
- };
317
- return memo;
318
- }
319
- function readSignal() {
320
- if (this.sources && (this.state)) {
321
- if ((this.state) === STALE) updateComputation(this);else {
322
- const updates = Updates;
323
- Updates = null;
324
- runUpdates(() => lookUpstream(this), false);
325
- Updates = updates;
326
- }
327
- }
328
- if (Listener) {
329
- const sSlot = this.observers ? this.observers.length : 0;
330
- if (!Listener.sources) {
331
- Listener.sources = [this];
332
- Listener.sourceSlots = [sSlot];
333
- } else {
334
- Listener.sources.push(this);
335
- Listener.sourceSlots.push(sSlot);
336
- }
337
- if (!this.observers) {
338
- this.observers = [Listener];
339
- this.observerSlots = [Listener.sources.length - 1];
340
- } else {
341
- this.observers.push(Listener);
342
- this.observerSlots.push(Listener.sources.length - 1);
230
+ function fe(e) {
231
+ let t;
232
+ return (t = Be(h, e.id)) !== void 0 ? t : e.defaultValue;
233
+ }
234
+ function it(e) {
235
+ const t = C(e), r = C(() => le(t()));
236
+ return r.toArray = () => {
237
+ const o = r();
238
+ return Array.isArray(o) ? o : o != null ? [o] : [];
239
+ }, r;
240
+ }
241
+ function ze() {
242
+ if (this.sources && this.state)
243
+ if (this.state === E)
244
+ R(this);
245
+ else {
246
+ const e = y;
247
+ y = null, F(() => q(this), !1), y = e;
343
248
  }
249
+ if (p) {
250
+ const e = this.observers ? this.observers.length : 0;
251
+ p.sources ? (p.sources.push(this), p.sourceSlots.push(e)) : (p.sources = [this], p.sourceSlots = [e]), this.observers ? (this.observers.push(p), this.observerSlots.push(p.sources.length - 1)) : (this.observers = [p], this.observerSlots = [p.sources.length - 1]);
344
252
  }
345
253
  return this.value;
346
254
  }
347
- function writeSignal(node, value, isComp) {
348
- let current = node.value;
349
- if (!node.comparator || !node.comparator(current, value)) {
350
- node.value = value;
351
- if (node.observers && node.observers.length) {
352
- runUpdates(() => {
353
- for (let i = 0; i < node.observers.length; i += 1) {
354
- const o = node.observers[i];
355
- const TransitionRunning = Transition && Transition.running;
356
- if (TransitionRunning && Transition.disposed.has(o)) ;
357
- if (TransitionRunning ? !o.tState : !o.state) {
358
- if (o.pure) Updates.push(o);else Effects.push(o);
359
- if (o.observers) markDownstream(o);
360
- }
361
- if (!TransitionRunning) o.state = STALE;
362
- }
363
- if (Updates.length > 10e5) {
364
- Updates = [];
365
- if (false) ;
366
- throw new Error();
367
- }
368
- }, false);
255
+ function Ne(e, t, r) {
256
+ let o = e.value;
257
+ return (!e.comparator || !e.comparator(o, t)) && (e.value = t, e.observers && e.observers.length && F(() => {
258
+ for (let i = 0; i < e.observers.length; i += 1) {
259
+ const n = e.observers[i], l = oe && oe.running;
260
+ l && oe.disposed.has(n), (l ? !n.tState : !n.state) && (n.pure ? y.push(n) : O.push(n), n.observers && Te(n)), l || (n.state = E);
369
261
  }
370
- }
371
- return value;
372
- }
373
- function updateComputation(node) {
374
- if (!node.fn) return;
375
- cleanNode(node);
376
- const owner = Owner,
377
- listener = Listener,
378
- time = ExecCount;
379
- Listener = Owner = node;
380
- runComputation(node, node.value, time);
381
- Listener = listener;
382
- Owner = owner;
383
- }
384
- function runComputation(node, value, time) {
385
- let nextValue;
262
+ if (y.length > 1e6)
263
+ throw y = [], new Error();
264
+ }, !1)), t;
265
+ }
266
+ function R(e) {
267
+ if (!e.fn)
268
+ return;
269
+ ee(e);
270
+ const t = h, r = p, o = Z;
271
+ p = h = e, nt(e, e.value, o), p = r, h = t;
272
+ }
273
+ function nt(e, t, r) {
274
+ let o;
386
275
  try {
387
- nextValue = node.fn(value);
388
- } catch (err) {
389
- if (node.pure) {
390
- {
391
- node.state = STALE;
392
- node.owned && node.owned.forEach(cleanNode);
393
- node.owned = null;
394
- }
395
- }
396
- node.updatedAt = time + 1;
397
- return handleError(err);
398
- }
399
- if (!node.updatedAt || node.updatedAt <= time) {
400
- if (node.updatedAt != null && "observers" in node) {
401
- writeSignal(node, nextValue);
402
- } else node.value = nextValue;
403
- node.updatedAt = time;
276
+ o = e.fn(t);
277
+ } catch (i) {
278
+ return e.pure && (e.state = E, e.owned && e.owned.forEach(ee), e.owned = null), e.updatedAt = r + 1, Fe(i);
404
279
  }
280
+ (!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? Ne(e, o) : e.value = o, e.updatedAt = r);
405
281
  }
406
- function createComputation(fn, init, pure, state = STALE, options) {
407
- const c = {
408
- fn,
409
- state: state,
282
+ function be(e, t, r, o = E, i) {
283
+ const n = {
284
+ fn: e,
285
+ state: o,
410
286
  updatedAt: null,
411
287
  owned: null,
412
288
  sources: null,
413
289
  sourceSlots: null,
414
290
  cleanups: null,
415
- value: init,
416
- owner: Owner,
291
+ value: t,
292
+ owner: h,
417
293
  context: null,
418
- pure
294
+ pure: r
419
295
  };
420
- if (Owner === null) ;else if (Owner !== UNOWNED) {
421
- {
422
- if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
296
+ return h === null || h !== $e && (h.owned ? h.owned.push(n) : h.owned = [n]), n;
297
+ }
298
+ function H(e) {
299
+ if (e.state === 0)
300
+ return;
301
+ if (e.state === X)
302
+ return q(e);
303
+ if (e.suspense && A(e.suspense.inFallback))
304
+ return e.suspense.effects.push(e);
305
+ const t = [e];
306
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Z); )
307
+ e.state && t.push(e);
308
+ for (let r = t.length - 1; r >= 0; r--)
309
+ if (e = t[r], e.state === E)
310
+ R(e);
311
+ else if (e.state === X) {
312
+ const o = y;
313
+ y = null, F(() => q(e, t[0]), !1), y = o;
423
314
  }
424
- }
425
- return c;
426
- }
427
- function runTop(node) {
428
- if ((node.state) === 0) return;
429
- if ((node.state) === PENDING) return lookUpstream(node);
430
- if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
431
- const ancestors = [node];
432
- while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
433
- if (node.state) ancestors.push(node);
434
- }
435
- for (let i = ancestors.length - 1; i >= 0; i--) {
436
- node = ancestors[i];
437
- if ((node.state) === STALE) {
438
- updateComputation(node);
439
- } else if ((node.state) === PENDING) {
440
- const updates = Updates;
441
- Updates = null;
442
- runUpdates(() => lookUpstream(node, ancestors[0]), false);
443
- Updates = updates;
444
- }
445
- }
446
315
  }
447
- function runUpdates(fn, init) {
448
- if (Updates) return fn();
449
- let wait = false;
450
- if (!init) Updates = [];
451
- if (Effects) wait = true;else Effects = [];
452
- ExecCount++;
316
+ function F(e, t) {
317
+ if (y)
318
+ return e();
319
+ let r = !1;
320
+ t || (y = []), O ? r = !0 : O = [], Z++;
453
321
  try {
454
- const res = fn();
455
- completeUpdates(wait);
456
- return res;
457
- } catch (err) {
458
- if (!wait) Effects = null;
459
- Updates = null;
460
- handleError(err);
322
+ const o = e();
323
+ return lt(r), o;
324
+ } catch (o) {
325
+ r || (O = null), y = null, Fe(o);
461
326
  }
462
327
  }
463
- function completeUpdates(wait) {
464
- if (Updates) {
465
- runQueue(Updates);
466
- Updates = null;
328
+ function lt(e) {
329
+ if (y && (Le(y), y = null), e)
330
+ return;
331
+ const t = O;
332
+ O = null, t.length && F(() => Ae(t), !1);
333
+ }
334
+ function Le(e) {
335
+ for (let t = 0; t < e.length; t++)
336
+ H(e[t]);
337
+ }
338
+ function at(e) {
339
+ let t, r = 0;
340
+ for (t = 0; t < e.length; t++) {
341
+ const o = e[t];
342
+ o.user ? e[r++] = o : H(o);
467
343
  }
468
- if (wait) return;
469
- const e = Effects;
470
- Effects = null;
471
- if (e.length) runUpdates(() => runEffects(e), false);
472
- }
473
- function runQueue(queue) {
474
- for (let i = 0; i < queue.length; i++) runTop(queue[i]);
475
- }
476
- function lookUpstream(node, ignore) {
477
- node.state = 0;
478
- for (let i = 0; i < node.sources.length; i += 1) {
479
- const source = node.sources[i];
480
- if (source.sources) {
481
- const state = source.state;
482
- if (state === STALE) {
483
- if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
484
- } else if (state === PENDING) lookUpstream(source, ignore);
344
+ for (t = 0; t < r; t++)
345
+ H(e[t]);
346
+ }
347
+ function q(e, t) {
348
+ e.state = 0;
349
+ for (let r = 0; r < e.sources.length; r += 1) {
350
+ const o = e.sources[r];
351
+ if (o.sources) {
352
+ const i = o.state;
353
+ i === E ? o !== t && (!o.updatedAt || o.updatedAt < Z) && H(o) : i === X && q(o, t);
485
354
  }
486
355
  }
487
356
  }
488
- function markDownstream(node) {
489
- for (let i = 0; i < node.observers.length; i += 1) {
490
- const o = node.observers[i];
491
- if (!o.state) {
492
- o.state = PENDING;
493
- if (o.pure) Updates.push(o);else Effects.push(o);
494
- o.observers && markDownstream(o);
495
- }
357
+ function Te(e) {
358
+ for (let t = 0; t < e.observers.length; t += 1) {
359
+ const r = e.observers[t];
360
+ r.state || (r.state = X, r.pure ? y.push(r) : O.push(r), r.observers && Te(r));
496
361
  }
497
362
  }
498
- function cleanNode(node) {
499
- let i;
500
- if (node.sources) {
501
- while (node.sources.length) {
502
- const source = node.sources.pop(),
503
- index = node.sourceSlots.pop(),
504
- obs = source.observers;
505
- if (obs && obs.length) {
506
- const n = obs.pop(),
507
- s = source.observerSlots.pop();
508
- if (index < obs.length) {
509
- n.sourceSlots[s] = index;
510
- obs[index] = n;
511
- source.observerSlots[index] = s;
512
- }
363
+ function ee(e) {
364
+ let t;
365
+ if (e.sources)
366
+ for (; e.sources.length; ) {
367
+ const r = e.sources.pop(), o = e.sourceSlots.pop(), i = r.observers;
368
+ if (i && i.length) {
369
+ const n = i.pop(), l = r.observerSlots.pop();
370
+ o < i.length && (n.sourceSlots[l] = o, i[o] = n, r.observerSlots[o] = l);
513
371
  }
514
372
  }
373
+ if (e.owned) {
374
+ for (t = e.owned.length - 1; t >= 0; t--)
375
+ ee(e.owned[t]);
376
+ e.owned = null;
515
377
  }
516
- if (node.owned) {
517
- for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
518
- node.owned = null;
378
+ if (e.cleanups) {
379
+ for (t = e.cleanups.length - 1; t >= 0; t--)
380
+ e.cleanups[t]();
381
+ e.cleanups = null;
519
382
  }
520
- if (node.cleanups) {
521
- for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
522
- node.cleanups = null;
523
- }
524
- node.state = 0;
525
- node.context = null;
526
- }
527
- function handleError(err) {
528
- throw err;
529
- }
530
- function lookup(owner, key) {
531
- return owner ? owner.context && owner.context[key] !== undefined ? owner.context[key] : lookup(owner.owner, key) : undefined;
532
- }
533
- function resolveChildren(children) {
534
- if (typeof children === "function" && !children.length) return resolveChildren(children());
535
- if (Array.isArray(children)) {
536
- const results = [];
537
- for (let i = 0; i < children.length; i++) {
538
- const result = resolveChildren(children[i]);
539
- Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
383
+ e.state = 0, e.context = null;
384
+ }
385
+ function st(e) {
386
+ return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
387
+ cause: e
388
+ });
389
+ }
390
+ function Fe(e, t = h) {
391
+ throw st(e);
392
+ }
393
+ function Be(e, t) {
394
+ return e ? e.context && e.context[t] !== void 0 ? e.context[t] : Be(e.owner, t) : void 0;
395
+ }
396
+ function le(e) {
397
+ if (typeof e == "function" && !e.length)
398
+ return le(e());
399
+ if (Array.isArray(e)) {
400
+ const t = [];
401
+ for (let r = 0; r < e.length; r++) {
402
+ const o = le(e[r]);
403
+ Array.isArray(o) ? t.push.apply(t, o) : t.push(o);
540
404
  }
541
- return results;
405
+ return t;
542
406
  }
543
- return children;
544
- }
545
- function createProvider(id, options) {
546
- return function provider(props) {
547
- let res;
548
- createRenderEffect(() => res = untrack(() => {
549
- Owner.context = {
550
- [id]: props.value
551
- };
552
- return children(() => props.children);
553
- }), undefined);
554
- return res;
407
+ return e;
408
+ }
409
+ function ct(e, t) {
410
+ return function(o) {
411
+ let i;
412
+ return x(() => i = A(() => (h.context = {
413
+ [e]: o.value
414
+ }, it(() => o.children))), void 0), i;
555
415
  };
556
416
  }
557
-
558
- const FALLBACK = Symbol("fallback");
559
- function dispose(d) {
560
- for (let i = 0; i < d.length; i++) d[i]();
561
- }
562
- function mapArray(list, mapFn, options = {}) {
563
- let items = [],
564
- mapped = [],
565
- disposers = [],
566
- len = 0,
567
- indexes = mapFn.length > 1 ? [] : null;
568
- onCleanup(() => dispose(disposers));
569
- return () => {
570
- let newItems = list() || [],
571
- i,
572
- j;
573
- newItems[$TRACK];
574
- return untrack(() => {
575
- let newLen = newItems.length,
576
- newIndices,
577
- newIndicesNext,
578
- temp,
579
- tempdisposers,
580
- tempIndexes,
581
- start,
582
- end,
583
- newEnd,
584
- item;
585
- if (newLen === 0) {
586
- if (len !== 0) {
587
- dispose(disposers);
588
- disposers = [];
589
- items = [];
590
- mapped = [];
591
- len = 0;
592
- indexes && (indexes = []);
593
- }
594
- if (options.fallback) {
595
- items = [FALLBACK];
596
- mapped[0] = createRoot(disposer => {
597
- disposers[0] = disposer;
598
- return options.fallback();
599
- });
600
- len = 1;
601
- }
602
- }
603
- else if (len === 0) {
604
- mapped = new Array(newLen);
605
- for (j = 0; j < newLen; j++) {
606
- items[j] = newItems[j];
607
- mapped[j] = createRoot(mapper);
608
- }
609
- len = newLen;
417
+ const dt = Symbol("fallback");
418
+ function me(e) {
419
+ for (let t = 0; t < e.length; t++)
420
+ e[t]();
421
+ }
422
+ function ut(e, t, r = {}) {
423
+ let o = [], i = [], n = [], l = 0, a = t.length > 1 ? [] : null;
424
+ return Pe(() => me(n)), () => {
425
+ let c = e() || [], u, s;
426
+ return c[ne], A(() => {
427
+ let f = c.length, b, w, j, _, z, k, v, $, N;
428
+ if (f === 0)
429
+ l !== 0 && (me(n), n = [], o = [], i = [], l = 0, a && (a = [])), r.fallback && (o = [dt], i[0] = M((Me) => (n[0] = Me, r.fallback())), l = 1);
430
+ else if (l === 0) {
431
+ for (i = new Array(f), s = 0; s < f; s++)
432
+ o[s] = c[s], i[s] = M(d);
433
+ l = f;
610
434
  } else {
611
- temp = new Array(newLen);
612
- tempdisposers = new Array(newLen);
613
- indexes && (tempIndexes = new Array(newLen));
614
- for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
615
- for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
616
- temp[newEnd] = mapped[end];
617
- tempdisposers[newEnd] = disposers[end];
618
- indexes && (tempIndexes[newEnd] = indexes[end]);
619
- }
620
- newIndices = new Map();
621
- newIndicesNext = new Array(newEnd + 1);
622
- for (j = newEnd; j >= start; j--) {
623
- item = newItems[j];
624
- i = newIndices.get(item);
625
- newIndicesNext[j] = i === undefined ? -1 : i;
626
- newIndices.set(item, j);
627
- }
628
- for (i = start; i <= end; i++) {
629
- item = items[i];
630
- j = newIndices.get(item);
631
- if (j !== undefined && j !== -1) {
632
- temp[j] = mapped[i];
633
- tempdisposers[j] = disposers[i];
634
- indexes && (tempIndexes[j] = indexes[i]);
635
- j = newIndicesNext[j];
636
- newIndices.set(item, j);
637
- } else disposers[i]();
638
- }
639
- for (j = start; j < newLen; j++) {
640
- if (j in temp) {
641
- mapped[j] = temp[j];
642
- disposers[j] = tempdisposers[j];
643
- if (indexes) {
644
- indexes[j] = tempIndexes[j];
645
- indexes[j](j);
646
- }
647
- } else mapped[j] = createRoot(mapper);
648
- }
649
- mapped = mapped.slice(0, len = newLen);
650
- items = newItems.slice(0);
435
+ for (j = new Array(f), _ = new Array(f), a && (z = new Array(f)), k = 0, v = Math.min(l, f); k < v && o[k] === c[k]; k++)
436
+ ;
437
+ for (v = l - 1, $ = f - 1; v >= k && $ >= k && o[v] === c[$]; v--, $--)
438
+ j[$] = i[v], _[$] = n[v], a && (z[$] = a[v]);
439
+ for (b = /* @__PURE__ */ new Map(), w = new Array($ + 1), s = $; s >= k; s--)
440
+ N = c[s], u = b.get(N), w[s] = u === void 0 ? -1 : u, b.set(N, s);
441
+ for (u = k; u <= v; u++)
442
+ N = o[u], s = b.get(N), s !== void 0 && s !== -1 ? (j[s] = i[u], _[s] = n[u], a && (z[s] = a[u]), s = w[s], b.set(N, s)) : n[u]();
443
+ for (s = k; s < f; s++)
444
+ s in j ? (i[s] = j[s], n[s] = _[s], a && (a[s] = z[s], a[s](s))) : i[s] = M(d);
445
+ i = i.slice(0, l = f), o = c.slice(0);
651
446
  }
652
- return mapped;
447
+ return i;
653
448
  });
654
- function mapper(disposer) {
655
- disposers[j] = disposer;
656
- if (indexes) {
657
- const [s, set] = createSignal(j);
658
- indexes[j] = set;
659
- return mapFn(newItems[j], s);
449
+ function d(f) {
450
+ if (n[s] = f, a) {
451
+ const [b, w] = K(s);
452
+ return a[s] = w, t(c[s], b);
660
453
  }
661
- return mapFn(newItems[j]);
454
+ return t(c[s]);
662
455
  }
663
456
  };
664
457
  }
665
- function createComponent(Comp, props) {
666
- return untrack(() => Comp(props || {}));
458
+ function m(e, t) {
459
+ return A(() => e(t || {}));
667
460
  }
668
- function trueFn() {
669
- return true;
461
+ function U() {
462
+ return !0;
670
463
  }
671
- const propTraps = {
672
- get(_, property, receiver) {
673
- if (property === $PROXY) return receiver;
674
- return _.get(property);
464
+ const ae = {
465
+ get(e, t, r) {
466
+ return t === S ? r : e.get(t);
675
467
  },
676
- has(_, property) {
677
- if (property === $PROXY) return true;
678
- return _.has(property);
468
+ has(e, t) {
469
+ return t === S ? !0 : e.has(t);
679
470
  },
680
- set: trueFn,
681
- deleteProperty: trueFn,
682
- getOwnPropertyDescriptor(_, property) {
471
+ set: U,
472
+ deleteProperty: U,
473
+ getOwnPropertyDescriptor(e, t) {
683
474
  return {
684
- configurable: true,
685
- enumerable: true,
475
+ configurable: !0,
476
+ enumerable: !0,
686
477
  get() {
687
- return _.get(property);
478
+ return e.get(t);
688
479
  },
689
- set: trueFn,
690
- deleteProperty: trueFn
480
+ set: U,
481
+ deleteProperty: U
691
482
  };
692
483
  },
693
- ownKeys(_) {
694
- return _.keys();
484
+ ownKeys(e) {
485
+ return e.keys();
695
486
  }
696
487
  };
697
- function resolveSource(s) {
698
- return !(s = typeof s === "function" ? s() : s) ? {} : s;
699
- }
700
- function resolveSources() {
701
- for (let i = 0, length = this.length; i < length; ++i) {
702
- const v = this[i]();
703
- if (v !== undefined) return v;
488
+ function ie(e) {
489
+ return (e = typeof e == "function" ? e() : e) ? e : {};
490
+ }
491
+ function ft() {
492
+ for (let e = 0, t = this.length; e < t; ++e) {
493
+ const r = this[e]();
494
+ if (r !== void 0)
495
+ return r;
704
496
  }
705
497
  }
706
- function mergeProps(...sources) {
707
- let proxy = false;
708
- for (let i = 0; i < sources.length; i++) {
709
- const s = sources[i];
710
- proxy = proxy || !!s && $PROXY in s;
711
- sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
498
+ function bt(...e) {
499
+ let t = !1;
500
+ for (let n = 0; n < e.length; n++) {
501
+ const l = e[n];
502
+ t = t || !!l && S in l, e[n] = typeof l == "function" ? (t = !0, C(l)) : l;
712
503
  }
713
- if (proxy) {
504
+ if (t)
714
505
  return new Proxy({
715
- get(property) {
716
- for (let i = sources.length - 1; i >= 0; i--) {
717
- const v = resolveSource(sources[i])[property];
718
- if (v !== undefined) return v;
506
+ get(n) {
507
+ for (let l = e.length - 1; l >= 0; l--) {
508
+ const a = ie(e[l])[n];
509
+ if (a !== void 0)
510
+ return a;
719
511
  }
720
512
  },
721
- has(property) {
722
- for (let i = sources.length - 1; i >= 0; i--) {
723
- if (property in resolveSource(sources[i])) return true;
724
- }
725
- return false;
513
+ has(n) {
514
+ for (let l = e.length - 1; l >= 0; l--)
515
+ if (n in ie(e[l]))
516
+ return !0;
517
+ return !1;
726
518
  },
727
519
  keys() {
728
- const keys = [];
729
- for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
730
- return [...new Set(keys)];
520
+ const n = [];
521
+ for (let l = 0; l < e.length; l++)
522
+ n.push(...Object.keys(ie(e[l])));
523
+ return [...new Set(n)];
731
524
  }
732
- }, propTraps);
733
- }
734
- const target = {};
735
- const sourcesMap = {};
736
- let someNonTargetKey = false;
737
- for (let i = sources.length - 1; i >= 0; i--) {
738
- const source = sources[i];
739
- if (!source) continue;
740
- const sourceKeys = Object.getOwnPropertyNames(source);
741
- someNonTargetKey = someNonTargetKey || i !== 0 && !!sourceKeys.length;
742
- for (let i = 0, length = sourceKeys.length; i < length; i++) {
743
- const key = sourceKeys[i];
744
- if (key === "__proto__" || key === "constructor") {
525
+ }, ae);
526
+ const r = {}, o = {}, i = /* @__PURE__ */ new Set();
527
+ for (let n = e.length - 1; n >= 0; n--) {
528
+ const l = e[n];
529
+ if (!l)
530
+ continue;
531
+ const a = Object.getOwnPropertyNames(l);
532
+ for (let c = 0, u = a.length; c < u; c++) {
533
+ const s = a[c];
534
+ if (s === "__proto__" || s === "constructor")
745
535
  continue;
746
- } else if (!(key in target)) {
747
- const desc = Object.getOwnPropertyDescriptor(source, key);
748
- if (desc.get) {
749
- Object.defineProperty(target, key, {
750
- enumerable: true,
751
- configurable: true,
752
- get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
753
- });
754
- } else target[key] = desc.value;
755
- } else {
756
- const sources = sourcesMap[key];
757
- const desc = Object.getOwnPropertyDescriptor(source, key);
758
- if (sources) {
759
- if (desc.get) {
760
- sources.push(desc.get.bind(source));
761
- } else if (desc.value !== undefined) {
762
- sources.push(() => desc.value);
763
- }
764
- } else if (target[key] === undefined) target[key] = desc.value;
536
+ const d = Object.getOwnPropertyDescriptor(l, s);
537
+ if (!i.has(s))
538
+ d.get ? (i.add(s), Object.defineProperty(r, s, {
539
+ enumerable: !0,
540
+ configurable: !0,
541
+ get: ft.bind(o[s] = [d.get.bind(l)])
542
+ })) : (d.value !== void 0 && i.add(s), r[s] = d.value);
543
+ else {
544
+ const f = o[s];
545
+ f ? d.get ? f.push(d.get.bind(l)) : d.value !== void 0 && f.push(() => d.value) : r[s] === void 0 && (r[s] = d.value);
765
546
  }
766
547
  }
767
548
  }
768
- return target;
769
- }
770
- function splitProps(props, ...keys) {
771
- if ($PROXY in props) {
772
- const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
773
- const res = keys.map(k => {
774
- return new Proxy({
775
- get(property) {
776
- return k.includes(property) ? props[property] : undefined;
777
- },
778
- has(property) {
779
- return k.includes(property) && property in props;
780
- },
781
- keys() {
782
- return k.filter(property => property in props);
783
- }
784
- }, propTraps);
785
- });
786
- res.push(new Proxy({
787
- get(property) {
788
- return blocked.has(property) ? undefined : props[property];
549
+ return r;
550
+ }
551
+ function pt(e, ...t) {
552
+ if (S in e) {
553
+ const i = new Set(t.length > 1 ? t.flat() : t[0]), n = t.map((l) => new Proxy({
554
+ get(a) {
555
+ return l.includes(a) ? e[a] : void 0;
789
556
  },
790
- has(property) {
791
- return blocked.has(property) ? false : property in props;
557
+ has(a) {
558
+ return l.includes(a) && a in e;
792
559
  },
793
560
  keys() {
794
- return Object.keys(props).filter(k => !blocked.has(k));
561
+ return l.filter((a) => a in e);
795
562
  }
796
- }, propTraps));
797
- return res;
798
- }
799
- const otherObject = {};
800
- const objects = keys.map(() => ({}));
801
- for (const propName of Object.getOwnPropertyNames(props)) {
802
- const desc = Object.getOwnPropertyDescriptor(props, propName);
803
- const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
804
- let blocked = false;
805
- let objectIndex = 0;
806
- for (const k of keys) {
807
- if (k.includes(propName)) {
808
- blocked = true;
809
- isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
563
+ }, ae));
564
+ return n.push(new Proxy({
565
+ get(l) {
566
+ return i.has(l) ? void 0 : e[l];
567
+ },
568
+ has(l) {
569
+ return i.has(l) ? !1 : l in e;
570
+ },
571
+ keys() {
572
+ return Object.keys(e).filter((l) => !i.has(l));
810
573
  }
811
- ++objectIndex;
812
- }
813
- if (!blocked) {
814
- isDefaultDesc ? otherObject[propName] = desc.value : Object.defineProperty(otherObject, propName, desc);
815
- }
574
+ }, ae)), n;
575
+ }
576
+ const r = {}, o = t.map(() => ({}));
577
+ for (const i of Object.getOwnPropertyNames(e)) {
578
+ const n = Object.getOwnPropertyDescriptor(e, i), l = !n.get && !n.set && n.enumerable && n.writable && n.configurable;
579
+ let a = !1, c = 0;
580
+ for (const u of t)
581
+ u.includes(i) && (a = !0, l ? o[c][i] = n.value : Object.defineProperty(o[c], i, n)), ++c;
582
+ a || (l ? r[i] = n.value : Object.defineProperty(r, i, n));
816
583
  }
817
- return [...objects, otherObject];
584
+ return [...o, r];
818
585
  }
819
- function For(props) {
820
- const fallback = "fallback" in props && {
821
- fallback: () => props.fallback
586
+ const ht = (e) => `Stale read from <${e}>.`;
587
+ function De(e) {
588
+ const t = "fallback" in e && {
589
+ fallback: () => e.fallback
822
590
  };
823
- return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
591
+ return C(ut(() => e.each, e.children, t || void 0));
592
+ }
593
+ function ye(e) {
594
+ const t = e.keyed, r = C(() => e.when, void 0, {
595
+ equals: (o, i) => t ? o === i : !o == !i
596
+ });
597
+ return C(() => {
598
+ const o = r();
599
+ if (o) {
600
+ const i = e.children;
601
+ return typeof i == "function" && i.length > 0 ? A(() => i(t ? o : () => {
602
+ if (!A(r))
603
+ throw ht("Show");
604
+ return e.when;
605
+ })) : i;
606
+ }
607
+ return e.fallback;
608
+ }, void 0, void 0);
824
609
  }
825
-
826
- const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
827
- const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
828
- const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
829
- const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
610
+ const gt = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], wt = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...gt]), mt = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), yt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
830
611
  className: "class",
831
612
  htmlFor: "for"
832
- });
833
- const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
613
+ }), vt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
834
614
  class: "className",
835
615
  formnovalidate: {
836
616
  $: "formNoValidate",
@@ -855,1108 +635,958 @@ const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
855
635
  TEXTAREA: 1
856
636
  }
857
637
  });
858
- function getPropAlias(prop, tagName) {
859
- const a = PropAliases[prop];
860
- return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
638
+ function xt(e, t) {
639
+ const r = vt[e];
640
+ return typeof r == "object" ? r[t] ? r.$ : void 0 : r;
861
641
  }
862
- const DelegatedEvents = /*#__PURE__*/new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
863
- const SVGNamespace = {
642
+ const kt = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), jt = {
864
643
  xlink: "http://www.w3.org/1999/xlink",
865
644
  xml: "http://www.w3.org/XML/1998/namespace"
866
645
  };
867
-
868
- function reconcileArrays(parentNode, a, b) {
869
- let bLength = b.length,
870
- aEnd = a.length,
871
- bEnd = bLength,
872
- aStart = 0,
873
- bStart = 0,
874
- after = a[aEnd - 1].nextSibling,
875
- map = null;
876
- while (aStart < aEnd || bStart < bEnd) {
877
- if (a[aStart] === b[bStart]) {
878
- aStart++;
879
- bStart++;
646
+ function _t(e, t, r) {
647
+ let o = r.length, i = t.length, n = o, l = 0, a = 0, c = t[i - 1].nextSibling, u = null;
648
+ for (; l < i || a < n; ) {
649
+ if (t[l] === r[a]) {
650
+ l++, a++;
880
651
  continue;
881
652
  }
882
- while (a[aEnd - 1] === b[bEnd - 1]) {
883
- aEnd--;
884
- bEnd--;
885
- }
886
- if (aEnd === aStart) {
887
- const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
888
- while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
889
- } else if (bEnd === bStart) {
890
- while (aStart < aEnd) {
891
- if (!map || !map.has(a[aStart])) a[aStart].remove();
892
- aStart++;
893
- }
894
- } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
895
- const node = a[--aEnd].nextSibling;
896
- parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
897
- parentNode.insertBefore(b[--bEnd], node);
898
- a[aEnd] = b[bEnd];
653
+ for (; t[i - 1] === r[n - 1]; )
654
+ i--, n--;
655
+ if (i === l) {
656
+ const s = n < o ? a ? r[a - 1].nextSibling : r[n - a] : c;
657
+ for (; a < n; )
658
+ e.insertBefore(r[a++], s);
659
+ } else if (n === a)
660
+ for (; l < i; )
661
+ (!u || !u.has(t[l])) && t[l].remove(), l++;
662
+ else if (t[l] === r[n - 1] && r[a] === t[i - 1]) {
663
+ const s = t[--i].nextSibling;
664
+ e.insertBefore(r[a++], t[l++].nextSibling), e.insertBefore(r[--n], s), t[i] = r[n];
899
665
  } else {
900
- if (!map) {
901
- map = new Map();
902
- let i = bStart;
903
- while (i < bEnd) map.set(b[i], i++);
666
+ if (!u) {
667
+ u = /* @__PURE__ */ new Map();
668
+ let d = a;
669
+ for (; d < n; )
670
+ u.set(r[d], d++);
904
671
  }
905
- const index = map.get(a[aStart]);
906
- if (index != null) {
907
- if (bStart < index && index < bEnd) {
908
- let i = aStart,
909
- sequence = 1,
910
- t;
911
- while (++i < aEnd && i < bEnd) {
912
- if ((t = map.get(a[i])) == null || t !== index + sequence) break;
913
- sequence++;
914
- }
915
- if (sequence > index - bStart) {
916
- const node = a[aStart];
917
- while (bStart < index) parentNode.insertBefore(b[bStart++], node);
918
- } else parentNode.replaceChild(b[bStart++], a[aStart++]);
919
- } else aStart++;
920
- } else a[aStart++].remove();
672
+ const s = u.get(t[l]);
673
+ if (s != null)
674
+ if (a < s && s < n) {
675
+ let d = l, f = 1, b;
676
+ for (; ++d < i && d < n && !((b = u.get(t[d])) == null || b !== s + f); )
677
+ f++;
678
+ if (f > s - a) {
679
+ const w = t[l];
680
+ for (; a < s; )
681
+ e.insertBefore(r[a++], w);
682
+ } else
683
+ e.replaceChild(r[a++], t[l++]);
684
+ } else
685
+ l++;
686
+ else
687
+ t[l++].remove();
921
688
  }
922
689
  }
923
690
  }
924
-
925
- const $$EVENTS = "_$DX_DELEGATE";
926
- function template(html, isCE, isSVG) {
927
- let node;
928
- const create = () => {
929
- const t = document.createElement("template");
930
- t.innerHTML = html;
931
- return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
932
- };
933
- const fn = isCE ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
934
- fn.cloneNode = fn;
935
- return fn;
936
- }
937
- function delegateEvents(eventNames, document = window.document) {
938
- const e = document[$$EVENTS] || (document[$$EVENTS] = new Set());
939
- for (let i = 0, l = eventNames.length; i < l; i++) {
940
- const name = eventNames[i];
941
- if (!e.has(name)) {
942
- e.add(name);
943
- document.addEventListener(name, eventHandler);
944
- }
691
+ const ve = "_$DX_DELEGATE";
692
+ function P(e, t, r) {
693
+ let o;
694
+ const i = () => {
695
+ const l = document.createElement("template");
696
+ return l.innerHTML = e, r ? l.content.firstChild.firstChild : l.content.firstChild;
697
+ }, n = t ? () => A(() => document.importNode(o || (o = i()), !0)) : () => (o || (o = i())).cloneNode(!0);
698
+ return n.cloneNode = n, n;
699
+ }
700
+ function pe(e, t = window.document) {
701
+ const r = t[ve] || (t[ve] = /* @__PURE__ */ new Set());
702
+ for (let o = 0, i = e.length; o < i; o++) {
703
+ const n = e[o];
704
+ r.has(n) || (r.add(n), t.addEventListener(n, Et));
945
705
  }
946
706
  }
947
- function setAttribute(node, name, value) {
948
- if (value == null) node.removeAttribute(name);else node.setAttribute(name, value);
949
- }
950
- function setAttributeNS(node, namespace, name, value) {
951
- if (value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
952
- }
953
- function className(node, value) {
954
- if (value == null) node.removeAttribute("class");else node.className = value;
955
- }
956
- function addEventListener(node, name, handler, delegate) {
957
- if (delegate) {
958
- if (Array.isArray(handler)) {
959
- node[`$$${name}`] = handler[0];
960
- node[`$$${name}Data`] = handler[1];
961
- } else node[`$$${name}`] = handler;
962
- } else if (Array.isArray(handler)) {
963
- const handlerFn = handler[0];
964
- node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
965
- } else node.addEventListener(name, handler);
966
- }
967
- function classList(node, value, prev = {}) {
968
- const classKeys = Object.keys(value || {}),
969
- prevKeys = Object.keys(prev);
970
- let i, len;
971
- for (i = 0, len = prevKeys.length; i < len; i++) {
972
- const key = prevKeys[i];
973
- if (!key || key === "undefined" || value[key]) continue;
974
- toggleClassKey(node, key, false);
975
- delete prev[key];
976
- }
977
- for (i = 0, len = classKeys.length; i < len; i++) {
978
- const key = classKeys[i],
979
- classValue = !!value[key];
980
- if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
981
- toggleClassKey(node, key, true);
982
- prev[key] = classValue;
707
+ function W(e, t, r) {
708
+ r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
709
+ }
710
+ function Ct(e, t, r, o) {
711
+ o == null ? e.removeAttributeNS(t, r) : e.setAttributeNS(t, r, o);
712
+ }
713
+ function J(e, t) {
714
+ t == null ? e.removeAttribute("class") : e.className = t;
715
+ }
716
+ function St(e, t, r, o) {
717
+ if (o)
718
+ Array.isArray(r) ? (e[`$$${t}`] = r[0], e[`$$${t}Data`] = r[1]) : e[`$$${t}`] = r;
719
+ else if (Array.isArray(r)) {
720
+ const i = r[0];
721
+ e.addEventListener(t, r[0] = (n) => i.call(e, r[1], n));
722
+ } else
723
+ e.addEventListener(t, r);
724
+ }
725
+ function he(e, t, r = {}) {
726
+ const o = Object.keys(t || {}), i = Object.keys(r);
727
+ let n, l;
728
+ for (n = 0, l = i.length; n < l; n++) {
729
+ const a = i[n];
730
+ !a || a === "undefined" || t[a] || (xe(e, a, !1), delete r[a]);
983
731
  }
984
- return prev;
985
- }
986
- function style(node, value, prev) {
987
- if (!value) return prev ? setAttribute(node, "style") : value;
988
- const nodeStyle = node.style;
989
- if (typeof value === "string") return nodeStyle.cssText = value;
990
- typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
991
- prev || (prev = {});
992
- value || (value = {});
993
- let v, s;
994
- for (s in prev) {
995
- value[s] == null && nodeStyle.removeProperty(s);
996
- delete prev[s];
732
+ for (n = 0, l = o.length; n < l; n++) {
733
+ const a = o[n], c = !!t[a];
734
+ !a || a === "undefined" || r[a] === c || !c || (xe(e, a, !0), r[a] = c);
997
735
  }
998
- for (s in value) {
999
- v = value[s];
1000
- if (v !== prev[s]) {
1001
- nodeStyle.setProperty(s, v);
1002
- prev[s] = v;
1003
- }
1004
- }
1005
- return prev;
1006
- }
1007
- function spread(node, props = {}, isSVG, skipChildren) {
1008
- const prevProps = {};
1009
- if (!skipChildren) {
1010
- createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1011
- }
1012
- createRenderEffect(() => props.ref && props.ref(node));
1013
- createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
1014
- return prevProps;
1015
- }
1016
- function use(fn, element, arg) {
1017
- return untrack(() => fn(element, arg));
1018
- }
1019
- function insert(parent, accessor, marker, initial) {
1020
- if (marker !== undefined && !initial) initial = [];
1021
- if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
1022
- createRenderEffect(current => insertExpression(parent, accessor(), current, marker), initial);
1023
- }
1024
- function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
1025
- props || (props = {});
1026
- for (const prop in prevProps) {
1027
- if (!(prop in props)) {
1028
- if (prop === "children") continue;
1029
- prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef);
736
+ return r;
737
+ }
738
+ function At(e, t, r) {
739
+ if (!t)
740
+ return r ? W(e, "style") : t;
741
+ const o = e.style;
742
+ if (typeof t == "string")
743
+ return o.cssText = t;
744
+ typeof r == "string" && (o.cssText = r = void 0), r || (r = {}), t || (t = {});
745
+ let i, n;
746
+ for (n in r)
747
+ t[n] == null && o.removeProperty(n), delete r[n];
748
+ for (n in t)
749
+ i = t[n], i !== r[n] && (o.setProperty(n, i), r[n] = i);
750
+ return r;
751
+ }
752
+ function $t(e, t = {}, r, o) {
753
+ const i = {};
754
+ return o || x(() => i.children = T(e, t.children, i.children)), x(() => t.ref && t.ref(e)), x(() => Ot(e, t, r, !0, i, !0)), i;
755
+ }
756
+ function Ie(e, t, r) {
757
+ return A(() => e(t, r));
758
+ }
759
+ function g(e, t, r, o) {
760
+ if (r !== void 0 && !o && (o = []), typeof t != "function")
761
+ return T(e, t, o, r);
762
+ x((i) => T(e, t(), i, r), o);
763
+ }
764
+ function Ot(e, t, r, o, i = {}, n = !1) {
765
+ t || (t = {});
766
+ for (const l in i)
767
+ if (!(l in t)) {
768
+ if (l === "children")
769
+ continue;
770
+ i[l] = ke(e, l, null, i[l], r, n);
1030
771
  }
1031
- }
1032
- for (const prop in props) {
1033
- if (prop === "children") {
1034
- if (!skipChildren) insertExpression(node, props.children);
772
+ for (const l in t) {
773
+ if (l === "children") {
774
+ o || T(e, t.children);
1035
775
  continue;
1036
776
  }
1037
- const value = props[prop];
1038
- prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef);
1039
- }
1040
- }
1041
- function getNextElement(template) {
1042
- let key;
1043
- {
1044
- if (!template) throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key);
1045
- return template();
1046
- }
1047
- }
1048
- function getNextMarker(start) {
1049
- let end = start,
1050
- current = [];
1051
- return [end, current];
1052
- }
1053
- function runHydrationEvents() {
1054
- if (sharedConfig.events && !sharedConfig.events.queued) {
1055
- queueMicrotask(() => {
1056
- const {
1057
- completed,
1058
- events
1059
- } = sharedConfig;
1060
- events.queued = false;
1061
- while (events.length) {
1062
- const [el, e] = events[0];
1063
- if (!completed.has(el)) return;
1064
- eventHandler(e);
1065
- events.shift();
1066
- }
1067
- });
1068
- sharedConfig.events.queued = true;
777
+ const a = t[l];
778
+ i[l] = ke(e, l, a, i[l], r, n);
1069
779
  }
1070
780
  }
1071
- function toPropertyName(name) {
1072
- return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
1073
- }
1074
- function toggleClassKey(node, key, value) {
1075
- const classNames = key.trim().split(/\s+/);
1076
- for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
1077
- }
1078
- function assignProp(node, prop, value, prev, isSVG, skipRef) {
1079
- let isCE, isProp, isChildProp, propAlias, forceProp;
1080
- if (prop === "style") return style(node, value, prev);
1081
- if (prop === "classList") return classList(node, value, prev);
1082
- if (value === prev) return prev;
1083
- if (prop === "ref") {
1084
- if (!skipRef) value(node);
1085
- } else if (prop.slice(0, 3) === "on:") {
1086
- const e = prop.slice(3);
1087
- prev && node.removeEventListener(e, prev);
1088
- value && node.addEventListener(e, value);
1089
- } else if (prop.slice(0, 10) === "oncapture:") {
1090
- const e = prop.slice(10);
1091
- prev && node.removeEventListener(e, prev, true);
1092
- value && node.addEventListener(e, value, true);
1093
- } else if (prop.slice(0, 2) === "on") {
1094
- const name = prop.slice(2).toLowerCase();
1095
- const delegate = DelegatedEvents.has(name);
1096
- if (!delegate && prev) {
1097
- const h = Array.isArray(prev) ? prev[0] : prev;
1098
- node.removeEventListener(name, h);
781
+ function Pt(e) {
782
+ return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
783
+ }
784
+ function xe(e, t, r) {
785
+ const o = t.trim().split(/\s+/);
786
+ for (let i = 0, n = o.length; i < n; i++)
787
+ e.classList.toggle(o[i], r);
788
+ }
789
+ function ke(e, t, r, o, i, n) {
790
+ let l, a, c, u, s;
791
+ if (t === "style")
792
+ return At(e, r, o);
793
+ if (t === "classList")
794
+ return he(e, r, o);
795
+ if (r === o)
796
+ return o;
797
+ if (t === "ref")
798
+ n || r(e);
799
+ else if (t.slice(0, 3) === "on:") {
800
+ const d = t.slice(3);
801
+ o && e.removeEventListener(d, o), r && e.addEventListener(d, r);
802
+ } else if (t.slice(0, 10) === "oncapture:") {
803
+ const d = t.slice(10);
804
+ o && e.removeEventListener(d, o, !0), r && e.addEventListener(d, r, !0);
805
+ } else if (t.slice(0, 2) === "on") {
806
+ const d = t.slice(2).toLowerCase(), f = kt.has(d);
807
+ if (!f && o) {
808
+ const b = Array.isArray(o) ? o[0] : o;
809
+ e.removeEventListener(d, b);
1099
810
  }
1100
- if (delegate || value) {
1101
- addEventListener(node, name, value, delegate);
1102
- delegate && delegateEvents([name]);
1103
- }
1104
- } else if (prop.slice(0, 5) === "attr:") {
1105
- setAttribute(node, prop.slice(5), value);
1106
- } else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-"))) {
1107
- if (forceProp) {
1108
- prop = prop.slice(5);
1109
- isProp = true;
1110
- }
1111
- if (prop === "class" || prop === "className") className(node, value);else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;else node[propAlias || prop] = value;
1112
- } else {
1113
- const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
1114
- if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
811
+ (f || r) && (St(e, d, r, f), f && pe([d]));
812
+ } else if (t.slice(0, 5) === "attr:")
813
+ W(e, t.slice(5), r);
814
+ else if ((s = t.slice(0, 5) === "prop:") || (c = mt.has(t)) || !i && ((u = xt(t, e.tagName)) || (a = wt.has(t))) || (l = e.nodeName.includes("-")))
815
+ s && (t = t.slice(5), a = !0), t === "class" || t === "className" ? J(e, r) : l && !a && !c ? e[Pt(t)] = r : e[u || t] = r;
816
+ else {
817
+ const d = i && t.indexOf(":") > -1 && jt[t.split(":")[0]];
818
+ d ? Ct(e, d, t, r) : W(e, yt[t] || t, r);
1115
819
  }
1116
- return value;
1117
- }
1118
- function eventHandler(e) {
1119
- const key = `$$${e.type}`;
1120
- let node = e.composedPath && e.composedPath()[0] || e.target;
1121
- if (e.target !== node) {
1122
- Object.defineProperty(e, "target", {
1123
- configurable: true,
1124
- value: node
1125
- });
1126
- }
1127
- Object.defineProperty(e, "currentTarget", {
1128
- configurable: true,
820
+ return r;
821
+ }
822
+ function Et(e) {
823
+ const t = `$$${e.type}`;
824
+ let r = e.composedPath && e.composedPath()[0] || e.target;
825
+ for (e.target !== r && Object.defineProperty(e, "target", {
826
+ configurable: !0,
827
+ value: r
828
+ }), Object.defineProperty(e, "currentTarget", {
829
+ configurable: !0,
1129
830
  get() {
1130
- return node || document;
831
+ return r || document;
1131
832
  }
1132
- });
1133
- while (node) {
1134
- const handler = node[key];
1135
- if (handler && !node.disabled) {
1136
- const data = node[`${key}Data`];
1137
- data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
1138
- if (e.cancelBubble) return;
833
+ }); r; ) {
834
+ const o = r[t];
835
+ if (o && !r.disabled) {
836
+ const i = r[`${t}Data`];
837
+ if (i !== void 0 ? o.call(r, i, e) : o.call(r, e), e.cancelBubble)
838
+ return;
1139
839
  }
1140
- node = node._$host || node.parentNode || node.host;
840
+ r = r._$host || r.parentNode || r.host;
1141
841
  }
1142
842
  }
1143
- function insertExpression(parent, value, current, marker, unwrapArray) {
1144
- while (typeof current === "function") current = current();
1145
- if (value === current) return current;
1146
- const t = typeof value,
1147
- multi = marker !== undefined;
1148
- parent = multi && current[0] && current[0].parentNode || parent;
1149
- if (t === "string" || t === "number") {
1150
- if (t === "number") value = value.toString();
1151
- if (multi) {
1152
- let node = current[0];
1153
- if (node && node.nodeType === 3) {
1154
- node.data = value;
1155
- } else node = document.createTextNode(value);
1156
- current = cleanChildren(parent, current, marker, node);
1157
- } else {
1158
- if (current !== "" && typeof current === "string") {
1159
- current = parent.firstChild.data = value;
1160
- } else current = parent.textContent = value;
1161
- }
1162
- } else if (value == null || t === "boolean") {
1163
- current = cleanChildren(parent, current, marker);
1164
- } else if (t === "function") {
1165
- createRenderEffect(() => {
1166
- let v = value();
1167
- while (typeof v === "function") v = v();
1168
- current = insertExpression(parent, v, current, marker);
1169
- });
1170
- return () => current;
1171
- } else if (Array.isArray(value)) {
1172
- const array = [];
1173
- const currentArray = current && Array.isArray(current);
1174
- if (normalizeIncomingArray(array, value, current, unwrapArray)) {
1175
- createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
1176
- return () => current;
1177
- }
1178
- if (array.length === 0) {
1179
- current = cleanChildren(parent, current, marker);
1180
- if (multi) return current;
1181
- } else if (currentArray) {
1182
- if (current.length === 0) {
1183
- appendNodes(parent, array, marker);
1184
- } else reconcileArrays(parent, current, array);
1185
- } else {
1186
- current && cleanChildren(parent);
1187
- appendNodes(parent, array);
1188
- }
1189
- current = array;
1190
- } else if (value.nodeType) {
1191
- if (Array.isArray(current)) {
1192
- if (multi) return current = cleanChildren(parent, current, marker, value);
1193
- cleanChildren(parent, current, null, value);
1194
- } else if (current == null || current === "" || !parent.firstChild) {
1195
- parent.appendChild(value);
1196
- } else parent.replaceChild(value, parent.firstChild);
1197
- current = value;
1198
- } else console.warn(`Unrecognized value. Skipped inserting`, value);
1199
- return current;
1200
- }
1201
- function normalizeIncomingArray(normalized, array, current, unwrap) {
1202
- let dynamic = false;
1203
- for (let i = 0, len = array.length; i < len; i++) {
1204
- let item = array[i],
1205
- prev = current && current[i],
1206
- t;
1207
- if (item == null || item === true || item === false) ; else if ((t = typeof item) === "object" && item.nodeType) {
1208
- normalized.push(item);
1209
- } else if (Array.isArray(item)) {
1210
- dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
1211
- } else if (t === "function") {
1212
- if (unwrap) {
1213
- while (typeof item === "function") item = item();
1214
- dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1215
- } else {
1216
- normalized.push(item);
1217
- dynamic = true;
843
+ function T(e, t, r, o, i) {
844
+ for (; typeof r == "function"; )
845
+ r = r();
846
+ if (t === r)
847
+ return r;
848
+ const n = typeof t, l = o !== void 0;
849
+ if (e = l && r[0] && r[0].parentNode || e, n === "string" || n === "number")
850
+ if (n === "number" && (t = t.toString()), l) {
851
+ let a = r[0];
852
+ a && a.nodeType === 3 ? a.data = t : a = document.createTextNode(t), r = L(e, r, o, a);
853
+ } else
854
+ r !== "" && typeof r == "string" ? r = e.firstChild.data = t : r = e.textContent = t;
855
+ else if (t == null || n === "boolean")
856
+ r = L(e, r, o);
857
+ else {
858
+ if (n === "function")
859
+ return x(() => {
860
+ let a = t();
861
+ for (; typeof a == "function"; )
862
+ a = a();
863
+ r = T(e, a, r, o);
864
+ }), () => r;
865
+ if (Array.isArray(t)) {
866
+ const a = [], c = r && Array.isArray(r);
867
+ if (se(a, t, r, i))
868
+ return x(() => r = T(e, a, r, o, !0)), () => r;
869
+ if (a.length === 0) {
870
+ if (r = L(e, r, o), l)
871
+ return r;
872
+ } else
873
+ c ? r.length === 0 ? je(e, a, o) : _t(e, r, a) : (r && L(e), je(e, a));
874
+ r = a;
875
+ } else if (t.nodeType) {
876
+ if (Array.isArray(r)) {
877
+ if (l)
878
+ return r = L(e, r, o, t);
879
+ L(e, r, null, t);
880
+ } else
881
+ r == null || r === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
882
+ r = t;
883
+ } else
884
+ console.warn("Unrecognized value. Skipped inserting", t);
885
+ }
886
+ return r;
887
+ }
888
+ function se(e, t, r, o) {
889
+ let i = !1;
890
+ for (let n = 0, l = t.length; n < l; n++) {
891
+ let a = t[n], c = r && r[n], u;
892
+ if (!(a == null || a === !0 || a === !1))
893
+ if ((u = typeof a) == "object" && a.nodeType)
894
+ e.push(a);
895
+ else if (Array.isArray(a))
896
+ i = se(e, a, c) || i;
897
+ else if (u === "function")
898
+ if (o) {
899
+ for (; typeof a == "function"; )
900
+ a = a();
901
+ i = se(e, Array.isArray(a) ? a : [a], Array.isArray(c) ? c : [c]) || i;
902
+ } else
903
+ e.push(a), i = !0;
904
+ else {
905
+ const s = String(a);
906
+ c && c.nodeType === 3 && c.data === s ? e.push(c) : e.push(document.createTextNode(s));
1218
907
  }
1219
- } else {
1220
- const value = String(item);
1221
- if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);else normalized.push(document.createTextNode(value));
1222
- }
1223
908
  }
1224
- return dynamic;
1225
- }
1226
- function appendNodes(parent, array, marker = null) {
1227
- for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
1228
- }
1229
- function cleanChildren(parent, current, marker, replacement) {
1230
- if (marker === undefined) return parent.textContent = "";
1231
- const node = replacement || document.createTextNode("");
1232
- if (current.length) {
1233
- let inserted = false;
1234
- for (let i = current.length - 1; i >= 0; i--) {
1235
- const el = current[i];
1236
- if (node !== el) {
1237
- const isParent = el.parentNode === parent;
1238
- if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && el.remove();
1239
- } else inserted = true;
1240
- }
1241
- } else parent.insertBefore(node, marker);
1242
- return [node];
1243
- }
1244
-
1245
- function createProps(raw) {
1246
- const keys = Object.keys(raw);
1247
- const props = {};
1248
- for (let i = 0; i < keys.length; i++) {
1249
- const [get, set] = createSignal(raw[keys[i]]);
1250
- Object.defineProperty(props, keys[i], {
1251
- get,
1252
- set(v) {
1253
- set(() => v);
1254
- }
1255
- });
1256
- }
1257
- return props;
1258
- }
1259
- function lookupContext(el) {
1260
- if (el.assignedSlot && el.assignedSlot._$owner)
1261
- return el.assignedSlot._$owner;
1262
- let next = el.parentNode;
1263
- while (next &&
1264
- !next._$owner &&
1265
- !(next.assignedSlot && next.assignedSlot._$owner))
1266
- next = next.parentNode;
1267
- return next && next.assignedSlot
1268
- ? next.assignedSlot._$owner
1269
- : el._$owner;
1270
- }
1271
- function withSolid(ComponentType) {
1272
- return (rawProps, options) => {
1273
- const { element } = options;
1274
- return createRoot((dispose) => {
1275
- const props = createProps(rawProps);
1276
- element.addPropertyChangedCallback((key, val) => (props[key] = val));
1277
- element.addReleaseCallback(() => {
1278
- element.renderRoot.textContent = "";
1279
- dispose();
1280
- });
1281
- const comp = ComponentType(props, options);
1282
- return insert(element.renderRoot, comp);
1283
- }, lookupContext(element));
1284
- };
1285
- }
1286
- function customElement(tag, props, ComponentType) {
1287
- if (arguments.length === 2) {
1288
- ComponentType = props;
1289
- props = {};
909
+ return i;
910
+ }
911
+ function je(e, t, r = null) {
912
+ for (let o = 0, i = t.length; o < i; o++)
913
+ e.insertBefore(t[o], r);
914
+ }
915
+ function L(e, t, r, o) {
916
+ if (r === void 0)
917
+ return e.textContent = "";
918
+ const i = o || document.createTextNode("");
919
+ if (t.length) {
920
+ let n = !1;
921
+ for (let l = t.length - 1; l >= 0; l--) {
922
+ const a = t[l];
923
+ if (i !== a) {
924
+ const c = a.parentNode === e;
925
+ !n && !l ? c ? e.replaceChild(i, a) : e.insertBefore(i, r) : c && a.remove();
926
+ } else
927
+ n = !0;
1290
928
  }
1291
- return register(tag, props)(withSolid(ComponentType));
1292
- }
1293
-
1294
- var css_248z = ".bati-widget,\n[data-theme] {\n background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));\n color: hsl(var(--bc) / var(--tw-text-opacity, 1))\n}\nhtml {\n -webkit-tap-highlight-color: transparent\n}\n.bati-widget {\n color-scheme: light;\n --pf: 259 94% 44%;\n --sf: 314 100% 40%;\n --af: 174 75% 39%;\n --nf: 214 20% 14%;\n --in: 198 93% 60%;\n --su: 158 64% 52%;\n --wa: 43 96% 56%;\n --er: 0 91% 71%;\n --inc: 198 100% 12%;\n --suc: 158 100% 10%;\n --wac: 43 100% 11%;\n --erc: 0 100% 14%;\n --rounded-box: 1rem;\n --rounded-btn: 0.5rem;\n --rounded-badge: 1.9rem;\n --animation-btn: 0.25s;\n --animation-input: .2s;\n --btn-text-case: uppercase;\n --btn-focus-scale: 0.95;\n --border-btn: 1px;\n --tab-border: 1px;\n --tab-radius: 0.5rem;\n --p: 259 94% 51%;\n --pc: 259 96% 91%;\n --s: 314 100% 47%;\n --sc: 314 100% 91%;\n --a: 174 75% 46%;\n --ac: 174 75% 11%;\n --n: 214 20% 21%;\n --nc: 212 19% 87%;\n --b1: 0 0% 100%;\n --b2: 0 0% 95%;\n --b3: 180 2% 90%;\n --bc: 215 28% 17%\n}\n@media (prefers-color-scheme: dark) {\n .bati-widget {\n color-scheme: dark;\n --pf: 262 80% 43%;\n --sf: 316 70% 43%;\n --af: 175 70% 34%;\n --in: 198 93% 60%;\n --su: 158 64% 52%;\n --wa: 43 96% 56%;\n --er: 0 91% 71%;\n --inc: 198 100% 12%;\n --suc: 158 100% 10%;\n --wac: 43 100% 11%;\n --erc: 0 100% 14%;\n --rounded-box: 1rem;\n --rounded-btn: 0.5rem;\n --rounded-badge: 1.9rem;\n --animation-btn: 0.25s;\n --animation-input: .2s;\n --btn-text-case: uppercase;\n --btn-focus-scale: 0.95;\n --border-btn: 1px;\n --tab-border: 1px;\n --tab-radius: 0.5rem;\n --p: 262 80% 50%;\n --pc: 0 0% 100%;\n --s: 316 70% 50%;\n --sc: 0 0% 100%;\n --a: 175 70% 41%;\n --ac: 0 0% 100%;\n --n: 213 18% 20%;\n --nf: 212 17% 17%;\n --nc: 220 13% 69%;\n --b1: 212 18% 14%;\n --b2: 213 18% 12%;\n --b3: 213 18% 10%;\n --bc: 220 13% 69%\n }\n}\n[data-theme=light] {\n color-scheme: light;\n --pf: 259 94% 44%;\n --sf: 314 100% 40%;\n --af: 174 75% 39%;\n --nf: 214 20% 14%;\n --in: 198 93% 60%;\n --su: 158 64% 52%;\n --wa: 43 96% 56%;\n --er: 0 91% 71%;\n --inc: 198 100% 12%;\n --suc: 158 100% 10%;\n --wac: 43 100% 11%;\n --erc: 0 100% 14%;\n --rounded-box: 1rem;\n --rounded-btn: 0.5rem;\n --rounded-badge: 1.9rem;\n --animation-btn: 0.25s;\n --animation-input: .2s;\n --btn-text-case: uppercase;\n --btn-focus-scale: 0.95;\n --border-btn: 1px;\n --tab-border: 1px;\n --tab-radius: 0.5rem;\n --p: 259 94% 51%;\n --pc: 259 96% 91%;\n --s: 314 100% 47%;\n --sc: 314 100% 91%;\n --a: 174 75% 46%;\n --ac: 174 75% 11%;\n --n: 214 20% 21%;\n --nc: 212 19% 87%;\n --b1: 0 0% 100%;\n --b2: 0 0% 95%;\n --b3: 180 2% 90%;\n --bc: 215 28% 17%\n}\n[data-theme=dark] {\n color-scheme: dark;\n --pf: 262 80% 43%;\n --sf: 316 70% 43%;\n --af: 175 70% 34%;\n --in: 198 93% 60%;\n --su: 158 64% 52%;\n --wa: 43 96% 56%;\n --er: 0 91% 71%;\n --inc: 198 100% 12%;\n --suc: 158 100% 10%;\n --wac: 43 100% 11%;\n --erc: 0 100% 14%;\n --rounded-box: 1rem;\n --rounded-btn: 0.5rem;\n --rounded-badge: 1.9rem;\n --animation-btn: 0.25s;\n --animation-input: .2s;\n --btn-text-case: uppercase;\n --btn-focus-scale: 0.95;\n --border-btn: 1px;\n --tab-border: 1px;\n --tab-radius: 0.5rem;\n --p: 262 80% 50%;\n --pc: 0 0% 100%;\n --s: 316 70% 50%;\n --sc: 0 0% 100%;\n --a: 175 70% 41%;\n --ac: 0 0% 100%;\n --n: 213 18% 20%;\n --nf: 212 17% 17%;\n --nc: 220 13% 69%;\n --b1: 212 18% 14%;\n --b2: 213 18% 12%;\n --b3: 213 18% 10%;\n --bc: 220 13% 69%\n}\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n@media (hover:hover) {\n .checkbox-success:hover {\n --tw-border-opacity: 1;\n border-color: hsl(var(--su) / var(--tw-border-opacity))\n }\n .label a:hover {\n --tw-text-opacity: 1;\n color: hsl(var(--bc) / var(--tw-text-opacity))\n }\n .menu :where(li:not(.menu-title):not(.disabled) > *:not(ul):not(details):not(.menu-title)):where(.active), .menu :where(li:not(.menu-title):not(.disabled) > details > summary:not(.menu-title)):where(.active) {\n --tw-bg-opacity: 1;\n background-color: hsl(var(--n) / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: hsl(var(--nc) / var(--tw-text-opacity))\n }\n}\n.checkbox {\n flex-shrink: 0;\n --chkbg: var(--bc);\n --chkfg: var(--b1);\n height: 1.5rem;\n width: 1.5rem;\n cursor: pointer;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-width: 1px;\n border-color: hsl(var(--bc) / var(--tw-border-opacity));\n --tw-border-opacity: 0.2;\n border-radius: var(--rounded-btn, 0.5rem)\n}\n.divider {\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n margin-top: 1rem;\n margin-bottom: 1rem;\n height: 1rem;\n white-space: nowrap\n}\n.divider:before,\n .divider:after {\n content: \"\";\n flex-grow: 1;\n height: 0.125rem;\n width: 100%\n}\n@media (hover: hover) {\n .btm-nav > *.disabled:hover,\n .btm-nav > *[disabled]:hover {\n pointer-events: none;\n --tw-border-opacity: 0;\n background-color: hsl(var(--n) / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.1;\n color: hsl(var(--bc) / var(--tw-text-opacity));\n --tw-text-opacity: 0.2\n }\n .menu :where(li:not(.menu-title):not(.disabled) > *:not(ul):not(details):not(.menu-title)):not(.active):hover, .menu :where(li:not(.menu-title):not(.disabled) > details > summary:not(.menu-title)):not(.active):hover {\n cursor: pointer;\n background-color: hsl(var(--bc) / 0.1);\n --tw-text-opacity: 1;\n color: hsl(var(--bc) / var(--tw-text-opacity));\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n}\n.form-control {\n display: flex;\n flex-direction: column\n}\n.label {\n display: flex;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: space-between;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem\n}\n.input {\n flex-shrink: 1;\n height: 3rem;\n padding-left: 1rem;\n padding-right: 1rem;\n font-size: 1rem;\n line-height: 2;\n line-height: 1.5rem;\n border-width: 1px;\n border-color: hsl(var(--bc) / var(--tw-border-opacity));\n --tw-border-opacity: 0;\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b1) / var(--tw-bg-opacity));\n border-radius: var(--rounded-btn, 0.5rem)\n}\n.input-group > .input {\n isolation: isolate\n}\n.input-group > *,\n .input-group > .input,\n .input-group > .textarea,\n .input-group > .select {\n border-radius: 0px\n}\n.join {\n display: inline-flex;\n align-items: stretch;\n border-radius: var(--rounded-btn, 0.5rem)\n}\n.join :where(.join-item) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n border-top-left-radius: 0\n}\n.join .join-item:not(:first-child):not(:last-child),\n .join *:not(:first-child):not(:last-child) .join-item {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n border-top-left-radius: 0\n}\n.join .join-item:first-child:not(:last-child),\n .join *:first-child:not(:last-child) .join-item {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n}\n.join :where(.join-item:first-child:not(:last-child)),\n .join :where(*:first-child:not(:last-child) .join-item) {\n border-bottom-left-radius: inherit;\n border-top-left-radius: inherit\n}\n.join .join-item:last-child:not(:first-child),\n .join *:last-child:not(:first-child) .join-item {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0\n}\n.join :where(.join-item:last-child:not(:first-child)),\n .join :where(*:last-child:not(:first-child) .join-item) {\n border-top-right-radius: inherit;\n border-bottom-right-radius: inherit\n}\n:where(.join *) {\n border-radius: inherit\n}\n.kbd {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-width: 1px;\n border-color: hsl(var(--bc) / var(--tw-border-opacity));\n --tw-border-opacity: 0.2;\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b2) / var(--tw-bg-opacity));\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n border-radius: var(--rounded-btn, 0.5rem);\n border-bottom-width: 2px;\n min-height: 2.2em;\n min-width: 2.2em\n}\n.link {\n cursor: pointer;\n text-decoration-line: underline\n}\n.menu li.disabled {\n cursor: not-allowed;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n color: hsl(var(--bc) / 0.3)\n}\n.select {\n display: inline-flex;\n flex-shrink: 0;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n height: 3rem;\n padding-left: 1rem;\n padding-right: 2.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n line-height: 2;\n min-height: 3rem;\n border-width: 1px;\n border-color: hsl(var(--bc) / var(--tw-border-opacity));\n --tw-border-opacity: 0;\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b1) / var(--tw-bg-opacity));\n font-weight: 600;\n border-radius: var(--rounded-btn, 0.5rem);\n background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),\n linear-gradient(135deg, currentColor 50%, transparent 50%);\n background-position: calc(100% - 20px) calc(1px + 50%), calc(100% - 16px) calc(1px + 50%);\n background-size: 4px 4px, 4px 4px;\n background-repeat: no-repeat\n}\n.select[multiple] {\n height: auto\n}\n.btm-nav > *.disabled,\n .btm-nav > *[disabled] {\n pointer-events: none;\n --tw-border-opacity: 0;\n background-color: hsl(var(--n) / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.1;\n color: hsl(var(--bc) / var(--tw-text-opacity));\n --tw-text-opacity: 0.2\n}\n.btm-nav > * .label {\n font-size: 1rem;\n line-height: 1.5rem\n}\n@keyframes button-pop {\n 0% {\n transform: scale(var(--btn-focus-scale, 0.98))\n }\n 40% {\n transform: scale(1.02)\n }\n 100% {\n transform: scale(1)\n }\n}\n.checkbox:focus-visible {\n outline-style: solid;\n outline-width: 2px;\n outline-offset: 2px;\n outline-color: hsl(var(--bc) / 1)\n}\n.checkbox:checked,\n .checkbox[checked=\"true\"],\n .checkbox[aria-checked=\"true\"] {\n --tw-bg-opacity: 1;\n background-color: hsl(var(--bc) / var(--tw-bg-opacity));\n background-repeat: no-repeat;\n animation: checkmark var(--animation-input, 0.2s) ease-in-out;\n background-image: linear-gradient(-45deg, transparent 65%, hsl(var(--chkbg)) 65.99%),\n linear-gradient(45deg, transparent 75%, hsl(var(--chkbg)) 75.99%),\n linear-gradient(-45deg, hsl(var(--chkbg)) 40%, transparent 40.99%),\n linear-gradient(\n 45deg,\n hsl(var(--chkbg)) 30%,\n hsl(var(--chkfg)) 30.99%,\n hsl(var(--chkfg)) 40%,\n transparent 40.99%\n ),\n linear-gradient(-45deg, hsl(var(--chkfg)) 50%, hsl(var(--chkbg)) 50.99%)\n}\n.checkbox:indeterminate {\n --tw-bg-opacity: 1;\n background-color: hsl(var(--bc) / var(--tw-bg-opacity));\n background-repeat: no-repeat;\n animation: checkmark var(--animation-input, 0.2s) ease-in-out;\n background-image: linear-gradient(90deg, transparent 80%, hsl(var(--chkbg)) 80%),\n linear-gradient(-90deg, transparent 80%, hsl(var(--chkbg)) 80%),\n linear-gradient(\n 0deg,\n hsl(var(--chkbg)) 43%,\n hsl(var(--chkfg)) 43%,\n hsl(var(--chkfg)) 57%,\n hsl(var(--chkbg)) 57%\n )\n}\n.checkbox-success {\n --chkbg: var(--su);\n --chkfg: var(--suc);\n --tw-border-opacity: 1;\n border-color: hsl(var(--su) / var(--tw-border-opacity))\n}\n.checkbox-success:focus-visible {\n outline-color: hsl(var(--su) / 1)\n}\n.checkbox-success:checked,\n .checkbox-success[checked=\"true\"],\n .checkbox-success[aria-checked=\"true\"] {\n --tw-border-opacity: 1;\n border-color: hsl(var(--su) / var(--tw-border-opacity));\n --tw-bg-opacity: 1;\n background-color: hsl(var(--su) / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: hsl(var(--suc) / var(--tw-text-opacity))\n}\n.checkbox:disabled {\n cursor: not-allowed;\n border-color: transparent;\n --tw-bg-opacity: 1;\n background-color: hsl(var(--bc) / var(--tw-bg-opacity));\n opacity: 0.2\n}\n@keyframes checkmark {\n 0% {\n background-position-y: 5px\n }\n 50% {\n background-position-y: -2px\n }\n 100% {\n background-position-y: 0\n }\n}\n[dir=\"rtl\"] .checkbox:checked,\n [dir=\"rtl\"] .checkbox[checked=\"true\"],\n [dir=\"rtl\"] .checkbox[aria-checked=\"true\"] {\n background-image: linear-gradient(45deg, transparent 65%, hsl(var(--chkbg)) 65.99%),\n linear-gradient(-45deg, transparent 75%, hsl(var(--chkbg)) 75.99%),\n linear-gradient(45deg, hsl(var(--chkbg)) 40%, transparent 40.99%),\n linear-gradient(\n -45deg,\n hsl(var(--chkbg)) 30%,\n hsl(var(--chkfg)) 30.99%,\n hsl(var(--chkfg)) 40%,\n transparent 40.99%\n ),\n linear-gradient(45deg, hsl(var(--chkfg)) 50%, hsl(var(--chkbg)) 50.99%)\n}\n.divider:before {\n background-color: hsl(var(--bc) / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.1\n}\n.divider:after {\n background-color: hsl(var(--bc) / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.1\n}\n.divider:not(:empty) {\n gap: 1rem\n}\n.label-text {\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: hsl(var(--bc) / var(--tw-text-opacity))\n}\n.input[list]::-webkit-calendar-picker-indicator {\n line-height: 1em\n}\n.input:focus {\n outline-style: solid;\n outline-width: 2px;\n outline-offset: 2px;\n outline-color: hsl(var(--bc) / 0.2)\n}\n.input-disabled,\n .input:disabled,\n .input[disabled] {\n cursor: not-allowed;\n --tw-border-opacity: 1;\n border-color: hsl(var(--b2) / var(--tw-border-opacity));\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b2) / var(--tw-bg-opacity));\n --tw-text-opacity: 0.2\n}\n.input-disabled::-moz-placeholder, .input:disabled::-moz-placeholder, .input[disabled]::-moz-placeholder {\n color: hsl(var(--bc) / var(--tw-placeholder-opacity));\n --tw-placeholder-opacity: 0.2\n}\n.input-disabled::placeholder,\n .input:disabled::placeholder,\n .input[disabled]::placeholder {\n color: hsl(var(--bc) / var(--tw-placeholder-opacity));\n --tw-placeholder-opacity: 0.2\n}\n.join > :where(*:not(:first-child)) {\n margin-top: 0px;\n margin-bottom: 0px;\n margin-left: -1px\n}\n.join-item:focus {\n isolation: isolate\n}\n.link:focus {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n.link:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: 2px\n}\n@keyframes modal-pop {\n 0% {\n opacity: 0\n }\n}\n@keyframes progress-loading {\n 50% {\n background-position-x: -115%\n }\n}\n@keyframes radiomark {\n 0% {\n box-shadow: 0 0 0 12px hsl(var(--b1)) inset, 0 0 0 12px hsl(var(--b1)) inset\n }\n 50% {\n box-shadow: 0 0 0 3px hsl(var(--b1)) inset, 0 0 0 3px hsl(var(--b1)) inset\n }\n 100% {\n box-shadow: 0 0 0 4px hsl(var(--b1)) inset, 0 0 0 4px hsl(var(--b1)) inset\n }\n}\n@keyframes rating-pop {\n 0% {\n transform: translateY(-0.125em)\n }\n 40% {\n transform: translateY(-0.125em)\n }\n 100% {\n transform: translateY(0)\n }\n}\n.select:focus {\n outline-style: solid;\n outline-width: 2px;\n outline-offset: 2px;\n outline-color: hsl(var(--bc) / 0.2)\n}\n.select-primary {\n --tw-border-opacity: 1;\n border-color: hsl(var(--p) / var(--tw-border-opacity))\n}\n.select-primary:focus {\n outline-color: hsl(var(--p) / 1)\n}\n.select-success {\n --tw-border-opacity: 1;\n border-color: hsl(var(--su) / var(--tw-border-opacity))\n}\n.select-success:focus {\n outline-color: hsl(var(--su) / 1)\n}\n.select-disabled,\n .select:disabled,\n .select[disabled] {\n cursor: not-allowed;\n --tw-border-opacity: 1;\n border-color: hsl(var(--b2) / var(--tw-border-opacity));\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b2) / var(--tw-bg-opacity));\n --tw-text-opacity: 0.2\n}\n.select-disabled::-moz-placeholder, .select:disabled::-moz-placeholder, .select[disabled]::-moz-placeholder {\n color: hsl(var(--bc) / var(--tw-placeholder-opacity));\n --tw-placeholder-opacity: 0.2\n}\n.select-disabled::placeholder,\n .select:disabled::placeholder,\n .select[disabled]::placeholder {\n color: hsl(var(--bc) / var(--tw-placeholder-opacity));\n --tw-placeholder-opacity: 0.2\n}\n.select-multiple,\n .select[multiple],\n .select[size].select:not([size=\"1\"]) {\n background-image: none;\n padding-right: 1rem\n}\n[dir=\"rtl\"] .select {\n background-position: calc(0% + 12px) calc(1px + 50%), calc(0% + 16px) calc(1px + 50%)\n}\n@keyframes toast-pop {\n 0% {\n transform: scale(0.9);\n opacity: 0\n }\n 100% {\n transform: scale(1);\n opacity: 1\n }\n}\n.tooltip.tooltip-primary {\n --tooltip-color: hsl(var(--p));\n --tooltip-text-color: hsl(var(--pc))\n}\n.tooltip.tooltip-secondary {\n --tooltip-color: hsl(var(--s));\n --tooltip-text-color: hsl(var(--sc))\n}\n.tooltip.tooltip-accent {\n --tooltip-color: hsl(var(--a));\n --tooltip-text-color: hsl(var(--ac))\n}\n.tooltip.tooltip-info {\n --tooltip-color: hsl(var(--in));\n --tooltip-text-color: hsl(var(--inc))\n}\n.tooltip.tooltip-success {\n --tooltip-color: hsl(var(--su));\n --tooltip-text-color: hsl(var(--suc))\n}\n.tooltip.tooltip-warning {\n --tooltip-color: hsl(var(--wa));\n --tooltip-text-color: hsl(var(--wac))\n}\n.tooltip.tooltip-error {\n --tooltip-color: hsl(var(--er));\n --tooltip-text-color: hsl(var(--erc))\n}\n.join.join-vertical {\n flex-direction: column\n}\n.join.join-vertical .join-item:first-child:not(:last-child),\n .join.join-vertical *:first-child:not(:last-child) .join-item {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit\n}\n.join.join-vertical .join-item:last-child:not(:first-child),\n .join.join-vertical *:last-child:not(:first-child) .join-item {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit\n}\n.join.join-horizontal {\n flex-direction: row\n}\n.join.join-horizontal .join-item:first-child:not(:last-child),\n .join.join-horizontal *:first-child:not(:last-child) .join-item {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: inherit;\n border-top-left-radius: inherit\n}\n.join.join-horizontal .join-item:last-child:not(:first-child),\n .join.join-horizontal *:last-child:not(:first-child) .join-item {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: inherit;\n border-top-right-radius: inherit\n}\n.kbd-lg {\n padding-left: 1rem;\n padding-right: 1rem;\n font-size: 1.125rem;\n line-height: 1.75rem;\n min-height: 2.5em;\n min-width: 2.5em\n}\n.tooltip {\n position: relative;\n display: inline-block;\n --tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))\n}\n.tooltip:before {\n position: absolute;\n pointer-events: none;\n z-index: 1;\n content: var(--tw-content);\n --tw-content: attr(data-tip)\n}\n.tooltip:before, .tooltip-top:before {\n transform: translateX(-50%);\n top: auto;\n left: 50%;\n right: auto;\n bottom: var(--tooltip-offset)\n}\n.tooltip-bottom:before {\n transform: translateX(-50%);\n top: var(--tooltip-offset);\n left: 50%;\n right: auto;\n bottom: auto\n}\n.join.join-vertical > :where(*:not(:first-child)) {\n margin-left: 0px;\n margin-right: 0px;\n margin-top: -1px\n}\n.join.join-horizontal > :where(*:not(:first-child)) {\n margin-top: 0px;\n margin-bottom: 0px;\n margin-left: -1px\n}\n.tooltip {\n position: relative;\n display: inline-block;\n text-align: center;\n --tooltip-tail: 0.1875rem;\n --tooltip-color: hsl(var(--n));\n --tooltip-text-color: hsl(var(--nc));\n --tooltip-tail-offset: calc(100% + 0.0625rem - var(--tooltip-tail))\n}\n.tooltip:before,\n.tooltip:after {\n opacity: 0;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-delay: 100ms;\n transition-duration: 200ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)\n}\n.tooltip:after {\n position: absolute;\n content: \"\";\n border-style: solid;\n border-width: var(--tooltip-tail, 0);\n width: 0;\n height: 0;\n display: block\n}\n.tooltip:before {\n max-width: 20rem;\n border-radius: 0.25rem;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n background-color: var(--tooltip-color);\n color: var(--tooltip-text-color);\n width: -moz-max-content;\n width: max-content\n}\n.tooltip.tooltip-open:before,\n.tooltip.tooltip-open:after,\n.tooltip:hover:before,\n.tooltip:hover:after {\n opacity: 1;\n transition-delay: 75ms\n}\n.tooltip:has(:focus-visible):after,\n.tooltip:has(:focus-visible):before {\n opacity: 1;\n transition-delay: 75ms\n}\n.tooltip:not([data-tip]):hover:before,\n.tooltip:not([data-tip]):hover:after {\n visibility: hidden;\n opacity: 0\n}\n.tooltip:after, .tooltip-top:after {\n transform: translateX(-50%);\n border-color: var(--tooltip-color) transparent transparent transparent;\n top: auto;\n left: 50%;\n right: auto;\n bottom: var(--tooltip-tail-offset)\n}\n.tooltip-bottom:after {\n transform: translateX(-50%);\n border-color: transparent transparent var(--tooltip-color) transparent;\n top: var(--tooltip-tail-offset);\n left: 50%;\n right: auto;\n bottom: auto\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-2 {\n bottom: 0.5rem\n}\n.left-2 {\n left: 0.5rem\n}\n.left-2\\.5 {\n left: 0.625rem\n}\n.right-2 {\n right: 0.5rem\n}\n.top-2 {\n top: 0.5rem\n}\n.top-2\\.5 {\n top: 0.625rem\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto\n}\n.mb-2 {\n margin-bottom: 0.5rem\n}\n.mt-8 {\n margin-top: 2rem\n}\n.inline-block {\n display: inline-block\n}\n.flex {\n display: flex\n}\n.inline-flex {\n display: inline-flex\n}\n.hidden {\n display: none\n}\n.w-4\\/5 {\n width: 80%\n}\n.w-full {\n width: 100%\n}\n.max-w-xs {\n max-width: 20rem\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.select-all {\n -webkit-user-select: all;\n -moz-user-select: all;\n user-select: all\n}\n.flex-row {\n flex-direction: row\n}\n.flex-col {\n flex-direction: column\n}\n.flex-wrap {\n flex-wrap: wrap\n}\n.items-end {\n align-items: flex-end\n}\n.items-center {\n align-items: center\n}\n.justify-start {\n justify-content: flex-start\n}\n.justify-center {\n justify-content: center\n}\n.gap-2 {\n gap: 0.5rem\n}\n.gap-2\\.5 {\n gap: 0.625rem\n}\n.gap-4 {\n gap: 1rem\n}\n.gap-8 {\n gap: 2rem\n}\n.overflow-hidden {\n overflow: hidden\n}\n.whitespace-nowrap {\n white-space: nowrap\n}\n.rounded {\n border-radius: 0.25rem\n}\n.rounded-md {\n border-radius: 0.375rem\n}\n.rounded-sm {\n border-radius: 0.125rem\n}\n.rounded-xl {\n border-radius: 0.75rem\n}\n.border {\n border-width: 1px\n}\n.border-l-0 {\n border-left-width: 0px\n}\n.border-l-8 {\n border-left-width: 8px\n}\n.border-solid {\n border-style: solid\n}\n.border-base-200 {\n --tw-border-opacity: 1;\n border-color: hsl(var(--b2) / var(--tw-border-opacity))\n}\n.border-primary {\n --tw-border-opacity: 1;\n border-color: hsl(var(--p) / var(--tw-border-opacity))\n}\n.border-success {\n --tw-border-opacity: 1;\n border-color: hsl(var(--su) / var(--tw-border-opacity))\n}\n.border-l-\\[\\#de624e\\] {\n --tw-border-opacity: 1;\n border-left-color: rgb(222 98 78 / var(--tw-border-opacity))\n}\n.bg-\\[\\#ec7259\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(236 114 89 / var(--tw-bg-opacity))\n}\n.bg-base-100 {\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b1) / var(--tw-bg-opacity))\n}\n.bg-base-200 {\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b2) / var(--tw-bg-opacity))\n}\n.bg-base-300 {\n --tw-bg-opacity: 1;\n background-color: hsl(var(--b3) / var(--tw-bg-opacity))\n}\n.p-1 {\n padding: 0.25rem\n}\n.p-1\\.5 {\n padding: 0.375rem\n}\n.p-5 {\n padding: 1.25rem\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem\n}\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem\n}\n.pb-4 {\n padding-bottom: 1rem\n}\n.pl-1 {\n padding-left: 0.25rem\n}\n.pl-10 {\n padding-left: 2.5rem\n}\n.font-sans {\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"\n}\n.text-8xl {\n font-size: 6rem;\n line-height: 1\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n.font-bold {\n font-weight: 700\n}\n.leading-10 {\n line-height: 2.5rem\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.opacity-50 {\n opacity: 0.5\n}\n.opacity-60 {\n opacity: 0.6\n}\n.opacity-70 {\n opacity: 0.7\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n.group:hover .group-hover\\:inline {\n display: inline\n}\n";
1295
-
1296
- const $RAW = Symbol("store-raw"),
1297
- $NODE = Symbol("store-node");
1298
- function wrap$1(value) {
1299
- let p = value[$PROXY];
1300
- if (!p) {
1301
- Object.defineProperty(value, $PROXY, {
1302
- value: p = new Proxy(value, proxyTraps$1)
1303
- });
1304
- if (!Array.isArray(value)) {
1305
- const keys = Object.keys(value),
1306
- desc = Object.getOwnPropertyDescriptors(value);
1307
- for (let i = 0, l = keys.length; i < l; i++) {
1308
- const prop = keys[i];
1309
- if (desc[prop].get) {
1310
- Object.defineProperty(value, prop, {
1311
- enumerable: desc[prop].enumerable,
1312
- get: desc[prop].get.bind(p)
1313
- });
1314
- }
929
+ } else
930
+ e.insertBefore(i, r);
931
+ return [i];
932
+ }
933
+ function zt(e) {
934
+ const t = Object.keys(e), r = {};
935
+ for (let o = 0; o < t.length; o++) {
936
+ const [i, n] = K(e[t[o]]);
937
+ Object.defineProperty(r, t[o], {
938
+ get: i,
939
+ set(l) {
940
+ n(() => l);
1315
941
  }
1316
- }
942
+ });
1317
943
  }
1318
- return p;
944
+ return r;
945
+ }
946
+ function Nt(e) {
947
+ if (e.assignedSlot && e.assignedSlot._$owner)
948
+ return e.assignedSlot._$owner;
949
+ let t = e.parentNode;
950
+ for (; t && !t._$owner && !(t.assignedSlot && t.assignedSlot._$owner); )
951
+ t = t.parentNode;
952
+ return t && t.assignedSlot ? t.assignedSlot._$owner : e._$owner;
953
+ }
954
+ function Lt(e) {
955
+ return (t, r) => {
956
+ const { element: o } = r;
957
+ return M((i) => {
958
+ const n = zt(t);
959
+ o.addPropertyChangedCallback((a, c) => n[a] = c), o.addReleaseCallback(() => {
960
+ o.renderRoot.textContent = "", i();
961
+ });
962
+ const l = e(n, r);
963
+ return g(o.renderRoot, l);
964
+ }, Nt(o));
965
+ };
1319
966
  }
1320
- function isWrappable(obj) {
1321
- let proto;
1322
- return obj != null && typeof obj === "object" && (obj[$PROXY] || !(proto = Object.getPrototypeOf(obj)) || proto === Object.prototype || Array.isArray(obj));
1323
- }
1324
- function unwrap(item, set = new Set()) {
1325
- let result, unwrapped, v, prop;
1326
- if (result = item != null && item[$RAW]) return result;
1327
- if (!isWrappable(item) || set.has(item)) return item;
1328
- if (Array.isArray(item)) {
1329
- if (Object.isFrozen(item)) item = item.slice(0);else set.add(item);
1330
- for (let i = 0, l = item.length; i < l; i++) {
1331
- v = item[i];
1332
- if ((unwrapped = unwrap(v, set)) !== v) item[i] = unwrapped;
967
+ function Tt(e, t, r) {
968
+ return arguments.length === 2 && (r = t, t = {}), Ze(e, t)(Lt(r));
969
+ }
970
+ const Ft = `.bati-widget,[data-theme]{background-color:hsl(var(--b1) / var(--tw-bg-opacity, 1));color:hsl(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}.bati-widget{color-scheme:light;--pf: 259 94% 44%;--sf: 314 100% 40%;--af: 174 75% 39%;--nf: 214 20% 14%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 259 94% 51%;--pc: 259 96% 91%;--s: 314 100% 47%;--sc: 314 100% 91%;--a: 174 75% 46%;--ac: 174 75% 11%;--n: 214 20% 21%;--nc: 212 19% 87%;--b1: 0 0% 100%;--b2: 0 0% 95%;--b3: 180 2% 90%;--bc: 215 28% 17% }@media (prefers-color-scheme: dark){.bati-widget{color-scheme:dark;--pf: 262 80% 43%;--sf: 316 70% 43%;--af: 175 70% 34%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262 80% 50%;--pc: 0 0% 100%;--s: 316 70% 50%;--sc: 0 0% 100%;--a: 175 70% 41%;--ac: 0 0% 100%;--n: 213 18% 20%;--nf: 212 17% 17%;--nc: 220 13% 69%;--b1: 212 18% 14%;--b2: 213 18% 12%;--b3: 213 18% 10%;--bc: 220 13% 69% }}[data-theme=light]{color-scheme:light;--pf: 259 94% 44%;--sf: 314 100% 40%;--af: 174 75% 39%;--nf: 214 20% 14%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 259 94% 51%;--pc: 259 96% 91%;--s: 314 100% 47%;--sc: 314 100% 91%;--a: 174 75% 46%;--ac: 174 75% 11%;--n: 214 20% 21%;--nc: 212 19% 87%;--b1: 0 0% 100%;--b2: 0 0% 95%;--b3: 180 2% 90%;--bc: 215 28% 17% }[data-theme=dark]{color-scheme:dark;--pf: 262 80% 43%;--sf: 316 70% 43%;--af: 175 70% 34%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262 80% 50%;--pc: 0 0% 100%;--s: 316 70% 50%;--sc: 0 0% 100%;--a: 175 70% 41%;--ac: 0 0% 100%;--n: 213 18% 20%;--nf: 212 17% 17%;--nc: 220 13% 69%;--b1: 212 18% 14%;--b2: 213 18% 12%;--b3: 213 18% 10%;--bc: 220 13% 69% }*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }@media (hover:hover){.link-hover:hover{text-decoration-line:underline}.checkbox-success:hover{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));opacity:.75;border-radius:var(--rounded-box, 1rem)}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{content:"";flex-grow:1;height:.125rem;width:100%}@media (hover: hover){.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2 }:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;background-color:hsl(var(--bc) / .1);--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;row-gap:2.5rem;-moz-column-gap:1rem;column-gap:1rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}.footer-center{place-items:center;text-align:center}.footer-center>*{place-items:center}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-top-right-radius:0;border-bottom-right-radius:0}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-bottom-left-radius:inherit;border-top-left-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-bottom-left-radius:0;border-top-left-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-top-right-radius:inherit;border-bottom-right-radius:inherit}:where(.join *){border-radius:inherit}.kbd{display:inline-flex;align-items:center;justify-content:center;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;--tw-bg-opacity: 1;background-color:hsl(var(--b2) / var(--tw-bg-opacity));padding-left:.5rem;padding-right:.5rem;border-radius:var(--rounded-btn, .5rem);border-bottom-width:2px;min-height:2.2em;min-width:2.2em}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / .3)}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stack{display:inline-grid;place-items:center;align-items:flex-end}.stack>*{grid-column-start:1;grid-row-start:1;transform:translateY(10%) scale(.9);z-index:1;width:100%;opacity:.6}.stack>*:nth-child(2){transform:translateY(5%) scale(.95);z-index:2;opacity:.8}.stack>*:nth-child(1){transform:translateY(0) scale(1);z-index:3;opacity:1}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2 }.btm-nav>* .label{font-size:1rem;line-height:1.5rem}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2) / var(--tw-border-opacity))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:hsl(var(--bc) / 1)}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox-success{--chkbg: var(--su);--chkfg: var(--suc);--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.checkbox-success:focus-visible{outline-color:hsl(var(--su) / 1)}.checkbox-success:checked,.checkbox-success[checked=true],.checkbox-success[aria-checked=true]{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc) / var(--tw-text-opacity))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.divider:before{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1 }.divider:after{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1 }.divider:not(:empty){gap:1rem}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input:focus{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:hsl(var(--bc) / .2)}.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2) / var(--tw-bg-opacity));--tw-text-opacity: .2 }.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2 }.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2 }.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-left:-1px}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:hsl(var(--b2) / var(--tw-bg-opacity));padding-left:2rem}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;top:50%;left:.5rem;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;top:50%;left:1.25rem;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:hsl(var(--bc) / .2)}.select-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.select-primary:focus{outline-color:hsl(var(--p) / 1)}.select-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.select-success:focus{outline-color:hsl(var(--su) / 1)}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2) / var(--tw-bg-opacity));--tw-text-opacity: .2 }.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2 }.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2 }.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.tooltip.tooltip-primary{--tooltip-color: hsl(var(--p));--tooltip-text-color: hsl(var(--pc)) }.tooltip.tooltip-secondary{--tooltip-color: hsl(var(--s));--tooltip-text-color: hsl(var(--sc)) }.tooltip.tooltip-accent{--tooltip-color: hsl(var(--a));--tooltip-text-color: hsl(var(--ac)) }.tooltip.tooltip-info{--tooltip-color: hsl(var(--in));--tooltip-text-color: hsl(var(--inc)) }.tooltip.tooltip-success{--tooltip-color: hsl(var(--su));--tooltip-text-color: hsl(var(--suc)) }.tooltip.tooltip-warning{--tooltip-color: hsl(var(--wa));--tooltip-text-color: hsl(var(--wac)) }.tooltip.tooltip-error{--tooltip-color: hsl(var(--er));--tooltip-text-color: hsl(var(--erc)) }.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:inherit;border-top-right-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-bottom-right-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-top-left-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-bottom-left-radius:0;border-top-left-radius:0;border-bottom-right-radius:inherit;border-top-right-radius:inherit}.kbd-lg{padding-left:1rem;padding-right:1rem;font-size:1.125rem;line-height:1.75rem;min-height:2.5em;min-width:2.5em}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px)) }.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip) }.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.tooltip-bottom:before{transform:translate(-50%);top:var(--tooltip-offset);left:50%;right:auto;bottom:auto}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-left:-1px}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: hsl(var(--n));--tooltip-text-color: hsl(var(--nc));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail)) }.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:"";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before,.tooltip.tooltip-open:after,.tooltip:hover:before,.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.tooltip-bottom:after{transform:translate(-50%);border-color:transparent transparent var(--tooltip-color) transparent;top:var(--tooltip-tail-offset);left:50%;right:auto;bottom:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-2{top:.5rem}.top-2\\.5{top:.625rem}.mx-auto{margin-left:auto;margin-right:auto}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.w-4\\/5{width:80%}.w-full{width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-l-0{border-left-width:0px}.border-solid{border-style:solid}.border-base-200{--tw-border-opacity: 1;border-color:hsl(var(--b2) / var(--tw-border-opacity))}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.border-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2) / var(--tw-bg-opacity))}.bg-base-300{--tw-bg-opacity: 1;background-color:hsl(var(--b3) / var(--tw-bg-opacity))}.fill-base-100{fill:hsl(var(--b1) / 1)}.fill-neutral-800{fill:#262626}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.text-left{text-align:left}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-8xl{font-size:6rem;line-height:1}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.leading-10{line-height:2.5rem}.text-base-content{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-amber-500{text-decoration-color:#f59e0b}.decoration-fuchsia-700{text-decoration-color:#a21caf}.decoration-sky-500{text-decoration-color:#0ea5e9}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-1{outline-width:1px}.outline-offset-2{outline-offset:2px}.outline-amber-500{outline-color:#f59e0b}.outline-fuchsia-700{outline-color:#a21caf}.outline-sky-500{outline-color:#0ea5e9}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:outline:hover{outline-style:solid}.group:hover .group-hover\\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (prefers-color-scheme: dark){.dark\\:fill-neutral-200{fill:#e5e5e5}}@media (min-width: 640px){.sm\\:w-auto{width:auto}.sm\\:max-w-xs{max-width:20rem}}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1280px){.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
971
+ `, ce = Symbol("store-raw"), D = Symbol("store-node");
972
+ function Ke(e) {
973
+ let t = e[S];
974
+ if (!t && (Object.defineProperty(e, S, {
975
+ value: t = new Proxy(e, It)
976
+ }), !Array.isArray(e))) {
977
+ const r = Object.keys(e), o = Object.getOwnPropertyDescriptors(e);
978
+ for (let i = 0, n = r.length; i < n; i++) {
979
+ const l = r[i];
980
+ o[l].get && Object.defineProperty(e, l, {
981
+ enumerable: o[l].enumerable,
982
+ get: o[l].get.bind(t)
983
+ });
1333
984
  }
985
+ }
986
+ return t;
987
+ }
988
+ function G(e) {
989
+ let t;
990
+ return e != null && typeof e == "object" && (e[S] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
991
+ }
992
+ function I(e, t = /* @__PURE__ */ new Set()) {
993
+ let r, o, i, n;
994
+ if (r = e != null && e[ce])
995
+ return r;
996
+ if (!G(e) || t.has(e))
997
+ return e;
998
+ if (Array.isArray(e)) {
999
+ Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
1000
+ for (let l = 0, a = e.length; l < a; l++)
1001
+ i = e[l], (o = I(i, t)) !== i && (e[l] = o);
1334
1002
  } else {
1335
- if (Object.isFrozen(item)) item = Object.assign({}, item);else set.add(item);
1336
- const keys = Object.keys(item),
1337
- desc = Object.getOwnPropertyDescriptors(item);
1338
- for (let i = 0, l = keys.length; i < l; i++) {
1339
- prop = keys[i];
1340
- if (desc[prop].get) continue;
1341
- v = item[prop];
1342
- if ((unwrapped = unwrap(v, set)) !== v) item[prop] = unwrapped;
1343
- }
1003
+ Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
1004
+ const l = Object.keys(e), a = Object.getOwnPropertyDescriptors(e);
1005
+ for (let c = 0, u = l.length; c < u; c++)
1006
+ n = l[c], !a[n].get && (i = e[n], (o = I(i, t)) !== i && (e[n] = o));
1344
1007
  }
1345
- return item;
1008
+ return e;
1346
1009
  }
1347
- function getDataNodes(target) {
1348
- let nodes = target[$NODE];
1349
- if (!nodes) Object.defineProperty(target, $NODE, {
1350
- value: nodes = Object.create(null)
1351
- });
1352
- return nodes;
1353
- }
1354
- function getDataNode(nodes, property, value) {
1355
- return nodes[property] || (nodes[property] = createDataNode(value));
1356
- }
1357
- function proxyDescriptor$1(target, property) {
1358
- const desc = Reflect.getOwnPropertyDescriptor(target, property);
1359
- if (!desc || desc.get || !desc.configurable || property === $PROXY || property === $NODE) return desc;
1360
- delete desc.value;
1361
- delete desc.writable;
1362
- desc.get = () => target[$PROXY][property];
1363
- return desc;
1364
- }
1365
- function trackSelf(target) {
1366
- if (getListener()) {
1367
- const nodes = getDataNodes(target);
1368
- (nodes._ || (nodes._ = createDataNode()))();
1010
+ function ge(e) {
1011
+ let t = e[D];
1012
+ return t || Object.defineProperty(e, D, {
1013
+ value: t = /* @__PURE__ */ Object.create(null)
1014
+ }), t;
1015
+ }
1016
+ function de(e, t, r) {
1017
+ return e[t] || (e[t] = Ue(r));
1018
+ }
1019
+ function Bt(e, t) {
1020
+ const r = Reflect.getOwnPropertyDescriptor(e, t);
1021
+ return !r || r.get || !r.configurable || t === S || t === D || (delete r.value, delete r.writable, r.get = () => e[S][t]), r;
1022
+ }
1023
+ function Re(e) {
1024
+ if (Ee()) {
1025
+ const t = ge(e);
1026
+ (t._ || (t._ = Ue()))();
1369
1027
  }
1370
1028
  }
1371
- function ownKeys(target) {
1372
- trackSelf(target);
1373
- return Reflect.ownKeys(target);
1029
+ function Dt(e) {
1030
+ return Re(e), Reflect.ownKeys(e);
1374
1031
  }
1375
- function createDataNode(value) {
1376
- const [s, set] = createSignal(value, {
1377
- equals: false,
1378
- internal: true
1032
+ function Ue(e) {
1033
+ const [t, r] = K(e, {
1034
+ equals: !1,
1035
+ internal: !0
1379
1036
  });
1380
- s.$ = set;
1381
- return s;
1382
- }
1383
- const proxyTraps$1 = {
1384
- get(target, property, receiver) {
1385
- if (property === $RAW) return target;
1386
- if (property === $PROXY) return receiver;
1387
- if (property === $TRACK) {
1388
- trackSelf(target);
1389
- return receiver;
1390
- }
1391
- const nodes = getDataNodes(target);
1392
- const tracked = nodes[property];
1393
- let value = tracked ? tracked() : target[property];
1394
- if (property === $NODE || property === "__proto__") return value;
1395
- if (!tracked) {
1396
- const desc = Object.getOwnPropertyDescriptor(target, property);
1397
- if (getListener() && (typeof value !== "function" || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();
1037
+ return t.$ = r, t;
1038
+ }
1039
+ const It = {
1040
+ get(e, t, r) {
1041
+ if (t === ce)
1042
+ return e;
1043
+ if (t === S)
1044
+ return r;
1045
+ if (t === ne)
1046
+ return Re(e), r;
1047
+ const o = ge(e), i = o[t];
1048
+ let n = i ? i() : e[t];
1049
+ if (t === D || t === "__proto__")
1050
+ return n;
1051
+ if (!i) {
1052
+ const l = Object.getOwnPropertyDescriptor(e, t);
1053
+ Ee() && (typeof n != "function" || e.hasOwnProperty(t)) && !(l && l.get) && (n = de(o, t, n)());
1398
1054
  }
1399
- return isWrappable(value) ? wrap$1(value) : value;
1055
+ return G(n) ? Ke(n) : n;
1400
1056
  },
1401
- has(target, property) {
1402
- if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === "__proto__") return true;
1403
- this.get(target, property, target);
1404
- return property in target;
1057
+ has(e, t) {
1058
+ return t === ce || t === S || t === ne || t === D || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
1405
1059
  },
1406
1060
  set() {
1407
- return true;
1061
+ return !0;
1408
1062
  },
1409
1063
  deleteProperty() {
1410
- return true;
1064
+ return !0;
1411
1065
  },
1412
- ownKeys: ownKeys,
1413
- getOwnPropertyDescriptor: proxyDescriptor$1
1066
+ ownKeys: Dt,
1067
+ getOwnPropertyDescriptor: Bt
1414
1068
  };
1415
- function setProperty(state, property, value, deleting = false) {
1416
- if (!deleting && state[property] === value) return;
1417
- const prev = state[property],
1418
- len = state.length;
1419
- if (value === undefined) delete state[property];else state[property] = value;
1420
- let nodes = getDataNodes(state),
1421
- node;
1422
- if (node = getDataNode(nodes, property, prev)) node.$(() => value);
1423
- if (Array.isArray(state) && state.length !== len) {
1424
- for (let i = state.length; i < len; i++) (node = nodes[i]) && node.$();
1425
- (node = getDataNode(nodes, "length", len)) && node.$(state.length);
1069
+ function Q(e, t, r, o = !1) {
1070
+ if (!o && e[t] === r)
1071
+ return;
1072
+ const i = e[t], n = e.length;
1073
+ r === void 0 ? delete e[t] : e[t] = r;
1074
+ let l = ge(e), a;
1075
+ if ((a = de(l, t, i)) && a.$(() => r), Array.isArray(e) && e.length !== n) {
1076
+ for (let c = e.length; c < n; c++)
1077
+ (a = l[c]) && a.$();
1078
+ (a = de(l, "length", n)) && a.$(e.length);
1426
1079
  }
1427
- (node = nodes._) && node.$();
1080
+ (a = l._) && a.$();
1428
1081
  }
1429
- function mergeStoreNode(state, value) {
1430
- const keys = Object.keys(value);
1431
- for (let i = 0; i < keys.length; i += 1) {
1432
- const key = keys[i];
1433
- setProperty(state, key, value[key]);
1082
+ function Ve(e, t) {
1083
+ const r = Object.keys(t);
1084
+ for (let o = 0; o < r.length; o += 1) {
1085
+ const i = r[o];
1086
+ Q(e, i, t[i]);
1434
1087
  }
1435
1088
  }
1436
- function updateArray(current, next) {
1437
- if (typeof next === "function") next = next(current);
1438
- next = unwrap(next);
1439
- if (Array.isArray(next)) {
1440
- if (current === next) return;
1441
- let i = 0,
1442
- len = next.length;
1443
- for (; i < len; i++) {
1444
- const value = next[i];
1445
- if (current[i] !== value) setProperty(current, i, value);
1089
+ function Kt(e, t) {
1090
+ if (typeof t == "function" && (t = t(e)), t = I(t), Array.isArray(t)) {
1091
+ if (e === t)
1092
+ return;
1093
+ let r = 0, o = t.length;
1094
+ for (; r < o; r++) {
1095
+ const i = t[r];
1096
+ e[r] !== i && Q(e, r, i);
1446
1097
  }
1447
- setProperty(current, "length", len);
1448
- } else mergeStoreNode(current, next);
1449
- }
1450
- function updatePath(current, path, traversed = []) {
1451
- let part,
1452
- prev = current;
1453
- if (path.length > 1) {
1454
- part = path.shift();
1455
- const partType = typeof part,
1456
- isArray = Array.isArray(current);
1457
- if (Array.isArray(part)) {
1458
- for (let i = 0; i < part.length; i++) {
1459
- updatePath(current, [part[i]].concat(path), traversed);
1460
- }
1098
+ Q(e, "length", o);
1099
+ } else
1100
+ Ve(e, t);
1101
+ }
1102
+ function B(e, t, r = []) {
1103
+ let o, i = e;
1104
+ if (t.length > 1) {
1105
+ o = t.shift();
1106
+ const l = typeof o, a = Array.isArray(e);
1107
+ if (Array.isArray(o)) {
1108
+ for (let c = 0; c < o.length; c++)
1109
+ B(e, [o[c]].concat(t), r);
1461
1110
  return;
1462
- } else if (isArray && partType === "function") {
1463
- for (let i = 0; i < current.length; i++) {
1464
- if (part(current[i], i)) updatePath(current, [i].concat(path), traversed);
1465
- }
1111
+ } else if (a && l === "function") {
1112
+ for (let c = 0; c < e.length; c++)
1113
+ o(e[c], c) && B(e, [c].concat(t), r);
1466
1114
  return;
1467
- } else if (isArray && partType === "object") {
1115
+ } else if (a && l === "object") {
1468
1116
  const {
1469
- from = 0,
1470
- to = current.length - 1,
1471
- by = 1
1472
- } = part;
1473
- for (let i = from; i <= to; i += by) {
1474
- updatePath(current, [i].concat(path), traversed);
1475
- }
1117
+ from: c = 0,
1118
+ to: u = e.length - 1,
1119
+ by: s = 1
1120
+ } = o;
1121
+ for (let d = c; d <= u; d += s)
1122
+ B(e, [d].concat(t), r);
1476
1123
  return;
1477
- } else if (path.length > 1) {
1478
- updatePath(current[part], path, [part].concat(traversed));
1124
+ } else if (t.length > 1) {
1125
+ B(e[o], t, [o].concat(r));
1479
1126
  return;
1480
1127
  }
1481
- prev = current[part];
1482
- traversed = [part].concat(traversed);
1483
- }
1484
- let value = path[0];
1485
- if (typeof value === "function") {
1486
- value = value(prev, traversed);
1487
- if (value === prev) return;
1128
+ i = e[o], r = [o].concat(r);
1488
1129
  }
1489
- if (part === undefined && value == undefined) return;
1490
- value = unwrap(value);
1491
- if (part === undefined || isWrappable(prev) && isWrappable(value) && !Array.isArray(value)) {
1492
- mergeStoreNode(prev, value);
1493
- } else setProperty(current, part, value);
1494
- }
1495
- function createStore(...[store, options]) {
1496
- const unwrappedStore = unwrap(store || {});
1497
- const isArray = Array.isArray(unwrappedStore);
1498
- const wrappedStore = wrap$1(unwrappedStore);
1499
- function setStore(...args) {
1500
- batch(() => {
1501
- isArray && args.length === 1 ? updateArray(unwrappedStore, args[0]) : updatePath(unwrappedStore, args);
1130
+ let n = t[0];
1131
+ typeof n == "function" && (n = n(i, r), n === i) || o === void 0 && n == null || (n = I(n), o === void 0 || G(i) && G(n) && !Array.isArray(n) ? Ve(i, n) : Q(e, o, n));
1132
+ }
1133
+ function Rt(...[e, t]) {
1134
+ const r = I(e || {}), o = Array.isArray(r), i = Ke(r);
1135
+ function n(...l) {
1136
+ Oe(() => {
1137
+ o && l.length === 1 ? Kt(r, l[0]) : B(r, l);
1502
1138
  });
1503
1139
  }
1504
- return [wrappedStore, setStore];
1505
- }
1506
-
1507
- var framework = {
1508
- label: "Framework",
1509
- inview: true,
1510
- features: [
1511
- {
1512
- label: "SolidJS ★",
1513
- value: "solid",
1514
- selected: true
1515
- },
1516
- {
1517
- label: "React - Coming Soon",
1518
- value: "react",
1519
- disabled: true
1520
- },
1521
- {
1522
- label: "Vue - Coming Soon",
1523
- value: "vue",
1524
- disabled: true
1525
- }
1526
- ]
1527
- };
1528
- var auth = {
1529
- label: "Auth",
1530
- features: [
1531
- {
1532
- label: "AuthJS ★",
1533
- value: "authjs",
1534
- selected: true
1535
- },
1536
- {
1537
- label: "Auth0 - Coming Soon",
1538
- value: "auth0",
1539
- disabled: true
1540
- },
1541
- {
1542
- label: "Firebase - Coming Soon",
1543
- value: "firebase",
1544
- disabled: true
1545
- }
1546
- ]
1547
- };
1548
- var rpc = {
1549
- label: "RPC",
1550
- features: [
1551
- {
1552
- label: "Telefunc ★",
1553
- value: "telefunc",
1554
- selected: true
1555
- },
1556
- {
1557
- label: "tRPC - Coming Soon",
1558
- value: "trpc",
1559
- disabled: true
1560
- }
1561
- ]
1562
- };
1563
- var server = {
1564
- label: "Server",
1565
- features: [
1566
- {
1567
- label: "Hattip ★",
1568
- value: "hattip",
1569
- selected: true
1570
- },
1571
- {
1572
- label: "Express",
1573
- value: "express"
1574
- }
1575
- ]
1576
- };
1577
- var uikit = {
1578
- label: "CSS",
1579
- features: [
1580
- {
1581
- label: "TailwindCSS",
1582
- value: "tailwindcss",
1583
- selected: true
1584
- },
1585
- {
1586
- label: "UnoCSS - Coming Soon",
1587
- value: "unocss",
1588
- disabled: true
1589
- },
1590
- {
1591
- label: "MUI - Coming Soon",
1592
- value: "mui",
1593
- disabled: true
1594
- }
1595
- ]
1596
- };
1597
- var db = {
1598
- label: "Database",
1599
- features: [
1600
- {
1601
- label: "Prisma",
1602
- value: "prisma",
1603
- selected: true
1604
- },
1605
- {
1606
- label: "EdgeDB",
1607
- value: "edgedb"
1608
- }
1609
- ]
1610
- };
1611
- var hosting = {
1612
- disabled: true,
1613
- label: "Hosting",
1614
- features: [
1615
- {
1616
- label: "Coming Soon",
1617
- selected: true
1618
- },
1619
- {
1620
- label: "Vercel - Coming Soon",
1621
- value: "vercel",
1622
- disabled: true
1623
- },
1624
- {
1625
- label: "Netlify - Coming Soon",
1626
- value: "netlify",
1627
- disabled: true
1628
- }
1629
- ]
1630
- };
1631
- var analytics = {
1632
- label: "Analytics",
1633
- features: [
1634
- {
1635
- label: "Plausible.io",
1636
- value: "plausible.io",
1637
- selected: true
1638
- },
1639
- {
1640
- label: "Google Analytics - Coming Soon",
1641
- value: "google-analytics",
1642
- disabled: true
1643
- },
1644
- {
1645
- label: "Segment - Coming Soon",
1646
- value: "segment",
1647
- disabled: true
1648
- }
1649
- ]
1650
- };
1651
- var error = {
1652
- disabled: true,
1653
- label: "Error tracking",
1654
- features: [
1655
- {
1656
- label: "Coming Soon",
1657
- selected: true
1658
- },
1659
- {
1660
- label: "Sentry - Coming Soon",
1661
- value: "sentry",
1662
- disabled: true
1663
- },
1664
- {
1665
- label: "Logrocket - Coming Soon",
1666
- value: "logrocket",
1667
- disabled: true
1668
- }
1669
- ]
1670
- };
1671
- var features = {
1672
- framework: framework,
1673
- auth: auth,
1674
- rpc: rpc,
1675
- server: server,
1676
- uikit: uikit,
1677
- db: db,
1678
- hosting: hosting,
1679
- analytics: analytics,
1680
- error: error
1140
+ return [i, n];
1141
+ }
1142
+ const Ut = {
1143
+ label: "Framework",
1144
+ inview: !0,
1145
+ features: [
1146
+ {
1147
+ label: "SolidJS ★",
1148
+ value: "solid",
1149
+ selected: !0
1150
+ },
1151
+ {
1152
+ label: "React",
1153
+ value: "react"
1154
+ },
1155
+ {
1156
+ label: "Vue - Coming Soon",
1157
+ value: "vue",
1158
+ disabled: !0
1159
+ }
1160
+ ]
1161
+ }, Vt = {
1162
+ label: "Auth",
1163
+ features: [
1164
+ {
1165
+ label: "AuthJS ★",
1166
+ value: "authjs",
1167
+ selected: !0
1168
+ },
1169
+ {
1170
+ label: "Auth0 - Coming Soon",
1171
+ value: "auth0",
1172
+ disabled: !0
1173
+ },
1174
+ {
1175
+ label: "Firebase - Coming Soon",
1176
+ value: "firebase",
1177
+ disabled: !0
1178
+ }
1179
+ ]
1180
+ }, Mt = {
1181
+ label: "RPC",
1182
+ features: [
1183
+ {
1184
+ label: "Telefunc ★",
1185
+ value: "telefunc",
1186
+ selected: !0
1187
+ },
1188
+ {
1189
+ label: "tRPC - Coming Soon",
1190
+ value: "trpc",
1191
+ disabled: !0
1192
+ }
1193
+ ]
1194
+ }, Yt = {
1195
+ label: "Server",
1196
+ features: [
1197
+ {
1198
+ label: "Hattip ★",
1199
+ value: "hattip",
1200
+ selected: !0
1201
+ },
1202
+ {
1203
+ label: "Express",
1204
+ value: "express"
1205
+ }
1206
+ ]
1207
+ }, Xt = {
1208
+ label: "CSS",
1209
+ features: [
1210
+ {
1211
+ label: "TailwindCSS",
1212
+ value: "tailwindcss",
1213
+ selected: !0
1214
+ },
1215
+ {
1216
+ label: "UnoCSS - Coming Soon",
1217
+ value: "unocss",
1218
+ disabled: !0
1219
+ },
1220
+ {
1221
+ label: "MUI - Coming Soon",
1222
+ value: "mui",
1223
+ disabled: !0
1224
+ }
1225
+ ]
1226
+ }, Ht = {
1227
+ label: "Database",
1228
+ features: [
1229
+ {
1230
+ label: "Prisma",
1231
+ value: "prisma",
1232
+ selected: !0
1233
+ },
1234
+ {
1235
+ label: "EdgeDB",
1236
+ value: "edgedb"
1237
+ }
1238
+ ]
1239
+ }, qt = {
1240
+ disabled: !0,
1241
+ label: "Hosting",
1242
+ features: [
1243
+ {
1244
+ label: "Coming Soon",
1245
+ selected: !0
1246
+ },
1247
+ {
1248
+ label: "Vercel - Coming Soon",
1249
+ value: "vercel",
1250
+ disabled: !0
1251
+ },
1252
+ {
1253
+ label: "Netlify - Coming Soon",
1254
+ value: "netlify",
1255
+ disabled: !0
1256
+ }
1257
+ ]
1258
+ }, Wt = {
1259
+ label: "Analytics",
1260
+ features: [
1261
+ {
1262
+ label: "Plausible.io",
1263
+ value: "plausible.io",
1264
+ selected: !0
1265
+ },
1266
+ {
1267
+ label: "Google Analytics - Coming Soon",
1268
+ value: "google-analytics",
1269
+ disabled: !0
1270
+ },
1271
+ {
1272
+ label: "Segment - Coming Soon",
1273
+ value: "segment",
1274
+ disabled: !0
1275
+ }
1276
+ ]
1277
+ }, Jt = {
1278
+ disabled: !0,
1279
+ label: "Error tracking",
1280
+ features: [
1281
+ {
1282
+ label: "Coming Soon",
1283
+ selected: !0
1284
+ },
1285
+ {
1286
+ label: "Sentry - Coming Soon",
1287
+ value: "sentry",
1288
+ disabled: !0
1289
+ },
1290
+ {
1291
+ label: "Logrocket - Coming Soon",
1292
+ value: "logrocket",
1293
+ disabled: !0
1294
+ }
1295
+ ]
1296
+ }, ue = {
1297
+ framework: Ut,
1298
+ auth: Vt,
1299
+ rpc: Mt,
1300
+ server: Yt,
1301
+ uikit: Xt,
1302
+ db: Ht,
1303
+ hosting: qt,
1304
+ analytics: Wt,
1305
+ error: Jt
1681
1306
  };
1682
-
1683
- function filteredObject(obj, filter) {
1684
- return Object.keys(obj).reduce(function (r, e) {
1685
- if (filter(obj, e)) r[e] = obj[e];
1686
- return r;
1307
+ function _e(e, t) {
1308
+ return Object.keys(e).reduce(function(r, o) {
1309
+ return t(e, o) && (r[o] = e[o]), r;
1687
1310
  }, {});
1688
1311
  }
1689
- function initStore() {
1690
- const [currentFeatures, setCurrentFeatures] = createStore(features);
1691
- const inViewFeatures = createMemo(() => filteredObject(currentFeatures, (o, k) => Boolean(o[k].inview)));
1692
- const drawerFeatures = createMemo(() => filteredObject(currentFeatures, (o, k) => !o[k].inview));
1693
- function moveFeature(k) {
1694
- setCurrentFeatures(k, "inview", val => !val);
1312
+ function Gt() {
1313
+ const [e, t] = Rt(ue), r = C(() => _e(e, (s, d) => !!s[d].inview)), o = C(() => _e(e, (s, d) => !s[d].inview));
1314
+ function i(s) {
1315
+ t(s, "inview", (d) => !d);
1316
+ }
1317
+ function n(s, d) {
1318
+ t(s, "features", (f) => f.map((b) => {
1319
+ var w;
1320
+ return {
1321
+ ...b,
1322
+ selected: d ? d === b.value : (w = ue[s].features.find((j) => j.value === b.value)) == null ? void 0 : w.selected
1323
+ };
1324
+ }));
1695
1325
  }
1696
- function selectFeature(k, value) {
1697
- setCurrentFeatures(k, "features", fs => {
1698
- return fs.map(f => ({
1699
- ...f,
1700
- selected: value ? value === f.value : features[k].features.find(f2 => f2.value === f.value)?.selected
1701
- }));
1326
+ const l = C(() => Object.assign({}, ...Object.entries(r()).map(([s, d]) => {
1327
+ var f;
1328
+ return {
1329
+ [s]: (f = d.features.find((b) => b.selected)) == null ? void 0 : f.value
1330
+ };
1331
+ }))), [a, c] = K(0);
1332
+ function u(s) {
1333
+ Oe(() => {
1334
+ Object.keys(e).forEach((d) => {
1335
+ t(d, "inview", s.includes(d));
1336
+ }), c(1);
1702
1337
  });
1703
1338
  }
1704
- const featuresValues = createMemo(() => Object.assign({}, ...Object.entries(inViewFeatures()).map(([ns, fs]) => ({
1705
- [ns]: fs.features.find(f => f.selected)?.value
1706
- }))));
1707
1339
  return {
1708
- inViewFeatures,
1709
- drawerFeatures,
1710
- moveFeature,
1711
- selectFeature,
1712
- featuresValues,
1713
- currentFeatures
1340
+ inViewFeatures: r,
1341
+ drawerFeatures: o,
1342
+ moveFeature: i,
1343
+ selectFeature: n,
1344
+ featuresValues: l,
1345
+ currentFeatures: e,
1346
+ getBottomPanel: a,
1347
+ setBottomPanel: c,
1348
+ selectPreset: u
1714
1349
  };
1715
1350
  }
1716
- const StoreContext = createContext(void 0);
1717
- function StoreProvider(props) {
1718
- const store = initStore();
1719
- return createComponent(StoreContext.Provider, {
1720
- value: store,
1351
+ const te = ot(void 0);
1352
+ function Qt(e) {
1353
+ const t = Gt();
1354
+ return m(te.Provider, {
1355
+ value: t,
1721
1356
  get children() {
1722
- return props.children;
1357
+ return e.children;
1723
1358
  }
1724
1359
  });
1725
1360
  }
1726
-
1727
- function flip(el, accessor) {
1728
- const name = accessor();
1729
- if (!name) return;
1730
- el.setAttribute("data-flip-name", name);
1731
- el.style.viewTransitionName = name;
1361
+ function Zt(e, t) {
1362
+ const r = t();
1363
+ r && (e.setAttribute("data-flip-name", r), e.style.viewTransitionName = r);
1732
1364
  }
1733
-
1734
- const _tmpl$$4 = /*#__PURE__*/template(`<div><label class="label"><span class="label-text"></span></label><!#><!/>`);
1735
- function FormControl(props) {
1365
+ const er = /* @__PURE__ */ P('<div><label class="label"><span class="label-text">');
1366
+ function tr(e) {
1736
1367
  return (() => {
1737
- const _el$ = getNextElement(_tmpl$$4),
1738
- _el$2 = _el$.firstChild,
1739
- _el$3 = _el$2.firstChild,
1740
- _el$4 = _el$2.nextSibling,
1741
- [_el$5, _co$] = getNextMarker(_el$4.nextSibling);
1742
- use(flip, _el$, () => props.flipLabel);
1743
- insert(_el$3, () => props.label);
1744
- insert(_el$, () => props.children, _el$5, _co$);
1745
- createRenderEffect(() => className(_el$, "form-control max-w-xs " + (props.class ?? "")));
1746
- return _el$;
1368
+ const t = er(), r = t.firstChild, o = r.firstChild;
1369
+ return Ie(Zt, t, () => e.flipLabel), g(o, () => e.label), g(t, () => e.children, null), x(() => J(t, "form-control sm:max-w-xs " + (e.class ?? ""))), t;
1747
1370
  })();
1748
1371
  }
1749
-
1750
- const _tmpl$$3 = /*#__PURE__*/template(`<select>`),
1751
- _tmpl$2$2 = /*#__PURE__*/template(`<option>`);
1752
- function Select(props) {
1753
- const [local, others] = splitProps(props, ["options", "class"]);
1372
+ const rr = /* @__PURE__ */ P("<select>"), or = /* @__PURE__ */ P("<option>");
1373
+ function ir(e) {
1374
+ const [t, r] = pt(e, ["options", "class"]);
1754
1375
  return (() => {
1755
- const _el$ = getNextElement(_tmpl$$3);
1756
- spread(_el$, mergeProps(others, {
1757
- get ["class"]() {
1758
- return "select max-w-xs " + (local.class ?? "");
1376
+ const o = rr();
1377
+ return $t(o, bt(r, {
1378
+ get class() {
1379
+ return "select max-w-xs " + (t.class ?? "");
1759
1380
  }
1760
- }), false, true);
1761
- insert(_el$, createComponent(For, {
1381
+ }), !1, !0), g(o, m(De, {
1762
1382
  get each() {
1763
- return local.options;
1383
+ return t.options;
1764
1384
  },
1765
- children: option => (() => {
1766
- const _el$2 = getNextElement(_tmpl$2$2);
1767
- insert(_el$2, () => option.label);
1768
- createRenderEffect(_p$ => {
1769
- const _v$ = option.disabled,
1770
- _v$2 = option.selected;
1771
- _v$ !== _p$._v$ && (_el$2.disabled = _p$._v$ = _v$);
1772
- _v$2 !== _p$._v$2 && (_el$2.selected = _p$._v$2 = _v$2);
1773
- return _p$;
1385
+ children: (i) => (() => {
1386
+ const n = or();
1387
+ return g(n, () => i.label), x((l) => {
1388
+ const a = i.disabled, c = i.selected;
1389
+ return a !== l._v$ && (n.disabled = l._v$ = a), c !== l._v$2 && (n.selected = l._v$2 = c), l;
1774
1390
  }, {
1775
- _v$: undefined,
1776
- _v$2: undefined
1777
- });
1778
- createRenderEffect(() => _el$2.value = option.value ?? "");
1779
- return _el$2;
1391
+ _v$: void 0,
1392
+ _v$2: void 0
1393
+ }), x(() => n.value = i.value ?? ""), n;
1780
1394
  })()
1781
- }));
1782
- runHydrationEvents();
1783
- return _el$;
1395
+ })), o;
1784
1396
  })();
1785
1397
  }
1786
-
1787
- const _tmpl$$2 = /*#__PURE__*/template(`<ul class="flex flex-wrap gap-4 px-4 w-full">`),
1788
- _tmpl$2$1 = /*#__PURE__*/template(`<div class="join group"><div class="join-item flex justify-center items-center px-2 border border-solid bg-base-100"><input type="checkbox" class="checkbox rounded bg-base-100"></div><!#><!/>`);
1789
- function Features() {
1398
+ const nr = /* @__PURE__ */ P('<div class="flex flex-wrap gap-4 px-4 box-border w-full relative"><span class="absolute bottom-0 right-4 link link-hover">← presets'), lr = /* @__PURE__ */ P('<div class="join group w-full"><div class="join-item flex justify-center items-center px-2 border border-solid bg-base-100"><input type="checkbox" class="checkbox rounded bg-base-100">');
1399
+ function ar() {
1790
1400
  const {
1791
- currentFeatures,
1792
- selectFeature,
1793
- moveFeature
1794
- } = useContext(StoreContext);
1401
+ currentFeatures: e,
1402
+ selectFeature: t,
1403
+ moveFeature: r,
1404
+ setBottomPanel: o
1405
+ } = fe(te);
1795
1406
  return (() => {
1796
- const _el$ = getNextElement(_tmpl$$2);
1797
- insert(_el$, createComponent(For, {
1407
+ const i = nr(), n = i.firstChild;
1408
+ return g(i, m(De, {
1798
1409
  get each() {
1799
- return Object.keys(currentFeatures);
1410
+ return Object.keys(e);
1800
1411
  },
1801
- children: ns => {
1802
- const f = currentFeatures[ns];
1803
- return createComponent(FormControl, {
1412
+ children: (l) => {
1413
+ const a = e[l];
1414
+ return m(tr, {
1804
1415
  get label() {
1805
- return f.label;
1416
+ return a.label;
1806
1417
  },
1807
- flipLabel: ns,
1418
+ flipLabel: l,
1419
+ class: "w-full sm:w-auto",
1808
1420
  get children() {
1809
- const _el$2 = getNextElement(_tmpl$2$1),
1810
- _el$3 = _el$2.firstChild,
1811
- _el$4 = _el$3.firstChild,
1812
- _el$5 = _el$3.nextSibling,
1813
- [_el$6, _co$] = getNextMarker(_el$5.nextSibling);
1814
- _el$4.addEventListener("change", () => moveFeature(ns));
1815
- insert(_el$2, createComponent(Select, {
1816
- "class": "text-xs join-item border-l-0 pl-1",
1421
+ const c = lr(), u = c.firstChild, s = u.firstChild;
1422
+ return s.addEventListener("change", () => r(l)), g(c, m(ir, {
1423
+ class: "text-xs join-item border-l-0 pl-1 w-full",
1817
1424
  get classList() {
1818
1425
  return {
1819
- "select-primary": !f.inview,
1820
- "select-success": Boolean(f.inview)
1426
+ "select-primary": !a.inview,
1427
+ "select-success": !!a.inview
1821
1428
  };
1822
1429
  },
1823
1430
  get disabled() {
1824
- return f.disabled;
1431
+ return a.disabled;
1825
1432
  },
1826
- onChange: e => {
1827
- selectFeature(ns, e.target.value || void 0);
1433
+ onChange: (d) => {
1434
+ t(l, d.target.value || void 0);
1828
1435
  },
1829
1436
  get options() {
1830
- return f.features;
1437
+ return a.features;
1831
1438
  }
1832
- }), _el$6, _co$);
1833
- createRenderEffect(_p$ => {
1834
- const _v$ = {
1835
- "border-success": Boolean(f.inview),
1836
- "border-base-200 bg-base-200 opacity-70": Boolean(f.disabled),
1837
- "border-primary": !f.inview && !f.disabled
1838
- },
1839
- _v$2 = !!Boolean(f.inview),
1840
- _v$3 = !f.disabled,
1841
- _v$4 = f.disabled;
1842
- _p$._v$ = classList(_el$3, _v$, _p$._v$);
1843
- _v$2 !== _p$._v$2 && _el$4.classList.toggle("checkbox-success", _p$._v$2 = _v$2);
1844
- _v$3 !== _p$._v$3 && _el$4.classList.toggle("border-solid", _p$._v$3 = _v$3);
1845
- _v$4 !== _p$._v$4 && (_el$4.disabled = _p$._v$4 = _v$4);
1846
- return _p$;
1439
+ }), null), x((d) => {
1440
+ const f = {
1441
+ "border-success": !!a.inview,
1442
+ "border-base-200 bg-base-200 opacity-70": !!a.disabled,
1443
+ "border-primary": !a.inview && !a.disabled
1444
+ }, b = !!a.inview, w = !a.disabled, j = a.disabled;
1445
+ return d._v$ = he(u, f, d._v$), b !== d._v$2 && s.classList.toggle("checkbox-success", d._v$2 = b), w !== d._v$3 && s.classList.toggle("border-solid", d._v$3 = w), j !== d._v$4 && (s.disabled = d._v$4 = j), d;
1847
1446
  }, {
1848
- _v$: undefined,
1849
- _v$2: undefined,
1850
- _v$3: undefined,
1851
- _v$4: undefined
1852
- });
1853
- createRenderEffect(() => _el$4.checked = f.inview);
1854
- return _el$2;
1447
+ _v$: void 0,
1448
+ _v$2: void 0,
1449
+ _v$3: void 0,
1450
+ _v$4: void 0
1451
+ }), x(() => s.checked = a.inview), c;
1855
1452
  }
1856
1453
  });
1857
1454
  }
1858
- }));
1859
- return _el$;
1455
+ }), n), n.$$click = () => o(0), i;
1860
1456
  })();
1861
1457
  }
1862
-
1863
- function copy(el) {
1864
- let clear;
1865
- async function writeSelectionClipboard() {
1866
- clearTimeout(clear);
1867
- const selObj = window.getSelection();
1868
- if (selObj) {
1869
- const toCopy = selObj.toString().replaceAll("\n", " ");
1870
- await navigator.clipboard.writeText(toCopy);
1871
- el.classList.add("tooltip", "tooltip-open");
1872
- clear = setTimeout(() => {
1873
- el.classList.remove("tooltip", "tooltip-open");
1458
+ pe(["click"]);
1459
+ function sr(e) {
1460
+ let t;
1461
+ async function r() {
1462
+ clearTimeout(t);
1463
+ const o = window.getSelection();
1464
+ if (o) {
1465
+ const i = o.toString().replaceAll(`
1466
+ `, " ");
1467
+ await navigator.clipboard.writeText(i), e.classList.add("tooltip", "tooltip-open"), t = setTimeout(() => {
1468
+ e.classList.remove("tooltip", "tooltip-open");
1874
1469
  }, 3e3);
1875
1470
  }
1876
1471
  }
1877
- el.addEventListener("click", writeSelectionClipboard);
1878
- onCleanup(() => el.removeEventListener("click", writeSelectionClipboard));
1472
+ e.addEventListener("click", r), Pe(() => e.removeEventListener("click", r));
1879
1473
  }
1880
-
1881
- const _tmpl$$1 = /*#__PURE__*/template(`<div class="flex flex-col bg-base-300 px-4 py-8 rounded-xl shadow-2xl relative bati-widget"><div class="px-4 flex"><kbd class="group relative flex-1 justify-start pl-10 tooltip-primary inline-flex tooltip-bottom kbd kbd-lg select-all flex-wrap leading-10 gap-2.5" data-tip="Copied to clipboard!"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-right absolute top-2.5 left-2.5 opacity-50"><polyline points="9 18 15 12 9 6"></polyline></svg><!#><!/></kbd></div><div class="divider"></div><div class="flex flex-row flex-wrap flex-1 justify-center gap-4">`),
1882
- _tmpl$2 = /*#__PURE__*/template(`<span class="relative whitespace-nowrap">`);
1883
- function word(w, ns) {
1884
- return {
1885
- word: w,
1886
- ns
1887
- };
1474
+ const cr = /* @__PURE__ */ P('<button type="button"><div class="card-body"><h2></h2><p class="text-left">'), dr = /* @__PURE__ */ P('<div class="w-full px-4 box-border grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4">');
1475
+ function V(e) {
1476
+ const {
1477
+ selectPreset: t
1478
+ } = fe(te);
1479
+ return (() => {
1480
+ const r = cr(), o = r.firstChild, i = o.firstChild, n = i.nextSibling;
1481
+ return r.$$click = () => !e.disabled && t(e.features), g(i, () => e.title), g(n, () => e.description), x((l) => {
1482
+ const a = "card card-compact border-0 bg-base-100 " + (e.class ?? ""), c = {
1483
+ "cursor-default opacity-50": e.disabled
1484
+ }, u = "card-title " + (e.titleClass ?? "");
1485
+ return a !== l._v$ && J(r, l._v$ = a), l._v$2 = he(r, c, l._v$2), u !== l._v$3 && J(i, l._v$3 = u), l;
1486
+ }, {
1487
+ _v$: void 0,
1488
+ _v$2: void 0,
1489
+ _v$3: void 0
1490
+ }), r;
1491
+ })();
1492
+ }
1493
+ function ur() {
1494
+ return (() => {
1495
+ const e = dr();
1496
+ return g(e, m(V, {
1497
+ title: "Plain Vike",
1498
+ class: "hover:outline outline-amber-500 outline-1 outline-offset-2",
1499
+ titleClass: "underline decoration-amber-500",
1500
+ description: "For trying out Vike, or manually assembling your stack",
1501
+ features: ["framework"]
1502
+ }), null), g(e, m(V, {
1503
+ title: "Frontend only",
1504
+ class: "hover:outline outline-sky-500 outline-1 outline-offset-2",
1505
+ titleClass: "underline decoration-sky-500",
1506
+ description: "If a backend isn't needed, or a backend already exists",
1507
+ features: ["framework", "uikit"]
1508
+ }), null), g(e, m(V, {
1509
+ title: "Full-stack",
1510
+ class: "hover:outline outline-fuchsia-700 outline-1 outline-offset-2",
1511
+ titleClass: "underline decoration-fuchsia-700",
1512
+ description: "Frontend + Server + Database",
1513
+ features: ["framework", "rpc", "auth", "db", "uikit", "server"]
1514
+ }), null), g(e, m(V, {
1515
+ title: "E-commerce",
1516
+ description: "E-commerce website powered by Shopify or BigCommerce.",
1517
+ features: ["framework"],
1518
+ disabled: !0
1519
+ }), null), e;
1520
+ })();
1888
1521
  }
1889
- function Widget(props) {
1522
+ pe(["click"]);
1523
+ const fr = /* @__PURE__ */ P('<div class="flex flex-col bg-base-300 px-4 py-8 rounded-xl shadow-2xl relative bati-widget"><div class="px-4 flex"><kbd class="group relative flex-1 justify-start pl-10 tooltip-primary text-left inline-flex tooltip-bottom kbd kbd-lg select-all flex-wrap leading-10 gap-2.5" data-tip="Copied to clipboard!"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-right absolute top-2.5 left-2.5 opacity-50"><polyline points="9 18 15 12 9 6"></polyline></svg></kbd></div><div class="divider"></div><div class="w-full overflow-hidden"><div class="flex w-full relative transform transition-transform duration-300 py-1"><div class="flex-grow flex-shrink-0 basis-full"></div><div class="flex-grow flex-shrink-0 basis-full">'), br = 300;
1524
+ function pr(e) {
1890
1525
  const {
1891
- featuresValues
1892
- } = useContext(StoreContext);
1893
- const keys = Object.keys(features);
1894
- function getFlags() {
1895
- return keys.filter(ns => featuresValues()[ns]).map(ns => word(`--${featuresValues()[ns]}`, ns));
1526
+ featuresValues: t,
1527
+ getBottomPanel: r
1528
+ } = fe(te), [o, i] = K([r()]), n = Object.keys(ue);
1529
+ tt(rt(r, (c, u) => {
1530
+ const s = [c];
1531
+ typeof u == "number" && s.push(u), i(s), setTimeout(() => {
1532
+ i([c]);
1533
+ }, br);
1534
+ }, {
1535
+ defer: !0
1536
+ }));
1537
+ function l() {
1538
+ return n.filter((c) => t()[c]).map((c) => `--${t()[c]}`);
1896
1539
  }
1897
- const words = createMemo(() => [word("pnpm"), word("create"), word("@batijs/app"), ...getFlags(), word("my-app")]);
1540
+ const a = C(() => ["pnpm", "create", "@batijs/app", ...l(), "my-app"]);
1898
1541
  return (() => {
1899
- const _el$ = getNextElement(_tmpl$$1),
1900
- _el$2 = _el$.firstChild,
1901
- _el$3 = _el$2.firstChild,
1902
- _el$4 = _el$3.firstChild,
1903
- _el$5 = _el$4.nextSibling,
1904
- [_el$6, _co$] = getNextMarker(_el$5.nextSibling),
1905
- _el$7 = _el$2.nextSibling,
1906
- _el$8 = _el$7.nextSibling;
1907
- use(copy, _el$3, () => true);
1908
- insert(_el$3, createComponent(For, {
1909
- get each() {
1910
- return words();
1542
+ const c = fr(), u = c.firstChild, s = u.firstChild;
1543
+ s.firstChild;
1544
+ const d = u.nextSibling, f = d.nextSibling, b = f.firstChild, w = b.firstChild, j = w.nextSibling;
1545
+ return Ie(sr, s, () => !0), g(s, () => a().join(" "), null), g(w, m(ye, {
1546
+ get when() {
1547
+ return o().includes(0);
1911
1548
  },
1912
- children: ({
1913
- word: word2
1914
- }) => (() => {
1915
- const _el$9 = getNextElement(_tmpl$2);
1916
- insert(_el$9, word2);
1917
- return _el$9;
1918
- })()
1919
- }), _el$6, _co$);
1920
- insert(_el$8, createComponent(Features, {}));
1921
- createRenderEffect(_p$ => {
1922
- const _v$ = props.theme,
1923
- _v$2 = !props.widget;
1924
- _v$ !== _p$._v$ && setAttribute(_el$, "data-theme", _p$._v$ = _v$);
1925
- _v$2 !== _p$._v$2 && _el$.classList.toggle("w-4/5", _p$._v$2 = _v$2);
1926
- return _p$;
1549
+ get children() {
1550
+ return m(ur, {});
1551
+ }
1552
+ })), g(j, m(ye, {
1553
+ get when() {
1554
+ return o().includes(1);
1555
+ },
1556
+ get children() {
1557
+ return m(ar, {});
1558
+ }
1559
+ })), x((_) => {
1560
+ const z = e.theme, k = !e.widget, v = r() * -100 + "%";
1561
+ return z !== _._v$ && W(c, "data-theme", _._v$ = z), k !== _._v$2 && c.classList.toggle("w-4/5", _._v$2 = k), v !== _._v$3 && ((_._v$3 = v) != null ? b.style.setProperty("--tw-translate-x", v) : b.style.removeProperty("--tw-translate-x")), _;
1927
1562
  }, {
1928
- _v$: undefined,
1929
- _v$2: undefined
1930
- });
1931
- return _el$;
1563
+ _v$: void 0,
1564
+ _v$2: void 0,
1565
+ _v$3: void 0
1566
+ }), c;
1932
1567
  })();
1933
1568
  }
1934
-
1935
- const _tmpl$ = /*#__PURE__*/template(`<style>`);
1936
- function LayoutDefault(props) {
1937
- return createComponent(StoreProvider, {
1569
+ const hr = /* @__PURE__ */ P("<style>");
1570
+ function gr(e) {
1571
+ return m(Qt, {
1938
1572
  get children() {
1939
1573
  return [(() => {
1940
- const _el$ = getNextElement(_tmpl$);
1941
- insert(_el$, css_248z);
1942
- return _el$;
1943
- })(), createMemo(() => props.children)];
1574
+ const t = hr();
1575
+ return g(t, Ft), t;
1576
+ })(), C(() => e.children)];
1944
1577
  }
1945
1578
  });
1946
1579
  }
1947
- function AppWidget(props) {
1948
- return createComponent(LayoutDefault, {
1580
+ function wr(e) {
1581
+ return m(gr, {
1949
1582
  get children() {
1950
- return createComponent(Widget, {
1951
- widget: true,
1583
+ return m(pr, {
1584
+ widget: !0,
1952
1585
  get theme() {
1953
- return props.theme;
1586
+ return e.theme;
1954
1587
  }
1955
1588
  });
1956
1589
  }
1957
1590
  });
1958
1591
  }
1959
-
1960
- customElement("bati-widget", {
1961
- theme: ""
1962
- }, AppWidget);
1592
+ Tt("bati-widget", { theme: "" }, wr);