UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

1,255 lines 2.64 MB
// dist/igniteui-angular-elements/browser/polyfills.js var ce = globalThis; function ne(n) { return (ce.__Zone_symbol_prefix || "__zone_symbol__") + n; } function Gt() { let n = ce.performance; function e(A10) { n && n.mark && n.mark(A10); } function s(A10, m10) { n && n.measure && n.measure(A10, m10); } e("Zone"); let t = /* @__PURE__ */ (() => { class A10 { static __symbol__ = ne; static assertZonePatched() { if (ce.Promise !== L10.ZoneAwarePromise) throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)"); } static get root() { let r39 = A10.current; for (; r39.parent; ) r39 = r39.parent; return r39; } static get current() { return w10.zone; } static get currentTask() { return N; } static __load_patch(r39, o, v10 = false) { if (L10.hasOwnProperty(r39)) { let R = ce[ne("forceDuplicateZoneCheck")] === true; if (!v10 && R) throw Error("Already loaded patch: " + r39); } else if (!ce["__Zone_disable_" + r39]) { let R = "Zone:" + r39; e(R), L10[r39] = o(ce, A10, S), s(R, R); } } get parent() { return this._parent; } get name() { return this._name; } _parent; _name; _properties; _zoneDelegate; constructor(r39, o) { this._parent = r39, this._name = o ? o.name || "unnamed" : "<root>", this._properties = o && o.properties || {}, this._zoneDelegate = new l(this, this._parent && this._parent._zoneDelegate, o); } get(r39) { let o = this.getZoneWith(r39); if (o) return o._properties[r39]; } getZoneWith(r39) { let o = this; for (; o; ) { if (o._properties.hasOwnProperty(r39)) return o; o = o._parent; } return null; } fork(r39) { if (!r39) throw new Error("ZoneSpec required!"); return this._zoneDelegate.fork(this, r39); } wrap(r39, o) { if (typeof r39 != "function") throw new Error("Expecting function got: " + r39); let v10 = this._zoneDelegate.intercept(this, r39, o), R = this; return function() { return R.runGuarded(v10, this, arguments, o); }; } run(r39, o, v10, R) { w10 = { parent: w10, zone: this }; try { return this._zoneDelegate.invoke(this, r39, o, v10, R); } finally { w10 = w10.parent; } } runGuarded(r39, o = null, v10, R) { w10 = { parent: w10, zone: this }; try { try { return this._zoneDelegate.invoke(this, r39, o, v10, R); } catch (Y10) { if (this._zoneDelegate.handleError(this, Y10)) throw Y10; } } finally { w10 = w10.parent; } } runTask(r39, o, v10) { if (r39.zone != this) throw new Error("A task can only be run in the zone of creation! (Creation: " + (r39.zone || K10).name + "; Execution: " + this.name + ")"); let R = r39, { type: Y10, data: { isPeriodic: x10 = false, isRefreshable: Te = false } = {} } = r39; if (r39.state === O10 && (Y10 === q10 || Y10 === g)) return; let he2 = r39.state != j8; he2 && R._transitionTo(j8, f10); let fe2 = N; N = R, w10 = { parent: w10, zone: this }; try { Y10 == g && r39.data && !x10 && !Te && (r39.cancelFn = void 0); try { return this._zoneDelegate.invokeTask(this, R, o, v10); } catch (se2) { if (this._zoneDelegate.handleError(this, se2)) throw se2; } } finally { let se2 = r39.state; if (se2 !== O10 && se2 !== $) if (Y10 == q10 || x10 || Te && se2 === p10) he2 && R._transitionTo(f10, j8, p10); else { let h = R._zoneDelegates; this._updateTaskCount(R, -1), he2 && R._transitionTo(O10, j8, O10), Te && (R._zoneDelegates = h); } w10 = w10.parent, N = fe2; } } scheduleTask(r39) { if (r39.zone && r39.zone !== this) { let v10 = this; for (; v10; ) { if (v10 === r39.zone) throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r39.zone.name}`); v10 = v10.parent; } } r39._transitionTo(p10, O10); let o = []; r39._zoneDelegates = o, r39._zone = this; try { r39 = this._zoneDelegate.scheduleTask(this, r39); } catch (v10) { throw r39._transitionTo($, p10, O10), this._zoneDelegate.handleError(this, v10), v10; } return r39._zoneDelegates === o && this._updateTaskCount(r39, 1), r39.state == p10 && r39._transitionTo(f10, p10), r39; } scheduleMicroTask(r39, o, v10, R) { return this.scheduleTask(new d(W10, r39, o, v10, R, void 0)); } scheduleMacroTask(r39, o, v10, R, Y10) { return this.scheduleTask(new d(g, r39, o, v10, R, Y10)); } scheduleEventTask(r39, o, v10, R, Y10) { return this.scheduleTask(new d(q10, r39, o, v10, R, Y10)); } cancelTask(r39) { if (r39.zone != this) throw new Error("A task can only be cancelled in the zone of creation! (Creation: " + (r39.zone || K10).name + "; Execution: " + this.name + ")"); if (!(r39.state !== f10 && r39.state !== j8)) { r39._transitionTo(V10, f10, j8); try { this._zoneDelegate.cancelTask(this, r39); } catch (o) { throw r39._transitionTo($, V10), this._zoneDelegate.handleError(this, o), o; } return this._updateTaskCount(r39, -1), r39._transitionTo(O10, V10), r39.runCount = -1, r39; } } _updateTaskCount(r39, o) { let v10 = r39._zoneDelegates; o == -1 && (r39._zoneDelegates = null); for (let R = 0; R < v10.length; R++) v10[R]._updateTaskCount(r39.type, o); } } return A10; })(), i = { name: "", onHasTask: (A10, m10, r39, o) => A10.hasTask(r39, o), onScheduleTask: (A10, m10, r39, o) => A10.scheduleTask(r39, o), onInvokeTask: (A10, m10, r39, o, v10, R) => A10.invokeTask(r39, o, v10, R), onCancelTask: (A10, m10, r39, o) => A10.cancelTask(r39, o) }; class l { get zone() { return this._zone; } _zone; _taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 }; _parentDelegate; _forkDlgt; _forkZS; _forkCurrZone; _interceptDlgt; _interceptZS; _interceptCurrZone; _invokeDlgt; _invokeZS; _invokeCurrZone; _handleErrorDlgt; _handleErrorZS; _handleErrorCurrZone; _scheduleTaskDlgt; _scheduleTaskZS; _scheduleTaskCurrZone; _invokeTaskDlgt; _invokeTaskZS; _invokeTaskCurrZone; _cancelTaskDlgt; _cancelTaskZS; _cancelTaskCurrZone; _hasTaskDlgt; _hasTaskDlgtOwner; _hasTaskZS; _hasTaskCurrZone; constructor(m10, r39, o) { this._zone = m10, this._parentDelegate = r39, this._forkZS = o && (o && o.onFork ? o : r39._forkZS), this._forkDlgt = o && (o.onFork ? r39 : r39._forkDlgt), this._forkCurrZone = o && (o.onFork ? this._zone : r39._forkCurrZone), this._interceptZS = o && (o.onIntercept ? o : r39._interceptZS), this._interceptDlgt = o && (o.onIntercept ? r39 : r39._interceptDlgt), this._interceptCurrZone = o && (o.onIntercept ? this._zone : r39._interceptCurrZone), this._invokeZS = o && (o.onInvoke ? o : r39._invokeZS), this._invokeDlgt = o && (o.onInvoke ? r39 : r39._invokeDlgt), this._invokeCurrZone = o && (o.onInvoke ? this._zone : r39._invokeCurrZone), this._handleErrorZS = o && (o.onHandleError ? o : r39._handleErrorZS), this._handleErrorDlgt = o && (o.onHandleError ? r39 : r39._handleErrorDlgt), this._handleErrorCurrZone = o && (o.onHandleError ? this._zone : r39._handleErrorCurrZone), this._scheduleTaskZS = o && (o.onScheduleTask ? o : r39._scheduleTaskZS), this._scheduleTaskDlgt = o && (o.onScheduleTask ? r39 : r39._scheduleTaskDlgt), this._scheduleTaskCurrZone = o && (o.onScheduleTask ? this._zone : r39._scheduleTaskCurrZone), this._invokeTaskZS = o && (o.onInvokeTask ? o : r39._invokeTaskZS), this._invokeTaskDlgt = o && (o.onInvokeTask ? r39 : r39._invokeTaskDlgt), this._invokeTaskCurrZone = o && (o.onInvokeTask ? this._zone : r39._invokeTaskCurrZone), this._cancelTaskZS = o && (o.onCancelTask ? o : r39._cancelTaskZS), this._cancelTaskDlgt = o && (o.onCancelTask ? r39 : r39._cancelTaskDlgt), this._cancelTaskCurrZone = o && (o.onCancelTask ? this._zone : r39._cancelTaskCurrZone), this._hasTaskZS = null, this._hasTaskDlgt = null, this._hasTaskDlgtOwner = null, this._hasTaskCurrZone = null; let v10 = o && o.onHasTask, R = r39 && r39._hasTaskZS; (v10 || R) && (this._hasTaskZS = v10 ? o : i, this._hasTaskDlgt = r39, this._hasTaskDlgtOwner = this, this._hasTaskCurrZone = this._zone, o.onScheduleTask || (this._scheduleTaskZS = i, this._scheduleTaskDlgt = r39, this._scheduleTaskCurrZone = this._zone), o.onInvokeTask || (this._invokeTaskZS = i, this._invokeTaskDlgt = r39, this._invokeTaskCurrZone = this._zone), o.onCancelTask || (this._cancelTaskZS = i, this._cancelTaskDlgt = r39, this._cancelTaskCurrZone = this._zone)); } fork(m10, r39) { return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, m10, r39) : new t(m10, r39); } intercept(m10, r39, o) { return this._interceptZS ? this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, m10, r39, o) : r39; } invoke(m10, r39, o, v10, R) { return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, m10, r39, o, v10, R) : r39.apply(o, v10); } handleError(m10, r39) { return this._handleErrorZS ? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, m10, r39) : true; } scheduleTask(m10, r39) { let o = r39; if (this._scheduleTaskZS) this._hasTaskZS && o._zoneDelegates.push(this._hasTaskDlgtOwner), o = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, m10, r39), o || (o = r39); else if (r39.scheduleFn) r39.scheduleFn(r39); else if (r39.type == W10) G(r39); else throw new Error("Task is missing scheduleFn."); return o; } invokeTask(m10, r39, o, v10) { return this._invokeTaskZS ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, m10, r39, o, v10) : r39.callback.apply(o, v10); } cancelTask(m10, r39) { let o; if (this._cancelTaskZS) o = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, m10, r39); else { if (!r39.cancelFn) throw Error("Task is not cancelable"); o = r39.cancelFn(r39); } return o; } hasTask(m10, r39) { try { this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, m10, r39); } catch (o) { this.handleError(m10, o); } } _updateTaskCount(m10, r39) { let o = this._taskCounts, v10 = o[m10], R = o[m10] = v10 + r39; if (R < 0) throw new Error("More tasks executed then were scheduled."); if (v10 == 0 || R == 0) { let Y10 = { microTask: o.microTask > 0, macroTask: o.macroTask > 0, eventTask: o.eventTask > 0, change: m10 }; this.hasTask(this._zone, Y10); } } } class d { type; source; invoke; callback; data; scheduleFn; cancelFn; _zone = null; runCount = 0; _zoneDelegates = null; _state = "notScheduled"; constructor(m10, r39, o, v10, R, Y10) { if (this.type = m10, this.source = r39, this.data = v10, this.scheduleFn = R, this.cancelFn = Y10, !o) throw new Error("callback is not defined"); this.callback = o; let x10 = this; m10 === q10 && v10 && v10.useG ? this.invoke = d.invokeTask : this.invoke = function() { return d.invokeTask.call(ce, x10, this, arguments); }; } static invokeTask(m10, r39, o) { m10 || (m10 = this), te2++; try { return m10.runCount++, m10.zone.runTask(m10, r39, o); } finally { te2 == 1 && J(), te2--; } } get zone() { return this._zone; } get state() { return this._state; } cancelScheduleRequest() { this._transitionTo(O10, p10); } _transitionTo(m10, r39, o) { if (this._state === r39 || this._state === o) this._state = m10, m10 == O10 && (this._zoneDelegates = null); else throw new Error(`${this.type} '${this.source}': can not transition to '${m10}', expecting state '${r39}'${o ? " or '" + o + "'" : ""}, was '${this._state}'.`); } toString() { return this.data && typeof this.data.handleId < "u" ? this.data.handleId.toString() : Object.prototype.toString.call(this); } toJSON() { return { type: this.type, state: this.state, source: this.source, zone: this.zone.name, runCount: this.runCount }; } } let E10 = ne("setTimeout"), _10 = ne("Promise"), b10 = ne("then"), T4 = [], P10 = false, D10; function H10(A10) { if (D10 || ce[_10] && (D10 = ce[_10].resolve(0)), D10) { let m10 = D10[b10]; m10 || (m10 = D10.then), m10.call(D10, A10); } else ce[E10](A10, 0); } function G(A10) { te2 === 0 && T4.length === 0 && H10(J), A10 && T4.push(A10); } function J() { if (!P10) { for (P10 = true; T4.length; ) { let A10 = T4; T4 = []; for (let m10 = 0; m10 < A10.length; m10++) { let r39 = A10[m10]; try { r39.zone.runTask(r39, null, null); } catch (o) { S.onUnhandledError(o); } } } S.microtaskDrainDone(), P10 = false; } } let K10 = { name: "NO ZONE" }, O10 = "notScheduled", p10 = "scheduling", f10 = "scheduled", j8 = "running", V10 = "canceling", $ = "unknown", W10 = "microTask", g = "macroTask", q10 = "eventTask", L10 = {}, S = { symbol: ne, currentZoneFrame: () => w10, onUnhandledError: X10, microtaskDrainDone: X10, scheduleMicroTask: G, showUncaughtError: () => !t[ne("ignoreConsoleErrorUncaughtError")], patchEventTarget: () => [], patchOnProperties: X10, patchMethod: () => X10, bindArguments: () => [], patchThen: () => X10, patchMacroTask: () => X10, patchEventPrototype: () => X10, isIEOrEdge: () => false, getGlobalObjects: () => { }, ObjectDefineProperty: () => X10, ObjectGetOwnPropertyDescriptor: () => { }, ObjectCreate: () => { }, ArraySlice: () => [], patchClass: () => X10, wrapWithCurrentZone: () => X10, filterProperties: () => [], attachOriginToPatched: () => X10, _redefineProperty: () => X10, patchCallbacks: () => X10, nativeScheduleMicroTask: H10 }, w10 = { parent: null, zone: new t(null, null) }, N = null, te2 = 0; function X10() { } return s("Zone", "Zone"), t; } function Vt() { let n = globalThis, e = n[ne("forceDuplicateZoneCheck")] === true; if (n.Zone && (e || typeof n.Zone.__symbol__ != "function")) throw new Error("Zone already loaded."); return n.Zone ??= Gt(), n.Zone; } var Se = Object.getOwnPropertyDescriptor; var Ye = Object.defineProperty; var $e = Object.getPrototypeOf; var Ft = Object.create; var Wt = Array.prototype.slice; var Ke = "addEventListener"; var Je = "removeEventListener"; var Ue = ne(Ke); var ze = ne(Je); var de = "true"; var _e = "false"; var Ce = ne(""); function Qe(n, e) { return Zone.current.wrap(n, e); } function et(n, e, s, t, i) { return Zone.current.scheduleMacroTask(n, e, s, t, i); } var B = ne; var He = typeof window < "u"; var Ne = He ? window : void 0; var Q = He && Ne || globalThis; var Ut = "removeAttribute"; function tt(n, e) { for (let s = n.length - 1; s >= 0; s--) typeof n[s] == "function" && (n[s] = Qe(n[s], e + "_" + s)); return n; } function zt(n, e) { let s = n.constructor.name; for (let t = 0; t < e.length; t++) { let i = e[t], l = n[i]; if (l) { let d = Se(n, i); if (!vt(d)) continue; n[i] = ((E10) => { let _10 = function() { return E10.apply(this, tt(arguments, s + "." + i)); }; return pe(_10, E10), _10; })(l); } } } function vt(n) { return n ? n.writable === false ? false : !(typeof n.get == "function" && typeof n.set > "u") : true; } var kt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope; var je = !("nw" in Q) && typeof Q.process < "u" && Q.process.toString() === "[object process]"; var nt = !je && !kt && !!(He && Ne.HTMLElement); var bt = typeof Q.process < "u" && Q.process.toString() === "[object process]" && !kt && !!(He && Ne.HTMLElement); var Ze = {}; var qt = B("enable_beforeunload"); var Et = function(n) { if (n = n || Q.event, !n) return; let e = Ze[n.type]; e || (e = Ze[n.type] = B("ON_PROPERTY" + n.type)); let s = this || n.target || Q, t = s[e], i; if (nt && s === Ne && n.type === "error") { let l = n; i = t && t.call(this, l.message, l.filename, l.lineno, l.colno, l.error), i === true && n.preventDefault(); } else i = t && t.apply(this, arguments), n.type === "beforeunload" && Q[qt] && typeof i == "string" ? n.returnValue = i : i != null && !i && n.preventDefault(); return i; }; function pt(n, e, s) { let t = Se(n, e); if (!t && s && Se(s, e) && (t = { enumerable: true, configurable: true }), !t || !t.configurable) return; let i = B("on" + e + "patched"); if (n.hasOwnProperty(i) && n[i]) return; delete t.writable, delete t.value; let l = t.get, d = t.set, E10 = e.slice(2), _10 = Ze[E10]; _10 || (_10 = Ze[E10] = B("ON_PROPERTY" + E10)), t.set = function(b10) { let T4 = this; if (!T4 && n === Q && (T4 = Q), !T4) return; typeof T4[_10] == "function" && T4.removeEventListener(E10, Et), d?.call(T4, null), T4[_10] = b10, typeof b10 == "function" && T4.addEventListener(E10, Et, false); }, t.get = function() { let b10 = this; if (!b10 && n === Q && (b10 = Q), !b10) return null; let T4 = b10[_10]; if (T4) return T4; if (l) { let P10 = l.call(this); if (P10) return t.set.call(this, P10), typeof b10[Ut] == "function" && b10.removeAttribute(e), P10; } return null; }, Ye(n, e, t), n[i] = true; } function wt(n, e, s) { if (e) for (let t = 0; t < e.length; t++) pt(n, "on" + e[t], s); else { let t = []; for (let i in n) i.slice(0, 2) == "on" && t.push(i); for (let i = 0; i < t.length; i++) pt(n, t[i], s); } } var ie = B("originalInstance"); function Re(n) { let e = Q[n]; if (!e) return; Q[B(n)] = e, Q[n] = function() { let i = tt(arguments, n); switch (i.length) { case 0: this[ie] = new e(); break; case 1: this[ie] = new e(i[0]); break; case 2: this[ie] = new e(i[0], i[1]); break; case 3: this[ie] = new e(i[0], i[1], i[2]); break; case 4: this[ie] = new e(i[0], i[1], i[2], i[3]); break; default: throw new Error("Arg list too long."); } }, pe(Q[n], e); let s = new e(function() { }), t; for (t in s) n === "XMLHttpRequest" && t === "responseBlob" || function(i) { typeof s[i] == "function" ? Q[n].prototype[i] = function() { return this[ie][i].apply(this[ie], arguments); } : Ye(Q[n].prototype, i, { set: function(l) { typeof l == "function" ? (this[ie][i] = Qe(l, n + "." + i), pe(this[ie][i], l)) : this[ie][i] = l; }, get: function() { return this[ie][i]; } }); }(t); for (t in e) t !== "prototype" && e.hasOwnProperty(t) && (Q[n][t] = e[t]); } function Ee(n, e, s) { let t = n; for (; t && !t.hasOwnProperty(e); ) t = $e(t); !t && n[e] && (t = n); let i = B(e), l = null; if (t && (!(l = t[i]) || !t.hasOwnProperty(i))) { l = t[i] = t[e]; let d = t && Se(t, e); if (vt(d)) { let E10 = s(l, i, e); t[e] = function() { return E10(this, arguments); }, pe(t[e], l); } } return l; } function Xt(n, e, s) { let t = null; function i(l) { let d = l.data; return d.args[d.cbIdx] = function() { l.invoke.apply(this, arguments); }, t.apply(d.target, d.args), l; } t = Ee(n, e, (l) => function(d, E10) { let _10 = s(d, E10); return _10.cbIdx >= 0 && typeof E10[_10.cbIdx] == "function" ? et(_10.name, E10[_10.cbIdx], _10, i) : l.apply(d, E10); }); } function pe(n, e) { n[B("OriginalDelegate")] = e; } var Tt = false; var qe = false; function Yt() { if (Tt) return qe; Tt = true; try { let n = Ne.navigator.userAgent; (n.indexOf("MSIE ") !== -1 || n.indexOf("Trident/") !== -1 || n.indexOf("Edge/") !== -1) && (qe = true); } catch { } return qe; } function mt(n) { return typeof n == "function"; } function gt(n) { return typeof n == "number"; } var $t = { useG: true }; var re = {}; var Pt = {}; var Rt = new RegExp("^" + Ce + "(\\w+)(true|false)$"); var St = B("propagationStopped"); function Ct(n, e) { let s = (e ? e(n) : n) + _e, t = (e ? e(n) : n) + de, i = Ce + s, l = Ce + t; re[n] = {}, re[n][_e] = i, re[n][de] = l; } function Kt(n, e, s, t) { let i = t && t.add || Ke, l = t && t.rm || Je, d = t && t.listeners || "eventListeners", E10 = t && t.rmAll || "removeAllListeners", _10 = B(i), b10 = "." + i + ":", T4 = "prependListener", P10 = "." + T4 + ":", D10 = function(p10, f10, j8) { if (p10.isRemoved) return; let V10 = p10.callback; typeof V10 == "object" && V10.handleEvent && (p10.callback = (g) => V10.handleEvent(g), p10.originalDelegate = V10); let $; try { p10.invoke(p10, f10, [j8]); } catch (g) { $ = g; } let W10 = p10.options; if (W10 && typeof W10 == "object" && W10.once) { let g = p10.originalDelegate ? p10.originalDelegate : p10.callback; f10[l].call(f10, j8.type, g, W10); } return $; }; function H10(p10, f10, j8) { if (f10 = f10 || n.event, !f10) return; let V10 = p10 || f10.target || n, $ = V10[re[f10.type][j8 ? de : _e]]; if ($) { let W10 = []; if ($.length === 1) { let g = D10($[0], V10, f10); g && W10.push(g); } else { let g = $.slice(); for (let q10 = 0; q10 < g.length && !(f10 && f10[St] === true); q10++) { let L10 = D10(g[q10], V10, f10); L10 && W10.push(L10); } } if (W10.length === 1) throw W10[0]; for (let g = 0; g < W10.length; g++) { let q10 = W10[g]; e.nativeScheduleMicroTask(() => { throw q10; }); } } } let G = function(p10) { return H10(this, p10, false); }, J = function(p10) { return H10(this, p10, true); }; function K10(p10, f10) { if (!p10) return false; let j8 = true; f10 && f10.useG !== void 0 && (j8 = f10.useG); let V10 = f10 && f10.vh, $ = true; f10 && f10.chkDup !== void 0 && ($ = f10.chkDup); let W10 = false; f10 && f10.rt !== void 0 && (W10 = f10.rt); let g = p10; for (; g && !g.hasOwnProperty(i); ) g = $e(g); if (!g && p10[i] && (g = p10), !g || g[_10]) return false; let q10 = f10 && f10.eventNameToString, L10 = {}, S = g[_10] = g[i], w10 = g[B(l)] = g[l], N = g[B(d)] = g[d], te2 = g[B(E10)] = g[E10], X10; f10 && f10.prepend && (X10 = g[B(f10.prepend)] = g[f10.prepend]); function A10(a, u10) { return u10 ? typeof a == "boolean" ? { capture: a, passive: true } : a ? typeof a == "object" && a.passive !== false ? { ...a, passive: true } : a : { passive: true } : a; } let m10 = function(a) { if (!L10.isExisting) return S.call(L10.target, L10.eventName, L10.capture ? J : G, L10.options); }, r39 = function(a) { if (!a.isRemoved) { let u10 = re[a.eventName], k10; u10 && (k10 = u10[a.capture ? de : _e]); let C2 = k10 && a.target[k10]; if (C2) { for (let y = 0; y < C2.length; y++) if (C2[y] === a) { C2.splice(y, 1), a.isRemoved = true, a.removeAbortListener && (a.removeAbortListener(), a.removeAbortListener = null), C2.length === 0 && (a.allRemoved = true, a.target[k10] = null); break; } } } if (a.allRemoved) return w10.call(a.target, a.eventName, a.capture ? J : G, a.options); }, o = function(a) { return S.call(L10.target, L10.eventName, a.invoke, L10.options); }, v10 = function(a) { return X10.call(L10.target, L10.eventName, a.invoke, L10.options); }, R = function(a) { return w10.call(a.target, a.eventName, a.invoke, a.options); }, Y10 = j8 ? m10 : o, x10 = j8 ? r39 : R, Te = function(a, u10) { let k10 = typeof u10; return k10 === "function" && a.callback === u10 || k10 === "object" && a.originalDelegate === u10; }, he2 = f10?.diff || Te, fe2 = Zone[B("UNPATCHED_EVENTS")], se2 = n[B("PASSIVE_EVENTS")]; function h(a) { if (typeof a == "object" && a !== null) { let u10 = { ...a }; return a.signal && (u10.signal = a.signal), u10; } return a; } let c = function(a, u10, k10, C2, y = false, I10 = false) { return function() { let M10 = this || n, Z10 = arguments[0]; f10 && f10.transferEventName && (Z10 = f10.transferEventName(Z10)); let U10 = arguments[1]; if (!U10) return a.apply(this, arguments); if (je && Z10 === "uncaughtException") return a.apply(this, arguments); let z8 = false; if (typeof U10 != "function") { if (!U10.handleEvent) return a.apply(this, arguments); z8 = true; } if (V10 && !V10(a, U10, M10, arguments)) return; let me2 = !!se2 && se2.indexOf(Z10) !== -1, ae2 = h(A10(arguments[2], me2)), ve2 = ae2?.signal; if (ve2?.aborted) return; if (fe2) { for (let le = 0; le < fe2.length; le++) if (Z10 === fe2[le]) return me2 ? a.call(M10, Z10, U10, ae2) : a.apply(this, arguments); } let Fe2 = ae2 ? typeof ae2 == "boolean" ? true : ae2.capture : false, ut2 = ae2 && typeof ae2 == "object" ? ae2.once : false, Bt2 = Zone.current, We2 = re[Z10]; We2 || (Ct(Z10, q10), We2 = re[Z10]); let ht2 = We2[Fe2 ? de : _e], ke2 = M10[ht2], ft2 = false; if (ke2) { if (ft2 = true, $) { for (let le = 0; le < ke2.length; le++) if (he2(ke2[le], U10)) return; } } else ke2 = M10[ht2] = []; let Ie2, dt2 = M10.constructor.name, _t2 = Pt[dt2]; _t2 && (Ie2 = _t2[Z10]), Ie2 || (Ie2 = dt2 + u10 + (q10 ? q10(Z10) : Z10)), L10.options = ae2, ut2 && (L10.options.once = false), L10.target = M10, L10.capture = Fe2, L10.eventName = Z10, L10.isExisting = ft2; let Pe2 = j8 ? $t : void 0; Pe2 && (Pe2.taskData = L10), ve2 && (L10.options.signal = void 0); let oe2 = Bt2.scheduleEventTask(Ie2, U10, Pe2, k10, C2); if (ve2) { L10.options.signal = ve2; let le = () => oe2.zone.cancelTask(oe2); a.call(ve2, "abort", le, { once: true }), oe2.removeAbortListener = () => ve2.removeEventListener("abort", le); } if (L10.target = null, Pe2 && (Pe2.taskData = null), ut2 && (L10.options.once = true), typeof oe2.options != "boolean" && (oe2.options = ae2), oe2.target = M10, oe2.capture = Fe2, oe2.eventName = Z10, z8 && (oe2.originalDelegate = U10), I10 ? ke2.unshift(oe2) : ke2.push(oe2), y) return M10; }; }; return g[i] = c(S, b10, Y10, x10, W10), X10 && (g[T4] = c(X10, P10, v10, x10, W10, true)), g[l] = function() { let a = this || n, u10 = arguments[0]; f10 && f10.transferEventName && (u10 = f10.transferEventName(u10)); let k10 = arguments[2], C2 = k10 ? typeof k10 == "boolean" ? true : k10.capture : false, y = arguments[1]; if (!y) return w10.apply(this, arguments); if (V10 && !V10(w10, y, a, arguments)) return; let I10 = re[u10], M10; I10 && (M10 = I10[C2 ? de : _e]); let Z10 = M10 && a[M10]; if (Z10) for (let U10 = 0; U10 < Z10.length; U10++) { let z8 = Z10[U10]; if (he2(z8, y)) { if (Z10.splice(U10, 1), z8.isRemoved = true, Z10.length === 0 && (z8.allRemoved = true, a[M10] = null, !C2 && typeof u10 == "string")) { let me2 = Ce + "ON_PROPERTY" + u10; a[me2] = null; } return z8.zone.cancelTask(z8), W10 ? a : void 0; } } return w10.apply(this, arguments); }, g[d] = function() { let a = this || n, u10 = arguments[0]; f10 && f10.transferEventName && (u10 = f10.transferEventName(u10)); let k10 = [], C2 = Nt(a, q10 ? q10(u10) : u10); for (let y = 0; y < C2.length; y++) { let I10 = C2[y], M10 = I10.originalDelegate ? I10.originalDelegate : I10.callback; k10.push(M10); } return k10; }, g[E10] = function() { let a = this || n, u10 = arguments[0]; if (u10) { f10 && f10.transferEventName && (u10 = f10.transferEventName(u10)); let k10 = re[u10]; if (k10) { let C2 = k10[_e], y = k10[de], I10 = a[C2], M10 = a[y]; if (I10) { let Z10 = I10.slice(); for (let U10 = 0; U10 < Z10.length; U10++) { let z8 = Z10[U10], me2 = z8.originalDelegate ? z8.originalDelegate : z8.callback; this[l].call(this, u10, me2, z8.options); } } if (M10) { let Z10 = M10.slice(); for (let U10 = 0; U10 < Z10.length; U10++) { let z8 = Z10[U10], me2 = z8.originalDelegate ? z8.originalDelegate : z8.callback; this[l].call(this, u10, me2, z8.options); } } } } else { let k10 = Object.keys(a); for (let C2 = 0; C2 < k10.length; C2++) { let y = k10[C2], I10 = Rt.exec(y), M10 = I10 && I10[1]; M10 && M10 !== "removeListener" && this[E10].call(this, M10); } this[E10].call(this, "removeListener"); } if (W10) return this; }, pe(g[i], S), pe(g[l], w10), te2 && pe(g[E10], te2), N && pe(g[d], N), true; } let O10 = []; for (let p10 = 0; p10 < s.length; p10++) O10[p10] = K10(s[p10], t); return O10; } function Nt(n, e) { if (!e) { let l = []; for (let d in n) { let E10 = Rt.exec(d), _10 = E10 && E10[1]; if (_10 && (!e || _10 === e)) { let b10 = n[d]; if (b10) for (let T4 = 0; T4 < b10.length; T4++) l.push(b10[T4]); } } return l; } let s = re[e]; s || (Ct(e), s = re[e]); let t = n[s[_e]], i = n[s[de]]; return t ? i ? t.concat(i) : t.slice() : i ? i.slice() : []; } function Jt(n, e) { let s = n.Event; s && s.prototype && e.patchMethod(s.prototype, "stopImmediatePropagation", (t) => function(i, l) { i[St] = true, t && t.apply(i, l); }); } function Qt(n, e) { e.patchMethod(n, "queueMicrotask", (s) => function(t, i) { Zone.current.scheduleMicroTask("queueMicrotask", i[0]); }); } var Me = B("zoneTask"); function be(n, e, s, t) { let i = null, l = null; e += t, s += t; let d = {}; function E10(b10) { let T4 = b10.data; T4.args[0] = function() { return b10.invoke.apply(this, arguments); }; let P10 = i.apply(n, T4.args); return gt(P10) ? T4.handleId = P10 : (T4.handle = P10, T4.isRefreshable = mt(P10.refresh)), b10; } function _10(b10) { let { handle: T4, handleId: P10 } = b10.data; return l.call(n, T4 ?? P10); } i = Ee(n, e, (b10) => function(T4, P10) { if (mt(P10[0])) { let D10 = { isRefreshable: false, isPeriodic: t === "Interval", delay: t === "Timeout" || t === "Interval" ? P10[1] || 0 : void 0, args: P10 }, H10 = P10[0]; P10[0] = function() { try { return H10.apply(this, arguments); } finally { let { handle: j8, handleId: V10, isPeriodic: $, isRefreshable: W10 } = D10; !$ && !W10 && (V10 ? delete d[V10] : j8 && (j8[Me] = null)); } }; let G = et(e, P10[0], D10, E10, _10); if (!G) return G; let { handleId: J, handle: K10, isRefreshable: O10, isPeriodic: p10 } = G.data; if (J) d[J] = G; else if (K10 && (K10[Me] = G, O10 && !p10)) { let f10 = K10.refresh; K10.refresh = function() { let { zone: j8, state: V10 } = G; return V10 === "notScheduled" ? (G._state = "scheduled", j8._updateTaskCount(G, 1)) : V10 === "running" && (G._state = "scheduling"), f10.call(this); }; } return K10 ?? J ?? G; } else return b10.apply(n, P10); }), l = Ee(n, s, (b10) => function(T4, P10) { let D10 = P10[0], H10; gt(D10) ? (H10 = d[D10], delete d[D10]) : (H10 = D10?.[Me], H10 ? D10[Me] = null : H10 = D10), H10?.type ? H10.cancelFn && H10.zone.cancelTask(H10) : b10.apply(n, P10); }); } function en(n, e) { let { isBrowser: s, isMix: t } = e.getGlobalObjects(); if (!s && !t || !n.customElements || !("customElements" in n)) return; let i = ["connectedCallback", "disconnectedCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formDisabledCallback", "formResetCallback", "formStateRestoreCallback"]; e.patchCallbacks(e, n.customElements, "customElements", "define", i); } function tn(n, e) { if (Zone[e.symbol("patchEventTarget")]) return; let { eventNames: s, zoneSymbolEventNames: t, TRUE_STR: i, FALSE_STR: l, ZONE_SYMBOL_PREFIX: d } = e.getGlobalObjects(); for (let _10 = 0; _10 < s.length; _10++) { let b10 = s[_10], T4 = b10 + l, P10 = b10 + i, D10 = d + T4, H10 = d + P10; t[b10] = {}, t[b10][l] = D10, t[b10][i] = H10; } let E10 = n.EventTarget; if (!(!E10 || !E10.prototype)) return e.patchEventTarget(n, e, [E10 && E10.prototype]), true; } function nn(n, e) { e.patchEventPrototype(n, e); } function Dt(n, e, s) { if (!s || s.length === 0) return e; let t = s.filter((l) => l.target === n); if (t.length === 0) return e; let i = t[0].ignoreProperties; return e.filter((l) => i.indexOf(l) === -1); } function yt(n, e, s, t) { if (!n) return; let i = Dt(n, e, s); wt(n, i, t); } function Xe(n) { return Object.getOwnPropertyNames(n).filter((e) => e.startsWith("on") && e.length > 2).map((e) => e.substring(2)); } function rn(n, e) { if (je && !bt || Zone[n.symbol("patchEvents")]) return; let s = e.__Zone_ignore_on_properties, t = []; if (nt) { let i = window; t = t.concat(["Document", "SVGElement", "Element", "HTMLElement", "HTMLBodyElement", "HTMLMediaElement", "HTMLFrameSetElement", "HTMLFrameElement", "HTMLIFrameElement", "HTMLMarqueeElement", "Worker"]); let l = []; yt(i, Xe(i), s && s.concat(l), $e(i)); } t = t.concat(["XMLHttpRequest", "XMLHttpRequestEventTarget", "IDBIndex", "IDBRequest", "IDBOpenDBRequest", "IDBDatabase", "IDBTransaction", "IDBCursor", "WebSocket"]); for (let i = 0; i < t.length; i++) { let l = e[t[i]]; l?.prototype && yt(l.prototype, Xe(l.prototype), s); } } function sn(n) { n.__load_patch("legacy", (e) => { let s = e[n.__symbol__("legacyPatch")]; s && s(); }), n.__load_patch("timers", (e) => { let s = "set", t = "clear"; be(e, s, t, "Timeout"), be(e, s, t, "Interval"), be(e, s, t, "Immediate"); }), n.__load_patch("requestAnimationFrame", (e) => { be(e, "request", "cancel", "AnimationFrame"), be(e, "mozRequest", "mozCancel", "AnimationFrame"), be(e, "webkitRequest", "webkitCancel", "AnimationFrame"); }), n.__load_patch("blocking", (e, s) => { let t = ["alert", "prompt", "confirm"]; for (let i = 0; i < t.length; i++) { let l = t[i]; Ee(e, l, (d, E10, _10) => function(b10, T4) { return s.current.run(d, e, T4, _10); }); } }), n.__load_patch("EventTarget", (e, s, t) => { nn(e, t), tn(e, t); let i = e.XMLHttpRequestEventTarget; i && i.prototype && t.patchEventTarget(e, t, [i.prototype]); }), n.__load_patch("MutationObserver", (e, s, t) => { Re("MutationObserver"), Re("WebKitMutationObserver"); }), n.__load_patch("IntersectionObserver", (e, s, t) => { Re("IntersectionObserver"); }), n.__load_patch("FileReader", (e, s, t) => { Re("FileReader"); }), n.__load_patch("on_property", (e, s, t) => { rn(t, e); }), n.__load_patch("customElements", (e, s, t) => { en(e, t); }), n.__load_patch("XHR", (e, s) => { b10(e); let t = B("xhrTask"), i = B("xhrSync"), l = B("xhrListener"), d = B("xhrScheduled"), E10 = B("xhrURL"), _10 = B("xhrErrorBeforeScheduled"); function b10(T4) { let P10 = T4.XMLHttpRequest; if (!P10) return; let D10 = P10.prototype; function H10(S) { return S[t]; } let G = D10[Ue], J = D10[ze]; if (!G) { let S = T4.XMLHttpRequestEventTarget; if (S) { let w10 = S.prototype; G = w10[Ue], J = w10[ze]; } } let K10 = "readystatechange", O10 = "scheduled"; function p10(S) { let w10 = S.data, N = w10.target; N[d] = false, N[_10] = false; let te2 = N[l]; G || (G = N[Ue], J = N[ze]), te2 && J.call(N, K10, te2); let X10 = N[l] = () => { if (N.readyState === N.DONE) if (!w10.aborted && N[d] && S.state === O10) { let m10 = N[s.__symbol__("loadfalse")]; if (N.status !== 0 && m10 && m10.length > 0) { let r39 = S.invoke; S.invoke = function() { let o = N[s.__symbol__("loadfalse")]; for (let v10 = 0; v10 < o.length; v10++) o[v10] === S && o.splice(v10, 1); !w10.aborted && S.state === O10 && r39.call(S); }, m10.push(S); } else S.invoke(); } else !w10.aborted && N[d] === false && (N[_10] = true); }; return G.call(N, K10, X10), N[t] || (N[t] = S), q10.apply(N, w10.args), N[d] = true, S; } function f10() { } function j8(S) { let w10 = S.data; return w10.aborted = true, L10.apply(w10.target, w10.args); } let V10 = Ee(D10, "open", () => function(S, w10) { return S[i] = w10[2] == false, S[E10] = w10[1], V10.apply(S, w10); }), $ = "XMLHttpRequest.send", W10 = B("fetchTaskAborting"), g = B("fetchTaskScheduling"), q10 = Ee(D10, "send", () => function(S, w10) { if (s.current[g] === true || S[i]) return q10.apply(S, w10); { let N = { target: S, url: S[E10], isPeriodic: false, args: w10, aborted: false }, te2 = et($, f10, N, p10, j8); S && S[_10] === true && !N.aborted && te2.state === O10 && te2.invoke(); } }), L10 = Ee(D10, "abort", () => function(S, w10) { let N = H10(S); if (N && typeof N.type == "string") { if (N.cancelFn == null || N.data && N.data.aborted) return; N.zone.cancelTask(N); } else if (s.current[W10] === true) return L10.apply(S, w10); }); } }), n.__load_patch("geolocation", (e) => { e.navigator && e.navigator.geolocation && zt(e.navigator.geolocation, ["getCurrentPosition", "watchPosition"]); }), n.__load_patch("PromiseRejectionEvent", (e, s) => { function t(i) { return function(l) { Nt(e, i).forEach((E10) => { let _10 = e.PromiseRejectionEvent; if (_10) { let b10 = new _10(i, { promise: l.promise, reason: l.rejection }); E10.invoke(b10); } }); }; } e.PromiseRejectionEvent && (s[B("unhandledPromiseRejectionHandler")] = t("unhandledrejection"), s[B("rejectionHandledHandler")] = t("rejectionhandled")); }), n.__load_patch("queueMicrotask", (e, s, t) => { Qt(e, t); }); } function on(n) { n.__load_patch("ZoneAwarePromise", (e, s, t) => { let i = Object.getOwnPropertyDescriptor, l = Object.defineProperty; function d(h) { if (h && h.toString === Object.prototype.toString) { let c = h.constructor && h.constructor.name; return (c || "") + ": " + JSON.stringify(h); } return h ? h.toString() : Object.prototype.toString.call(h); } let E10 = t.symbol, _10 = [], b10 = e[E10("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")] !== false, T4 = E10("Promise"), P10 = E10("then"), D10 = "__creationTrace__"; t.onUnhandledError = (h) => { if (t.showUncaughtError()) { let c = h && h.rejection; c ? console.error("Unhandled Promise rejection:", c instanceof Error ? c.message : c, "; Zone:", h.zone.name, "; Task:", h.task && h.task.source, "; Value:", c, c instanceof Error ? c.stack : void 0) : console.error(h); } }, t.microtaskDrainDone = () => { for (; _10.length; ) { let h = _10.shift(); try { h.zone.runGuarded(() => { throw h.throwOriginal ? h.rejection : h; }); } catch (c) { G(c); } } }; let H10 = E10("unhandledPromiseRejectionHandler"); function G(h) { t.onUnhandledError(h); try { let c = s[H10]; typeof c == "function" && c.call(this, h); } catch { } } function J(h) { return h && typeof h.then == "function"; } function K10(h) { return h; } function O10(h) { return x10.reject(h); } let p10 = E10("state"), f10 = E10("value"), j8 = E10("finally"), V10 = E10("parentPromiseValue"), $ = E10("parentPromiseState"), W10 = "Promise.then", g = null, q10 = true, L10 = false, S = 0; function w10(h, c) { return (a) => { try { A10(h, c, a); } catch (u10) { A10(h, false, u10); } }; } let N = function() { let h = false; return function(a) { return function() { h || (h = true, a.apply(null, arguments)); }; }; }, te2 = "Promise resolved with itself", X10 = E10("currentTaskTrace"); function A10(h, c, a) { let u10 = N(); if (h === a) throw new TypeError(te2); if (h[p10] === g) { let k10 = null; try { (typeof a == "object" || typeof a == "function") && (k10 = a && a.then); } catch (C2) { return u10(() => { A10(h, false, C2); })(), h; } if (c !== L10 && a instanceof x10 && a.hasOwnProperty(p10) && a.hasOwnProperty(f10) && a[p10] !== g) r39(a), A10(h, a[p10], a[f10]); else if (c !== L10 && typeof k10 == "function") try { k10.call(a, u10(w10(h, c)), u10(w10(h, false))); } catch (C2) { u10(() => { A10(h, false, C2); })(); } else { h[p10] = c; let C2 = h[f10]; if (h[f10] = a, h[j8] === j8 && c === q10 && (h[p10] = h[$], h[f10] = h[V10]), c === L10 && a instanceof Error) { let y = s.currentTask && s.currentTask.data && s.currentTask.data[D10]; y && l(a, X10, { configurable: true, enumerable: false, writable: true, value: y }); } for (let y = 0; y < C2.length; ) o(h, C2[y++], C2[y++], C2[y++], C2[y++]); if (C2.length == 0 && c == L10) { h[p10] = S; let y = a; try { throw new Error("Uncaught (in promise): " + d(a) + (a && a.stack ? ` ` + a.stack : "")); } catch (I10) { y = I10; } b10 && (y.throwOriginal = true), y.rejection = a, y.promise = h, y.zone = s.current, y.task = s.currentTask, _10.push(y), t.scheduleMicroTask(); } } } return h; } let m10 = E10("rejectionHandledHandler"); function r39(h) { if (h[p10] === S) { try { let c = s[m10]; c && typeof c == "function" && c.call(this, { rejection: h[f10], promise: h }); } catch { } h[p10] = L10; for (let c = 0; c < _10.length; c++) h === _10[c].promise && _10.splice(c, 1); } } function o(h, c, a, u10, k10) { r39(h); let C2 = h[p10], y = C2 ? typeof u10 == "function" ? u10 : K10 : typeof k10 == "function" ? k10 : O10; c.scheduleMicroTask(W10, () => { try { let I10 = h[f10], M10 = !!a && j8 === a[j8]; M10 && (a[V10] = I10, a[$] = C2); let Z10 = c.run(y, void 0, M10 && y !== O10 && y !== K10 ? [] : [I10]); A10(a, true, Z10); } catch (I10) { A10(a, false, I10); } }, a); } let v10 = "function ZoneAwarePromise() { [native code] }", R = function() { }, Y10 = e.AggregateError; class x10 { static toString() { return v10; } static resolve(c) { return c instanceof x10 ? c : A10(new this(null), q10, c); } static reject(c) { return A10(new this(null), L10, c); } static withResolvers() { let c = {}; return c.promise = new x10((a, u10) => { c.resolve = a, c.reject = u10; }), c; } static any(c) { if (!c || typeof c[Symbol.iterator] != "function") return Promise.reject(new Y10([], "All promises were rejected")); let a = [], u10 = 0; try { for (let y of c) u10++, a.push(x10.resolve(y)); } catch { return Promise.reject(new Y10([], "All promises were rejected")); } if (u10 === 0) return Promise.reject(new Y10([], "All promises were rejected")); let k10 = false, C2 = []; return new x10((y, I10) => { for (let M10 = 0; M10 < a.length; M10++) a[M10].then((Z10) => { k10 || (k10 = true, y(Z10)); }, (Z10) => { C2.push(Z10), u10--, u10 === 0 && (k10 = true, I10(new Y10(C2, "All promises were rejected"))); }); }); } static race(c) { let a, u10, k10 = new this((I10, M10) => { a = I10, u10 = M10; }); function C2(I10) { a(I10); } function y(I10) { u10(I10); } for (let I10 of c) J(I10) || (I10 = this.resolve(I10)), I10.then(C2, y); return k10; } static all(c) { return x10.allWithCallback(c); } static allSettled(c) { return (this && this.prototype instanceof x10 ? this : x10).allWithCallback(c, { thenCallback: (u10) => ({ status: "fulfilled", value: u10 }), errorCallback: (u10) => ({ status: "rejected", reason: u10 }) }); } static allWithCallback(c, a) { let u10, k10, C2 = new this((Z10, U10) => { u10 = Z10, k10 = U10; }), y = 2, I10 = 0, M10 = []; for (let Z10 of c) { J(Z10) || (Z10 = this.resolve(Z10)); let U10 = I10; try { Z10.then((z8) => { M10[U10] = a ? a.thenCallback(z8) : z8, y--, y === 0 && u10(M10); }, (z8) => { a ? (M10[U10] = a.errorCallback(z8), y--, y === 0 && u10(M10)) : k10(z8); }); } catch (z8) { k10(z8); } y++, I10++; } return y -= 2, y === 0 && u10(M10), C2; } constructor(c) { let a = this; if (!(a instanceof x10)) throw new Error("Must be an instanceof Promise."); a[p10] = g, a[f10] = []; try { let u10 = N(); c && c(u10(w10(a, q10)), u10(w10(a, L10))); } catch (u10) { A10(a, false, u10); } } get [Symbol.toStringTag]() { return "Promise"; } get [Symbol.species]() { return x10; } then(c, a) { let u10 = this.constructor?.[Symbol.species]; (!u10 || typeof u10 != "function") && (u10 = this.constructor || x10); let k10 = new u10(R), C2 = s.current; return this[p10] == g ? this[f10].push(C2, k10, c, a) : o(this, C2, k10, c, a), k10; } catch(c) { return this.then(null, c); } finally(c) { let a = this.constructor?.[Symbol.species]; (!a || typeof a != "function") && (a = x10); let u10 = new a(R); u10[j8] = j8; let k10 = s.current; return this[p10] == g ? this[f10].push(k10, u10, c, c) : o(this, k10, u10, c, c), u10; } } x10.resolve = x10.resolve, x10.reject = x10.reject, x10.race = x10.race, x10.all = x10.all; let Te = e[T4] = e.Promise; e.Promise = x10; let he2 = E10("thenPatched"); function fe2(h) { let c = h.prototype, a = i(c, "then"); if (a && (a.writable === false || !a.configurable)) return; let u10 = c.then; c[P10] = u10, h.prototype.then = function(k10, C2) { return new x10((I10, M10) => { u10.call(this, I10, M10); }).then(k10, C2); }, h[he2] = true; } t.patchThen = fe2; function se2(h) { return function(c, a) { let u10 = h.apply(c, a); if (u10 instanceof x10) return u10; let k10 = u10.constructor; return k10[he2] || fe2(k10), u10; }; } return Te && (fe2(Te), Ee(e, "fetch", (h) => se2(h))), Promise[s.__symbol__("uncaughtPromiseErrors")] = _10, x10; }); } function an(n) { n.__load_patch("toString", (e) => { let s = Function.prototype.toString, t = B("OriginalDelegate"), i = B("Promise"), l = B("Error"), d = function() { if (typeof this == "function") { let T4 = this[t]; if (T4) return typeof T4 == "function" ? s.call(T4) : Object.prototype.toString.call(T4); if (this === Promise) { let P10 = e[i]; if (P10) return s.call(P10); } if (this === Error) { let P10 = e[l]; if (P10) return s.call(P10); } } return s.call(this); }; d[t] = s, Fun