UNPKG

@divkitframework/divkit

Version:
1,960 lines 762 kB
var qd = Object.defineProperty; var Kd = (t, r, e) => r in t ? qd(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e; var gr = (t, r, e) => Kd(t, typeof r != "symbol" ? r + "" : r, e); /*! DivKit v32.51.0 https://github.com/divkit/divkit @licence Apache-2.0 */ function F() { } const Ps = (t) => t; function Li(t, r) { for (const e in r) t[e] = r[e]; return ( /** @type {T & S} */ t ); } function Mf(t) { return t(); } function ha() { return /* @__PURE__ */ Object.create(null); } function on(t) { t.forEach(Mf); } function qr(t) { return typeof t == "function"; } function Jd(t, r) { return t != t ? r == r : t !== r || t && typeof t == "object" || typeof t == "function"; } let Go; function mi(t, r) { return t === r ? !0 : (Go || (Go = document.createElement("a")), Go.href = r, t === Go.href); } function Gr(t, r) { return t != t ? r == r : t !== r; } function Xd(t) { return Object.keys(t).length === 0; } function H(t, ...r) { if (t == null) { for (const n of r) n(void 0); return F; } const e = t.subscribe(...r); return e.unsubscribe ? () => e.unsubscribe() : e; } function dl(t) { let r; return H(t, (e) => r = e)(), r; } function bn(t, r, e) { t.$$.on_destroy.push(H(r, e)); } function Ns(t, r, e, n) { if (t) { const i = Pf(t, r, e, n); return t[0](i); } } function Pf(t, r, e, n) { return t[1] && n ? Li(e.ctx.slice(), t[1](n(r))) : e.ctx; } function zs(t, r, e, n) { if (t[2] && n) { const i = t[2](n(e)); 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 Os(t, r, e, n, i, o) { if (i) { const s = Pf(r, e, n, o); t.p(s, i); } } function Ls(t) { if (t.ctx.length > 32) { const r = [], e = t.ctx.length / 32; for (let n = 0; n < e; n++) r[n] = -1; return r; } return -1; } function $s(t, r, e) { return t.set(e), r; } function Rs(t) { return t && qr(t.destroy) ? t.destroy : F; } function _a(t) { const r = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/); return r ? [parseFloat(r[1]), r[2] || "px"] : [ /** @type {number} */ t, "px" ]; } const Nf = typeof window < "u"; let Rl = Nf ? () => window.performance.now() : () => Date.now(), Bl = Nf ? (t) => requestAnimationFrame(t) : F; const go = /* @__PURE__ */ new Set(); function zf(t) { go.forEach((r) => { r.c(t) || (go.delete(r), r.f()); }), go.size !== 0 && Bl(zf); } function Hl(t) { let r; return go.size === 0 && Bl(zf), { promise: new Promise((e) => { go.add(r = { c: t, f: e }); }), abort() { go.delete(r); } }; } const Vi = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : ( // @ts-ignore Node typings have this global ); let Bs = !1; function Zd() { Bs = !0; } function Qd() { Bs = !1; } function xd(t, r, e, n) { for (; t < r; ) { const i = t + (r - t >> 1); e(i) <= n ? t = i + 1 : r = i; } return t; } function $d(t) { if (t.hydrate_init) return; t.hydrate_init = !0; let r = ( /** @type {ArrayLike<NodeEx2>} */ t.childNodes ); if (t.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 e = new Int32Array(r.length + 1), n = new Int32Array(r.length); e[0] = -1; let i = 0; for (let l = 0; l < r.length; l++) { const u = r[l].claim_order, c = (i > 0 && r[e[i]].claim_order <= u ? i + 1 : xd(1, i, (_) => r[e[_]].claim_order, u)) - 1; n[l] = e[c] + 1; const f = c + 1; e[f] = l, i = Math.max(f, i); } const o = [], s = []; let a = r.length - 1; for (let l = e[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; t.insertBefore(s[l], c); } } function eh(t, r) { t.appendChild(r); } function Of(t) { if (!t) return document; const r = t.getRootNode ? t.getRootNode() : t.ownerDocument; return r && /** @type {ShadowRoot} */ r.host ? ( /** @type {ShadowRoot} */ r ) : t.ownerDocument; } function th(t) { const r = Pe("style"); return r.textContent = "/* empty */", rh(Of(t), r), r.sheet; } function rh(t, r) { return eh( /** @type {Document} */ t.head || t, r ), r.sheet; } function Ht(t, r) { if (Bs) { for ($d(t), (t.actual_end_child === void 0 || t.actual_end_child !== null && t.actual_end_child.parentNode !== t) && (t.actual_end_child = t.firstChild); t.actual_end_child !== null && t.actual_end_child.claim_order === void 0; ) t.actual_end_child = t.actual_end_child.nextSibling; r !== t.actual_end_child ? (r.claim_order !== void 0 || r.parentNode !== t) && t.insertBefore(r, t.actual_end_child) : t.actual_end_child = r.nextSibling; } else (r.parentNode !== t || r.nextSibling !== null) && t.appendChild(r); } function nh(t, r, e) { t.insertBefore(r, e || null); } function x(t, r, e) { Bs && !e ? Ht(t, r) : (r.parentNode !== t || r.nextSibling != e) && t.insertBefore(r, e || null); } function k(t) { t.parentNode && t.parentNode.removeChild(t); } function An(t, r) { for (let e = 0; e < t.length; e += 1) t[e] && t[e].d(r); } function Pe(t) { return document.createElement(t); } function mn(t) { return document.createElementNS("http://www.w3.org/2000/svg", t); } function ii(t) { return document.createTextNode(t); } function Sr() { return ii(" "); } function tt() { return ii(""); } function Le(t, r, e, n) { return t.addEventListener(r, e, n), () => t.removeEventListener(r, e, n); } function b(t, r, e) { e == null ? t.removeAttribute(r) : t.getAttribute(r) !== e && t.setAttribute(r, e); } const ih = ["width", "height"]; function bi(t, r) { const e = Object.getOwnPropertyDescriptors(t.__proto__); for (const n in r) r[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = r[n] : n === "__value" ? t.value = t[n] = r[n] : e[n] && e[n].set && ih.indexOf(n) === -1 ? t[n] = r[n] : b(t, n, r[n]); } function oh(t, r) { Object.keys(r).forEach((e) => { sh(t, e, r[e]); }); } function sh(t, r, e) { const n = r.toLowerCase(); n in t ? t[n] = typeof t[n] == "boolean" && e === "" ? !0 : e : r in t ? t[r] = typeof t[r] == "boolean" && e === "" ? !0 : e : b(t, r, e); } function ga(t) { return /-/.test(t) ? oh : bi; } function Ve(t) { return Array.from(t.childNodes); } function Lf(t) { t.claim_info === void 0 && (t.claim_info = { last_index: 0, total_claimed: 0 }); } function Rf(t, r, e, n, i = !1) { Lf(t); const o = (() => { for (let s = t.claim_info.last_index; s < t.length; s++) { const a = t[s]; if (r(a)) { const l = e(a); return l === void 0 ? t.splice(s, 1) : t[s] = l, i || (t.claim_info.last_index = s), a; } } for (let s = t.claim_info.last_index - 1; s >= 0; s--) { const a = t[s]; if (r(a)) { const l = e(a); return l === void 0 ? t.splice(s, 1) : t[s] = l, i ? l === void 0 && t.claim_info.last_index-- : t.claim_info.last_index = s, a; } } return n(); })(); return o.claim_order = t.claim_info.total_claimed, t.claim_info.total_claimed += 1, o; } function Bf(t, r, e, n) { return Rf( t, /** @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]; e[a.name] || o.push(a.name); } o.forEach((s) => i.removeAttribute(s)); }, () => n(r) ); } function Re(t, r, e) { return Bf(t, r, e, Pe); } function Sn(t, r, e) { return Bf(t, r, e, mn); } function vi(t, r) { return Rf( t, /** @returns {node is Text} */ (e) => e.nodeType === 3, /** @param {Text} node */ (e) => { const n = "" + r; if (e.data.startsWith(n)) { if (e.data.length !== n.length) return e.splitText(n.length); } else e.data = n; }, () => ii(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 Vr(t) { return vi(t, " "); } function pa(t, r, e) { for (let n = e; n < t.length; n += 1) { const i = t[n]; if (i.nodeType === 8 && i.textContent.trim() === r) return n; } return -1; } function Wl(t, r) { const e = pa(t, "HTML_TAG_START", 0), n = pa(t, "HTML_TAG_END", e + 1); if (e === -1 || n === -1) return new po(r); Lf(t); const i = t.splice(e, n - e + 1); k(i[0]), k(i[i.length - 1]); const o = i.slice(1, i.length - 1); if (o.length === 0) return new po(r); for (const s of o) s.claim_order = t.claim_info.total_claimed, t.claim_info.total_claimed += 1; return new po(r, o); } function Ri(t, r) { r = "" + r, t.data !== r && (t.data = /** @type {string} */ r); } function ma(t, r) { t.value = r == null ? "" : r; } function W(t, r, e, n) { e == null ? t.style.removeProperty(r) : t.style.setProperty(r, e, ""); } function ba(t, r, e) { for (let n = 0; n < t.options.length; n += 1) { const i = t.options[n]; if (i.__value === r) { i.selected = !0; return; } } (!e || r !== void 0) && (t.selectedIndex = -1); } function lh(t) { const r = t.querySelector(":checked"); return r && r.__value; } function Hf(t, r, { bubbles: e = !1, cancelable: n = !1 } = {}) { return new CustomEvent(t, { detail: r, bubbles: e, cancelable: n }); } class ah { 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, e, n = null) { this.e || (this.is_svg ? this.e = mn( /** @type {keyof SVGElementTagNameMap} */ e.nodeName ) : this.e = Pe( /** @type {keyof HTMLElementTagNameMap} */ e.nodeType === 11 ? "TEMPLATE" : e.nodeName ), this.t = e.tagName !== "TEMPLATE" ? e : ( /** @type {HTMLTemplateElement} */ e.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 e = 0; e < this.n.length; e += 1) nh(this.t, this.n[e], r); } /** * @param {string} html * @returns {void} */ p(r) { this.d(), this.h(r), this.i(this.a); } /** * @returns {void} */ d() { this.n.forEach(k); } } class po extends ah { constructor(e = !1, n) { super(e); /** @type {Element[]} hydration claimed nodes */ gr(this, "l"); this.e = this.n = null, this.l = n; } /** * @param {string} html * @returns {void} */ c(e) { this.l ? this.n = this.l : super.c(e); } /** * @returns {void} */ i(e) { for (let n = 0; n < this.n.length; n += 1) x(this.t, this.n[n], e); } } function ya(t, r) { return new t(r); } const vs = /* @__PURE__ */ new Map(); let ws = 0; function uh(t) { let r = 5381, e = t.length; for (; e--; ) r = (r << 5) - r ^ t.charCodeAt(e); return r >>> 0; } function ch(t, r) { const e = { stylesheet: th(r), rules: {} }; return vs.set(t, e), e; } function ks(t, r, e, n, i, o, s, a = 0) { const l = 16.666 / n; let u = `{ `; for (let v = 0; v <= 1; v += l) { const w = r + (e - r) * o(v); u += v * 100 + `%{${s(w, 1 - w)}} `; } const c = u + `100% {${s(e, 1 - e)}} }`, f = `__svelte_${uh(c)}_${a}`, _ = Of(t), { stylesheet: g, rules: p } = vs.get(_) || ch(_, t); p[f] || (p[f] = !0, g.insertRule(`@keyframes ${f} ${c}`, g.cssRules.length)); const h = t.style.animation || ""; return t.style.animation = `${h ? `${h}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, ws += 1, f; } function Es(t, r) { const e = (t.style.animation || "").split(", "), n = e.filter( r ? (o) => o.indexOf(r) < 0 : (o) => o.indexOf("__svelte") === -1 // remove all Svelte animations ), i = e.length - n.length; i && (t.style.animation = n.join(", "), ws -= i, ws || fh()); } function fh() { Bl(() => { ws || (vs.forEach((t) => { const { ownerNode: r } = t.stylesheet; r && k(r); }), vs.clear()); }); } let Oo; function No(t) { Oo = t; } function Co() { if (!Oo) throw new Error("Function called outside component initialization"); return Oo; } function oi(t) { Co().$$.on_mount.push(t); } function Hs(t) { Co().$$.after_update.push(t); } function Cn(t) { Co().$$.on_destroy.push(t); } function dh() { const t = Co(); return (r, e, { cancelable: n = !1 } = {}) => { const i = t.$$.callbacks[r]; if (i) { const o = Hf( /** @type {string} */ r, e, { cancelable: n } ); return i.slice().forEach((s) => { s.call(t, o); }), !o.defaultPrevented; } return !0; }; } function Ni(t, r) { return Co().$$.context.set(t, r), r; } function xr(t) { return Co().$$.context.get(t); } function Rn(t, r) { const e = t.$$.callbacks[r.type]; e && e.slice().forEach((n) => n.call(this, r)); } const ho = [], Lr = []; let mo = []; const va = [], Wf = /* @__PURE__ */ Promise.resolve(); let hl = !1; function Uf() { hl || (hl = !0, Wf.then(Gf)); } function Mn() { return Uf(), Wf; } function ei(t) { mo.push(t); } const el = /* @__PURE__ */ new Set(); let uo = 0; function Gf() { if (uo !== 0) return; const t = Oo; do { try { for (; uo < ho.length; ) { const r = ho[uo]; uo++, No(r), hh(r.$$); } } catch (r) { throw ho.length = 0, uo = 0, r; } for (No(null), ho.length = 0, uo = 0; Lr.length; ) Lr.pop()(); for (let r = 0; r < mo.length; r += 1) { const e = mo[r]; el.has(e) || (el.add(e), e()); } mo.length = 0; } while (ho.length); for (; va.length; ) va.pop()(); hl = !1, el.clear(), No(t); } function hh(t) { if (t.fragment !== null) { t.update(), on(t.before_update); const r = t.dirty; t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, r), t.after_update.forEach(ei); } } function _h(t) { const r = [], e = []; mo.forEach((n) => t.indexOf(n) === -1 ? r.push(n) : e.push(n)), e.forEach((n) => n()), mo = r; } let Fo; function Ul() { return Fo || (Fo = Promise.resolve(), Fo.then(() => { Fo = null; })), Fo; } function eo(t, r, e) { t.dispatchEvent(Hf(`${r ? "intro" : "outro"}${e}`)); } const rs = /* @__PURE__ */ new Set(); let Ai; function kr() { Ai = { r: 0, c: [], p: Ai // parent group }; } function Er() { Ai.r || on(Ai.c), Ai = Ai.p; } function J(t, r) { t && t.i && (rs.delete(t), t.i(r)); } function se(t, r, e, n) { if (t && t.o) { if (rs.has(t)) return; rs.add(t), Ai.c.push(() => { rs.delete(t), n && (e && t.d(1), n()); }), t.o(r); } else n && n(); } const Gl = { duration: 0 }; function Ws(t, r, e) { const n = { direction: "in" }; let i = r(t, e, n), o = !1, s, a, l = 0; function u() { s && Es(t, s); } function c() { const { delay: _ = 0, duration: g = 300, easing: p = Ps, tick: h = F, css: v } = i || Gl; v && (s = ks(t, 0, 1, g, _, p, v, l++)), h(0, 1); const w = Rl() + _, G = w + g; a && a.abort(), o = !0, ei(() => eo(t, !0, "start")), a = Hl((X) => { if (o) { if (X >= G) return h(1, 0), eo(t, !0, "end"), u(), o = !1; if (X >= w) { const B = p((X - w) / g); h(B, 1 - B); } } return o; }); } let f = !1; return { start() { f || (f = !0, Es(t), qr(i) ? (i = i(n), Ul().then(c)) : c()); }, invalidate() { f = !1; }, end() { o && (u(), o = !1); } }; } function Yf(t, r, e) { const n = { direction: "out" }; let i = r(t, e, n), o = !0, s; const a = Ai; a.r += 1; let l; function u() { const { delay: c = 0, duration: f = 300, easing: _ = Ps, tick: g = F, css: p } = i || Gl; p && (s = ks(t, 1, 0, f, c, _, p)); const h = Rl() + c, v = h + f; ei(() => eo(t, !1, "start")), "inert" in t && (l = /** @type {HTMLElement} */ t.inert, t.inert = !0), Hl((w) => { if (o) { if (w >= v) return g(0, 1), eo(t, !1, "end"), --a.r || on(a.c), !1; if (w >= h) { const G = _((w - h) / f); g(1 - G, G); } } return o; }); } return qr(i) ? Ul().then(() => { i = i(n), u(); }) : u(), { end(c) { c && "inert" in t && (t.inert = l), c && i.tick && i.tick(1, 0), o && (s && Es(t, s), o = !1); } }; } function wa(t, r, e, n) { let o = r(t, e, { direction: "both" }), s = n ? 0 : 1, a = null, l = null, u = null, c; function f() { u && Es(t, u); } function _(p, h) { const v = ( /** @type {Program['d']} */ p.b - s ); return h *= Math.abs(v), { a: s, b: p.b, d: v, duration: h, start: p.start, end: p.start + h, group: p.group }; } function g(p) { const { delay: h = 0, duration: v = 300, easing: w = Ps, tick: G = F, css: X } = o || Gl, B = { start: Rl() + h, b: p }; p || (B.group = Ai, Ai.r += 1), "inert" in t && (p ? c !== void 0 && (t.inert = c) : (c = /** @type {HTMLElement} */ t.inert, t.inert = !0)), a || l ? l = B : (X && (f(), u = ks(t, s, p, v, h, w, X)), p && G(0, 1), a = _(B, v), ei(() => eo(t, p, "start")), Hl(($) => { if (l && $ > l.start && (a = _(l, v), l = null, eo(t, a.b, "start"), X && (f(), u = ks( t, s, a.b, a.duration, 0, w, o.css ))), a) { if ($ >= a.end) G(s = a.b, 1 - s), eo(t, a.b, "end"), l || (a.b ? f() : --a.group.r || on(a.group.c)), a = null; else if ($ >= a.start) { const _e = $ - a.start; s = a.a + a.d * w(_e / a.duration), G(s, 1 - s); } } return !!(a || l); })); } return { run(p) { qr(o) ? Ul().then(() => { o = o({ direction: p ? "in" : "out" }), g(p); }) : g(p); }, end() { f(), a = l = null; } }; } function mr(t) { return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t); } function qf(t, r) { se(t, 1, 1, () => { r.delete(t.key); }); } function Kf(t, r, e, n, i, o, s, a, l, u, c, f) { let _ = t.length, g = o.length, p = _; const h = {}; for (; p--; ) h[t[p].key] = p; const v = [], w = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), X = []; for (p = g; p--; ) { const Y = f(i, o, p), Q = e(Y); let ie = s.get(Q); ie ? X.push(() => ie.p(Y, r)) : (ie = u(Q, Y), ie.c()), w.set(Q, v[p] = ie), Q in h && G.set(Q, Math.abs(p - h[Q])); } const B = /* @__PURE__ */ new Set(), $ = /* @__PURE__ */ new Set(); function _e(Y) { J(Y, 1), Y.m(a, c), s.set(Y.key, Y), c = Y.first, g--; } for (; _ && g; ) { const Y = v[g - 1], Q = t[_ - 1], ie = Y.key, D = Q.key; Y === Q ? (c = Y.first, _--, g--) : w.has(D) ? !s.has(ie) || B.has(ie) ? _e(Y) : $.has(D) ? _-- : G.get(ie) > G.get(D) ? ($.add(ie), _e(Y)) : (B.add(D), _--) : (l(Q, s), _--); } for (; _--; ) { const Y = t[_]; w.has(Y.key) || l(Y, s); } for (; g; ) _e(v[g - 1]); return on(X), v; } function Yi(t, r) { const e = {}, n = {}, i = { $$scope: 1 }; let o = t.length; for (; o--; ) { const s = t[o], a = r[o]; if (a) { for (const l in s) l in a || (n[l] = 1); for (const l in a) i[l] || (e[l] = a[l], i[l] = 1); t[o] = a; } else for (const l in s) i[l] = 1; } for (const s in n) s in e || (e[s] = void 0); return e; } function Jf(t) { return typeof t == "object" && t !== null ? t : {}; } function cr(t) { t && t.c(); } function dr(t, r) { t && t.l(r); } function sr(t, r, e) { const { fragment: n, after_update: i } = t.$$; n && n.m(r, e), ei(() => { const o = t.$$.on_mount.map(Mf).filter(qr); t.$$.on_destroy ? t.$$.on_destroy.push(...o) : on(o), t.$$.on_mount = []; }), i.forEach(ei); } function lr(t, r) { const e = t.$$; e.fragment !== null && (_h(e.after_update), on(e.on_destroy), e.fragment && e.fragment.d(r), e.on_destroy = e.fragment = null, e.ctx = []); } function gh(t, r) { t.$$.dirty[0] === -1 && (ho.push(t), Uf(), t.$$.dirty.fill(0)), t.$$.dirty[r / 31 | 0] |= 1 << r % 31; } function sn(t, r, e, n, i, o, s = null, a = [-1]) { const l = Oo; No(t); const u = t.$$ = { fragment: null, ctx: [], // state props: o, update: F, not_equal: i, bound: ha(), // lifecycle on_mount: [], on_destroy: [], on_disconnect: [], before_update: [], after_update: [], context: new Map(r.context || (l ? l.$$.context : [])), // everything else callbacks: ha(), dirty: a, skip_bound: !1, root: r.target || l.$$.root }; s && s(u.root); let c = !1; if (u.ctx = e ? e(t, r.props || {}, (f, _, ...g) => { const p = g.length ? g[0] : _; return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), c && gh(t, f)), _; }) : [], u.update(), c = !0, on(u.before_update), u.fragment = n ? n(u.ctx) : !1, r.target) { if (r.hydrate) { Zd(); const f = Ve(r.target); u.fragment && u.fragment.l(f), f.forEach(k); } else u.fragment && u.fragment.c(); r.intro && J(t.$$.fragment), sr(t, r.target, r.anchor), Qd(), Gf(); } No(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() { lr(this, 1), this.$destroy = F; } /** * @template {Extract<keyof Events, string>} K * @param {K} type * @param {((e: Events[K]) => void) | null | undefined} callback * @returns {() => void} */ $on(r, e) { if (!qr(e)) return F; const n = this.$$.callbacks[r] || (this.$$.callbacks[r] = []); return n.push(e), () => { const i = n.indexOf(e); i !== -1 && n.splice(i, 1); }; } /** * @param {Partial<Props>} props * @returns {void} */ $set(r) { this.$$set && !Xd(r) && (this.$$.skip_bound = !0, this.$$set(r), this.$$.skip_bound = !1); } } const ph = "4"; typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ph); const co = []; function mh(t, r) { return { subscribe: gi(t, r).subscribe }; } function gi(t, r = F) { let e; const n = /* @__PURE__ */ new Set(); function i(a) { if (Jd(t, a) && (t = a, e)) { const l = !co.length; for (const u of n) u[1](), co.push(u, t); if (l) { for (let u = 0; u < co.length; u += 2) co[u][0](co[u + 1]); co.length = 0; } } } function o(a) { i(a(t)); } function s(a, l = F) { const u = [a, l]; return n.add(u), n.size === 1 && (e = r(i, o) || F), a(t), () => { n.delete(u), n.size === 0 && e && (e(), e = null); }; } return { set: i, update: o, subscribe: s }; } function jo(t, r, e) { const n = !Array.isArray(t), i = n ? [t] : t; if (!i.every(Boolean)) throw new Error("derived() expects stores as input, got a falsy value"); const o = r.length < 2; return mh(e, (s, a) => { let l = !1; const u = []; let c = 0, f = F; const _ = () => { if (c) return; f(); const p = r(n ? u[0] : u, s, a); o ? s(p) : f = qr(p) ? p : F; }, g = i.map( (p, h) => H( p, (v) => { u[h] = v, c &= ~(1 << h), l && _(); }, () => { c |= 1 << h; } ) ); return l = !0, _(), function() { on(g), f(), l = !1; }; }); } const bh = "divkit-6d515", yh = "divkit-27458", vh = "divkit-82db1", wh = "divkit-be734", kh = "divkit-9a652", vr = { root_platform_desktop: bh, root__clickable: yh, "root__clickable-no-transition": "divkit-3bb57", "root__any-actions": "divkit-ba614", root: vh, root__selectable: wh, root__unselectable: kh, "root__only-desktop": "divkit-316e7", "root_restrict-scroll": "divkit-0a135", "root_disabled-context-menu": "divkit-f5cb3" }, yn = Symbol("root"); function R(t, r = {}) { const e = t; return e.level = r.level || "error", r.additional && (e.additional = r.additional), e; } const Eh = "divkit-bf0ea", Ah = "divkit-bab07", Ch = "divkit-07f20", jh = "divkit-27458", Sh = "divkit-90c49", Vh = "divkit-b33bc", Ih = "divkit-f6ff9", As = { outer: Eh, outer_width_content: Ah, outer_height_content: Ch, root__clickable: jh, "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: Sh, outer_visibility_invisible: Vh, outer_visibility_gone: Ih, "outer_has-action-animation": "divkit-4d4f3", "outer_has-custom-focus": "divkit-b630e" }; function er(t) { if (!t) return; let r = ""; for (const e in t) if (t.hasOwnProperty(e)) { if (!t[e] && t[e] !== 0) continue; r && (r += ";"), r += e + ":" + String(t[e]); } return r || void 0; } function Ge(t) { if (typeof t != "number" && typeof t != "string" || !t) return "0"; const r = Number(t); return Number.isNaN(r) ? "0" : Math.ceil(r * 1e3) / 1e4 + "em"; } function _n(t) { let r = Ge(t); return r === "0" && (r += "em"), r; } function Xf(t, r) { for (; t.length < r; ) t = "0" + t; return t; } function Ur(t, r = 1, e = "transparent") { if (t = (typeof t == "string" && t || "").toLowerCase(), t.charAt(0) !== "#") return e; const n = ci(t); return n ? (n.a *= r, Yl(n)) : e; } function Dh(t, r, e = "transparent") { if (t = (typeof t == "string" && t || "").toLowerCase(), t.charAt(0) !== "#") return e; const n = ci(t); return n ? (n.a = r, Yl(n)) : e; } function Yl(t) { return t.a === 255 ? `#${[t.r, t.g, t.b].map((r) => Xf(Math.round(r).toString(16), 2)).join("")}` : `rgba(${t.r},${t.g},${t.b},${(t.a / 255).toFixed(2)})`; } function ci(t) { const r = ( // #AARRGGBB t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) || // #ARGB t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i) || // #RRGGBB t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) || // #RGB t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i) ); if (r) { if (r.length === 5) { const [u, c, f, _, g] = r, p = f.length === 2 ? f : f + f, h = _.length === 2 ? _ : _ + _, v = g.length === 2 ? g : g + g, w = c.length === 2 ? c : c + c; return { a: parseInt(w, 16), r: parseInt(p, 16), g: parseInt(h, 16), b: parseInt(v, 16) }; } const [e, 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 _l(t) { let r = String(t); return r.indexOf("&") > -1 && (r = r.replace(/&/g, "&amp;")), r.indexOf("<") > -1 && (r = r.replace(/</g, "&lt;")), r.indexOf(">") > -1 && (r = r.replace(/>/g, "&gt;")), r.indexOf('"') > -1 && (r = r.replace(/"/g, "&quot;")), r; } const Ii = Boolean; function Us(t, r) { if (t.length === 1 && t[0].type === "solid") return Fh({ bg: t[0] }); const e = t.map((n) => { if (n.type === "solid") return Th({ bg: n }); if (n.type === "gradient") return Mh({ bg: n }); if (n.type === "image") return zh({ bg: n, direction: r }); if (n.type === "radial_gradient") return Nh({ bg: n }); }).filter(Ii).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: e.image.join(","), size: e.size.join(","), position: e.position.join(",") }; } function Th(t) { const r = Ur(t.bg.color || "transparent"); return { size: void 0, pos: void 0, image: `linear-gradient(to bottom,${r},${r})` }; } function Fh(t) { return { color: Ur(t.bg.color || "transparent"), size: "auto", position: "50% 50%" }; } function Zf(t) { return t.every((n) => n.color && typeof n.position == "number" && n.position >= 0 && n.position <= 1) ? t.sort((n, i) => Math.abs(n.position - i.position) < 1e-6 ? 0 : n.position - i.position).map((n) => `${Ur(n.color)} ${(n.position * 100).toFixed(2)}%`).join(",") : void 0; } function Mh(t) { var n, i, o, s; if (!Array.isArray((n = t.bg) == null ? void 0 : n.colors) && !Array.isArray((i = t.bg) == null ? void 0 : i.color_map)) return; const r = (o = t.bg.colors) == null ? void 0 : o.filter(Ii); if (!(r != null && r.length) && !((s = t.bg) != null && s.color_map)) return; let e; if (t.bg.color_map) { const a = Zf(t.bg.color_map); if (!a) return; e = "linear-gradient(" + (90 - Number(t.bg.angle || 0) + "deg") + "," + a + ")"; } else { if (!r) return; e = "linear-gradient(" + (90 - Number(t.bg.angle || 0) + "deg") + "," + r.map((a) => Ur(a)).join(",") + ")"; } return { size: void 0, pos: void 0, image: e }; } const Ph = { nearest_corner: "closest-corner", farthest_corner: "farthest-corner", nearest_side: "closest-side", farthest_side: "farthest-side" }; function ka(t) { if (t && typeof t == "object" && "type" in t && t.value !== void 0) { if (t.type === "fixed") return _n(t.value); if (t.type === "relative") return `${Number(t.value) * 100}%`; } return "50%"; } function Nh(t) { var a, l, u, c; if (!Array.isArray((a = t.bg) == null ? void 0 : a.colors) && !Array.isArray((l = t.bg) == null ? void 0 : l.color_map)) return; const r = (u = t.bg.colors) == null ? void 0 : u.filter(Ii); if (!(r != null && r.length) && !((c = t.bg) != null && c.color_map)) return; let e; if (t.bg.color_map ? e = Zf(t.bg.color_map) : r && (e = r.map((f) => Ur(f)).join(",")), !e) return; const n = t.bg.radius; let i; n && typeof n == "object" && "type" in n && n.value !== void 0 && (n.type === "fixed" ? i = _n(n.value) : n.type === "relative" && (i = Ph[n.value])); const o = ka(t.bg.center_x), s = ka(t.bg.center_y); return { size: void 0, pos: void 0, image: `radial-gradient(circle ${i || "farthest-corner"} at ${o} ${s},` + e + ")" }; } function zh(t) { var e; const r = (e = t.bg) == null ? void 0 : e.image_url; if (r) return { size: Qf(t.bg.scale), pos: xf(t.bg, t.direction), image: 'url("' + _l(r) + '")' }; } function Qf(t) { return t === "fit" ? "contain" : t === "stretch" ? "fill" : t === "no_scale" ? "none" : "cover"; } function Oh(t) { return t === "none" ? "auto" : t === "fill" ? "100% 100%" : t; } function xf(t, r) { let e, n; return t.content_alignment_horizontal === "left" || r === "ltr" && t.content_alignment_horizontal === "start" || r === "rtl" && t.content_alignment_horizontal === "end" ? e = "0%" : t.content_alignment_horizontal === "right" || r === "ltr" && t.content_alignment_horizontal === "end" || r === "rtl" && t.content_alignment_horizontal === "start" ? e = "100%" : e = "50%", t.content_alignment_vertical === "top" ? n = "0%" : t.content_alignment_vertical === "bottom" ? n = "100%" : n = "50%", e + " " + n; } function fn(t, r) { const e = Number(t); return Number.isNaN(e) || e < 0 ? r : e; } function Ea(t, r, e) { return typeof r == "number" && (t && r > 0 && r <= 100 || !t && r >= 0 && r < 100) ? r : e; } function Lh(t) { return t.is_enabled !== 0 && t.is_enabled !== !1 && t.index !== void 0; } function Rh(t, { visibilityActions: r, disappearActions: e, 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 }); }), e && e.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 = jo(s, (g) => g); let c; const f = (g) => { const p = g.type === "visibility"; i.execAnyActions([g.action], { logType: p ? "visible" : "disappear", node: t, processUrls: !1 }); }, _ = u.subscribe((g) => { c = g.filter(Lh); const p = {}; c.forEach((w) => { p[w.index] = w; }), l(); const h = [...new Set(c.map((w) => { const G = o[w.index].type === "visibility"; return Ea( G, w.visibility_percentage, G ? 50 : 0 ) / 100; }))]; if (!h.length) return; const v = (w) => { w.forEach((G) => { c.forEach((X) => { const B = o[X.index], $ = B.type === "visibility", _e = Ea( $, X.visibility_percentage, $ ? 50 : 0 ); let Y; _e === 0 ? Y = G.intersectionRatio >= 1e-12 : Y = G.intersectionRatio >= _e / 100, ($ ? !B.visible && Y : B.visible && !Y) ? B.finished || (B.timer = setTimeout(() => { ++B.count; const D = X.log_limit === 0 ? 1 / 0 : X.log_limit || 1; B.count >= D && (B.finished = !0), f(B); }, fn(X.visibility_duration, 800))) : ($ ? !Y : Y) && B.timer && clearTimeout(B.timer), B.visible = Y; }); }); }; a = new IntersectionObserver(v, { threshold: h }), a.observe(t); }); return { destroy() { c == null || c.forEach((g) => { const p = o[g.index]; !p || p.type !== "disappear" || !p.visible || p.finished || n.registerTimeout(window.setTimeout(() => { f(p); }, g.visibility_duration)); }), l(), _(); } }; } function Aa(t, r) { r && t.push(r); } function Ft(t, r, e) { const n = []; Aa(n, r[t]); for (const i in e) if (e.hasOwnProperty(i)) { const o = e[i]; if (o) { const s = `${t}_${i}` + (typeof o == "string" ? `_${o}` : ""); Aa(n, r[s]); } } return n.join(" "); } const ql = Symbol("state"); function yi(t, r) { var s, a; const e = t.top || 0, n = ((s = r === "ltr" ? t.end : t.start) != null ? s : t.right) || 0, i = t.bottom || 0, o = ((a = r === "ltr" ? t.start : t.end) != null ? a : t.left) || 0; return e === 0 && n === 0 && i === 0 && o === 0 ? "" : Ge(e) + " " + Ge(n) + " " + Ge(i) + " " + Ge(o); } function So(t) { if (typeof t != "number" && typeof t != "string") return !1; const r = Number(t); return !Number.isNaN(r); } function qn(t) { return So(t) && t >= 0; } function Cs(t, r, e) { var i, o; if (!t) return e; const n = [ t.top, (i = r === "ltr" ? t.end : t.start) != null ? i : t.right, t.bottom, (o = r === "ltr" ? t.start : t.end) != null ? o : t.left ]; for (let s = 0; s < n.length; ++s) if (n[s] && !qn(n[s])) return e; return yi(t, r); } function Bh(t, r) { return !qn(t) || t === void 0 || t > 1 ? r : Number(t); } const Hh = Object.prototype.hasOwnProperty; function Vo(t, r) { if (Object.is(t, r)) return !0; if (typeof t != "object" || t === null || typeof r != "object" || r === null) return Object.is(t, r); const e = Object.keys(t), n = Object.keys(r); if (e.length !== n.length) return !1; for (let i = 0; i < e.length; i++) { const o = e[i]; if (!Hh.call(r, o) || !Vo(t[o], r[o])) return !1; } return !0; } function Ui(t, r) { return Vo(t, r) ? r : t; } function Wh(t, r) { return t === "visible" || t === "invisible" || t === "gone" ? t : r; } function $f(t, r) { return t === "linear" || t === "ease" || t === "ease_in_out" || t === "ease_in" || t === "ease_out" ? t : r; } function js(t, r) { const e = Number(t); return Number.isNaN(e) ? r : e; } function Lo(t) { const r = []; return t.name === "set" ? (t.items || []).forEach((e) => { r.push(...Lo(e)); }) : r.push(t), r; } function Io(t, r) { if (!t || typeof t != "object") return r; const e = [ "top", "right", "bottom", "left" ]; for (let n = 0; n < e.length; ++n) if (t[e[n]] && !qn(t[e[n]])) return r; return t; } function Uh(t, r) { if (!t && !r) return {}; if (!r) return t; if (!t) return r; const e = {}; return [ "top", "right", "bottom", "left", "start", "end" ].forEach((n) => { const i = t[n]; i && (e[n] = i); const o = r[n]; o && (e[n] = (e[n] || 0) + o); }), e; } function Gh(t, r) { const e = [ t["top-left"], t["top-right"], t["bottom-right"], t["bottom-left"] ]; for (let n = 0; n < e.length; ++n) if (e[n] && !qn(e[n])) return r; return t; } function ns(t, r = 0, e = 10) { return [ t["top-left"], t["top-right"], t["bottom-right"], t["bottom-left"] ].map((n) => Ge((n || r) / e * 10)).join(" "); } function Yh(t) { var r, e, n, i, o, s; return Ge(((e = (r = t.offset) == null ? void 0 : r.x) == null ? void 0 : e.value) || 0) + " " + Ge(((i = (n = t.offset) == null ? void 0 : n.y) == null ? void 0 : i.value) || 0) + " " + Ge((o = t.blur) != null ? o : 2) + " " + Ur(t.color || "#000000", (s = t.alpha) != null ? s : 0.19); } function qh(t, r) { var e, n, i, o, s, a; return "drop-shadow(" + Ur(t.color || "#000000", (e = t.alpha) != null ? e : 0.19) + " " + Ge((((i = (n = t.offset) == null ? void 0 : n.x) == null ? void 0 : i.value) || 0) * 10 / r) + " " + Ge((((s = (o = t.offset) == null ? void 0 : o.y) == null ? void 0 : s.value) || 0) * 10 / r) + " " + Ge(((a = t.blur) != null ? a : 2) * 10 / r) + ")"; } let tl; function yo() { return typeof matchMedia > "u" ? !1 : (tl || (tl = window.matchMedia("(prefers-reduced-motion)")), tl.matches); } const Kh = 8, Jh = (t, r, e, n) => { let i; return (e || n) && typeof ResizeObserver < "u" && (i = new ResizeObserver(async () => { let o = 0; const s = {}, a = (u, c) => { if (u) { const f = r.getVariable(u, "integer"); if (f) { if (c = Math.round(c), s[u] || (s[u] = /* @__PURE__ */ new Set()), !s[u].has(c)) return f.setValue(c), s[u].add(c), !0; } else { const _ = new Error("Missing variable"); _.level = "error", _.additional = { variableName: u }, r.logError(_); } } return !1; }, l = () => { if (!t) return !1; const u = t.getBoundingClientRect(), c = a(e, u.width), f = a(n, u.height); return c || f; }; for (; l(); ) { if (++o > Kh) { const u = new Error("Recursive layout in size_provider"); u.level = "warn", u.additional = { widthVariableName: e, heightVariableName: n }, r.logError(u); break; } await Mn(); } }), i.observe(t)), i; }, Kl = Symbol("enabled"); function Bn(t, r) { return t === 1 || t === 0 || t === !1 || t === !0 ? !!t : r; } function vo(t) { return [ t.state_description, t.description, t.hint ].filter(Boolean).join(", "); } const Ca = 1, Gi = 2; function ja(t, r = 1) { if (!(!t || typeof t.value != "number")) { if (t.type === "translation-fixed") return Ge(t.value * r); if (t.type === "translation-percentage") return `${t.value * r}%`; } } function Yo(t, r = 1) { if (!(!t || typeof t.value != "number")) { if (t.type === "pivot-fixed") return Ge(t.value * r); if (t.type === "pivot-percentage") return `${t.value * r}%`; } } function Xh(t) { return t.map((r) => { if (r.type === "rotation") { if (typeof r.angle == "number") { const e = Yo(r.pivot_x) || "50%", n = Yo(r.pivot_y) || "50%", i = Yo(r.pivot_x, -1) || "-50%", o = Yo(r.pivot_y, -1) || "-50%"; return `translate(${e}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`; } } else if (r.type === "translation") { const e = ja(r.x) || 0, n = ja(r.y) || 0; return `translate(${e}, ${n})`; } }).filter(Boolean).join(" "); } const gl = Symbol("visibility"), Zh = "divkit-ee5cc", Sa = { actionable__button: Zh }; function Qh() { } const to = Symbol("action"); function pl(t) { if (t.startsWith("tel:")) return "tel"; if (t.startsWith("/")) return "https"; const r = /^([^/]+):\/\//.exec(t); return r && r[1] || ""; } function ml(t, r) { return r.has(t); } function xh(t) { var f; let r, e, n, i, o, s; const a = ( /*#slots*/ t[30].default ), l = Ns( a, t, /*$$scope*/ t[29], null ); let u = [ { class: e = /*cls*/ t[2] + " " + /*longTapActions*/ ((f = t[1]) != null && f.length ? vr["root_disabled-context-menu"] : "") + " " + /*hasAnyActions*/ (t[13] ? vr["root__any-actions"] : "") }, { style: ( /*style*/ t[3] ) }, { role: ( /*role*/ t[10] ) }, { "aria-checked": ( /*isChecked*/ t[14] ) }, { "aria-hidden": n = /*ariaHidden*/ t[11] || void 0 }, /*attrs*/ t[4] ], c = {}; for (let _ = 0; _ < u.length; _ += 1) c = Li(c, u[_]); return { c() { r = Pe("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(k), this.h(); }, h() { bi(r, c); }, m(_, g) { x(_, r, g), l && l.m(r, null), t[48](r), i = !0, o || (s = [ Rs( /*use*/ t[5].call(null, r) ), Le( r, "click", /*click_handler_2*/ t[41] ), Le( r, "keydown", /*onKeydown*/ t[16] ), Le( r, "focus", /*focus_handler_2*/ t[42] ), Le( r, "blur", /*blur_handler_2*/ t[43] ), Le( r, "pointerdown", /*pointerdown_handler_2*/ t[44] ), Le( r, "wheel", /*wheel_handler_2*/ t[45] ) ], o = !0); }, p(_, g) { var p; l && l.p && (!i || g[0] & /*$$scope*/ 536870912) && Os( l, a, _, /*$$scope*/ _[29], i ? zs( a, /*$$scope*/ _[29], g, null ) : Ls( /*$$scope*/ _[29] ), null ), bi(r, c = Yi(u, [ (!i || g[0] & /*cls, longTapActions, hasAnyActions*/ 8198 && e !== (e = /*cls*/ _[2] + " " + /*longTapActions*/ ((p = _[1]) != null && p.length ? vr["root_disabled-context-menu"] : "") + " " + /*hasAnyActions*/ (_[13] ? vr["root__any-actions"] : ""))) && { class: e }, (!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 || (J(l, _), i = !0); }, o(_) { se(l, _), i = !1; }, d(_) { _ && k(r), l && l.d(_), t[48](null), o = !1, on(s); } }; } function $h(t) { var f; let r, e, n, i, o, s; const a = ( /*#slots*/ t[30].default ), l = Ns( a, t, /*$$scope*/ t[29], null ); let u = [ { class: e = /*cls*/ t[2] + " " + Sa.actionable__button + " " + vr["root__any-actions"] + ` ${/*isNativeActionAnimation*/ t[6] ? vr.root__clickable : vr["root__clickable-no-transition"]} ${vr.root__unselectable} ` + /*longTapActions*/ ((f = t[1]) != null && f.length ? vr["root_disabled-context-menu"] : "") }, { style: ( /*style*/ t[3] ) }, { role: ( /*role*/ t[10] ) }, { "aria-checked": ( /*isChecked*/ t[14] ) }, { type: "button" }, { tabindex: n = /*componentContext*/ t[0].fakeElement === Gi ? -1 : null }, /*attrs*/ t[4] ], c = {}; for (let _ = 0; _ < u.length; _ += 1) c = Li(c, u[_]); return { c() { r = Pe("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(k), this.h(); }, h() { bi(r, c); }, m(_, g) { x(_, r, g), l && l.m(r, null), r.autofocus && r.focus(), t[47](r), i = !0, o || (s = [ Rs( /*use*/ t[5].call(null, r) ), Le( r, "click", /*click_handler_1*/ t[36] ), Le( r, "keydown", /*onKeydown*/ t[16] ), Le( r, "focus", /*focus_handler_1*/ t[37] ), Le( r, "blur", /*blur_handler_1*/ t[38] ), Le( r, "pointerdown", /*pointerdown_handler_1*/ t[39] ), Le( r, "wheel", /*wheel_handler_1*/ t[40] ) ], o = !0); }, p(_, g) { var p; l && l.p && (!i || g[0] & /*$$scope*/ 536870912) && Os( l, a, _, /*$$scope*/ _[29], i ? zs( a, /*$$scope*/ _[29], g, null ) : Ls( /*$$scope*/ _[29] ), null ), bi(r, c = Yi(u, [ (!i || g[0] & /*cls, isNativeActionAnimation, longTapActions*/ 70 && e !== (e = /*cls*/ _[2] + " " + Sa.actionable__button + " " + vr["root__any-actions"] + ` ${/*isNativeActionAnimation*/ _[6] ? vr.root__clickable : vr["root__clickable-no-transition"]} ${vr.root__unselectable} ` + /*longTapActions*/ ((p = _[1]) != null && p.length ? vr["root_disabled-context-menu"] : ""))) && { class: e }, (!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 === Gi ? -1 : null)) && { tabindex: n }, g[0] & /*attrs*/ 16 && /*attrs*/ _[4] ])); }, i(_) { i || (J(l, _), i = !0); }, o(_) { se(l, _), i = !1; }, d(_) { _ && k(r), l && l.d(