sigo-components
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -6,6 +6,6 @@ /** | ||
*/ | ||
const T = globalThis, V = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, nt = Symbol(), Z = /* @__PURE__ */ new WeakMap(); | ||
let pt = class { | ||
const k = globalThis, K = k.ShadowRoot && (k.ShadyCSS === void 0 || k.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Z = Symbol(), X = /* @__PURE__ */ new WeakMap(); | ||
let ct = class { | ||
constructor(t, e, s) { | ||
if (this._$cssResult$ = !0, s !== nt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); | ||
if (this._$cssResult$ = !0, s !== Z) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); | ||
this.cssText = t, this.t = e; | ||
@@ -16,5 +16,5 @@ } | ||
const e = this.t; | ||
if (V && t === void 0) { | ||
if (K && t === void 0) { | ||
const s = e !== void 0 && e.length === 1; | ||
s && (t = Z.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Z.set(e, t)); | ||
s && (t = X.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && X.set(e, t)); | ||
} | ||
@@ -27,13 +27,20 @@ return t; | ||
}; | ||
const ut = (r) => new pt(typeof r == "string" ? r : r + "", void 0, nt), $t = (r, t) => { | ||
if (V) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet); | ||
const ft = (o) => new ct(typeof o == "string" ? o : o + "", void 0, Z), pt = (o, ...t) => { | ||
const e = o.length === 1 ? o[0] : t.reduce((s, i, n) => s + ((r) => { | ||
if (r._$cssResult$ === !0) return r.cssText; | ||
if (typeof r == "number") return r; | ||
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); | ||
})(i) + o[n + 1], o[0]); | ||
return new ct(e, o, Z); | ||
}, gt = (o, t) => { | ||
if (K) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet); | ||
else for (const e of t) { | ||
const s = document.createElement("style"), i = T.litNonce; | ||
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s); | ||
const s = document.createElement("style"), i = k.litNonce; | ||
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s); | ||
} | ||
}, F = V ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => { | ||
}, tt = K ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => { | ||
let e = ""; | ||
for (const s of t.cssRules) e += s.cssText; | ||
return ut(e); | ||
})(r) : r; | ||
return ft(e); | ||
})(o) : o; | ||
/** | ||
@@ -44,20 +51,20 @@ * @license | ||
*/ | ||
const { is: _t, defineProperty: ft, getOwnPropertyDescriptor: At, getOwnPropertyNames: gt, getOwnPropertySymbols: mt, getPrototypeOf: yt } = Object, f = globalThis, G = f.trustedTypes, vt = G ? G.emptyScript : "", z = f.reactiveElementPolyfillSupport, P = (r, t) => r, N = { toAttribute(r, t) { | ||
const { is: mt, defineProperty: vt, getOwnPropertyDescriptor: yt, getOwnPropertyNames: At, getOwnPropertySymbols: bt, getPrototypeOf: wt } = Object, g = globalThis, et = g.trustedTypes, St = et ? et.emptyScript : "", V = g.reactiveElementPolyfillSupport, O = (o, t) => o, j = { toAttribute(o, t) { | ||
switch (t) { | ||
case Boolean: | ||
r = r ? vt : null; | ||
o = o ? St : null; | ||
break; | ||
case Object: | ||
case Array: | ||
r = r == null ? r : JSON.stringify(r); | ||
o = o == null ? o : JSON.stringify(o); | ||
} | ||
return r; | ||
}, fromAttribute(r, t) { | ||
let e = r; | ||
return o; | ||
}, fromAttribute(o, t) { | ||
let e = o; | ||
switch (t) { | ||
case Boolean: | ||
e = r !== null; | ||
e = o !== null; | ||
break; | ||
case Number: | ||
e = r === null ? null : Number(r); | ||
e = o === null ? null : Number(o); | ||
break; | ||
@@ -67,3 +74,3 @@ case Object: | ||
try { | ||
e = JSON.parse(r); | ||
e = JSON.parse(o); | ||
} catch { | ||
@@ -74,5 +81,5 @@ e = null; | ||
return e; | ||
} }, W = (r, t) => !_t(r, t), Q = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: W }; | ||
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); | ||
class y extends HTMLElement { | ||
} }, F = (o, t) => !mt(o, t), st = { attribute: !0, type: String, converter: j, reflect: !1, hasChanged: F }; | ||
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), g.litPropertyMetadata ?? (g.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); | ||
class w extends HTMLElement { | ||
static addInitializer(t) { | ||
@@ -84,33 +91,33 @@ this._$Ei(), (this.l ?? (this.l = [])).push(t); | ||
} | ||
static createProperty(t, e = Q) { | ||
static createProperty(t, e = st) { | ||
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) { | ||
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e); | ||
i !== void 0 && ft(this.prototype, t, i); | ||
i !== void 0 && vt(this.prototype, t, i); | ||
} | ||
} | ||
static getPropertyDescriptor(t, e, s) { | ||
const { get: i, set: o } = At(this.prototype, t) ?? { get() { | ||
const { get: i, set: n } = yt(this.prototype, t) ?? { get() { | ||
return this[e]; | ||
}, set(n) { | ||
this[e] = n; | ||
}, set(r) { | ||
this[e] = r; | ||
} }; | ||
return { get() { | ||
return i == null ? void 0 : i.call(this); | ||
}, set(n) { | ||
const a = i == null ? void 0 : i.call(this); | ||
o.call(this, n), this.requestUpdate(t, a, s); | ||
}, set(r) { | ||
const h = i == null ? void 0 : i.call(this); | ||
n.call(this, r), this.requestUpdate(t, h, s); | ||
}, configurable: !0, enumerable: !0 }; | ||
} | ||
static getPropertyOptions(t) { | ||
return this.elementProperties.get(t) ?? Q; | ||
return this.elementProperties.get(t) ?? st; | ||
} | ||
static _$Ei() { | ||
if (this.hasOwnProperty(P("elementProperties"))) return; | ||
const t = yt(this); | ||
if (this.hasOwnProperty(O("elementProperties"))) return; | ||
const t = wt(this); | ||
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties); | ||
} | ||
static finalize() { | ||
if (this.hasOwnProperty(P("finalized"))) return; | ||
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(P("properties"))) { | ||
const e = this.properties, s = [...gt(e), ...mt(e)]; | ||
if (this.hasOwnProperty(O("finalized"))) return; | ||
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) { | ||
const e = this.properties, s = [...At(e), ...bt(e)]; | ||
for (const i of s) this.createProperty(i, e[i]); | ||
@@ -134,4 +141,4 @@ } | ||
const s = new Set(t.flat(1 / 0).reverse()); | ||
for (const i of s) e.unshift(F(i)); | ||
} else t !== void 0 && e.push(F(t)); | ||
for (const i of s) e.unshift(tt(i)); | ||
} else t !== void 0 && e.push(tt(t)); | ||
return e; | ||
@@ -165,3 +172,3 @@ } | ||
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); | ||
return $t(t, this.constructor.elementStyles), t; | ||
return gt(t, this.constructor.elementStyles), t; | ||
} | ||
@@ -188,15 +195,15 @@ connectedCallback() { | ||
_$EC(t, e) { | ||
var o; | ||
var n; | ||
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s); | ||
if (i !== void 0 && s.reflect === !0) { | ||
const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : N).toAttribute(e, s.type); | ||
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null; | ||
const r = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : j).toAttribute(e, s.type); | ||
this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null; | ||
} | ||
} | ||
_$AK(t, e) { | ||
var o; | ||
var n; | ||
const s = this.constructor, i = s._$Eh.get(t); | ||
if (i !== void 0 && this._$Em !== i) { | ||
const n = s.getPropertyOptions(i), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : N; | ||
this._$Em = i, this[i] = a.fromAttribute(e, n.type), this._$Em = null; | ||
const r = s.getPropertyOptions(i), h = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((n = r.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? r.converter : j; | ||
this._$Em = i, this[i] = h.fromAttribute(e, r.type), this._$Em = null; | ||
} | ||
@@ -206,3 +213,3 @@ } | ||
if (t !== void 0) { | ||
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? W)(this[t], e)) return; | ||
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? F)(this[t], e)) return; | ||
this.P(t, e, s); | ||
@@ -233,7 +240,7 @@ } | ||
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) { | ||
for (const [o, n] of this._$Ep) this[o] = n; | ||
for (const [n, r] of this._$Ep) this[n] = r; | ||
this._$Ep = void 0; | ||
} | ||
const i = this.constructor.elementProperties; | ||
if (i.size > 0) for (const [o, n] of i) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n); | ||
if (i.size > 0) for (const [n, r] of i) r.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], r); | ||
} | ||
@@ -244,4 +251,4 @@ let t = !1; | ||
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => { | ||
var o; | ||
return (o = i.hostUpdate) == null ? void 0 : o.call(i); | ||
var n; | ||
return (n = i.hostUpdate) == null ? void 0 : n.call(i); | ||
}), this.update(e)) : this._$EU(); | ||
@@ -282,3 +289,3 @@ } catch (i) { | ||
} | ||
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[P("elementProperties")] = /* @__PURE__ */ new Map(), y[P("finalized")] = /* @__PURE__ */ new Map(), z == null || z({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4"); | ||
w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[O("elementProperties")] = /* @__PURE__ */ new Map(), w[O("finalized")] = /* @__PURE__ */ new Map(), V == null || V({ ReactiveElement: w }), (g.reactiveElementVersions ?? (g.reactiveElementVersions = [])).push("2.0.4"); | ||
/** | ||
@@ -289,66 +296,66 @@ * @license | ||
*/ | ||
const w = globalThis, R = w.trustedTypes, X = R ? R.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ot = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ht = "?" + _, Et = `<${ht}>`, m = document, C = () => m.createComment(""), x = (r) => r === null || typeof r != "object" && typeof r != "function", q = Array.isArray, St = (r) => q(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", I = `[ | ||
\f\r]`, b = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, tt = />/g, A = RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ | ||
\f\r"'\`<>=]|("|')|))|$)`, "g"), et = /'/g, st = /"/g, at = /^(?:script|style|textarea|title)$/i, bt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), lt = bt(1), E = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), it = /* @__PURE__ */ new WeakMap(), g = m.createTreeWalker(m, 129); | ||
function ct(r, t) { | ||
if (!q(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array"); | ||
return X !== void 0 ? X.createHTML(t) : t; | ||
const C = globalThis, D = C.trustedTypes, it = D ? D.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, dt = "$lit$", f = `lit$${Math.random().toFixed(9).slice(2)}$`, ut = "?" + f, Et = `<${ut}>`, A = document, T = () => A.createComment(""), U = (o) => o === null || typeof o != "object" && typeof o != "function", Y = Array.isArray, xt = (o) => Y(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", W = `[ | ||
\f\r]`, P = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ot = /-->/g, rt = />/g, m = RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ | ||
\f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, at = /"/g, $t = /^(?:script|style|textarea|title)$/i, Pt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), z = Pt(1), S = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), ht = /* @__PURE__ */ new WeakMap(), v = A.createTreeWalker(A, 129); | ||
function _t(o, t) { | ||
if (!Y(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array"); | ||
return it !== void 0 ? it.createHTML(t) : t; | ||
} | ||
const Pt = (r, t) => { | ||
const e = r.length - 1, s = []; | ||
let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = b; | ||
for (let a = 0; a < e; a++) { | ||
const h = r[a]; | ||
let c, p, l = -1, u = 0; | ||
for (; u < h.length && (n.lastIndex = u, p = n.exec(h), p !== null); ) u = n.lastIndex, n === b ? p[1] === "!--" ? n = Y : p[1] !== void 0 ? n = tt : p[2] !== void 0 ? (at.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = A) : p[3] !== void 0 && (n = A) : n === A ? p[0] === ">" ? (n = i ?? b, l = -1) : p[1] === void 0 ? l = -2 : (l = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? A : p[3] === '"' ? st : et) : n === st || n === et ? n = A : n === Y || n === tt ? n = b : (n = A, i = void 0); | ||
const $ = n === A && r[a + 1].startsWith("/>") ? " " : ""; | ||
o += n === b ? h + Et : l >= 0 ? (s.push(c), h.slice(0, l) + ot + h.slice(l) + _ + $) : h + _ + (l === -2 ? a : $); | ||
const Ot = (o, t) => { | ||
const e = o.length - 1, s = []; | ||
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = P; | ||
for (let h = 0; h < e; h++) { | ||
const a = o[h]; | ||
let c, d, l = -1, u = 0; | ||
for (; u < a.length && (r.lastIndex = u, d = r.exec(a), d !== null); ) u = r.lastIndex, r === P ? d[1] === "!--" ? r = ot : d[1] !== void 0 ? r = rt : d[2] !== void 0 ? ($t.test(d[2]) && (i = RegExp("</" + d[2], "g")), r = m) : d[3] !== void 0 && (r = m) : r === m ? d[0] === ">" ? (r = i ?? P, l = -1) : d[1] === void 0 ? l = -2 : (l = r.lastIndex - d[2].length, c = d[1], r = d[3] === void 0 ? m : d[3] === '"' ? at : nt) : r === at || r === nt ? r = m : r === ot || r === rt ? r = P : (r = m, i = void 0); | ||
const _ = r === m && o[h + 1].startsWith("/>") ? " " : ""; | ||
n += r === P ? a + Et : l >= 0 ? (s.push(c), a.slice(0, l) + dt + a.slice(l) + f + _) : a + f + (l === -2 ? h : _); | ||
} | ||
return [ct(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s]; | ||
return [_t(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s]; | ||
}; | ||
class U { | ||
class H { | ||
constructor({ strings: t, _$litType$: e }, s) { | ||
let i; | ||
this.parts = []; | ||
let o = 0, n = 0; | ||
const a = t.length - 1, h = this.parts, [c, p] = Pt(t, e); | ||
if (this.el = U.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) { | ||
let n = 0, r = 0; | ||
const h = t.length - 1, a = this.parts, [c, d] = Ot(t, e); | ||
if (this.el = H.createElement(c, s), v.currentNode = this.el.content, e === 2 || e === 3) { | ||
const l = this.el.content.firstChild; | ||
l.replaceWith(...l.childNodes); | ||
} | ||
for (; (i = g.nextNode()) !== null && h.length < a; ) { | ||
for (; (i = v.nextNode()) !== null && a.length < h; ) { | ||
if (i.nodeType === 1) { | ||
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(ot)) { | ||
const u = p[n++], $ = i.getAttribute(l).split(_), H = /([.?@])?(.*)/.exec(u); | ||
h.push({ type: 1, index: o, name: H[2], strings: $, ctor: H[1] === "." ? Ct : H[1] === "?" ? xt : H[1] === "@" ? Ut : j }), i.removeAttribute(l); | ||
} else l.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(l)); | ||
if (at.test(i.tagName)) { | ||
const l = i.textContent.split(_), u = l.length - 1; | ||
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(dt)) { | ||
const u = d[r++], _ = i.getAttribute(l).split(f), N = /([.?@])?(.*)/.exec(u); | ||
a.push({ type: 1, index: n, name: N[2], strings: _, ctor: N[1] === "." ? Tt : N[1] === "?" ? Ut : N[1] === "@" ? Ht : L }), i.removeAttribute(l); | ||
} else l.startsWith(f) && (a.push({ type: 6, index: n }), i.removeAttribute(l)); | ||
if ($t.test(i.tagName)) { | ||
const l = i.textContent.split(f), u = l.length - 1; | ||
if (u > 0) { | ||
i.textContent = R ? R.emptyScript : ""; | ||
for (let $ = 0; $ < u; $++) i.append(l[$], C()), g.nextNode(), h.push({ type: 2, index: ++o }); | ||
i.append(l[u], C()); | ||
i.textContent = D ? D.emptyScript : ""; | ||
for (let _ = 0; _ < u; _++) i.append(l[_], T()), v.nextNode(), a.push({ type: 2, index: ++n }); | ||
i.append(l[u], T()); | ||
} | ||
} | ||
} else if (i.nodeType === 8) if (i.data === ht) h.push({ type: 2, index: o }); | ||
} else if (i.nodeType === 8) if (i.data === ut) a.push({ type: 2, index: n }); | ||
else { | ||
let l = -1; | ||
for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: o }), l += _.length - 1; | ||
for (; (l = i.data.indexOf(f, l + 1)) !== -1; ) a.push({ type: 7, index: n }), l += f.length - 1; | ||
} | ||
o++; | ||
n++; | ||
} | ||
} | ||
static createElement(t, e) { | ||
const s = m.createElement("template"); | ||
const s = A.createElement("template"); | ||
return s.innerHTML = t, s; | ||
} | ||
} | ||
function S(r, t, e = r, s) { | ||
var n, a; | ||
if (t === E) return t; | ||
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl; | ||
const o = x(t) ? void 0 : t._$litDirective$; | ||
return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t; | ||
function E(o, t, e = o, s) { | ||
var r, h; | ||
if (t === S) return t; | ||
let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl; | ||
const n = U(t) ? void 0 : t._$litDirective$; | ||
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(o, i._$AS(o, t.values), i, s)), t; | ||
} | ||
class wt { | ||
class Ct { | ||
constructor(t, e) { | ||
@@ -364,13 +371,13 @@ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e; | ||
u(t) { | ||
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? m).importNode(e, !0); | ||
g.currentNode = i; | ||
let o = g.nextNode(), n = 0, a = 0, h = s[0]; | ||
for (; h !== void 0; ) { | ||
if (n === h.index) { | ||
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0); | ||
v.currentNode = i; | ||
let n = v.nextNode(), r = 0, h = 0, a = s[0]; | ||
for (; a !== void 0; ) { | ||
if (r === a.index) { | ||
let c; | ||
h.type === 2 ? c = new O(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new Ot(o, this, t)), this._$AV.push(c), h = s[++a]; | ||
a.type === 2 ? c = new R(n, n.nextSibling, this, t) : a.type === 1 ? c = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (c = new Rt(n, this, t)), this._$AV.push(c), a = s[++h]; | ||
} | ||
n !== (h == null ? void 0 : h.index) && (o = g.nextNode(), n++); | ||
r !== (a == null ? void 0 : a.index) && (n = v.nextNode(), r++); | ||
} | ||
return g.currentNode = m, i; | ||
return v.currentNode = A, i; | ||
} | ||
@@ -382,3 +389,3 @@ p(t) { | ||
} | ||
class O { | ||
class R { | ||
get _$AU() { | ||
@@ -389,3 +396,3 @@ var t; | ||
constructor(t, e, s, i) { | ||
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0; | ||
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0; | ||
} | ||
@@ -404,3 +411,3 @@ get parentNode() { | ||
_$AI(t, e = this) { | ||
t = S(this, t, e), x(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : St(t) ? this.k(t) : this._(t); | ||
t = E(this, t, e), U(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : xt(t) ? this.k(t) : this._(t); | ||
} | ||
@@ -414,22 +421,22 @@ O(t) { | ||
_(t) { | ||
this._$AH !== d && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(m.createTextNode(t)), this._$AH = t; | ||
this._$AH !== p && U(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t; | ||
} | ||
$(t) { | ||
var o; | ||
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(ct(s.h, s.h[0]), this.options)), s); | ||
if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e); | ||
var n; | ||
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(_t(s.h, s.h[0]), this.options)), s); | ||
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e); | ||
else { | ||
const n = new wt(i, this), a = n.u(this.options); | ||
n.p(e), this.T(a), this._$AH = n; | ||
const r = new Ct(i, this), h = r.u(this.options); | ||
r.p(e), this.T(h), this._$AH = r; | ||
} | ||
} | ||
_$AC(t) { | ||
let e = it.get(t.strings); | ||
return e === void 0 && it.set(t.strings, e = new U(t)), e; | ||
let e = ht.get(t.strings); | ||
return e === void 0 && ht.set(t.strings, e = new H(t)), e; | ||
} | ||
k(t) { | ||
q(this._$AH) || (this._$AH = [], this._$AR()); | ||
Y(this._$AH) || (this._$AH = [], this._$AR()); | ||
const e = this._$AH; | ||
let s, i = 0; | ||
for (const o of t) i === e.length ? e.push(s = new O(this.O(C()), this.O(C()), this, this.options)) : s = e[i], s._$AI(o), i++; | ||
for (const n of t) i === e.length ? e.push(s = new R(this.O(T()), this.O(T()), this, this.options)) : s = e[i], s._$AI(n), i++; | ||
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i); | ||
@@ -449,3 +456,3 @@ } | ||
} | ||
class j { | ||
class L { | ||
get tagName() { | ||
@@ -457,21 +464,21 @@ return this.element.tagName; | ||
} | ||
constructor(t, e, s, i, o) { | ||
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d; | ||
constructor(t, e, s, i, n) { | ||
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = p; | ||
} | ||
_$AI(t, e = this, s, i) { | ||
const o = this.strings; | ||
let n = !1; | ||
if (o === void 0) t = S(this, t, e, 0), n = !x(t) || t !== this._$AH && t !== E, n && (this._$AH = t); | ||
const n = this.strings; | ||
let r = !1; | ||
if (n === void 0) t = E(this, t, e, 0), r = !U(t) || t !== this._$AH && t !== S, r && (this._$AH = t); | ||
else { | ||
const a = t; | ||
let h, c; | ||
for (t = o[0], h = 0; h < o.length - 1; h++) c = S(this, a[s + h], e, h), c === E && (c = this._$AH[h]), n || (n = !x(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c; | ||
const h = t; | ||
let a, c; | ||
for (t = n[0], a = 0; a < n.length - 1; a++) c = E(this, h[s + a], e, a), c === S && (c = this._$AH[a]), r || (r = !U(c) || c !== this._$AH[a]), c === p ? t = p : t !== p && (t += (c ?? "") + n[a + 1]), this._$AH[a] = c; | ||
} | ||
n && !i && this.j(t); | ||
r && !i && this.j(t); | ||
} | ||
j(t) { | ||
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? ""); | ||
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? ""); | ||
} | ||
} | ||
class Ct extends j { | ||
class Tt extends L { | ||
constructor() { | ||
@@ -481,6 +488,6 @@ super(...arguments), this.type = 3; | ||
j(t) { | ||
this.element[this.name] = t === d ? void 0 : t; | ||
this.element[this.name] = t === p ? void 0 : t; | ||
} | ||
} | ||
class xt extends j { | ||
class Ut extends L { | ||
constructor() { | ||
@@ -490,13 +497,13 @@ super(...arguments), this.type = 4; | ||
j(t) { | ||
this.element.toggleAttribute(this.name, !!t && t !== d); | ||
this.element.toggleAttribute(this.name, !!t && t !== p); | ||
} | ||
} | ||
class Ut extends j { | ||
constructor(t, e, s, i, o) { | ||
super(t, e, s, i, o), this.type = 5; | ||
class Ht extends L { | ||
constructor(t, e, s, i, n) { | ||
super(t, e, s, i, n), this.type = 5; | ||
} | ||
_$AI(t, e = this) { | ||
if ((t = S(this, t, e, 0) ?? d) === E) return; | ||
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i); | ||
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t; | ||
if ((t = E(this, t, e, 0) ?? p) === S) return; | ||
const s = this._$AH, i = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== p && (s === p || i); | ||
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t; | ||
} | ||
@@ -508,3 +515,3 @@ handleEvent(t) { | ||
} | ||
class Ot { | ||
class Rt { | ||
constructor(t, e, s) { | ||
@@ -517,15 +524,15 @@ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s; | ||
_$AI(t) { | ||
S(this, t); | ||
E(this, t); | ||
} | ||
} | ||
const B = w.litHtmlPolyfillSupport; | ||
B == null || B(U, O), (w.litHtmlVersions ?? (w.litHtmlVersions = [])).push("3.2.1"); | ||
const Ht = (r, t, e) => { | ||
const q = C.litHtmlPolyfillSupport; | ||
q == null || q(H, R), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.2.1"); | ||
const Mt = (o, t, e) => { | ||
const s = (e == null ? void 0 : e.renderBefore) ?? t; | ||
let i = s._$litPart$; | ||
if (i === void 0) { | ||
const o = (e == null ? void 0 : e.renderBefore) ?? null; | ||
s._$litPart$ = i = new O(t.insertBefore(C(), o), o, void 0, e ?? {}); | ||
const n = (e == null ? void 0 : e.renderBefore) ?? null; | ||
s._$litPart$ = i = new R(t.insertBefore(T(), n), n, void 0, e ?? {}); | ||
} | ||
return i._$AI(r), i; | ||
return i._$AI(o), i; | ||
}; | ||
@@ -537,3 +544,3 @@ /** | ||
*/ | ||
let v = class extends y { | ||
let y = class extends w { | ||
constructor() { | ||
@@ -549,3 +556,3 @@ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; | ||
const e = this.render(); | ||
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ht(e, this.renderRoot, this.renderOptions); | ||
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Mt(e, this.renderRoot, this.renderOptions); | ||
} | ||
@@ -561,9 +568,9 @@ connectedCallback() { | ||
render() { | ||
return E; | ||
return S; | ||
} | ||
}; | ||
var rt; | ||
v._$litElement$ = !0, v.finalized = !0, (rt = globalThis.litElementHydrateSupport) == null || rt.call(globalThis, { LitElement: v }); | ||
const k = globalThis.litElementPolyfillSupport; | ||
k == null || k({ LitElement: v }); | ||
var lt; | ||
y._$litElement$ = !0, y.finalized = !0, (lt = globalThis.litElementHydrateSupport) == null || lt.call(globalThis, { LitElement: y }); | ||
const J = globalThis.litElementPolyfillSupport; | ||
J == null || J({ LitElement: y }); | ||
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1"); | ||
@@ -575,6 +582,6 @@ /** | ||
*/ | ||
const dt = (r) => (t, e) => { | ||
const G = (o) => (t, e) => { | ||
e !== void 0 ? e.addInitializer(() => { | ||
customElements.define(r, t); | ||
}) : customElements.define(r, t); | ||
customElements.define(o, t); | ||
}) : customElements.define(o, t); | ||
}; | ||
@@ -586,19 +593,19 @@ /** | ||
*/ | ||
const Tt = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: W }, Nt = (r = Tt, t, e) => { | ||
const Nt = { attribute: !0, type: String, converter: j, reflect: !1, hasChanged: F }, kt = (o = Nt, t, e) => { | ||
const { kind: s, metadata: i } = e; | ||
let o = globalThis.litPropertyMetadata.get(i); | ||
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") { | ||
const { name: n } = e; | ||
return { set(a) { | ||
const h = t.get.call(this); | ||
t.set.call(this, a), this.requestUpdate(n, h, r); | ||
}, init(a) { | ||
return a !== void 0 && this.P(n, void 0, r), a; | ||
let n = globalThis.litPropertyMetadata.get(i); | ||
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") { | ||
const { name: r } = e; | ||
return { set(h) { | ||
const a = t.get.call(this); | ||
t.set.call(this, h), this.requestUpdate(r, a, o); | ||
}, init(h) { | ||
return h !== void 0 && this.P(r, void 0, o), h; | ||
} }; | ||
} | ||
if (s === "setter") { | ||
const { name: n } = e; | ||
return function(a) { | ||
const h = this[n]; | ||
t.call(this, a), this.requestUpdate(n, h, r); | ||
const { name: r } = e; | ||
return function(h) { | ||
const a = this[r]; | ||
t.call(this, h), this.requestUpdate(r, a, o); | ||
}; | ||
@@ -608,18 +615,148 @@ } | ||
}; | ||
function L(r) { | ||
return (t, e) => typeof e == "object" ? Nt(r, t, e) : ((s, i, o) => { | ||
const n = i.hasOwnProperty(o); | ||
return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0; | ||
})(r, t, e); | ||
function $(o) { | ||
return (t, e) => typeof e == "object" ? kt(o, t, e) : ((s, i, n) => { | ||
const r = i.hasOwnProperty(n); | ||
return i.constructor.createProperty(n, r ? { ...s, wrapped: !0 } : s), r ? Object.getOwnPropertyDescriptor(i, n) : void 0; | ||
})(o, t, e); | ||
} | ||
var Rt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, J = (r, t, e, s) => { | ||
for (var i = s > 1 ? void 0 : s ? Mt(t, e) : t, o = r.length - 1, n; o >= 0; o--) | ||
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i); | ||
return s && i && Rt(t, e, i), i; | ||
var jt = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, M = (o, t, e, s) => { | ||
for (var i = s > 1 ? void 0 : s ? Dt(t, e) : t, n = o.length - 1, r; n >= 0; n--) | ||
(r = o[n]) && (i = (s ? r(t, e, i) : r(i)) || i); | ||
return s && i && jt(t, e, i), i; | ||
}; | ||
let M = class extends v { | ||
let b = class extends y { | ||
constructor() { | ||
super(...arguments), this.docsHint = "Test", this.count = 0; | ||
super(...arguments), this.selectedValue = "", this.searchTerm = "", this.data = [ | ||
{ value: "1", label: "One" }, | ||
{ value: "2", label: "Two" }, | ||
{ value: "3", label: "Three" } | ||
], this.isOpen = !1; | ||
} | ||
// Crear el shadow DOM normalmente | ||
toggleDropdown() { | ||
this.isOpen = !this.isOpen, this.requestUpdate(); | ||
} | ||
handleInput(o) { | ||
const t = o.target; | ||
this.searchTerm = t.value; | ||
} | ||
selectOption(o) { | ||
this.selectedValue = o, this.searchTerm = "", this.isOpen = !1, this.dispatchEvent(new CustomEvent("select-changed", { detail: o })); | ||
} | ||
handleBlur(o) { | ||
this.isOpen = !1; | ||
} | ||
render() { | ||
const o = this.data.filter( | ||
(t) => t.label.toLowerCase().includes(this.searchTerm.toLowerCase()) | ||
); | ||
return console.log(this.isOpen), z` | ||
<div class="dropdown" @click=${this.toggleDropdown}> | ||
<div class="search-input-wrapper"> | ||
<input | ||
type="text" | ||
class="search-input" | ||
placeholder="Search..." | ||
@input=${this.handleInput} | ||
@blur=${this.handleBlur} | ||
.value=${this.searchTerm} | ||
/> | ||
</div> | ||
<div style=${`${this.isOpen ? "" : "display: none;"}`} class="dropdown-content"> | ||
${o.map((t) => z` | ||
<div class="option" @click=${() => this.selectOption(t.value)}> | ||
${t.label} | ||
</div> | ||
`)} | ||
</div> | ||
</div> | ||
`; | ||
} | ||
}; | ||
b.styles = pt` | ||
.dropdown { | ||
position: relative; | ||
display: inline-block; | ||
width: 100%; /* Ajusta el ancho según sea necesario */ | ||
} | ||
.dropdown-content { | ||
/* display: none; */ | ||
position: absolute; | ||
background-color: white; | ||
min-width: 100%; /* Ajustar al ancho del dropdown */ | ||
border: 1px solid #ccc; | ||
z-index: 1; | ||
max-height: 200px; | ||
overflow-y: auto; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
} | ||
.dropdown.open .dropdown-content { | ||
display: block; /* Mostrar dropdown cuando está abierto */ | ||
} | ||
.search-input { | ||
box-sizing: border-box; | ||
width: 100%; | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
margin-bottom: 0; | ||
padding: 8px 30px 8px 8px; /* Espacio a la derecha para el icono */ | ||
--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); | ||
} | ||
.search-input-wrapper { | ||
position: relative; | ||
display: inline-block; | ||
width: 100%; | ||
} | ||
.search-input-wrapper::after { | ||
content: ''; | ||
position: absolute; | ||
top: 50%; | ||
right: 10px; | ||
transform: translateY(-50%); | ||
width: 12px; | ||
height: 12px; | ||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
pointer-events: none; | ||
} | ||
.option { | ||
padding: 8px 12px; | ||
cursor: pointer; | ||
} | ||
.option:hover { | ||
background-color: #f1f1f1; | ||
} | ||
`; | ||
M([ | ||
$({ type: String }) | ||
], b.prototype, "selectedValue", 2); | ||
M([ | ||
$({ type: String }) | ||
], b.prototype, "searchTerm", 2); | ||
M([ | ||
$({ type: Array }) | ||
], b.prototype, "data", 2); | ||
M([ | ||
$({ type: Boolean }) | ||
], b.prototype, "isOpen", 2); | ||
b = M([ | ||
G("sigo-select-v1") | ||
], b); | ||
var zt = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, I = (o, t, e, s) => { | ||
for (var i = s > 1 ? void 0 : s ? Bt(t, e) : t, n = o.length - 1, r; n >= 0; n--) | ||
(r = o[n]) && (i = (s ? r(t, e, i) : r(i)) || i); | ||
return s && i && zt(t, e, i), i; | ||
}; | ||
let x = class extends y { | ||
constructor() { | ||
super(...arguments), this.selectedValue = "", this.searchTerm = "", this.isOpen = !1; | ||
} | ||
createRenderRoot() { | ||
@@ -629,54 +766,55 @@ return this; | ||
render() { | ||
return lt` | ||
<p class='text-danger'>${this.docsHint}</p> | ||
return z` | ||
<select class="form-select form-select-sm" aria-label="Small select example"> | ||
<option selected>Open this select menu</option> | ||
<option value="1">One</option> | ||
<option value="2">Two</option> | ||
<option value="3">Three</option> | ||
</select> | ||
`; | ||
} | ||
}; | ||
J([ | ||
L() | ||
], M.prototype, "docsHint", 2); | ||
J([ | ||
L({ type: Number }) | ||
], M.prototype, "count", 2); | ||
M = J([ | ||
dt("sigo-test") | ||
], M); | ||
var Dt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, K = (r, t, e, s) => { | ||
for (var i = s > 1 ? void 0 : s ? jt(t, e) : t, o = r.length - 1, n; o >= 0; o--) | ||
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i); | ||
return s && i && Dt(t, e, i), i; | ||
x.styles = pt``; | ||
I([ | ||
$({ type: String }) | ||
], x.prototype, "selectedValue", 2); | ||
I([ | ||
$({ type: String }) | ||
], x.prototype, "searchTerm", 2); | ||
I([ | ||
$({ type: Boolean }) | ||
], x.prototype, "isOpen", 2); | ||
x = I([ | ||
G("sigo-select-v1-copy") | ||
], x); | ||
var Lt = Object.defineProperty, It = Object.getOwnPropertyDescriptor, Q = (o, t, e, s) => { | ||
for (var i = s > 1 ? void 0 : s ? It(t, e) : t, n = o.length - 1, r; n >= 0; n--) | ||
(r = o[n]) && (i = (s ? r(t, e, i) : r(i)) || i); | ||
return s && i && Lt(t, e, i), i; | ||
}; | ||
let D = class extends v { | ||
let B = class extends y { | ||
constructor() { | ||
super(...arguments), this.docsHint = "Click on the Vite and Lit logos to learn more", this.count = 0; | ||
} | ||
// Crear el shadow DOM normalmente | ||
createRenderRoot() { | ||
return this; | ||
} | ||
// connectedCallback() { | ||
// super.connectedCallback() | ||
// const linkElement = document.createElement('link') | ||
// linkElement.rel = 'stylesheet' | ||
// linkElement.href = '/node_modules/bootstrap/dist/css/bootstrap.min.css' | ||
// this.shadowRoot?.appendChild(linkElement) | ||
// } | ||
render() { | ||
return lt` | ||
<p class='text-danger'>${this.docsHint}</p> | ||
<sigo-test></sigo-test> | ||
`; | ||
return z` | ||
<sigo-select-v1></sigo-select-v1> | ||
<sigo-select-v1-copy></sigo-select-v1-copy> | ||
`; | ||
} | ||
}; | ||
K([ | ||
L() | ||
], D.prototype, "docsHint", 2); | ||
K([ | ||
L({ type: Number }) | ||
], D.prototype, "count", 2); | ||
D = K([ | ||
dt("sigo-reposicion-automatica") | ||
], D); | ||
Q([ | ||
$() | ||
], B.prototype, "docsHint", 2); | ||
Q([ | ||
$({ type: Number }) | ||
], B.prototype, "count", 2); | ||
B = Q([ | ||
G("sigo-reposicion-automatica") | ||
], B); | ||
export { | ||
D as SigoReposicionAutomatica | ||
B as SigoReposicionAutomatica | ||
}; |
{ | ||
"name": "sigo-components", | ||
"private": false, | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/sigo-components.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262909
1684
6