@cimulate/copilot-widget 1.33.1 → 1.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/cimulate-copilot-widget.es.js +1 -1
- package/dist/cimulate-copilot-widget.umd.js +1 -1
- package/dist/copilot.es.js +1 -1
- package/dist/copilot.umd.js +1 -1
- package/dist/messaging.es.js +340 -340
- package/dist/messaging.umd.js +13 -13
- package/package.json +1 -1
package/dist/messaging.es.js
CHANGED
|
@@ -76,8 +76,8 @@ function yA() {
|
|
|
76
76
|
if (V1) return et;
|
|
77
77
|
V1 = 1;
|
|
78
78
|
var e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), a = /* @__PURE__ */ Symbol.for("react.provider"), u = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), p = Symbol.iterator;
|
|
79
|
-
function _(
|
|
80
|
-
return
|
|
79
|
+
function _(D) {
|
|
80
|
+
return D === null || typeof D != "object" ? null : (D = p && D[p] || D["@@iterator"], typeof D == "function" ? D : null);
|
|
81
81
|
}
|
|
82
82
|
var y = { isMounted: function() {
|
|
83
83
|
return !1;
|
|
@@ -85,25 +85,25 @@ function yA() {
|
|
|
85
85
|
}, enqueueReplaceState: function() {
|
|
86
86
|
}, enqueueSetState: function() {
|
|
87
87
|
} }, S = Object.assign, x = {};
|
|
88
|
-
function w(
|
|
89
|
-
this.props =
|
|
90
|
-
}
|
|
91
|
-
w.prototype.isReactComponent = {}, w.prototype.setState = function(
|
|
92
|
-
if (typeof
|
|
93
|
-
this.updater.enqueueSetState(this,
|
|
94
|
-
}, w.prototype.forceUpdate = function(
|
|
95
|
-
this.updater.enqueueForceUpdate(this,
|
|
88
|
+
function w(D, Z, P) {
|
|
89
|
+
this.props = D, this.context = Z, this.refs = x, this.updater = P || y;
|
|
90
|
+
}
|
|
91
|
+
w.prototype.isReactComponent = {}, w.prototype.setState = function(D, Z) {
|
|
92
|
+
if (typeof D != "object" && typeof D != "function" && D != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
93
|
+
this.updater.enqueueSetState(this, D, Z, "setState");
|
|
94
|
+
}, w.prototype.forceUpdate = function(D) {
|
|
95
|
+
this.updater.enqueueForceUpdate(this, D, "forceUpdate");
|
|
96
96
|
};
|
|
97
97
|
function v() {
|
|
98
98
|
}
|
|
99
99
|
v.prototype = w.prototype;
|
|
100
|
-
function N(
|
|
101
|
-
this.props =
|
|
100
|
+
function N(D, Z, P) {
|
|
101
|
+
this.props = D, this.context = Z, this.refs = x, this.updater = P || y;
|
|
102
102
|
}
|
|
103
103
|
var O = N.prototype = new v();
|
|
104
104
|
O.constructor = N, S(O, w.prototype), O.isPureReactComponent = !0;
|
|
105
|
-
var $ = Array.isArray, G = Object.prototype.hasOwnProperty,
|
|
106
|
-
function J(
|
|
105
|
+
var $ = Array.isArray, G = Object.prototype.hasOwnProperty, M = { current: null }, V = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
106
|
+
function J(D, Z, P) {
|
|
107
107
|
var xe, ke = {}, he = null, Ae = null;
|
|
108
108
|
if (Z != null) for (xe in Z.ref !== void 0 && (Ae = Z.ref), Z.key !== void 0 && (he = "" + Z.key), Z) G.call(Z, xe) && !V.hasOwnProperty(xe) && (ke[xe] = Z[xe]);
|
|
109
109
|
var Fe = arguments.length - 2;
|
|
@@ -112,98 +112,98 @@ function yA() {
|
|
|
112
112
|
for (var qe = Array(Fe), Qe = 0; Qe < Fe; Qe++) qe[Qe] = arguments[Qe + 2];
|
|
113
113
|
ke.children = qe;
|
|
114
114
|
}
|
|
115
|
-
if (
|
|
116
|
-
return { $$typeof: e, type:
|
|
115
|
+
if (D && D.defaultProps) for (xe in Fe = D.defaultProps, Fe) ke[xe] === void 0 && (ke[xe] = Fe[xe]);
|
|
116
|
+
return { $$typeof: e, type: D, key: he, ref: Ae, props: ke, _owner: M.current };
|
|
117
117
|
}
|
|
118
|
-
function se(
|
|
119
|
-
return { $$typeof: e, type:
|
|
118
|
+
function se(D, Z) {
|
|
119
|
+
return { $$typeof: e, type: D.type, key: Z, ref: D.ref, props: D.props, _owner: D._owner };
|
|
120
120
|
}
|
|
121
|
-
function H(
|
|
122
|
-
return typeof
|
|
121
|
+
function H(D) {
|
|
122
|
+
return typeof D == "object" && D !== null && D.$$typeof === e;
|
|
123
123
|
}
|
|
124
|
-
function ie(
|
|
124
|
+
function ie(D) {
|
|
125
125
|
var Z = { "=": "=0", ":": "=2" };
|
|
126
|
-
return "$" +
|
|
126
|
+
return "$" + D.replace(/[=:]/g, function(P) {
|
|
127
127
|
return Z[P];
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
var te = /\/+/g;
|
|
131
|
-
function le(
|
|
132
|
-
return typeof
|
|
131
|
+
function le(D, Z) {
|
|
132
|
+
return typeof D == "object" && D !== null && D.key != null ? ie("" + D.key) : Z.toString(36);
|
|
133
133
|
}
|
|
134
|
-
function fe(
|
|
135
|
-
var he = typeof
|
|
136
|
-
(he === "undefined" || he === "boolean") && (
|
|
134
|
+
function fe(D, Z, P, xe, ke) {
|
|
135
|
+
var he = typeof D;
|
|
136
|
+
(he === "undefined" || he === "boolean") && (D = null);
|
|
137
137
|
var Ae = !1;
|
|
138
|
-
if (
|
|
138
|
+
if (D === null) Ae = !0;
|
|
139
139
|
else switch (he) {
|
|
140
140
|
case "string":
|
|
141
141
|
case "number":
|
|
142
142
|
Ae = !0;
|
|
143
143
|
break;
|
|
144
144
|
case "object":
|
|
145
|
-
switch (
|
|
145
|
+
switch (D.$$typeof) {
|
|
146
146
|
case e:
|
|
147
147
|
case t:
|
|
148
148
|
Ae = !0;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
if (Ae) return Ae =
|
|
151
|
+
if (Ae) return Ae = D, ke = ke(Ae), D = xe === "" ? "." + le(Ae, 0) : xe, $(ke) ? (P = "", D != null && (P = D.replace(te, "$&/") + "/"), fe(ke, Z, P, "", function(Qe) {
|
|
152
152
|
return Qe;
|
|
153
|
-
})) : ke != null && (H(ke) && (ke = se(ke, P + (!ke.key || Ae && Ae.key === ke.key ? "" : ("" + ke.key).replace(te, "$&/") + "/") +
|
|
154
|
-
if (Ae = 0, xe = xe === "" ? "." : xe + ":", $(
|
|
155
|
-
he =
|
|
153
|
+
})) : ke != null && (H(ke) && (ke = se(ke, P + (!ke.key || Ae && Ae.key === ke.key ? "" : ("" + ke.key).replace(te, "$&/") + "/") + D)), Z.push(ke)), 1;
|
|
154
|
+
if (Ae = 0, xe = xe === "" ? "." : xe + ":", $(D)) for (var Fe = 0; Fe < D.length; Fe++) {
|
|
155
|
+
he = D[Fe];
|
|
156
156
|
var qe = xe + le(he, Fe);
|
|
157
157
|
Ae += fe(he, Z, P, qe, ke);
|
|
158
158
|
}
|
|
159
|
-
else if (qe = _(
|
|
160
|
-
else if (he === "object") throw Z = String(
|
|
159
|
+
else if (qe = _(D), typeof qe == "function") for (D = qe.call(D), Fe = 0; !(he = D.next()).done; ) he = he.value, qe = xe + le(he, Fe++), Ae += fe(he, Z, P, qe, ke);
|
|
160
|
+
else if (he === "object") throw Z = String(D), Error("Objects are not valid as a React child (found: " + (Z === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : Z) + "). If you meant to render a collection of children, use an array instead.");
|
|
161
161
|
return Ae;
|
|
162
162
|
}
|
|
163
|
-
function ue(
|
|
164
|
-
if (
|
|
163
|
+
function ue(D, Z, P) {
|
|
164
|
+
if (D == null) return D;
|
|
165
165
|
var xe = [], ke = 0;
|
|
166
|
-
return fe(
|
|
166
|
+
return fe(D, xe, "", "", function(he) {
|
|
167
167
|
return Z.call(P, he, ke++);
|
|
168
168
|
}), xe;
|
|
169
169
|
}
|
|
170
|
-
function ve(
|
|
171
|
-
if (
|
|
172
|
-
var Z =
|
|
170
|
+
function ve(D) {
|
|
171
|
+
if (D._status === -1) {
|
|
172
|
+
var Z = D._result;
|
|
173
173
|
Z = Z(), Z.then(function(P) {
|
|
174
|
-
(
|
|
174
|
+
(D._status === 0 || D._status === -1) && (D._status = 1, D._result = P);
|
|
175
175
|
}, function(P) {
|
|
176
|
-
(
|
|
177
|
-
}),
|
|
176
|
+
(D._status === 0 || D._status === -1) && (D._status = 2, D._result = P);
|
|
177
|
+
}), D._status === -1 && (D._status = 0, D._result = Z);
|
|
178
178
|
}
|
|
179
|
-
if (
|
|
180
|
-
throw
|
|
179
|
+
if (D._status === 1) return D._result.default;
|
|
180
|
+
throw D._result;
|
|
181
181
|
}
|
|
182
|
-
var de = { current: null }, W = { transition: null }, oe = { ReactCurrentDispatcher: de, ReactCurrentBatchConfig: W, ReactCurrentOwner:
|
|
182
|
+
var de = { current: null }, W = { transition: null }, oe = { ReactCurrentDispatcher: de, ReactCurrentBatchConfig: W, ReactCurrentOwner: M };
|
|
183
183
|
function C() {
|
|
184
184
|
throw Error("act(...) is not supported in production builds of React.");
|
|
185
185
|
}
|
|
186
|
-
return et.Children = { map: ue, forEach: function(
|
|
187
|
-
ue(
|
|
186
|
+
return et.Children = { map: ue, forEach: function(D, Z, P) {
|
|
187
|
+
ue(D, function() {
|
|
188
188
|
Z.apply(this, arguments);
|
|
189
189
|
}, P);
|
|
190
|
-
}, count: function(
|
|
190
|
+
}, count: function(D) {
|
|
191
191
|
var Z = 0;
|
|
192
|
-
return ue(
|
|
192
|
+
return ue(D, function() {
|
|
193
193
|
Z++;
|
|
194
194
|
}), Z;
|
|
195
|
-
}, toArray: function(
|
|
196
|
-
return ue(
|
|
195
|
+
}, toArray: function(D) {
|
|
196
|
+
return ue(D, function(Z) {
|
|
197
197
|
return Z;
|
|
198
198
|
}) || [];
|
|
199
|
-
}, only: function(
|
|
200
|
-
if (!H(
|
|
201
|
-
return
|
|
202
|
-
} }, et.Component = w, et.Fragment = n, et.Profiler = s, et.PureComponent = N, et.StrictMode = r, et.Suspense = d, et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oe, et.act = C, et.cloneElement = function(
|
|
203
|
-
if (
|
|
204
|
-
var xe = S({},
|
|
199
|
+
}, only: function(D) {
|
|
200
|
+
if (!H(D)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
201
|
+
return D;
|
|
202
|
+
} }, et.Component = w, et.Fragment = n, et.Profiler = s, et.PureComponent = N, et.StrictMode = r, et.Suspense = d, et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oe, et.act = C, et.cloneElement = function(D, Z, P) {
|
|
203
|
+
if (D == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + D + ".");
|
|
204
|
+
var xe = S({}, D.props), ke = D.key, he = D.ref, Ae = D._owner;
|
|
205
205
|
if (Z != null) {
|
|
206
|
-
if (Z.ref !== void 0 && (he = Z.ref, Ae =
|
|
206
|
+
if (Z.ref !== void 0 && (he = Z.ref, Ae = M.current), Z.key !== void 0 && (ke = "" + Z.key), D.type && D.type.defaultProps) var Fe = D.type.defaultProps;
|
|
207
207
|
for (qe in Z) G.call(Z, qe) && !V.hasOwnProperty(qe) && (xe[qe] = Z[qe] === void 0 && Fe !== void 0 ? Fe[qe] : Z[qe]);
|
|
208
208
|
}
|
|
209
209
|
var qe = arguments.length - 2;
|
|
@@ -213,55 +213,55 @@ function yA() {
|
|
|
213
213
|
for (var Qe = 0; Qe < qe; Qe++) Fe[Qe] = arguments[Qe + 2];
|
|
214
214
|
xe.children = Fe;
|
|
215
215
|
}
|
|
216
|
-
return { $$typeof: e, type:
|
|
217
|
-
}, et.createContext = function(
|
|
218
|
-
return
|
|
219
|
-
}, et.createElement = J, et.createFactory = function(
|
|
220
|
-
var Z = J.bind(null,
|
|
221
|
-
return Z.type =
|
|
216
|
+
return { $$typeof: e, type: D.type, key: ke, ref: he, props: xe, _owner: Ae };
|
|
217
|
+
}, et.createContext = function(D) {
|
|
218
|
+
return D = { $$typeof: u, _currentValue: D, _currentValue2: D, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, D.Provider = { $$typeof: a, _context: D }, D.Consumer = D;
|
|
219
|
+
}, et.createElement = J, et.createFactory = function(D) {
|
|
220
|
+
var Z = J.bind(null, D);
|
|
221
|
+
return Z.type = D, Z;
|
|
222
222
|
}, et.createRef = function() {
|
|
223
223
|
return { current: null };
|
|
224
|
-
}, et.forwardRef = function(
|
|
225
|
-
return { $$typeof: l, render:
|
|
226
|
-
}, et.isValidElement = H, et.lazy = function(
|
|
227
|
-
return { $$typeof: m, _payload: { _status: -1, _result:
|
|
228
|
-
}, et.memo = function(
|
|
229
|
-
return { $$typeof: f, type:
|
|
230
|
-
}, et.startTransition = function(
|
|
224
|
+
}, et.forwardRef = function(D) {
|
|
225
|
+
return { $$typeof: l, render: D };
|
|
226
|
+
}, et.isValidElement = H, et.lazy = function(D) {
|
|
227
|
+
return { $$typeof: m, _payload: { _status: -1, _result: D }, _init: ve };
|
|
228
|
+
}, et.memo = function(D, Z) {
|
|
229
|
+
return { $$typeof: f, type: D, compare: Z === void 0 ? null : Z };
|
|
230
|
+
}, et.startTransition = function(D) {
|
|
231
231
|
var Z = W.transition;
|
|
232
232
|
W.transition = {};
|
|
233
233
|
try {
|
|
234
|
-
|
|
234
|
+
D();
|
|
235
235
|
} finally {
|
|
236
236
|
W.transition = Z;
|
|
237
237
|
}
|
|
238
|
-
}, et.unstable_act = C, et.useCallback = function(
|
|
239
|
-
return de.current.useCallback(
|
|
240
|
-
}, et.useContext = function(
|
|
241
|
-
return de.current.useContext(
|
|
238
|
+
}, et.unstable_act = C, et.useCallback = function(D, Z) {
|
|
239
|
+
return de.current.useCallback(D, Z);
|
|
240
|
+
}, et.useContext = function(D) {
|
|
241
|
+
return de.current.useContext(D);
|
|
242
242
|
}, et.useDebugValue = function() {
|
|
243
|
-
}, et.useDeferredValue = function(
|
|
244
|
-
return de.current.useDeferredValue(
|
|
245
|
-
}, et.useEffect = function(
|
|
246
|
-
return de.current.useEffect(
|
|
243
|
+
}, et.useDeferredValue = function(D) {
|
|
244
|
+
return de.current.useDeferredValue(D);
|
|
245
|
+
}, et.useEffect = function(D, Z) {
|
|
246
|
+
return de.current.useEffect(D, Z);
|
|
247
247
|
}, et.useId = function() {
|
|
248
248
|
return de.current.useId();
|
|
249
|
-
}, et.useImperativeHandle = function(
|
|
250
|
-
return de.current.useImperativeHandle(
|
|
251
|
-
}, et.useInsertionEffect = function(
|
|
252
|
-
return de.current.useInsertionEffect(
|
|
253
|
-
}, et.useLayoutEffect = function(
|
|
254
|
-
return de.current.useLayoutEffect(
|
|
255
|
-
}, et.useMemo = function(
|
|
256
|
-
return de.current.useMemo(
|
|
257
|
-
}, et.useReducer = function(
|
|
258
|
-
return de.current.useReducer(
|
|
259
|
-
}, et.useRef = function(
|
|
260
|
-
return de.current.useRef(
|
|
261
|
-
}, et.useState = function(
|
|
262
|
-
return de.current.useState(
|
|
263
|
-
}, et.useSyncExternalStore = function(
|
|
264
|
-
return de.current.useSyncExternalStore(
|
|
249
|
+
}, et.useImperativeHandle = function(D, Z, P) {
|
|
250
|
+
return de.current.useImperativeHandle(D, Z, P);
|
|
251
|
+
}, et.useInsertionEffect = function(D, Z) {
|
|
252
|
+
return de.current.useInsertionEffect(D, Z);
|
|
253
|
+
}, et.useLayoutEffect = function(D, Z) {
|
|
254
|
+
return de.current.useLayoutEffect(D, Z);
|
|
255
|
+
}, et.useMemo = function(D, Z) {
|
|
256
|
+
return de.current.useMemo(D, Z);
|
|
257
|
+
}, et.useReducer = function(D, Z, P) {
|
|
258
|
+
return de.current.useReducer(D, Z, P);
|
|
259
|
+
}, et.useRef = function(D) {
|
|
260
|
+
return de.current.useRef(D);
|
|
261
|
+
}, et.useState = function(D) {
|
|
262
|
+
return de.current.useState(D);
|
|
263
|
+
}, et.useSyncExternalStore = function(D, Z, P) {
|
|
264
|
+
return de.current.useSyncExternalStore(D, Z, P);
|
|
265
265
|
}, et.useTransition = function() {
|
|
266
266
|
return de.current.useTransition();
|
|
267
267
|
}, et.version = "18.3.1", et;
|
|
@@ -3471,8 +3471,8 @@ const i_ = R.createContext({
|
|
|
3471
3471
|
isMinimized: t && "isMinimized" in t ? !!t.isMinimized : ut.statusProxy.isMinimized
|
|
3472
3472
|
}), [m, p] = R.useState(ut.dialogProxy.position), [_, y] = R.useState(ut.dialogProxy.isFullHeight), [S, x] = R.useState(ut.dialogProxy.width), [w, v] = R.useState(ut.modalProxy.isFullscreen), N = R.useRef(!1), O = jw(d.type);
|
|
3473
3473
|
R.useEffect(() => {
|
|
3474
|
-
const G = (
|
|
3475
|
-
const { property: V, value: J } =
|
|
3474
|
+
const G = (M) => {
|
|
3475
|
+
const { property: V, value: J } = M.detail || {};
|
|
3476
3476
|
if (!(!V || J === void 0)) {
|
|
3477
3477
|
if (V === "mode") {
|
|
3478
3478
|
l(J);
|
|
@@ -3522,8 +3522,8 @@ const i_ = R.createContext({
|
|
|
3522
3522
|
N.current = !0;
|
|
3523
3523
|
const G = n || (t == null ? void 0 : t.type);
|
|
3524
3524
|
G && vc(G);
|
|
3525
|
-
const
|
|
3526
|
-
t && "isOpen" in t && Yr(!!t.isOpen), t && "isMinimized" in t && io(!!t.isMinimized),
|
|
3525
|
+
const M = Ow();
|
|
3526
|
+
t && "isOpen" in t && Yr(!!t.isOpen), t && "isMinimized" in t && io(!!t.isMinimized), M && io(!0);
|
|
3527
3527
|
}), zl(() => {
|
|
3528
3528
|
if (!(t != null && t.options)) return;
|
|
3529
3529
|
const { dialogPosition: G } = t.options;
|
|
@@ -4301,12 +4301,12 @@ function wc(e, t, n) {
|
|
|
4301
4301
|
if (d === 1 / 0)
|
|
4302
4302
|
return JSON.stringify(v);
|
|
4303
4303
|
const O = [];
|
|
4304
|
-
return JSON.stringify(v, function(G,
|
|
4305
|
-
if (!Y.isObject(
|
|
4306
|
-
return
|
|
4304
|
+
return JSON.stringify(v, function(G, M) {
|
|
4305
|
+
if (!Y.isObject(M))
|
|
4306
|
+
return M;
|
|
4307
4307
|
for (; O.length && O[O.length - 1] !== this; )
|
|
4308
4308
|
O.pop();
|
|
4309
|
-
return O.push(
|
|
4309
|
+
return O.push(M), _(N + O.length - 1), M;
|
|
4310
4310
|
});
|
|
4311
4311
|
}
|
|
4312
4312
|
function S(v, N, O) {
|
|
@@ -4317,11 +4317,11 @@ function wc(e, t, n) {
|
|
|
4317
4317
|
if (Y.endsWith(N, "{}"))
|
|
4318
4318
|
N = r ? N : N.slice(0, -2), v = y(v, 1);
|
|
4319
4319
|
else if (Y.isArray(v) && XC(v) || (Y.isFileList(v) || Y.endsWith(N, "[]")) && ($ = Y.toArray(v)))
|
|
4320
|
-
return N = y_(N), $.forEach(function(
|
|
4321
|
-
!(Y.isUndefined(
|
|
4320
|
+
return N = y_(N), $.forEach(function(M, V) {
|
|
4321
|
+
!(Y.isUndefined(M) || M === null) && t.append(
|
|
4322
4322
|
// eslint-disable-next-line no-nested-ternary
|
|
4323
4323
|
u === !0 ? eh([N], V, a) : u === null ? N : N + "[]",
|
|
4324
|
-
p(
|
|
4324
|
+
p(M)
|
|
4325
4325
|
);
|
|
4326
4326
|
}), !1;
|
|
4327
4327
|
}
|
|
@@ -4336,8 +4336,8 @@ function wc(e, t, n) {
|
|
|
4336
4336
|
if (!Y.isUndefined(v)) {
|
|
4337
4337
|
if (_(O), m.indexOf(v) !== -1)
|
|
4338
4338
|
throw new Error("Circular reference detected in " + N.join("."));
|
|
4339
|
-
m.push(v), Y.forEach(v, function(G,
|
|
4340
|
-
(!(Y.isUndefined(G) || G === null) && s.call(t, G, Y.isString(
|
|
4339
|
+
m.push(v), Y.forEach(v, function(G, M) {
|
|
4340
|
+
(!(Y.isUndefined(G) || G === null) && s.call(t, G, Y.isString(M) ? M.trim() : M, N, x)) === !0 && w(G, N ? N.concat(M) : [M], O + 1);
|
|
4341
4341
|
}), m.pop();
|
|
4342
4342
|
}
|
|
4343
4343
|
}
|
|
@@ -4934,8 +4934,8 @@ const vN = typeof XMLHttpRequest != "undefined", AN = vN && function(e) {
|
|
|
4934
4934
|
}, w.onabort = function() {
|
|
4935
4935
|
w && (r(new Ie("Request aborted", Ie.ECONNABORTED, e, w)), x(), w = null);
|
|
4936
4936
|
}, w.onerror = function($) {
|
|
4937
|
-
const G = $ && $.message ? $.message : "Network Error",
|
|
4938
|
-
|
|
4937
|
+
const G = $ && $.message ? $.message : "Network Error", M = new Ie(G, Ie.ERR_NETWORK, e, w);
|
|
4938
|
+
M.event = $ || null, r(M), x(), w = null;
|
|
4939
4939
|
}, w.ontimeout = function() {
|
|
4940
4940
|
let $ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
4941
4941
|
const G = s.transitional || Yp;
|
|
@@ -5195,7 +5195,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5195
5195
|
method: O,
|
|
5196
5196
|
data: $,
|
|
5197
5197
|
signal: G,
|
|
5198
|
-
cancelToken:
|
|
5198
|
+
cancelToken: M,
|
|
5199
5199
|
timeout: V,
|
|
5200
5200
|
onDownloadProgress: J,
|
|
5201
5201
|
onUploadProgress: se,
|
|
@@ -5210,9 +5210,9 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5210
5210
|
let oe = s || fetch;
|
|
5211
5211
|
H = H ? (H + "").toLowerCase() : "text";
|
|
5212
5212
|
let C = wN(
|
|
5213
|
-
[G,
|
|
5213
|
+
[G, M && M.toAbortSignal()],
|
|
5214
5214
|
V
|
|
5215
|
-
),
|
|
5215
|
+
), D = null;
|
|
5216
5216
|
const Z = C && C.unsubscribe && (() => {
|
|
5217
5217
|
C.unsubscribe();
|
|
5218
5218
|
});
|
|
@@ -5221,7 +5221,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5221
5221
|
"Request body larger than maxBodyLength limit",
|
|
5222
5222
|
Ie.ERR_BAD_REQUEST,
|
|
5223
5223
|
v,
|
|
5224
|
-
|
|
5224
|
+
D
|
|
5225
5225
|
);
|
|
5226
5226
|
try {
|
|
5227
5227
|
let he;
|
|
@@ -5252,7 +5252,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5252
5252
|
"maxContentLength size of " + fe + " exceeded",
|
|
5253
5253
|
Ie.ERR_BAD_RESPONSE,
|
|
5254
5254
|
v,
|
|
5255
|
-
|
|
5255
|
+
D
|
|
5256
5256
|
);
|
|
5257
5257
|
if (de && O !== "get" && O !== "head") {
|
|
5258
5258
|
const He = yield x($);
|
|
@@ -5291,7 +5291,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5291
5291
|
"Stream request bodies are not supported by the current fetch implementation",
|
|
5292
5292
|
Ie.ERR_NOT_SUPPORT,
|
|
5293
5293
|
v,
|
|
5294
|
-
|
|
5294
|
+
D
|
|
5295
5295
|
);
|
|
5296
5296
|
Y.isString(te) || (te = te ? "include" : "omit");
|
|
5297
5297
|
const Qe = d && "credentials" in a.prototype;
|
|
@@ -5308,8 +5308,8 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5308
5308
|
duplex: "half",
|
|
5309
5309
|
credentials: Qe ? te : void 0
|
|
5310
5310
|
});
|
|
5311
|
-
|
|
5312
|
-
let Ct = yield d ? oe(
|
|
5311
|
+
D = d && new a(N, ft);
|
|
5312
|
+
let Ct = yield d ? oe(D, le) : oe(N, ft);
|
|
5313
5313
|
const Zt = an.from(Ct.headers);
|
|
5314
5314
|
if (ve) {
|
|
5315
5315
|
const He = Y.toFiniteNumber(Zt.getContentLength());
|
|
@@ -5318,7 +5318,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5318
5318
|
"maxContentLength size of " + fe + " exceeded",
|
|
5319
5319
|
Ie.ERR_BAD_RESPONSE,
|
|
5320
5320
|
v,
|
|
5321
|
-
|
|
5321
|
+
D
|
|
5322
5322
|
);
|
|
5323
5323
|
}
|
|
5324
5324
|
const dn = y && (H === "stream" || H === "response");
|
|
@@ -5338,7 +5338,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5338
5338
|
"maxContentLength size of " + fe + " exceeded",
|
|
5339
5339
|
Ie.ERR_BAD_RESPONSE,
|
|
5340
5340
|
v,
|
|
5341
|
-
|
|
5341
|
+
D
|
|
5342
5342
|
);
|
|
5343
5343
|
Ye && Ye(gn);
|
|
5344
5344
|
};
|
|
@@ -5361,7 +5361,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5361
5361
|
"maxContentLength size of " + fe + " exceeded",
|
|
5362
5362
|
Ie.ERR_BAD_RESPONSE,
|
|
5363
5363
|
v,
|
|
5364
|
-
|
|
5364
|
+
D
|
|
5365
5365
|
);
|
|
5366
5366
|
}
|
|
5367
5367
|
return !dn && Z && Z(), yield new Promise((He, Ne) => {
|
|
@@ -5371,13 +5371,13 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5371
5371
|
status: Ct.status,
|
|
5372
5372
|
statusText: Ct.statusText,
|
|
5373
5373
|
config: v,
|
|
5374
|
-
request:
|
|
5374
|
+
request: D
|
|
5375
5375
|
});
|
|
5376
5376
|
});
|
|
5377
5377
|
} catch (he) {
|
|
5378
5378
|
if (Z && Z(), C && C.aborted && C.reason instanceof Ie) {
|
|
5379
5379
|
const Ae = C.reason;
|
|
5380
|
-
throw Ae.config = v,
|
|
5380
|
+
throw Ae.config = v, D && (Ae.request = D), he !== Ae && Object.defineProperty(Ae, "cause", {
|
|
5381
5381
|
__proto__: null,
|
|
5382
5382
|
value: he,
|
|
5383
5383
|
writable: !0,
|
|
@@ -5386,15 +5386,15 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5386
5386
|
}), Ae;
|
|
5387
5387
|
}
|
|
5388
5388
|
if (xe)
|
|
5389
|
-
throw
|
|
5389
|
+
throw D && !xe.request && (xe.request = D), xe;
|
|
5390
5390
|
if (he instanceof Ie)
|
|
5391
|
-
throw
|
|
5391
|
+
throw D && !he.request && (he.request = D), he;
|
|
5392
5392
|
if (he && he.name === "TypeError" && /Load failed|fetch/i.test(he.message)) {
|
|
5393
5393
|
const Ae = new Ie(
|
|
5394
5394
|
"Network Error",
|
|
5395
5395
|
Ie.ERR_NETWORK,
|
|
5396
5396
|
v,
|
|
5397
|
-
|
|
5397
|
+
D,
|
|
5398
5398
|
he && he.response
|
|
5399
5399
|
);
|
|
5400
5400
|
throw Object.defineProperty(Ae, "cause", {
|
|
@@ -5405,7 +5405,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5405
5405
|
configurable: !0
|
|
5406
5406
|
}), Ae;
|
|
5407
5407
|
}
|
|
5408
|
-
throw Ie.from(he, he && he.code, v,
|
|
5408
|
+
throw Ie.from(he, he && he.code, v, D, he && he.response);
|
|
5409
5409
|
}
|
|
5410
5410
|
});
|
|
5411
5411
|
}, DN = /* @__PURE__ */ new Map(), C_ = (e) => {
|
|
@@ -6026,7 +6026,7 @@ const VN = {
|
|
|
6026
6026
|
componentConfig: O,
|
|
6027
6027
|
conversationHistory: $,
|
|
6028
6028
|
resetConversationMessage: G = "",
|
|
6029
|
-
apiKey:
|
|
6029
|
+
apiKey: M,
|
|
6030
6030
|
apiToken: V,
|
|
6031
6031
|
baseUrl: J,
|
|
6032
6032
|
customerId: se,
|
|
@@ -6042,13 +6042,13 @@ const VN = {
|
|
|
6042
6042
|
staticQuestionsStrategy: oe = "append",
|
|
6043
6043
|
children: C
|
|
6044
6044
|
}) => {
|
|
6045
|
-
const
|
|
6045
|
+
const D = e === "messaging", Z = R.useMemo(() => {
|
|
6046
6046
|
const qe = fe == null ? void 0 : fe.isCartMgmtSupported;
|
|
6047
6047
|
return qe === !0 || qe === "true";
|
|
6048
|
-
}, [fe]), P = R.useMemo(() =>
|
|
6048
|
+
}, [fe]), P = R.useMemo(() => D ? { config: null } : new zN(J, M, V, te, se, H), [D, J, M, V, te, se, H]), xe = R.useMemo(() => new yw(te), [te]);
|
|
6049
6049
|
R.useEffect(() => {
|
|
6050
|
-
|
|
6051
|
-
}, [P,
|
|
6050
|
+
D || !P || P.config || P.getConfig();
|
|
6051
|
+
}, [P, D]);
|
|
6052
6052
|
const ke = R.useMemo(() => ww(ie), [ie]), he = R.useMemo(() => {
|
|
6053
6053
|
const qe = (y == null ? void 0 : y.placeholder) || p, Qe = (y == null ? void 0 : y.buttonLabel) || _;
|
|
6054
6054
|
let ft = "icon";
|
|
@@ -6088,7 +6088,7 @@ const VN = {
|
|
|
6088
6088
|
showProductCaptions: !!de,
|
|
6089
6089
|
resetConversationMessage: G,
|
|
6090
6090
|
conversationHistory: {
|
|
6091
|
-
sinceHours: typeof ($ == null ? void 0 : $.sinceHours) == "number" ? $.sinceHours : 1,
|
|
6091
|
+
sinceHours: typeof ($ == null ? void 0 : $.sinceHours) == "number" ? $.sinceHours : D ? 24 : 1,
|
|
6092
6092
|
limit: $ == null ? void 0 : $.limit
|
|
6093
6093
|
},
|
|
6094
6094
|
features: le,
|
|
@@ -6666,8 +6666,8 @@ function yO(e) {
|
|
|
6666
6666
|
}, [t, n]);
|
|
6667
6667
|
const p = R.useCallback(
|
|
6668
6668
|
(v, N) => Be(null, null, function* () {
|
|
6669
|
-
var
|
|
6670
|
-
const O = (
|
|
6669
|
+
var M, V, J;
|
|
6670
|
+
const O = (M = N == null ? void 0 : N.createIfMissing) != null ? M : !0, $ = (V = N == null ? void 0 : N.isCurrent) != null ? V : (() => !0);
|
|
6671
6671
|
let G = ZN(t, n, f);
|
|
6672
6672
|
if (!G) {
|
|
6673
6673
|
const se = yield m();
|
|
@@ -6876,7 +6876,7 @@ function CO({
|
|
|
6876
6876
|
const $ = a || x.current > 0;
|
|
6877
6877
|
if (!(s && $ && e === "connected" && !r && !w.current))
|
|
6878
6878
|
return;
|
|
6879
|
-
const
|
|
6879
|
+
const M = setTimeout(() => {
|
|
6880
6880
|
Be(null, null, function* () {
|
|
6881
6881
|
var H, ie;
|
|
6882
6882
|
if ((H = S.current) != null && H.call(S)) {
|
|
@@ -6910,7 +6910,7 @@ function CO({
|
|
|
6910
6910
|
});
|
|
6911
6911
|
}, d);
|
|
6912
6912
|
return () => {
|
|
6913
|
-
clearTimeout(
|
|
6913
|
+
clearTimeout(M);
|
|
6914
6914
|
};
|
|
6915
6915
|
}, [
|
|
6916
6916
|
e,
|
|
@@ -6997,14 +6997,14 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
6997
6997
|
}) => {
|
|
6998
6998
|
const { logger: p, conversationHistory: _ } = lt(), {
|
|
6999
6999
|
status: { isOpen: y }
|
|
7000
|
-
} = Xr(), [S, x] = R.useReducer(QN, F_), [w, v] = R.useState(!1), [N, O] = R.useState(!1), [$, G] = R.useState(!1),
|
|
7001
|
-
|
|
7000
|
+
} = Xr(), [S, x] = R.useReducer(QN, F_), [w, v] = R.useState(!1), [N, O] = R.useState(!1), [$, G] = R.useState(!1), M = R.useRef(S);
|
|
7001
|
+
M.current = S;
|
|
7002
7002
|
const V = yO({
|
|
7003
7003
|
orgId: t,
|
|
7004
7004
|
esDeveloperName: n,
|
|
7005
7005
|
routingAttributes: r,
|
|
7006
7006
|
conversationHistory: _
|
|
7007
|
-
}), J = R.useRef(null), se = R.useRef(l), H = R.useRef(d), ie = R.useRef(u), te = R.useRef(f), le = R.useRef(!1), fe = R.useRef(!1), ue = R.useRef(!1), ve = R.useRef(0), de = R.useRef(0), W = R.useRef(0), oe = R.useRef(null), C = R.useRef(null),
|
|
7007
|
+
}), J = R.useRef(null), se = R.useRef(l), H = R.useRef(d), ie = R.useRef(u), te = R.useRef(f), le = R.useRef(!1), fe = R.useRef(!1), ue = R.useRef(!1), ve = R.useRef(0), de = R.useRef(0), W = R.useRef(0), oe = R.useRef(null), C = R.useRef(null), D = R.useRef(null), Z = R.useRef(0), P = R.useRef(!1), xe = R.useRef(0), ke = R.useRef(0), he = R.useRef(
|
|
7008
7008
|
() => Promise.reject(new Error("Messaging is unavailable"))
|
|
7009
7009
|
), Ae = R.useRef([]), Fe = R.useRef(null), qe = R.useCallback(() => {
|
|
7010
7010
|
x({
|
|
@@ -7160,13 +7160,13 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7160
7160
|
x({ type: "SET_CONVERSATION_ID", id: Bt.conversationId }), Bt.resumed && x({ type: "LOAD_HISTORY", messages: Bt.restoredMessages }), v(!0), x({ type: "SET_LOADING", isLoading: !1 });
|
|
7161
7161
|
});
|
|
7162
7162
|
return C.current = Oe, () => {
|
|
7163
|
-
xe.current += 1, ke.current += 1, re.disconnect(), re.off(), J.current = null, C.current = null,
|
|
7163
|
+
xe.current += 1, ke.current += 1, re.disconnect(), re.off(), J.current = null, C.current = null, D.current = null, P.current = !1;
|
|
7164
7164
|
};
|
|
7165
7165
|
}, [e, t, n, s, Qe]);
|
|
7166
7166
|
const ft = R.useCallback(() => {
|
|
7167
7167
|
if (P.current) return Promise.resolve();
|
|
7168
|
-
if (
|
|
7169
|
-
return Z.current === xe.current ?
|
|
7168
|
+
if (D.current)
|
|
7169
|
+
return Z.current === xe.current ? D.current : D.current.catch((Oe) => {
|
|
7170
7170
|
if (Oe !== _a) throw Oe;
|
|
7171
7171
|
}).then(() => he.current());
|
|
7172
7172
|
const re = C.current;
|
|
@@ -7183,9 +7183,9 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7183
7183
|
const Ee = Oe instanceof Error ? Oe.message : String(Oe);
|
|
7184
7184
|
throw x({ type: "SET_CONNECTION_STATUS", status: "error" }), x({ type: "SET_ERROR", error: Ei(Oe) }), (Le = H.current) == null || Le.call(H, Ee), Oe;
|
|
7185
7185
|
}).finally(() => {
|
|
7186
|
-
|
|
7186
|
+
D.current === Ce && (D.current = null);
|
|
7187
7187
|
});
|
|
7188
|
-
return
|
|
7188
|
+
return D.current = Ce, Ce;
|
|
7189
7189
|
}, []);
|
|
7190
7190
|
he.current = ft, R.useEffect(() => {
|
|
7191
7191
|
y && ft().catch(() => {
|
|
@@ -7284,7 +7284,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7284
7284
|
const He = R.useCallback(() => Be(null, null, function* () {
|
|
7285
7285
|
const re = J.current;
|
|
7286
7286
|
if (!re || !P.current || le.current) return;
|
|
7287
|
-
if (!
|
|
7287
|
+
if (!M.current.conversationId && !ue.current) {
|
|
7288
7288
|
re.reconnect();
|
|
7289
7289
|
return;
|
|
7290
7290
|
}
|
|
@@ -7309,7 +7309,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7309
7309
|
le.current = !0;
|
|
7310
7310
|
try {
|
|
7311
7311
|
re.disconnect(), yield re.connect({ continuationToken: Ce }), yield V.persistContinuationToken(re);
|
|
7312
|
-
const Oe =
|
|
7312
|
+
const Oe = M.current.conversationId;
|
|
7313
7313
|
Oe && re.resumeConversation(Oe);
|
|
7314
7314
|
} catch (Oe) {
|
|
7315
7315
|
if (ih(Oe)) {
|
|
@@ -7432,7 +7432,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7432
7432
|
},
|
|
7433
7433
|
[Ot, ft]
|
|
7434
7434
|
), Pi = R.useCallback(() => {
|
|
7435
|
-
const re = J.current, we =
|
|
7435
|
+
const re = J.current, we = M.current.sendError;
|
|
7436
7436
|
if (!re || !we) return;
|
|
7437
7437
|
const Ce = () => fe.current ? Promise.resolve({
|
|
7438
7438
|
outcome: "failure",
|
|
@@ -7444,7 +7444,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7444
7444
|
}), Oe;
|
|
7445
7445
|
}, [Ot]), Ri = R.useCallback(() => {
|
|
7446
7446
|
const re = J.current;
|
|
7447
|
-
re && (
|
|
7447
|
+
re && (D.current || (ue.current = !1, P.current = !1, G(!1), re.disconnect(), x({ type: "SET_CONNECTION_STATUS", status: "connecting" }), ft().catch(() => {
|
|
7448
7448
|
})));
|
|
7449
7449
|
}, [ft]), ae = R.useCallback(() => {
|
|
7450
7450
|
const re = J.current;
|
|
@@ -7483,7 +7483,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7483
7483
|
const be = R.useCallback(() => Be(null, null, function* () {
|
|
7484
7484
|
var Oe;
|
|
7485
7485
|
const re = J.current;
|
|
7486
|
-
if (!re || !
|
|
7486
|
+
if (!re || !M.current.conversationId) return;
|
|
7487
7487
|
const we = yield re.retrieveConversationTranscript(), Ce = URL.createObjectURL(we);
|
|
7488
7488
|
try {
|
|
7489
7489
|
const Ee = document.createElement("a");
|
|
@@ -8258,7 +8258,7 @@ const qO = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8258
8258
|
searchPlaceholder: O,
|
|
8259
8259
|
searchButtonLabel: $,
|
|
8260
8260
|
searchConfig: G,
|
|
8261
|
-
suggestionButtonConfig:
|
|
8261
|
+
suggestionButtonConfig: M,
|
|
8262
8262
|
messageAlignment: V,
|
|
8263
8263
|
autoScroll: J,
|
|
8264
8264
|
promptsConfig: se,
|
|
@@ -8290,7 +8290,7 @@ const qO = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8290
8290
|
searchPlaceholder: O,
|
|
8291
8291
|
searchButtonLabel: $,
|
|
8292
8292
|
searchConfig: G,
|
|
8293
|
-
suggestionButtonConfig:
|
|
8293
|
+
suggestionButtonConfig: M,
|
|
8294
8294
|
messageAlignment: V,
|
|
8295
8295
|
autoScroll: J,
|
|
8296
8296
|
showProductDescription: H,
|
|
@@ -8346,8 +8346,8 @@ function eI() {
|
|
|
8346
8346
|
var C = W.length;
|
|
8347
8347
|
W.push(oe);
|
|
8348
8348
|
e: for (; 0 < C; ) {
|
|
8349
|
-
var
|
|
8350
|
-
if (0 < s(Z, oe)) W[
|
|
8349
|
+
var D = C - 1 >>> 1, Z = W[D];
|
|
8350
|
+
if (0 < s(Z, oe)) W[D] = oe, W[C] = Z, C = D;
|
|
8351
8351
|
else break e;
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
@@ -8359,10 +8359,10 @@ function eI() {
|
|
|
8359
8359
|
var oe = W[0], C = W.pop();
|
|
8360
8360
|
if (C !== oe) {
|
|
8361
8361
|
W[0] = C;
|
|
8362
|
-
e: for (var
|
|
8363
|
-
var xe = 2 * (
|
|
8364
|
-
if (0 > s(ke, C)) he < Z && 0 > s(Ae, ke) ? (W[
|
|
8365
|
-
else if (he < Z && 0 > s(Ae, C)) W[
|
|
8362
|
+
e: for (var D = 0, Z = W.length, P = Z >>> 1; D < P; ) {
|
|
8363
|
+
var xe = 2 * (D + 1) - 1, ke = W[xe], he = xe + 1, Ae = W[he];
|
|
8364
|
+
if (0 > s(ke, C)) he < Z && 0 > s(Ae, ke) ? (W[D] = Ae, W[he] = C, D = he) : (W[D] = ke, W[xe] = C, D = xe);
|
|
8365
|
+
else if (he < Z && 0 > s(Ae, C)) W[D] = Ae, W[he] = C, D = he;
|
|
8366
8366
|
else break e;
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
@@ -8405,10 +8405,10 @@ function eI() {
|
|
|
8405
8405
|
var C = _;
|
|
8406
8406
|
try {
|
|
8407
8407
|
for (O(oe), p = n(d); p !== null && (!(p.expirationTime > oe) || W && !ie()); ) {
|
|
8408
|
-
var
|
|
8409
|
-
if (typeof
|
|
8408
|
+
var D = p.callback;
|
|
8409
|
+
if (typeof D == "function") {
|
|
8410
8410
|
p.callback = null, _ = p.priorityLevel;
|
|
8411
|
-
var Z =
|
|
8411
|
+
var Z = D(p.expirationTime <= oe);
|
|
8412
8412
|
oe = e.unstable_now(), typeof Z == "function" ? p.callback = Z : p === n(d) && r(d), O(oe);
|
|
8413
8413
|
} else r(d);
|
|
8414
8414
|
p = n(d);
|
|
@@ -8423,7 +8423,7 @@ function eI() {
|
|
|
8423
8423
|
p = null, _ = C, y = !1;
|
|
8424
8424
|
}
|
|
8425
8425
|
}
|
|
8426
|
-
var
|
|
8426
|
+
var M = !1, V = null, J = -1, se = 5, H = -1;
|
|
8427
8427
|
function ie() {
|
|
8428
8428
|
return !(e.unstable_now() - H < se);
|
|
8429
8429
|
}
|
|
@@ -8435,9 +8435,9 @@ function eI() {
|
|
|
8435
8435
|
try {
|
|
8436
8436
|
oe = V(!0, W);
|
|
8437
8437
|
} finally {
|
|
8438
|
-
oe ? le() : (
|
|
8438
|
+
oe ? le() : (M = !1, V = null);
|
|
8439
8439
|
}
|
|
8440
|
-
} else
|
|
8440
|
+
} else M = !1;
|
|
8441
8441
|
}
|
|
8442
8442
|
var le;
|
|
8443
8443
|
if (typeof N == "function") le = function() {
|
|
@@ -8452,7 +8452,7 @@ function eI() {
|
|
|
8452
8452
|
w(te, 0);
|
|
8453
8453
|
};
|
|
8454
8454
|
function ve(W) {
|
|
8455
|
-
V = W,
|
|
8455
|
+
V = W, M || (M = !0, le());
|
|
8456
8456
|
}
|
|
8457
8457
|
function de(W, oe) {
|
|
8458
8458
|
J = w(function() {
|
|
@@ -8507,8 +8507,8 @@ function eI() {
|
|
|
8507
8507
|
_ = C;
|
|
8508
8508
|
}
|
|
8509
8509
|
}, e.unstable_scheduleCallback = function(W, oe, C) {
|
|
8510
|
-
var
|
|
8511
|
-
switch (typeof C == "object" && C !== null ? (C = C.delay, C = typeof C == "number" && 0 < C ?
|
|
8510
|
+
var D = e.unstable_now();
|
|
8511
|
+
switch (typeof C == "object" && C !== null ? (C = C.delay, C = typeof C == "number" && 0 < C ? D + C : D) : C = D, W) {
|
|
8512
8512
|
case 1:
|
|
8513
8513
|
var Z = -1;
|
|
8514
8514
|
break;
|
|
@@ -8524,7 +8524,7 @@ function eI() {
|
|
|
8524
8524
|
default:
|
|
8525
8525
|
Z = 5e3;
|
|
8526
8526
|
}
|
|
8527
|
-
return Z = C + Z, W = { id: m++, callback: oe, priorityLevel: W, startTime: C, expirationTime: Z, sortIndex: -1 }, C >
|
|
8527
|
+
return Z = C + Z, W = { id: m++, callback: oe, priorityLevel: W, startTime: C, expirationTime: Z, sortIndex: -1 }, C > D ? (W.sortIndex = C, t(f, W), n(d) === null && W === n(f) && (x ? (v(J), J = -1) : x = !0, de($, C - D))) : (W.sortIndex = Z, t(d, W), S || y || (S = !0, ve(G))), W;
|
|
8528
8528
|
}, e.unstable_shouldYield = ie, e.unstable_wrapCallback = function(W) {
|
|
8529
8529
|
var oe = _;
|
|
8530
8530
|
return function() {
|
|
@@ -8639,20 +8639,20 @@ function nI() {
|
|
|
8639
8639
|
var E = w.hasOwnProperty(o) ? w[o] : null;
|
|
8640
8640
|
(E !== null ? E.type !== 0 : h || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (S(o, c, E, h) && (c = null), h || E === null ? _(o) && (c === null ? i.removeAttribute(o) : i.setAttribute(o, "" + c)) : E.mustUseProperty ? i[E.propertyName] = c === null ? E.type === 3 ? !1 : "" : c : (o = E.attributeName, h = E.attributeNamespace, c === null ? i.removeAttribute(o) : (E = E.type, c = E === 3 || E === 4 && c === !0 ? "" : "" + c, h ? i.setAttributeNS(h, o, c) : i.setAttribute(o, c))));
|
|
8641
8641
|
}
|
|
8642
|
-
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, G = /* @__PURE__ */ Symbol.for("react.element"),
|
|
8642
|
+
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, G = /* @__PURE__ */ Symbol.for("react.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), V = /* @__PURE__ */ Symbol.for("react.fragment"), J = /* @__PURE__ */ Symbol.for("react.strict_mode"), se = /* @__PURE__ */ Symbol.for("react.profiler"), H = /* @__PURE__ */ Symbol.for("react.provider"), ie = /* @__PURE__ */ Symbol.for("react.context"), te = /* @__PURE__ */ Symbol.for("react.forward_ref"), le = /* @__PURE__ */ Symbol.for("react.suspense"), fe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ue = /* @__PURE__ */ Symbol.for("react.memo"), ve = /* @__PURE__ */ Symbol.for("react.lazy"), de = /* @__PURE__ */ Symbol.for("react.offscreen"), W = Symbol.iterator;
|
|
8643
8643
|
function oe(i) {
|
|
8644
8644
|
return i === null || typeof i != "object" ? null : (i = W && i[W] || i["@@iterator"], typeof i == "function" ? i : null);
|
|
8645
8645
|
}
|
|
8646
|
-
var C = Object.assign,
|
|
8646
|
+
var C = Object.assign, D;
|
|
8647
8647
|
function Z(i) {
|
|
8648
|
-
if (
|
|
8648
|
+
if (D === void 0) try {
|
|
8649
8649
|
throw Error();
|
|
8650
8650
|
} catch (c) {
|
|
8651
8651
|
var o = c.stack.trim().match(/\n( *(at )?)/);
|
|
8652
|
-
|
|
8652
|
+
D = o && o[1] || "";
|
|
8653
8653
|
}
|
|
8654
8654
|
return `
|
|
8655
|
-
` +
|
|
8655
|
+
` + D + i;
|
|
8656
8656
|
}
|
|
8657
8657
|
var P = !1;
|
|
8658
8658
|
function xe(i, o) {
|
|
@@ -8739,7 +8739,7 @@ function nI() {
|
|
|
8739
8739
|
switch (i) {
|
|
8740
8740
|
case V:
|
|
8741
8741
|
return "Fragment";
|
|
8742
|
-
case
|
|
8742
|
+
case M:
|
|
8743
8743
|
return "Portal";
|
|
8744
8744
|
case se:
|
|
8745
8745
|
return "Profiler";
|
|
@@ -10590,7 +10590,7 @@ function nI() {
|
|
|
10590
10590
|
switch (q.$$typeof) {
|
|
10591
10591
|
case G:
|
|
10592
10592
|
return Q = hl(q.type, q.key, q.props, null, X.mode, Q), Q.ref = na(X, null, q), Q.return = X, Q;
|
|
10593
|
-
case
|
|
10593
|
+
case M:
|
|
10594
10594
|
return q = Ff(q, X.mode, Q), q.return = X, q;
|
|
10595
10595
|
case ve:
|
|
10596
10596
|
var Se = q._init;
|
|
@@ -10608,7 +10608,7 @@ function nI() {
|
|
|
10608
10608
|
switch (Q.$$typeof) {
|
|
10609
10609
|
case G:
|
|
10610
10610
|
return Q.key === Ue ? z(X, q, Q, Se) : null;
|
|
10611
|
-
case
|
|
10611
|
+
case M:
|
|
10612
10612
|
return Q.key === Ue ? ee(X, q, Q, Se) : null;
|
|
10613
10613
|
case ve:
|
|
10614
10614
|
return Ue = Q._init, pe(
|
|
@@ -10629,7 +10629,7 @@ function nI() {
|
|
|
10629
10629
|
switch (Se.$$typeof) {
|
|
10630
10630
|
case G:
|
|
10631
10631
|
return X = X.get(Se.key === null ? Q : Se.key) || null, z(q, X, Se, Ue);
|
|
10632
|
-
case
|
|
10632
|
+
case M:
|
|
10633
10633
|
return X = X.get(Se.key === null ? Q : Se.key) || null, ee(q, X, Se, Ue);
|
|
10634
10634
|
case ve:
|
|
10635
10635
|
var $e = Se._init;
|
|
@@ -10710,7 +10710,7 @@ function nI() {
|
|
|
10710
10710
|
Q.type === V ? (q = Yi(Q.props.children, X.mode, Se, Q.key), q.return = X, X = q) : (Se = hl(Q.type, Q.key, Q.props, null, X.mode, Se), Se.ref = na(X, q, Q), Se.return = X, X = Se);
|
|
10711
10711
|
}
|
|
10712
10712
|
return A(X);
|
|
10713
|
-
case
|
|
10713
|
+
case M:
|
|
10714
10714
|
e: {
|
|
10715
10715
|
for ($e = Q.key; q !== null; ) {
|
|
10716
10716
|
if (q.key === $e) if (q.tag === 4 && q.stateNode.containerInfo === Q.containerInfo && q.stateNode.implementation === Q.implementation) {
|
|
@@ -13439,7 +13439,7 @@ Error generating stack: ` + T.message + `
|
|
|
13439
13439
|
}
|
|
13440
13440
|
function uA(i, o, c) {
|
|
13441
13441
|
var h = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
13442
|
-
return { $$typeof:
|
|
13442
|
+
return { $$typeof: M, key: h == null ? null : "" + h, children: i, containerInfo: o, implementation: c };
|
|
13443
13443
|
}
|
|
13444
13444
|
function M1(i) {
|
|
13445
13445
|
if (!i) return si;
|
|
@@ -15256,13 +15256,13 @@ function jI() {
|
|
|
15256
15256
|
function G() {
|
|
15257
15257
|
var fe = { line: N, column: O };
|
|
15258
15258
|
return function(ue) {
|
|
15259
|
-
return ue.position = new
|
|
15259
|
+
return ue.position = new M(fe), se(), ue;
|
|
15260
15260
|
};
|
|
15261
15261
|
}
|
|
15262
|
-
function
|
|
15262
|
+
function M(fe) {
|
|
15263
15263
|
this.start = fe, this.end = { line: N, column: O }, this.source = v.source;
|
|
15264
15264
|
}
|
|
15265
|
-
|
|
15265
|
+
M.prototype.content = w;
|
|
15266
15266
|
function V(fe) {
|
|
15267
15267
|
var ue = new Error(
|
|
15268
15268
|
v.source + ":" + N + ":" + O + ": " + fe
|
|
@@ -16006,16 +16006,16 @@ function xk(e) {
|
|
|
16006
16006
|
if (r++, t.containerState._closeFlow) {
|
|
16007
16007
|
t.containerState._closeFlow = void 0, s && N();
|
|
16008
16008
|
const $ = t.events.length;
|
|
16009
|
-
let G = $,
|
|
16009
|
+
let G = $, M;
|
|
16010
16010
|
for (; G--; )
|
|
16011
16011
|
if (t.events[G][0] === "exit" && t.events[G][1].type === "chunkFlow") {
|
|
16012
|
-
|
|
16012
|
+
M = t.events[G][1].end;
|
|
16013
16013
|
break;
|
|
16014
16014
|
}
|
|
16015
16015
|
v(r);
|
|
16016
16016
|
let V = $;
|
|
16017
16017
|
for (; V < t.events.length; )
|
|
16018
|
-
t.events[V][1].end = j({},
|
|
16018
|
+
t.events[V][1].end = j({}, M), V++;
|
|
16019
16019
|
return Dn(t.events, G + 1, 0, t.events.slice($)), t.events.length = V, f(O);
|
|
16020
16020
|
}
|
|
16021
16021
|
return l(O);
|
|
@@ -16063,13 +16063,13 @@ function xk(e) {
|
|
|
16063
16063
|
function w(O, $) {
|
|
16064
16064
|
const G = t.sliceStream(O);
|
|
16065
16065
|
if ($ && G.push(null), O.previous = a, a && (a.next = O), a = O, s.defineSkip(O.start), s.write(G), t.parser.lazy[O.start.line]) {
|
|
16066
|
-
let
|
|
16067
|
-
for (;
|
|
16066
|
+
let M = s.events.length;
|
|
16067
|
+
for (; M--; )
|
|
16068
16068
|
if (
|
|
16069
16069
|
// The token starts before the line ending…
|
|
16070
|
-
s.events[
|
|
16071
|
-
(!s.events[
|
|
16072
|
-
s.events[
|
|
16070
|
+
s.events[M][1].start.offset < u && // …and either is not ended yet…
|
|
16071
|
+
(!s.events[M][1].end || // …or ends after it.
|
|
16072
|
+
s.events[M][1].end.offset > u)
|
|
16073
16073
|
)
|
|
16074
16074
|
return;
|
|
16075
16075
|
const V = t.events.length;
|
|
@@ -16082,9 +16082,9 @@ function xk(e) {
|
|
|
16082
16082
|
}
|
|
16083
16083
|
se = !0;
|
|
16084
16084
|
}
|
|
16085
|
-
for (v(r),
|
|
16086
|
-
t.events[
|
|
16087
|
-
Dn(t.events, J + 1, 0, t.events.slice(V)), t.events.length =
|
|
16085
|
+
for (v(r), M = V; M < t.events.length; )
|
|
16086
|
+
t.events[M][1].end = j({}, H), M++;
|
|
16087
|
+
Dn(t.events, J + 1, 0, t.events.slice(V)), t.events.length = M;
|
|
16088
16088
|
}
|
|
16089
16089
|
}
|
|
16090
16090
|
function v(O) {
|
|
@@ -16316,67 +16316,67 @@ function Dk(e, t, n) {
|
|
|
16316
16316
|
};
|
|
16317
16317
|
let a = 0, u = 0, l;
|
|
16318
16318
|
return d;
|
|
16319
|
-
function d(
|
|
16320
|
-
return f(
|
|
16319
|
+
function d(M) {
|
|
16320
|
+
return f(M);
|
|
16321
16321
|
}
|
|
16322
|
-
function f(
|
|
16322
|
+
function f(M) {
|
|
16323
16323
|
const V = r.events[r.events.length - 1];
|
|
16324
|
-
return a = V && V[1].type === "linePrefix" ? V[2].sliceSerialize(V[1], !0).length : 0, l =
|
|
16324
|
+
return a = V && V[1].type === "linePrefix" ? V[2].sliceSerialize(V[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), m(M);
|
|
16325
16325
|
}
|
|
16326
|
-
function m(
|
|
16327
|
-
return
|
|
16326
|
+
function m(M) {
|
|
16327
|
+
return M === l ? (u++, e.consume(M), m) : u < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), nt(M) ? st(e, p, "whitespace")(M) : p(M));
|
|
16328
16328
|
}
|
|
16329
|
-
function p(
|
|
16330
|
-
return
|
|
16329
|
+
function p(M) {
|
|
16330
|
+
return M === null || Ve(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(ZE, x, $)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
16331
16331
|
contentType: "string"
|
|
16332
|
-
}), _(
|
|
16332
|
+
}), _(M));
|
|
16333
16333
|
}
|
|
16334
|
-
function _(
|
|
16335
|
-
return
|
|
16334
|
+
function _(M) {
|
|
16335
|
+
return M === null || Ve(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : nt(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), st(e, y, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), _);
|
|
16336
16336
|
}
|
|
16337
|
-
function y(
|
|
16338
|
-
return
|
|
16337
|
+
function y(M) {
|
|
16338
|
+
return M === null || Ve(M) ? p(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
16339
16339
|
contentType: "string"
|
|
16340
|
-
}), S(
|
|
16340
|
+
}), S(M));
|
|
16341
16341
|
}
|
|
16342
|
-
function S(
|
|
16343
|
-
return
|
|
16342
|
+
function S(M) {
|
|
16343
|
+
return M === null || Ve(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(M)) : M === 96 && M === l ? n(M) : (e.consume(M), S);
|
|
16344
16344
|
}
|
|
16345
|
-
function x(
|
|
16346
|
-
return e.attempt(s, $, w)(
|
|
16345
|
+
function x(M) {
|
|
16346
|
+
return e.attempt(s, $, w)(M);
|
|
16347
16347
|
}
|
|
16348
|
-
function w(
|
|
16349
|
-
return e.enter("lineEnding"), e.consume(
|
|
16348
|
+
function w(M) {
|
|
16349
|
+
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), v;
|
|
16350
16350
|
}
|
|
16351
|
-
function v(
|
|
16352
|
-
return a > 0 && nt(
|
|
16351
|
+
function v(M) {
|
|
16352
|
+
return a > 0 && nt(M) ? st(e, N, "linePrefix", a + 1)(M) : N(M);
|
|
16353
16353
|
}
|
|
16354
|
-
function N(
|
|
16355
|
-
return
|
|
16354
|
+
function N(M) {
|
|
16355
|
+
return M === null || Ve(M) ? e.check(ZE, x, $)(M) : (e.enter("codeFlowValue"), O(M));
|
|
16356
16356
|
}
|
|
16357
|
-
function O(
|
|
16358
|
-
return
|
|
16357
|
+
function O(M) {
|
|
16358
|
+
return M === null || Ve(M) ? (e.exit("codeFlowValue"), N(M)) : (e.consume(M), O);
|
|
16359
16359
|
}
|
|
16360
|
-
function $(
|
|
16361
|
-
return e.exit("codeFenced"), t(
|
|
16360
|
+
function $(M) {
|
|
16361
|
+
return e.exit("codeFenced"), t(M);
|
|
16362
16362
|
}
|
|
16363
|
-
function G(
|
|
16363
|
+
function G(M, V, J) {
|
|
16364
16364
|
let se = 0;
|
|
16365
16365
|
return H;
|
|
16366
16366
|
function H(ue) {
|
|
16367
|
-
return
|
|
16367
|
+
return M.enter("lineEnding"), M.consume(ue), M.exit("lineEnding"), ie;
|
|
16368
16368
|
}
|
|
16369
16369
|
function ie(ue) {
|
|
16370
|
-
return
|
|
16370
|
+
return M.enter("codeFencedFence"), nt(ue) ? st(M, te, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(ue) : te(ue);
|
|
16371
16371
|
}
|
|
16372
16372
|
function te(ue) {
|
|
16373
|
-
return ue === l ? (
|
|
16373
|
+
return ue === l ? (M.enter("codeFencedFenceSequence"), le(ue)) : J(ue);
|
|
16374
16374
|
}
|
|
16375
16375
|
function le(ue) {
|
|
16376
|
-
return ue === l ? (se++,
|
|
16376
|
+
return ue === l ? (se++, M.consume(ue), le) : se >= u ? (M.exit("codeFencedFenceSequence"), nt(ue) ? st(M, fe, "whitespace")(ue) : fe(ue)) : J(ue);
|
|
16377
16377
|
}
|
|
16378
16378
|
function fe(ue) {
|
|
16379
|
-
return ue === null || Ve(ue) ? (
|
|
16379
|
+
return ue === null || Ve(ue) ? (M.exit("codeFencedFence"), V(ue)) : J(ue);
|
|
16380
16380
|
}
|
|
16381
16381
|
}
|
|
16382
16382
|
}
|
|
@@ -17061,10 +17061,10 @@ function d3(e, t, n) {
|
|
|
17061
17061
|
return P === 45 || P === 46 || P === 58 || P === 95 || on(P) ? (e.consume(P), $) : G(P);
|
|
17062
17062
|
}
|
|
17063
17063
|
function G(P) {
|
|
17064
|
-
return P === 61 ? (e.consume(P),
|
|
17064
|
+
return P === 61 ? (e.consume(P), M) : nt(P) ? (e.consume(P), G) : O(P);
|
|
17065
17065
|
}
|
|
17066
|
-
function
|
|
17067
|
-
return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), d = P, V) : nt(P) ? (e.consume(P),
|
|
17066
|
+
function M(P) {
|
|
17067
|
+
return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), d = P, V) : nt(P) ? (e.consume(P), M) : J(P);
|
|
17068
17068
|
}
|
|
17069
17069
|
function V(P) {
|
|
17070
17070
|
return P === d ? (e.consume(P), d = null, se) : P === null || Ve(P) ? n(P) : (e.consume(P), V);
|
|
@@ -17082,7 +17082,7 @@ function d3(e, t, n) {
|
|
|
17082
17082
|
return P === null || Ve(P) ? te(P) : nt(P) ? (e.consume(P), ie) : n(P);
|
|
17083
17083
|
}
|
|
17084
17084
|
function te(P) {
|
|
17085
|
-
return P === 45 && s === 2 ? (e.consume(P), ve) : P === 60 && s === 1 ? (e.consume(P), de) : P === 62 && s === 4 ? (e.consume(P),
|
|
17085
|
+
return P === 45 && s === 2 ? (e.consume(P), ve) : P === 60 && s === 1 ? (e.consume(P), de) : P === 62 && s === 4 ? (e.consume(P), D) : P === 63 && s === 3 ? (e.consume(P), C) : P === 93 && s === 5 ? (e.consume(P), oe) : Ve(P) && (s === 6 || s === 7) ? (e.exit("htmlFlowData"), e.check(u3, Z, le)(P)) : P === null || Ve(P) ? (e.exit("htmlFlowData"), le(P)) : (e.consume(P), te);
|
|
17086
17086
|
}
|
|
17087
17087
|
function le(P) {
|
|
17088
17088
|
return e.check(l3, fe, Z)(P);
|
|
@@ -17102,7 +17102,7 @@ function d3(e, t, n) {
|
|
|
17102
17102
|
function W(P) {
|
|
17103
17103
|
if (P === 62) {
|
|
17104
17104
|
const xe = u.toLowerCase();
|
|
17105
|
-
return ty.includes(xe) ? (e.consume(P),
|
|
17105
|
+
return ty.includes(xe) ? (e.consume(P), D) : te(P);
|
|
17106
17106
|
}
|
|
17107
17107
|
return mn(P) && u.length < 8 ? (e.consume(P), u += String.fromCharCode(P), W) : te(P);
|
|
17108
17108
|
}
|
|
@@ -17110,10 +17110,10 @@ function d3(e, t, n) {
|
|
|
17110
17110
|
return P === 93 ? (e.consume(P), C) : te(P);
|
|
17111
17111
|
}
|
|
17112
17112
|
function C(P) {
|
|
17113
|
-
return P === 62 ? (e.consume(P),
|
|
17113
|
+
return P === 62 ? (e.consume(P), D) : P === 45 && s === 2 ? (e.consume(P), C) : te(P);
|
|
17114
17114
|
}
|
|
17115
|
-
function
|
|
17116
|
-
return P === null || Ve(P) ? (e.exit("htmlFlowData"), Z(P)) : (e.consume(P),
|
|
17115
|
+
function D(P) {
|
|
17116
|
+
return P === null || Ve(P) ? (e.exit("htmlFlowData"), Z(P)) : (e.consume(P), D);
|
|
17117
17117
|
}
|
|
17118
17118
|
function Z(P) {
|
|
17119
17119
|
return e.exit("htmlFlow"), t(P);
|
|
@@ -17165,8 +17165,8 @@ function m3(e, t, n) {
|
|
|
17165
17165
|
return C === 62 ? ve(C) : C === 45 ? _(C) : p(C);
|
|
17166
17166
|
}
|
|
17167
17167
|
function S(C) {
|
|
17168
|
-
const
|
|
17169
|
-
return C ===
|
|
17168
|
+
const D = "CDATA[";
|
|
17169
|
+
return C === D.charCodeAt(a++) ? (e.consume(C), a === D.length ? x : S) : n(C);
|
|
17170
17170
|
}
|
|
17171
17171
|
function x(C) {
|
|
17172
17172
|
return C === null ? n(C) : C === 93 ? (e.consume(C), w) : Ve(C) ? (u = x, de(C)) : (e.consume(C), x);
|
|
@@ -17187,10 +17187,10 @@ function m3(e, t, n) {
|
|
|
17187
17187
|
return C === 62 ? ve(C) : O(C);
|
|
17188
17188
|
}
|
|
17189
17189
|
function G(C) {
|
|
17190
|
-
return mn(C) ? (e.consume(C),
|
|
17190
|
+
return mn(C) ? (e.consume(C), M) : n(C);
|
|
17191
17191
|
}
|
|
17192
|
-
function
|
|
17193
|
-
return C === 45 || on(C) ? (e.consume(C),
|
|
17192
|
+
function M(C) {
|
|
17193
|
+
return C === 45 || on(C) ? (e.consume(C), M) : V(C);
|
|
17194
17194
|
}
|
|
17195
17195
|
function V(C) {
|
|
17196
17196
|
return Ve(C) ? (u = V, de(C)) : nt(C) ? (e.consume(C), V) : ve(C);
|
|
@@ -17742,11 +17742,11 @@ function nP(e, t, n) {
|
|
|
17742
17742
|
let u = [], l = [];
|
|
17743
17743
|
const d = {
|
|
17744
17744
|
attempt: V(G),
|
|
17745
|
-
check: V(
|
|
17745
|
+
check: V(M),
|
|
17746
17746
|
consume: N,
|
|
17747
17747
|
enter: O,
|
|
17748
17748
|
exit: $,
|
|
17749
|
-
interrupt: V(
|
|
17749
|
+
interrupt: V(M, {
|
|
17750
17750
|
interrupt: !0
|
|
17751
17751
|
})
|
|
17752
17752
|
}, f = {
|
|
@@ -17822,7 +17822,7 @@ function nP(e, t, n) {
|
|
|
17822
17822
|
function G(ie, te) {
|
|
17823
17823
|
J(ie, te.from);
|
|
17824
17824
|
}
|
|
17825
|
-
function
|
|
17825
|
+
function M(ie, te) {
|
|
17826
17826
|
te.restore();
|
|
17827
17827
|
}
|
|
17828
17828
|
function V(ie, te) {
|
|
@@ -17838,8 +17838,8 @@ function nP(e, t, n) {
|
|
|
17838
17838
|
/** @type {Construct} */
|
|
17839
17839
|
fe
|
|
17840
17840
|
])
|
|
17841
|
-
) :
|
|
17842
|
-
function
|
|
17841
|
+
) : D(fe);
|
|
17842
|
+
function D(he) {
|
|
17843
17843
|
return Ae;
|
|
17844
17844
|
function Ae(Fe) {
|
|
17845
17845
|
const qe = Fe !== null && he[Fe], Qe = Fe !== null && he.null, ft = [
|
|
@@ -18117,11 +18117,11 @@ function fP(e) {
|
|
|
18117
18117
|
paragraph: d(),
|
|
18118
18118
|
referenceString: xe,
|
|
18119
18119
|
resourceDestinationString: C,
|
|
18120
|
-
resourceTitleString:
|
|
18120
|
+
resourceTitleString: D,
|
|
18121
18121
|
resource: Z,
|
|
18122
18122
|
setextHeading: d(J),
|
|
18123
18123
|
setextHeadingLineSequence: V,
|
|
18124
|
-
setextHeadingText:
|
|
18124
|
+
setextHeadingText: M,
|
|
18125
18125
|
strong: d(),
|
|
18126
18126
|
thematicBreak: d()
|
|
18127
18127
|
}
|
|
@@ -18313,7 +18313,7 @@ function fP(e) {
|
|
|
18313
18313
|
be.depth = je;
|
|
18314
18314
|
}
|
|
18315
18315
|
}
|
|
18316
|
-
function
|
|
18316
|
+
function M() {
|
|
18317
18317
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
18318
18318
|
}
|
|
18319
18319
|
function V(ae) {
|
|
@@ -18394,7 +18394,7 @@ function fP(e) {
|
|
|
18394
18394
|
const ae = this.resume(), be = this.stack[this.stack.length - 1];
|
|
18395
18395
|
be.url = ae;
|
|
18396
18396
|
}
|
|
18397
|
-
function
|
|
18397
|
+
function D() {
|
|
18398
18398
|
const ae = this.resume(), be = this.stack[this.stack.length - 1];
|
|
18399
18399
|
be.title = ae;
|
|
18400
18400
|
}
|
|
@@ -27539,10 +27539,10 @@ const Ob = ({
|
|
|
27539
27539
|
v.preventDefault();
|
|
27540
27540
|
const N = (((O = p.current) == null ? void 0 : O.value) || "").trim();
|
|
27541
27541
|
if (N) {
|
|
27542
|
-
const G = !s && !a && u === !0,
|
|
27542
|
+
const G = !s && !a && u === !0, M = _.current.length;
|
|
27543
27543
|
p.current.value = "";
|
|
27544
27544
|
const V = yield r(N);
|
|
27545
|
-
G && V.outcome !== "success" && _.current.length ===
|
|
27545
|
+
G && V.outcome !== "success" && _.current.length === M && (($ = p.current) == null ? void 0 : $.value) === "" && (p.current.value = N, p.current.disabled || p.current.focus({ preventScroll: !0 }));
|
|
27546
27546
|
}
|
|
27547
27547
|
}), w = () => {
|
|
27548
27548
|
r("Can you connect me to a human?");
|
|
@@ -28384,13 +28384,13 @@ function Gc(e, t = {}) {
|
|
|
28384
28384
|
previous() {
|
|
28385
28385
|
return p.current;
|
|
28386
28386
|
}
|
|
28387
|
-
}), S = () => ce(j({},
|
|
28387
|
+
}), S = () => ce(j({}, M), {
|
|
28388
28388
|
matches(...de) {
|
|
28389
|
-
return de.includes(
|
|
28389
|
+
return de.includes(M.ref.current);
|
|
28390
28390
|
},
|
|
28391
28391
|
hasTag(de) {
|
|
28392
28392
|
var W, oe;
|
|
28393
|
-
return !!((oe = (W = e.states[
|
|
28393
|
+
return !!((oe = (W = e.states[M.ref.current]) == null ? void 0 : W.tags) != null && oe.includes(de));
|
|
28394
28394
|
}
|
|
28395
28395
|
}), x = R5((ue = (fe = e.refs) == null ? void 0 : fe.call(e, { prop: a, context: d })) != null ? ue : {}), w = () => ({
|
|
28396
28396
|
state: S(),
|
|
@@ -28411,8 +28411,8 @@ function Gc(e, t = {}) {
|
|
|
28411
28411
|
if (!W) return;
|
|
28412
28412
|
const oe = W.map((C) => {
|
|
28413
28413
|
var Z, P;
|
|
28414
|
-
const
|
|
28415
|
-
return
|
|
28414
|
+
const D = (P = (Z = e.implementations) == null ? void 0 : Z.actions) == null ? void 0 : P[C];
|
|
28415
|
+
return D || mp(`[zag-js] No implementation found for action "${JSON.stringify(C)}"`), D;
|
|
28416
28416
|
});
|
|
28417
28417
|
for (const C of oe)
|
|
28418
28418
|
C == null || C(w());
|
|
@@ -28422,16 +28422,16 @@ function Gc(e, t = {}) {
|
|
|
28422
28422
|
}, O = (de) => {
|
|
28423
28423
|
const W = eo(de) ? de(w()) : de;
|
|
28424
28424
|
if (!W) return;
|
|
28425
|
-
const oe = W.map((
|
|
28425
|
+
const oe = W.map((D) => {
|
|
28426
28426
|
var P, xe;
|
|
28427
|
-
const Z = (xe = (P = e.implementations) == null ? void 0 : P.effects) == null ? void 0 : xe[
|
|
28428
|
-
return Z || mp(`[zag-js] No implementation found for effect "${JSON.stringify(
|
|
28427
|
+
const Z = (xe = (P = e.implementations) == null ? void 0 : P.effects) == null ? void 0 : xe[D];
|
|
28428
|
+
return Z || mp(`[zag-js] No implementation found for effect "${JSON.stringify(D)}"`), Z;
|
|
28429
28429
|
}), C = [];
|
|
28430
|
-
for (const
|
|
28431
|
-
const Z =
|
|
28430
|
+
for (const D of oe) {
|
|
28431
|
+
const Z = D == null ? void 0 : D(w());
|
|
28432
28432
|
Z && C.push(Z);
|
|
28433
28433
|
}
|
|
28434
|
-
return () => C.forEach((
|
|
28434
|
+
return () => C.forEach((D) => D == null ? void 0 : D());
|
|
28435
28435
|
}, $ = (de) => aD(de).find((W) => {
|
|
28436
28436
|
let oe = !W.guard;
|
|
28437
28437
|
return Kl(W.guard) ? oe = !!N(W.guard) : eo(W.guard) && (oe = W.guard(w())), oe;
|
|
@@ -28446,15 +28446,15 @@ function Gc(e, t = {}) {
|
|
|
28446
28446
|
scope: n,
|
|
28447
28447
|
computed: G
|
|
28448
28448
|
});
|
|
28449
|
-
},
|
|
28449
|
+
}, M = gc(() => ({
|
|
28450
28450
|
defaultValue: e.initialState({ prop: a }),
|
|
28451
28451
|
onChange(de, W) {
|
|
28452
|
-
var C,
|
|
28452
|
+
var C, D, Z, P;
|
|
28453
28453
|
if (W) {
|
|
28454
28454
|
const xe = f.current.get(W);
|
|
28455
28455
|
xe == null || xe(), f.current.delete(W);
|
|
28456
28456
|
}
|
|
28457
|
-
W && v((C = e.states[W]) == null ? void 0 : C.exit), v((
|
|
28457
|
+
W && v((C = e.states[W]) == null ? void 0 : C.exit), v((D = m.current) == null ? void 0 : D.actions);
|
|
28458
28458
|
const oe = O((Z = e.states[de]) == null ? void 0 : Z.effects);
|
|
28459
28459
|
if (oe && f.current.set(de, oe), W === Ch) {
|
|
28460
28460
|
v(e.entry);
|
|
@@ -28466,20 +28466,20 @@ function Gc(e, t = {}) {
|
|
|
28466
28466
|
})), V = R.useRef(void 0), J = R.useRef(Qs.NotStarted);
|
|
28467
28467
|
Kb(() => {
|
|
28468
28468
|
queueMicrotask(() => {
|
|
28469
|
-
var
|
|
28469
|
+
var D;
|
|
28470
28470
|
const oe = J.current === Qs.Started;
|
|
28471
28471
|
J.current = Qs.Started, r(oe ? "rehydrating..." : "initializing...");
|
|
28472
|
-
const C = (
|
|
28473
|
-
|
|
28472
|
+
const C = (D = V.current) != null ? D : M.initial;
|
|
28473
|
+
M.invoke(C, oe ? M.get() : Ch);
|
|
28474
28474
|
});
|
|
28475
|
-
const de = f.current, W =
|
|
28475
|
+
const de = f.current, W = M.ref.current;
|
|
28476
28476
|
return () => {
|
|
28477
28477
|
r("unmounting..."), V.current = W, J.current = Qs.Stopped, de.forEach((oe) => oe == null ? void 0 : oe()), f.current = /* @__PURE__ */ new Map(), m.current = null, queueMicrotask(() => {
|
|
28478
28478
|
v(e.exit);
|
|
28479
28479
|
});
|
|
28480
28480
|
};
|
|
28481
28481
|
}, []);
|
|
28482
|
-
const se = () => "ref" in
|
|
28482
|
+
const se = () => "ref" in M ? M.ref.current : M.get(), H = (de) => {
|
|
28483
28483
|
queueMicrotask(() => {
|
|
28484
28484
|
var P, xe, ke, he, Ae;
|
|
28485
28485
|
if (J.current !== Qs.Started) return;
|
|
@@ -28494,10 +28494,10 @@ function Gc(e, t = {}) {
|
|
|
28494
28494
|
), C = $(oe);
|
|
28495
28495
|
if (!C) return;
|
|
28496
28496
|
m.current = C;
|
|
28497
|
-
const
|
|
28497
|
+
const D = (he = C.target) != null ? he : W;
|
|
28498
28498
|
r("transition", de.type, C.target || W, `(${C.actions})`);
|
|
28499
|
-
const Z =
|
|
28500
|
-
Z ? Eo.flushSync(() =>
|
|
28499
|
+
const Z = D !== W;
|
|
28500
|
+
Z ? Eo.flushSync(() => M.set(D)) : C.reenter && !Z ? M.invoke(W, W) : v((Ae = C.actions) != null ? Ae : []);
|
|
28501
28501
|
});
|
|
28502
28502
|
};
|
|
28503
28503
|
return (ve = e.watch) == null || ve.call(e, w()), {
|
|
@@ -29057,7 +29057,7 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29057
29057
|
x: O,
|
|
29058
29058
|
y: $,
|
|
29059
29059
|
data: G,
|
|
29060
|
-
reset:
|
|
29060
|
+
reset: M
|
|
29061
29061
|
} = yield N({
|
|
29062
29062
|
x: m,
|
|
29063
29063
|
y: p,
|
|
@@ -29072,11 +29072,11 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29072
29072
|
floating: t
|
|
29073
29073
|
}
|
|
29074
29074
|
});
|
|
29075
|
-
m = O != null ? O : m, p = $ != null ? $ : p, S[v] = j(j({}, S[v]), G),
|
|
29075
|
+
m = O != null ? O : m, p = $ != null ? $ : p, S[v] = j(j({}, S[v]), G), M && y < tM && (y++, typeof M == "object" && (M.placement && (_ = M.placement), M.rects && (f = M.rects === !0 ? yield u.getElementRects({
|
|
29076
29076
|
reference: e,
|
|
29077
29077
|
floating: t,
|
|
29078
29078
|
strategy: s
|
|
29079
|
-
}) :
|
|
29079
|
+
}) : M.rects), {
|
|
29080
29080
|
x: m,
|
|
29081
29081
|
y: p
|
|
29082
29082
|
} = Ky(f, _, d)), x = -1);
|
|
@@ -29110,10 +29110,10 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29110
29110
|
const _ = r2(p), y = {
|
|
29111
29111
|
x: r,
|
|
29112
29112
|
y: s
|
|
29113
|
-
}, S = Rm(a), x = Pm(S), w = yield l.getDimensions(m), v = S === "y", N = v ? "top" : "left", O = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", G = u.reference[x] + u.reference[S] - y[S] - u.floating[x],
|
|
29113
|
+
}, S = Rm(a), x = Pm(S), w = yield l.getDimensions(m), v = S === "y", N = v ? "top" : "left", O = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", G = u.reference[x] + u.reference[S] - y[S] - u.floating[x], M = y[S] - u.reference[S], V = yield l.getOffsetParent == null ? void 0 : l.getOffsetParent(m);
|
|
29114
29114
|
let J = V ? V[$] : 0;
|
|
29115
29115
|
(!J || !(yield l.isElement == null ? void 0 : l.isElement(V))) && (J = d.floating[$] || u.floating[x]);
|
|
29116
|
-
const se = G / 2 -
|
|
29116
|
+
const se = G / 2 - M / 2, H = J / 2 - w[x] / 2 - 1, ie = wi(_[N], H), te = wi(_[O], H), le = J - w[x] - te, fe = J / 2 - w[x] / 2 + se, ue = n2(ie, fe, le), ve = !f.arrow && No(a) != null && fe !== ue && u.reference[x] / 2 - (fe < ie ? ie : te) - w[x] / 2 < 0, de = ve ? fe < ie ? fe - ie : fe - le : 0;
|
|
29117
29117
|
return {
|
|
29118
29118
|
[S]: y[S] + de,
|
|
29119
29119
|
data: j({
|
|
@@ -29157,9 +29157,9 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29157
29157
|
]);
|
|
29158
29158
|
if ((r = u.arrow) != null && r.alignmentOffset)
|
|
29159
29159
|
return {};
|
|
29160
|
-
const N = Ci(a), O = Sr(d), $ = Ci(d) === d, G = yield f.isRTL == null ? void 0 : f.isRTL(m.floating),
|
|
29161
|
-
!y && V &&
|
|
29162
|
-
const J = [d, ...
|
|
29160
|
+
const N = Ci(a), O = Sr(d), $ = Ci(d) === d, G = yield f.isRTL == null ? void 0 : f.isRTL(m.floating), M = y || ($ || !w ? [yc(d)] : G5(d)), V = x !== "none";
|
|
29161
|
+
!y && V && M.push(...J5(d, w, x, G));
|
|
29162
|
+
const J = [d, ...M], se = yield f.detectOverflow(n, v), H = [];
|
|
29163
29163
|
let ie = ((s = u.flip) == null ? void 0 : s.overflows) || [];
|
|
29164
29164
|
if (p && H.push(se[N]), _) {
|
|
29165
29165
|
const ve = W5(a, l, G);
|
|
@@ -29190,13 +29190,13 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29190
29190
|
var fe;
|
|
29191
29191
|
const oe = (fe = ie.filter((C) => {
|
|
29192
29192
|
if (V) {
|
|
29193
|
-
const
|
|
29194
|
-
return
|
|
29193
|
+
const D = Sr(C.placement);
|
|
29194
|
+
return D === O || // Create a bias to the `y` side axis due to horizontal
|
|
29195
29195
|
// reading directions favoring greater width.
|
|
29196
|
-
|
|
29196
|
+
D === "y";
|
|
29197
29197
|
}
|
|
29198
29198
|
return !0;
|
|
29199
|
-
}).map((C) => [C.placement, C.overflows.filter((
|
|
29199
|
+
}).map((C) => [C.placement, C.overflows.filter((D) => D > 0).reduce((D, Z) => D + Z, 0)]).sort((C, D) => C[1] - D[1])[0]) == null ? void 0 : fe[0];
|
|
29200
29200
|
oe && (W = oe);
|
|
29201
29201
|
break;
|
|
29202
29202
|
}
|
|
@@ -29341,11 +29341,11 @@ const aM = function(e) {
|
|
|
29341
29341
|
fn: ($) => {
|
|
29342
29342
|
let {
|
|
29343
29343
|
x: G,
|
|
29344
|
-
y:
|
|
29344
|
+
y: M
|
|
29345
29345
|
} = $;
|
|
29346
29346
|
return {
|
|
29347
29347
|
x: G,
|
|
29348
|
-
y:
|
|
29348
|
+
y: M
|
|
29349
29349
|
};
|
|
29350
29350
|
}
|
|
29351
29351
|
}
|
|
@@ -29405,12 +29405,12 @@ const aM = function(e) {
|
|
|
29405
29405
|
crossAxis: (r = v.crossAxis) != null ? r : 0
|
|
29406
29406
|
};
|
|
29407
29407
|
if (m) {
|
|
29408
|
-
const G = S === "y" ? "height" : "width",
|
|
29409
|
-
x <
|
|
29408
|
+
const G = S === "y" ? "height" : "width", M = l.reference[S] - l.floating[G] + N.mainAxis, V = l.reference[S] + l.reference[G] - N.mainAxis;
|
|
29409
|
+
x < M ? x = M : x > V && (x = V);
|
|
29410
29410
|
}
|
|
29411
29411
|
if (p) {
|
|
29412
29412
|
var O, $;
|
|
29413
|
-
const G = S === "y" ? "width" : "height",
|
|
29413
|
+
const G = S === "y" ? "width" : "height", M = i2.has(Ci(u)), V = l.reference[y] - l.floating[G] + (M && ((O = d.offset) == null ? void 0 : O[y]) || 0) + (M ? 0 : N.crossAxis), J = l.reference[y] + l.reference[G] + (M ? 0 : (($ = d.offset) == null ? void 0 : $[y]) || 0) - (M ? N.crossAxis : 0);
|
|
29414
29414
|
w < V ? w = V : w > J && (w = J);
|
|
29415
29415
|
}
|
|
29416
29416
|
return {
|
|
@@ -29441,9 +29441,9 @@ const aM = function(e) {
|
|
|
29441
29441
|
} = s.floating;
|
|
29442
29442
|
let x, w;
|
|
29443
29443
|
m === "top" || m === "bottom" ? (x = m, w = p === ((yield a.isRTL == null ? void 0 : a.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (w = m, x = p === "end" ? "top" : "bottom");
|
|
29444
|
-
const v = S - f.top - f.bottom, N = y - f.left - f.right, O = wi(S - f[x], v), $ = wi(y - f[w], N), G = n.middlewareData.shift,
|
|
29444
|
+
const v = S - f.top - f.bottom, N = y - f.left - f.right, O = wi(S - f[x], v), $ = wi(y - f[w], N), G = n.middlewareData.shift, M = !G;
|
|
29445
29445
|
let V = O, J = $;
|
|
29446
|
-
G != null && G.enabled.x && (J = N), G != null && G.enabled.y && (V = v),
|
|
29446
|
+
G != null && G.enabled.x && (J = N), G != null && G.enabled.y && (V = v), M && !p && (_ ? J = y - 2 * qr(f.left, f.right) : V = S - 2 * qr(f.top, f.bottom)), yield l(ce(j({}, n), {
|
|
29447
29447
|
availableWidth: J,
|
|
29448
29448
|
availableHeight: V
|
|
29449
29449
|
}));
|
|
@@ -29886,8 +29886,8 @@ function IM(e, t) {
|
|
|
29886
29886
|
threshold: qr(0, wi(1, d)) || 1
|
|
29887
29887
|
};
|
|
29888
29888
|
let $ = !0;
|
|
29889
|
-
function G(
|
|
29890
|
-
const V =
|
|
29889
|
+
function G(M) {
|
|
29890
|
+
const V = M[0].intersectionRatio;
|
|
29891
29891
|
if (V !== d) {
|
|
29892
29892
|
if (!$)
|
|
29893
29893
|
return u();
|
|
@@ -29902,7 +29902,7 @@ function IM(e, t) {
|
|
|
29902
29902
|
// Handle <iframe>s
|
|
29903
29903
|
root: s.ownerDocument
|
|
29904
29904
|
}));
|
|
29905
|
-
} catch (
|
|
29905
|
+
} catch (M) {
|
|
29906
29906
|
n = new IntersectionObserver(G, O);
|
|
29907
29907
|
}
|
|
29908
29908
|
n.observe(e);
|
|
@@ -29996,7 +29996,7 @@ function zM(e, t) {
|
|
|
29996
29996
|
name: "transformOrigin",
|
|
29997
29997
|
fn(n) {
|
|
29998
29998
|
var se, H, ie, te, le;
|
|
29999
|
-
const { elements: r, middlewareData: s, placement: a, rects: u, y: l } = n, d = a.split("-")[0], f = $M(d), m = ((se = s.arrow) == null ? void 0 : se.x) || 0, p = ((H = s.arrow) == null ? void 0 : H.y) || 0, _ = (t == null ? void 0 : t.clientWidth) || 0, y = (t == null ? void 0 : t.clientHeight) || 0, S = m + _ / 2, x = p + y / 2, w = Math.abs(((ie = s.shift) == null ? void 0 : ie.y) || 0), v = u.reference.height / 2, N = y / 2, O = (le = (te = e.offset) == null ? void 0 : te.mainAxis) != null ? le : e.gutter, $ = typeof O == "number" ? O + N : O != null ? O : N, G = w > $,
|
|
29999
|
+
const { elements: r, middlewareData: s, placement: a, rects: u, y: l } = n, d = a.split("-")[0], f = $M(d), m = ((se = s.arrow) == null ? void 0 : se.x) || 0, p = ((H = s.arrow) == null ? void 0 : H.y) || 0, _ = (t == null ? void 0 : t.clientWidth) || 0, y = (t == null ? void 0 : t.clientHeight) || 0, S = m + _ / 2, x = p + y / 2, w = Math.abs(((ie = s.shift) == null ? void 0 : ie.y) || 0), v = u.reference.height / 2, N = y / 2, O = (le = (te = e.offset) == null ? void 0 : te.mainAxis) != null ? le : e.gutter, $ = typeof O == "number" ? O + N : O != null ? O : N, G = w > $, M = {
|
|
30000
30000
|
top: `${S}px calc(100% + ${$}px)`,
|
|
30001
30001
|
bottom: `${S}px ${-$}px`,
|
|
30002
30002
|
left: `calc(100% + ${$}px) ${x}px`,
|
|
@@ -30004,10 +30004,10 @@ function zM(e, t) {
|
|
|
30004
30004
|
}[d], V = `${S}px ${u.reference.y + v - l}px`, J = !!e.overlap && f === "y" && G;
|
|
30005
30005
|
return r.floating.style.setProperty(
|
|
30006
30006
|
$r.transformOrigin.variable,
|
|
30007
|
-
J ? V :
|
|
30007
|
+
J ? V : M
|
|
30008
30008
|
), {
|
|
30009
30009
|
data: {
|
|
30010
|
-
transformOrigin: J ? V :
|
|
30010
|
+
transformOrigin: J ? V : M
|
|
30011
30011
|
}
|
|
30012
30012
|
};
|
|
30013
30013
|
}
|
|
@@ -30364,15 +30364,15 @@ function g8(e, t) {
|
|
|
30364
30364
|
const V = gp(G);
|
|
30365
30365
|
if (uT(O, V)) return !1;
|
|
30366
30366
|
}
|
|
30367
|
-
const
|
|
30368
|
-
return uT(O,
|
|
30367
|
+
const M = gp(e);
|
|
30368
|
+
return uT(O, M) ? !1 : !(n != null && n($));
|
|
30369
30369
|
}
|
|
30370
30370
|
const y = /* @__PURE__ */ new Set(), S = ms(e == null ? void 0 : e.getRootNode());
|
|
30371
30371
|
function x(O) {
|
|
30372
30372
|
function $(G) {
|
|
30373
30373
|
var se, H;
|
|
30374
|
-
const
|
|
30375
|
-
|
|
30374
|
+
const M = u && !$y() ? jt : (ie) => ie(), V = G != null ? G : O, J = (H = (se = V == null ? void 0 : V.composedPath) == null ? void 0 : se.call(V)) != null ? H : [V == null ? void 0 : V.target];
|
|
30375
|
+
M(() => {
|
|
30376
30376
|
const ie = S ? J[0] : ir(O);
|
|
30377
30377
|
if (!(!e || !_(O, ie))) {
|
|
30378
30378
|
if (s || a) {
|
|
@@ -30400,8 +30400,8 @@ function g8(e, t) {
|
|
|
30400
30400
|
function N(O) {
|
|
30401
30401
|
(u ? jt : (G) => G())(() => {
|
|
30402
30402
|
var V, J;
|
|
30403
|
-
const G = (J = (V = O == null ? void 0 : O.composedPath) == null ? void 0 : V.call(O)) != null ? J : [O == null ? void 0 : O.target],
|
|
30404
|
-
if (!(!e || !_(O,
|
|
30403
|
+
const G = (J = (V = O == null ? void 0 : O.composedPath) == null ? void 0 : V.call(O)) != null ? J : [O == null ? void 0 : O.target], M = S ? G[0] : ir(O);
|
|
30404
|
+
if (!(!e || !_(O, M))) {
|
|
30405
30405
|
if (r || a) {
|
|
30406
30406
|
const se = pp(r, a);
|
|
30407
30407
|
e.addEventListener(aT, se, { once: !0 });
|
|
@@ -30412,8 +30412,8 @@ function g8(e, t) {
|
|
|
30412
30412
|
detail: {
|
|
30413
30413
|
originalEvent: O,
|
|
30414
30414
|
contextmenu: !1,
|
|
30415
|
-
focusable: xr(
|
|
30416
|
-
target:
|
|
30415
|
+
focusable: xr(M),
|
|
30416
|
+
target: M
|
|
30417
30417
|
}
|
|
30418
30418
|
});
|
|
30419
30419
|
}
|
|
@@ -30992,8 +30992,8 @@ function y2(e) {
|
|
|
30992
30992
|
};
|
|
30993
30993
|
return !u && l > 0 && (S[f] = `${l}px`), mc(s, S);
|
|
30994
30994
|
}, p = () => {
|
|
30995
|
-
var G,
|
|
30996
|
-
const { scrollX: S, scrollY: x, visualViewport: w } = n, v = (G = w == null ? void 0 : w.offsetLeft) != null ? G : 0, N = (
|
|
30995
|
+
var G, M;
|
|
30996
|
+
const { scrollX: S, scrollY: x, visualViewport: w } = n, v = (G = w == null ? void 0 : w.offsetLeft) != null ? G : 0, N = (M = w == null ? void 0 : w.offsetTop) != null ? M : 0, O = {
|
|
30997
30997
|
position: "fixed",
|
|
30998
30998
|
overflow: "hidden",
|
|
30999
30999
|
top: `${-(x - Math.floor(N))}px`,
|
|
@@ -31772,8 +31772,8 @@ function n9(e, t) {
|
|
|
31772
31772
|
style: {
|
|
31773
31773
|
scrollSnapAlign: (() => {
|
|
31774
31774
|
var J;
|
|
31775
|
-
const $ = (J = N.snapAlign) != null ? J : "start", G = l("slidesPerMove"),
|
|
31776
|
-
return (N.index +
|
|
31775
|
+
const $ = (J = N.snapAlign) != null ? J : "start", G = l("slidesPerMove"), M = G === "auto" ? Math.floor(l("slidesPerPage")) : G;
|
|
31776
|
+
return (N.index + M) % M === 0 ? $ : void 0;
|
|
31777
31777
|
})()
|
|
31778
31778
|
}
|
|
31779
31779
|
}));
|
|
@@ -31840,8 +31840,8 @@ function n9(e, t) {
|
|
|
31840
31840
|
}, G = a5(N, {
|
|
31841
31841
|
dir: l("dir"),
|
|
31842
31842
|
orientation: l("orientation")
|
|
31843
|
-
}),
|
|
31844
|
-
|
|
31843
|
+
}), M = $[G];
|
|
31844
|
+
M == null || M(N);
|
|
31845
31845
|
}
|
|
31846
31846
|
}));
|
|
31847
31847
|
},
|
|
@@ -32362,7 +32362,7 @@ const o9 = 180, a9 = (e) => {
|
|
|
32362
32362
|
}, [w, _]);
|
|
32363
32363
|
const v = a9(r), N = n + v, O = S > 0 ? (S + v) / N : 1, $ = Math.max(1, Math.floor(O));
|
|
32364
32364
|
if (_ === 0) return null;
|
|
32365
|
-
const G = _ > $,
|
|
32365
|
+
const G = _ > $, M = Math.ceil(_ / $), V = G ? Math.max(1, O) : $;
|
|
32366
32366
|
return /* @__PURE__ */ b.jsxs(
|
|
32367
32367
|
Wm,
|
|
32368
32368
|
{
|
|
@@ -32422,7 +32422,7 @@ const o9 = 180, a9 = (e) => {
|
|
|
32422
32422
|
$m,
|
|
32423
32423
|
{
|
|
32424
32424
|
className: B(e, `${I}-carousel__indicator-group`),
|
|
32425
|
-
children: Array.from({ length:
|
|
32425
|
+
children: Array.from({ length: M }, (J, se) => /* @__PURE__ */ b.jsx(
|
|
32426
32426
|
jm,
|
|
32427
32427
|
{
|
|
32428
32428
|
index: se,
|
|
@@ -33466,11 +33466,11 @@ function Q9(e, t, n) {
|
|
|
33466
33466
|
input: O.input,
|
|
33467
33467
|
stack: [...m, f]
|
|
33468
33468
|
};
|
|
33469
|
-
let
|
|
33470
|
-
if (typeof
|
|
33469
|
+
let M = y(...O, G);
|
|
33470
|
+
if (typeof M == "string" && (M = M.length > 0 ? { type: "text", value: M } : void 0), M === !1 ? _.lastIndex = $ + 1 : (S !== $ && N.push({
|
|
33471
33471
|
type: "text",
|
|
33472
33472
|
value: f.value.slice(S, $)
|
|
33473
|
-
}), Array.isArray(
|
|
33473
|
+
}), Array.isArray(M) ? N.push(...M) : M && N.push(M), S = $ + O[0].length, v = !0), !_.global)
|
|
33474
33474
|
break;
|
|
33475
33475
|
O = _.exec(f.value);
|
|
33476
33476
|
}
|
|
@@ -33804,8 +33804,8 @@ function PF(e, t) {
|
|
|
33804
33804
|
const N = x[p] || "";
|
|
33805
33805
|
let O = "", $ = "";
|
|
33806
33806
|
if (n.alignDelimiters !== !1) {
|
|
33807
|
-
const G = d[p] - (w[p] || 0),
|
|
33808
|
-
|
|
33807
|
+
const G = d[p] - (w[p] || 0), M = a[p];
|
|
33808
|
+
M === 114 ? O = " ".repeat(G) : M === 99 ? G % 2 ? (O = " ".repeat(G / 2 + 0.5), $ = " ".repeat(G / 2 - 0.5)) : (O = " ".repeat(G / 2), $ = O) : $ = " ".repeat(G);
|
|
33809
33809
|
}
|
|
33810
33810
|
n.delimiterStart !== !1 && !p && v.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
33811
33811
|
// empty: there will be a closing space.
|
|
@@ -35144,8 +35144,8 @@ function KB(e, t, n) {
|
|
|
35144
35144
|
fe === "linePrefix") ie--;
|
|
35145
35145
|
else break;
|
|
35146
35146
|
}
|
|
35147
|
-
const te = ie > -1 ? r.events[ie][1].type : null, le = te === "tableHead" || te === "tableRow" ?
|
|
35148
|
-
return le ===
|
|
35147
|
+
const te = ie > -1 ? r.events[ie][1].type : null, le = te === "tableHead" || te === "tableRow" ? M : d;
|
|
35148
|
+
return le === M && r.parser.lazy[r.now().line] ? n(H) : le(H);
|
|
35149
35149
|
}
|
|
35150
35150
|
function d(H) {
|
|
35151
35151
|
return e.enter("tableHead"), e.enter("tableRow"), f(H);
|
|
@@ -35189,7 +35189,7 @@ function KB(e, t, n) {
|
|
|
35189
35189
|
function G(H) {
|
|
35190
35190
|
return n(H);
|
|
35191
35191
|
}
|
|
35192
|
-
function
|
|
35192
|
+
function M(H) {
|
|
35193
35193
|
return e.enter("tableRow"), V(H);
|
|
35194
35194
|
}
|
|
35195
35195
|
function V(H) {
|
|
@@ -35587,7 +35587,7 @@ const d7 = ({
|
|
|
35587
35587
|
discountPrice: O,
|
|
35588
35588
|
listPrice: $,
|
|
35589
35589
|
currencyCode: G
|
|
35590
|
-
} = e,
|
|
35590
|
+
} = e, M = O != null ? O : v, V = H9({ priceBreakdown: N, currencyCode: G }), J = () => {
|
|
35591
35591
|
if (f) return;
|
|
35592
35592
|
const H = y || "this product", ie = _ ? ` [SKU: ${_}]` : "";
|
|
35593
35593
|
d(`Show me details for ${H}${ie}`);
|
|
@@ -35657,7 +35657,7 @@ const d7 = ({
|
|
|
35657
35657
|
{
|
|
35658
35658
|
globalClassName: t,
|
|
35659
35659
|
retailPrice: $,
|
|
35660
|
-
discountPrice:
|
|
35660
|
+
discountPrice: M,
|
|
35661
35661
|
currencyCode: G
|
|
35662
35662
|
}
|
|
35663
35663
|
)
|
|
@@ -36051,7 +36051,7 @@ const x7 = ({
|
|
|
36051
36051
|
shippingCost: O,
|
|
36052
36052
|
shippingDiscount: $,
|
|
36053
36053
|
shippingPromotions: G = [],
|
|
36054
|
-
promotionsDiscount:
|
|
36054
|
+
promotionsDiscount: M,
|
|
36055
36055
|
promotions: V = [],
|
|
36056
36056
|
couponsDiscount: J,
|
|
36057
36057
|
bodyMessage: se,
|
|
@@ -36170,7 +36170,7 @@ const x7 = ({
|
|
|
36170
36170
|
{
|
|
36171
36171
|
label: "Promotions",
|
|
36172
36172
|
badge: V[0],
|
|
36173
|
-
value:
|
|
36173
|
+
value: M,
|
|
36174
36174
|
currencyCode: x,
|
|
36175
36175
|
globalClassName: n,
|
|
36176
36176
|
isDiscount: !0,
|
|
@@ -36694,9 +36694,9 @@ const x7 = ({
|
|
|
36694
36694
|
var Qe, ft, Ct, Zt, dn, Nt, He;
|
|
36695
36695
|
const { addToCart: s, sendMessage: a, loading: u } = Bn(), { overrides: l, isInitialized: d } = ko(), f = Po(), m = e.data, p = (Qe = m.vattr) != null ? Qe : [], [_, y] = R.useState(
|
|
36696
36696
|
() => F7(m)
|
|
36697
|
-
), S = L7(m.vmat, _), x = (Ct = (ft = m.quantity) == null ? void 0 : ft.minQuantity) != null ? Ct : 1, w = (dn = (Zt = m.quantity) == null ? void 0 : Zt.maxQuantity) != null ? dn : Number.POSITIVE_INFINITY, v = (He = (Nt = m.quantity) == null ? void 0 : Nt.increment) != null ? He : 1, [N, O] = R.useState(x), [$, G] = R.useState(!1),
|
|
36697
|
+
), S = L7(m.vmat, _), x = (Ct = (ft = m.quantity) == null ? void 0 : ft.minQuantity) != null ? Ct : 1, w = (dn = (Zt = m.quantity) == null ? void 0 : Zt.maxQuantity) != null ? dn : Number.POSITIVE_INFINITY, v = (He = (Nt = m.quantity) == null ? void 0 : Nt.increment) != null ? He : 1, [N, O] = R.useState(x), [$, G] = R.useState(!1), M = R.useRef(!1);
|
|
36698
36698
|
R.useEffect(() => {
|
|
36699
|
-
$ && (u ?
|
|
36699
|
+
$ && (u ? M.current = !0 : M.current && (M.current = !1, G(!1)));
|
|
36700
36700
|
}, [$, u]);
|
|
36701
36701
|
const V = _[La], J = R.useMemo(() => P7(m, V), [m, V]), se = R.useMemo(
|
|
36702
36702
|
() => M7(m, _),
|
|
@@ -36741,7 +36741,7 @@ const x7 = ({
|
|
|
36741
36741
|
}
|
|
36742
36742
|
);
|
|
36743
36743
|
}
|
|
36744
|
-
const
|
|
36744
|
+
const D = (Ne, Ye) => () => {
|
|
36745
36745
|
y((Ze) => {
|
|
36746
36746
|
const ct = !Zl(m.vmat, Ne, Ye, Ze);
|
|
36747
36747
|
return Ne === La || ct ? D7(m.vmat, p, Ne, Ye, Ze) : ce(j({}, Ze), { [Ne]: Ye });
|
|
@@ -36804,7 +36804,7 @@ const x7 = ({
|
|
|
36804
36804
|
value: Ye.val,
|
|
36805
36805
|
checked: ct,
|
|
36806
36806
|
"aria-description": Ze ? void 0 : "unavailable",
|
|
36807
|
-
onChange:
|
|
36807
|
+
onChange: D(Ne.id, Ye.val),
|
|
36808
36808
|
className: `${I}-msg-pdp__radio-input`
|
|
36809
36809
|
}
|
|
36810
36810
|
),
|
|
@@ -36856,7 +36856,7 @@ const x7 = ({
|
|
|
36856
36856
|
checked: ct,
|
|
36857
36857
|
"aria-label": Ye.name || Ye.val,
|
|
36858
36858
|
"aria-description": Ze ? void 0 : "unavailable",
|
|
36859
|
-
onChange:
|
|
36859
|
+
onChange: D(Ne.id, Ye.val),
|
|
36860
36860
|
className: `${I}-msg-pdp__radio-input`
|
|
36861
36861
|
}
|
|
36862
36862
|
),
|
|
@@ -36888,7 +36888,7 @@ const x7 = ({
|
|
|
36888
36888
|
value: Ye.val,
|
|
36889
36889
|
checked: ct,
|
|
36890
36890
|
"aria-description": Ze ? void 0 : "unavailable",
|
|
36891
|
-
onChange:
|
|
36891
|
+
onChange: D(Ne.id, Ye.val),
|
|
36892
36892
|
className: `${I}-msg-pdp__radio-input`
|
|
36893
36893
|
}
|
|
36894
36894
|
),
|
|
@@ -37159,7 +37159,7 @@ const x7 = ({
|
|
|
37159
37159
|
[e.response]
|
|
37160
37160
|
);
|
|
37161
37161
|
return /* @__PURE__ */ b.jsx(b.Fragment, { children: y.map((S, x) => {
|
|
37162
|
-
var w, v, N, O, $, G,
|
|
37162
|
+
var w, v, N, O, $, G, M, V, J, se, H, ie, te, le, fe, ue, ve, de, W, oe, C, D, Z, P, xe, ke;
|
|
37163
37163
|
switch (S.type) {
|
|
37164
37164
|
case "markdown": {
|
|
37165
37165
|
const he = (v = (w = S.data) == null ? void 0 : w.content) != null ? v : "";
|
|
@@ -37179,7 +37179,7 @@ const x7 = ({
|
|
|
37179
37179
|
m7,
|
|
37180
37180
|
{
|
|
37181
37181
|
title: ($ = (O = S.data) == null ? void 0 : O.title) != null ? $ : "",
|
|
37182
|
-
products: (
|
|
37182
|
+
products: (M = (G = S.data) == null ? void 0 : G.products) != null ? M : [],
|
|
37183
37183
|
globalClassName: n,
|
|
37184
37184
|
openLinksInNewTab: r,
|
|
37185
37185
|
isWidgetStandalone: s,
|
|
@@ -37235,7 +37235,7 @@ const x7 = ({
|
|
|
37235
37235
|
openLinksInNewTab: r,
|
|
37236
37236
|
isWidgetStandalone: s
|
|
37237
37237
|
},
|
|
37238
|
-
`${S.type}-${(
|
|
37238
|
+
`${S.type}-${(D = S.index) != null ? D : x}`
|
|
37239
37239
|
) : null;
|
|
37240
37240
|
}
|
|
37241
37241
|
case "tool_results": {
|
|
@@ -37469,9 +37469,9 @@ const $7 = ({
|
|
|
37469
37469
|
sendError: _,
|
|
37470
37470
|
retryLastMessage: y,
|
|
37471
37471
|
retryConnection: S
|
|
37472
|
-
} = Bn(), x = R.useRef(null), w = a.length > 0, v = u.some(GN), N = a[a.length - 1], O = N ? WN(N.content, "suggestions") : !1, $ = w && (d || l) && !v && !O, G = m === "reconnecting" && !$,
|
|
37472
|
+
} = Bn(), x = R.useRef(null), w = a.length > 0, v = u.some(GN), N = a[a.length - 1], O = N ? WN(N.content, "suggestions") : !1, $ = w && (d || l) && !v && !O, G = m === "reconnecting" && !$, M = m === "error";
|
|
37473
37473
|
let V = null;
|
|
37474
|
-
|
|
37474
|
+
M ? V = {
|
|
37475
37475
|
message: p != null ? p : V7,
|
|
37476
37476
|
kind: "connection",
|
|
37477
37477
|
onRetry: S
|