javascript:(async()=>{var ft = class extends Error {%0A source;%0A constructor(t) {%0A const e = Error, n = e.stackTraceLimit;%0A n !== void 0 && (e.stackTraceLimit = 0), super(), n !== void 0 && (e.stackTraceLimit = n), this.source = t;%0A }%0A}, ke = class extends Error {%0A source;%0A constructor(t, e) {%0A super(e instanceof Error ? e.message : String(e), { cause: e }), this.source = t;%0A }%0A};%0Afunction vi(t) {%0A return t instanceof ke ? t.cause : t;%0A}%0Avar bi = 1024, xi = 2048, wi = 4096, Xe = 1024;%0Avar mr = 4096, U = {}, mn = {}, Ti = {};%0Afunction Ei(t) {%0A return t === Ti ? void 0 : t;%0A}%0Avar vn = {}, vr = Symbol("refresh"), Et = /* @__PURE__ */ new Set();%0Afunction It(t) {%0A for (; t.an; ) t = t.an;%0A return t;%0A}%0Afunction br(t, e) {%0A if (t = It(t), e = It(e), t === e) return t;%0A e.an = t;%0A for (const n of e.Ae) t.Ae.add(n);%0A return e.Ae.clear(), t.rn[0].push(...e.rn[0]), t.rn[1].push(...e.rn[1]), e.rn[0].length = 0, e.rn[1].length = 0, t;%0A}%0Afunction _i(t) {%0A const e = t.o?.Be;%0A if (!e) return;%0A const n = It(e);%0A if (Et.has(n)) return n;%0A t.o !== null && (t.o.Be = void 0);%0A}%0Afunction Qe(t) {%0A if (Pe(t) && t.o?.Nt) {%0A const e = X(t).Nt = De(t.o?.Nt);%0A if (e.fn !== !0) return e;%0A t.o !== null && (t.o.Nt = null);%0A }%0A return _i(t)?._e ?? t._e;%0A}%0Afunction Pe(t) {%0A const e = t.o;%0A return e !== null && e.De !== void 0 && e.De !== U;%0A}%0Afunction Si(t, e) {%0A const n = It(e), i = t.o?.Be;%0A if (i) {%0A if (i.an) {%0A X(t).Be = e, t.T |= Xe;%0A return;%0A }%0A const r = It(i);%0A if (Et.has(r)) {%0A r !== n && !Pe(t) && (n.sn && It(n.sn) === r ? (X(t).Be = e, t.T |= Xe) : r.sn && It(r.sn) === n || br(n, r));%0A return;%0A }%0A }%0A X(t).Be = e, t.T |= Xe;%0A}%0Avar se = /* @__PURE__ */ new Set(), j = {%0A eE: new Array(2e3).fill(void 0),%0A tE: !1,%0A xe: 0,%0A EE: 0%0A}, Pt = {%0A eE: new Array(2e3).fill(void 0),%0A tE: !1,%0A xe: 0,%0A EE: 0%0A};%0Afunction xr(t) {%0A t.ie & 16 ? t.ie &= -12 : (zt(t, Pt), t.ie &= -4);%0A}%0Avar F = 0, A = null, Xt = !1, Ne = !1, Hn = !1, ln = 0, Ai = !1, le = /* @__PURE__ */ new Set();%0Afunction qn(t) {%0A const e = t.m;%0A return se.size === 0 && Et.size === 0 && t.Qt.length === 0 && e.Ke.length === 0 && e.A.length === 0 && e.Tn.size === 0 && le.size === 0;%0A}%0Afunction wr() {%0A if (le.size !== 0)%0A for (const t of le) {%0A if (t.u !== null) {%0A le.delete(t);%0A continue;%0A }%0A t.Pe === U && (t.o?.De !== void 0 && t.o?.De !== U || t.o?.t || (le.delete(t), t.o?.ft?.()));%0A }%0A}%0Afunction me() {%0A return {%0A Te: F,%0A yt: [],%0A Ne: /* @__PURE__ */ new Map(),%0A Ke: [],%0A A: [],%0A Tn: /* @__PURE__ */ new Set(),%0A ue: [],%0A bt: {%0A Lt: [[], []],%0A Qt: []%0A },%0A fn: !1,%0A cn: /* @__PURE__ */ new Set()%0A };%0A}%0Afunction Tr(t, e) {%0A e.fn = t, t.ue.push(...e.ue);%0A for (const i of Et) i._e === e && (i._e = t);%0A e.Ke.length && (t.Ke.push(...e.Ke), e.Ke.length = 0), e.A.length && (t.A.push(...e.A), e.A.length = 0);%0A for (const i of e.Tn) t.Tn.add(i);%0A const n = e.Mt;%0A if (n !== void 0) {%0A e.Mt = void 0;%0A let i = t.Mt;%0A i !== void 0 ? i.push(...n) : i = t.Mt = n;%0A for (let r = 0; r < n.length; r++) {%0A const o = n[r].pc;%0A o !== void 0 && o.qe === n[r] && (o.qa = i);%0A }%0A }%0A for (const [i, r] of e.Ne) {%0A let o = t.Ne.get(i);%0A o || t.Ne.set(i, o = /* @__PURE__ */ new Set());%0A for (const s of r) o.add(s);%0A }%0A for (const i of e.cn) t.cn.add(i);%0A}%0Afunction dt() {%0A if (Ne) {%0A Er();%0A return;%0A }%0A Xt || (Xt = !0, !ln && !Z.En && !Ai && queueMicrotask(pe));%0A}%0Afunction an(t) {%0A if (Ne) return;%0A Ne = !0;%0A let e = "[REACTIVITY_HALTED]";%0A t === void 0 ? console.error(e) : console.error(e, t);%0A}%0Afunction Er() {%0A Hn || (Hn = !0, console.error("[REACTIVITY_HALTED]"));%0A}%0Avar _r = 0, Sr = class {%0A ke = null;%0A Lt = [[], []];%0A Qt = [];%0A Vt = 0;%0A created = F;%0A addChild(t) {%0A this.Qt.push(t), t.ke = this;%0A }%0A removeChild(t) {%0A const e = this.Qt.indexOf(t);%0A e >= 0 && (this.Qt.splice(e, 1), t.ke = null);%0A }%0A notify(t, e, n, i) {%0A return this.ke ? this.ke.notify(t, e, n, i) : !1;%0A }%0A run(t) {%0A if (this.Lt[t - 1].length) {%0A const i = this.Lt[t - 1];%0A this.Lt[t - 1] = [], Ir(i, t);%0A }%0A const e = this.Qt, n = ++_r;%0A for (let i = 0; i < e.length; ) {%0A const r = e[i];%0A if (r.Vt !== n && (r.Vt = n, r.run?.(t), e[i] !== r)) {%0A i = 0;%0A continue;%0A }%0A i++;%0A }%0A }%0A enqueue(t, e) {%0A t && (ut ? It(ut).rn[t - 1].push(e) : this.Lt[t - 1].push(e)), dt();%0A }%0A stashQueues(t) {%0A t.Lt[0].push(...this.Lt[0]), t.Lt[1].push(...this.Lt[1]), this.Lt = [[], []];%0A for (let e = 0; e < this.Qt.length; e++) {%0A let n = this.Qt[e], i = t.Qt[e];%0A i || (i = {%0A Lt: [[], []],%0A Qt: []%0A }, t.Qt[e] = i), n.stashQueues(i);%0A }%0A }%0A restoreQueues(t) {%0A this.Lt[0].push(...t.Lt[0]), this.Lt[1].push(...t.Lt[1]);%0A for (let e = 0; e < t.Qt.length; e++) {%0A const n = t.Qt[e];%0A let i = this.Qt[e];%0A i && i.restoreQueues(n);%0A }%0A }%0A}, _ = class bt extends Sr {%0A En = !1;%0A m = me();%0A static Ce;%0A static Fe;%0A static tt;%0A static Bt = null;%0A static p = null;%0A static G = null;%0A static M = null;%0A static N = null;%0A static Rt = null;%0A static Gt = null;%0A static Oe = null;%0A static de = null;%0A static ye = null;%0A static un = null;%0A static Pt = null;%0A static Dt = null;%0A static Ht = null;%0A static Je = null;%0A static k = null;%0A static wt = null;%0A static jt = null;%0A static kt = null;%0A static dn = null;%0A static In = null;%0A static Nn = null;%0A static _n = null;%0A static ln = null;%0A static Ft = null;%0A static ht = null;%0A static gt = null;%0A static je = null;%0A static $e = null;%0A static ze = null;%0A static An = null;%0A flush() {%0A if (!this.En) {%0A if (A === null && j.EE < j.xe && this.Lt[0].length === 0 && this.Lt[1].length === 0 && this.Qt.length === 0 && qn(this)) {%0A this.En = !0;%0A try {%0A Vn(), ce();%0A } finally {%0A this.En = !1;%0A }%0A F++, Xt = j.EE >= j.xe || this.Lt[0].length !== 0 || this.Lt[1].length !== 0 || this.m.yt.length !== 0;%0A return;%0A }%0A this.En = !0;%0A try {%0A if (Vn(), ae(j, bt.Ce), A) {%0A if (!Nr(A)) {%0A const i = A;%0A ae(Pt, this.m === i ? xr : bt.Ce), this.m === i && (Qt = this.m = me()), Et.size && (bt._n(1), bt._n(2)), this.stashQueues(i.bt), F++, Xt = j.EE >= j.xe || this.m.yt.length > 0, Gn(i.yt), A = null, Ke(null, !0);%0A return;%0A }%0A const e = A, n = this.m;%0A if (n !== e && n.yt.push(...e.yt), this.restoreQueues(e.bt), se.delete(e), A = null, Gn(n.yt), Ke(e), n === e) {%0A const i = me();%0A i.yt = n.yt, i.Ke = n.Ke, i.A = n.A, i.Tn = n.Tn, Qt = this.m = i;%0A }%0A } else qn(this) ? (ce(), j.EE >= j.xe && (ae(j, bt.Ce), ce())) : (se.size && ae(Pt, bt.Ce), Ke());%0A F++, Xt = j.EE >= j.xe, Et.size && bt._n(1), this.run(1), Et.size && bt._n(2), this.run(2);%0A } finally {%0A this.En = !1;%0A }%0A }%0A }%0A notify(e, n, i, r) {%0A if (n & 1) {%0A if (i & 1) {%0A const o = r !== void 0 ? r : e.o?._;%0A if (o?.l) return !0;%0A if (A && o) {%0A const s = o.source;%0A let l = A.Ne.get(s);%0A l || A.Ne.set(s, l = /* @__PURE__ */ new Set());%0A const a = l.size;%0A l.add(e), l.size !== a && (dt(), bt.jt?.(A));%0A }%0A }%0A return !0;%0A }%0A return !1;%0A }%0A initTransition(e) {%0A if (e && (e = De(e)), e && e === A || !e && A && A.Te === F) return;%0A if (!A) A = e ?? me();%0A else if (e) {%0A const i = A;%0A Tr(e, i), se.delete(i), A = e;%0A }%0A se.add(A), A.Te = F;%0A const n = this.m;%0A if (n !== A) {%0A for (let i = 0; i < n.yt.length; i++) {%0A const r = n.yt[i];%0A r._e = A, A.yt.push(r);%0A }%0A for (let i = 0; i < n.Ke.length; i++) {%0A const r = n.Ke[i];%0A r._e = A, A.Ke.push(r);%0A }%0A n.A.length && A.A.push(...n.A);%0A for (const i of n.Tn) A.Tn.add(i);%0A if (n.cn.size) {%0A for (const i of n.cn) A.cn.add(i);%0A n.cn.clear();%0A }%0A Qt = this.m = A;%0A }%0A for (const i of Et) i._e || (i._e = A);%0A }%0A};%0Afunction Wt(t) {%0A Qt.yt.push(t);%0A}%0Avar Ci = !1, bn = 0;%0Afunction $i() {%0A bn++;%0A}%0Afunction Me(t, e = !1) {%0A t._t = bn;%0A const n = t.T, i = (n & 1024 ? t.o?.Be : void 0) || ut, r = (n & 512) !== 0 && t.o?.Qe !== void 0, o = Ci;%0A for (let s = t.u; s !== null; s = s.ae) {%0A const l = s.ce;%0A if (o && (l.ie &= ~xi), l.ie & 4 && s.nn === l.Ze && s !== l.Ye && (l.ie |= wi), r && l.T & 8) {%0A l.ie |= 256;%0A continue;%0A }%0A e && i ? (l.ie |= 128, Si(l, i)) : e && (l.ie |= 128, l.o && (l.o.Be = void 0)), Jt(l);%0A }%0A}%0Afunction Ar(t) {%0A const e = t;%0A if (!e.oe) {%0A t.Pe !== U && (t.be = t.Pe, t.Pe = U), t.T & 256 && _.un(t);%0A return;%0A }%0A t.Pe !== U && (t.be = t.Pe, t.Pe = U, t.Re && t.Re !== 3 && (t.Xe = !0)), e.Ie = !1, e.ie &= ~bi, e.S & 1 || (e.S &= -5), e.o != null && (e.o.qe !== null || e.o.We !== null) && _.Fe(e, !1, !0), t.T & 256 && _.un(t);%0A}%0Avar Cr = null, $r = null;%0Afunction ce() {%0A const t = Qt.yt;%0A for (let e = 0; e < t.length; e++) Ar(t[e]);%0A t.length = 0, Cr?.(), $r?.(Qt);%0A}%0Afunction Ke(t = null, e = !1) {%0A const n = !e;%0A n && ce(), !e && Z.Qt.length && un(Z);%0A const i = j.EE >= j.xe;%0A if (i && ae(j, _.Ce), n) {%0A i && ce();%0A const r = t ?? Z.m;%0A if (r.Ke.length && _.dn(r.Ke), r.cn.size) {%0A for (const o of r.cn)%0A o.ie & 64 || Jt(o);%0A r.cn.clear(), dt();%0A }%0A r.A.length && (_.G(r.A), Z.Qt.length && un(Z)), r.Tn.size && _.Bt(r.Tn, t), wr(), Et.size && _.Nn(t);%0A }%0A}%0Afunction un(t) {%0A for (const e of t.Qt)%0A e.se?.(), un(e);%0A}%0Afunction Gn(t) {%0A for (let e = 0; e < t.length; e++) t[e]._e = A;%0A}%0Avar Z = new _(), Qt = Z.m;%0Afunction pe(t) {%0A if (t) {%0A ln++;%0A try {%0A return t();%0A } finally {%0A try {%0A pe();%0A } finally {%0A ln--;%0A }%0A }%0A }%0A if (!Z.En && !Ne)%0A for (; Xt || A; ) Z.flush();%0A}%0Afunction Ir(t, e) {%0A for (let n = 0; n < t.length; n++) t[n](e);%0A}%0Afunction kr(t, e) {%0A if (t.ie & 96) return !1;%0A if (t.o?.le?.has(e)) return !0;%0A for (let n = t.nt; n; n = n.it) {%0A let i = n.ut;%0A for (; i; ) {%0A if (i === e || i.lt === e) return !0;%0A i = i.o?.Et;%0A }%0A }%0A return !!(t.S & 1 && t.o?._ instanceof ft && t.o?._.source === e);%0A}%0Afunction Nr(t) {%0A if (t.fn) return !0;%0A if (t.ue.length) return !1;%0A let e = !0;%0A for (const [n, i] of t.Ne) {%0A let r = !1;%0A for (const o of i) {%0A if (kr(o, n)) {%0A r = !0;%0A break;%0A }%0A i.delete(o);%0A }%0A if (!r) t.Ne.delete(n);%0A else if (n.S & 1 && n.o?._?.source === n) {%0A e = !1;%0A break;%0A }%0A }%0A return e && _.In?.(t) && (e = !1), e && (t.fn = !0), e;%0A}%0Afunction De(t) {%0A for (; t.fn && typeof t.fn == "object"; ) t = t.fn;%0A return t;%0A}%0Afunction Mr(t, e) {%0A const n = A;%0A try {%0A return A = De(t), e();%0A } finally {%0A A = n;%0A }%0A}%0Afunction Mt(t) {%0A return t.ie & 32 ? Pt : j;%0A}%0Afunction Jt(t) {%0A if (t.Re === 3) {%0A const n = t;%0A n.Xe || (n.Xe = !0, n.C.enqueue(2, n.Ut));%0A return;%0A }%0A const e = Mt(t);%0A e.xe > t.Le && (e.xe = t.Le), ki(t, e);%0A}%0Afunction Ii(t, e) {%0A const n = (t.ke?.Ct ? t.ke.Ot?.Le : t.ke?.Le) ?? -1;%0A n >= t.Le && (t.Le = n + 1);%0A const i = t.Le, r = e.eE[i];%0A if (r === void 0) e.eE[i] = t;%0A else {%0A const o = r.st;%0A o.ot = t, t.st = o, r.st = t;%0A }%0A i > e.EE && (e.EE = i);%0A}%0Afunction ki(t, e) {%0A let n = t.ie;%0A n & 1036 || (n & 1 ? t.ie = n & -4 | 2 | 8 : (t.ie = n | 8, e.tE && !(n & 2) && (e.tE = !1)), n & 16 || Ii(t, e));%0A}%0Afunction xn(t, e) {%0A let n = t.ie;%0A n & 1052 || (t.ie = n | 16, Ii(t, e));%0A}%0Afunction zt(t, e) {%0A const n = t.ie;%0A if (!(n & 24)) return;%0A t.ie = n & -25;%0A const i = t.Le;%0A if (t.st === t) e.eE[i] = void 0;%0A else {%0A const r = t.ot, o = e.eE[i], s = r ?? o;%0A t === o ? e.eE[i] = r : t.st.ot = r, s.st = t.st;%0A }%0A t.st = t, t.ot = void 0;%0A}%0Afunction Lr(t) {%0A if (!t.tE) {%0A t.tE = !0;%0A for (let e = 0; e <= t.EE; e++) for (let n = t.eE[e]; n !== void 0; n = n.ot) n.ie & 8 && Le(n);%0A }%0A}%0Afunction Le(t, e = 2) {%0A const n = t.ie;%0A if (!((n & 3) >= e)) {%0A t.ie = n & -4 | e;%0A for (let i = t.u; i !== null; i = i.ae) Le(i.ce, 1);%0A if (t.T & 4096) for (let i = t.o.i; i !== null; i = i.Se) for (let r = i.u; r !== null; r = r.ae) Le(r.ce, 1);%0A }%0A}%0Afunction ae(t, e) {%0A for (t.tE = !1, t.xe = 0; t.xe <= t.EE; t.xe++) {%0A let n = t.eE[t.xe];%0A for (; n !== void 0; )%0A n.ie & 8 ? e(n) : Or(n, t), n = t.eE[t.xe];%0A }%0A t.EE = 0;%0A}%0Afunction Or(t, e) {%0A zt(t, e);%0A let n = t.Le;%0A for (let i = t.nt; i; i = i.it) {%0A const r = i.ut, o = r.lt || r;%0A o.oe && o.Le >= n && (n = o.Le + 1);%0A }%0A if (t.Le !== n) {%0A t.Le = n;%0A for (let i = t.u; i !== null; i = i.ae) xn(i.ce, Mt(i.ce));%0A }%0A}%0Afunction Ni(t) {%0A let e = t.ve;%0A for (; e; ) {%0A const n = e.ie;%0A e.ie = n | 32, n & 24 && (zt(e, n & 32 ? Pt : j), n & 8 ? ki(e, Pt) : xn(e, Pt)), Ni(e), e = e.Ve;%0A }%0A}%0Afunction ye(t, e = !1, n) {%0A const i = t.ie;%0A if (i & 64) return;%0A if (e) {%0A t.ie = i | 64;%0A const o = t;%0A (o.o?.Ge || o.o?.ge) && _.un(o);%0A }%0A e && t.oe && t.o !== null && (t.o.Ee = null);%0A let r = n ? t.o?.qe ?? null : t.ve;%0A for (; r; ) {%0A const o = r.Ve, s = r;%0A s.T &= -33, zt(s, Mt(s)), Ri(s), ye(r, !0), r = o;%0A }%0A if (n ? t.o !== null && (t.o.qe = null) : (t.ve = null, t.Me = 0), e && !n && !(i & 32) && t.ke !== null && !(t.ke.ie & 64)) {%0A const o = t.ct, s = t.Ve;%0A o !== null ? o.Ve = s : t.ke.ve = s, s !== null && (s.ct = o), t.ct = null;%0A }%0A if (Rr(t, n), e && t.At) {%0A const o = t.At;%0A t.At = void 0, o();%0A }%0A}%0Afunction Rr(t, e) {%0A let n = e ? t.o?.We : t.he;%0A if (n) {%0A if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {%0A const r = n[i];%0A r.call(r);%0A }%0A else n.call(n);%0A e ? t.o !== null && (t.o.We = null) : t.he = null;%0A }%0A}%0Afunction Pr(t, e) {%0A let n = t;%0A for (; n.T & 4 && n.ke; ) n = n.ke;%0A if (n.id != null) return Br(n.id, e ? n.Me++ : n.Me);%0A throw new Error("");%0A}%0Afunction Dr(t) {%0A return Pr(t, !0);%0A}%0Afunction wn(t, e, n) {%0A return t?.id ?? (e ? n?.id : n?.id != null ? Dr(n) : void 0);%0A}%0Afunction Br(t, e) {%0A const n = e.toString(36), i = n.length - 1;%0A return t + (i ? String.fromCharCode(64 + i) : "") + n;%0A}%0Afunction Mi() {%0A return I;%0A}%0Afunction Ur(t) {%0A return I && (I.he ? Array.isArray(I.he) ? I.he.push(t) : I.he = [I.he, t] : I.he = t), t;%0A}%0Afunction zr(t = !0) {%0A ye(this, t);%0A}%0Afunction fe(t) {%0A const e = I, n = t?.transparent ?? !1, i = {%0A id: wn(t, n, e),%0A T: n ? 4 : 0,%0A Ct: !0,%0A Ot: e?.Ct ? e.Ot : e,%0A ve: null,%0A Ve: null,%0A ct: null,%0A he: null,%0A C: e?.C ?? Z,%0A we: e?.we || vn,%0A Me: 0,%0A o: null,%0A ke: e,%0A dispose: zr%0A };%0A if (e) {%0A const r = e.ve;%0A r === null || (i.Ve = r, r.ct = i), e.ve = i;%0A }%0A return i;%0A}%0Afunction Hr(t, e) {%0A const n = fe(e);%0A return kt(n, () => t(() => n.dispose()));%0A}%0Afunction Li(t) {%0A const e = t.ut, n = t.it, i = t.ae, r = t.en;%0A if (i !== null ? i.en = r : e.rt = r, r !== null) r.ae = i;%0A else if (e.u = i, i === null) {%0A e.o?.ft?.();%0A const o = e;%0A o.oe && o.T & 32 && !(o.ie & 32) && !(o.S & 1) && Be(o);%0A }%0A return n;%0A}%0Afunction Oi(t) {%0A const e = t.Ye;%0A let n = e !== null ? e.it : t.nt;%0A if (n !== null) {%0A do%0A n = Li(n);%0A while (n !== null);%0A e !== null ? e.it = null : t.nt = null;%0A }%0A}%0Afunction Ri(t) {%0A let e = t.nt;%0A if (e) {%0A do%0A e = Li(e);%0A while (e !== null);%0A t.nt = null, t.Ye = null;%0A }%0A}%0Afunction Be(t) {%0A zt(t, Mt(t)), Ri(t), ye(t, !0);%0A}%0Avar _e = /* @__PURE__ */ new Set();%0Afunction Vn() {%0A if (_e.size !== 0) {%0A for (const t of _e) !t.u && t.T & 32 && !(t.S & 1) && !(t.ie & 96) && Be(t);%0A _e.clear();%0A }%0A}%0Afunction ve(t, e, n = !1) {%0A const i = e.Ye;%0A if (i !== null && i.ut === t) {%0A i.me &&= n;%0A return;%0A }%0A let r = null;%0A const o = e.ie & 4;%0A if (o && (r = i !== null ? i.it : e.nt, r !== null && r.ut === t)) {%0A r.nn = e.Ze, e.Ye = r, r.me = n;%0A return;%0A }%0A const s = t.rt;%0A if (s !== null && s.ce === e && (!o || s.nn === e.Ze)) {%0A o ? s.me &&= n : s.me = n;%0A return;%0A }%0A const l = e.Ye = t.rt = {%0A ut: t,%0A ce: e,%0A it: r,%0A en: s,%0A ae: null,%0A nn: e.Ze,%0A me: n%0A };%0A i !== null ? i.it = l : e.nt = l, s !== null ? s.ae = l : t.u = l, $i();%0A}%0Afunction Pi(t, e) {%0A return t.o?.le?.has(e) ? !1 : ((X(t).le ??= /* @__PURE__ */ new Set()).add(e), !0);%0A}%0Afunction qr(t, e) {%0A return t.o?.le?.delete(e) ? (t.o?.le.size === 0 && t.o !== null && (t.o.le = void 0), !0) : !1;%0A}%0Afunction Di(t) {%0A t.o?.le?.clear(), t.o !== null && (t.o.le = void 0);%0A}%0Afunction Bi(t, e) {%0A X(t).fe = !0, e.source && Pi(t, e.source), t.S & 2 || ge(t, e.source, e);%0A}%0Afunction ge(t, e, n) {%0A if (!e) {%0A t.o !== null && (t.o._ = null);%0A return;%0A }%0A if (n instanceof ft && n.source === e) {%0A X(t)._ = n;%0A return;%0A }%0A const i = t.o?._;%0A (!(i instanceof ft) || i.source !== e) && (X(t)._ = new ft(e));%0A}%0Afunction Ut(t, e) {%0A for (let n = t.u; n !== null; n = n.ae) e(n.ce, n);%0A for (let n = t.o?.i ?? null; n !== null; n = n.Se) for (let i = n.u; i !== null; i = i.ae) e(i.ce, i);%0A}%0Afunction Ui(t) {%0A t.oe && t.T & 32 && !t.u && !(t.ie & 32) && !(t.S & 1) && Be(t);%0A}%0Afunction Gr(t) {%0A let e;%0A const n = /* @__PURE__ */ new Set(), i = (r) => {%0A n.has(r) || (n.add(r), !r.u && r.T & 32 && (e ??= []).push(r), Ut(r, i));%0A };%0A if (Ut(t, i), e) for (const r of e) Ui(r);%0A}%0Afunction Vr(t, e) {%0A let n = !1;%0A const i = /* @__PURE__ */ new Set(), r = (o) => {%0A i.has(o) || (i.add(o), o.o?._ === e && (Jt(o), n = !0), Ut(o, r));%0A };%0A Ut(t, r), n && dt();%0A}%0Afunction Fr(t) {%0A let e = !1, n;%0A const i = /* @__PURE__ */ new Set(), r = _.de, o = (s) => {%0A if (i.has(s) || !qr(s, t)) return;%0A i.add(s), s.Te = F;%0A const l = s.o?.le?.values().next().value, a = s.S & 2;%0A l ? (a || ge(s, l), r !== null && r(s)) : (s.S &= -2, a || ge(s), r !== null && r(s), s.o?.fe && (Jt(s), e = !0), s.o !== null && (s.o.fe = !1), !s.u && s.T & 32 && (n ??= []).push(s)), Ut(s, o);%0A };%0A if (Ut(t, o), n) for (const s of n) Ui(s);%0A e && dt();%0A}%0Afunction Ye(t) {%0A return t != null && typeof t == "object" && typeof t.then == "function";%0A}%0Afunction Xr(t, e, n) {%0A let i = !1, r = !1;%0A if (typeof e == "object" && e !== null && Dt(() => {%0A i = e[Symbol.asyncIterator], r = !i && Ye(e);%0A }), !r && !i)%0A return t.o !== null && (t.o.Ee = null), t.Ie = !1, e;%0A X(t).Ee = e;%0A let o;%0A const s = () => {%0A const w = Qe(t);%0A if (w && t.S & 4 && !De(w).Ne.has(t)) {%0A t._e = null;%0A return;%0A }%0A Z.initTransition(w);%0A }, l = (w) => {%0A if (t.o?.Ee !== e) return;%0A let v = w instanceof ft;%0A if (v && t.Ie) {%0A t.o !== null && (t.o.Ee = null), Bi(t, w), t.Te = F;%0A return;%0A }%0A s(), Kt(t, v ? 1 : 2, w), t.Te = F, v || Gr(t);%0A }, a = (w, v) => {%0A if (t.o?.Ee !== e || t.ie & 130) return;%0A s();%0A const S = !!(t.S & 4);%0A Oi(t), cn(t);%0A const p = _i(t);%0A if (p && p.Ae.delete(t), n)%0A n(w), S && cn(t, !0);%0A else if (t.o?.De !== void 0)%0A t.Pe === U && Wt(t), t.Pe = w, _.Oe !== null && _.Oe(t, w), Pe(t) || Me(t), t.Te = F;%0A else if (p) {%0A const y = t.Re, f = t.be, m = t.Ue;%0A try {%0A (!y && S || !m || !m(w, f)) && (t.be = w, t.Te = F, _.Oe !== null && _.Oe(t, w), Me(t, !0));%0A } catch (T) {%0A Kt(t, 2, T);%0A }%0A } else try {%0A $t(t, () => w);%0A } catch (y) {%0A Kt(t, 2, y);%0A }%0A t.Pe === U && (t.Ie = !1), Fr(t), dt(), pe(), v?.();%0A }, u = () => t.T & 32 && !t.u && !(t.S & 1) ? (Be(t), !0) : !1, c = (w, v) => {%0A const S = w[Symbol.asyncIterator]();%0A let p = !1, y = !1, f = !v;%0A const m = () => {%0A if (!y) {%0A y = !0;%0A try {%0A const q = S.return?.();%0A Ye(q) && q.then(void 0, () => {%0A });%0A } catch {%0A }%0A }%0A };%0A v ? v(m) : Ur(m);%0A const T = () => {%0A u() || N();%0A }, N = () => {%0A let q, G, xt = !1, _t = !1, mt = !0;%0A const ht = S.next();%0A if ((Ye(ht) ? ht : { then: (tt) => void tt(ht) }).then((tt) => {%0A if (mt && f)%0A q = tt, xt = !0, tt.done && (y = !0);%0A else {%0A if (t.o?.Ee !== e) return;%0A tt.done ? (y = !0, p ? (dt(), pe()) : a(void 0), u()) : (p = !0, a(tt.value, T));%0A }%0A }, (tt) => {%0A mt && f ? (G = tt, _t = !0) : t.o?.Ee === e && (y = !0, l(tt), u());%0A }), mt = !1, _t) {%0A if (y = !0, l(G), f) throw G;%0A return !0;%0A }%0A return xt && !q.done ? (o = q.value, p = !0, N()) : xt && q.done;%0A }, K = N();%0A return f = !1, p || K;%0A };%0A let b = null;%0A const h = (w, v) => {%0A let S = !1;%0A if (typeof w == "object" && w !== null && Dt(() => {%0A S = w[Symbol.asyncIterator];%0A }), !S) return !1;%0A const p = c(w, v);%0A return v || (b = p), !0;%0A };%0A if (r) {%0A let w = !1, v = !1, S, p = !0;%0A const y = (f) => {%0A t.he ? Array.isArray(t.he) ? t.he.push(f) : t.he = [t.he, f] : t.he = f;%0A };%0A if (e.then((f) => {%0A p ? (o = f, w = !0) : t.o?.Ee === e && !(t.ie & 64) && h(f, y) || (a(f), u());%0A }, (f) => {%0A p ? (S = f, v = !0) : (l(f), u());%0A }), p = !1, v)%0A throw l(S), S;%0A if (w)%0A h(o) || (t.Ie = !1);%0A else {%0A if (t.Ie) return t.be;%0A throw Z.initTransition(Qe(t)), new ft(I);%0A }%0A }%0A if (i && h(e), b !== null) {%0A if (!b) {%0A if (t.Ie) return t.be;%0A throw Z.initTransition(Qe(t)), new ft(I);%0A }%0A t.Ie = !1;%0A }%0A return o;%0A}%0Afunction cn(t, e = !1) {%0A t.o?.le && Di(t), t.o?.fe && t.o !== null && (t.o.fe = !1), t.o !== null && (t.o.pe = !1), t.S = e ? 0 : t.S & 4, t.o?._ && ge(t), (t.o?.Ge || t.o?.ge) && _.de(t), t.o?.i && t.T & 2048 && _.ye !== null && _.ye(t);%0A const n = Gi(t);%0A n && n.call(t);%0A}%0Afunction Kt(t, e, n, i, r) {%0A e === 2 && !(n instanceof ke) && !(n instanceof ft) && (n = new ke(t, n));%0A const o = e === 1 && n instanceof ft ? n.source : void 0, s = o === t, l = e === 1 && t.o?.De !== void 0 && !s, a = l && Pe(t);%0A i || (e === 1 && o ? (Pi(t, o), t.S = 1 | t.S & 4, ge(t, o, n)) : (Di(t), t.S = e | (e !== 2 ? t.S & 4 : 0), X(t)._ = n), _.de !== null && _.de(t), t.o?.i && t.T & 2048 && _.ye !== null && _.ye(t)), r && !i && Si(t, r);%0A const u = i || a, c = i || l ? void 0 : r, b = Gi(t);%0A if (b) {%0A if (i && e === 1) return;%0A u ? b.call(t, e, n) : b.call(t);%0A return;%0A }%0A Ut(t, (h, w) => {%0A if (h.Te = F, e === 1 && o && !h.o?.le?.has(o) || e !== 1 && (h.o?._ !== n || h.o?.le)) {%0A if (w.me && e !== 1 && !(n instanceof ft)) {%0A Jt(h), dt();%0A return;%0A }%0A !u && !h._e && Wt(h), Kt(h, e, n, u, c);%0A }%0A });%0A}%0A_.Ce = Lt;%0A_.Fe = ye;%0Avar rt = !1, de = !1, be = !1, Se = !1, I = null, ut = null, jt = !1, zi = null;%0Afunction Hi(t) {%0A for (; t; ) {%0A if (t.He) return !0;%0A t = t.ke;%0A }%0A return !1;%0A}%0Afunction Lt(t, e = !1) {%0A $i();%0A const n = t.Re;%0A if (!e) {%0A if (t._e && (!n || A) && A !== t._e && Z.initTransition(t._e), zt(t, Mt(t)), t.o !== null && (t.o.Ee = null), t._e || n === 3) ye(t);%0A else if (t.ve !== null || t.he !== null) {%0A Ni(t);%0A const f = X(t);%0A f.We = t.he, f.qe = t.ve, t.he = null, t.ve = null, t.Me = 0;%0A }%0A }%0A let i = !!(t.ie & 128);%0A const r = (t.T & 128) !== 0 && t.o?.De !== U && t.o?.De !== void 0, o = !!(t.S & 4), s = t.S & 2 ? t.o?._ : void 0, l = (t.ie & xi) !== 0, a = t.Ie, u = I;%0A I = t, t.Ye = null, t.Ze++, t.ie = 4, t.Te = F;%0A let c = t.Pe === U ? t.be : t.Pe, b = t.Le, h = !1, w = rt, v = ut;%0A rt = !0;%0A const S = Se;%0A if (Se = !1, i) {%0A const f = _.je(t, !0);%0A f ? ut = f : f === !1 && (i = !1);%0A } else if (A && !e && A.Ke.length) {%0A const f = _.je(t, !1);%0A f && (i = !0, ut = f);%0A }%0A const p = n && n !== 2, y = de;%0A p && (de = !0);%0A try {%0A if (t.T & 64)%0A c = t.oe(c), t.o !== null && (t.o.Ee = null), t.Ie = !1;%0A else {%0A const f = t.o?.Ee, m = t.oe(c), T = typeof m == "object" && m !== null, N = t.o?.Ee !== f;%0A c = N || !T ? m : Xr(t, m), !N && !T && (t.o !== null && (t.o.Ee = null), t.Ie = !1);%0A }%0A (t.S !== 0 || t.o !== null) && cn(t, e), t.T & 1024 && t.o?.Be && _.ze(t);%0A } catch (f) {%0A const m = f instanceof ft;%0A if (m && t.Ie) Bi(t, f);%0A else {%0A m && ut && _.$e(t);%0A let T = !1;%0A m && (X(t).fe = !0, _.Je !== null && (T = _.Je(t, l))), Kt(t, m ? 1 : 2, f, void 0, m ? t.o?.Be : void 0), T && _.k(t);%0A }%0A } finally {%0A rt = w, Se = S, p && (de = y), h = (t.ie & wi) !== 0, t.ie = 0 | (e ? t.ie & 256 : 0), I = u;%0A }%0A if (!t.o?._) {%0A Oi(t);%0A const f = r ? Ei(t.o?.De) : t.Pe === U ? t.be : t.Pe;%0A let m = !1;%0A try {%0A m = !n && o || !t.Ue || !t.Ue(f, c);%0A } catch (T) {%0A Kt(t, 2, T);%0A }%0A if (n && m && (t.Xe = !t.o?._, e || t.C.enqueue(n, t.et ??= _.tt.bind(null, t))), !t.o?._) {%0A if (m) {%0A const T = r ? t.o?.De : void 0;%0A e || n && (A !== t._e || A === null) || i ? (t.be = c, r && i && (X(t).De = c === void 0 ? Ti : c, t.Pe = U)) : (t.Pe = c, a && (t.Ie = !0), (A || t._e) && _.Oe !== null && _.Oe(t, c)), t.u !== null && (!r || i || t.o?.De !== T) && Me(t, i || r);%0A } else if (r)%0A t.Pe === U && Wt(t), t.Pe = c, a && (t.Ie = !0);%0A else if (t.Le != b) for (let T = t.u; T !== null; T = T.ae) xn(T.ce, Mt(T.ce));%0A }%0A s !== void 0 && !m && !t.o?._ && Vr(t, s);%0A }%0A ut = v, (t.Pe !== U || t.o !== null && (t.o.qe !== null || t.o.We !== null) || (t.S & 5) !== 0) && (!e || t.S & 1) && (!t._e || r) && Wt(t), t._e && n && A !== t._e && Mr(t._e, () => Lt(t)), h && (Jt(t), dt());%0A}%0Afunction Tn(t) {%0A if (!(t.ie & 4)) {%0A if (t.ie & 1) for (let e = t.nt; e; e = e.it) {%0A const n = e.ut, i = n.lt || n;%0A if (i.oe && Tn(i), t.ie & 2) break;%0A }%0A (t.ie & 130 || t.o?._ && t.Te < F && !t.o?.Ee) && Lt(t), t.ie = t.ie & 280;%0A }%0A}%0Afunction En(t, e) {%0A const n = e?.transparent ?? !1, i = e !== null && typeof e == "object" && "loadingValue" in e, r = {%0A id: wn(e, n, I),%0A T: (n ? 4 : 0) | (e?.ownedWrite ? 1 : 0) | (!I || e?.lazy ? 32 : 0) | (e?.sync ? 64 : 0) | (e?.H ? 2 : 0) | (jt && Hi(I) ? 8 : 0),%0A Ue: e?.equals != null ? e.equals : Fi,%0A he: null,%0A C: I?.C ?? Z,%0A we: I?.we ?? vn,%0A Me: 0,%0A oe: t,%0A be: i ? e.loadingValue : void 0,%0A Le: 0,%0A ot: void 0,%0A st: null,%0A nt: null,%0A Ye: null,%0A Ze: 0,%0A u: null,%0A rt: null,%0A ke: I,%0A Ve: null,%0A ct: null,%0A ve: null,%0A ie: e?.lazy ? 512 : 0,%0A S: i ? 0 : 4,%0A Te: F,%0A Pe: U,%0A _e: null,%0A _t: -1,%0A Ie: i,%0A o: null%0A };%0A return e?.unobserved && (X(r).ft = e.unobserved), Vi(r, e), r;%0A}%0Afunction X(t) {%0A return t.o ??= {%0A De: void 0,%0A Nt: void 0,%0A Be: void 0,%0A Ge: void 0,%0A ge: void 0,%0A Et: void 0,%0A t: 0,%0A Ee: null,%0A _: void 0,%0A fe: void 0,%0A le: void 0,%0A h: void 0,%0A pe: !1,%0A i: null,%0A ft: void 0,%0A Qe: void 0,%0A We: null,%0A qe: null,%0A It: void 0%0A };%0A}%0Afunction Qr(t, e, n, i, r) {%0A const o = r?.transparent ?? !1, s = {%0A id: wn(r, o, I),%0A T: (o ? 4 : 0) | (r?.ownedWrite ? 1 : 0) | (r?.sync ? 64 : 0) | (jt && Hi(I) ? 8 : 0),%0A Ue: !1,%0A he: null,%0A C: I?.C ?? Z,%0A we: I?.we ?? vn,%0A Me: 0,%0A oe: t,%0A be: void 0,%0A Le: 0,%0A ot: void 0,%0A st: null,%0A nt: null,%0A Ye: null,%0A Ze: 0,%0A u: null,%0A rt: null,%0A ke: I,%0A Ve: null,%0A ct: null,%0A ve: null,%0A ie: 512,%0A S: 4,%0A Te: F,%0A Pe: U,%0A _e: null,%0A _t: -1,%0A Ie: !1,%0A Xe: !1,%0A dt: void 0,%0A Tt: e,%0A St: n,%0A At: void 0,%0A Re: i,%0A o: null%0A };%0A return r?.unobserved && (X(s).ft = r.unobserved), Vi(s, Yr), s;%0A}%0Avar qi = null;%0Afunction Kr(t) {%0A qi = t;%0A}%0Afunction Gi(t) {%0A const e = t.o, n = e?.h;%0A return n !== void 0 ? n : t.Re ? qi ?? void 0 : void 0;%0A}%0Avar Yr = { lazy: !0 };%0Afunction Vi(t, e) {%0A t.st = t;%0A const n = I?.Ct ? I.Ot : I;%0A if (I) {%0A const i = I.ve;%0A i === null || (t.Ve = i, i.ct = t), I.ve = t;%0A }%0A n && (t.Le = n.Le + 1), _.Rt !== null && _.Rt(t), !e?.lazy && Lt(t, !0), jt && !e?.lazy && !(t.S & 1) && !(t.T & 2) && (X(t).Qe = t.be === void 0 ? mn : t.be, t.T |= 512, zi.add(t));%0A}%0Afunction ue(t, e, n = null) {%0A const i = {%0A Ue: e?.equals != null ? e.equals : Fi,%0A T: (e?.ownedWrite ? 1 : 0) | (e?.H ? 2 : 0),%0A be: t,%0A u: null,%0A rt: null,%0A Te: F,%0A lt: n,%0A Se: n?.o?.i || null,%0A Pe: U,%0A _e: null,%0A _t: -1,%0A o: null%0A };%0A return e?.unobserved && (X(i).ft = e.unobserved), n && (X(n).i = i, n.T |= mr), jt && !(i.T & 2) && !((n?.S ?? 0) & 1) && (X(i).Qe = t === void 0 ? mn : t, i.T |= 512, zi.add(i)), i;%0A}%0Afunction Fi(t, e) {%0A return t === e;%0A}%0Afunction Dt(t, e) {%0A if (_.Gt === null && !rt) return t();%0A const n = rt;%0A rt = !1;%0A try {%0A return _.Gt !== null ? _.Gt(t) : t();%0A } finally {%0A rt = n;%0A }%0A}%0Afunction Wr(t, e) {%0A t.ie & 512 ? (t.ie &= -513, Lt(t, !0)) : t.ie & 64 ? t.T & 32 && Lt(t, !0) : e && Tn(t);%0A}%0Afunction Xi(t) {%0A if (Se) return _.Pt(t);%0A let e = I;%0A e?.Ct && (e = e.Ot);%0A const n = t, i = t.lt, r = i || t;%0A if (be ? _.Dt(t, e, r, i) : typeof n.oe == "function" && Wr(t, !1), !n.oe && r === t && t.o?.De === void 0 && t.o?.Qe === void 0 && A === null && ut === null && !jt)%0A return e && rt && ve(t, e), !e || t.Pe === U || e.T & 16 ? t.be : t.Pe;%0A if (e && rt && (ve(t, e, be), r.oe)) {%0A const s = Mt(t);%0A r.Le >= s.xe && (Le(e), Lr(s), Tn(r));%0A const l = r.Le;%0A l >= e.Le && t.ke !== e && (e.Le = l + 1);%0A }%0A if (r.S & 1)%0A if (e && !(de && r._e && A !== r._e)) {%0A if (ut === null || _.ht(r))%0A throw !rt && t !== e && ve(t, e), r.o?._;%0A } else {%0A if (e && r.S & 4)%0A throw !rt && t !== e && ve(t, e), r.o?._;%0A if (!e && r.S & 4) throw r.o?._;%0A }%0A if (r.oe && r.S & 2) {%0A if (rt && !be && r.Te < F)%0A return Lt(r), Xi(t);%0A throw r.o?._;%0A }%0A if (jt && e && e.T & 8) {%0A const s = t.o?.Qe;%0A if (s !== void 0) {%0A const l = s === mn ? void 0 : s;%0A return (t.Pe !== U ? t.Pe : t.be) !== l && (e.ie |= 256), l;%0A }%0A }%0A if (t.o?.De !== void 0 && t.o?.De !== U) return Ei(t.o?.De);%0A if (ut !== null && A !== null && e !== null && _.Ft(t, r, e)) return t.be;%0A const o = !e || ut !== null && _.gt(t, r, e) || t.Pe === U || e.T & 16 || de && t._e && A !== t._e ? t.be : t.Pe;%0A return be && _.Ht(t, o), !e && r === t && typeof n.oe == "function" && t.T & 32 && !(r.S & 1) && !t.u && (_e.add(t), dt()), o;%0A}%0Afunction $t(t, e) {%0A if (t._e && A !== t._e && Z.initTransition(t._e), t.T & 128 && !Ai) return _.kt(t, e);%0A const n = t.Pe === U ? t.be : t.Pe;%0A if (typeof e == "function" && (e = e(n)), !(t.S & 4 || !t.Ue || !t.Ue(n, e))) return e;%0A const i = t.Pe !== U;%0A return i || Wt(t), t.Pe = e, t.T & 256 && _.Oe !== null && _.Oe(t, e), t.oe !== void 0 && (t.Te = F), i && t._t === bn && ut === null && !Ci || (Me(t), dt()), e;%0A}%0Afunction jr(t) {%0A zt(t, Mt(t)), !(t.ie & 1024) && t.Pe === U && (Wt(t), dt()), t.ie = t.ie & -4 | bi, t.vt = F;%0A}%0Afunction Zr(t, e) {%0A const n = $t(t, e);%0A return jr(t), n;%0A}%0Afunction kt(t, e) {%0A const n = I, i = rt;%0A I = t, rt = !1;%0A try {%0A return e();%0A } finally {%0A I = n, rt = i;%0A }%0A}%0Afunction Jr(t, e, n, i) {%0A const r = !!i?.user, o = Qr(t, e, n, r ? 2 : 1, i);%0A Lt(o, !0), !i?.defer && (o.Re === 2 || i?.schedule ? o.C.enqueue(o.Re, Oe.bind(null, o)) : Oe(o));%0A}%0Afunction to(t, e) {%0A const n = t !== void 0 ? t : this.S, i = e !== void 0 ? e : this.o?._;%0A if (n & 2) {%0A if (this.C.notify(this, 1, 0), this.Re === 2) {%0A this.S & 2 && (this.Xe = !0, this.C.enqueue(this.Re, this.et ??= Oe.bind(null, this)));%0A return;%0A }%0A if (!this.C.notify(this, 2, 2))%0A throw an(vi(i)), i;%0A } else this.Re === 1 && this.C.notify(this, 3, n, i);%0A}%0Afunction Oe(t) {%0A if (!t.Xe || t.ie & 64) return;%0A if (t.S & 2 && t.Re === 2) {%0A const n = vi(t.o?._);%0A t.dt = t.be, t.Xe = !1;%0A try {%0A t.St ? t.St(n, () => {%0A const i = t.At;%0A t.At = void 0, i?.();%0A }) : console.error(n);%0A } catch (i) {%0A if (!t.C.notify(t, 2, 2))%0A throw an(i), i;%0A }%0A return;%0A }%0A const e = t.At;%0A t.At = void 0;%0A try {%0A e?.(), t.At = t.Tt(t.be, t.dt);%0A } catch (n) {%0A if (X(t)._ = new ke(t, n), t.S |= 2, !t.C.notify(t, 2, 2))%0A throw an(n), n;%0A } finally {%0A t.dt = t.be, t.Xe = !1;%0A }%0A}%0A_.tt = Oe;%0AKr(to);%0Afunction Nt(t) {%0A const e = Xi.bind(null, t);%0A return e[vr] = t, e;%0A}%0Afunction eo(t, e) {%0A if (typeof t == "function") {%0A const i = En(t, e);%0A return i.T &= -33, [Nt(i), Zr.bind(null, i)];%0A }%0A const n = ue(t, e);%0A return [Nt(n), $t.bind(null, n)];%0A}%0Afunction Ae(t, e) {%0A return Nt(En(t, e));%0A}%0Afunction no(t, e, n) {%0A Jr(t, e, void 0, n);%0A}%0Avar io = Symbol(0);%0Afunction ro(t, e, n) {%0A const i = typeof n?.keyed == "function" ? n.keyed : void 0, r = e.length > 1, o = e, s = {%0A Wt: fe(),%0A xt: 0,%0A Kt: t,%0A $t: [],%0A qt: o,%0A zt: [],%0A Jt: [],%0A Xt: i,%0A Yt: i || n?.keyed === !1 ? [] : void 0,%0A Zt: r && n?.keyed !== !1 ? [] : void 0,%0A ts: n?.keyed === !1,%0A ss: n?.fallback%0A }, l = En(oo.bind(s));%0A return s.Wt.Ot = l, l.T &= -33, Nt(l);%0A}%0Avar xe = { ownedWrite: !0 };%0Afunction oo() {%0A const t = this.Kt() || [], e = t.length;%0A return t[io], kt(this.Wt, () => {%0A let n, i, r, o, s = this.Yt ? this.ts ? () => (r[i] = ue(t[i], xe), this.qt(Nt(r[i]), i)) : () => (r[i] = ue(t[i], xe), o && (o[i] = ue(i, xe)), this.qt(Nt(r[i]), o ? Nt(o[i]) : void 0)) : this.Zt ? () => {%0A const l = t[i];%0A return o[i] = ue(i, xe), this.qt(l, Nt(o[i]));%0A } : () => {%0A const l = t[i];%0A return this.qt(l);%0A };%0A if (e === 0)%0A this.xt !== 0 && (this.Wt.dispose(!1), this.Jt = [], this.$t = [], this.zt = [], this.xt = 0, this.Yt && (this.Yt = []), this.Zt && (this.Zt = [])), this.ss && !this.zt[0] && (this.Jt[0]?.dispose(), this.zt[0] = kt(this.Jt[0] = fe(), this.ss));%0A else if (this.xt === 0) {%0A const l = new Array(e), a = new Array(e);%0A r = this.Yt && new Array(e), o = this.Zt && new Array(e);%0A try {%0A for (i = 0; i < e; i++) l[i] = kt(a[i] = fe(), s);%0A } catch (u) {%0A for (n = 0; n <= i; n++) a[n]?.dispose();%0A throw u;%0A }%0A this.Jt[0] && this.Jt[0].dispose(), this.zt = l, this.Jt = a, r && (this.Yt = r), o && (this.Zt = o), this.$t = t.slice(0), this.xt = e;%0A } else {%0A let l, a, u, c, b, h, w, v, S;%0A for (l = 0, a = Math.min(this.xt, e); l < a && (this.$t[l] === t[l] || this.Yt && Fn(this.Xt, this.$t[l], t[l])); l++) this.Yt && $t(this.Yt[l], t[l]);%0A for (a = this.xt - 1, u = e - 1; a >= l && u >= l && (this.$t[a] === t[u] || this.Yt && Fn(this.Xt, this.$t[a], t[u])); a--, u--) ;%0A if (l === e && this.xt === e) {%0A this.$t = t.slice(0);%0A return;%0A }%0A const p = e - this.xt, y = new Array(e), f = new Array(e);%0A for (r = this.Yt ? new Array(e) : void 0, o = this.Zt ? new Array(e) : void 0, h = /* @__PURE__ */ new Map(), w = new Array(u + 1), i = u; i >= l; i--)%0A c = t[i], b = this.Xt ? this.Xt(c) : c, n = h.get(b), w[i] = n === void 0 ? -1 : n, h.set(b, i);%0A for (n = l; n <= a; n++)%0A c = this.$t[n], b = this.Xt ? this.Xt(c) : c, i = h.get(b), i !== void 0 && i !== -1 ? (y[i] = this.zt[n], f[i] = this.Jt[n], r && (r[i] = this.Yt[n]), o && (o[i] = this.Zt[n]), i = w[i], h.set(b, i)) : (v ??= []).push(this.Jt[n]);%0A try {%0A for (i = l; i <= u; i++)%0A f[i] === void 0 && ((S ??= []).push(f[i] = fe()), y[i] = kt(f[i], s));%0A } catch (m) {%0A if (S) for (n = 0; n < S.length; n++) S[n].dispose();%0A throw m;%0A }%0A for (n = 0; n < l; n++)%0A y[n] = this.zt[n], f[n] = this.Jt[n], r && (r[n] = this.Yt[n]), o && (o[n] = this.Zt[n]);%0A for (i = l; i <= u; i++)%0A r && $t(r[i], t[i]), o && $t(o[i], i);%0A for (i = u + 1; i < e; i++)%0A y[i] = this.zt[i - p], f[i] = this.Jt[i - p], r && (r[i] = this.Yt[i - p], $t(r[i], t[i])), o && (o[i] = this.Zt[i - p], p !== 0 && $t(o[i], i));%0A if (this.zt = y, this.Jt = f, r && (this.Yt = r), o && (this.Zt = o), this.xt = e, this.$t = t.slice(0), v) for (n = 0; n < v.length; n++) v[n].dispose();%0A }%0A }), this.zt;%0A}%0Afunction Fn(t, e, n) {%0A return t ? t(e) === t(n) : !0;%0A}%0Afunction Qi(t, e) {%0A if (typeof t == "function" && !t.length) {%0A if (e?.doNotUnwrap) return t;%0A do%0A t = t();%0A while (typeof t == "function" && !t.length);%0A }%0A if (!(e?.skipNonRendered && (t == null || t === !0 || t === !1 || t === ""))) {%0A if (Array.isArray(t)) {%0A let n = [];%0A return fn(t, n, e) ? () => {%0A let i = [];%0A return fn(n, i, {%0A ...e,%0A doNotUnwrap: !1%0A }), i;%0A } : n;%0A }%0A return t;%0A }%0A}%0Afunction fn(t, e = [], n) {%0A let i = null, r = !1;%0A for (let o = 0; o < t.length; o++) try {%0A let s = t[o];%0A if (typeof s == "function" && !s.length) {%0A if (n?.doNotUnwrap) {%0A e.push(s), r = !0;%0A continue;%0A }%0A do%0A s = s();%0A while (typeof s == "function" && !s.length);%0A }%0A Array.isArray(s) ? r = fn(s, e, n) : n?.skipNonRendered && (s == null || s === !0 || s === !1 || s === "") || e.push(s);%0A } catch (s) {%0A if (!(s instanceof ft)) throw s;%0A i = s;%0A }%0A if (i) throw i;%0A return r;%0A}%0Avar Xn = !1, dn = {%0A hydrating: !1,%0A registry: void 0,%0A done: !1%0A}, so, lo, ao, Gt = (...t) => (so || Ae)(...t), At = (...t) => (lo || eo)(...t), uo = (...t) => (ao || no)(...t);%0Afunction ot(t, e) {%0A return Dt(() => t(e || {}));%0A}%0Avar co = (t) => `Stale read from <${t}>.`;%0Afunction Rt(t) {%0A const e = "fallback" in t ? {%0A keyed: t.keyed,%0A fallback: () => t.fallback%0A } : { keyed: t.keyed }, n = Mi();%0A let i;%0A const r = () => (i === void 0 && (i = kt(n, () => ro(() => t.each, t.children, e))), i());%0A return t.keyed !== !1 && !("fallback" in t) && t.children.length < 2 && (r.$ll = {%0A each: () => t.each,%0A row: t.children,%0A keyed: t.keyed%0A }), r;%0A}%0Afunction we(t) {%0A const e = t.keyed, n = Ae(() => t.when, void 0), i = e ? n : Ae(n, {%0A equals: (r, o) => !r == !o,%0A sync: !0%0A });%0A return Ae(() => {%0A const r = i();%0A if (r) {%0A const o = t.children;%0A return typeof o == "function" && o.length > 0 ? Dt(e ? () => o(r) : () => o(() => {%0A if (!Dt(i)) throw co("Show");%0A return n();%0A }), Xn) : o;%0A }%0A return t.fallback;%0A }, { sync: !0 });%0A}%0Avar J = /* @__PURE__ */ Symbol("slot"), Qn = /* @__PURE__ */ Symbol("host"), fo = {%0A transparent: !0,%0A sync: !0%0A}, ho = { sync: !0 };%0Afunction Y(t, e, n) {%0A uo(t, e, n ? {%0A sync: !0,%0A ...n,%0A transparent: !n.scope%0A } : fo);%0A}%0Afunction Kn(t) {%0A return Gt(() => t(), ho);%0A}%0Afunction po(t, e, n, i) {%0A let r = n.length, o = e.length, s = r, l = 0, a = 0, u = e[o - 1], c = u[J], b = u.parentNode === t && (!c || c === i) ? u.nextSibling : i || null, h = null, w, v;%0A const S = (p) => {%0A if (!p) return !1;%0A const y = p[J];%0A return p.parentNode === t && (!y || y === i);%0A };%0A for (; l < o || a < s; ) {%0A if (e[l] === n[a] && S(e[l])) {%0A l++, a++;%0A continue;%0A }%0A for (; e[o - 1] === n[s - 1] && S(e[o - 1]); )%0A o--, s--;%0A if (o === l) {%0A let p;%0A if (s < r)%0A if (a) {%0A const y = n[a - 1], f = y[J];%0A p = y.parentNode === t && (!f || f === i) ? y.nextSibling : b;%0A } else p = n[s - a];%0A else p = b;%0A for (; a < s; ) {%0A const y = n[a++];%0A t.insertBefore(y, p), i && (y[J] = i);%0A }%0A } else if (s === a) for (; l < o; ) {%0A const p = e[l++];%0A if (!h || !h.has(p)) {%0A const y = p[J];%0A p.parentNode === t && (!y || y === i) && p.remove();%0A }%0A }%0A else if ((w = e[l]) === n[s - 1] && n[a] === e[o - 1] && w.parentNode === t && (!(v = w[J]) || v === i))%0A if (i) do {%0A const p = e[--o];%0A if (t.insertBefore(p, w), p[J] = i, a++, l >= o - 1 || a >= s) break;%0A } while (e[l] === n[s - 1] && n[a] === e[o - 1]);%0A else do%0A if (t.insertBefore(e[--o], w), a++, l >= o - 1 || a >= s) break;%0A while (e[l] === n[s - 1] && n[a] === e[o - 1]);%0A else {%0A if (!h) {%0A h = /* @__PURE__ */ new Map();%0A let y = a;%0A for (; y < s; ) h.set(n[y], y++);%0A }%0A const p = h.get(e[l]);%0A if (p != null)%0A if (a < p && p < s) {%0A let y = l, f = 1, m;%0A for (; ++y < o && y < s && !((m = h.get(e[y])) == null || m !== p + f); )%0A f++;%0A if (f > p - a) {%0A const T = e[l], N = T[J], K = T.parentNode === t && (!N || N === i) ? T : b;%0A for (; a < p; ) {%0A const q = n[a++];%0A t.insertBefore(q, K), i && (q[J] = i);%0A }%0A } else {%0A const T = e[l++], N = n[a++], K = T[J];%0A T.parentNode === t && (!K || K === i) ? t.replaceChild(N, T) : t.insertBefore(N, b), i && (N[J] = i);%0A }%0A } else l++;%0A else {%0A const y = e[l++], f = y[J];%0A y.parentNode === t && (!f || f === i) && y.remove();%0A }%0A }%0A }%0A}%0Avar go = "flash", ql = new RegExp(`(?:^|;%5C%5Cs*)${go}=([^;]+)`), Yn, Wn = "_$SOLID_EVENT_OWNER", jn = {}, hn = /* @__PURE__ */ new Set(), Zt = /* @__PURE__ */ new Map();%0Afunction Ki(t, e, n, i = {}) {%0A let r;%0A mo(e);%0A try {%0A Hr((o) => {%0A if (r = o, e === document) {%0A const s = t();%0A Y(() => Qi(s), () => {%0A });%0A } else {%0A const s = t();%0A H(e, () => s, e.firstChild ? null : void 0, n, {%0A ...i.insertOptions,%0A schedule: !0%0A });%0A }%0A }, { id: i.renderId }), pe();%0A } catch (o) {%0A throw r && r(), Jn(e), o;%0A }%0A return () => {%0A r(), Jn(e), e.textContent = "";%0A };%0A}%0Afunction Zn(t, e, n) {%0A const i = document.createElement("template");%0A return i.innerHTML = t, n === 2 ? i.content.firstChild.firstChild : i.content.firstChild;%0A}%0Afunction Q(t, e) {%0A let n;%0A return e === 1 ? (i) => document.importNode(n || (n = Zn(t, i, e)), !0) : (i) => (n || (n = Zn(t, i, e))).cloneNode(!0);%0A}%0Afunction yo(t) {%0A for (let e = 0, n = t.length; e < n; e++) {%0A const i = t[e];%0A hn.has(i) || (hn.add(i), Zt.forEach((r, o) => Yi(i, o, r)));%0A }%0A}%0Afunction mo(t) {%0A const e = vo(t, t);%0A e && (e.roots = (e.roots || 0) + 1);%0A}%0Afunction Jn(t) {%0A const e = Zt.get(t);%0A e && (e.roots > 1 ? e.roots-- : delete e.roots), bo(t, t);%0A}%0Afunction vo(t, e = t) {%0A if (!t || !e) return;%0A let n = Zt.get(t);%0A return n || Zt.set(t, n = {%0A owners: /* @__PURE__ */ new Map(),%0A handlers: /* @__PURE__ */ new Map()%0A }), n.owners.set(e, (n.owners.get(e) || 0) + 1), hn.forEach((i) => Yi(i, t, n)), n;%0A}%0Afunction bo(t, e = t) {%0A const n = Zt.get(t);%0A if (!n) return;%0A const i = n.owners.get(e);%0A i > 1 ? n.owners.set(e, i - 1) : n.owners.delete(e), !n.owners.size && (n.handlers.forEach((r, o) => t.removeEventListener(o, r)), Zt.delete(t));%0A}%0Afunction Yi(t, e, n) {%0A if (n.handlers.has(t)) return;%0A const i = (r) => So(r, e, n);%0A n.handlers.set(t, i), e.addEventListener(t, i);%0A}%0Afunction xo(t, e) {%0A let n = t, i = 0;%0A for (; n; ) {%0A if (e.owners.has(n)) return {%0A owner: n,%0A distance: i%0A };%0A i++, n = n._$host || n.parentNode || n.host;%0A }%0A}%0Avar Ce = null;%0Afunction Wi(t) {%0A if (Ce !== null) for (let e = 0; e < Ce.length; e++) Ce[e](t);%0A return t;%0A}%0Afunction x(t, e, n) {%0A pn(t) || (n == null || n === !1 ? t.removeAttribute(e) : t.setAttribute(e, n === !0 ? "" : n), Ce !== null && (e === "href" || e === "action") && Wi(t));%0A}%0Afunction wo(t, e, n, i) {%0A if (i)%0A Array.isArray(n) ? (t[`$$${e}`] = n[0], t[`$$${e}Data`] = n[1]) : t[`$$${e}`] = n;%0A else if (Array.isArray(n)) {%0A const r = n[0];%0A t.addEventListener(e, n[0] = (o) => r.call(t, n[1], o));%0A } else t.addEventListener(e, n, typeof n != "function" && n);%0A}%0Afunction To(t, e, n) {%0A if (!e) {%0A (n || t._$styles) && (x(t, "style"), t._$styles = void 0);%0A return;%0A }%0A const i = t.style;%0A if (typeof e == "string")%0A return t._$styles = void 0, i.cssText = e;%0A typeof n == "string" && (i.cssText = "", n = void 0);%0A let r = t._$styles;%0A r || (r = t._$styles = n ? { ...n } : {});%0A let o, s;%0A for (s in r) e[s] == null && (i.removeProperty(s), delete r[s]);%0A for (s in e)%0A o = e[s], o != null && o !== r[s] && (i.setProperty(s, o), r[s] = o);%0A}%0Afunction wt(t, e, n) {%0A n != null ? t.style.setProperty(e, n) : t.style.removeProperty(e);%0A}%0Afunction Eo(t, e) {%0A Array.isArray(t) ? t.flat(1 / 0).forEach((n) => n && n(e)) : t(e);%0A}%0Afunction We(t, e) {%0A const n = Dt(t);%0A kt(null, () => Eo(n, e));%0A}%0Avar _o = { scope: !0 }, Tt = null;%0Afunction H(t, e, n, i, r) {%0A const o = n !== void 0, s = r && r.host;%0A if (o && !i && (i = []), Tt !== null && (i = Tt.claimInitial(t, o, i)), Yn !== void 0 && typeof e == "function" && e.$ll !== void 0) {%0A const a = e, u = Mi();%0A if (Yn(t, e, n, () => kt(u, () => H(t, () => a(), n, n !== void 0 ? [] : void 0, r)))) return;%0A }%0A if (typeof e != "function" && (e = Ze(e, i, o, !0), typeof e != "function")) {%0A je(t, e, i, n), s && $e(e, s);%0A return;%0A }%0A if (o && i.length === 0) {%0A const a = document.createTextNode("");%0A t.insertBefore(a, n), i = [a];%0A }%0A let l = i;%0A Y((a) => {%0A Tt !== null && (l = Tt.reclaimRegion(l, t, n));%0A const u = Ze(e(), l, o, !0);%0A return typeof u != "function" ? u : (Y(() => (Tt !== null && (l = Tt.reclaimRegion(l, t, n)), Ze(u, l, o)), (c) => {%0A l = je(t, c, l, n), s && $e(l, s);%0A }, a !== void 0 && !(r && r.schedule) ? {%0A ...r,%0A schedule: !0%0A } : r), jn);%0A }, (a) => {%0A a !== jn && (l = je(t, a, l, n), s && $e(l, s));%0A }, e.$s ? r ? {%0A ...r,%0A scope: !0%0A } : _o : r);%0A}%0Afunction pn(t) {%0A if (!dn.hydrating) return !1;%0A if (!t || t.isConnected) return !0;%0A const e = dn.claimRoots;%0A if (e) {%0A for (let n = 0; n < e.length; n++) if (e[n].contains(t)) return !0;%0A }%0A return !1;%0A}%0Afunction So(t, e, n) {%0A if (Tt !== null && Tt.dedupEvent(t)) return;%0A const i = t[Wn];%0A let r;%0A if (i) {%0A if (i === !0 || i === e || !e.contains(i)) return;%0A r = i;%0A }%0A const o = n && (n.owners.size === 1 && n.owners.has(e) ? e : xo(t.target, n)?.owner);%0A if (n && !o || o && o === r) return;%0A t[Wn] = o || !0;%0A let s = r || t.target;%0A const l = `$$${t.type}`, a = t.target, u = o || e || t.currentTarget, c = (w) => Object.defineProperty(t, "target", {%0A configurable: !0,%0A value: w%0A }), b = () => {%0A let w = s[l];%0A if (w === void 0 && s.hasAttribute && s.hasAttribute("_bnd")) {%0A const v = globalThis[Symbol.for("solid.bnd")];%0A v && (w = v.resolve(s, t.type));%0A }%0A if (w && !s.disabled) {%0A const v = s[`${l}Data`];%0A if (v !== void 0 ? w.call(s, v, t) : w.call(s, t), t.cancelBubble) return;%0A }%0A return s.host && typeof s.host != "string" && !s.host._$host && s.contains(t.target) && c(s.host), !0;%0A }, h = () => {%0A for (; s && b() && !(s === u || s.parentNode === u); )%0A s = s._$host || s.parentNode || s.host;%0A };%0A if (Object.defineProperty(t, "currentTarget", {%0A configurable: !0,%0A get() {%0A return s || u || document;%0A }%0A }), r)%0A r === t.target && (s = r._$host || r.parentNode || r.host), s && s !== u && h();%0A else if (t.composedPath) {%0A const w = t.composedPath();%0A if (w.length) {%0A c(w[0]);%0A for (let v = 0; v < w.length && (s = w[v], !!b()); v++) {%0A if (s._$host) {%0A s = s._$host, h();%0A break;%0A }%0A if (s === u || s.parentNode === u) break;%0A }%0A } else h();%0A } else h();%0A c(a);%0A}%0Afunction je(t, e, n, i) {%0A if (Tt !== null && pn(t)) {%0A if (e && e !== n) {%0A const s = Array.isArray(e);%0A for (const l of s ? e : [e]) if (l && l.nodeType) {%0A if (!pn(l)) return n;%0A } else if (s && (typeof l == "string" || typeof l == "number")) return n;%0A }%0A return e;%0A }%0A if (e === n) return e;%0A const r = typeof e, o = i !== void 0;%0A if (r === "string" || r === "number") {%0A const s = typeof n;%0A s === "string" || s === "number" ? t.firstChild.data = e : ji(t, n) ? t.textContent = e : (Zi(t, n), t.insertBefore(document.createTextNode(e), t.firstChild));%0A } else if (e === void 0) Te(t, n, i);%0A else if (e.nodeType)%0A Array.isArray(n) ? Te(t, n, o ? i : null, e) : n && n.nodeType ? n.parentNode === t ? t.replaceChild(e, n) : t.appendChild(e) : n && t.firstChild ? t.replaceChild(e, t.firstChild) : t.appendChild(e), i && (e[J] = i);%0A else if (Array.isArray(e)) {%0A const s = n && Array.isArray(n);%0A for (let l = 0, a = e.length; l < a; l++) {%0A const u = e[l], c = typeof u;%0A if (c === "string" || c === "number") {%0A const b = s ? n[l] : void 0;%0A b && b.nodeType === 3 ? (b.data !== "" + u && (b.data = u), e[l] = b) : e[l] = document.createTextNode(u);%0A }%0A }%0A e.length === 0 ? Te(t, n, i) : s ? n.length === 0 ? ti(t, e, i) : po(t, n, e, i) : (n && Te(t, n), ti(t, e));%0A }%0A return e;%0A}%0Afunction Ze(t, e, n, i) {%0A if (t = Qi(t, {%0A skipNonRendered: !0,%0A doNotUnwrap: i%0A }), i && typeof t == "function") return t;%0A if (n && !Array.isArray(t) && (t = [t ?? ""]), dn.hydrating && Array.isArray(t)) for (let r = 0, o = t.length; r < o; r++) {%0A const s = t[r], l = e && e[r], a = typeof s;%0A (a === "string" || a === "number") && l && l.nodeType === 3 && (t[r] = l);%0A }%0A return t;%0A}%0Afunction $e(t, e) {%0A if (Array.isArray(t)) for (let n = 0, i = t.length; n < i; n++) $e(t[n], e);%0A else t && t.nodeType && t[Qn] !== e && (t[Qn] = e, Object.defineProperty(t, "_$host", {%0A get: e,%0A configurable: !0%0A }));%0A}%0Afunction ti(t, e, n = null) {%0A for (let i = 0, r = e.length; i < r; i++) {%0A const o = e[i];%0A t.insertBefore(o, n), n && (o[J] = n);%0A }%0A}%0Afunction ji(t, e) {%0A if (e == null) return !0;%0A if (Array.isArray(e)) return e.length ? t.firstChild === e[0] && t.lastChild === e[e.length - 1] : t.firstChild === null;%0A if (e === "") return t.firstChild === null;%0A if (e.nodeType) return t.firstChild === e && t.lastChild === e;%0A const n = t.firstChild;%0A return n !== null && n.nodeType === 3 && t.lastChild === n;%0A}%0Afunction Zi(t, e) {%0A if (Array.isArray(e)) for (let n = 0; n < e.length; n++) {%0A const i = e[n];%0A i.parentNode === t && i.remove();%0A }%0A else if (e.nodeType)%0A e.parentNode === t && e.remove();%0A else {%0A const n = t.firstChild;%0A n && n.nodeType === 3 && n.remove();%0A }%0A}%0Afunction Te(t, e, n, i) {%0A if (n === void 0)%0A return ji(t, e) ? t.textContent = "" : Zi(t, e);%0A if (e.length) {%0A let r = !1;%0A for (let o = e.length - 1; o >= 0; o--) {%0A const s = e[o];%0A if (i !== s) {%0A const l = s[J], a = s.parentNode === t && (!l || l === n);%0A i && !r && !o ? a ? t.replaceChild(i, s) : t.insertBefore(i, n) : a && s.remove();%0A } else r = !0;%0A }%0A } else i && t.insertBefore(i, n);%0A i && n && (i[J] = n);%0A}%0Avar _n = "MESSAGE_VISIBILITY_EXTERNAL", Ji = "MESSAGE_SOURCE_AGENT", Ao = "MESSAGE_SOURCE_INAPPSUPPORT", Co = (t) => /client|rider|eater/i.test(t.userType ?? ""), $o = (t) => /driver|partner|courier/i.test(t.userType ?? ""), Io = (t) => t.closureKind === "bliss-closed", ko = (t) => t.closureKind != null, No = (t) => t.messages.some((e) => e.source === Ao && e.visibility === _n), Mo = (t) => t.messages.some((e) => e.source === Ji && e.visibility === _n), Lo = "addPhoneMetadataV2", Oo = "we attempted to call you";%0Afunction Ro(t) {%0A const e = t.messages.flatMap((n, i) => n.actionType === Lo ? [i] : []);%0A return e.length ? !e.every((n) => t.messages.slice(n + 1).find((i) => i.actionType === "addMessageV1" && i.source === Ji && i.visibility === _n)?.text.toLowerCase().includes(Oo)) : !1;%0A}%0Avar Po = (t) => No(t) || Ro(t);%0Afunction Do(t) {%0A const e = [];%0A if (t.length) {%0A const r = t.every(Io), o = t.every(ko);%0A e.push(r ? {%0A label: "Investigation Closed",%0A tone: "ok",%0A title: "Every linked contact is solved in Bliss."%0A } : o ? {%0A label: "Investigation Closed (72hrs+ elapsed)",%0A tone: "ok",%0A title: "Every linked contact is solved or has been closed after 72 hours without a rider response."%0A } : {%0A label: "Investigation Ongoing",%0A tone: "warn",%0A title: "At least one selected contact is not closed."%0A });%0A }%0A const n = t.filter(Co);%0A if (n.length) {%0A const r = n.some(Po);%0A e.push(r ? {%0A label: "Rider inbound made",%0A tone: "ok",%0A title: "The rider wrote in or a call follow-up confirms the rider was reached."%0A } : {%0A label: "No rider inbound",%0A tone: "warn",%0A title: "The rider never wrote in and no rider call was confirmed or left unclear."%0A });%0A }%0A const i = t.filter($o);%0A if (i.length) {%0A const r = i.some(Mo);%0A e.push(r ? {%0A label: "Driver outreach made",%0A tone: "ok",%0A title: "We sent the driver an external message or a successful call to the driver was found."%0A } : {%0A label: "No driver outreach",%0A tone: "warn",%0A title: "We never sent the driver an external message and no successful call to the driver was found."%0A });%0A }%0A return e;%0A}%0Avar Bo = 1040, ei = 220, Uo = 44, zo = 96, ni = 48, Ho = 38, ii = 16, qo = 28;%0Afunction Bt(t) {%0A return t != null && Number.isFinite(t) && t > 0;%0A}%0Afunction Go(t, e) {%0A const n = Yt(t), i = Yt(e), r = Bt(n), o = Bt(i);%0A return r && o && n !== i ? n - i : r !== o ? r ? -1 : 1 : t.uuid.localeCompare(e.uuid);%0A}%0Afunction Vo(t) {%0A return [...t].sort(Go);%0A}%0Afunction Je(t) {%0A return t.recipientId ?? `contact:${t.uuid}`;%0A}%0Afunction Fo(t) {%0A return t.find((e) => e.recipientName?.trim())?.recipientName?.trim() || "Unknown recipient";%0A}%0Afunction Yt(t) {%0A return Bt(t.openedAt) ? t.openedAt : Bt(t.firstMessageAt) ? t.firstMessageAt : Bt(t.lastMessageAt) ? t.lastMessageAt : null;%0A}%0Afunction ri(t) {%0A return Bt(t.closedAt) ? t.closedAt : Bt(t.lastMessageAt) ? t.lastMessageAt : Yt(t);%0A}%0Avar tn = [%0A 6e4,%0A 3e5,%0A 6e5,%0A 9e5,%0A 18e5,%0A 36e5,%0A 72e5,%0A 216e5,%0A 432e5,%0A 864e5,%0A 6048e5,%0A 12096e5,%0A 2592e6,%0A 7776e6,%0A 31536e6%0A], Xo = 140, Qo = 100;%0Afunction Ko(t, e, n, i) {%0A const r = Math.max(1, (e - t) / (792 * i / Xo)), o = tn.find((u) => u >= r) ?? tn[tn.length - 1], s = Math.ceil(t / o) * o, l = Math.floor(e / o) * o, a = [];%0A for (let u = s; u <= l && a.length < Qo; ) {%0A a.push({%0A timestamp: u,%0A x: n(u)%0A });%0A const c = u + o;%0A if (c <= u) break;%0A u = c;%0A }%0A return a;%0A}%0Afunction Yo(t, e = 1) {%0A const n = Vo(t), i = [...new Set(n.map(Je))].sort((m, T) => m.localeCompare(T)), r = n.filter((m) => Yt(m) != null).flatMap((m) => [Yt(m), ri(m)]), o = r.length ? Math.min(...r) : 0, s = r.length ? Math.max(...r) : 0, l = 792, a = Math.max(s - o, 1), u = (m) => ei + (m - o) / a * l, c = Math.max(1, Math.floor(l / 18)), b = ei, h = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), v = new Map(i.map((m) => [m, []]));%0A for (const m of n) v.get(Je(m)).push(m);%0A const S = /* @__PURE__ */ new Map();%0A for (const m of i) {%0A const T = [];%0A let N = 0;%0A for (const K of v.get(m)) {%0A const q = Yt(K), G = ri(K);%0A if (q == null || G == null) {%0A const ht = N %25 c, tt = T.length + Math.floor(N / c);%0A N++, S.set(K.uuid, {%0A x: b + ht * 18,%0A endX: b + ht * 18 + ii,%0A hasTime: !1,%0A row: tt,%0A startAt: null,%0A endAt: null%0A });%0A continue;%0A }%0A const xt = u(q), _t = Math.max(xt + ii, u(Math.max(q, G)));%0A let mt = T.findIndex((ht) => ht < xt);%0A mt === -1 && (mt = T.length), T[mt] = _t, S.set(K.uuid, {%0A x: xt,%0A endX: _t,%0A hasTime: !0,%0A row: mt,%0A startAt: q,%0A endAt: G%0A });%0A }%0A w.set(m, Math.max(1, T.length + Math.ceil(N / c)));%0A }%0A let p = Uo;%0A const y = i.map((m) => {%0A const T = w.get(m), N = {%0A key: m,%0A label: Fo(v.get(m)),%0A y: p + qo / 2%0A };%0A return p += Math.max(zo, T * ni + 16), N;%0A }), f = new Map(y.map((m) => [m.key, m]));%0A for (const m of n) {%0A const T = S.get(m.uuid), N = f.get(Je(m));%0A h.set(m.uuid, {%0A uuid: m.uuid,%0A x: T.x,%0A endX: T.endX,%0A y: N.y + T.row * ni,%0A hasTime: T.hasTime,%0A startAt: T.startAt,%0A endAt: T.endAt%0A });%0A }%0A return {%0A nodes: h,%0A lanes: y,%0A ticks: r.length ? Ko(o, s, u, e) : [],%0A height: p + Ho,%0A width: Bo%0A };%0A}%0Afunction Wo(t, e, n) {%0A const i = (t.x + t.endX) / 2, r = t.y, o = (e.x + e.endX) / 2, s = e.y, l = o - i, a = s - r, u = Math.hypot(l, a) || 1, c = 20 + n * 14;%0A return `M${i},${r} Q${(i + o) / 2 - a / u * c},${(r + s) / 2 + l / u * c} ${o},${s}`;%0A}%0Afunction jo(t, e) {%0A return e.map((n) => t != null && (n.from === t || n.to === t));%0A}%0Avar Zo = /* @__PURE__ */ new Set([%0A "createContactMessage",%0A "addInternalNoteV1",%0A "addMessageV1",%0A "addPhoneMetadataV2"%0A]);%0Afunction Jo(t) {%0A return Zo.has(t.actionType);%0A}%0Afunction ts(t) {%0A return `${t.actionType.replace(/^ACTION_TYPE_/, "").replaceAll("_", " ") || "Event"} · ${Vt(t.createdAt)}`;%0A}%0Afunction Vt(t) {%0A const e = new Date(t);%0A return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")} ${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}:${String(e.getSeconds()).padStart(2, "0")}`;%0A}%0Afunction es(t, e, n) {%0A const i = (Math.max(e.x, Math.min(n.x, t)) - e.x) / Math.max(n.x - e.x, 1);%0A return e.timestamp + i * (n.timestamp - e.timestamp);%0A}%0Afunction ns(t, e = 24) {%0A return t.length <= e ? t : `${t.slice(0, e - 1).trimEnd()}…`;%0A}%0Avar is = "__BLISS_DRAFTER_URL__";%0Afunction rs(t) {%0A const e = new TextEncoder().encode(t);%0A let n = "";%0A for (let i = 0; i < e.length; i += 32768) n += String.fromCharCode(...e.slice(i, i + 32768));%0A return btoa(n).replace(/%5C+/g, "-").replace(/%5C//g, "_").replace(/=+$/, "");%0A}%0Afunction os(t, e = "_blank", n = null) {%0A const i = {%0A sortedUuids: t.sortedUuids,%0A contacts: t.contacts,%0A users: t.users%0A }, r = rs(JSON.stringify(i)), o = `${is}%23upload=${r}`;%0A n && !n.closed ? n.location.href = o : window.open(o, e);%0A}%0Avar Sn = /contact:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/gi, tr = /https?:%5C/%5C/blissnxt[^%5Cs<>"']+/g, ss = "https://blissnxt.uberinternal.com/hydrator/graphql";%0Aasync function Ue(t, e, n = {}) {%0A const i = await (n.fetch ?? globalThis.fetch)(`${ss}?opName=${t.opName}`, {%0A method: "POST",%0A credentials: "include",%0A signal: n.signal,%0A headers: {%0A "content-type": "application/json",%0A "x-csrf-token": "x",%0A "rpc-procedure": t.rpcProcedure,%0A ...n.headers%0A },%0A body: JSON.stringify({%0A operationName: t.opName,%0A variables: e,%0A query: t.query%0A })%0A });%0A if (!i.ok) throw new Error(`Bliss ${t.opName} HTTP ${i.status} ${i.statusText}`);%0A const r = await i.json();%0A if (!r.data) {%0A if (r.errors?.length) {%0A const o = r.errors.map((s) => s.message).join("; ");%0A throw new Error(`Bliss ${t.opName} GraphQL error: ${o}`);%0A }%0A throw new Error(`Bliss ${t.opName} returned no data`);%0A }%0A return r.data;%0A}%0Avar ls = `query getContactContext($contactId: String) {%0A hydrationGetContactContext(%0A in: {%0A contactCustomRequest: {%0A contactId: {value: $contactId}%0A filters: {action: {inclusions: {inclusions: {event: {outcomeType: {outcomeType: [ACTION_OUTCOME_TYPE_SUCCEEDED]}}}}, exclusions: {exclusions: {type: {type: ["recordAgentViewStartV1", "recordAgentViewEndV1"]}}}}}%0A includeInlineAttachmentUrl: true%0A }%0A contactNestedParams: {%0A requesterRequest: {%0A fieldsToSelectV2: {%0A fieldMask: {%0A paths: [%0A "id.uuid.value",%0A "user_info.name.first_name.value",%0A "user_info.name.last_name.value",%0A "user_info.role",%0A "user_info.signup_info.city_id.value",%0A "user_info.signup_info.country_id.value"%0A ]%0A }%0A }%0A }%0A tripRequest: {options: {includeAgora: true, includePaymentProfile: true}}%0A territoryRequest: {request: {options: {includeCountry: true}}}%0A }%0A }%0A ) {%0A contact {%0A id { value }%0A userType%0A modality%0A status%0A createdAt { value }%0A updatedAt { value }%0A cityId%0A countryId { value }%0A territory {%0A name%0A country { name }%0A }%0A requester {%0A id { uuid { value } }%0A userInfo {%0A name { firstName lastName }%0A role%0A signupInfo { cityId countryId }%0A }%0A }%0A trip {%0A uuid { value }%0A driverUuid { value }%0A clientUuid { value }%0A partnerUuid { value }%0A cityId%0A countryId%0A }%0A actions {%0A actions {%0A id { value }%0A actionType%0A arguments { arguments { name value } }%0A message {%0A source%0A visibility%0A text%0A createdAt { value }%0A }%0A }%0A }%0A }%0A }%0A}%0A`, er = {%0A opName: "getContactContext",%0A rpcProcedure: "bliss_hydrator.get_contact_context.__no_postfix__",%0A query: ls%0A}, as = `query getRelatedContacts($contactId: String!, $tenancy: String!) {%0A hydrationGetContactContext(%0A in: {contactCustomRequest: {contactId: {value: $contactId}}, contactDownstreamHeaders: {entries: [{key: "x-uber-tenancy", value: $tenancy}]}}%0A ) {%0A relatedContacts {%0A isSafetyContact%0A relatedContacts {%0A contactId%0A isContactOfRecord%0A }%0A }%0A }%0A}%0A`, us = {%0A opName: "getRelatedContacts",%0A rpcProcedure: "bliss_hydrator.get_related_contacts.__no_postfix__",%0A query: as%0A}, cs = `query getUserContext($requesterID: String!) {%0A hydrationGetUserContext(%0A in: {%0A userCustomRequest: {%0A criteria: {userId: {uuid: {value: $requesterID}}}%0A fieldsToSelectV2: {%0A fieldMask: {%0A paths: [%0A "user_info.name.first_name.value",%0A "user_info.name.last_name.value",%0A "user_info.role",%0A "user_info.user_types",%0A "user_info.signup_info.city_id.value",%0A "user_info.signup_info.country_id.value",%0A "user_info.signup_info.country_iso2_code.value",%0A "extensions[driver].proto.onboarding.city_id",%0A "extensions[driver].proto.onboarding.driver_business_city_id",%0A "extensions[driver].proto.onboarding.current_status",%0A "extensions[driver].proto.onboarding.flow_type"%0A ]%0A }%0A }%0A }%0A }%0A ) {%0A user {%0A id { uuid { value } }%0A userInfo {%0A name { firstName lastName }%0A role%0A signupInfo {%0A cityId%0A countryId%0A countryIso2Code%0A territory {%0A name%0A slug%0A country { name }%0A }%0A }%0A userTypes%0A }%0A driverInfo {%0A onboarding {%0A driverBusinessCityId%0A cityId%0A currentStatus%0A flowType%0A territory {%0A name%0A country { name }%0A }%0A }%0A }%0A }%0A }%0A}%0A`, fs = {%0A opName: "getUserContext",%0A rpcProcedure: "bliss_hydrator.get_user_context.__no_postfix__",%0A query: cs%0A}, oi = 45e3, en = 8, nn = 120, ds = /* @__PURE__ */ new Set(["recordAgentViewStartV1", "recordAgentViewEndV1"]), Ft = null;%0Afunction it(t, ...e) {%0A ms(t);%0A}%0Afunction hs() {%0A it("Reading Bliss auth info...");%0A const t = document.getElementById("__AUTH_INFO__");%0A if (!t?.content) throw new Error("Could not find __AUTH_INFO__ meta tag on the page");%0A const e = JSON.parse(`"${t.content.replace(/"/g, '%5C%5C"')}"`), n = JSON.parse(e), i = n.uuid, r = n.agentInfo?.agentId;%0A if (!i) throw new Error("uuid missing from __AUTH_INFO__");%0A if (!r) throw new Error("agentInfo.agentId missing from __AUTH_INFO__");%0A return it("Found Bliss auth info", {%0A uuidPrefix: i.slice(0, 8),%0A agentId: r%0A }), {%0A uuid: i,%0A agentId: r%0A };%0A}%0Afunction ps() {%0A const t = [...(new URL(location.href).searchParams.get("tabs") ?? "").matchAll(Sn)].map((e) => e[1].toLowerCase());%0A return it("Read contact tabs from Bliss URL", t), t;%0A}%0Afunction gs(t) {%0A return `https://blissnxt.uberinternal.com/tabs?tabs=${t.map((e) => `contact:${e}`).join(",")}`;%0A}%0Afunction ys() {%0A if (Ft && document.body.contains(Ft)) return Ft;%0A const t = document.createElement("div");%0A return t.id = "launch-autodrafter-overlay", t.style.cssText = [%0A "position:fixed",%0A "top:12px",%0A "right:12px",%0A "z-index:2147483647",%0A "background:%23111827",%0A "color:%23fff",%0A "font-family:system-ui,sans-serif",%0A "font-size:12px",%0A "padding:8px 12px",%0A "border-radius:6px",%0A "box-shadow:0 4px 12px rgba(0,0,0,0.3)",%0A "max-width:340px",%0A "line-height:1.4"%0A ].join(";"), document.body.appendChild(t), Ft = t, t;%0A}%0Afunction ms(t) {%0A ys().textContent = t;%0A}%0Afunction vs() {%0A Ft?.remove(), Ft = null;%0A}%0Afunction nr(t, e) {%0A const n = new AbortController(), i = setTimeout(() => n.abort(), oi);%0A return t(n.signal).catch((r) => {%0A throw r instanceof DOMException && r.name === "AbortError" ? new Error(`${e} timed out after ${oi}ms`) : r;%0A }).finally(() => clearTimeout(i));%0A}%0Aasync function bs(t) {%0A return it(`Fetching contact ${t.slice(0, 8)}...`, { contactId: t }), nr((e) => Ue(er, { contactId: t }, { signal: e }), `getContactContext(${t})`);%0A}%0Aasync function xs(t) {%0A return it(`Fetching user ${t.slice(0, 8)}...`, { requesterID: t }), nr((e) => Ue(fs, { requesterID: t }, { signal: e }), `getUserContext(${t})`);%0A}%0Afunction ws(t) {%0A return [t?.firstName, t?.lastName].filter(Boolean).join(" ") || null;%0A}%0Afunction ze(t) {%0A const e = t.hydrationGetContactContext?.contact;%0A if (!e) throw new Error("GraphQL response did not include contact data");%0A return e;%0A}%0Afunction Ts(t) {%0A const e = ze(t).requester, n = e?.userInfo?.name;%0A return {%0A id: e?.id?.uuid?.value ?? null,%0A name: ws(n),%0A firstName: n?.firstName ?? null,%0A lastName: n?.lastName ?? null%0A };%0A}%0Afunction Es(t) {%0A return ze(t).userType ?? null;%0A}%0Afunction _s(t) {%0A const e = ze(t).trip;%0A return e ? {%0A uuid: e.uuid?.value ?? null,%0A driverUuid: e.driverUuid?.value ?? null,%0A clientUuid: e.clientUuid?.value ?? null,%0A partnerUuid: e.partnerUuid?.value ?? null,%0A cityId: e.cityId ?? null,%0A countryId: e.countryId ?? null%0A } : null;%0A}%0Afunction Ss(t) {%0A return (ze(t).actions?.actions ?? []).filter((e) => !ds.has(e.actionType ?? "")).map((e) => {%0A const n = e.message, i = {};%0A for (const r of e.arguments?.arguments ?? []) i[r.name] = r.value;%0A return {%0A text: n?.text ?? "",%0A createdAt: new Date(n?.createdAt?.value ?? 0),%0A source: n?.source ?? "",%0A visibility: n?.visibility ?? "",%0A actionType: e.actionType ?? "",%0A arguments: i%0A };%0A }).sort((e, n) => e.createdAt.getTime() - n.createdAt.getTime());%0A}%0Afunction As(t) {%0A const e = /* @__PURE__ */ new Set();%0A for (const n of t) for (const i of n.text.match(tr) ?? []) for (const [, r] of i.matchAll(Sn)) e.add(r.toLowerCase());%0A return [...e];%0A}%0Afunction Cs(t) {%0A return !t || t.name == null && t.country?.name == null ? null : {%0A name: t.name ?? null,%0A country: t.country?.name ?? null%0A };%0A}%0Afunction $s(t, e) {%0A const n = e.hydrationGetUserContext?.user?.driverInfo?.onboarding;%0A return {%0A uuid: t,%0A driverTerritory: Cs(n?.territory),%0A driverCityId: n?.driverBusinessCityId ?? n?.cityId ?? null%0A };%0A}%0Aasync function Is(t) {%0A const e = await Promise.allSettled(t.map(bs)), n = [], i = [];%0A for (let r = 0; r < t.length; r++) {%0A const o = e[r];%0A if (o.status === "rejected") {%0A it(`Contact fetch failed: ${t[r].slice(0, 8)}`, {%0A uuid: t[r],%0A reason: o.reason instanceof Error ? o.reason.message : String(o.reason)%0A }), i.push({%0A uuid: t[r],%0A reason: o.reason%0A }), n.push({%0A uuid: t[r],%0A messages: [],%0A firstAt: 1 / 0,%0A mentionedUuids: [],%0A requester: {%0A id: null,%0A name: null,%0A firstName: null,%0A lastName: null%0A },%0A userType: null,%0A trip: null%0A });%0A continue;%0A }%0A const s = Ss(o.value), l = s.map((h) => h.createdAt.getTime()), a = As(s), u = Ts(o.value), c = Es(o.value), b = _s(o.value);%0A it(`Parsed contact ${t[r].slice(0, 8)}`, {%0A uuid: t[r],%0A messages: s.length,%0A mentionedUuids: a,%0A requester: u,%0A userType: c,%0A tripDriverUuid: b?.driverUuid ?? null%0A }), n.push({%0A uuid: t[r],%0A messages: s,%0A firstAt: l.length ? Math.min(...l) : 1 / 0,%0A mentionedUuids: a,%0A requester: u,%0A userType: c,%0A trip: b%0A });%0A }%0A return {%0A results: n,%0A errors: i%0A };%0A}%0Aasync function ks(t) {%0A const e = await Promise.allSettled(t.map(xs)), n = [], i = [];%0A for (let r = 0; r < t.length; r++) {%0A const o = e[r];%0A if (o.status === "rejected") {%0A it(`User fetch failed: ${t[r].slice(0, 8)}`, {%0A uuid: t[r],%0A reason: o.reason instanceof Error ? o.reason.message : String(o.reason)%0A }), i.push({%0A uuid: t[r],%0A reason: o.reason%0A });%0A continue;%0A }%0A n.push($s(t[r], o.value));%0A }%0A return {%0A users: n,%0A errors: i%0A };%0A}%0Afunction Ns(t) {%0A const e = /* @__PURE__ */ new Set();%0A for (const n of t)%0A n.requester.id && e.add(n.requester.id), n.trip?.driverUuid && e.add(n.trip.driverUuid), n.trip?.clientUuid && e.add(n.trip.clientUuid), n.trip?.partnerUuid && e.add(n.trip.partnerUuid);%0A return [...e];%0A}%0Aasync function Ms() {%0A it("Starting sweep", { href: location.href }), hs();%0A const t = ps();%0A if (!t.length)%0A return alert(`Bliss Drafter: no contact tabs found in the current URL.%0AOpen a Bliss page like /tabs?tabs=contact:&view=0 first.`), null;%0A const e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), i = [];%0A let r = [...new Set(t)], o = 0;%0A for (; r.length; ) {%0A if (o++, o > en) {%0A i.push(...r.map((p) => ({%0A uuid: p,%0A reason: `Stopped at max sweep depth ${en}`%0A }))), it("Stopped recursive fetch at max depth", {%0A maxDepth: en,%0A skipped: r%0A });%0A break;%0A }%0A it(o === 1 ? `Fetching ${r.length} tab contact(s)...` : `Depth ${o}: fetching ${r.length} linked contact(s)...`, {%0A pending: r,%0A depth: o%0A });%0A const { results: h, errors: w } = await Is(r);%0A i.push(...w);%0A for (const p of h)%0A e.set(p.uuid, p), n.set(p.uuid, p.mentionedUuids);%0A const v = new Set(e.keys()), S = /* @__PURE__ */ new Set();%0A r = h.flatMap((p) => p.mentionedUuids.filter((y) => v.has(y) || S.has(y) || e.size + S.size >= nn ? !1 : (S.add(y), !0))), e.size >= nn && (it("Stopped recursive fetch at max contact count", {%0A maxContacts: nn,%0A fetched: e.size%0A }), r = []), it(`Depth ${o} complete`, {%0A totalFetched: e.size,%0A nextPending: r,%0A errors: i.length%0A });%0A }%0A const s = Ns(e.values());%0A it(`Hydrating ${s.length} unique person(s)...`, { personUuids: s });%0A const { users: l, errors: a } = s.length ? await ks(s) : {%0A users: [],%0A errors: []%0A };%0A i.push(...a);%0A const u = [...e.values()].sort((h, w) => h.firstAt - w.firstAt), c = u.map((h) => h.uuid), b = {%0A sortedUuids: c,%0A combinedUrl: gs(c),%0A contacts: Object.fromEntries(u.map((h) => [h.uuid, {%0A uuid: h.uuid,%0A firstAt: h.firstAt === 1 / 0 ? null : h.firstAt,%0A messages: h.messages,%0A requester: h.requester,%0A userType: h.userType,%0A trip: h.trip%0A }])),%0A users: Object.fromEntries(l.map((h) => [h.uuid, h])),%0A errors: i.map((h) => ({%0A uuid: h.uuid,%0A reason: h.reason instanceof Error ? h.reason.message : String(h.reason)%0A }))%0A };%0A return it("Sweep complete", {%0A contacts: c.length,%0A users: Object.keys(b.users).length,%0A messages: Object.values(b.contacts).reduce((h, w) => h + w.messages.length, 0),%0A errors: b.errors,%0A payloadBytes: JSON.stringify(b).length%0A }), b;%0A}%0Avar si = "blissnxt.uberinternal.com";%0Afunction Ls(t) {%0A return t.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "&%2339;");%0A}%0Afunction Os(t) {%0A t.document.open(), t.document.write(`%0A%0A %0A Launch Bliss Drafter%0A %0A %0A
%0A

Preparing Bliss Drafter

%0A

Gathering the selected Bliss contacts. This tab will open Bliss Drafter automatically.

%0A
%0A %0A`), t.document.close();%0A}%0Afunction Rs(t, e) {%0A t.document.open(), t.document.write(`%0A%0A %0A Bliss Drafter needs attention%0A %0A %0A
%0A

Bliss Drafter could not start

%0A

${Ls(e)}

%0A
%0A %0A`), t.document.close();%0A}%0Aasync function Ps() {%0A if (location.hostname !== si) {%0A alert(`Launch Bliss Drafter must be clicked from a Bliss page on ${si}.`);%0A return;%0A }%0A const t = `launch-bliss-drafter-${Date.now()}`, e = window.open("about:blank", t);%0A e && Os(e);%0A try {%0A const n = await Ms();%0A n && (os(n, e ? t : "_blank", e), window.location.href = n.combinedUrl);%0A } catch (n) {%0A const i = n instanceof Error ? n.message : String(n);%0A e && !e.closed && Rs(e, i), vs(), alert(`Bliss Drafter failed: ${i}`);%0A }%0A}%0Avar Ds = 0.5, Bs = 3;%0Afunction Us(t) {%0A return t.ctrlKey ? "zoom" : t.shiftKey && Math.abs(t.deltaY) >= Math.abs(t.deltaX) ? "horizontal" : "native";%0A}%0Afunction zs(t) {%0A return Math.max(Ds, Math.min(Bs, t));%0A}%0Afunction Hs(t, e) {%0A return zs(t * Math.exp(-e * 2e-3));%0A}%0Afunction qs({ scroll: t, pointer: e, fromZoom: n, toZoom: i, fixedBefore: r = 0 }) {%0A return r + (t + e - r) / n * i - e;%0A}%0Afunction Re(t, e, n = 220) {%0A return n + (t - n) * e;%0A}%0Afunction Gs(t, e) {%0A return Re(t, e);%0A}%0Afunction Vs(t, e, n = 220) {%0A return n + (t - n) / e;%0A}%0Afunction Fs(t, e, n, i) {%0A const r = Re(n, e) - i;%0A return Math.max(i, Math.min(r, Re(t, e)));%0A}%0Avar Xs = /* @__PURE__ */ Q("", 2), Qs = /* @__PURE__ */ Q('', 2), Ks = /* @__PURE__ */ Q('