@tracktor/shared-module 2.0.0-beta.7 → 2.0.0-beta.9

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/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import We, { createContext as vt, useMemo as le, useContext as k, useState as gt, useRef as ht, useEffect as Z, Suspense as yt, useCallback as ce } from "react";
1
+ import Me, { createContext as ht, useMemo as le, useContext as k, useState as gt, useRef as mt, useEffect as Z, Suspense as Et, useCallback as ce } from "react";
2
2
  var se = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
@@ -9,57 +9,57 @@ var se = { exports: {} }, B = {};
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 Fe;
13
- function mt() {
14
- return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
15
- var n = We, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), P = Symbol.iterator, S = "@@iterator";
16
- function T(e) {
12
+ var Ye;
13
+ function Rt() {
14
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
15
+ var t = Me, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), x = Symbol.iterator, O = "@@iterator";
16
+ function S(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
- var t = P && e[P] || e[S];
20
- return typeof t == "function" ? t : null;
19
+ var r = x && e[x] || e[O];
20
+ return typeof r == "function" ? r : null;
21
21
  }
22
- var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function w(e) {
22
+ var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ function _(e) {
24
24
  {
25
- for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
26
- o[s - 1] = arguments[s];
27
- Y("error", e, o);
25
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
26
+ o[l - 1] = arguments[l];
27
+ N("error", e, o);
28
28
  }
29
29
  }
30
- function Y(e, t, o) {
30
+ function N(e, r, o) {
31
31
  {
32
- var s = D.ReactDebugCurrentFrame, m = s.getStackAddendum();
33
- m !== "" && (t += "%s", o = o.concat([m]));
34
- var E = o.map(function(h) {
35
- return String(h);
32
+ var l = D.ReactDebugCurrentFrame, g = l.getStackAddendum();
33
+ g !== "" && (r += "%s", o = o.concat([g]));
34
+ var E = o.map(function(p) {
35
+ return String(p);
36
36
  });
37
- E.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, E);
37
+ E.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, E);
38
38
  }
39
39
  }
40
- var N = !1, W = !1, C = !1, fe = !1, de = !1, z;
40
+ var Y = !1, W = !1, P = !1, ve = !1, ye = !1, z;
41
41
  z = Symbol.for("react.module.reference");
42
- function Le(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || de || e === f || e === y || e === p || fe || e === u || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
42
+ function ze(e) {
43
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || ye || e === f || e === h || e === m || ve || e === u || Y || W || P || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === d || e.$$typeof === c || e.$$typeof === s || // 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 === z || e.getModuleId !== void 0));
48
48
  }
49
- function Ve(e, t, o) {
50
- var s = e.displayName;
51
- if (s)
52
- return s;
53
- var m = t.displayName || t.name || "";
54
- return m !== "" ? o + "(" + m + ")" : o;
49
+ function Ue(e, r, o) {
50
+ var l = e.displayName;
51
+ if (l)
52
+ return l;
53
+ var g = r.displayName || r.name || "";
54
+ return g !== "" ? o + "(" + g + ")" : o;
55
55
  }
56
- function ve(e) {
56
+ function pe(e) {
57
57
  return e.displayName || "Context";
58
58
  }
59
59
  function I(e) {
60
60
  if (e == null)
61
61
  return null;
62
- if (typeof e.tag == "number" && w("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" && _("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;
@@ -72,28 +72,28 @@ function mt() {
72
72
  return "Profiler";
73
73
  case f:
74
74
  return "StrictMode";
75
- case y:
75
+ case h:
76
76
  return "Suspense";
77
- case p:
77
+ case m:
78
78
  return "SuspenseList";
79
79
  }
80
80
  if (typeof e == "object")
81
81
  switch (e.$$typeof) {
82
82
  case c:
83
- var t = e;
84
- return ve(t) + ".Consumer";
83
+ var r = e;
84
+ return pe(r) + ".Consumer";
85
85
  case d:
86
86
  var o = e;
87
- return ve(o._context) + ".Provider";
88
- case l:
89
- return Ve(e, e.render, "ForwardRef");
90
- case _:
91
- var s = e.displayName || null;
92
- return s !== null ? s : I(e.type) || "Memo";
87
+ return pe(o._context) + ".Provider";
88
+ case s:
89
+ return Ue(e, e.render, "ForwardRef");
90
+ case w:
91
+ var l = e.displayName || null;
92
+ return l !== null ? l : I(e.type) || "Memo";
93
93
  case R: {
94
- var m = e, E = m._payload, h = m._init;
94
+ var g = e, E = g._payload, p = g._init;
95
95
  try {
96
- return I(h(E));
96
+ return I(p(E));
97
97
  } catch {
98
98
  return null;
99
99
  }
@@ -101,18 +101,18 @@ function mt() {
101
101
  }
102
102
  return null;
103
103
  }
104
- var L = Object.assign, U = 0, ge, he, ye, me, pe, Ee, Re;
105
- function _e() {
104
+ var L = Object.assign, U = 0, he, ge, me, Ee, Re, we, _e;
105
+ function Ce() {
106
106
  }
107
- _e.__reactDisabledLog = !0;
108
- function Me() {
107
+ Ce.__reactDisabledLog = !0;
108
+ function Ge() {
109
109
  {
110
110
  if (U === 0) {
111
- ge = console.log, he = console.info, ye = console.warn, me = console.error, pe = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
111
+ he = console.log, ge = console.info, me = console.warn, Ee = console.error, Re = console.group, we = console.groupCollapsed, _e = console.groupEnd;
112
112
  var e = {
113
113
  configurable: !0,
114
114
  enumerable: !0,
115
- value: _e,
115
+ value: Ce,
116
116
  writable: !0
117
117
  };
118
118
  Object.defineProperties(console, {
@@ -128,7 +128,7 @@ function mt() {
128
128
  U++;
129
129
  }
130
130
  }
131
- function ze() {
131
+ function Be() {
132
132
  {
133
133
  if (U--, U === 0) {
134
134
  var e = {
@@ -138,241 +138,241 @@ function mt() {
138
138
  };
139
139
  Object.defineProperties(console, {
140
140
  log: L({}, e, {
141
- value: ge
141
+ value: he
142
142
  }),
143
143
  info: L({}, e, {
144
- value: he
144
+ value: ge
145
145
  }),
146
146
  warn: L({}, e, {
147
- value: ye
147
+ value: me
148
148
  }),
149
149
  error: L({}, e, {
150
- value: me
150
+ value: Ee
151
151
  }),
152
152
  group: L({}, e, {
153
- value: pe
153
+ value: Re
154
154
  }),
155
155
  groupCollapsed: L({}, e, {
156
- value: Ee
156
+ value: we
157
157
  }),
158
158
  groupEnd: L({}, e, {
159
- value: Re
159
+ value: _e
160
160
  })
161
161
  });
162
162
  }
163
- U < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
163
+ U < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
164
  }
165
165
  }
166
166
  var ee = D.ReactCurrentDispatcher, te;
167
- function J(e, t, o) {
167
+ function Q(e, r, o) {
168
168
  {
169
169
  if (te === void 0)
170
170
  try {
171
171
  throw Error();
172
- } catch (m) {
173
- var s = m.stack.trim().match(/\n( *(at )?)/);
174
- te = s && s[1] || "";
172
+ } catch (g) {
173
+ var l = g.stack.trim().match(/\n( *(at )?)/);
174
+ te = l && l[1] || "";
175
175
  }
176
176
  return `
177
177
  ` + te + e;
178
178
  }
179
179
  }
180
- var re = !1, Q;
180
+ var re = !1, J;
181
181
  {
182
- var Ue = typeof WeakMap == "function" ? WeakMap : Map;
183
- Q = new Ue();
182
+ var qe = typeof WeakMap == "function" ? WeakMap : Map;
183
+ J = new qe();
184
184
  }
185
- function we(e, t) {
185
+ function Pe(e, r) {
186
186
  if (!e || re)
187
187
  return "";
188
188
  {
189
- var o = Q.get(e);
189
+ var o = J.get(e);
190
190
  if (o !== void 0)
191
191
  return o;
192
192
  }
193
- var s;
193
+ var l;
194
194
  re = !0;
195
- var m = Error.prepareStackTrace;
195
+ var g = Error.prepareStackTrace;
196
196
  Error.prepareStackTrace = void 0;
197
197
  var E;
198
- E = ee.current, ee.current = null, Me();
198
+ E = ee.current, ee.current = null, Ge();
199
199
  try {
200
- if (t) {
201
- var h = function() {
200
+ if (r) {
201
+ var p = function() {
202
202
  throw Error();
203
203
  };
204
- if (Object.defineProperty(h.prototype, "props", {
204
+ if (Object.defineProperty(p.prototype, "props", {
205
205
  set: function() {
206
206
  throw Error();
207
207
  }
208
208
  }), typeof Reflect == "object" && Reflect.construct) {
209
209
  try {
210
- Reflect.construct(h, []);
210
+ Reflect.construct(p, []);
211
211
  } catch ($) {
212
- s = $;
212
+ l = $;
213
213
  }
214
- Reflect.construct(e, [], h);
214
+ Reflect.construct(e, [], p);
215
215
  } else {
216
216
  try {
217
- h.call();
217
+ p.call();
218
218
  } catch ($) {
219
- s = $;
219
+ l = $;
220
220
  }
221
- e.call(h.prototype);
221
+ e.call(p.prototype);
222
222
  }
223
223
  } else {
224
224
  try {
225
225
  throw Error();
226
226
  } catch ($) {
227
- s = $;
227
+ l = $;
228
228
  }
229
229
  e();
230
230
  }
231
231
  } catch ($) {
232
- if ($ && s && typeof $.stack == "string") {
233
- for (var g = $.stack.split(`
234
- `), x = s.stack.split(`
235
- `), b = g.length - 1, j = x.length - 1; b >= 1 && j >= 0 && g[b] !== x[j]; )
236
- j--;
237
- for (; b >= 1 && j >= 0; b--, j--)
238
- if (g[b] !== x[j]) {
239
- if (b !== 1 || j !== 1)
232
+ if ($ && l && typeof $.stack == "string") {
233
+ for (var y = $.stack.split(`
234
+ `), b = l.stack.split(`
235
+ `), C = y.length - 1, T = b.length - 1; C >= 1 && T >= 0 && y[C] !== b[T]; )
236
+ T--;
237
+ for (; C >= 1 && T >= 0; C--, T--)
238
+ if (y[C] !== b[T]) {
239
+ if (C !== 1 || T !== 1)
240
240
  do
241
- if (b--, j--, j < 0 || g[b] !== x[j]) {
242
- var O = `
243
- ` + g[b].replace(" at new ", " at ");
244
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
241
+ if (C--, T--, T < 0 || y[C] !== b[T]) {
242
+ var j = `
243
+ ` + y[C].replace(" at new ", " at ");
244
+ return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, j), j;
245
245
  }
246
- while (b >= 1 && j >= 0);
246
+ while (C >= 1 && T >= 0);
247
247
  break;
248
248
  }
249
249
  }
250
250
  } finally {
251
- re = !1, ee.current = E, ze(), Error.prepareStackTrace = m;
251
+ re = !1, ee.current = E, Be(), Error.prepareStackTrace = g;
252
252
  }
253
- var M = e ? e.displayName || e.name : "", $e = M ? J(M) : "";
254
- return typeof e == "function" && Q.set(e, $e), $e;
253
+ var V = e ? e.displayName || e.name : "", Ne = V ? Q(V) : "";
254
+ return typeof e == "function" && J.set(e, Ne), Ne;
255
255
  }
256
- function qe(e, t, o) {
257
- return we(e, !1);
256
+ function Qe(e, r, o) {
257
+ return Pe(e, !1);
258
258
  }
259
- function Be(e) {
260
- var t = e.prototype;
261
- return !!(t && t.isReactComponent);
259
+ function Je(e) {
260
+ var r = e.prototype;
261
+ return !!(r && r.isReactComponent);
262
262
  }
263
- function X(e, t, o) {
263
+ function X(e, r, o) {
264
264
  if (e == null)
265
265
  return "";
266
266
  if (typeof e == "function")
267
- return we(e, Be(e));
267
+ return Pe(e, Je(e));
268
268
  if (typeof e == "string")
269
- return J(e);
269
+ return Q(e);
270
270
  switch (e) {
271
- case y:
272
- return J("Suspense");
273
- case p:
274
- return J("SuspenseList");
271
+ case h:
272
+ return Q("Suspense");
273
+ case m:
274
+ return Q("SuspenseList");
275
275
  }
276
276
  if (typeof e == "object")
277
277
  switch (e.$$typeof) {
278
- case l:
279
- return qe(e.render);
280
- case _:
281
- return X(e.type, t, o);
278
+ case s:
279
+ return Qe(e.render);
280
+ case w:
281
+ return X(e.type, r, o);
282
282
  case R: {
283
- var s = e, m = s._payload, E = s._init;
283
+ var l = e, g = l._payload, E = l._init;
284
284
  try {
285
- return X(E(m), t, o);
285
+ return X(E(g), r, o);
286
286
  } catch {
287
287
  }
288
288
  }
289
289
  }
290
290
  return "";
291
291
  }
292
- var H = Object.prototype.hasOwnProperty, be = {}, Ce = D.ReactDebugCurrentFrame;
292
+ var H = Object.prototype.hasOwnProperty, Te = {}, xe = D.ReactDebugCurrentFrame;
293
293
  function K(e) {
294
294
  if (e) {
295
- var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
296
- Ce.setExtraStackFrame(o);
295
+ var r = e._owner, o = X(e.type, e._source, r ? r.type : null);
296
+ xe.setExtraStackFrame(o);
297
297
  } else
298
- Ce.setExtraStackFrame(null);
298
+ xe.setExtraStackFrame(null);
299
299
  }
300
- function Ge(e, t, o, s, m) {
300
+ function Xe(e, r, o, l, g) {
301
301
  {
302
302
  var E = Function.call.bind(H);
303
- for (var h in e)
304
- if (E(e, h)) {
305
- var g = void 0;
303
+ for (var p in e)
304
+ if (E(e, p)) {
305
+ var y = void 0;
306
306
  try {
307
- if (typeof e[h] != "function") {
308
- var x = Error((s || "React class") + ": " + o + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
- throw x.name = "Invariant Violation", x;
307
+ if (typeof e[p] != "function") {
308
+ var b = Error((l || "React class") + ": " + o + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
+ throw b.name = "Invariant Violation", b;
310
310
  }
311
- g = e[h](t, h, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
- } catch (b) {
313
- g = b;
311
+ y = e[p](r, p, l, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
+ } catch (C) {
313
+ y = C;
314
314
  }
315
- g && !(g instanceof Error) && (K(m), w("%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", o, h, typeof g), K(null)), g instanceof Error && !(g.message in be) && (be[g.message] = !0, K(m), w("Failed %s type: %s", o, g.message), K(null));
315
+ y && !(y instanceof Error) && (K(g), _("%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).", l || "React class", o, p, typeof y), K(null)), y instanceof Error && !(y.message in Te) && (Te[y.message] = !0, K(g), _("Failed %s type: %s", o, y.message), K(null));
316
316
  }
317
317
  }
318
318
  }
319
- var Je = Array.isArray;
319
+ var He = Array.isArray;
320
320
  function ne(e) {
321
- return Je(e);
321
+ return He(e);
322
322
  }
323
- function Qe(e) {
323
+ function Ke(e) {
324
324
  {
325
- var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
325
+ var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
326
  return o;
327
327
  }
328
328
  }
329
- function Xe(e) {
329
+ function Ze(e) {
330
330
  try {
331
- return je(e), !1;
331
+ return Se(e), !1;
332
332
  } catch {
333
333
  return !0;
334
334
  }
335
335
  }
336
- function je(e) {
336
+ function Se(e) {
337
337
  return "" + e;
338
338
  }
339
- function Pe(e) {
340
- if (Xe(e))
341
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), je(e);
339
+ function be(e) {
340
+ if (Ze(e))
341
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Se(e);
342
342
  }
343
- var q = D.ReactCurrentOwner, He = {
343
+ var G = D.ReactCurrentOwner, et = {
344
344
  key: !0,
345
345
  ref: !0,
346
346
  __self: !0,
347
347
  __source: !0
348
- }, Te, xe, oe;
348
+ }, Oe, je, oe;
349
349
  oe = {};
350
- function Ke(e) {
350
+ function tt(e) {
351
351
  if (H.call(e, "ref")) {
352
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
353
- if (t && t.isReactWarning)
352
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
353
+ if (r && r.isReactWarning)
354
354
  return !1;
355
355
  }
356
356
  return e.ref !== void 0;
357
357
  }
358
- function Ze(e) {
358
+ function rt(e) {
359
359
  if (H.call(e, "key")) {
360
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
361
- if (t && t.isReactWarning)
360
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
361
+ if (r && r.isReactWarning)
362
362
  return !1;
363
363
  }
364
364
  return e.key !== void 0;
365
365
  }
366
- function et(e, t) {
367
- if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
368
- var o = I(q.current.type);
369
- oe[o] || (w('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', I(q.current.type), e.ref), oe[o] = !0);
366
+ function nt(e, r) {
367
+ if (typeof e.ref == "string" && G.current && r && G.current.stateNode !== r) {
368
+ var o = I(G.current.type);
369
+ oe[o] || (_('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', I(G.current.type), e.ref), oe[o] = !0);
370
370
  }
371
371
  }
372
- function tt(e, t) {
372
+ function ot(e, r) {
373
373
  {
374
374
  var o = function() {
375
- Te || (Te = !0, w("%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)", t));
375
+ Oe || (Oe = !0, _("%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
  o.isReactWarning = !0, Object.defineProperty(e, "key", {
378
378
  get: o,
@@ -380,10 +380,10 @@ function mt() {
380
380
  });
381
381
  }
382
382
  }
383
- function rt(e, t) {
383
+ function it(e, r) {
384
384
  {
385
385
  var o = function() {
386
- xe || (xe = !0, w("%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)", t));
386
+ je || (je = !0, _("%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
  o.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
389
  get: o,
@@ -391,67 +391,67 @@ function mt() {
391
391
  });
392
392
  }
393
393
  }
394
- var nt = function(e, t, o, s, m, E, h) {
395
- var g = {
394
+ var at = function(e, r, o, l, g, E, p) {
395
+ var y = {
396
396
  // This tag allows us to uniquely identify this as a React Element
397
- $$typeof: r,
397
+ $$typeof: n,
398
398
  // Built-in properties that belong on the element
399
399
  type: e,
400
- key: t,
400
+ key: r,
401
401
  ref: o,
402
- props: h,
402
+ props: p,
403
403
  // Record the component responsible for creating this element.
404
404
  _owner: E
405
405
  };
406
- return g._store = {}, Object.defineProperty(g._store, "validated", {
406
+ return y._store = {}, Object.defineProperty(y._store, "validated", {
407
407
  configurable: !1,
408
408
  enumerable: !1,
409
409
  writable: !0,
410
410
  value: !1
411
- }), Object.defineProperty(g, "_self", {
411
+ }), Object.defineProperty(y, "_self", {
412
412
  configurable: !1,
413
413
  enumerable: !1,
414
414
  writable: !1,
415
- value: s
416
- }), Object.defineProperty(g, "_source", {
415
+ value: l
416
+ }), Object.defineProperty(y, "_source", {
417
417
  configurable: !1,
418
418
  enumerable: !1,
419
419
  writable: !1,
420
- value: m
421
- }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
420
+ value: g
421
+ }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
422
422
  };
423
- function ot(e, t, o, s, m) {
423
+ function ut(e, r, o, l, g) {
424
424
  {
425
- var E, h = {}, g = null, x = null;
426
- o !== void 0 && (Pe(o), g = "" + o), Ze(t) && (Pe(t.key), g = "" + t.key), Ke(t) && (x = t.ref, et(t, m));
427
- for (E in t)
428
- H.call(t, E) && !He.hasOwnProperty(E) && (h[E] = t[E]);
425
+ var E, p = {}, y = null, b = null;
426
+ o !== void 0 && (be(o), y = "" + o), rt(r) && (be(r.key), y = "" + r.key), tt(r) && (b = r.ref, nt(r, g));
427
+ for (E in r)
428
+ H.call(r, E) && !et.hasOwnProperty(E) && (p[E] = r[E]);
429
429
  if (e && e.defaultProps) {
430
- var b = e.defaultProps;
431
- for (E in b)
432
- h[E] === void 0 && (h[E] = b[E]);
430
+ var C = e.defaultProps;
431
+ for (E in C)
432
+ p[E] === void 0 && (p[E] = C[E]);
433
433
  }
434
- if (g || x) {
435
- var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- g && tt(h, j), x && rt(h, j);
434
+ if (y || b) {
435
+ var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
+ y && ot(p, T), b && it(p, T);
437
437
  }
438
- return nt(e, g, x, m, s, q.current, h);
438
+ return at(e, y, b, g, l, G.current, p);
439
439
  }
440
440
  }
441
- var ie = D.ReactCurrentOwner, Se = D.ReactDebugCurrentFrame;
442
- function V(e) {
441
+ var ie = D.ReactCurrentOwner, Ae = D.ReactDebugCurrentFrame;
442
+ function M(e) {
443
443
  if (e) {
444
- var t = e._owner, o = X(e.type, e._source, t ? t.type : null);
445
- Se.setExtraStackFrame(o);
444
+ var r = e._owner, o = X(e.type, e._source, r ? r.type : null);
445
+ Ae.setExtraStackFrame(o);
446
446
  } else
447
- Se.setExtraStackFrame(null);
447
+ Ae.setExtraStackFrame(null);
448
448
  }
449
449
  var ae;
450
450
  ae = !1;
451
451
  function ue(e) {
452
- return typeof e == "object" && e !== null && e.$$typeof === r;
452
+ return typeof e == "object" && e !== null && e.$$typeof === n;
453
453
  }
454
- function Oe() {
454
+ function De() {
455
455
  {
456
456
  if (ie.current) {
457
457
  var e = I(ie.current.type);
@@ -463,140 +463,140 @@ Check the render method of \`` + e + "`.";
463
463
  return "";
464
464
  }
465
465
  }
466
- function it(e) {
466
+ function ct(e) {
467
467
  {
468
468
  if (e !== void 0) {
469
- var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
469
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
470
470
  return `
471
471
 
472
- Check your code at ` + t + ":" + o + ".";
472
+ Check your code at ` + r + ":" + o + ".";
473
473
  }
474
474
  return "";
475
475
  }
476
476
  }
477
- var Ae = {};
478
- function at(e) {
477
+ var ke = {};
478
+ function st(e) {
479
479
  {
480
- var t = Oe();
481
- if (!t) {
480
+ var r = De();
481
+ if (!r) {
482
482
  var o = typeof e == "string" ? e : e.displayName || e.name;
483
- o && (t = `
483
+ o && (r = `
484
484
 
485
485
  Check the top-level render call using <` + o + ">.");
486
486
  }
487
- return t;
487
+ return r;
488
488
  }
489
489
  }
490
- function De(e, t) {
490
+ function Ie(e, r) {
491
491
  {
492
492
  if (!e._store || e._store.validated || e.key != null)
493
493
  return;
494
494
  e._store.validated = !0;
495
- var o = at(t);
496
- if (Ae[o])
495
+ var o = st(r);
496
+ if (ke[o])
497
497
  return;
498
- Ae[o] = !0;
499
- var s = "";
500
- e && e._owner && e._owner !== ie.current && (s = " It was passed a child from " + I(e._owner.type) + "."), V(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), V(null);
498
+ ke[o] = !0;
499
+ var l = "";
500
+ e && e._owner && e._owner !== ie.current && (l = " It was passed a child from " + I(e._owner.type) + "."), M(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, l), M(null);
501
501
  }
502
502
  }
503
- function ke(e, t) {
503
+ function $e(e, r) {
504
504
  {
505
505
  if (typeof e != "object")
506
506
  return;
507
507
  if (ne(e))
508
508
  for (var o = 0; o < e.length; o++) {
509
- var s = e[o];
510
- ue(s) && De(s, t);
509
+ var l = e[o];
510
+ ue(l) && Ie(l, r);
511
511
  }
512
512
  else if (ue(e))
513
513
  e._store && (e._store.validated = !0);
514
514
  else if (e) {
515
- var m = T(e);
516
- if (typeof m == "function" && m !== e.entries)
517
- for (var E = m.call(e), h; !(h = E.next()).done; )
518
- ue(h.value) && De(h.value, t);
515
+ var g = S(e);
516
+ if (typeof g == "function" && g !== e.entries)
517
+ for (var E = g.call(e), p; !(p = E.next()).done; )
518
+ ue(p.value) && Ie(p.value, r);
519
519
  }
520
520
  }
521
521
  }
522
- function ut(e) {
522
+ function lt(e) {
523
523
  {
524
- var t = e.type;
525
- if (t == null || typeof t == "string")
524
+ var r = e.type;
525
+ if (r == null || typeof r == "string")
526
526
  return;
527
527
  var o;
528
- if (typeof t == "function")
529
- o = t.propTypes;
530
- else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
528
+ if (typeof r == "function")
529
+ o = r.propTypes;
530
+ else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
531
531
  // Inner props are checked in the reconciler.
532
- t.$$typeof === _))
533
- o = t.propTypes;
532
+ r.$$typeof === w))
533
+ o = r.propTypes;
534
534
  else
535
535
  return;
536
536
  if (o) {
537
- var s = I(t);
538
- Ge(o, e.props, "prop", s, e);
539
- } else if (t.PropTypes !== void 0 && !ae) {
537
+ var l = I(r);
538
+ Xe(o, e.props, "prop", l, e);
539
+ } else if (r.PropTypes !== void 0 && !ae) {
540
540
  ae = !0;
541
- var m = I(t);
542
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
541
+ var g = I(r);
542
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
543
543
  }
544
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
544
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
545
  }
546
546
  }
547
- function ct(e) {
547
+ function ft(e) {
548
548
  {
549
- for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
550
- var s = t[o];
551
- if (s !== "children" && s !== "key") {
552
- V(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), V(null);
549
+ for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
550
+ var l = r[o];
551
+ if (l !== "children" && l !== "key") {
552
+ M(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), M(null);
553
553
  break;
554
554
  }
555
555
  }
556
- e.ref !== null && (V(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
556
+ e.ref !== null && (M(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
557
557
  }
558
558
  }
559
- function Ie(e, t, o, s, m, E) {
559
+ function Fe(e, r, o, l, g, E) {
560
560
  {
561
- var h = Le(e);
562
- if (!h) {
563
- var g = "";
564
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
- var x = it(m);
566
- x ? g += x : g += Oe();
567
- var b;
568
- e === null ? b = "null" : ne(e) ? b = "array" : e !== void 0 && e.$$typeof === r ? (b = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, g);
561
+ var p = ze(e);
562
+ if (!p) {
563
+ var y = "";
564
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
+ var b = ct(g);
566
+ b ? y += b : y += De();
567
+ var C;
568
+ e === null ? C = "null" : ne(e) ? C = "array" : e !== void 0 && e.$$typeof === n ? (C = "<" + (I(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : C = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, y);
569
569
  }
570
- var j = ot(e, t, o, m, E);
571
- if (j == null)
572
- return j;
573
- if (h) {
574
- var O = t.children;
575
- if (O !== void 0)
576
- if (s)
577
- if (ne(O)) {
578
- for (var M = 0; M < O.length; M++)
579
- ke(O[M], e);
580
- Object.freeze && Object.freeze(O);
570
+ var T = ut(e, r, o, g, E);
571
+ if (T == null)
572
+ return T;
573
+ if (p) {
574
+ var j = r.children;
575
+ if (j !== void 0)
576
+ if (l)
577
+ if (ne(j)) {
578
+ for (var V = 0; V < j.length; V++)
579
+ $e(j[V], e);
580
+ Object.freeze && Object.freeze(j);
581
581
  } else
582
- w("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
+ _("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
- ke(O, e);
584
+ $e(j, e);
585
585
  }
586
- return e === a ? ct(j) : ut(j), j;
586
+ return e === a ? ft(T) : lt(T), T;
587
587
  }
588
588
  }
589
- function st(e, t, o) {
590
- return Ie(e, t, o, !0);
589
+ function dt(e, r, o) {
590
+ return Fe(e, r, o, !0);
591
591
  }
592
- function lt(e, t, o) {
593
- return Ie(e, t, o, !1);
592
+ function vt(e, r, o) {
593
+ return Fe(e, r, o, !1);
594
594
  }
595
- var ft = lt, dt = st;
596
- B.Fragment = a, B.jsx = ft, B.jsxs = dt;
595
+ var yt = vt, pt = dt;
596
+ B.Fragment = a, B.jsx = yt, B.jsxs = pt;
597
597
  }()), B;
598
598
  }
599
- var G = {};
599
+ var q = {};
600
600
  /**
601
601
  * @license React
602
602
  * react-jsx-runtime.production.min.js
@@ -606,89 +606,99 @@ var G = {};
606
606
  * This source code is licensed under the MIT license found in the
607
607
  * LICENSE file in the root directory of this source tree.
608
608
  */
609
- var Ye;
610
- function pt() {
611
- if (Ye)
612
- return G;
613
- Ye = 1;
614
- var n = We, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
615
- function d(c, l, y) {
616
- var p, _ = {}, R = null, u = null;
617
- y !== void 0 && (R = "" + y), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (u = l.ref);
618
- for (p in l)
619
- a.call(l, p) && !v.hasOwnProperty(p) && (_[p] = l[p]);
609
+ var We;
610
+ function wt() {
611
+ if (We)
612
+ return q;
613
+ We = 1;
614
+ var t = Me, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
615
+ function d(c, s, h) {
616
+ var m, w = {}, R = null, u = null;
617
+ h !== void 0 && (R = "" + h), s.key !== void 0 && (R = "" + s.key), s.ref !== void 0 && (u = s.ref);
618
+ for (m in s)
619
+ a.call(s, m) && !v.hasOwnProperty(m) && (w[m] = s[m]);
620
620
  if (c && c.defaultProps)
621
- for (p in l = c.defaultProps, l)
622
- _[p] === void 0 && (_[p] = l[p]);
623
- return { $$typeof: r, type: c, key: R, ref: u, props: _, _owner: f.current };
621
+ for (m in s = c.defaultProps, s)
622
+ w[m] === void 0 && (w[m] = s[m]);
623
+ return { $$typeof: n, type: c, key: R, ref: u, props: w, _owner: f.current };
624
624
  }
625
- return G.Fragment = i, G.jsx = d, G.jsxs = d, G;
625
+ return q.Fragment = i, q.jsx = d, q.jsxs = d, q;
626
626
  }
627
- process.env.NODE_ENV === "production" ? se.exports = pt() : se.exports = mt();
627
+ process.env.NODE_ENV === "production" ? se.exports = wt() : se.exports = Rt();
628
628
  var F = se.exports;
629
- const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
629
+ const A = ht({}), kt = ({ children: t, apiURL: n, libraries: i }) => {
630
630
  const a = le(
631
631
  () => ({
632
- apiURL: r,
632
+ apiURL: n,
633
633
  libraries: i
634
634
  }),
635
- [r, i]
635
+ [n, i]
636
636
  );
637
- return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: n });
638
- }, Tt = ({
639
- Fallback: n,
640
- isLogged: r,
637
+ return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: t });
638
+ }, _t = (t) => t && typeof t == "object" && typeof t.useGoogleTagManager == "function", Ve = (t) => t && typeof t == "object" && typeof t.locale == "function" && typeof t.extend == "function" && typeof t.format == "function" && typeof t() == "function" && typeof t().format == "function", fe = (t) => t && typeof t == "object" && typeof t.useLocation == "function" && typeof t.Outlet == "function" && t.Outlet.prototype && t.Outlet.prototype.isReactComponent && typeof t.Navigate == "function" && t.Navigate.prototype && t.Navigate.prototype.isReactComponent && typeof t.createRoutesFromChildren == "function" && typeof t.matchRoutes == "function" && typeof t.useNavigationType == "function", de = (t) => t && typeof t == "object" && typeof t.defaults == "object" && typeof t.defaults.baseURL == "string" && typeof t.defaults.headers == "object" && typeof t.defaults.headers.post == "object" && typeof t.defaults.headers.post["Content-Type"] == "string" && typeof t.defaults.headers.common == "object" && typeof t.defaults.headers.common.Authorization == "string" && typeof t.interceptors == "object" && typeof t.interceptors.response == "object" && typeof t.interceptors.response.use == "function", It = ({
639
+ Fallback: t,
640
+ isLogged: n,
641
641
  loginPath: i = "/login",
642
642
  localStorageKey: a = "user",
643
643
  redirect401Path: f = "/login",
644
644
  ...v
645
645
  }) => {
646
- var w, Y, N, W;
647
- const { libraries: d } = k(A), c = (v == null ? void 0 : v.axios) || (d == null ? void 0 : d.axios), l = (v == null ? void 0 : v.reactRouter) || (d == null ? void 0 : d.reactRouter);
648
- if (l === void 0)
646
+ var _, N, Y, W;
647
+ const { libraries: d } = k(A), c = (v == null ? void 0 : v.axios) || (d == null ? void 0 : d.axios), s = (v == null ? void 0 : v.reactRouter) || (d == null ? void 0 : d.reactRouter);
648
+ if (!s)
649
649
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
650
- if (c === void 0)
650
+ if (!de(c))
651
651
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
652
- const [y, p] = gt(null), { useLocation: _, Navigate: R, Outlet: u } = l, P = _(), S = ht(!1), T = typeof r == "function" ? r() : !!r, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
652
+ if (!fe(s))
653
+ throw new Error("Provided React Router dependencies are not valid.");
654
+ const [h, m] = gt(null), { useLocation: w, Navigate: R, Outlet: u } = s, x = w(), O = mt(!1), S = typeof n == "function" ? n() : !!n, D = typeof S == "boolean" ? S : S == null ? void 0 : S.isLogged;
653
655
  return Z(() => {
654
- S.current || (S.current = !0, c == null || c.interceptors.response.use(
655
- (C) => C,
656
- async (C) => {
656
+ O.current || (O.current = !0, c == null || c.interceptors.response.use(
657
+ (P) => P,
658
+ async (P) => {
657
659
  var z;
658
- return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((z = C == null ? void 0 : C.response) == null ? void 0 : z.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(a), p(f)), Promise.reject(C);
660
+ return typeof P == "object" && P && "response" in P && P.response && typeof P.response == "object" && "status" in P.response && P.response && typeof P.response == "object" && "status" in P.response && ((z = P == null ? void 0 : P.response) == null ? void 0 : z.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(a), m(f)), Promise.reject(P);
659
661
  }
660
662
  ));
661
- }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, f]), D && !y ? /* @__PURE__ */ F.jsx(yt, { fallback: n, children: (Y = (w = P.state) == null ? void 0 : w.from) != null && Y.state && ((W = (N = P.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: P.state.from.state.from.pathname + P.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: P }, replace: !0 });
662
- }, xt = ({ ...n }) => {
663
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.reactRouter) || (r == null ? void 0 : r.reactRouter), a = (n == null ? void 0 : n.gtm) || (r == null ? void 0 : r.gtm);
664
- if (i === void 0)
665
- throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
666
- if (a === void 0)
667
- throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
668
- const { useGoogleTagManager: f } = a, { useLocation: v, Outlet: d } = i, { pathname: c } = v(), { sendEvent: l } = f();
663
+ }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, f]), D && !h ? /* @__PURE__ */ F.jsx(Et, { fallback: t, children: (N = (_ = x.state) == null ? void 0 : _.from) != null && N.state && ((W = (Y = x.state) == null ? void 0 : Y.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: x.state.from.state.from.pathname + x.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: x }, replace: !0 });
664
+ }, $t = ({ ...t }) => {
665
+ const { libraries: n } = k(A), i = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), a = (t == null ? void 0 : t.gtm) || (n == null ? void 0 : n.gtm);
666
+ if (!i)
667
+ throw new Error(
668
+ "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
669
+ );
670
+ if (!a)
671
+ throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
672
+ if (!_t(a))
673
+ throw new Error("Provided GTM dependencies are not valid.");
674
+ if (!fe(i))
675
+ throw new Error("Provided React Router dependencies are not valid.");
676
+ const { useGoogleTagManager: f } = a, { useLocation: v, Outlet: d } = i, { pathname: c } = v(), { sendEvent: s } = f();
669
677
  return Z(() => {
670
- l({ event: "pageView", pathname: c });
671
- }, [c, l]), /* @__PURE__ */ F.jsx(d, {});
672
- }, St = ({
673
- tokenTypeKey: n = "tokenType",
674
- userLocalStorageKey: r = "user",
678
+ s({ event: "pageView", pathname: c });
679
+ }, [c, s]), /* @__PURE__ */ F.jsx(d, {});
680
+ }, Ft = ({
681
+ tokenTypeKey: t = "tokenType",
682
+ userLocalStorageKey: n = "user",
675
683
  tokenKey: i = "accessToken",
676
684
  postContentType: a = "application/json",
677
685
  ...f
678
686
  }) => {
679
687
  const { apiURL: v = f.apiURL, libraries: d } = k(A), c = (f == null ? void 0 : f.axios) || (d == null ? void 0 : d.axios);
680
- if (c === void 0)
688
+ if (!c)
681
689
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
682
- if (!c.defaults)
690
+ if (!de(c))
691
+ throw new Error("Provided Axios dependencies are not valid.");
692
+ if (!(c != null && c.defaults))
683
693
  return null;
684
- const l = localStorage.getItem(r), y = l ? JSON.parse(l) : null, p = y != null && y[n] ? y[n] : null, _ = y != null && y[i] ? y[i] : null, R = l ? `${p} ${_}` : null;
694
+ const s = localStorage.getItem(n), h = s ? JSON.parse(s) : null, m = h != null && h[t] ? h[t] : null, w = h != null && h[i] ? h[i] : null, R = s ? `${m} ${w}` : null;
685
695
  return c.defaults.baseURL = v, c.defaults.headers.post["Content-Type"] = a, R && (c.defaults.headers.common.Authorization = R), null;
686
- }, Ot = ({ debug: n, resources: r, ...i }) => {
696
+ }, Nt = ({ debug: t, resources: n, ...i }) => {
687
697
  const { libraries: a } = k(A), f = (i == null ? void 0 : i.i18) || (a == null ? void 0 : a.i18), { i18next: v, initReactI18next: d, languageDetector: c } = f || {};
688
- if (f === void 0)
698
+ if (!f)
689
699
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
690
700
  return v != null && v.isInitialized || (v.use(c).use(d).init({
691
- debug: n,
701
+ debug: t,
692
702
  fallbackLng: "en",
693
703
  interpolation: {
694
704
  escapeValue: !1
@@ -698,143 +708,160 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
698
708
  bindI18n: !1,
699
709
  useSuspense: !0
700
710
  },
701
- resources: r,
711
+ resources: n,
702
712
  returnNull: !1
703
713
  }).then(() => {
704
714
  document.documentElement.lang !== v.resolvedLanguage && v.resolvedLanguage && document.documentElement.setAttribute("lang", v.resolvedLanguage);
705
- }), v.on("languageChanged", (l) => {
706
- document.documentElement.setAttribute("lang", l);
715
+ }), v.on("languageChanged", (s) => {
716
+ document.documentElement.setAttribute("lang", s);
707
717
  })), null;
708
- }, At = ({
709
- dsn: n,
710
- integrations: r,
718
+ }, Yt = ({
719
+ dsn: t,
720
+ integrations: n,
711
721
  tracesSampleRate: i,
712
722
  replaysSessionSampleRate: a,
713
723
  replaysOnErrorSampleRate: f,
714
724
  tracePropagationTargets: v,
715
725
  ignoreErrors: d,
716
726
  debug: c,
717
- environment: l,
718
- ...y
727
+ environment: s,
728
+ ...h
719
729
  }) => {
720
- const { libraries: p } = k(A), _ = (y == null ? void 0 : y.sentry) || (p == null ? void 0 : p.sentry), R = (y == null ? void 0 : y.reactRouter) || (p == null ? void 0 : p.reactRouter), { createRoutesFromChildren: u, matchRoutes: P, useLocation: S, useNavigationType: T } = R;
721
- if (_ === void 0)
730
+ const { libraries: m } = k(A), w = (h == null ? void 0 : h.sentry) || (m == null ? void 0 : m.sentry), R = (h == null ? void 0 : h.reactRouter) || (m == null ? void 0 : m.reactRouter);
731
+ if (!w)
722
732
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
723
- if (R === void 0)
733
+ if (!R)
724
734
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
725
- return _.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && _.init({
735
+ if (!fe(R))
736
+ throw new Error("Provided React Router dependencies are not valid.");
737
+ if (w.isInitialized())
738
+ return null;
739
+ const { createRoutesFromChildren: u, matchRoutes: x, useLocation: O, useNavigationType: S } = R;
740
+ return (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
726
741
  debug: c,
727
- dsn: n,
728
- environment: l || "production",
742
+ dsn: t,
743
+ environment: s || "production",
729
744
  ignoreErrors: [...d || [], /dynamically imported module/],
730
745
  integrations: [
731
- _.reactRouterV6BrowserTracingIntegration({
746
+ w.reactRouterV6BrowserTracingIntegration({
732
747
  createRoutesFromChildren: u,
733
- matchRoutes: P,
748
+ matchRoutes: x,
734
749
  useEffect: Z,
735
- useLocation: S,
736
- useNavigationType: T
750
+ useLocation: O,
751
+ useNavigationType: S
737
752
  }),
738
- ...r || []
753
+ ...n || []
739
754
  ],
740
755
  replaysOnErrorSampleRate: f || 1,
741
756
  replaysSessionSampleRate: a || 0.1,
742
757
  tracePropagationTargets: v,
743
758
  tracesSampleRate: i || 1
744
759
  }), null;
745
- }, Dt = ({ IMaskMixin: n, ...r }) => {
760
+ }, Wt = ({ IMaskMixin: t, ...n }) => {
746
761
  const i = le(
747
762
  // eslint-disable-next-line react/jsx-props-no-spreading
748
- () => n(({ TextField: a, ...f }) => /* @__PURE__ */ F.jsx(a, { ...f })),
749
- [n]
763
+ () => t(({ TextField: a, ...f }) => /* @__PURE__ */ F.jsx(a, { ...f })),
764
+ [t]
750
765
  );
751
- return /* @__PURE__ */ F.jsx(i, { ...r });
752
- }, kt = ({ accessToken: n, ...r }) => {
753
- const { libraries: i } = k(A), a = (r == null ? void 0 : r.mapbox) || (i == null ? void 0 : i.mapbox);
754
- if (a === void 0)
766
+ return /* @__PURE__ */ F.jsx(i, { ...n });
767
+ }, Ct = (t) => t && typeof t == "object" && typeof t.accessToken == "string", Lt = ({ accessToken: t, ...n }) => {
768
+ const { libraries: i } = k(A), a = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
769
+ if (!a)
755
770
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
756
- return n && (a.accessToken = n), null;
757
- }, It = ({ language: n, ...r }) => {
758
- const { libraries: i } = k(A), a = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs), f = (r == null ? void 0 : r.dayjsPlugin) || (i == null ? void 0 : i.dayjsPlugin);
759
- if (a === void 0)
760
- throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
771
+ if (!Ct(a))
772
+ throw new Error("Provided Mapbox instance is not valid.");
773
+ return t && (a.accessToken = t), null;
774
+ }, Mt = ({ language: t, ...n }) => {
775
+ const { libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), f = (n == null ? void 0 : n.dayjsPlugin) || (i == null ? void 0 : i.dayjsPlugin);
776
+ if (!a)
777
+ throw new Error(
778
+ "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
779
+ );
780
+ if (!Ve(a))
781
+ throw new Error("Provided dayjs instance is not valid.");
761
782
  return Z(() => {
762
783
  (async () => {
763
784
  var c;
764
- const d = n || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
765
- f && f.forEach((l) => {
766
- a.extend(l.default);
785
+ const d = t || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
786
+ f && f.forEach((s) => {
787
+ s && typeof s == "object" && "default" in s && a.extend(s.default);
767
788
  }), a.locale(d);
768
789
  })().then();
769
- }, [a, f, n]), null;
770
- }, $t = ({
771
- children: n,
772
- defaultQueriesOptions: r,
790
+ }, [a, f, t]), null;
791
+ }, Pt = (t) => t && typeof t == "function", Tt = (t) => t && typeof t == "function", Vt = ({
792
+ children: t,
793
+ defaultQueriesOptions: n,
773
794
  defaultMutationsOptions: i,
774
795
  ...a
775
796
  }) => {
776
- var l, y;
777
- const { libraries: f } = k(A), v = (a == null ? void 0 : a.QueryClient) || ((l = f == null ? void 0 : f.reactQuery) == null ? void 0 : l.QueryClient), d = (a == null ? void 0 : a.QueryClientProvider) || ((y = f == null ? void 0 : f.reactQuery) == null ? void 0 : y.QueryClientProvider);
778
- if (v === void 0)
797
+ var s, h;
798
+ const { libraries: f } = k(A), v = (a == null ? void 0 : a.QueryClient) || ((s = f == null ? void 0 : f.reactQuery) == null ? void 0 : s.QueryClient), d = (a == null ? void 0 : a.QueryClientProvider) || ((h = f == null ? void 0 : f.reactQuery) == null ? void 0 : h.QueryClientProvider);
799
+ if (!v)
779
800
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
780
- if (d === void 0)
801
+ if (!d)
781
802
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
803
+ if (!Pt(d))
804
+ throw new Error("Provided QueryClientProvider dependencies are not valid.");
805
+ if (!Tt(v))
806
+ throw new Error("Provided QueryClient dependencies are not valid.");
782
807
  const c = new v({
783
808
  defaultOptions: {
784
809
  mutations: {
785
810
  ...i
786
811
  },
787
812
  queries: {
788
- getNextPageParam: (p, _, R) => p.length + (R || 0),
813
+ getNextPageParam: (m, w, R) => m.length + (R || 0),
789
814
  refetchOnWindowFocus: !1,
790
815
  retry: 3,
791
- ...r
816
+ ...n
792
817
  }
793
818
  }
794
819
  });
795
- return /* @__PURE__ */ F.jsx(d, { client: c, children: n });
796
- }, Ft = (n) => {
797
- var y, p, _;
798
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.i18) || (r == null ? void 0 : r.i18), a = ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction) || ((p = r == null ? void 0 : r.i18) == null ? void 0 : p.translateFunction), f = ((_ = i == null ? void 0 : i.i18next) == null ? void 0 : _.t) || a || ((R) => R), { unknownErrorTranslationKey: v = "error.unknownError" } = n || {}, d = f(v), c = ce(
820
+ return /* @__PURE__ */ F.jsx(d, { client: c, children: t });
821
+ }, zt = (t) => {
822
+ var h, m, w;
823
+ const { libraries: n } = k(A), i = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), a = ((h = t == null ? void 0 : t.i18) == null ? void 0 : h.translateFunction) || ((m = n == null ? void 0 : n.i18) == null ? void 0 : m.translateFunction), f = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || a || ((R) => R), { unknownErrorTranslationKey: v = "error.unknownError" } = t || {}, d = f(v), c = ce(
799
824
  (R) => {
800
- var P, S, T, D, w, Y, N, W, C;
825
+ var x, O, S, D, _, N, Y, W, P;
801
826
  const { response: u } = R || {};
802
- return u != null && u.reason ? String(u.reason) : (P = u == null ? void 0 : u.data) != null && P.reason ? String(u.data.reason) : (S = u == null ? void 0 : u.data) != null && S.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(u.data.detail[0].msg) : d;
827
+ return u != null && u.reason ? String(u.reason) : (x = u == null ? void 0 : u.data) != null && x.reason ? String(u.data.reason) : (O = u == null ? void 0 : u.data) != null && O.message ? String(u.data.message) : (D = (S = u == null ? void 0 : u.data) == null ? void 0 : S.detail) != null && D.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((Y = (N = u == null ? void 0 : u.data) == null ? void 0 : N.detail[0]) != null && Y.msg) && typeof ((P = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : P.msg) == "string" ? String(u.data.detail[0].msg) : d;
803
828
  },
804
829
  [d]
805
830
  );
806
831
  return { getErrorCode: ce((R) => {
807
- var P, S, T;
832
+ var x, O, S;
808
833
  const { response: u } = R || {};
809
- return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (P = u == null ? void 0 : u.data) != null && P.error_code ? String((S = u == null ? void 0 : u.data) == null ? void 0 : S.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
834
+ return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (x = u == null ? void 0 : u.data) != null && x.error_code ? String((O = u == null ? void 0 : u.data) == null ? void 0 : O.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (S = u == null ? void 0 : u.data) != null && S.error_code ? String(u.data.error_code) : "unknown_error_code";
810
835
  }, []), printError: c };
811
- }, Yt = ({
812
- data: n,
813
- fetchNextPage: r,
836
+ }, Ut = ({
837
+ data: t,
838
+ fetchNextPage: n,
814
839
  isFetchingNextPage: i,
815
840
  isInitialLoading: a,
816
841
  isLoading: f,
817
842
  enabled: v = !0
818
843
  }) => {
819
844
  const d = ce(
820
- async (l) => {
821
- i || !v || await r({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
845
+ async (s) => {
846
+ i || !v || await n({ pageParam: (s == null ? void 0 : s.pageParam) || s.visibleRowsCount });
822
847
  },
823
- [v, r, i]
848
+ [v, n, i]
824
849
  ), c = le(() => {
825
- if (n)
826
- return n.pages.reduce((l, y) => [...l, ...y], []);
827
- }, [n]);
850
+ if (t)
851
+ return t.pages.reduce((s, h) => [...s, ...h], []);
852
+ }, [t]);
828
853
  return {
829
854
  fetchNextPageOnRowsScrollEnd: d,
830
855
  isLoading: i || f,
831
856
  loadingVariant: a ? "skeleton" : "linear",
832
857
  rows: c
833
858
  };
834
- }, Nt = (n) => {
835
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.axios) || (r == null ? void 0 : r.axios);
859
+ }, Gt = (t) => {
860
+ const { libraries: n } = k(A), i = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios);
836
861
  if (i === void 0)
837
862
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
863
+ if (!de(i))
864
+ throw new Error("Provided Axios dependencies are not valid.");
838
865
  return {
839
866
  clearAuthenticationToken: () => {
840
867
  i.defaults.headers.common.Authorization = null;
@@ -843,57 +870,59 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
843
870
  i.defaults.headers.common.Authorization = `${v} ${d}`;
844
871
  }
845
872
  };
846
- }, Et = (n, r = "km") => {
847
- const i = Number(n);
848
- return Number.isNaN(i) ? `0 ${r}` : `${i.toFixed(2)} ${r}`;
849
- }, Rt = (n) => {
850
- const r = n && typeof n == "object" && "pathname" in n && n.pathname ? n.pathname : n;
851
- return typeof r == "string" ? r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}` : r;
852
- }, Ne = (n, r) => {
853
- if (!n)
873
+ }, xt = (t, n = "km") => {
874
+ const i = Number(t);
875
+ return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
876
+ }, St = (t) => {
877
+ const n = t && typeof t == "object" && "pathname" in t && t.pathname ? t.pathname : t;
878
+ return typeof n == "string" ? n != null && n.startsWith("/") ? n != null && n.startsWith("/files") ? n : `/files${n}` : n != null && n.startsWith("files") ? `/${n}` : n != null && n.startsWith("files") ? `/${n}` : `/files/${n}` : n;
879
+ }, Le = (t, n) => {
880
+ if (!t)
854
881
  return "";
855
- const i = Rt(n), a = typeof n == "object" && "pathname" in n ? `${n.origin}${i}` : n;
856
- return typeof r == "number" ? `${a.replace("/files", `/thumbs/${r}`)}` : a;
857
- }, Wt = (n) => {
858
- const { apiURL: r, libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs);
882
+ const i = St(t), a = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
883
+ return typeof n == "number" ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
884
+ }, Bt = (t) => {
885
+ const { apiURL: n, libraries: i } = k(A), a = (t == null ? void 0 : t.dayjs) || (i == null ? void 0 : i.dayjs);
859
886
  return {
860
887
  dateAdapter: (d, c = "ll") => {
861
888
  if (a === void 0)
862
889
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
890
+ if (!Ve(a))
891
+ throw new Error("Provided dayjs instance is not valid.");
863
892
  return a(d).format(c);
864
893
  },
865
- distanceAdapter: Et,
866
- filePathAdapter: (d, c) => Ne(
867
- r && typeof d == "string" ? {
868
- origin: r,
894
+ distanceAdapter: xt,
895
+ filePathAdapter: (d, c) => Le(
896
+ n && typeof d == "string" ? {
897
+ origin: n,
869
898
  pathname: d
870
899
  } : d,
871
900
  c
872
901
  )
873
902
  };
874
- }, _t = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), wt = (n) => {
875
- const a = n.split("/").filter((f) => f.length > 0).map((f) => f.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
903
+ }, bt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Ot = (t) => {
904
+ const a = t.split("/").filter((f) => f.length > 0).map((f) => f.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("")).join("");
876
905
  return a.charAt(0).toLowerCase() + a.slice(1);
877
- }, bt = (n, r, i) => {
878
- const a = wt(r), f = _t(i);
906
+ }, jt = (t, n, i) => {
907
+ const a = Ot(n), f = bt(i);
879
908
  return `${a}${f}`;
880
- }, Ct = (n) => {
881
- if (n)
882
- return (n == null ? void 0 : n.reduce((r, i) => (r[i] = {
909
+ }, At = (t) => {
910
+ if (t)
911
+ return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
883
912
  query: {
884
913
  useInfinite: !0,
885
914
  useInfiniteQueryParam: "offset",
886
915
  useQuery: !0
887
916
  }
888
- }, r), {})) || {};
889
- }, Lt = (n) => {
890
- const { input: r = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = n || {};
917
+ }, n), {})) || {};
918
+ }, qt = (t) => {
919
+ const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
891
920
  return {
892
921
  api: {
893
922
  hooks: {
894
923
  afterAllFilesWrite: "prettier src/api/ --write"
895
924
  },
896
- input: r,
925
+ input: n,
897
926
  output: {
898
927
  client: "react-query",
899
928
  mode: "tags-split",
@@ -907,8 +936,8 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
907
936
  name: "axiosCustomInstance",
908
937
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
909
938
  },
910
- operationName: bt,
911
- ...(i == null ? void 0 : i.length) && { operations: Ct(i) },
939
+ operationName: jt,
940
+ ...(i == null ? void 0 : i.length) && { operations: At(i) },
912
941
  query: {
913
942
  useQuery: !0
914
943
  }
@@ -918,24 +947,24 @@ const A = vt({}), Pt = ({ children: n, apiURL: r, libraries: i }) => {
918
947
  }
919
948
  }
920
949
  };
921
- }, Vt = (n, r, i = "ll") => String(n(r).format(i));
950
+ }, Qt = (t, n, i = "ll") => t(n).format(i);
922
951
  export {
923
- xt as GTMSendPageView,
924
- St as InitializeAxiosConfig,
925
- It as InitializeDaysJSConfig,
926
- Ot as InitializeI18nConfig,
927
- kt as InitializeMapBoxConfig,
928
- At as InitializeSentryConfig,
952
+ $t as GTMSendPageView,
953
+ Ft as InitializeAxiosConfig,
954
+ Mt as InitializeDaysJSConfig,
955
+ Nt as InitializeI18nConfig,
956
+ Lt as InitializeMapBoxConfig,
957
+ Yt as InitializeSentryConfig,
929
958
  A as InjectDependenciesContext,
930
- Pt as InjectDependenciesProvider,
931
- Dt as MaskTextField,
932
- $t as QueryClientProviderWithConfig,
933
- Tt as RequireAuth,
934
- Vt as dateAdapter,
935
- Et as distanceAdapter,
936
- Lt as getOrvalConfig,
937
- Wt as useAdapter,
938
- Nt as useAuth,
939
- Yt as useInfiniteDataGrid,
940
- Ft as useResponseError
959
+ kt as InjectDependenciesProvider,
960
+ Wt as MaskTextField,
961
+ Vt as QueryClientProviderWithConfig,
962
+ It as RequireAuth,
963
+ Qt as dateAdapter,
964
+ xt as distanceAdapter,
965
+ qt as getOrvalConfig,
966
+ Bt as useAdapter,
967
+ Gt as useAuth,
968
+ Ut as useInfiniteDataGrid,
969
+ zt as useResponseError
941
970
  };