From ae5cd721a8429e547292949a47ece54fb3aa74f0 Mon Sep 17 00:00:00 2001 From: "Peter.Morton" Date: Wed, 30 Jul 2025 17:03:59 -0500 Subject: [PATCH] initial commit of browser extension --- .gitignore | 3 +- browser-extension/icon.png | Bin 0 -> 826 bytes browser-extension/manifest.json | 23 + browser-extension/service-worker.js | 11 + browser-extension/src/pages/panel/index.js | 17 + .../src/pages/panel/ivas-messenger-ui.min.js | 19247 ++++++++++++++++ .../src/pages/side-panel/index.html | 18 + 7 files changed, 19318 insertions(+), 1 deletion(-) create mode 100644 browser-extension/icon.png create mode 100644 browser-extension/manifest.json create mode 100644 browser-extension/service-worker.js create mode 100644 browser-extension/src/pages/panel/index.js create mode 100644 browser-extension/src/pages/panel/ivas-messenger-ui.min.js create mode 100644 browser-extension/src/pages/side-panel/index.html diff --git a/.gitignore b/.gitignore index 937fb71..43c3f29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ basic-messenger-cli/application/node_modules -remote_console/application/node_modules \ No newline at end of file +remote_console/application/node_modules +browser-extension/.DS_Store diff --git a/browser-extension/icon.png b/browser-extension/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..32c6c4be824074986a33bc4dd97924eac91bc03f GIT binary patch literal 826 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSoCO|{#S9GG!XV7ZFl&wkP>``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&di3{2-eT^vIy7~kHt%@%Q#Y54g6sPT*fMFozH zW*fggb*TkFMIq{pa_D9l>k{OR7RyEF}(1 z$SSp(*vu%B@PFdYee3ei%bne3kix*~!F=mH)A=VWjX?$}t^H&=QS1WW8R-KjR!*-H z-`=ml`|qH&cI0=~JKP!`=^u-H=ESX-zNCI%b+qlv|Np}EdH?*_C~R2yuI8JsBD02% z)SH*D&6C$#upW?Pn8S#L@IKi3W6vg;y}fD6YnH8xIlE0gfuZ%szfZ1@n-_k)wvpXw zN;5WX$YQ)X))u+7b-N18ye7R~D}6X+!E?rGJ`m0c console.error(error)); + +chrome.action.onClicked.addListener(() => { + chrome.tabs.create({ + url: 'mainpage.html' + }); + console.log('Opened a tab with a sandboxed page!'); +}); diff --git a/browser-extension/src/pages/panel/index.js b/browser-extension/src/pages/panel/index.js new file mode 100644 index 0000000..147befc --- /dev/null +++ b/browser-extension/src/pages/panel/index.js @@ -0,0 +1,17 @@ +window.trackingJson = { + subChannel: "MAPP:APPLE", + channel: "MAPP:APPLE", + isMapp: true, +}; +window.ivasMessengerSettings = { + token: + "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJ3b3Jrc3BhY2VJZCI6IjY3YmNhODYyMjEwMDcxNjI3ZDMyZWYxMiIsImlhdCI6MTc0MDQxNzEyMn0.L_gLTj-ekDYs9SU6Jsehu9F-iKa5JAjAJEjpGkuXIbzNCdie2j63oPH0Ca9w5a4SIZ7AgFTDVO-1XPyAvCUaNNAHuFetnCSGScCl7K17cKlLJtn1tKA1E4jTd_Unz6wsbT21HV5mkBOBqOtGF2sqUuPLOe-ctY44zC6Yq44rNQZ5WJCJUu_7urT_6nyIVJxONDnWvIQH3vletseBrFod8flZTcQ9tlkcjqzc78y2FzO3c4xhJ9AHiRJ63tgaKm8oi8jZMXbp7d35tycNzRjk9Q4aONKdG8ciFwzjlIHGKMtI_C8x0xZH5sHIwJhGb6NJV69aX89ghdanzuDZpAfORg", + domain: "https://messenger.ivastudio.verint.live", + fullscreen: true, + port: "443", + branch: "current", + onError: (error) => + console.error( + error + ), +}; diff --git a/browser-extension/src/pages/panel/ivas-messenger-ui.min.js b/browser-extension/src/pages/panel/ivas-messenger-ui.min.js new file mode 100644 index 0000000..2327e03 --- /dev/null +++ b/browser-extension/src/pages/panel/ivas-messenger-ui.min.js @@ -0,0 +1,19247 @@ +(function () { + "use strict"; + function Po(n, e) { + const t = Object.create(null), + r = n.split(","); + for (let s = 0; s < r.length; s++) t[r[s]] = !0; + return e ? (s) => !!t[s.toLowerCase()] : (s) => !!t[s]; + } + const Le = {}, + Br = [], + on = () => {}, + ip = () => !1, + op = /^on[^a-z]/, + li = (n) => op.test(n), + Lo = (n) => n.startsWith("onUpdate:"), + We = Object.assign, + Do = (n, e) => { + const t = n.indexOf(e); + t > -1 && n.splice(t, 1); + }, + ap = Object.prototype.hasOwnProperty, + ye = (n, e) => ap.call(n, e), + te = Array.isArray, + Fr = (n) => ci(n) === "[object Map]", + fc = (n) => ci(n) === "[object Set]", + ie = (n) => typeof n == "function", + je = (n) => typeof n == "string", + No = (n) => typeof n == "symbol", + Ie = (n) => n !== null && typeof n == "object", + hc = (n) => (Ie(n) || ie(n)) && ie(n.then) && ie(n.catch), + dc = Object.prototype.toString, + ci = (n) => dc.call(n), + lp = (n) => ci(n).slice(8, -1), + pc = (n) => ci(n) === "[object Object]", + Bo = (n) => + je(n) && n !== "NaN" && n[0] !== "-" && "" + parseInt(n, 10) === n, + ui = Po( + ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" + ), + fi = (n) => { + const e = Object.create(null); + return (t) => e[t] || (e[t] = n(t)); + }, + cp = /-(\w)/g, + Ft = fi((n) => n.replace(cp, (e, t) => (t ? t.toUpperCase() : ""))), + up = /\B([A-Z])/g, + jt = fi((n) => n.replace(up, "-$1").toLowerCase()), + hi = fi((n) => n.charAt(0).toUpperCase() + n.slice(1)), + Fo = fi((n) => (n ? `on${hi(n)}` : "")), + pr = (n, e) => !Object.is(n, e), + $o = (n, e) => { + for (let t = 0; t < n.length; t++) n[t](e); + }, + di = (n, e, t) => { + Object.defineProperty(n, e, { + configurable: !0, + enumerable: !1, + value: t, + }); + }, + fp = (n) => { + const e = parseFloat(n); + return isNaN(e) ? n : e; + }, + Uo = (n) => { + const e = je(n) ? Number(n) : NaN; + return isNaN(e) ? n : e; + }; + let mc; + const Ho = () => + mc || + (mc = + typeof globalThis < "u" + ? globalThis + : typeof self < "u" + ? self + : typeof window < "u" + ? window + : typeof global < "u" + ? global + : {}); + function On(n) { + if (te(n)) { + const e = {}; + for (let t = 0; t < n.length; t++) { + const r = n[t], + s = je(r) ? mp(r) : On(r); + if (s) for (const i in s) e[i] = s[i]; + } + return e; + } else if (je(n) || Ie(n)) return n; + } + const hp = /;(?![^(]*\))/g, + dp = /:([^]+)/, + pp = /\/\*[^]*?\*\//g; + function mp(n) { + const e = {}; + return ( + n + .replace(pp, "") + .split(hp) + .forEach((t) => { + if (t) { + const r = t.split(dp); + r.length > 1 && (e[r[0].trim()] = r[1].trim()); + } + }), + e + ); + } + function wt(n) { + let e = ""; + if (je(n)) e = n; + else if (te(n)) + for (let t = 0; t < n.length; t++) { + const r = wt(n[t]); + r && (e += r + " "); + } + else if (Ie(n)) for (const t in n) n[t] && (e += t + " "); + return e.trim(); + } + const _p = Po( + "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly" + ); + function _c(n) { + return !!n || n === ""; + } + const He = (n) => + je(n) + ? n + : n == null + ? "" + : te(n) || (Ie(n) && (n.toString === dc || !ie(n.toString))) + ? JSON.stringify(n, gc, 2) + : String(n), + gc = (n, e) => + e && e.__v_isRef + ? gc(n, e.value) + : Fr(e) + ? { + [`Map(${e.size})`]: [...e.entries()].reduce( + (t, [r, s]) => ((t[`${r} =>`] = s), t), + {} + ), + } + : fc(e) + ? { [`Set(${e.size})`]: [...e.values()] } + : Ie(e) && !te(e) && !pc(e) + ? String(e) + : e; + let $t; + class vc { + constructor(e = !1) { + (this.detached = e), + (this._active = !0), + (this.effects = []), + (this.cleanups = []), + (this.parent = $t), + !e && + $t && + (this.index = ($t.scopes || ($t.scopes = [])).push(this) - 1); + } + get active() { + return this._active; + } + run(e) { + if (this._active) { + const t = $t; + try { + return ($t = this), e(); + } finally { + $t = t; + } + } + } + on() { + $t = this; + } + off() { + $t = this.parent; + } + stop(e) { + if (this._active) { + let t, r; + for (t = 0, r = this.effects.length; t < r; t++) this.effects[t].stop(); + for (t = 0, r = this.cleanups.length; t < r; t++) this.cleanups[t](); + if (this.scopes) + for (t = 0, r = this.scopes.length; t < r; t++) + this.scopes[t].stop(!0); + if (!this.detached && this.parent && !e) { + const s = this.parent.scopes.pop(); + s && + s !== this && + ((this.parent.scopes[this.index] = s), (s.index = this.index)); + } + (this.parent = void 0), (this._active = !1); + } + } + } + function yc(n) { + return new vc(n); + } + function gp(n, e = $t) { + e && e.active && e.effects.push(n); + } + function bc() { + return $t; + } + function vp(n) { + $t && $t.cleanups.push(n); + } + const zo = (n) => { + const e = new Set(n); + return (e.w = 0), (e.n = 0), e; + }, + wc = (n) => (n.w & jn) > 0, + Tc = (n) => (n.n & jn) > 0, + yp = ({ deps: n }) => { + if (n.length) for (let e = 0; e < n.length; e++) n[e].w |= jn; + }, + bp = (n) => { + const { deps: e } = n; + if (e.length) { + let t = 0; + for (let r = 0; r < e.length; r++) { + const s = e[r]; + wc(s) && !Tc(s) ? s.delete(n) : (e[t++] = s), + (s.w &= ~jn), + (s.n &= ~jn); + } + e.length = t; + } + }, + pi = new WeakMap(); + let hs = 0, + jn = 1; + const Wo = 30; + let an; + const mr = Symbol(""), + Vo = Symbol(""); + class qo { + constructor(e, t = null, r) { + (this.fn = e), + (this.scheduler = t), + (this.active = !0), + (this.deps = []), + (this.parent = void 0), + gp(this, r); + } + run() { + if (!this.active) return this.fn(); + let e = an, + t = Yn; + for (; e; ) { + if (e === this) return; + e = e.parent; + } + try { + return ( + (this.parent = an), + (an = this), + (Yn = !0), + (jn = 1 << ++hs), + hs <= Wo ? yp(this) : xc(this), + this.fn() + ); + } finally { + hs <= Wo && bp(this), + (jn = 1 << --hs), + (an = this.parent), + (Yn = t), + (this.parent = void 0), + this.deferStop && this.stop(); + } + } + stop() { + an === this + ? (this.deferStop = !0) + : this.active && + (xc(this), this.onStop && this.onStop(), (this.active = !1)); + } + } + function xc(n) { + const { deps: e } = n; + if (e.length) { + for (let t = 0; t < e.length; t++) e[t].delete(n); + e.length = 0; + } + } + let Yn = !0; + const Ec = []; + function $r() { + Ec.push(Yn), (Yn = !1); + } + function Ur() { + const n = Ec.pop(); + Yn = n === void 0 ? !0 : n; + } + function Mt(n, e, t) { + if (Yn && an) { + let r = pi.get(n); + r || pi.set(n, (r = new Map())); + let s = r.get(t); + s || r.set(t, (s = zo())), Sc(s); + } + } + function Sc(n, e) { + let t = !1; + hs <= Wo ? Tc(n) || ((n.n |= jn), (t = !wc(n))) : (t = !n.has(an)), + t && (n.add(an), an.deps.push(n)); + } + function In(n, e, t, r, s, i) { + const o = pi.get(n); + if (!o) return; + let a = []; + if (e === "clear") a = [...o.values()]; + else if (t === "length" && te(n)) { + const l = Number(r); + o.forEach((c, u) => { + (u === "length" || u >= l) && a.push(c); + }); + } else + switch ((t !== void 0 && a.push(o.get(t)), e)) { + case "add": + te(n) + ? Bo(t) && a.push(o.get("length")) + : (a.push(o.get(mr)), Fr(n) && a.push(o.get(Vo))); + break; + case "delete": + te(n) || (a.push(o.get(mr)), Fr(n) && a.push(o.get(Vo))); + break; + case "set": + Fr(n) && a.push(o.get(mr)); + break; + } + if (a.length === 1) a[0] && jo(a[0]); + else { + const l = []; + for (const c of a) c && l.push(...c); + jo(zo(l)); + } + } + function jo(n, e) { + const t = te(n) ? n : [...n]; + for (const r of t) r.computed && Cc(r); + for (const r of t) r.computed || Cc(r); + } + function Cc(n, e) { + (n !== an || n.allowRecurse) && (n.scheduler ? n.scheduler() : n.run()); + } + function wp(n, e) { + var t; + return (t = pi.get(n)) == null ? void 0 : t.get(e); + } + const Tp = Po("__proto__,__v_isRef,__isVue"), + Ac = new Set( + Object.getOwnPropertyNames(Symbol) + .filter((n) => n !== "arguments" && n !== "caller") + .map((n) => Symbol[n]) + .filter(No) + ), + Mc = xp(); + function xp() { + const n = {}; + return ( + ["includes", "indexOf", "lastIndexOf"].forEach((e) => { + n[e] = function (...t) { + const r = he(this); + for (let i = 0, o = this.length; i < o; i++) Mt(r, "get", i + ""); + const s = r[e](...t); + return s === -1 || s === !1 ? r[e](...t.map(he)) : s; + }; + }), + ["push", "pop", "shift", "unshift", "splice"].forEach((e) => { + n[e] = function (...t) { + $r(); + const r = he(this)[e].apply(this, t); + return Ur(), r; + }; + }), + n + ); + } + function Ep(n) { + const e = he(this); + return Mt(e, "has", n), e.hasOwnProperty(n); + } + class kc { + constructor(e = !1, t = !1) { + (this._isReadonly = e), (this._shallow = t); + } + get(e, t, r) { + const s = this._isReadonly, + i = this._shallow; + if (t === "__v_isReactive") return !s; + if (t === "__v_isReadonly") return s; + if (t === "__v_isShallow") return i; + if (t === "__v_raw" && r === (s ? (i ? Bp : Bc) : i ? Nc : Dc).get(e)) + return e; + const o = te(e); + if (!s) { + if (o && ye(Mc, t)) return Reflect.get(Mc, t, r); + if (t === "hasOwnProperty") return Ep; + } + const a = Reflect.get(e, t, r); + return (No(t) ? Ac.has(t) : Tp(t)) || (s || Mt(e, "get", t), i) + ? a + : Be(a) + ? o && Bo(t) + ? a + : a.value + : Ie(a) + ? s + ? Fc(a) + : wi(a) + : a; + } + } + class Oc extends kc { + constructor(e = !1) { + super(!1, e); + } + set(e, t, r, s) { + let i = e[t]; + if (Hr(i) && Be(i) && !Be(r)) return !1; + if ( + !this._shallow && + (!Ti(r) && !Hr(r) && ((i = he(i)), (r = he(r))), + !te(e) && Be(i) && !Be(r)) + ) + return (i.value = r), !0; + const o = te(e) && Bo(t) ? Number(t) < e.length : ye(e, t), + a = Reflect.set(e, t, r, s); + return ( + e === he(s) && + (o ? pr(r, i) && In(e, "set", t, r) : In(e, "add", t, r)), + a + ); + } + deleteProperty(e, t) { + const r = ye(e, t); + e[t]; + const s = Reflect.deleteProperty(e, t); + return s && r && In(e, "delete", t, void 0), s; + } + has(e, t) { + const r = Reflect.has(e, t); + return (!No(t) || !Ac.has(t)) && Mt(e, "has", t), r; + } + ownKeys(e) { + return Mt(e, "iterate", te(e) ? "length" : mr), Reflect.ownKeys(e); + } + } + class Sp extends kc { + constructor(e = !1) { + super(!0, e); + } + set(e, t) { + return !0; + } + deleteProperty(e, t) { + return !0; + } + } + const Cp = new Oc(), + Ap = new Sp(), + Mp = new Oc(!0), + Yo = (n) => n, + mi = (n) => Reflect.getPrototypeOf(n); + function _i(n, e, t = !1, r = !1) { + n = n.__v_raw; + const s = he(n), + i = he(e); + t || (pr(e, i) && Mt(s, "get", e), Mt(s, "get", i)); + const { has: o } = mi(s), + a = r ? Yo : t ? Go : ds; + if (o.call(s, e)) return a(n.get(e)); + if (o.call(s, i)) return a(n.get(i)); + n !== s && n.get(e); + } + function gi(n, e = !1) { + const t = this.__v_raw, + r = he(t), + s = he(n); + return ( + e || (pr(n, s) && Mt(r, "has", n), Mt(r, "has", s)), + n === s ? t.has(n) : t.has(n) || t.has(s) + ); + } + function vi(n, e = !1) { + return ( + (n = n.__v_raw), !e && Mt(he(n), "iterate", mr), Reflect.get(n, "size", n) + ); + } + function Ic(n) { + n = he(n); + const e = he(this); + return mi(e).has.call(e, n) || (e.add(n), In(e, "add", n, n)), this; + } + function Rc(n, e) { + e = he(e); + const t = he(this), + { has: r, get: s } = mi(t); + let i = r.call(t, n); + i || ((n = he(n)), (i = r.call(t, n))); + const o = s.call(t, n); + return ( + t.set(n, e), i ? pr(e, o) && In(t, "set", n, e) : In(t, "add", n, e), this + ); + } + function Pc(n) { + const e = he(this), + { has: t, get: r } = mi(e); + let s = t.call(e, n); + s || ((n = he(n)), (s = t.call(e, n))), r && r.call(e, n); + const i = e.delete(n); + return s && In(e, "delete", n, void 0), i; + } + function Lc() { + const n = he(this), + e = n.size !== 0, + t = n.clear(); + return e && In(n, "clear", void 0, void 0), t; + } + function yi(n, e) { + return function (r, s) { + const i = this, + o = i.__v_raw, + a = he(o), + l = e ? Yo : n ? Go : ds; + return ( + !n && Mt(a, "iterate", mr), + o.forEach((c, u) => r.call(s, l(c), l(u), i)) + ); + }; + } + function bi(n, e, t) { + return function (...r) { + const s = this.__v_raw, + i = he(s), + o = Fr(i), + a = n === "entries" || (n === Symbol.iterator && o), + l = n === "keys" && o, + c = s[n](...r), + u = t ? Yo : e ? Go : ds; + return ( + !e && Mt(i, "iterate", l ? Vo : mr), + { + next() { + const { value: f, done: h } = c.next(); + return h + ? { value: f, done: h } + : { value: a ? [u(f[0]), u(f[1])] : u(f), done: h }; + }, + [Symbol.iterator]() { + return this; + }, + } + ); + }; + } + function Kn(n) { + return function (...e) { + return n === "delete" ? !1 : this; + }; + } + function kp() { + const n = { + get(i) { + return _i(this, i); + }, + get size() { + return vi(this); + }, + has: gi, + add: Ic, + set: Rc, + delete: Pc, + clear: Lc, + forEach: yi(!1, !1), + }, + e = { + get(i) { + return _i(this, i, !1, !0); + }, + get size() { + return vi(this); + }, + has: gi, + add: Ic, + set: Rc, + delete: Pc, + clear: Lc, + forEach: yi(!1, !0), + }, + t = { + get(i) { + return _i(this, i, !0); + }, + get size() { + return vi(this, !0); + }, + has(i) { + return gi.call(this, i, !0); + }, + add: Kn("add"), + set: Kn("set"), + delete: Kn("delete"), + clear: Kn("clear"), + forEach: yi(!0, !1), + }, + r = { + get(i) { + return _i(this, i, !0, !0); + }, + get size() { + return vi(this, !0); + }, + has(i) { + return gi.call(this, i, !0); + }, + add: Kn("add"), + set: Kn("set"), + delete: Kn("delete"), + clear: Kn("clear"), + forEach: yi(!0, !0), + }; + return ( + ["keys", "values", "entries", Symbol.iterator].forEach((i) => { + (n[i] = bi(i, !1, !1)), + (t[i] = bi(i, !0, !1)), + (e[i] = bi(i, !1, !0)), + (r[i] = bi(i, !0, !0)); + }), + [n, t, e, r] + ); + } + const [Op, Ip, Rp, Pp] = kp(); + function Ko(n, e) { + const t = e ? (n ? Pp : Rp) : n ? Ip : Op; + return (r, s, i) => + s === "__v_isReactive" + ? !n + : s === "__v_isReadonly" + ? n + : s === "__v_raw" + ? r + : Reflect.get(ye(t, s) && s in r ? t : r, s, i); + } + const Lp = { get: Ko(!1, !1) }, + Dp = { get: Ko(!1, !0) }, + Np = { get: Ko(!0, !1) }, + Dc = new WeakMap(), + Nc = new WeakMap(), + Bc = new WeakMap(), + Bp = new WeakMap(); + function Fp(n) { + switch (n) { + case "Object": + case "Array": + return 1; + case "Map": + case "Set": + case "WeakMap": + case "WeakSet": + return 2; + default: + return 0; + } + } + function $p(n) { + return n.__v_skip || !Object.isExtensible(n) ? 0 : Fp(lp(n)); + } + function wi(n) { + return Hr(n) ? n : Xo(n, !1, Cp, Lp, Dc); + } + function Up(n) { + return Xo(n, !1, Mp, Dp, Nc); + } + function Fc(n) { + return Xo(n, !0, Ap, Np, Bc); + } + function Xo(n, e, t, r, s) { + if (!Ie(n) || (n.__v_raw && !(e && n.__v_isReactive))) return n; + const i = s.get(n); + if (i) return i; + const o = $p(n); + if (o === 0) return n; + const a = new Proxy(n, o === 2 ? r : t); + return s.set(n, a), a; + } + function Rn(n) { + return Hr(n) ? Rn(n.__v_raw) : !!(n && n.__v_isReactive); + } + function Hr(n) { + return !!(n && n.__v_isReadonly); + } + function Ti(n) { + return !!(n && n.__v_isShallow); + } + function $c(n) { + return Rn(n) || Hr(n); + } + function he(n) { + const e = n && n.__v_raw; + return e ? he(e) : n; + } + function xi(n) { + return di(n, "__v_skip", !0), n; + } + const ds = (n) => (Ie(n) ? wi(n) : n), + Go = (n) => (Ie(n) ? Fc(n) : n); + function Uc(n) { + Yn && an && ((n = he(n)), Sc(n.dep || (n.dep = zo()))); + } + function Hc(n, e) { + n = he(n); + const t = n.dep; + t && jo(t); + } + function Be(n) { + return !!(n && n.__v_isRef === !0); + } + function Y(n) { + return Hp(n, !1); + } + function Hp(n, e) { + return Be(n) ? n : new zp(n, e); + } + class zp { + constructor(e, t) { + (this.__v_isShallow = t), + (this.dep = void 0), + (this.__v_isRef = !0), + (this._rawValue = t ? e : he(e)), + (this._value = t ? e : ds(e)); + } + get value() { + return Uc(this), this._value; + } + set value(e) { + const t = this.__v_isShallow || Ti(e) || Hr(e); + (e = t ? e : he(e)), + pr(e, this._rawValue) && + ((this._rawValue = e), (this._value = t ? e : ds(e)), Hc(this)); + } + } + function I(n) { + return Be(n) ? n.value : n; + } + const Wp = { + get: (n, e, t) => I(Reflect.get(n, e, t)), + set: (n, e, t, r) => { + const s = n[e]; + return Be(s) && !Be(t) ? ((s.value = t), !0) : Reflect.set(n, e, t, r); + }, + }; + function zc(n) { + return Rn(n) ? n : new Proxy(n, Wp); + } + function Vp(n) { + const e = te(n) ? new Array(n.length) : {}; + for (const t in n) e[t] = Wc(n, t); + return e; + } + class qp { + constructor(e, t, r) { + (this._object = e), + (this._key = t), + (this._defaultValue = r), + (this.__v_isRef = !0); + } + get value() { + const e = this._object[this._key]; + return e === void 0 ? this._defaultValue : e; + } + set value(e) { + this._object[this._key] = e; + } + get dep() { + return wp(he(this._object), this._key); + } + } + class jp { + constructor(e) { + (this._getter = e), (this.__v_isRef = !0), (this.__v_isReadonly = !0); + } + get value() { + return this._getter(); + } + } + function Yp(n, e, t) { + return Be(n) + ? n + : ie(n) + ? new jp(n) + : Ie(n) && arguments.length > 1 + ? Wc(n, e, t) + : Y(n); + } + function Wc(n, e, t) { + const r = n[e]; + return Be(r) ? r : new qp(n, e, t); + } + class Kp { + constructor(e, t, r, s) { + (this._setter = t), + (this.dep = void 0), + (this.__v_isRef = !0), + (this.__v_isReadonly = !1), + (this._dirty = !0), + (this.effect = new qo(e, () => { + this._dirty || ((this._dirty = !0), Hc(this)); + })), + (this.effect.computed = this), + (this.effect.active = this._cacheable = !s), + (this.__v_isReadonly = r); + } + get value() { + const e = he(this); + return ( + Uc(e), + (e._dirty || !e._cacheable) && + ((e._dirty = !1), (e._value = e.effect.run())), + e._value + ); + } + set value(e) { + this._setter(e); + } + } + function Xp(n, e, t = !1) { + let r, s; + const i = ie(n); + return ( + i ? ((r = n), (s = on)) : ((r = n.get), (s = n.set)), + new Kp(r, s, i || !s, t) + ); + } + function iw(n, ...e) {} + function Xn(n, e, t, r) { + let s; + try { + s = r ? n(...r) : n(); + } catch (i) { + Ei(i, e, t); + } + return s; + } + function Yt(n, e, t, r) { + if (ie(n)) { + const i = Xn(n, e, t, r); + return ( + i && + hc(i) && + i.catch((o) => { + Ei(o, e, t); + }), + i + ); + } + const s = []; + for (let i = 0; i < n.length; i++) s.push(Yt(n[i], e, t, r)); + return s; + } + function Ei(n, e, t, r = !0) { + const s = e ? e.vnode : null; + if (e) { + let i = e.parent; + const o = e.proxy, + a = t; + for (; i; ) { + const c = i.ec; + if (c) { + for (let u = 0; u < c.length; u++) if (c[u](n, o, a) === !1) return; + } + i = i.parent; + } + const l = e.appContext.config.errorHandler; + if (l) { + Xn(l, null, 10, [n, o, a]); + return; + } + } + Gp(n, t, s, r); + } + function Gp(n, e, t, r = !0) { + console.error(n); + } + let ps = !1, + Jo = !1; + const ut = []; + let mn = 0; + const zr = []; + let Pn = null, + _r = 0; + const Vc = Promise.resolve(); + let Zo = null; + function ms(n) { + const e = Zo || Vc; + return n ? e.then(this ? n.bind(this) : n) : e; + } + function Jp(n) { + let e = mn + 1, + t = ut.length; + for (; e < t; ) { + const r = (e + t) >>> 1; + _s(ut[r]) < n ? (e = r + 1) : (t = r); + } + return e; + } + function Qo(n) { + (!ut.length || !ut.includes(n, ps && n.allowRecurse ? mn + 1 : mn)) && + (n.id == null ? ut.push(n) : ut.splice(Jp(n.id), 0, n), qc()); + } + function qc() { + !ps && !Jo && ((Jo = !0), (Zo = Vc.then(Kc))); + } + function Zp(n) { + const e = ut.indexOf(n); + e > mn && ut.splice(e, 1); + } + function Qp(n) { + te(n) + ? zr.push(...n) + : (!Pn || !Pn.includes(n, n.allowRecurse ? _r + 1 : _r)) && zr.push(n), + qc(); + } + function jc(n, e = ps ? mn + 1 : 0) { + for (; e < ut.length; e++) { + const t = ut[e]; + t && t.pre && (ut.splice(e, 1), e--, t()); + } + } + function Yc(n) { + if (zr.length) { + const e = [...new Set(zr)]; + if (((zr.length = 0), Pn)) { + Pn.push(...e); + return; + } + for ( + Pn = e, Pn.sort((t, r) => _s(t) - _s(r)), _r = 0; + _r < Pn.length; + _r++ + ) + Pn[_r](); + (Pn = null), (_r = 0); + } + } + const _s = (n) => (n.id == null ? 1 / 0 : n.id), + e0 = (n, e) => { + const t = _s(n) - _s(e); + if (t === 0) { + if (n.pre && !e.pre) return -1; + if (e.pre && !n.pre) return 1; + } + return t; + }; + function Kc(n) { + (Jo = !1), (ps = !0), ut.sort(e0); + const e = on; + try { + for (mn = 0; mn < ut.length; mn++) { + const t = ut[mn]; + t && t.active !== !1 && Xn(t, null, 14); + } + } finally { + (mn = 0), + (ut.length = 0), + Yc(), + (ps = !1), + (Zo = null), + (ut.length || zr.length) && Kc(); + } + } + function t0(n, e, ...t) { + if (n.isUnmounted) return; + const r = n.vnode.props || Le; + let s = t; + const i = e.startsWith("update:"), + o = i && e.slice(7); + if (o && o in r) { + const u = `${o === "modelValue" ? "model" : o}Modifiers`, + { number: f, trim: h } = r[u] || Le; + h && (s = t.map((p) => (je(p) ? p.trim() : p))), f && (s = t.map(fp)); + } + let a, + l = r[(a = Fo(e))] || r[(a = Fo(Ft(e)))]; + !l && i && (l = r[(a = Fo(jt(e)))]), l && Yt(l, n, 6, s); + const c = r[a + "Once"]; + if (c) { + if (!n.emitted) n.emitted = {}; + else if (n.emitted[a]) return; + (n.emitted[a] = !0), Yt(c, n, 6, s); + } + } + function Xc(n, e, t = !1) { + const r = e.emitsCache, + s = r.get(n); + if (s !== void 0) return s; + const i = n.emits; + let o = {}, + a = !1; + if (!ie(n)) { + const l = (c) => { + const u = Xc(c, e, !0); + u && ((a = !0), We(o, u)); + }; + !t && e.mixins.length && e.mixins.forEach(l), + n.extends && l(n.extends), + n.mixins && n.mixins.forEach(l); + } + return !i && !a + ? (Ie(n) && r.set(n, null), null) + : (te(i) ? i.forEach((l) => (o[l] = null)) : We(o, i), + Ie(n) && r.set(n, o), + o); + } + function Si(n, e) { + return !n || !li(e) + ? !1 + : ((e = e.slice(2).replace(/Once$/, "")), + ye(n, e[0].toLowerCase() + e.slice(1)) || ye(n, jt(e)) || ye(n, e)); + } + let nt = null, + Ci = null; + function Ai(n) { + const e = nt; + return (nt = n), (Ci = (n && n.type.__scopeId) || null), e; + } + function Gc(n) { + Ci = n; + } + function Jc() { + Ci = null; + } + function Te(n, e = nt, t) { + if (!e || n._n) return n; + const r = (...s) => { + r._d && Au(-1); + const i = Ai(e); + let o; + try { + o = n(...s); + } finally { + Ai(i), r._d && Au(1); + } + return o; + }; + return (r._n = !0), (r._c = !0), (r._d = !0), r; + } + function ow() {} + function ea(n) { + const { + type: e, + vnode: t, + proxy: r, + withProxy: s, + props: i, + propsOptions: [o], + slots: a, + attrs: l, + emit: c, + render: u, + renderCache: f, + data: h, + setupState: p, + ctx: _, + inheritAttrs: d, + } = n; + let m, v; + const b = Ai(n); + try { + if (t.shapeFlag & 4) { + const T = s || r; + (m = _n(u.call(T, T, f, i, p, h, _))), (v = l); + } else { + const T = e; + (m = _n( + T.length > 1 ? T(i, { attrs: l, slots: a, emit: c }) : T(i, null) + )), + (v = e.props ? l : n0(l)); + } + } catch (T) { + (Ss.length = 0), Ei(T, n, 1), (m = V(Gt)); + } + let E = m; + if (v && d !== !1) { + const T = Object.keys(v), + { shapeFlag: S } = E; + T.length && S & 7 && (o && T.some(Lo) && (v = r0(v, o)), (E = Zn(E, v))); + } + return ( + t.dirs && + ((E = Zn(E)), (E.dirs = E.dirs ? E.dirs.concat(t.dirs) : t.dirs)), + t.transition && (E.transition = t.transition), + (m = E), + Ai(b), + m + ); + } + const n0 = (n) => { + let e; + for (const t in n) + (t === "class" || t === "style" || li(t)) && + ((e || (e = {}))[t] = n[t]); + return e; + }, + r0 = (n, e) => { + const t = {}; + for (const r in n) (!Lo(r) || !(r.slice(9) in e)) && (t[r] = n[r]); + return t; + }; + function s0(n, e, t) { + const { props: r, children: s, component: i } = n, + { props: o, children: a, patchFlag: l } = e, + c = i.emitsOptions; + if (e.dirs || e.transition) return !0; + if (t && l >= 0) { + if (l & 1024) return !0; + if (l & 16) return r ? Zc(r, o, c) : !!o; + if (l & 8) { + const u = e.dynamicProps; + for (let f = 0; f < u.length; f++) { + const h = u[f]; + if (o[h] !== r[h] && !Si(c, h)) return !0; + } + } + } else + return (s || a) && (!a || !a.$stable) + ? !0 + : r === o + ? !1 + : r + ? o + ? Zc(r, o, c) + : !0 + : !!o; + return !1; + } + function Zc(n, e, t) { + const r = Object.keys(e); + if (r.length !== Object.keys(n).length) return !0; + for (let s = 0; s < r.length; s++) { + const i = r[s]; + if (e[i] !== n[i] && !Si(t, i)) return !0; + } + return !1; + } + function i0({ vnode: n, parent: e }, t) { + for (; e && e.subTree === n; ) ((n = e.vnode).el = t), (e = e.parent); + } + const o0 = (n) => n.__isSuspense; + function a0(n, e) { + e && e.pendingBranch + ? te(n) + ? e.effects.push(...n) + : e.effects.push(n) + : Qp(n); + } + function l0(n, e) { + return ta(n, null, { flush: "post" }); + } + const Mi = {}; + function Ve(n, e, t) { + return ta(n, e, t); + } + function ta( + n, + e, + { immediate: t, deep: r, flush: s, onTrack: i, onTrigger: o } = Le + ) { + var a; + const l = bc() === ((a = Ze) == null ? void 0 : a.scope) ? Ze : null; + let c, + u = !1, + f = !1; + if ( + (Be(n) + ? ((c = () => n.value), (u = Ti(n))) + : Rn(n) + ? ((c = () => n), (r = !0)) + : te(n) + ? ((f = !0), + (u = n.some((T) => Rn(T) || Ti(T))), + (c = () => + n.map((T) => { + if (Be(T)) return T.value; + if (Rn(T)) return gr(T); + if (ie(T)) return Xn(T, l, 2); + }))) + : ie(n) + ? e + ? (c = () => Xn(n, l, 2)) + : (c = () => { + if (!(l && l.isUnmounted)) return h && h(), Yt(n, l, 3, [p]); + }) + : (c = on), + e && r) + ) { + const T = c; + c = () => gr(T()); + } + let h, + p = (T) => { + h = b.onStop = () => { + Xn(T, l, 4); + }; + }, + _; + if (As) + if ( + ((p = on), + e ? t && Yt(e, l, 3, [c(), f ? [] : void 0, p]) : c(), + s === "sync") + ) { + const T = Q0(); + _ = T.__watcherHandles || (T.__watcherHandles = []); + } else return on; + let d = f ? new Array(n.length).fill(Mi) : Mi; + const m = () => { + if (b.active) + if (e) { + const T = b.run(); + (r || u || (f ? T.some((S, k) => pr(S, d[k])) : pr(T, d))) && + (h && h(), + Yt(e, l, 3, [T, d === Mi ? void 0 : f && d[0] === Mi ? [] : d, p]), + (d = T)); + } else b.run(); + }; + m.allowRecurse = !!e; + let v; + s === "sync" + ? (v = m) + : s === "post" + ? (v = () => kt(m, l && l.suspense)) + : ((m.pre = !0), l && (m.id = l.uid), (v = () => Qo(m))); + const b = new qo(c, v); + e + ? t + ? m() + : (d = b.run()) + : s === "post" + ? kt(b.run.bind(b), l && l.suspense) + : b.run(); + const E = () => { + b.stop(), l && l.scope && Do(l.scope.effects, b); + }; + return _ && _.push(E), E; + } + function c0(n, e, t) { + const r = this.proxy, + s = je(n) ? (n.includes(".") ? Qc(r, n) : () => r[n]) : n.bind(r, r); + let i; + ie(e) ? (i = e) : ((i = e.handler), (t = e)); + const o = Ze; + Vr(this); + const a = ta(s, i.bind(r), t); + return o ? Vr(o) : wr(), a; + } + function Qc(n, e) { + const t = e.split("."); + return () => { + let r = n; + for (let s = 0; s < t.length && r; s++) r = r[t[s]]; + return r; + }; + } + function gr(n, e) { + if (!Ie(n) || n.__v_skip || ((e = e || new Set()), e.has(n))) return n; + if ((e.add(n), Be(n))) gr(n.value, e); + else if (te(n)) for (let t = 0; t < n.length; t++) gr(n[t], e); + else if (fc(n) || Fr(n)) + n.forEach((t) => { + gr(t, e); + }); + else if (pc(n)) for (const t in n) gr(n[t], e); + return n; + } + function eu(n, e) { + const t = nt; + if (t === null) return n; + const r = $i(t) || t.proxy, + s = n.dirs || (n.dirs = []); + for (let i = 0; i < e.length; i++) { + let [o, a, l, c = Le] = e[i]; + o && + (ie(o) && (o = { mounted: o, updated: o }), + o.deep && gr(a), + s.push({ + dir: o, + instance: r, + value: a, + oldValue: void 0, + arg: l, + modifiers: c, + })); + } + return n; + } + function vr(n, e, t, r) { + const s = n.dirs, + i = e && e.dirs; + for (let o = 0; o < s.length; o++) { + const a = s[o]; + i && (a.oldValue = i[o].value); + let l = a.dir[r]; + l && ($r(), Yt(l, t, 8, [n.el, a, n, e]), Ur()); + } + } + const Gn = Symbol("_leaveCb"), + ki = Symbol("_enterCb"); + function tu() { + const n = { + isMounted: !1, + isLeaving: !1, + isUnmounting: !1, + leavingVNodes: new Map(), + }; + return ( + Xt(() => { + n.isMounted = !0; + }), + bs(() => { + n.isUnmounting = !0; + }), + n + ); + } + const Kt = [Function, Array], + nu = { + mode: String, + appear: Boolean, + persisted: Boolean, + onBeforeEnter: Kt, + onEnter: Kt, + onAfterEnter: Kt, + onEnterCancelled: Kt, + onBeforeLeave: Kt, + onLeave: Kt, + onAfterLeave: Kt, + onLeaveCancelled: Kt, + onBeforeAppear: Kt, + onAppear: Kt, + onAfterAppear: Kt, + onAppearCancelled: Kt, + }, + u0 = { + name: "BaseTransition", + props: nu, + setup(n, { slots: e }) { + const t = Fi(), + r = tu(); + let s; + return () => { + const i = e.default && ra(e.default(), !0); + if (!i || !i.length) return; + let o = i[0]; + if (i.length > 1) { + for (const d of i) + if (d.type !== Gt) { + o = d; + break; + } + } + const a = he(n), + { mode: l } = a; + if (r.isLeaving) return na(o); + const c = su(o); + if (!c) return na(o); + const u = gs(c, a, r, t); + vs(c, u); + const f = t.subTree, + h = f && su(f); + let p = !1; + const { getTransitionKey: _ } = c.type; + if (_) { + const d = _(); + s === void 0 ? (s = d) : d !== s && ((s = d), (p = !0)); + } + if (h && h.type !== Gt && (!br(c, h) || p)) { + const d = gs(h, a, r, t); + if ((vs(h, d), l === "out-in")) + return ( + (r.isLeaving = !0), + (d.afterLeave = () => { + (r.isLeaving = !1), t.update.active !== !1 && t.update(); + }), + na(o) + ); + l === "in-out" && + c.type !== Gt && + (d.delayLeave = (m, v, b) => { + const E = ru(r, h); + (E[String(h.key)] = h), + (m[Gn] = () => { + v(), (m[Gn] = void 0), delete u.delayedLeave; + }), + (u.delayedLeave = b); + }); + } + return o; + }; + }, + }; + function ru(n, e) { + const { leavingVNodes: t } = n; + let r = t.get(e.type); + return r || ((r = Object.create(null)), t.set(e.type, r)), r; + } + function gs(n, e, t, r) { + const { + appear: s, + mode: i, + persisted: o = !1, + onBeforeEnter: a, + onEnter: l, + onAfterEnter: c, + onEnterCancelled: u, + onBeforeLeave: f, + onLeave: h, + onAfterLeave: p, + onLeaveCancelled: _, + onBeforeAppear: d, + onAppear: m, + onAfterAppear: v, + onAppearCancelled: b, + } = e, + E = String(n.key), + T = ru(t, n), + S = (A, y) => { + A && Yt(A, r, 9, y); + }, + k = (A, y) => { + const L = y[1]; + S(A, y), + te(A) ? A.every((U) => U.length <= 1) && L() : A.length <= 1 && L(); + }, + O = { + mode: i, + persisted: o, + beforeEnter(A) { + let y = a; + if (!t.isMounted) + if (s) y = d || a; + else return; + A[Gn] && A[Gn](!0); + const L = T[E]; + L && br(n, L) && L.el[Gn] && L.el[Gn](), S(y, [A]); + }, + enter(A) { + let y = l, + L = c, + U = u; + if (!t.isMounted) + if (s) (y = m || l), (L = v || c), (U = b || u); + else return; + let F = !1; + const K = (A[ki] = (ae) => { + F || + ((F = !0), + ae ? S(U, [A]) : S(L, [A]), + O.delayedLeave && O.delayedLeave(), + (A[ki] = void 0)); + }); + y ? k(y, [A, K]) : K(); + }, + leave(A, y) { + const L = String(n.key); + if ((A[ki] && A[ki](!0), t.isUnmounting)) return y(); + S(f, [A]); + let U = !1; + const F = (A[Gn] = (K) => { + U || + ((U = !0), + y(), + K ? S(_, [A]) : S(p, [A]), + (A[Gn] = void 0), + T[L] === n && delete T[L]); + }); + (T[L] = n), h ? k(h, [A, F]) : F(); + }, + clone(A) { + return gs(A, e, t, r); + }, + }; + return O; + } + function na(n) { + if (Oi(n)) return (n = Zn(n)), (n.children = null), n; + } + function su(n) { + return Oi(n) ? (n.children ? n.children[0] : void 0) : n; + } + function vs(n, e) { + n.shapeFlag & 6 && n.component + ? vs(n.component.subTree, e) + : n.shapeFlag & 128 + ? ((n.ssContent.transition = e.clone(n.ssContent)), + (n.ssFallback.transition = e.clone(n.ssFallback))) + : (n.transition = e); + } + function ra(n, e = !1, t) { + let r = [], + s = 0; + for (let i = 0; i < n.length; i++) { + let o = n[i]; + const a = + t == null ? o.key : String(t) + String(o.key != null ? o.key : i); + o.type === we + ? (o.patchFlag & 128 && s++, (r = r.concat(ra(o.children, e, a)))) + : (e || o.type !== Gt) && r.push(a != null ? Zn(o, { key: a }) : o); + } + if (s > 1) for (let i = 0; i < r.length; i++) r[i].patchFlag = -2; + return r; + } + /*! #__NO_SIDE_EFFECTS__ */ function de(n, e) { + return ie(n) ? (() => We({ name: n.name }, e, { setup: n }))() : n; + } + const ys = (n) => !!n.type.__asyncLoader, + Oi = (n) => n.type.__isKeepAlive; + function f0(n, e) { + iu(n, "a", e); + } + function h0(n, e) { + iu(n, "da", e); + } + function iu(n, e, t = Ze) { + const r = + n.__wdc || + (n.__wdc = () => { + let s = t; + for (; s; ) { + if (s.isDeactivated) return; + s = s.parent; + } + return n(); + }); + if ((Ii(e, r, t), t)) { + let s = t.parent; + for (; s && s.parent; ) + Oi(s.parent.vnode) && d0(r, e, t, s), (s = s.parent); + } + } + function d0(n, e, t, r) { + const s = Ii(e, n, r, !0); + ia(() => { + Do(r[e], s); + }, t); + } + function Ii(n, e, t = Ze, r = !1) { + if (t) { + const s = t[n] || (t[n] = []), + i = + e.__weh || + (e.__weh = (...o) => { + if (t.isUnmounted) return; + $r(), Vr(t); + const a = Yt(e, t, n, o); + return wr(), Ur(), a; + }); + return r ? s.unshift(i) : s.push(i), i; + } + } + const Ln = + (n) => + (e, t = Ze) => + (!As || n === "sp") && Ii(n, (...r) => e(...r), t), + ou = Ln("bm"), + Xt = Ln("m"), + p0 = Ln("bu"), + sa = Ln("u"), + bs = Ln("bum"), + ia = Ln("um"), + m0 = Ln("sp"), + _0 = Ln("rtg"), + g0 = Ln("rtc"); + function v0(n, e = Ze) { + Ii("ec", n, e); + } + const au = "components", + lu = Symbol.for("v-ndc"); + function y0(n) { + return je(n) ? b0(au, n, !1) || n : n || lu; + } + function b0(n, e, t = !0, r = !1) { + const s = nt || Ze; + if (s) { + const i = s.type; + if (n === au) { + const a = G0(i, !1); + if (a && (a === e || a === Ft(e) || a === hi(Ft(e)))) return i; + } + const o = cu(s[n] || i[n], e) || cu(s.appContext[n], e); + return !o && r ? i : o; + } + } + function cu(n, e) { + return n && (n[e] || n[Ft(e)] || n[hi(Ft(e))]); + } + function Jn(n, e, t, r) { + let s; + const i = t && t[r]; + if (te(n) || je(n)) { + s = new Array(n.length); + for (let o = 0, a = n.length; o < a; o++) + s[o] = e(n[o], o, void 0, i && i[o]); + } else if (typeof n == "number") { + s = new Array(n); + for (let o = 0; o < n; o++) s[o] = e(o + 1, o, void 0, i && i[o]); + } else if (Ie(n)) + if (n[Symbol.iterator]) + s = Array.from(n, (o, a) => e(o, a, void 0, i && i[a])); + else { + const o = Object.keys(n); + s = new Array(o.length); + for (let a = 0, l = o.length; a < l; a++) { + const c = o[a]; + s[a] = e(n[c], c, a, i && i[a]); + } + } + else s = []; + return t && (t[r] = s), s; + } + function ln(n, e, t = {}, r, s) { + if (nt.isCE || (nt.parent && ys(nt.parent) && nt.parent.isCE)) + return e !== "default" && (t.name = e), V("slot", t, r && r()); + let i = n[e]; + i && i._c && (i._d = !1), R(); + const o = i && uu(i(t)), + a = xe( + we, + { key: t.key || (o && o.key) || `_${e}` }, + o || (r ? r() : []), + o && n._ === 1 ? 64 : -2 + ); + return ( + !s && a.scopeId && (a.slotScopeIds = [a.scopeId + "-s"]), + i && i._c && (i._d = !0), + a + ); + } + function uu(n) { + return n.some((e) => + Di(e) ? !(e.type === Gt || (e.type === we && !uu(e.children))) : !0 + ) + ? n + : null; + } + const oa = (n) => (n ? (Iu(n) ? $i(n) || n.proxy : oa(n.parent)) : null), + ws = We(Object.create(null), { + $: (n) => n, + $el: (n) => n.vnode.el, + $data: (n) => n.data, + $props: (n) => n.props, + $attrs: (n) => n.attrs, + $slots: (n) => n.slots, + $refs: (n) => n.refs, + $parent: (n) => oa(n.parent), + $root: (n) => oa(n.root), + $emit: (n) => n.emit, + $options: (n) => ca(n), + $forceUpdate: (n) => n.f || (n.f = () => Qo(n.update)), + $nextTick: (n) => n.n || (n.n = ms.bind(n.proxy)), + $watch: (n) => c0.bind(n), + }), + aa = (n, e) => n !== Le && !n.__isScriptSetup && ye(n, e), + w0 = { + get({ _: n }, e) { + const { + ctx: t, + setupState: r, + data: s, + props: i, + accessCache: o, + type: a, + appContext: l, + } = n; + let c; + if (e[0] !== "$") { + const p = o[e]; + if (p !== void 0) + switch (p) { + case 1: + return r[e]; + case 2: + return s[e]; + case 4: + return t[e]; + case 3: + return i[e]; + } + else { + if (aa(r, e)) return (o[e] = 1), r[e]; + if (s !== Le && ye(s, e)) return (o[e] = 2), s[e]; + if ((c = n.propsOptions[0]) && ye(c, e)) return (o[e] = 3), i[e]; + if (t !== Le && ye(t, e)) return (o[e] = 4), t[e]; + la && (o[e] = 0); + } + } + const u = ws[e]; + let f, h; + if (u) return e === "$attrs" && Mt(n, "get", e), u(n); + if ((f = a.__cssModules) && (f = f[e])) return f; + if (t !== Le && ye(t, e)) return (o[e] = 4), t[e]; + if (((h = l.config.globalProperties), ye(h, e))) return h[e]; + }, + set({ _: n }, e, t) { + const { data: r, setupState: s, ctx: i } = n; + return aa(s, e) + ? ((s[e] = t), !0) + : r !== Le && ye(r, e) + ? ((r[e] = t), !0) + : ye(n.props, e) || (e[0] === "$" && e.slice(1) in n) + ? !1 + : ((i[e] = t), !0); + }, + has( + { + _: { + data: n, + setupState: e, + accessCache: t, + ctx: r, + appContext: s, + propsOptions: i, + }, + }, + o + ) { + let a; + return ( + !!t[o] || + (n !== Le && ye(n, o)) || + aa(e, o) || + ((a = i[0]) && ye(a, o)) || + ye(r, o) || + ye(ws, o) || + ye(s.config.globalProperties, o) + ); + }, + defineProperty(n, e, t) { + return ( + t.get != null + ? (n._.accessCache[e] = 0) + : ye(t, "value") && this.set(n, e, t.value, null), + Reflect.defineProperty(n, e, t) + ); + }, + }; + function fu(n) { + return te(n) ? n.reduce((e, t) => ((e[t] = null), e), {}) : n; + } + let la = !0; + function T0(n) { + const e = ca(n), + t = n.proxy, + r = n.ctx; + (la = !1), e.beforeCreate && hu(e.beforeCreate, n, "bc"); + const { + data: s, + computed: i, + methods: o, + watch: a, + provide: l, + inject: c, + created: u, + beforeMount: f, + mounted: h, + beforeUpdate: p, + updated: _, + activated: d, + deactivated: m, + beforeDestroy: v, + beforeUnmount: b, + destroyed: E, + unmounted: T, + render: S, + renderTracked: k, + renderTriggered: O, + errorCaptured: A, + serverPrefetch: y, + expose: L, + inheritAttrs: U, + components: F, + directives: K, + filters: ae, + } = e; + if ((c && x0(c, r, null), o)) + for (const Z in o) { + const se = o[Z]; + ie(se) && (r[Z] = se.bind(t)); + } + if (s) { + const Z = s.call(t, t); + Ie(Z) && (n.data = wi(Z)); + } + if (((la = !0), i)) + for (const Z in i) { + const se = i[Z], + et = ie(se) ? se.bind(t, t) : ie(se.get) ? se.get.bind(t, t) : on, + Ge = !ie(se) && ie(se.set) ? se.set.bind(t) : on, + ue = Qe({ get: et, set: Ge }); + Object.defineProperty(r, Z, { + enumerable: !0, + configurable: !0, + get: () => ue.value, + set: (Pe) => (ue.value = Pe), + }); + } + if (a) for (const Z in a) du(a[Z], r, t, Z); + if (l) { + const Z = ie(l) ? l.call(t) : l; + Reflect.ownKeys(Z).forEach((se) => { + Es(se, Z[se]); + }); + } + u && hu(u, n, "c"); + function ne(Z, se) { + te(se) ? se.forEach((et) => Z(et.bind(t))) : se && Z(se.bind(t)); + } + if ( + (ne(ou, f), + ne(Xt, h), + ne(p0, p), + ne(sa, _), + ne(f0, d), + ne(h0, m), + ne(v0, A), + ne(g0, k), + ne(_0, O), + ne(bs, b), + ne(ia, T), + ne(m0, y), + te(L)) + ) + if (L.length) { + const Z = n.exposed || (n.exposed = {}); + L.forEach((se) => { + Object.defineProperty(Z, se, { + get: () => t[se], + set: (et) => (t[se] = et), + }); + }); + } else n.exposed || (n.exposed = {}); + S && n.render === on && (n.render = S), + U != null && (n.inheritAttrs = U), + F && (n.components = F), + K && (n.directives = K); + } + function x0(n, e, t = on) { + te(n) && (n = ua(n)); + for (const r in n) { + const s = n[r]; + let i; + Ie(s) + ? "default" in s + ? (i = cn(s.from || r, s.default, !0)) + : (i = cn(s.from || r)) + : (i = cn(s)), + Be(i) + ? Object.defineProperty(e, r, { + enumerable: !0, + configurable: !0, + get: () => i.value, + set: (o) => (i.value = o), + }) + : (e[r] = i); + } + } + function hu(n, e, t) { + Yt(te(n) ? n.map((r) => r.bind(e.proxy)) : n.bind(e.proxy), e, t); + } + function du(n, e, t, r) { + const s = r.includes(".") ? Qc(t, r) : () => t[r]; + if (je(n)) { + const i = e[n]; + ie(i) && Ve(s, i); + } else if (ie(n)) Ve(s, n.bind(t)); + else if (Ie(n)) + if (te(n)) n.forEach((i) => du(i, e, t, r)); + else { + const i = ie(n.handler) ? n.handler.bind(t) : e[n.handler]; + ie(i) && Ve(s, i, n); + } + } + function ca(n) { + const e = n.type, + { mixins: t, extends: r } = e, + { + mixins: s, + optionsCache: i, + config: { optionMergeStrategies: o }, + } = n.appContext, + a = i.get(e); + let l; + return ( + a + ? (l = a) + : !s.length && !t && !r + ? (l = e) + : ((l = {}), + s.length && s.forEach((c) => Ri(l, c, o, !0)), + Ri(l, e, o)), + Ie(e) && i.set(e, l), + l + ); + } + function Ri(n, e, t, r = !1) { + const { mixins: s, extends: i } = e; + i && Ri(n, i, t, !0), s && s.forEach((o) => Ri(n, o, t, !0)); + for (const o in e) + if (!(r && o === "expose")) { + const a = E0[o] || (t && t[o]); + n[o] = a ? a(n[o], e[o]) : e[o]; + } + return n; + } + const E0 = { + data: pu, + props: mu, + emits: mu, + methods: Ts, + computed: Ts, + beforeCreate: Tt, + created: Tt, + beforeMount: Tt, + mounted: Tt, + beforeUpdate: Tt, + updated: Tt, + beforeDestroy: Tt, + beforeUnmount: Tt, + destroyed: Tt, + unmounted: Tt, + activated: Tt, + deactivated: Tt, + errorCaptured: Tt, + serverPrefetch: Tt, + components: Ts, + directives: Ts, + watch: C0, + provide: pu, + inject: S0, + }; + function pu(n, e) { + return e + ? n + ? function () { + return We( + ie(n) ? n.call(this, this) : n, + ie(e) ? e.call(this, this) : e + ); + } + : e + : n; + } + function S0(n, e) { + return Ts(ua(n), ua(e)); + } + function ua(n) { + if (te(n)) { + const e = {}; + for (let t = 0; t < n.length; t++) e[n[t]] = n[t]; + return e; + } + return n; + } + function Tt(n, e) { + return n ? [...new Set([].concat(n, e))] : e; + } + function Ts(n, e) { + return n ? We(Object.create(null), n, e) : e; + } + function mu(n, e) { + return n + ? te(n) && te(e) + ? [...new Set([...n, ...e])] + : We(Object.create(null), fu(n), fu(e ?? {})) + : e; + } + function C0(n, e) { + if (!n) return e; + if (!e) return n; + const t = We(Object.create(null), n); + for (const r in e) t[r] = Tt(n[r], e[r]); + return t; + } + function _u() { + return { + app: null, + config: { + isNativeTag: ip, + performance: !1, + globalProperties: {}, + optionMergeStrategies: {}, + errorHandler: void 0, + warnHandler: void 0, + compilerOptions: {}, + }, + mixins: [], + components: {}, + directives: {}, + provides: Object.create(null), + optionsCache: new WeakMap(), + propsCache: new WeakMap(), + emitsCache: new WeakMap(), + }; + } + let A0 = 0; + function M0(n, e) { + return function (r, s = null) { + ie(r) || (r = We({}, r)), s != null && !Ie(s) && (s = null); + const i = _u(), + o = new WeakSet(); + let a = !1; + const l = (i.app = { + _uid: A0++, + _component: r, + _props: s, + _container: null, + _context: i, + _instance: null, + version: em, + get config() { + return i.config; + }, + set config(c) {}, + use(c, ...u) { + return ( + o.has(c) || + (c && ie(c.install) + ? (o.add(c), c.install(l, ...u)) + : ie(c) && (o.add(c), c(l, ...u))), + l + ); + }, + mixin(c) { + return i.mixins.includes(c) || i.mixins.push(c), l; + }, + component(c, u) { + return u ? ((i.components[c] = u), l) : i.components[c]; + }, + directive(c, u) { + return u ? ((i.directives[c] = u), l) : i.directives[c]; + }, + mount(c, u, f) { + if (!a) { + const h = V(r, s); + return ( + (h.appContext = i), + u && e ? e(h, c) : n(h, c, f), + (a = !0), + (l._container = c), + (c.__vue_app__ = l), + $i(h.component) || h.component.proxy + ); + } + }, + unmount() { + a && (n(null, l._container), delete l._container.__vue_app__); + }, + provide(c, u) { + return (i.provides[c] = u), l; + }, + runWithContext(c) { + xs = l; + try { + return c(); + } finally { + xs = null; + } + }, + }); + return l; + }; + } + let xs = null; + function Es(n, e) { + if (Ze) { + let t = Ze.provides; + const r = Ze.parent && Ze.parent.provides; + r === t && (t = Ze.provides = Object.create(r)), (t[n] = e); + } + } + function cn(n, e, t = !1) { + const r = Ze || nt; + if (r || xs) { + const s = r + ? r.parent == null + ? r.vnode.appContext && r.vnode.appContext.provides + : r.parent.provides + : xs._context.provides; + if (s && n in s) return s[n]; + if (arguments.length > 1) return t && ie(e) ? e.call(r && r.proxy) : e; + } + } + function k0() { + return !!(Ze || nt || xs); + } + function O0(n, e, t, r = !1) { + const s = {}, + i = {}; + di(i, Ni, 1), (n.propsDefaults = Object.create(null)), gu(n, e, s, i); + for (const o in n.propsOptions[0]) o in s || (s[o] = void 0); + t + ? (n.props = r ? s : Up(s)) + : n.type.props + ? (n.props = s) + : (n.props = i), + (n.attrs = i); + } + function I0(n, e, t, r) { + const { + props: s, + attrs: i, + vnode: { patchFlag: o }, + } = n, + a = he(s), + [l] = n.propsOptions; + let c = !1; + if ((r || o > 0) && !(o & 16)) { + if (o & 8) { + const u = n.vnode.dynamicProps; + for (let f = 0; f < u.length; f++) { + let h = u[f]; + if (Si(n.emitsOptions, h)) continue; + const p = e[h]; + if (l) + if (ye(i, h)) p !== i[h] && ((i[h] = p), (c = !0)); + else { + const _ = Ft(h); + s[_] = fa(l, a, _, p, n, !1); + } + else p !== i[h] && ((i[h] = p), (c = !0)); + } + } + } else { + gu(n, e, s, i) && (c = !0); + let u; + for (const f in a) + (!e || (!ye(e, f) && ((u = jt(f)) === f || !ye(e, u)))) && + (l + ? t && + (t[f] !== void 0 || t[u] !== void 0) && + (s[f] = fa(l, a, f, void 0, n, !0)) + : delete s[f]); + if (i !== a) + for (const f in i) (!e || !ye(e, f)) && (delete i[f], (c = !0)); + } + c && In(n, "set", "$attrs"); + } + function gu(n, e, t, r) { + const [s, i] = n.propsOptions; + let o = !1, + a; + if (e) + for (let l in e) { + if (ui(l)) continue; + const c = e[l]; + let u; + s && ye(s, (u = Ft(l))) + ? !i || !i.includes(u) + ? (t[u] = c) + : ((a || (a = {}))[u] = c) + : Si(n.emitsOptions, l) || + ((!(l in r) || c !== r[l]) && ((r[l] = c), (o = !0))); + } + if (i) { + const l = he(t), + c = a || Le; + for (let u = 0; u < i.length; u++) { + const f = i[u]; + t[f] = fa(s, l, f, c[f], n, !ye(c, f)); + } + } + return o; + } + function fa(n, e, t, r, s, i) { + const o = n[t]; + if (o != null) { + const a = ye(o, "default"); + if (a && r === void 0) { + const l = o.default; + if (o.type !== Function && !o.skipFactory && ie(l)) { + const { propsDefaults: c } = s; + t in c ? (r = c[t]) : (Vr(s), (r = c[t] = l.call(null, e)), wr()); + } else r = l; + } + o[0] && + (i && !a ? (r = !1) : o[1] && (r === "" || r === jt(t)) && (r = !0)); + } + return r; + } + function vu(n, e, t = !1) { + const r = e.propsCache, + s = r.get(n); + if (s) return s; + const i = n.props, + o = {}, + a = []; + let l = !1; + if (!ie(n)) { + const u = (f) => { + l = !0; + const [h, p] = vu(f, e, !0); + We(o, h), p && a.push(...p); + }; + !t && e.mixins.length && e.mixins.forEach(u), + n.extends && u(n.extends), + n.mixins && n.mixins.forEach(u); + } + if (!i && !l) return Ie(n) && r.set(n, Br), Br; + if (te(i)) + for (let u = 0; u < i.length; u++) { + const f = Ft(i[u]); + yu(f) && (o[f] = Le); + } + else if (i) + for (const u in i) { + const f = Ft(u); + if (yu(f)) { + const h = i[u], + p = (o[f] = te(h) || ie(h) ? { type: h } : We({}, h)); + if (p) { + const _ = Tu(Boolean, p.type), + d = Tu(String, p.type); + (p[0] = _ > -1), + (p[1] = d < 0 || _ < d), + (_ > -1 || ye(p, "default")) && a.push(f); + } + } + } + const c = [o, a]; + return Ie(n) && r.set(n, c), c; + } + function yu(n) { + return n[0] !== "$"; + } + function bu(n) { + const e = n && n.toString().match(/^\s*(function|class) (\w+)/); + return e ? e[2] : n === null ? "null" : ""; + } + function wu(n, e) { + return bu(n) === bu(e); + } + function Tu(n, e) { + return te(e) ? e.findIndex((t) => wu(t, n)) : ie(e) && wu(e, n) ? 0 : -1; + } + const xu = (n) => n[0] === "_" || n === "$stable", + ha = (n) => (te(n) ? n.map(_n) : [_n(n)]), + R0 = (n, e, t) => { + if (e._n) return e; + const r = Te((...s) => ha(e(...s)), t); + return (r._c = !1), r; + }, + Eu = (n, e, t) => { + const r = n._ctx; + for (const s in n) { + if (xu(s)) continue; + const i = n[s]; + if (ie(i)) e[s] = R0(s, i, r); + else if (i != null) { + const o = ha(i); + e[s] = () => o; + } + } + }, + Su = (n, e) => { + const t = ha(e); + n.slots.default = () => t; + }, + P0 = (n, e) => { + if (n.vnode.shapeFlag & 32) { + const t = e._; + t ? ((n.slots = he(e)), di(e, "_", t)) : Eu(e, (n.slots = {})); + } else (n.slots = {}), e && Su(n, e); + di(n.slots, Ni, 1); + }, + L0 = (n, e, t) => { + const { vnode: r, slots: s } = n; + let i = !0, + o = Le; + if (r.shapeFlag & 32) { + const a = e._; + a + ? t && a === 1 + ? (i = !1) + : (We(s, e), !t && a === 1 && delete s._) + : ((i = !e.$stable), Eu(e, s)), + (o = e); + } else e && (Su(n, e), (o = { default: 1 })); + if (i) for (const a in s) !xu(a) && o[a] == null && delete s[a]; + }; + function da(n, e, t, r, s = !1) { + if (te(n)) { + n.forEach((h, p) => da(h, e && (te(e) ? e[p] : e), t, r, s)); + return; + } + if (ys(r) && !s) return; + const i = r.shapeFlag & 4 ? $i(r.component) || r.component.proxy : r.el, + o = s ? null : i, + { i: a, r: l } = n, + c = e && e.r, + u = a.refs === Le ? (a.refs = {}) : a.refs, + f = a.setupState; + if ( + (c != null && + c !== l && + (je(c) + ? ((u[c] = null), ye(f, c) && (f[c] = null)) + : Be(c) && (c.value = null)), + ie(l)) + ) + Xn(l, a, 12, [o, u]); + else { + const h = je(l), + p = Be(l); + if (h || p) { + const _ = () => { + if (n.f) { + const d = h ? (ye(f, l) ? f[l] : u[l]) : l.value; + s + ? te(d) && Do(d, i) + : te(d) + ? d.includes(i) || d.push(i) + : h + ? ((u[l] = [i]), ye(f, l) && (f[l] = u[l])) + : ((l.value = [i]), n.k && (u[n.k] = l.value)); + } else + h + ? ((u[l] = o), ye(f, l) && (f[l] = o)) + : p && ((l.value = o), n.k && (u[n.k] = o)); + }; + o ? ((_.id = -1), kt(_, t)) : _(); + } + } + } + const kt = a0; + function D0(n) { + return N0(n); + } + function N0(n, e) { + const t = Ho(); + t.__VUE__ = !0; + const { + insert: r, + remove: s, + patchProp: i, + createElement: o, + createText: a, + createComment: l, + setText: c, + setElementText: u, + parentNode: f, + nextSibling: h, + setScopeId: p = on, + insertStaticContent: _, + } = n, + d = ( + g, + x, + M, + N = null, + B = null, + C = null, + $ = !1, + D = null, + H = !!x.dynamicChildren + ) => { + if (g === x) return; + g && !br(g, x) && ((N = Ee(g)), Pe(g, B, C, !0), (g = null)), + x.patchFlag === -2 && ((H = !1), (x.dynamicChildren = null)); + const { type: P, ref: G, shapeFlag: X } = x; + switch (P) { + case Pi: + m(g, x, M, N); + break; + case Gt: + v(g, x, M, N); + break; + case Li: + g == null && b(x, M, N, $); + break; + case we: + F(g, x, M, N, B, C, $, D, H); + break; + default: + X & 1 + ? S(g, x, M, N, B, C, $, D, H) + : X & 6 + ? K(g, x, M, N, B, C, $, D, H) + : (X & 64 || X & 128) && P.process(g, x, M, N, B, C, $, D, H, Ae); + } + G != null && B && da(G, g && g.ref, C, x || g, !x); + }, + m = (g, x, M, N) => { + if (g == null) r((x.el = a(x.children)), M, N); + else { + const B = (x.el = g.el); + x.children !== g.children && c(B, x.children); + } + }, + v = (g, x, M, N) => { + g == null ? r((x.el = l(x.children || "")), M, N) : (x.el = g.el); + }, + b = (g, x, M, N) => { + [g.el, g.anchor] = _(g.children, x, M, N, g.el, g.anchor); + }, + E = ({ el: g, anchor: x }, M, N) => { + let B; + for (; g && g !== x; ) (B = h(g)), r(g, M, N), (g = B); + r(x, M, N); + }, + T = ({ el: g, anchor: x }) => { + let M; + for (; g && g !== x; ) (M = h(g)), s(g), (g = M); + s(x); + }, + S = (g, x, M, N, B, C, $, D, H) => { + ($ = $ || x.type === "svg"), + g == null ? k(x, M, N, B, C, $, D, H) : y(g, x, B, C, $, D, H); + }, + k = (g, x, M, N, B, C, $, D) => { + let H, P; + const { type: G, props: X, shapeFlag: j, transition: J, dirs: re } = g; + if ( + ((H = g.el = o(g.type, C, X && X.is, X)), + j & 8 + ? u(H, g.children) + : j & 16 && + A(g.children, H, null, N, B, C && G !== "foreignObject", $, D), + re && vr(g, null, N, "created"), + O(H, g, g.scopeId, $, N), + X) + ) { + for (const ge in X) + ge !== "value" && + !ui(ge) && + i(H, ge, null, X[ge], C, g.children, N, B, le); + "value" in X && i(H, "value", null, X.value), + (P = X.onVnodeBeforeMount) && gn(P, N, g); + } + re && vr(g, null, N, "beforeMount"); + const _e = (!B || (B && !B.pendingBranch)) && J && !J.persisted; + _e && J.beforeEnter(H), + r(H, x, M), + ((P = X && X.onVnodeMounted) || _e || re) && + kt(() => { + P && gn(P, N, g), + _e && J.enter(H), + re && vr(g, null, N, "mounted"); + }, B); + }, + O = (g, x, M, N, B) => { + if ((M && p(g, M), N)) for (let C = 0; C < N.length; C++) p(g, N[C]); + if (B) { + let C = B.subTree; + if (x === C) { + const $ = B.vnode; + O(g, $, $.scopeId, $.slotScopeIds, B.parent); + } + } + }, + A = (g, x, M, N, B, C, $, D, H = 0) => { + for (let P = H; P < g.length; P++) { + const G = (g[P] = D ? er(g[P]) : _n(g[P])); + d(null, G, x, M, N, B, C, $, D); + } + }, + y = (g, x, M, N, B, C, $) => { + const D = (x.el = g.el); + let { patchFlag: H, dynamicChildren: P, dirs: G } = x; + H |= g.patchFlag & 16; + const X = g.props || Le, + j = x.props || Le; + let J; + M && yr(M, !1), + (J = j.onVnodeBeforeUpdate) && gn(J, M, x, g), + G && vr(x, g, M, "beforeUpdate"), + M && yr(M, !0); + const re = B && x.type !== "foreignObject"; + if ( + (P + ? L(g.dynamicChildren, P, D, M, N, re, C) + : $ || se(g, x, D, null, M, N, re, C, !1), + H > 0) + ) { + if (H & 16) U(D, x, X, j, M, N, B); + else if ( + (H & 2 && X.class !== j.class && i(D, "class", null, j.class, B), + H & 4 && i(D, "style", X.style, j.style, B), + H & 8) + ) { + const _e = x.dynamicProps; + for (let ge = 0; ge < _e.length; ge++) { + const Oe = _e[ge], + At = X[Oe], + Wn = j[Oe]; + (Wn !== At || Oe === "value") && + i(D, Oe, At, Wn, B, g.children, M, N, le); + } + } + H & 1 && g.children !== x.children && u(D, x.children); + } else !$ && P == null && U(D, x, X, j, M, N, B); + ((J = j.onVnodeUpdated) || G) && + kt(() => { + J && gn(J, M, x, g), G && vr(x, g, M, "updated"); + }, N); + }, + L = (g, x, M, N, B, C, $) => { + for (let D = 0; D < x.length; D++) { + const H = g[D], + P = x[D], + G = + H.el && (H.type === we || !br(H, P) || H.shapeFlag & 70) + ? f(H.el) + : M; + d(H, P, G, null, N, B, C, $, !0); + } + }, + U = (g, x, M, N, B, C, $) => { + if (M !== N) { + if (M !== Le) + for (const D in M) + !ui(D) && + !(D in N) && + i(g, D, M[D], null, $, x.children, B, C, le); + for (const D in N) { + if (ui(D)) continue; + const H = N[D], + P = M[D]; + H !== P && D !== "value" && i(g, D, P, H, $, x.children, B, C, le); + } + "value" in N && i(g, "value", M.value, N.value); + } + }, + F = (g, x, M, N, B, C, $, D, H) => { + const P = (x.el = g ? g.el : a("")), + G = (x.anchor = g ? g.anchor : a("")); + let { patchFlag: X, dynamicChildren: j, slotScopeIds: J } = x; + J && (D = D ? D.concat(J) : J), + g == null + ? (r(P, M, N), r(G, M, N), A(x.children, M, G, B, C, $, D, H)) + : X > 0 && X & 64 && j && g.dynamicChildren + ? (L(g.dynamicChildren, j, M, B, C, $, D), + (x.key != null || (B && x === B.subTree)) && Cu(g, x, !0)) + : se(g, x, M, G, B, C, $, D, H); + }, + K = (g, x, M, N, B, C, $, D, H) => { + (x.slotScopeIds = D), + g == null + ? x.shapeFlag & 512 + ? B.ctx.activate(x, M, N, $, H) + : ae(x, M, N, B, C, $, H) + : be(g, x, H); + }, + ae = (g, x, M, N, B, C, $) => { + const D = (g.component = q0(g, N, B)); + if ((Oi(g) && (D.ctx.renderer = Ae), j0(D), D.asyncDep)) { + if ((B && B.registerDep(D, ne), !g.el)) { + const H = (D.subTree = V(Gt)); + v(null, H, x, M); + } + return; + } + ne(D, g, x, M, B, C, $); + }, + be = (g, x, M) => { + const N = (x.component = g.component); + if (s0(g, x, M)) + if (N.asyncDep && !N.asyncResolved) { + Z(N, x, M); + return; + } else (N.next = x), Zp(N.update), N.update(); + else (x.el = g.el), (N.vnode = x); + }, + ne = (g, x, M, N, B, C, $) => { + const D = () => { + if (g.isMounted) { + let { next: G, bu: X, u: j, parent: J, vnode: re } = g, + _e = G, + ge; + yr(g, !1), + G ? ((G.el = re.el), Z(g, G, $)) : (G = re), + X && $o(X), + (ge = G.props && G.props.onVnodeBeforeUpdate) && + gn(ge, J, G, re), + yr(g, !0); + const Oe = ea(g), + At = g.subTree; + (g.subTree = Oe), + d(At, Oe, f(At.el), Ee(At), g, B, C), + (G.el = Oe.el), + _e === null && i0(g, Oe.el), + j && kt(j, B), + (ge = G.props && G.props.onVnodeUpdated) && + kt(() => gn(ge, J, G, re), B); + } else { + let G; + const { el: X, props: j } = x, + { bm: J, m: re, parent: _e } = g, + ge = ys(x); + if ( + (yr(g, !1), + J && $o(J), + !ge && (G = j && j.onVnodeBeforeMount) && gn(G, _e, x), + yr(g, !0), + X && rn) + ) { + const Oe = () => { + (g.subTree = ea(g)), rn(X, g.subTree, g, B, null); + }; + ge + ? x.type.__asyncLoader().then(() => !g.isUnmounted && Oe()) + : Oe(); + } else { + const Oe = (g.subTree = ea(g)); + d(null, Oe, M, N, g, B, C), (x.el = Oe.el); + } + if ((re && kt(re, B), !ge && (G = j && j.onVnodeMounted))) { + const Oe = x; + kt(() => gn(G, _e, Oe), B); + } + (x.shapeFlag & 256 || + (_e && ys(_e.vnode) && _e.vnode.shapeFlag & 256)) && + g.a && + kt(g.a, B), + (g.isMounted = !0), + (x = M = N = null); + } + }, + H = (g.effect = new qo(D, () => Qo(P), g.scope)), + P = (g.update = () => H.run()); + (P.id = g.uid), yr(g, !0), P(); + }, + Z = (g, x, M) => { + x.component = g; + const N = g.vnode.props; + (g.vnode = x), + (g.next = null), + I0(g, x.props, N, M), + L0(g, x.children, M), + $r(), + jc(), + Ur(); + }, + se = (g, x, M, N, B, C, $, D, H = !1) => { + const P = g && g.children, + G = g ? g.shapeFlag : 0, + X = x.children, + { patchFlag: j, shapeFlag: J } = x; + if (j > 0) { + if (j & 128) { + Ge(P, X, M, N, B, C, $, D, H); + return; + } else if (j & 256) { + et(P, X, M, N, B, C, $, D, H); + return; + } + } + J & 8 + ? (G & 16 && le(P, B, C), X !== P && u(M, X)) + : G & 16 + ? J & 16 + ? Ge(P, X, M, N, B, C, $, D, H) + : le(P, B, C, !0) + : (G & 8 && u(M, ""), J & 16 && A(X, M, N, B, C, $, D, H)); + }, + et = (g, x, M, N, B, C, $, D, H) => { + (g = g || Br), (x = x || Br); + const P = g.length, + G = x.length, + X = Math.min(P, G); + let j; + for (j = 0; j < X; j++) { + const J = (x[j] = H ? er(x[j]) : _n(x[j])); + d(g[j], J, M, null, B, C, $, D, H); + } + P > G ? le(g, B, C, !0, !1, X) : A(x, M, N, B, C, $, D, H, X); + }, + Ge = (g, x, M, N, B, C, $, D, H) => { + let P = 0; + const G = x.length; + let X = g.length - 1, + j = G - 1; + for (; P <= X && P <= j; ) { + const J = g[P], + re = (x[P] = H ? er(x[P]) : _n(x[P])); + if (br(J, re)) d(J, re, M, null, B, C, $, D, H); + else break; + P++; + } + for (; P <= X && P <= j; ) { + const J = g[X], + re = (x[j] = H ? er(x[j]) : _n(x[j])); + if (br(J, re)) d(J, re, M, null, B, C, $, D, H); + else break; + X--, j--; + } + if (P > X) { + if (P <= j) { + const J = j + 1, + re = J < G ? x[J].el : N; + for (; P <= j; ) + d(null, (x[P] = H ? er(x[P]) : _n(x[P])), M, re, B, C, $, D, H), + P++; + } + } else if (P > j) for (; P <= X; ) Pe(g[P], B, C, !0), P++; + else { + const J = P, + re = P, + _e = new Map(); + for (P = re; P <= j; P++) { + const Je = (x[P] = H ? er(x[P]) : _n(x[P])); + Je.key != null && _e.set(Je.key, P); + } + let ge, + Oe = 0; + const At = j - re + 1; + let Wn = !1, + Nr = 0; + const Mn = new Array(At); + for (P = 0; P < At; P++) Mn[P] = 0; + for (P = J; P <= X; P++) { + const Je = g[P]; + if (Oe >= At) { + Pe(Je, B, C, !0); + continue; + } + let Nt; + if (Je.key != null) Nt = _e.get(Je.key); + else + for (ge = re; ge <= j; ge++) + if (Mn[ge - re] === 0 && br(Je, x[ge])) { + Nt = ge; + break; + } + Nt === void 0 + ? Pe(Je, B, C, !0) + : ((Mn[Nt - re] = P + 1), + Nt >= Nr ? (Nr = Nt) : (Wn = !0), + d(Je, x[Nt], M, null, B, C, $, D, H), + Oe++); + } + const sn = Wn ? B0(Mn) : Br; + for (ge = sn.length - 1, P = At - 1; P >= 0; P--) { + const Je = re + P, + Nt = x[Je], + ls = Je + 1 < G ? x[Je + 1].el : N; + Mn[P] === 0 + ? d(null, Nt, M, ls, B, C, $, D, H) + : Wn && (ge < 0 || P !== sn[ge] ? ue(Nt, M, ls, 2) : ge--); + } + } + }, + ue = (g, x, M, N, B = null) => { + const { el: C, type: $, transition: D, children: H, shapeFlag: P } = g; + if (P & 6) { + ue(g.component.subTree, x, M, N); + return; + } + if (P & 128) { + g.suspense.move(x, M, N); + return; + } + if (P & 64) { + $.move(g, x, M, Ae); + return; + } + if ($ === we) { + r(C, x, M); + for (let X = 0; X < H.length; X++) ue(H[X], x, M, N); + r(g.anchor, x, M); + return; + } + if ($ === Li) { + E(g, x, M); + return; + } + if (N !== 2 && P & 1 && D) + if (N === 0) D.beforeEnter(C), r(C, x, M), kt(() => D.enter(C), B); + else { + const { leave: X, delayLeave: j, afterLeave: J } = D, + re = () => r(C, x, M), + _e = () => { + X(C, () => { + re(), J && J(); + }); + }; + j ? j(C, re, _e) : _e(); + } + else r(C, x, M); + }, + Pe = (g, x, M, N = !1, B = !1) => { + const { + type: C, + props: $, + ref: D, + children: H, + dynamicChildren: P, + shapeFlag: G, + patchFlag: X, + dirs: j, + } = g; + if ((D != null && da(D, null, M, g, !0), G & 256)) { + x.ctx.deactivate(g); + return; + } + const J = G & 1 && j, + re = !ys(g); + let _e; + if ((re && (_e = $ && $.onVnodeBeforeUnmount) && gn(_e, x, g), G & 6)) + q(g.component, M, N); + else { + if (G & 128) { + g.suspense.unmount(M, N); + return; + } + J && vr(g, null, x, "beforeUnmount"), + G & 64 + ? g.type.remove(g, x, M, B, Ae, N) + : P && (C !== we || (X > 0 && X & 64)) + ? le(P, x, M, !1, !0) + : ((C === we && X & 384) || (!B && G & 16)) && le(H, x, M), + N && ke(g); + } + ((re && (_e = $ && $.onVnodeUnmounted)) || J) && + kt(() => { + _e && gn(_e, x, g), J && vr(g, null, x, "unmounted"); + }, M); + }, + ke = (g) => { + const { type: x, el: M, anchor: N, transition: B } = g; + if (x === we) { + it(M, N); + return; + } + if (x === Li) { + T(g); + return; + } + const C = () => { + s(M), B && !B.persisted && B.afterLeave && B.afterLeave(); + }; + if (g.shapeFlag & 1 && B && !B.persisted) { + const { leave: $, delayLeave: D } = B, + H = () => $(M, C); + D ? D(g.el, C, H) : H(); + } else C(); + }, + it = (g, x) => { + let M; + for (; g !== x; ) (M = h(g)), s(g), (g = M); + s(x); + }, + q = (g, x, M) => { + const { bum: N, scope: B, update: C, subTree: $, um: D } = g; + N && $o(N), + B.stop(), + C && ((C.active = !1), Pe($, g, x, M)), + D && kt(D, x), + kt(() => { + g.isUnmounted = !0; + }, x), + x && + x.pendingBranch && + !x.isUnmounted && + g.asyncDep && + !g.asyncResolved && + g.suspenseId === x.pendingId && + (x.deps--, x.deps === 0 && x.resolve()); + }, + le = (g, x, M, N = !1, B = !1, C = 0) => { + for (let $ = C; $ < g.length; $++) Pe(g[$], x, M, N, B); + }, + Ee = (g) => + g.shapeFlag & 6 + ? Ee(g.component.subTree) + : g.shapeFlag & 128 + ? g.suspense.next() + : h(g.anchor || g.el), + Ue = (g, x, M) => { + g == null + ? x._vnode && Pe(x._vnode, null, null, !0) + : d(x._vnode || null, g, x, null, null, null, M), + jc(), + Yc(), + (x._vnode = g); + }, + Ae = { + p: d, + um: Pe, + m: ue, + r: ke, + mt: ae, + mc: A, + pc: se, + pbc: L, + n: Ee, + o: n, + }; + let pn, rn; + return ( + e && ([pn, rn] = e(Ae)), + { render: Ue, hydrate: pn, createApp: M0(Ue, pn) } + ); + } + function yr({ effect: n, update: e }, t) { + n.allowRecurse = e.allowRecurse = t; + } + function Cu(n, e, t = !1) { + const r = n.children, + s = e.children; + if (te(r) && te(s)) + for (let i = 0; i < r.length; i++) { + const o = r[i]; + let a = s[i]; + a.shapeFlag & 1 && + !a.dynamicChildren && + ((a.patchFlag <= 0 || a.patchFlag === 32) && + ((a = s[i] = er(s[i])), (a.el = o.el)), + t || Cu(o, a)), + a.type === Pi && (a.el = o.el); + } + } + function B0(n) { + const e = n.slice(), + t = [0]; + let r, s, i, o, a; + const l = n.length; + for (r = 0; r < l; r++) { + const c = n[r]; + if (c !== 0) { + if (((s = t[t.length - 1]), n[s] < c)) { + (e[r] = s), t.push(r); + continue; + } + for (i = 0, o = t.length - 1; i < o; ) + (a = (i + o) >> 1), n[t[a]] < c ? (i = a + 1) : (o = a); + c < n[t[i]] && (i > 0 && (e[r] = t[i - 1]), (t[i] = r)); + } + } + for (i = t.length, o = t[i - 1]; i-- > 0; ) (t[i] = o), (o = e[o]); + return t; + } + const F0 = (n) => n.__isTeleport, + we = Symbol.for("v-fgt"), + Pi = Symbol.for("v-txt"), + Gt = Symbol.for("v-cmt"), + Li = Symbol.for("v-stc"), + Ss = []; + let un = null; + function R(n = !1) { + Ss.push((un = n ? null : [])); + } + function $0() { + Ss.pop(), (un = Ss[Ss.length - 1] || null); + } + let Cs = 1; + function Au(n) { + Cs += n; + } + function Mu(n) { + return ( + (n.dynamicChildren = Cs > 0 ? un || Br : null), + $0(), + Cs > 0 && un && un.push(n), + n + ); + } + function W(n, e, t, r, s, i) { + return Mu(oe(n, e, t, r, s, i, !0)); + } + function xe(n, e, t, r, s) { + return Mu(V(n, e, t, r, s, !0)); + } + function Di(n) { + return n ? n.__v_isVNode === !0 : !1; + } + function br(n, e) { + return n.type === e.type && n.key === e.key; + } + const Ni = "__vInternal", + ku = ({ key: n }) => n ?? null, + Bi = ({ ref: n, ref_key: e, ref_for: t }) => ( + typeof n == "number" && (n = "" + n), + n != null + ? je(n) || Be(n) || ie(n) + ? { i: nt, r: n, k: e, f: !!t } + : n + : null + ); + function oe( + n, + e = null, + t = null, + r = 0, + s = null, + i = n === we ? 0 : 1, + o = !1, + a = !1 + ) { + const l = { + __v_isVNode: !0, + __v_skip: !0, + type: n, + props: e, + key: e && ku(e), + ref: e && Bi(e), + scopeId: Ci, + slotScopeIds: null, + children: t, + component: null, + suspense: null, + ssContent: null, + ssFallback: null, + dirs: null, + transition: null, + el: null, + anchor: null, + target: null, + targetAnchor: null, + staticCount: 0, + shapeFlag: i, + patchFlag: r, + dynamicProps: s, + dynamicChildren: null, + appContext: null, + ctx: nt, + }; + return ( + a + ? (pa(l, t), i & 128 && n.normalize(l)) + : t && (l.shapeFlag |= je(t) ? 8 : 16), + Cs > 0 && + !o && + un && + (l.patchFlag > 0 || i & 6) && + l.patchFlag !== 32 && + un.push(l), + l + ); + } + const V = U0; + function U0(n, e = null, t = null, r = 0, s = null, i = !1) { + if (((!n || n === lu) && (n = Gt), Di(n))) { + const a = Zn(n, e, !0); + return ( + t && pa(a, t), + Cs > 0 && + !i && + un && + (a.shapeFlag & 6 ? (un[un.indexOf(n)] = a) : un.push(a)), + (a.patchFlag |= -2), + a + ); + } + if ((J0(n) && (n = n.__vccOpts), e)) { + e = H0(e); + let { class: a, style: l } = e; + a && !je(a) && (e.class = wt(a)), + Ie(l) && ($c(l) && !te(l) && (l = We({}, l)), (e.style = On(l))); + } + const o = je(n) ? 1 : o0(n) ? 128 : F0(n) ? 64 : Ie(n) ? 4 : ie(n) ? 2 : 0; + return oe(n, e, t, r, s, o, i, !0); + } + function H0(n) { + return n ? ($c(n) || Ni in n ? We({}, n) : n) : null; + } + function Zn(n, e, t = !1) { + const { props: r, ref: s, patchFlag: i, children: o } = n, + a = e ? z0(r || {}, e) : r; + return { + __v_isVNode: !0, + __v_skip: !0, + type: n.type, + props: a, + key: a && ku(a), + ref: + e && e.ref + ? t && s + ? te(s) + ? s.concat(Bi(e)) + : [s, Bi(e)] + : Bi(e) + : s, + scopeId: n.scopeId, + slotScopeIds: n.slotScopeIds, + children: o, + target: n.target, + targetAnchor: n.targetAnchor, + staticCount: n.staticCount, + shapeFlag: n.shapeFlag, + patchFlag: e && n.type !== we ? (i === -1 ? 16 : i | 16) : i, + dynamicProps: n.dynamicProps, + dynamicChildren: n.dynamicChildren, + appContext: n.appContext, + dirs: n.dirs, + transition: n.transition, + component: n.component, + suspense: n.suspense, + ssContent: n.ssContent && Zn(n.ssContent), + ssFallback: n.ssFallback && Zn(n.ssFallback), + el: n.el, + anchor: n.anchor, + ctx: n.ctx, + ce: n.ce, + }; + } + function Qn(n = " ", e = 0) { + return V(Pi, null, n, e); + } + function Se(n = "", e = !1) { + return e ? (R(), xe(Gt, null, n)) : V(Gt, null, n); + } + function _n(n) { + return n == null || typeof n == "boolean" + ? V(Gt) + : te(n) + ? V(we, null, n.slice()) + : typeof n == "object" + ? er(n) + : V(Pi, null, String(n)); + } + function er(n) { + return (n.el === null && n.patchFlag !== -1) || n.memo ? n : Zn(n); + } + function pa(n, e) { + let t = 0; + const { shapeFlag: r } = n; + if (e == null) e = null; + else if (te(e)) t = 16; + else if (typeof e == "object") + if (r & 65) { + const s = e.default; + s && (s._c && (s._d = !1), pa(n, s()), s._c && (s._d = !0)); + return; + } else { + t = 32; + const s = e._; + !s && !(Ni in e) + ? (e._ctx = nt) + : s === 3 && + nt && + (nt.slots._ === 1 ? (e._ = 1) : ((e._ = 2), (n.patchFlag |= 1024))); + } + else + ie(e) + ? ((e = { default: e, _ctx: nt }), (t = 32)) + : ((e = String(e)), r & 64 ? ((t = 16), (e = [Qn(e)])) : (t = 8)); + (n.children = e), (n.shapeFlag |= t); + } + function z0(...n) { + const e = {}; + for (let t = 0; t < n.length; t++) { + const r = n[t]; + for (const s in r) + if (s === "class") + e.class !== r.class && (e.class = wt([e.class, r.class])); + else if (s === "style") e.style = On([e.style, r.style]); + else if (li(s)) { + const i = e[s], + o = r[s]; + o && + i !== o && + !(te(i) && i.includes(o)) && + (e[s] = i ? [].concat(i, o) : o); + } else s !== "" && (e[s] = r[s]); + } + return e; + } + function gn(n, e, t, r = null) { + Yt(n, e, 7, [t, r]); + } + const W0 = _u(); + let V0 = 0; + function q0(n, e, t) { + const r = n.type, + s = (e ? e.appContext : n.appContext) || W0, + i = { + uid: V0++, + vnode: n, + type: r, + parent: e, + appContext: s, + root: null, + next: null, + subTree: null, + effect: null, + update: null, + scope: new vc(!0), + render: null, + proxy: null, + exposed: null, + exposeProxy: null, + withProxy: null, + provides: e ? e.provides : Object.create(s.provides), + accessCache: null, + renderCache: [], + components: null, + directives: null, + propsOptions: vu(r, s), + emitsOptions: Xc(r, s), + emit: null, + emitted: null, + propsDefaults: Le, + inheritAttrs: r.inheritAttrs, + ctx: Le, + data: Le, + props: Le, + attrs: Le, + slots: Le, + refs: Le, + setupState: Le, + setupContext: null, + attrsProxy: null, + slotsProxy: null, + suspense: t, + suspenseId: t ? t.pendingId : 0, + asyncDep: null, + asyncResolved: !1, + isMounted: !1, + isUnmounted: !1, + isDeactivated: !1, + bc: null, + c: null, + bm: null, + m: null, + bu: null, + u: null, + um: null, + bum: null, + da: null, + a: null, + rtg: null, + rtc: null, + ec: null, + sp: null, + }; + return ( + (i.ctx = { _: i }), + (i.root = e ? e.root : i), + (i.emit = t0.bind(null, i)), + n.ce && n.ce(i), + i + ); + } + let Ze = null; + const Fi = () => Ze || nt; + let ma, + Wr, + Ou = "__VUE_INSTANCE_SETTERS__"; + (Wr = Ho()[Ou]) || (Wr = Ho()[Ou] = []), + Wr.push((n) => (Ze = n)), + (ma = (n) => { + Wr.length > 1 ? Wr.forEach((e) => e(n)) : Wr[0](n); + }); + const Vr = (n) => { + ma(n), n.scope.on(); + }, + wr = () => { + Ze && Ze.scope.off(), ma(null); + }; + function Iu(n) { + return n.vnode.shapeFlag & 4; + } + let As = !1; + function j0(n, e = !1) { + As = e; + const { props: t, children: r } = n.vnode, + s = Iu(n); + O0(n, t, s, e), P0(n, r); + const i = s ? Y0(n, e) : void 0; + return (As = !1), i; + } + function Y0(n, e) { + const t = n.type; + (n.accessCache = Object.create(null)), (n.proxy = xi(new Proxy(n.ctx, w0))); + const { setup: r } = t; + if (r) { + const s = (n.setupContext = r.length > 1 ? X0(n) : null); + Vr(n), $r(); + const i = Xn(r, n, 0, [n.props, s]); + if ((Ur(), wr(), hc(i))) { + if ((i.then(wr, wr), e)) + return i + .then((o) => { + Ru(n, o, e); + }) + .catch((o) => { + Ei(o, n, 0); + }); + n.asyncDep = i; + } else Ru(n, i, e); + } else Lu(n, e); + } + function Ru(n, e, t) { + ie(e) + ? n.type.__ssrInlineRender + ? (n.ssrRender = e) + : (n.render = e) + : Ie(e) && (n.setupState = zc(e)), + Lu(n, t); + } + let Pu; + function Lu(n, e, t) { + const r = n.type; + if (!n.render) { + if (!e && Pu && !r.render) { + const s = r.template || ca(n).template; + if (s) { + const { isCustomElement: i, compilerOptions: o } = + n.appContext.config, + { delimiters: a, compilerOptions: l } = r, + c = We(We({ isCustomElement: i, delimiters: a }, o), l); + r.render = Pu(s, c); + } + } + n.render = r.render || on; + } + { + Vr(n), $r(); + try { + T0(n); + } finally { + Ur(), wr(); + } + } + } + function K0(n) { + return ( + n.attrsProxy || + (n.attrsProxy = new Proxy(n.attrs, { + get(e, t) { + return Mt(n, "get", "$attrs"), e[t]; + }, + })) + ); + } + function X0(n) { + const e = (t) => { + n.exposed = t || {}; + }; + return { + get attrs() { + return K0(n); + }, + slots: n.slots, + emit: n.emit, + expose: e, + }; + } + function $i(n) { + if (n.exposed) + return ( + n.exposeProxy || + (n.exposeProxy = new Proxy(zc(xi(n.exposed)), { + get(e, t) { + if (t in e) return e[t]; + if (t in ws) return ws[t](n); + }, + has(e, t) { + return t in e || t in ws; + }, + })) + ); + } + function G0(n, e = !0) { + return ie(n) ? n.displayName || n.name : n.name || (e && n.__name); + } + function J0(n) { + return ie(n) && "__vccOpts" in n; + } + const Qe = (n, e) => Xp(n, e, As); + function Du(n, e, t) { + const r = arguments.length; + return r === 2 + ? Ie(e) && !te(e) + ? Di(e) + ? V(n, null, [e]) + : V(n, e) + : V(n, null, e) + : (r > 3 + ? (t = Array.prototype.slice.call(arguments, 2)) + : r === 3 && Di(t) && (t = [t]), + V(n, e, t)); + } + const Z0 = Symbol.for("v-scx"), + Q0 = () => cn(Z0), + em = "3.3.6", + tm = "http://www.w3.org/2000/svg", + Tr = typeof document < "u" ? document : null, + Nu = Tr && Tr.createElement("template"), + nm = { + insert: (n, e, t) => { + e.insertBefore(n, t || null); + }, + remove: (n) => { + const e = n.parentNode; + e && e.removeChild(n); + }, + createElement: (n, e, t, r) => { + const s = e + ? Tr.createElementNS(tm, n) + : Tr.createElement(n, t ? { is: t } : void 0); + return ( + n === "select" && + r && + r.multiple != null && + s.setAttribute("multiple", r.multiple), + s + ); + }, + createText: (n) => Tr.createTextNode(n), + createComment: (n) => Tr.createComment(n), + setText: (n, e) => { + n.nodeValue = e; + }, + setElementText: (n, e) => { + n.textContent = e; + }, + parentNode: (n) => n.parentNode, + nextSibling: (n) => n.nextSibling, + querySelector: (n) => Tr.querySelector(n), + setScopeId(n, e) { + n.setAttribute(e, ""); + }, + insertStaticContent(n, e, t, r, s, i) { + const o = t ? t.previousSibling : e.lastChild; + if (s && (s === i || s.nextSibling)) + for ( + ; + e.insertBefore(s.cloneNode(!0), t), + !(s === i || !(s = s.nextSibling)); + + ); + else { + Nu.innerHTML = r ? `${n}` : n; + const a = Nu.content; + if (r) { + const l = a.firstChild; + for (; l.firstChild; ) a.appendChild(l.firstChild); + a.removeChild(l); + } + e.insertBefore(a, t); + } + return [ + o ? o.nextSibling : e.firstChild, + t ? t.previousSibling : e.lastChild, + ]; + }, + }, + tr = "transition", + Ms = "animation", + qr = Symbol("_vtc"), + vn = (n, { slots: e }) => Du(u0, $u(n), e); + vn.displayName = "Transition"; + const Bu = { + name: String, + type: String, + css: { type: Boolean, default: !0 }, + duration: [String, Number, Object], + enterFromClass: String, + enterActiveClass: String, + enterToClass: String, + appearFromClass: String, + appearActiveClass: String, + appearToClass: String, + leaveFromClass: String, + leaveActiveClass: String, + leaveToClass: String, + }, + rm = (vn.props = We({}, nu, Bu)), + xr = (n, e = []) => { + te(n) ? n.forEach((t) => t(...e)) : n && n(...e); + }, + Fu = (n) => (n ? (te(n) ? n.some((e) => e.length > 1) : n.length > 1) : !1); + function $u(n) { + const e = {}; + for (const F in n) F in Bu || (e[F] = n[F]); + if (n.css === !1) return e; + const { + name: t = "v", + type: r, + duration: s, + enterFromClass: i = `${t}-enter-from`, + enterActiveClass: o = `${t}-enter-active`, + enterToClass: a = `${t}-enter-to`, + appearFromClass: l = i, + appearActiveClass: c = o, + appearToClass: u = a, + leaveFromClass: f = `${t}-leave-from`, + leaveActiveClass: h = `${t}-leave-active`, + leaveToClass: p = `${t}-leave-to`, + } = n, + _ = sm(s), + d = _ && _[0], + m = _ && _[1], + { + onBeforeEnter: v, + onEnter: b, + onEnterCancelled: E, + onLeave: T, + onLeaveCancelled: S, + onBeforeAppear: k = v, + onAppear: O = b, + onAppearCancelled: A = E, + } = e, + y = (F, K, ae) => { + nr(F, K ? u : a), nr(F, K ? c : o), ae && ae(); + }, + L = (F, K) => { + (F._isLeaving = !1), nr(F, f), nr(F, p), nr(F, h), K && K(); + }, + U = (F) => (K, ae) => { + const be = F ? O : b, + ne = () => y(K, F, ae); + xr(be, [K, ne]), + Uu(() => { + nr(K, F ? l : i), Dn(K, F ? u : a), Fu(be) || Hu(K, r, d, ne); + }); + }; + return We(e, { + onBeforeEnter(F) { + xr(v, [F]), Dn(F, i), Dn(F, o); + }, + onBeforeAppear(F) { + xr(k, [F]), Dn(F, l), Dn(F, c); + }, + onEnter: U(!1), + onAppear: U(!0), + onLeave(F, K) { + F._isLeaving = !0; + const ae = () => L(F, K); + Dn(F, f), + qu(), + Dn(F, h), + Uu(() => { + F._isLeaving && (nr(F, f), Dn(F, p), Fu(T) || Hu(F, r, m, ae)); + }), + xr(T, [F, ae]); + }, + onEnterCancelled(F) { + y(F, !1), xr(E, [F]); + }, + onAppearCancelled(F) { + y(F, !0), xr(A, [F]); + }, + onLeaveCancelled(F) { + L(F), xr(S, [F]); + }, + }); + } + function sm(n) { + if (n == null) return null; + if (Ie(n)) return [_a(n.enter), _a(n.leave)]; + { + const e = _a(n); + return [e, e]; + } + } + function _a(n) { + return Uo(n); + } + function Dn(n, e) { + e.split(/\s+/).forEach((t) => t && n.classList.add(t)), + (n[qr] || (n[qr] = new Set())).add(e); + } + function nr(n, e) { + e.split(/\s+/).forEach((r) => r && n.classList.remove(r)); + const t = n[qr]; + t && (t.delete(e), t.size || (n[qr] = void 0)); + } + function Uu(n) { + requestAnimationFrame(() => { + requestAnimationFrame(n); + }); + } + let im = 0; + function Hu(n, e, t, r) { + const s = (n._endId = ++im), + i = () => { + s === n._endId && r(); + }; + if (t) return setTimeout(i, t); + const { type: o, timeout: a, propCount: l } = zu(n, e); + if (!o) return r(); + const c = o + "end"; + let u = 0; + const f = () => { + n.removeEventListener(c, h), i(); + }, + h = (p) => { + p.target === n && ++u >= l && f(); + }; + setTimeout(() => { + u < l && f(); + }, a + 1), + n.addEventListener(c, h); + } + function zu(n, e) { + const t = window.getComputedStyle(n), + r = (_) => (t[_] || "").split(", "), + s = r(`${tr}Delay`), + i = r(`${tr}Duration`), + o = Wu(s, i), + a = r(`${Ms}Delay`), + l = r(`${Ms}Duration`), + c = Wu(a, l); + let u = null, + f = 0, + h = 0; + e === tr + ? o > 0 && ((u = tr), (f = o), (h = i.length)) + : e === Ms + ? c > 0 && ((u = Ms), (f = c), (h = l.length)) + : ((f = Math.max(o, c)), + (u = f > 0 ? (o > c ? tr : Ms) : null), + (h = u ? (u === tr ? i.length : l.length) : 0)); + const p = + u === tr && /\b(transform|all)(,|$)/.test(r(`${tr}Property`).toString()); + return { type: u, timeout: f, propCount: h, hasTransform: p }; + } + function Wu(n, e) { + for (; n.length < e.length; ) n = n.concat(n); + return Math.max(...e.map((t, r) => Vu(t) + Vu(n[r]))); + } + function Vu(n) { + return n === "auto" ? 0 : Number(n.slice(0, -1).replace(",", ".")) * 1e3; + } + function qu() { + return document.body.offsetHeight; + } + function om(n, e, t) { + const r = n[qr]; + r && (e = (e ? [e, ...r] : [...r]).join(" ")), + e == null + ? n.removeAttribute("class") + : t + ? n.setAttribute("class", e) + : (n.className = e); + } + const am = Symbol("_vod"); + function lm(n, e, t) { + const r = n.style, + s = je(t); + if (t && !s) { + if (e && !je(e)) for (const i in e) t[i] == null && ga(r, i, ""); + for (const i in t) ga(r, i, t[i]); + } else { + const i = r.display; + s ? e !== t && (r.cssText = t) : e && n.removeAttribute("style"), + am in n && (r.display = i); + } + } + const ju = /\s*!important$/; + function ga(n, e, t) { + if (te(t)) t.forEach((r) => ga(n, e, r)); + else if ((t == null && (t = ""), e.startsWith("--"))) n.setProperty(e, t); + else { + const r = cm(n, e); + ju.test(t) + ? n.setProperty(jt(r), t.replace(ju, ""), "important") + : (n[r] = t); + } + } + const Yu = ["Webkit", "Moz", "ms"], + va = {}; + function cm(n, e) { + const t = va[e]; + if (t) return t; + let r = Ft(e); + if (r !== "filter" && r in n) return (va[e] = r); + r = hi(r); + for (let s = 0; s < Yu.length; s++) { + const i = Yu[s] + r; + if (i in n) return (va[e] = i); + } + return e; + } + const Ku = "http://www.w3.org/1999/xlink"; + function um(n, e, t, r, s) { + if (r && e.startsWith("xlink:")) + t == null + ? n.removeAttributeNS(Ku, e.slice(6, e.length)) + : n.setAttributeNS(Ku, e, t); + else { + const i = _p(e); + t == null || (i && !_c(t)) + ? n.removeAttribute(e) + : n.setAttribute(e, i ? "" : t); + } + } + function fm(n, e, t, r, s, i, o) { + if (e === "innerHTML" || e === "textContent") { + r && o(r, s, i), (n[e] = t ?? ""); + return; + } + const a = n.tagName; + if (e === "value" && a !== "PROGRESS" && !a.includes("-")) { + n._value = t; + const c = a === "OPTION" ? n.getAttribute("value") : n.value, + u = t ?? ""; + c !== u && (n.value = u), t == null && n.removeAttribute(e); + return; + } + let l = !1; + if (t === "" || t == null) { + const c = typeof n[e]; + c === "boolean" + ? (t = _c(t)) + : t == null && c === "string" + ? ((t = ""), (l = !0)) + : c === "number" && ((t = 0), (l = !0)); + } + try { + n[e] = t; + } catch {} + l && n.removeAttribute(e); + } + function hm(n, e, t, r) { + n.addEventListener(e, t, r); + } + function dm(n, e, t, r) { + n.removeEventListener(e, t, r); + } + const Xu = Symbol("_vei"); + function pm(n, e, t, r, s = null) { + const i = n[Xu] || (n[Xu] = {}), + o = i[e]; + if (r && o) o.value = r; + else { + const [a, l] = mm(e); + if (r) { + const c = (i[e] = vm(r, s)); + hm(n, a, c, l); + } else o && (dm(n, a, o, l), (i[e] = void 0)); + } + } + const Gu = /(?:Once|Passive|Capture)$/; + function mm(n) { + let e; + if (Gu.test(n)) { + e = {}; + let r; + for (; (r = n.match(Gu)); ) + (n = n.slice(0, n.length - r[0].length)), (e[r[0].toLowerCase()] = !0); + } + return [n[2] === ":" ? n.slice(3) : jt(n.slice(2)), e]; + } + let ya = 0; + const _m = Promise.resolve(), + gm = () => ya || (_m.then(() => (ya = 0)), (ya = Date.now())); + function vm(n, e) { + const t = (r) => { + if (!r._vts) r._vts = Date.now(); + else if (r._vts <= t.attached) return; + Yt(ym(r, t.value), e, 5, [r]); + }; + return (t.value = n), (t.attached = gm()), t; + } + function ym(n, e) { + if (te(e)) { + const t = n.stopImmediatePropagation; + return ( + (n.stopImmediatePropagation = () => { + t.call(n), (n._stopped = !0); + }), + e.map((r) => (s) => !s._stopped && r && r(s)) + ); + } else return e; + } + const Ju = /^on[a-z]/, + bm = (n, e, t, r, s = !1, i, o, a, l) => { + e === "class" + ? om(n, r, s) + : e === "style" + ? lm(n, t, r) + : li(e) + ? Lo(e) || pm(n, e, t, r, o) + : ( + e[0] === "." + ? ((e = e.slice(1)), !0) + : e[0] === "^" + ? ((e = e.slice(1)), !1) + : wm(n, e, r, s) + ) + ? fm(n, e, r, i, o, a, l) + : (e === "true-value" + ? (n._trueValue = r) + : e === "false-value" && (n._falseValue = r), + um(n, e, r, s)); + }; + function wm(n, e, t, r) { + return r + ? !!( + e === "innerHTML" || + e === "textContent" || + (e in n && Ju.test(e) && ie(t)) + ) + : e === "spellcheck" || + e === "draggable" || + e === "translate" || + e === "form" || + (e === "list" && n.tagName === "INPUT") || + (e === "type" && n.tagName === "TEXTAREA") || + (Ju.test(e) && je(t)) + ? !1 + : e in n; + } + /*! #__NO_SIDE_EFFECTS__ */ function Tm(n, e) { + const t = de(n); + class r extends ba { + constructor(i) { + super(t, i, e); + } + } + return (r.def = t), r; + } + const xm = typeof HTMLElement < "u" ? HTMLElement : class {}; + class ba extends xm { + constructor(e, t = {}, r) { + super(), + (this._def = e), + (this._props = t), + (this._instance = null), + (this._connected = !1), + (this._resolved = !1), + (this._numberProps = null), + (this._ob = null), + this.shadowRoot && r + ? r(this._createVNode(), this.shadowRoot) + : (this.attachShadow({ mode: "open" }), + this._def.__asyncLoader || this._resolveProps(this._def)); + } + connectedCallback() { + (this._connected = !0), + this._instance || + (this._resolved ? this._update() : this._resolveDef()); + } + disconnectedCallback() { + (this._connected = !1), + this._ob && (this._ob.disconnect(), (this._ob = null)), + ms(() => { + this._connected || + (rf(null, this.shadowRoot), (this._instance = null)); + }); + } + _resolveDef() { + this._resolved = !0; + for (let r = 0; r < this.attributes.length; r++) + this._setAttr(this.attributes[r].name); + (this._ob = new MutationObserver((r) => { + for (const s of r) this._setAttr(s.attributeName); + })), + this._ob.observe(this, { attributes: !0 }); + const e = (r, s = !1) => { + const { props: i, styles: o } = r; + let a; + if (i && !te(i)) + for (const l in i) { + const c = i[l]; + (c === Number || (c && c.type === Number)) && + (l in this._props && (this._props[l] = Uo(this._props[l])), + ((a || (a = Object.create(null)))[Ft(l)] = !0)); + } + (this._numberProps = a), + s && this._resolveProps(r), + this._applyStyles(o), + this._update(); + }, + t = this._def.__asyncLoader; + t ? t().then((r) => e(r, !0)) : e(this._def); + } + _resolveProps(e) { + const { props: t } = e, + r = te(t) ? t : Object.keys(t || {}); + for (const s of Object.keys(this)) + s[0] !== "_" && r.includes(s) && this._setProp(s, this[s], !0, !1); + for (const s of r.map(Ft)) + Object.defineProperty(this, s, { + get() { + return this._getProp(s); + }, + set(i) { + this._setProp(s, i); + }, + }); + } + _setAttr(e) { + let t = this.getAttribute(e); + const r = Ft(e); + this._numberProps && this._numberProps[r] && (t = Uo(t)), + this._setProp(r, t, !1); + } + _getProp(e) { + return this._props[e]; + } + _setProp(e, t, r = !0, s = !0) { + t !== this._props[e] && + ((this._props[e] = t), + s && this._instance && this._update(), + r && + (t === !0 + ? this.setAttribute(jt(e), "") + : typeof t == "string" || typeof t == "number" + ? this.setAttribute(jt(e), t + "") + : t || this.removeAttribute(jt(e)))); + } + _update() { + rf(this._createVNode(), this.shadowRoot); + } + _createVNode() { + const e = V(this._def, We({}, this._props)); + return ( + this._instance || + (e.ce = (t) => { + (this._instance = t), (t.isCE = !0); + const r = (i, o) => { + this.dispatchEvent(new CustomEvent(i, { detail: o })); + }; + t.emit = (i, ...o) => { + r(i, o), jt(i) !== i && r(jt(i), o); + }; + let s = this; + for (; (s = s && (s.parentNode || s.host)); ) + if (s instanceof ba) { + (t.parent = s._instance), (t.provides = s._instance.provides); + break; + } + }), + e + ); + } + _applyStyles(e) { + e && + e.forEach((t) => { + const r = document.createElement("style"); + (r.textContent = t), this.shadowRoot.appendChild(r); + }); + } + } + function Em(n) { + const e = Fi(); + if (!e) return; + const t = (e.ut = (s = n(e.proxy)) => { + Array.from( + document.querySelectorAll(`[data-v-owner="${e.uid}"]`) + ).forEach((i) => Ta(i, s)); + }), + r = () => { + const s = n(e.proxy); + wa(e.subTree, s), t(s); + }; + l0(r), + Xt(() => { + const s = new MutationObserver(r); + s.observe(e.subTree.el.parentNode, { childList: !0 }), + ia(() => s.disconnect()); + }); + } + function wa(n, e) { + if (n.shapeFlag & 128) { + const t = n.suspense; + (n = t.activeBranch), + t.pendingBranch && + !t.isHydrating && + t.effects.push(() => { + wa(t.activeBranch, e); + }); + } + for (; n.component; ) n = n.component.subTree; + if (n.shapeFlag & 1 && n.el) Ta(n.el, e); + else if (n.type === we) n.children.forEach((t) => wa(t, e)); + else if (n.type === Li) { + let { el: t, anchor: r } = n; + for (; t && (Ta(t, e), t !== r); ) t = t.nextSibling; + } + } + function Ta(n, e) { + if (n.nodeType === 1) { + const t = n.style; + for (const r in e) t.setProperty(`--${r}`, e[r]); + } + } + const Zu = new WeakMap(), + Qu = new WeakMap(), + Ui = Symbol("_moveCb"), + ef = Symbol("_enterCb"), + tf = { + name: "TransitionGroup", + props: We({}, rm, { tag: String, moveClass: String }), + setup(n, { slots: e }) { + const t = Fi(), + r = tu(); + let s, i; + return ( + sa(() => { + if (!s.length) return; + const o = n.moveClass || `${n.name || "v"}-move`; + if (!km(s[0].el, t.vnode.el, o)) return; + s.forEach(Cm), s.forEach(Am); + const a = s.filter(Mm); + qu(), + a.forEach((l) => { + const c = l.el, + u = c.style; + Dn(c, o), + (u.transform = u.webkitTransform = u.transitionDuration = ""); + const f = (c[Ui] = (h) => { + (h && h.target !== c) || + ((!h || /transform$/.test(h.propertyName)) && + (c.removeEventListener("transitionend", f), + (c[Ui] = null), + nr(c, o))); + }); + c.addEventListener("transitionend", f); + }); + }), + () => { + const o = he(n), + a = $u(o); + let l = o.tag || we; + (s = i), (i = e.default ? ra(e.default()) : []); + for (let c = 0; c < i.length; c++) { + const u = i[c]; + u.key != null && vs(u, gs(u, a, r, t)); + } + if (s) + for (let c = 0; c < s.length; c++) { + const u = s[c]; + vs(u, gs(u, a, r, t)), Zu.set(u, u.el.getBoundingClientRect()); + } + return V(l, null, i); + } + ); + }, + }, + Sm = (n) => delete n.mode; + tf.props; + const xa = tf; + function Cm(n) { + const e = n.el; + e[Ui] && e[Ui](), e[ef] && e[ef](); + } + function Am(n) { + Qu.set(n, n.el.getBoundingClientRect()); + } + function Mm(n) { + const e = Zu.get(n), + t = Qu.get(n), + r = e.left - t.left, + s = e.top - t.top; + if (r || s) { + const i = n.el.style; + return ( + (i.transform = i.webkitTransform = `translate(${r}px,${s}px)`), + (i.transitionDuration = "0s"), + n + ); + } + } + function km(n, e, t) { + const r = n.cloneNode(), + s = n[qr]; + s && + s.forEach((a) => { + a.split(/\s+/).forEach((l) => l && r.classList.remove(l)); + }), + t.split(/\s+/).forEach((a) => a && r.classList.add(a)), + (r.style.display = "none"); + const i = e.nodeType === 1 ? e : e.parentNode; + i.appendChild(r); + const { hasTransform: o } = zu(r); + return i.removeChild(r), o; + } + const Om = ["ctrl", "shift", "alt", "meta"], + Im = { + stop: (n) => n.stopPropagation(), + prevent: (n) => n.preventDefault(), + self: (n) => n.target !== n.currentTarget, + ctrl: (n) => !n.ctrlKey, + shift: (n) => !n.shiftKey, + alt: (n) => !n.altKey, + meta: (n) => !n.metaKey, + left: (n) => "button" in n && n.button !== 0, + middle: (n) => "button" in n && n.button !== 1, + right: (n) => "button" in n && n.button !== 2, + exact: (n, e) => Om.some((t) => n[`${t}Key`] && !e.includes(t)), + }, + Hi = + (n, e) => + (t, ...r) => { + for (let s = 0; s < e.length; s++) { + const i = Im[e[s]]; + if (i && i(t, e)) return; + } + return n(t, ...r); + }, + Rm = { + esc: "escape", + space: " ", + up: "arrow-up", + left: "arrow-left", + right: "arrow-right", + down: "arrow-down", + delete: "backspace", + }, + Pm = (n, e) => (t) => { + if (!("key" in t)) return; + const r = jt(t.key); + if (e.some((s) => s === r || Rm[s] === r)) return n(t); + }, + Lm = We({ patchProp: bm }, nm); + let nf; + function Dm() { + return nf || (nf = D0(Lm)); + } + const rf = (...n) => { + Dm().render(...n); + }; + var Nm = !1; + /*! + * pinia v2.2.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */ let sf; + const ks = (n) => (sf = n), + of = Symbol(); + function Ea(n) { + return ( + n && + typeof n == "object" && + Object.prototype.toString.call(n) === "[object Object]" && + typeof n.toJSON != "function" + ); + } + var Os; + (function (n) { + (n.direct = "direct"), + (n.patchObject = "patch object"), + (n.patchFunction = "patch function"); + })(Os || (Os = {})); + function Bm() { + const n = yc(!0), + e = n.run(() => Y({})); + let t = [], + r = []; + const s = xi({ + install(i) { + ks(s), + (s._a = i), + i.provide(of, s), + (i.config.globalProperties.$pinia = s), + r.forEach((o) => t.push(o)), + (r = []); + }, + use(i) { + return !this._a && !Nm ? r.push(i) : t.push(i), this; + }, + _p: t, + _a: null, + _e: n, + _s: new Map(), + state: e, + }); + return s; + } + const af = () => {}; + function lf(n, e, t, r = af) { + n.push(e); + const s = () => { + const i = n.indexOf(e); + i > -1 && (n.splice(i, 1), r()); + }; + return !t && bc() && vp(s), s; + } + function jr(n, ...e) { + n.slice().forEach((t) => { + t(...e); + }); + } + const Fm = (n) => n(), + cf = Symbol(), + Sa = Symbol(); + function Ca(n, e) { + n instanceof Map && e instanceof Map + ? e.forEach((t, r) => n.set(r, t)) + : n instanceof Set && e instanceof Set && e.forEach(n.add, n); + for (const t in e) { + if (!e.hasOwnProperty(t)) continue; + const r = e[t], + s = n[t]; + Ea(s) && Ea(r) && n.hasOwnProperty(t) && !Be(r) && !Rn(r) + ? (n[t] = Ca(s, r)) + : (n[t] = r); + } + return n; + } + const $m = Symbol(); + function Um(n) { + return !Ea(n) || !n.hasOwnProperty($m); + } + const { assign: rr } = Object; + function Hm(n) { + return !!(Be(n) && n.effect); + } + function zm(n, e, t, r) { + const { state: s, actions: i, getters: o } = e, + a = t.state.value[n]; + let l; + function c() { + a || (t.state.value[n] = s ? s() : {}); + const u = Vp(t.state.value[n]); + return rr( + u, + i, + Object.keys(o || {}).reduce( + (f, h) => ( + (f[h] = xi( + Qe(() => { + ks(t); + const p = t._s.get(n); + return o[h].call(p, p); + }) + )), + f + ), + {} + ) + ); + } + return (l = uf(n, c, e, t, r, !0)), l; + } + function uf(n, e, t = {}, r, s, i) { + let o; + const a = rr({ actions: {} }, t), + l = { deep: !0 }; + let c, + u, + f = [], + h = [], + p; + const _ = r.state.value[n]; + !i && !_ && (r.state.value[n] = {}), Y({}); + let d; + function m(A) { + let y; + (c = u = !1), + typeof A == "function" + ? (A(r.state.value[n]), + (y = { type: Os.patchFunction, storeId: n, events: p })) + : (Ca(r.state.value[n], A), + (y = { type: Os.patchObject, payload: A, storeId: n, events: p })); + const L = (d = Symbol()); + ms().then(() => { + d === L && (c = !0); + }), + (u = !0), + jr(f, y, r.state.value[n]); + } + const v = i + ? function () { + const { state: y } = t, + L = y ? y() : {}; + this.$patch((U) => { + rr(U, L); + }); + } + : af; + function b() { + o.stop(), (f = []), (h = []), r._s.delete(n); + } + const E = (A, y = "") => { + if (cf in A) return (A[Sa] = y), A; + const L = function () { + ks(r); + const U = Array.from(arguments), + F = [], + K = []; + function ae(Z) { + F.push(Z); + } + function be(Z) { + K.push(Z); + } + jr(h, { args: U, name: L[Sa], store: S, after: ae, onError: be }); + let ne; + try { + ne = A.apply(this && this.$id === n ? this : S, U); + } catch (Z) { + throw (jr(K, Z), Z); + } + return ne instanceof Promise + ? ne + .then((Z) => (jr(F, Z), Z)) + .catch((Z) => (jr(K, Z), Promise.reject(Z))) + : (jr(F, ne), ne); + }; + return (L[cf] = !0), (L[Sa] = y), L; + }, + T = { + _p: r, + $id: n, + $onAction: lf.bind(null, h), + $patch: m, + $reset: v, + $subscribe(A, y = {}) { + const L = lf(f, A, y.detached, () => U()), + U = o.run(() => + Ve( + () => r.state.value[n], + (F) => { + (y.flush === "sync" ? u : c) && + A({ storeId: n, type: Os.direct, events: p }, F); + }, + rr({}, l, y) + ) + ); + return L; + }, + $dispose: b, + }, + S = wi(T); + r._s.set(n, S); + const O = ((r._a && r._a.runWithContext) || Fm)(() => + r._e.run(() => (o = yc()).run(() => e({ action: E }))) + ); + for (const A in O) { + const y = O[A]; + if ((Be(y) && !Hm(y)) || Rn(y)) + i || + (_ && Um(y) && (Be(y) ? (y.value = _[A]) : Ca(y, _[A])), + (r.state.value[n][A] = y)); + else if (typeof y == "function") { + const L = E(y, A); + (O[A] = L), (a.actions[A] = y); + } + } + return ( + rr(S, O), + rr(he(S), O), + Object.defineProperty(S, "$state", { + get: () => r.state.value[n], + set: (A) => { + m((y) => { + rr(y, A); + }); + }, + }), + r._p.forEach((A) => { + rr( + S, + o.run(() => A({ store: S, app: r._a, pinia: r, options: a })) + ); + }), + _ && i && t.hydrate && t.hydrate(S.$state, _), + (c = !0), + (u = !0), + S + ); + } + function zi(n, e, t) { + let r, s; + const i = typeof e == "function"; + typeof n == "string" ? ((r = n), (s = i ? t : e)) : ((s = n), (r = n.id)); + function o(a, l) { + const c = k0(); + return ( + (a = a || (c ? cn(of, null) : null)), + a && ks(a), + (a = sf), + a._s.has(r) || (i ? uf(r, e, s, a) : zm(r, s, a)), + a._s.get(r) + ); + } + return (o.$id = r), o; + } + function ve(n) { + { + n = he(n); + const e = {}; + for (const t in n) { + const r = n[t]; + (Be(r) || Rn(r)) && (e[t] = Yp(n, t)); + } + return e; + } + } + const at = { + hostname: window.ivasMessengerSettings.domain, + port: window.ivasMessengerSettings.port, + token: window.ivasMessengerSettings.token, + branch: window.ivasMessengerSettings.branch ?? "lts", + userId: localStorage.getItem("ivasUserId") || null, + userToken: localStorage.getItem("ivasUserToken") || null, + fullscreen: window.ivasMessengerSettings.fullscreen, + }; + function lt(n, e) { + Wm(n) && (n = "100%"); + var t = Vm(n); + return ( + (n = e === 360 ? n : Math.min(e, Math.max(0, parseFloat(n)))), + t && (n = parseInt(String(n * e), 10) / 100), + Math.abs(n - e) < 1e-6 + ? 1 + : (e === 360 + ? (n = (n < 0 ? (n % e) + e : n % e) / parseFloat(String(e))) + : (n = (n % e) / parseFloat(String(e))), + n) + ); + } + function Wi(n) { + return Math.min(1, Math.max(0, n)); + } + function Wm(n) { + return typeof n == "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1; + } + function Vm(n) { + return typeof n == "string" && n.indexOf("%") !== -1; + } + function ff(n) { + return (n = parseFloat(n)), (isNaN(n) || n < 0 || n > 1) && (n = 1), n; + } + function Vi(n) { + return n <= 1 ? "".concat(Number(n) * 100, "%") : n; + } + function Er(n) { + return n.length === 1 ? "0" + n : String(n); + } + function qm(n, e, t) { + return { r: lt(n, 255) * 255, g: lt(e, 255) * 255, b: lt(t, 255) * 255 }; + } + function hf(n, e, t) { + (n = lt(n, 255)), (e = lt(e, 255)), (t = lt(t, 255)); + var r = Math.max(n, e, t), + s = Math.min(n, e, t), + i = 0, + o = 0, + a = (r + s) / 2; + if (r === s) (o = 0), (i = 0); + else { + var l = r - s; + switch (((o = a > 0.5 ? l / (2 - r - s) : l / (r + s)), r)) { + case n: + i = (e - t) / l + (e < t ? 6 : 0); + break; + case e: + i = (t - n) / l + 2; + break; + case t: + i = (n - e) / l + 4; + break; + } + i /= 6; + } + return { h: i, s: o, l: a }; + } + function Aa(n, e, t) { + return ( + t < 0 && (t += 1), + t > 1 && (t -= 1), + t < 1 / 6 + ? n + (e - n) * (6 * t) + : t < 1 / 2 + ? e + : t < 2 / 3 + ? n + (e - n) * (2 / 3 - t) * 6 + : n + ); + } + function jm(n, e, t) { + var r, s, i; + if (((n = lt(n, 360)), (e = lt(e, 100)), (t = lt(t, 100)), e === 0)) + (s = t), (i = t), (r = t); + else { + var o = t < 0.5 ? t * (1 + e) : t + e - t * e, + a = 2 * t - o; + (r = Aa(a, o, n + 1 / 3)), (s = Aa(a, o, n)), (i = Aa(a, o, n - 1 / 3)); + } + return { r: r * 255, g: s * 255, b: i * 255 }; + } + function df(n, e, t) { + (n = lt(n, 255)), (e = lt(e, 255)), (t = lt(t, 255)); + var r = Math.max(n, e, t), + s = Math.min(n, e, t), + i = 0, + o = r, + a = r - s, + l = r === 0 ? 0 : a / r; + if (r === s) i = 0; + else { + switch (r) { + case n: + i = (e - t) / a + (e < t ? 6 : 0); + break; + case e: + i = (t - n) / a + 2; + break; + case t: + i = (n - e) / a + 4; + break; + } + i /= 6; + } + return { h: i, s: l, v: o }; + } + function Ym(n, e, t) { + (n = lt(n, 360) * 6), (e = lt(e, 100)), (t = lt(t, 100)); + var r = Math.floor(n), + s = n - r, + i = t * (1 - e), + o = t * (1 - s * e), + a = t * (1 - (1 - s) * e), + l = r % 6, + c = [t, o, i, i, a, t][l], + u = [a, t, t, o, i, i][l], + f = [i, i, a, t, t, o][l]; + return { r: c * 255, g: u * 255, b: f * 255 }; + } + function pf(n, e, t, r) { + var s = [ + Er(Math.round(n).toString(16)), + Er(Math.round(e).toString(16)), + Er(Math.round(t).toString(16)), + ]; + return r && + s[0].startsWith(s[0].charAt(1)) && + s[1].startsWith(s[1].charAt(1)) && + s[2].startsWith(s[2].charAt(1)) + ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) + : s.join(""); + } + function Km(n, e, t, r, s) { + var i = [ + Er(Math.round(n).toString(16)), + Er(Math.round(e).toString(16)), + Er(Math.round(t).toString(16)), + Er(Xm(r)), + ]; + return s && + i[0].startsWith(i[0].charAt(1)) && + i[1].startsWith(i[1].charAt(1)) && + i[2].startsWith(i[2].charAt(1)) && + i[3].startsWith(i[3].charAt(1)) + ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) + : i.join(""); + } + function Xm(n) { + return Math.round(parseFloat(n) * 255).toString(16); + } + function mf(n) { + return Ut(n) / 255; + } + function Ut(n) { + return parseInt(n, 16); + } + function Gm(n) { + return { r: n >> 16, g: (n & 65280) >> 8, b: n & 255 }; + } + var Ma = { + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aqua: "#00ffff", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + black: "#000000", + blanchedalmond: "#ffebcd", + blue: "#0000ff", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#00ffff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + fuchsia: "#ff00ff", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + goldenrod: "#daa520", + gold: "#ffd700", + gray: "#808080", + green: "#008000", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavenderblush: "#fff0f5", + lavender: "#e6e6fa", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#778899", + lightslategrey: "#778899", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + lime: "#00ff00", + limegreen: "#32cd32", + linen: "#faf0e6", + magenta: "#ff00ff", + maroon: "#800000", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + navy: "#000080", + oldlace: "#fdf5e6", + olive: "#808000", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + purple: "#800080", + rebeccapurple: "#663399", + red: "#ff0000", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + silver: "#c0c0c0", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + teal: "#008080", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + white: "#ffffff", + whitesmoke: "#f5f5f5", + yellow: "#ffff00", + yellowgreen: "#9acd32", + }; + function Jm(n) { + var e = { r: 0, g: 0, b: 0 }, + t = 1, + r = null, + s = null, + i = null, + o = !1, + a = !1; + return ( + typeof n == "string" && (n = e_(n)), + typeof n == "object" && + (Nn(n.r) && Nn(n.g) && Nn(n.b) + ? ((e = qm(n.r, n.g, n.b)), + (o = !0), + (a = String(n.r).substr(-1) === "%" ? "prgb" : "rgb")) + : Nn(n.h) && Nn(n.s) && Nn(n.v) + ? ((r = Vi(n.s)), + (s = Vi(n.v)), + (e = Ym(n.h, r, s)), + (o = !0), + (a = "hsv")) + : Nn(n.h) && + Nn(n.s) && + Nn(n.l) && + ((r = Vi(n.s)), + (i = Vi(n.l)), + (e = jm(n.h, r, i)), + (o = !0), + (a = "hsl")), + Object.prototype.hasOwnProperty.call(n, "a") && (t = n.a)), + (t = ff(t)), + { + ok: o, + format: n.format || a, + r: Math.min(255, Math.max(e.r, 0)), + g: Math.min(255, Math.max(e.g, 0)), + b: Math.min(255, Math.max(e.b, 0)), + a: t, + } + ); + } + var Zm = "[-\\+]?\\d+%?", + Qm = "[-\\+]?\\d*\\.\\d+%?", + sr = "(?:".concat(Qm, ")|(?:").concat(Zm, ")"), + ka = "[\\s|\\(]+(" + .concat(sr, ")[,|\\s]+(") + .concat(sr, ")[,|\\s]+(") + .concat(sr, ")\\s*\\)?"), + Oa = "[\\s|\\(]+(" + .concat(sr, ")[,|\\s]+(") + .concat(sr, ")[,|\\s]+(") + .concat(sr, ")[,|\\s]+(") + .concat(sr, ")\\s*\\)?"), + fn = { + CSS_UNIT: new RegExp(sr), + rgb: new RegExp("rgb" + ka), + rgba: new RegExp("rgba" + Oa), + hsl: new RegExp("hsl" + ka), + hsla: new RegExp("hsla" + Oa), + hsv: new RegExp("hsv" + ka), + hsva: new RegExp("hsva" + Oa), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + }; + function e_(n) { + if (((n = n.trim().toLowerCase()), n.length === 0)) return !1; + var e = !1; + if (Ma[n]) (n = Ma[n]), (e = !0); + else if (n === "transparent") + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + var t = fn.rgb.exec(n); + return t + ? { r: t[1], g: t[2], b: t[3] } + : ((t = fn.rgba.exec(n)), + t + ? { r: t[1], g: t[2], b: t[3], a: t[4] } + : ((t = fn.hsl.exec(n)), + t + ? { h: t[1], s: t[2], l: t[3] } + : ((t = fn.hsla.exec(n)), + t + ? { h: t[1], s: t[2], l: t[3], a: t[4] } + : ((t = fn.hsv.exec(n)), + t + ? { h: t[1], s: t[2], v: t[3] } + : ((t = fn.hsva.exec(n)), + t + ? { h: t[1], s: t[2], v: t[3], a: t[4] } + : ((t = fn.hex8.exec(n)), + t + ? { + r: Ut(t[1]), + g: Ut(t[2]), + b: Ut(t[3]), + a: mf(t[4]), + format: e ? "name" : "hex8", + } + : ((t = fn.hex6.exec(n)), + t + ? { + r: Ut(t[1]), + g: Ut(t[2]), + b: Ut(t[3]), + format: e ? "name" : "hex", + } + : ((t = fn.hex4.exec(n)), + t + ? { + r: Ut(t[1] + t[1]), + g: Ut(t[2] + t[2]), + b: Ut(t[3] + t[3]), + a: mf(t[4] + t[4]), + format: e ? "name" : "hex8", + } + : ((t = fn.hex3.exec(n)), + t + ? { + r: Ut(t[1] + t[1]), + g: Ut(t[2] + t[2]), + b: Ut(t[3] + t[3]), + format: e ? "name" : "hex", + } + : !1))))))))); + } + function Nn(n) { + return !!fn.CSS_UNIT.exec(String(n)); + } + var t_ = (function () { + function n(e, t) { + e === void 0 && (e = ""), t === void 0 && (t = {}); + var r; + if (e instanceof n) return e; + typeof e == "number" && (e = Gm(e)), (this.originalInput = e); + var s = Jm(e); + (this.originalInput = e), + (this.r = s.r), + (this.g = s.g), + (this.b = s.b), + (this.a = s.a), + (this.roundA = Math.round(100 * this.a) / 100), + (this.format = (r = t.format) !== null && r !== void 0 ? r : s.format), + (this.gradientType = t.gradientType), + this.r < 1 && (this.r = Math.round(this.r)), + this.g < 1 && (this.g = Math.round(this.g)), + this.b < 1 && (this.b = Math.round(this.b)), + (this.isValid = s.ok); + } + return ( + (n.prototype.isDark = function () { + return this.getBrightness() < 128; + }), + (n.prototype.isLight = function () { + return !this.isDark(); + }), + (n.prototype.getBrightness = function () { + var e = this.toRgb(); + return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3; + }), + (n.prototype.getLuminance = function () { + var e = this.toRgb(), + t, + r, + s, + i = e.r / 255, + o = e.g / 255, + a = e.b / 255; + return ( + i <= 0.03928 + ? (t = i / 12.92) + : (t = Math.pow((i + 0.055) / 1.055, 2.4)), + o <= 0.03928 + ? (r = o / 12.92) + : (r = Math.pow((o + 0.055) / 1.055, 2.4)), + a <= 0.03928 + ? (s = a / 12.92) + : (s = Math.pow((a + 0.055) / 1.055, 2.4)), + 0.2126 * t + 0.7152 * r + 0.0722 * s + ); + }), + (n.prototype.getAlpha = function () { + return this.a; + }), + (n.prototype.setAlpha = function (e) { + return ( + (this.a = ff(e)), (this.roundA = Math.round(100 * this.a) / 100), this + ); + }), + (n.prototype.isMonochrome = function () { + var e = this.toHsl().s; + return e === 0; + }), + (n.prototype.toHsv = function () { + var e = df(this.r, this.g, this.b); + return { h: e.h * 360, s: e.s, v: e.v, a: this.a }; + }), + (n.prototype.toHsvString = function () { + var e = df(this.r, this.g, this.b), + t = Math.round(e.h * 360), + r = Math.round(e.s * 100), + s = Math.round(e.v * 100); + return this.a === 1 + ? "hsv(".concat(t, ", ").concat(r, "%, ").concat(s, "%)") + : "hsva(" + .concat(t, ", ") + .concat(r, "%, ") + .concat(s, "%, ") + .concat(this.roundA, ")"); + }), + (n.prototype.toHsl = function () { + var e = hf(this.r, this.g, this.b); + return { h: e.h * 360, s: e.s, l: e.l, a: this.a }; + }), + (n.prototype.toHslString = function () { + var e = hf(this.r, this.g, this.b), + t = Math.round(e.h * 360), + r = Math.round(e.s * 100), + s = Math.round(e.l * 100); + return this.a === 1 + ? "hsl(".concat(t, ", ").concat(r, "%, ").concat(s, "%)") + : "hsla(" + .concat(t, ", ") + .concat(r, "%, ") + .concat(s, "%, ") + .concat(this.roundA, ")"); + }), + (n.prototype.toHex = function (e) { + return e === void 0 && (e = !1), pf(this.r, this.g, this.b, e); + }), + (n.prototype.toHexString = function (e) { + return e === void 0 && (e = !1), "#" + this.toHex(e); + }), + (n.prototype.toHex8 = function (e) { + return e === void 0 && (e = !1), Km(this.r, this.g, this.b, this.a, e); + }), + (n.prototype.toHex8String = function (e) { + return e === void 0 && (e = !1), "#" + this.toHex8(e); + }), + (n.prototype.toHexShortString = function (e) { + return ( + e === void 0 && (e = !1), + this.a === 1 ? this.toHexString(e) : this.toHex8String(e) + ); + }), + (n.prototype.toRgb = function () { + return { + r: Math.round(this.r), + g: Math.round(this.g), + b: Math.round(this.b), + a: this.a, + }; + }), + (n.prototype.toRgbString = function () { + var e = Math.round(this.r), + t = Math.round(this.g), + r = Math.round(this.b); + return this.a === 1 + ? "rgb(".concat(e, ", ").concat(t, ", ").concat(r, ")") + : "rgba(" + .concat(e, ", ") + .concat(t, ", ") + .concat(r, ", ") + .concat(this.roundA, ")"); + }), + (n.prototype.toPercentageRgb = function () { + var e = function (t) { + return "".concat(Math.round(lt(t, 255) * 100), "%"); + }; + return { r: e(this.r), g: e(this.g), b: e(this.b), a: this.a }; + }), + (n.prototype.toPercentageRgbString = function () { + var e = function (t) { + return Math.round(lt(t, 255) * 100); + }; + return this.a === 1 + ? "rgb(" + .concat(e(this.r), "%, ") + .concat(e(this.g), "%, ") + .concat(e(this.b), "%)") + : "rgba(" + .concat(e(this.r), "%, ") + .concat(e(this.g), "%, ") + .concat(e(this.b), "%, ") + .concat(this.roundA, ")"); + }), + (n.prototype.toName = function () { + if (this.a === 0) return "transparent"; + if (this.a < 1) return !1; + for ( + var e = "#" + pf(this.r, this.g, this.b, !1), + t = 0, + r = Object.entries(Ma); + t < r.length; + t++ + ) { + var s = r[t], + i = s[0], + o = s[1]; + if (e === o) return i; + } + return !1; + }), + (n.prototype.toString = function (e) { + var t = !!e; + e = e ?? this.format; + var r = !1, + s = this.a < 1 && this.a >= 0, + i = !t && s && (e.startsWith("hex") || e === "name"); + return i + ? e === "name" && this.a === 0 + ? this.toName() + : this.toRgbString() + : (e === "rgb" && (r = this.toRgbString()), + e === "prgb" && (r = this.toPercentageRgbString()), + (e === "hex" || e === "hex6") && (r = this.toHexString()), + e === "hex3" && (r = this.toHexString(!0)), + e === "hex4" && (r = this.toHex8String(!0)), + e === "hex8" && (r = this.toHex8String()), + e === "name" && (r = this.toName()), + e === "hsl" && (r = this.toHslString()), + e === "hsv" && (r = this.toHsvString()), + r || this.toHexString()); + }), + (n.prototype.toNumber = function () { + return ( + (Math.round(this.r) << 16) + + (Math.round(this.g) << 8) + + Math.round(this.b) + ); + }), + (n.prototype.clone = function () { + return new n(this.toString()); + }), + (n.prototype.lighten = function (e) { + e === void 0 && (e = 10); + var t = this.toHsl(); + return (t.l += e / 100), (t.l = Wi(t.l)), new n(t); + }), + (n.prototype.brighten = function (e) { + e === void 0 && (e = 10); + var t = this.toRgb(); + return ( + (t.r = Math.max( + 0, + Math.min(255, t.r - Math.round(255 * -(e / 100))) + )), + (t.g = Math.max( + 0, + Math.min(255, t.g - Math.round(255 * -(e / 100))) + )), + (t.b = Math.max( + 0, + Math.min(255, t.b - Math.round(255 * -(e / 100))) + )), + new n(t) + ); + }), + (n.prototype.darken = function (e) { + e === void 0 && (e = 10); + var t = this.toHsl(); + return (t.l -= e / 100), (t.l = Wi(t.l)), new n(t); + }), + (n.prototype.tint = function (e) { + return e === void 0 && (e = 10), this.mix("white", e); + }), + (n.prototype.shade = function (e) { + return e === void 0 && (e = 10), this.mix("black", e); + }), + (n.prototype.desaturate = function (e) { + e === void 0 && (e = 10); + var t = this.toHsl(); + return (t.s -= e / 100), (t.s = Wi(t.s)), new n(t); + }), + (n.prototype.saturate = function (e) { + e === void 0 && (e = 10); + var t = this.toHsl(); + return (t.s += e / 100), (t.s = Wi(t.s)), new n(t); + }), + (n.prototype.greyscale = function () { + return this.desaturate(100); + }), + (n.prototype.spin = function (e) { + var t = this.toHsl(), + r = (t.h + e) % 360; + return (t.h = r < 0 ? 360 + r : r), new n(t); + }), + (n.prototype.mix = function (e, t) { + t === void 0 && (t = 50); + var r = this.toRgb(), + s = new n(e).toRgb(), + i = t / 100, + o = { + r: (s.r - r.r) * i + r.r, + g: (s.g - r.g) * i + r.g, + b: (s.b - r.b) * i + r.b, + a: (s.a - r.a) * i + r.a, + }; + return new n(o); + }), + (n.prototype.analogous = function (e, t) { + e === void 0 && (e = 6), t === void 0 && (t = 30); + var r = this.toHsl(), + s = 360 / t, + i = [this]; + for (r.h = (r.h - ((s * e) >> 1) + 720) % 360; --e; ) + (r.h = (r.h + s) % 360), i.push(new n(r)); + return i; + }), + (n.prototype.complement = function () { + var e = this.toHsl(); + return (e.h = (e.h + 180) % 360), new n(e); + }), + (n.prototype.monochromatic = function (e) { + e === void 0 && (e = 6); + for ( + var t = this.toHsv(), r = t.h, s = t.s, i = t.v, o = [], a = 1 / e; + e--; + + ) + o.push(new n({ h: r, s, v: i })), (i = (i + a) % 1); + return o; + }), + (n.prototype.splitcomplement = function () { + var e = this.toHsl(), + t = e.h; + return [ + this, + new n({ h: (t + 72) % 360, s: e.s, l: e.l }), + new n({ h: (t + 216) % 360, s: e.s, l: e.l }), + ]; + }), + (n.prototype.onBackground = function (e) { + var t = this.toRgb(), + r = new n(e).toRgb(), + s = t.a + r.a * (1 - t.a); + return new n({ + r: (t.r * t.a + r.r * r.a * (1 - t.a)) / s, + g: (t.g * t.a + r.g * r.a * (1 - t.a)) / s, + b: (t.b * t.a + r.b * r.a * (1 - t.a)) / s, + a: s, + }); + }), + (n.prototype.triad = function () { + return this.polyad(3); + }), + (n.prototype.tetrad = function () { + return this.polyad(4); + }), + (n.prototype.polyad = function (e) { + for ( + var t = this.toHsl(), r = t.h, s = [this], i = 360 / e, o = 1; + o < e; + o++ + ) + s.push(new n({ h: (r + o * i) % 360, s: t.s, l: t.l })); + return s; + }), + (n.prototype.equals = function (e) { + return this.toRgbString() === new n(e).toRgbString(); + }), + n + ); + })(); + function qi(n) { + return new t_(n).isDark() ? "#ffffff" : "#000000"; + } + function ji() { + const n = navigator.userAgent.toLowerCase(); + return /android|webos|iphone|ipad|ipod|blackberry|windows phone/.test(n); + } + function Bn(n) { + if (n === void 0) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return n; + } + function _f(n, e) { + (n.prototype = Object.create(e.prototype)), + (n.prototype.constructor = n), + (n.__proto__ = e); + } + /*! + * GSAP 3.12.5 + * https://gsap.com + * + * @license Copyright 2008-2024, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for + * Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com + */ var Ht = { + autoSleep: 120, + force3D: "auto", + nullTargetWarn: 1, + units: { lineHeight: "" }, + }, + Yr = { duration: 0.5, overwrite: !1, delay: 0 }, + Ia, + ft, + De, + Jt = 1e8, + Re = 1 / Jt, + Ra = Math.PI * 2, + n_ = Ra / 4, + r_ = 0, + gf = Math.sqrt, + s_ = Math.cos, + i_ = Math.sin, + rt = function (e) { + return typeof e == "string"; + }, + ze = function (e) { + return typeof e == "function"; + }, + Fn = function (e) { + return typeof e == "number"; + }, + Pa = function (e) { + return typeof e > "u"; + }, + yn = function (e) { + return typeof e == "object"; + }, + Ot = function (e) { + return e !== !1; + }, + La = function () { + return typeof window < "u"; + }, + Yi = function (e) { + return ze(e) || rt(e); + }, + vf = + (typeof ArrayBuffer == "function" && ArrayBuffer.isView) || + function () {}, + ht = Array.isArray, + Da = /(?:-?\.?\d|\.)+/gi, + yf = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, + Kr = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, + Na = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, + bf = /[+-]=-?[.\d]+/, + wf = /[^,'"\[\]\s]+/gi, + o_ = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, + Fe, + bn, + Ba, + Fa, + zt = {}, + Ki = {}, + Tf, + xf = function (e) { + return (Ki = Cr(e, zt)) && Pt; + }, + $a = function (e, t) { + return console.warn( + "Invalid property", + e, + "set to", + t, + "Missing plugin? gsap.registerPlugin()" + ); + }, + Is = function (e, t) { + return !t && console.warn(e); + }, + Ef = function (e, t) { + return (e && (zt[e] = t) && Ki && (Ki[e] = t)) || zt; + }, + Rs = function () { + return 0; + }, + a_ = { suppressEvents: !0, isStart: !0, kill: !1 }, + Xi = { suppressEvents: !0, kill: !1 }, + l_ = { suppressEvents: !0 }, + Ua = {}, + ir = [], + Ha = {}, + Sf, + Wt = {}, + za = {}, + Cf = 30, + Gi = [], + Wa = "", + Va = function (e) { + var t = e[0], + r, + s; + if ((yn(t) || ze(t) || (e = [e]), !(r = (t._gsap || {}).harness))) { + for (s = Gi.length; s-- && !Gi[s].targetTest(t); ); + r = Gi[s]; + } + for (s = e.length; s--; ) + (e[s] && (e[s]._gsap || (e[s]._gsap = new th(e[s], r)))) || + e.splice(s, 1); + return e; + }, + Sr = function (e) { + return e._gsap || Va(en(e))[0]._gsap; + }, + Af = function (e, t, r) { + return (r = e[t]) && ze(r) + ? e[t]() + : (Pa(r) && e.getAttribute && e.getAttribute(t)) || r; + }, + It = function (e, t) { + return (e = e.split(",")).forEach(t) || e; + }, + qe = function (e) { + return Math.round(e * 1e5) / 1e5 || 0; + }, + st = function (e) { + return Math.round(e * 1e7) / 1e7 || 0; + }, + Xr = function (e, t) { + var r = t.charAt(0), + s = parseFloat(t.substr(2)); + return ( + (e = parseFloat(e)), + r === "+" ? e + s : r === "-" ? e - s : r === "*" ? e * s : e / s + ); + }, + c_ = function (e, t) { + for (var r = t.length, s = 0; e.indexOf(t[s]) < 0 && ++s < r; ); + return s < r; + }, + Ji = function () { + var e = ir.length, + t = ir.slice(0), + r, + s; + for (Ha = {}, ir.length = 0, r = 0; r < e; r++) + (s = t[r]), + s && s._lazy && (s.render(s._lazy[0], s._lazy[1], !0)._lazy = 0); + }, + Mf = function (e, t, r, s) { + ir.length && !ft && Ji(), + e.render(t, r, s || (ft && t < 0 && (e._initted || e._startAt))), + ir.length && !ft && Ji(); + }, + kf = function (e) { + var t = parseFloat(e); + return (t || t === 0) && (e + "").match(wf).length < 2 + ? t + : rt(e) + ? e.trim() + : e; + }, + Of = function (e) { + return e; + }, + Zt = function (e, t) { + for (var r in t) r in e || (e[r] = t[r]); + return e; + }, + u_ = function (e) { + return function (t, r) { + for (var s in r) + s in t || (s === "duration" && e) || s === "ease" || (t[s] = r[s]); + }; + }, + Cr = function (e, t) { + for (var r in t) e[r] = t[r]; + return e; + }, + If = function n(e, t) { + for (var r in t) + r !== "__proto__" && + r !== "constructor" && + r !== "prototype" && + (e[r] = yn(t[r]) ? n(e[r] || (e[r] = {}), t[r]) : t[r]); + return e; + }, + Zi = function (e, t) { + var r = {}, + s; + for (s in e) s in t || (r[s] = e[s]); + return r; + }, + Ps = function (e) { + var t = e.parent || Fe, + r = e.keyframes ? u_(ht(e.keyframes)) : Zt; + if (Ot(e.inherit)) + for (; t; ) r(e, t.vars.defaults), (t = t.parent || t._dp); + return e; + }, + f_ = function (e, t) { + for (var r = e.length, s = r === t.length; s && r-- && e[r] === t[r]; ); + return r < 0; + }, + Rf = function (e, t, r, s, i) { + r === void 0 && (r = "_first"), s === void 0 && (s = "_last"); + var o = e[s], + a; + if (i) for (a = t[i]; o && o[i] > a; ) o = o._prev; + return ( + o + ? ((t._next = o._next), (o._next = t)) + : ((t._next = e[r]), (e[r] = t)), + t._next ? (t._next._prev = t) : (e[s] = t), + (t._prev = o), + (t.parent = t._dp = e), + t + ); + }, + Qi = function (e, t, r, s) { + r === void 0 && (r = "_first"), s === void 0 && (s = "_last"); + var i = t._prev, + o = t._next; + i ? (i._next = o) : e[r] === t && (e[r] = o), + o ? (o._prev = i) : e[s] === t && (e[s] = i), + (t._next = t._prev = t.parent = null); + }, + or = function (e, t) { + e.parent && + (!t || e.parent.autoRemoveChildren) && + e.parent.remove && + e.parent.remove(e), + (e._act = 0); + }, + Ar = function (e, t) { + if (e && (!t || t._end > e._dur || t._start < 0)) + for (var r = e; r; ) (r._dirty = 1), (r = r.parent); + return e; + }, + h_ = function (e) { + for (var t = e.parent; t && t.parent; ) + (t._dirty = 1), t.totalDuration(), (t = t.parent); + return e; + }, + qa = function (e, t, r, s) { + return ( + e._startAt && + (ft + ? e._startAt.revert(Xi) + : (e.vars.immediateRender && !e.vars.autoRevert) || + e._startAt.render(t, !0, s)) + ); + }, + d_ = function n(e) { + return !e || (e._ts && n(e.parent)); + }, + Pf = function (e) { + return e._repeat ? Gr(e._tTime, (e = e.duration() + e._rDelay)) * e : 0; + }, + Gr = function (e, t) { + var r = Math.floor((e /= t)); + return e && r === e ? r - 1 : r; + }, + eo = function (e, t) { + return ( + (e - t._start) * t._ts + + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur) + ); + }, + to = function (e) { + return (e._end = st( + e._start + (e._tDur / Math.abs(e._ts || e._rts || Re) || 0) + )); + }, + no = function (e, t) { + var r = e._dp; + return ( + r && + r.smoothChildTiming && + e._ts && + ((e._start = st( + r._time - + (e._ts > 0 + ? t / e._ts + : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts) + )), + to(e), + r._dirty || Ar(r, e)), + e + ); + }, + Lf = function (e, t) { + var r; + if ( + ((t._time || + (!t._dur && t._initted) || + (t._start < e._time && (t._dur || !t.add))) && + ((r = eo(e.rawTime(), t)), + (!t._dur || Ds(0, t.totalDuration(), r) - t._tTime > Re) && + t.render(r, !0)), + Ar(e, t)._dp && e._initted && e._time >= e._dur && e._ts) + ) { + if (e._dur < e.duration()) + for (r = e; r._dp; ) + r.rawTime() >= 0 && r.totalTime(r._tTime), (r = r._dp); + e._zTime = -Re; + } + }, + wn = function (e, t, r, s) { + return ( + t.parent && or(t), + (t._start = st( + (Fn(r) ? r : r || e !== Fe ? Qt(e, r, t) : e._time) + t._delay + )), + (t._end = st( + t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0) + )), + Rf(e, t, "_first", "_last", e._sort ? "_start" : 0), + ja(t) || (e._recent = t), + s || Lf(e, t), + e._ts < 0 && no(e, e._tTime), + e + ); + }, + Df = function (e, t) { + return ( + (zt.ScrollTrigger || $a("scrollTrigger", t)) && + zt.ScrollTrigger.create(t, e) + ); + }, + Nf = function (e, t, r, s, i) { + if ((tl(e, t, i), !e._initted)) return 1; + if ( + !r && + e._pt && + !ft && + ((e._dur && e.vars.lazy !== !1) || (!e._dur && e.vars.lazy)) && + Sf !== qt.frame + ) + return ir.push(e), (e._lazy = [i, s]), 1; + }, + p_ = function n(e) { + var t = e.parent; + return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || n(t)); + }, + ja = function (e) { + var t = e.data; + return t === "isFromStart" || t === "isStart"; + }, + m_ = function (e, t, r, s) { + var i = e.ratio, + o = + t < 0 || + (!t && + ((!e._start && p_(e) && !(!e._initted && ja(e))) || + ((e._ts < 0 || e._dp._ts < 0) && !ja(e)))) + ? 0 + : 1, + a = e._rDelay, + l = 0, + c, + u, + f; + if ( + (a && + e._repeat && + ((l = Ds(0, e._tDur, t)), + (u = Gr(l, a)), + e._yoyo && u & 1 && (o = 1 - o), + u !== Gr(e._tTime, a) && + ((i = 1 - o), + e.vars.repeatRefresh && e._initted && e.invalidate())), + o !== i || ft || s || e._zTime === Re || (!t && e._zTime)) + ) { + if (!e._initted && Nf(e, t, s, r, l)) return; + for ( + f = e._zTime, + e._zTime = t || (r ? Re : 0), + r || (r = t && !f), + e.ratio = o, + e._from && (o = 1 - o), + e._time = 0, + e._tTime = l, + c = e._pt; + c; + + ) + c.r(o, c.d), (c = c._next); + t < 0 && qa(e, t, r, !0), + e._onUpdate && !r && Vt(e, "onUpdate"), + l && e._repeat && !r && e.parent && Vt(e, "onRepeat"), + (t >= e._tDur || t < 0) && + e.ratio === o && + (o && or(e, 1), + !r && + !ft && + (Vt(e, o ? "onComplete" : "onReverseComplete", !0), + e._prom && e._prom())); + } else e._zTime || (e._zTime = t); + }, + __ = function (e, t, r) { + var s; + if (r > t) + for (s = e._first; s && s._start <= r; ) { + if (s.data === "isPause" && s._start > t) return s; + s = s._next; + } + else + for (s = e._last; s && s._start >= r; ) { + if (s.data === "isPause" && s._start < t) return s; + s = s._prev; + } + }, + Jr = function (e, t, r, s) { + var i = e._repeat, + o = st(t) || 0, + a = e._tTime / e._tDur; + return ( + a && !s && (e._time *= o / e._dur), + (e._dur = o), + (e._tDur = i ? (i < 0 ? 1e10 : st(o * (i + 1) + e._rDelay * i)) : o), + a > 0 && !s && no(e, (e._tTime = e._tDur * a)), + e.parent && to(e), + r || Ar(e.parent, e), + e + ); + }, + Bf = function (e) { + return e instanceof xt ? Ar(e) : Jr(e, e._dur); + }, + g_ = { _start: 0, endTime: Rs, totalDuration: Rs }, + Qt = function n(e, t, r) { + var s = e.labels, + i = e._recent || g_, + o = e.duration() >= Jt ? i.endTime(!1) : e._dur, + a, + l, + c; + return rt(t) && (isNaN(t) || t in s) + ? ((l = t.charAt(0)), + (c = t.substr(-1) === "%"), + (a = t.indexOf("=")), + l === "<" || l === ">" + ? (a >= 0 && (t = t.replace(/=/, "")), + (l === "<" ? i._start : i.endTime(i._repeat >= 0)) + + (parseFloat(t.substr(1)) || 0) * + (c ? (a < 0 ? i : r).totalDuration() / 100 : 1)) + : a < 0 + ? (t in s || (s[t] = o), s[t]) + : ((l = parseFloat(t.charAt(a - 1) + t.substr(a + 1))), + c && r && (l = (l / 100) * (ht(r) ? r[0] : r).totalDuration()), + a > 1 ? n(e, t.substr(0, a - 1), r) + l : o + l)) + : t == null + ? o + : +t; + }, + Ls = function (e, t, r) { + var s = Fn(t[1]), + i = (s ? 2 : 1) + (e < 2 ? 0 : 1), + o = t[i], + a, + l; + if ((s && (o.duration = t[1]), (o.parent = r), e)) { + for (a = o, l = r; l && !("immediateRender" in a); ) + (a = l.vars.defaults || {}), (l = Ot(l.vars.inherit) && l.parent); + (o.immediateRender = Ot(a.immediateRender)), + e < 2 ? (o.runBackwards = 1) : (o.startAt = t[i - 1]); + } + return new Ye(t[0], o, t[i + 1]); + }, + ar = function (e, t) { + return e || e === 0 ? t(e) : t; + }, + Ds = function (e, t, r) { + return r < e ? e : r > t ? t : r; + }, + dt = function (e, t) { + return !rt(e) || !(t = o_.exec(e)) ? "" : t[1]; + }, + v_ = function (e, t, r) { + return ar(r, function (s) { + return Ds(e, t, s); + }); + }, + Ya = [].slice, + Ff = function (e, t) { + return ( + e && + yn(e) && + "length" in e && + ((!t && !e.length) || (e.length - 1 in e && yn(e[0]))) && + !e.nodeType && + e !== bn + ); + }, + y_ = function (e, t, r) { + return ( + r === void 0 && (r = []), + e.forEach(function (s) { + var i; + return (rt(s) && !t) || Ff(s, 1) + ? (i = r).push.apply(i, en(s)) + : r.push(s); + }) || r + ); + }, + en = function (e, t, r) { + return De && !t && De.selector + ? De.selector(e) + : rt(e) && !r && (Ba || !Qr()) + ? Ya.call((t || Fa).querySelectorAll(e), 0) + : ht(e) + ? y_(e, r) + : Ff(e) + ? Ya.call(e, 0) + : e + ? [e] + : []; + }, + Ka = function (e) { + return ( + (e = en(e)[0] || Is("Invalid scope") || {}), + function (t) { + var r = e.current || e.nativeElement || e; + return en( + t, + r.querySelectorAll + ? r + : r === e + ? Is("Invalid scope") || Fa.createElement("div") + : e + ); + } + ); + }, + $f = function (e) { + return e.sort(function () { + return 0.5 - Math.random(); + }); + }, + Uf = function (e) { + if (ze(e)) return e; + var t = yn(e) ? e : { each: e }, + r = Mr(t.ease), + s = t.from || 0, + i = parseFloat(t.base) || 0, + o = {}, + a = s > 0 && s < 1, + l = isNaN(s) || a, + c = t.axis, + u = s, + f = s; + return ( + rt(s) + ? (u = f = { center: 0.5, edges: 0.5, end: 1 }[s] || 0) + : !a && l && ((u = s[0]), (f = s[1])), + function (h, p, _) { + var d = (_ || t).length, + m = o[d], + v, + b, + E, + T, + S, + k, + O, + A, + y; + if (!m) { + if (((y = t.grid === "auto" ? 0 : (t.grid || [1, Jt])[1]), !y)) { + for ( + O = -Jt; + O < (O = _[y++].getBoundingClientRect().left) && y < d; + + ); + y < d && y--; + } + for ( + m = o[d] = [], + v = l ? Math.min(y, d) * u - 0.5 : s % y, + b = y === Jt ? 0 : l ? (d * f) / y - 0.5 : (s / y) | 0, + O = 0, + A = Jt, + k = 0; + k < d; + k++ + ) + (E = (k % y) - v), + (T = b - ((k / y) | 0)), + (m[k] = S = + c ? Math.abs(c === "y" ? T : E) : gf(E * E + T * T)), + S > O && (O = S), + S < A && (A = S); + s === "random" && $f(m), + (m.max = O - A), + (m.min = A), + (m.v = d = + (parseFloat(t.amount) || + parseFloat(t.each) * + (y > d + ? d - 1 + : c + ? c === "y" + ? d / y + : y + : Math.max(y, d / y)) || + 0) * (s === "edges" ? -1 : 1)), + (m.b = d < 0 ? i - d : i), + (m.u = dt(t.amount || t.each) || 0), + (r = r && d < 0 ? Zf(r) : r); + } + return ( + (d = (m[h] - m.min) / m.max || 0), + st(m.b + (r ? r(d) : d) * m.v) + m.u + ); + } + ); + }, + Xa = function (e) { + var t = Math.pow(10, ((e + "").split(".")[1] || "").length); + return function (r) { + var s = st(Math.round(parseFloat(r) / e) * e * t); + return (s - (s % 1)) / t + (Fn(r) ? 0 : dt(r)); + }; + }, + Hf = function (e, t) { + var r = ht(e), + s, + i; + return ( + !r && + yn(e) && + ((s = r = e.radius || Jt), + e.values + ? ((e = en(e.values)), (i = !Fn(e[0])) && (s *= s)) + : (e = Xa(e.increment))), + ar( + t, + r + ? ze(e) + ? function (o) { + return (i = e(o)), Math.abs(i - o) <= s ? i : o; + } + : function (o) { + for ( + var a = parseFloat(i ? o.x : o), + l = parseFloat(i ? o.y : 0), + c = Jt, + u = 0, + f = e.length, + h, + p; + f--; + + ) + i + ? ((h = e[f].x - a), + (p = e[f].y - l), + (h = h * h + p * p)) + : (h = Math.abs(e[f] - a)), + h < c && ((c = h), (u = f)); + return ( + (u = !s || c <= s ? e[u] : o), + i || u === o || Fn(o) ? u : u + dt(o) + ); + } + : Xa(e) + ) + ); + }, + zf = function (e, t, r, s) { + return ar(ht(e) ? !t : r === !0 ? !!(r = 0) : !s, function () { + return ht(e) + ? e[~~(Math.random() * e.length)] + : (r = r || 1e-5) && + (s = r < 1 ? Math.pow(10, (r + "").length - 2) : 1) && + Math.floor( + Math.round( + (e - r / 2 + Math.random() * (t - e + r * 0.99)) / r + ) * + r * + s + ) / s; + }); + }, + b_ = function () { + for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) + t[r] = arguments[r]; + return function (s) { + return t.reduce(function (i, o) { + return o(i); + }, s); + }; + }, + w_ = function (e, t) { + return function (r) { + return e(parseFloat(r)) + (t || dt(r)); + }; + }, + T_ = function (e, t, r) { + return Vf(e, t, 0, 1, r); + }, + Wf = function (e, t, r) { + return ar(r, function (s) { + return e[~~t(s)]; + }); + }, + x_ = function n(e, t, r) { + var s = t - e; + return ht(e) + ? Wf(e, n(0, e.length), t) + : ar(r, function (i) { + return ((s + ((i - e) % s)) % s) + e; + }); + }, + E_ = function n(e, t, r) { + var s = t - e, + i = s * 2; + return ht(e) + ? Wf(e, n(0, e.length - 1), t) + : ar(r, function (o) { + return (o = (i + ((o - e) % i)) % i || 0), e + (o > s ? i - o : o); + }); + }, + Ns = function (e) { + for (var t = 0, r = "", s, i, o, a; ~(s = e.indexOf("random(", t)); ) + (o = e.indexOf(")", s)), + (a = e.charAt(s + 7) === "["), + (i = e.substr(s + 7, o - s - 7).match(a ? wf : Da)), + (r += + e.substr(t, s - t) + + zf(a ? i : +i[0], a ? 0 : +i[1], +i[2] || 1e-5)), + (t = o + 1); + return r + e.substr(t, e.length - t); + }, + Vf = function (e, t, r, s, i) { + var o = t - e, + a = s - r; + return ar(i, function (l) { + return r + (((l - e) / o) * a || 0); + }); + }, + S_ = function n(e, t, r, s) { + var i = isNaN(e + t) + ? 0 + : function (p) { + return (1 - p) * e + p * t; + }; + if (!i) { + var o = rt(e), + a = {}, + l, + c, + u, + f, + h; + if ((r === !0 && (s = 1) && (r = null), o)) + (e = { p: e }), (t = { p: t }); + else if (ht(e) && !ht(t)) { + for (u = [], f = e.length, h = f - 2, c = 1; c < f; c++) + u.push(n(e[c - 1], e[c])); + f--, + (i = function (_) { + _ *= f; + var d = Math.min(h, ~~_); + return u[d](_ - d); + }), + (r = t); + } else s || (e = Cr(ht(e) ? [] : {}, e)); + if (!u) { + for (l in t) Qa.call(a, e, l, "get", t[l]); + i = function (_) { + return sl(_, a) || (o ? e.p : e); + }; + } + } + return ar(r, i); + }, + qf = function (e, t, r) { + var s = e.labels, + i = Jt, + o, + a, + l; + for (o in s) + (a = s[o] - t), + a < 0 == !!r && a && i > (a = Math.abs(a)) && ((l = o), (i = a)); + return l; + }, + Vt = function (e, t, r) { + var s = e.vars, + i = s[t], + o = De, + a = e._ctx, + l, + c, + u; + if (i) + return ( + (l = s[t + "Params"]), + (c = s.callbackScope || e), + r && ir.length && Ji(), + a && (De = a), + (u = l ? i.apply(c, l) : i.call(c)), + (De = o), + u + ); + }, + Bs = function (e) { + return ( + or(e), + e.scrollTrigger && e.scrollTrigger.kill(!!ft), + e.progress() < 1 && Vt(e, "onInterrupt"), + e + ); + }, + Zr, + jf = [], + Yf = function (e) { + if (e) + if (((e = (!e.name && e.default) || e), La() || e.headless)) { + var t = e.name, + r = ze(e), + s = + t && !r && e.init + ? function () { + this._props = []; + } + : e, + i = { + init: Rs, + render: sl, + add: Qa, + kill: H_, + modifier: U_, + rawVars: 0, + }, + o = { + targetTest: 0, + get: 0, + getSetter: rl, + aliases: {}, + register: 0, + }; + if ((Qr(), e !== s)) { + if (Wt[t]) return; + Zt(s, Zt(Zi(e, i), o)), + Cr(s.prototype, Cr(i, Zi(e, o))), + (Wt[(s.prop = t)] = s), + e.targetTest && (Gi.push(s), (Ua[t] = 1)), + (t = + (t === "css" + ? "CSS" + : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin"); + } + Ef(t, s), e.register && e.register(Pt, s, Rt); + } else jf.push(e); + }, + Me = 255, + Fs = { + aqua: [0, Me, Me], + lime: [0, Me, 0], + silver: [192, 192, 192], + black: [0, 0, 0], + maroon: [128, 0, 0], + teal: [0, 128, 128], + blue: [0, 0, Me], + navy: [0, 0, 128], + white: [Me, Me, Me], + olive: [128, 128, 0], + yellow: [Me, Me, 0], + orange: [Me, 165, 0], + gray: [128, 128, 128], + purple: [128, 0, 128], + green: [0, 128, 0], + red: [Me, 0, 0], + pink: [Me, 192, 203], + cyan: [0, Me, Me], + transparent: [Me, Me, Me, 0], + }, + Ga = function (e, t, r) { + return ( + (e += e < 0 ? 1 : e > 1 ? -1 : 0), + ((e * 6 < 1 + ? t + (r - t) * e * 6 + : e < 0.5 + ? r + : e * 3 < 2 + ? t + (r - t) * (2 / 3 - e) * 6 + : t) * + Me + + 0.5) | + 0 + ); + }, + Kf = function (e, t, r) { + var s = e ? (Fn(e) ? [e >> 16, (e >> 8) & Me, e & Me] : 0) : Fs.black, + i, + o, + a, + l, + c, + u, + f, + h, + p, + _; + if (!s) { + if ((e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), Fs[e])) + s = Fs[e]; + else if (e.charAt(0) === "#") { + if ( + (e.length < 6 && + ((i = e.charAt(1)), + (o = e.charAt(2)), + (a = e.charAt(3)), + (e = + "#" + + i + + i + + o + + o + + a + + a + + (e.length === 5 ? e.charAt(4) + e.charAt(4) : ""))), + e.length === 9) + ) + return ( + (s = parseInt(e.substr(1, 6), 16)), + [s >> 16, (s >> 8) & Me, s & Me, parseInt(e.substr(7), 16) / 255] + ); + (e = parseInt(e.substr(1), 16)), + (s = [e >> 16, (e >> 8) & Me, e & Me]); + } else if (e.substr(0, 3) === "hsl") { + if (((s = _ = e.match(Da)), !t)) + (l = (+s[0] % 360) / 360), + (c = +s[1] / 100), + (u = +s[2] / 100), + (o = u <= 0.5 ? u * (c + 1) : u + c - u * c), + (i = u * 2 - o), + s.length > 3 && (s[3] *= 1), + (s[0] = Ga(l + 1 / 3, i, o)), + (s[1] = Ga(l, i, o)), + (s[2] = Ga(l - 1 / 3, i, o)); + else if (~e.indexOf("=")) + return (s = e.match(yf)), r && s.length < 4 && (s[3] = 1), s; + } else s = e.match(Da) || Fs.transparent; + s = s.map(Number); + } + return ( + t && + !_ && + ((i = s[0] / Me), + (o = s[1] / Me), + (a = s[2] / Me), + (f = Math.max(i, o, a)), + (h = Math.min(i, o, a)), + (u = (f + h) / 2), + f === h + ? (l = c = 0) + : ((p = f - h), + (c = u > 0.5 ? p / (2 - f - h) : p / (f + h)), + (l = + f === i + ? (o - a) / p + (o < a ? 6 : 0) + : f === o + ? (a - i) / p + 2 + : (i - o) / p + 4), + (l *= 60)), + (s[0] = ~~(l + 0.5)), + (s[1] = ~~(c * 100 + 0.5)), + (s[2] = ~~(u * 100 + 0.5))), + r && s.length < 4 && (s[3] = 1), + s + ); + }, + Xf = function (e) { + var t = [], + r = [], + s = -1; + return ( + e.split(lr).forEach(function (i) { + var o = i.match(Kr) || []; + t.push.apply(t, o), r.push((s += o.length + 1)); + }), + (t.c = r), + t + ); + }, + Gf = function (e, t, r) { + var s = "", + i = (e + s).match(lr), + o = t ? "hsla(" : "rgba(", + a = 0, + l, + c, + u, + f; + if (!i) return e; + if ( + ((i = i.map(function (h) { + return ( + (h = Kf(h, t, 1)) && + o + + (t + ? h[0] + "," + h[1] + "%," + h[2] + "%," + h[3] + : h.join(",")) + + ")" + ); + })), + r && ((u = Xf(e)), (l = r.c), l.join(s) !== u.c.join(s))) + ) + for (c = e.replace(lr, "1").split(Kr), f = c.length - 1; a < f; a++) + s += + c[a] + + (~l.indexOf(a) + ? i.shift() || o + "0,0,0,0)" + : (u.length ? u : i.length ? i : r).shift()); + if (!c) + for (c = e.split(lr), f = c.length - 1; a < f; a++) s += c[a] + i[a]; + return s + c[f]; + }, + lr = (function () { + var n = + "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", + e; + for (e in Fs) n += "|" + e + "\\b"; + return new RegExp(n + ")", "gi"); + })(), + C_ = /hsl[a]?\(/, + Jf = function (e) { + var t = e.join(" "), + r; + if (((lr.lastIndex = 0), lr.test(t))) + return ( + (r = C_.test(t)), + (e[1] = Gf(e[1], r)), + (e[0] = Gf(e[0], r, Xf(e[1]))), + !0 + ); + }, + $s, + qt = (function () { + var n = Date.now, + e = 500, + t = 33, + r = n(), + s = r, + i = 1e3 / 240, + o = i, + a = [], + l, + c, + u, + f, + h, + p, + _ = function d(m) { + var v = n() - s, + b = m === !0, + E, + T, + S, + k; + if ( + ((v > e || v < 0) && (r += v - t), + (s += v), + (S = s - r), + (E = S - o), + (E > 0 || b) && + ((k = ++f.frame), + (h = S - f.time * 1e3), + (f.time = S = S / 1e3), + (o += E + (E >= i ? 4 : i - E)), + (T = 1)), + b || (l = c(d)), + T) + ) + for (p = 0; p < a.length; p++) a[p](S, h, k, m); + }; + return ( + (f = { + time: 0, + frame: 0, + tick: function () { + _(!0); + }, + deltaRatio: function (m) { + return h / (1e3 / (m || 60)); + }, + wake: function () { + Tf && + (!Ba && + La() && + ((bn = Ba = window), + (Fa = bn.document || {}), + (zt.gsap = Pt), + (bn.gsapVersions || (bn.gsapVersions = [])).push(Pt.version), + xf(Ki || bn.GreenSockGlobals || (!bn.gsap && bn) || {}), + jf.forEach(Yf)), + (u = typeof requestAnimationFrame < "u" && requestAnimationFrame), + l && f.sleep(), + (c = + u || + function (m) { + return setTimeout(m, (o - f.time * 1e3 + 1) | 0); + }), + ($s = 1), + _(2)); + }, + sleep: function () { + (u ? cancelAnimationFrame : clearTimeout)(l), ($s = 0), (c = Rs); + }, + lagSmoothing: function (m, v) { + (e = m || 1 / 0), (t = Math.min(v || 33, e)); + }, + fps: function (m) { + (i = 1e3 / (m || 240)), (o = f.time * 1e3 + i); + }, + add: function (m, v, b) { + var E = v + ? function (T, S, k, O) { + m(T, S, k, O), f.remove(E); + } + : m; + return f.remove(m), a[b ? "unshift" : "push"](E), Qr(), E; + }, + remove: function (m, v) { + ~(v = a.indexOf(m)) && a.splice(v, 1) && p >= v && p--; + }, + _listeners: a, + }), + f + ); + })(), + Qr = function () { + return !$s && qt.wake(); + }, + pe = {}, + A_ = /^[\d.\-M][\d.\-,\s]/, + M_ = /["']/g, + k_ = function (e) { + for ( + var t = {}, + r = e.substr(1, e.length - 3).split(":"), + s = r[0], + i = 1, + o = r.length, + a, + l, + c; + i < o; + i++ + ) + (l = r[i]), + (a = i !== o - 1 ? l.lastIndexOf(",") : l.length), + (c = l.substr(0, a)), + (t[s] = isNaN(c) ? c.replace(M_, "").trim() : +c), + (s = l.substr(a + 1).trim()); + return t; + }, + O_ = function (e) { + var t = e.indexOf("(") + 1, + r = e.indexOf(")"), + s = e.indexOf("(", t); + return e.substring(t, ~s && s < r ? e.indexOf(")", r + 1) : r); + }, + I_ = function (e) { + var t = (e + "").split("("), + r = pe[t[0]]; + return r && t.length > 1 && r.config + ? r.config.apply( + null, + ~e.indexOf("{") ? [k_(t[1])] : O_(e).split(",").map(kf) + ) + : pe._CE && A_.test(e) + ? pe._CE("", e) + : r; + }, + Zf = function (e) { + return function (t) { + return 1 - e(1 - t); + }; + }, + Qf = function n(e, t) { + for (var r = e._first, s; r; ) + r instanceof xt + ? n(r, t) + : r.vars.yoyoEase && + (!r._yoyo || !r._repeat) && + r._yoyo !== t && + (r.timeline + ? n(r.timeline, t) + : ((s = r._ease), + (r._ease = r._yEase), + (r._yEase = s), + (r._yoyo = t))), + (r = r._next); + }, + Mr = function (e, t) { + return (e && (ze(e) ? e : pe[e] || I_(e))) || t; + }, + kr = function (e, t, r, s) { + r === void 0 && + (r = function (l) { + return 1 - t(1 - l); + }), + s === void 0 && + (s = function (l) { + return l < 0.5 ? t(l * 2) / 2 : 1 - t((1 - l) * 2) / 2; + }); + var i = { easeIn: t, easeOut: r, easeInOut: s }, + o; + return ( + It(e, function (a) { + (pe[a] = zt[a] = i), (pe[(o = a.toLowerCase())] = r); + for (var l in i) + pe[ + o + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut") + ] = pe[a + "." + l] = i[l]; + }), + i + ); + }, + eh = function (e) { + return function (t) { + return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2; + }; + }, + Ja = function n(e, t, r) { + var s = t >= 1 ? t : 1, + i = (r || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), + o = (i / Ra) * (Math.asin(1 / s) || 0), + a = function (u) { + return u === 1 ? 1 : s * Math.pow(2, -10 * u) * i_((u - o) * i) + 1; + }, + l = + e === "out" + ? a + : e === "in" + ? function (c) { + return 1 - a(1 - c); + } + : eh(a); + return ( + (i = Ra / i), + (l.config = function (c, u) { + return n(e, c, u); + }), + l + ); + }, + Za = function n(e, t) { + t === void 0 && (t = 1.70158); + var r = function (o) { + return o ? --o * o * ((t + 1) * o + t) + 1 : 0; + }, + s = + e === "out" + ? r + : e === "in" + ? function (i) { + return 1 - r(1 - i); + } + : eh(r); + return ( + (s.config = function (i) { + return n(e, i); + }), + s + ); + }; + It("Linear,Quad,Cubic,Quart,Quint,Strong", function (n, e) { + var t = e < 5 ? e + 1 : e; + kr( + n + ",Power" + (t - 1), + e + ? function (r) { + return Math.pow(r, t); + } + : function (r) { + return r; + }, + function (r) { + return 1 - Math.pow(1 - r, t); + }, + function (r) { + return r < 0.5 + ? Math.pow(r * 2, t) / 2 + : 1 - Math.pow((1 - r) * 2, t) / 2; + } + ); + }), + (pe.Linear.easeNone = pe.none = pe.Linear.easeIn), + kr("Elastic", Ja("in"), Ja("out"), Ja()), + (function (n, e) { + var t = 1 / e, + r = 2 * t, + s = 2.5 * t, + i = function (a) { + return a < t + ? n * a * a + : a < r + ? n * Math.pow(a - 1.5 / e, 2) + 0.75 + : a < s + ? n * (a -= 2.25 / e) * a + 0.9375 + : n * Math.pow(a - 2.625 / e, 2) + 0.984375; + }; + kr( + "Bounce", + function (o) { + return 1 - i(1 - o); + }, + i + ); + })(7.5625, 2.75), + kr("Expo", function (n) { + return n ? Math.pow(2, 10 * (n - 1)) : 0; + }), + kr("Circ", function (n) { + return -(gf(1 - n * n) - 1); + }), + kr("Sine", function (n) { + return n === 1 ? 1 : -s_(n * n_) + 1; + }), + kr("Back", Za("in"), Za("out"), Za()), + (pe.SteppedEase = + pe.steps = + zt.SteppedEase = + { + config: function (e, t) { + e === void 0 && (e = 1); + var r = 1 / e, + s = e + (t ? 0 : 1), + i = t ? 1 : 0, + o = 1 - Re; + return function (a) { + return (((s * Ds(0, o, a)) | 0) + i) * r; + }; + }, + }), + (Yr.ease = pe["quad.out"]), + It( + "onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", + function (n) { + return (Wa += n + "," + n + "Params,"); + } + ); + var th = function (e, t) { + (this.id = r_++), + (e._gsap = this), + (this.target = e), + (this.harness = t), + (this.get = t ? t.get : Af), + (this.set = t ? t.getSetter : rl); + }, + Us = (function () { + function n(t) { + (this.vars = t), + (this._delay = +t.delay || 0), + (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && + ((this._rDelay = t.repeatDelay || 0), + (this._yoyo = !!t.yoyo || !!t.yoyoEase)), + (this._ts = 1), + Jr(this, +t.duration, 1, 1), + (this.data = t.data), + De && ((this._ctx = De), De.data.push(this)), + $s || qt.wake(); + } + var e = n.prototype; + return ( + (e.delay = function (r) { + return r || r === 0 + ? (this.parent && + this.parent.smoothChildTiming && + this.startTime(this._start + r - this._delay), + (this._delay = r), + this) + : this._delay; + }), + (e.duration = function (r) { + return arguments.length + ? this.totalDuration( + this._repeat > 0 ? r + (r + this._rDelay) * this._repeat : r + ) + : this.totalDuration() && this._dur; + }), + (e.totalDuration = function (r) { + return arguments.length + ? ((this._dirty = 0), + Jr( + this, + this._repeat < 0 + ? r + : (r - this._repeat * this._rDelay) / (this._repeat + 1) + )) + : this._tDur; + }), + (e.totalTime = function (r, s) { + if ((Qr(), !arguments.length)) return this._tTime; + var i = this._dp; + if (i && i.smoothChildTiming && this._ts) { + for ( + no(this, r), !i._dp || i.parent || Lf(i, this); + i && i.parent; + + ) + i.parent._time !== + i._start + + (i._ts >= 0 + ? i._tTime / i._ts + : (i.totalDuration() - i._tTime) / -i._ts) && + i.totalTime(i._tTime, !0), + (i = i.parent); + !this.parent && + this._dp.autoRemoveChildren && + ((this._ts > 0 && r < this._tDur) || + (this._ts < 0 && r > 0) || + (!this._tDur && !r)) && + wn(this._dp, this, this._start - this._delay); + } + return ( + (this._tTime !== r || + (!this._dur && !s) || + (this._initted && Math.abs(this._zTime) === Re) || + (!r && !this._initted && (this.add || this._ptLookup))) && + (this._ts || (this._pTime = r), Mf(this, r, s)), + this + ); + }), + (e.time = function (r, s) { + return arguments.length + ? this.totalTime( + Math.min(this.totalDuration(), r + Pf(this)) % + (this._dur + this._rDelay) || (r ? this._dur : 0), + s + ) + : this._time; + }), + (e.totalProgress = function (r, s) { + return arguments.length + ? this.totalTime(this.totalDuration() * r, s) + : this.totalDuration() + ? Math.min(1, this._tTime / this._tDur) + : this.rawTime() > 0 + ? 1 + : 0; + }), + (e.progress = function (r, s) { + return arguments.length + ? this.totalTime( + this.duration() * + (this._yoyo && !(this.iteration() & 1) ? 1 - r : r) + + Pf(this), + s + ) + : this.duration() + ? Math.min(1, this._time / this._dur) + : this.rawTime() > 0 + ? 1 + : 0; + }), + (e.iteration = function (r, s) { + var i = this.duration() + this._rDelay; + return arguments.length + ? this.totalTime(this._time + (r - 1) * i, s) + : this._repeat + ? Gr(this._tTime, i) + 1 + : 1; + }), + (e.timeScale = function (r, s) { + if (!arguments.length) return this._rts === -Re ? 0 : this._rts; + if (this._rts === r) return this; + var i = + this.parent && this._ts ? eo(this.parent._time, this) : this._tTime; + return ( + (this._rts = +r || 0), + (this._ts = this._ps || r === -Re ? 0 : this._rts), + this.totalTime(Ds(-Math.abs(this._delay), this._tDur, i), s !== !1), + to(this), + h_(this) + ); + }), + (e.paused = function (r) { + return arguments.length + ? (this._ps !== r && + ((this._ps = r), + r + ? ((this._pTime = + this._tTime || Math.max(-this._delay, this.rawTime())), + (this._ts = this._act = 0)) + : (Qr(), + (this._ts = this._rts), + this.totalTime( + this.parent && !this.parent.smoothChildTiming + ? this.rawTime() + : this._tTime || this._pTime, + this.progress() === 1 && + Math.abs(this._zTime) !== Re && + (this._tTime -= Re) + ))), + this) + : this._ps; + }), + (e.startTime = function (r) { + if (arguments.length) { + this._start = r; + var s = this.parent || this._dp; + return ( + s && (s._sort || !this.parent) && wn(s, this, r - this._delay), + this + ); + } + return this._start; + }), + (e.endTime = function (r) { + return ( + this._start + + (Ot(r) ? this.totalDuration() : this.duration()) / + Math.abs(this._ts || 1) + ); + }), + (e.rawTime = function (r) { + var s = this.parent || this._dp; + return s + ? r && + (!this._ts || + (this._repeat && this._time && this.totalProgress() < 1)) + ? this._tTime % (this._dur + this._rDelay) + : this._ts + ? eo(s.rawTime(r), this) + : this._tTime + : this._tTime; + }), + (e.revert = function (r) { + r === void 0 && (r = l_); + var s = ft; + return ( + (ft = r), + (this._initted || this._startAt) && + (this.timeline && this.timeline.revert(r), + this.totalTime(-0.01, r.suppressEvents)), + this.data !== "nested" && r.kill !== !1 && this.kill(), + (ft = s), + this + ); + }), + (e.globalTime = function (r) { + for (var s = this, i = arguments.length ? r : s.rawTime(); s; ) + (i = s._start + i / (Math.abs(s._ts) || 1)), (s = s._dp); + return !this.parent && this._sat ? this._sat.globalTime(r) : i; + }), + (e.repeat = function (r) { + return arguments.length + ? ((this._repeat = r === 1 / 0 ? -2 : r), Bf(this)) + : this._repeat === -2 + ? 1 / 0 + : this._repeat; + }), + (e.repeatDelay = function (r) { + if (arguments.length) { + var s = this._time; + return (this._rDelay = r), Bf(this), s ? this.time(s) : this; + } + return this._rDelay; + }), + (e.yoyo = function (r) { + return arguments.length ? ((this._yoyo = r), this) : this._yoyo; + }), + (e.seek = function (r, s) { + return this.totalTime(Qt(this, r), Ot(s)); + }), + (e.restart = function (r, s) { + return this.play().totalTime(r ? -this._delay : 0, Ot(s)); + }), + (e.play = function (r, s) { + return r != null && this.seek(r, s), this.reversed(!1).paused(!1); + }), + (e.reverse = function (r, s) { + return ( + r != null && this.seek(r || this.totalDuration(), s), + this.reversed(!0).paused(!1) + ); + }), + (e.pause = function (r, s) { + return r != null && this.seek(r, s), this.paused(!0); + }), + (e.resume = function () { + return this.paused(!1); + }), + (e.reversed = function (r) { + return arguments.length + ? (!!r !== this.reversed() && + this.timeScale(-this._rts || (r ? -Re : 0)), + this) + : this._rts < 0; + }), + (e.invalidate = function () { + return (this._initted = this._act = 0), (this._zTime = -Re), this; + }), + (e.isActive = function () { + var r = this.parent || this._dp, + s = this._start, + i; + return !!( + !r || + (this._ts && + this._initted && + r.isActive() && + (i = r.rawTime(!0)) >= s && + i < this.endTime(!0) - Re) + ); + }), + (e.eventCallback = function (r, s, i) { + var o = this.vars; + return arguments.length > 1 + ? (s + ? ((o[r] = s), + i && (o[r + "Params"] = i), + r === "onUpdate" && (this._onUpdate = s)) + : delete o[r], + this) + : o[r]; + }), + (e.then = function (r) { + var s = this; + return new Promise(function (i) { + var o = ze(r) ? r : Of, + a = function () { + var c = s.then; + (s.then = null), + ze(o) && (o = o(s)) && (o.then || o === s) && (s.then = c), + i(o), + (s.then = c); + }; + (s._initted && s.totalProgress() === 1 && s._ts >= 0) || + (!s._tTime && s._ts < 0) + ? a() + : (s._prom = a); + }); + }), + (e.kill = function () { + Bs(this); + }), + n + ); + })(); + Zt(Us.prototype, { + _time: 0, + _start: 0, + _end: 0, + _tTime: 0, + _tDur: 0, + _dirty: 0, + _repeat: 0, + _yoyo: !1, + parent: null, + _initted: !1, + _rDelay: 0, + _ts: 1, + _dp: 0, + ratio: 0, + _zTime: -Re, + _prom: 0, + _ps: !1, + _rts: 1, + }); + var xt = (function (n) { + _f(e, n); + function e(r, s) { + var i; + return ( + r === void 0 && (r = {}), + (i = n.call(this, r) || this), + (i.labels = {}), + (i.smoothChildTiming = !!r.smoothChildTiming), + (i.autoRemoveChildren = !!r.autoRemoveChildren), + (i._sort = Ot(r.sortChildren)), + Fe && wn(r.parent || Fe, Bn(i), s), + r.reversed && i.reverse(), + r.paused && i.paused(!0), + r.scrollTrigger && Df(Bn(i), r.scrollTrigger), + i + ); + } + var t = e.prototype; + return ( + (t.to = function (s, i, o) { + return Ls(0, arguments, this), this; + }), + (t.from = function (s, i, o) { + return Ls(1, arguments, this), this; + }), + (t.fromTo = function (s, i, o, a) { + return Ls(2, arguments, this), this; + }), + (t.set = function (s, i, o) { + return ( + (i.duration = 0), + (i.parent = this), + Ps(i).repeatDelay || (i.repeat = 0), + (i.immediateRender = !!i.immediateRender), + new Ye(s, i, Qt(this, o), 1), + this + ); + }), + (t.call = function (s, i, o) { + return wn(this, Ye.delayedCall(0, s, i), o); + }), + (t.staggerTo = function (s, i, o, a, l, c, u) { + return ( + (o.duration = i), + (o.stagger = o.stagger || a), + (o.onComplete = c), + (o.onCompleteParams = u), + (o.parent = this), + new Ye(s, o, Qt(this, l)), + this + ); + }), + (t.staggerFrom = function (s, i, o, a, l, c, u) { + return ( + (o.runBackwards = 1), + (Ps(o).immediateRender = Ot(o.immediateRender)), + this.staggerTo(s, i, o, a, l, c, u) + ); + }), + (t.staggerFromTo = function (s, i, o, a, l, c, u, f) { + return ( + (a.startAt = o), + (Ps(a).immediateRender = Ot(a.immediateRender)), + this.staggerTo(s, i, a, l, c, u, f) + ); + }), + (t.render = function (s, i, o) { + var a = this._time, + l = this._dirty ? this.totalDuration() : this._tDur, + c = this._dur, + u = s <= 0 ? 0 : st(s), + f = this._zTime < 0 != s < 0 && (this._initted || !c), + h, + p, + _, + d, + m, + v, + b, + E, + T, + S, + k, + O; + if ( + (this !== Fe && u > l && s >= 0 && (u = l), + u !== this._tTime || o || f) + ) { + if ( + (a !== this._time && + c && + ((u += this._time - a), (s += this._time - a)), + (h = u), + (T = this._start), + (E = this._ts), + (v = !E), + f && (c || (a = this._zTime), (s || !i) && (this._zTime = s)), + this._repeat) + ) { + if ( + ((k = this._yoyo), + (m = c + this._rDelay), + this._repeat < -1 && s < 0) + ) + return this.totalTime(m * 100 + s, i, o); + if ( + ((h = st(u % m)), + u === l + ? ((d = this._repeat), (h = c)) + : ((d = ~~(u / m)), + d && d === u / m && ((h = c), d--), + h > c && (h = c)), + (S = Gr(this._tTime, m)), + !a && + this._tTime && + S !== d && + this._tTime - S * m - this._dur <= 0 && + (S = d), + k && d & 1 && ((h = c - h), (O = 1)), + d !== S && !this._lock) + ) { + var A = k && S & 1, + y = A === (k && d & 1); + if ( + (d < S && (A = !A), + (a = A ? 0 : u % c ? c : u), + (this._lock = 1), + (this.render(a || (O ? 0 : st(d * m)), i, !c)._lock = 0), + (this._tTime = u), + !i && this.parent && Vt(this, "onRepeat"), + this.vars.repeatRefresh && !O && (this.invalidate()._lock = 1), + (a && a !== this._time) || + v !== !this._ts || + (this.vars.onRepeat && !this.parent && !this._act)) + ) + return this; + if ( + ((c = this._dur), + (l = this._tDur), + y && + ((this._lock = 2), + (a = A ? c : -1e-4), + this.render(a, !0), + this.vars.repeatRefresh && !O && this.invalidate()), + (this._lock = 0), + !this._ts && !v) + ) + return this; + Qf(this, O); + } + } + if ( + (this._hasPause && + !this._forcing && + this._lock < 2 && + ((b = __(this, st(a), st(h))), b && (u -= h - (h = b._start))), + (this._tTime = u), + (this._time = h), + (this._act = !E), + this._initted || + ((this._onUpdate = this.vars.onUpdate), + (this._initted = 1), + (this._zTime = s), + (a = 0)), + !a && h && !i && !d && (Vt(this, "onStart"), this._tTime !== u)) + ) + return this; + if (h >= a && s >= 0) + for (p = this._first; p; ) { + if ( + ((_ = p._next), (p._act || h >= p._start) && p._ts && b !== p) + ) { + if (p.parent !== this) return this.render(s, i, o); + if ( + (p.render( + p._ts > 0 + ? (h - p._start) * p._ts + : (p._dirty ? p.totalDuration() : p._tDur) + + (h - p._start) * p._ts, + i, + o + ), + h !== this._time || (!this._ts && !v)) + ) { + (b = 0), _ && (u += this._zTime = -Re); + break; + } + } + p = _; + } + else { + p = this._last; + for (var L = s < 0 ? s : h; p; ) { + if ( + ((_ = p._prev), (p._act || L <= p._end) && p._ts && b !== p) + ) { + if (p.parent !== this) return this.render(s, i, o); + if ( + (p.render( + p._ts > 0 + ? (L - p._start) * p._ts + : (p._dirty ? p.totalDuration() : p._tDur) + + (L - p._start) * p._ts, + i, + o || (ft && (p._initted || p._startAt)) + ), + h !== this._time || (!this._ts && !v)) + ) { + (b = 0), _ && (u += this._zTime = L ? -Re : Re); + break; + } + } + p = _; + } + } + if ( + b && + !i && + (this.pause(), + (b.render(h >= a ? 0 : -Re)._zTime = h >= a ? 1 : -1), + this._ts) + ) + return (this._start = T), to(this), this.render(s, i, o); + this._onUpdate && !i && Vt(this, "onUpdate", !0), + ((u === l && this._tTime >= this.totalDuration()) || (!u && a)) && + (T === this._start || Math.abs(E) !== Math.abs(this._ts)) && + (this._lock || + ((s || !c) && + ((u === l && this._ts > 0) || (!u && this._ts < 0)) && + or(this, 1), + !i && + !(s < 0 && !a) && + (u || a || !l) && + (Vt( + this, + u === l && s >= 0 ? "onComplete" : "onReverseComplete", + !0 + ), + this._prom && + !(u < l && this.timeScale() > 0) && + this._prom()))); + } + return this; + }), + (t.add = function (s, i) { + var o = this; + if ((Fn(i) || (i = Qt(this, i, s)), !(s instanceof Us))) { + if (ht(s)) + return ( + s.forEach(function (a) { + return o.add(a, i); + }), + this + ); + if (rt(s)) return this.addLabel(s, i); + if (ze(s)) s = Ye.delayedCall(0, s); + else return this; + } + return this !== s ? wn(this, s, i) : this; + }), + (t.getChildren = function (s, i, o, a) { + s === void 0 && (s = !0), + i === void 0 && (i = !0), + o === void 0 && (o = !0), + a === void 0 && (a = -Jt); + for (var l = [], c = this._first; c; ) + c._start >= a && + (c instanceof Ye + ? i && l.push(c) + : (o && l.push(c), + s && l.push.apply(l, c.getChildren(!0, i, o)))), + (c = c._next); + return l; + }), + (t.getById = function (s) { + for (var i = this.getChildren(1, 1, 1), o = i.length; o--; ) + if (i[o].vars.id === s) return i[o]; + }), + (t.remove = function (s) { + return rt(s) + ? this.removeLabel(s) + : ze(s) + ? this.killTweensOf(s) + : (Qi(this, s), + s === this._recent && (this._recent = this._last), + Ar(this)); + }), + (t.totalTime = function (s, i) { + return arguments.length + ? ((this._forcing = 1), + !this._dp && + this._ts && + (this._start = st( + qt.time - + (this._ts > 0 + ? s / this._ts + : (this.totalDuration() - s) / -this._ts) + )), + n.prototype.totalTime.call(this, s, i), + (this._forcing = 0), + this) + : this._tTime; + }), + (t.addLabel = function (s, i) { + return (this.labels[s] = Qt(this, i)), this; + }), + (t.removeLabel = function (s) { + return delete this.labels[s], this; + }), + (t.addPause = function (s, i, o) { + var a = Ye.delayedCall(0, i || Rs, o); + return ( + (a.data = "isPause"), (this._hasPause = 1), wn(this, a, Qt(this, s)) + ); + }), + (t.removePause = function (s) { + var i = this._first; + for (s = Qt(this, s); i; ) + i._start === s && i.data === "isPause" && or(i), (i = i._next); + }), + (t.killTweensOf = function (s, i, o) { + for (var a = this.getTweensOf(s, o), l = a.length; l--; ) + cr !== a[l] && a[l].kill(s, i); + return this; + }), + (t.getTweensOf = function (s, i) { + for (var o = [], a = en(s), l = this._first, c = Fn(i), u; l; ) + l instanceof Ye + ? c_(l._targets, a) && + (c + ? (!cr || (l._initted && l._ts)) && + l.globalTime(0) <= i && + l.globalTime(l.totalDuration()) > i + : !i || l.isActive()) && + o.push(l) + : (u = l.getTweensOf(a, i)).length && o.push.apply(o, u), + (l = l._next); + return o; + }), + (t.tweenTo = function (s, i) { + i = i || {}; + var o = this, + a = Qt(o, s), + l = i, + c = l.startAt, + u = l.onStart, + f = l.onStartParams, + h = l.immediateRender, + p, + _ = Ye.to( + o, + Zt( + { + ease: i.ease || "none", + lazy: !1, + immediateRender: !1, + time: a, + overwrite: "auto", + duration: + i.duration || + Math.abs( + (a - (c && "time" in c ? c.time : o._time)) / o.timeScale() + ) || + Re, + onStart: function () { + if ((o.pause(), !p)) { + var m = + i.duration || + Math.abs( + (a - (c && "time" in c ? c.time : o._time)) / + o.timeScale() + ); + _._dur !== m && Jr(_, m, 0, 1).render(_._time, !0, !0), + (p = 1); + } + u && u.apply(_, f || []); + }, + }, + i + ) + ); + return h ? _.render(0) : _; + }), + (t.tweenFromTo = function (s, i, o) { + return this.tweenTo(i, Zt({ startAt: { time: Qt(this, s) } }, o)); + }), + (t.recent = function () { + return this._recent; + }), + (t.nextLabel = function (s) { + return s === void 0 && (s = this._time), qf(this, Qt(this, s)); + }), + (t.previousLabel = function (s) { + return s === void 0 && (s = this._time), qf(this, Qt(this, s), 1); + }), + (t.currentLabel = function (s) { + return arguments.length + ? this.seek(s, !0) + : this.previousLabel(this._time + Re); + }), + (t.shiftChildren = function (s, i, o) { + o === void 0 && (o = 0); + for (var a = this._first, l = this.labels, c; a; ) + a._start >= o && ((a._start += s), (a._end += s)), (a = a._next); + if (i) for (c in l) l[c] >= o && (l[c] += s); + return Ar(this); + }), + (t.invalidate = function (s) { + var i = this._first; + for (this._lock = 0; i; ) i.invalidate(s), (i = i._next); + return n.prototype.invalidate.call(this, s); + }), + (t.clear = function (s) { + s === void 0 && (s = !0); + for (var i = this._first, o; i; ) + (o = i._next), this.remove(i), (i = o); + return ( + this._dp && (this._time = this._tTime = this._pTime = 0), + s && (this.labels = {}), + Ar(this) + ); + }), + (t.totalDuration = function (s) { + var i = 0, + o = this, + a = o._last, + l = Jt, + c, + u, + f; + if (arguments.length) + return o.timeScale( + (o._repeat < 0 ? o.duration() : o.totalDuration()) / + (o.reversed() ? -s : s) + ); + if (o._dirty) { + for (f = o.parent; a; ) + (c = a._prev), + a._dirty && a.totalDuration(), + (u = a._start), + u > l && o._sort && a._ts && !o._lock + ? ((o._lock = 1), (wn(o, a, u - a._delay, 1)._lock = 0)) + : (l = u), + u < 0 && + a._ts && + ((i -= u), + ((!f && !o._dp) || (f && f.smoothChildTiming)) && + ((o._start += u / o._ts), (o._time -= u), (o._tTime -= u)), + o.shiftChildren(-u, !1, -1 / 0), + (l = 0)), + a._end > i && a._ts && (i = a._end), + (a = c); + Jr(o, o === Fe && o._time > i ? o._time : i, 1, 1), (o._dirty = 0); + } + return o._tDur; + }), + (e.updateRoot = function (s) { + if ((Fe._ts && (Mf(Fe, eo(s, Fe)), (Sf = qt.frame)), qt.frame >= Cf)) { + Cf += Ht.autoSleep || 120; + var i = Fe._first; + if ((!i || !i._ts) && Ht.autoSleep && qt._listeners.length < 2) { + for (; i && !i._ts; ) i = i._next; + i || qt.sleep(); + } + } + }), + e + ); + })(Us); + Zt(xt.prototype, { _lock: 0, _hasPause: 0, _forcing: 0 }); + var R_ = function (e, t, r, s, i, o, a) { + var l = new Rt(this._pt, e, t, 0, 1, ah, null, i), + c = 0, + u = 0, + f, + h, + p, + _, + d, + m, + v, + b; + for ( + l.b = r, + l.e = s, + r += "", + s += "", + (v = ~s.indexOf("random(")) && (s = Ns(s)), + o && ((b = [r, s]), o(b, e, t), (r = b[0]), (s = b[1])), + h = r.match(Na) || []; + (f = Na.exec(s)); + + ) + (_ = f[0]), + (d = s.substring(c, f.index)), + p ? (p = (p + 1) % 5) : d.substr(-5) === "rgba(" && (p = 1), + _ !== h[u++] && + ((m = parseFloat(h[u - 1]) || 0), + (l._pt = { + _next: l._pt, + p: d || u === 1 ? d : ",", + s: m, + c: _.charAt(1) === "=" ? Xr(m, _) - m : parseFloat(_) - m, + m: p && p < 4 ? Math.round : 0, + }), + (c = Na.lastIndex)); + return ( + (l.c = c < s.length ? s.substring(c, s.length) : ""), + (l.fp = a), + (bf.test(s) || v) && (l.e = 0), + (this._pt = l), + l + ); + }, + Qa = function (e, t, r, s, i, o, a, l, c, u) { + ze(s) && (s = s(i || 0, e, o)); + var f = e[t], + h = + r !== "get" + ? r + : ze(f) + ? c + ? e[ + t.indexOf("set") || !ze(e["get" + t.substr(3)]) + ? t + : "get" + t.substr(3) + ](c) + : e[t]() + : f, + p = ze(f) ? (c ? B_ : ih) : nl, + _; + if ( + (rt(s) && + (~s.indexOf("random(") && (s = Ns(s)), + s.charAt(1) === "=" && + ((_ = Xr(h, s) + (dt(h) || 0)), (_ || _ === 0) && (s = _))), + !u || h !== s || el) + ) + return !isNaN(h * s) && s !== "" + ? ((_ = new Rt( + this._pt, + e, + t, + +h || 0, + s - (h || 0), + typeof f == "boolean" ? $_ : oh, + 0, + p + )), + c && (_.fp = c), + a && _.modifier(a, this, e), + (this._pt = _)) + : (!f && !(t in e) && $a(t, s), + R_.call(this, e, t, h, s, p, l || Ht.stringFilter, c)); + }, + P_ = function (e, t, r, s, i) { + if ( + (ze(e) && (e = Hs(e, i, t, r, s)), + !yn(e) || (e.style && e.nodeType) || ht(e) || vf(e)) + ) + return rt(e) ? Hs(e, i, t, r, s) : e; + var o = {}, + a; + for (a in e) o[a] = Hs(e[a], i, t, r, s); + return o; + }, + nh = function (e, t, r, s, i, o) { + var a, l, c, u; + if ( + Wt[e] && + (a = new Wt[e]()).init( + i, + a.rawVars ? t[e] : P_(t[e], s, i, o, r), + r, + s, + o + ) !== !1 && + ((r._pt = l = new Rt(r._pt, i, e, 0, 1, a.render, a, 0, a.priority)), + r !== Zr) + ) + for (c = r._ptLookup[r._targets.indexOf(i)], u = a._props.length; u--; ) + c[a._props[u]] = l; + return a; + }, + cr, + el, + tl = function n(e, t, r) { + var s = e.vars, + i = s.ease, + o = s.startAt, + a = s.immediateRender, + l = s.lazy, + c = s.onUpdate, + u = s.runBackwards, + f = s.yoyoEase, + h = s.keyframes, + p = s.autoRevert, + _ = e._dur, + d = e._startAt, + m = e._targets, + v = e.parent, + b = v && v.data === "nested" ? v.vars.targets : m, + E = e._overwrite === "auto" && !Ia, + T = e.timeline, + S, + k, + O, + A, + y, + L, + U, + F, + K, + ae, + be, + ne, + Z; + if ( + (T && (!h || !i) && (i = "none"), + (e._ease = Mr(i, Yr.ease)), + (e._yEase = f ? Zf(Mr(f === !0 ? i : f, Yr.ease)) : 0), + f && + e._yoyo && + !e._repeat && + ((f = e._yEase), (e._yEase = e._ease), (e._ease = f)), + (e._from = !T && !!s.runBackwards), + !T || (h && !s.stagger)) + ) { + if ( + ((F = m[0] ? Sr(m[0]).harness : 0), + (ne = F && s[F.prop]), + (S = Zi(s, Ua)), + d && + (d._zTime < 0 && d.progress(1), + t < 0 && u && a && !p + ? d.render(-1, !0) + : d.revert(u && _ ? Xi : a_), + (d._lazy = 0)), + o) + ) { + if ( + (or( + (e._startAt = Ye.set( + m, + Zt( + { + data: "isStart", + overwrite: !1, + parent: v, + immediateRender: !0, + lazy: !d && Ot(l), + startAt: null, + delay: 0, + onUpdate: + c && + function () { + return Vt(e, "onUpdate"); + }, + stagger: 0, + }, + o + ) + )) + ), + (e._startAt._dp = 0), + (e._startAt._sat = e), + t < 0 && (ft || (!a && !p)) && e._startAt.revert(Xi), + a && _ && t <= 0 && r <= 0) + ) { + t && (e._zTime = t); + return; + } + } else if (u && _ && !d) { + if ( + (t && (a = !1), + (O = Zt( + { + overwrite: !1, + data: "isFromStart", + lazy: a && !d && Ot(l), + immediateRender: a, + stagger: 0, + parent: v, + }, + S + )), + ne && (O[F.prop] = ne), + or((e._startAt = Ye.set(m, O))), + (e._startAt._dp = 0), + (e._startAt._sat = e), + t < 0 && (ft ? e._startAt.revert(Xi) : e._startAt.render(-1, !0)), + (e._zTime = t), + !a) + ) + n(e._startAt, Re, Re); + else if (!t) return; + } + for ( + e._pt = e._ptCache = 0, l = (_ && Ot(l)) || (l && !_), k = 0; + k < m.length; + k++ + ) { + if ( + ((y = m[k]), + (U = y._gsap || Va(m)[k]._gsap), + (e._ptLookup[k] = ae = {}), + Ha[U.id] && ir.length && Ji(), + (be = b === m ? k : b.indexOf(y)), + F && + (K = new F()).init(y, ne || S, e, be, b) !== !1 && + ((e._pt = A = + new Rt(e._pt, y, K.name, 0, 1, K.render, K, 0, K.priority)), + K._props.forEach(function (se) { + ae[se] = A; + }), + K.priority && (L = 1)), + !F || ne) + ) + for (O in S) + Wt[O] && (K = nh(O, S, e, be, y, b)) + ? K.priority && (L = 1) + : (ae[O] = A = + Qa.call(e, y, O, "get", S[O], be, b, 0, s.stringFilter)); + e._op && e._op[k] && e.kill(y, e._op[k]), + E && + e._pt && + ((cr = e), + Fe.killTweensOf(y, ae, e.globalTime(t)), + (Z = !e.parent), + (cr = 0)), + e._pt && l && (Ha[U.id] = 1); + } + L && lh(e), e._onInit && e._onInit(e); + } + (e._onUpdate = c), + (e._initted = (!e._op || e._pt) && !Z), + h && t <= 0 && T.render(Jt, !0, !0); + }, + L_ = function (e, t, r, s, i, o, a, l) { + var c = ((e._pt && e._ptCache) || (e._ptCache = {}))[t], + u, + f, + h, + p; + if (!c) + for ( + c = e._ptCache[t] = [], h = e._ptLookup, p = e._targets.length; + p--; + + ) { + if (((u = h[p][t]), u && u.d && u.d._pt)) + for (u = u.d._pt; u && u.p !== t && u.fp !== t; ) u = u._next; + if (!u) + return ( + (el = 1), + (e.vars[t] = "+=0"), + tl(e, a), + (el = 0), + l ? Is(t + " not eligible for reset") : 1 + ); + c.push(u); + } + for (p = c.length; p--; ) + (f = c[p]), + (u = f._pt || f), + (u.s = (s || s === 0) && !i ? s : u.s + (s || 0) + o * u.c), + (u.c = r - u.s), + f.e && (f.e = qe(r) + dt(f.e)), + f.b && (f.b = u.s + dt(f.b)); + }, + D_ = function (e, t) { + var r = e[0] ? Sr(e[0]).harness : 0, + s = r && r.aliases, + i, + o, + a, + l; + if (!s) return t; + i = Cr({}, t); + for (o in s) + if (o in i) + for (l = s[o].split(","), a = l.length; a--; ) i[l[a]] = i[o]; + return i; + }, + N_ = function (e, t, r, s) { + var i = t.ease || s || "power1.inOut", + o, + a; + if (ht(t)) + (a = r[e] || (r[e] = [])), + t.forEach(function (l, c) { + return a.push({ t: (c / (t.length - 1)) * 100, v: l, e: i }); + }); + else + for (o in t) + (a = r[o] || (r[o] = [])), + o === "ease" || a.push({ t: parseFloat(e), v: t[o], e: i }); + }, + Hs = function (e, t, r, s, i) { + return ze(e) + ? e.call(t, r, s, i) + : rt(e) && ~e.indexOf("random(") + ? Ns(e) + : e; + }, + rh = Wa + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", + sh = {}; + It(rh + ",id,stagger,delay,duration,paused,scrollTrigger", function (n) { + return (sh[n] = 1); + }); + var Ye = (function (n) { + _f(e, n); + function e(r, s, i, o) { + var a; + typeof s == "number" && ((i.duration = s), (s = i), (i = null)), + (a = n.call(this, o ? s : Ps(s)) || this); + var l = a.vars, + c = l.duration, + u = l.delay, + f = l.immediateRender, + h = l.stagger, + p = l.overwrite, + _ = l.keyframes, + d = l.defaults, + m = l.scrollTrigger, + v = l.yoyoEase, + b = s.parent || Fe, + E = (ht(r) || vf(r) ? Fn(r[0]) : "length" in s) ? [r] : en(r), + T, + S, + k, + O, + A, + y, + L, + U; + if ( + ((a._targets = E.length + ? Va(E) + : Is( + "GSAP target " + r + " not found. https://gsap.com", + !Ht.nullTargetWarn + ) || []), + (a._ptLookup = []), + (a._overwrite = p), + _ || h || Yi(c) || Yi(u)) + ) { + if ( + ((s = a.vars), + (T = a.timeline = + new xt({ + data: "nested", + defaults: d || {}, + targets: b && b.data === "nested" ? b.vars.targets : E, + })), + T.kill(), + (T.parent = T._dp = Bn(a)), + (T._start = 0), + h || Yi(c) || Yi(u)) + ) { + if (((O = E.length), (L = h && Uf(h)), yn(h))) + for (A in h) ~rh.indexOf(A) && (U || (U = {}), (U[A] = h[A])); + for (S = 0; S < O; S++) + (k = Zi(s, sh)), + (k.stagger = 0), + v && (k.yoyoEase = v), + U && Cr(k, U), + (y = E[S]), + (k.duration = +Hs(c, Bn(a), S, y, E)), + (k.delay = (+Hs(u, Bn(a), S, y, E) || 0) - a._delay), + !h && + O === 1 && + k.delay && + ((a._delay = u = k.delay), (a._start += u), (k.delay = 0)), + T.to(y, k, L ? L(S, y, E) : 0), + (T._ease = pe.none); + T.duration() ? (c = u = 0) : (a.timeline = 0); + } else if (_) { + Ps(Zt(T.vars.defaults, { ease: "none" })), + (T._ease = Mr(_.ease || s.ease || "none")); + var F = 0, + K, + ae, + be; + if (ht(_)) + _.forEach(function (ne) { + return T.to(E, ne, ">"); + }), + T.duration(); + else { + k = {}; + for (A in _) + A === "ease" || A === "easeEach" || N_(A, _[A], k, _.easeEach); + for (A in k) + for ( + K = k[A].sort(function (ne, Z) { + return ne.t - Z.t; + }), + F = 0, + S = 0; + S < K.length; + S++ + ) + (ae = K[S]), + (be = { + ease: ae.e, + duration: ((ae.t - (S ? K[S - 1].t : 0)) / 100) * c, + }), + (be[A] = ae.v), + T.to(E, be, F), + (F += be.duration); + T.duration() < c && T.to({}, { duration: c - T.duration() }); + } + } + c || a.duration((c = T.duration())); + } else a.timeline = 0; + return ( + p === !0 && !Ia && ((cr = Bn(a)), Fe.killTweensOf(E), (cr = 0)), + wn(b, Bn(a), i), + s.reversed && a.reverse(), + s.paused && a.paused(!0), + (f || + (!c && + !_ && + a._start === st(b._time) && + Ot(f) && + d_(Bn(a)) && + b.data !== "nested")) && + ((a._tTime = -Re), a.render(Math.max(0, -u) || 0)), + m && Df(Bn(a), m), + a + ); + } + var t = e.prototype; + return ( + (t.render = function (s, i, o) { + var a = this._time, + l = this._tDur, + c = this._dur, + u = s < 0, + f = s > l - Re && !u ? l : s < Re ? 0 : s, + h, + p, + _, + d, + m, + v, + b, + E, + T; + if (!c) m_(this, s, i, o); + else if ( + f !== this._tTime || + !s || + o || + (!this._initted && this._tTime) || + (this._startAt && this._zTime < 0 !== u) + ) { + if (((h = f), (E = this.timeline), this._repeat)) { + if (((d = c + this._rDelay), this._repeat < -1 && u)) + return this.totalTime(d * 100 + s, i, o); + if ( + ((h = st(f % d)), + f === l + ? ((_ = this._repeat), (h = c)) + : ((_ = ~~(f / d)), + _ && _ === st(f / d) && ((h = c), _--), + h > c && (h = c)), + (v = this._yoyo && _ & 1), + v && ((T = this._yEase), (h = c - h)), + (m = Gr(this._tTime, d)), + h === a && !o && this._initted && _ === m) + ) + return (this._tTime = f), this; + _ !== m && + (E && this._yEase && Qf(E, v), + this.vars.repeatRefresh && + !v && + !this._lock && + this._time !== d && + this._initted && + ((this._lock = o = 1), + (this.render(st(d * _), !0).invalidate()._lock = 0))); + } + if (!this._initted) { + if (Nf(this, u ? s : h, o, i, f)) return (this._tTime = 0), this; + if (a !== this._time && !(o && this.vars.repeatRefresh && _ !== m)) + return this; + if (c !== this._dur) return this.render(s, i, o); + } + if ( + ((this._tTime = f), + (this._time = h), + !this._act && this._ts && ((this._act = 1), (this._lazy = 0)), + (this.ratio = b = (T || this._ease)(h / c)), + this._from && (this.ratio = b = 1 - b), + h && !a && !i && !_ && (Vt(this, "onStart"), this._tTime !== f)) + ) + return this; + for (p = this._pt; p; ) p.r(b, p.d), (p = p._next); + (E && E.render(s < 0 ? s : E._dur * E._ease(h / this._dur), i, o)) || + (this._startAt && (this._zTime = s)), + this._onUpdate && + !i && + (u && qa(this, s, i, o), Vt(this, "onUpdate")), + this._repeat && + _ !== m && + this.vars.onRepeat && + !i && + this.parent && + Vt(this, "onRepeat"), + (f === this._tDur || !f) && + this._tTime === f && + (u && !this._onUpdate && qa(this, s, !0, !0), + (s || !c) && + ((f === this._tDur && this._ts > 0) || (!f && this._ts < 0)) && + or(this, 1), + !i && + !(u && !a) && + (f || a || v) && + (Vt(this, f === l ? "onComplete" : "onReverseComplete", !0), + this._prom && + !(f < l && this.timeScale() > 0) && + this._prom())); + } + return this; + }), + (t.targets = function () { + return this._targets; + }), + (t.invalidate = function (s) { + return ( + (!s || !this.vars.runBackwards) && (this._startAt = 0), + (this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0), + (this._ptLookup = []), + this.timeline && this.timeline.invalidate(s), + n.prototype.invalidate.call(this, s) + ); + }), + (t.resetTo = function (s, i, o, a, l) { + $s || qt.wake(), this._ts || this.play(); + var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), + u; + return ( + this._initted || tl(this, c), + (u = this._ease(c / this._dur)), + L_(this, s, i, o, a, u, c, l) + ? this.resetTo(s, i, o, a, 1) + : (no(this, 0), + this.parent || + Rf( + this._dp, + this, + "_first", + "_last", + this._dp._sort ? "_start" : 0 + ), + this.render(0)) + ); + }), + (t.kill = function (s, i) { + if ((i === void 0 && (i = "all"), !s && (!i || i === "all"))) + return (this._lazy = this._pt = 0), this.parent ? Bs(this) : this; + if (this.timeline) { + var o = this.timeline.totalDuration(); + return ( + this.timeline.killTweensOf(s, i, cr && cr.vars.overwrite !== !0) + ._first || Bs(this), + this.parent && + o !== this.timeline.totalDuration() && + Jr(this, (this._dur * this.timeline._tDur) / o, 0, 1), + this + ); + } + var a = this._targets, + l = s ? en(s) : a, + c = this._ptLookup, + u = this._pt, + f, + h, + p, + _, + d, + m, + v; + if ((!i || i === "all") && f_(a, l)) + return i === "all" && (this._pt = 0), Bs(this); + for ( + f = this._op = this._op || [], + i !== "all" && + (rt(i) && + ((d = {}), + It(i, function (b) { + return (d[b] = 1); + }), + (i = d)), + (i = D_(a, i))), + v = a.length; + v--; + + ) + if (~l.indexOf(a[v])) { + (h = c[v]), + i === "all" + ? ((f[v] = i), (_ = h), (p = {})) + : ((p = f[v] = f[v] || {}), (_ = i)); + for (d in _) + (m = h && h[d]), + m && + ((!("kill" in m.d) || m.d.kill(d) === !0) && + Qi(this, m, "_pt"), + delete h[d]), + p !== "all" && (p[d] = 1); + } + return this._initted && !this._pt && u && Bs(this), this; + }), + (e.to = function (s, i) { + return new e(s, i, arguments[2]); + }), + (e.from = function (s, i) { + return Ls(1, arguments); + }), + (e.delayedCall = function (s, i, o, a) { + return new e(i, 0, { + immediateRender: !1, + lazy: !1, + overwrite: !1, + delay: s, + onComplete: i, + onReverseComplete: i, + onCompleteParams: o, + onReverseCompleteParams: o, + callbackScope: a, + }); + }), + (e.fromTo = function (s, i, o) { + return Ls(2, arguments); + }), + (e.set = function (s, i) { + return (i.duration = 0), i.repeatDelay || (i.repeat = 0), new e(s, i); + }), + (e.killTweensOf = function (s, i, o) { + return Fe.killTweensOf(s, i, o); + }), + e + ); + })(Us); + Zt(Ye.prototype, { _targets: [], _lazy: 0, _startAt: 0, _op: 0, _onInit: 0 }), + It("staggerTo,staggerFrom,staggerFromTo", function (n) { + Ye[n] = function () { + var e = new xt(), + t = Ya.call(arguments, 0); + return t.splice(n === "staggerFromTo" ? 5 : 4, 0, 0), e[n].apply(e, t); + }; + }); + var nl = function (e, t, r) { + return (e[t] = r); + }, + ih = function (e, t, r) { + return e[t](r); + }, + B_ = function (e, t, r, s) { + return e[t](s.fp, r); + }, + F_ = function (e, t, r) { + return e.setAttribute(t, r); + }, + rl = function (e, t) { + return ze(e[t]) ? ih : Pa(e[t]) && e.setAttribute ? F_ : nl; + }, + oh = function (e, t) { + return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t); + }, + $_ = function (e, t) { + return t.set(t.t, t.p, !!(t.s + t.c * e), t); + }, + ah = function (e, t) { + var r = t._pt, + s = ""; + if (!e && t.b) s = t.b; + else if (e === 1 && t.e) s = t.e; + else { + for (; r; ) + (s = + r.p + + (r.m + ? r.m(r.s + r.c * e) + : Math.round((r.s + r.c * e) * 1e4) / 1e4) + + s), + (r = r._next); + s += t.c; + } + t.set(t.t, t.p, s, t); + }, + sl = function (e, t) { + for (var r = t._pt; r; ) r.r(e, r.d), (r = r._next); + }, + U_ = function (e, t, r, s) { + for (var i = this._pt, o; i; ) + (o = i._next), i.p === s && i.modifier(e, t, r), (i = o); + }, + H_ = function (e) { + for (var t = this._pt, r, s; t; ) + (s = t._next), + (t.p === e && !t.op) || t.op === e + ? Qi(this, t, "_pt") + : t.dep || (r = 1), + (t = s); + return !r; + }, + z_ = function (e, t, r, s) { + s.mSet(e, t, s.m.call(s.tween, r, s.mt), s); + }, + lh = function (e) { + for (var t = e._pt, r, s, i, o; t; ) { + for (r = t._next, s = i; s && s.pr > t.pr; ) s = s._next; + (t._prev = s ? s._prev : o) ? (t._prev._next = t) : (i = t), + (t._next = s) ? (s._prev = t) : (o = t), + (t = r); + } + e._pt = i; + }, + Rt = (function () { + function n(t, r, s, i, o, a, l, c, u) { + (this.t = r), + (this.s = i), + (this.c = o), + (this.p = s), + (this.r = a || oh), + (this.d = l || this), + (this.set = c || nl), + (this.pr = u || 0), + (this._next = t), + t && (t._prev = this); + } + var e = n.prototype; + return ( + (e.modifier = function (r, s, i) { + (this.mSet = this.mSet || this.set), + (this.set = z_), + (this.m = r), + (this.mt = i), + (this.tween = s); + }), + n + ); + })(); + It( + Wa + + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", + function (n) { + return (Ua[n] = 1); + } + ), + (zt.TweenMax = zt.TweenLite = Ye), + (zt.TimelineLite = zt.TimelineMax = xt), + (Fe = new xt({ + sortChildren: !1, + defaults: Yr, + autoRemoveChildren: !0, + id: "root", + smoothChildTiming: !0, + })), + (Ht.stringFilter = Jf); + var Or = [], + ro = {}, + W_ = [], + ch = 0, + V_ = 0, + il = function (e) { + return (ro[e] || W_).map(function (t) { + return t(); + }); + }, + ol = function () { + var e = Date.now(), + t = []; + e - ch > 2 && + (il("matchMediaInit"), + Or.forEach(function (r) { + var s = r.queries, + i = r.conditions, + o, + a, + l, + c; + for (a in s) + (o = bn.matchMedia(s[a]).matches), + o && (l = 1), + o !== i[a] && ((i[a] = o), (c = 1)); + c && (r.revert(), l && t.push(r)); + }), + il("matchMediaRevert"), + t.forEach(function (r) { + return r.onMatch(r, function (s) { + return r.add(null, s); + }); + }), + (ch = e), + il("matchMedia")); + }, + uh = (function () { + function n(t, r) { + (this.selector = r && Ka(r)), + (this.data = []), + (this._r = []), + (this.isReverted = !1), + (this.id = V_++), + t && this.add(t); + } + var e = n.prototype; + return ( + (e.add = function (r, s, i) { + ze(r) && ((i = s), (s = r), (r = ze)); + var o = this, + a = function () { + var c = De, + u = o.selector, + f; + return ( + c && c !== o && c.data.push(o), + i && (o.selector = Ka(i)), + (De = o), + (f = s.apply(o, arguments)), + ze(f) && o._r.push(f), + (De = c), + (o.selector = u), + (o.isReverted = !1), + f + ); + }; + return ( + (o.last = a), + r === ze + ? a(o, function (l) { + return o.add(null, l); + }) + : r + ? (o[r] = a) + : a + ); + }), + (e.ignore = function (r) { + var s = De; + (De = null), r(this), (De = s); + }), + (e.getTweens = function () { + var r = []; + return ( + this.data.forEach(function (s) { + return s instanceof n + ? r.push.apply(r, s.getTweens()) + : s instanceof Ye && + !(s.parent && s.parent.data === "nested") && + r.push(s); + }), + r + ); + }), + (e.clear = function () { + this._r.length = this.data.length = 0; + }), + (e.kill = function (r, s) { + var i = this; + if ( + (r + ? (function () { + for (var a = i.getTweens(), l = i.data.length, c; l--; ) + (c = i.data[l]), + c.data === "isFlip" && + (c.revert(), + c.getChildren(!0, !0, !1).forEach(function (u) { + return a.splice(a.indexOf(u), 1); + })); + for ( + a + .map(function (u) { + return { + g: + u._dur || + u._delay || + (u._sat && !u._sat.vars.immediateRender) + ? u.globalTime(0) + : -1 / 0, + t: u, + }; + }) + .sort(function (u, f) { + return f.g - u.g || -1 / 0; + }) + .forEach(function (u) { + return u.t.revert(r); + }), + l = i.data.length; + l--; + + ) + (c = i.data[l]), + c instanceof xt + ? c.data !== "nested" && + (c.scrollTrigger && c.scrollTrigger.revert(), + c.kill()) + : !(c instanceof Ye) && c.revert && c.revert(r); + i._r.forEach(function (u) { + return u(r, i); + }), + (i.isReverted = !0); + })() + : this.data.forEach(function (a) { + return a.kill && a.kill(); + }), + this.clear(), + s) + ) + for (var o = Or.length; o--; ) + Or[o].id === this.id && Or.splice(o, 1); + }), + (e.revert = function (r) { + this.kill(r || {}); + }), + n + ); + })(), + q_ = (function () { + function n(t) { + (this.contexts = []), (this.scope = t), De && De.data.push(this); + } + var e = n.prototype; + return ( + (e.add = function (r, s, i) { + yn(r) || (r = { matches: r }); + var o = new uh(0, i || this.scope), + a = (o.conditions = {}), + l, + c, + u; + De && !o.selector && (o.selector = De.selector), + this.contexts.push(o), + (s = o.add("onMatch", s)), + (o.queries = r); + for (c in r) + c === "all" + ? (u = 1) + : ((l = bn.matchMedia(r[c])), + l && + (Or.indexOf(o) < 0 && Or.push(o), + (a[c] = l.matches) && (u = 1), + l.addListener + ? l.addListener(ol) + : l.addEventListener("change", ol))); + return ( + u && + s(o, function (f) { + return o.add(null, f); + }), + this + ); + }), + (e.revert = function (r) { + this.kill(r || {}); + }), + (e.kill = function (r) { + this.contexts.forEach(function (s) { + return s.kill(r, !0); + }); + }), + n + ); + })(), + so = { + registerPlugin: function () { + for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) + t[r] = arguments[r]; + t.forEach(function (s) { + return Yf(s); + }); + }, + timeline: function (e) { + return new xt(e); + }, + getTweensOf: function (e, t) { + return Fe.getTweensOf(e, t); + }, + getProperty: function (e, t, r, s) { + rt(e) && (e = en(e)[0]); + var i = Sr(e || {}).get, + o = r ? Of : kf; + return ( + r === "native" && (r = ""), + e && + (t + ? o(((Wt[t] && Wt[t].get) || i)(e, t, r, s)) + : function (a, l, c) { + return o(((Wt[a] && Wt[a].get) || i)(e, a, l, c)); + }) + ); + }, + quickSetter: function (e, t, r) { + if (((e = en(e)), e.length > 1)) { + var s = e.map(function (u) { + return Pt.quickSetter(u, t, r); + }), + i = s.length; + return function (u) { + for (var f = i; f--; ) s[f](u); + }; + } + e = e[0] || {}; + var o = Wt[t], + a = Sr(e), + l = (a.harness && (a.harness.aliases || {})[t]) || t, + c = o + ? function (u) { + var f = new o(); + (Zr._pt = 0), + f.init(e, r ? u + r : u, Zr, 0, [e]), + f.render(1, f), + Zr._pt && sl(1, Zr); + } + : a.set(e, l); + return o + ? c + : function (u) { + return c(e, l, r ? u + r : u, a, 1); + }; + }, + quickTo: function (e, t, r) { + var s, + i = Pt.to( + e, + Cr(((s = {}), (s[t] = "+=0.1"), (s.paused = !0), s), r || {}) + ), + o = function (l, c, u) { + return i.resetTo(t, l, c, u); + }; + return (o.tween = i), o; + }, + isTweening: function (e) { + return Fe.getTweensOf(e, !0).length > 0; + }, + defaults: function (e) { + return e && e.ease && (e.ease = Mr(e.ease, Yr.ease)), If(Yr, e || {}); + }, + config: function (e) { + return If(Ht, e || {}); + }, + registerEffect: function (e) { + var t = e.name, + r = e.effect, + s = e.plugins, + i = e.defaults, + o = e.extendTimeline; + (s || "").split(",").forEach(function (a) { + return ( + a && + !Wt[a] && + !zt[a] && + Is(t + " effect requires " + a + " plugin.") + ); + }), + (za[t] = function (a, l, c) { + return r(en(a), Zt(l || {}, i), c); + }), + o && + (xt.prototype[t] = function (a, l, c) { + return this.add(za[t](a, yn(l) ? l : (c = l) && {}, this), c); + }); + }, + registerEase: function (e, t) { + pe[e] = Mr(t); + }, + parseEase: function (e, t) { + return arguments.length ? Mr(e, t) : pe; + }, + getById: function (e) { + return Fe.getById(e); + }, + exportRoot: function (e, t) { + e === void 0 && (e = {}); + var r = new xt(e), + s, + i; + for ( + r.smoothChildTiming = Ot(e.smoothChildTiming), + Fe.remove(r), + r._dp = 0, + r._time = r._tTime = Fe._time, + s = Fe._first; + s; + + ) + (i = s._next), + (t || + !( + !s._dur && + s instanceof Ye && + s.vars.onComplete === s._targets[0] + )) && + wn(r, s, s._start - s._delay), + (s = i); + return wn(Fe, r, 0), r; + }, + context: function (e, t) { + return e ? new uh(e, t) : De; + }, + matchMedia: function (e) { + return new q_(e); + }, + matchMediaRefresh: function () { + return ( + Or.forEach(function (e) { + var t = e.conditions, + r, + s; + for (s in t) t[s] && ((t[s] = !1), (r = 1)); + r && e.revert(); + }) || ol() + ); + }, + addEventListener: function (e, t) { + var r = ro[e] || (ro[e] = []); + ~r.indexOf(t) || r.push(t); + }, + removeEventListener: function (e, t) { + var r = ro[e], + s = r && r.indexOf(t); + s >= 0 && r.splice(s, 1); + }, + utils: { + wrap: x_, + wrapYoyo: E_, + distribute: Uf, + random: zf, + snap: Hf, + normalize: T_, + getUnit: dt, + clamp: v_, + splitColor: Kf, + toArray: en, + selector: Ka, + mapRange: Vf, + pipe: b_, + unitize: w_, + interpolate: S_, + shuffle: $f, + }, + install: xf, + effects: za, + ticker: qt, + updateRoot: xt.updateRoot, + plugins: Wt, + globalTimeline: Fe, + core: { + PropTween: Rt, + globals: Ef, + Tween: Ye, + Timeline: xt, + Animation: Us, + getCache: Sr, + _removeLinkedListItem: Qi, + reverting: function () { + return ft; + }, + context: function (e) { + return e && De && (De.data.push(e), (e._ctx = De)), De; + }, + suppressOverwrites: function (e) { + return (Ia = e); + }, + }, + }; + It("to,from,fromTo,delayedCall,set,killTweensOf", function (n) { + return (so[n] = Ye[n]); + }), + qt.add(xt.updateRoot), + (Zr = so.to({}, { duration: 0 })); + var j_ = function (e, t) { + for (var r = e._pt; r && r.p !== t && r.op !== t && r.fp !== t; ) + r = r._next; + return r; + }, + Y_ = function (e, t) { + var r = e._targets, + s, + i, + o; + for (s in t) + for (i = r.length; i--; ) + (o = e._ptLookup[i][s]), + o && + (o = o.d) && + (o._pt && (o = j_(o, s)), + o && o.modifier && o.modifier(t[s], e, r[i], s)); + }, + al = function (e, t) { + return { + name: e, + rawVars: 1, + init: function (s, i, o) { + o._onInit = function (a) { + var l, c; + if ( + (rt(i) && + ((l = {}), + It(i, function (u) { + return (l[u] = 1); + }), + (i = l)), + t) + ) { + l = {}; + for (c in i) l[c] = t(i[c]); + i = l; + } + Y_(a, i); + }; + }, + }; + }, + Pt = + so.registerPlugin( + { + name: "attr", + init: function (e, t, r, s, i) { + var o, a, l; + this.tween = r; + for (o in t) + (l = e.getAttribute(o) || ""), + (a = this.add( + e, + "setAttribute", + (l || 0) + "", + t[o], + s, + i, + 0, + 0, + o + )), + (a.op = o), + (a.b = l), + this._props.push(o); + }, + render: function (e, t) { + for (var r = t._pt; r; ) + ft ? r.set(r.t, r.p, r.b, r) : r.r(e, r.d), (r = r._next); + }, + }, + { + name: "endArray", + init: function (e, t) { + for (var r = t.length; r--; ) + this.add(e, r, e[r] || 0, t[r], 0, 0, 0, 0, 0, 1); + }, + }, + al("roundProps", Xa), + al("modifiers"), + al("snap", Hf) + ) || so; + (Ye.version = xt.version = Pt.version = "3.12.5"), + (Tf = 1), + La() && Qr(), + pe.Power0, + pe.Power1, + pe.Power2, + pe.Power3, + pe.Power4, + pe.Linear, + pe.Quad, + pe.Cubic, + pe.Quart, + pe.Quint, + pe.Strong, + pe.Elastic, + pe.Back, + pe.SteppedEase, + pe.Bounce, + pe.Sine, + pe.Expo, + pe.Circ; + /*! + * CSSPlugin 3.12.5 + * https://gsap.com + * + * Copyright 2008-2024, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for + * Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com + */ var fh, + ur, + es, + ll, + Ir, + hh, + cl, + K_ = function () { + return typeof window < "u"; + }, + $n = {}, + Rr = 180 / Math.PI, + ts = Math.PI / 180, + ns = Math.atan2, + dh = 1e8, + ul = /([A-Z])/g, + X_ = /(left|right|width|margin|padding|x)/i, + G_ = /[\s,\(]\S/, + Tn = { + autoAlpha: "opacity,visibility", + scale: "scaleX,scaleY", + alpha: "opacity", + }, + fl = function (e, t) { + return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t); + }, + J_ = function (e, t) { + return t.set( + t.t, + t.p, + e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, + t + ); + }, + Z_ = function (e, t) { + return t.set( + t.t, + t.p, + e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, + t + ); + }, + Q_ = function (e, t) { + var r = t.s + t.c * e; + t.set(t.t, t.p, ~~(r + (r < 0 ? -0.5 : 0.5)) + t.u, t); + }, + ph = function (e, t) { + return t.set(t.t, t.p, e ? t.e : t.b, t); + }, + mh = function (e, t) { + return t.set(t.t, t.p, e !== 1 ? t.b : t.e, t); + }, + eg = function (e, t, r) { + return (e.style[t] = r); + }, + tg = function (e, t, r) { + return e.style.setProperty(t, r); + }, + ng = function (e, t, r) { + return (e._gsap[t] = r); + }, + rg = function (e, t, r) { + return (e._gsap.scaleX = e._gsap.scaleY = r); + }, + sg = function (e, t, r, s, i) { + var o = e._gsap; + (o.scaleX = o.scaleY = r), o.renderTransform(i, o); + }, + ig = function (e, t, r, s, i) { + var o = e._gsap; + (o[t] = r), o.renderTransform(i, o); + }, + $e = "transform", + Lt = $e + "Origin", + og = function n(e, t) { + var r = this, + s = this.target, + i = s.style, + o = s._gsap; + if (e in $n && i) { + if (((this.tfm = this.tfm || {}), e !== "transform")) + (e = Tn[e] || e), + ~e.indexOf(",") + ? e.split(",").forEach(function (a) { + return (r.tfm[a] = Un(s, a)); + }) + : (this.tfm[e] = o.x ? o[e] : Un(s, e)), + e === Lt && (this.tfm.zOrigin = o.zOrigin); + else + return Tn.transform.split(",").forEach(function (a) { + return n.call(r, a, t); + }); + if (this.props.indexOf($e) >= 0) return; + o.svg && + ((this.svgo = s.getAttribute("data-svg-origin")), + this.props.push(Lt, t, "")), + (e = $e); + } + (i || t) && this.props.push(e, t, i[e]); + }, + _h = function (e) { + e.translate && + (e.removeProperty("translate"), + e.removeProperty("scale"), + e.removeProperty("rotate")); + }, + ag = function () { + var e = this.props, + t = this.target, + r = t.style, + s = t._gsap, + i, + o; + for (i = 0; i < e.length; i += 3) + e[i + 1] + ? (t[e[i]] = e[i + 2]) + : e[i + 2] + ? (r[e[i]] = e[i + 2]) + : r.removeProperty( + e[i].substr(0, 2) === "--" + ? e[i] + : e[i].replace(ul, "-$1").toLowerCase() + ); + if (this.tfm) { + for (o in this.tfm) s[o] = this.tfm[o]; + s.svg && + (s.renderTransform(), + t.setAttribute("data-svg-origin", this.svgo || "")), + (i = cl()), + (!i || !i.isStart) && + !r[$e] && + (_h(r), + s.zOrigin && + r[Lt] && + ((r[Lt] += " " + s.zOrigin + "px"), + (s.zOrigin = 0), + s.renderTransform()), + (s.uncache = 1)); + } + }, + gh = function (e, t) { + var r = { target: e, props: [], revert: ag, save: og }; + return ( + e._gsap || Pt.core.getCache(e), + t && + t.split(",").forEach(function (s) { + return r.save(s); + }), + r + ); + }, + vh, + hl = function (e, t) { + var r = ur.createElementNS + ? ur.createElementNS( + (t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), + e + ) + : ur.createElement(e); + return r && r.style ? r : ur.createElement(e); + }, + xn = function n(e, t, r) { + var s = getComputedStyle(e); + return ( + s[t] || + s.getPropertyValue(t.replace(ul, "-$1").toLowerCase()) || + s.getPropertyValue(t) || + (!r && n(e, rs(t) || t, 1)) || + "" + ); + }, + yh = "O,Moz,ms,Ms,Webkit".split(","), + rs = function (e, t, r) { + var s = t || Ir, + i = s.style, + o = 5; + if (e in i && !r) return e; + for ( + e = e.charAt(0).toUpperCase() + e.substr(1); + o-- && !(yh[o] + e in i); + + ); + return o < 0 ? null : (o === 3 ? "ms" : o >= 0 ? yh[o] : "") + e; + }, + dl = function () { + K_() && + window.document && + ((fh = window), + (ur = fh.document), + (es = ur.documentElement), + (Ir = hl("div") || { style: {} }), + hl("div"), + ($e = rs($e)), + (Lt = $e + "Origin"), + (Ir.style.cssText = + "border-width:0;line-height:0;position:absolute;padding:0"), + (vh = !!rs("perspective")), + (cl = Pt.core.reverting), + (ll = 1)); + }, + pl = function n(e) { + var t = hl( + "svg", + (this.ownerSVGElement && + this.ownerSVGElement.getAttribute("xmlns")) || + "http://www.w3.org/2000/svg" + ), + r = this.parentNode, + s = this.nextSibling, + i = this.style.cssText, + o; + if ( + (es.appendChild(t), + t.appendChild(this), + (this.style.display = "block"), + e) + ) + try { + (o = this.getBBox()), + (this._gsapBBox = this.getBBox), + (this.getBBox = n); + } catch {} + else this._gsapBBox && (o = this._gsapBBox()); + return ( + r && (s ? r.insertBefore(this, s) : r.appendChild(this)), + es.removeChild(t), + (this.style.cssText = i), + o + ); + }, + bh = function (e, t) { + for (var r = t.length; r--; ) + if (e.hasAttribute(t[r])) return e.getAttribute(t[r]); + }, + wh = function (e) { + var t; + try { + t = e.getBBox(); + } catch { + t = pl.call(e, !0); + } + return ( + (t && (t.width || t.height)) || + e.getBBox === pl || + (t = pl.call(e, !0)), + t && !t.width && !t.x && !t.y + ? { + x: +bh(e, ["x", "cx", "x1"]) || 0, + y: +bh(e, ["y", "cy", "y1"]) || 0, + width: 0, + height: 0, + } + : t + ); + }, + Th = function (e) { + return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && wh(e)); + }, + Pr = function (e, t) { + if (t) { + var r = e.style, + s; + t in $n && t !== Lt && (t = $e), + r.removeProperty + ? ((s = t.substr(0, 2)), + (s === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), + r.removeProperty( + s === "--" ? t : t.replace(ul, "-$1").toLowerCase() + )) + : r.removeAttribute(t); + } + }, + fr = function (e, t, r, s, i, o) { + var a = new Rt(e._pt, t, r, 0, 1, o ? mh : ph); + return (e._pt = a), (a.b = s), (a.e = i), e._props.push(r), a; + }, + xh = { deg: 1, rad: 1, turn: 1 }, + lg = { grid: 1, flex: 1 }, + hr = function n(e, t, r, s) { + var i = parseFloat(r) || 0, + o = (r + "").trim().substr((i + "").length) || "px", + a = Ir.style, + l = X_.test(t), + c = e.tagName.toLowerCase() === "svg", + u = (c ? "client" : "offset") + (l ? "Width" : "Height"), + f = 100, + h = s === "px", + p = s === "%", + _, + d, + m, + v; + if (s === o || !i || xh[s] || xh[o]) return i; + if ( + (o !== "px" && !h && (i = n(e, t, r, "px")), + (v = e.getCTM && Th(e)), + (p || o === "%") && ($n[t] || ~t.indexOf("adius"))) + ) + return ( + (_ = v ? e.getBBox()[l ? "width" : "height"] : e[u]), + qe(p ? (i / _) * f : (i / 100) * _) + ); + if ( + ((a[l ? "width" : "height"] = f + (h ? o : s)), + (d = + ~t.indexOf("adius") || (s === "em" && e.appendChild && !c) + ? e + : e.parentNode), + v && (d = (e.ownerSVGElement || {}).parentNode), + (!d || d === ur || !d.appendChild) && (d = ur.body), + (m = d._gsap), + m && p && m.width && l && m.time === qt.time && !m.uncache) + ) + return qe((i / m.width) * f); + if (p && (t === "height" || t === "width")) { + var b = e.style[t]; + (e.style[t] = f + s), (_ = e[u]), b ? (e.style[t] = b) : Pr(e, t); + } else + (p || o === "%") && + !lg[xn(d, "display")] && + (a.position = xn(e, "position")), + d === e && (a.position = "static"), + d.appendChild(Ir), + (_ = Ir[u]), + d.removeChild(Ir), + (a.position = "absolute"); + return ( + l && p && ((m = Sr(d)), (m.time = qt.time), (m.width = d[u])), + qe(h ? (_ * i) / f : _ && i ? (f / _) * i : 0) + ); + }, + Un = function (e, t, r, s) { + var i; + return ( + ll || dl(), + t in Tn && + t !== "transform" && + ((t = Tn[t]), ~t.indexOf(",") && (t = t.split(",")[0])), + $n[t] && t !== "transform" + ? ((i = Ws(e, s)), + (i = + t !== "transformOrigin" + ? i[t] + : i.svg + ? i.origin + : oo(xn(e, Lt)) + " " + i.zOrigin + "px")) + : ((i = e.style[t]), + (!i || i === "auto" || s || ~(i + "").indexOf("calc(")) && + (i = + (io[t] && io[t](e, t, r)) || + xn(e, t) || + Af(e, t) || + (t === "opacity" ? 1 : 0))), + r && !~(i + "").trim().indexOf(" ") ? hr(e, t, i, r) + r : i + ); + }, + cg = function (e, t, r, s) { + if (!r || r === "none") { + var i = rs(t, e, 1), + o = i && xn(e, i, 1); + o && o !== r + ? ((t = i), (r = o)) + : t === "borderColor" && (r = xn(e, "borderTopColor")); + } + var a = new Rt(this._pt, e.style, t, 0, 1, ah), + l = 0, + c = 0, + u, + f, + h, + p, + _, + d, + m, + v, + b, + E, + T, + S; + if ( + ((a.b = r), + (a.e = s), + (r += ""), + (s += ""), + s === "auto" && + ((d = e.style[t]), + (e.style[t] = s), + (s = xn(e, t) || s), + d ? (e.style[t] = d) : Pr(e, t)), + (u = [r, s]), + Jf(u), + (r = u[0]), + (s = u[1]), + (h = r.match(Kr) || []), + (S = s.match(Kr) || []), + S.length) + ) { + for (; (f = Kr.exec(s)); ) + (m = f[0]), + (b = s.substring(l, f.index)), + _ + ? (_ = (_ + 1) % 5) + : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && + (_ = 1), + m !== (d = h[c++] || "") && + ((p = parseFloat(d) || 0), + (T = d.substr((p + "").length)), + m.charAt(1) === "=" && (m = Xr(p, m) + T), + (v = parseFloat(m)), + (E = m.substr((v + "").length)), + (l = Kr.lastIndex - E.length), + E || + ((E = E || Ht.units[t] || T), + l === s.length && ((s += E), (a.e += E))), + T !== E && (p = hr(e, t, d, E) || 0), + (a._pt = { + _next: a._pt, + p: b || c === 1 ? b : ",", + s: p, + c: v - p, + m: (_ && _ < 4) || t === "zIndex" ? Math.round : 0, + })); + a.c = l < s.length ? s.substring(l, s.length) : ""; + } else a.r = t === "display" && s === "none" ? mh : ph; + return bf.test(s) && (a.e = 0), (this._pt = a), a; + }, + Eh = { + top: "0%", + bottom: "100%", + left: "0%", + right: "100%", + center: "50%", + }, + ug = function (e) { + var t = e.split(" "), + r = t[0], + s = t[1] || "50%"; + return ( + (r === "top" || r === "bottom" || s === "left" || s === "right") && + ((e = r), (r = s), (s = e)), + (t[0] = Eh[r] || r), + (t[1] = Eh[s] || s), + t.join(" ") + ); + }, + fg = function (e, t) { + if (t.tween && t.tween._time === t.tween._dur) { + var r = t.t, + s = r.style, + i = t.u, + o = r._gsap, + a, + l, + c; + if (i === "all" || i === !0) (s.cssText = ""), (l = 1); + else + for (i = i.split(","), c = i.length; --c > -1; ) + (a = i[c]), + $n[a] && ((l = 1), (a = a === "transformOrigin" ? Lt : $e)), + Pr(r, a); + l && + (Pr(r, $e), + o && + (o.svg && r.removeAttribute("transform"), + Ws(r, 1), + (o.uncache = 1), + _h(s))); + } + }, + io = { + clearProps: function (e, t, r, s, i) { + if (i.data !== "isFromStart") { + var o = (e._pt = new Rt(e._pt, t, r, 0, 0, fg)); + return (o.u = s), (o.pr = -10), (o.tween = i), e._props.push(r), 1; + } + }, + }, + zs = [1, 0, 0, 1, 0, 0], + Sh = {}, + Ch = function (e) { + return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e; + }, + Ah = function (e) { + var t = xn(e, $e); + return Ch(t) ? zs : t.substr(7).match(yf).map(qe); + }, + ml = function (e, t) { + var r = e._gsap || Sr(e), + s = e.style, + i = Ah(e), + o, + a, + l, + c; + return r.svg && e.getAttribute("transform") + ? ((l = e.transform.baseVal.consolidate().matrix), + (i = [l.a, l.b, l.c, l.d, l.e, l.f]), + i.join(",") === "1,0,0,1,0,0" ? zs : i) + : (i === zs && + !e.offsetParent && + e !== es && + !r.svg && + ((l = s.display), + (s.display = "block"), + (o = e.parentNode), + (!o || !e.offsetParent) && + ((c = 1), (a = e.nextElementSibling), es.appendChild(e)), + (i = Ah(e)), + l ? (s.display = l) : Pr(e, "display"), + c && + (a + ? o.insertBefore(e, a) + : o + ? o.appendChild(e) + : es.removeChild(e))), + t && i.length > 6 ? [i[0], i[1], i[4], i[5], i[12], i[13]] : i); + }, + _l = function (e, t, r, s, i, o) { + var a = e._gsap, + l = i || ml(e, !0), + c = a.xOrigin || 0, + u = a.yOrigin || 0, + f = a.xOffset || 0, + h = a.yOffset || 0, + p = l[0], + _ = l[1], + d = l[2], + m = l[3], + v = l[4], + b = l[5], + E = t.split(" "), + T = parseFloat(E[0]) || 0, + S = parseFloat(E[1]) || 0, + k, + O, + A, + y; + r + ? l !== zs && + (O = p * m - _ * d) && + ((A = T * (m / O) + S * (-d / O) + (d * b - m * v) / O), + (y = T * (-_ / O) + S * (p / O) - (p * b - _ * v) / O), + (T = A), + (S = y)) + : ((k = wh(e)), + (T = k.x + (~E[0].indexOf("%") ? (T / 100) * k.width : T)), + (S = + k.y + (~(E[1] || E[0]).indexOf("%") ? (S / 100) * k.height : S))), + s || (s !== !1 && a.smooth) + ? ((v = T - c), + (b = S - u), + (a.xOffset = f + (v * p + b * d) - v), + (a.yOffset = h + (v * _ + b * m) - b)) + : (a.xOffset = a.yOffset = 0), + (a.xOrigin = T), + (a.yOrigin = S), + (a.smooth = !!s), + (a.origin = t), + (a.originIsAbsolute = !!r), + (e.style[Lt] = "0px 0px"), + o && + (fr(o, a, "xOrigin", c, T), + fr(o, a, "yOrigin", u, S), + fr(o, a, "xOffset", f, a.xOffset), + fr(o, a, "yOffset", h, a.yOffset)), + e.setAttribute("data-svg-origin", T + " " + S); + }, + Ws = function (e, t) { + var r = e._gsap || new th(e); + if ("x" in r && !t && !r.uncache) return r; + var s = e.style, + i = r.scaleX < 0, + o = "px", + a = "deg", + l = getComputedStyle(e), + c = xn(e, Lt) || "0", + u, + f, + h, + p, + _, + d, + m, + v, + b, + E, + T, + S, + k, + O, + A, + y, + L, + U, + F, + K, + ae, + be, + ne, + Z, + se, + et, + Ge, + ue, + Pe, + ke, + it, + q; + return ( + (u = f = h = d = m = v = b = E = T = 0), + (p = _ = 1), + (r.svg = !!(e.getCTM && Th(e))), + l.translate && + ((l.translate !== "none" || + l.scale !== "none" || + l.rotate !== "none") && + (s[$e] = + (l.translate !== "none" + ? "translate3d(" + + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + + ") " + : "") + + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + + (l.scale !== "none" + ? "scale(" + l.scale.split(" ").join(",") + ") " + : "") + + (l[$e] !== "none" ? l[$e] : "")), + (s.scale = s.rotate = s.translate = "none")), + (O = ml(e, r.svg)), + r.svg && + (r.uncache + ? ((se = e.getBBox()), + (c = r.xOrigin - se.x + "px " + (r.yOrigin - se.y) + "px"), + (Z = "")) + : (Z = !t && e.getAttribute("data-svg-origin")), + _l(e, Z || c, !!Z || r.originIsAbsolute, r.smooth !== !1, O)), + (S = r.xOrigin || 0), + (k = r.yOrigin || 0), + O !== zs && + ((U = O[0]), + (F = O[1]), + (K = O[2]), + (ae = O[3]), + (u = be = O[4]), + (f = ne = O[5]), + O.length === 6 + ? ((p = Math.sqrt(U * U + F * F)), + (_ = Math.sqrt(ae * ae + K * K)), + (d = U || F ? ns(F, U) * Rr : 0), + (b = K || ae ? ns(K, ae) * Rr + d : 0), + b && (_ *= Math.abs(Math.cos(b * ts))), + r.svg && + ((u -= S - (S * U + k * K)), (f -= k - (S * F + k * ae)))) + : ((q = O[6]), + (ke = O[7]), + (Ge = O[8]), + (ue = O[9]), + (Pe = O[10]), + (it = O[11]), + (u = O[12]), + (f = O[13]), + (h = O[14]), + (A = ns(q, Pe)), + (m = A * Rr), + A && + ((y = Math.cos(-A)), + (L = Math.sin(-A)), + (Z = be * y + Ge * L), + (se = ne * y + ue * L), + (et = q * y + Pe * L), + (Ge = be * -L + Ge * y), + (ue = ne * -L + ue * y), + (Pe = q * -L + Pe * y), + (it = ke * -L + it * y), + (be = Z), + (ne = se), + (q = et)), + (A = ns(-K, Pe)), + (v = A * Rr), + A && + ((y = Math.cos(-A)), + (L = Math.sin(-A)), + (Z = U * y - Ge * L), + (se = F * y - ue * L), + (et = K * y - Pe * L), + (it = ae * L + it * y), + (U = Z), + (F = se), + (K = et)), + (A = ns(F, U)), + (d = A * Rr), + A && + ((y = Math.cos(A)), + (L = Math.sin(A)), + (Z = U * y + F * L), + (se = be * y + ne * L), + (F = F * y - U * L), + (ne = ne * y - be * L), + (U = Z), + (be = se)), + m && + Math.abs(m) + Math.abs(d) > 359.9 && + ((m = d = 0), (v = 180 - v)), + (p = qe(Math.sqrt(U * U + F * F + K * K))), + (_ = qe(Math.sqrt(ne * ne + q * q))), + (A = ns(be, ne)), + (b = Math.abs(A) > 2e-4 ? A * Rr : 0), + (T = it ? 1 / (it < 0 ? -it : it) : 0)), + r.svg && + ((Z = e.getAttribute("transform")), + (r.forceCSS = e.setAttribute("transform", "") || !Ch(xn(e, $e))), + Z && e.setAttribute("transform", Z))), + Math.abs(b) > 90 && + Math.abs(b) < 270 && + (i + ? ((p *= -1), + (b += d <= 0 ? 180 : -180), + (d += d <= 0 ? 180 : -180)) + : ((_ *= -1), (b += b <= 0 ? 180 : -180))), + (t = t || r.uncache), + (r.x = + u - + ((r.xPercent = + u && + ((!t && r.xPercent) || + (Math.round(e.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) + ? (e.offsetWidth * r.xPercent) / 100 + : 0) + + o), + (r.y = + f - + ((r.yPercent = + f && + ((!t && r.yPercent) || + (Math.round(e.offsetHeight / 2) === Math.round(-f) ? -50 : 0))) + ? (e.offsetHeight * r.yPercent) / 100 + : 0) + + o), + (r.z = h + o), + (r.scaleX = qe(p)), + (r.scaleY = qe(_)), + (r.rotation = qe(d) + a), + (r.rotationX = qe(m) + a), + (r.rotationY = qe(v) + a), + (r.skewX = b + a), + (r.skewY = E + a), + (r.transformPerspective = T + o), + (r.zOrigin = parseFloat(c.split(" ")[2]) || (!t && r.zOrigin) || 0) && + (s[Lt] = oo(c)), + (r.xOffset = r.yOffset = 0), + (r.force3D = Ht.force3D), + (r.renderTransform = r.svg ? dg : vh ? Mh : hg), + (r.uncache = 0), + r + ); + }, + oo = function (e) { + return (e = e.split(" "))[0] + " " + e[1]; + }, + gl = function (e, t, r) { + var s = dt(t); + return qe(parseFloat(t) + parseFloat(hr(e, "x", r + "px", s))) + s; + }, + hg = function (e, t) { + (t.z = "0px"), + (t.rotationY = t.rotationX = "0deg"), + (t.force3D = 0), + Mh(e, t); + }, + Lr = "0deg", + Vs = "0px", + Dr = ") ", + Mh = function (e, t) { + var r = t || this, + s = r.xPercent, + i = r.yPercent, + o = r.x, + a = r.y, + l = r.z, + c = r.rotation, + u = r.rotationY, + f = r.rotationX, + h = r.skewX, + p = r.skewY, + _ = r.scaleX, + d = r.scaleY, + m = r.transformPerspective, + v = r.force3D, + b = r.target, + E = r.zOrigin, + T = "", + S = (v === "auto" && e && e !== 1) || v === !0; + if (E && (f !== Lr || u !== Lr)) { + var k = parseFloat(u) * ts, + O = Math.sin(k), + A = Math.cos(k), + y; + (k = parseFloat(f) * ts), + (y = Math.cos(k)), + (o = gl(b, o, O * y * -E)), + (a = gl(b, a, -Math.sin(k) * -E)), + (l = gl(b, l, A * y * -E + E)); + } + m !== Vs && (T += "perspective(" + m + Dr), + (s || i) && (T += "translate(" + s + "%, " + i + "%) "), + (S || o !== Vs || a !== Vs || l !== Vs) && + (T += + l !== Vs || S + ? "translate3d(" + o + ", " + a + ", " + l + ") " + : "translate(" + o + ", " + a + Dr), + c !== Lr && (T += "rotate(" + c + Dr), + u !== Lr && (T += "rotateY(" + u + Dr), + f !== Lr && (T += "rotateX(" + f + Dr), + (h !== Lr || p !== Lr) && (T += "skew(" + h + ", " + p + Dr), + (_ !== 1 || d !== 1) && (T += "scale(" + _ + ", " + d + Dr), + (b.style[$e] = T || "translate(0, 0)"); + }, + dg = function (e, t) { + var r = t || this, + s = r.xPercent, + i = r.yPercent, + o = r.x, + a = r.y, + l = r.rotation, + c = r.skewX, + u = r.skewY, + f = r.scaleX, + h = r.scaleY, + p = r.target, + _ = r.xOrigin, + d = r.yOrigin, + m = r.xOffset, + v = r.yOffset, + b = r.forceCSS, + E = parseFloat(o), + T = parseFloat(a), + S, + k, + O, + A, + y; + (l = parseFloat(l)), + (c = parseFloat(c)), + (u = parseFloat(u)), + u && ((u = parseFloat(u)), (c += u), (l += u)), + l || c + ? ((l *= ts), + (c *= ts), + (S = Math.cos(l) * f), + (k = Math.sin(l) * f), + (O = Math.sin(l - c) * -h), + (A = Math.cos(l - c) * h), + c && + ((u *= ts), + (y = Math.tan(c - u)), + (y = Math.sqrt(1 + y * y)), + (O *= y), + (A *= y), + u && + ((y = Math.tan(u)), + (y = Math.sqrt(1 + y * y)), + (S *= y), + (k *= y))), + (S = qe(S)), + (k = qe(k)), + (O = qe(O)), + (A = qe(A))) + : ((S = f), (A = h), (k = O = 0)), + ((E && !~(o + "").indexOf("px")) || (T && !~(a + "").indexOf("px"))) && + ((E = hr(p, "x", o, "px")), (T = hr(p, "y", a, "px"))), + (_ || d || m || v) && + ((E = qe(E + _ - (_ * S + d * O) + m)), + (T = qe(T + d - (_ * k + d * A) + v))), + (s || i) && + ((y = p.getBBox()), + (E = qe(E + (s / 100) * y.width)), + (T = qe(T + (i / 100) * y.height))), + (y = + "matrix(" + + S + + "," + + k + + "," + + O + + "," + + A + + "," + + E + + "," + + T + + ")"), + p.setAttribute("transform", y), + b && (p.style[$e] = y); + }, + pg = function (e, t, r, s, i) { + var o = 360, + a = rt(i), + l = parseFloat(i) * (a && ~i.indexOf("rad") ? Rr : 1), + c = l - s, + u = s + c + "deg", + f, + h; + return ( + a && + ((f = i.split("_")[1]), + f === "short" && + ((c %= o), c !== c % (o / 2) && (c += c < 0 ? o : -o)), + f === "cw" && c < 0 + ? (c = ((c + o * dh) % o) - ~~(c / o) * o) + : f === "ccw" && c > 0 && (c = ((c - o * dh) % o) - ~~(c / o) * o)), + (e._pt = h = new Rt(e._pt, t, r, s, c, J_)), + (h.e = u), + (h.u = "deg"), + e._props.push(r), + h + ); + }, + kh = function (e, t) { + for (var r in t) e[r] = t[r]; + return e; + }, + mg = function (e, t, r) { + var s = kh({}, r._gsap), + i = "perspective,force3D,transformOrigin,svgOrigin", + o = r.style, + a, + l, + c, + u, + f, + h, + p, + _; + s.svg + ? ((c = r.getAttribute("transform")), + r.setAttribute("transform", ""), + (o[$e] = t), + (a = Ws(r, 1)), + Pr(r, $e), + r.setAttribute("transform", c)) + : ((c = getComputedStyle(r)[$e]), + (o[$e] = t), + (a = Ws(r, 1)), + (o[$e] = c)); + for (l in $n) + (c = s[l]), + (u = a[l]), + c !== u && + i.indexOf(l) < 0 && + ((p = dt(c)), + (_ = dt(u)), + (f = p !== _ ? hr(r, l, c, _) : parseFloat(c)), + (h = parseFloat(u)), + (e._pt = new Rt(e._pt, a, l, f, h - f, fl)), + (e._pt.u = _ || 0), + e._props.push(l)); + kh(a, s); + }; + It("padding,margin,Width,Radius", function (n, e) { + var t = "Top", + r = "Right", + s = "Bottom", + i = "Left", + o = (e < 3 ? [t, r, s, i] : [t + i, t + r, s + r, s + i]).map(function ( + a + ) { + return e < 2 ? n + a : "border" + a + n; + }); + io[e > 1 ? "border" + n : n] = function (a, l, c, u, f) { + var h, p; + if (arguments.length < 4) + return ( + (h = o.map(function (_) { + return Un(a, _, c); + })), + (p = h.join(" ")), + p.split(h[0]).length === 5 ? h[0] : p + ); + (h = (u + "").split(" ")), + (p = {}), + o.forEach(function (_, d) { + return (p[_] = h[d] = h[d] || h[((d - 1) / 2) | 0]); + }), + a.init(l, p, f); + }; + }); + var Oh = { + name: "css", + register: dl, + targetTest: function (e) { + return e.style && e.nodeType; + }, + init: function (e, t, r, s, i) { + var o = this._props, + a = e.style, + l = r.vars.startAt, + c, + u, + f, + h, + p, + _, + d, + m, + v, + b, + E, + T, + S, + k, + O, + A; + ll || dl(), + (this.styles = this.styles || gh(e)), + (A = this.styles.props), + (this.tween = r); + for (d in t) + if ( + d !== "autoRound" && + ((u = t[d]), !(Wt[d] && nh(d, t, r, s, e, i))) + ) { + if ( + ((p = typeof u), + (_ = io[d]), + p === "function" && ((u = u.call(r, s, e, i)), (p = typeof u)), + p === "string" && ~u.indexOf("random(") && (u = Ns(u)), + _) + ) + _(this, e, d, u, r) && (O = 1); + else if (d.substr(0, 2) === "--") + (c = (getComputedStyle(e).getPropertyValue(d) + "").trim()), + (u += ""), + (lr.lastIndex = 0), + lr.test(c) || ((m = dt(c)), (v = dt(u))), + v ? m !== v && (c = hr(e, d, c, v) + v) : m && (u += m), + this.add(a, "setProperty", c, u, s, i, 0, 0, d), + o.push(d), + A.push(d, 0, a[d]); + else if (p !== "undefined") { + if ( + (l && d in l + ? ((c = + typeof l[d] == "function" ? l[d].call(r, s, e, i) : l[d]), + rt(c) && ~c.indexOf("random(") && (c = Ns(c)), + dt(c + "") || + c === "auto" || + (c += Ht.units[d] || dt(Un(e, d)) || ""), + (c + "").charAt(1) === "=" && (c = Un(e, d))) + : (c = Un(e, d)), + (h = parseFloat(c)), + (b = p === "string" && u.charAt(1) === "=" && u.substr(0, 2)), + b && (u = u.substr(2)), + (f = parseFloat(u)), + d in Tn && + (d === "autoAlpha" && + (h === 1 && Un(e, "visibility") === "hidden" && f && (h = 0), + A.push("visibility", 0, a.visibility), + fr( + this, + a, + "visibility", + h ? "inherit" : "hidden", + f ? "inherit" : "hidden", + !f + )), + d !== "scale" && + d !== "transform" && + ((d = Tn[d]), ~d.indexOf(",") && (d = d.split(",")[0]))), + (E = d in $n), + E) + ) { + if ( + (this.styles.save(d), + T || + ((S = e._gsap), + (S.renderTransform && !t.parseTransform) || + Ws(e, t.parseTransform), + (k = t.smoothOrigin !== !1 && S.smooth), + (T = this._pt = + new Rt(this._pt, a, $e, 0, 1, S.renderTransform, S, 0, -1)), + (T.dep = 1)), + d === "scale") + ) + (this._pt = new Rt( + this._pt, + S, + "scaleY", + S.scaleY, + (b ? Xr(S.scaleY, b + f) : f) - S.scaleY || 0, + fl + )), + (this._pt.u = 0), + o.push("scaleY", d), + (d += "X"); + else if (d === "transformOrigin") { + A.push(Lt, 0, a[Lt]), + (u = ug(u)), + S.svg + ? _l(e, u, 0, k, 0, this) + : ((v = parseFloat(u.split(" ")[2]) || 0), + v !== S.zOrigin && fr(this, S, "zOrigin", S.zOrigin, v), + fr(this, a, d, oo(c), oo(u))); + continue; + } else if (d === "svgOrigin") { + _l(e, u, 1, k, 0, this); + continue; + } else if (d in Sh) { + pg(this, S, d, h, b ? Xr(h, b + u) : u); + continue; + } else if (d === "smoothOrigin") { + fr(this, S, "smooth", S.smooth, u); + continue; + } else if (d === "force3D") { + S[d] = u; + continue; + } else if (d === "transform") { + mg(this, u, e); + continue; + } + } else d in a || (d = rs(d) || d); + if ( + E || + ((f || f === 0) && (h || h === 0) && !G_.test(u) && d in a) + ) + (m = (c + "").substr((h + "").length)), + f || (f = 0), + (v = dt(u) || (d in Ht.units ? Ht.units[d] : m)), + m !== v && (h = hr(e, d, c, v)), + (this._pt = new Rt( + this._pt, + E ? S : a, + d, + h, + (b ? Xr(h, b + f) : f) - h, + !E && (v === "px" || d === "zIndex") && t.autoRound !== !1 + ? Q_ + : fl + )), + (this._pt.u = v || 0), + m !== v && v !== "%" && ((this._pt.b = c), (this._pt.r = Z_)); + else if (d in a) cg.call(this, e, d, c, b ? b + u : u); + else if (d in e) this.add(e, d, c || e[d], b ? b + u : u, s, i); + else if (d !== "parseTransform") { + $a(d, u); + continue; + } + E || (d in a ? A.push(d, 0, a[d]) : A.push(d, 1, c || e[d])), + o.push(d); + } + } + O && lh(this); + }, + render: function (e, t) { + if (t.tween._time || !cl()) + for (var r = t._pt; r; ) r.r(e, r.d), (r = r._next); + else t.styles.revert(); + }, + get: Un, + aliases: Tn, + getSetter: function (e, t, r) { + var s = Tn[t]; + return ( + s && s.indexOf(",") < 0 && (t = s), + t in $n && t !== Lt && (e._gsap.x || Un(e, "x")) + ? r && hh === r + ? t === "scale" + ? rg + : ng + : (hh = r || {}) && (t === "scale" ? sg : ig) + : e.style && !Pa(e.style[t]) + ? eg + : ~t.indexOf("-") + ? tg + : rl(e, t) + ); + }, + core: { _removeProperty: Pr, _getMatrix: ml }, + }; + (Pt.utils.checkPrefix = rs), + (Pt.core.getStyleSaver = gh), + (function (n, e, t, r) { + var s = It(n + "," + e + "," + t, function (i) { + $n[i] = 1; + }); + It(e, function (i) { + (Ht.units[i] = "deg"), (Sh[i] = 1); + }), + (Tn[s[13]] = n + "," + e), + It(r, function (i) { + var o = i.split(":"); + Tn[o[1]] = s[o[0]]; + }); + })( + "x,y,z,scale,scaleX,scaleY,xPercent,yPercent", + "rotation,rotationX,rotationY,skewX,skewY", + "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", + "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY" + ), + It( + "x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", + function (n) { + Ht.units[n] = "px"; + } + ), + Pt.registerPlugin(Oh); + var ss = Pt.registerPlugin(Oh) || Pt; + ss.core.Tween; + const En = Object.create(null); + (En.open = "0"), + (En.close = "1"), + (En.ping = "2"), + (En.pong = "3"), + (En.message = "4"), + (En.upgrade = "5"), + (En.noop = "6"); + const ao = Object.create(null); + Object.keys(En).forEach((n) => { + ao[En[n]] = n; + }); + const vl = { type: "error", data: "parser error" }, + Ih = + typeof Blob == "function" || + (typeof Blob < "u" && + Object.prototype.toString.call(Blob) === "[object BlobConstructor]"), + Rh = typeof ArrayBuffer == "function", + Ph = (n) => + typeof ArrayBuffer.isView == "function" + ? ArrayBuffer.isView(n) + : n && n.buffer instanceof ArrayBuffer, + yl = ({ type: n, data: e }, t, r) => + Ih && e instanceof Blob + ? t + ? r(e) + : Lh(e, r) + : Rh && (e instanceof ArrayBuffer || Ph(e)) + ? t + ? r(e) + : Lh(new Blob([e]), r) + : r(En[n] + (e || "")), + Lh = (n, e) => { + const t = new FileReader(); + return ( + (t.onload = function () { + const r = t.result.split(",")[1]; + e("b" + (r || "")); + }), + t.readAsDataURL(n) + ); + }; + function Dh(n) { + return n instanceof Uint8Array + ? n + : n instanceof ArrayBuffer + ? new Uint8Array(n) + : new Uint8Array(n.buffer, n.byteOffset, n.byteLength); + } + let bl; + function _g(n, e) { + if (Ih && n.data instanceof Blob) + return n.data.arrayBuffer().then(Dh).then(e); + if (Rh && (n.data instanceof ArrayBuffer || Ph(n.data))) + return e(Dh(n.data)); + yl(n, !1, (t) => { + bl || (bl = new TextEncoder()), e(bl.encode(t)); + }); + } + const Nh = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", + qs = typeof Uint8Array > "u" ? [] : new Uint8Array(256); + for (let n = 0; n < Nh.length; n++) qs[Nh.charCodeAt(n)] = n; + const gg = (n) => { + let e = n.length * 0.75, + t = n.length, + r, + s = 0, + i, + o, + a, + l; + n[n.length - 1] === "=" && (e--, n[n.length - 2] === "=" && e--); + const c = new ArrayBuffer(e), + u = new Uint8Array(c); + for (r = 0; r < t; r += 4) + (i = qs[n.charCodeAt(r)]), + (o = qs[n.charCodeAt(r + 1)]), + (a = qs[n.charCodeAt(r + 2)]), + (l = qs[n.charCodeAt(r + 3)]), + (u[s++] = (i << 2) | (o >> 4)), + (u[s++] = ((o & 15) << 4) | (a >> 2)), + (u[s++] = ((a & 3) << 6) | (l & 63)); + return c; + }, + vg = typeof ArrayBuffer == "function", + wl = (n, e) => { + if (typeof n != "string") return { type: "message", data: Bh(n, e) }; + const t = n.charAt(0); + return t === "b" + ? { type: "message", data: yg(n.substring(1), e) } + : ao[t] + ? n.length > 1 + ? { type: ao[t], data: n.substring(1) } + : { type: ao[t] } + : vl; + }, + yg = (n, e) => { + if (vg) { + const t = gg(n); + return Bh(t, e); + } else return { base64: !0, data: n }; + }, + Bh = (n, e) => { + switch (e) { + case "blob": + return n instanceof Blob ? n : new Blob([n]); + case "arraybuffer": + default: + return n instanceof ArrayBuffer ? n : n.buffer; + } + }, + Fh = String.fromCharCode(30), + bg = (n, e) => { + const t = n.length, + r = new Array(t); + let s = 0; + n.forEach((i, o) => { + yl(i, !1, (a) => { + (r[o] = a), ++s === t && e(r.join(Fh)); + }); + }); + }, + wg = (n, e) => { + const t = n.split(Fh), + r = []; + for (let s = 0; s < t.length; s++) { + const i = wl(t[s], e); + if ((r.push(i), i.type === "error")) break; + } + return r; + }; + function Tg() { + return new TransformStream({ + transform(n, e) { + _g(n, (t) => { + const r = t.length; + let s; + if (r < 126) + (s = new Uint8Array(1)), new DataView(s.buffer).setUint8(0, r); + else if (r < 65536) { + s = new Uint8Array(3); + const i = new DataView(s.buffer); + i.setUint8(0, 126), i.setUint16(1, r); + } else { + s = new Uint8Array(9); + const i = new DataView(s.buffer); + i.setUint8(0, 127), i.setBigUint64(1, BigInt(r)); + } + n.data && typeof n.data != "string" && (s[0] |= 128), + e.enqueue(s), + e.enqueue(t); + }); + }, + }); + } + let Tl; + function lo(n) { + return n.reduce((e, t) => e + t.length, 0); + } + function co(n, e) { + if (n[0].length === e) return n.shift(); + const t = new Uint8Array(e); + let r = 0; + for (let s = 0; s < e; s++) + (t[s] = n[0][r++]), r === n[0].length && (n.shift(), (r = 0)); + return n.length && r < n[0].length && (n[0] = n[0].slice(r)), t; + } + function xg(n, e) { + Tl || (Tl = new TextDecoder()); + const t = []; + let r = 0, + s = -1, + i = !1; + return new TransformStream({ + transform(o, a) { + for (t.push(o); ; ) { + if (r === 0) { + if (lo(t) < 1) break; + const l = co(t, 1); + (i = (l[0] & 128) === 128), + (s = l[0] & 127), + s < 126 ? (r = 3) : s === 126 ? (r = 1) : (r = 2); + } else if (r === 1) { + if (lo(t) < 2) break; + const l = co(t, 2); + (s = new DataView(l.buffer, l.byteOffset, l.length).getUint16(0)), + (r = 3); + } else if (r === 2) { + if (lo(t) < 8) break; + const l = co(t, 8), + c = new DataView(l.buffer, l.byteOffset, l.length), + u = c.getUint32(0); + if (u > Math.pow(2, 53 - 32) - 1) { + a.enqueue(vl); + break; + } + (s = u * Math.pow(2, 32) + c.getUint32(4)), (r = 3); + } else { + if (lo(t) < s) break; + const l = co(t, s); + a.enqueue(wl(i ? l : Tl.decode(l), e)), (r = 0); + } + if (s === 0 || s > n) { + a.enqueue(vl); + break; + } + } + }, + }); + } + const $h = 4; + function Ke(n) { + if (n) return Eg(n); + } + function Eg(n) { + for (var e in Ke.prototype) n[e] = Ke.prototype[e]; + return n; + } + (Ke.prototype.on = Ke.prototype.addEventListener = + function (n, e) { + return ( + (this._callbacks = this._callbacks || {}), + (this._callbacks["$" + n] = this._callbacks["$" + n] || []).push(e), + this + ); + }), + (Ke.prototype.once = function (n, e) { + function t() { + this.off(n, t), e.apply(this, arguments); + } + return (t.fn = e), this.on(n, t), this; + }), + (Ke.prototype.off = + Ke.prototype.removeListener = + Ke.prototype.removeAllListeners = + Ke.prototype.removeEventListener = + function (n, e) { + if ( + ((this._callbacks = this._callbacks || {}), arguments.length == 0) + ) + return (this._callbacks = {}), this; + var t = this._callbacks["$" + n]; + if (!t) return this; + if (arguments.length == 1) + return delete this._callbacks["$" + n], this; + for (var r, s = 0; s < t.length; s++) + if (((r = t[s]), r === e || r.fn === e)) { + t.splice(s, 1); + break; + } + return t.length === 0 && delete this._callbacks["$" + n], this; + }), + (Ke.prototype.emit = function (n) { + this._callbacks = this._callbacks || {}; + for ( + var e = new Array(arguments.length - 1), + t = this._callbacks["$" + n], + r = 1; + r < arguments.length; + r++ + ) + e[r - 1] = arguments[r]; + if (t) { + t = t.slice(0); + for (var r = 0, s = t.length; r < s; ++r) t[r].apply(this, e); + } + return this; + }), + (Ke.prototype.emitReserved = Ke.prototype.emit), + (Ke.prototype.listeners = function (n) { + return ( + (this._callbacks = this._callbacks || {}), + this._callbacks["$" + n] || [] + ); + }), + (Ke.prototype.hasListeners = function (n) { + return !!this.listeners(n).length; + }); + const tn = (() => + typeof self < "u" + ? self + : typeof window < "u" + ? window + : Function("return this")())(); + function Uh(n, ...e) { + return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {}); + } + const Sg = tn.setTimeout, + Cg = tn.clearTimeout; + function uo(n, e) { + e.useNativeTimers + ? ((n.setTimeoutFn = Sg.bind(tn)), (n.clearTimeoutFn = Cg.bind(tn))) + : ((n.setTimeoutFn = tn.setTimeout.bind(tn)), + (n.clearTimeoutFn = tn.clearTimeout.bind(tn))); + } + const Ag = 1.33; + function Mg(n) { + return typeof n == "string" + ? kg(n) + : Math.ceil((n.byteLength || n.size) * Ag); + } + function kg(n) { + let e = 0, + t = 0; + for (let r = 0, s = n.length; r < s; r++) + (e = n.charCodeAt(r)), + e < 128 + ? (t += 1) + : e < 2048 + ? (t += 2) + : e < 55296 || e >= 57344 + ? (t += 3) + : (r++, (t += 4)); + return t; + } + function Og(n) { + let e = ""; + for (let t in n) + n.hasOwnProperty(t) && + (e.length && (e += "&"), + (e += encodeURIComponent(t) + "=" + encodeURIComponent(n[t]))); + return e; + } + function Ig(n) { + let e = {}, + t = n.split("&"); + for (let r = 0, s = t.length; r < s; r++) { + let i = t[r].split("="); + e[decodeURIComponent(i[0])] = decodeURIComponent(i[1]); + } + return e; + } + class Rg extends Error { + constructor(e, t, r) { + super(e), + (this.description = t), + (this.context = r), + (this.type = "TransportError"); + } + } + class xl extends Ke { + constructor(e) { + super(), + (this.writable = !1), + uo(this, e), + (this.opts = e), + (this.query = e.query), + (this.socket = e.socket); + } + onError(e, t, r) { + return super.emitReserved("error", new Rg(e, t, r)), this; + } + open() { + return (this.readyState = "opening"), this.doOpen(), this; + } + close() { + return ( + (this.readyState === "opening" || this.readyState === "open") && + (this.doClose(), this.onClose()), + this + ); + } + send(e) { + this.readyState === "open" && this.write(e); + } + onOpen() { + (this.readyState = "open"), + (this.writable = !0), + super.emitReserved("open"); + } + onData(e) { + const t = wl(e, this.socket.binaryType); + this.onPacket(t); + } + onPacket(e) { + super.emitReserved("packet", e); + } + onClose(e) { + (this.readyState = "closed"), super.emitReserved("close", e); + } + pause(e) {} + createUri(e, t = {}) { + return ( + e + + "://" + + this._hostname() + + this._port() + + this.opts.path + + this._query(t) + ); + } + _hostname() { + const e = this.opts.hostname; + return e.indexOf(":") === -1 ? e : "[" + e + "]"; + } + _port() { + return this.opts.port && + ((this.opts.secure && +(this.opts.port !== 443)) || + (!this.opts.secure && Number(this.opts.port) !== 80)) + ? ":" + this.opts.port + : ""; + } + _query(e) { + const t = Og(e); + return t.length ? "?" + t : ""; + } + } + const Hh = + "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split( + "" + ), + El = 64, + Pg = {}; + let zh = 0, + fo = 0, + Wh; + function Vh(n) { + let e = ""; + do (e = Hh[n % El] + e), (n = Math.floor(n / El)); + while (n > 0); + return e; + } + function qh() { + const n = Vh(+new Date()); + return n !== Wh ? ((zh = 0), (Wh = n)) : n + "." + Vh(zh++); + } + for (; fo < El; fo++) Pg[Hh[fo]] = fo; + let jh = !1; + try { + jh = + typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest(); + } catch {} + const Lg = jh; + function Yh(n) { + const e = n.xdomain; + try { + if (typeof XMLHttpRequest < "u" && (!e || Lg)) + return new XMLHttpRequest(); + } catch {} + if (!e) + try { + return new tn[["Active"].concat("Object").join("X")]( + "Microsoft.XMLHTTP" + ); + } catch {} + } + function lw() {} + function Dg() {} + const Ng = (function () { + return new Yh({ xdomain: !1 }).responseType != null; + })(); + class Bg extends xl { + constructor(e) { + if ((super(e), (this.polling = !1), typeof location < "u")) { + const r = location.protocol === "https:"; + let s = location.port; + s || (s = r ? "443" : "80"), + (this.xd = + (typeof location < "u" && e.hostname !== location.hostname) || + s !== e.port); + } + const t = e && e.forceBase64; + (this.supportsBinary = Ng && !t), + this.opts.withCredentials && (this.cookieJar = void 0); + } + get name() { + return "polling"; + } + doOpen() { + this.poll(); + } + pause(e) { + this.readyState = "pausing"; + const t = () => { + (this.readyState = "paused"), e(); + }; + if (this.polling || !this.writable) { + let r = 0; + this.polling && + (r++, + this.once("pollComplete", function () { + --r || t(); + })), + this.writable || + (r++, + this.once("drain", function () { + --r || t(); + })); + } else t(); + } + poll() { + (this.polling = !0), this.doPoll(), this.emitReserved("poll"); + } + onData(e) { + const t = (r) => { + if ( + (this.readyState === "opening" && r.type === "open" && this.onOpen(), + r.type === "close") + ) + return ( + this.onClose({ description: "transport closed by the server" }), !1 + ); + this.onPacket(r); + }; + wg(e, this.socket.binaryType).forEach(t), + this.readyState !== "closed" && + ((this.polling = !1), + this.emitReserved("pollComplete"), + this.readyState === "open" && this.poll()); + } + doClose() { + const e = () => { + this.write([{ type: "close" }]); + }; + this.readyState === "open" ? e() : this.once("open", e); + } + write(e) { + (this.writable = !1), + bg(e, (t) => { + this.doWrite(t, () => { + (this.writable = !0), this.emitReserved("drain"); + }); + }); + } + uri() { + const e = this.opts.secure ? "https" : "http", + t = this.query || {}; + return ( + this.opts.timestampRequests !== !1 && + (t[this.opts.timestampParam] = qh()), + !this.supportsBinary && !t.sid && (t.b64 = 1), + this.createUri(e, t) + ); + } + request(e = {}) { + return ( + Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), + new Sn(this.uri(), e) + ); + } + doWrite(e, t) { + const r = this.request({ method: "POST", data: e }); + r.on("success", t), + r.on("error", (s, i) => { + this.onError("xhr post error", s, i); + }); + } + doPoll() { + const e = this.request(); + e.on("data", this.onData.bind(this)), + e.on("error", (t, r) => { + this.onError("xhr poll error", t, r); + }), + (this.pollXhr = e); + } + } + class Sn extends Ke { + constructor(e, t) { + super(), + uo(this, t), + (this.opts = t), + (this.method = t.method || "GET"), + (this.uri = e), + (this.data = t.data !== void 0 ? t.data : null), + this.create(); + } + create() { + var e; + const t = Uh( + this.opts, + "agent", + "pfx", + "key", + "passphrase", + "cert", + "ca", + "ciphers", + "rejectUnauthorized", + "autoUnref" + ); + t.xdomain = !!this.opts.xd; + const r = (this.xhr = new Yh(t)); + try { + r.open(this.method, this.uri, !0); + try { + if (this.opts.extraHeaders) { + r.setDisableHeaderCheck && r.setDisableHeaderCheck(!0); + for (let s in this.opts.extraHeaders) + this.opts.extraHeaders.hasOwnProperty(s) && + r.setRequestHeader(s, this.opts.extraHeaders[s]); + } + } catch {} + if (this.method === "POST") + try { + r.setRequestHeader("Content-type", "text/plain;charset=UTF-8"); + } catch {} + try { + r.setRequestHeader("Accept", "*/*"); + } catch {} + (e = this.opts.cookieJar) === null || e === void 0 || e.addCookies(r), + "withCredentials" in r && + (r.withCredentials = this.opts.withCredentials), + this.opts.requestTimeout && (r.timeout = this.opts.requestTimeout), + (r.onreadystatechange = () => { + var s; + r.readyState === 3 && + ((s = this.opts.cookieJar) === null || + s === void 0 || + s.parseCookies(r)), + r.readyState === 4 && + (r.status === 200 || r.status === 1223 + ? this.onLoad() + : this.setTimeoutFn(() => { + this.onError(typeof r.status == "number" ? r.status : 0); + }, 0)); + }), + r.send(this.data); + } catch (s) { + this.setTimeoutFn(() => { + this.onError(s); + }, 0); + return; + } + typeof document < "u" && + ((this.index = Sn.requestsCount++), (Sn.requests[this.index] = this)); + } + onError(e) { + this.emitReserved("error", e, this.xhr), this.cleanup(!0); + } + cleanup(e) { + if (!(typeof this.xhr > "u" || this.xhr === null)) { + if (((this.xhr.onreadystatechange = Dg), e)) + try { + this.xhr.abort(); + } catch {} + typeof document < "u" && delete Sn.requests[this.index], + (this.xhr = null); + } + } + onLoad() { + const e = this.xhr.responseText; + e !== null && + (this.emitReserved("data", e), + this.emitReserved("success"), + this.cleanup()); + } + abort() { + this.cleanup(); + } + } + if (((Sn.requestsCount = 0), (Sn.requests = {}), typeof document < "u")) { + if (typeof attachEvent == "function") attachEvent("onunload", Kh); + else if (typeof addEventListener == "function") { + const n = "onpagehide" in tn ? "pagehide" : "unload"; + addEventListener(n, Kh, !1); + } + } + function Kh() { + for (let n in Sn.requests) + Sn.requests.hasOwnProperty(n) && Sn.requests[n].abort(); + } + const Sl = (() => + typeof Promise == "function" && typeof Promise.resolve == "function" + ? (e) => Promise.resolve().then(e) + : (e, t) => t(e, 0))(), + ho = tn.WebSocket || tn.MozWebSocket, + Xh = !0, + Fg = "arraybuffer", + Gh = + typeof navigator < "u" && + typeof navigator.product == "string" && + navigator.product.toLowerCase() === "reactnative"; + class $g extends xl { + constructor(e) { + super(e), (this.supportsBinary = !e.forceBase64); + } + get name() { + return "websocket"; + } + doOpen() { + if (!this.check()) return; + const e = this.uri(), + t = this.opts.protocols, + r = Gh + ? {} + : Uh( + this.opts, + "agent", + "perMessageDeflate", + "pfx", + "key", + "passphrase", + "cert", + "ca", + "ciphers", + "rejectUnauthorized", + "localAddress", + "protocolVersion", + "origin", + "maxPayload", + "family", + "checkServerIdentity" + ); + this.opts.extraHeaders && (r.headers = this.opts.extraHeaders); + try { + this.ws = Xh && !Gh ? (t ? new ho(e, t) : new ho(e)) : new ho(e, t, r); + } catch (s) { + return this.emitReserved("error", s); + } + (this.ws.binaryType = this.socket.binaryType), this.addEventListeners(); + } + addEventListeners() { + (this.ws.onopen = () => { + this.opts.autoUnref && this.ws._socket.unref(), this.onOpen(); + }), + (this.ws.onclose = (e) => + this.onClose({ + description: "websocket connection closed", + context: e, + })), + (this.ws.onmessage = (e) => this.onData(e.data)), + (this.ws.onerror = (e) => this.onError("websocket error", e)); + } + write(e) { + this.writable = !1; + for (let t = 0; t < e.length; t++) { + const r = e[t], + s = t === e.length - 1; + yl(r, this.supportsBinary, (i) => { + const o = {}; + try { + Xh && this.ws.send(i); + } catch {} + s && + Sl(() => { + (this.writable = !0), this.emitReserved("drain"); + }, this.setTimeoutFn); + }); + } + } + doClose() { + typeof this.ws < "u" && (this.ws.close(), (this.ws = null)); + } + uri() { + const e = this.opts.secure ? "wss" : "ws", + t = this.query || {}; + return ( + this.opts.timestampRequests && (t[this.opts.timestampParam] = qh()), + this.supportsBinary || (t.b64 = 1), + this.createUri(e, t) + ); + } + check() { + return !!ho; + } + } + class Ug extends xl { + get name() { + return "webtransport"; + } + doOpen() { + typeof WebTransport == "function" && + ((this.transport = new WebTransport( + this.createUri("https"), + this.opts.transportOptions[this.name] + )), + this.transport.closed + .then(() => { + this.onClose(); + }) + .catch((e) => { + this.onError("webtransport error", e); + }), + this.transport.ready.then(() => { + this.transport.createBidirectionalStream().then((e) => { + const t = xg(Number.MAX_SAFE_INTEGER, this.socket.binaryType), + r = e.readable.pipeThrough(t).getReader(), + s = Tg(); + s.readable.pipeTo(e.writable), + (this.writer = s.writable.getWriter()); + const i = () => { + r.read() + .then(({ done: a, value: l }) => { + a || (this.onPacket(l), i()); + }) + .catch((a) => {}); + }; + i(); + const o = { type: "open" }; + this.query.sid && (o.data = `{"sid":"${this.query.sid}"}`), + this.writer.write(o).then(() => this.onOpen()); + }); + })); + } + write(e) { + this.writable = !1; + for (let t = 0; t < e.length; t++) { + const r = e[t], + s = t === e.length - 1; + this.writer.write(r).then(() => { + s && + Sl(() => { + (this.writable = !0), this.emitReserved("drain"); + }, this.setTimeoutFn); + }); + } + } + doClose() { + var e; + (e = this.transport) === null || e === void 0 || e.close(); + } + } + const Hg = { websocket: $g, webtransport: Ug, polling: Bg }, + zg = + /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, + Wg = [ + "source", + "protocol", + "authority", + "userInfo", + "user", + "password", + "host", + "port", + "relative", + "path", + "directory", + "file", + "query", + "anchor", + ]; + function Cl(n) { + if (n.length > 2e3) throw "URI too long"; + const e = n, + t = n.indexOf("["), + r = n.indexOf("]"); + t != -1 && + r != -1 && + (n = + n.substring(0, t) + + n.substring(t, r).replace(/:/g, ";") + + n.substring(r, n.length)); + let s = zg.exec(n || ""), + i = {}, + o = 14; + for (; o--; ) i[Wg[o]] = s[o] || ""; + return ( + t != -1 && + r != -1 && + ((i.source = e), + (i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":")), + (i.authority = i.authority + .replace("[", "") + .replace("]", "") + .replace(/;/g, ":")), + (i.ipv6uri = !0)), + (i.pathNames = Vg(i, i.path)), + (i.queryKey = qg(i, i.query)), + i + ); + } + function Vg(n, e) { + const t = /\/{2,9}/g, + r = e.replace(t, "/").split("/"); + return ( + (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), + e.slice(-1) == "/" && r.splice(r.length - 1, 1), + r + ); + } + function qg(n, e) { + const t = {}; + return ( + e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function (r, s, i) { + s && (t[s] = i); + }), + t + ); + } + let Jh = class fs extends Ke { + constructor(e, t = {}) { + super(), + (this.binaryType = Fg), + (this.writeBuffer = []), + e && typeof e == "object" && ((t = e), (e = null)), + e + ? ((e = Cl(e)), + (t.hostname = e.host), + (t.secure = e.protocol === "https" || e.protocol === "wss"), + (t.port = e.port), + e.query && (t.query = e.query)) + : t.host && (t.hostname = Cl(t.host).host), + uo(this, t), + (this.secure = + t.secure != null + ? t.secure + : typeof location < "u" && location.protocol === "https:"), + t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), + (this.hostname = + t.hostname || + (typeof location < "u" ? location.hostname : "localhost")), + (this.port = + t.port || + (typeof location < "u" && location.port + ? location.port + : this.secure + ? "443" + : "80")), + (this.transports = t.transports || [ + "polling", + "websocket", + "webtransport", + ]), + (this.writeBuffer = []), + (this.prevBufferLen = 0), + (this.opts = Object.assign( + { + path: "/engine.io", + agent: !1, + withCredentials: !1, + upgrade: !0, + timestampParam: "t", + rememberUpgrade: !1, + addTrailingSlash: !0, + rejectUnauthorized: !0, + perMessageDeflate: { threshold: 1024 }, + transportOptions: {}, + closeOnBeforeunload: !1, + }, + t + )), + (this.opts.path = + this.opts.path.replace(/\/$/, "") + + (this.opts.addTrailingSlash ? "/" : "")), + typeof this.opts.query == "string" && + (this.opts.query = Ig(this.opts.query)), + (this.id = null), + (this.upgrades = null), + (this.pingInterval = null), + (this.pingTimeout = null), + (this.pingTimeoutTimer = null), + typeof addEventListener == "function" && + (this.opts.closeOnBeforeunload && + ((this.beforeunloadEventListener = () => { + this.transport && + (this.transport.removeAllListeners(), this.transport.close()); + }), + addEventListener( + "beforeunload", + this.beforeunloadEventListener, + !1 + )), + this.hostname !== "localhost" && + ((this.offlineEventListener = () => { + this.onClose("transport close", { + description: "network connection lost", + }); + }), + addEventListener("offline", this.offlineEventListener, !1))), + this.open(); + } + createTransport(e) { + const t = Object.assign({}, this.opts.query); + (t.EIO = $h), (t.transport = e), this.id && (t.sid = this.id); + const r = Object.assign( + {}, + this.opts, + { + query: t, + socket: this, + hostname: this.hostname, + secure: this.secure, + port: this.port, + }, + this.opts.transportOptions[e] + ); + return new Hg[e](r); + } + open() { + let e; + if ( + this.opts.rememberUpgrade && + fs.priorWebsocketSuccess && + this.transports.indexOf("websocket") !== -1 + ) + e = "websocket"; + else if (this.transports.length === 0) { + this.setTimeoutFn(() => { + this.emitReserved("error", "No transports available"); + }, 0); + return; + } else e = this.transports[0]; + this.readyState = "opening"; + try { + e = this.createTransport(e); + } catch { + this.transports.shift(), this.open(); + return; + } + e.open(), this.setTransport(e); + } + setTransport(e) { + this.transport && this.transport.removeAllListeners(), + (this.transport = e), + e + .on("drain", this.onDrain.bind(this)) + .on("packet", this.onPacket.bind(this)) + .on("error", this.onError.bind(this)) + .on("close", (t) => this.onClose("transport close", t)); + } + probe(e) { + let t = this.createTransport(e), + r = !1; + fs.priorWebsocketSuccess = !1; + const s = () => { + r || + (t.send([{ type: "ping", data: "probe" }]), + t.once("packet", (f) => { + if (!r) + if (f.type === "pong" && f.data === "probe") { + if ( + ((this.upgrading = !0), this.emitReserved("upgrading", t), !t) + ) + return; + (fs.priorWebsocketSuccess = t.name === "websocket"), + this.transport.pause(() => { + r || + (this.readyState !== "closed" && + (u(), + this.setTransport(t), + t.send([{ type: "upgrade" }]), + this.emitReserved("upgrade", t), + (t = null), + (this.upgrading = !1), + this.flush())); + }); + } else { + const h = new Error("probe error"); + (h.transport = t.name), this.emitReserved("upgradeError", h); + } + })); + }; + function i() { + r || ((r = !0), u(), t.close(), (t = null)); + } + const o = (f) => { + const h = new Error("probe error: " + f); + (h.transport = t.name), i(), this.emitReserved("upgradeError", h); + }; + function a() { + o("transport closed"); + } + function l() { + o("socket closed"); + } + function c(f) { + t && f.name !== t.name && i(); + } + const u = () => { + t.removeListener("open", s), + t.removeListener("error", o), + t.removeListener("close", a), + this.off("close", l), + this.off("upgrading", c); + }; + t.once("open", s), + t.once("error", o), + t.once("close", a), + this.once("close", l), + this.once("upgrading", c), + this.upgrades.indexOf("webtransport") !== -1 && e !== "webtransport" + ? this.setTimeoutFn(() => { + r || t.open(); + }, 200) + : t.open(); + } + onOpen() { + if ( + ((this.readyState = "open"), + (fs.priorWebsocketSuccess = this.transport.name === "websocket"), + this.emitReserved("open"), + this.flush(), + this.readyState === "open" && this.opts.upgrade) + ) { + let e = 0; + const t = this.upgrades.length; + for (; e < t; e++) this.probe(this.upgrades[e]); + } + } + onPacket(e) { + if ( + this.readyState === "opening" || + this.readyState === "open" || + this.readyState === "closing" + ) + switch ( + (this.emitReserved("packet", e), + this.emitReserved("heartbeat"), + this.resetPingTimeout(), + e.type) + ) { + case "open": + this.onHandshake(JSON.parse(e.data)); + break; + case "ping": + this.sendPacket("pong"), + this.emitReserved("ping"), + this.emitReserved("pong"); + break; + case "error": + const t = new Error("server error"); + (t.code = e.data), this.onError(t); + break; + case "message": + this.emitReserved("data", e.data), + this.emitReserved("message", e.data); + break; + } + } + onHandshake(e) { + this.emitReserved("handshake", e), + (this.id = e.sid), + (this.transport.query.sid = e.sid), + (this.upgrades = this.filterUpgrades(e.upgrades)), + (this.pingInterval = e.pingInterval), + (this.pingTimeout = e.pingTimeout), + (this.maxPayload = e.maxPayload), + this.onOpen(), + this.readyState !== "closed" && this.resetPingTimeout(); + } + resetPingTimeout() { + this.clearTimeoutFn(this.pingTimeoutTimer), + (this.pingTimeoutTimer = this.setTimeoutFn(() => { + this.onClose("ping timeout"); + }, this.pingInterval + this.pingTimeout)), + this.opts.autoUnref && this.pingTimeoutTimer.unref(); + } + onDrain() { + this.writeBuffer.splice(0, this.prevBufferLen), + (this.prevBufferLen = 0), + this.writeBuffer.length === 0 + ? this.emitReserved("drain") + : this.flush(); + } + flush() { + if ( + this.readyState !== "closed" && + this.transport.writable && + !this.upgrading && + this.writeBuffer.length + ) { + const e = this.getWritablePackets(); + this.transport.send(e), + (this.prevBufferLen = e.length), + this.emitReserved("flush"); + } + } + getWritablePackets() { + if ( + !( + this.maxPayload && + this.transport.name === "polling" && + this.writeBuffer.length > 1 + ) + ) + return this.writeBuffer; + let t = 1; + for (let r = 0; r < this.writeBuffer.length; r++) { + const s = this.writeBuffer[r].data; + if ((s && (t += Mg(s)), r > 0 && t > this.maxPayload)) + return this.writeBuffer.slice(0, r); + t += 2; + } + return this.writeBuffer; + } + write(e, t, r) { + return this.sendPacket("message", e, t, r), this; + } + send(e, t, r) { + return this.sendPacket("message", e, t, r), this; + } + sendPacket(e, t, r, s) { + if ( + (typeof t == "function" && ((s = t), (t = void 0)), + typeof r == "function" && ((s = r), (r = null)), + this.readyState === "closing" || this.readyState === "closed") + ) + return; + (r = r || {}), (r.compress = r.compress !== !1); + const i = { type: e, data: t, options: r }; + this.emitReserved("packetCreate", i), + this.writeBuffer.push(i), + s && this.once("flush", s), + this.flush(); + } + close() { + const e = () => { + this.onClose("forced close"), this.transport.close(); + }, + t = () => { + this.off("upgrade", t), this.off("upgradeError", t), e(); + }, + r = () => { + this.once("upgrade", t), this.once("upgradeError", t); + }; + return ( + (this.readyState === "opening" || this.readyState === "open") && + ((this.readyState = "closing"), + this.writeBuffer.length + ? this.once("drain", () => { + this.upgrading ? r() : e(); + }) + : this.upgrading + ? r() + : e()), + this + ); + } + onError(e) { + (fs.priorWebsocketSuccess = !1), + this.emitReserved("error", e), + this.onClose("transport error", e); + } + onClose(e, t) { + (this.readyState === "opening" || + this.readyState === "open" || + this.readyState === "closing") && + (this.clearTimeoutFn(this.pingTimeoutTimer), + this.transport.removeAllListeners("close"), + this.transport.close(), + this.transport.removeAllListeners(), + typeof removeEventListener == "function" && + (removeEventListener( + "beforeunload", + this.beforeunloadEventListener, + !1 + ), + removeEventListener("offline", this.offlineEventListener, !1)), + (this.readyState = "closed"), + (this.id = null), + this.emitReserved("close", e, t), + (this.writeBuffer = []), + (this.prevBufferLen = 0)); + } + filterUpgrades(e) { + const t = []; + let r = 0; + const s = e.length; + for (; r < s; r++) ~this.transports.indexOf(e[r]) && t.push(e[r]); + return t; + } + }; + Jh.protocol = $h; + function jg(n, e = "", t) { + let r = n; + (t = t || (typeof location < "u" && location)), + n == null && (n = t.protocol + "//" + t.host), + typeof n == "string" && + (n.charAt(0) === "/" && + (n.charAt(1) === "/" ? (n = t.protocol + n) : (n = t.host + n)), + /^(https?|wss?):\/\//.test(n) || + (typeof t < "u" ? (n = t.protocol + "//" + n) : (n = "https://" + n)), + (r = Cl(n))), + r.port || + (/^(http|ws)$/.test(r.protocol) + ? (r.port = "80") + : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), + (r.path = r.path || "/"); + const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host; + return ( + (r.id = r.protocol + "://" + i + ":" + r.port + e), + (r.href = + r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port)), + r + ); + } + const Yg = typeof ArrayBuffer == "function", + Kg = (n) => + typeof ArrayBuffer.isView == "function" + ? ArrayBuffer.isView(n) + : n.buffer instanceof ArrayBuffer, + Zh = Object.prototype.toString, + Xg = + typeof Blob == "function" || + (typeof Blob < "u" && Zh.call(Blob) === "[object BlobConstructor]"), + Gg = + typeof File == "function" || + (typeof File < "u" && Zh.call(File) === "[object FileConstructor]"); + function Al(n) { + return ( + (Yg && (n instanceof ArrayBuffer || Kg(n))) || + (Xg && n instanceof Blob) || + (Gg && n instanceof File) + ); + } + function po(n, e) { + if (!n || typeof n != "object") return !1; + if (Array.isArray(n)) { + for (let t = 0, r = n.length; t < r; t++) if (po(n[t])) return !0; + return !1; + } + if (Al(n)) return !0; + if (n.toJSON && typeof n.toJSON == "function" && arguments.length === 1) + return po(n.toJSON(), !0); + for (const t in n) + if (Object.prototype.hasOwnProperty.call(n, t) && po(n[t])) return !0; + return !1; + } + function Jg(n) { + const e = [], + t = n.data, + r = n; + return ( + (r.data = Ml(t, e)), (r.attachments = e.length), { packet: r, buffers: e } + ); + } + function Ml(n, e) { + if (!n) return n; + if (Al(n)) { + const t = { _placeholder: !0, num: e.length }; + return e.push(n), t; + } else if (Array.isArray(n)) { + const t = new Array(n.length); + for (let r = 0; r < n.length; r++) t[r] = Ml(n[r], e); + return t; + } else if (typeof n == "object" && !(n instanceof Date)) { + const t = {}; + for (const r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = Ml(n[r], e)); + return t; + } + return n; + } + function Zg(n, e) { + return (n.data = kl(n.data, e)), delete n.attachments, n; + } + function kl(n, e) { + if (!n) return n; + if (n && n._placeholder === !0) { + if (typeof n.num == "number" && n.num >= 0 && n.num < e.length) + return e[n.num]; + throw new Error("illegal attachments"); + } else if (Array.isArray(n)) + for (let t = 0; t < n.length; t++) n[t] = kl(n[t], e); + else if (typeof n == "object") + for (const t in n) + Object.prototype.hasOwnProperty.call(n, t) && (n[t] = kl(n[t], e)); + return n; + } + const Qg = [ + "connect", + "connect_error", + "disconnect", + "disconnecting", + "newListener", + "removeListener", + ], + ev = 5; + var me; + (function (n) { + (n[(n.CONNECT = 0)] = "CONNECT"), + (n[(n.DISCONNECT = 1)] = "DISCONNECT"), + (n[(n.EVENT = 2)] = "EVENT"), + (n[(n.ACK = 3)] = "ACK"), + (n[(n.CONNECT_ERROR = 4)] = "CONNECT_ERROR"), + (n[(n.BINARY_EVENT = 5)] = "BINARY_EVENT"), + (n[(n.BINARY_ACK = 6)] = "BINARY_ACK"); + })(me || (me = {})); + class tv { + constructor(e) { + this.replacer = e; + } + encode(e) { + return (e.type === me.EVENT || e.type === me.ACK) && po(e) + ? this.encodeAsBinary({ + type: e.type === me.EVENT ? me.BINARY_EVENT : me.BINARY_ACK, + nsp: e.nsp, + data: e.data, + id: e.id, + }) + : [this.encodeAsString(e)]; + } + encodeAsString(e) { + let t = "" + e.type; + return ( + (e.type === me.BINARY_EVENT || e.type === me.BINARY_ACK) && + (t += e.attachments + "-"), + e.nsp && e.nsp !== "/" && (t += e.nsp + ","), + e.id != null && (t += e.id), + e.data != null && (t += JSON.stringify(e.data, this.replacer)), + t + ); + } + encodeAsBinary(e) { + const t = Jg(e), + r = this.encodeAsString(t.packet), + s = t.buffers; + return s.unshift(r), s; + } + } + function Qh(n) { + return Object.prototype.toString.call(n) === "[object Object]"; + } + class Ol extends Ke { + constructor(e) { + super(), (this.reviver = e); + } + add(e) { + let t; + if (typeof e == "string") { + if (this.reconstructor) + throw new Error("got plaintext data when reconstructing a packet"); + t = this.decodeString(e); + const r = t.type === me.BINARY_EVENT; + r || t.type === me.BINARY_ACK + ? ((t.type = r ? me.EVENT : me.ACK), + (this.reconstructor = new nv(t)), + t.attachments === 0 && super.emitReserved("decoded", t)) + : super.emitReserved("decoded", t); + } else if (Al(e) || e.base64) + if (this.reconstructor) + (t = this.reconstructor.takeBinaryData(e)), + t && + ((this.reconstructor = null), super.emitReserved("decoded", t)); + else + throw new Error("got binary data when not reconstructing a packet"); + else throw new Error("Unknown type: " + e); + } + decodeString(e) { + let t = 0; + const r = { type: Number(e.charAt(0)) }; + if (me[r.type] === void 0) + throw new Error("unknown packet type " + r.type); + if (r.type === me.BINARY_EVENT || r.type === me.BINARY_ACK) { + const i = t + 1; + for (; e.charAt(++t) !== "-" && t != e.length; ); + const o = e.substring(i, t); + if (o != Number(o) || e.charAt(t) !== "-") + throw new Error("Illegal attachments"); + r.attachments = Number(o); + } + if (e.charAt(t + 1) === "/") { + const i = t + 1; + for (; ++t && !(e.charAt(t) === "," || t === e.length); ); + r.nsp = e.substring(i, t); + } else r.nsp = "/"; + const s = e.charAt(t + 1); + if (s !== "" && Number(s) == s) { + const i = t + 1; + for (; ++t; ) { + const o = e.charAt(t); + if (o == null || Number(o) != o) { + --t; + break; + } + if (t === e.length) break; + } + r.id = Number(e.substring(i, t + 1)); + } + if (e.charAt(++t)) { + const i = this.tryParse(e.substr(t)); + if (Ol.isPayloadValid(r.type, i)) r.data = i; + else throw new Error("invalid payload"); + } + return r; + } + tryParse(e) { + try { + return JSON.parse(e, this.reviver); + } catch { + return !1; + } + } + static isPayloadValid(e, t) { + switch (e) { + case me.CONNECT: + return Qh(t); + case me.DISCONNECT: + return t === void 0; + case me.CONNECT_ERROR: + return typeof t == "string" || Qh(t); + case me.EVENT: + case me.BINARY_EVENT: + return ( + Array.isArray(t) && + (typeof t[0] == "number" || + (typeof t[0] == "string" && Qg.indexOf(t[0]) === -1)) + ); + case me.ACK: + case me.BINARY_ACK: + return Array.isArray(t); + } + } + destroy() { + this.reconstructor && + (this.reconstructor.finishedReconstruction(), + (this.reconstructor = null)); + } + } + class nv { + constructor(e) { + (this.packet = e), (this.buffers = []), (this.reconPack = e); + } + takeBinaryData(e) { + if ( + (this.buffers.push(e), + this.buffers.length === this.reconPack.attachments) + ) { + const t = Zg(this.reconPack, this.buffers); + return this.finishedReconstruction(), t; + } + return null; + } + finishedReconstruction() { + (this.reconPack = null), (this.buffers = []); + } + } + const rv = Object.freeze( + Object.defineProperty( + { + __proto__: null, + Decoder: Ol, + Encoder: tv, + get PacketType() { + return me; + }, + protocol: ev, + }, + Symbol.toStringTag, + { value: "Module" } + ) + ); + function hn(n, e, t) { + return ( + n.on(e, t), + function () { + n.off(e, t); + } + ); + } + const sv = Object.freeze({ + connect: 1, + connect_error: 1, + disconnect: 1, + disconnecting: 1, + newListener: 1, + removeListener: 1, + }); + class ed extends Ke { + constructor(e, t, r) { + super(), + (this.connected = !1), + (this.recovered = !1), + (this.receiveBuffer = []), + (this.sendBuffer = []), + (this._queue = []), + (this._queueSeq = 0), + (this.ids = 0), + (this.acks = {}), + (this.flags = {}), + (this.io = e), + (this.nsp = t), + r && r.auth && (this.auth = r.auth), + (this._opts = Object.assign({}, r)), + this.io._autoConnect && this.open(); + } + get disconnected() { + return !this.connected; + } + subEvents() { + if (this.subs) return; + const e = this.io; + this.subs = [ + hn(e, "open", this.onopen.bind(this)), + hn(e, "packet", this.onpacket.bind(this)), + hn(e, "error", this.onerror.bind(this)), + hn(e, "close", this.onclose.bind(this)), + ]; + } + get active() { + return !!this.subs; + } + connect() { + return this.connected + ? this + : (this.subEvents(), + this.io._reconnecting || this.io.open(), + this.io._readyState === "open" && this.onopen(), + this); + } + open() { + return this.connect(); + } + send(...e) { + return e.unshift("message"), this.emit.apply(this, e), this; + } + emit(e, ...t) { + if (sv.hasOwnProperty(e)) + throw new Error('"' + e.toString() + '" is a reserved event name'); + if ( + (t.unshift(e), + this._opts.retries && !this.flags.fromQueue && !this.flags.volatile) + ) + return this._addToQueue(t), this; + const r = { type: me.EVENT, data: t }; + if ( + ((r.options = {}), + (r.options.compress = this.flags.compress !== !1), + typeof t[t.length - 1] == "function") + ) { + const o = this.ids++, + a = t.pop(); + this._registerAckCallback(o, a), (r.id = o); + } + const s = + this.io.engine && + this.io.engine.transport && + this.io.engine.transport.writable; + return ( + (this.flags.volatile && (!s || !this.connected)) || + (this.connected + ? (this.notifyOutgoingListeners(r), this.packet(r)) + : this.sendBuffer.push(r)), + (this.flags = {}), + this + ); + } + _registerAckCallback(e, t) { + var r; + const s = + (r = this.flags.timeout) !== null && r !== void 0 + ? r + : this._opts.ackTimeout; + if (s === void 0) { + this.acks[e] = t; + return; + } + const i = this.io.setTimeoutFn(() => { + delete this.acks[e]; + for (let a = 0; a < this.sendBuffer.length; a++) + this.sendBuffer[a].id === e && this.sendBuffer.splice(a, 1); + t.call(this, new Error("operation has timed out")); + }, s), + o = (...a) => { + this.io.clearTimeoutFn(i), t.apply(this, a); + }; + (o.withError = !0), (this.acks[e] = o); + } + emitWithAck(e, ...t) { + return new Promise((r, s) => { + const i = (o, a) => (o ? s(o) : r(a)); + (i.withError = !0), t.push(i), this.emit(e, ...t); + }); + } + _addToQueue(e) { + let t; + typeof e[e.length - 1] == "function" && (t = e.pop()); + const r = { + id: this._queueSeq++, + tryCount: 0, + pending: !1, + args: e, + flags: Object.assign({ fromQueue: !0 }, this.flags), + }; + e.push((s, ...i) => + r !== this._queue[0] + ? void 0 + : (s !== null + ? r.tryCount > this._opts.retries && + (this._queue.shift(), t && t(s)) + : (this._queue.shift(), t && t(null, ...i)), + (r.pending = !1), + this._drainQueue()) + ), + this._queue.push(r), + this._drainQueue(); + } + _drainQueue(e = !1) { + if (!this.connected || this._queue.length === 0) return; + const t = this._queue[0]; + (t.pending && !e) || + ((t.pending = !0), + t.tryCount++, + (this.flags = t.flags), + this.emit.apply(this, t.args)); + } + packet(e) { + (e.nsp = this.nsp), this.io._packet(e); + } + onopen() { + typeof this.auth == "function" + ? this.auth((e) => { + this._sendConnectPacket(e); + }) + : this._sendConnectPacket(this.auth); + } + _sendConnectPacket(e) { + this.packet({ + type: me.CONNECT, + data: this._pid + ? Object.assign({ pid: this._pid, offset: this._lastOffset }, e) + : e, + }); + } + onerror(e) { + this.connected || this.emitReserved("connect_error", e); + } + onclose(e, t) { + (this.connected = !1), + delete this.id, + this.emitReserved("disconnect", e, t), + this._clearAcks(); + } + _clearAcks() { + Object.keys(this.acks).forEach((e) => { + if (!this.sendBuffer.some((r) => String(r.id) === e)) { + const r = this.acks[e]; + delete this.acks[e], + r.withError && + r.call(this, new Error("socket has been disconnected")); + } + }); + } + onpacket(e) { + if (e.nsp === this.nsp) + switch (e.type) { + case me.CONNECT: + e.data && e.data.sid + ? this.onconnect(e.data.sid, e.data.pid) + : this.emitReserved( + "connect_error", + new Error( + "It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)" + ) + ); + break; + case me.EVENT: + case me.BINARY_EVENT: + this.onevent(e); + break; + case me.ACK: + case me.BINARY_ACK: + this.onack(e); + break; + case me.DISCONNECT: + this.ondisconnect(); + break; + case me.CONNECT_ERROR: + this.destroy(); + const r = new Error(e.data.message); + (r.data = e.data.data), this.emitReserved("connect_error", r); + break; + } + } + onevent(e) { + const t = e.data || []; + e.id != null && t.push(this.ack(e.id)), + this.connected + ? this.emitEvent(t) + : this.receiveBuffer.push(Object.freeze(t)); + } + emitEvent(e) { + if (this._anyListeners && this._anyListeners.length) { + const t = this._anyListeners.slice(); + for (const r of t) r.apply(this, e); + } + super.emit.apply(this, e), + this._pid && + e.length && + typeof e[e.length - 1] == "string" && + (this._lastOffset = e[e.length - 1]); + } + ack(e) { + const t = this; + let r = !1; + return function (...s) { + r || ((r = !0), t.packet({ type: me.ACK, id: e, data: s })); + }; + } + onack(e) { + const t = this.acks[e.id]; + typeof t == "function" && + (delete this.acks[e.id], + t.withError && e.data.unshift(null), + t.apply(this, e.data)); + } + onconnect(e, t) { + (this.id = e), + (this.recovered = t && this._pid === t), + (this._pid = t), + (this.connected = !0), + this.emitBuffered(), + this.emitReserved("connect"), + this._drainQueue(!0); + } + emitBuffered() { + this.receiveBuffer.forEach((e) => this.emitEvent(e)), + (this.receiveBuffer = []), + this.sendBuffer.forEach((e) => { + this.notifyOutgoingListeners(e), this.packet(e); + }), + (this.sendBuffer = []); + } + ondisconnect() { + this.destroy(), this.onclose("io server disconnect"); + } + destroy() { + this.subs && (this.subs.forEach((e) => e()), (this.subs = void 0)), + this.io._destroy(this); + } + disconnect() { + return ( + this.connected && this.packet({ type: me.DISCONNECT }), + this.destroy(), + this.connected && this.onclose("io client disconnect"), + this + ); + } + close() { + return this.disconnect(); + } + compress(e) { + return (this.flags.compress = e), this; + } + get volatile() { + return (this.flags.volatile = !0), this; + } + timeout(e) { + return (this.flags.timeout = e), this; + } + onAny(e) { + return ( + (this._anyListeners = this._anyListeners || []), + this._anyListeners.push(e), + this + ); + } + prependAny(e) { + return ( + (this._anyListeners = this._anyListeners || []), + this._anyListeners.unshift(e), + this + ); + } + offAny(e) { + if (!this._anyListeners) return this; + if (e) { + const t = this._anyListeners; + for (let r = 0; r < t.length; r++) + if (e === t[r]) return t.splice(r, 1), this; + } else this._anyListeners = []; + return this; + } + listenersAny() { + return this._anyListeners || []; + } + onAnyOutgoing(e) { + return ( + (this._anyOutgoingListeners = this._anyOutgoingListeners || []), + this._anyOutgoingListeners.push(e), + this + ); + } + prependAnyOutgoing(e) { + return ( + (this._anyOutgoingListeners = this._anyOutgoingListeners || []), + this._anyOutgoingListeners.unshift(e), + this + ); + } + offAnyOutgoing(e) { + if (!this._anyOutgoingListeners) return this; + if (e) { + const t = this._anyOutgoingListeners; + for (let r = 0; r < t.length; r++) + if (e === t[r]) return t.splice(r, 1), this; + } else this._anyOutgoingListeners = []; + return this; + } + listenersAnyOutgoing() { + return this._anyOutgoingListeners || []; + } + notifyOutgoingListeners(e) { + if (this._anyOutgoingListeners && this._anyOutgoingListeners.length) { + const t = this._anyOutgoingListeners.slice(); + for (const r of t) r.apply(this, e.data); + } + } + } + function is(n) { + (n = n || {}), + (this.ms = n.min || 100), + (this.max = n.max || 1e4), + (this.factor = n.factor || 2), + (this.jitter = n.jitter > 0 && n.jitter <= 1 ? n.jitter : 0), + (this.attempts = 0); + } + (is.prototype.duration = function () { + var n = this.ms * Math.pow(this.factor, this.attempts++); + if (this.jitter) { + var e = Math.random(), + t = Math.floor(e * this.jitter * n); + n = Math.floor(e * 10) & 1 ? n + t : n - t; + } + return Math.min(n, this.max) | 0; + }), + (is.prototype.reset = function () { + this.attempts = 0; + }), + (is.prototype.setMin = function (n) { + this.ms = n; + }), + (is.prototype.setMax = function (n) { + this.max = n; + }), + (is.prototype.setJitter = function (n) { + this.jitter = n; + }); + class Il extends Ke { + constructor(e, t) { + var r; + super(), + (this.nsps = {}), + (this.subs = []), + e && typeof e == "object" && ((t = e), (e = void 0)), + (t = t || {}), + (t.path = t.path || "/socket.io"), + (this.opts = t), + uo(this, t), + this.reconnection(t.reconnection !== !1), + this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), + this.reconnectionDelay(t.reconnectionDelay || 1e3), + this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), + this.randomizationFactor( + (r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5 + ), + (this.backoff = new is({ + min: this.reconnectionDelay(), + max: this.reconnectionDelayMax(), + jitter: this.randomizationFactor(), + })), + this.timeout(t.timeout == null ? 2e4 : t.timeout), + (this._readyState = "closed"), + (this.uri = e); + const s = t.parser || rv; + (this.encoder = new s.Encoder()), + (this.decoder = new s.Decoder()), + (this._autoConnect = t.autoConnect !== !1), + this._autoConnect && this.open(); + } + reconnection(e) { + return arguments.length + ? ((this._reconnection = !!e), this) + : this._reconnection; + } + reconnectionAttempts(e) { + return e === void 0 + ? this._reconnectionAttempts + : ((this._reconnectionAttempts = e), this); + } + reconnectionDelay(e) { + var t; + return e === void 0 + ? this._reconnectionDelay + : ((this._reconnectionDelay = e), + (t = this.backoff) === null || t === void 0 || t.setMin(e), + this); + } + randomizationFactor(e) { + var t; + return e === void 0 + ? this._randomizationFactor + : ((this._randomizationFactor = e), + (t = this.backoff) === null || t === void 0 || t.setJitter(e), + this); + } + reconnectionDelayMax(e) { + var t; + return e === void 0 + ? this._reconnectionDelayMax + : ((this._reconnectionDelayMax = e), + (t = this.backoff) === null || t === void 0 || t.setMax(e), + this); + } + timeout(e) { + return arguments.length ? ((this._timeout = e), this) : this._timeout; + } + maybeReconnectOnOpen() { + !this._reconnecting && + this._reconnection && + this.backoff.attempts === 0 && + this.reconnect(); + } + open(e) { + if (~this._readyState.indexOf("open")) return this; + this.engine = new Jh(this.uri, this.opts); + const t = this.engine, + r = this; + (this._readyState = "opening"), (this.skipReconnect = !1); + const s = hn(t, "open", function () { + r.onopen(), e && e(); + }), + i = (a) => { + this.cleanup(), + (this._readyState = "closed"), + this.emitReserved("error", a), + e ? e(a) : this.maybeReconnectOnOpen(); + }, + o = hn(t, "error", i); + if (this._timeout !== !1) { + const a = this._timeout, + l = this.setTimeoutFn(() => { + s(), i(new Error("timeout")), t.close(); + }, a); + this.opts.autoUnref && l.unref(), + this.subs.push(() => { + this.clearTimeoutFn(l); + }); + } + return this.subs.push(s), this.subs.push(o), this; + } + connect(e) { + return this.open(e); + } + onopen() { + this.cleanup(), (this._readyState = "open"), this.emitReserved("open"); + const e = this.engine; + this.subs.push( + hn(e, "ping", this.onping.bind(this)), + hn(e, "data", this.ondata.bind(this)), + hn(e, "error", this.onerror.bind(this)), + hn(e, "close", this.onclose.bind(this)), + hn(this.decoder, "decoded", this.ondecoded.bind(this)) + ); + } + onping() { + this.emitReserved("ping"); + } + ondata(e) { + try { + this.decoder.add(e); + } catch (t) { + this.onclose("parse error", t); + } + } + ondecoded(e) { + Sl(() => { + this.emitReserved("packet", e); + }, this.setTimeoutFn); + } + onerror(e) { + this.emitReserved("error", e); + } + socket(e, t) { + let r = this.nsps[e]; + return ( + r + ? this._autoConnect && !r.active && r.connect() + : ((r = new ed(this, e, t)), (this.nsps[e] = r)), + r + ); + } + _destroy(e) { + const t = Object.keys(this.nsps); + for (const r of t) if (this.nsps[r].active) return; + this._close(); + } + _packet(e) { + const t = this.encoder.encode(e); + for (let r = 0; r < t.length; r++) this.engine.write(t[r], e.options); + } + cleanup() { + this.subs.forEach((e) => e()), + (this.subs.length = 0), + this.decoder.destroy(); + } + _close() { + (this.skipReconnect = !0), + (this._reconnecting = !1), + this.onclose("forced close"), + this.engine && this.engine.close(); + } + disconnect() { + return this._close(); + } + onclose(e, t) { + this.cleanup(), + this.backoff.reset(), + (this._readyState = "closed"), + this.emitReserved("close", e, t), + this._reconnection && !this.skipReconnect && this.reconnect(); + } + reconnect() { + if (this._reconnecting || this.skipReconnect) return this; + const e = this; + if (this.backoff.attempts >= this._reconnectionAttempts) + this.backoff.reset(), + this.emitReserved("reconnect_failed"), + (this._reconnecting = !1); + else { + const t = this.backoff.duration(); + this._reconnecting = !0; + const r = this.setTimeoutFn(() => { + e.skipReconnect || + (this.emitReserved("reconnect_attempt", e.backoff.attempts), + !e.skipReconnect && + e.open((s) => { + s + ? ((e._reconnecting = !1), + e.reconnect(), + this.emitReserved("reconnect_error", s)) + : e.onreconnect(); + })); + }, t); + this.opts.autoUnref && r.unref(), + this.subs.push(() => { + this.clearTimeoutFn(r); + }); + } + } + onreconnect() { + const e = this.backoff.attempts; + (this._reconnecting = !1), + this.backoff.reset(), + this.emitReserved("reconnect", e); + } + } + const js = {}; + function mo(n, e) { + typeof n == "object" && ((e = n), (n = void 0)), (e = e || {}); + const t = jg(n, e.path || "/socket.io"), + r = t.source, + s = t.id, + i = t.path, + o = js[s] && i in js[s].nsps, + a = e.forceNew || e["force new connection"] || e.multiplex === !1 || o; + let l; + return ( + a ? (l = new Il(r, e)) : (js[s] || (js[s] = new Il(r, e)), (l = js[s])), + t.query && !e.query && (e.query = t.queryKey), + l.socket(t.path, e) + ); + } + Object.assign(mo, { Manager: Il, Socket: ed, io: mo, connect: mo }); + var _o, + iv = new Uint8Array(16); + function td() { + if ( + !_o && + ((_o = + (typeof crypto < "u" && + crypto.getRandomValues && + crypto.getRandomValues.bind(crypto)) || + (typeof msCrypto < "u" && + typeof msCrypto.getRandomValues == "function" && + msCrypto.getRandomValues.bind(msCrypto))), + !_o) + ) + throw new Error( + "crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported" + ); + return _o(iv); + } + const ov = + /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + function nd(n) { + return typeof n == "string" && ov.test(n); + } + for (var ct = [], Rl = 0; Rl < 256; ++Rl) + ct.push((Rl + 256).toString(16).substr(1)); + function Pl(n) { + var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, + t = ( + ct[n[e + 0]] + + ct[n[e + 1]] + + ct[n[e + 2]] + + ct[n[e + 3]] + + "-" + + ct[n[e + 4]] + + ct[n[e + 5]] + + "-" + + ct[n[e + 6]] + + ct[n[e + 7]] + + "-" + + ct[n[e + 8]] + + ct[n[e + 9]] + + "-" + + ct[n[e + 10]] + + ct[n[e + 11]] + + ct[n[e + 12]] + + ct[n[e + 13]] + + ct[n[e + 14]] + + ct[n[e + 15]] + ).toLowerCase(); + if (!nd(t)) throw TypeError("Stringified UUID is invalid"); + return t; + } + var rd, + Ll, + Dl = 0, + Nl = 0; + function av(n, e, t) { + var r = (e && t) || 0, + s = e || new Array(16); + n = n || {}; + var i = n.node || rd, + o = n.clockseq !== void 0 ? n.clockseq : Ll; + if (i == null || o == null) { + var a = n.random || (n.rng || td)(); + i == null && (i = rd = [a[0] | 1, a[1], a[2], a[3], a[4], a[5]]), + o == null && (o = Ll = ((a[6] << 8) | a[7]) & 16383); + } + var l = n.msecs !== void 0 ? n.msecs : Date.now(), + c = n.nsecs !== void 0 ? n.nsecs : Nl + 1, + u = l - Dl + (c - Nl) / 1e4; + if ( + (u < 0 && n.clockseq === void 0 && (o = (o + 1) & 16383), + (u < 0 || l > Dl) && n.nsecs === void 0 && (c = 0), + c >= 1e4) + ) + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + (Dl = l), (Nl = c), (Ll = o), (l += 122192928e5); + var f = ((l & 268435455) * 1e4 + c) % 4294967296; + (s[r++] = (f >>> 24) & 255), + (s[r++] = (f >>> 16) & 255), + (s[r++] = (f >>> 8) & 255), + (s[r++] = f & 255); + var h = ((l / 4294967296) * 1e4) & 268435455; + (s[r++] = (h >>> 8) & 255), + (s[r++] = h & 255), + (s[r++] = ((h >>> 24) & 15) | 16), + (s[r++] = (h >>> 16) & 255), + (s[r++] = (o >>> 8) | 128), + (s[r++] = o & 255); + for (var p = 0; p < 6; ++p) s[r + p] = i[p]; + return e || Pl(s); + } + function lv(n) { + if (!nd(n)) throw TypeError("Invalid UUID"); + var e, + t = new Uint8Array(16); + return ( + (t[0] = (e = parseInt(n.slice(0, 8), 16)) >>> 24), + (t[1] = (e >>> 16) & 255), + (t[2] = (e >>> 8) & 255), + (t[3] = e & 255), + (t[4] = (e = parseInt(n.slice(9, 13), 16)) >>> 8), + (t[5] = e & 255), + (t[6] = (e = parseInt(n.slice(14, 18), 16)) >>> 8), + (t[7] = e & 255), + (t[8] = (e = parseInt(n.slice(19, 23), 16)) >>> 8), + (t[9] = e & 255), + (t[10] = ((e = parseInt(n.slice(24, 36), 16)) / 1099511627776) & 255), + (t[11] = (e / 4294967296) & 255), + (t[12] = (e >>> 24) & 255), + (t[13] = (e >>> 16) & 255), + (t[14] = (e >>> 8) & 255), + (t[15] = e & 255), + t + ); + } + function cv(n) { + n = unescape(encodeURIComponent(n)); + for (var e = [], t = 0; t < n.length; ++t) e.push(n.charCodeAt(t)); + return e; + } + var uv = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", + fv = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + function sd(n, e, t) { + function r(s, i, o, a) { + if ( + (typeof s == "string" && (s = cv(s)), + typeof i == "string" && (i = lv(i)), + i.length !== 16) + ) + throw TypeError( + "Namespace must be array-like (16 iterable integer values, 0-255)" + ); + var l = new Uint8Array(16 + s.length); + if ( + (l.set(i), + l.set(s, i.length), + (l = t(l)), + (l[6] = (l[6] & 15) | e), + (l[8] = (l[8] & 63) | 128), + o) + ) { + a = a || 0; + for (var c = 0; c < 16; ++c) o[a + c] = l[c]; + return o; + } + return Pl(l); + } + try { + r.name = n; + } catch {} + return (r.DNS = uv), (r.URL = fv), r; + } + function hv(n) { + if (typeof n == "string") { + var e = unescape(encodeURIComponent(n)); + n = new Uint8Array(e.length); + for (var t = 0; t < e.length; ++t) n[t] = e.charCodeAt(t); + } + return dv(pv(mv(n), n.length * 8)); + } + function dv(n) { + for ( + var e = [], t = n.length * 32, r = "0123456789abcdef", s = 0; + s < t; + s += 8 + ) { + var i = (n[s >> 5] >>> s % 32) & 255, + o = parseInt(r.charAt((i >>> 4) & 15) + r.charAt(i & 15), 16); + e.push(o); + } + return e; + } + function id(n) { + return (((n + 64) >>> 9) << 4) + 14 + 1; + } + function pv(n, e) { + (n[e >> 5] |= 128 << e % 32), (n[id(e) - 1] = e); + for ( + var t = 1732584193, r = -271733879, s = -1732584194, i = 271733878, o = 0; + o < n.length; + o += 16 + ) { + var a = t, + l = r, + c = s, + u = i; + (t = pt(t, r, s, i, n[o], 7, -680876936)), + (i = pt(i, t, r, s, n[o + 1], 12, -389564586)), + (s = pt(s, i, t, r, n[o + 2], 17, 606105819)), + (r = pt(r, s, i, t, n[o + 3], 22, -1044525330)), + (t = pt(t, r, s, i, n[o + 4], 7, -176418897)), + (i = pt(i, t, r, s, n[o + 5], 12, 1200080426)), + (s = pt(s, i, t, r, n[o + 6], 17, -1473231341)), + (r = pt(r, s, i, t, n[o + 7], 22, -45705983)), + (t = pt(t, r, s, i, n[o + 8], 7, 1770035416)), + (i = pt(i, t, r, s, n[o + 9], 12, -1958414417)), + (s = pt(s, i, t, r, n[o + 10], 17, -42063)), + (r = pt(r, s, i, t, n[o + 11], 22, -1990404162)), + (t = pt(t, r, s, i, n[o + 12], 7, 1804603682)), + (i = pt(i, t, r, s, n[o + 13], 12, -40341101)), + (s = pt(s, i, t, r, n[o + 14], 17, -1502002290)), + (r = pt(r, s, i, t, n[o + 15], 22, 1236535329)), + (t = mt(t, r, s, i, n[o + 1], 5, -165796510)), + (i = mt(i, t, r, s, n[o + 6], 9, -1069501632)), + (s = mt(s, i, t, r, n[o + 11], 14, 643717713)), + (r = mt(r, s, i, t, n[o], 20, -373897302)), + (t = mt(t, r, s, i, n[o + 5], 5, -701558691)), + (i = mt(i, t, r, s, n[o + 10], 9, 38016083)), + (s = mt(s, i, t, r, n[o + 15], 14, -660478335)), + (r = mt(r, s, i, t, n[o + 4], 20, -405537848)), + (t = mt(t, r, s, i, n[o + 9], 5, 568446438)), + (i = mt(i, t, r, s, n[o + 14], 9, -1019803690)), + (s = mt(s, i, t, r, n[o + 3], 14, -187363961)), + (r = mt(r, s, i, t, n[o + 8], 20, 1163531501)), + (t = mt(t, r, s, i, n[o + 13], 5, -1444681467)), + (i = mt(i, t, r, s, n[o + 2], 9, -51403784)), + (s = mt(s, i, t, r, n[o + 7], 14, 1735328473)), + (r = mt(r, s, i, t, n[o + 12], 20, -1926607734)), + (t = _t(t, r, s, i, n[o + 5], 4, -378558)), + (i = _t(i, t, r, s, n[o + 8], 11, -2022574463)), + (s = _t(s, i, t, r, n[o + 11], 16, 1839030562)), + (r = _t(r, s, i, t, n[o + 14], 23, -35309556)), + (t = _t(t, r, s, i, n[o + 1], 4, -1530992060)), + (i = _t(i, t, r, s, n[o + 4], 11, 1272893353)), + (s = _t(s, i, t, r, n[o + 7], 16, -155497632)), + (r = _t(r, s, i, t, n[o + 10], 23, -1094730640)), + (t = _t(t, r, s, i, n[o + 13], 4, 681279174)), + (i = _t(i, t, r, s, n[o], 11, -358537222)), + (s = _t(s, i, t, r, n[o + 3], 16, -722521979)), + (r = _t(r, s, i, t, n[o + 6], 23, 76029189)), + (t = _t(t, r, s, i, n[o + 9], 4, -640364487)), + (i = _t(i, t, r, s, n[o + 12], 11, -421815835)), + (s = _t(s, i, t, r, n[o + 15], 16, 530742520)), + (r = _t(r, s, i, t, n[o + 2], 23, -995338651)), + (t = gt(t, r, s, i, n[o], 6, -198630844)), + (i = gt(i, t, r, s, n[o + 7], 10, 1126891415)), + (s = gt(s, i, t, r, n[o + 14], 15, -1416354905)), + (r = gt(r, s, i, t, n[o + 5], 21, -57434055)), + (t = gt(t, r, s, i, n[o + 12], 6, 1700485571)), + (i = gt(i, t, r, s, n[o + 3], 10, -1894986606)), + (s = gt(s, i, t, r, n[o + 10], 15, -1051523)), + (r = gt(r, s, i, t, n[o + 1], 21, -2054922799)), + (t = gt(t, r, s, i, n[o + 8], 6, 1873313359)), + (i = gt(i, t, r, s, n[o + 15], 10, -30611744)), + (s = gt(s, i, t, r, n[o + 6], 15, -1560198380)), + (r = gt(r, s, i, t, n[o + 13], 21, 1309151649)), + (t = gt(t, r, s, i, n[o + 4], 6, -145523070)), + (i = gt(i, t, r, s, n[o + 11], 10, -1120210379)), + (s = gt(s, i, t, r, n[o + 2], 15, 718787259)), + (r = gt(r, s, i, t, n[o + 9], 21, -343485551)), + (t = dr(t, a)), + (r = dr(r, l)), + (s = dr(s, c)), + (i = dr(i, u)); + } + return [t, r, s, i]; + } + function mv(n) { + if (n.length === 0) return []; + for (var e = n.length * 8, t = new Uint32Array(id(e)), r = 0; r < e; r += 8) + t[r >> 5] |= (n[r / 8] & 255) << r % 32; + return t; + } + function dr(n, e) { + var t = (n & 65535) + (e & 65535), + r = (n >> 16) + (e >> 16) + (t >> 16); + return (r << 16) | (t & 65535); + } + function _v(n, e) { + return (n << e) | (n >>> (32 - e)); + } + function go(n, e, t, r, s, i) { + return dr(_v(dr(dr(e, n), dr(r, i)), s), t); + } + function pt(n, e, t, r, s, i, o) { + return go((e & t) | (~e & r), n, e, s, i, o); + } + function mt(n, e, t, r, s, i, o) { + return go((e & r) | (t & ~r), n, e, s, i, o); + } + function _t(n, e, t, r, s, i, o) { + return go(e ^ t ^ r, n, e, s, i, o); + } + function gt(n, e, t, r, s, i, o) { + return go(t ^ (e | ~r), n, e, s, i, o); + } + var gv = sd("v3", 48, hv); + const vv = gv; + function yv(n, e, t) { + n = n || {}; + var r = n.random || (n.rng || td)(); + if (((r[6] = (r[6] & 15) | 64), (r[8] = (r[8] & 63) | 128), e)) { + t = t || 0; + for (var s = 0; s < 16; ++s) e[t + s] = r[s]; + return e; + } + return Pl(r); + } + function bv(n, e, t, r) { + switch (n) { + case 0: + return (e & t) ^ (~e & r); + case 1: + return e ^ t ^ r; + case 2: + return (e & t) ^ (e & r) ^ (t & r); + case 3: + return e ^ t ^ r; + } + } + function Bl(n, e) { + return (n << e) | (n >>> (32 - e)); + } + function wv(n) { + var e = [1518500249, 1859775393, 2400959708, 3395469782], + t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if (typeof n == "string") { + var r = unescape(encodeURIComponent(n)); + n = []; + for (var s = 0; s < r.length; ++s) n.push(r.charCodeAt(s)); + } else Array.isArray(n) || (n = Array.prototype.slice.call(n)); + n.push(128); + for ( + var i = n.length / 4 + 2, o = Math.ceil(i / 16), a = new Array(o), l = 0; + l < o; + ++l + ) { + for (var c = new Uint32Array(16), u = 0; u < 16; ++u) + c[u] = + (n[l * 64 + u * 4] << 24) | + (n[l * 64 + u * 4 + 1] << 16) | + (n[l * 64 + u * 4 + 2] << 8) | + n[l * 64 + u * 4 + 3]; + a[l] = c; + } + (a[o - 1][14] = ((n.length - 1) * 8) / Math.pow(2, 32)), + (a[o - 1][14] = Math.floor(a[o - 1][14])), + (a[o - 1][15] = ((n.length - 1) * 8) & 4294967295); + for (var f = 0; f < o; ++f) { + for (var h = new Uint32Array(80), p = 0; p < 16; ++p) h[p] = a[f][p]; + for (var _ = 16; _ < 80; ++_) + h[_] = Bl(h[_ - 3] ^ h[_ - 8] ^ h[_ - 14] ^ h[_ - 16], 1); + for ( + var d = t[0], m = t[1], v = t[2], b = t[3], E = t[4], T = 0; + T < 80; + ++T + ) { + var S = Math.floor(T / 20), + k = (Bl(d, 5) + bv(S, m, v, b) + E + e[S] + h[T]) >>> 0; + (E = b), (b = v), (v = Bl(m, 30) >>> 0), (m = d), (d = k); + } + (t[0] = (t[0] + d) >>> 0), + (t[1] = (t[1] + m) >>> 0), + (t[2] = (t[2] + v) >>> 0), + (t[3] = (t[3] + b) >>> 0), + (t[4] = (t[4] + E) >>> 0); + } + return [ + (t[0] >> 24) & 255, + (t[0] >> 16) & 255, + (t[0] >> 8) & 255, + t[0] & 255, + (t[1] >> 24) & 255, + (t[1] >> 16) & 255, + (t[1] >> 8) & 255, + t[1] & 255, + (t[2] >> 24) & 255, + (t[2] >> 16) & 255, + (t[2] >> 8) & 255, + t[2] & 255, + (t[3] >> 24) & 255, + (t[3] >> 16) & 255, + (t[3] >> 8) & 255, + t[3] & 255, + (t[4] >> 24) & 255, + (t[4] >> 16) & 255, + (t[4] >> 8) & 255, + t[4] & 255, + ]; + } + var Tv = sd("v5", 80, wv), + os = { v1: av, v3: vv, v4: yv, v5: Tv }; + const xv = `${window.ivasMessengerSettings.domain.replace( + /https?:/, + ["https:", "outsystems:", "chrome-extension:"].includes(window.parent.location.protocol) + ? "wss:" + : "ws:" + )}:${window.ivasMessengerSettings.port}/v1`, + ce = mo(xv, { + "connect timeout": 6e4, + autoConnect: !1, + transports: ["websocket"], + forceNew: !0, + auth: { + token: at.token, + userId: at.userId || os.v4(), + referer: window.parent.location.href, + userToken: at.userToken, + }, + }); + let Fl = () => {}; + const Ev = de({ + __name: "MessengerStore", + setup(n) { + const e = Ce(), + { setUserId: t, setUserToken: r, setStorageUrl: s } = e, + { userId: i, userToken: o, logs: a, settings: l } = ve(e), + c = Y(null), + u = `${at.hostname}:${at.port}/store`; + return ( + Xt(() => { + window.addEventListener("message", (f) => { + if (Object.prototype.hasOwnProperty.call(f.data, "ivasUserId")) { + const h = {}; + f.data.ivasUserId && + ((h.userId = f.data.ivasUserId), t(f.data.ivasUserId)), + f.data.ivasUserToken && + ((h.userToken = f.data.ivasUserToken), + r(f.data.ivasUserToken)), + f.data.noLocalStorage && + localStorage.getItem("ivasUserId") && + ((h.userId = localStorage.getItem("ivasUserId")), + (h.userToken = localStorage.getItem("ivasUserToken")), + t(h.userId), + r(h.userToken)), + f.data.ivasStorageUrl && s(f.data.ivasStorageUrl), + (Fl = () => { + var p; + !f.data.noLocalStorage && + (p = c.value) != null && + p.contentWindow + ? c.value.contentWindow.postMessage( + { ivasUserId: i.value, ivasUserToken: o.value }, + u + ) + : (localStorage.setItem("ivasUserId", i.value), + localStorage.setItem("ivasUserToken", o.value)); + }), + (ce.auth.userToken = h.userToken), + ce.connect(); + } + }); + }), + (f, h) => ( + R(), + W( + "iframe", + { + ref_key: "iframe", + ref: c, + name: "ivasMessengerIframeStore", + src: u, + style: { display: "none !important" }, + height: "0", + width: "0", + title: "Virtual Assistant", + }, + ` + `, + 512 + ) + ) + ); + }, + }), + Cn = zi("conversation", function () { + const n = Ce(), + { setView: e, setConversationId: t } = n, + { isLoading: r, view: s } = ve(n), + i = Y(null), + o = Y([]), + a = Y(!1); + ce.on("Conversation:list", (f) => { + f.error || + (f.reset && u(), (i.value = f), (o.value = o.value.concat(f.docs))), + (a.value = !1), + (r.value = !1); + }); + const l = (f) => { + e("chat"), + (r.value = !0), + t(f), + ce.emit("Event:list", { conversationId: f, page: 1, max: 10 }); + }, + c = () => { + e("conversations"), + u(), + (r.value = !0), + ce.emit("Conversation:list", { page: 1, max: 10 }); + }, + u = () => { + (i.value = null), t(null), (o.value = []), (a.value = !1); + }; + return ( + ce.on("Emit:Conversation:list", () => { + if (s.value === "chat") return; + const f = s.value === "main"; + ce.emit("Conversation:list", { page: 1, max: f ? 1 : 10, reset: !f }); + }), + { + paginatedConversations: i, + conversations: o, + setConversationId: t, + $reset: u, + getConversationEvents: l, + getConversations: c, + fetching: a, + } + ); + }), + An = zi("conversationEvent", () => { + const n = Ce(), + { vm: e } = n, + { + isLoading: t, + view: r, + userId: s, + newConversation: i, + ncPing: o, + conversationId: a, + } = ve(n), + l = Y(null), + c = Y([]), + u = Y({}), + f = Y([]), + h = Y({}), + p = Y(!1), + _ = Y(!1), + d = Y(0), + m = (y) => { + u.value = y; + }; + ce.on("Event:list", (y) => { + if (r.value === "chat") { + if (!y.error) { + l.value = y; + const L = new Set(c.value.map((F) => F._id)), + U = y.docs.filter((F) => !L.has(F._id)); + U.length > 0 && + ((c.value = [...c.value, ...U.reverse()].sort( + (F, K) => (F.sentAt || 0) - (K.sentAt || 0) + )), + (c.value = [...c.value])), + m(y.conversation.participantsData), + y.total > y.page * 10 && + ce.emit("Event:list", { + conversationId: a.value, + page: y.page + 1, + max: 10, + }); + } + t.value = !1; + } + }), + ce.on("isTyping", (y) => { + if (!y.error) + if (y.userId === s.value) h.value = y; + else { + const L = f.value.findIndex((U) => U.userId === y.userId); + L > -1 ? f.value.splice(L, 1, y) : f.value.push(y); + } + }); + const v = (y) => c.value.findIndex((L) => L.ping === y), + b = (y) => { + const L = v(y.ping); + L > -1 && c.value.splice(L, 1, y); + }, + E = (y) => { + const L = f.value.findIndex((U) => U.userId === y); + L !== -1 && f.value.splice(L, 1); + }, + T = (y) => { + (!c.value.find((L) => L._id === y._id) || !y._id) && + (c.value.push(y), + (d.value += 1), + (_.value = y.sentBy.userId === s.value)); + }; + ce.on("Event:create", (y) => { + const L = (U) => { + U && !U.error + ? (a.value || ((a.value = U.conversationId), (i.value = !1)), + v(U.ping) > -1 && s.value === U.sentBy.userId + ? b(U) + : a.value && (T(U), E(U.sentBy.userId)), + U.sentBy.userId !== s.value && (p.value = !0)) + : console.error("payload is undefined"), + (t.value = !1); + }; + ((y.ncPing && o.value && y.ncPing === o.value) || + a.value === y.conversationId) && + (typeof e.$routines.afterAddConversationEvent == "function" + ? e.$routines.afterAddConversationEvent(e.$stores, y, (U) => { + L(U); + }) + : L(y)); + }), + ce.on("Conversation:updateParticipants", (y) => { + !y.error && a.value && m(y.participantsData); + }); + const S = (y) => { + (y._vc = { branch: at.branch }), + typeof e.$routines.beforeAddConversationEvent == "function" + ? e.$routines.beforeAddConversationEvent(e.$stores, y, (L) => { + L + ? ce.emit("Event:create", L) + : console.error("message is undefined"); + }) + : ce.emit("Event:create", y); + }, + k = (y) => { + i.value && !a.value && (i.value = !1); + const L = typeof y == "object" ? { ...y } : { input: y }; + (L.ping = os.v4()), + a.value ? (L.conversationId = a.value) : (L.ncPing = o.value); + const U = JSON.parse(JSON.stringify(L)), + F = Object.assign(U, { sentBy: { userId: s.value } }); + (L.ncPing === o.value || L.conversationId === a.value) && T(U), S(F); + }; + return { + paginatedConversationEvents: l, + messages: c, + participants: u, + $reset: () => { + (l.value = null), + (c.value = []), + (u.value = {}), + (f.value = []), + (h.value = {}), + (p.value = !1), + (_.value = !1), + (d.value = 0); + }, + sendMessage: k, + isUserMessage: _, + isTyping: f, + skip: d, + newConversationEvent: p, + userIsTyping: h, + resendMessage: S, + chipOnClick: (y, L) => { + L.target.classList.add("chat-option--selected"), k(y); + }, + }; + }); + function Sv(n) { + return typeof n == "object" && n !== null; + } + function Cv(n, e) { + return ( + (n = Sv(n) ? n : Object.create(null)), + new Proxy(n, { + get(t, r, s) { + return r === "key" + ? Reflect.get(t, r, s) + : Reflect.get(t, r, s) || Reflect.get(e, r, s); + }, + }) + ); + } + function Av(n, e) { + return e.reduce((t, r) => (t == null ? void 0 : t[r]), n); + } + function Mv(n, e, t) { + return ( + (e + .slice(0, -1) + .reduce( + (r, s) => (/^(__proto__)$/.test(s) ? {} : (r[s] = r[s] || {})), + n + )[e[e.length - 1]] = t), + n + ); + } + function kv(n, e) { + return e.reduce((t, r) => { + const s = r.split("."); + return Mv(t, s, Av(n, s)); + }, {}); + } + function od(n, { storage: e, serializer: t, key: r, debug: s }) { + try { + const i = e == null ? void 0 : e.getItem(r); + i && n.$patch(t == null ? void 0 : t.deserialize(i)); + } catch (i) { + s && console.error(i); + } + } + function ad(n, { storage: e, serializer: t, key: r, paths: s, debug: i }) { + try { + const o = Array.isArray(s) ? kv(n, s) : n; + e.setItem(r, t.serialize(o)); + } catch (o) { + i && console.error(o); + } + } + function Ov(n) { + return (e) => { + const { store: t } = e, + r = [Cv(!0, n)].map( + ({ + storage: s = localStorage, + beforeRestore: i = null, + afterRestore: o = null, + serializer: a = { + serialize: JSON.stringify, + deserialize: JSON.parse, + }, + paths: l = null, + debug: c = !1, + }) => ({ + storage: s, + beforeRestore: i, + afterRestore: o, + serializer: a, + key: n.key, + paths: l, + debug: c, + }) + ); + (t.$persist = () => { + r.forEach((s) => { + ad(t.$state, s); + }); + }), + (t.$hydrate = ({ runHooks: s = !0 } = {}) => { + r.forEach((i) => { + const { beforeRestore: o, afterRestore: a } = i; + s && (o == null || o(e)), od(t, i), s && (a == null || a(e)); + }); + }), + r.forEach((s) => { + const { beforeRestore: i, afterRestore: o } = s; + i == null || i(e), + od(t, s), + o == null || o(e), + t.$subscribe( + (a, l) => { + ad(l, s); + }, + { detached: !0 } + ); + }); + }; + } + const Iv = zi("snippets", () => { + const n = Y({}); + return { + snippets: n, + add: (s, i) => { + n.value[s] = i; + }, + remove: (s) => { + delete n.value[s]; + }, + get: (s) => n.value[s], + }; + }), + Ce = zi("main", function () { + const n = Fi(), + e = Y(!1), + t = Y(!1), + r = Y(!1), + s = Y(!1), + i = Y(!1), + o = Y(null), + a = Y(null), + l = Y(null), + c = Y("main"), + u = Y([]), + f = Y(null), + h = Y(null), + p = Y(!1), + _ = Y(!1), + d = Y(-1), + m = Y(null), + v = Y(), + b = Y(!1), + E = Y(!1), + T = Y(), + S = Y(null), + k = Y(!1), + O = Y([]), + A = Y(null), + y = Y(at.branch); + let L = !1, + U = !1; + const F = () => { + localStorage.removeItem(`ivasMessengerState-${S.value}`); + }, + K = Qe(() => { + var C; + return ( + !at.fullscreen && + (((C = f.value) == null ? void 0 : C.desktopCloseBtn) || ji()) + ); + }), + ae = Qe(() => (at == null ? void 0 : at.fullscreen) || ji()), + be = Qe(() => { + var C, $; + return ( + (($ = (C = f.value) == null ? void 0 : C.authentication) == null + ? void 0 + : $.enabled) && !b.value + ); + }); + ce.on("connect", () => { + O.value.push("connect"), c.value === "chat" && m.value && N(); + }), + ce.on("disconnect", () => { + O.value.push("disconnect"), + (t.value = !1), + (e.value = !0), + (r.value = !0), + (ce.auth.userToken = a.value); + }), + ce.on("error", (C) => window.ivasMessengerSettings.onError(C)), + ce.on("connect_error", (C) => window.ivasMessengerSettings.onError(C)), + ce.on("connect_timeout", (C) => + window.ivasMessengerSettings.onError(C) + ), + ce.on("reconnect_error", (C) => + window.ivasMessengerSettings.onError(C) + ), + ce.on("reconnect_failed", (C) => + window.ivasMessengerSettings.onError(C) + ), + ce.on("unauthorized", () => { + s.value = !1; + }), + ce.on("Conversation:join", (C) => { + C != null && + C.error && + (F(), + (m.value = null), + (i.value = !0), + (e.value = !1), + Cn().$reset(), + An().$reset()); + }); + const ne = new URLSearchParams(window.location.search).has( + "engagementId" + ); + ce.on("UserToken", (C) => { + O.value.push(`UserToken: ${C.userToken}`), + C.userToken !== localStorage.getItem("ivasUserToken") && (L = !0), + Ge(C.userId), + ue(C.userToken), + Fl && Fl(), + (s.value = !0), + (e.value = !1), + !r.value && + !U && + ((r.value = null), + ce.emit("Engagement:getMessenger", ($) => { + let D = {}; + if ($.js && !ne) { + try { + D = new Function($.js)(); + } catch (P) { + console.log( + `Exception in engagement script +` + P + ); + } + typeof D != "object" + ? (console.log("must be an object containing a Name or Guid"), + (D = {})) + : !(D != null && D.Guid) && + !(D != null && D.Name) && + (console.log("Object must contain either a Name or Guid"), + (D = {})); + } + const H = { ...D, _vc: { branch: at.branch } }; + ce.emit("Engagement:getOne", H, async (P) => { + if ((O.value.push(`Engagement:getOne: ${P._id}`), P.error)) + console.error(P.error); + else { + (U = !0), + Pe(P.workspaceId), + (S.value = P._id), + L && ((L = !1), F()); + const { routines: G, snippets: X } = P; + (n.$watch = Ve), + (n.$socket = ce), + (n.$stores = { + main: Ce(), + conversation: Cn(), + conversationEvent: An(), + snippets: Iv(), + }), + (n.$routines = { + onEngagementLoad(j, J, re) { + G.onEngagementLoad && + new Function( + "store, payload, vm", + G.onEngagementLoad + )(j, J, re), + j.main.settings || j.main.setSettings(J.settings); + }, + beforeAddConversationEvent(j, J, re) { + let _e = !1; + function ge(...Oe) { + return (_e = !0), re(...Oe); + } + G.beforeAddConversationEvent && + new Function( + "store, payload, callback", + G.beforeAddConversationEvent + )(j, J, ge), + _e || re(J); + }, + afterAddConversationEvent(j, J, re) { + let _e = !1; + function ge(...Oe) { + return (_e = !0), re(...Oe); + } + G.afterAddConversationEvent && + new Function( + "store, payload, callback", + G.afterAddConversationEvent + )(j, J, ge), + _e || re(J); + }, + }), + Ov({ + key: `ivasMessengerState-${P._id}`, + paths: [ + "isMessengerVisible", + "isMessengerDisabled", + "view", + "newConversation", + "viewHistory", + "conversationId", + ], + })({ store: n.$stores.main }), + X != null && + X.length && + (await Promise.all( + P.snippets + .filter((j) => j.source === "CODE") + .map(async (j) => { + n.$stores.snippets.add( + j.name, + await new Promise((J) => { + new Function( + "store", + "payload", + "callback", + j.content + )(n.$stores, P, J); + }) + ); + }) + )), + n.$routines.onEngagementLoad && + n.$routines.onEngagementLoad(n.$stores, P, n), + m.value && + ((e.value = !0), + ce.emit("Event:list", { + conversationId: m.value, + page: 1, + max: 10, + })), + c.value === "conversations" && + ((e.value = !0), + ce.emit("Conversation:list", { page: 1, max: 10 })), + P.settings.chatOnlyMode && (m.value ? q("chat") : x(!0)), + (E.value = !!P.settings.attachments); + } + }); + })); + }), + ce.on("Engagement:authenticate", (C) => { + (C != null && C.error) || + ((v.value = C), + Cn().$reset(), + An().$reset(), + (e.value = !1), + (m.value = null), + (i.value = !1), + q("main"), + (b.value = !1)); + }), + ce.on("Engagement:authenticated", (C) => { + const $ = !(C != null && C.error); + b.value = $; + }); + const Z = () => { + e.value = !1; + }, + se = () => { + e.value = !0; + }, + et = (C) => { + f.value = C; + }, + Ge = (C) => { + (o.value = C), localStorage.setItem("ivasUserId", C); + }, + ue = (C) => { + (a.value = C), localStorage.setItem("ivasUserToken", C); + }, + Pe = (C) => { + (l.value = C), localStorage.setItem("ivasWorkspaceId", C); + }, + ke = (C) => { + A.value = C; + }, + it = () => { + var $; + const C = os.v4(); + Ge(C), + ue(""), + M(null), + ($ = f.value) != null && $.chatOnlyMode ? x(!0) : q("main"), + Cn().$reset(), + An().$reset(), + (n.$socket.auth.userId = C), + (n.$socket.auth.userToken = ""), + n.$socket.disconnect(), + n.$socket.connect(); + }, + q = (C) => { + (c.value = C), rn(C); + }, + le = () => { + p.value = !1; + }, + Ee = () => { + p.value = !0; + }, + Ue = () => { + _.value = !0; + }, + Ae = () => { + _.value = !1; + }, + pn = (C) => { + d.value = C; + }, + rn = (C) => { + (u.value = u.value.slice(0, 1)), u.value.unshift(C); + }, + g = (C) => { + h.value = C; + }, + x = (C) => { + (i.value = C), C && q("chat"); + }, + M = (C) => { + m.value = C; + }; + Ve(m, (C) => { + C && ce.emit("Conversation:join", { _id: C }); + }), + Ve(c, (C) => { + (d.value = -1), + (C === "main" || C === "conversations") && + ((i.value = !1), (h.value = null), (m.value = null)); + }); + const N = () => { + m.value && + (($ = 1) => { + ce.emit("Event:list", { + conversationId: m.value, + page: $, + max: 10, + }); + })(1); + }; + return { + vm: n, + conversationId: m, + setNewConversation: x, + setNcPing: g, + viewHistory: u, + updateViewHistory: rn, + updateScrollTopPosition: pn, + scrollTopPosition: d, + hideMessenger: le, + showMessenger: Ee, + view: c, + setView: q, + userId: o, + userToken: a, + setUserId: Ge, + setUserToken: ue, + disconnected: r, + isLoading: e, + isConnected: t, + isAuthenticated: s, + isAuthIframeVisible: be, + settings: f, + setSettings: et, + hideLoader: Z, + showLoader: se, + newConversation: i, + ncPing: h, + isMessengerVisible: p, + setConversationId: M, + isCloseButtonVisible: K, + isFullscreen: ae, + isEngagementAuthenticated: b, + engagementAuthenticateDetails: v, + setNewUserSession: it, + workspaceId: l, + setWorkspaceId: Pe, + engagementId: S, + showLogs: k, + logs: O, + isMessengerDisabled: _, + disableMessengerInput: Ue, + enableMessengerInput: Ae, + areAttachmentsEnabled: E, + pendingAttachment: T, + setStorageUrl: ke, + storageUrl: A, + helpers: { + addScript: (C, $ = document.head, D) => { + const H = document.createElement("script"); + (H.type = "text/javascript"), + (H.src = C), + $.appendChild(H), + D && (H.onload = D); + }, + addStyleSheet: (C, $ = document.head, D) => { + const H = document.createElement("link"); + (H.type = "text/css"), + (H.href = C), + (H.rel = "stylesheet"), + $.appendChild(H), + D && (H.onload = D); + }, + addStyle: (C, $ = document.head) => { + const D = document.createElement("style"); + (D.innerHTML = C), $.appendChild(D); + }, + }, + branch: y, + syncMessages: N, + }; + }), + Rv = { + class: + "absolute inset-4 bg-white border border-solid border-black rounded z-50 p-5 overflow-auto text-sm", + }, + Pv = de({ + __name: "Log", + setup(n) { + const e = Ce(), + { logs: t, showLogs: r } = ve(e); + return (s, i) => ( + R(), + W("div", Rv, [ + oe( + "button", + { + class: "close-btn", + type: "button", + onClick: i[0] || (i[0] = (o) => (r.value = !1)), + }, + "Close" + ), + (R(!0), + W( + we, + null, + Jn( + I(t), + (o, a) => ( + R(), + W( + "div", + { + key: a, + class: + "border border-solid border-black mb-2 overflow-auto", + }, + He(o), + 1 + ) + ) + ), + 128 + )), + ]) + ); + }, + }), + uw = "", + Lv = { class: "overlay" }, + Dv = de({ + __name: "BaseLoader", + props: { size: { type: Number, default: 45 } }, + setup(n) { + const e = n, + t = Qe(() => ({ width: e.size + "px", height: e.size + "px" })); + return (r, s) => ( + R(), + W("div", Lv, [ + oe("span", { class: "spinner", style: On(t.value) }, null, 4), + ]) + ); + }, + }), + fw = "", + vt = (n, e) => { + const t = n.__vccOpts || n; + for (const [r, s] of e) t[r] = s; + return t; + }, + $l = vt(Dv, [["__scopeId", "data-v-4a03b304"]]), + hw = "", + Nv = {}, + Bv = { class: "btn" }; + function Fv(n, e) { + return R(), W("button", Bv, [ln(n.$slots, "default")]); + } + const ld = vt(Nv, [["render", Fv]]), + dw = "", + $v = {}, + Uv = { class: "card relative" }; + function Hv(n, e) { + return R(), W("div", Uv, [ln(n.$slots, "default")]); + } + const Ul = vt($v, [["render", Hv]]), + zv = {}, + Wv = { class: "p-5" }; + function Vv(n, e) { + return R(), W("div", Wv, [ln(n.$slots, "default")]); + } + const cd = vt(zv, [["render", Vv]]), + qv = {}, + jv = { class: "pt-5 px-5" }, + Yv = { class: "font-medium text-[16px] mb-1" }, + Kv = { class: "card-header-subtitle" }, + Xv = oe("div", null, null, -1); + function Gv(n, e) { + return ( + R(), + W("div", jv, [ + oe("div", Yv, [ln(n.$slots, "title")]), + oe("div", Kv, [ln(n.$slots, "subtitle")]), + Xv, + ln(n.$slots, "default"), + ]) + ); + } + const Hl = vt(qv, [["render", Gv]]), + Jv = { class: "h-full w-full p-3" }, + Zv = de({ + __name: "MessengerAuthentication", + setup(n) { + const e = Ce(), + { settings: t, userId: r, workspaceId: s, engagementId: i } = ve(e), + o = () => { + var p, _, d, m, v, b, E, T; + const a = + (_ = (p = t.value) == null ? void 0 : p.authentication) == null + ? void 0 + : _.realmName, + l = + (m = (d = t.value) == null ? void 0 : d.authentication) == null + ? void 0 + : m.clientId, + c = + (b = (v = t.value) == null ? void 0 : v.authentication) == null + ? void 0 + : b.idpHint, + u = new URL( + (T = (E = t.value) == null ? void 0 : E.authentication) == null + ? void 0 + : T.url + ), + f = new URLSearchParams(); + f.append("messenger_user_id", r.value), + f.append("messenger_workspace_id", s.value), + f.append("messenger_engagement_id", i.value), + f.append("messenger_realm_name", a), + f.append("messenger_client_id", l), + c && f.append("messenger_idp_hint", c); + const h = `${u}?${f.toString()}`; + window.open(h, "_blank"); + }; + return (a, l) => ( + R(), + W("div", Jv, [ + V( + Ul, + { class: "custom-card mb-3 overflow-hidden" }, + { + default: Te(() => [ + V( + Hl, + { class: "py-3" }, + { + title: Te(() => { + var c, u; + return [ + Qn( + He( + ((u = + (c = I(t)) == null + ? void 0 + : c.authentication) == null + ? void 0 + : u.title) || "Authentication Required" + ), + 1 + ), + ]; + }), + subtitle: Te(() => { + var c, u; + return [ + Qn( + He( + ((u = + (c = I(t)) == null + ? void 0 + : c.authentication) == null + ? void 0 + : u.subTitle) || + "Your organization requires you to authenticate to use this messenger." + ), + 1 + ), + ]; + }), + _: 1, + } + ), + V(cd, null, { + default: Te(() => [ + V( + ld, + { onClick: o }, + { default: Te(() => [Qn(" Login ")]), _: 1 } + ), + ]), + _: 1, + }), + ]), + _: 1, + } + ), + ]) + ); + }, + }); + function zl(n) { + "@babel/helpers - typeof"; + return ( + (zl = + typeof Symbol == "function" && typeof Symbol.iterator == "symbol" + ? function (e) { + return typeof e; + } + : function (e) { + return e && + typeof Symbol == "function" && + e.constructor === Symbol && + e !== Symbol.prototype + ? "symbol" + : typeof e; + }), + zl(n) + ); + } + function Qv(n) { + if (n === null || n === !0 || n === !1) return NaN; + var e = Number(n); + return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e); + } + function Dt(n, e) { + if (e.length < n) + throw new TypeError( + n + + " argument" + + (n > 1 ? "s" : "") + + " required, but only " + + e.length + + " present" + ); + } + function Xe(n) { + Dt(1, arguments); + var e = Object.prototype.toString.call(n); + return n instanceof Date || (zl(n) === "object" && e === "[object Date]") + ? new Date(n.getTime()) + : typeof n == "number" || e === "[object Number]" + ? new Date(n) + : ((typeof n == "string" || e === "[object String]") && + typeof console < "u" && + (console.warn( + "Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments" + ), + console.warn(new Error().stack)), + new Date(NaN)); + } + var e1 = {}; + function ud() { + return e1; + } + function vo(n) { + var e = new Date( + Date.UTC( + n.getFullYear(), + n.getMonth(), + n.getDate(), + n.getHours(), + n.getMinutes(), + n.getSeconds(), + n.getMilliseconds() + ) + ); + return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime(); + } + function Ys(n, e) { + Dt(2, arguments); + var t = Xe(n), + r = Xe(e), + s = t.getTime() - r.getTime(); + return s < 0 ? -1 : s > 0 ? 1 : s; + } + var fd = 6e4, + hd = 36e5; + function t1(n, e) { + Dt(2, arguments); + var t = Xe(n), + r = Xe(e), + s = t.getFullYear() - r.getFullYear(), + i = t.getMonth() - r.getMonth(); + return s * 12 + i; + } + function n1(n, e) { + return Dt(2, arguments), Xe(n).getTime() - Xe(e).getTime(); + } + var dd = { + ceil: Math.ceil, + round: Math.round, + floor: Math.floor, + trunc: function (e) { + return e < 0 ? Math.ceil(e) : Math.floor(e); + }, + }, + r1 = "trunc"; + function s1(n) { + return n ? dd[n] : dd[r1]; + } + function i1(n) { + Dt(1, arguments); + var e = Xe(n); + return e.setHours(23, 59, 59, 999), e; + } + function o1(n) { + Dt(1, arguments); + var e = Xe(n), + t = e.getMonth(); + return ( + e.setFullYear(e.getFullYear(), t + 1, 0), e.setHours(23, 59, 59, 999), e + ); + } + function a1(n) { + Dt(1, arguments); + var e = Xe(n); + return i1(e).getTime() === o1(e).getTime(); + } + function l1(n, e) { + Dt(2, arguments); + var t = Xe(n), + r = Xe(e), + s = Ys(t, r), + i = Math.abs(t1(t, r)), + o; + if (i < 1) o = 0; + else { + t.getMonth() === 1 && t.getDate() > 27 && t.setDate(30), + t.setMonth(t.getMonth() - s * i); + var a = Ys(t, r) === -s; + a1(Xe(n)) && i === 1 && Ys(n, r) === 1 && (a = !1), + (o = s * (i - Number(a))); + } + return o === 0 ? 0 : o; + } + function c1(n, e, t) { + Dt(2, arguments); + var r = n1(n, e) / 1e3; + return s1(t == null ? void 0 : t.roundingMethod)(r); + } + var u1 = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + xSeconds: { one: "1 second", other: "{{count}} seconds" }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + xMinutes: { one: "1 minute", other: "{{count}} minutes" }, + aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, + xHours: { one: "1 hour", other: "{{count}} hours" }, + xDays: { one: "1 day", other: "{{count}} days" }, + aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, + xWeeks: { one: "1 week", other: "{{count}} weeks" }, + aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, + xMonths: { one: "1 month", other: "{{count}} months" }, + aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, + xYears: { one: "1 year", other: "{{count}} years" }, + overXYears: { one: "over 1 year", other: "over {{count}} years" }, + almostXYears: { one: "almost 1 year", other: "almost {{count}} years" }, + }, + f1 = function (e, t, r) { + var s, + i = u1[e]; + return ( + typeof i == "string" + ? (s = i) + : t === 1 + ? (s = i.one) + : (s = i.other.replace("{{count}}", t.toString())), + r != null && r.addSuffix + ? r.comparison && r.comparison > 0 + ? "in " + s + : s + " ago" + : s + ); + }; + const h1 = f1; + function Wl(n) { + return function () { + var e = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, + t = e.width ? String(e.width) : n.defaultWidth, + r = n.formats[t] || n.formats[n.defaultWidth]; + return r; + }; + } + var d1 = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", + }, + p1 = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", + }, + m1 = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", + }, + _1 = { + date: Wl({ formats: d1, defaultWidth: "full" }), + time: Wl({ formats: p1, defaultWidth: "full" }), + dateTime: Wl({ formats: m1, defaultWidth: "full" }), + }; + const g1 = _1; + var v1 = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P", + }, + y1 = function (e, t, r, s) { + return v1[e]; + }; + const b1 = y1; + function Ks(n) { + return function (e, t) { + var r = t != null && t.context ? String(t.context) : "standalone", + s; + if (r === "formatting" && n.formattingValues) { + var i = n.defaultFormattingWidth || n.defaultWidth, + o = t != null && t.width ? String(t.width) : i; + s = n.formattingValues[o] || n.formattingValues[i]; + } else { + var a = n.defaultWidth, + l = t != null && t.width ? String(t.width) : n.defaultWidth; + s = n.values[l] || n.values[a]; + } + var c = n.argumentCallback ? n.argumentCallback(e) : e; + return s[c]; + }; + } + var w1 = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"], + }, + T1 = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"], + }, + x1 = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ], + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", + ], + }, + E1 = { + narrow: ["S", "M", "T", "W", "T", "F", "S"], + short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + ], + }, + S1 = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + }, + C1 = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + }, + A1 = function (e, t) { + var r = Number(e), + s = r % 100; + if (s > 20 || s < 10) + switch (s % 10) { + case 1: + return r + "st"; + case 2: + return r + "nd"; + case 3: + return r + "rd"; + } + return r + "th"; + }, + M1 = { + ordinalNumber: A1, + era: Ks({ values: w1, defaultWidth: "wide" }), + quarter: Ks({ + values: T1, + defaultWidth: "wide", + argumentCallback: function (e) { + return e - 1; + }, + }), + month: Ks({ values: x1, defaultWidth: "wide" }), + day: Ks({ values: E1, defaultWidth: "wide" }), + dayPeriod: Ks({ + values: S1, + defaultWidth: "wide", + formattingValues: C1, + defaultFormattingWidth: "wide", + }), + }; + const k1 = M1; + function Xs(n) { + return function (e) { + var t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + r = t.width, + s = (r && n.matchPatterns[r]) || n.matchPatterns[n.defaultMatchWidth], + i = e.match(s); + if (!i) return null; + var o = i[0], + a = (r && n.parsePatterns[r]) || n.parsePatterns[n.defaultParseWidth], + l = Array.isArray(a) + ? I1(a, function (f) { + return f.test(o); + }) + : O1(a, function (f) { + return f.test(o); + }), + c; + (c = n.valueCallback ? n.valueCallback(l) : l), + (c = t.valueCallback ? t.valueCallback(c) : c); + var u = e.slice(o.length); + return { value: c, rest: u }; + }; + } + function O1(n, e) { + for (var t in n) if (n.hasOwnProperty(t) && e(n[t])) return t; + } + function I1(n, e) { + for (var t = 0; t < n.length; t++) if (e(n[t])) return t; + } + function R1(n) { + return function (e) { + var t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + r = e.match(n.matchPattern); + if (!r) return null; + var s = r[0], + i = e.match(n.parsePattern); + if (!i) return null; + var o = n.valueCallback ? n.valueCallback(i[0]) : i[0]; + o = t.valueCallback ? t.valueCallback(o) : o; + var a = e.slice(s.length); + return { value: o, rest: a }; + }; + } + var P1 = /^(\d+)(th|st|nd|rd)?/i, + L1 = /\d+/i, + D1 = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i, + }, + N1 = { any: [/^b/i, /^(a|c)/i] }, + B1 = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i, + }, + F1 = { any: [/1/i, /2/i, /3/i, /4/i] }, + $1 = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i, + }, + U1 = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + }, + H1 = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i, + }, + z1 = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], + }, + W1 = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, + }, + V1 = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, + }, + q1 = { + ordinalNumber: R1({ + matchPattern: P1, + parsePattern: L1, + valueCallback: function (e) { + return parseInt(e, 10); + }, + }), + era: Xs({ + matchPatterns: D1, + defaultMatchWidth: "wide", + parsePatterns: N1, + defaultParseWidth: "any", + }), + quarter: Xs({ + matchPatterns: B1, + defaultMatchWidth: "wide", + parsePatterns: F1, + defaultParseWidth: "any", + valueCallback: function (e) { + return e + 1; + }, + }), + month: Xs({ + matchPatterns: $1, + defaultMatchWidth: "wide", + parsePatterns: U1, + defaultParseWidth: "any", + }), + day: Xs({ + matchPatterns: H1, + defaultMatchWidth: "wide", + parsePatterns: z1, + defaultParseWidth: "any", + }), + dayPeriod: Xs({ + matchPatterns: W1, + defaultMatchWidth: "any", + parsePatterns: V1, + defaultParseWidth: "any", + }), + }, + j1 = { + code: "en-US", + formatDistance: h1, + formatLong: g1, + formatRelative: b1, + localize: k1, + match: q1, + options: { weekStartsOn: 0, firstWeekContainsDate: 1 }, + }; + const pd = j1; + function Vl(n, e) { + if (n == null) + throw new TypeError( + "assign requires that input parameter not be null or undefined" + ); + for (var t in e) + Object.prototype.hasOwnProperty.call(e, t) && (n[t] = e[t]); + return n; + } + function md(n) { + return Vl({}, n); + } + var _d = 1440, + Y1 = 2520, + ql = 43200, + K1 = 86400; + function X1(n, e, t) { + var r, s; + Dt(2, arguments); + var i = ud(), + o = + (r = + (s = t == null ? void 0 : t.locale) !== null && s !== void 0 + ? s + : i.locale) !== null && r !== void 0 + ? r + : pd; + if (!o.formatDistance) + throw new RangeError("locale must contain formatDistance property"); + var a = Ys(n, e); + if (isNaN(a)) throw new RangeError("Invalid time value"); + var l = Vl(md(t), { + addSuffix: !!(t != null && t.addSuffix), + comparison: a, + }), + c, + u; + a > 0 ? ((c = Xe(e)), (u = Xe(n))) : ((c = Xe(n)), (u = Xe(e))); + var f = c1(u, c), + h = (vo(u) - vo(c)) / 1e3, + p = Math.round((f - h) / 60), + _; + if (p < 2) + return t != null && t.includeSeconds + ? f < 5 + ? o.formatDistance("lessThanXSeconds", 5, l) + : f < 10 + ? o.formatDistance("lessThanXSeconds", 10, l) + : f < 20 + ? o.formatDistance("lessThanXSeconds", 20, l) + : f < 40 + ? o.formatDistance("halfAMinute", 0, l) + : f < 60 + ? o.formatDistance("lessThanXMinutes", 1, l) + : o.formatDistance("xMinutes", 1, l) + : p === 0 + ? o.formatDistance("lessThanXMinutes", 1, l) + : o.formatDistance("xMinutes", p, l); + if (p < 45) return o.formatDistance("xMinutes", p, l); + if (p < 90) return o.formatDistance("aboutXHours", 1, l); + if (p < _d) { + var d = Math.round(p / 60); + return o.formatDistance("aboutXHours", d, l); + } else { + if (p < Y1) return o.formatDistance("xDays", 1, l); + if (p < ql) { + var m = Math.round(p / _d); + return o.formatDistance("xDays", m, l); + } else if (p < K1) + return (_ = Math.round(p / ql)), o.formatDistance("aboutXMonths", _, l); + } + if (((_ = l1(u, c)), _ < 12)) { + var v = Math.round(p / ql); + return o.formatDistance("xMonths", v, l); + } else { + var b = _ % 12, + E = Math.floor(_ / 12); + return b < 3 + ? o.formatDistance("aboutXYears", E, l) + : b < 9 + ? o.formatDistance("overXYears", E, l) + : o.formatDistance("almostXYears", E + 1, l); + } + } + var gd = 1e3 * 60, + yo = 60 * 24, + vd = yo * 30, + yd = yo * 365; + function G1(n, e, t) { + var r, s, i; + Dt(2, arguments); + var o = ud(), + a = + (r = + (s = t == null ? void 0 : t.locale) !== null && s !== void 0 + ? s + : o.locale) !== null && r !== void 0 + ? r + : pd; + if (!a.formatDistance) + throw new RangeError( + "locale must contain localize.formatDistance property" + ); + var l = Ys(n, e); + if (isNaN(l)) throw new RangeError("Invalid time value"); + var c = Vl(md(t), { + addSuffix: !!(t != null && t.addSuffix), + comparison: l, + }), + u, + f; + l > 0 ? ((u = Xe(e)), (f = Xe(n))) : ((u = Xe(n)), (f = Xe(e))); + var h = String( + (i = t == null ? void 0 : t.roundingMethod) !== null && i !== void 0 + ? i + : "round" + ), + p; + if (h === "floor") p = Math.floor; + else if (h === "ceil") p = Math.ceil; + else if (h === "round") p = Math.round; + else + throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'"); + var _ = f.getTime() - u.getTime(), + d = _ / gd, + m = vo(f) - vo(u), + v = (_ - m) / gd, + b = t == null ? void 0 : t.unit, + E; + if ( + (b + ? (E = String(b)) + : d < 1 + ? (E = "second") + : d < 60 + ? (E = "minute") + : d < yo + ? (E = "hour") + : v < vd + ? (E = "day") + : v < yd + ? (E = "month") + : (E = "year"), + E === "second") + ) { + var T = p(_ / 1e3); + return a.formatDistance("xSeconds", T, c); + } else if (E === "minute") { + var S = p(d); + return a.formatDistance("xMinutes", S, c); + } else if (E === "hour") { + var k = p(d / 60); + return a.formatDistance("xHours", k, c); + } else if (E === "day") { + var O = p(v / yo); + return a.formatDistance("xDays", O, c); + } else if (E === "month") { + var A = p(v / vd); + return A === 12 && b !== "month" + ? a.formatDistance("xYears", 1, c) + : a.formatDistance("xMonths", A, c); + } else if (E === "year") { + var y = p(v / yd); + return a.formatDistance("xYears", y, c); + } + throw new RangeError( + "unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'" + ); + } + function J1(n, e) { + return Dt(1, arguments), X1(n, Date.now(), e); + } + function Z1(n, e) { + return Dt(1, arguments), G1(n, Date.now(), e); + } + function Q1(n, e) { + var t; + Dt(1, arguments); + var r = Qv( + (t = e == null ? void 0 : e.additionalDigits) !== null && t !== void 0 + ? t + : 2 + ); + if (r !== 2 && r !== 1 && r !== 0) + throw new RangeError("additionalDigits must be 0, 1 or 2"); + if ( + !( + typeof n == "string" || + Object.prototype.toString.call(n) === "[object String]" + ) + ) + return new Date(NaN); + var s = ry(n), + i; + if (s.date) { + var o = sy(s.date, r); + i = iy(o.restDateString, o.year); + } + if (!i || isNaN(i.getTime())) return new Date(NaN); + var a = i.getTime(), + l = 0, + c; + if (s.time && ((l = oy(s.time)), isNaN(l))) return new Date(NaN); + if (s.timezone) { + if (((c = ay(s.timezone)), isNaN(c))) return new Date(NaN); + } else { + var u = new Date(a + l), + f = new Date(0); + return ( + f.setFullYear(u.getUTCFullYear(), u.getUTCMonth(), u.getUTCDate()), + f.setHours( + u.getUTCHours(), + u.getUTCMinutes(), + u.getUTCSeconds(), + u.getUTCMilliseconds() + ), + f + ); + } + return new Date(a + l + c); + } + var bo = { + dateTimeDelimiter: /[T ]/, + timeZoneDelimiter: /[Z ]/i, + timezone: /([Z+-].*)$/, + }, + ey = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, + ty = + /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, + ny = /^([+-])(\d{2})(?::?(\d{2}))?$/; + function ry(n) { + var e = {}, + t = n.split(bo.dateTimeDelimiter), + r; + if (t.length > 2) return e; + if ( + (/:/.test(t[0]) + ? (r = t[0]) + : ((e.date = t[0]), + (r = t[1]), + bo.timeZoneDelimiter.test(e.date) && + ((e.date = n.split(bo.timeZoneDelimiter)[0]), + (r = n.substr(e.date.length, n.length)))), + r) + ) { + var s = bo.timezone.exec(r); + s ? ((e.time = r.replace(s[1], "")), (e.timezone = s[1])) : (e.time = r); + } + return e; + } + function sy(n, e) { + var t = new RegExp( + "^(?:(\\d{4}|[+-]\\d{" + + (4 + e) + + "})|(\\d{2}|[+-]\\d{" + + (2 + e) + + "})$)" + ), + r = n.match(t); + if (!r) return { year: NaN, restDateString: "" }; + var s = r[1] ? parseInt(r[1]) : null, + i = r[2] ? parseInt(r[2]) : null; + return { + year: i === null ? s : i * 100, + restDateString: n.slice((r[1] || r[2]).length), + }; + } + function iy(n, e) { + if (e === null) return new Date(NaN); + var t = n.match(ey); + if (!t) return new Date(NaN); + var r = !!t[4], + s = Gs(t[1]), + i = Gs(t[2]) - 1, + o = Gs(t[3]), + a = Gs(t[4]), + l = Gs(t[5]) - 1; + if (r) return hy(e, a, l) ? ly(e, a, l) : new Date(NaN); + var c = new Date(0); + return !uy(e, i, o) || !fy(e, s) + ? new Date(NaN) + : (c.setUTCFullYear(e, i, Math.max(s, o)), c); + } + function Gs(n) { + return n ? parseInt(n) : 1; + } + function oy(n) { + var e = n.match(ty); + if (!e) return NaN; + var t = jl(e[1]), + r = jl(e[2]), + s = jl(e[3]); + return dy(t, r, s) ? t * hd + r * fd + s * 1e3 : NaN; + } + function jl(n) { + return (n && parseFloat(n.replace(",", "."))) || 0; + } + function ay(n) { + if (n === "Z") return 0; + var e = n.match(ny); + if (!e) return 0; + var t = e[1] === "+" ? -1 : 1, + r = parseInt(e[2]), + s = (e[3] && parseInt(e[3])) || 0; + return py(r, s) ? t * (r * hd + s * fd) : NaN; + } + function ly(n, e, t) { + var r = new Date(0); + r.setUTCFullYear(n, 0, 4); + var s = r.getUTCDay() || 7, + i = (e - 1) * 7 + t + 1 - s; + return r.setUTCDate(r.getUTCDate() + i), r; + } + var cy = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + function bd(n) { + return n % 400 === 0 || (n % 4 === 0 && n % 100 !== 0); + } + function uy(n, e, t) { + return e >= 0 && e <= 11 && t >= 1 && t <= (cy[e] || (bd(n) ? 29 : 28)); + } + function fy(n, e) { + return e >= 1 && e <= (bd(n) ? 366 : 365); + } + function hy(n, e, t) { + return e >= 1 && e <= 53 && t >= 0 && t <= 6; + } + function dy(n, e, t) { + return n === 24 + ? e === 0 && t === 0 + : t >= 0 && t < 60 && e >= 0 && e < 60 && n >= 0 && n < 25; + } + function py(n, e) { + return e >= 0 && e <= 59; + } + const wd = (n, e = {}, t) => ( + typeof n == "string" && (n = Q1(n)), + e.useStrict + ? Z1(n, { + addSuffix: e.addSuffix ?? !0, + locale: t, + unit: e.unit, + roundingMethod: e.roundingMethod, + }) + : J1(n, { + includeSeconds: e.includeSeconds, + addSuffix: e.addSuffix ?? !0, + locale: t, + }) + ), + Td = { + mounted: (n, e) => { + const t = n.closest(".app"), + r = document.createElement("div"); + r.classList.add("tootlip"), (n.dataset.tooltipText = e.value); + let s; + const i = () => { + (r.innerText = n.dataset.tooltipText), t.append(r); + const a = n.getBoundingClientRect(), + l = t.getBoundingClientRect(), + c = r.getBoundingClientRect(), + u = { + left: Math.round(a.left + a.width / 2 - l.left - c.width / 2), + top: Math.round(a.top + a.height - l.top + 2), + }; + (r.style.left = (u.left <= 5 ? 5 : u.left) + "px"), + (r.style.top = u.top + "px"); + }, + o = e.dir; + (o._mouseover = () => { + clearTimeout(s), (s = setTimeout(i, 300)); + }), + (o._mouseleave = () => { + clearTimeout(s), r.remove(); + }), + n.addEventListener("mouseover", o._mouseover), + n.addEventListener("mouseleave", o._mouseleave); + }, + beforeUnmount(n, e) { + const t = e.dir; + t._mouseleave(), + n.removeEventListener("mouseover", t._mouseover), + n.removeEventListener("mouseleave", t._mouseleave); + }, + updated(n, e) { + n.dataset.tooltipText = e.value; + }, + }; + function Js(n, e, t) { + return parseInt(n.substr(e, t), 16); + } + function xd(n) { + return ( + (n |= 0), + n < 0 + ? "00" + : n < 16 + ? "0" + n.toString(16) + : n < 256 + ? n.toString(16) + : "ff" + ); + } + function Yl(n, e, t) { + return ( + (t = t < 0 ? t + 6 : t > 6 ? t - 6 : t), + xd( + 255 * + (t < 1 + ? n + (e - n) * t + : t < 3 + ? e + : t < 4 + ? n + (e - n) * (4 - t) + : n) + ) + ); + } + function my(n) { + if (/^#[0-9a-f]{3,8}$/i.test(n)) { + let e; + const t = n.length; + if (t < 6) { + const r = n[1], + s = n[2], + i = n[3], + o = n[4] || ""; + e = "#" + r + r + s + s + i + i + o + o; + } + return (t == 7 || t > 8) && (e = n), e; + } + } + function _y(n, e, t) { + let r; + if (e == 0) { + const s = xd(t * 255); + r = s + s + s; + } else { + const s = t <= 0.5 ? t * (e + 1) : t + e - t * e, + i = t * 2 - s; + r = Yl(i, s, n * 6 + 2) + Yl(i, s, n * 6) + Yl(i, s, n * 6 - 2); + } + return "#" + r; + } + function Zs(n, e, t) { + const r = [0.55, 0.5, 0.5, 0.46, 0.6, 0.55, 0.55], + s = r[(n * 6 + 0.5) | 0]; + return (t = t < 0.5 ? t * s * 2 : s + (t - 0.5) * (1 - s) * 2), _y(n, e, t); + } + const gy = + typeof window < "u" + ? window + : typeof self < "u" + ? self + : typeof global < "u" + ? global + : {}, + wo = { V: "jdenticon_config", n: "config" }; + var Kl = {}; + function vy(n) { + return arguments.length && (Kl[wo.n] = n), Kl[wo.n]; + } + function yy(n, e) { + const t = (typeof n == "object" && n) || Kl[wo.n] || gy[wo.V] || {}, + r = t.lightness || {}, + s = t.saturation || {}, + i = "color" in s ? s.color : s, + o = s.grayscale, + a = t.backColor, + l = t.padding; + function c(f, h) { + let p = r[f]; + return ( + (p && p.length > 1) || (p = h), + function (_) { + return (_ = p[0] + _ * (p[1] - p[0])), _ < 0 ? 0 : _ > 1 ? 1 : _; + } + ); + } + function u(f) { + const h = t.hues; + let p; + return ( + h && h.length > 0 && (p = h[0 | (0.999 * f * h.length)]), + typeof p == "number" ? (((p / 360) % 1) + 1) % 1 : f + ); + } + return { + W: u, + o: typeof i == "number" ? i : 0.5, + D: typeof o == "number" ? o : 0, + p: c("color", [0.4, 0.8]), + F: c("grayscale", [0.3, 0.9]), + G: my(a), + X: typeof n == "number" ? n : typeof l == "number" ? l : e, + }; + } + class To { + constructor(e, t) { + (this.x = e), (this.y = t); + } + } + class Ed { + constructor(e, t, r, s) { + (this.q = e), (this.t = t), (this.H = r), (this.Y = s); + } + I(e, t, r, s) { + const i = this.q + this.H, + o = this.t + this.H, + a = this.Y; + return a === 1 + ? new To(i - t - (s || 0), this.t + e) + : a === 2 + ? new To(i - e - (r || 0), o - t - (s || 0)) + : a === 3 + ? new To(this.q + t, o - e - (r || 0)) + : new To(this.q + e, this.t + t); + } + } + const by = new Ed(0, 0, 0, 0); + class wy { + constructor(e) { + (this.J = e), (this.u = by); + } + g(e, t) { + const r = t ? -2 : 2, + s = []; + for (let i = t ? e.length - 2 : 0; i < e.length && i >= 0; i += r) + s.push(this.u.I(e[i], e[i + 1])); + this.J.g(s); + } + h(e, t, r, s) { + const i = this.u.I(e, t, r, r); + this.J.h(i, r, s); + } + i(e, t, r, s, i) { + this.g([e, t, e + r, t, e + r, t + s, e, t + s], i); + } + j(e, t, r, s, i, o) { + const a = [e + r, t, e + r, t + s, e, t + s, e, t]; + a.splice(((i || 0) % 4) * 2, 2), this.g(a, o); + } + K(e, t, r, s, i) { + this.g( + [e + r / 2, t, e + r, t + s / 2, e + r / 2, t + s, e, t + s / 2], + i + ); + } + } + function Ty(n, e, t, r) { + n = n % 14; + let s, i, o, a, l, c; + n + ? n == 1 + ? ((o = 0 | (t * 0.5)), (a = 0 | (t * 0.8)), e.j(t - o, 0, o, a, 2)) + : n == 2 + ? ((o = 0 | (t / 3)), e.i(o, o, t - o, t - o)) + : n == 3 + ? ((l = t * 0.1), + (c = t < 6 ? 1 : t < 8 ? 2 : 0 | (t * 0.25)), + (l = l > 1 ? 0 | l : l > 0.5 ? 1 : l), + e.i(c, c, t - l - c, t - l - c)) + : n == 4 + ? ((i = 0 | (t * 0.15)), + (o = 0 | (t * 0.5)), + e.h(t - o - i, t - o - i, o)) + : n == 5 + ? ((l = t * 0.1), + (c = l * 4), + c > 3 && (c = 0 | c), + e.i(0, 0, t, t), + e.g([c, c, t - l, c, c + (t - c - l) / 2, t - l], !0)) + : n == 6 + ? e.g([0, 0, t, 0, t, t * 0.7, t * 0.4, t * 0.4, t * 0.7, t, 0, t]) + : n == 7 + ? e.j(t / 2, t / 2, t / 2, t / 2, 3) + : n == 8 + ? (e.i(0, 0, t, t / 2), + e.i(0, t / 2, t / 2, t / 2), + e.j(t / 2, t / 2, t / 2, t / 2, 1)) + : n == 9 + ? ((l = t * 0.14), + (c = t < 4 ? 1 : t < 6 ? 2 : 0 | (t * 0.35)), + (l = t < 8 ? l : 0 | l), + e.i(0, 0, t, t), + e.i(c, c, t - c - l, t - c - l, !0)) + : n == 10 + ? ((l = t * 0.12), + (c = l * 3), + e.i(0, 0, t, t), + e.h(c, c, t - l - c, !0)) + : n == 11 + ? e.j(t / 2, t / 2, t / 2, t / 2, 3) + : n == 12 + ? ((i = t * 0.25), e.i(0, 0, t, t), e.K(i, i, t - i, t - i, !0)) + : !r && ((i = t * 0.4), (o = t * 1.2), e.h(i, i, o)) + : ((s = t * 0.42), e.g([0, 0, t, 0, t, t - s * 2, t - s, t, 0, t])); + } + function Sd(n, e, t) { + n = n % 4; + let r; + n + ? n == 1 + ? e.j(0, t / 2, t, t / 2, 0) + : n == 2 + ? e.K(0, 0, t, t) + : ((r = t / 6), e.h(r, r, t - 2 * r)) + : e.j(0, 0, t, t, 0); + } + function xy(n, e) { + return ( + (n = e.W(n)), + [ + Zs(n, e.D, e.F(0)), + Zs(n, e.o, e.p(0.5)), + Zs(n, e.D, e.F(1)), + Zs(n, e.o, e.p(1)), + Zs(n, e.o, e.p(0)), + ] + ); + } + function Ey(n, e, t) { + const r = yy(t, 0.08); + r.G && n.m(r.G); + let s = n.k; + const i = (0.5 + s * r.X) | 0; + s -= i * 2; + const o = new wy(n), + a = 0 | (s / 4), + l = 0 | (i + s / 2 - a * 2), + c = 0 | (i + s / 2 - a * 2); + function u(m, v, b, E, T) { + const S = Js(e, b, 1); + let k = E ? Js(e, E, 1) : 0; + n.L(h[p[m]]); + for (let O = 0; O < T.length; O++) + (o.u = new Ed(l + T[O][0] * a, c + T[O][1] * a, a, k++ % 4)), + v(S, o, a, O); + n.M(); + } + const f = Js(e, -7) / 268435455, + h = xy(f, r), + p = []; + let _; + function d(m) { + if (m.indexOf(_) >= 0) { + for (let v = 0; v < m.length; v++) if (p.indexOf(m[v]) >= 0) return !0; + } + } + for (let m = 0; m < 3; m++) + (_ = Js(e, 8 + m, 1) % h.length), + (d([0, 4]) || d([2, 3])) && (_ = 1), + p.push(_); + u(0, Sd, 2, 3, [ + [1, 0], + [2, 0], + [2, 3], + [1, 3], + [0, 1], + [3, 1], + [3, 2], + [0, 2], + ]), + u(1, Sd, 4, 5, [ + [0, 0], + [3, 0], + [3, 3], + [0, 3], + ]), + u(2, Ty, 1, null, [ + [1, 1], + [2, 1], + [2, 2], + [1, 2], + ]), + n.finish(); + } + function Sy(n) { + var r = 0, + s = 0, + i = encodeURI(n) + "%80", + o = [], + a, + l = [], + c = 1732584193, + u = 4023233417, + f = ~c, + h = ~u, + p = 3285377520, + _ = [c, u, f, h, p], + d = 0, + m = ""; + function v(b, E) { + return (b << E) | (b >>> (32 - E)); + } + for (; r < i.length; s++) + o[s >> 2] = + o[s >> 2] | + ((i[r] == "%" + ? parseInt(i.substring(r + 1, (r += 3)), 16) + : i.charCodeAt(r++)) << + ((3 - (s & 3)) * 8)); + for (a = (((s + 7) >> 6) + 1) * 16, o[a - 1] = s * 8 - 8; d < a; d += 16) { + for (r = 0; r < 80; r++) + (s = + v(c, 5) + + p + + (r < 20 + ? ((u & f) ^ (~u & h)) + 1518500249 + : r < 40 + ? (u ^ f ^ h) + 1859775393 + : r < 60 + ? ((u & f) ^ (u & h) ^ (f & h)) + 2400959708 + : (u ^ f ^ h) + 3395469782) + + (l[r] = + r < 16 + ? o[d + r] | 0 + : v(l[r - 3] ^ l[r - 8] ^ l[r - 14] ^ l[r - 16], 1))), + (p = h), + (h = f), + (f = v(u, 30)), + (u = c), + (c = s); + (_[0] = c = (_[0] + c) | 0), + (_[1] = u = (_[1] + u) | 0), + (_[2] = f = (_[2] + f) | 0), + (_[3] = h = (_[3] + h) | 0), + (_[4] = p = (_[4] + p) | 0); + } + for (r = 0; r < 40; r++) + m += ((_[r >> 3] >>> ((7 - (r & 7)) * 4)) & 15).toString(16); + return m; + } + function Cy(n) { + return /^[0-9a-f]{11,}$/i.test(n) && n; + } + function Ay(n) { + return Sy(n == null ? "" : "" + n); + } + typeof document < "u" && document.querySelectorAll.bind(document); + function as(n) { + return ((n * 10 + 0.5) | 0) / 10; + } + class My { + constructor() { + this.v = ""; + } + g(e) { + let t = ""; + for (let r = 0; r < e.length; r++) + t += (r ? "L" : "M") + as(e[r].x) + " " + as(e[r].y); + this.v += t + "Z"; + } + h(e, t, r) { + const s = r ? 0 : 1, + i = as(t / 2), + o = as(t), + a = "a" + i + "," + i + " 0 1," + s + " "; + this.v += + "M" + as(e.x) + " " + as(e.y + t / 2) + a + o + ",0" + a + -o + ",0"; + } + } + class ky { + constructor(e) { + this.A, (this.B = {}), (this.O = e), (this.k = e.k); + } + m(e) { + const t = /^(#......)(..)?/.exec(e), + r = t[2] ? Js(t[2], 0) / 255 : 1; + this.O.m(t[1], r); + } + L(e) { + this.A = this.B[e] || (this.B[e] = new My()); + } + M() {} + g(e) { + this.A.g(e); + } + h(e, t, r) { + this.A.h(e, t, r); + } + finish() { + const e = this.B; + for (let t in e) e.hasOwnProperty(t) && this.O.P(t, e[t].v); + } + } + const Oy = { R: "http://www.w3.org/2000/svg", S: "width", T: "height" }; + class Iy { + constructor(e) { + (this.k = e), + (this.C = + ''); + } + m(e, t) { + t && + (this.C += + ''); + } + P(e, t) { + this.C += ''; + } + toString() { + return this.C + ""; + } + } + function Ry(n, e, t) { + const r = new Iy(e); + return Ey(new ky(r), Cy(n) || Ay(n), t), r.toString(); + } + /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */ const { + entries: Cd, + setPrototypeOf: Ad, + isFrozen: Py, + getPrototypeOf: Ly, + getOwnPropertyDescriptor: Dy, + } = Object; + let { freeze: Et, seal: nn, create: Md } = Object, + { apply: Xl, construct: Gl } = typeof Reflect < "u" && Reflect; + Et || + (Et = function (e) { + return e; + }), + nn || + (nn = function (e) { + return e; + }), + Xl || + (Xl = function (e, t, r) { + return e.apply(t, r); + }), + Gl || + (Gl = function (e, t) { + return new e(...t); + }); + const xo = Ct(Array.prototype.forEach), + Ny = Ct(Array.prototype.lastIndexOf), + kd = Ct(Array.prototype.pop), + Qs = Ct(Array.prototype.push), + By = Ct(Array.prototype.splice), + Eo = Ct(String.prototype.toLowerCase), + Jl = Ct(String.prototype.toString), + Od = Ct(String.prototype.match), + ei = Ct(String.prototype.replace), + Fy = Ct(String.prototype.indexOf), + $y = Ct(String.prototype.trim), + dn = Ct(Object.prototype.hasOwnProperty), + St = Ct(RegExp.prototype.test), + ti = Uy(TypeError); + function Ct(n) { + return function (e) { + e instanceof RegExp && (e.lastIndex = 0); + for ( + var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), s = 1; + s < t; + s++ + ) + r[s - 1] = arguments[s]; + return Xl(n, e, r); + }; + } + function Uy(n) { + return function () { + for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) + t[r] = arguments[r]; + return Gl(n, t); + }; + } + function fe(n, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Eo; + Ad && Ad(n, null); + let r = e.length; + for (; r--; ) { + let s = e[r]; + if (typeof s == "string") { + const i = t(s); + i !== s && (Py(e) || (e[r] = i), (s = i)); + } + n[s] = !0; + } + return n; + } + function Hy(n) { + for (let e = 0; e < n.length; e++) dn(n, e) || (n[e] = null); + return n; + } + function Hn(n) { + const e = Md(null); + for (const [t, r] of Cd(n)) + dn(n, t) && + (Array.isArray(r) + ? (e[t] = Hy(r)) + : r && typeof r == "object" && r.constructor === Object + ? (e[t] = Hn(r)) + : (e[t] = r)); + return e; + } + function ni(n, e) { + for (; n !== null; ) { + const r = Dy(n, e); + if (r) { + if (r.get) return Ct(r.get); + if (typeof r.value == "function") return Ct(r.value); + } + n = Ly(n); + } + function t() { + return null; + } + return t; + } + const Id = Et([ + "a", + "abbr", + "acronym", + "address", + "area", + "article", + "aside", + "audio", + "b", + "bdi", + "bdo", + "big", + "blink", + "blockquote", + "body", + "br", + "button", + "canvas", + "caption", + "center", + "cite", + "code", + "col", + "colgroup", + "content", + "data", + "datalist", + "dd", + "decorator", + "del", + "details", + "dfn", + "dialog", + "dir", + "div", + "dl", + "dt", + "element", + "em", + "fieldset", + "figcaption", + "figure", + "font", + "footer", + "form", + "h1", + "h2", + "h3", + "h4", + "h5", + "h6", + "head", + "header", + "hgroup", + "hr", + "html", + "i", + "img", + "input", + "ins", + "kbd", + "label", + "legend", + "li", + "main", + "map", + "mark", + "marquee", + "menu", + "menuitem", + "meter", + "nav", + "nobr", + "ol", + "optgroup", + "option", + "output", + "p", + "picture", + "pre", + "progress", + "q", + "rp", + "rt", + "ruby", + "s", + "samp", + "section", + "select", + "shadow", + "small", + "source", + "spacer", + "span", + "strike", + "strong", + "style", + "sub", + "summary", + "sup", + "table", + "tbody", + "td", + "template", + "textarea", + "tfoot", + "th", + "thead", + "time", + "tr", + "track", + "tt", + "u", + "ul", + "var", + "video", + "wbr", + ]), + Zl = Et([ + "svg", + "a", + "altglyph", + "altglyphdef", + "altglyphitem", + "animatecolor", + "animatemotion", + "animatetransform", + "circle", + "clippath", + "defs", + "desc", + "ellipse", + "filter", + "font", + "g", + "glyph", + "glyphref", + "hkern", + "image", + "line", + "lineargradient", + "marker", + "mask", + "metadata", + "mpath", + "path", + "pattern", + "polygon", + "polyline", + "radialgradient", + "rect", + "stop", + "style", + "switch", + "symbol", + "text", + "textpath", + "title", + "tref", + "tspan", + "view", + "vkern", + ]), + Ql = Et([ + "feBlend", + "feColorMatrix", + "feComponentTransfer", + "feComposite", + "feConvolveMatrix", + "feDiffuseLighting", + "feDisplacementMap", + "feDistantLight", + "feDropShadow", + "feFlood", + "feFuncA", + "feFuncB", + "feFuncG", + "feFuncR", + "feGaussianBlur", + "feImage", + "feMerge", + "feMergeNode", + "feMorphology", + "feOffset", + "fePointLight", + "feSpecularLighting", + "feSpotLight", + "feTile", + "feTurbulence", + ]), + zy = Et([ + "animate", + "color-profile", + "cursor", + "discard", + "font-face", + "font-face-format", + "font-face-name", + "font-face-src", + "font-face-uri", + "foreignobject", + "hatch", + "hatchpath", + "mesh", + "meshgradient", + "meshpatch", + "meshrow", + "missing-glyph", + "script", + "set", + "solidcolor", + "unknown", + "use", + ]), + ec = Et([ + "math", + "menclose", + "merror", + "mfenced", + "mfrac", + "mglyph", + "mi", + "mlabeledtr", + "mmultiscripts", + "mn", + "mo", + "mover", + "mpadded", + "mphantom", + "mroot", + "mrow", + "ms", + "mspace", + "msqrt", + "mstyle", + "msub", + "msup", + "msubsup", + "mtable", + "mtd", + "mtext", + "mtr", + "munder", + "munderover", + "mprescripts", + ]), + Wy = Et([ + "maction", + "maligngroup", + "malignmark", + "mlongdiv", + "mscarries", + "mscarry", + "msgroup", + "mstack", + "msline", + "msrow", + "semantics", + "annotation", + "annotation-xml", + "mprescripts", + "none", + ]), + Rd = Et(["#text"]), + Pd = Et([ + "accept", + "action", + "align", + "alt", + "autocapitalize", + "autocomplete", + "autopictureinpicture", + "autoplay", + "background", + "bgcolor", + "border", + "capture", + "cellpadding", + "cellspacing", + "checked", + "cite", + "class", + "clear", + "color", + "cols", + "colspan", + "controls", + "controlslist", + "coords", + "crossorigin", + "datetime", + "decoding", + "default", + "dir", + "disabled", + "disablepictureinpicture", + "disableremoteplayback", + "download", + "draggable", + "enctype", + "enterkeyhint", + "face", + "for", + "headers", + "height", + "hidden", + "high", + "href", + "hreflang", + "id", + "inputmode", + "integrity", + "ismap", + "kind", + "label", + "lang", + "list", + "loading", + "loop", + "low", + "max", + "maxlength", + "media", + "method", + "min", + "minlength", + "multiple", + "muted", + "name", + "nonce", + "noshade", + "novalidate", + "nowrap", + "open", + "optimum", + "pattern", + "placeholder", + "playsinline", + "popover", + "popovertarget", + "popovertargetaction", + "poster", + "preload", + "pubdate", + "radiogroup", + "readonly", + "rel", + "required", + "rev", + "reversed", + "role", + "rows", + "rowspan", + "spellcheck", + "scope", + "selected", + "shape", + "size", + "sizes", + "span", + "srclang", + "start", + "src", + "srcset", + "step", + "style", + "summary", + "tabindex", + "title", + "translate", + "type", + "usemap", + "valign", + "value", + "width", + "wrap", + "xmlns", + "slot", + ]), + tc = Et([ + "accent-height", + "accumulate", + "additive", + "alignment-baseline", + "amplitude", + "ascent", + "attributename", + "attributetype", + "azimuth", + "basefrequency", + "baseline-shift", + "begin", + "bias", + "by", + "class", + "clip", + "clippathunits", + "clip-path", + "clip-rule", + "color", + "color-interpolation", + "color-interpolation-filters", + "color-profile", + "color-rendering", + "cx", + "cy", + "d", + "dx", + "dy", + "diffuseconstant", + "direction", + "display", + "divisor", + "dur", + "edgemode", + "elevation", + "end", + "exponent", + "fill", + "fill-opacity", + "fill-rule", + "filter", + "filterunits", + "flood-color", + "flood-opacity", + "font-family", + "font-size", + "font-size-adjust", + "font-stretch", + "font-style", + "font-variant", + "font-weight", + "fx", + "fy", + "g1", + "g2", + "glyph-name", + "glyphref", + "gradientunits", + "gradienttransform", + "height", + "href", + "id", + "image-rendering", + "in", + "in2", + "intercept", + "k", + "k1", + "k2", + "k3", + "k4", + "kerning", + "keypoints", + "keysplines", + "keytimes", + "lang", + "lengthadjust", + "letter-spacing", + "kernelmatrix", + "kernelunitlength", + "lighting-color", + "local", + "marker-end", + "marker-mid", + "marker-start", + "markerheight", + "markerunits", + "markerwidth", + "maskcontentunits", + "maskunits", + "max", + "mask", + "media", + "method", + "mode", + "min", + "name", + "numoctaves", + "offset", + "operator", + "opacity", + "order", + "orient", + "orientation", + "origin", + "overflow", + "paint-order", + "path", + "pathlength", + "patterncontentunits", + "patterntransform", + "patternunits", + "points", + "preservealpha", + "preserveaspectratio", + "primitiveunits", + "r", + "rx", + "ry", + "radius", + "refx", + "refy", + "repeatcount", + "repeatdur", + "restart", + "result", + "rotate", + "scale", + "seed", + "shape-rendering", + "slope", + "specularconstant", + "specularexponent", + "spreadmethod", + "startoffset", + "stddeviation", + "stitchtiles", + "stop-color", + "stop-opacity", + "stroke-dasharray", + "stroke-dashoffset", + "stroke-linecap", + "stroke-linejoin", + "stroke-miterlimit", + "stroke-opacity", + "stroke", + "stroke-width", + "style", + "surfacescale", + "systemlanguage", + "tabindex", + "tablevalues", + "targetx", + "targety", + "transform", + "transform-origin", + "text-anchor", + "text-decoration", + "text-rendering", + "textlength", + "type", + "u1", + "u2", + "unicode", + "values", + "viewbox", + "visibility", + "version", + "vert-adv-y", + "vert-origin-x", + "vert-origin-y", + "width", + "word-spacing", + "wrap", + "writing-mode", + "xchannelselector", + "ychannelselector", + "x", + "x1", + "x2", + "xmlns", + "y", + "y1", + "y2", + "z", + "zoomandpan", + ]), + Ld = Et([ + "accent", + "accentunder", + "align", + "bevelled", + "close", + "columnsalign", + "columnlines", + "columnspan", + "denomalign", + "depth", + "dir", + "display", + "displaystyle", + "encoding", + "fence", + "frame", + "height", + "href", + "id", + "largeop", + "length", + "linethickness", + "lspace", + "lquote", + "mathbackground", + "mathcolor", + "mathsize", + "mathvariant", + "maxsize", + "minsize", + "movablelimits", + "notation", + "numalign", + "open", + "rowalign", + "rowlines", + "rowspacing", + "rowspan", + "rspace", + "rquote", + "scriptlevel", + "scriptminsize", + "scriptsizemultiplier", + "selection", + "separator", + "separators", + "stretchy", + "subscriptshift", + "supscriptshift", + "symmetric", + "voffset", + "width", + "xmlns", + ]), + So = Et([ + "xlink:href", + "xml:id", + "xlink:title", + "xml:space", + "xmlns:xlink", + ]), + Vy = nn(/\{\{[\w\W]*|[\w\W]*\}\}/gm), + qy = nn(/<%[\w\W]*|[\w\W]*%>/gm), + jy = nn(/\$\{[\w\W]*/gm), + Yy = nn(/^data-[\-\w.\u00B7-\uFFFF]+$/), + Ky = nn(/^aria-[\-\w]+$/), + Dd = nn( + /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i + ), + Xy = nn(/^(?:\w+script|data):/i), + Gy = nn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), + Nd = nn(/^html$/i), + Jy = nn(/^[a-z][.\w]*(-[.\w]+)+$/i); + var Bd = Object.freeze({ + __proto__: null, + ARIA_ATTR: Ky, + ATTR_WHITESPACE: Gy, + CUSTOM_ELEMENT: Jy, + DATA_ATTR: Yy, + DOCTYPE_NAME: Nd, + ERB_EXPR: qy, + IS_ALLOWED_URI: Dd, + IS_SCRIPT_OR_DATA: Xy, + MUSTACHE_EXPR: Vy, + TMPLIT_EXPR: jy, + }); + const ri = { + element: 1, + attribute: 2, + text: 3, + cdataSection: 4, + entityReference: 5, + entityNode: 6, + progressingInstruction: 7, + comment: 8, + document: 9, + documentType: 10, + documentFragment: 11, + notation: 12, + }, + Zy = function () { + return typeof window > "u" ? null : window; + }, + Qy = function (e, t) { + if (typeof e != "object" || typeof e.createPolicy != "function") + return null; + let r = null; + const s = "data-tt-policy-suffix"; + t && t.hasAttribute(s) && (r = t.getAttribute(s)); + const i = "dompurify" + (r ? "#" + r : ""); + try { + return e.createPolicy(i, { + createHTML(o) { + return o; + }, + createScriptURL(o) { + return o; + }, + }); + } catch { + return ( + console.warn("TrustedTypes policy " + i + " could not be created."), + null + ); + } + }, + Fd = function () { + return { + afterSanitizeAttributes: [], + afterSanitizeElements: [], + afterSanitizeShadowDOM: [], + beforeSanitizeAttributes: [], + beforeSanitizeElements: [], + beforeSanitizeShadowDOM: [], + uponSanitizeAttribute: [], + uponSanitizeElement: [], + uponSanitizeShadowNode: [], + }; + }; + function $d() { + let n = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Zy(); + const e = (ee) => $d(ee); + if ( + ((e.version = "3.2.6"), + (e.removed = []), + !n || !n.document || n.document.nodeType !== ri.document || !n.Element) + ) + return (e.isSupported = !1), e; + let { document: t } = n; + const r = t, + s = r.currentScript, + { + DocumentFragment: i, + HTMLTemplateElement: o, + Node: a, + Element: l, + NodeFilter: c, + NamedNodeMap: u = n.NamedNodeMap || n.MozNamedAttrMap, + HTMLFormElement: f, + DOMParser: h, + trustedTypes: p, + } = n, + _ = l.prototype, + d = ni(_, "cloneNode"), + m = ni(_, "remove"), + v = ni(_, "nextSibling"), + b = ni(_, "childNodes"), + E = ni(_, "parentNode"); + if (typeof o == "function") { + const ee = t.createElement("template"); + ee.content && ee.content.ownerDocument && (t = ee.content.ownerDocument); + } + let T, + S = ""; + const { + implementation: k, + createNodeIterator: O, + createDocumentFragment: A, + getElementsByTagName: y, + } = t, + { importNode: L } = r; + let U = Fd(); + e.isSupported = + typeof Cd == "function" && + typeof E == "function" && + k && + k.createHTMLDocument !== void 0; + const { + MUSTACHE_EXPR: F, + ERB_EXPR: K, + TMPLIT_EXPR: ae, + DATA_ATTR: be, + ARIA_ATTR: ne, + IS_SCRIPT_OR_DATA: Z, + ATTR_WHITESPACE: se, + CUSTOM_ELEMENT: et, + } = Bd; + let { IS_ALLOWED_URI: Ge } = Bd, + ue = null; + const Pe = fe({}, [...Id, ...Zl, ...Ql, ...ec, ...Rd]); + let ke = null; + const it = fe({}, [...Pd, ...tc, ...Ld, ...So]); + let q = Object.seal( + Md(null, { + tagNameCheck: { + writable: !0, + configurable: !1, + enumerable: !0, + value: null, + }, + attributeNameCheck: { + writable: !0, + configurable: !1, + enumerable: !0, + value: null, + }, + allowCustomizedBuiltInElements: { + writable: !0, + configurable: !1, + enumerable: !0, + value: !1, + }, + }) + ), + le = null, + Ee = null, + Ue = !0, + Ae = !0, + pn = !1, + rn = !0, + g = !1, + x = !0, + M = !1, + N = !1, + B = !1, + C = !1, + $ = !1, + D = !1, + H = !0, + P = !1; + const G = "user-content-"; + let X = !0, + j = !1, + J = {}, + re = null; + const _e = fe({}, [ + "annotation-xml", + "audio", + "colgroup", + "desc", + "foreignobject", + "head", + "iframe", + "math", + "mi", + "mn", + "mo", + "ms", + "mtext", + "noembed", + "noframes", + "noscript", + "plaintext", + "script", + "style", + "svg", + "template", + "thead", + "title", + "video", + "xmp", + ]); + let ge = null; + const Oe = fe({}, ["audio", "video", "img", "source", "image", "track"]); + let At = null; + const Wn = fe({}, [ + "alt", + "class", + "for", + "id", + "label", + "name", + "pattern", + "placeholder", + "role", + "summary", + "title", + "value", + "style", + "xmlns", + ]), + Nr = "http://www.w3.org/1998/Math/MathML", + Mn = "http://www.w3.org/2000/svg", + sn = "http://www.w3.org/1999/xhtml"; + let Je = sn, + Nt = !1, + ls = null; + const J2 = fe({}, [Nr, Mn, sn], Jl); + let Io = fe({}, ["mi", "mo", "mn", "ms", "mtext"]), + Ro = fe({}, ["annotation-xml"]); + const Z2 = fe({}, ["title", "style", "font", "a", "script"]); + let oi = null; + const Q2 = ["application/xhtml+xml", "text/html"], + ew = "text/html"; + let ot = null, + cs = null; + const tw = t.createElement("form"), + Yd = function (w) { + return w instanceof RegExp || w instanceof Function; + }, + lc = function () { + let w = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + if (!(cs && cs === w)) { + if ( + ((!w || typeof w != "object") && (w = {}), + (w = Hn(w)), + (oi = + Q2.indexOf(w.PARSER_MEDIA_TYPE) === -1 + ? ew + : w.PARSER_MEDIA_TYPE), + (ot = oi === "application/xhtml+xml" ? Jl : Eo), + (ue = dn(w, "ALLOWED_TAGS") ? fe({}, w.ALLOWED_TAGS, ot) : Pe), + (ke = dn(w, "ALLOWED_ATTR") ? fe({}, w.ALLOWED_ATTR, ot) : it), + (ls = dn(w, "ALLOWED_NAMESPACES") + ? fe({}, w.ALLOWED_NAMESPACES, Jl) + : J2), + (At = dn(w, "ADD_URI_SAFE_ATTR") + ? fe(Hn(Wn), w.ADD_URI_SAFE_ATTR, ot) + : Wn), + (ge = dn(w, "ADD_DATA_URI_TAGS") + ? fe(Hn(Oe), w.ADD_DATA_URI_TAGS, ot) + : Oe), + (re = dn(w, "FORBID_CONTENTS") + ? fe({}, w.FORBID_CONTENTS, ot) + : _e), + (le = dn(w, "FORBID_TAGS") ? fe({}, w.FORBID_TAGS, ot) : Hn({})), + (Ee = dn(w, "FORBID_ATTR") ? fe({}, w.FORBID_ATTR, ot) : Hn({})), + (J = dn(w, "USE_PROFILES") ? w.USE_PROFILES : !1), + (Ue = w.ALLOW_ARIA_ATTR !== !1), + (Ae = w.ALLOW_DATA_ATTR !== !1), + (pn = w.ALLOW_UNKNOWN_PROTOCOLS || !1), + (rn = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1), + (g = w.SAFE_FOR_TEMPLATES || !1), + (x = w.SAFE_FOR_XML !== !1), + (M = w.WHOLE_DOCUMENT || !1), + (C = w.RETURN_DOM || !1), + ($ = w.RETURN_DOM_FRAGMENT || !1), + (D = w.RETURN_TRUSTED_TYPE || !1), + (B = w.FORCE_BODY || !1), + (H = w.SANITIZE_DOM !== !1), + (P = w.SANITIZE_NAMED_PROPS || !1), + (X = w.KEEP_CONTENT !== !1), + (j = w.IN_PLACE || !1), + (Ge = w.ALLOWED_URI_REGEXP || Dd), + (Je = w.NAMESPACE || sn), + (Io = w.MATHML_TEXT_INTEGRATION_POINTS || Io), + (Ro = w.HTML_INTEGRATION_POINTS || Ro), + (q = w.CUSTOM_ELEMENT_HANDLING || {}), + w.CUSTOM_ELEMENT_HANDLING && + Yd(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && + (q.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), + w.CUSTOM_ELEMENT_HANDLING && + Yd(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && + (q.attributeNameCheck = + w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), + w.CUSTOM_ELEMENT_HANDLING && + typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == + "boolean" && + (q.allowCustomizedBuiltInElements = + w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), + g && (Ae = !1), + $ && (C = !0), + J && + ((ue = fe({}, Rd)), + (ke = []), + J.html === !0 && (fe(ue, Id), fe(ke, Pd)), + J.svg === !0 && (fe(ue, Zl), fe(ke, tc), fe(ke, So)), + J.svgFilters === !0 && (fe(ue, Ql), fe(ke, tc), fe(ke, So)), + J.mathMl === !0 && (fe(ue, ec), fe(ke, Ld), fe(ke, So))), + w.ADD_TAGS && (ue === Pe && (ue = Hn(ue)), fe(ue, w.ADD_TAGS, ot)), + w.ADD_ATTR && (ke === it && (ke = Hn(ke)), fe(ke, w.ADD_ATTR, ot)), + w.ADD_URI_SAFE_ATTR && fe(At, w.ADD_URI_SAFE_ATTR, ot), + w.FORBID_CONTENTS && + (re === _e && (re = Hn(re)), fe(re, w.FORBID_CONTENTS, ot)), + X && (ue["#text"] = !0), + M && fe(ue, ["html", "head", "body"]), + ue.table && (fe(ue, ["tbody"]), delete le.tbody), + w.TRUSTED_TYPES_POLICY) + ) { + if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function") + throw ti( + 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.' + ); + if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function") + throw ti( + 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.' + ); + (T = w.TRUSTED_TYPES_POLICY), (S = T.createHTML("")); + } else + T === void 0 && (T = Qy(p, s)), + T !== null && typeof S == "string" && (S = T.createHTML("")); + Et && Et(w), (cs = w); + } + }, + Kd = fe({}, [...Zl, ...Ql, ...zy]), + Xd = fe({}, [...ec, ...Wy]), + nw = function (w) { + let z = E(w); + (!z || !z.tagName) && (z = { namespaceURI: Je, tagName: "template" }); + const Q = Eo(w.tagName), + Ne = Eo(z.tagName); + return ls[w.namespaceURI] + ? w.namespaceURI === Mn + ? z.namespaceURI === sn + ? Q === "svg" + : z.namespaceURI === Nr + ? Q === "svg" && (Ne === "annotation-xml" || Io[Ne]) + : !!Kd[Q] + : w.namespaceURI === Nr + ? z.namespaceURI === sn + ? Q === "math" + : z.namespaceURI === Mn + ? Q === "math" && Ro[Ne] + : !!Xd[Q] + : w.namespaceURI === sn + ? (z.namespaceURI === Mn && !Ro[Ne]) || + (z.namespaceURI === Nr && !Io[Ne]) + ? !1 + : !Xd[Q] && (Z2[Q] || !Kd[Q]) + : !!(oi === "application/xhtml+xml" && ls[w.namespaceURI]) + : !1; + }, + kn = function (w) { + Qs(e.removed, { element: w }); + try { + E(w).removeChild(w); + } catch { + m(w); + } + }, + us = function (w, z) { + try { + Qs(e.removed, { attribute: z.getAttributeNode(w), from: z }); + } catch { + Qs(e.removed, { attribute: null, from: z }); + } + if ((z.removeAttribute(w), w === "is")) + if (C || $) + try { + kn(z); + } catch {} + else + try { + z.setAttribute(w, ""); + } catch {} + }, + Gd = function (w) { + let z = null, + Q = null; + if (B) w = "" + w; + else { + const tt = Od(w, /^[\r\n\t ]+/); + Q = tt && tt[0]; + } + oi === "application/xhtml+xml" && + Je === sn && + (w = + '' + + w + + ""); + const Ne = T ? T.createHTML(w) : w; + if (Je === sn) + try { + z = new h().parseFromString(Ne, oi); + } catch {} + if (!z || !z.documentElement) { + z = k.createDocument(Je, "template", null); + try { + z.documentElement.innerHTML = Nt ? S : Ne; + } catch {} + } + const yt = z.body || z.documentElement; + return ( + w && + Q && + yt.insertBefore(t.createTextNode(Q), yt.childNodes[0] || null), + Je === sn + ? y.call(z, M ? "html" : "body")[0] + : M + ? z.documentElement + : yt + ); + }, + Jd = function (w) { + return O.call( + w.ownerDocument || w, + w, + c.SHOW_ELEMENT | + c.SHOW_COMMENT | + c.SHOW_TEXT | + c.SHOW_PROCESSING_INSTRUCTION | + c.SHOW_CDATA_SECTION, + null + ); + }, + cc = function (w) { + return ( + w instanceof f && + (typeof w.nodeName != "string" || + typeof w.textContent != "string" || + typeof w.removeChild != "function" || + !(w.attributes instanceof u) || + typeof w.removeAttribute != "function" || + typeof w.setAttribute != "function" || + typeof w.namespaceURI != "string" || + typeof w.insertBefore != "function" || + typeof w.hasChildNodes != "function") + ); + }, + Zd = function (w) { + return typeof a == "function" && w instanceof a; + }; + function Vn(ee, w, z) { + xo(ee, (Q) => { + Q.call(e, w, z, cs); + }); + } + const Qd = function (w) { + let z = null; + if ((Vn(U.beforeSanitizeElements, w, null), cc(w))) return kn(w), !0; + const Q = ot(w.nodeName); + if ( + (Vn(U.uponSanitizeElement, w, { tagName: Q, allowedTags: ue }), + (x && + w.hasChildNodes() && + !Zd(w.firstElementChild) && + St(/<[/\w!]/g, w.innerHTML) && + St(/<[/\w!]/g, w.textContent)) || + w.nodeType === ri.progressingInstruction || + (x && w.nodeType === ri.comment && St(/<[/\w]/g, w.data))) + ) + return kn(w), !0; + if (!ue[Q] || le[Q]) { + if ( + !le[Q] && + tp(Q) && + ((q.tagNameCheck instanceof RegExp && St(q.tagNameCheck, Q)) || + (q.tagNameCheck instanceof Function && q.tagNameCheck(Q))) + ) + return !1; + if (X && !re[Q]) { + const Ne = E(w) || w.parentNode, + yt = b(w) || w.childNodes; + if (yt && Ne) { + const tt = yt.length; + for (let Bt = tt - 1; Bt >= 0; --Bt) { + const qn = d(yt[Bt], !0); + (qn.__removalCount = (w.__removalCount || 0) + 1), + Ne.insertBefore(qn, v(w)); + } + } + } + return kn(w), !0; + } + return (w instanceof l && !nw(w)) || + ((Q === "noscript" || Q === "noembed" || Q === "noframes") && + St(/<\/no(script|embed|frames)/i, w.innerHTML)) + ? (kn(w), !0) + : (g && + w.nodeType === ri.text && + ((z = w.textContent), + xo([F, K, ae], (Ne) => { + z = ei(z, Ne, " "); + }), + w.textContent !== z && + (Qs(e.removed, { element: w.cloneNode() }), + (w.textContent = z))), + Vn(U.afterSanitizeElements, w, null), + !1); + }, + ep = function (w, z, Q) { + if (H && (z === "id" || z === "name") && (Q in t || Q in tw)) return !1; + if (!(Ae && !Ee[z] && St(be, z))) { + if (!(Ue && St(ne, z))) { + if (!ke[z] || Ee[z]) { + if ( + !( + (tp(w) && + ((q.tagNameCheck instanceof RegExp && + St(q.tagNameCheck, w)) || + (q.tagNameCheck instanceof Function && + q.tagNameCheck(w))) && + ((q.attributeNameCheck instanceof RegExp && + St(q.attributeNameCheck, z)) || + (q.attributeNameCheck instanceof Function && + q.attributeNameCheck(z)))) || + (z === "is" && + q.allowCustomizedBuiltInElements && + ((q.tagNameCheck instanceof RegExp && + St(q.tagNameCheck, Q)) || + (q.tagNameCheck instanceof Function && + q.tagNameCheck(Q)))) + ) + ) + return !1; + } else if (!At[z]) { + if (!St(Ge, ei(Q, se, ""))) { + if ( + !( + (z === "src" || z === "xlink:href" || z === "href") && + w !== "script" && + Fy(Q, "data:") === 0 && + ge[w] + ) + ) { + if (!(pn && !St(Z, ei(Q, se, "")))) { + if (Q) return !1; + } + } + } + } + } + } + return !0; + }, + tp = function (w) { + return w !== "annotation-xml" && Od(w, et); + }, + np = function (w) { + Vn(U.beforeSanitizeAttributes, w, null); + const { attributes: z } = w; + if (!z || cc(w)) return; + const Q = { + attrName: "", + attrValue: "", + keepAttr: !0, + allowedAttributes: ke, + forceKeepAttr: void 0, + }; + let Ne = z.length; + for (; Ne--; ) { + const yt = z[Ne], + { name: tt, namespaceURI: Bt, value: qn } = yt, + ai = ot(tt), + uc = qn; + let bt = tt === "value" ? uc : $y(uc); + if ( + ((Q.attrName = ai), + (Q.attrValue = bt), + (Q.keepAttr = !0), + (Q.forceKeepAttr = void 0), + Vn(U.uponSanitizeAttribute, w, Q), + (bt = Q.attrValue), + P && (ai === "id" || ai === "name") && (us(tt, w), (bt = G + bt)), + x && St(/((--!?|])>)|<\/(style|title)/i, bt)) + ) { + us(tt, w); + continue; + } + if (Q.forceKeepAttr) continue; + if (!Q.keepAttr) { + us(tt, w); + continue; + } + if (!rn && St(/\/>/i, bt)) { + us(tt, w); + continue; + } + g && + xo([F, K, ae], (sp) => { + bt = ei(bt, sp, " "); + }); + const rp = ot(w.nodeName); + if (!ep(rp, ai, bt)) { + us(tt, w); + continue; + } + if ( + T && + typeof p == "object" && + typeof p.getAttributeType == "function" && + !Bt + ) + switch (p.getAttributeType(rp, ai)) { + case "TrustedHTML": { + bt = T.createHTML(bt); + break; + } + case "TrustedScriptURL": { + bt = T.createScriptURL(bt); + break; + } + } + if (bt !== uc) + try { + Bt ? w.setAttributeNS(Bt, tt, bt) : w.setAttribute(tt, bt), + cc(w) ? kn(w) : kd(e.removed); + } catch { + us(tt, w); + } + } + Vn(U.afterSanitizeAttributes, w, null); + }, + rw = function ee(w) { + let z = null; + const Q = Jd(w); + for (Vn(U.beforeSanitizeShadowDOM, w, null); (z = Q.nextNode()); ) + Vn(U.uponSanitizeShadowNode, z, null), + Qd(z), + np(z), + z.content instanceof i && ee(z.content); + Vn(U.afterSanitizeShadowDOM, w, null); + }; + return ( + (e.sanitize = function (ee) { + let w = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + z = null, + Q = null, + Ne = null, + yt = null; + if ( + ((Nt = !ee), Nt && (ee = ""), typeof ee != "string" && !Zd(ee)) + ) + if (typeof ee.toString == "function") { + if (((ee = ee.toString()), typeof ee != "string")) + throw ti("dirty is not a string, aborting"); + } else throw ti("toString is not a function"); + if (!e.isSupported) return ee; + if ( + (N || lc(w), (e.removed = []), typeof ee == "string" && (j = !1), j) + ) { + if (ee.nodeName) { + const qn = ot(ee.nodeName); + if (!ue[qn] || le[qn]) + throw ti( + "root node is forbidden and cannot be sanitized in-place" + ); + } + } else if (ee instanceof a) + (z = Gd("")), + (Q = z.ownerDocument.importNode(ee, !0)), + (Q.nodeType === ri.element && Q.nodeName === "BODY") || + Q.nodeName === "HTML" + ? (z = Q) + : z.appendChild(Q); + else { + if (!C && !g && !M && ee.indexOf("<") === -1) + return T && D ? T.createHTML(ee) : ee; + if (((z = Gd(ee)), !z)) return C ? null : D ? S : ""; + } + z && B && kn(z.firstChild); + const tt = Jd(j ? ee : z); + for (; (Ne = tt.nextNode()); ) + Qd(Ne), np(Ne), Ne.content instanceof i && rw(Ne.content); + if (j) return ee; + if (C) { + if ($) + for (yt = A.call(z.ownerDocument); z.firstChild; ) + yt.appendChild(z.firstChild); + else yt = z; + return ( + (ke.shadowroot || ke.shadowrootmode) && (yt = L.call(r, yt, !0)), yt + ); + } + let Bt = M ? z.outerHTML : z.innerHTML; + return ( + M && + ue["!doctype"] && + z.ownerDocument && + z.ownerDocument.doctype && + z.ownerDocument.doctype.name && + St(Nd, z.ownerDocument.doctype.name) && + (Bt = + " +` + + Bt), + g && + xo([F, K, ae], (qn) => { + Bt = ei(Bt, qn, " "); + }), + T && D ? T.createHTML(Bt) : Bt + ); + }), + (e.setConfig = function () { + let ee = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + lc(ee), (N = !0); + }), + (e.clearConfig = function () { + (cs = null), (N = !1); + }), + (e.isValidAttribute = function (ee, w, z) { + cs || lc({}); + const Q = ot(ee), + Ne = ot(w); + return ep(Q, Ne, z); + }), + (e.addHook = function (ee, w) { + typeof w == "function" && Qs(U[ee], w); + }), + (e.removeHook = function (ee, w) { + if (w !== void 0) { + const z = Ny(U[ee], w); + return z === -1 ? void 0 : By(U[ee], z, 1)[0]; + } + return kd(U[ee]); + }), + (e.removeHooks = function (ee) { + U[ee] = []; + }), + (e.removeAllHooks = function () { + U = Fd(); + }), + e + ); + } + var eb = $d(); + const tb = ["innerHTML"], + Co = de({ + __name: "DompurifyVHtml", + props: { vHtml: {}, sanitize: { type: Boolean } }, + setup(n) { + const e = n, + t = Qe(() => + e.sanitize !== !1 && e.vHtml ? eb.sanitize(e.vHtml) : e.vHtml + ); + return (r, s) => + e.vHtml + ? (R(), + W( + "span", + { key: 0, innerHTML: t.value, class: "v-html" }, + null, + 8, + tb + )) + : Se("", !0); + }, + }), + nb = ["src"], + Ao = de({ + __name: "BaseAvatar", + props: { + title: {}, + avatar: { default: "" }, + size: { default: 40 }, + iconId: {}, + }, + setup(n) { + const e = Ce(), + { settings: t } = ve(e); + vy({ hues: [243], backColor: "#fff" }); + const r = n, + s = Ry(r.iconId, r.size), + i = Qe(() => ({ height: `${r.size}px`, width: `${r.size}px` })), + o = Qe(() => (r.title ? r.title : "Anonymous")), + a = Y(!1); + return (l, c) => { + var u; + return eu( + (R(), + W( + "div", + { class: "avatar-container", style: On(i.value) }, + [ + !l.avatar || a.value + ? (R(), + W( + "div", + { + key: 0, + class: "avatar avatar--identicon", + style: On(i.value), + }, + [ + V( + Co, + { + vHtml: I(s), + sanitize: + (u = I(t)) == null ? void 0 : u.sanitizeVHTML, + }, + null, + 8, + ["vHtml", "sanitize"] + ), + ], + 4 + )) + : (R(), + W( + "img", + { + key: 1, + class: "avatar", + src: l.avatar, + alt: "avatar", + onError: c[0] || (c[0] = (f) => (a.value = !0)), + style: On(i.value), + }, + null, + 44, + nb + )), + ], + 4 + )), + [[I(Td), o.value]] + ); + }; + }, + }), + mw = "", + rb = ["d"], + zn = de({ + __name: "BaseIcon", + props: { icon: {}, width: {}, color: {} }, + setup(n) { + const e = { + open: "M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64h96v80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z", + close: + "M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z", + return: + "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z", + send: "M3.4 20.4l17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z", + paperclip: + "M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z", + xmark: + "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z", + refresh: + "M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z", + "file-circle-minus": + "M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 38.6C310.1 219.5 256 287.4 256 368c0 59.1 29.1 111.3 73.7 143.3c-3.2 .5-6.4 .7-9.7 .7L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM288 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm224 0c0-8.8-7.2-16-16-16l-128 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l128 0c8.8 0 16-7.2 16-16z", + file: "M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z", + "file-audio": + "M64 464l256 0c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM192 272l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L129.4 376 112 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l17.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5s9.9 8.3 9.9 14.8zm85.8-4c11.6 20 18.2 43.3 18.2 68s-6.6 48-18.2 68c-6.6 11.5-21.3 15.4-32.8 8.8s-15.4-21.3-8.8-32.8c7.5-12.9 11.8-27.9 11.8-44s-4.3-31.1-11.8-44c-6.6-11.5-2.7-26.2 8.8-32.8s26.2-2.7 32.8 8.8z", + "file-excel": + "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z", + "file-image": + "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2l48 0 32 0 40 0 72 0c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z", + "file-lines": + "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z", + "file-pdf": + "M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z", + "file-powerpoint": + "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm72 208c-13.3 0-24 10.7-24 24l0 104 0 56c0 13.3 10.7 24 24 24s24-10.7 24-24l0-32 44 0c42 0 76-34 76-76s-34-76-76-76l-68 0zm68 104l-44 0 0-56 44 0c15.5 0 28 12.5 28 28s-12.5 28-28 28z", + "file-video": + "M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM80 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 16 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1L240 368l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96z", + "file-word": + "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z", + "file-zipper": + "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z", + }; + return (t, r) => ( + R(), + W( + "svg", + { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 512 512", + preserveAspectRatio: "xMidYMid meet", + style: On({ width: t.width + "px", color: t.color }), + }, + [oe("path", { fill: "currentColor", d: e[t.icon] }, null, 8, rb)], + 4 + ) + ); + }, + }), + nc = (n) => (Gc("data-v-cf972bf8"), (n = n()), Jc(), n), + sb = ["data-me"], + ib = { key: 0 }, + ob = ["textContent"], + ab = { key: 2, class: "chat-message-typing" }, + lb = [ + nc(() => oe("span", null, null, -1)), + nc(() => oe("span", null, null, -1)), + nc(() => oe("span", null, null, -1)), + ], + cb = { key: 0, class: "flex flex-row items-center gap-2" }, + ub = ["src", "alt"], + fb = { key: 1, class: "flex flex-row items-center gap-2 p-2" }, + hb = { "data-test-id": "attachment-filename" }, + db = de({ + __name: "MessengerBodyChatMessageListItem", + props: { + message: {}, + attachments: {}, + sameSender: { type: Boolean }, + typing: { type: Boolean }, + isCustomer: { type: Boolean }, + sending: { type: Boolean }, + parcipantData: {}, + sentAt: {}, + }, + setup(n) { + const e = Ce(), + { settings: t } = ve(e), + r = cn("updateScroll"), + s = Y(); + Xt(() => { + if (!s.value) return; + new MutationObserver((u) => { + u.forEach((f) => { + f.type === "childList" && f.addedNodes.length > 0 && r(); + }); + }).observe(s.value, { childList: !0 }); + }); + function i(c) { + return c.mimeType && c.mimeType !== "application/octet-stream" + ? o(c.mimeType) + : c.fileName + ? a(c.fileName) + : "file"; + } + function o(c) { + const [u, f] = c.split("/"); + switch (u) { + case "application": { + switch (f) { + case "pdf": + return "file-pdf"; + case "zip": + case "x-zip-compressed": + case "x-7z-compressed": + return "file-zipper"; + case "vnd.ms-excel": + case "vnd.openxmlformats-officedocument.spreadsheetml.sheet": + return "file-excel"; + case "vnd.ms-powerpoint": + case "vnd.openxmlformats-officedocument.presentationml.presentation": + return "file-powerpoint"; + case "msword": + case "vnd.openxmlformats-officedocument.wordprocessingml.document": + return "file-word"; + } + break; + } + case "audio": + return "file-audio"; + case "image": + return "file-image"; + case "text": + return "file-lines"; + case "video": + return "file-video"; + } + return "file"; + } + function a(c) { + const u = c.substring(c.lastIndexOf(".") + 1); + if (!u) return "file"; + switch (u) { + case "txt": + case "rtf": + case "html": + return "file-lines"; + case "pdf": + return "file-pdf"; + case "doc": + case "docx": + return "file-word"; + case "ppt": + case "pptx": + return "file-powerpoint"; + case "xls": + case "xlsx": + return "file-excel"; + case "zip": + case "7z": + return "file-zipper"; + case "mp3": + case "m4a": + case "flac": + case "wav": + return "file-audio"; + case "jpg": + case "jpeg": + case "gif": + case "png": + case "svg": + case "webp": + case "tif": + case "tiff": + case "heic": + return "file-image"; + case "mp4": + case "mov": + case "avi": + case "wmv": + case "m4v": + return "file-video"; + } + return "file"; + } + function l(c) { + return c.startsWith("image/"); + } + return (c, u) => { + var f, h; + return ( + R(), + W( + "div", + { + class: wt([ + "message-item", + { "pb-2": c.sameSender, "pb-4": !c.sameSender }, + ]), + "data-me": c.isCustomer ? !0 : "", + }, + [ + oe( + "div", + { + class: wt([ + "relative pl-[45px] flex", + { "justify-end": c.isCustomer }, + ]), + }, + [ + c.isCustomer + ? Se("", !0) + : (R(), + W( + "div", + { + key: 0, + class: wt([ + "chat-avatar w-[35px] h-[35px] min-w-[35px] max-h-[35px] rounded-full bg-[#ebeaea] absolute left-0 bottom-0 flex items-center justify-center", + { + "chat-avatar--same-sender": c.sameSender, + "opacity-0": c.sameSender, + }, + ]), + }, + [ + V( + Ao, + { + title: c.parcipantData.name, + iconId: c.parcipantData.userId, + avatar: c.parcipantData.avatar, + size: 34, + }, + null, + 8, + ["title", "iconId", "avatar"] + ), + ], + 2 + )), + eu( + (R(), + W( + "div", + { + class: wt([ + "chat-message p-4 rounded-[10px] relative inline-block w-auto bg-[#ebeaea] break-words max-w-[90%]", + { "chat-message--customer": c.isCustomer }, + ]), + }, + [ + c.message && !c.isCustomer + ? (R(), + W("div", ib, [ + V( + Co, + { + vHtml: c.message, + sanitize: + (f = I(t)) == null + ? void 0 + : f.sanitizeVHTML, + }, + null, + 8, + ["vHtml", "sanitize"] + ), + ])) + : c.message && c.isCustomer + ? (R(), + W( + "div", + { key: 1, textContent: He(c.message) }, + null, + 8, + ob + )) + : c.typing + ? (R(), W("div", ab, lb)) + : Se("", !0), + ], + 2 + )), + [ + [ + I(Td), + c.sentAt + ? I(wd)(c.sentAt) + : c.typing + ? `${ + c.parcipantData.name || "Anonymous" + } is typing...` + : "Sending...", + ], + ] + ), + ], + 2 + ), + (h = c.attachments) != null && h.length + ? (R(), + W( + "div", + { + key: 0, + class: wt([ + "message-attachments relative pl-[45px] flex", + { "justify-end": c.isCustomer }, + ]), + }, + [ + (R(!0), + W( + we, + null, + Jn( + c.attachments, + (p) => ( + R(), + W( + "div", + { + key: p.url, + class: wt([ + "attachment", + { customer: c.isCustomer }, + ]), + }, + [ + p.url && l(p.mimeType) + ? (R(), + W("div", cb, [ + oe( + "img", + { + src: p.url, + alt: p.fileName, + class: "max-w-[200px] rounded-md", + "data-test-id": "attachment-image", + }, + null, + 8, + ub + ), + ])) + : (R(), + W("div", fb, [ + V( + zn, + { + icon: i(p), + width: 26, + color: c.isCustomer + ? "white" + : "black", + }, + null, + 8, + ["icon", "color"] + ), + oe("span", hb, He(p.fileName), 1), + ])), + ], + 2 + ) + ) + ), + 128 + )), + ], + 2 + )) + : Se("", !0), + oe( + "div", + { + ref_key: "customElements", + ref: s, + class: "message-custom-elements", + }, + null, + 512 + ), + ], + 10, + sb + ) + ); + }; + }, + }), + yw = "", + pb = vt(db, [["__scopeId", "data-v-cf972bf8"]]), + bw = "", + mb = {}, + _b = { class: "se-messenger-chip" }; + function gb(n, e) { + return R(), W("div", _b, [ln(n.$slots, "default")]); + } + const vb = vt(mb, [["render", gb]]), + yb = { class: "relative overflow-hidden" }, + bb = { key: 0, class: "chat-options" }, + wb = de({ + __name: "MessengerBodyChatMessageOptions", + props: { options: {} }, + setup(n) { + const e = An(), + t = cn("tl"), + r = (a, l) => { + typeof e.chipOnClick == "function" && e.chipOnClick(l, a); + }, + s = (a) => { + (a.style.transform = "translateY(20px)"), (a.style.opacity = "0"); + }, + i = (a) => { + t.to(a, { opacity: 1, y: 0 }); + }, + o = (a, l) => { + l(); + }; + return (a, l) => ( + R(), + W("div", yb, [ + V( + vn, + { onBeforeEnter: s, onEnter: i, onLeave: o }, + { + default: Te(() => [ + a.options.length + ? (R(), + W("div", bb, [ + (R(!0), + W( + we, + null, + Jn( + a.options, + (c, u) => ( + R(), + xe( + vb, + { + key: u, + class: "chat-option", + onClick: (f) => r(f, c), + }, + { + default: Te(() => [Qn(He(c.input), 1)]), + _: 2, + }, + 1032, + ["onClick"] + ) + ) + ), + 128 + )), + ])) + : Se("", !0), + ]), + _: 1, + } + ), + ]) + ); + }, + }), + ww = "", + Tb = vt(wb, [["__scopeId", "data-v-3b15ec9d"]]), + rc = 0.2, + Ud = 10, + xb = de({ + __name: "MessengerBodyChatMessageList", + emits: ["updateScroll"], + setup(n, { emit: e }) { + const t = e, + r = Ce(), + { userId: s, conversationId: i } = ve(r), + o = An(), + { messages: a, isTyping: l, participants: c } = ve(o), + u = cn("tl"), + f = Qe(() => { + const m = l.value + .filter((v) => v.typing && v.userId !== s.value) + .map((v) => ({ + typing: !0, + sentBy: { userId: v.userId }, + conversationId: v.conversationId, + })); + return a.value.concat(m); + }), + h = Qe(() => { + var m; + return ( + ((m = f.value[f.value.length - 1]) == null + ? void 0 + : m.options) || [] + ); + }); + let p = !0; + Ve( + f, + async (m, v) => { + var E; + m && v && Math.abs(m.length - v.length) === 1 ? (p = !1) : (p = !0), + await ms(); + const b = !((E = m[m.length - 1]) != null && E._id); + t("updateScroll", b); + }, + { immediate: !0 } + ); + const _ = (m) => { + if (p) return; + const v = m.querySelector(".chat-avatar"), + b = m.querySelector(".chat-message"), + E = m.querySelector(".message-custom-elements"); + v && ((v.style.opacity = "0"), (v.style.bottom = "auto")), + (b.style.opacity = "0"), + (b.style.transform = m.dataset.me + ? `translateX(${Ud}px)` + : `translateX(-${Ud}px)`), + (E.style.opacity = "0"); + }, + d = (m, v) => { + if (p) return; + const b = m.querySelector(".chat-message"), + E = m.querySelector(".chat-avatar"), + T = m.querySelector(".message-custom-elements"), + S = m.previousElementSibling, + k = S == null ? void 0 : S.querySelector(".chat-avatar"), + O = + k == null + ? void 0 + : k.classList.contains("chat-avatar--same-sender"); + O && u.to(k, { bottom: -43 }), + E && u.to(E, { opacity: 1, bottom: 0 }), + O && + u + .to(k, { bottom: 8 - m.clientHeight }, `-=${rc}`) + .to(k, { opacity: 0 }); + const A = E && !O ? rc * 1 : E && O ? rc * 2 : 0; + u.to(b, { + ease: m.dataset.me ? "back.out(1)" : "", + opacity: 1, + x: 0, + }), + u.to(T, { opacity: 1, onComplete: v }, `-=${A}`); + }; + return (m, v) => ( + R(), + W( + we, + null, + [ + V( + xa, + { tag: "div", onBeforeEnter: _, onEnter: d }, + { + default: Te(() => [ + (R(!0), + W( + we, + null, + Jn(f.value, (b, E) => { + var T, S; + return ( + R(), + W( + we, + { key: E }, + [ + b.conversationId === I(i) + ? (R(), + xe( + pb, + { + key: 0, + message: b.input, + attachments: + (T = b.metadata) == null + ? void 0 + : T.attachments, + sameSender: + b.sentBy.userId === + ((S = f.value[E + 1]) == null + ? void 0 + : S.sentBy.userId), + typing: b.typing, + isCustomer: b.sentBy.userId === I(s), + id: `message-${b._id || I(os).v4()}`, + sending: !b._id, + parcipantData: + I(c)[b.sentBy.userId] || b.sentBy, + sentAt: b.sentAt, + }, + null, + 8, + [ + "message", + "attachments", + "sameSender", + "typing", + "isCustomer", + "id", + "sending", + "parcipantData", + "sentAt", + ] + )) + : Se("", !0), + ], + 64 + ) + ); + }), + 128 + )), + ]), + _: 1, + } + ), + V(Tb, { options: h.value }, null, 8, ["options"]), + ], + 64 + ) + ); + }, + }); + function Hd(n) { + const [e, t] = n.split("/"); + switch (e) { + case "application": { + switch (t) { + case "vnd.openxmlformats-officedocument.wordprocessingml.document": + case "vnd.openxmlformats-officedocument.spreadsheetml.sheet": + case "vnd.openxmlformats-officedocument.presentationml.presentation": + case "msword": + case "vnd.ms-excel": + case "vnd.visio": + case "vnd.ms-powerpoint": + case "vnd.oasis.opendocument.text": + case "vnd.oasis.opendocument.spreadsheet": + case "vnd.oasis.opendocument.presentation": + case "pdf": + return !0; + } + break; + } + case "audio": + case "image": + case "text": + case "video": + case "message": + return !0; + } + return !1; + } + const Eb = (n) => (Gc("data-v-710ba211"), (n = n()), Jc(), n), + Sb = ["onDrop"], + Cb = Eb(() => + oe( + "div", + { class: "overlay" }, + [oe("div", { class: "content" }, "Drop Files Here")], + -1 + ) + ), + Ab = de({ + __name: "MessengerFileDropZone", + setup(n) { + const e = Ce(), + { areAttachmentsEnabled: t, pendingAttachment: r } = ve(e), + s = Y(!1); + function i(l) { + var c; + t.value && + (c = l.dataTransfer) != null && + c.types.some( + (u) => u === "Files" || u === "application/x-moz-file" + ) && + (s.value = !0); + } + function o(l) { + var c; + ((c = l.currentTarget) != null && c.contains(l.relatedTarget)) || + (s.value = !1); + } + function a(l) { + var u; + if (!t.value) return; + const c = (u = l.dataTransfer) == null ? void 0 : u.files; + (c == null ? void 0 : c.length) === 1 && + Hd(c[0].type) && + (r.value = c), + (s.value = !1); + } + return (l, c) => ( + R(), + W( + "div", + { + class: wt(["dropzone", { dragging: s.value }]), + onDragover: c[0] || (c[0] = Hi(() => {}, ["prevent"])), + onDragenter: i, + onDragleave: o, + onDrop: Hi(a, ["prevent"]), + }, + [ln(l.$slots, "default", {}, void 0, !0), Cb], + 42, + Sb + ) + ); + }, + }), + Tw = "", + Mb = vt(Ab, [["__scopeId", "data-v-710ba211"]]), + kb = de({ + __name: "MessengerBodyChat", + setup(n) { + const e = cn("resized"), + t = Ce(), + { updateScrollTopPosition: r } = t, + { scrollTopPosition: s, conversationId: i } = ve(t), + o = An(), + { paginatedConversationEvents: a, skip: l, messages: c } = ve(o), + u = Y(!1), + f = Y(null), + h = Y(!0), + p = Y(null), + _ = () => { + a.value && + a.value.page < a.value.total && + !u.value && + ((u.value = !0), + c.value[0]._id && (p.value = c.value[0]._id), + ce.emit("Event:list", { + conversationId: i.value, + page: a.value.page + 1, + max: 10, + skip: l.value, + })); + }, + d = (b, E) => { + (h.value = b), r(E); + }, + m = () => { + if (!f.value) return; + const { scrollTop: b, clientHeight: E, scrollHeight: T } = f.value; + b + E + 5 >= T ? d(!0, -1) : d(!1, b), b <= 0 && !u.value && _(); + }, + v = (b) => { + if (f.value) + if (p.value) { + const E = f.value.querySelector(`#message-${p.value}`); + E && + (f.value.scrollTo({ top: E.offsetTop, behavior: "auto" }), + (u.value = !1), + (p.value = null)); + } else + (h.value || b) && + f.value.scrollTo({ + top: s.value > -1 && !b ? s.value : f.value.scrollHeight, + behavior: "auto", + }); + }; + return ( + Ve(e, () => { + h.value && + f.value && + f.value.scrollTo({ top: f.value.scrollHeight, behavior: "auto" }); + }), + Es("updateScroll", v), + (b, E) => ( + R(), + W( + "div", + { ref_key: "container", ref: f, onScroll: m }, + [ + V(Mb, null, { + default: Te(() => [V(xb, { onUpdateScroll: v })]), + _: 1, + }), + ], + 544 + ) + ) + ); + }, + }), + Ob = { key: 1 }, + Ib = de({ + __name: "MessengerBodyChatNew", + setup(n) { + const e = Ce(), + { setNcPing: t } = e, + { settings: r } = ve(e), + s = Y(null); + return ( + Xt(() => { + if ( + !(!s.value || !r.value) && + (t(os.v4()), r.value.newConversationPlaceholder) + ) { + const i = s.value.attachShadow({ mode: "open" }); + i.innerHTML = ` + + ${r.value.newConversationPlaceholder.code.html} + `; + } + }), + (i, o) => { + var a; + return (a = I(r)) != null && a.newConversationPlaceholder + ? (R(), + W( + "div", + { key: 0, class: "h-full", ref_key: "container", ref: s }, + null, + 512 + )) + : (R(), W("div", Ob)); + } + ); + }, + }), + Rb = {}, + Pb = { class: "h-[1px] bg-[rgb(204,204,204,0.5)]" }; + function Lb(n, e) { + return R(), W("div", Pb); + } + const sc = vt(Rb, [["render", Lb]]), + Db = (n = {}) => { + const e = n.name || "Timeago"; + return de({ + name: e, + props: { + datetime: { type: [String, Number, Date], required: !0 }, + title: { type: [String, Boolean], required: !1, default: null }, + autoUpdate: { type: [Number, Boolean], required: !1, default: null }, + converter: { type: Function, required: !1, default: null }, + converterOptions: { type: Object, required: !1, default: null }, + locale: { type: Object, required: !1, default: null }, + }, + setup(t) { + const r = Y(); + ou(() => { + a(); + }), + bs(() => { + l(); + }); + const s = (c) => + (t.converter || wd)( + c || t.datetime, + t.converterOptions || n.converterOptions, + t.locale || n.locale + ), + i = Y(s()), + o = (c) => { + i.value = s(c); + }, + a = () => { + if (t.autoUpdate) { + const c = t.autoUpdate === !0 ? 60 : t.autoUpdate; + r.value = setInterval(() => { + o(t.datetime); + }, c * 1e3); + } + }, + l = () => { + r.value && (clearInterval(r.value), (r.value = void 0)); + }; + return ( + Ve( + () => t.autoUpdate, + (c) => { + l(), c && a(); + } + ), + Ve( + () => [t.datetime, t.converter], + () => { + o(); + } + ), + Ve( + () => t.converterOptions, + () => { + o(); + }, + { deep: !0 } + ), + { timeago: i, updateTimer: r } + ); + }, + render() { + return Du( + "timeago", + { + attrs: { + datetime: new Date(this.datetime).toISOString(), + title: + typeof this.title == "string" + ? this.title + : this.title === !1 + ? null + : this.timeago, + }, + }, + [this.timeago] + ); + }, + }); + }, + Nb = de({ + __name: "BaseTimeago", + props: { datetime: {} }, + setup(n) { + const e = Db(); + return (t, r) => ( + R(), + xe(y0(I(e)), { datetime: t.datetime, autoUpdate: !0 }, null, 8, [ + "datetime", + ]) + ); + }, + }), + Bb = { class: "conversation-list-item-body" }, + Fb = { class: "conversation-list-item-avatar" }, + $b = { class: "conversation-list-item-info-container" }, + Ub = { class: "flex item-center justify-between text-[#858585]" }, + Hb = { class: "conversation-list-item-name" }, + zb = { class: "conversation-list-item-timestamp" }, + Wb = { class: "conversation-list-item-input" }, + Vb = de({ + __name: "MessengerBodyConversationListItem", + props: { + _id: {}, + input: {}, + timestamp: {}, + sender: { default: "Anonymous" }, + }, + setup(n) { + const e = Cn(), + { getConversationEvents: t } = e, + r = n, + s = Qe(() => { + const o = document.createElement("span"); + return (o.innerHTML = r.input), o.textContent || o.innerText; + }); + function i(o) { + (o.key === " " || o.key === "Enter") && + (o.preventDefault(), t(r._id)); + } + return (o, a) => ( + R(), + W( + "div", + { + class: "conversation-list-item", + onClick: a[0] || (a[0] = (l) => I(t)(o._id)), + tabindex: "0", + role: "button", + onKeydown: i, + "aria-label": "open chat", + }, + [ + oe("div", Bb, [ + oe("div", Fb, [ln(o.$slots, "avatar", {}, void 0, !0)]), + oe("div", $b, [ + oe("div", Ub, [ + oe("div", Hb, He(o.sender || "Anonymous"), 1), + oe("div", zb, [ + V( + Nb, + { datetime: o.timestamp, autoUpdate: 15 }, + null, + 8, + ["datetime"] + ), + ]), + ]), + oe("div", Wb, He(s.value), 1), + ]), + ]), + ], + 32 + ) + ); + }, + }), + xw = "", + zd = vt(Vb, [["__scopeId", "data-v-8797c078"]]), + qb = de({ + __name: "MessengerBodyConversationList", + setup(n) { + const e = Ce(), + { userId: t } = ve(e), + r = Cn(), + { conversations: s } = ve(r); + return (i, o) => ( + R(), + W("div", null, [ + (R(!0), + W( + we, + null, + Jn(I(s), (a) => { + var l; + return ( + R(), + W( + we, + { key: a._id }, + [ + V( + zd, + { + input: a.lastMessage.input, + timestamp: a.lastMessage.sentAt, + sender: + a.lastMessage.sentBy.userId === I(t) + ? "You" + : (l = + a.participantsData[ + a.lastMessage.sentBy.userId + ]) == null + ? void 0 + : l.name, + _id: a._id, + }, + { + avatar: Te(() => [ + V( + Ao, + { + avatar: a.lastMessage.sentBy.avatar, + iconId: a.lastMessage.sentBy.userId, + }, + null, + 8, + ["avatar", "iconId"] + ), + ]), + _: 2, + }, + 1032, + ["input", "timestamp", "sender", "_id"] + ), + V(sc), + ], + 64 + ) + ); + }), + 128 + )), + ]) + ); + }, + }), + jb = de({ + __name: "MessengerBodyConversation", + setup(n) { + const e = Ce(), + { updateScrollTopPosition: t } = e, + { scrollTopPosition: r } = ve(e), + s = Cn(), + { paginatedConversations: i } = ve(s), + o = Y(null), + a = () => { + i.value && + i.value.page < i.value.total && + !s.fetching && + ((s.fetching = !0), + ce.emit("Conversation:list", { + page: i.value.page + 1, + max: 10, + })); + }, + l = async () => { + if (!o.value) return; + const { scrollTop: c, clientHeight: u, scrollHeight: f } = o.value; + c + u === f && a(), t(c); + }; + return ( + Xt(() => { + setTimeout(() => { + o.value && (o.value.scrollTop = r.value); + }); + }), + (c, u) => ( + R(), + W( + "div", + { ref_key: "container", ref: o, onScroll: l }, + [V(qb)], + 544 + ) + ) + ); + }, + }), + Yb = de({ + __name: "MessengerBodyMainCardListCustomItem", + props: { card: {}, minHeight: {}, animateCard: { type: Function } }, + setup(n) { + Em((i) => ({ "0dfe985a": e.minHeight })); + const e = n, + t = Y(); + Ve( + () => [t.value, e.card.content], + ([i, o]) => { + i instanceof Element && + (o instanceof Element + ? ((i.innerHTML = ""), i.appendChild(o)) + : typeof o == "string" && (i.innerHTML = o)); + } + ); + const r = (i) => (i.style.opacity = 0), + s = (i, o) => e.animateCard(i.parentElement, i, o); + return (i, o) => ( + R(), + xe( + Ul, + { class: "custom-card mb-3 overflow-hidden" }, + { + default: Te(() => [ + V( + vn, + { onEnter: s, onBeforeEnter: r }, + { + default: Te(() => [ + i.card.loading + ? (R(), xe($l, { key: 0, size: 20 })) + : (R(), + W( + "div", + { key: 1, ref_key: "contentEl", ref: t }, + null, + 512 + )), + ]), + _: 1, + } + ), + ]), + _: 1, + } + ) + ); + }, + }), + Ew = "", + Kb = {}, + Xb = { class: "px-5" }; + function Gb(n, e) { + return R(), W("div", Xb, [ln(n.$slots, "default")]); + } + const Jb = vt(Kb, [["render", Gb]]), + Zb = { class: "py-3" }, + Wd = de({ + __name: "MessengerBodyMainCardListDefaultItem", + setup(n) { + const e = Ce(), + { setNewConversation: t } = e, + { settings: r, userId: s } = ve(e), + i = Cn(), + { getConversations: o } = i, + { paginatedConversations: a } = ve(i); + Xt(() => { + ce.emit("Conversation:list", { page: 1, max: 1 }); + }); + function l(c) { + (c.key === " " || c.key === "Enter") && (c.preventDefault(), o()); + } + return (c, u) => ( + R(), + xe(Ul, null, { + default: Te(() => { + var f, h, p, _; + return [ + (h = (f = I(a)) == null ? void 0 : f.docs) != null && h.length + ? (R(), + W( + we, + { key: 0 }, + [ + V(Hl, null, { + title: Te(() => { + var d; + return [ + Qn( + He( + ((d = I(r)) == null + ? void 0 + : d.recentConversations) || + "Recent conversation" + ), + 1 + ), + ]; + }), + _: 1, + }), + (R(!0), + W( + we, + null, + Jn(I(a).docs, (d) => { + var m; + return ( + R(), + xe( + zd, + { + key: d._id, + input: d.lastMessage.input, + timestamp: d.lastMessage.sentAt, + sender: + d.lastMessage.sentBy.userId === I(s) + ? "You" + : ((m = + d.participantsData[ + d.lastMessage.sentBy.userId + ]) == null + ? void 0 + : m.name) || + d.lastMessage.sentBy.name, + _id: d._id, + }, + { + avatar: Te(() => { + var v; + return [ + V( + Ao, + { + avatar: + ((v = + d.participantsData[ + d.lastMessage.sentBy.userId + ]) == null + ? void 0 + : v.avatar) || + d.lastMessage.sentBy.avatar, + iconId: d.lastMessage.sentBy.userId, + }, + null, + 8, + ["avatar", "iconId"] + ), + ]; + }), + _: 2, + }, + 1032, + ["input", "timestamp", "sender", "_id"] + ) + ); + }), + 128 + )), + V(sc, { class: "mt-1" }), + ], + 64 + )) + : Se("", !0), + (_ = (p = I(a)) == null ? void 0 : p.docs) != null && _.length + ? (R(), + W( + we, + { key: 1 }, + [ + V(Jb, null, { + default: Te(() => { + var d; + return [ + oe("div", Zb, [ + oe( + "a", + { + onClick: + u[0] || + (u[0] = Hi( + (...m) => I(o) && I(o)(...m), + ["prevent"] + )), + tabindex: "0", + role: "button", + onKeydown: l, + }, + He( + ((d = I(r)) == null + ? void 0 + : d.seeAllConversations) || + "See all conversations" + ), + 33 + ), + ]), + ]; + }), + _: 1, + }), + V(sc), + ], + 64 + )) + : Se("", !0), + I(r) + ? (R(), + W( + we, + { key: 2 }, + [ + V(Hl, null, { + title: Te(() => [ + Qn(He(I(r).newConversationTitle), 1), + ]), + subtitle: Te(() => { + var d; + return [ + oe("div", null, [ + V( + Co, + { + vHtml: I(r).newConversationSubtitle, + sanitize: + (d = I(r)) == null + ? void 0 + : d.sanitizeVHTML, + }, + null, + 8, + ["vHtml", "sanitize"] + ), + ]), + ]; + }), + _: 1, + }), + V(cd, null, { + default: Te(() => [ + V( + ld, + { onClick: u[1] || (u[1] = (d) => I(t)(!0)) }, + { + default: Te(() => [ + Qn(He(I(r).newConversationButton), 1), + ]), + _: 1, + } + ), + ]), + _: 1, + }), + ], + 64 + )) + : Se("", !0), + ]; + }), + _: 1, + }) + ); + }, + }), + Qb = ["id"], + ic = 0.2, + e2 = "<90%", + t2 = de({ + __name: "MessengerBodyMainCardList", + setup(n) { + const e = Ce(), + { settings: t } = ve(e), + r = Qe(() => { + var u; + if (!t.value) return; + const c = []; + return ( + (u = t.value.cards.elements) == null || + u.forEach((f) => { + f.id || (f.id = os.v4()), f.hidden || c.push(f); + }), + c + ); + }), + s = Y("50px"), + i = (c, u, f) => { + ss.timeline() + .fromTo( + c, + { height: s.value, opacity: 0 }, + { height: "auto", opacity: 1, duration: ic } + ) + .to(u, { opacity: 1, duration: ic, onComplete: f }, e2); + }, + o = (c) => { + const f = c.children[0].children[0]; + f.style.opacity = 0; + }, + a = (c, u) => { + const f = c.children[0], + h = f.children[0]; + i(f, h, u); + }, + l = (c, u) => { + ss.to(c, { + opacity: 0, + height: 0, + zIndex: 0, + duration: ic + 0.1, + onComplete: u, + }); + }; + return (c, u) => { + var f; + return (f = I(t)) != null && f.cards.enabled + ? (R(), + xe( + xa, + { key: 1, onBeforeEnter: o, onEnter: a, onLeave: l }, + { + default: Te(() => [ + (R(!0), + W( + we, + null, + Jn( + r.value, + (h) => ( + R(), + W( + "div", + { key: h.id, class: "relative", id: h.id }, + [ + h.default + ? (R(), xe(Wd, { key: 0, class: "mb-3" })) + : (R(), + xe( + Yb, + { + key: 1, + card: h, + "min-height": s.value, + animateCard: i, + }, + null, + 8, + ["card", "min-height"] + )), + ], + 8, + Qb + ) + ) + ), + 128 + )), + ]), + _: 1, + } + )) + : (R(), xe(Wd, { key: 0 })); + }; + }, + }), + n2 = de({ + __name: "MessengerBodyMain", + setup(n) { + return (e, t) => (R(), W("div", null, [V(t2)])); + }, + }), + Sw = "", + r2 = {}; + function s2(n, e) { + return R(), W("div", null, [ln(n.$slots, "default", {}, void 0, !0)]); + } + const i2 = vt(r2, [ + ["render", s2], + ["__scopeId", "data-v-54a6c695"], + ]), + o2 = { key: 0, class: "loader h-full" }, + a2 = { key: 5, class: "h-full" }, + Mo = 10, + l2 = de({ + __name: "MessengerBody", + setup(n) { + const e = Ce(), + { + view: t, + newConversation: r, + isLoading: s, + isAuthIframeVisible: i, + logs: o, + settings: a, + } = ve(e), + l = cn("tl"); + let c = !0, + u = "", + f = Y(!1); + Ve( + t, + (S, k) => { + ((!k || k !== "main") && S === "main") || + (S === "conversations" && k === "chat") + ? (c = !1) + : (c = !0); + }, + { immediate: !0 } + ); + const h = (S) => { + if (((S.style.opacity = "0"), !S.classList.contains("loader"))) + for (const k of S.children) + (k.style.opacity = "0"), + (k.style.transform = c + ? `translateX(${Mo}px)` + : `translateX(-${Mo}px)`); + }, + p = (S, k) => { + l.to(S, { x: 0, opacity: 1 }, 0), + !S.classList.contains("loader") && + l.to(S.children, { + opacity: 1, + x: 0, + stagger: 0.1, + onComplete: k, + }); + }, + _ = (S, k) => { + if (S.classList.contains("loader")) { + l.to(S, { opacity: 0, onComplete: k }); + return; + } + l.to( + S.children, + { x: c ? -Mo : Mo, opacity: 0, stagger: 0.1 }, + "<-=100%" + ), + l.to(S, { opacity: 0, onComplete: k }); + }, + d = Y(); + let m = 0, + v = !1, + b = !1; + const E = (S) => { + m = S.touches[0].clientY; + }; + Ve(s, () => { + s.value || (f.value = !1); + }); + const T = (S) => { + const O = S.touches[0].clientY - m, + A = d.value.children[0], + { scrollTop: y, clientHeight: L, scrollHeight: U } = A; + y + L >= U + ? ((v = !0), (b = !1)) + : y <= 0 + ? ((v = !1), (b = !0)) + : ((v = !1), (b = !1)), + ((O < 0 && v) || (O > 0 && b)) && S.preventDefault(); + }; + return ( + Xt(() => { + const S = a.value.socketsErrorMessage; + (u = S), + (window.ivasMessengerSettings.onError = function (k) { + (f.value = !0), + o.value.length > 0 && + o.value[o.value.length - 1] !== k.message && + (console.error(S, k), + o.value.push(S), + o.value.push(k.message)); + }), + d.value && + (d.value.addEventListener("touchstart", E, { passive: !1 }), + d.value.addEventListener("touchmove", T, { passive: !1 })); + }), + bs(() => { + d.value && + (d.value.removeEventListener("touchstart", E), + d.value.removeEventListener("touchmove", T)); + }), + (S, k) => ( + R(), + W( + "div", + { + ref_key: "container", + ref: d, + class: wt([ + "overflow-hidden text-[14px] flex-grow relative", + { "max-h-[calc(100%-131px)]": I(t) == "chat" }, + ]), + }, + [ + I(i) ? (R(), xe(Zv, { key: 0 })) : Se("", !0), + V( + vn, + { + css: !1, + appear: "", + onEnter: p, + onLeave: _, + onBeforeEnter: h, + }, + { + default: Te(() => [ + I(s) + ? (R(), + W("div", o2, [ + I(f) && I(u) + ? (R(), + xe( + i2, + { key: 0 }, + { + default: Te(() => [ + oe("p", null, He(I(u)), 1), + ]), + _: 1, + } + )) + : Se("", !0), + V($l), + ])) + : Se("", !0), + !I(i) && I(t) === "main" + ? (R(), + xe(n2, { + key: 1, + class: + "px-5 pt-5 overflow-y-auto h-full overscroll-contain", + tabindex: "0", + })) + : !I(i) && I(t) === "chat" && !I(r) + ? (R(), + xe(kb, { + key: 2, + class: + "px-5 pt-5 overflow-y-auto overflow-x-hidden h-full overscroll-contain", + tabindex: "0", + })) + : !I(i) && I(t) === "chat" && I(r) + ? (R(), + xe(Ib, { + key: 3, + class: "overflow-y-auto overscroll-contain", + tabindex: "0", + })) + : !I(i) && I(t) === "conversations" + ? (R(), + xe(jb, { + key: 4, + class: + "overflow-y-auto overflow-x-hidden h-full overscroll-contain", + tabindex: "0", + })) + : (R(), W("div", a2)), + ]), + _: 1, + } + ), + ], + 2 + ) + ) + ); + }, + }); + var si = new Map(); + function c2(n) { + var e = si.get(n); + e && e.destroy(); + } + function u2(n) { + var e = si.get(n); + e && e.update(); + } + var ii = null; + typeof window > "u" + ? (((ii = function (n) { + return n; + }).destroy = function (n) { + return n; + }), + (ii.update = function (n) { + return n; + })) + : (((ii = function (n, e) { + return ( + n && + Array.prototype.forEach.call(n.length ? n : [n], function (t) { + return (function (r) { + if ( + r && + r.nodeName && + r.nodeName === "TEXTAREA" && + !si.has(r) + ) { + var s, + i = null, + o = window.getComputedStyle(r), + a = + ((s = r.value), + function () { + c({ + testForHeightReduction: + s === "" || !r.value.startsWith(s), + restoreTextAlign: null, + }), + (s = r.value); + }), + l = function (f) { + r.removeEventListener("autosize:destroy", l), + r.removeEventListener("autosize:update", u), + r.removeEventListener("input", a), + window.removeEventListener("resize", u), + Object.keys(f).forEach(function (h) { + return (r.style[h] = f[h]); + }), + si.delete(r); + }.bind(r, { + height: r.style.height, + resize: r.style.resize, + textAlign: r.style.textAlign, + overflowY: r.style.overflowY, + overflowX: r.style.overflowX, + wordWrap: r.style.wordWrap, + }); + r.addEventListener("autosize:destroy", l), + r.addEventListener("autosize:update", u), + r.addEventListener("input", a), + window.addEventListener("resize", u), + (r.style.overflowX = "hidden"), + (r.style.wordWrap = "break-word"), + si.set(r, { destroy: l, update: u }), + u(); + } + function c(f) { + var h, + p, + _ = f.restoreTextAlign, + d = _ === void 0 ? null : _, + m = f.testForHeightReduction, + v = m === void 0 || m, + b = o.overflowY; + if ( + r.scrollHeight !== 0 && + (o.resize === "vertical" + ? (r.style.resize = "none") + : o.resize === "both" && (r.style.resize = "horizontal"), + v && + ((h = (function (T) { + for ( + var S = []; + T && T.parentNode && T.parentNode instanceof Element; + + ) + T.parentNode.scrollTop && + S.push([T.parentNode, T.parentNode.scrollTop]), + (T = T.parentNode); + return function () { + return S.forEach(function (k) { + var O = k[0], + A = k[1]; + (O.style.scrollBehavior = "auto"), + (O.scrollTop = A), + (O.style.scrollBehavior = null); + }); + }; + })(r)), + (r.style.height = "")), + (p = + o.boxSizing === "content-box" + ? r.scrollHeight - + (parseFloat(o.paddingTop) + + parseFloat(o.paddingBottom)) + : r.scrollHeight + + parseFloat(o.borderTopWidth) + + parseFloat(o.borderBottomWidth)), + o.maxHeight !== "none" && p > parseFloat(o.maxHeight) + ? (o.overflowY === "hidden" && + (r.style.overflow = "scroll"), + (p = parseFloat(o.maxHeight))) + : o.overflowY !== "hidden" && + (r.style.overflow = "hidden"), + (r.style.height = p + "px"), + d && (r.style.textAlign = d), + h && h(), + i !== p && + (r.dispatchEvent( + new Event("autosize:resized", { bubbles: !0 }) + ), + (i = p)), + b !== o.overflow && !d) + ) { + var E = o.textAlign; + o.overflow === "hidden" && + (r.style.textAlign = E === "start" ? "end" : "start"), + c({ restoreTextAlign: E, testForHeightReduction: !0 }); + } + } + function u() { + c({ testForHeightReduction: !0, restoreTextAlign: null }); + } + })(t); + }), + n + ); + }).destroy = function (n) { + return n && Array.prototype.forEach.call(n.length ? n : [n], c2), n; + }), + (ii.update = function (n) { + return n && Array.prototype.forEach.call(n.length ? n : [n], u2), n; + })); + var Vd = ii; + const f2 = { key: 0, class: "footer" }, + h2 = { class: "flex flex-grow relative" }, + d2 = ["placeholder", "onKeydown", "disabled", "value"], + p2 = { key: 0, class: "footer-limit" }, + m2 = ["disabled"], + _2 = ["disabled"], + g2 = { + key: 2, + class: "flex relative", + style: { width: "50px" }, + "aria-label": "Uploading file", + title: "Uploading file", + }, + v2 = ["disabled"], + y2 = de({ + __name: "MessengerFooter", + props: { doneTransition: { type: Boolean } }, + setup(n) { + const e = n, + t = Ce(), + { + isLoading: r, + settings: s, + userId: i, + conversationId: o, + newConversation: a, + isAuthIframeVisible: l, + isMessengerDisabled: c, + areAttachmentsEnabled: u, + pendingAttachment: f, + storageUrl: h, + workspaceId: p, + view: _, + } = ve(t), + d = An(), + { sendMessage: m } = d, + { isUserMessage: v } = ve(d), + b = Y(""), + E = Y(!1), + T = Y(350), + S = Y(!1), + k = Y(), + O = Y(null), + A = Y(null), + y = Y(!1); + Xt(() => { + !O.value || + !s.value || + ((T.value = s.value.inputCharLimit || T.value), Vd(O.value), K()); + }), + sa(() => { + O.value && Vd.update(O.value); + }); + async function L() { + return new Promise((q, le) => { + ce.emit( + "ApiToken:create", + { + workspaceId: p.value, + conversationId: o.value, + name: "Storage", + }, + (Ee) => { + Ee.token ? q(Ee.token) : le("error"); + } + ); + }); + } + const U = Qe(() => (b.value.length / T.value) * 100), + F = Qe(() => T.value - b.value.length), + K = () => { + (ji() && a.value) || + (e.doneTransition && + ms(function () { + var q; + (q = O.value) == null || q.focus(); + })); + }, + ae = () => { + (S.value = !1), + ce.emit("isTyping", { + userId: i.value, + name: "", + typing: !1, + conversationId: o.value, + }); + }, + be = (q) => { + q.which != 13 && + q.keyCode != 13 && + (S.value == !1 + ? ((S.value = !0), + ce.emit("isTyping", { + userId: i.value, + name: "", + typing: !0, + conversationId: o.value, + }), + (k.value = setTimeout(ae, 2e3))) + : (clearTimeout(k.value), (k.value = setTimeout(ae, 2e3)))); + }; + async function ne(q, le) { + if ( + ( + await fetch(le, { + method: "PUT", + headers: { "Content-Type": q.type }, + body: q, + }) + ).ok + ) + return console.log("File uploaded successfully"), !0; + throw new Error("File upload failed"); + } + async function Z(q) { + const le = { + userId: i.value, + service: "messenger", + type: "attachment", + }, + Ee = await L(), + Ue = await fetch( + `${h.value}/v1/url/${p.value}?fileName=${q.name}&contentLength=${ + q == null ? void 0 : q.size + }&contentType=${q.type}&metadata=${JSON.stringify(le)}`, + { headers: { Authorization: `Bearer ${Ee}` } } + ), + Ae = await Ue.json(); + if (!Ue.ok) throw new Error(Ae.error.message); + await ne(q, Ae.uploadUrl); + const pn = await fetch(`${h.value}/v1/url/${p.value}/${Ae.fileId}`, { + headers: { Authorization: `Bearer ${Ee}` }, + }), + rn = await pn.json(); + if (!pn.ok) throw new Error(rn.error.message); + return rn; + } + async function se() { + var q; + if ( + (o.value || (E.value = !0), + (b.value && b.value.trim() !== "") || f.value) + ) { + const le = { input: b.value.substring(0, T.value) }; + if (f.value && u.value) + try { + (y.value = !0), (u.value = !1); + const Ee = Array.from(f.value); + (b.value = ""), + (f.value = void 0), + await Promise.all( + Ee.map(async (Ue) => { + const Ae = await Z(Ue); + return "error" in Ae + ? Ae + : { + url: Ae.downloadUrl, + fileName: Ue.name, + mimeType: Ue.type, + }; + }) + ) + .then((Ue) => { + if ("error" in Ue[0]) { + le.input && m(le); + const Ae = `Error uploading file: ${Ee[0].name} ${Ue[0].error.message}`; + le.input = + Ae.length < 256 ? Ae : Ae.substring(0, 256) + "..."; + } else + le.input || (le.input = `File attached: ${Ee[0].name}`), + (le.metadata = { attachments: [Ue[0]] }); + }) + .catch((Ue) => { + le.input && m(le); + const Ae = `Error uploading file: ${Ee[0].name} ${Ue}`; + le.input = + Ae.length < 256 ? Ae : Ae.substring(0, 256) + "..."; + }); + } catch (Ee) { + console.log(Ee); + } finally { + (y.value = !1), (u.value = !0); + } + m(le), + (b.value = ""), + (f.value = void 0), + (q = O.value) == null || q.focus(); + } + } + let et, Ge; + function ue() { + var le; + const q = (le = A.value) == null ? void 0 : le.files; + q && Hd(q[0].type) ? et(q) : Ge(); + } + async function Pe() { + return await new Promise((q, le) => { + var Ue; + (et = q), (Ge = le); + const Ee = A.value; + Ee && (Ee.value = ""), (Ue = A.value) == null || Ue.click(); + }); + } + async function ke() { + try { + const q = await Pe(); + f.value = q; + } catch {} + } + function it() { + f.value = void 0; + } + return ( + Ve(o, (q) => { + q && E.value && ((E.value = !1), K()); + }), + Ve( + () => e.doneTransition, + () => { + K(); + } + ), + Ve(r, (q) => { + q || K(); + }), + Ve(v, (q) => { + q && K(); + }), + (q, le) => + I(s) + ? (R(), + W("div", f2, [ + oe("div", h2, [ + oe( + "textarea", + { + ref_key: "textarea", + ref: O, + role: "textbox", + class: "outline-none", + rows: "1", + placeholder: I(s).inputPlaceholder + ? I(s).inputPlaceholder + : "Enter question here", + onKeydown: [Pm(Hi(se, ["prevent"]), ["enter"]), be], + disabled: I(r) || E.value || I(c), + spellcheck: "false", + value: b.value, + onInput: + le[0] || + (le[0] = (Ee) => (b.value = Ee.target.value)), + }, + ` + `, + 40, + d2 + ), + U.value > 100 + ? (R(), W("div", p2, He(F.value), 1)) + : Se("", !0), + ]), + (I(u) && I(_) === "chat" && !I(a)) || y.value + ? (R(), + W( + we, + { key: 0 }, + [ + I(f) + ? (R(), + W( + "button", + { + key: 0, + type: "button", + class: "footer-button", + onClick: it, + disabled: I(r) || I(l) || I(c), + "aria-label": "Remove Attachment", + title: "Remove Attachment", + }, + [ + V(zn, { + icon: "file-circle-minus", + width: 26, + viewBox: "0 0 576 512", + }), + ], + 8, + m2 + )) + : y.value + ? (R(), W("div", g2, [V($l, { size: 26 })])) + : (R(), + W( + "button", + { + key: 1, + type: "button", + class: "footer-button", + onClick: ke, + disabled: I(r) || I(l) || I(c) || y.value, + "aria-label": "Add Attachment", + title: "Add Attachment", + }, + [ + V( + zn, + { + icon: y.value + ? "file-zipper" + : "paperclip", + width: 26, + }, + null, + 8, + ["icon"] + ), + ], + 8, + _2 + )), + oe( + "input", + { + type: "file", + hidden: "", + ref_key: "hiddenFileInput", + ref: A, + onChange: ue, + accept: + "text/*,image/*,audio/*,video/*,.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.vsdx,.odt,.ods,.odp,.eml,application/vnd.visio", + }, + null, + 544 + ), + ], + 64 + )) + : Se("", !0), + oe( + "button", + { + type: "button", + class: "footer-button", + onClick: se, + disabled: + I(r) || + I(l) || + (!I(f) && (!b.value || b.value.trim() == "")) || + I(c), + "aria-label": "Send Message", + title: "Send Message", + }, + [V(zn, { icon: "send", width: 26, viewBox: "0 0 24 24" })], + 8, + v2 + ), + ])) + : Se("", !0) + ); + }, + }), + Cw = "", + b2 = vt(y2, [["__scopeId", "data-v-2e63d3f1"]]), + w2 = de({ + __name: "MessengerHeaderCloseButton", + setup(n) { + const e = Ce(), + { hideMessenger: t } = e, + { isCloseButtonVisible: r } = ve(e); + return (s, i) => + I(r) + ? (R(), + W( + "button", + { + key: 0, + onClick: i[0] || (i[0] = (...o) => I(t) && I(t)(...o)), + "aria-label": "close", + }, + [ + V(zn, { + icon: "xmark", + width: 12, + color: "currentColor", + viewBox: "0 0 384 512", + }), + ] + )) + : Se("", !0); + }, + }), + Aw = "", + ko = vt(w2, [["__scopeId", "data-v-959998cb"]]), + T2 = oe("div", { class: "paticipant-messenger-status" }, null, -1), + x2 = { key: 0, class: "header-participant-info" }, + E2 = { class: "header-participant-info-name" }, + S2 = { class: "header-participant-info-type" }, + C2 = { key: 1, class: "header-participant-info" }, + A2 = { key: 0, class: "header-participant-info-name" }, + M2 = { class: "header-participant-info-type" }, + k2 = { key: 2, class: "text-sm" }, + O2 = de({ + __name: "MessengerHeaderParticipants", + setup(n) { + const e = Ce(), + { userId: t, settings: r, isCloseButtonVisible: s } = ve(e), + i = An(), + { participants: o } = ve(i), + a = { name: "Anonymous", type: "User" }, + l = Qe(() => + Object.values(o.value).filter((f) => f.userId !== t.value) + ), + c = Qe(() => + l.value ? l.value.map((h) => h.name || a.name).join(", ") : "" + ), + u = (f, h) => { + ss.fromTo(f, { x: 10 }, { duration: 0.26, x: 0, onComplete: h }); + }; + return (f, h) => { + var p, _, d; + return ( + R(), + W( + "div", + { + class: wt([ + "header-participants", + { + "ml-5": (p = I(r)) == null ? void 0 : p.chatOnlyMode, + "mr-5": !I(s), + }, + ]), + }, + [ + V( + xa, + { + tag: "div", + class: "header-participants-avatars", + onEnter: u, + }, + { + default: Te(() => [ + (R(!0), + W( + we, + null, + Jn( + l.value, + (m, v) => ( + R(), + W( + "div", + { + key: v, + class: "header-participants-avatars-container", + }, + [ + V( + Ao, + { + avatar: m.avatar, + iconId: m.userId, + title: m.name, + class: + "message-item-avatar-container-avatar", + }, + null, + 8, + ["avatar", "iconId", "title"] + ), + T2, + ] + ) + ) + ), + 128 + )), + ]), + _: 1, + } + ), + l.value.length === 1 + ? (R(), + W("div", x2, [ + oe("div", E2, He(l.value[0].name || a.name), 1), + oe("div", S2, He(l.value[0].type || a.type), 1), + ])) + : l.value.length > 1 + ? (R(), + W("div", C2, [ + (_ = I(r)) != null && _.chatParticipantsTitle + ? (R(), W("div", A2, He(I(r).chatParticipantsTitle), 1)) + : Se("", !0), + oe("div", M2, He(c.value), 1), + ])) + : (R(), + W( + "div", + k2, + He( + ((d = I(r)) == null ? void 0 : d.onlyParticipant) || + "You are the only participant in this conversation." + ), + 1 + )), + ], + 2 + ) + ); + }; + }, + }), + Mw = "", + I2 = de({ + __name: "MessengerHeaderReturnButton", + setup(n) { + const e = Ce(), + { setView: t } = e, + { viewHistory: r, settings: s } = ve(e), + i = Cn(), + { getConversations: o } = i, + a = () => { + Cn().$reset(), + An().$reset(), + r.value[1] === "conversations" ? o() : t("main"); + }, + l = () => { + e.setNewUserSession(); + }; + return (c, u) => { + var f; + return (f = I(s)) != null && f.chatOnlyMode + ? I(s).resetBtn + ? (R(), + W("button", { key: 1, onClick: l, "aria-label": "reset" }, [ + V(zn, { + icon: "refresh", + width: 12, + color: "currentColor", + viewBox: "0 0 512 512", + }), + ])) + : Se("", !0) + : (R(), + W("button", { key: 0, onClick: a, "aria-label": "back" }, [ + V(zn, { + icon: "return", + width: 12, + color: "currentColor", + viewBox: "0 0 320 512", + }), + ])); + }; + }, + }), + kw = "", + oc = vt(I2, [["__scopeId", "data-v-d4ccac0e"]]), + R2 = { class: "flex h-full items-center justify-between gap-3 px-2" }, + P2 = de({ + __name: "MessengerHeaderChat", + setup(n) { + return (e, t) => (R(), W("div", R2, [V(oc), V(O2), V(ko)])); + }, + }), + L2 = { class: "flex h-full items-center gap-3 px-2" }, + D2 = de({ + __name: "MessengerHeaderChatNew", + setup(n) { + const e = Ce(), + { settings: t, isCloseButtonVisible: r } = ve(e); + return (s, i) => { + var o, a; + return ( + R(), + W("div", L2, [ + V(oc), + (o = I(t)) != null && o.newConversationHeaderTitle + ? (R(), + W( + "div", + { + key: 0, + class: wt([ + "header-title", + { "header-title--right": !I(r) }, + ]), + }, + He( + (a = I(t)) == null ? void 0 : a.newConversationHeaderTitle + ), + 3 + )) + : Se("", !0), + V(ko), + ]) + ); + }; + }, + }), + Ow = "", + N2 = { class: "flex h-full items-center justify-between gap-3 px-2" }, + B2 = de({ + __name: "MessengerHeaderConversations", + setup(n) { + const e = Ce(), + { settings: t, isCloseButtonVisible: r } = ve(e); + return (s, i) => { + var o; + return ( + R(), + W("div", N2, [ + V(oc), + oe( + "div", + { + class: wt(["header-title", { "header-title--right": !I(r) }]), + }, + He( + ((o = I(t)) == null ? void 0 : o.yourConversations) || + "Your conversations" + ), + 3 + ), + V(ko), + ]) + ); + }; + }, + }), + F2 = { key: 0, class: "h-auto header-main" }, + $2 = { key: 0, class: "header-main-logo" }, + U2 = ["src"], + H2 = { key: 1, class: "header-main-title" }, + z2 = { key: 2, class: "header-main-subtitle" }, + qd = de({ + __name: "MessengerHeaderMain", + setup(n) { + const e = Ce(), + { settings: t } = ve(e); + return (r, s) => + I(t) + ? (R(), + W("div", F2, [ + I(t).logo + ? (R(), + W("div", $2, [ + oe("img", { src: I(t).logo, alt: "logo" }, null, 8, U2), + ])) + : Se("", !0), + I(t).mainTitle + ? (R(), W("div", H2, He(I(t).mainTitle), 1)) + : Se("", !0), + I(t).mainSubTitle + ? (R(), + W("div", z2, [ + V( + Co, + { + vHtml: I(t).mainSubTitle, + sanitize: I(t).sanitizeVHTML, + }, + null, + 8, + ["vHtml", "sanitize"] + ), + ])) + : Se("", !0), + V(ko, { class: "absolute top-0 right-0 mx-2 my-5" }), + ])) + : Se("", !0); + }, + }), + Iw = "", + ac = 75, + Oo = 10, + W2 = de({ + __name: "MessengerHeader", + setup(n) { + const e = Ce(), + { view: t, newConversation: r, settings: s } = ve(e), + i = cn("tl"), + o = Y(null), + a = Y(null); + let l = 0, + c = !0; + const u = (m) => { + const b = getComputedStyle(m).display; + let E = 0; + (m.style.display = "block"), + (E = m.offsetHeight), + (m.style.display = b), + m.remove(), + (l = E); + }, + f = Qe(() => { + var m; + return ( + t.value === "main" || + (((m = s.value) == null ? void 0 : m.chatOnlyMode) && r.value) + ); + }), + h = () => (f.value ? Math.max(l, ac) : ac); + Xt(() => { + setTimeout(() => { + a.value && + (u(a.value), + i.fromTo(o.value, { height: ac }, { height: h() }, 0)); + }); + }), + Ve( + t, + (m, v) => { + ((!v || v !== "main") && m === "main") || + (m === "conversations" && v === "chat") + ? (c = !1) + : (c = !0); + }, + { immediate: !0 } + ); + const p = (m) => { + m.style.opacity = "0"; + for (const v of m.children) + (v.style.opacity = "0"), + (v.style.transform = c + ? `translateX(${Oo}px)` + : `translateX(-${Oo}px)`); + }, + _ = (m, v) => { + i.to(m, { x: 0, opacity: 1 }), + i.to( + m.children, + { opacity: 1, x: 0, stagger: 0.1, onComplete: v }, + ">-=50%" + ); + }, + d = (m, v) => { + i.to(m.children, { x: c ? -Oo : Oo, opacity: 0, stagger: 0.1 }), + i.to(o.value, { height: h(), onComplete: v }); + }; + return (m, v) => ( + R(), + W( + we, + null, + [ + oe( + "div", + { ref_key: "mainEl", ref: a, class: "hidden" }, + [V(qd)], + 512 + ), + oe( + "div", + { ref_key: "headerEl", ref: o, class: "header" }, + [ + V( + vn, + { + css: !1, + appear: "", + onEnter: _, + onLeave: d, + onBeforeEnter: p, + }, + { + default: Te(() => [ + f.value + ? (R(), xe(qd, { key: 0 })) + : I(t) === "chat" && !I(r) + ? (R(), xe(P2, { key: 1 })) + : I(t) === "chat" && I(r) + ? (R(), xe(D2, { key: 2 })) + : (R(), xe(B2, { key: 3 })), + ]), + _: 1, + } + ), + ], + 512 + ), + ], + 64 + ) + ); + }, + }), + Rw = "", + V2 = { class: "flex flex-col h-full" }, + q2 = { class: "bg-white" }, + j2 = de({ + __name: "Messenger", + setup(n) { + const e = Ce(), + { newConversation: t, view: r, isFullscreen: s, showLogs: i } = ve(e), + o = Y(), + a = Y(!1), + l = () => { + a.value = !1; + }, + c = () => { + a.value = !0; + }, + u = () => { + a.value = !1; + }, + f = Y({ height: 0 }); + Es("resized", f); + const h = (d) => { + const m = d.target; + o.value && (o.value.style.height = m.height + "px"), + setTimeout(() => { + f.value = { height: m.height }; + }, 10); + }, + p = (d) => { + o.value && (o.value.style.top = d.target.offsetTop + "px"); + }, + _ = (d) => { + d.touches.length > 1 && (d.preventDefault(), d.stopPropagation()); + }; + return ( + Xt(() => { + visualViewport && + s.value && + o.value && + (visualViewport.addEventListener("resize", h), + visualViewport.addEventListener("scroll", p), + o.value.addEventListener("touchstart", _, { passive: !1 })); + }), + bs(() => { + visualViewport && + s.value && + o.value && + (visualViewport.removeEventListener("resize", h), + visualViewport.removeEventListener("scroll", p), + o.value.removeEventListener("touchstart", _)); + }), + (d, m) => ( + R(), + W( + "div", + { + ref_key: "container", + ref: o, + class: wt(["app", { "app--fullscreen": I(s) }]), + }, + [ + I(i) ? (R(), xe(Pv, { key: 0 })) : Se("", !0), + oe("div", V2, [ + V(W2), + V(l2, { class: "bg-white" }), + oe("div", q2, [ + V( + vn, + { + name: "slide-up", + onBeforeEnter: l, + onAfterEnter: c, + onAfterLeave: u, + }, + { + default: Te(() => [ + I(t) || I(r) === "chat" + ? (R(), + xe( + b2, + { key: 0, doneTransition: a.value }, + null, + 8, + ["doneTransition"] + )) + : Se("", !0), + ]), + _: 1, + } + ), + ]), + ]), + ], + 2 + ) + ) + ); + }, + }), + Pw = "", + jd = 22, + Y2 = de({ + __name: "MessengerLauncher", + setup(n) { + const e = Ce(), + { showMessenger: t, hideMessenger: r } = e, + { isMessengerVisible: s, settings: i } = ve(e), + o = () => { + s.value ? r() : t(); + }, + a = qi(i.value ? i.value.actionColor : "#000000"); + return (l, c) => ( + R(), + W("button", { class: "launcher", onClick: o, "aria-label": "Open" }, [ + V( + vn, + { name: "rotate-opacity", mode: "out-in" }, + { + default: Te(() => [ + I(s) + ? (R(), + xe( + zn, + { key: "close", icon: "close", width: jd, color: I(a) }, + null, + 8, + ["color"] + )) + : (R(), + xe( + zn, + { key: "open", icon: "open", width: jd, color: I(a) }, + null, + 8, + ["color"] + )), + ]), + _: 1, + } + ), + ]) + ); + }, + }), + Lw = "", + K2 = Symbol("socketsKey"), + X2 = de({ + __name: "App", + setup(n) { + Es(K2, ce); + const e = Ce(), + { settings: t, isMessengerVisible: r, isFullscreen: s } = ve(e), + i = Qe(() => + t.value + ? { + "--primary-color": t.value.backgroundColorPrimary, + "--secondary-color": t.value.backgroundColorSecondary, + "--action-color": t.value.actionColor, + "--action-lighten-color": t.value.actionColor + 30, + "--primary-lighten-color": + t.value.backgroundColorPrimary + 20, + "--text-color": qi(t.value.backgroundColorPrimary), + "--text-lighten-color": + qi(t.value.backgroundColorPrimary) + "cc", + "--action-text-color": qi(t.value.actionColor), + "--hovercolor": t.value.backgroundColorPrimary + "20", + "--font-family": + t.value.fontFamily || + 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"', + } + : {} + ), + o = document.head.querySelector('meta[name="viewport"]'), + a = document.createElement("meta"); + a.setAttribute("id", "ivas-messenger-viewport-meta"), + (a.name = "viewport"), + (a.content = + "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"); + const l = document.createElement("style"); + l.setAttribute("id", "ivas-messenger-mobile-style"), + (l.innerHTML = ` + html.ivas-messenger-mobile-is-open, + html.ivas-messenger-mobile-is-open > body { + position: static !important; + overflow: hidden !important; + touch-action: none !important; + } +`); + const c = Y(!1); + Ve( + r, + (f, h) => { + (f === !0 || h === !0) && (c.value = !0), + s.value && + (f || at.fullscreen + ? (o + ? document.head.replaceChild(a, o) + : document.head.appendChild(a), + document.head.appendChild(l), + document.documentElement.classList.add( + "ivas-messenger-mobile-is-open" + )) + : (a.remove(), + l.remove(), + o && document.head.appendChild(o), + document.documentElement.classList.remove( + "ivas-messenger-mobile-is-open" + ))); + }, + { immediate: !0 } + ), + ss.config({ nullTargetWarn: !1 }); + const u = ss.timeline({ defaults: { duration: 0.2 } }); + return ( + Es("tl", u), + (f, h) => ( + R(), + W( + we, + null, + [ + V(Ev), + I(t) + ? (R(), + W( + "div", + { key: 0, style: On(i.value) }, + [ + V( + vn, + { + appear: "", + name: + !I(ji)() && !I(at).fullscreen + ? "toggle-height" + : I(at).fullscreen + ? "" + : "mobile-slide-up", + }, + { + default: Te(() => [ + I(at).fullscreen || I(r) + ? (R(), xe(j2, { key: 0 })) + : Se("", !0), + ]), + _: 1, + }, + 8, + ["name"] + ), + V( + vn, + { name: "slide-up", appear: "" }, + { + default: Te(() => [ + (!I(at).fullscreen && + I(t).launcher && + !I(t).launcher.hideDefault && + (I(t).launcher.beforeInteraction || + I(r) === !1)) || + (c.value && !I(t).launcher.hideDefault) + ? (R(), xe(Y2, { key: 0 })) + : Se("", !0), + ]), + _: 1, + } + ), + ], + 4 + )) + : Se("", !0), + ], + 64 + ) + ) + ); + }, + }), + Dw = "", + Nw = "", + G2 = Bm(); + { + ks(G2); + const n = Tm(X2); + customElements.define("ivas-messenger-ui", n); + } +})(); +(function () { + "use strict"; + ((e) => { + try { + if (typeof document < "u") { + const t = document.createElement("style"); + t.appendChild(document.createTextNode(e)), + document + .getElementsByTagName("ivas-messenger-ui")[0] + .shadowRoot.prepend(t); + } + } catch (t) { + console.error("vite-plugin-css-injected-by-js", t); + } + })( + 'button.close-btn{font-family:inherit;position:relative;display:inline-block;box-sizing:border-box;border:1px solid black;min-width:64px;height:20px;vertical-align:middle;text-align:center;font-size:14px;font-weight:500;line-height:16px;cursor:pointer;background-color:#d3d3d3;margin-bottom:10px}.overlay[data-v-4a03b304]{display:flex;justify-content:center;align-items:center;flex:1 1 0%;background:transparent;position:absolute;right:0;left:0;bottom:0;top:0;z-index:1}.spinner[data-v-4a03b304]{width:45px;height:45px;display:inline-block;border-width:2px;border-color:#0000000d;border-top-color:#c4c4c4;animation:spin-4a03b304 1s infinite linear;border-radius:100%;border-style:solid}@keyframes spin-4a03b304{to{transform:rotate(360deg)}}.btn{font-family:inherit;position:relative;display:inline-block;box-sizing:border-box;border:none;border-radius:6px;padding:0 16px;min-width:64px;height:40px;vertical-align:middle;text-align:center;text-overflow:ellipsis;color:var(--action-text-color);background-color:var(--action-color);font-size:14px;font-weight:500;line-height:36px;overflow:hidden;outline:none;cursor:pointer;transition:background-color .2s}.btn::-moz-focus-inner{border:none}.btn:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:var(--action-text-color);opacity:0;transition:opacity .2s}.btn:after{content:"";position:absolute;left:50%;top:50%;border-radius:50%;padding:50%;width:32px;height:32px;background-color:var(--action-text-color);opacity:0;transform:translate(-50%,-50%) scale(1);transition:opacity 1s,transform .5s}.btn:hover:before{opacity:.08}.btn:focus:before{opacity:.24}.btn:hover:focus:before{opacity:.3}.btn:active:after{opacity:.32;transform:translate(-50%,-50%) scale(0);transition:transform 0s}.card{border-radius:8px;background-color:#fff;box-shadow:#11111a1a 0 4px 16px,#11111a0d 0 8px 32px}.avatar-container{display:flex;justify-content:center;align-items:center}.avatar{display:flex;border-radius:50%;align-items:center;justify-content:center;overflow:hidden;height:40px;width:40px}.avatar--identicon{background-color:#aaa}.avatar img{height:40px;width:40px}.chat-message--customer[data-v-cf972bf8]{background-color:var(--primary-color);color:var(--text-color)}.chat-message-typing[data-v-cf972bf8]{position:relative;width:20px;height:5px}.chat-message-typing span[data-v-cf972bf8]{content:"";animation:blink-cf972bf8 1.5s infinite;animation-fill-mode:both;height:5px;width:5px;background:#7e7e7e;position:absolute;left:0;top:0;border-radius:50%}.chat-message-typing span[data-v-cf972bf8]:nth-child(2){animation-delay:.2s;margin-left:7.5px}.chat-message-typing span[data-v-cf972bf8]:nth-child(3){animation-delay:.4s;margin-left:15px}.message-attachments .attachment[data-v-cf972bf8]{margin:5px;padding:5px;background-color:#ebeaea;border-radius:5px;text-align:center;overflow-wrap:break-word;overflow:hidden}.message-attachments .attachment.customer[data-v-cf972bf8]{background-color:var(--primary-color);color:var(--text-color)}.message-attachments .attachment a[data-v-cf972bf8],.message-attachments .attachment a[data-v-cf972bf8]:link,.message-attachments .attachment a[data-v-cf972bf8]:visited{color:inherit!important}@keyframes blink-cf972bf8{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}.se-messenger-chip{display:inline-block;background-color:var(--action-lighten-color);color:var(--action-color);font-weight:500;padding:12px;border-radius:8px;font-size:14px;cursor:pointer;transition:all .3s ease-out;text-align:center}.se-messenger-chip:hover{background-color:var(--action-color);color:var(--text-color)!important}.chat-options[data-v-3b15ec9d]{padding-bottom:15px;display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.chat-options .chat-option[data-v-3b15ec9d]{display:block}.chat-options .chat-option.chat-option--selected[data-v-3b15ec9d]{background-color:var(--action-color);color:var(--text-color)}.overlay[data-v-710ba211]{position:absolute;top:0;left:0;width:100%;height:100%;background:white;opacity:.75!important;display:none}.overlay .content[data-v-710ba211]{margin:10px;padding:10px;border:2px dashed #444;height:calc(100% - 20px);display:flex;justify-content:center;align-items:center}.dropzone.dragging .overlay[data-v-710ba211]{display:block;z-index:2}.conversation-list-item[data-v-8797c078]{cursor:pointer;position:relative;height:75px;transition:background-color .2s linear}.conversation-list-item-body[data-v-8797c078]{position:absolute;left:20px;right:20px;height:100%;display:flex;align-items:center}.conversation-list-item:last-child .conversation-list-item-body[data-v-8797c078]{border-bottom:none}.conversation-list-item[data-v-8797c078]:hover{background-color:var(--hovercolor);border-bottom-color:transparent}.conversation-list-item-avatar[data-v-8797c078]{margin-right:10px}.conversation-list-item-info-container[data-v-8797c078]{flex-grow:1;min-width:0;font-size:13px;height:35px;display:flex;justify-content:space-between;flex-direction:column}.conversation-list-item-name[data-v-8797c078]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:150px}.conversation-list-item-input[data-v-8797c078]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.custom-card{min-height:var(--0dfe985a)}div[data-v-54a6c695]{font-weight:500;padding:12px;margin:1.25rem;border-radius:8px;font-size:14px;background-color:var(--primary-color);color:var(--text-color)}.footer[data-v-2e63d3f1]{display:flex;flex-direction:row;align-items:center;border-top:1px solid rgba(204,204,204,.5);background-color:#fff;position:relative}.footer-limit[data-v-2e63d3f1]{display:flex;position:absolute;right:20px;align-items:center;bottom:18px;background-color:#f44336;color:#fff;font-size:.7em;padding:2px 4px;border-radius:3px}.footer textarea[data-v-2e63d3f1]{max-height:200px;font-size:14px;flex-grow:1;resize:none;padding:20px;box-sizing:border-box;line-height:1.3;border:none;white-space:pre-wrap;overflow-wrap:break-word;outline-offset:-5px;font-family:inherit;overflow-x:hidden!important}.footer-button[data-v-2e63d3f1]{margin-top:auto;padding:16px 20px 16px 10px;opacity:.75;transition:all .25s;display:flex;justify-content:center;align-content:center;color:#aaa;cursor:default}.footer-button[data-v-2e63d3f1]:not(:disabled){opacity:.9;color:var(--action-color);cursor:pointer}.footer-button[data-v-2e63d3f1]:not(:disabled):hover{opacity:1}button[data-v-959998cb]{display:flex;align-items:center;justify-content:center;border-radius:50%;width:45px;max-width:45px;height:45px;max-height:45px;flex-shrink:0;transition:all .15s ease}button[data-v-959998cb]:not(.disabled):hover{background-color:#00000026;cursor:pointer}.header-participants{display:flex;align-items:center;flex-grow:1;min-width:0}.header-participants-avatars{display:flex}.header-participant-info{display:flex;flex-direction:column;padding-left:12px;min-width:0;text-transform:capitalize}.header-participant-info-name{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-participant-info-type{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-participants-avatars-container{position:relative}.header-participants-avatars-container .avatar{margin-left:-8px;-webkit-mask-image:radial-gradient(ellipse 25px 20px at 60px center,rgba(0,0,0,0) 30px,#000 30.99px);mask-image:radial-gradient(ellipse 25px 20px at 60px center,rgba(0,0,0,0) 30px,#000 30.99px)}.header-participants-avatars-container:last-of-type .avatar{-webkit-mask-image:none;mask-image:none}.message-item-avatar-container-avatar{width:auto!important}button[data-v-d4ccac0e]{display:flex;align-items:center;justify-content:center;border-radius:50%;width:45px;max-width:45px;height:45px;max-height:45px;flex-shrink:0;transition:all .15s ease}button[data-v-d4ccac0e]:not(.disabled):hover{background-color:#00000026;cursor:pointer}.header-title{width:100%;text-align:center}.header-title--right{margin-right:45px}.header-main{padding:24px 35px;display:flex;flex-direction:column;justify-content:center}.header-main div:nth-child(2){padding-top:10px}.header-main div:nth-child(3){padding-top:5px}.header-main-logo{height:30px}.header-main-logo img{max-width:100%;max-height:100%;margin:auto 0;display:block}.header-main-title{font-size:30px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--text-color)}.header-main-subtitle{font-size:15px;font-weight:500;line-height:1.4;overflow:hidden;color:var(--text-lighten-color)}.header-main-subtitle a{color:var(--text-lighten-color);text-decoration:underline}.header-main-title,.header-main-subtitle{word-break:break-word}.header-main-subtitle h2{font-size:100%;font-style:normal;letter-spacing:normal;font-stretch:normal;font-variant:normal;font-weight:400;text-align:left;-moz-text-align-last:initial;text-align-last:initial;text-decoration:none;text-indent:0px;text-shadow:none;text-transform:none;margin:0;padding:0;line-height:inherit}.header{background:linear-gradient(135deg,var(--primary-color) 0%,var(--secondary-color) 100%);color:var(--text-color);flex-shrink:0;z-index:10}.header-title{text-transform:uppercase;font-weight:600;text-align:center}.app{z-index:2147483001;position:fixed;bottom:100px;right:20px;width:400px;max-height:700px;box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f;border-radius:10px;overflow:hidden;height:calc(100% - 120px);font-family:var(--font-family);touch-action:none;-webkit-text-size-adjust:100%}.app--fullscreen{z-index:2147483010;position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-height:100%;border-radius:0}.rotate-opacity-enter-from{transform:scale(.5);opacity:0}.rotate-opacity-enter-active,.rotate-opacity-leave-active{transition:all .15s ease}.rotate-opacity-enter-to,.rotate-opacity-leave{transform:scale(1);opacity:1}.rotate-opacity-leave-to{transform:scale(.5);opacity:0}.launcher{z-index:2147483000;position:fixed;bottom:20px;right:20px;width:60px;height:60px;border-radius:50%;background-color:var(--action-color);box-shadow:#0000000f 0 1px 6px,#00000029 0 2px 32px;display:flex;align-items:center;justify-content:center;cursor:pointer}.launcher:hover{transition:background-color .1s linear;background-color:var(--action-color)}:host{contain:content;all:initial;font-family:inherit}a{cursor:pointer;color:var(--action-color)!important;text-decoration:none!important}.slide-up-enter-active,.slide-up-leave-active{transition:all .16s}.slide-up-enter-from,.slide-up-leave-to{opacity:0;transform:translateY(100%)}.toggle-height-enter-active,.toggle-height-leave-active{transition:transform .35s ease-out,opacity .3s}.toggle-height-enter-from,.toggle-height-leave-to{opacity:0;transform:translateY(2%)}.mobile-slide-up-enter-active,.mobile-slide-up-leave-active{transition:transform .35s ease-out,opacity .3s}.mobile-slide-up-enter-from,.mobile-slide-up-leave-to{opacity:0;transform:translateY(20%)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-4{top:1rem;right:1rem;bottom:1rem;left:1rem}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-5{margin-left:1.25rem}.mr-5{margin-right:1.25rem}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-\\[1px\\]{height:1px}.h-\\[35px\\]{height:35px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[35px\\]{max-height:35px}.max-h-\\[calc\\(100\\%-131px\\)\\]{max-height:calc(100% - 131px)}.w-\\[35px\\]{width:35px}.w-auto{width:auto}.w-full{width:100%}.min-w-\\[35px\\]{min-width:35px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[90\\%\\]{max-width:90%}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overscroll-contain{overscroll-behavior:contain}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-\\[\\#ebeaea\\]{--tw-bg-opacity: 1;background-color:rgb(235 234 234 / var(--tw-bg-opacity))}.bg-\\[rgb\\(204\\,204\\,204\\,0\\.5\\)\\]{background-color:#cccccc80}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-\\[45px\\]{padding-left:45px}.pt-5{padding-top:1.25rem}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-\\[\\#858585\\]{--tw-text-opacity: 1;color:rgb(133 133 133 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}button,[role=button]{cursor:pointer}button{text-transform:none;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;-webkit-appearance:button;background-color:transparent;background-image:none}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.tootlip{background-color:#727272;color:#fff;font-size:12px;position:absolute;padding:4px 5px;white-space:nowrap;border-radius:4px;z-index:10;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}' + ); +})(); diff --git a/browser-extension/src/pages/side-panel/index.html b/browser-extension/src/pages/side-panel/index.html new file mode 100644 index 0000000..176512c --- /dev/null +++ b/browser-extension/src/pages/side-panel/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file