@vibe-flags/core 0.1.3 → 0.1.5

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.
@@ -3,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const z = globalThis, Y = z.ShadowRoot && (z.ShadyCSS === void 0 || z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Z = Symbol(), re = /* @__PURE__ */ new WeakMap();
6
+ const D = globalThis, Y = D.ShadowRoot && (D.ShadyCSS === void 0 || D.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Z = Symbol(), re = /* @__PURE__ */ new WeakMap();
7
7
  let be = class {
8
8
  constructor(e, t, s) {
9
9
  if (this._$cssResult$ = !0, s !== Z) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -22,7 +22,7 @@ let be = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const _e = (i) => new be(typeof i == "string" ? i : i + "", void 0, Z), G = (i, ...e) => {
25
+ const _e = (i) => new be(typeof i == "string" ? i : i + "", void 0, Z), X = (i, ...e) => {
26
26
  const t = i.length === 1 ? i[0] : e.reduce((s, r, o) => s + ((n) => {
27
27
  if (n._$cssResult$ === !0) return n.cssText;
28
28
  if (typeof n == "number") return n;
@@ -32,7 +32,7 @@ const _e = (i) => new be(typeof i == "string" ? i : i + "", void 0, Z), G = (i,
32
32
  }, we = (i, e) => {
33
33
  if (Y) i.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
34
34
  else for (const t of e) {
35
- const s = document.createElement("style"), r = z.litNonce;
35
+ const s = document.createElement("style"), r = D.litNonce;
36
36
  r !== void 0 && s.setAttribute("nonce", r), s.textContent = t.cssText, i.appendChild(s);
37
37
  }
38
38
  }, oe = Y ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((e) => {
@@ -45,7 +45,7 @@ const _e = (i) => new be(typeof i == "string" ? i : i + "", void 0, Z), G = (i,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Ae, defineProperty: Se, getOwnPropertyDescriptor: Ee, getOwnPropertyNames: Ce, getOwnPropertySymbols: ke, getPrototypeOf: Pe } = Object, q = globalThis, ne = q.trustedTypes, Oe = ne ? ne.emptyScript : "", Me = q.reactiveElementPolyfillSupport, T = (i, e) => i, B = { toAttribute(i, e) {
48
+ const { is: Ae, defineProperty: Se, getOwnPropertyDescriptor: Ee, getOwnPropertyNames: Ce, getOwnPropertySymbols: ke, getPrototypeOf: Pe } = Object, q = globalThis, ne = q.trustedTypes, Oe = ne ? ne.emptyScript : "", Me = q.reactiveElementPolyfillSupport, O = (i, e) => i, z = { toAttribute(i, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
51
  i = i ? Oe : null;
@@ -73,9 +73,9 @@ const { is: Ae, defineProperty: Se, getOwnPropertyDescriptor: Ee, getOwnProperty
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, Q = (i, e) => !Ae(i, e), ae = { attribute: !0, type: String, converter: B, reflect: !1, useDefault: !1, hasChanged: Q };
76
+ } }, G = (i, e) => !Ae(i, e), ae = { attribute: !0, type: String, converter: z, reflect: !1, useDefault: !1, hasChanged: G };
77
77
  Symbol.metadata ??= Symbol("metadata"), q.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
78
- let E = class extends HTMLElement {
78
+ let A = class extends HTMLElement {
79
79
  static addInitializer(e) {
80
80
  this._$Ei(), (this.l ??= []).push(e);
81
81
  }
@@ -103,13 +103,13 @@ let E = class extends HTMLElement {
103
103
  return this.elementProperties.get(e) ?? ae;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(T("elementProperties"))) return;
106
+ if (this.hasOwnProperty(O("elementProperties"))) return;
107
107
  const e = Pe(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(T("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
111
+ if (this.hasOwnProperty(O("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) {
113
113
  const t = this.properties, s = [...Ce(t), ...ke(t)];
114
114
  for (const r of s) this.createProperty(r, t[r]);
115
115
  }
@@ -172,14 +172,14 @@ let E = class extends HTMLElement {
172
172
  _$ET(e, t) {
173
173
  const s = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, s);
174
174
  if (r !== void 0 && s.reflect === !0) {
175
- const o = (s.converter?.toAttribute !== void 0 ? s.converter : B).toAttribute(t, s.type);
175
+ const o = (s.converter?.toAttribute !== void 0 ? s.converter : z).toAttribute(t, s.type);
176
176
  this._$Em = e, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
177
177
  }
178
178
  }
179
179
  _$AK(e, t) {
180
180
  const s = this.constructor, r = s._$Eh.get(e);
181
181
  if (r !== void 0 && this._$Em !== r) {
182
- const o = s.getPropertyOptions(r), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : B;
182
+ const o = s.getPropertyOptions(r), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : z;
183
183
  this._$Em = r;
184
184
  const l = n.fromAttribute(t, o.type);
185
185
  this[r] = l ?? this._$Ej?.get(r) ?? l, this._$Em = null;
@@ -188,7 +188,7 @@ let E = class extends HTMLElement {
188
188
  requestUpdate(e, t, s, r = !1, o) {
189
189
  if (e !== void 0) {
190
190
  const n = this.constructor;
191
- if (r === !1 && (o = this[e]), s ??= n.getPropertyOptions(e), !((s.hasChanged ?? Q)(o, t) || s.useDefault && s.reflect && o === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, s)))) return;
191
+ if (r === !1 && (o = this[e]), s ??= n.getPropertyOptions(e), !((s.hasChanged ?? G)(o, t) || s.useDefault && s.reflect && o === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, s)))) return;
192
192
  this.C(e, t, s);
193
193
  }
194
194
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -256,53 +256,53 @@ let E = class extends HTMLElement {
256
256
  firstUpdated(e) {
257
257
  }
258
258
  };
259
- E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), Me?.({ ReactiveElement: E }), (q.reactiveElementVersions ??= []).push("2.1.2");
259
+ A.elementStyles = [], A.shadowRootOptions = { mode: "open" }, A[O("elementProperties")] = /* @__PURE__ */ new Map(), A[O("finalized")] = /* @__PURE__ */ new Map(), Me?.({ ReactiveElement: A }), (q.reactiveElementVersions ??= []).push("2.1.2");
260
260
  /**
261
261
  * @license
262
262
  * Copyright 2017 Google LLC
263
263
  * SPDX-License-Identifier: BSD-3-Clause
264
264
  */
265
- const ee = globalThis, le = (i) => i, L = ee.trustedTypes, he = L ? L.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ye = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, $e = "?" + y, Te = `<${$e}>`, w = document, U = () => w.createComment(""), F = (i) => i === null || typeof i != "object" && typeof i != "function", te = Array.isArray, Ue = (i) => te(i) || typeof i?.[Symbol.iterator] == "function", J = `[
266
- \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ce = /-->/g, de = />/g, x = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
267
- \f\r"'\`<>=]|("|')|))|$)`, "g"), pe = /'/g, fe = /"/g, me = /^(?:script|style|textarea|title)$/i, Fe = (i) => (e, ...t) => ({ _$litType$: i, strings: e, values: t }), f = Fe(1), C = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), ue = /* @__PURE__ */ new WeakMap(), _ = w.createTreeWalker(w, 129);
265
+ const Q = globalThis, le = (i) => i, B = Q.trustedTypes, he = B ? B.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ye = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, $e = "?" + y, Te = `<${$e}>`, w = document, M = () => w.createComment(""), T = (i) => i === null || typeof i != "object" && typeof i != "function", ee = Array.isArray, Ue = (i) => ee(i) || typeof i?.[Symbol.iterator] == "function", K = `[
266
+ \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ce = /-->/g, de = />/g, x = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
267
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), pe = /'/g, fe = /"/g, me = /^(?:script|style|textarea|title)$/i, Fe = (i) => (e, ...t) => ({ _$litType$: i, strings: e, values: t }), f = Fe(1), S = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), ue = /* @__PURE__ */ new WeakMap(), _ = w.createTreeWalker(w, 129);
268
268
  function xe(i, e) {
269
- if (!te(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
269
+ if (!ee(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
270
270
  return he !== void 0 ? he.createHTML(e) : e;
271
271
  }
272
272
  const Ne = (i, e) => {
273
273
  const t = i.length - 1, s = [];
274
- let r, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = O;
274
+ let r, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = k;
275
275
  for (let l = 0; l < t; l++) {
276
276
  const a = i[l];
277
277
  let d, p, h = -1, g = 0;
278
- for (; g < a.length && (n.lastIndex = g, p = n.exec(a), p !== null); ) g = n.lastIndex, n === O ? p[1] === "!--" ? n = ce : p[1] !== void 0 ? n = de : p[2] !== void 0 ? (me.test(p[2]) && (r = RegExp("</" + p[2], "g")), n = x) : p[3] !== void 0 && (n = x) : n === x ? p[0] === ">" ? (n = r ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = n.lastIndex - p[2].length, d = p[1], n = p[3] === void 0 ? x : p[3] === '"' ? fe : pe) : n === fe || n === pe ? n = x : n === ce || n === de ? n = O : (n = x, r = void 0);
278
+ for (; g < a.length && (n.lastIndex = g, p = n.exec(a), p !== null); ) g = n.lastIndex, n === k ? p[1] === "!--" ? n = ce : p[1] !== void 0 ? n = de : p[2] !== void 0 ? (me.test(p[2]) && (r = RegExp("</" + p[2], "g")), n = x) : p[3] !== void 0 && (n = x) : n === x ? p[0] === ">" ? (n = r ?? k, h = -1) : p[1] === void 0 ? h = -2 : (h = n.lastIndex - p[2].length, d = p[1], n = p[3] === void 0 ? x : p[3] === '"' ? fe : pe) : n === fe || n === pe ? n = x : n === ce || n === de ? n = k : (n = x, r = void 0);
279
279
  const b = n === x && i[l + 1].startsWith("/>") ? " " : "";
280
- o += n === O ? a + Te : h >= 0 ? (s.push(d), a.slice(0, h) + ye + a.slice(h) + y + b) : a + y + (h === -2 ? l : b);
280
+ o += n === k ? a + Te : h >= 0 ? (s.push(d), a.slice(0, h) + ye + a.slice(h) + y + b) : a + y + (h === -2 ? l : b);
281
281
  }
282
282
  return [xe(i, o + (i[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
283
283
  };
284
- class N {
284
+ class U {
285
285
  constructor({ strings: e, _$litType$: t }, s) {
286
286
  let r;
287
287
  this.parts = [];
288
288
  let o = 0, n = 0;
289
289
  const l = e.length - 1, a = this.parts, [d, p] = Ne(e, t);
290
- if (this.el = N.createElement(d, s), _.currentNode = this.el.content, t === 2 || t === 3) {
290
+ if (this.el = U.createElement(d, s), _.currentNode = this.el.content, t === 2 || t === 3) {
291
291
  const h = this.el.content.firstChild;
292
292
  h.replaceWith(...h.childNodes);
293
293
  }
294
294
  for (; (r = _.nextNode()) !== null && a.length < l; ) {
295
295
  if (r.nodeType === 1) {
296
296
  if (r.hasAttributes()) for (const h of r.getAttributeNames()) if (h.endsWith(ye)) {
297
- const g = p[n++], b = r.getAttribute(h).split(y), D = /([.?@])?(.*)/.exec(g);
298
- a.push({ type: 1, index: o, name: D[2], strings: b, ctor: D[1] === "." ? Re : D[1] === "?" ? je : D[1] === "@" ? Ie : W }), r.removeAttribute(h);
297
+ const g = p[n++], b = r.getAttribute(h).split(y), I = /([.?@])?(.*)/.exec(g);
298
+ a.push({ type: 1, index: o, name: I[2], strings: b, ctor: I[1] === "." ? Re : I[1] === "?" ? je : I[1] === "@" ? Ie : W }), r.removeAttribute(h);
299
299
  } else h.startsWith(y) && (a.push({ type: 6, index: o }), r.removeAttribute(h));
300
300
  if (me.test(r.tagName)) {
301
301
  const h = r.textContent.split(y), g = h.length - 1;
302
302
  if (g > 0) {
303
- r.textContent = L ? L.emptyScript : "";
304
- for (let b = 0; b < g; b++) r.append(h[b], U()), _.nextNode(), a.push({ type: 2, index: ++o });
305
- r.append(h[g], U());
303
+ r.textContent = B ? B.emptyScript : "";
304
+ for (let b = 0; b < g; b++) r.append(h[b], M()), _.nextNode(), a.push({ type: 2, index: ++o });
305
+ r.append(h[g], M());
306
306
  }
307
307
  }
308
308
  } else if (r.nodeType === 8) if (r.data === $e) a.push({ type: 2, index: o });
@@ -318,11 +318,11 @@ class N {
318
318
  return s.innerHTML = e, s;
319
319
  }
320
320
  }
321
- function k(i, e, t = i, s) {
322
- if (e === C) return e;
321
+ function E(i, e, t = i, s) {
322
+ if (e === S) return e;
323
323
  let r = s !== void 0 ? t._$Co?.[s] : t._$Cl;
324
- const o = F(e) ? void 0 : e._$litDirective$;
325
- return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, t, s)), s !== void 0 ? (t._$Co ??= [])[s] = r : t._$Cl = r), r !== void 0 && (e = k(i, r._$AS(i, e.values), r, s)), e;
324
+ const o = T(e) ? void 0 : e._$litDirective$;
325
+ return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, t, s)), s !== void 0 ? (t._$Co ??= [])[s] = r : t._$Cl = r), r !== void 0 && (e = E(i, r._$AS(i, e.values), r, s)), e;
326
326
  }
327
327
  class He {
328
328
  constructor(e, t) {
@@ -341,7 +341,7 @@ class He {
341
341
  for (; a !== void 0; ) {
342
342
  if (n === a.index) {
343
343
  let d;
344
- a.type === 2 ? d = new R(o, o.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (d = new De(o, this, e)), this._$AV.push(d), a = s[++l];
344
+ a.type === 2 ? d = new F(o, o.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (d = new De(o, this, e)), this._$AV.push(d), a = s[++l];
345
345
  }
346
346
  n !== a?.index && (o = _.nextNode(), n++);
347
347
  }
@@ -352,7 +352,7 @@ class He {
352
352
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, t), t += s.strings.length - 2) : s._$AI(e[t])), t++;
353
353
  }
354
354
  }
355
- class R {
355
+ class F {
356
356
  get _$AU() {
357
357
  return this._$AM?._$AU ?? this._$Cv;
358
358
  }
@@ -371,7 +371,7 @@ class R {
371
371
  return this._$AB;
372
372
  }
373
373
  _$AI(e, t = this) {
374
- e = k(this, e, t), F(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== C && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ue(e) ? this.k(e) : this._(e);
374
+ e = E(this, e, t), T(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== S && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ue(e) ? this.k(e) : this._(e);
375
375
  }
376
376
  O(e) {
377
377
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -380,10 +380,10 @@ class R {
380
380
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
381
381
  }
382
382
  _(e) {
383
- this._$AH !== c && F(this._$AH) ? this._$AA.nextSibling.data = e : this.T(w.createTextNode(e)), this._$AH = e;
383
+ this._$AH !== c && T(this._$AH) ? this._$AA.nextSibling.data = e : this.T(w.createTextNode(e)), this._$AH = e;
384
384
  }
385
385
  $(e) {
386
- const { values: t, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = N.createElement(xe(s.h, s.h[0]), this.options)), s);
386
+ const { values: t, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = U.createElement(xe(s.h, s.h[0]), this.options)), s);
387
387
  if (this._$AH?._$AD === r) this._$AH.p(t);
388
388
  else {
389
389
  const o = new He(r, this), n = o.u(this.options);
@@ -392,13 +392,13 @@ class R {
392
392
  }
393
393
  _$AC(e) {
394
394
  let t = ue.get(e.strings);
395
- return t === void 0 && ue.set(e.strings, t = new N(e)), t;
395
+ return t === void 0 && ue.set(e.strings, t = new U(e)), t;
396
396
  }
397
397
  k(e) {
398
- te(this._$AH) || (this._$AH = [], this._$AR());
398
+ ee(this._$AH) || (this._$AH = [], this._$AR());
399
399
  const t = this._$AH;
400
400
  let s, r = 0;
401
- for (const o of e) r === t.length ? t.push(s = new R(this.O(U()), this.O(U()), this, this.options)) : s = t[r], s._$AI(o), r++;
401
+ for (const o of e) r === t.length ? t.push(s = new F(this.O(M()), this.O(M()), this, this.options)) : s = t[r], s._$AI(o), r++;
402
402
  r < t.length && (this._$AR(s && s._$AB.nextSibling, r), t.length = r);
403
403
  }
404
404
  _$AR(e = this._$AA.nextSibling, t) {
@@ -424,11 +424,11 @@ class W {
424
424
  _$AI(e, t = this, s, r) {
425
425
  const o = this.strings;
426
426
  let n = !1;
427
- if (o === void 0) e = k(this, e, t, 0), n = !F(e) || e !== this._$AH && e !== C, n && (this._$AH = e);
427
+ if (o === void 0) e = E(this, e, t, 0), n = !T(e) || e !== this._$AH && e !== S, n && (this._$AH = e);
428
428
  else {
429
429
  const l = e;
430
430
  let a, d;
431
- for (e = o[0], a = 0; a < o.length - 1; a++) d = k(this, l[s + a], t, a), d === C && (d = this._$AH[a]), n ||= !F(d) || d !== this._$AH[a], d === c ? e = c : e !== c && (e += (d ?? "") + o[a + 1]), this._$AH[a] = d;
431
+ for (e = o[0], a = 0; a < o.length - 1; a++) d = E(this, l[s + a], t, a), d === S && (d = this._$AH[a]), n ||= !T(d) || d !== this._$AH[a], d === c ? e = c : e !== c && (e += (d ?? "") + o[a + 1]), this._$AH[a] = d;
432
432
  }
433
433
  n && !r && this.j(e);
434
434
  }
@@ -457,7 +457,7 @@ class Ie extends W {
457
457
  super(e, t, s, r, o), this.type = 5;
458
458
  }
459
459
  _$AI(e, t = this) {
460
- if ((e = k(this, e, t, 0) ?? c) === C) return;
460
+ if ((e = E(this, e, t, 0) ?? c) === S) return;
461
461
  const s = this._$AH, r = e === c && s !== c || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, o = e !== c && (s === c || r);
462
462
  r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
463
463
  }
@@ -473,17 +473,17 @@ class De {
473
473
  return this._$AM._$AU;
474
474
  }
475
475
  _$AI(e) {
476
- k(this, e);
476
+ E(this, e);
477
477
  }
478
478
  }
479
- const ze = ee.litHtmlPolyfillSupport;
480
- ze?.(N, R), (ee.litHtmlVersions ??= []).push("3.3.2");
479
+ const ze = Q.litHtmlPolyfillSupport;
480
+ ze?.(U, F), (Q.litHtmlVersions ??= []).push("3.3.2");
481
481
  const Be = (i, e, t) => {
482
482
  const s = t?.renderBefore ?? e;
483
483
  let r = s._$litPart$;
484
484
  if (r === void 0) {
485
485
  const o = t?.renderBefore ?? null;
486
- s._$litPart$ = r = new R(e.insertBefore(U(), o), o, void 0, t ?? {});
486
+ s._$litPart$ = r = new F(e.insertBefore(M(), o), o, void 0, t ?? {});
487
487
  }
488
488
  return r._$AI(i), r;
489
489
  };
@@ -492,8 +492,8 @@ const Be = (i, e, t) => {
492
492
  * Copyright 2017 Google LLC
493
493
  * SPDX-License-Identifier: BSD-3-Clause
494
494
  */
495
- const se = globalThis;
496
- class v extends E {
495
+ const te = globalThis;
496
+ class v extends A {
497
497
  constructor() {
498
498
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
499
499
  }
@@ -512,19 +512,19 @@ class v extends E {
512
512
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
513
513
  }
514
514
  render() {
515
- return C;
515
+ return S;
516
516
  }
517
517
  }
518
- v._$litElement$ = !0, v.finalized = !0, se.litElementHydrateSupport?.({ LitElement: v });
519
- const Le = se.litElementPolyfillSupport;
518
+ v._$litElement$ = !0, v.finalized = !0, te.litElementHydrateSupport?.({ LitElement: v });
519
+ const Le = te.litElementPolyfillSupport;
520
520
  Le?.({ LitElement: v });
521
- (se.litElementVersions ??= []).push("4.2.2");
521
+ (te.litElementVersions ??= []).push("4.2.2");
522
522
  /**
523
523
  * @license
524
524
  * Copyright 2017 Google LLC
525
525
  * SPDX-License-Identifier: BSD-3-Clause
526
526
  */
527
- const j = (i) => (e, t) => {
527
+ const N = (i) => (e, t) => {
528
528
  t !== void 0 ? t.addInitializer(() => {
529
529
  customElements.define(i, e);
530
530
  }) : customElements.define(i, e);
@@ -534,7 +534,7 @@ const j = (i) => (e, t) => {
534
534
  * Copyright 2017 Google LLC
535
535
  * SPDX-License-Identifier: BSD-3-Clause
536
536
  */
537
- const Ve = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: Q }, qe = (i = Ve, e, t) => {
537
+ const Ve = { attribute: !0, type: String, converter: z, reflect: !1, hasChanged: G }, qe = (i = Ve, e, t) => {
538
538
  const { kind: s, metadata: r } = t;
539
539
  let o = globalThis.litPropertyMetadata.get(r);
540
540
  if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), o.set(t.name, i), s === "accessor") {
@@ -555,7 +555,7 @@ const Ve = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged:
555
555
  }
556
556
  throw Error("Unsupported decorator location: " + s);
557
557
  };
558
- function S(i) {
558
+ function m(i) {
559
559
  return (e, t) => typeof t == "object" ? qe(i, e, t) : ((s, r, o) => {
560
560
  const n = r.hasOwnProperty(o);
561
561
  return r.constructor.createProperty(o, s), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
@@ -566,8 +566,8 @@ function S(i) {
566
566
  * Copyright 2017 Google LLC
567
567
  * SPDX-License-Identifier: BSD-3-Clause
568
568
  */
569
- function m(i) {
570
- return S({ ...i, state: !0, attribute: !1 });
569
+ function H(i) {
570
+ return m({ ...i, state: !0, attribute: !1 });
571
571
  }
572
572
  var We = Object.getOwnPropertyDescriptor, Ke = (i, e, t, s) => {
573
573
  for (var r = s > 1 ? void 0 : s ? We(e, t) : e, o = i.length - 1, n; o >= 0; o--)
@@ -580,20 +580,20 @@ let ge = class extends v {
580
580
  }
581
581
  };
582
582
  ge = Ke([
583
- j("vibe-flags")
583
+ N("vibe-flags")
584
584
  ], ge);
585
- const M = "vibe-flags:";
586
- function X(i) {
585
+ const P = "vibe-flags:";
586
+ function J(i) {
587
587
  return i.type === "boolean" ? !1 : i.options[0] || "";
588
588
  }
589
589
  class Je extends EventTarget {
590
590
  constructor() {
591
591
  super(...arguments), this.configs = /* @__PURE__ */ new Map(), this.state = {}, this.listening = !1, this.onStorageEvent = (e) => {
592
- if (!e.key?.startsWith(M)) return;
593
- const t = e.key.slice(M.length), s = this.configs.get(t);
592
+ if (!e.key?.startsWith(P)) return;
593
+ const t = e.key.slice(P.length), s = this.configs.get(t);
594
594
  if (s)
595
595
  try {
596
- const r = e.newValue ? JSON.parse(e.newValue) : X(s);
596
+ const r = e.newValue ? JSON.parse(e.newValue) : J(s);
597
597
  this.state[t] = r, this.dispatch(t);
598
598
  } catch {
599
599
  }
@@ -601,8 +601,8 @@ class Je extends EventTarget {
601
601
  }
602
602
  register(e) {
603
603
  this.configs.set(e.key, e);
604
- const t = this.readFromStorage(e.key);
605
- this.state[e.key] = t ?? X(e), this.listening || (this.listening = !0, typeof window < "u" && window.addEventListener("storage", this.onStorageEvent)), this.dispatch(e.key);
604
+ const t = J(e), s = this.readFromStorage(e.key), r = s !== null && (e.type === "boolean" && typeof s == "boolean" || e.type === "select" && typeof s == "string" && e.options.includes(s));
605
+ this.state[e.key] = r ? s : t, this.listening || (this.listening = !0, typeof window < "u" && window.addEventListener("storage", this.onStorageEvent)), this.dispatch(e.key);
606
606
  }
607
607
  unregister(e) {
608
608
  this.configs.delete(e), delete this.state[e], this.dispatch();
@@ -625,13 +625,13 @@ class Je extends EventTarget {
625
625
  }
626
626
  reset() {
627
627
  for (const [e, t] of this.configs)
628
- this.state[e] = X(t), this.removeFromStorage(e);
628
+ this.state[e] = J(t), this.removeFromStorage(e);
629
629
  this.dispatch();
630
630
  }
631
631
  readFromStorage(e) {
632
632
  if (typeof window > "u") return null;
633
633
  try {
634
- const t = localStorage.getItem(M + e);
634
+ const t = localStorage.getItem(P + e);
635
635
  return t === null ? null : JSON.parse(t);
636
636
  } catch {
637
637
  return null;
@@ -640,14 +640,14 @@ class Je extends EventTarget {
640
640
  writeToStorage(e, t) {
641
641
  if (!(typeof window > "u"))
642
642
  try {
643
- localStorage.setItem(M + e, JSON.stringify(t));
643
+ localStorage.setItem(P + e, JSON.stringify(t));
644
644
  } catch {
645
645
  }
646
646
  }
647
647
  removeFromStorage(e) {
648
648
  if (!(typeof window > "u"))
649
649
  try {
650
- localStorage.removeItem(M + e);
650
+ localStorage.removeItem(P + e);
651
651
  } catch {
652
652
  }
653
653
  }
@@ -660,18 +660,18 @@ class Je extends EventTarget {
660
660
  }
661
661
  }
662
662
  const u = new Je();
663
- var Xe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, P = (i, e, t, s) => {
664
- for (var r = s > 1 ? void 0 : s ? Ye(e, t) : e, o = i.length - 1, n; o >= 0; o--)
663
+ var Ye = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, R = (i, e, t, s) => {
664
+ for (var r = s > 1 ? void 0 : s ? Ze(e, t) : e, o = i.length - 1, n; o >= 0; o--)
665
665
  (n = i[o]) && (r = (s ? n(e, t, r) : n(r)) || r);
666
- return s && r && Xe(e, t, r), r;
666
+ return s && r && Ye(e, t, r), r;
667
667
  };
668
668
  if (typeof document < "u" && !document.getElementById("vibe-flag-fouc")) {
669
669
  const i = document.createElement("style");
670
670
  i.id = "vibe-flag-fouc", i.textContent = "vibe-flag-boolean:not(:defined),vibe-flag-boolean:defined,vibe-flag-select:not(:defined),vibe-flag-select:defined,vibe-flag-option:not(:defined),vibe-flag-option:defined{display:none}", document.head.appendChild(i);
671
671
  }
672
- let A = class extends v {
672
+ let C = class extends v {
673
673
  constructor() {
674
- super(...arguments), this.name = "", this.description = "", this.value = "", this.isMatch = !1, this.ready = !1, this.onFlagChange = () => {
674
+ super(...arguments), this.name = "", this.description = "", this.value = "", this.isMatch = !1, this.onFlagChange = () => {
675
675
  this.evaluate();
676
676
  };
677
677
  }
@@ -681,6 +681,9 @@ let A = class extends v {
681
681
  disconnectedCallback() {
682
682
  super.disconnectedCallback(), window.removeEventListener("vibe-flags-changed", this.onFlagChange);
683
683
  }
684
+ firstUpdated() {
685
+ this.style.display = "contents";
686
+ }
684
687
  willUpdate(i) {
685
688
  (i.has("name") || i.has("description")) && this.registerFlag();
686
689
  }
@@ -693,38 +696,35 @@ let A = class extends v {
693
696
  }
694
697
  evaluate() {
695
698
  const i = u.get(this.name);
696
- i === void 0 ? this.isMatch = !1 : this.value === "" ? this.isMatch = !0 : this.isMatch = String(i) === this.value, this.ready || (this.ready = !0, this.style.display = "contents");
699
+ i === void 0 ? this.isMatch = !1 : this.value === "" ? this.isMatch = !0 : this.isMatch = String(i) === this.value, this.isMatch ? this.setAttribute("active", "") : this.removeAttribute("active");
697
700
  }
698
701
  render() {
699
702
  return this.isMatch ? f`<slot></slot>` : c;
700
703
  }
701
704
  };
702
- P([
703
- S({ type: String })
704
- ], A.prototype, "name", 2);
705
- P([
706
- S({ type: String })
707
- ], A.prototype, "description", 2);
708
- P([
709
- S({ type: String })
710
- ], A.prototype, "value", 2);
711
- P([
712
- m()
713
- ], A.prototype, "isMatch", 2);
714
- P([
715
- m()
716
- ], A.prototype, "ready", 2);
717
- A = P([
718
- j("vibe-flag-boolean")
719
- ], A);
720
- var Ze = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, K = (i, e, t, s) => {
705
+ R([
706
+ m({ type: String })
707
+ ], C.prototype, "name", 2);
708
+ R([
709
+ m({ type: String })
710
+ ], C.prototype, "description", 2);
711
+ R([
712
+ m({ type: String })
713
+ ], C.prototype, "value", 2);
714
+ R([
715
+ H()
716
+ ], C.prototype, "isMatch", 2);
717
+ C = R([
718
+ N("vibe-flag-boolean")
719
+ ], C);
720
+ var Xe = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, se = (i, e, t, s) => {
721
721
  for (var r = s > 1 ? void 0 : s ? Ge(e, t) : e, o = i.length - 1, n; o >= 0; o--)
722
722
  (n = i[o]) && (r = (s ? n(e, t, r) : n(r)) || r);
723
- return s && r && Ze(e, t, r), r;
723
+ return s && r && Xe(e, t, r), r;
724
724
  };
725
- let H = class extends v {
725
+ let L = class extends v {
726
726
  constructor() {
727
- super(...arguments), this.name = "", this.description = "", this.ready = !1, this.onFlagChange = () => {
727
+ super(...arguments), this.name = "", this.description = "", this.onFlagChange = () => {
728
728
  this.syncOptions();
729
729
  };
730
730
  }
@@ -734,6 +734,9 @@ let H = class extends v {
734
734
  disconnectedCallback() {
735
735
  super.disconnectedCallback(), window.removeEventListener("vibe-flags-changed", this.onFlagChange);
736
736
  }
737
+ firstUpdated() {
738
+ this.style.display = "contents";
739
+ }
737
740
  willUpdate(i) {
738
741
  (i.has("name") || i.has("description")) && this.registerFlag();
739
742
  }
@@ -754,24 +757,20 @@ let H = class extends v {
754
757
  const i = u.get(this.name);
755
758
  for (const e of this.getOptions())
756
759
  e.active = e.value === i;
757
- this.ready || (this.ready = !0, this.style.display = "contents");
758
760
  }
759
761
  render() {
760
762
  return f`<slot></slot>`;
761
763
  }
762
764
  };
763
- K([
764
- S({ type: String })
765
- ], H.prototype, "name", 2);
766
- K([
767
- S({ type: String })
768
- ], H.prototype, "description", 2);
769
- K([
770
- m()
771
- ], H.prototype, "ready", 2);
772
- H = K([
773
- j("vibe-flag-select")
774
- ], H);
765
+ se([
766
+ m({ type: String })
767
+ ], L.prototype, "name", 2);
768
+ se([
769
+ m({ type: String })
770
+ ], L.prototype, "description", 2);
771
+ L = se([
772
+ N("vibe-flag-select")
773
+ ], L);
775
774
  var Qe = Object.defineProperty, et = Object.getOwnPropertyDescriptor, ie = (i, e, t, s) => {
776
775
  for (var r = s > 1 ? void 0 : s ? et(e, t) : e, o = i.length - 1, n; o >= 0; o--)
777
776
  (n = i[o]) && (r = (s ? n(e, t, r) : n(r)) || r);
@@ -781,20 +780,23 @@ let V = class extends v {
781
780
  constructor() {
782
781
  super(...arguments), this.value = "", this.active = !1;
783
782
  }
783
+ firstUpdated() {
784
+ this.style.display = "contents";
785
+ }
784
786
  render() {
785
787
  return this.active ? f`<slot></slot>` : c;
786
788
  }
787
789
  };
788
790
  ie([
789
- S({ type: String })
791
+ m({ type: String })
790
792
  ], V.prototype, "value", 2);
791
793
  ie([
792
- m()
794
+ m({ type: Boolean, reflect: !0 })
793
795
  ], V.prototype, "active", 2);
794
796
  V = ie([
795
- j("vibe-flag-option")
797
+ N("vibe-flag-option")
796
798
  ], V);
797
- const tt = G`
799
+ const tt = X`
798
800
  :host {
799
801
  --vf-bg: #0a0a0a;
800
802
  --vf-bg-muted: #171717;
@@ -818,7 +820,7 @@ const tt = G`
818
820
  --vf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6),
819
821
  0 8px 10px -6px rgba(0, 0, 0, 0.6);
820
822
  }
821
- `, st = G`
823
+ `, st = X`
822
824
  :host {
823
825
  --vf-bg: #ffffff;
824
826
  --vf-bg-muted: #f5f5f5;
@@ -843,7 +845,7 @@ const tt = G`
843
845
  0 8px 10px -6px rgba(0, 0, 0, 0.1);
844
846
  }
845
847
  `;
846
- var it = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, I = (i, e, t, s) => {
848
+ var it = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, j = (i, e, t, s) => {
847
849
  for (var r = s > 1 ? void 0 : s ? rt(e, t) : e, o = i.length - 1, n; o >= 0; o--)
848
850
  (n = i[o]) && (r = (s ? n(e, t, r) : n(r)) || r);
849
851
  return s && r && it(e, t, r), r;
@@ -879,12 +881,9 @@ let $ = class extends v {
879
881
  syncFromStore() {
880
882
  this.configs = u.getConfig(), this.flags = u.getAll();
881
883
  }
882
- toggleSidebar() {
884
+ toggle() {
883
885
  this.open = !this.open;
884
886
  }
885
- closeSidebar() {
886
- this.open = !1;
887
- }
888
887
  onToggle(i) {
889
888
  const e = this.flags[i];
890
889
  u.set(i, !e);
@@ -964,14 +963,12 @@ let $ = class extends v {
964
963
  render() {
965
964
  return f`
966
965
  ${this.open ? c : f`
967
- <button class="fab" @click=${this.toggleSidebar} aria-label="Toggle feature flags">
966
+ <button class="fab" @click=${this.toggle} aria-label="Toggle feature flags">
968
967
  ${this.renderFlagIcon()}
969
968
  </button>
970
969
  `}
971
970
 
972
- <div class="backdrop ${this.open ? "open" : ""}" @click=${this.closeSidebar}></div>
973
-
974
- <div class="sidebar ${this.open ? "open" : ""}">
971
+ <div class="card ${this.open ? "open" : ""}">
975
972
  <div class="header">
976
973
  <h2>
977
974
  ${this.renderFlagIcon()}
@@ -982,7 +979,7 @@ let $ = class extends v {
982
979
  <button class="icon-btn" @click=${this.toggleTheme} aria-label="Toggle theme" title="${this.darkMode ? "Switch to light theme" : "Switch to dark theme"}">
983
980
  ${this.darkMode ? this.renderSunIcon() : this.renderMoonIcon()}
984
981
  </button>
985
- <button class="icon-btn" @click=${this.closeSidebar} aria-label="Close">
982
+ <button class="icon-btn" @click=${this.toggle} aria-label="Close">
986
983
  ${this.renderCloseIcon()}
987
984
  </button>
988
985
  </div>
@@ -1004,7 +1001,7 @@ let $ = class extends v {
1004
1001
  }
1005
1002
  };
1006
1003
  $.styles = [
1007
- G`
1004
+ X`
1008
1005
  * {
1009
1006
  box-sizing: border-box;
1010
1007
  margin: 0;
@@ -1013,15 +1010,13 @@ $.styles = [
1013
1010
 
1014
1011
  .fab {
1015
1012
  position: fixed;
1016
- right: 0;
1017
- top: 50%;
1018
- transform: translateY(-50%);
1013
+ right: 16px;
1014
+ bottom: 16px;
1019
1015
  z-index: 99999;
1020
- width: 40px;
1021
- height: 44px;
1016
+ width: 42px;
1017
+ height: 42px;
1022
1018
  border: 1px solid var(--vf-border);
1023
- border-right: none;
1024
- border-radius: var(--vf-radius-lg) 0 0 var(--vf-radius-lg);
1019
+ border-radius: 12px;
1025
1020
  background: var(--vf-bg);
1026
1021
  color: var(--vf-text);
1027
1022
  cursor: pointer;
@@ -1034,94 +1029,80 @@ $.styles = [
1034
1029
  }
1035
1030
 
1036
1031
  .fab:hover {
1037
- width: 46px;
1038
1032
  background: var(--vf-bg-muted);
1033
+ box-shadow: var(--vf-shadow-xl);
1034
+ transform: translateY(-1px);
1039
1035
  }
1040
1036
 
1041
1037
  .fab svg {
1042
- width: 20px;
1043
- height: 20px;
1038
+ width: 18px;
1039
+ height: 18px;
1044
1040
  flex-shrink: 0;
1045
1041
  }
1046
1042
 
1047
- .backdrop {
1043
+ .card {
1048
1044
  position: fixed;
1049
- inset: 0;
1050
- z-index: 100000;
1051
- background: rgba(0, 0, 0, 0.4);
1052
- opacity: 0;
1053
- transition: opacity 0.3s ease;
1054
- pointer-events: none;
1055
- }
1056
-
1057
- .backdrop.open {
1058
- opacity: 1;
1059
- pointer-events: auto;
1060
- }
1061
-
1062
- .sidebar {
1063
- position: fixed;
1064
- top: 0;
1065
- right: 0;
1066
- bottom: 0;
1045
+ right: 16px;
1046
+ bottom: 16px;
1067
1047
  z-index: 100001;
1068
- width: 340px;
1069
- max-width: 90vw;
1048
+ width: 300px;
1049
+ max-width: calc(100vw - 32px);
1050
+ max-height: calc(100vh - 32px);
1070
1051
  background: var(--vf-bg);
1071
- border-left: 1px solid var(--vf-border);
1052
+ border: 1px solid var(--vf-border);
1053
+ border-radius: 14px;
1072
1054
  box-shadow: var(--vf-shadow-xl);
1073
- transform: translateX(100%);
1074
- transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
1075
- display: flex;
1076
- flex-direction: column;
1077
1055
  font-family: var(--vf-font);
1078
1056
  color: var(--vf-text);
1057
+ overflow: hidden;
1058
+ display: flex;
1059
+ flex-direction: column;
1060
+ opacity: 0;
1061
+ transform: translateY(8px) scale(0.96);
1062
+ pointer-events: none;
1063
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1079
1064
  }
1080
1065
 
1081
- .sidebar.open {
1082
- transform: translateX(0);
1066
+ .card.open {
1067
+ opacity: 1;
1068
+ transform: translateY(0) scale(1);
1069
+ pointer-events: auto;
1083
1070
  }
1084
1071
 
1085
1072
  .header {
1086
1073
  display: flex;
1087
1074
  align-items: center;
1088
1075
  justify-content: space-between;
1089
- padding: 16px 20px;
1076
+ padding: 12px 14px;
1090
1077
  border-bottom: 1px solid var(--vf-border);
1091
1078
  flex-shrink: 0;
1092
1079
  }
1093
1080
 
1094
- .header-left {
1095
- display: flex;
1096
- align-items: center;
1097
- gap: 8px;
1098
- }
1099
-
1100
1081
  .header h2 {
1101
- font-size: 16px;
1082
+ font-size: 13px;
1102
1083
  font-weight: 600;
1103
- letter-spacing: -0.025em;
1084
+ letter-spacing: -0.01em;
1104
1085
  display: flex;
1105
1086
  align-items: center;
1106
- gap: 8px;
1087
+ gap: 7px;
1107
1088
  }
1108
1089
 
1109
1090
  .header h2 svg {
1110
- width: 18px;
1111
- height: 18px;
1091
+ width: 15px;
1092
+ height: 15px;
1112
1093
  color: var(--vf-accent);
1113
1094
  }
1114
1095
 
1115
1096
  .header-actions {
1116
1097
  display: flex;
1117
1098
  align-items: center;
1118
- gap: 4px;
1099
+ gap: 2px;
1119
1100
  }
1120
1101
 
1121
1102
  .badge {
1122
- font-size: 11px;
1103
+ font-size: 10px;
1123
1104
  font-weight: 500;
1124
- padding: 2px 7px;
1105
+ padding: 1px 6px;
1125
1106
  border-radius: 9999px;
1126
1107
  background: var(--vf-bg-muted);
1127
1108
  color: var(--vf-text-muted);
@@ -1129,8 +1110,8 @@ $.styles = [
1129
1110
  }
1130
1111
 
1131
1112
  .icon-btn {
1132
- width: 32px;
1133
- height: 32px;
1113
+ width: 28px;
1114
+ height: 28px;
1134
1115
  border: none;
1135
1116
  border-radius: var(--vf-radius);
1136
1117
  background: transparent;
@@ -1148,18 +1129,17 @@ $.styles = [
1148
1129
  }
1149
1130
 
1150
1131
  .icon-btn svg {
1151
- width: 16px;
1152
- height: 16px;
1132
+ width: 14px;
1133
+ height: 14px;
1153
1134
  }
1154
1135
 
1155
1136
  .flags {
1156
- flex: 1;
1157
1137
  overflow-y: auto;
1158
- padding: 8px 0;
1138
+ flex: 1;
1159
1139
  }
1160
1140
 
1161
1141
  .flag-item {
1162
- padding: 12px 20px;
1142
+ padding: 10px 14px;
1163
1143
  transition: background 0.1s ease;
1164
1144
  }
1165
1145
 
@@ -1172,13 +1152,13 @@ $.styles = [
1172
1152
  }
1173
1153
 
1174
1154
  .flag-label {
1175
- font-size: 13px;
1155
+ font-size: 12px;
1176
1156
  font-weight: 500;
1177
- margin-bottom: 2px;
1157
+ margin-bottom: 1px;
1178
1158
  }
1179
1159
 
1180
1160
  .flag-key {
1181
- font-size: 11px;
1161
+ font-size: 10px;
1182
1162
  color: var(--vf-text-muted);
1183
1163
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas,
1184
1164
  monospace;
@@ -1188,7 +1168,7 @@ $.styles = [
1188
1168
  display: flex;
1189
1169
  align-items: center;
1190
1170
  justify-content: space-between;
1191
- gap: 12px;
1171
+ gap: 10px;
1192
1172
  }
1193
1173
 
1194
1174
  .flag-info {
@@ -1199,8 +1179,8 @@ $.styles = [
1199
1179
  /* Toggle switch */
1200
1180
  .toggle {
1201
1181
  position: relative;
1202
- width: 40px;
1203
- height: 22px;
1182
+ width: 36px;
1183
+ height: 20px;
1204
1184
  flex-shrink: 0;
1205
1185
  }
1206
1186
 
@@ -1214,7 +1194,7 @@ $.styles = [
1214
1194
  .toggle-track {
1215
1195
  position: absolute;
1216
1196
  inset: 0;
1217
- border-radius: 11px;
1197
+ border-radius: 10px;
1218
1198
  background: var(--vf-border);
1219
1199
  cursor: pointer;
1220
1200
  transition: background 0.2s ease;
@@ -1228,8 +1208,8 @@ $.styles = [
1228
1208
  position: absolute;
1229
1209
  top: 2px;
1230
1210
  left: 2px;
1231
- width: 18px;
1232
- height: 18px;
1211
+ width: 16px;
1212
+ height: 16px;
1233
1213
  border-radius: 50%;
1234
1214
  background: white;
1235
1215
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
@@ -1238,7 +1218,7 @@ $.styles = [
1238
1218
  }
1239
1219
 
1240
1220
  .toggle input:checked ~ .toggle-thumb {
1241
- transform: translateX(18px);
1221
+ transform: translateX(16px);
1242
1222
  }
1243
1223
 
1244
1224
  /* Select dropdown */
@@ -1250,16 +1230,16 @@ $.styles = [
1250
1230
  .select {
1251
1231
  appearance: none;
1252
1232
  -webkit-appearance: none;
1253
- font-size: 13px;
1233
+ font-size: 12px;
1254
1234
  font-family: var(--vf-font);
1255
- padding: 6px 30px 6px 10px;
1235
+ padding: 5px 26px 5px 8px;
1256
1236
  border: 1px solid var(--vf-border);
1257
1237
  border-radius: var(--vf-radius);
1258
1238
  background: var(--vf-bg);
1259
1239
  color: var(--vf-text);
1260
1240
  cursor: pointer;
1261
1241
  outline: none;
1262
- min-width: 100px;
1242
+ min-width: 80px;
1263
1243
  transition: border-color 0.15s ease;
1264
1244
  }
1265
1245
 
@@ -1274,7 +1254,7 @@ $.styles = [
1274
1254
 
1275
1255
  .select-chevron {
1276
1256
  position: absolute;
1277
- right: 8px;
1257
+ right: 6px;
1278
1258
  top: 50%;
1279
1259
  transform: translateY(-50%);
1280
1260
  pointer-events: none;
@@ -1282,21 +1262,21 @@ $.styles = [
1282
1262
  }
1283
1263
 
1284
1264
  .select-chevron svg {
1285
- width: 14px;
1286
- height: 14px;
1265
+ width: 12px;
1266
+ height: 12px;
1287
1267
  }
1288
1268
 
1289
1269
  /* Footer */
1290
1270
  .footer {
1291
- padding: 12px 20px;
1271
+ padding: 10px 14px;
1292
1272
  border-top: 1px solid var(--vf-border);
1293
1273
  flex-shrink: 0;
1294
1274
  }
1295
1275
 
1296
1276
  .reset-btn {
1297
1277
  width: 100%;
1298
- padding: 8px 16px;
1299
- font-size: 13px;
1278
+ padding: 6px 12px;
1279
+ font-size: 12px;
1300
1280
  font-weight: 500;
1301
1281
  font-family: var(--vf-font);
1302
1282
  border: 1px solid var(--vf-border);
@@ -1313,32 +1293,32 @@ $.styles = [
1313
1293
  }
1314
1294
 
1315
1295
  .empty {
1316
- padding: 40px 20px;
1296
+ padding: 24px 14px;
1317
1297
  text-align: center;
1318
1298
  color: var(--vf-text-muted);
1319
- font-size: 13px;
1299
+ font-size: 12px;
1320
1300
  }
1321
1301
  `
1322
1302
  ];
1323
- I([
1324
- m()
1303
+ j([
1304
+ H()
1325
1305
  ], $.prototype, "open", 2);
1326
- I([
1327
- m()
1306
+ j([
1307
+ H()
1328
1308
  ], $.prototype, "flags", 2);
1329
- I([
1330
- m()
1309
+ j([
1310
+ H()
1331
1311
  ], $.prototype, "configs", 2);
1332
- I([
1333
- m()
1312
+ j([
1313
+ H()
1334
1314
  ], $.prototype, "darkMode", 2);
1335
- $ = I([
1336
- j("vibe-toolbar")
1315
+ $ = j([
1316
+ N("vibe-toolbar")
1337
1317
  ], $);
1338
1318
  export {
1339
- A as VibeFlagBoolean,
1319
+ C as VibeFlagBoolean,
1340
1320
  V as VibeFlagOption,
1341
- H as VibeFlagSelect,
1321
+ L as VibeFlagSelect,
1342
1322
  ge as VibeFlags,
1343
1323
  $ as VibeToolbar,
1344
1324
  u as flagStore