jsxc-react-hook 0.0.6 → 0.0.7

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.
@@ -1,676 +1,327 @@
1
1
  import './style.css';
2
- import De, { useEffect as dr } from "react";
3
- var ie = { exports: {} }, L = {};
2
+ import re, { useEffect as te } from "react";
3
+ var L = { exports: {} }, x = {};
4
4
  /**
5
5
  * @license React
6
- * react-jsx-runtime.production.min.js
6
+ * react-jsx-runtime.production.js
7
7
  *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var ke;
14
- function vr() {
15
- if (ke)
16
- return L;
17
- ke = 1;
18
- var w = De, j = Symbol.for("react.element"), S = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, k = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function C(E, f, R) {
20
- var d, h = {}, _ = null, x = null;
21
- R !== void 0 && (_ = "" + R), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (x = f.ref);
22
- for (d in f)
23
- b.call(f, d) && !A.hasOwnProperty(d) && (h[d] = f[d]);
24
- if (E && E.defaultProps)
25
- for (d in f = E.defaultProps, f)
26
- h[d] === void 0 && (h[d] = f[d]);
27
- return { $$typeof: j, type: E, key: _, ref: x, props: h, _owner: k.current };
13
+ var B;
14
+ function ne() {
15
+ if (B)
16
+ return x;
17
+ B = 1;
18
+ var s = Symbol.for("react.transitional.element"), m = Symbol.for("react.fragment");
19
+ function u(d, a, c) {
20
+ var p = null;
21
+ if (c !== void 0 && (p = "" + c), a.key !== void 0 && (p = "" + a.key), "key" in a) {
22
+ c = {};
23
+ for (var E in a)
24
+ E !== "key" && (c[E] = a[E]);
25
+ } else
26
+ c = a;
27
+ return a = c.ref, {
28
+ $$typeof: s,
29
+ type: d,
30
+ key: p,
31
+ ref: a !== void 0 ? a : null,
32
+ props: c
33
+ };
28
34
  }
29
- return L.Fragment = S, L.jsx = C, L.jsxs = C, L;
35
+ return x.Fragment = m, x.jsx = u, x.jsxs = u, x;
30
36
  }
31
- var U = {};
37
+ var _ = {};
32
38
  /**
33
39
  * @license React
34
40
  * react-jsx-runtime.development.js
35
41
  *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
42
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
37
43
  *
38
44
  * This source code is licensed under the MIT license found in the
39
45
  * LICENSE file in the root directory of this source tree.
40
46
  */
