@tracktor/shared-module 0.23.0 → 0.23.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 CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v0.23.0
4
- - **[fix]** : Remove export adapter from utils
3
+ ## v0.23.2
4
+ - **[fix]** : regex loading dynamically imported module sentry
package/dist/main.js CHANGED
@@ -9,27 +9,27 @@ var ue = { exports: {} }, M = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var De;
13
- function Rr() {
14
- return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
15
- var t = Ne, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), n = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), k = Symbol.iterator, $ = "@@iterator";
16
- function F(e) {
12
+ var Fe;
13
+ function br() {
14
+ return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
15
+ var t = Ne, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), n = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), k = Symbol.iterator, $ = "@@iterator";
16
+ function D(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
19
  var r = k && e[k] || e[$];
20
20
  return typeof r == "function" ? r : null;
21
21
  }
22
22
  var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function b(e) {
23
+ function R(e) {
24
24
  {
25
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
26
- a[u - 1] = arguments[u];
25
+ for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
26
+ a[s - 1] = arguments[s];
27
27
  _("error", e, a);
28
28
  }
29
29
  }
30
30
  function _(e, r, a) {
31
31
  {
32
- var u = j.ReactDebugCurrentFrame, p = u.getStackAddendum();
32
+ var s = j.ReactDebugCurrentFrame, p = s.getStackAddendum();
33
33
  p !== "" && (r += "%s", a = a.concat([p]));
34
34
  var g = a.map(function(d) {
35
35
  return String(d);
@@ -40,16 +40,16 @@ function Rr() {
40
40
  var ce = !1, le = !1, U = !1, We = !1, Me = !1, fe;
41
41
  fe = Symbol.for("react.module.reference");
42
42
  function Ve(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === v || Me || e === c || e === h || e === m || We || e === T || ce || le || U || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === E || e.$$typeof === n || e.$$typeof === l || // This needs to include all possible module reference object
43
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === v || Me || e === c || e === h || e === m || We || e === T || ce || le || U || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === E || e.$$typeof === n || e.$$typeof === l || // This needs to include all possible module reference object
44
44
  // types supported by any Flight configuration anywhere since
45
45
  // we don't know which Flight build this will end up being used
46
46
  // with.
47
47
  e.$$typeof === fe || e.getModuleId !== void 0));
48
48
  }
49
49
  function Ye(e, r, a) {
50
- var u = e.displayName;
51
- if (u)
52
- return u;
50
+ var s = e.displayName;
51
+ if (s)
52
+ return s;
53
53
  var p = r.displayName || r.name || "";
54
54
  return p !== "" ? a + "(" + p + ")" : a;
55
55
  }
@@ -59,12 +59,12 @@ function Rr() {
59
59
  function P(e) {
60
60
  if (e == null)
61
61
  return null;
62
- if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
62
+ if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
63
  return e.displayName || e.name || null;
64
64
  if (typeof e == "string")
65
65
  return e;
66
66
  switch (e) {
67
- case s:
67
+ case u:
68
68
  return "Fragment";
69
69
  case i:
70
70
  return "Portal";
@@ -88,8 +88,8 @@ function Rr() {
88
88
  case l:
89
89
  return Ye(e, e.render, "ForwardRef");
90
90
  case C:
91
- var u = e.displayName || null;
92
- return u !== null ? u : P(e.type) || "Memo";
91
+ var s = e.displayName || null;
92
+ return s !== null ? s : P(e.type) || "Memo";
93
93
  case O: {
94
94
  var p = e, g = p._payload, d = p._init;
95
95
  try {
@@ -101,10 +101,10 @@ function Rr() {
101
101
  }
102
102
  return null;
103
103
  }
104
- var D = Object.assign, N = 0, ve, pe, ge, me, he, Ee, ye;
105
- function Re() {
104
+ var F = Object.assign, N = 0, ve, pe, ge, me, he, Ee, ye;
105
+ function be() {
106
106
  }
107
- Re.__reactDisabledLog = !0;
107
+ be.__reactDisabledLog = !0;
108
108
  function qe() {
109
109
  {
110
110
  if (N === 0) {
@@ -112,7 +112,7 @@ function Rr() {
112
112
  var e = {
113
113
  configurable: !0,
114
114
  enumerable: !0,
115
- value: Re,
115
+ value: be,
116
116
  writable: !0
117
117
  };
118
118
  Object.defineProperties(console, {
@@ -137,30 +137,30 @@ function Rr() {
137
137
  writable: !0
138
138
  };
139
139
  Object.defineProperties(console, {
140
- log: D({}, e, {
140
+ log: F({}, e, {
141
141
  value: ve
142
142
  }),
143
- info: D({}, e, {
143
+ info: F({}, e, {
144
144
  value: pe
145
145
  }),
146
- warn: D({}, e, {
146
+ warn: F({}, e, {
147
147
  value: ge
148
148
  }),
149
- error: D({}, e, {
149
+ error: F({}, e, {
150
150
  value: me
151
151
  }),
152
- group: D({}, e, {
152
+ group: F({}, e, {
153
153
  value: he
154
154
  }),
155
- groupCollapsed: D({}, e, {
155
+ groupCollapsed: F({}, e, {
156
156
  value: Ee
157
157
  }),
158
- groupEnd: D({}, e, {
158
+ groupEnd: F({}, e, {
159
159
  value: ye
160
160
  })
161
161
  });
162
162
  }
163
- N < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
163
+ N < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
164
  }
165
165
  }
166
166
  var Z = j.ReactCurrentDispatcher, Q;
@@ -170,8 +170,8 @@ function Rr() {
170
170
  try {
171
171
  throw Error();
172
172
  } catch (p) {
173
- var u = p.stack.trim().match(/\n( *(at )?)/);
174
- Q = u && u[1] || "";
173
+ var s = p.stack.trim().match(/\n( *(at )?)/);
174
+ Q = s && s[1] || "";
175
175
  }
176
176
  return `
177
177
  ` + Q + e;
@@ -182,7 +182,7 @@ function Rr() {
182
182
  var ze = typeof WeakMap == "function" ? WeakMap : Map;
183
183
  B = new ze();
184
184
  }
185
- function be(e, r) {
185
+ function Re(e, r) {
186
186
  if (!e || ee)
187
187
  return "";
188
188
  {
@@ -190,7 +190,7 @@ function Rr() {
190
190
  if (a !== void 0)
191
191
  return a;
192
192
  }
193
- var u;
193
+ var s;
194
194
  ee = !0;
195
195
  var p = Error.prepareStackTrace;
196
196
  Error.prepareStackTrace = void 0;
@@ -209,14 +209,14 @@ function Rr() {
209
209
  try {
210
210
  Reflect.construct(d, []);
211
211
  } catch (A) {
212
- u = A;
212
+ s = A;
213
213
  }
214
214
  Reflect.construct(e, [], d);
215
215
  } else {
216
216
  try {
217
217
  d.call();
218
218
  } catch (A) {
219
- u = A;
219
+ s = A;
220
220
  }
221
221
  e.call(d.prototype);
222
222
  }
@@ -224,37 +224,37 @@ function Rr() {
224
224
  try {
225
225
  throw Error();
226
226
  } catch (A) {
227
- u = A;
227
+ s = A;
228
228
  }
229
229
  e();
230
230
  }
231
231
  } catch (A) {
232
- if (A && u && typeof A.stack == "string") {
232
+ if (A && s && typeof A.stack == "string") {
233
233
  for (var f = A.stack.split(`
234
- `), w = u.stack.split(`
235
- `), y = f.length - 1, R = w.length - 1; y >= 1 && R >= 0 && f[y] !== w[R]; )
236
- R--;
237
- for (; y >= 1 && R >= 0; y--, R--)
238
- if (f[y] !== w[R]) {
239
- if (y !== 1 || R !== 1)
234
+ `), w = s.stack.split(`
235
+ `), y = f.length - 1, b = w.length - 1; y >= 1 && b >= 0 && f[y] !== w[b]; )
236
+ b--;
237
+ for (; y >= 1 && b >= 0; y--, b--)
238
+ if (f[y] !== w[b]) {
239
+ if (y !== 1 || b !== 1)
240
240
  do
241
- if (y--, R--, R < 0 || f[y] !== w[R]) {
241
+ if (y--, b--, b < 0 || f[y] !== w[b]) {
242
242
  var S = `
243
243
  ` + f[y].replace(" at new ", " at ");
244
244
  return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, S), S;
245
245
  }
246
- while (y >= 1 && R >= 0);
246
+ while (y >= 1 && b >= 0);
247
247
  break;
248
248
  }
249
249
  }
250
250
  } finally {
251
251
  ee = !1, Z.current = g, Ue(), Error.prepareStackTrace = p;
252
252
  }
253
- var I = e ? e.displayName || e.name : "", Fe = I ? z(I) : "";
254
- return typeof e == "function" && B.set(e, Fe), Fe;
253
+ var I = e ? e.displayName || e.name : "", De = I ? z(I) : "";
254
+ return typeof e == "function" && B.set(e, De), De;
255
255
  }
256
256
  function Be(e, r, a) {
257
- return be(e, !1);
257
+ return Re(e, !1);
258
258
  }
259
259
  function Ge(e) {
260
260
  var r = e.prototype;
@@ -264,7 +264,7 @@ function Rr() {
264
264
  if (e == null)
265
265
  return "";
266
266
  if (typeof e == "function")
267
- return be(e, Ge(e));
267
+ return Re(e, Ge(e));
268
268
  if (typeof e == "string")
269
269
  return z(e);
270
270
  switch (e) {
@@ -280,7 +280,7 @@ function Rr() {
280
280
  case C:
281
281
  return G(e.type, r, a);
282
282
  case O: {
283
- var u = e, p = u._payload, g = u._init;
283
+ var s = e, p = s._payload, g = s._init;
284
284
  try {
285
285
  return G(g(p), r, a);
286
286
  } catch {
@@ -297,7 +297,7 @@ function Rr() {
297
297
  } else
298
298
  we.setExtraStackFrame(null);
299
299
  }
300
- function Je(e, r, a, u, p) {
300
+ function Je(e, r, a, s, p) {
301
301
  {
302
302
  var g = Function.call.bind(J);
303
303
  for (var d in e)
@@ -305,14 +305,14 @@ function Rr() {
305
305
  var f = void 0;
306
306
  try {
307
307
  if (typeof e[d] != "function") {
308
- var w = Error((u || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
308
+ var w = Error((s || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
309
  throw w.name = "Invariant Violation", w;
310
310
  }
311
- f = e[d](r, d, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
311
+ f = e[d](r, d, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
312
  } catch (y) {
313
313
  f = y;
314
314
  }
315
- f && !(f instanceof Error) && (X(p), b("%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).", u || "React class", a, d, typeof f), X(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, X(p), b("Failed %s type: %s", a, f.message), X(null));
315
+ f && !(f instanceof Error) && (X(p), R("%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).", s || "React class", a, d, typeof f), X(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, X(p), R("Failed %s type: %s", a, f.message), X(null));
316
316
  }
317
317
  }
318
318
  }
@@ -338,7 +338,7 @@ function Rr() {
338
338
  }
339
339
  function Te(e) {
340
340
  if (Ke(e))
341
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ce(e);
341
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ce(e);
342
342
  }
343
343
  var W = j.ReactCurrentOwner, Ze = {
344
344
  key: !0,
@@ -366,13 +366,13 @@ function Rr() {
366
366
  function rr(e, r) {
367
367
  if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
368
368
  var a = P(W.current.type);
369
- te[a] || (b('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', P(W.current.type), e.ref), te[a] = !0);
369
+ te[a] || (R('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', P(W.current.type), e.ref), te[a] = !0);
370
370
  }
371
371
  }
372
372
  function tr(e, r) {
373
373
  {
374
374
  var a = function() {
375
- Oe || (Oe = !0, b("%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));
375
+ Oe || (Oe = !0, R("%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));
376
376
  };
377
377
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
378
378
  get: a,
@@ -383,7 +383,7 @@ function Rr() {
383
383
  function nr(e, r) {
384
384
  {
385
385
  var a = function() {
386
- Se || (Se = !0, b("%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));
386
+ Se || (Se = !0, R("%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));
387
387
  };
388
388
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
389
  get: a,
@@ -391,7 +391,7 @@ function Rr() {
391
391
  });
392
392
  }
393
393
  }
394
- var ar = function(e, r, a, u, p, g, d) {
394
+ var ar = function(e, r, a, s, p, g, d) {
395
395
  var f = {
396
396
  // This tag allows us to uniquely identify this as a React Element
397
397
  $$typeof: o,
@@ -412,7 +412,7 @@ function Rr() {
412
412
  configurable: !1,
413
413
  enumerable: !1,
414
414
  writable: !1,
415
- value: u
415
+ value: s
416
416
  }), Object.defineProperty(f, "_source", {
417
417
  configurable: !1,
418
418
  enumerable: !1,
@@ -420,7 +420,7 @@ function Rr() {
420
420
  value: p
421
421
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
422
422
  };
423
- function or(e, r, a, u, p) {
423
+ function or(e, r, a, s, p) {
424
424
  {
425
425
  var g, d = {}, f = null, w = null;
426
426
  a !== void 0 && (Te(a), f = "" + a), er(r) && (Te(r.key), f = "" + r.key), Qe(r) && (w = r.ref, rr(r, p));
@@ -432,10 +432,10 @@ function Rr() {
432
432
  d[g] === void 0 && (d[g] = y[g]);
433
433
  }
434
434
  if (f || w) {
435
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- f && tr(d, R), w && nr(d, R);
435
+ var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
+ f && tr(d, b), w && nr(d, b);
437
437
  }
438
- return ar(e, f, w, p, u, W.current, d);
438
+ return ar(e, f, w, p, s, W.current, d);
439
439
  }
440
440
  }
441
441
  var ne = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
@@ -496,8 +496,8 @@ Check the top-level render call using <` + a + ">.");
496
496
  if (Ae[a])
497
497
  return;
498
498
  Ae[a] = !0;
499
- var u = "";
500
- e && e._owner && e._owner !== ne.current && (u = " It was passed a child from " + P(e._owner.type) + "."), L(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, u), L(null);
499
+ var s = "";
500
+ e && e._owner && e._owner !== ne.current && (s = " It was passed a child from " + P(e._owner.type) + "."), L(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), L(null);
501
501
  }
502
502
  }
503
503
  function ke(e, r) {
@@ -506,13 +506,13 @@ Check the top-level render call using <` + a + ">.");
506
506
  return;
507
507
  if (re(e))
508
508
  for (var a = 0; a < e.length; a++) {
509
- var u = e[a];
510
- oe(u) && xe(u, r);
509
+ var s = e[a];
510
+ oe(s) && xe(s, r);
511
511
  }
512
512
  else if (oe(e))
513
513
  e._store && (e._store.validated = !0);
514
514
  else if (e) {
515
- var p = F(e);
515
+ var p = D(e);
516
516
  if (typeof p == "function" && p !== e.entries)
517
517
  for (var g = p.call(e), d; !(d = g.next()).done; )
518
518
  oe(d.value) && xe(d.value, r);
@@ -534,29 +534,29 @@ Check the top-level render call using <` + a + ">.");
534
534
  else
535
535
  return;
536
536
  if (a) {
537
- var u = P(r);
538
- Je(a, e.props, "prop", u, e);
537
+ var s = P(r);
538
+ Je(a, e.props, "prop", s, e);
539
539
  } else if (r.PropTypes !== void 0 && !ae) {
540
540
  ae = !0;
541
541
  var p = P(r);
542
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
542
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
543
543
  }
544
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
544
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
545
  }
546
546
  }
547
547
  function cr(e) {
548
548
  {
549
549
  for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
550
- var u = r[a];
551
- if (u !== "children" && u !== "key") {
552
- L(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), L(null);
550
+ var s = r[a];
551
+ if (s !== "children" && s !== "key") {
552
+ L(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), L(null);
553
553
  break;
554
554
  }
555
555
  }
556
- e.ref !== null && (L(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
556
+ e.ref !== null && (L(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
557
557
  }
558
558
  }
559
- function $e(e, r, a, u, p, g) {
559
+ function $e(e, r, a, s, p, g) {
560
560
  {
561
561
  var d = Ve(e);
562
562
  if (!d) {
@@ -565,25 +565,25 @@ Check the top-level render call using <` + a + ">.");
565
565
  var w = ir(p);
566
566
  w ? f += w : f += Pe();
567
567
  var y;
568
- e === null ? y = "null" : re(e) ? y = "array" : e !== void 0 && e.$$typeof === o ? (y = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, f);
568
+ e === null ? y = "null" : re(e) ? y = "array" : e !== void 0 && e.$$typeof === o ? (y = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, f);
569
569
  }
570
- var R = or(e, r, a, p, g);
571
- if (R == null)
572
- return R;
570
+ var b = or(e, r, a, p, g);
571
+ if (b == null)
572
+ return b;
573
573
  if (d) {
574
574
  var S = r.children;
575
575
  if (S !== void 0)
576
- if (u)
576
+ if (s)
577
577
  if (re(S)) {
578
578
  for (var I = 0; I < S.length; I++)
579
579
  ke(S[I], e);
580
580
  Object.freeze && Object.freeze(S);
581
581
  } else
582
- b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
582
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
583
  else
584
584
  ke(S, e);
585
585
  }
586
- return e === s ? cr(R) : sr(R), R;
586
+ return e === u ? cr(b) : sr(b), b;
587
587
  }
588
588
  }
589
589
  function lr(e, r, a) {
@@ -593,7 +593,7 @@ Check the top-level render call using <` + a + ">.");
593
593
  return $e(e, r, a, !1);
594
594
  }
595
595
  var dr = fr, vr = lr;
596
- M.Fragment = s, M.jsx = dr, M.jsxs = vr;
596
+ M.Fragment = u, M.jsx = dr, M.jsxs = vr;
597
597
  }()), M;
598
598
  }
599
599
  var V = {};
@@ -607,16 +607,16 @@ var V = {};
607
607
  * LICENSE file in the root directory of this source tree.
608
608
  */
609
609
  var Le;
610
- function br() {
610
+ function Rr() {
611
611
  if (Le)
612
612
  return V;
613
613
  Le = 1;
614
- var t = Ne, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
614
+ var t = Ne, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
615
615
  function E(n, l, h) {
616
616
  var m, C = {}, O = null, T = null;
617
617
  h !== void 0 && (O = "" + h), l.key !== void 0 && (O = "" + l.key), l.ref !== void 0 && (T = l.ref);
618
618
  for (m in l)
619
- s.call(l, m) && !v.hasOwnProperty(m) && (C[m] = l[m]);
619
+ u.call(l, m) && !v.hasOwnProperty(m) && (C[m] = l[m]);
620
620
  if (n && n.defaultProps)
621
621
  for (m in l = n.defaultProps, l)
622
622
  C[m] === void 0 && (C[m] = l[m]);
@@ -624,7 +624,7 @@ function br() {
624
624
  }
625
625
  return V.Fragment = i, V.jsx = E, V.jsxs = E, V;
626
626
  }
627
- process.env.NODE_ENV === "production" ? ue.exports = br() : ue.exports = Rr();
627
+ process.env.NODE_ENV === "production" ? ue.exports = Rr() : ue.exports = br();
628
628
  var x = ue.exports;
629
629
  const q = pr({
630
630
  apiURL: void 0,
@@ -635,11 +635,11 @@ const q = pr({
635
635
  translate: void 0,
636
636
  useAuth: void 0,
637
637
  useLocation: void 0
638
- }), jr = ({
638
+ }), Pr = ({
639
639
  axios: t,
640
640
  children: o,
641
641
  translate: i,
642
- useAuth: s,
642
+ useAuth: u,
643
643
  Outlet: c,
644
644
  Navigate: v,
645
645
  useLocation: E,
@@ -653,21 +653,21 @@ const q = pr({
653
653
  Navigate: v,
654
654
  Outlet: c,
655
655
  translate: i,
656
- useAuth: s,
656
+ useAuth: u,
657
657
  useGoogleTagManager: n,
658
658
  useLocation: E
659
659
  }),
660
- [v, c, l, t, i, s, n, E]
660
+ [v, c, l, t, i, u, n, E]
661
661
  );
662
662
  return /* @__PURE__ */ x.jsx(q.Provider, { value: h, children: o });
663
- }, H = (t) => `RequireAuth require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Pr = ({
663
+ }, H = (t) => `RequireAuth require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Ar = ({
664
664
  Fallback: t,
665
665
  loginPath: o = "/login",
666
666
  localStorageKey: i = "user",
667
- redirect401Path: s = "/login",
667
+ redirect401Path: u = "/login",
668
668
  ...c
669
669
  }) => {
670
- var $, F, j, b;
670
+ var $, D, j, R;
671
671
  const {
672
672
  axios: v = c.axios,
673
673
  useLocation: E = c.useLocation,
@@ -689,43 +689,43 @@ const q = pr({
689
689
  (_) => _,
690
690
  async (_) => {
691
691
  var U;
692
- return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((U = _ == null ? void 0 : _.response) == null ? void 0 : U.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(i), C(s)), Promise.reject(_);
692
+ return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((U = _ == null ? void 0 : _.response) == null ? void 0 : U.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(i), C(u)), Promise.reject(_);
693
693
  }
694
694
  ));
695
- }, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response, i, s]), O && !m ? /* @__PURE__ */ x.jsx(Er, { fallback: t, children: (F = ($ = T.state) == null ? void 0 : $.from) != null && F.state && ((b = (j = T.state) == null ? void 0 : j.from) == null ? void 0 : b.pathname) === o ? /* @__PURE__ */ x.jsx(h, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ x.jsx(l, {}) }) : /* @__PURE__ */ x.jsx(h, { to: o, state: { from: T }, replace: !0 });
696
- }, ie = (t) => `GTMSendPageView require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Ar = ({ ...t }) => {
695
+ }, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response, i, u]), O && !m ? /* @__PURE__ */ x.jsx(Er, { fallback: t, children: (D = ($ = T.state) == null ? void 0 : $.from) != null && D.state && ((R = (j = T.state) == null ? void 0 : j.from) == null ? void 0 : R.pathname) === o ? /* @__PURE__ */ x.jsx(h, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ x.jsx(l, {}) }) : /* @__PURE__ */ x.jsx(h, { to: o, state: { from: T }, replace: !0 });
696
+ }, ie = (t) => `GTMSendPageView require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, xr = ({ ...t }) => {
697
697
  const {
698
698
  useLocation: o = t.useLocation,
699
699
  Outlet: i = t.Outlet,
700
- useGoogleTagManager: s = t.useGoogleTagManager
700
+ useGoogleTagManager: u = t.useGoogleTagManager
701
701
  } = K(q);
702
702
  if (o === void 0)
703
703
  throw new Error(ie("useLocation"));
704
704
  if (i === void 0)
705
705
  throw new Error(ie("Outlet"));
706
- if (s === void 0)
706
+ if (u === void 0)
707
707
  throw new Error(ie("useGoogleTagManager"));
708
- const { pathname: c } = o(), { sendEvent: v } = s();
708
+ const { pathname: c } = o(), { sendEvent: v } = u();
709
709
  return yr(() => {
710
710
  v({ event: "pageView", pathname: c });
711
711
  }, [c, v]), /* @__PURE__ */ x.jsx(i, {});
712
- }, xr = ({
712
+ }, kr = ({
713
713
  axios: t,
714
714
  baseURL: o,
715
715
  tokenTypeKey: i = "tokenType",
716
- userLocalStorageKey: s = "user",
716
+ userLocalStorageKey: u = "user",
717
717
  tokenKey: c = "accessToken",
718
718
  postContentType: v = "application/json"
719
719
  }) => {
720
720
  if (!t.defaults)
721
721
  return null;
722
- const E = localStorage.getItem(s), n = E ? JSON.parse(E) : null, l = n != null && n[i] ? n[i] : null, h = n != null && n[c] ? n[c] : null, m = E ? `${l} ${h}` : null;
722
+ const E = localStorage.getItem(u), n = E ? JSON.parse(E) : null, l = n != null && n[i] ? n[i] : null, h = n != null && n[c] ? n[c] : null, m = E ? `${l} ${h}` : null;
723
723
  return t.defaults.baseURL = o, t.defaults.headers.post["Content-Type"] = v, m && (t.defaults.headers.common.Authorization = m), null;
724
- }, kr = ({
724
+ }, $r = ({
725
725
  i18n: t,
726
726
  debug: o,
727
727
  initReactI18next: i,
728
- resources: s,
728
+ resources: u,
729
729
  LanguageDetector: c
730
730
  }) => (t != null && t.isInitialized || (t.use(c).use(i).init({
731
731
  debug: o,
@@ -738,17 +738,17 @@ const q = pr({
738
738
  bindI18n: !1,
739
739
  useSuspense: !0
740
740
  },
741
- resources: s,
741
+ resources: u,
742
742
  returnNull: !1
743
743
  }).then(() => {
744
744
  document.documentElement.lang !== t.resolvedLanguage && t.resolvedLanguage && document.documentElement.setAttribute("lang", t.resolvedLanguage);
745
745
  }), t.on("languageChanged", (v) => {
746
746
  document.documentElement.setAttribute("lang", v);
747
- })), null), $r = ({
747
+ })), null), Dr = ({
748
748
  dsn: t,
749
749
  sentry: o,
750
750
  integrations: i,
751
- tracesSampleRate: s,
751
+ tracesSampleRate: u,
752
752
  routingInstrumentationDependencies: c,
753
753
  replaysSessionSampleRate: v,
754
754
  replaysOnErrorSampleRate: E,
@@ -760,7 +760,7 @@ const q = pr({
760
760
  debug: h,
761
761
  dsn: t,
762
762
  environment: m || "production",
763
- ignoreErrors: l || [/Failed to fetch dynamically imported module/],
763
+ ignoreErrors: [...l || [], /dynamically imported module/],
764
764
  integrations: [
765
765
  new o.BrowserTracing({
766
766
  routingInstrumentation: o.reactRouterV6Instrumentation(
@@ -777,19 +777,19 @@ const q = pr({
777
777
  replaysOnErrorSampleRate: E || 1,
778
778
  replaysSessionSampleRate: v || 0.1,
779
779
  tracePropagationTargets: n,
780
- tracesSampleRate: s || 1
780
+ tracesSampleRate: u || 1
781
781
  }), null), Fr = ({ IMaskMixin: t, ...o }) => {
782
782
  const i = se(
783
783
  // eslint-disable-next-line react/jsx-props-no-spreading
784
- () => t(({ TextField: s, ...c }) => /* @__PURE__ */ x.jsx(s, { ...c })),
784
+ () => t(({ TextField: u, ...c }) => /* @__PURE__ */ x.jsx(u, { ...c })),
785
785
  [t]
786
786
  );
787
787
  return /* @__PURE__ */ x.jsx(i, { ...o });
788
- }, Dr = ({ mapbox: t, accessToken: o }) => (t && o && (t.accessToken = o), null), Lr = ({
788
+ }, Lr = ({ mapbox: t, accessToken: o }) => (t && o && (t.accessToken = o), null), Ir = ({
789
789
  children: t,
790
790
  defaultOptions: o,
791
791
  QueryClient: i,
792
- QueryClientProvider: s
792
+ QueryClientProvider: u
793
793
  }) => {
794
794
  const c = new i({
795
795
  defaultOptions: {
@@ -800,26 +800,26 @@ const q = pr({
800
800
  }
801
801
  }
802
802
  });
803
- return /* @__PURE__ */ x.jsx(s, { client: c, children: t });
804
- }, Ir = (t) => {
805
- const { unknownErrorTranslationKey: o = "error.unknownError" } = t || {}, { translate: i = t == null ? void 0 : t.translate } = K(q), s = i ? i(o) : "Unknown error", c = Y(
803
+ return /* @__PURE__ */ x.jsx(u, { client: c, children: t });
804
+ }, Nr = (t) => {
805
+ const { unknownErrorTranslationKey: o = "error.unknownError" } = t || {}, { translate: i = t == null ? void 0 : t.translate } = K(q), u = i ? i(o) : "Unknown error", c = Y(
806
806
  (E) => {
807
- var l, h, m, C, O, T, k, $, F;
807
+ var l, h, m, C, O, T, k, $, D;
808
808
  const { response: n } = E || {};
809
- return n != null && n.reason ? String(n.reason) : (l = n == null ? void 0 : n.data) != null && l.reason ? String(n.data.reason) : (h = n == null ? void 0 : n.data) != null && h.message ? String(n.data.message) : (C = (m = n == null ? void 0 : n.data) == null ? void 0 : m.detail) != null && C.length && Array.isArray((O = n == null ? void 0 : n.data) == null ? void 0 : O.detail) && ((k = (T = n == null ? void 0 : n.data) == null ? void 0 : T.detail[0]) != null && k.msg) && typeof ((F = ($ = n == null ? void 0 : n.data) == null ? void 0 : $.detail[0]) == null ? void 0 : F.msg) == "string" ? String(n.data.detail[0].msg) : s;
809
+ return n != null && n.reason ? String(n.reason) : (l = n == null ? void 0 : n.data) != null && l.reason ? String(n.data.reason) : (h = n == null ? void 0 : n.data) != null && h.message ? String(n.data.message) : (C = (m = n == null ? void 0 : n.data) == null ? void 0 : m.detail) != null && C.length && Array.isArray((O = n == null ? void 0 : n.data) == null ? void 0 : O.detail) && ((k = (T = n == null ? void 0 : n.data) == null ? void 0 : T.detail[0]) != null && k.msg) && typeof ((D = ($ = n == null ? void 0 : n.data) == null ? void 0 : $.detail[0]) == null ? void 0 : D.msg) == "string" ? String(n.data.detail[0].msg) : u;
810
810
  },
811
- [s]
811
+ [u]
812
812
  );
813
813
  return { getErrorCode: Y((E) => {
814
814
  var l, h, m;
815
815
  const { response: n } = E || {};
816
816
  return n != null && n.error_code ? String(n == null ? void 0 : n.error_code) : (l = n == null ? void 0 : n.data) != null && l.error_code ? String((h = n == null ? void 0 : n.data) == null ? void 0 : h.error_code) : n != null && n.error_code ? String(n == null ? void 0 : n.error_code) : (m = n == null ? void 0 : n.data) != null && m.error_code ? String(n.data.error_code) : "unknown_error_code";
817
817
  }, []), printError: c };
818
- }, Nr = ({
818
+ }, Wr = ({
819
819
  data: t,
820
820
  fetchNextPage: o,
821
821
  isFetchingNextPage: i,
822
- isInitialLoading: s,
822
+ isInitialLoading: u,
823
823
  isLoading: c,
824
824
  enabled: v = !0
825
825
  }) => {
@@ -835,13 +835,13 @@ const q = pr({
835
835
  return {
836
836
  fetchNextPageOnRowsScrollEnd: E,
837
837
  isLoading: i || c,
838
- loadingVariant: s ? "skeleton" : "linear",
838
+ loadingVariant: u ? "skeleton" : "linear",
839
839
  rows: n
840
840
  };
841
- }, Wr = (t) => {
841
+ }, Mr = (t) => {
842
842
  const o = Y(
843
- ({ tokenType: s, accessToken: c }) => {
844
- t.defaults.headers.common.Authorization = `${s} ${c}`;
843
+ ({ tokenType: u, accessToken: c }) => {
844
+ t.defaults.headers.common.Authorization = `${u} ${c}`;
845
845
  },
846
846
  [t.defaults.headers.common]
847
847
  );
@@ -854,24 +854,33 @@ const q = pr({
854
854
  }, _r = (t, o = "km") => {
855
855
  const i = Number(t);
856
856
  return Number.isNaN(i) ? `0 ${o}` : `${i.toFixed(2)} ${o}`;
857
+ }, wr = (t) => {
858
+ const o = t && typeof t == "object" && "pathname" in t && t.pathname ? t.pathname : t;
859
+ return typeof o == "string" ? o != null && o.startsWith("/") ? o != null && o.startsWith("/files") ? o : `/files${o}` : o != null && o.startsWith("files") ? `/${o}` : o != null && o.startsWith("files") ? `/${o}` : `/files/${o}` : o;
857
860
  }, Ie = (t, o) => {
858
861
  if (!t)
859
862
  return "";
860
- const i = typeof t == "object" && "pathname" in t ? `${t.origin}${t.pathname}` : t;
861
- return typeof o == "number" ? `${i.replace("/files", `/thumbs/${o}`)}` : i;
862
- }, Mr = () => {
863
+ const i = wr(t), u = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
864
+ return typeof o == "number" ? `${u.replace("/files", `/thumbs/${o}`)}` : u;
865
+ }, Vr = () => {
863
866
  const { apiURL: t } = K(q);
864
867
  return {
865
868
  distanceAdapter: _r,
866
- filePathAdapter: (i, s) => Ie(t && typeof i == "string" ? { origin: t, pathname: i } : i, s)
869
+ filePathAdapter: (i, u) => Ie(
870
+ t && typeof i == "string" ? {
871
+ origin: t,
872
+ pathname: i
873
+ } : i,
874
+ u
875
+ )
867
876
  };
868
- }, wr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Cr = (t) => {
869
- const s = t.split("/").filter((c) => c.length > 0).map((c) => c.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
870
- return s.charAt(0).toLowerCase() + s.slice(1);
871
- }, Tr = (t, o, i) => {
872
- const s = Cr(o), c = wr(i);
873
- return `${s}${c}`;
874
- }, Or = (t) => {
877
+ }, Cr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Tr = (t) => {
878
+ const u = t.split("/").filter((c) => c.length > 0).map((c) => c.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
879
+ return u.charAt(0).toLowerCase() + u.slice(1);
880
+ }, Or = (t, o, i) => {
881
+ const u = Tr(o), c = Cr(i);
882
+ return `${u}${c}`;
883
+ }, Sr = (t) => {
875
884
  if (t)
876
885
  return (t == null ? void 0 : t.reduce((o, i) => (o[i] = {
877
886
  query: {
@@ -880,7 +889,7 @@ const q = pr({
880
889
  useQuery: !0
881
890
  }
882
891
  }, o), {})) || {};
883
- }, Vr = (t) => {
892
+ }, Yr = (t) => {
884
893
  const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
885
894
  return {
886
895
  api: {
@@ -892,17 +901,17 @@ const q = pr({
892
901
  client: "react-query",
893
902
  mode: "tags-split",
894
903
  override: {
895
- header: (s) => [
904
+ header: (u) => [
896
905
  "Generated by orval 🍺",
897
- ...s.title ? [s.title] : [],
898
- ...s.description ? [s.description] : []
906
+ ...u.title ? [u.title] : [],
907
+ ...u.description ? [u.description] : []
899
908
  ],
900
909
  mutator: {
901
910
  name: "axiosCustomInstance",
902
911
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
903
912
  },
904
- operationName: Tr,
905
- ...(i == null ? void 0 : i.length) && { operations: Or(i) },
913
+ operationName: Or,
914
+ ...(i == null ? void 0 : i.length) && { operations: Sr(i) },
906
915
  query: {
907
916
  useQuery: !0
908
917
  }
@@ -914,19 +923,19 @@ const q = pr({
914
923
  };
915
924
  };
916
925
  export {
917
- xr as AxiosConfig,
918
- Ar as GTMSendPageView,
919
- kr as I18nConfig,
926
+ kr as AxiosConfig,
927
+ xr as GTMSendPageView,
928
+ $r as I18nConfig,
920
929
  q as InjectDependenciesContext,
921
- jr as InjectDependenciesProvider,
922
- Dr as MapBoxConfig,
930
+ Pr as InjectDependenciesProvider,
931
+ Lr as MapBoxConfig,
923
932
  Fr as MaskTextField,
924
- Lr as QueryClientConfigProvider,
925
- Pr as RequireAuth,
926
- $r as SentryConfig,
927
- Vr as getOrvalConfig,
928
- Mr as useAdapter,
929
- Wr as useAuth,
930
- Nr as useInfiniteDataGrid,
931
- Ir as useResponseError
933
+ Ir as QueryClientConfigProvider,
934
+ Ar as RequireAuth,
935
+ Dr as SentryConfig,
936
+ Yr as getOrvalConfig,
937
+ Vr as useAdapter,
938
+ Mr as useAuth,
939
+ Wr as useInfiniteDataGrid,
940
+ Nr as useResponseError
932
941
  };
package/dist/main.umd.cjs CHANGED
@@ -6,17 +6,17 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var t=E,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,I="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var r=F&&e[F]||e[I];return typeof r=="function"?r:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];w("error",e,a)}}function w(e,r,a){{var u=k.ReactDebugCurrentFrame,p=u.getStackAddendum();p!==""&&(r+="%s",a=a.concat([p]));var g=a.map(function(d){return String(d)});g.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,g)}}var fe=!1,de=!1,J=!1,ar=!1,or=!1,ve;ve=Symbol.for("react.module.reference");function ir(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===v||or||e===c||e===h||e===m||ar||e===O||fe||de||J||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===S||e.$$typeof===y||e.$$typeof===n||e.$$typeof===l||e.$$typeof===ve||e.getModuleId!==void 0))}function ur(e,r,a){var u=e.displayName;if(u)return u;var p=r.displayName||r.name||"";return p!==""?a+"("+p+")":a}function pe(e){return e.displayName||"Context"}function x(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case i:return"Portal";case v:return"Profiler";case c:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n:var r=e;return pe(r)+".Consumer";case y:var a=e;return pe(a._context)+".Provider";case l:return ur(e,e.render,"ForwardRef");case S:var u=e.displayName||null;return u!==null?u:x(e.type)||"Memo";case j:{var p=e,g=p._payload,d=p._init;try{return x(d(g))}catch{return null}}}return null}var N=Object.assign,z=0,ge,me,he,Ee,ye,be,Re;function _e(){}_e.__reactDisabledLog=!0;function sr(){{if(z===0){ge=console.log,me=console.info,he=console.warn,Ee=console.error,ye=console.group,be=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function cr(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ge}),info:N({},e,{value:me}),warn:N({},e,{value:he}),error:N({},e,{value:Ee}),group:N({},e,{value:ye}),groupCollapsed:N({},e,{value:be}),groupEnd:N({},e,{value:Re})})}z<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=k.ReactCurrentDispatcher,re;function $(e,r,a){{if(re===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);re=u&&u[1]||""}return`
10
- `+re+e}}var te=!1,X;{var lr=typeof WeakMap=="function"?WeakMap:Map;X=new lr}function Ce(e,r){if(!e||te)return"";{var a=X.get(e);if(a!==void 0)return a}var u;te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ee.current,ee.current=null,sr();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(D){u=D}Reflect.construct(e,[],d)}else{try{d.call()}catch(D){u=D}e.call(d.prototype)}}else{try{throw Error()}catch(D){u=D}e()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var f=D.stack.split(`
11
- `),T=u.stack.split(`
9
+ */var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var t=E,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,I="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var r=F&&e[F]||e[I];return typeof r=="function"?r:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];w("error",e,a)}}function w(e,r,a){{var s=k.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(r+="%s",a=a.concat([g]));var p=a.map(function(d){return String(d)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var fe=!1,de=!1,$=!1,or=!1,ir=!1,ve;ve=Symbol.for("react.module.reference");function ur(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===v||ir||e===c||e===h||e===m||or||e===O||fe||de||$||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===S||e.$$typeof===y||e.$$typeof===n||e.$$typeof===l||e.$$typeof===ve||e.getModuleId!==void 0))}function sr(e,r,a){var s=e.displayName;if(s)return s;var g=r.displayName||r.name||"";return g!==""?a+"("+g+")":a}function ge(e){return e.displayName||"Context"}function x(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case i:return"Portal";case v:return"Profiler";case c:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n:var r=e;return ge(r)+".Consumer";case y:var a=e;return ge(a._context)+".Provider";case l:return sr(e,e.render,"ForwardRef");case S:var s=e.displayName||null;return s!==null?s:x(e.type)||"Memo";case j:{var g=e,p=g._payload,d=g._init;try{return x(d(p))}catch{return null}}}return null}var N=Object.assign,z=0,pe,me,he,Ee,ye,be,Re;function _e(){}_e.__reactDisabledLog=!0;function cr(){{if(z===0){pe=console.log,me=console.info,he=console.warn,Ee=console.error,ye=console.group,be=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function lr(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:pe}),info:N({},e,{value:me}),warn:N({},e,{value:he}),error:N({},e,{value:Ee}),group:N({},e,{value:ye}),groupCollapsed:N({},e,{value:be}),groupEnd:N({},e,{value:Re})})}z<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=k.ReactCurrentDispatcher,re;function J(e,r,a){{if(re===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);re=s&&s[1]||""}return`
10
+ `+re+e}}var te=!1,X;{var fr=typeof WeakMap=="function"?WeakMap:Map;X=new fr}function Ce(e,r){if(!e||te)return"";{var a=X.get(e);if(a!==void 0)return a}var s;te=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ee.current,ee.current=null,cr();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(D){s=D}Reflect.construct(e,[],d)}else{try{d.call()}catch(D){s=D}e.call(d.prototype)}}else{try{throw Error()}catch(D){s=D}e()}}catch(D){if(D&&s&&typeof D.stack=="string"){for(var f=D.stack.split(`
11
+ `),T=s.stack.split(`
12
12
  `),R=f.length-1,_=T.length-1;R>=1&&_>=0&&f[R]!==T[_];)_--;for(;R>=1&&_>=0;R--,_--)if(f[R]!==T[_]){if(R!==1||_!==1)do if(R--,_--,_<0||f[R]!==T[_]){var P=`
13
- `+f[R].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,P),P}while(R>=1&&_>=0);break}}}finally{te=!1,ee.current=g,cr(),Error.prepareStackTrace=p}var V=e?e.displayName||e.name:"",Le=V?$(V):"";return typeof e=="function"&&X.set(e,Le),Le}function fr(e,r,a){return Ce(e,!1)}function dr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function H(e,r,a){if(e==null)return"";if(typeof e=="function")return Ce(e,dr(e));if(typeof e=="string")return $(e);switch(e){case h:return $("Suspense");case m:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return fr(e.render);case S:return H(e.type,r,a);case j:{var u=e,p=u._payload,g=u._init;try{return H(g(p),r,a)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,we={},Te=k.ReactDebugCurrentFrame;function Z(e){if(e){var r=e._owner,a=H(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(a)}else Te.setExtraStackFrame(null)}function vr(e,r,a,u,p){{var g=Function.call.bind(K);for(var d in e)if(g(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var T=Error((u||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}f=e[d](r,d,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f instanceof Error)&&(Z(p),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).",u||"React class",a,d,typeof f),Z(null)),f instanceof Error&&!(f.message in we)&&(we[f.message]=!0,Z(p),C("Failed %s type: %s",a,f.message),Z(null))}}}var pr=Array.isArray;function ne(e){return pr(e)}function gr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function mr(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Oe(e){if(mr(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gr(e)),Se(e)}var B=k.ReactCurrentOwner,hr={key:!0,ref:!0,__self:!0,__source:!0},je,Pe,ae;ae={};function Er(e){if(K.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function yr(e){if(K.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function br(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var a=x(B.current.type);ae[a]||(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',x(B.current.type),e.ref),ae[a]=!0)}}function Rr(e,r){{var a=function(){je||(je=!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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function _r(e,r){{var a=function(){Pe||(Pe=!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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Cr=function(e,r,a,u,p,g,d){var f={$$typeof:o,type:e,key:r,ref:a,props:d,_owner:g};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function wr(e,r,a,u,p){{var g,d={},f=null,T=null;a!==void 0&&(Oe(a),f=""+a),yr(r)&&(Oe(r.key),f=""+r.key),Er(r)&&(T=r.ref,br(r,p));for(g in r)K.call(r,g)&&!hr.hasOwnProperty(g)&&(d[g]=r[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)d[g]===void 0&&(d[g]=R[g])}if(f||T){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Rr(d,_),T&&_r(d,_)}return Cr(e,f,T,p,u,B.current,d)}}var oe=k.ReactCurrentOwner,Ae=k.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,a=H(e.type,e._source,r?r.type:null);Ae.setExtraStackFrame(a)}else Ae.setExtraStackFrame(null)}var ie;ie=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function ke(){{if(oe.current){var e=x(oe.current.type);if(e)return`
13
+ `+f[R].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,P),P}while(R>=1&&_>=0);break}}}finally{te=!1,ee.current=p,lr(),Error.prepareStackTrace=g}var V=e?e.displayName||e.name:"",Le=V?J(V):"";return typeof e=="function"&&X.set(e,Le),Le}function dr(e,r,a){return Ce(e,!1)}function vr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function H(e,r,a){if(e==null)return"";if(typeof e=="function")return Ce(e,vr(e));if(typeof e=="string")return J(e);switch(e){case h:return J("Suspense");case m:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return dr(e.render);case S:return H(e.type,r,a);case j:{var s=e,g=s._payload,p=s._init;try{return H(p(g),r,a)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,we={},Te=k.ReactDebugCurrentFrame;function Z(e){if(e){var r=e._owner,a=H(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(a)}else Te.setExtraStackFrame(null)}function gr(e,r,a,s,g){{var p=Function.call.bind(K);for(var d in e)if(p(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var T=Error((s||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}f=e[d](r,d,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f instanceof Error)&&(Z(g),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).",s||"React class",a,d,typeof f),Z(null)),f instanceof Error&&!(f.message in we)&&(we[f.message]=!0,Z(g),C("Failed %s type: %s",a,f.message),Z(null))}}}var pr=Array.isArray;function ne(e){return pr(e)}function mr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function hr(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Oe(e){if(hr(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mr(e)),Se(e)}var B=k.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0},je,Pe,ae;ae={};function yr(e){if(K.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function br(e){if(K.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Rr(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var a=x(B.current.type);ae[a]||(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',x(B.current.type),e.ref),ae[a]=!0)}}function _r(e,r){{var a=function(){je||(je=!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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Cr(e,r){{var a=function(){Pe||(Pe=!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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var wr=function(e,r,a,s,g,p,d){var f={$$typeof:o,type:e,key:r,ref:a,props:d,_owner:p};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Tr(e,r,a,s,g){{var p,d={},f=null,T=null;a!==void 0&&(Oe(a),f=""+a),br(r)&&(Oe(r.key),f=""+r.key),yr(r)&&(T=r.ref,Rr(r,g));for(p in r)K.call(r,p)&&!Er.hasOwnProperty(p)&&(d[p]=r[p]);if(e&&e.defaultProps){var R=e.defaultProps;for(p in R)d[p]===void 0&&(d[p]=R[p])}if(f||T){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&_r(d,_),T&&Cr(d,_)}return wr(e,f,T,g,s,B.current,d)}}var oe=k.ReactCurrentOwner,Ae=k.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,a=H(e.type,e._source,r?r.type:null);Ae.setExtraStackFrame(a)}else Ae.setExtraStackFrame(null)}var ie;ie=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function ke(){{if(oe.current){var e=x(oe.current.type);if(e)return`
14
14
 
15
- Check the render method of \``+e+"`."}return""}}function Tr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
15
+ Check the render method of \``+e+"`."}return""}}function Sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
16
16
 
17
- Check your code at `+r+":"+a+"."}return""}}var xe={};function Sr(e){{var r=ke();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
17
+ Check your code at `+r+":"+a+"."}return""}}var xe={};function Or(e){{var r=ke();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
18
18
 
19
- Check the top-level render call using <`+a+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Sr(r);if(xe[a])return;xe[a]=!0;var u="";e&&e._owner&&e._owner!==oe.current&&(u=" It was passed a child from "+x(e._owner.type)+"."),W(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.',a,u),W(null)}}function Fe(e,r){{if(typeof e!="object")return;if(ne(e))for(var a=0;a<e.length;a++){var u=e[a];ue(u)&&De(u,r)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var p=L(e);if(typeof p=="function"&&p!==e.entries)for(var g=p.call(e),d;!(d=g.next()).done;)ue(d.value)&&De(d.value,r)}}}function Or(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===S))a=r.propTypes;else return;if(a){var u=x(r);vr(a,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!ie){ie=!0;var p=x(r);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jr(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var u=r[a];if(u!=="children"&&u!=="key"){W(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),W(null);break}}e.ref!==null&&(W(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function Ie(e,r,a,u,p,g){{var d=ir(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=Tr(p);T?f+=T:f+=ke();var R;e===null?R="null":ne(e)?R="array":e!==void 0&&e.$$typeof===o?(R="<"+(x(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):R=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",R,f)}var _=wr(e,r,a,p,g);if(_==null)return _;if(d){var P=r.children;if(P!==void 0)if(u)if(ne(P)){for(var V=0;V<P.length;V++)Fe(P[V],e);Object.freeze&&Object.freeze(P)}else 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.");else Fe(P,e)}return e===s?jr(_):Or(_),_}}function Pr(e,r,a){return Ie(e,r,a,!0)}function Ar(e,r,a){return Ie(e,r,a,!1)}var kr=Ar,xr=Pr;Y.Fragment=s,Y.jsx=kr,Y.jsxs=xr}()),Y}var U={};/**
19
+ Check the top-level render call using <`+a+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Or(r);if(xe[a])return;xe[a]=!0;var s="";e&&e._owner&&e._owner!==oe.current&&(s=" It was passed a child from "+x(e._owner.type)+"."),M(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.',a,s),M(null)}}function Fe(e,r){{if(typeof e!="object")return;if(ne(e))for(var a=0;a<e.length;a++){var s=e[a];ue(s)&&De(s,r)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var g=L(e);if(typeof g=="function"&&g!==e.entries)for(var p=g.call(e),d;!(d=p.next()).done;)ue(d.value)&&De(d.value,r)}}}function jr(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===S))a=r.propTypes;else return;if(a){var s=x(r);gr(a,e.props,"prop",s,e)}else if(r.PropTypes!==void 0&&!ie){ie=!0;var g=x(r);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pr(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var s=r[a];if(s!=="children"&&s!=="key"){M(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),M(null);break}}e.ref!==null&&(M(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}function Ie(e,r,a,s,g,p){{var d=ur(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=Sr(g);T?f+=T:f+=ke();var R;e===null?R="null":ne(e)?R="array":e!==void 0&&e.$$typeof===o?(R="<"+(x(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):R=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",R,f)}var _=Tr(e,r,a,g,p);if(_==null)return _;if(d){var P=r.children;if(P!==void 0)if(s)if(ne(P)){for(var V=0;V<P.length;V++)Fe(P[V],e);Object.freeze&&Object.freeze(P)}else 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.");else Fe(P,e)}return e===u?Pr(_):jr(_),_}}function Ar(e,r,a){return Ie(e,r,a,!0)}function kr(e,r,a){return Ie(e,r,a,!1)}var xr=kr,Dr=Ar;Y.Fragment=u,Y.jsx=xr,Y.jsxs=Dr}()),Y}var U={};/**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
22
22
  *
@@ -24,4 +24,4 @@ Check the top-level render call using <`+a+">.")}return r}}function De(e,r){{if(
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */var ce;function Me(){if(ce)return U;ce=1;var t=E,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function y(n,l,h){var m,S={},j=null,O=null;h!==void 0&&(j=""+h),l.key!==void 0&&(j=""+l.key),l.ref!==void 0&&(O=l.ref);for(m in l)s.call(l,m)&&!v.hasOwnProperty(m)&&(S[m]=l[m]);if(n&&n.defaultProps)for(m in l=n.defaultProps,l)S[m]===void 0&&(S[m]=l[m]);return{$$typeof:o,type:n,key:j,ref:O,props:S,_owner:c.current}}return U.Fragment=i,U.jsx=y,U.jsxs=y,U}process.env.NODE_ENV==="production"?q.exports=Me():q.exports=Ne();var A=q.exports;const M=E.createContext({apiURL:void 0,axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),We=({axios:t,children:o,translate:i,useAuth:s,Outlet:c,Navigate:v,useLocation:y,useGoogleTagManager:n,apiURL:l})=>{const h=E.useMemo(()=>({apiURL:l,axios:t,Navigate:v,Outlet:c,translate:i,useAuth:s,useGoogleTagManager:n,useLocation:y}),[v,c,l,t,i,s,n,y]);return A.jsx(M.Provider,{value:h,children:o})},G=t=>`RequireAuth require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ve=({Fallback:t,loginPath:o="/login",localStorageKey:i="user",redirect401Path:s="/login",...c})=>{var I,L,k,C;const{axios:v=c.axios,useLocation:y=c.useLocation,useAuth:n=c.useAuth,Outlet:l=c.Outlet,Navigate:h=c.Navigate}=E.useContext(M);if(n===void 0)throw new Error(G("useAuth"));if(y===void 0)throw new Error(G("useLocation"));if(l===void 0)throw new Error(G("Outlet"));if(h===void 0)throw new Error(G("Navigate"));const[m,S]=E.useState(null),{isLogged:j}=n(),O=y(),F=E.useRef(!1);return E.useLayoutEffect(()=>{F.current||(F.current=!0,v==null||v.interceptors.response.use(w=>w,async w=>{var J;return typeof w=="object"&&w&&"response"in w&&w.response&&typeof w.response=="object"&&"status"in w.response&&w.response&&typeof w.response=="object"&&"status"in w.response&&((J=w==null?void 0:w.response)==null?void 0:J.status)===401&&(v.defaults.headers.common.Authorization=null,localStorage.removeItem(i),S(s)),Promise.reject(w)}))},[v==null?void 0:v.defaults.headers.common,v==null?void 0:v.interceptors.response,i,s]),j&&!m?A.jsx(E.Suspense,{fallback:t,children:(L=(I=O.state)==null?void 0:I.from)!=null&&L.state&&((C=(k=O.state)==null?void 0:k.from)==null?void 0:C.pathname)===o?A.jsx(h,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):A.jsx(l,{})}):A.jsx(h,{to:o,state:{from:O},replace:!0})},Q=t=>`GTMSendPageView require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ye=({...t})=>{const{useLocation:o=t.useLocation,Outlet:i=t.Outlet,useGoogleTagManager:s=t.useGoogleTagManager}=E.useContext(M);if(o===void 0)throw new Error(Q("useLocation"));if(i===void 0)throw new Error(Q("Outlet"));if(s===void 0)throw new Error(Q("useGoogleTagManager"));const{pathname:c}=o(),{sendEvent:v}=s();return E.useEffect(()=>{v({event:"pageView",pathname:c})},[c,v]),A.jsx(i,{})},Ue=({axios:t,baseURL:o,tokenTypeKey:i="tokenType",userLocalStorageKey:s="user",tokenKey:c="accessToken",postContentType:v="application/json"})=>{if(!t.defaults)return null;const y=localStorage.getItem(s),n=y?JSON.parse(y):null,l=n!=null&&n[i]?n[i]:null,h=n!=null&&n[c]?n[c]:null,m=y?`${l} ${h}`:null;return t.defaults.baseURL=o,t.defaults.headers.post["Content-Type"]=v,m&&(t.defaults.headers.common.Authorization=m),null},ze=({i18n:t,debug:o,initReactI18next:i,resources:s,LanguageDetector:c})=>(t!=null&&t.isInitialized||(t.use(c).use(i).init({debug:o,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:s,returnNull:!1}).then(()=>{document.documentElement.lang!==t.resolvedLanguage&&t.resolvedLanguage&&document.documentElement.setAttribute("lang",t.resolvedLanguage)}),t.on("languageChanged",v=>{document.documentElement.setAttribute("lang",v)})),null),Be=({dsn:t,sentry:o,integrations:i,tracesSampleRate:s,routingInstrumentationDependencies:c,replaysSessionSampleRate:v,replaysOnErrorSampleRate:y,tracePropagationTargets:n,ignoreErrors:l,debug:h,environment:m})=>(o.isInitialized()||(h||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&o.init({debug:h,dsn:t,environment:m||"production",ignoreErrors:l||[/Failed to fetch dynamically imported module/],integrations:[new o.BrowserTracing({routingInstrumentation:o.reactRouterV6Instrumentation(c.useEffect,c.useLocation,c.useNavigationType,c.createRoutesFromChildren,c.matchRoutes)}),o.replayIntegration(),...i||[]],replaysOnErrorSampleRate:y||1,replaysSessionSampleRate:v||.1,tracePropagationTargets:n,tracesSampleRate:s||1}),null),Ge=({IMaskMixin:t,...o})=>{const i=E.useMemo(()=>t(({TextField:s,...c})=>A.jsx(s,{...c})),[t]);return A.jsx(i,{...o})},Je=({mapbox:t,accessToken:o})=>(t&&o&&(t.accessToken=o),null),$e=({children:t,defaultOptions:o,QueryClient:i,QueryClientProvider:s})=>{const c=new i({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return A.jsx(s,{client:c,children:t})},Xe=t=>{const{unknownErrorTranslationKey:o="error.unknownError"}=t||{},{translate:i=t==null?void 0:t.translate}=E.useContext(M),s=i?i(o):"Unknown error",c=E.useCallback(y=>{var l,h,m,S,j,O,F,I,L;const{response:n}=y||{};return n!=null&&n.reason?String(n.reason):(l=n==null?void 0:n.data)!=null&&l.reason?String(n.data.reason):(h=n==null?void 0:n.data)!=null&&h.message?String(n.data.message):(S=(m=n==null?void 0:n.data)==null?void 0:m.detail)!=null&&S.length&&Array.isArray((j=n==null?void 0:n.data)==null?void 0:j.detail)&&((F=(O=n==null?void 0:n.data)==null?void 0:O.detail[0])!=null&&F.msg)&&typeof((L=(I=n==null?void 0:n.data)==null?void 0:I.detail[0])==null?void 0:L.msg)=="string"?String(n.data.detail[0].msg):s},[s]);return{getErrorCode:E.useCallback(y=>{var l,h,m;const{response:n}=y||{};return n!=null&&n.error_code?String(n==null?void 0:n.error_code):(l=n==null?void 0:n.data)!=null&&l.error_code?String((h=n==null?void 0:n.data)==null?void 0:h.error_code):n!=null&&n.error_code?String(n==null?void 0:n.error_code):(m=n==null?void 0:n.data)!=null&&m.error_code?String(n.data.error_code):"unknown_error_code"},[]),printError:c}},He=({data:t,fetchNextPage:o,isFetchingNextPage:i,isInitialLoading:s,isLoading:c,enabled:v=!0})=>{const y=E.useCallback(async l=>{i||!v||await o({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[v,o,i]),n=E.useMemo(()=>{if(t)return t.pages.reduce((l,h)=>[...l,...h],[])},[t]);return{fetchNextPageOnRowsScrollEnd:y,isLoading:i||c,loadingVariant:s?"skeleton":"linear",rows:n}},Ke=t=>{const o=E.useCallback(({tokenType:s,accessToken:c})=>{t.defaults.headers.common.Authorization=`${s} ${c}`},[t.defaults.headers.common]);return{clearAuthenticationToken:E.useCallback(()=>{t.defaults.headers.common.Authorization=null},[t.defaults.headers.common]),setAuthenticationToken:o}},Ze=(t,o="km")=>{const i=Number(t);return Number.isNaN(i)?`0 ${o}`:`${i.toFixed(2)} ${o}`},le=(t,o)=>{if(!t)return"";const i=typeof t=="object"&&"pathname"in t?`${t.origin}${t.pathname}`:t;return typeof o=="number"?`${i.replace("/files",`/thumbs/${o}`)}`:i},qe=()=>{const{apiURL:t}=E.useContext(M);return{distanceAdapter:Ze,filePathAdapter:(i,s)=>le(t&&typeof i=="string"?{origin:t,pathname:i}:i,s)}},Qe=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),er=t=>{const s=t.split("/").filter(c=>c.length>0).map(c=>c.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")).join("");return s.charAt(0).toLowerCase()+s.slice(1)},rr=(t,o,i)=>{const s=er(o),c=Qe(i);return`${s}${c}`},tr=t=>{if(t)return(t==null?void 0:t.reduce((o,i)=>(o[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},o),{}))||{}},nr=t=>{const{input:o="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=t||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:o,output:{client:"react-query",mode:"tags-split",override:{header:s=>["Generated by orval 🍺",...s.title?[s.title]:[],...s.description?[s.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:rr,...(i==null?void 0:i.length)&&{operations:tr(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};b.AxiosConfig=Ue,b.GTMSendPageView=Ye,b.I18nConfig=ze,b.InjectDependenciesContext=M,b.InjectDependenciesProvider=We,b.MapBoxConfig=Je,b.MaskTextField=Ge,b.QueryClientConfigProvider=$e,b.RequireAuth=Ve,b.SentryConfig=Be,b.getOrvalConfig=nr,b.useAdapter=qe,b.useAuth=Ke,b.useInfiniteDataGrid=He,b.useResponseError=Xe,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
27
+ */var ce;function We(){if(ce)return U;ce=1;var t=E,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function y(n,l,h){var m,S={},j=null,O=null;h!==void 0&&(j=""+h),l.key!==void 0&&(j=""+l.key),l.ref!==void 0&&(O=l.ref);for(m in l)u.call(l,m)&&!v.hasOwnProperty(m)&&(S[m]=l[m]);if(n&&n.defaultProps)for(m in l=n.defaultProps,l)S[m]===void 0&&(S[m]=l[m]);return{$$typeof:o,type:n,key:j,ref:O,props:S,_owner:c.current}}return U.Fragment=i,U.jsx=y,U.jsxs=y,U}process.env.NODE_ENV==="production"?q.exports=We():q.exports=Ne();var A=q.exports;const W=E.createContext({apiURL:void 0,axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Me=({axios:t,children:o,translate:i,useAuth:u,Outlet:c,Navigate:v,useLocation:y,useGoogleTagManager:n,apiURL:l})=>{const h=E.useMemo(()=>({apiURL:l,axios:t,Navigate:v,Outlet:c,translate:i,useAuth:u,useGoogleTagManager:n,useLocation:y}),[v,c,l,t,i,u,n,y]);return A.jsx(W.Provider,{value:h,children:o})},G=t=>`RequireAuth require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ve=({Fallback:t,loginPath:o="/login",localStorageKey:i="user",redirect401Path:u="/login",...c})=>{var I,L,k,C;const{axios:v=c.axios,useLocation:y=c.useLocation,useAuth:n=c.useAuth,Outlet:l=c.Outlet,Navigate:h=c.Navigate}=E.useContext(W);if(n===void 0)throw new Error(G("useAuth"));if(y===void 0)throw new Error(G("useLocation"));if(l===void 0)throw new Error(G("Outlet"));if(h===void 0)throw new Error(G("Navigate"));const[m,S]=E.useState(null),{isLogged:j}=n(),O=y(),F=E.useRef(!1);return E.useLayoutEffect(()=>{F.current||(F.current=!0,v==null||v.interceptors.response.use(w=>w,async w=>{var $;return typeof w=="object"&&w&&"response"in w&&w.response&&typeof w.response=="object"&&"status"in w.response&&w.response&&typeof w.response=="object"&&"status"in w.response&&(($=w==null?void 0:w.response)==null?void 0:$.status)===401&&(v.defaults.headers.common.Authorization=null,localStorage.removeItem(i),S(u)),Promise.reject(w)}))},[v==null?void 0:v.defaults.headers.common,v==null?void 0:v.interceptors.response,i,u]),j&&!m?A.jsx(E.Suspense,{fallback:t,children:(L=(I=O.state)==null?void 0:I.from)!=null&&L.state&&((C=(k=O.state)==null?void 0:k.from)==null?void 0:C.pathname)===o?A.jsx(h,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):A.jsx(l,{})}):A.jsx(h,{to:o,state:{from:O},replace:!0})},Q=t=>`GTMSendPageView require « ${t} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ye=({...t})=>{const{useLocation:o=t.useLocation,Outlet:i=t.Outlet,useGoogleTagManager:u=t.useGoogleTagManager}=E.useContext(W);if(o===void 0)throw new Error(Q("useLocation"));if(i===void 0)throw new Error(Q("Outlet"));if(u===void 0)throw new Error(Q("useGoogleTagManager"));const{pathname:c}=o(),{sendEvent:v}=u();return E.useEffect(()=>{v({event:"pageView",pathname:c})},[c,v]),A.jsx(i,{})},Ue=({axios:t,baseURL:o,tokenTypeKey:i="tokenType",userLocalStorageKey:u="user",tokenKey:c="accessToken",postContentType:v="application/json"})=>{if(!t.defaults)return null;const y=localStorage.getItem(u),n=y?JSON.parse(y):null,l=n!=null&&n[i]?n[i]:null,h=n!=null&&n[c]?n[c]:null,m=y?`${l} ${h}`:null;return t.defaults.baseURL=o,t.defaults.headers.post["Content-Type"]=v,m&&(t.defaults.headers.common.Authorization=m),null},ze=({i18n:t,debug:o,initReactI18next:i,resources:u,LanguageDetector:c})=>(t!=null&&t.isInitialized||(t.use(c).use(i).init({debug:o,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:u,returnNull:!1}).then(()=>{document.documentElement.lang!==t.resolvedLanguage&&t.resolvedLanguage&&document.documentElement.setAttribute("lang",t.resolvedLanguage)}),t.on("languageChanged",v=>{document.documentElement.setAttribute("lang",v)})),null),Be=({dsn:t,sentry:o,integrations:i,tracesSampleRate:u,routingInstrumentationDependencies:c,replaysSessionSampleRate:v,replaysOnErrorSampleRate:y,tracePropagationTargets:n,ignoreErrors:l,debug:h,environment:m})=>(o.isInitialized()||(h||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&o.init({debug:h,dsn:t,environment:m||"production",ignoreErrors:[...l||[],/dynamically imported module/],integrations:[new o.BrowserTracing({routingInstrumentation:o.reactRouterV6Instrumentation(c.useEffect,c.useLocation,c.useNavigationType,c.createRoutesFromChildren,c.matchRoutes)}),o.replayIntegration(),...i||[]],replaysOnErrorSampleRate:y||1,replaysSessionSampleRate:v||.1,tracePropagationTargets:n,tracesSampleRate:u||1}),null),Ge=({IMaskMixin:t,...o})=>{const i=E.useMemo(()=>t(({TextField:u,...c})=>A.jsx(u,{...c})),[t]);return A.jsx(i,{...o})},$e=({mapbox:t,accessToken:o})=>(t&&o&&(t.accessToken=o),null),Je=({children:t,defaultOptions:o,QueryClient:i,QueryClientProvider:u})=>{const c=new i({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return A.jsx(u,{client:c,children:t})},Xe=t=>{const{unknownErrorTranslationKey:o="error.unknownError"}=t||{},{translate:i=t==null?void 0:t.translate}=E.useContext(W),u=i?i(o):"Unknown error",c=E.useCallback(y=>{var l,h,m,S,j,O,F,I,L;const{response:n}=y||{};return n!=null&&n.reason?String(n.reason):(l=n==null?void 0:n.data)!=null&&l.reason?String(n.data.reason):(h=n==null?void 0:n.data)!=null&&h.message?String(n.data.message):(S=(m=n==null?void 0:n.data)==null?void 0:m.detail)!=null&&S.length&&Array.isArray((j=n==null?void 0:n.data)==null?void 0:j.detail)&&((F=(O=n==null?void 0:n.data)==null?void 0:O.detail[0])!=null&&F.msg)&&typeof((L=(I=n==null?void 0:n.data)==null?void 0:I.detail[0])==null?void 0:L.msg)=="string"?String(n.data.detail[0].msg):u},[u]);return{getErrorCode:E.useCallback(y=>{var l,h,m;const{response:n}=y||{};return n!=null&&n.error_code?String(n==null?void 0:n.error_code):(l=n==null?void 0:n.data)!=null&&l.error_code?String((h=n==null?void 0:n.data)==null?void 0:h.error_code):n!=null&&n.error_code?String(n==null?void 0:n.error_code):(m=n==null?void 0:n.data)!=null&&m.error_code?String(n.data.error_code):"unknown_error_code"},[]),printError:c}},He=({data:t,fetchNextPage:o,isFetchingNextPage:i,isInitialLoading:u,isLoading:c,enabled:v=!0})=>{const y=E.useCallback(async l=>{i||!v||await o({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[v,o,i]),n=E.useMemo(()=>{if(t)return t.pages.reduce((l,h)=>[...l,...h],[])},[t]);return{fetchNextPageOnRowsScrollEnd:y,isLoading:i||c,loadingVariant:u?"skeleton":"linear",rows:n}},Ke=t=>{const o=E.useCallback(({tokenType:u,accessToken:c})=>{t.defaults.headers.common.Authorization=`${u} ${c}`},[t.defaults.headers.common]);return{clearAuthenticationToken:E.useCallback(()=>{t.defaults.headers.common.Authorization=null},[t.defaults.headers.common]),setAuthenticationToken:o}},Ze=(t,o="km")=>{const i=Number(t);return Number.isNaN(i)?`0 ${o}`:`${i.toFixed(2)} ${o}`},qe=t=>{const o=t&&typeof t=="object"&&"pathname"in t&&t.pathname?t.pathname:t;return typeof o=="string"?o!=null&&o.startsWith("/")?o!=null&&o.startsWith("/files")?o:`/files${o}`:o!=null&&o.startsWith("files")?`/${o}`:o!=null&&o.startsWith("files")?`/${o}`:`/files/${o}`:o},le=(t,o)=>{if(!t)return"";const i=qe(t),u=typeof t=="object"&&"pathname"in t?`${t.origin}${i}`:t;return typeof o=="number"?`${u.replace("/files",`/thumbs/${o}`)}`:u},Qe=()=>{const{apiURL:t}=E.useContext(W);return{distanceAdapter:Ze,filePathAdapter:(i,u)=>le(t&&typeof i=="string"?{origin:t,pathname:i}:i,u)}},er=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),rr=t=>{const u=t.split("/").filter(c=>c.length>0).map(c=>c.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")).join("");return u.charAt(0).toLowerCase()+u.slice(1)},tr=(t,o,i)=>{const u=rr(o),c=er(i);return`${u}${c}`},nr=t=>{if(t)return(t==null?void 0:t.reduce((o,i)=>(o[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},o),{}))||{}},ar=t=>{const{input:o="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=t||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:o,output:{client:"react-query",mode:"tags-split",override:{header:u=>["Generated by orval 🍺",...u.title?[u.title]:[],...u.description?[u.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:tr,...(i==null?void 0:i.length)&&{operations:nr(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};b.AxiosConfig=Ue,b.GTMSendPageView=Ye,b.I18nConfig=ze,b.InjectDependenciesContext=W,b.InjectDependenciesProvider=Me,b.MapBoxConfig=$e,b.MaskTextField=Ge,b.QueryClientConfigProvider=Je,b.RequireAuth=Ve,b.SentryConfig=Be,b.getOrvalConfig=ar,b.useAdapter=Qe,b.useAuth=Ke,b.useInfiniteDataGrid=He,b.useResponseError=Xe,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",