@divkitframework/divkit
Version:
DivKit for the web
1,960 lines • 776 kB
JavaScript
var th = Object.defineProperty;
var rh = (e, r, t) => r in e ? th(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
var gr = (e, r, t) => rh(e, typeof r != "symbol" ? r + "" : r, t);
/*!
DivKit v32.61.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/
function P() {
}
const Ws = (e) => e;
function Li(e, r) {
for (const t in r) e[t] = r[t];
return (
/** @type {T & S} */
e
);
}
function Wf(e) {
return e();
}
function ya() {
return /* @__PURE__ */ Object.create(null);
}
function on(e) {
e.forEach(Wf);
}
function Jr(e) {
return typeof e == "function";
}
function nh(e, r) {
return e != e ? r == r : e !== r || e && typeof e == "object" || typeof e == "function";
}
let xo;
function vi(e, r) {
return e === r ? !0 : (xo || (xo = document.createElement("a")), xo.href = r, e === xo.href);
}
function Ur(e, r) {
return e != e ? r == r : e !== r;
}
function ih(e) {
return Object.keys(e).length === 0;
}
function G(e, ...r) {
if (e == null) {
for (const n of r)
n(void 0);
return P;
}
const t = e.subscribe(...r);
return t.unsubscribe ? () => t.unsubscribe() : t;
}
function bl(e) {
let r;
return G(e, (t) => r = t)(), r;
}
function Cn(e, r, t) {
e.$$.on_destroy.push(G(r, t));
}
function Us(e, r, t, n) {
if (e) {
const i = Uf(e, r, t, n);
return e[0](i);
}
}
function Uf(e, r, t, n) {
return e[1] && n ? Li(t.ctx.slice(), e[1](n(r))) : t.ctx;
}
function Gs(e, r, t, n) {
if (e[2] && n) {
const i = e[2](n(t));
if (r.dirty === void 0)
return i;
if (typeof i == "object") {
const o = [], s = Math.max(r.dirty.length, i.length);
for (let a = 0; a < s; a += 1)
o[a] = r.dirty[a] | i[a];
return o;
}
return r.dirty | i;
}
return r.dirty;
}
function Ys(e, r, t, n, i, o) {
if (i) {
const s = Uf(r, t, n, o);
e.p(s, i);
}
}
function qs(e) {
if (e.ctx.length > 32) {
const r = [], t = e.ctx.length / 32;
for (let n = 0; n < t; n++)
r[n] = -1;
return r;
}
return -1;
}
function il(e, r, t) {
return e.set(t), r;
}
function Ks(e) {
return e && Jr(e.destroy) ? e.destroy : P;
}
function va(e) {
const r = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
return r ? [parseFloat(r[1]), r[2] || "px"] : [
/** @type {number} */
e,
"px"
];
}
const Gf = typeof window < "u";
let Yl = Gf ? () => window.performance.now() : () => Date.now(), ql = Gf ? (e) => requestAnimationFrame(e) : P;
const wo = /* @__PURE__ */ new Set();
function Yf(e) {
wo.forEach((r) => {
r.c(e) || (wo.delete(r), r.f());
}), wo.size !== 0 && ql(Yf);
}
function Kl(e) {
let r;
return wo.size === 0 && ql(Yf), {
promise: new Promise((t) => {
wo.add(r = { c: e, f: t });
}),
abort() {
wo.delete(r);
}
};
}
const Ti = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
// @ts-ignore Node typings have this
global
);
let Js = !1;
function oh() {
Js = !0;
}
function sh() {
Js = !1;
}
function lh(e, r, t, n) {
for (; e < r; ) {
const i = e + (r - e >> 1);
t(i) <= n ? e = i + 1 : r = i;
}
return e;
}
function ah(e) {
if (e.hydrate_init) return;
e.hydrate_init = !0;
let r = (
/** @type {ArrayLike<NodeEx2>} */
e.childNodes
);
if (e.nodeName === "HEAD") {
const l = [];
for (let u = 0; u < r.length; u++) {
const c = r[u];
c.claim_order !== void 0 && l.push(c);
}
r = l;
}
const t = new Int32Array(r.length + 1), n = new Int32Array(r.length);
t[0] = -1;
let i = 0;
for (let l = 0; l < r.length; l++) {
const u = r[l].claim_order, c = (i > 0 && r[t[i]].claim_order <= u ? i + 1 : lh(1, i, (_) => r[t[_]].claim_order, u)) - 1;
n[l] = t[c] + 1;
const d = c + 1;
t[d] = l, i = Math.max(d, i);
}
const o = [], s = [];
let a = r.length - 1;
for (let l = t[i] + 1; l != 0; l = n[l - 1]) {
for (o.push(r[l - 1]); a >= l; a--)
s.push(r[a]);
a--;
}
for (; a >= 0; a--)
s.push(r[a]);
o.reverse(), s.sort((l, u) => l.claim_order - u.claim_order);
for (let l = 0, u = 0; l < s.length; l++) {
for (; u < o.length && s[l].claim_order >= o[u].claim_order; )
u++;
const c = u < o.length ? o[u] : null;
e.insertBefore(s[l], c);
}
}
function uh(e, r) {
e.appendChild(r);
}
function qf(e) {
if (!e) return document;
const r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
return r && /** @type {ShadowRoot} */
r.host ? (
/** @type {ShadowRoot} */
r
) : e.ownerDocument;
}
function ch(e) {
const r = Ne("style");
return r.textContent = "/* empty */", fh(qf(e), r), r.sheet;
}
function fh(e, r) {
return uh(
/** @type {Document} */
e.head || e,
r
), r.sheet;
}
function zt(e, r) {
if (Js) {
for (ah(e), (e.actual_end_child === void 0 || e.actual_end_child !== null && e.actual_end_child.parentNode !== e) && (e.actual_end_child = e.firstChild); e.actual_end_child !== null && e.actual_end_child.claim_order === void 0; )
e.actual_end_child = e.actual_end_child.nextSibling;
r !== e.actual_end_child ? (r.claim_order !== void 0 || r.parentNode !== e) && e.insertBefore(r, e.actual_end_child) : e.actual_end_child = r.nextSibling;
} else (r.parentNode !== e || r.nextSibling !== null) && e.appendChild(r);
}
function dh(e, r, t) {
e.insertBefore(r, t || null);
}
function ee(e, r, t) {
Js && !t ? zt(e, r) : (r.parentNode !== e || r.nextSibling != t) && e.insertBefore(r, t || null);
}
function E(e) {
e.parentNode && e.parentNode.removeChild(e);
}
function In(e, r) {
for (let t = 0; t < e.length; t += 1)
e[t] && e[t].d(r);
}
function Ne(e) {
return document.createElement(e);
}
function An(e) {
return document.createElementNS("http://www.w3.org/2000/svg", e);
}
function si(e) {
return document.createTextNode(e);
}
function Cr() {
return si(" ");
}
function tt() {
return si("");
}
function Le(e, r, t, n) {
return e.addEventListener(r, t, n), () => e.removeEventListener(r, t, n);
}
function y(e, r, t) {
t == null ? e.removeAttribute(r) : e.getAttribute(r) !== t && e.setAttribute(r, t);
}
const hh = ["width", "height"];
function wi(e, r) {
const t = Object.getOwnPropertyDescriptors(e.__proto__);
for (const n in r)
r[n] == null ? e.removeAttribute(n) : n === "style" ? e.style.cssText = r[n] : n === "__value" ? e.value = e[n] = r[n] : t[n] && t[n].set && hh.indexOf(n) === -1 ? e[n] = r[n] : y(e, n, r[n]);
}
function _h(e, r) {
Object.keys(r).forEach((t) => {
gh(e, t, r[t]);
});
}
function gh(e, r, t) {
const n = r.toLowerCase();
n in e ? e[n] = typeof e[n] == "boolean" && t === "" ? !0 : t : r in e ? e[r] = typeof e[r] == "boolean" && t === "" ? !0 : t : y(e, r, t);
}
function wa(e) {
return /-/.test(e) ? _h : wi;
}
function Ve(e) {
return Array.from(e.childNodes);
}
function Kf(e) {
e.claim_info === void 0 && (e.claim_info = { last_index: 0, total_claimed: 0 });
}
function Jf(e, r, t, n, i = !1) {
Kf(e);
const o = (() => {
for (let s = e.claim_info.last_index; s < e.length; s++) {
const a = e[s];
if (r(a)) {
const l = t(a);
return l === void 0 ? e.splice(s, 1) : e[s] = l, i || (e.claim_info.last_index = s), a;
}
}
for (let s = e.claim_info.last_index - 1; s >= 0; s--) {
const a = e[s];
if (r(a)) {
const l = t(a);
return l === void 0 ? e.splice(s, 1) : e[s] = l, i ? l === void 0 && e.claim_info.last_index-- : e.claim_info.last_index = s, a;
}
}
return n();
})();
return o.claim_order = e.claim_info.total_claimed, e.claim_info.total_claimed += 1, o;
}
function Xf(e, r, t, n) {
return Jf(
e,
/** @returns {node is Element | SVGElement} */
(i) => i.nodeName === r,
/** @param {Element} node */
(i) => {
const o = [];
for (let s = 0; s < i.attributes.length; s++) {
const a = i.attributes[s];
t[a.name] || o.push(a.name);
}
o.forEach((s) => i.removeAttribute(s));
},
() => n(r)
);
}
function Re(e, r, t) {
return Xf(e, r, t, Ne);
}
function Fn(e, r, t) {
return Xf(e, r, t, An);
}
function ki(e, r) {
return Jf(
e,
/** @returns {node is Text} */
(t) => t.nodeType === 3,
/** @param {Text} node */
(t) => {
const n = "" + r;
if (t.data.startsWith(n)) {
if (t.data.length !== n.length)
return t.splitText(n.length);
} else
t.data = n;
},
() => si(r),
!0
// Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements
);
}
function jr(e) {
return ki(e, " ");
}
function ka(e, r, t) {
for (let n = t; n < e.length; n += 1) {
const i = e[n];
if (i.nodeType === 8 && i.textContent.trim() === r)
return n;
}
return -1;
}
function Jl(e, r) {
const t = ka(e, "HTML_TAG_START", 0), n = ka(e, "HTML_TAG_END", t + 1);
if (t === -1 || n === -1)
return new ko(r);
Kf(e);
const i = e.splice(t, n - t + 1);
E(i[0]), E(i[i.length - 1]);
const o = i.slice(1, i.length - 1);
if (o.length === 0)
return new ko(r);
for (const s of o)
s.claim_order = e.claim_info.total_claimed, e.claim_info.total_claimed += 1;
return new ko(r, o);
}
function Ri(e, r) {
r = "" + r, e.data !== r && (e.data = /** @type {string} */
r);
}
function Ea(e, r) {
e.value = r == null ? "" : r;
}
function K(e, r, t, n) {
t == null ? e.style.removeProperty(r) : e.style.setProperty(r, t, "");
}
function Aa(e, r, t) {
for (let n = 0; n < e.options.length; n += 1) {
const i = e.options[n];
if (i.__value === r) {
i.selected = !0;
return;
}
}
(!t || r !== void 0) && (e.selectedIndex = -1);
}
function ph(e) {
const r = e.querySelector(":checked");
return r && r.__value;
}
function Zf(e, r, { bubbles: t = !1, cancelable: n = !1 } = {}) {
return new CustomEvent(e, { detail: r, bubbles: t, cancelable: n });
}
class mh {
constructor(r = !1) {
/**
* @private
* @default false
*/
gr(this, "is_svg", !1);
/** parent for creating node */
gr(this, "e");
/** html tag nodes */
gr(this, "n");
/** target */
gr(this, "t");
/** anchor */
gr(this, "a");
this.is_svg = r, this.e = this.n = null;
}
/**
* @param {string} html
* @returns {void}
*/
c(r) {
this.h(r);
}
/**
* @param {string} html
* @param {HTMLElement | SVGElement} target
* @param {HTMLElement | SVGElement} anchor
* @returns {void}
*/
m(r, t, n = null) {
this.e || (this.is_svg ? this.e = An(
/** @type {keyof SVGElementTagNameMap} */
t.nodeName
) : this.e = Ne(
/** @type {keyof HTMLElementTagNameMap} */
t.nodeType === 11 ? "TEMPLATE" : t.nodeName
), this.t = t.tagName !== "TEMPLATE" ? t : (
/** @type {HTMLTemplateElement} */
t.content
), this.c(r)), this.i(n);
}
/**
* @param {string} html
* @returns {void}
*/
h(r) {
this.e.innerHTML = r, this.n = Array.from(
this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
);
}
/**
* @returns {void} */
i(r) {
for (let t = 0; t < this.n.length; t += 1)
dh(this.t, this.n[t], r);
}
/**
* @param {string} html
* @returns {void}
*/
p(r) {
this.d(), this.h(r), this.i(this.a);
}
/**
* @returns {void} */
d() {
this.n.forEach(E);
}
}
class ko extends mh {
constructor(t = !1, n) {
super(t);
/** @type {Element[]} hydration claimed nodes */
gr(this, "l");
this.e = this.n = null, this.l = n;
}
/**
* @param {string} html
* @returns {void}
*/
c(t) {
this.l ? this.n = this.l : super.c(t);
}
/**
* @returns {void} */
i(t) {
for (let n = 0; n < this.n.length; n += 1)
ee(this.t, this.n[n], t);
}
}
function Ca(e, r) {
return new e(r);
}
const Vs = /* @__PURE__ */ new Map();
let Is = 0;
function bh(e) {
let r = 5381, t = e.length;
for (; t--; ) r = (r << 5) - r ^ e.charCodeAt(t);
return r >>> 0;
}
function yh(e, r) {
const t = { stylesheet: ch(r), rules: {} };
return Vs.set(e, t), t;
}
function Ds(e, r, t, n, i, o, s, a = 0) {
const l = 16.666 / n;
let u = `{
`;
for (let w = 0; w <= 1; w += l) {
const A = r + (t - r) * o(w);
u += w * 100 + `%{${s(A, 1 - A)}}
`;
}
const c = u + `100% {${s(t, 1 - t)}}
}`, d = `__svelte_${bh(c)}_${a}`, _ = qf(e), { stylesheet: g, rules: p } = Vs.get(_) || yh(_, e);
p[d] || (p[d] = !0, g.insertRule(`@keyframes ${d} ${c}`, g.cssRules.length));
const h = e.style.animation || "";
return e.style.animation = `${h ? `${h}, ` : ""}${d} ${n}ms linear ${i}ms 1 both`, Is += 1, d;
}
function Ts(e, r) {
const t = (e.style.animation || "").split(", "), n = t.filter(
r ? (o) => o.indexOf(r) < 0 : (o) => o.indexOf("__svelte") === -1
// remove all Svelte animations
), i = t.length - n.length;
i && (e.style.animation = n.join(", "), Is -= i, Is || vh());
}
function vh() {
ql(() => {
Is || (Vs.forEach((e) => {
const { ownerNode: r } = e.stylesheet;
r && E(r);
}), Vs.clear());
});
}
let Uo;
function Ho(e) {
Uo = e;
}
function To() {
if (!Uo) throw new Error("Function called outside component initialization");
return Uo;
}
function li(e) {
To().$$.on_mount.push(e);
}
function Xs(e) {
To().$$.after_update.push(e);
}
function Dn(e) {
To().$$.on_destroy.push(e);
}
function wh() {
const e = To();
return (r, t, { cancelable: n = !1 } = {}) => {
const i = e.$$.callbacks[r];
if (i) {
const o = Zf(
/** @type {string} */
r,
t,
{ cancelable: n }
);
return i.slice().forEach((s) => {
s.call(e, o);
}), !o.defaultPrevented;
}
return !0;
};
}
function Ni(e, r) {
return To().$$.context.set(e, r), r;
}
function tn(e) {
return To().$$.context.get(e);
}
function Hn(e, r) {
const t = e.$$.callbacks[r.type];
t && t.slice().forEach((n) => n.call(this, r));
}
const yo = [], Or = [];
let Eo = [];
const ja = [], Qf = /* @__PURE__ */ Promise.resolve();
let yl = !1;
function xf() {
yl || (yl = !0, Qf.then($f));
}
function zn() {
return xf(), Qf;
}
function ri(e) {
Eo.push(e);
}
const ol = /* @__PURE__ */ new Set();
let po = 0;
function $f() {
if (po !== 0)
return;
const e = Uo;
do {
try {
for (; po < yo.length; ) {
const r = yo[po];
po++, Ho(r), kh(r.$$);
}
} catch (r) {
throw yo.length = 0, po = 0, r;
}
for (Ho(null), yo.length = 0, po = 0; Or.length; ) Or.pop()();
for (let r = 0; r < Eo.length; r += 1) {
const t = Eo[r];
ol.has(t) || (ol.add(t), t());
}
Eo.length = 0;
} while (yo.length);
for (; ja.length; )
ja.pop()();
yl = !1, ol.clear(), Ho(e);
}
function kh(e) {
if (e.fragment !== null) {
e.update(), on(e.before_update);
const r = e.dirty;
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, r), e.after_update.forEach(ri);
}
}
function Eh(e) {
const r = [], t = [];
Eo.forEach((n) => e.indexOf(n) === -1 ? r.push(n) : t.push(n)), t.forEach((n) => n()), Eo = r;
}
let Lo;
function Xl() {
return Lo || (Lo = Promise.resolve(), Lo.then(() => {
Lo = null;
})), Lo;
}
function no(e, r, t) {
e.dispatchEvent(Zf(`${r ? "intro" : "outro"}${t}`));
}
const cs = /* @__PURE__ */ new Set();
let Vi;
function Sr() {
Vi = {
r: 0,
c: [],
p: Vi
// parent group
};
}
function Vr() {
Vi.r || on(Vi.c), Vi = Vi.p;
}
function x(e, r) {
e && e.i && (cs.delete(e), e.i(r));
}
function oe(e, r, t, n) {
if (e && e.o) {
if (cs.has(e)) return;
cs.add(e), Vi.c.push(() => {
cs.delete(e), n && (t && e.d(1), n());
}), e.o(r);
} else n && n();
}
const Zl = { duration: 0 };
function Zs(e, r, t) {
const n = { direction: "in" };
let i = r(e, t, n), o = !1, s, a, l = 0;
function u() {
s && Ts(e, s);
}
function c() {
const {
delay: _ = 0,
duration: g = 300,
easing: p = Ws,
tick: h = P,
css: w
} = i || Zl;
w && (s = Ds(e, 0, 1, g, _, p, w, l++)), h(0, 1);
const A = Yl() + _, Y = A + g;
a && a.abort(), o = !0, ri(() => no(e, !0, "start")), a = Kl((Q) => {
if (o) {
if (Q >= Y)
return h(1, 0), no(e, !0, "end"), u(), o = !1;
if (Q >= A) {
const J = p((Q - A) / g);
h(J, 1 - J);
}
}
return o;
});
}
let d = !1;
return {
start() {
d || (d = !0, Ts(e), Jr(i) ? (i = i(n), Xl().then(c)) : c());
},
invalidate() {
d = !1;
},
end() {
o && (u(), o = !1);
}
};
}
function ed(e, r, t) {
const n = { direction: "out" };
let i = r(e, t, n), o = !0, s;
const a = Vi;
a.r += 1;
let l;
function u() {
const {
delay: c = 0,
duration: d = 300,
easing: _ = Ws,
tick: g = P,
css: p
} = i || Zl;
p && (s = Ds(e, 1, 0, d, c, _, p));
const h = Yl() + c, w = h + d;
ri(() => no(e, !1, "start")), "inert" in e && (l = /** @type {HTMLElement} */
e.inert, e.inert = !0), Kl((A) => {
if (o) {
if (A >= w)
return g(0, 1), no(e, !1, "end"), --a.r || on(a.c), !1;
if (A >= h) {
const Y = _((A - h) / d);
g(1 - Y, Y);
}
}
return o;
});
}
return Jr(i) ? Xl().then(() => {
i = i(n), u();
}) : u(), {
end(c) {
c && "inert" in e && (e.inert = l), c && i.tick && i.tick(1, 0), o && (s && Ts(e, s), o = !1);
}
};
}
function Sa(e, r, t, n) {
let o = r(e, t, { direction: "both" }), s = n ? 0 : 1, a = null, l = null, u = null, c;
function d() {
u && Ts(e, u);
}
function _(p, h) {
const w = (
/** @type {Program['d']} */
p.b - s
);
return h *= Math.abs(w), {
a: s,
b: p.b,
d: w,
duration: h,
start: p.start,
end: p.start + h,
group: p.group
};
}
function g(p) {
const {
delay: h = 0,
duration: w = 300,
easing: A = Ws,
tick: Y = P,
css: Q
} = o || Zl, J = {
start: Yl() + h,
b: p
};
p || (J.group = Vi, Vi.r += 1), "inert" in e && (p ? c !== void 0 && (e.inert = c) : (c = /** @type {HTMLElement} */
e.inert, e.inert = !0)), a || l ? l = J : (Q && (d(), u = Ds(e, s, p, w, h, A, Q)), p && Y(0, 1), a = _(J, w), ri(() => no(e, p, "start")), Kl((de) => {
if (l && de > l.start && (a = _(l, w), l = null, no(e, a.b, "start"), Q && (d(), u = Ds(
e,
s,
a.b,
a.duration,
0,
A,
o.css
))), a) {
if (de >= a.end)
Y(s = a.b, 1 - s), no(e, a.b, "end"), l || (a.b ? d() : --a.group.r || on(a.group.c)), a = null;
else if (de >= a.start) {
const ie = de - a.start;
s = a.a + a.d * A(ie / a.duration), Y(s, 1 - s);
}
}
return !!(a || l);
}));
}
return {
run(p) {
Jr(o) ? Xl().then(() => {
o = o({ direction: p ? "in" : "out" }), g(p);
}) : g(p);
},
end() {
d(), a = l = null;
}
};
}
function wr(e) {
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
}
function td(e, r) {
oe(e, 1, 1, () => {
r.delete(e.key);
});
}
function rd(e, r, t, n, i, o, s, a, l, u, c, d) {
let _ = e.length, g = o.length, p = _;
const h = {};
for (; p--; ) h[e[p].key] = p;
const w = [], A = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), Q = [];
for (p = g; p--; ) {
const W = d(i, o, p), X = t(W);
let se = s.get(X);
se ? Q.push(() => se.p(W, r)) : (se = u(X, W), se.c()), A.set(X, w[p] = se), X in h && Y.set(X, Math.abs(p - h[X]));
}
const J = /* @__PURE__ */ new Set(), de = /* @__PURE__ */ new Set();
function ie(W) {
x(W, 1), W.m(a, c), s.set(W.key, W), c = W.first, g--;
}
for (; _ && g; ) {
const W = w[g - 1], X = e[_ - 1], se = W.key, L = X.key;
W === X ? (c = W.first, _--, g--) : A.has(L) ? !s.has(se) || J.has(se) ? ie(W) : de.has(L) ? _-- : Y.get(se) > Y.get(L) ? (de.add(se), ie(W)) : (J.add(L), _--) : (l(X, s), _--);
}
for (; _--; ) {
const W = e[_];
A.has(W.key) || l(W, s);
}
for (; g; ) ie(w[g - 1]);
return on(Q), w;
}
function qi(e, r) {
const t = {}, n = {}, i = { $$scope: 1 };
let o = e.length;
for (; o--; ) {
const s = e[o], a = r[o];
if (a) {
for (const l in s)
l in a || (n[l] = 1);
for (const l in a)
i[l] || (t[l] = a[l], i[l] = 1);
e[o] = a;
} else
for (const l in s)
i[l] = 1;
}
for (const s in n)
s in t || (t[s] = void 0);
return t;
}
function nd(e) {
return typeof e == "object" && e !== null ? e : {};
}
function ar(e) {
e && e.c();
}
function cr(e, r) {
e && e.l(r);
}
function ir(e, r, t) {
const { fragment: n, after_update: i } = e.$$;
n && n.m(r, t), ri(() => {
const o = e.$$.on_mount.map(Wf).filter(Jr);
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : on(o), e.$$.on_mount = [];
}), i.forEach(ri);
}
function or(e, r) {
const t = e.$$;
t.fragment !== null && (Eh(t.after_update), on(t.on_destroy), t.fragment && t.fragment.d(r), t.on_destroy = t.fragment = null, t.ctx = []);
}
function Ah(e, r) {
e.$$.dirty[0] === -1 && (yo.push(e), xf(), e.$$.dirty.fill(0)), e.$$.dirty[r / 31 | 0] |= 1 << r % 31;
}
function sn(e, r, t, n, i, o, s = null, a = [-1]) {
const l = Uo;
Ho(e);
const u = e.$$ = {
fragment: null,
ctx: [],
// state
props: o,
update: P,
not_equal: i,
bound: ya(),
// lifecycle
on_mount: [],
on_destroy: [],
on_disconnect: [],
before_update: [],
after_update: [],
context: new Map(r.context || (l ? l.$$.context : [])),
// everything else
callbacks: ya(),
dirty: a,
skip_bound: !1,
root: r.target || l.$$.root
};
s && s(u.root);
let c = !1;
if (u.ctx = t ? t(e, r.props || {}, (d, _, ...g) => {
const p = g.length ? g[0] : _;
return u.ctx && i(u.ctx[d], u.ctx[d] = p) && (!u.skip_bound && u.bound[d] && u.bound[d](p), c && Ah(e, d)), _;
}) : [], u.update(), c = !0, on(u.before_update), u.fragment = n ? n(u.ctx) : !1, r.target) {
if (r.hydrate) {
oh();
const d = Ve(r.target);
u.fragment && u.fragment.l(d), d.forEach(E);
} else
u.fragment && u.fragment.c();
r.intro && x(e.$$.fragment), ir(e, r.target, r.anchor), sh(), $f();
}
Ho(l);
}
class ln {
constructor() {
/**
* ### PRIVATE API
*
* Do not use, may change at any time
*
* @type {any}
*/
gr(this, "$$");
/**
* ### PRIVATE API
*
* Do not use, may change at any time
*
* @type {any}
*/
gr(this, "$$set");
}
/** @returns {void} */
$destroy() {
or(this, 1), this.$destroy = P;
}
/**
* @template {Extract<keyof Events, string>} K
* @param {K} type
* @param {((e: Events[K]) => void) | null | undefined} callback
* @returns {() => void}
*/
$on(r, t) {
if (!Jr(t))
return P;
const n = this.$$.callbacks[r] || (this.$$.callbacks[r] = []);
return n.push(t), () => {
const i = n.indexOf(t);
i !== -1 && n.splice(i, 1);
};
}
/**
* @param {Partial<Props>} props
* @returns {void}
*/
$set(r) {
this.$$set && !ih(r) && (this.$$.skip_bound = !0, this.$$set(r), this.$$.skip_bound = !1);
}
}
const Ch = "4";
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ch);
const mo = [];
function jh(e, r) {
return {
subscribe: bi(e, r).subscribe
};
}
function bi(e, r = P) {
let t;
const n = /* @__PURE__ */ new Set();
function i(a) {
if (nh(e, a) && (e = a, t)) {
const l = !mo.length;
for (const u of n)
u[1](), mo.push(u, e);
if (l) {
for (let u = 0; u < mo.length; u += 2)
mo[u][0](mo[u + 1]);
mo.length = 0;
}
}
}
function o(a) {
i(a(e));
}
function s(a, l = P) {
const u = [a, l];
return n.add(u), n.size === 1 && (t = r(i, o) || P), a(e), () => {
n.delete(u), n.size === 0 && t && (t(), t = null);
};
}
return { set: i, update: o, subscribe: s };
}
function co(e, r, t) {
const n = !Array.isArray(e), i = n ? [e] : e;
if (!i.every(Boolean))
throw new Error("derived() expects stores as input, got a falsy value");
const o = r.length < 2;
return jh(t, (s, a) => {
let l = !1;
const u = [];
let c = 0, d = P;
const _ = () => {
if (c)
return;
d();
const p = r(n ? u[0] : u, s, a);
o ? s(p) : d = Jr(p) ? p : P;
}, g = i.map(
(p, h) => G(
p,
(w) => {
u[h] = w, c &= ~(1 << h), l && _();
},
() => {
c |= 1 << h;
}
)
);
return l = !0, _(), function() {
on(g), d(), l = !1;
};
});
}
const Sh = "divkit-6d515", Vh = "divkit-27458", Ih = "divkit-82db1", Dh = "divkit-be734", Th = "divkit-9a652", Er = {
root_platform_desktop: Sh,
root__clickable: Vh,
"root__clickable-no-transition": "divkit-3bb57",
"root__any-actions": "divkit-ba614",
root: Ih,
root__selectable: Dh,
root__unselectable: Th,
"root__only-desktop": "divkit-316e7",
"root_restrict-scroll": "divkit-0a135",
"root_disabled-context-menu": "divkit-f5cb3"
}, jn = Symbol("root");
function H(e, r = {}) {
const t = e;
return t.level = r.level || "error", r.additional && (t.additional = r.additional), t;
}
const Fh = "divkit-bf0ea", Mh = "divkit-bab07", Ph = "divkit-07f20", Nh = "divkit-27458", zh = "divkit-90c49", Oh = "divkit-b33bc", Lh = "divkit-f6ff9", Fs = {
outer: Fh,
outer_width_content: Mh,
outer_height_content: Ph,
root__clickable: Nh,
"root__clickable-no-transition": "divkit-3bb57",
"outer_hide-on-transition-in": "divkit-c5f24",
"outer_halign-self_start": "divkit-002ec",
"outer_halign-self_center": "divkit-204f8",
"outer_halign-self_end": "divkit-bd7ba",
"outer_halign-self_stretch": "divkit-02d12",
"outer_valign-self_start": "divkit-fd8aa",
"outer_valign-self_center": "divkit-62df2",
"outer_valign-self_end": "divkit-819a0",
"outer_valign-self_stretch": "divkit-8a331",
"outer_parent-flex_vertical": "divkit-46b27",
"outer_parent-flex_horizontal": "divkit-be075",
"outer_valign-self_baseline": "divkit-2b876",
"outer_width-constrained": "divkit-5bdb7",
"outer_parent-grid": "divkit-47ef2",
"outer_height-constrained": "divkit-351c8",
"outer_parent-overlap": "divkit-747b0",
"outer_scroll-snap_start": "divkit-91fd4",
"outer_scroll-snap_center": "divkit-c525d",
"outer_scroll-snap_end": "divkit-67470",
outer__border: zh,
outer_visibility_invisible: Oh,
outer_visibility_gone: Lh,
"outer_has-action-animation": "divkit-4d4f3",
"outer_has-custom-focus": "divkit-b630e"
};
function xt(e) {
if (!e)
return;
let r = "";
for (const t in e)
if (e.hasOwnProperty(t)) {
if (!e[t] && e[t] !== 0)
continue;
r && (r += ";"), r += t + ":" + String(e[t]);
}
return r || void 0;
}
function We(e) {
if (typeof e != "number" && typeof e != "string" || !e)
return "0";
const r = Number(e);
return Number.isNaN(r) ? "0" : Math.ceil(r * 1e3) / 1e4 + "em";
}
function rn(e) {
let r = We(e);
return r === "0" && (r += "em"), r;
}
function id(e, r) {
for (; e.length < r; )
e = "0" + e;
return e;
}
function Wr(e, r = 1, t = "transparent") {
if (e = (typeof e == "string" && e || "").toLowerCase(), e.charAt(0) !== "#")
return t;
const n = di(e);
return n ? (n.a *= r, Ql(n)) : t;
}
function Rh(e, r, t = "transparent") {
if (e = (typeof e == "string" && e || "").toLowerCase(), e.charAt(0) !== "#")
return t;
const n = di(e);
return n ? (n.a = r, Ql(n)) : t;
}
function Ql(e) {
return e.a === 255 ? `#${[e.r, e.g, e.b].map((r) => id(Math.round(r).toString(16), 2)).join("")}` : `rgba(${e.r},${e.g},${e.b},${(e.a / 255).toFixed(2)})`;
}
function di(e) {
const r = (
// #AARRGGBB
e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) || // #ARGB
e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i) || // #RRGGBB
e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) || // #RGB
e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i)
);
if (r) {
if (r.length === 5) {
const [u, c, d, _, g] = r, p = d.length === 2 ? d : d + d, h = _.length === 2 ? _ : _ + _, w = g.length === 2 ? g : g + g, A = c.length === 2 ? c : c + c;
return {
a: parseInt(A, 16),
r: parseInt(p, 16),
g: parseInt(h, 16),
b: parseInt(w, 16)
};
}
const [t, n, i, o] = r, s = n.length === 2 ? n : n + n, a = i.length === 2 ? i : i + i, l = o.length === 2 ? o : o + o;
return {
a: 255,
r: parseInt(s, 16),
g: parseInt(a, 16),
b: parseInt(l, 16)
};
}
return null;
}
function vl(e) {
let r = String(e);
return r.indexOf("&") > -1 && (r = r.replace(/&/g, "&")), r.indexOf("<") > -1 && (r = r.replace(/</g, "<")), r.indexOf(">") > -1 && (r = r.replace(/>/g, ">")), r.indexOf('"') > -1 && (r = r.replace(/"/g, """)), r;
}
const Fi = Boolean;
function Qs(e, r) {
if (e.length === 1 && e[0].type === "solid")
return Hh({
bg: e[0]
});
const t = e.map((n) => {
if (n.type === "solid")
return Bh({
bg: n
});
if (n.type === "gradient")
return Wh({
bg: n
});
if (n.type === "image")
return Yh({
bg: n,
direction: r
});
if (n.type === "radial_gradient")
return Gh({
bg: n
});
}).filter(Fi).reverse().reduce(function(n, i) {
return n.image.push(i.image), n.size.push(i.size || "auto"), n.position.push(i.pos || "50% 50%"), n;
}, {
image: [],
size: [],
position: []
});
return {
image: t.image.join(","),
size: t.size.join(","),
position: t.position.join(",")
};
}
function Bh(e) {
const r = Wr(e.bg.color || "transparent");
return {
size: void 0,
pos: void 0,
image: `linear-gradient(to bottom,${r},${r})`
};
}
function Hh(e) {
return {
color: Wr(e.bg.color || "transparent"),
size: "auto",
position: "50% 50%"
};
}
function od(e) {
return e.every((n) => n.color && typeof n.position == "number" && n.position >= 0 && n.position <= 1) ? e.sort((n, i) => Math.abs(n.position - i.position) < 1e-6 ? 0 : n.position - i.position).map((n) => `${Wr(n.color)} ${(n.position * 100).toFixed(2)}%`).join(",") : void 0;
}
function Wh(e) {
var n, i, o, s;
if (!Array.isArray((n = e.bg) == null ? void 0 : n.colors) && !Array.isArray((i = e.bg) == null ? void 0 : i.color_map))
return;
const r = (o = e.bg.colors) == null ? void 0 : o.filter(Fi);
if (!(r != null && r.length) && !((s = e.bg) != null && s.color_map))
return;
let t;
if (e.bg.color_map) {
const a = od(e.bg.color_map);
if (!a)
return;
t = "linear-gradient(" + (90 - Number(e.bg.angle || 0) + "deg") + "," + a + ")";
} else {
if (!r)
return;
t = "linear-gradient(" + (90 - Number(e.bg.angle || 0) + "deg") + "," + r.map((a) => Wr(a)).join(",") + ")";
}
return {
size: void 0,
pos: void 0,
image: t
};
}
const Uh = {
nearest_corner: "closest-corner",
farthest_corner: "farthest-corner",
nearest_side: "closest-side",
farthest_side: "farthest-side"
};
function Va(e) {
if (e && typeof e == "object" && "type" in e && e.value !== void 0) {
if (e.type === "fixed")
return rn(e.value);
if (e.type === "relative")
return `${Number(e.value) * 100}%`;
}
return "50%";
}
function Gh(e) {
var a, l, u, c;
if (!Array.isArray((a = e.bg) == null ? void 0 : a.colors) && !Array.isArray((l = e.bg) == null ? void 0 : l.color_map))
return;
const r = (u = e.bg.colors) == null ? void 0 : u.filter(Fi);
if (!(r != null && r.length) && !((c = e.bg) != null && c.color_map))
return;
let t;
if (e.bg.color_map ? t = od(e.bg.color_map) : r && (t = r.map((d) => Wr(d)).join(",")), !t)
return;
const n = e.bg.radius;
let i;
n && typeof n == "object" && "type" in n && n.value !== void 0 && (n.type === "fixed" ? i = rn(n.value) : n.type === "relative" && (i = Uh[n.value]));
const o = Va(e.bg.center_x), s = Va(e.bg.center_y);
return {
size: void 0,
pos: void 0,
image: `radial-gradient(circle ${i || "farthest-corner"} at ${o} ${s},` + t + ")"
};
}
function Yh(e) {
var t;
const r = (t = e.bg) == null ? void 0 : t.image_url;
if (r)
return {
size: sd(e.bg.scale),
pos: ld(e.bg, e.direction),
image: 'url("' + vl(r) + '")'
};
}
function sd(e) {
return e === "fit" ? "contain" : e === "stretch" ? "fill" : e === "no_scale" ? "none" : "cover";
}
function qh(e) {
return e === "none" ? "auto" : e === "fill" ? "100% 100%" : e;
}
function ld(e, r) {
let t, n;
return e.content_alignment_horizontal === "left" || r === "ltr" && e.content_alignment_horizontal === "start" || r === "rtl" && e.content_alignment_horizontal === "end" ? t = "0%" : e.content_alignment_horizontal === "right" || r === "ltr" && e.content_alignment_horizontal === "end" || r === "rtl" && e.content_alignment_horizontal === "start" ? t = "100%" : t = "50%", e.content_alignment_vertical === "top" ? n = "0%" : e.content_alignment_vertical === "bottom" ? n = "100%" : n = "50%", t + " " + n;
}
function un(e, r) {
const t = Number(e);
return Number.isNaN(t) || t < 0 ? r : t;
}
function Ia(e, r, t) {
return typeof r == "number" && (e && r > 0 && r <= 100 || !e && r >= 0 && r < 100) ? r : t;
}
function Kh(e) {
return e.is_enabled !== 0 && e.is_enabled !== !1 && e.index !== void 0;
}
function Jh(e, {
visibilityActions: r,
disappearActions: t,
rootCtx: n,
componentContext: i
}) {
const o = [];
r && r.forEach((g) => {
o.push({
type: "visibility",
index: o.length,
action: g,
visible: !1,
count: 0,
finished: !1
});
}), t && t.forEach((g) => {
o.push({
type: "disappear",
index: o.length,
action: g,
// false, so disappear only works after the element becomes visible
visible: !1,
count: 0,
finished: !1
});
});
const s = o.map((g, p) => {
const h = g.type === "visibility";
return i.getDerivedFromVars({
index: p,
visibility_percentage: g.action.visibility_percentage,
visibility_duration: h ? g.action.visibility_duration : g.action.disappear_duration,
log_limit: g.action.log_limit,
is_enabled: g.action.is_enabled
}, void 0, !0);
});
let a;
const l = () => {
a && a.disconnect(), o.forEach((g) => {
g.timer && clearTimeout(g.timer);
});
}, u = co(s, (g) => g);
let c;
const d = (g) => {
const p = g.type === "visibility";
i.execAnyActions([g.action], {
logType: p ? "visible" : "disappear",
node: e,
processUrls: !1
});
}, _ = u.subscribe((g) => {
c = g.filter(Kh);
const p = {};
c.forEach((A) => {
p[A.index] = A;
}), l();
const h = [...new Set(c.map((A) => {
const Y = o[A.index].type === "visibility";
return Ia(
Y,
A.visibility_percentage,
Y ? 50 : 0
) / 100;
}))];
if (!h.length)
return;
const w = (A) => {
A.forEach((Y) => {
c.forEach((Q) => {
const J = o[Q.index], de = J.type === "visibility", ie = Ia(
de,
Q.visibility_percentage,
de ? 50 : 0
);
let W;
ie === 0 ? W = Y.intersectionRatio >= 1e-12 : W = Y.intersectionRatio >= ie / 100, (de ? !J.visible && W : J.visible && !W) ? J.finished || (J.timer = setTimeout(() => {
++J.count;
const L = Q.log_limit === 0 ? 1 / 0 : Q.log_limit || 1;
J.count >= L && (J.finished = !0), d(J);
}, un(Q.visibility_duration, 800))) : (de ? !W : W) && J.timer && clearTimeout(J.timer), J.visible = W;
});
});
};
a = new IntersectionObserver(w, {
threshold: h
}), a.observe(e);
});
return {
destroy() {
c == null || c.forEach((g) => {
const p = o[g.index];
!p || p.type !== "disappear" || !p.visible || p.finished || n.registerTimeout(window.setTimeout(() => {
d(p);
}, g.visibility_duration));
}), l(), _();
}
};
}
function Da(e, r) {
r && e.push(r);
}
function Dt(e, r, t) {
const n = [];
Da(n, r[e]);
for (const i in t)
if (t.hasOwnProperty(i)) {
const o = t[i];
if (o) {
const s = `${e}_${i}` + (typeof o == "string" ? `_${o}` : "");
Da(n, r[s]);
}
}
return n.join(" ");
}
const xl = Symbol("state");
function hi(e, r) {
var s, a;
const t = e.top || 0, n = ((s = r === "ltr" ? e.end : e.start) != null ? s : e.right) || 0, i = e.bottom || 0, o = ((a = r === "ltr" ? e.start : e.end) != null ? a : e.left) || 0;
return t === 0 && n === 0 && i === 0 && o === 0 ? "" : We(t) + " " + We(n) + " " + We(i) + " " + We(o);
}
function Fo(e) {
if (typeof e != "number" && typeof e != "string")
return !1;
const r = Number(e);
return !Number.isNaN(r);
}
function Kn(e) {
return Fo(e) && e >= 0;
}
function Ms(e, r, t) {
var i, o;
if (!e)
return t;
const n = [
e.top,
(i = r === "ltr" ? e.end : e.start) != null ? i : e.right,
e.bottom,
(o = r === "ltr" ? e.start : e.end) != null ? o : e.left
];
for (let s = 0; s < n.length; ++s)
if (n[s] && !Kn(n[s]))
return t;
return hi(e, r);
}
function Xh(e, r) {
return !Kn(e) || e === void 0 || e > 1 ? r : Number(e);
}
const Zh = Object.prototype.hasOwnProperty;
function Mo(e, r) {
if (Object.is(e, r))
return !0;
if (typeof e != "object" || e === null || typeof r != "object" || r === null)
return Object.is(e, r);
const t = Object.keys(e), n = Object.keys(r);
if (t.length !== n.length)
return !1;
for (let i = 0; i < t.length; i++) {
const o = t[i];
if (!Zh.call(r, o) || !Mo(e[o], r[o]))
return !1;
}
return !0;
}
function Gi(e, r) {
return Mo(e, r) ? r : e;
}
function Qh(e, r) {
return e === "visible" || e === "invisible" || e === "gone" ? e : r;
}
function ad(e, r) {
return e === "linear" || e === "ease" || e === "ease_in_out" || e === "ease_in" || e === "ease_out" ? e : r;
}
function Ps(e, r) {
const t = Number(e);
return Number.isNaN(t) ? r : t;
}
function Go(e) {
const r = [];
return e.name === "set" ? (e.items || []).forEach((t) => {
r.push(...Go(t));
}) : r.push(e), r;
}
function fo(e, r) {
if (!e || typeof e != "object")
return r;
const t = [
"top",
"right",
"bottom",
"left"
];
for (let n = 0; n < t.length; ++n)
if (e[t[n]] && !Kn(e[t[n]]))
return r;
return e;
}
function xh(e, r) {
if (!e && !r)
return {};
if (!r)
return e;
if (!e)
return r;
const t = {};
return [
"top",
"right",
"bottom",
"left",
"start",
"end"
].forEach((n) => {
const i = e[n];
i && (t[n] = i);
const o = r[n];
o && (t[n] = (t[n] || 0) + o);
}), t;
}
function $h(e, r) {
const t = [
e["top-left"],
e["top-right"],
e["bottom-right"],
e["bottom-left"]
];
for (let n = 0; n < t.length; ++n)
if (t[n] && !Kn(t[n]))
return r;
return e;
}
function fs(e, r = 0, t = 10) {
return [
e["top-left"],
e["top-right"],
e["bottom-right"],
e["bottom-left"]
].map((n) => We((n || r) / t * 10)).join(" ");
}
function e_(e) {
var r, t, n, i, o, s;
return We(((t = (r = e.offset) == null ? void 0 : r.x) == null ? void 0 : t.value) || 0) + " " + We(((i = (n = e.offset) == null ? void 0 : n.y) == null ? void 0 : i.value) || 0) + " " + We((o = e.blur) != null ? o : 2) + " " + Wr(e.color || "#000000", (s = e.alpha) != null ? s : 0.19);
}
function t_(e, r) {
var t, n, i, o, s, a;
return "drop-shadow(" + Wr(e.color || "#000000", (t = e.alpha) != null ? t : 0.19) + " " + We((((i = (n = e.offset) == null ? void 0 : n.x) == null ? void 0 : i.value) || 0) * 10 / r) + " " + We((((s = (o = e.offset) == null ? void 0 : o.y) == null ? void 0 : s.value) || 0) * 10 / r) + " " + We(((a = e.blur) != null ? a : 2) * 10 / r) + ")";
}
let sl;
function io() {
return typeof matchMedia > "u" ? !1 : (sl || (sl = window.matchMedia("(prefers-reduced-motion)")), sl.matches);
}
const r_ = 8, n_ = (e, r, t, n) => {
let i;
return (t || n) && typeof ResizeObserver < "u" && (i = new ResizeObserver(async () => {
let o = 0;
const s = {}, a = (u, c) => {
if (u) {
const d = r.getVariable(u, "integer");
if (d) {
if (c = Math.round(c), s[u] || (s[u] = /* @__PURE__ */ new Set()), !s[u].has(c))
return d.setValue(c), s[u].add(c), !0;
} else {
const _ = new Error("Missing variable");
_.level = "error", _.additional = {
variableName: u
}, r.logError(_);
}
}
return !1;
}, l = () => {
if (!e)
return !1;
const u = e.getBoundingClientRect(), c = a(t, u.width), d = a(n, u.height);
return c || d;
};
for (; l(); ) {
if (++o > r_) {
const u = new Error("Recursive layout in size_provider");
u.level = "warn", u.additional = {
widthVariableName: t,
heightVariableName: n
}, r.logError(u);
break;
}
await zn();
}
}), i.observe(e)), i;
}, $l = Symbol("enabled");
function Wn(e, r) {
return e === 1 || e === 0 || e === !1 || e === !0 ? !!e : r;
}
function Co(e) {
return [
e.state_description,
e.description,
e.hint
].filter(Boolean).join(", ");
}
const Ta = 1, Yi = 2;
function Fa(e, r = 1) {
if (!(!e || typeof e.value != "number")) {
if (e.type === "translation-fixed")
return We(e.value * r);
if (e.type === "translation-percentage")
return `${e.value * r}%`;
}
}
function $o(e, r = 1) {
if (!(!e || typeof e.value != "number")) {
if (e.type === "pivot-fixed")
return We(e.value * r);
if (e.type === "pivot-percentage")
return `${e.value * r}%`;
}
}
function i_(e) {
return e.map((r) => {
if (r.type === "rotation") {
if (typeof r.angle == "number") {
const t = $o(r.pivot_x) || "50%", n = $o(r.pivot_y) || "50%", i = $o(r.pivot_x, -1) || "-50%", o = $o(r.pivot_y, -1) || "-50%";
return `translate(${t}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`;
}
} else if (r.type === "translation") {
const t = Fa(r.x) || 0, n = Fa(r.y) || 0;
return `translate(${t}, ${n})`;
}
}).filter(Boolean).join(" ");
}
const wl = Symbol("visibility"), o_ = "divkit-ee5cc", Ma = {
actionable__button: o_
};
function s_() {
}
const oo = Symbol("action");
function kl(e) {
if (e.startsWith("tel:"))
return "tel";
if (e.startsWith("/"))
return "https";
const r = /^([^/]+):\/\//.exec(e);
return r && r[1] || "";
}
function El(e, r) {
return r.has(e);
}
function l_(e) {
var d;
let r, t, n, i, o, s;
const a = (
/*#slots*/
e[30].default
), l = Us(
a,
e,
/*$$scope*/
e[29],
null
);
let u = [
{
class: t = /*cls*/
e[2] + " " + /*longTapActions*/
((d = e[1]) != null && d.length ? Er["root_disabled-context-menu"] : "") + " " + /*hasAnyActions*/
(e[13] ? Er["root__any-actions"] : "")
},
{ style: (
/*style*/
e[3]
) },
{ role: (
/*role*/
e[10]
) },
{ "aria-checked": (
/*isChecked*/
e[14]
) },
{
"aria-hidden": n = /*ariaHidden*/
e[11] || void 0
},
/*attrs*/
e[4]
], c = {};
for (let _ = 0; _ < u.length; _ += 1)
c = Li(c, u[_]);
return {
c() {
r = Ne("span"), l && l.c(), this.h();
},
l(_) {
r = Re(_, "SPAN", {
class: !0,
style: !0,
role: !0,
"aria-checked": !0,
"aria-hidden": !0
});
var g = Ve(r);
l && l.l(g), g.forEach(E), this.h();
},
h() {
wi(r, c);
},
m(_, g) {
ee(_, r, g), l && l.m(r, null), e[48](r), i = !0, o || (s = [
Ks(
/*use*/
e[5].call(null, r)
),
Le(
r,
"click",
/*click_handler_2*/
e[41]
),
Le(
r,
"keydown",
/*onKeydown*/
e[16]
),
Le(
r,
"focus",
/*focus_handler_2*/
e[42]
),
Le(
r,
"blur",
/*blur_handler_2*/
e[43]
),
Le(
r,
"pointerdown",
/*pointerdown_handler_2*/
e[44]
),
Le(
r,
"wheel",
/*wheel_handler_2*/
e[45]
)
], o = !0);
},
p(_, g) {
var p;
l && l.p && (!i || g[0] & /*$$scope*/
536870912) && Ys(
l,
a,
_,
/*$$scope*/
_[29],
i ? Gs(
a,
/*$$scope*/
_[29],
g,
null
) : qs(
/*$$scope*/
_[29]
),
null
), wi(r, c = qi(u, [
(!i || g[0] & /*cls, longTapActions, hasAnyActions*/
8198 && t !== (t = /*cls*/
_[2] + " " + /*longTapActions*/
((p = _[1]) != null && p.length ? Er["root_disabled-context-menu"] : "") + " " + /*hasAnyActions*/
(_[13] ? Er["root__any-actions"] : ""))) && { class: t },
(!i || g[0] & /*style*/
8) && { style: (
/*style*/
_[3]
) },
(!i || g[0] & /*role*/
1024) && { role: (
/*role*/
_[10]
) },
(!i || g[0] & /*isChecked*/
16384) && { "aria-checked": (
/*isChecked*/
_[14]
) },
(!i || g[0] & /*ariaHidden*/
2048 && n !== (n = /*ariaHidden*/
_[11] || void 0)) && { "aria-hidden": n },
g[0] & /*attrs*/
16 && /*attrs*/
_[4]
]));
},
i(_) {
i || (x(l, _), i = !0);
},
o(_) {
oe(l, _), i = !1;
},
d(_) {
_ && E(r), l && l.d(_), e[48](null), o = !1, on(s);
}
};
}
function a_(e) {
var d;
let r, t, n, i, o, s;
const a = (
/*#slots*/
e[30].default
), l = Us(
a,
e,
/*$$scope*/
e[29],
null
);
let u = [
{
class: t = /*cls*/
e[2] + " " + Ma.actionable__button + " " + Er["root__any-actions"] + ` ${/*isNativeActionAnimation*/
e[6] ? Er.root__clickable : Er["root__clickable-no-transition"]} ${Er.root__unselectable} ` + /*longTapActions*/
((d = e[1]) != null && d.length ? Er["root_disabled-context-menu"] : "")
},
{ style: (
/*style*/
e[3]
) },
{ role: (
/*role*/
e[10]
) },
{ "aria-checked": (
/*isChecked*/
e[14]
) },
{ type: "button" },
{
tabindex: n = /*componentContext*/
e[0].fakeElement === Yi ? -1 : null
},
/*attrs*/
e[4]
], c = {};
for (let _ = 0; _ < u.length; _ += 1)
c = Li(c, u[_]);
return {
c() {
r = Ne("button"), l && l.c(), this.h();
},
l(_) {
r = Re(_, "BUTTON", {
class: !0,
style: !0,
role: !0,
"aria-checked": !0,
type: !0,
tabindex: !0
});
var g = Ve(r);
l && l.l(g), g.forEach(E), this.h();
},
h() {
wi(r, c);
},
m(_, g) {
ee(_, r, g), l && l.m(r, null), r.autofocus && r.focus(), e[47](r), i = !0, o || (s = [
Ks(
/*use*/
e[5].call(null, r)
),
Le(
r,
"click",
/*click_handler_1*/
e[36]
),
Le(
r,
"keydown",
/*onKeydown*/
e[16]
),
Le(
r,
"focus",
/*focus_handler_1*/
e[37]
),
Le(
r,
"blur",
/*blur_handler_1*/
e[38]
),
Le(
r,
"pointerdown",
/*pointerdown_handler_1*/
e[39]
),
Le(
r,
"wheel",
/*wheel_handler_1*/
e[40]
)
], o = !0);
},
p(_, g) {
var p;
l && l.p && (!i || g[0] & /*$$scope*/
536870912) && Ys(
l,
a,
_,
/*$$scope*/
_[29],
i ? Gs(
a,
/*$$scope*/
_[29],
g,
null
) : qs(
/*$$scope*/
_[29]
),
null
), wi(r, c = qi(u, [
(!i || g[0] & /*cls, isNativeActionAnimation, longTapActions*/
70 && t !== (t = /*cls*/
_[2] + " " + Ma.actionable__button + " " + Er["root__any-actions"] + ` ${/*isNativeActionAnimation*/
_[6] ? Er.root__clickable : Er["root__clickable-no-transition"]} ${Er.root__unselectable} ` + /*longTapActions*/
((p = _[1]) != null && p.length ? Er["root_disabled-context-menu"] : ""))) && { class: t },
(!i || g[0] & /*style*/
8) && { style: (
/*style*/
_[3]
) },
(!i || g[0] & /*role*/
1024) && { role: (
/*role*/
_[10]
) },
(!i || g[0] & /*isChecked*/
16384) && { "aria-checked": (
/*isChecked*/
_[14]
) },
{ type: "button" },
(!i || g[0] & /*componentContext*/
1 && n !== (n = /*componentContext*/
_[0].fakeElement === Yi ? -1 : null)) && { tabindex: n },
g[0] & /*attrs*/
16 && /*attrs*/
_[4]
]));
},
i(_) {
i || (x(l, _), i = !0);
},
o(_) {
oe(l, _), i = !1;
},
d(_) {
_ &