41
- var Ae;
42
- function pr() {
43
- return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
44
- var w = De, j = Symbol.for("react.element"), S = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), V = Symbol.iterator, G = "@@iterator";
45
- function X(e) {
46
- if (e === null || typeof e != "object")
47
- return null;
48
- var r = V && e[V] || e[G];
49
- return typeof r == "function" ? r : null;
50
- }
51
- var T = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function c(e) {
53
- {
54
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
55
- t[n - 1] = arguments[n];
56
- D("error", e, t);
57
- }
58
- }
59
- function D(e, r, t) {
60
- {
61
- var n = T.ReactDebugCurrentFrame, i = n.getStackAddendum();
62
- i !== "" && (r += "%s", t = t.concat([i]));
63
- var s = t.map(function(o) {
64
- return String(o);
65
- });
66
- s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
67
- }
68
- }
69
- var y = !1, M = !1, Fe = !1, Ie = !1, We = !1, se;
70
- se = Symbol.for("react.module.reference");
71
- function $e(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === A || We || e === k || e === R || e === d || Ie || e === x || y || M || Fe || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === h || e.$$typeof === C || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
73
- // types supported by any Flight configuration anywhere since
74
- // we don't know which Flight build this will end up being used
75
- // with.
76
- e.$$typeof === se || e.getModuleId !== void 0));
77
- }
78
- function Ye(e, r, t) {
79
- var n = e.displayName;
80
- if (n)
81
- return n;
82
- var i = r.displayName || r.name || "";
83
- return i !== "" ? t + "(" + i + ")" : t;
84
- }
85
- function ue(e) {
86
- return e.displayName || "Context";
87
- }
88
- function m(e) {
47
+ var G;
48
+ function oe() {
49
+ return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
50
+ function s(e) {
89
51
  if (e == null)
90
52
  return null;
91
- if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
- return e.displayName || e.name || null;
53
+ if (typeof e == "function")
54
+ return e.$$typeof === Q ? null : e.displayName || e.name || null;
93
55
  if (typeof e == "string")
94
56
  return e;
95
57
  switch (e) {
96
- case b:
58
+ case R:
97
59
  return "Fragment";
98
- case S:
99
- return "Portal";
100
- case A:
60
+ case N:
101
61
  return "Profiler";
102
- case k:
62
+ case C:
103
63
  return "StrictMode";
104
- case R:
64
+ case A:
105
65
  return "Suspense";
106
- case d:
66
+ case X:
107
67
  return "SuspenseList";
68
+ case Z:
69
+ return "Activity";
108
70
  }
109
71
  if (typeof e == "object")
110
- switch (e.$$typeof) {
111
- case E:
112
- var r = e;
113
- return ue(r) + ".Consumer";
114
- case C:
115
- var t = e;
116
- return ue(t._context) + ".Provider";
117
- case f:
118
- return Ye(e, e.render, "ForwardRef");
72
+ switch (typeof e.tag == "number" && console.error(
73
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
74
+ ), e.$$typeof) {
75
+ case S:
76
+ return "Portal";
77
+ case j:
78
+ return (e.displayName || "Context") + ".Provider";
119
79
  case h:
120
- var n = e.displayName || null;
121
- return n !== null ? n : m(e.type) || "Memo";
122
- case _: {
123
- var i = e, s = i._payload, o = i._init;
80
+ return (e._context.displayName || "Context") + ".Consumer";
81
+ case i:
82
+ var r = e.render;
83
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
84
+ case H:
85
+ return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
86
+ case W:
87
+ r = e._payload, e = e._init;
124
88
  try {
125
- return m(o(s));
89
+ return s(e(r));
126
90
  } catch {
127
- return null;
128
91
  }
129
- }
130
92
  }
131
93
  return null;
132
94
  }
133
- var P = Object.assign, W = 0, ce, le, fe, de, ve, pe, ge;
134
- function he() {
135
- }
136
- he.__reactDisabledLog = !0;
137
- function Le() {
138
- {
139
- if (W === 0) {
140
- ce = console.log, le = console.info, fe = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, ge = console.groupEnd;
141
- var e = {
142
- configurable: !0,
143
- enumerable: !0,
144
- value: he,
145
- writable: !0
146
- };
147
- Object.defineProperties(console, {
148
- info: e,
149
- log: e,
150
- warn: e,
151
- error: e,
152
- group: e,
153
- groupCollapsed: e,
154
- groupEnd: e
155
- });
156
- }
157
- W++;
158
- }
159
- }
160
- function Ue() {
161
- {
162
- if (W--, W === 0) {
163
- var e = {
164
- configurable: !0,
165
- enumerable: !0,
166
- writable: !0
167
- };
168
- Object.defineProperties(console, {
169
- log: P({}, e, {
170
- value: ce
171
- }),
172
- info: P({}, e, {
173
- value: le
174
- }),
175
- warn: P({}, e, {
176
- value: fe
177
- }),
178
- error: P({}, e, {
179
- value: de
180
- }),
181
- group: P({}, e, {
182
- value: ve
183
- }),
184
- groupCollapsed: P({}, e, {
185
- value: pe
186
- }),
187
- groupEnd: P({}, e, {
188
- value: ge
189
- })
190
- });
191
- }
192
- W < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
- }
194
- }
195
- var H = T.ReactCurrentDispatcher, Z;
196
- function N(e, r, t) {
197
- {
198
- if (Z === void 0)
199
- try {
200
- throw Error();
201
- } catch (i) {
202
- var n = i.stack.trim().match(/\n( *(at )?)/);
203
- Z = n && n[1] || "";
204
- }
205
- return `
206
- ` + Z + e;
207
- }
208
- }
209
- var Q = !1, B;
210
- {
211
- var Ve = typeof WeakMap == "function" ? WeakMap : Map;
212
- B = new Ve();
95
+ function m(e) {
96
+ return "" + e;
213
97
  }
214
- function ye(e, r) {
215
- if (!e || Q)
216
- return "";
217
- {
218
- var t = B.get(e);
219
- if (t !== void 0)
220
- return t;
221
- }
222
- var n;
223
- Q = !0;
224
- var i = Error.prepareStackTrace;
225
- Error.prepareStackTrace = void 0;
226
- var s;
227
- s = H.current, H.current = null, Le();
98
+ function u(e) {
228
99
  try {
229
- if (r) {
230
- var o = function() {
231
- throw Error();
232
- };
233
- if (Object.defineProperty(o.prototype, "props", {
234
- set: function() {
235
- throw Error();
236
- }
237
- }), typeof Reflect == "object" && Reflect.construct) {
238
- try {
239
- Reflect.construct(o, []);
240
- } catch (p) {
241
- n = p;
242
- }
243
- Reflect.construct(e, [], o);
244
- } else {
245
- try {
246
- o.call();
247
- } catch (p) {
248
- n = p;
249
- }
250
- e.call(o.prototype);
251
- }
252
- } else {
253
- try {
254
- throw Error();
255
- } catch (p) {
256
- n = p;
257
- }
258
- e();
259
- }
260
- } catch (p) {
261
- if (p && n && typeof p.stack == "string") {
262
- for (var a = p.stack.split(`
263
- `), v = n.stack.split(`
264
- `), u = a.length - 1, l = v.length - 1; u >= 1 && l >= 0 && a[u] !== v[l]; )
265
- l--;
266
- for (; u >= 1 && l >= 0; u--, l--)
267
- if (a[u] !== v[l]) {
268
- if (u !== 1 || l !== 1)
269
- do
270
- if (u--, l--, l < 0 || a[u] !== v[l]) {
271
- var g = `
272
- ` + a[u].replace(" at new ", " at ");
273
- return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, g), g;
274
- }
275
- while (u >= 1 && l >= 0);
276
- break;
277
- }
278
- }
279
- } finally {
280
- Q = !1, H.current = s, Ue(), Error.prepareStackTrace = i;
281
- }
282
- var I = e ? e.displayName || e.name : "", O = I ? N(I) : "";
283
- return typeof e == "function" && B.set(e, O), O;
284
- }
285
- function Me(e, r, t) {
286
- return ye(e, !1);
287
- }
288
- function Ne(e) {
289
- var r = e.prototype;
290
- return !!(r && r.isReactComponent);
291
- }
292
- function J(e, r, t) {
293
- if (e == null)
294
- return "";
295
- if (typeof e == "function")
296
- return ye(e, Ne(e));
297
- if (typeof e == "string")
298
- return N(e);
299
- switch (e) {
300
- case R:
301
- return N("Suspense");
302
- case d:
303
- return N("SuspenseList");
304
- }
305
- if (typeof e == "object")
306
- switch (e.$$typeof) {
307
- case f:
308
- return Me(e.render);
309
- case h:
310
- return J(e.type, r, t);
311
- case _: {
312
- var n = e, i = n._payload, s = n._init;
313
- try {
314
- return J(s(i), r, t);
315
- } catch {
316
- }
317
- }
318
- }
319
- return "";
320
- }
321
- var $ = Object.prototype.hasOwnProperty, me = {}, be = T.ReactDebugCurrentFrame;
322
- function q(e) {
323
- if (e) {
324
- var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
325
- be.setExtraStackFrame(t);
326
- } else
327
- be.setExtraStackFrame(null);
328
- }
329
- function Be(e, r, t, n, i) {
330
- {
331
- var s = Function.call.bind($);
332
- for (var o in e)
333
- if (s(e, o)) {
334
- var a = void 0;
335
- try {
336
- if (typeof e[o] != "function") {
337
- var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw v.name = "Invariant Violation", v;
339
- }
340
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (u) {
342
- a = u;
343
- }
344
- a && !(a instanceof Error) && (q(i), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), q(null)), a instanceof Error && !(a.message in me) && (me[a.message] = !0, q(i), c("Failed %s type: %s", t, a.message), q(null));
345
- }
100
+ m(e);
101
+ var r = !1;
102
+ } catch {
103
+ r = !0;
346
104
  }
347
- }
348
- var Je = Array.isArray;
349
- function ee(e) {
350
- return Je(e);
351
- }
352
- function qe(e) {
353
- {
354
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
- return t;
105
+ if (r) {
106
+ r = console;
107
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
108
+ return t.call(
109
+ r,
110
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
+ n
112
+ ), m(e);
356
113
  }
357
114
  }
358
- function Ke(e) {
115
+ function d(e) {
116
+ if (e === R)
117
+ return "<>";
118
+ if (typeof e == "object" && e !== null && e.$$typeof === W)
119
+ return "<...>";
359
120
  try {
360
- return Ee(e), !1;
121
+ var r = s(e);
122
+ return r ? "<" + r + ">" : "<...>";
361
123
  } catch {
362
- return !0;
124
+ return "<...>";
363
125
  }
364
126
  }
365
- function Ee(e) {
366
- return "" + e;
367
- }
368
- function Re(e) {
369
- if (Ke(e))
370
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), Ee(e);
127
+ function a() {
128
+ var e = Y.A;
129
+ return e === null ? null : e.getOwner();
371
130
  }
372
- var Y = T.ReactCurrentOwner, ze = {
373
- key: !0,
374
- ref: !0,
375
- __self: !0,
376
- __source: !0
377
- }, _e, we, re;
378
- re = {};
379
- function Ge(e) {
380
- if ($.call(e, "ref")) {
381
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
382
- if (r && r.isReactWarning)
383
- return !1;
384
- }
385
- return e.ref !== void 0;
131
+ function c() {
132
+ return Error("react-stack-top-frame");
386
133
  }
387
- function Xe(e) {
388
- if ($.call(e, "key")) {
134
+ function p(e) {
135
+ if (M.call(e, "key")) {
389
136
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
390
137
  if (r && r.isReactWarning)
391
138
  return !1;
392
139
  }
393
140
  return e.key !== void 0;
394
141
  }
395
- function He(e, r) {
396
- if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
397
- var t = m(Y.current.type);
398
- re[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', m(Y.current.type), e.ref), re[t] = !0);
142
+ function E(e, r) {
143
+ function t() {
144
+ U || (U = !0, console.error(
145
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
146
+ r
147
+ ));
399
148
  }
149
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
150
+ get: t,
151
+ configurable: !0
152
+ });
400
153
  }
401
- function Ze(e, r) {
402
- {
403
- var t = function() {
404
- _e || (_e = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
405
- };
406
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
407
- get: t,
408
- configurable: !0
409
- });
410
- }
154
+ function O() {
155
+ var e = s(this.type);
156
+ return J[e] || (J[e] = !0, console.error(
157
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
158
+ )), e = this.props.ref, e !== void 0 ? e : null;
411
159
  }
412
- function Qe(e, r) {
413
- {
414
- var t = function() {
415
- we || (we = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
416
- };
417
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
- get: t,
419
- configurable: !0
420
- });
421
- }
422
- }
423
- var er = function(e, r, t, n, i, s, o) {
424
- var a = {
425
- // This tag allows us to uniquely identify this as a React Element
426
- $$typeof: j,
427
- // Built-in properties that belong on the element
160
+ function g(e, r, t, n, f, l, $, D) {
161
+ return t = l.ref, e = {
162
+ $$typeof: b,
428
163
  type: e,
429
164
  key: r,
430
- ref: t,
431
- props: o,
432
- // Record the component responsible for creating this element.
433
- _owner: s
434
- };
435
- return a._store = {}, Object.defineProperty(a._store, "validated", {
165
+ props: l,
166
+ _owner: f
167
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
168
+ enumerable: !1,
169
+ get: O
170
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
436
171
  configurable: !1,
437
172
  enumerable: !1,
438
173
  writable: !0,
439
- value: !1
440
- }), Object.defineProperty(a, "_self", {
174
+ value: 0
175
+ }), Object.defineProperty(e, "_debugInfo", {
441
176
  configurable: !1,
442
177
  enumerable: !1,
443
- writable: !1,
444
- value: n
445
- }), Object.defineProperty(a, "_source", {
178
+ writable: !0,
179
+ value: null
180
+ }), Object.defineProperty(e, "_debugStack", {
446
181
  configurable: !1,
447
182
  enumerable: !1,
448
- writable: !1,
449
- value: i
450
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
451
- };
452
- function rr(e, r, t, n, i) {
453
- {
454
- var s, o = {}, a = null, v = null;
455
- t !== void 0 && (Re(t), a = "" + t), Xe(r) && (Re(r.key), a = "" + r.key), Ge(r) && (v = r.ref, He(r, i));
456
- for (s in r)
457
- $.call(r, s) && !ze.hasOwnProperty(s) && (o[s] = r[s]);
458
- if (e && e.defaultProps) {
459
- var u = e.defaultProps;
460
- for (s in u)
461
- o[s] === void 0 && (o[s] = u[s]);
462
- }
463
- if (a || v) {
464
- var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- a && Ze(o, l), v && Qe(o, l);
466
- }
467
- return er(e, a, v, i, n, Y.current, o);
468
- }
469
- }
470
- var te = T.ReactCurrentOwner, je = T.ReactDebugCurrentFrame;
471
- function F(e) {
472
- if (e) {
473
- var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
474
- je.setExtraStackFrame(t);
475
- } else
476
- je.setExtraStackFrame(null);
477
- }
478
- var ne;
479
- ne = !1;
480
- function ae(e) {
481
- return typeof e == "object" && e !== null && e.$$typeof === j;
482
- }
483
- function xe() {
484
- {
485
- if (te.current) {
486
- var e = m(te.current.type);
487
- if (e)
488
- return `
489
-
490
- Check the render method of \`` + e + "`.";
491
- }
492
- return "";
493
- }
494
- }
495
- function tr(e) {
496
- return "";
497
- }
498
- var Te = {};
499
- function nr(e) {
500
- {
501
- var r = xe();
502
- if (!r) {
503
- var t = typeof e == "string" ? e : e.displayName || e.name;
504
- t && (r = `
505
-
506
- Check the top-level render call using <` + t + ">.");
507
- }
508
- return r;
509
- }
510
- }
511
- function Ce(e, r) {
512
- {
513
- if (!e._store || e._store.validated || e.key != null)
514
- return;
515
- e._store.validated = !0;
516
- var t = nr(r);
517
- if (Te[t])
518
- return;
519
- Te[t] = !0;
520
- var n = "";
521
- e && e._owner && e._owner !== te.current && (n = " It was passed a child from " + m(e._owner.type) + "."), F(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
522
- }
523
- }
524
- function Pe(e, r) {
525
- {
526
- if (typeof e != "object")
527
- return;
528
- if (ee(e))
529
- for (var t = 0; t < e.length; t++) {
530
- var n = e[t];
531
- ae(n) && Ce(n, r);
532
- }
533
- else if (ae(e))
534
- e._store && (e._store.validated = !0);
535
- else if (e) {
536
- var i = X(e);
537
- if (typeof i == "function" && i !== e.entries)
538
- for (var s = i.call(e), o; !(o = s.next()).done; )
539
- ae(o.value) && Ce(o.value, r);
540
- }
541
- }
542
- }
543
- function ar(e) {
544
- {
545
- var r = e.type;
546
- if (r == null || typeof r == "string")
547
- return;
548
- var t;
549
- if (typeof r == "function")
550
- t = r.propTypes;
551
- else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
552
- // Inner props are checked in the reconciler.
553
- r.$$typeof === h))
554
- t = r.propTypes;
183
+ writable: !0,
184
+ value: $
185
+ }), Object.defineProperty(e, "_debugTask", {
186
+ configurable: !1,
187
+ enumerable: !1,
188
+ writable: !0,
189
+ value: D
190
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
191
+ }
192
+ function T(e, r, t, n, f, l, $, D) {
193
+ var o = r.children;
194
+ if (o !== void 0)
195
+ if (n)
196
+ if (K(o)) {
197
+ for (n = 0; n < o.length; n++)
198
+ y(o[n]);
199
+ Object.freeze && Object.freeze(o);
200
+ } else
201
+ console.error(
202
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
203
+ );
555
204
  else
556
- return;
557
- if (t) {
558
- var n = m(r);
559
- Be(t, e.props, "prop", n, e);
560
- } else if (r.PropTypes !== void 0 && !ne) {
561
- ne = !0;
562
- var i = m(r);
563
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
564
- }
565
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
- }
567
- }
568
- function or(e) {
569
- {
570
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
571
- var n = r[t];
572
- if (n !== "children" && n !== "key") {
573
- F(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
574
- break;
575
- }
576
- }
577
- e.ref !== null && (F(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
578
- }
579
- }
580
- var Oe = {};
581
- function Se(e, r, t, n, i, s) {
582
- {
583
- var o = $e(e);
584
- if (!o) {
585
- var a = "";
586
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
- var v = tr();
588
- v ? a += v : a += xe();
589
- var u;
590
- e === null ? u = "null" : ee(e) ? u = "array" : e !== void 0 && e.$$typeof === j ? (u = "<" + (m(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a);
591
- }
592
- var l = rr(e, r, t, i, s);
593
- if (l == null)
594
- return l;
595
- if (o) {
596
- var g = r.children;
597
- if (g !== void 0)
598
- if (n)
599
- if (ee(g)) {
600
- for (var I = 0; I < g.length; I++)
601
- Pe(g[I], e);
602
- Object.freeze && Object.freeze(g);
603
- } else
604
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
- else
606
- Pe(g, e);
607
- }
608
- if ($.call(r, "key")) {
609
- var O = m(e), p = Object.keys(r).filter(function(fr) {
610
- return fr !== "key";
611
- }), oe = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
612
- if (!Oe[O + oe]) {
613
- var lr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
614
- c(`A props object containing a "key" prop is being spread into JSX:
205
+ y(o);
206
+ if (M.call(r, "key")) {
207
+ o = s(e);
208
+ var v = Object.keys(r).filter(function(ee) {
209
+ return ee !== "key";
210
+ });
211
+ n = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", V[o + n] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
212
+ `A props object containing a "key" prop is being spread into JSX:
615
213
  let props = %s;
616
214
  <%s {...props} />
617
215
  React keys must be passed directly to JSX without using spread:
618
216
  let props = %s;
619
- <%s key={someKey} {...props} />`, oe, O, lr, O), Oe[O + oe] = !0;
620
- }
621
- }
622
- return e === b ? or(l) : ar(l), l;
217
+ <%s key={someKey} {...props} />`,
218
+ n,
219
+ o,
220
+ v,
221
+ o
222
+ ), V[o + n] = !0);
623
223
  }
624
- }
625
- function ir(e, r, t) {
626
- return Se(e, r, t, !0);
627
- }
628
- function sr(e, r, t) {
629
- return Se(e, r, t, !1);
630
- }
631
- var ur = sr, cr = ir;
632
- U.Fragment = b, U.jsx = ur, U.jsxs = cr;
633
- }()), U;
224
+ if (o = null, t !== void 0 && (u(t), o = "" + t), p(r) && (u(r.key), o = "" + r.key), "key" in r) {
225
+ t = {};
226
+ for (var F in r)
227
+ F !== "key" && (t[F] = r[F]);
228
+ } else
229
+ t = r;
230
+ return o && E(
231
+ t,
232
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
233
+ ), g(
234
+ e,
235
+ o,
236
+ l,
237
+ f,
238
+ a(),
239
+ t,
240
+ $,
241
+ D
242
+ );
243
+ }
244
+ function y(e) {
245
+ typeof e == "object" && e !== null && e.$$typeof === b && e._store && (e._store.validated = 1);
246
+ }
247
+ var w = re, b = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), h = Symbol.for("react.consumer"), j = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), Y = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, K = Array.isArray, I = console.createTask ? console.createTask : function() {
248
+ return null;
249
+ };
250
+ w = {
251
+ "react-stack-bottom-frame": function(e) {
252
+ return e();
253
+ }
254
+ };
255
+ var U, J = {}, q = w["react-stack-bottom-frame"].bind(
256
+ w,
257
+ c
258
+ )(), z = I(d(c)), V = {};
259
+ _.Fragment = R, _.jsx = function(e, r, t, n, f) {
260
+ var l = 1e4 > Y.recentlyCreatedOwnerStacks++;
261
+ return T(
262
+ e,
263
+ r,
264
+ t,
265
+ !1,
266
+ n,
267
+ f,
268
+ l ? Error("react-stack-top-frame") : q,
269
+ l ? I(d(e)) : z
270
+ );
271
+ }, _.jsxs = function(e, r, t, n, f) {
272
+ var l = 1e4 > Y.recentlyCreatedOwnerStacks++;
273
+ return T(
274
+ e,
275
+ r,
276
+ t,
277
+ !0,
278
+ n,
279
+ f,
280
+ l ? Error("react-stack-top-frame") : q,
281
+ l ? I(d(e)) : z
282
+ );
283
+ };
284
+ }()), _;
634
285
  }
635
- process.env.NODE_ENV === "production" ? ie.exports = vr() : ie.exports = pr();
636
- var K = ie.exports;
637
- let z = "";
638
- async function hr(w) {
639
- if (!z)
286
+ process.env.NODE_ENV === "production" ? L.exports = ne() : L.exports = oe();
287
+ var k = L.exports;
288
+ let P = "";
289
+ async function se(s) {
290
+ if (!P)
640
291
  throw "user jid is empty, please initialize jsxc";
641
- await window.jsxc.getAccount(z).account.getConnection().getRosterService().addContact(new window.jsxc.JID(w), ""), window.jsxc.getAccount(z).getContact(w).openChatWindow();
292
+ await window.jsxc.getAccount(P).account.getConnection().getRosterService().addContact(new window.jsxc.JID(s), ""), window.jsxc.getAccount(P).getContact(s).openChatWindow();
642
293
  }
643
- function yr(w) {
644
- const j = "roster-append", S = "windowlist-append", b = "dialog-append", {
645
- jqueryUrl: k = "https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js",
646
- marginTop: A = "40px",
647
- marginLeft: C = "40px",
294
+ function ce(s) {
295
+ const m = "roster-append", u = "windowlist-append", d = "dialog-append", {
296
+ jqueryUrl: a = "https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js",
297
+ marginTop: c = "40px",
298
+ marginLeft: p = "40px",
648
299
  marginBottom: E = "40px",
649
- marginRight: f = "40px",
650
- contactId: R = null,
651
- showMenu: d,
652
- fullscreen: h,
653
- boshUrl: _,
654
- id: x,
655
- pw: V,
656
- showAudioButton: G,
657
- showVideoButton: X,
658
- showOfflineButton: T
659
- } = w;
660
- return z = x, dr(() => {
300
+ marginRight: O = "40px",
301
+ contactId: g = null,
302
+ showMenu: T,
303
+ fullscreen: y,
304
+ boshUrl: w,
305
+ id: b,
306
+ pw: S,
307
+ showAudioButton: R,
308
+ showVideoButton: C,
309
+ showOfflineButton: N
310
+ } = s;
311
+ return P = b, te(() => {
661
312
  if (window.jsxc) {
662
- R && window.jsxc.getAccount(x).getContact(R).openChatWindow();
313
+ g && window.jsxc.getAccount(b).getContact(g).openChatWindow();
663
314
  return;
664
315
  }
665
- h && (document.getElementsByTagName("body")[0].className = "jsxc-fullscreen");
666
- const c = document.createElement("script");
667
- c.type = "text/javascript", c.src = k, document.head.appendChild(c);
668
- let D = document.createElement("script");
669
- D.type = "text/javascript", D.src = "/jsxc.bundle.js", document.head.appendChild(D);
670
- const y = document.documentElement;
671
- y.style.setProperty("--jsxc-margin-top", A), y.style.setProperty("--jsxc-margin-left", C), y.style.setProperty("--jsxc-margin-bottom", E), y.style.setProperty("--jsxc-margin-right", f), D.onload = () => {
316
+ y && (document.getElementsByTagName("body")[0].className = "jsxc-fullscreen");
317
+ const h = document.createElement("script");
318
+ h.type = "text/javascript", h.src = a, document.head.appendChild(h);
319
+ let j = document.createElement("script");
320
+ j.type = "text/javascript", j.src = "/jsxc.bundle.js", document.head.appendChild(j);
321
+ const i = document.documentElement;
322
+ i.style.setProperty("--jsxc-margin-top", c), i.style.setProperty("--jsxc-margin-left", p), i.style.setProperty("--jsxc-margin-bottom", E), i.style.setProperty("--jsxc-margin-right", O), j.onload = () => {
672
323
  localStorage.removeItem("jsxc2:accounts");
673
- let M = new window.JSXC({
324
+ let A = new window.JSXC({
674
325
  /* loadConnectionOptions: function(username: any, password: any) {
675
326
  return Promise.resolve({
676
327
  xmpp: {
@@ -679,21 +330,21 @@ function yr(w) {
679
330
  }
680
331
  });
681
332
  },*/
682
- rosterAppend: "#" + j,
683
- dialogAppend: "#" + b,
684
- windowListAppend: "#" + S,
333
+ rosterAppend: "#" + m,
334
+ dialogAppend: "#" + d,
335
+ windowListAppend: "#" + u,
685
336
  lang: "zh"
686
337
  });
687
- window.jsxc = M, M.start(_, x, V);
688
- }, d === "no" && y.style.setProperty("--jsxc-show-menu", "none"), G === "no" && y.style.setProperty("--jsxc-show-audio-button", "none"), X === "no" && y.style.setProperty("--jsxc-show-video-button", "none"), T === "no" && y.style.setProperty("--jsxc-show-offline-button", "none");
338
+ window.jsxc = A, A.start(w, b, S);
339
+ }, T === "no" && i.style.setProperty("--jsxc-show-menu", "none"), R === "no" && i.style.setProperty("--jsxc-show-audio-button", "none"), C === "no" && i.style.setProperty("--jsxc-show-video-button", "none"), N === "no" && i.style.setProperty("--jsxc-show-offline-button", "none");
689
340
  }, []), // <Keepalive>
690
- /* @__PURE__ */ K.jsxs("div", { id: "jsxc-containers", style: { width: "100%", height: "100%" }, children: [
691
- /* @__PURE__ */ K.jsx("div", { style: { width: "100%", height: "100%" }, id: j }),
692
- /* @__PURE__ */ K.jsx("div", { style: { width: "100%", height: "100%" }, id: b }),
693
- /* @__PURE__ */ K.jsx("div", { style: { width: "100%", height: "100%" }, id: S })
341
+ /* @__PURE__ */ k.jsxs("div", { id: "jsxc-containers", style: { width: "100%", height: "100%" }, children: [
342
+ /* @__PURE__ */ k.jsx("div", { style: { width: "100%", height: "100%" }, id: m }),
343
+ /* @__PURE__ */ k.jsx("div", { style: { width: "100%", height: "100%" }, id: d }),
344
+ /* @__PURE__ */ k.jsx("div", { style: { width: "100%", height: "100%" }, id: u })
694
345
  ] });
695
346
  }
696
347
  export {
697
- yr as Jsxc,
698
- hr as directOpenChatWindow
348
+ ce as Jsxc,
349
+ se as directOpenChatWindow
699
350
  };