Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@halo-dev/shiki-code-element

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@halo-dev/shiki-code-element - npm Package Compare versions

Comparing version
1.2.0
to
1.3.0
+439
-462
dist/index.js

@@ -1,13 +0,13 @@

var tailwind_default = "*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:\"\"}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}", t$2 = globalThis, e$4 = t$2.ShadowRoot && (t$2.ShadyCSS === void 0 || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$5 = /* @__PURE__ */ new WeakMap(), n$4 = class {
constructor(y, b, w) {
if (this._$cssResult$ = !0, w !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = y, this.t = b;
var e = "*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:\"\"}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}", t = globalThis, n = t.ShadowRoot && (t.ShadyCSS === void 0 || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, r = Symbol(), i = new WeakMap(), a = class {
constructor(e, t, n) {
if (this._$cssResult$ = !0, n !== r) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = e, this.t = t;
}
get styleSheet() {
let y = this.o, b = this.t;
if (e$4 && y === void 0) {
let w = b !== void 0 && b.length === 1;
w && (y = o$5.get(b)), y === void 0 && ((this.o = y = new CSSStyleSheet()).replaceSync(this.cssText), w && o$5.set(b, y));
let e = this.o, t = this.t;
if (n && e === void 0) {
let n = t !== void 0 && t.length === 1;
n && (e = i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && i.set(t, e));
}
return y;
return e;
}

@@ -17,57 +17,57 @@ toString() {

}
}, r$4 = (y) => new n$4(typeof y == "string" ? y : y + "", void 0, s$2), i$4 = (y, ...b) => new n$4(y.length === 1 ? y[0] : b.reduce(((b, w, D) => b + ((y) => {
if (!0 === y._$cssResult$) return y.cssText;
if (typeof y == "number") return y;
throw Error("Value passed to 'css' function must be a 'css' function result: " + y + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
})(w) + y[D + 1]), y[0]), y, s$2), S$1 = (y, D) => {
if (e$4) y.adoptedStyleSheets = D.map(((y) => y instanceof CSSStyleSheet ? y : y.styleSheet));
else for (let w of D) {
let D = document.createElement("style"), O = t$2.litNonce;
O !== void 0 && D.setAttribute("nonce", O), D.textContent = w.cssText, y.appendChild(D);
}, o = (e) => new a(typeof e == "string" ? e : e + "", void 0, r), s = (e, ...t) => new a(e.length === 1 ? e[0] : t.reduce(((t, n, r) => t + ((e) => {
if (!0 === e._$cssResult$) return e.cssText;
if (typeof e == "number") return e;
throw Error("Value passed to 'css' function must be a 'css' function result: " + e + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
})(n) + e[r + 1]), e[0]), e, r), c = (e, r) => {
if (n) e.adoptedStyleSheets = r.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
else for (let n of r) {
let r = document.createElement("style"), i = t.litNonce;
i !== void 0 && r.setAttribute("nonce", i), r.textContent = n.cssText, e.appendChild(r);
}
}, c$2 = e$4 ? (y) => y : (y) => y instanceof CSSStyleSheet ? ((y) => {
let b = "";
for (let w of y.cssRules) b += w.cssText;
return r$4(b);
})(y) : y, { is: i$3, defineProperty: e$3, getOwnPropertyDescriptor: h$1, getOwnPropertyNames: r$3, getOwnPropertySymbols: o$4, getPrototypeOf: n$3 } = Object, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = (y, b) => y, u$1 = {
toAttribute(y, b) {
switch (b) {
}, l = n ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
let t = "";
for (let n of e.cssRules) t += n.cssText;
return o(t);
})(e) : e, { is: u, defineProperty: d, getOwnPropertyDescriptor: ee, getOwnPropertyNames: te, getOwnPropertySymbols: ne, getPrototypeOf: re } = Object, f = globalThis, p = f.trustedTypes, ie = p ? p.emptyScript : "", ae = f.reactiveElementPolyfillSupport, m = (e, t) => e, h = {
toAttribute(e, t) {
switch (t) {
case Boolean:
y = y ? l$1 : null;
e = e ? ie : null;
break;
case Object:
case Array: y = y == null ? y : JSON.stringify(y);
case Array: e = e == null ? e : JSON.stringify(e);
}
return y;
return e;
},
fromAttribute(y, b) {
let w = y;
switch (b) {
fromAttribute(e, t) {
let n = e;
switch (t) {
case Boolean:
w = y !== null;
n = e !== null;
break;
case Number:
w = y === null ? null : Number(y);
n = e === null ? null : Number(e);
break;
case Object:
case Array: try {
w = JSON.parse(y);
n = JSON.parse(e);
} catch {
w = null;
n = null;
}
}
return w;
return n;
}
}, f$1 = (y, b) => !i$3(y, b), b$1 = {
}, g = (e, t) => !u(e, t), _ = {
attribute: !0,
type: String,
converter: u$1,
converter: h,
reflect: !1,
useDefault: !1,
hasChanged: f$1
hasChanged: g
};
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
var y$1 = class extends HTMLElement {
static addInitializer(y) {
this._$Ei(), (this.l ??= []).push(y);
Symbol.metadata ??= Symbol("metadata"), f.litPropertyMetadata ??= new WeakMap();
var v = class extends HTMLElement {
static addInitializer(e) {
this._$Ei(), (this.l ??= []).push(e);
}

@@ -77,22 +77,22 @@ static get observedAttributes() {

}
static createProperty(y, b = b$1) {
if (b.state && (b.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(y) && ((b = Object.create(b)).wrapped = !0), this.elementProperties.set(y, b), !b.noAccessor) {
let w = Symbol(), D = this.getPropertyDescriptor(y, w, b);
D !== void 0 && e$3(this.prototype, y, D);
static createProperty(e, t = _) {
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
r !== void 0 && d(this.prototype, e, r);
}
}
static getPropertyDescriptor(y, b, w) {
let { get: D, set: O } = h$1(this.prototype, y) ?? {
static getPropertyDescriptor(e, t, n) {
let { get: r, set: i } = ee(this.prototype, e) ?? {
get() {
return this[b];
return this[t];
},
set(y) {
this[b] = y;
set(e) {
this[t] = e;
}
};
return {
get: D,
set(b) {
let F = D?.call(this);
O?.call(this, b), this.requestUpdate(y, F, w);
get: r,
set(t) {
let a = r?.call(this);
i?.call(this, t), this.requestUpdate(e, a, n);
},

@@ -103,39 +103,39 @@ configurable: !0,

}
static getPropertyOptions(y) {
return this.elementProperties.get(y) ?? b$1;
static getPropertyOptions(e) {
return this.elementProperties.get(e) ?? _;
}
static _$Ei() {
if (this.hasOwnProperty(d$1("elementProperties"))) return;
let y = n$3(this);
y.finalize(), y.l !== void 0 && (this.l = [...y.l]), this.elementProperties = new Map(y.elementProperties);
if (this.hasOwnProperty(m("elementProperties"))) return;
let e = re(this);
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(d$1("finalized"))) return;
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
let y = this.properties, b = [...r$3(y), ...o$4(y)];
for (let w of b) this.createProperty(w, y[w]);
if (this.hasOwnProperty(m("finalized"))) return;
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m("properties"))) {
let e = this.properties, t = [...te(e), ...ne(e)];
for (let n of t) this.createProperty(n, e[n]);
}
let y = this[Symbol.metadata];
if (y !== null) {
let b = litPropertyMetadata.get(y);
if (b !== void 0) for (let [y, w] of b) this.elementProperties.set(y, w);
let e = this[Symbol.metadata];
if (e !== null) {
let t = litPropertyMetadata.get(e);
if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
}
this._$Eh = /* @__PURE__ */ new Map();
for (let [y, b] of this.elementProperties) {
let w = this._$Eu(y, b);
w !== void 0 && this._$Eh.set(w, y);
this._$Eh = new Map();
for (let [e, t] of this.elementProperties) {
let n = this._$Eu(e, t);
n !== void 0 && this._$Eh.set(n, e);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(y) {
let b = [];
if (Array.isArray(y)) {
let w = new Set(y.flat(Infinity).reverse());
for (let y of w) b.unshift(c$2(y));
} else y !== void 0 && b.push(c$2(y));
return b;
static finalizeStyles(e) {
let t = [];
if (Array.isArray(e)) {
let n = new Set(e.flat(Infinity).reverse());
for (let e of n) t.unshift(l(e));
} else e !== void 0 && t.push(l(e));
return t;
}
static _$Eu(y, b) {
let w = b.attribute;
return !1 === w ? void 0 : typeof w == "string" ? w : typeof y == "string" ? y.toLowerCase() : void 0;
static _$Eu(e, t) {
let n = t.attribute;
return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
}

@@ -146,55 +146,55 @@ constructor() {

_$Ev() {
this._$ES = new Promise(((y) => this.enableUpdating = y)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((y) => y(this)));
this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
}
addController(y) {
(this._$EO ??= /* @__PURE__ */ new Set()).add(y), this.renderRoot !== void 0 && this.isConnected && y.hostConnected?.();
addController(e) {
(this._$EO ??= new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
}
removeController(y) {
this._$EO?.delete(y);
removeController(e) {
this._$EO?.delete(e);
}
_$E_() {
let y = /* @__PURE__ */ new Map(), b = this.constructor.elementProperties;
for (let w of b.keys()) this.hasOwnProperty(w) && (y.set(w, this[w]), delete this[w]);
y.size > 0 && (this._$Ep = y);
let e = new Map(), t = this.constructor.elementProperties;
for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
e.size > 0 && (this._$Ep = e);
}
createRenderRoot() {
let y = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return S$1(y, this.constructor.elementStyles), y;
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return c(e, this.constructor.elementStyles), e;
}
connectedCallback() {
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((y) => y.hostConnected?.()));
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
}
enableUpdating(y) {}
enableUpdating(e) {}
disconnectedCallback() {
this._$EO?.forEach(((y) => y.hostDisconnected?.()));
this._$EO?.forEach(((e) => e.hostDisconnected?.()));
}
attributeChangedCallback(y, b, w) {
this._$AK(y, w);
attributeChangedCallback(e, t, n) {
this._$AK(e, n);
}
_$ET(y, b) {
let w = this.constructor.elementProperties.get(y), D = this.constructor._$Eu(y, w);
if (D !== void 0 && !0 === w.reflect) {
let O = (w.converter?.toAttribute === void 0 ? u$1 : w.converter).toAttribute(b, w.type);
this._$Em = y, O == null ? this.removeAttribute(D) : this.setAttribute(D, O), this._$Em = null;
_$ET(e, t) {
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
if (r !== void 0 && !0 === n.reflect) {
let i = (n.converter?.toAttribute === void 0 ? h : n.converter).toAttribute(t, n.type);
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
}
}
_$AK(y, b) {
let w = this.constructor, D = w._$Eh.get(y);
if (D !== void 0 && this._$Em !== D) {
let y = w.getPropertyOptions(D), O = typeof y.converter == "function" ? { fromAttribute: y.converter } : y.converter?.fromAttribute === void 0 ? u$1 : y.converter;
this._$Em = D;
let F = O.fromAttribute(b, y.type);
this[D] = F ?? this._$Ej?.get(D) ?? F, this._$Em = null;
_$AK(e, t) {
let n = this.constructor, r = n._$Eh.get(e);
if (r !== void 0 && this._$Em !== r) {
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
this._$Em = r;
let a = i.fromAttribute(t, e.type);
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
}
}
requestUpdate(y, b, w) {
if (y !== void 0) {
let D = this.constructor, O = this[y];
if (w ??= D.getPropertyOptions(y), !((w.hasChanged ?? f$1)(O, b) || w.useDefault && w.reflect && O === this._$Ej?.get(y) && !this.hasAttribute(D._$Eu(y, w)))) return;
this.C(y, b, w);
requestUpdate(e, t, n) {
if (e !== void 0) {
let r = this.constructor, i = this[e];
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
this.C(e, t, n);
}
!1 === this.isUpdatePending && (this._$ES = this._$EP());
}
C(y, b, { useDefault: w, reflect: D, wrapped: O }, F) {
w && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(y) && (this._$Ej.set(y, F ?? b ?? this[y]), !0 !== O || F !== void 0) || (this._$AL.has(y) || (this.hasUpdated || w || (b = void 0), this._$AL.set(y, b)), !0 === D && this._$Em !== y && (this._$Eq ??= /* @__PURE__ */ new Set()).add(y));
C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
n && !(this._$Ej ??= new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), !0 !== i || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), !0 === r && this._$Em !== e && (this._$Eq ??= new Set()).add(e));
}

@@ -205,7 +205,7 @@ async _$EP() {

await this._$ES;
} catch (y) {
Promise.reject(y);
} catch (e) {
Promise.reject(e);
}
let y = this.scheduleUpdate();
return y != null && await y, !this.isUpdatePending;
let e = this.scheduleUpdate();
return e != null && await e, !this.isUpdatePending;
}

@@ -219,25 +219,25 @@ scheduleUpdate() {

if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
for (let [y, b] of this._$Ep) this[y] = b;
for (let [e, t] of this._$Ep) this[e] = t;
this._$Ep = void 0;
}
let y = this.constructor.elementProperties;
if (y.size > 0) for (let [b, w] of y) {
let { wrapped: y } = w, D = this[b];
!0 !== y || this._$AL.has(b) || D === void 0 || this.C(b, void 0, w, D);
let e = this.constructor.elementProperties;
if (e.size > 0) for (let [t, n] of e) {
let { wrapped: e } = n, r = this[t];
!0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
}
}
let y = !1, b = this._$AL;
let e = !1, t = this._$AL;
try {
y = this.shouldUpdate(b), y ? (this.willUpdate(b), this._$EO?.forEach(((y) => y.hostUpdate?.())), this.update(b)) : this._$EM();
} catch (b) {
throw y = !1, this._$EM(), b;
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
} catch (t) {
throw e = !1, this._$EM(), t;
}
y && this._$AE(b);
e && this._$AE(t);
}
willUpdate(y) {}
_$AE(y) {
this._$EO?.forEach(((y) => y.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(y)), this.updated(y);
willUpdate(e) {}
_$AE(e) {
this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
}
_$EM() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
this._$AL = new Map(), this.isUpdatePending = !1;
}

@@ -250,97 +250,92 @@ get updateComplete() {

}
shouldUpdate(y) {
shouldUpdate(e) {
return !0;
}
update(y) {
this._$Eq &&= this._$Eq.forEach(((y) => this._$ET(y, this[y]))), this._$EM();
update(e) {
this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
}
updated(y) {}
firstUpdated(y) {}
updated(e) {}
firstUpdated(e) {}
};
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ??= []).push("2.1.1");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var t$1 = globalThis, i$2 = t$1.trustedTypes, s$1 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (y) => y }) : void 0, e$2 = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$3 = "?" + h, n$2 = `<${o$3}>`, r$2 = document, l = () => r$2.createComment(""), c = (y) => y === null || typeof y != "object" && typeof y != "function", a = Array.isArray, u = (y) => a(y) || typeof y?.[Symbol.iterator] == "function", d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, x = ((y) => (b, ...w) => ({
_$litType$: y,
strings: b,
values: w
}))(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r$2.createTreeWalker(r$2, 129);
function P(y, b) {
if (!a(y) || !y.hasOwnProperty("raw")) throw Error("invalid template strings array");
return s$1 === void 0 ? b : s$1.createHTML(b);
v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[m("elementProperties")] = new Map(), v[m("finalized")] = new Map(), ae?.({ ReactiveElement: v }), (f.reactiveElementVersions ??= []).push("2.1.1");
var y = globalThis, b = y.trustedTypes, x = b ? b.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, oe = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, C = "?" + S, se = `<${C}>`, w = document, T = () => w.createComment(""), E = (e) => e === null || typeof e != "object" && typeof e != "function", D = Array.isArray, ce = (e) => D(e) || typeof e?.[Symbol.iterator] == "function", O = "[ \n\f\r]", k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, A = /-->/g, j = />/g, M = RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), le = /'/g, ue = /"/g, N = /^(?:script|style|textarea|title)$/i, P = ((e) => (t, ...n) => ({
_$litType$: e,
strings: t,
values: n
}))(1), F = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), L = new WeakMap(), R = w.createTreeWalker(w, 129);
function z(e, t) {
if (!D(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
return x === void 0 ? t : x.createHTML(t);
}
var V = (y, b) => {
let w = y.length - 1, D = [], O, F = b === 2 ? "<svg>" : b === 3 ? "<math>" : "", U = f;
for (let b = 0; b < w; b++) {
let w = y[b], W, G, K = -1, q = 0;
for (; q < w.length && (U.lastIndex = q, G = U.exec(w), G !== null);) q = U.lastIndex, U === f ? G[1] === "!--" ? U = v : G[1] === void 0 ? G[2] === void 0 ? G[3] !== void 0 && (U = m) : ($.test(G[2]) && (O = RegExp("</" + G[2], "g")), U = m) : U = _ : U === m ? G[0] === ">" ? (U = O ?? f, K = -1) : G[1] === void 0 ? K = -2 : (K = U.lastIndex - G[2].length, W = G[1], U = G[3] === void 0 ? m : G[3] === "\"" ? g : p) : U === g || U === p ? U = m : U === v || U === _ ? U = f : (U = m, O = void 0);
let J = U === m && y[b + 1].startsWith("/>") ? " " : "";
F += U === f ? w + n$2 : K >= 0 ? (D.push(W), w.slice(0, K) + e$2 + w.slice(K) + h + J) : w + h + (K === -2 ? b : J);
var de = (e, t) => {
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = k;
for (let t = 0; t < n; t++) {
let n = e[t], s, c, l = -1, u = 0;
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === k ? c[1] === "!--" ? o = A : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = M) : (N.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = M) : o = j : o === M ? c[0] === ">" ? (o = i ?? k, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? M : c[3] === "\"" ? ue : le) : o === ue || o === le ? o = M : o === A || o === j ? o = k : (o = M, i = void 0);
let d = o === M && e[t + 1].startsWith("/>") ? " " : "";
a += o === k ? n + se : l >= 0 ? (r.push(s), n.slice(0, l) + oe + n.slice(l) + S + d) : n + S + (l === -2 ? t : d);
}
return [P(y, F + (y[w] || "<?>") + (b === 2 ? "</svg>" : b === 3 ? "</math>" : "")), D];
}, N = class y {
constructor({ strings: b, _$litType$: w }, D) {
let O;
return [z(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
}, B = class e {
constructor({ strings: t, _$litType$: n }, r) {
let i;
this.parts = [];
let F = 0, U = 0, W = b.length - 1, G = this.parts, [K, q] = V(b, w);
if (this.el = y.createElement(K, D), C.currentNode = this.el.content, w === 2 || w === 3) {
let y = this.el.content.firstChild;
y.replaceWith(...y.childNodes);
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = de(t, n);
if (this.el = e.createElement(l, r), R.currentNode = this.el.content, n === 2 || n === 3) {
let e = this.el.content.firstChild;
e.replaceWith(...e.childNodes);
}
for (; (O = C.nextNode()) !== null && G.length < W;) {
if (O.nodeType === 1) {
if (O.hasAttributes()) for (let y of O.getAttributeNames()) if (y.endsWith(e$2)) {
let b = q[U++], w = O.getAttribute(y).split(h), D = /([.?@])?(.*)/.exec(b);
G.push({
for (; (i = R.nextNode()) !== null && c.length < s;) {
if (i.nodeType === 1) {
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(oe)) {
let t = u[o++], n = i.getAttribute(e).split(S), r = /([.?@])?(.*)/.exec(t);
c.push({
type: 1,
index: F,
name: D[2],
strings: w,
ctor: D[1] === "." ? H : D[1] === "?" ? I : D[1] === "@" ? L : k
}), O.removeAttribute(y);
} else y.startsWith(h) && (G.push({
index: a,
name: r[2],
strings: n,
ctor: r[1] === "." ? pe : r[1] === "?" ? me : r[1] === "@" ? he : U
}), i.removeAttribute(e);
} else e.startsWith(S) && (c.push({
type: 6,
index: F
}), O.removeAttribute(y));
if ($.test(O.tagName)) {
let y = O.textContent.split(h), b = y.length - 1;
if (b > 0) {
O.textContent = i$2 ? i$2.emptyScript : "";
for (let w = 0; w < b; w++) O.append(y[w], l()), C.nextNode(), G.push({
index: a
}), i.removeAttribute(e));
if (N.test(i.tagName)) {
let e = i.textContent.split(S), t = e.length - 1;
if (t > 0) {
i.textContent = b ? b.emptyScript : "";
for (let n = 0; n < t; n++) i.append(e[n], T()), R.nextNode(), c.push({
type: 2,
index: ++F
index: ++a
});
O.append(y[b], l());
i.append(e[t], T());
}
}
} else if (O.nodeType === 8) if (O.data === o$3) G.push({
} else if (i.nodeType === 8) if (i.data === C) c.push({
type: 2,
index: F
index: a
});
else {
let y = -1;
for (; (y = O.data.indexOf(h, y + 1)) !== -1;) G.push({
let e = -1;
for (; (e = i.data.indexOf(S, e + 1)) !== -1;) c.push({
type: 7,
index: F
}), y += h.length - 1;
index: a
}), e += S.length - 1;
}
F++;
a++;
}
}
static createElement(y, b) {
let w = r$2.createElement("template");
return w.innerHTML = y, w;
static createElement(e, t) {
let n = w.createElement("template");
return n.innerHTML = e, n;
}
};
function S(y, b, w = y, D) {
if (b === T) return b;
let O = D === void 0 ? w._$Cl : w._$Co?.[D], F = c(b) ? void 0 : b._$litDirective$;
return O?.constructor !== F && (O?._$AO?.(!1), F === void 0 ? O = void 0 : (O = new F(y), O._$AT(y, w, D)), D === void 0 ? w._$Cl = O : (w._$Co ??= [])[D] = O), O !== void 0 && (b = S(y, O._$AS(y, b.values), O, D)), b;
function V(e, t, n = e, r) {
if (t === F) return t;
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = E(t) ? void 0 : t._$litDirective$;
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = V(e, i._$AS(e, t.values), i, r)), t;
}
var M = class {
constructor(y, b) {
this._$AV = [], this._$AN = void 0, this._$AD = y, this._$AM = b;
var fe = class {
constructor(e, t) {
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
}

@@ -353,29 +348,29 @@ get parentNode() {

}
u(y) {
let { el: { content: b }, parts: w } = this._$AD, D = (y?.creationScope ?? r$2).importNode(b, !0);
C.currentNode = D;
let O = C.nextNode(), F = 0, U = 0, W = w[0];
for (; W !== void 0;) {
if (F === W.index) {
let b;
W.type === 2 ? b = new R(O, O.nextSibling, this, y) : W.type === 1 ? b = new W.ctor(O, W.name, W.strings, this, y) : W.type === 6 && (b = new z(O, this, y)), this._$AV.push(b), W = w[++U];
u(e) {
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? w).importNode(t, !0);
R.currentNode = r;
let i = R.nextNode(), a = 0, o = 0, s = n[0];
for (; s !== void 0;) {
if (a === s.index) {
let t;
s.type === 2 ? t = new H(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ge(i, this, e)), this._$AV.push(t), s = n[++o];
}
F !== W?.index && (O = C.nextNode(), F++);
a !== s?.index && (i = R.nextNode(), a++);
}
return C.currentNode = r$2, D;
return R.currentNode = w, r;
}
p(y) {
let b = 0;
for (let w of this._$AV) w !== void 0 && (w.strings === void 0 ? w._$AI(y[b]) : (w._$AI(y, w, b), b += w.strings.length - 2)), b++;
p(e) {
let t = 0;
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
}
}, R = class y {
}, H = class e {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(y, b, w, D) {
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = y, this._$AB = b, this._$AM = w, this.options = D, this._$Cv = D?.isConnected ?? !0;
constructor(e, t, n, r) {
this.type = 2, this._$AH = I, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
}
get parentNode() {
let y = this._$AA.parentNode, b = this._$AM;
return b !== void 0 && y?.nodeType === 11 && (y = b.parentNode), y;
let e = this._$AA.parentNode, t = this._$AM;
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
}

@@ -388,42 +383,42 @@ get startNode() {

}
_$AI(y, b = this) {
y = S(this, y, b), c(y) ? y === E || y == null || y === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : y !== this._$AH && y !== T && this._(y) : y._$litType$ === void 0 ? y.nodeType === void 0 ? u(y) ? this.k(y) : this._(y) : this.T(y) : this.$(y);
_$AI(e, t = this) {
e = V(this, e, t), E(e) ? e === I || e == null || e === "" ? (this._$AH !== I && this._$AR(), this._$AH = I) : e !== this._$AH && e !== F && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? ce(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
}
O(y) {
return this._$AA.parentNode.insertBefore(y, this._$AB);
O(e) {
return this._$AA.parentNode.insertBefore(e, this._$AB);
}
T(y) {
this._$AH !== y && (this._$AR(), this._$AH = this.O(y));
T(e) {
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
}
_(y) {
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = y : this.T(r$2.createTextNode(y)), this._$AH = y;
_(e) {
this._$AH !== I && E(this._$AH) ? this._$AA.nextSibling.data = e : this.T(w.createTextNode(e)), this._$AH = e;
}
$(y) {
let { values: b, _$litType$: w } = y, D = typeof w == "number" ? this._$AC(y) : (w.el === void 0 && (w.el = N.createElement(P(w.h, w.h[0]), this.options)), w);
if (this._$AH?._$AD === D) this._$AH.p(b);
$(e) {
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = B.createElement(z(n.h, n.h[0]), this.options)), n);
if (this._$AH?._$AD === r) this._$AH.p(t);
else {
let y = new M(D, this), w = y.u(this.options);
y.p(b), this.T(w), this._$AH = y;
let e = new fe(r, this), n = e.u(this.options);
e.p(t), this.T(n), this._$AH = e;
}
}
_$AC(y) {
let b = A.get(y.strings);
return b === void 0 && A.set(y.strings, b = new N(y)), b;
_$AC(e) {
let t = L.get(e.strings);
return t === void 0 && L.set(e.strings, t = new B(e)), t;
}
k(b) {
a(this._$AH) || (this._$AH = [], this._$AR());
let w = this._$AH, D, O = 0;
for (let F of b) O === w.length ? w.push(D = new y(this.O(l()), this.O(l()), this, this.options)) : D = w[O], D._$AI(F), O++;
O < w.length && (this._$AR(D && D._$AB.nextSibling, O), w.length = O);
k(t) {
D(this._$AH) || (this._$AH = [], this._$AR());
let n = this._$AH, r, i = 0;
for (let a of t) i === n.length ? n.push(r = new e(this.O(T()), this.O(T()), this, this.options)) : r = n[i], r._$AI(a), i++;
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
}
_$AR(y = this._$AA.nextSibling, b) {
for (this._$AP?.(!1, !0, b); y !== this._$AB;) {
let b = y.nextSibling;
y.remove(), y = b;
_$AR(e = this._$AA.nextSibling, t) {
for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
let t = e.nextSibling;
e.remove(), e = t;
}
}
setConnected(y) {
this._$AM === void 0 && (this._$Cv = y, this._$AP?.(y));
setConnected(e) {
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
}
}, k = class {
}, U = class {
get tagName() {

@@ -435,46 +430,46 @@ return this.element.tagName;

}
constructor(y, b, w, D, O) {
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = y, this.name = b, this._$AM = D, this.options = O, w.length > 2 || w[0] !== "" || w[1] !== "" ? (this._$AH = Array(w.length - 1).fill(/* @__PURE__ */ new String()), this.strings = w) : this._$AH = E;
constructor(e, t, n, r, i) {
this.type = 1, this._$AH = I, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = I;
}
_$AI(y, b = this, w, D) {
let O = this.strings, F = !1;
if (O === void 0) y = S(this, y, b, 0), F = !c(y) || y !== this._$AH && y !== T, F && (this._$AH = y);
_$AI(e, t = this, n, r) {
let i = this.strings, a = !1;
if (i === void 0) e = V(this, e, t, 0), a = !E(e) || e !== this._$AH && e !== F, a && (this._$AH = e);
else {
let D = y, U, W;
for (y = O[0], U = 0; U < O.length - 1; U++) W = S(this, D[w + U], b, U), W === T && (W = this._$AH[U]), F ||= !c(W) || W !== this._$AH[U], W === E ? y = E : y !== E && (y += (W ?? "") + O[U + 1]), this._$AH[U] = W;
let r = e, o, s;
for (e = i[0], o = 0; o < i.length - 1; o++) s = V(this, r[n + o], t, o), s === F && (s = this._$AH[o]), a ||= !E(s) || s !== this._$AH[o], s === I ? e = I : e !== I && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
}
F && !D && this.j(y);
a && !r && this.j(e);
}
j(y) {
y === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, y ?? "");
j(e) {
e === I ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
}
}, H = class extends k {
}, pe = class extends U {
constructor() {
super(...arguments), this.type = 3;
}
j(y) {
this.element[this.name] = y === E ? void 0 : y;
j(e) {
this.element[this.name] = e === I ? void 0 : e;
}
}, I = class extends k {
}, me = class extends U {
constructor() {
super(...arguments), this.type = 4;
}
j(y) {
this.element.toggleAttribute(this.name, !!y && y !== E);
j(e) {
this.element.toggleAttribute(this.name, !!e && e !== I);
}
}, L = class extends k {
constructor(y, b, w, D, O) {
super(y, b, w, D, O), this.type = 5;
}, he = class extends U {
constructor(e, t, n, r, i) {
super(e, t, n, r, i), this.type = 5;
}
_$AI(y, b = this) {
if ((y = S(this, y, b, 0) ?? E) === T) return;
let w = this._$AH, D = y === E && w !== E || y.capture !== w.capture || y.once !== w.once || y.passive !== w.passive, O = y !== E && (w === E || D);
D && this.element.removeEventListener(this.name, this, w), O && this.element.addEventListener(this.name, this, y), this._$AH = y;
_$AI(e, t = this) {
if ((e = V(this, e, t, 0) ?? I) === F) return;
let n = this._$AH, r = e === I && n !== I || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== I && (n === I || r);
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
}
handleEvent(y) {
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, y) : this._$AH.handleEvent(y);
handleEvent(e) {
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
}
}, z = class {
constructor(y, b, w) {
this.element = y, this.type = 6, this._$AN = void 0, this._$AM = b, this.options = w;
}, ge = class {
constructor(e, t, n) {
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
}

@@ -484,15 +479,15 @@ get _$AU() {

}
_$AI(y) {
S(this, y);
_$AI(e) {
V(this, e);
}
}, j = t$1.litHtmlPolyfillSupport;
j?.(N, R), (t$1.litHtmlVersions ??= []).push("3.3.1");
var B = (y, b, w) => {
let D = w?.renderBefore ?? b, O = D._$litPart$;
if (O === void 0) {
let y = w?.renderBefore ?? null;
D._$litPart$ = O = new R(b.insertBefore(l(), y), y, void 0, w ?? {});
}, _e = y.litHtmlPolyfillSupport;
_e?.(B, H), (y.litHtmlVersions ??= []).push("3.3.1");
var ve = (e, t, n) => {
let r = n?.renderBefore ?? t, i = r._$litPart$;
if (i === void 0) {
let e = n?.renderBefore ?? null;
r._$litPart$ = i = new H(t.insertBefore(T(), e), e, void 0, n ?? {});
}
return O._$AI(y), O;
}, s = globalThis, i$1 = class extends y$1 {
return i._$AI(e), i;
}, W = globalThis, G = class extends v {
constructor() {

@@ -502,8 +497,8 @@ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;

createRenderRoot() {
let y = super.createRenderRoot();
return this.renderOptions.renderBefore ??= y.firstChild, y;
let e = super.createRenderRoot();
return this.renderOptions.renderBefore ??= e.firstChild, e;
}
update(y) {
let b = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(y), this._$Do = B(b, this.renderRoot, this.renderOptions);
update(e) {
let t = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ve(t, this.renderRoot, this.renderOptions);
}

@@ -517,54 +512,46 @@ connectedCallback() {

render() {
return T;
return F;
}
};
i$1._$litElement$ = !0, i$1.finalized = !0, s.litElementHydrateSupport?.({ LitElement: i$1 });
var o$2 = s.litElementPolyfillSupport;
o$2?.({ LitElement: i$1 }), (s.litElementVersions ??= []).push("4.2.1");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/ var o$1 = {
G._$litElement$ = !0, G.finalized = !0, W.litElementHydrateSupport?.({ LitElement: G });
var ye = W.litElementPolyfillSupport;
ye?.({ LitElement: G }), (W.litElementVersions ??= []).push("4.2.1");
var be = {
attribute: !0,
type: String,
converter: u$1,
converter: h,
reflect: !1,
hasChanged: f$1
}, r$1 = (y = o$1, b, w) => {
let { kind: D, metadata: O } = w, F = globalThis.litPropertyMetadata.get(O);
if (F === void 0 && globalThis.litPropertyMetadata.set(O, F = /* @__PURE__ */ new Map()), D === "setter" && ((y = Object.create(y)).wrapped = !0), F.set(w.name, y), D === "accessor") {
let { name: D } = w;
hasChanged: g
}, xe = (e = be, t, n) => {
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
let { name: r } = n;
return {
set(w) {
let O = b.get.call(this);
b.set.call(this, w), this.requestUpdate(D, O, y);
set(n) {
let i = t.get.call(this);
t.set.call(this, n), this.requestUpdate(r, i, e);
},
init(b) {
return b !== void 0 && this.C(D, void 0, y, b), b;
init(t) {
return t !== void 0 && this.C(r, void 0, e, t), t;
}
};
}
if (D === "setter") {
let { name: D } = w;
return function(w) {
let O = this[D];
b.call(this, w), this.requestUpdate(D, O, y);
if (r === "setter") {
let { name: r } = n;
return function(n) {
let i = this[r];
t.call(this, n), this.requestUpdate(r, i, e);
};
}
throw Error("Unsupported decorator location: " + D);
throw Error("Unsupported decorator location: " + r);
};
function n$1(y) {
return (b, w) => typeof w == "object" ? r$1(y, b, w) : ((y, b, w) => {
let D = b.hasOwnProperty(w);
return b.constructor.createProperty(w, y), D ? Object.getOwnPropertyDescriptor(b, w) : void 0;
})(y, b, w);
function K(e) {
return (t, n) => typeof n == "object" ? xe(e, t, n) : ((e, t, n) => {
let r = t.hasOwnProperty(n);
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
})(e, t, n);
}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/ function r(y) {
return n$1({
...y,
function q(e) {
return K({
...e,
state: !0,

@@ -574,8 +561,3 @@ attribute: !1

}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var t = {
var Se = {
ATTRIBUTE: 1,

@@ -587,33 +569,33 @@ CHILD: 2,

ELEMENT: 6
}, e$1 = (y) => (...b) => ({
_$litDirective$: y,
values: b
}), i = class {
constructor(y) {}
}, Ce = (e) => (...t) => ({
_$litDirective$: e,
values: t
}), we = class {
constructor(e) {}
get _$AU() {
return this._$AM._$AU;
}
_$AT(y, b, w) {
this._$Ct = y, this._$AM = b, this._$Ci = w;
_$AT(e, t, n) {
this._$Ct = e, this._$AM = t, this._$Ci = n;
}
_$AS(y, b) {
return this.update(y, b);
_$AS(e, t) {
return this.update(e, t);
}
update(y, b) {
return this.render(...b);
update(e, t) {
return this.render(...t);
}
}, e = class extends i {
constructor(y) {
if (super(y), this.it = E, y.type !== t.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
}, J = class extends we {
constructor(e) {
if (super(e), this.it = I, e.type !== Se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
}
render(y) {
if (y === E || y == null) return this._t = void 0, this.it = y;
if (y === T) return y;
if (typeof y != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
if (y === this.it) return this._t;
this.it = y;
let b = [y];
return b.raw = b, this._t = {
render(e) {
if (e === I || e == null) return this._t = void 0, this.it = e;
if (e === F) return e;
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
if (e === this.it) return this._t;
this.it = e;
let t = [e];
return t.raw = t, this._t = {
_$litType$: this.constructor.resultType,
strings: b,
strings: t,
values: []

@@ -623,37 +605,32 @@ };

};
e.directiveName = "unsafeHTML", e.resultType = 1;
var o = e$1(e);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
function n(y, b, w) {
return y ? b(y) : w?.(y);
J.directiveName = "unsafeHTML", J.resultType = 1;
var Y = Ce(J);
function X(e, t, n) {
return e ? t(e) : n?.(e);
}
var shiki_default = ".shiki{color-scheme:var(--shiki-theme-type,light);padding:.875em;overflow-x:auto}code{z-index:0;width:max-content;min-width:100%;font-size:var(--font-size,.875em);counter-reset:step;counter-increment:step 0;display:block;position:relative}code .line:before{content:counter(step);counter-increment:step;text-align:right;color:#738a9480;width:1rem;margin-right:1.5rem;display:inline-block}code .line:last-child:empty:before{content:none;counter-increment:none}.has-diff .diff,.has-highlighted .highlighted{width:100%;display:inline-block;position:relative}.has-diff .diff.remove:before{content:\"-\"}.has-diff .diff.add:before{content:\"+\"}.has-diff .diff.remove:after{content:\"\";z-index:-1;background:#ef444426;border-left:1px solid #ef4444cc;position:absolute;inset:0 -.875em}.has-diff .diff.add:after{content:\"\";z-index:-1;background:#22c55e26;border-left:1px solid #22c55ecc;position:absolute;inset:0 -.875em}.has-focused .line:not(.focused){opacity:.7;filter:blur(.095rem);transition:filter .35s,opacity .35s}.has-focused:hover .line:not(.focused){opacity:1;filter:blur()}.has-highlighted .highlighted:after{content:\"\";z-index:-1;background:#65758529;border-left:1px solid #22c55ecc;position:absolute;inset:0 -.875em}.has-highlighted .highlighted.error:after{background:#f43f5e29!important}.has-highlighted .highlighted.warning:after{background:#eab30829!important}:host([color-scheme=dark]) .shiki,:host([color-scheme=dark]) .shiki span{color:var(--shiki-dark)!important}:host([color-scheme=dark]) .shiki{background-color:var(--shiki-dark-bg)!important}";
function copyText(y, b) {
if (navigator.clipboard) navigator.clipboard.writeText(y).then(() => {
b();
var Te = ".shiki{color-scheme:var(--shiki-theme-type,light);padding:.875em;overflow-x:auto}code{z-index:0;width:max-content;min-width:100%;font-size:var(--font-size,.875em);counter-reset:step;counter-increment:step 0;display:block;position:relative}code .line:before{content:counter(step);counter-increment:step;text-align:right;color:#738a9480;width:1rem;margin-right:1.5rem;display:inline-block}code .line:last-child:empty:before{content:none;counter-increment:none}.has-diff .diff,.has-highlighted .highlighted{width:100%;display:inline-block;position:relative}.has-diff .diff.remove:before{content:\"-\"}.has-diff .diff.add:before{content:\"+\"}.has-diff .diff.remove:after{content:\"\";z-index:-1;background:#ef444426;border-left:1px solid #ef4444cc;position:absolute;inset:0 -.875em}.has-diff .diff.add:after{content:\"\";z-index:-1;background:#22c55e26;border-left:1px solid #22c55ecc;position:absolute;inset:0 -.875em}.has-focused .line:not(.focused){opacity:.7;filter:blur(.095rem);transition:filter .35s,opacity .35s}.has-focused:hover .line:not(.focused){opacity:1;filter:blur()}.has-highlighted .highlighted:after{content:\"\";z-index:-1;background:#65758529;border-left:1px solid #22c55ecc;position:absolute;inset:0 -.875em}.has-highlighted .highlighted.error:after{background:#f43f5e29!important;border-left:1px solid #f43f5ecc!important}.has-highlighted .highlighted.warning:after{background:#eab30829!important;border-left:1px solid #eab308cc!important}.has-highlighted .highlighted.info:after{background:#65758529!important;border-left:1px solid #657585cc!important}:host([color-scheme=dark]) .shiki,:host([color-scheme=dark]) .shiki span{color:var(--shiki-dark)!important}:host([color-scheme=dark]) .shiki{background-color:var(--shiki-dark-bg)!important}";
function Ee(e, t) {
if (navigator.clipboard) navigator.clipboard.writeText(e).then(() => {
t();
});
else {
let w = document.createElement("textarea");
w.value = y, w.style.position = "fixed", w.style.opacity = "0", document.body.appendChild(w), w.focus(), w.select();
let n = document.createElement("textarea");
n.value = e, n.style.position = "fixed", n.style.opacity = "0", document.body.appendChild(n), n.focus(), n.select();
try {
document.execCommand("copy") && b();
} catch (y) {
console.error("Fallback: Oops, unable to copy", y);
document.execCommand("copy") && t();
} catch (e) {
console.error("Fallback: Oops, unable to copy", e);
}
document.body.removeChild(w);
document.body.removeChild(n);
}
}
function __decorate(y, b, w, D) {
var O = arguments.length, F = O < 3 ? b : D === null ? D = Object.getOwnPropertyDescriptor(b, w) : D, U;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") F = Reflect.decorate(y, b, w, D);
else for (var W = y.length - 1; W >= 0; W--) (U = y[W]) && (F = (O < 3 ? U(F) : O > 3 ? U(b, w, F) : U(b, w)) || F);
return O > 3 && F && Object.defineProperty(b, w, F), F;
function Z(e, t, n, r) {
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
return i > 3 && a && Object.defineProperty(t, n, a), a;
}
var ShikiCodeBaseVariant = class extends i$1 {
constructor(...y) {
super(...y), this.options = {
var Q = class extends G {
constructor(...e) {
super(...e), this.options = {
html: "",

@@ -666,8 +643,8 @@ languageName: "Unknown",

}
updated(y) {
y.has("options") && (this.setAttribute("color-scheme", this.options.colorScheme), this.style.setProperty("--shiki-theme-type", this.options.theme?.type || "light"), this.style.setProperty("--font-size", this.options.fontSize || "0.875em"));
updated(e) {
e.has("options") && (this.setAttribute("color-scheme", this.options.colorScheme), this.style.setProperty("--shiki-theme-type", this.options.theme?.type || "light"), this.style.setProperty("--font-size", this.options.fontSize || "0.875em"));
}
handleCopyCode() {
let y = this.shadowRoot?.querySelector("pre");
copyText(y?.innerText || y?.textContent || "", () => {
let e = this.shadowRoot?.querySelector("pre");
Ee(e?.innerText || e?.textContent || "", () => {
this.copied = !0, setTimeout(() => {

@@ -679,8 +656,8 @@ this.copied = !1;

};
__decorate([n$1({ type: Object })], ShikiCodeBaseVariant.prototype, "options", void 0), __decorate([r()], ShikiCodeBaseVariant.prototype, "copied", void 0);
var ShikiCodeSimpleVariant = class extends ShikiCodeBaseVariant {
Z([K({ type: Object })], Q.prototype, "options", void 0), Z([q()], Q.prototype, "copied", void 0);
var De = class extends Q {
render() {
return x`
return P`
<div class="shadow rounded-lg relative group">
${o(this.options.html)}
${Y(this.options.html)}
<div

@@ -698,3 +675,3 @@ class="absolute select-none top-1 text-xs right-2 group-hover:opacity-0 transition-opacity"

>
${n(this.copied, () => x`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`, () => x`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)}
${X(this.copied, () => P`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`, () => P`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)}
</button>

@@ -706,5 +683,5 @@ </div>

this.styles = [
r$4(tailwind_default),
r$4(shiki_default),
i$4`
o(e),
o(Te),
s`
.shiki {

@@ -744,9 +721,9 @@ border-radius: inherit;

};
customElements.get("shiki-code-simple-variant") || customElements.define("shiki-code-simple-variant", ShikiCodeSimpleVariant);
var ShikiCodeMacVariant = class extends ShikiCodeBaseVariant {
constructor(...y) {
super(...y), this.fold = !1;
customElements.get("shiki-code-simple-variant") || customElements.define("shiki-code-simple-variant", De);
var Oe = class extends Q {
constructor(...e) {
super(...e), this.fold = !1;
}
render() {
return x`
return P`
<div class="shadow rounded-lg overflow-hidden relative group">

@@ -773,6 +750,6 @@ <header

>
${n(this.fold, () => x`<i
${X(this.fold, () => P`<i
class="i-mingcute-left-line block"
style="color: ${this.options.theme?.fg}"
></i>`, () => x`<i
></i>`, () => P`<i
class="i-mingcute-down-line block"

@@ -783,7 +760,7 @@ style="color: ${this.options.theme?.fg}"

<button class="select-none" tabindex="-1" @click=${this.handleCopyCode}>
${n(this.copied, () => x`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`, () => x`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)}
${X(this.copied, () => P`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`, () => P`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)}
</button>
</div>
</header>
${n(this.fold, () => x``, () => x`${o(this.options.html)}`)}
${X(this.fold, () => P``, () => P`${Y(this.options.html)}`)}
</div>

@@ -794,5 +771,5 @@ `;

this.styles = [
r$4(tailwind_default),
r$4(shiki_default),
i$4`
o(e),
o(Te),
s`
/* layer: preflights */

@@ -831,6 +808,6 @@ *,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}

};
__decorate([r()], ShikiCodeMacVariant.prototype, "fold", void 0), customElements.get("shiki-code-mac-variant") || customElements.define("shiki-code-mac-variant", ShikiCodeMacVariant);
var ShikiCode = class extends i$1 {
constructor(...y) {
super(...y), this.lightTheme = "github-light", this.darkTheme = "github-dark", this.variant = "simple", this.fontSize = "0.875em", this.loading = !0, this.html = "", this.languageCode = "", this.languageName = "", this.lightThemeRegistration = null, this.darkThemeRegistration = null, this.code = "", this.copied = !1, this.error = "", this._observer = null, this._media = null, this._colorScheme = "light";
Z([q()], Oe.prototype, "fold", void 0), customElements.get("shiki-code-mac-variant") || customElements.define("shiki-code-mac-variant", Oe);
var $ = class extends G {
constructor(...e) {
super(...e), this.lightTheme = "github-light", this.darkTheme = "github-dark", this.variant = "simple", this.fontSize = "0.875em", this.loading = !0, this.html = "", this.languageCode = "", this.languageName = "", this.lightThemeRegistration = null, this.darkThemeRegistration = null, this.code = "", this.copied = !1, this.error = "", this._observer = null, this._media = null, this._colorScheme = "light";
}

@@ -853,4 +830,4 @@ get _themeRegistration() {

isDarkMode() {
let y = document.documentElement, b = document.body, w = (y, b) => y?.classList.contains(b), D = (y, b, w) => y?.getAttribute(b) === w;
return w(y, "color-scheme-auto") || w(b, "color-scheme-auto") || D(y, "data-color-scheme", "auto") || D(b, "data-color-scheme", "auto") ? this._media?.matches : !!(w(y, "color-scheme-dark") || w(y, "dark") || D(y, "data-color-scheme", "dark") || w(b, "color-scheme-dark") || w(b, "dark") || D(b, "data-color-scheme", "dark"));
let e = document.documentElement, t = document.body, n = (e, t) => e?.classList.contains(t), r = (e, t, n) => e?.getAttribute(t) === n;
return n(e, "color-scheme-auto") || n(t, "color-scheme-auto") || r(e, "data-color-scheme", "auto") || r(t, "data-color-scheme", "auto") ? this._media?.matches : !!(n(e, "color-scheme-dark") || n(e, "dark") || r(e, "data-color-scheme", "dark") || n(t, "color-scheme-dark") || n(t, "dark") || r(t, "data-color-scheme", "dark"));
}

@@ -861,8 +838,8 @@ updateTheme() {

render() {
return x`<slot @slotchange=${this.handleSlotchange}></slot> ${this.renderCodeBlockBody()}`;
return P`<slot @slotchange=${this.handleSlotchange}></slot> ${this.renderCodeBlockBody()}`;
}
renderCodeBlockBody() {
if (this.loading) return x``;
if (this.error) return x`<div class="text-sm text-red-500">错误: ${this.error}</div>`;
let y = {
if (this.loading) return P``;
if (this.error) return P`<div class="text-sm text-red-500">错误: ${this.error}</div>`;
let e = {
html: this.html,

@@ -874,34 +851,34 @@ languageName: this.languageName,

};
if (this.variant === "mac") return x`<shiki-code-mac-variant .options=${y}></shiki-code-mac-variant>`;
if (this.variant === "simple") return x`<shiki-code-simple-variant .options=${y}></shiki-code-simple-variant>`;
if (this.variant === "mac") return P`<shiki-code-mac-variant .options=${e}></shiki-code-mac-variant>`;
if (this.variant === "simple") return P`<shiki-code-simple-variant .options=${e}></shiki-code-simple-variant>`;
}
handleSlotchange(y) {
let b = y.target.assignedElements({ flatten: !0 });
if (!b.length) return;
let w = b[0];
if (w.tagName === "PRE") {
let y = w.querySelector("code");
y && this.process(y);
handleSlotchange(e) {
let t = e.target.assignedElements({ flatten: !0 });
if (!t.length) return;
let n = t[0];
if (n.tagName === "PRE") {
let e = n.querySelector("code");
e && this.process(e);
}
}
async process(y) {
async process(e) {
try {
this.languageCode = this.extractLanguageCode(y.classList) || "plaintext", this.languageCode === "auto" && (this.languageCode = "plaintext"), this.languageCode === "text" && (this.languageCode = "plaintext"), this.code = y.textContent || "", this.html = await this.renderCodeAsHtml(this.code || "", this.languageCode);
let { getSingletonHighlighter: b } = await import("shiki"), w = await b();
this.languageCode === "plaintext" ? this.languageName = "plaintext" : this.languageName = w.getLanguage(this.languageCode).name, this.lightThemeRegistration = w.getTheme(this.lightTheme), this.darkThemeRegistration = w.getTheme(this.darkTheme || this.lightTheme);
} catch (y) {
y instanceof Error && (this.error = y.message);
this.languageCode = this.extractLanguageCode(e.classList) || "plaintext", this.languageCode === "auto" && (this.languageCode = "plaintext"), this.languageCode === "text" && (this.languageCode = "plaintext"), this.code = e.textContent || "", this.html = await this.renderCodeAsHtml(this.code || "", this.languageCode);
let { getSingletonHighlighter: t } = await import("shiki"), n = await t();
this.languageCode === "plaintext" ? this.languageName = "plaintext" : this.languageName = n.getLanguage(this.languageCode).name, this.lightThemeRegistration = n.getTheme(this.lightTheme), this.darkThemeRegistration = n.getTheme(this.darkTheme || this.lightTheme);
} catch (e) {
e instanceof Error && (this.error = e.message);
} finally {
this.shadowRoot?.querySelector("slot")?.assignedElements().forEach((y) => {
y instanceof HTMLElement && y.setAttribute("style", "display: none !important;");
this.shadowRoot?.querySelector("slot")?.assignedElements().forEach((e) => {
e instanceof HTMLElement && e.setAttribute("style", "display: none !important;");
}), this.loading = !1;
}
}
extractLanguageCode(y) {
let b = ["language-", "lang-"];
for (let w = 0; w < y.length; w++) {
let D = y[w];
for (let y = 0; y < b.length; y++) {
let w = b[y];
if (D.startsWith(w)) return D.substring(w.length).toLowerCase();
extractLanguageCode(e) {
let t = ["language-", "lang-"];
for (let n = 0; n < e.length; n++) {
let r = e[n];
for (let e = 0; e < t.length; e++) {
let n = t[e];
if (r.startsWith(n)) return r.substring(n.length).toLowerCase();
}

@@ -911,6 +888,6 @@ }

}
async renderCodeAsHtml(y, b) {
let { codeToHtml: w } = await import("shiki"), { transformerNotationDiff: D, transformerNotationHighlight: O, transformerNotationFocus: F, transformerNotationErrorLevel: U } = await import("@shikijs/transformers");
return await w(y, {
lang: b,
async renderCodeAsHtml(e, t) {
let { codeToHtml: n } = await import("shiki"), { transformerNotationDiff: r, transformerNotationHighlight: i, transformerNotationFocus: a, transformerNotationErrorLevel: o } = await import("@shikijs/transformers");
return await n(e, {
lang: t,
themes: {

@@ -921,6 +898,6 @@ light: this.lightTheme,

transformers: [
D(),
O(),
F(),
U()
r(),
i(),
a(),
o()
]

@@ -930,3 +907,3 @@ });

static {
this.styles = [r$4(tailwind_default), i$4`
this.styles = [o(e), s`
:host {

@@ -949,12 +926,12 @@ display: block;

};
__decorate([n$1({
Z([K({
type: String,
attribute: "light-theme"
})], ShikiCode.prototype, "lightTheme", void 0), __decorate([n$1({
})], $.prototype, "lightTheme", void 0), Z([K({
type: String,
attribute: "dark-theme"
})], ShikiCode.prototype, "darkTheme", void 0), __decorate([n$1({ type: String })], ShikiCode.prototype, "variant", void 0), __decorate([n$1({
})], $.prototype, "darkTheme", void 0), Z([K({ type: String })], $.prototype, "variant", void 0), Z([K({
type: String,
attribute: "font-size"
})], ShikiCode.prototype, "fontSize", void 0), __decorate([r()], ShikiCode.prototype, "loading", void 0), __decorate([r()], ShikiCode.prototype, "html", void 0), __decorate([r()], ShikiCode.prototype, "languageCode", void 0), __decorate([r()], ShikiCode.prototype, "languageName", void 0), __decorate([r()], ShikiCode.prototype, "lightThemeRegistration", void 0), __decorate([r()], ShikiCode.prototype, "darkThemeRegistration", void 0), __decorate([r()], ShikiCode.prototype, "code", void 0), __decorate([r()], ShikiCode.prototype, "copied", void 0), __decorate([r()], ShikiCode.prototype, "error", void 0), __decorate([r()], ShikiCode.prototype, "_colorScheme", void 0), customElements.get("shiki-code") || customElements.define("shiki-code", ShikiCode);
export { ShikiCode };
})], $.prototype, "fontSize", void 0), Z([q()], $.prototype, "loading", void 0), Z([q()], $.prototype, "html", void 0), Z([q()], $.prototype, "languageCode", void 0), Z([q()], $.prototype, "languageName", void 0), Z([q()], $.prototype, "lightThemeRegistration", void 0), Z([q()], $.prototype, "darkThemeRegistration", void 0), Z([q()], $.prototype, "code", void 0), Z([q()], $.prototype, "copied", void 0), Z([q()], $.prototype, "error", void 0), Z([q()], $.prototype, "_colorScheme", void 0), customElements.get("shiki-code") || customElements.define("shiki-code", $);
export { $ as ShikiCode };
{
"name": "@halo-dev/shiki-code-element",
"version": "1.2.0",
"version": "1.3.0",
"repository": {

@@ -27,10 +27,10 @@ "type": "git",

"devDependencies": {
"@iconify/json": "^2.2.421",
"@unocss/reset": "^66.5.11",
"unocss": "^66.5.11",
"@iconify/json": "^2.2.443",
"@unocss/reset": "^66.6.2",
"unocss": "^66.6.2",
"vite-plugin-dts": "^4.5.4"
},
"peerDependencies": {
"@shikijs/transformers": "^3",
"shiki": "^3"
"@shikijs/transformers": "^3 || ^4",
"shiki": "^3 || ^4"
},

@@ -37,0 +37,0 @@ "scripts": {