@equinor/roma-framework 0.0.5-ALPHA.4 → 0.0.6

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.
Files changed (67) hide show
  1. package/dev-portal/index.d.ts +10 -0
  2. package/dev-portal/index.html +2 -2
  3. package/dev-portal/lib/api/fetcher.d.ts +21 -0
  4. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
  5. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
  6. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
  7. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
  8. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
  9. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
  10. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
  11. package/dev-portal/lib/api/roma/index.d.ts +8 -0
  12. package/dev-portal/lib/api/roma/model/appDto.d.ts +26 -0
  13. package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
  14. package/dev-portal/lib/api/roma/model/environmentDto.d.ts +16 -0
  15. package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
  16. package/dev-portal/lib/api/roma/model/index.d.ts +19 -0
  17. package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
  18. package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
  19. package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
  20. package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
  21. package/dev-portal/lib/api/roma/model/serviceDto.d.ts +16 -0
  22. package/dev-portal/lib/api/roma/model/settingDto.d.ts +13 -0
  23. package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +12 -0
  24. package/dev-portal/lib/api/roma/model/versionDto.d.ts +12 -0
  25. package/dev-portal/lib/api/roma/use-client.d.ts +34 -0
  26. package/dev-portal/lib/api/trade-recap/deal.d.ts +160 -0
  27. package/dev-portal/lib/api/trade-recap/download-recap.d.ts +6 -0
  28. package/dev-portal/lib/api/trade-recap/get-deals.d.ts +15 -0
  29. package/dev-portal/lib/api/trade-recap/get-recap.d.ts +11 -0
  30. package/dev-portal/lib/api/trade-recap/index.d.ts +5 -0
  31. package/dev-portal/lib/api/trade-recap/recap.d.ts +22 -0
  32. package/dev-portal/lib/api/util.d.ts +1 -0
  33. package/dev-portal/lib/app-provider.d.ts +15 -0
  34. package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
  35. package/dev-portal/lib/eds-event-provider.d.ts +6 -0
  36. package/dev-portal/lib/make-component.d.ts +12 -0
  37. package/dev-portal/lib/style-provider.d.ts +7 -0
  38. package/dev-portal/package.json +1 -1
  39. package/dev-portal/roma-framework.umd.js +560 -93
  40. package/index.d.ts +1 -1
  41. package/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
  42. package/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
  43. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
  44. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
  45. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
  46. package/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
  47. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
  48. package/lib/api/roma/index.d.ts +8 -1
  49. package/lib/api/roma/model/appDto.d.ts +26 -0
  50. package/lib/api/roma/model/categoryDto.d.ts +13 -0
  51. package/lib/api/roma/model/environmentDto.d.ts +16 -0
  52. package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
  53. package/lib/api/roma/model/index.d.ts +19 -0
  54. package/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
  55. package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
  56. package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
  57. package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
  58. package/lib/api/roma/model/serviceDto.d.ts +16 -0
  59. package/lib/api/roma/model/settingDto.d.ts +13 -0
  60. package/lib/api/roma/model/settingDtoValue.d.ts +12 -0
  61. package/lib/api/roma/model/versionDto.d.ts +12 -0
  62. package/lib/api/roma/use-client.d.ts +34 -0
  63. package/lib/app-provider.d.ts +15 -0
  64. package/package.json +1 -1
  65. package/roma-framework.mjs +1172 -1723
  66. package/lib/api/roma/get-environment.d.ts +0 -7
  67. package/lib/sse/useSse.d.ts +0 -5
@@ -2,1303 +2,13 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useFramework, FrameworkProvider } from "@equinor/fusion-framework-react";
3
3
  import { configureModules } from "@equinor/fusion-framework-app";
4
4
  import * as React from "react";
5
- import React__default, { useState, useMemo, useEffect, useContext, useRef, useDebugValue, createElement, createContext, forwardRef, lazy } from "react";
5
+ import { useState, useEffect, createContext, forwardRef, lazy, useRef, useContext, useMemo } from "react";
6
6
  import { ModuleProvider } from "@equinor/fusion-framework-react-module";
7
- import { QueryClient, QueryClientProvider, useQueryClient, useQuery } from "@tanstack/react-query";
8
- import { useCurrentApp, useApps } from "@equinor/fusion-framework-react/app";
7
+ import styled, { StyleSheetManager, css, keyframes } from "styled-components";
8
+ import { QueryClient, QueryClientProvider, useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
9
+ import { useCurrentApp, useApps as useApps$1 } from "@equinor/fusion-framework-react/app";
9
10
  import { App } from "@equinor/fusion-framework-module-app/app";
10
11
  import { useHttpClient } from "@equinor/fusion-framework-react-module-http";
11
- var extendStatics = function(d, b2) {
12
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
13
- d2.__proto__ = b3;
14
- } || function(d2, b3) {
15
- for (var p2 in b3)
16
- if (Object.prototype.hasOwnProperty.call(b3, p2))
17
- d2[p2] = b3[p2];
18
- };
19
- return extendStatics(d, b2);
20
- };
21
- function __extends(d, b2) {
22
- if (typeof b2 !== "function" && b2 !== null)
23
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
24
- extendStatics(d, b2);
25
- function __() {
26
- this.constructor = d;
27
- }
28
- d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
29
- }
30
- var __assign = function() {
31
- __assign = Object.assign || function __assign2(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p2 in s)
35
- if (Object.prototype.hasOwnProperty.call(s, p2))
36
- t[p2] = s[p2];
37
- }
38
- return t;
39
- };
40
- return __assign.apply(this, arguments);
41
- };
42
- function __rest$1(s, e) {
43
- var t = {};
44
- for (var p2 in s)
45
- if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
46
- t[p2] = s[p2];
47
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
48
- for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
49
- if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
50
- t[p2[i]] = s[p2[i]];
51
- }
52
- return t;
53
- }
54
- function __values(o) {
55
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
56
- if (m)
57
- return m.call(o);
58
- if (o && typeof o.length === "number")
59
- return {
60
- next: function() {
61
- if (o && i >= o.length)
62
- o = void 0;
63
- return { value: o && o[i++], done: !o };
64
- }
65
- };
66
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
67
- }
68
- function __read(o, n) {
69
- var m = typeof Symbol === "function" && o[Symbol.iterator];
70
- if (!m)
71
- return o;
72
- var i = m.call(o), r, ar = [], e;
73
- try {
74
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
75
- ar.push(r.value);
76
- } catch (error) {
77
- e = { error };
78
- } finally {
79
- try {
80
- if (r && !r.done && (m = i["return"]))
81
- m.call(i);
82
- } finally {
83
- if (e)
84
- throw e.error;
85
- }
86
- }
87
- return ar;
88
- }
89
- function __spreadArray(to, from2, pack) {
90
- if (pack || arguments.length === 2)
91
- for (var i = 0, l = from2.length, ar; i < l; i++) {
92
- if (ar || !(i in from2)) {
93
- if (!ar)
94
- ar = Array.prototype.slice.call(from2, 0, i);
95
- ar[i] = from2[i];
96
- }
97
- }
98
- return to.concat(ar || Array.prototype.slice.call(from2));
99
- }
100
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
101
- var e = new Error(message);
102
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
103
- };
104
- function memoize$1(fn) {
105
- var cache = /* @__PURE__ */ Object.create(null);
106
- return function(arg) {
107
- if (cache[arg] === void 0)
108
- cache[arg] = fn(arg);
109
- return cache[arg];
110
- };
111
- }
112
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
113
- var isPropValid = /* @__PURE__ */ memoize$1(
114
- function(prop) {
115
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
116
- }
117
- /* Z+1 */
118
- );
119
- function getDefaultExportFromCjs(x2) {
120
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
121
- }
122
- var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
123
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
124
- if (ret !== void 0) {
125
- return !!ret;
126
- }
127
- if (objA === objB) {
128
- return true;
129
- }
130
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
131
- return false;
132
- }
133
- var keysA = Object.keys(objA);
134
- var keysB = Object.keys(objB);
135
- if (keysA.length !== keysB.length) {
136
- return false;
137
- }
138
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
139
- for (var idx = 0; idx < keysA.length; idx++) {
140
- var key = keysA[idx];
141
- if (!bHasOwnProperty(key)) {
142
- return false;
143
- }
144
- var valueA = objA[key];
145
- var valueB = objB[key];
146
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
147
- if (ret === false || ret === void 0 && valueA !== valueB) {
148
- return false;
149
- }
150
- }
151
- return true;
152
- };
153
- const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequal);
154
- var MS = "-ms-";
155
- var MOZ = "-moz-";
156
- var WEBKIT = "-webkit-";
157
- var COMMENT = "comm";
158
- var RULESET = "rule";
159
- var DECLARATION = "decl";
160
- var IMPORT = "@import";
161
- var KEYFRAMES = "@keyframes";
162
- var LAYER = "@layer";
163
- var abs = Math.abs;
164
- var from = String.fromCharCode;
165
- var assign = Object.assign;
166
- function hash(value, length2) {
167
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
168
- }
169
- function trim(value) {
170
- return value.trim();
171
- }
172
- function match(value, pattern) {
173
- return (value = pattern.exec(value)) ? value[0] : value;
174
- }
175
- function replace(value, pattern, replacement) {
176
- return value.replace(pattern, replacement);
177
- }
178
- function indexof(value, search) {
179
- return value.indexOf(search);
180
- }
181
- function charat(value, index) {
182
- return value.charCodeAt(index) | 0;
183
- }
184
- function substr(value, begin, end) {
185
- return value.slice(begin, end);
186
- }
187
- function strlen(value) {
188
- return value.length;
189
- }
190
- function sizeof(value) {
191
- return value.length;
192
- }
193
- function append(value, array) {
194
- return array.push(value), value;
195
- }
196
- function combine(array, callback) {
197
- return array.map(callback).join("");
198
- }
199
- function filter$1(array, pattern) {
200
- return array.filter(function(value) {
201
- return !match(value, pattern);
202
- });
203
- }
204
- var line = 1;
205
- var column = 1;
206
- var length = 0;
207
- var position = 0;
208
- var character = 0;
209
- var characters = "";
210
- function node(value, root, parent, type, props, children, length2, siblings) {
211
- return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
212
- }
213
- function copy(root, props) {
214
- return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
215
- }
216
- function lift(root) {
217
- while (root.root)
218
- root = copy(root.root, { children: [root] });
219
- append(root, root.siblings);
220
- }
221
- function char() {
222
- return character;
223
- }
224
- function prev() {
225
- character = position > 0 ? charat(characters, --position) : 0;
226
- if (column--, character === 10)
227
- column = 1, line--;
228
- return character;
229
- }
230
- function next() {
231
- character = position < length ? charat(characters, position++) : 0;
232
- if (column++, character === 10)
233
- column = 1, line++;
234
- return character;
235
- }
236
- function peek() {
237
- return charat(characters, position);
238
- }
239
- function caret() {
240
- return position;
241
- }
242
- function slice(begin, end) {
243
- return substr(characters, begin, end);
244
- }
245
- function token$1(type) {
246
- switch (type) {
247
- case 0:
248
- case 9:
249
- case 10:
250
- case 13:
251
- case 32:
252
- return 5;
253
- case 33:
254
- case 43:
255
- case 44:
256
- case 47:
257
- case 62:
258
- case 64:
259
- case 126:
260
- case 59:
261
- case 123:
262
- case 125:
263
- return 4;
264
- case 58:
265
- return 3;
266
- case 34:
267
- case 39:
268
- case 40:
269
- case 91:
270
- return 2;
271
- case 41:
272
- case 93:
273
- return 1;
274
- }
275
- return 0;
276
- }
277
- function alloc(value) {
278
- return line = column = 1, length = strlen(characters = value), position = 0, [];
279
- }
280
- function dealloc(value) {
281
- return characters = "", value;
282
- }
283
- function delimit(type) {
284
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
285
- }
286
- function whitespace(type) {
287
- while (character = peek())
288
- if (character < 33)
289
- next();
290
- else
291
- break;
292
- return token$1(type) > 2 || token$1(character) > 3 ? "" : " ";
293
- }
294
- function escaping(index, count) {
295
- while (--count && next())
296
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
297
- break;
298
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
299
- }
300
- function delimiter(type) {
301
- while (next())
302
- switch (character) {
303
- case type:
304
- return position;
305
- case 34:
306
- case 39:
307
- if (type !== 34 && type !== 39)
308
- delimiter(character);
309
- break;
310
- case 40:
311
- if (type === 41)
312
- delimiter(type);
313
- break;
314
- case 92:
315
- next();
316
- break;
317
- }
318
- return position;
319
- }
320
- function commenter(type, index) {
321
- while (next())
322
- if (type + character === 47 + 10)
323
- break;
324
- else if (type + character === 42 + 42 && peek() === 47)
325
- break;
326
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
327
- }
328
- function identifier(index) {
329
- while (!token$1(peek()))
330
- next();
331
- return slice(index, position);
332
- }
333
- function compile(value) {
334
- return dealloc(parse$1("", null, null, null, [""], value = alloc(value), 0, [0], value));
335
- }
336
- function parse$1(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
337
- var index = 0;
338
- var offset = 0;
339
- var length2 = pseudo;
340
- var atrule = 0;
341
- var property = 0;
342
- var previous = 0;
343
- var variable = 1;
344
- var scanning = 1;
345
- var ampersand = 1;
346
- var character2 = 0;
347
- var type = "";
348
- var props = rules;
349
- var children = rulesets;
350
- var reference = rule;
351
- var characters2 = type;
352
- while (scanning)
353
- switch (previous = character2, character2 = next()) {
354
- case 40:
355
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
356
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
357
- ampersand = -1;
358
- break;
359
- }
360
- case 34:
361
- case 39:
362
- case 91:
363
- characters2 += delimit(character2);
364
- break;
365
- case 9:
366
- case 10:
367
- case 13:
368
- case 32:
369
- characters2 += whitespace(previous);
370
- break;
371
- case 92:
372
- characters2 += escaping(caret() - 1, 7);
373
- continue;
374
- case 47:
375
- switch (peek()) {
376
- case 42:
377
- case 47:
378
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
379
- break;
380
- default:
381
- characters2 += "/";
382
- }
383
- break;
384
- case 123 * variable:
385
- points[index++] = strlen(characters2) * ampersand;
386
- case 125 * variable:
387
- case 59:
388
- case 0:
389
- switch (character2) {
390
- case 0:
391
- case 125:
392
- scanning = 0;
393
- case 59 + offset:
394
- if (ampersand == -1)
395
- characters2 = replace(characters2, /\f/g, "");
396
- if (property > 0 && strlen(characters2) - length2)
397
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
398
- break;
399
- case 59:
400
- characters2 += ";";
401
- default:
402
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
403
- if (character2 === 123)
404
- if (offset === 0)
405
- parse$1(characters2, root, reference, reference, props, rulesets, length2, points, children);
406
- else
407
- switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
408
- case 100:
409
- case 108:
410
- case 109:
411
- case 115:
412
- parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
413
- break;
414
- default:
415
- parse$1(characters2, reference, reference, reference, [""], children, 0, points, children);
416
- }
417
- }
418
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
419
- break;
420
- case 58:
421
- length2 = 1 + strlen(characters2), property = previous;
422
- default:
423
- if (variable < 1) {
424
- if (character2 == 123)
425
- --variable;
426
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
427
- continue;
428
- }
429
- switch (characters2 += from(character2), character2 * variable) {
430
- case 38:
431
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
432
- break;
433
- case 44:
434
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
435
- break;
436
- case 64:
437
- if (peek() === 45)
438
- characters2 += delimit(next());
439
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
440
- break;
441
- case 45:
442
- if (previous === 45 && strlen(characters2) == 2)
443
- variable = 0;
444
- }
445
- }
446
- return rulesets;
447
- }
448
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
449
- var post = offset - 1;
450
- var rule = offset === 0 ? rules : [""];
451
- var size = sizeof(rule);
452
- for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
453
- for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
454
- if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
455
- props[k2++] = z2;
456
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
457
- }
458
- function comment(value, root, parent, siblings) {
459
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
460
- }
461
- function declaration(value, root, parent, length2, siblings) {
462
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
463
- }
464
- function prefix(value, length2, children) {
465
- switch (hash(value, length2)) {
466
- case 5103:
467
- return WEBKIT + "print-" + value + value;
468
- case 5737:
469
- case 4201:
470
- case 3177:
471
- case 3433:
472
- case 1641:
473
- case 4457:
474
- case 2921:
475
- case 5572:
476
- case 6356:
477
- case 5844:
478
- case 3191:
479
- case 6645:
480
- case 3005:
481
- case 6391:
482
- case 5879:
483
- case 5623:
484
- case 6135:
485
- case 4599:
486
- case 4855:
487
- case 4215:
488
- case 6389:
489
- case 5109:
490
- case 5365:
491
- case 5621:
492
- case 3829:
493
- return WEBKIT + value + value;
494
- case 4789:
495
- return MOZ + value + value;
496
- case 5349:
497
- case 4246:
498
- case 4810:
499
- case 6968:
500
- case 2756:
501
- return WEBKIT + value + MOZ + value + MS + value + value;
502
- case 5936:
503
- switch (charat(value, length2 + 11)) {
504
- case 114:
505
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
506
- case 108:
507
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
508
- case 45:
509
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
510
- }
511
- case 6828:
512
- case 4268:
513
- case 2903:
514
- return WEBKIT + value + MS + value + value;
515
- case 6165:
516
- return WEBKIT + value + MS + "flex-" + value + value;
517
- case 5187:
518
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
519
- case 5443:
520
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
521
- case 4675:
522
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
523
- case 5548:
524
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
525
- case 5292:
526
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
527
- case 6060:
528
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
529
- case 4554:
530
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
531
- case 6187:
532
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
533
- case 5495:
534
- case 3959:
535
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
536
- case 4968:
537
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
538
- case 4200:
539
- if (!match(value, /flex-|baseline/))
540
- return MS + "grid-column-align" + substr(value, length2) + value;
541
- break;
542
- case 2592:
543
- case 3360:
544
- return MS + replace(value, "template-", "") + value;
545
- case 4384:
546
- case 3616:
547
- if (children && children.some(function(element, index) {
548
- return length2 = index, match(element.props, /grid-\w+-end/);
549
- })) {
550
- return ~indexof(value + (children = children[length2].value), "span") ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span") ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
551
- }
552
- return MS + replace(value, "-start", "") + value;
553
- case 4896:
554
- case 4128:
555
- return children && children.some(function(element) {
556
- return match(element.props, /grid-\w+-start/);
557
- }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
558
- case 4095:
559
- case 3583:
560
- case 4068:
561
- case 2532:
562
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
563
- case 8116:
564
- case 7059:
565
- case 5753:
566
- case 5535:
567
- case 5445:
568
- case 5701:
569
- case 4933:
570
- case 4677:
571
- case 5533:
572
- case 5789:
573
- case 5021:
574
- case 4765:
575
- if (strlen(value) - 1 - length2 > 6)
576
- switch (charat(value, length2 + 1)) {
577
- case 109:
578
- if (charat(value, length2 + 4) !== 45)
579
- break;
580
- case 102:
581
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
582
- case 115:
583
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
584
- }
585
- break;
586
- case 5152:
587
- case 5920:
588
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a, b2, c, d, e, f2) {
589
- return MS + a + ":" + b2 + f2 + (c ? MS + a + "-span:" + (d ? e : +e - +b2) + f2 : "") + value;
590
- });
591
- case 4949:
592
- if (charat(value, length2 + 6) === 121)
593
- return replace(value, ":", ":" + WEBKIT) + value;
594
- break;
595
- case 6444:
596
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
597
- case 120:
598
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
599
- case 100:
600
- return replace(value, ":", ":" + MS) + value;
601
- }
602
- break;
603
- case 5719:
604
- case 2647:
605
- case 2135:
606
- case 3927:
607
- case 2391:
608
- return replace(value, "scroll-", "scroll-snap-") + value;
609
- }
610
- return value;
611
- }
612
- function serialize(children, callback) {
613
- var output = "";
614
- for (var i = 0; i < children.length; i++)
615
- output += callback(children[i], i, children, callback) || "";
616
- return output;
617
- }
618
- function stringify(element, index, children, callback) {
619
- switch (element.type) {
620
- case LAYER:
621
- if (element.children.length)
622
- break;
623
- case IMPORT:
624
- case DECLARATION:
625
- return element.return = element.return || element.value;
626
- case COMMENT:
627
- return "";
628
- case KEYFRAMES:
629
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
630
- case RULESET:
631
- if (!strlen(element.value = element.props.join(",")))
632
- return "";
633
- }
634
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
635
- }
636
- function middleware(collection) {
637
- var length2 = sizeof(collection);
638
- return function(element, index, children, callback) {
639
- var output = "";
640
- for (var i = 0; i < length2; i++)
641
- output += collection[i](element, index, children, callback) || "";
642
- return output;
643
- };
644
- }
645
- function rulesheet(callback) {
646
- return function(element) {
647
- if (!element.root) {
648
- if (element = element.return)
649
- callback(element);
650
- }
651
- };
652
- }
653
- function prefixer(element, index, children, callback) {
654
- if (element.length > -1) {
655
- if (!element.return)
656
- switch (element.type) {
657
- case DECLARATION:
658
- element.return = prefix(element.value, element.length, children);
659
- return;
660
- case KEYFRAMES:
661
- return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
662
- case RULESET:
663
- if (element.length)
664
- return combine(children = element.props, function(value) {
665
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
666
- case ":read-only":
667
- case ":read-write":
668
- lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
669
- lift(copy(element, { props: [value] }));
670
- assign(element, { props: filter$1(children, callback) });
671
- break;
672
- case "::placeholder":
673
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
674
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
675
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
676
- lift(copy(element, { props: [value] }));
677
- assign(element, { props: filter$1(children, callback) });
678
- break;
679
- }
680
- return "";
681
- });
682
- }
683
- }
684
- }
685
- var unitlessKeys = {
686
- animationIterationCount: 1,
687
- aspectRatio: 1,
688
- borderImageOutset: 1,
689
- borderImageSlice: 1,
690
- borderImageWidth: 1,
691
- boxFlex: 1,
692
- boxFlexGroup: 1,
693
- boxOrdinalGroup: 1,
694
- columnCount: 1,
695
- columns: 1,
696
- flex: 1,
697
- flexGrow: 1,
698
- flexPositive: 1,
699
- flexShrink: 1,
700
- flexNegative: 1,
701
- flexOrder: 1,
702
- gridRow: 1,
703
- gridRowEnd: 1,
704
- gridRowSpan: 1,
705
- gridRowStart: 1,
706
- gridColumn: 1,
707
- gridColumnEnd: 1,
708
- gridColumnSpan: 1,
709
- gridColumnStart: 1,
710
- msGridRow: 1,
711
- msGridRowSpan: 1,
712
- msGridColumn: 1,
713
- msGridColumnSpan: 1,
714
- fontWeight: 1,
715
- lineHeight: 1,
716
- opacity: 1,
717
- order: 1,
718
- orphans: 1,
719
- tabSize: 1,
720
- widows: 1,
721
- zIndex: 1,
722
- zoom: 1,
723
- WebkitLineClamp: 1,
724
- // SVG-related properties
725
- fillOpacity: 1,
726
- floodOpacity: 1,
727
- stopOpacity: 1,
728
- strokeDasharray: 1,
729
- strokeDashoffset: 1,
730
- strokeMiterlimit: 1,
731
- strokeOpacity: 1,
732
- strokeWidth: 1
733
- };
734
- var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", y = "undefined" != typeof window && "HTMLElement" in window, v = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), S = /invalid hook call/i, w = /* @__PURE__ */ new Set(), b = function(t, n) {
735
- if ("production" !== process.env.NODE_ENV) {
736
- var o = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i = console.error;
737
- try {
738
- var a = true;
739
- console.error = function(t2) {
740
- for (var n2 = [], o2 = 1; o2 < arguments.length; o2++)
741
- n2[o2 - 1] = arguments[o2];
742
- S.test(t2) ? (a = false, w.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
743
- }, useRef(), a && !w.has(s) && (console.warn(s), w.add(s));
744
- } catch (e) {
745
- S.test(e.message) && w.delete(s);
746
- } finally {
747
- console.error = i;
748
- }
749
- }
750
- }, E = Object.freeze([]), N = Object.freeze({});
751
- function P(e, t, n) {
752
- return void 0 === n && (n = N), e.theme !== n.theme && e.theme || t || n.theme;
753
- }
754
- var _ = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), C = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, I = /(^-|-$)/g;
755
- function A(e) {
756
- return e.replace(C, "-").replace(I, "");
757
- }
758
- var O = /(a)(d)/gi, D = function(e) {
759
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
760
- };
761
- function R(e) {
762
- var t, n = "";
763
- for (t = Math.abs(e); t > 52; t = t / 52 | 0)
764
- n = D(t % 52) + n;
765
- return (D(t % 52) + n).replace(O, "$1-$2");
766
- }
767
- var T, k = function(e, t) {
768
- for (var n = t.length; n; )
769
- e = 33 * e ^ t.charCodeAt(--n);
770
- return e;
771
- }, j = function(e) {
772
- return k(5381, e);
773
- };
774
- function x(e) {
775
- return R(j(e) >>> 0);
776
- }
777
- function V(e) {
778
- return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
779
- }
780
- function F(e) {
781
- return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
782
- }
783
- var M = "function" == typeof Symbol && Symbol.for, $ = M ? Symbol.for("react.memo") : 60115, z = M ? Symbol.for("react.forward_ref") : 60112, B = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }, L = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }, G = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }, Y = ((T = {})[z] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, T[$] = G, T);
784
- function W(e) {
785
- return ("type" in (t = e) && t.type.$$typeof) === $ ? G : "$$typeof" in e ? Y[e.$$typeof] : B;
786
- var t;
787
- }
788
- var q = Object.defineProperty, H = Object.getOwnPropertyNames, U = Object.getOwnPropertySymbols, J = Object.getOwnPropertyDescriptor, X = Object.getPrototypeOf, Z = Object.prototype;
789
- function K(e, t, n) {
790
- if ("string" != typeof t) {
791
- if (Z) {
792
- var o = X(t);
793
- o && o !== Z && K(e, o, n);
794
- }
795
- var r = H(t);
796
- U && (r = r.concat(U(t)));
797
- for (var s = W(e), i = W(t), a = 0; a < r.length; ++a) {
798
- var c = r[a];
799
- if (!(c in L || n && n[c] || i && c in i || s && c in s)) {
800
- var l = J(t, c);
801
- try {
802
- q(e, c, l);
803
- } catch (e2) {
804
- }
805
- }
806
- }
807
- }
808
- return e;
809
- }
810
- function Q(e) {
811
- return "function" == typeof e;
812
- }
813
- function ee(e) {
814
- return "object" == typeof e && "styledComponentId" in e;
815
- }
816
- function te(e, t) {
817
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
818
- }
819
- function ne(e, t) {
820
- if (0 === e.length)
821
- return "";
822
- for (var n = e[0], o = 1; o < e.length; o++)
823
- n += t ? t + e[o] : e[o];
824
- return n;
825
- }
826
- function oe(e) {
827
- return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
828
- }
829
- function re$1(e, t, n) {
830
- if (void 0 === n && (n = false), !n && !oe(e) && !Array.isArray(e))
831
- return t;
832
- if (Array.isArray(t))
833
- for (var o = 0; o < t.length; o++)
834
- e[o] = re$1(e[o], t[o]);
835
- else if (oe(t))
836
- for (var o in t)
837
- e[o] = re$1(e[o], t[o]);
838
- return e;
839
- }
840
- function se(e, t) {
841
- Object.defineProperty(e, "toString", { value: t });
842
- }
843
- var ie = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
844
- function ae() {
845
- for (var e = [], t = 0; t < arguments.length; t++)
846
- e[t] = arguments[t];
847
- for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1)
848
- o.push(e[r]);
849
- return o.forEach(function(e2) {
850
- n = n.replace(/%[a-z]/, e2);
851
- }), n;
852
- }
853
- function ce(t) {
854
- for (var n = [], o = 1; o < arguments.length; o++)
855
- n[o - 1] = arguments[o];
856
- return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(ae.apply(void 0, __spreadArray([ie[t]], n, false)).trim());
857
- }
858
- var le = function() {
859
- function e(e2) {
860
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
861
- }
862
- return e.prototype.indexOfGroup = function(e2) {
863
- for (var t = 0, n = 0; n < e2; n++)
864
- t += this.groupSizes[n];
865
- return t;
866
- }, e.prototype.insertRules = function(e2, t) {
867
- if (e2 >= this.groupSizes.length) {
868
- for (var n = this.groupSizes, o = n.length, r = o; e2 >= r; )
869
- if ((r <<= 1) < 0)
870
- throw ce(16, "".concat(e2));
871
- this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
872
- for (var s = o; s < r; s++)
873
- this.groupSizes[s] = 0;
874
- }
875
- for (var i = this.indexOfGroup(e2 + 1), a = (s = 0, t.length); s < a; s++)
876
- this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++);
877
- }, e.prototype.clearGroup = function(e2) {
878
- if (e2 < this.length) {
879
- var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o = n + t;
880
- this.groupSizes[e2] = 0;
881
- for (var r = n; r < o; r++)
882
- this.tag.deleteRule(n);
883
- }
884
- }, e.prototype.getGroup = function(e2) {
885
- var t = "";
886
- if (e2 >= this.length || 0 === this.groupSizes[e2])
887
- return t;
888
- for (var n = this.groupSizes[e2], o = this.indexOfGroup(e2), r = o + n, s = o; s < r; s++)
889
- t += "".concat(this.tag.getRule(s)).concat("/*!sc*/\n");
890
- return t;
891
- }, e;
892
- }(), ue = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Map(), de = 1, he = function(e) {
893
- if (ue.has(e))
894
- return ue.get(e);
895
- for (; pe.has(de); )
896
- de++;
897
- var t = de++;
898
- if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824))
899
- throw ce(16, "".concat(t));
900
- return ue.set(e, t), pe.set(t, e), t;
901
- }, fe = function(e, t) {
902
- ue.set(e, t), pe.set(t, e);
903
- }, me = "style[".concat(f, "][").concat("data-styled-version", '="').concat("6.0.8", '"]'), ye = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ve = function(e, t, n) {
904
- for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++)
905
- (o = r[s]) && e.registerName(t, o);
906
- }, ge = function(e, t) {
907
- for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split("/*!sc*/\n"), r = [], s = 0, i = o.length; s < i; s++) {
908
- var a = o[s].trim();
909
- if (a) {
910
- var c = a.match(ye);
911
- if (c) {
912
- var l = 0 | parseInt(c[1], 10), u = c[2];
913
- 0 !== l && (fe(u, l), ve(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
914
- } else
915
- r.push(a);
916
- }
917
- }
918
- };
919
- function Se() {
920
- return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
921
- }
922
- var we = function(e) {
923
- var t = document.head, n = e || t, o = document.createElement("style"), r = function(e2) {
924
- var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
925
- return t2[t2.length - 1];
926
- }(n), s = void 0 !== r ? r.nextSibling : null;
927
- o.setAttribute(f, "active"), o.setAttribute("data-styled-version", "6.0.8");
928
- var i = Se();
929
- return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
930
- }, be = function() {
931
- function e(e2) {
932
- this.element = we(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
933
- if (e3.sheet)
934
- return e3.sheet;
935
- for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
936
- var r = t[n];
937
- if (r.ownerNode === e3)
938
- return r;
939
- }
940
- throw ce(17);
941
- }(this.element), this.length = 0;
942
- }
943
- return e.prototype.insertRule = function(e2, t) {
944
- try {
945
- return this.sheet.insertRule(t, e2), this.length++, true;
946
- } catch (e3) {
947
- return false;
948
- }
949
- }, e.prototype.deleteRule = function(e2) {
950
- this.sheet.deleteRule(e2), this.length--;
951
- }, e.prototype.getRule = function(e2) {
952
- var t = this.sheet.cssRules[e2];
953
- return t && t.cssText ? t.cssText : "";
954
- }, e;
955
- }(), Ee = function() {
956
- function e(e2) {
957
- this.element = we(e2), this.nodes = this.element.childNodes, this.length = 0;
958
- }
959
- return e.prototype.insertRule = function(e2, t) {
960
- if (e2 <= this.length && e2 >= 0) {
961
- var n = document.createTextNode(t);
962
- return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
963
- }
964
- return false;
965
- }, e.prototype.deleteRule = function(e2) {
966
- this.element.removeChild(this.nodes[e2]), this.length--;
967
- }, e.prototype.getRule = function(e2) {
968
- return e2 < this.length ? this.nodes[e2].textContent : "";
969
- }, e;
970
- }(), Ne = function() {
971
- function e(e2) {
972
- this.rules = [], this.length = 0;
973
- }
974
- return e.prototype.insertRule = function(e2, t) {
975
- return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
976
- }, e.prototype.deleteRule = function(e2) {
977
- this.rules.splice(e2, 1), this.length--;
978
- }, e.prototype.getRule = function(e2) {
979
- return e2 < this.length ? this.rules[e2] : "";
980
- }, e;
981
- }(), Pe = y, _e = { isServer: !y, useCSSOMInjection: !v }, Ce = function() {
982
- function e(e2, n, o) {
983
- void 0 === e2 && (e2 = N), void 0 === n && (n = {});
984
- var r = this;
985
- this.options = __assign(__assign({}, _e), e2), this.gs = n, this.names = new Map(o), this.server = !!e2.isServer, !this.server && y && Pe && (Pe = false, function(e3) {
986
- for (var t = document.querySelectorAll(me), n2 = 0, o2 = t.length; n2 < o2; n2++) {
987
- var r2 = t[n2];
988
- r2 && "active" !== r2.getAttribute(f) && (ge(e3, r2), r2.parentNode && r2.parentNode.removeChild(r2));
989
- }
990
- }(this)), se(this, function() {
991
- return function(e3) {
992
- for (var t = e3.getTag(), n2 = t.length, o2 = "", r2 = function(n3) {
993
- var r3 = function(e4) {
994
- return pe.get(e4);
995
- }(n3);
996
- if (void 0 === r3)
997
- return "continue";
998
- var s2 = e3.names.get(r3), i = t.getGroup(n3);
999
- if (void 0 === s2 || 0 === i.length)
1000
- return "continue";
1001
- var a = "".concat(f, ".g").concat(n3, '[id="').concat(r3, '"]'), c = "";
1002
- void 0 !== s2 && s2.forEach(function(e4) {
1003
- e4.length > 0 && (c += "".concat(e4, ","));
1004
- }), o2 += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat("/*!sc*/\n");
1005
- }, s = 0; s < n2; s++)
1006
- r2(s);
1007
- return o2;
1008
- }(r);
1009
- });
1010
- }
1011
- return e.registerId = function(e2) {
1012
- return he(e2);
1013
- }, e.prototype.reconstructWithOptions = function(n, o) {
1014
- return void 0 === o && (o = true), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
1015
- }, e.prototype.allocateGSInstance = function(e2) {
1016
- return this.gs[e2] = (this.gs[e2] || 0) + 1;
1017
- }, e.prototype.getTag = function() {
1018
- return this.tag || (this.tag = (e2 = function(e3) {
1019
- var t = e3.useCSSOMInjection, n = e3.target;
1020
- return e3.isServer ? new Ne(n) : t ? new be(n) : new Ee(n);
1021
- }(this.options), new le(e2)));
1022
- var e2;
1023
- }, e.prototype.hasNameForId = function(e2, t) {
1024
- return this.names.has(e2) && this.names.get(e2).has(t);
1025
- }, e.prototype.registerName = function(e2, t) {
1026
- if (he(e2), this.names.has(e2))
1027
- this.names.get(e2).add(t);
1028
- else {
1029
- var n = /* @__PURE__ */ new Set();
1030
- n.add(t), this.names.set(e2, n);
1031
- }
1032
- }, e.prototype.insertRules = function(e2, t, n) {
1033
- this.registerName(e2, t), this.getTag().insertRules(he(e2), n);
1034
- }, e.prototype.clearNames = function(e2) {
1035
- this.names.has(e2) && this.names.get(e2).clear();
1036
- }, e.prototype.clearRules = function(e2) {
1037
- this.getTag().clearGroup(he(e2)), this.clearNames(e2);
1038
- }, e.prototype.clearTag = function() {
1039
- this.tag = void 0;
1040
- }, e;
1041
- }(), Ie = /&/g, Ae = /^\s*\/\/.*$/gm;
1042
- function Oe(e, t) {
1043
- return e.map(function(e2) {
1044
- return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) {
1045
- return "".concat(t, " ").concat(e3);
1046
- })), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Oe(e2.children, t)), e2;
1047
- });
1048
- }
1049
- function De(e) {
1050
- var t, n, o, r = void 0 === e ? N : e, s = r.options, i = void 0 === s ? N : s, a = r.plugins, c = void 0 === a ? E : a, l = function(e2, o2, r2) {
1051
- return r2 === n || r2.startsWith(n) && r2.endsWith(n) && r2.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
1052
- }, u = c.slice();
1053
- u.push(function(e2) {
1054
- e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(Ie, n).replace(o, l));
1055
- }), i.prefix && u.push(prefixer), u.push(stringify);
1056
- var p2 = function(e2, r2, s2, a2) {
1057
- void 0 === r2 && (r2 = ""), void 0 === s2 && (s2 = ""), void 0 === a2 && (a2 = "&"), t = a2, n = r2, o = new RegExp("\\".concat(n, "\\b"), "g");
1058
- var c2 = e2.replace(Ae, ""), l2 = compile(s2 || r2 ? "".concat(s2, " ").concat(r2, " { ").concat(c2, " }") : c2);
1059
- i.namespace && (l2 = Oe(l2, i.namespace));
1060
- var p3 = [];
1061
- return serialize(l2, middleware(u.concat(rulesheet(function(e3) {
1062
- return p3.push(e3);
1063
- })))), p3;
1064
- };
1065
- return p2.hash = c.length ? c.reduce(function(e2, t2) {
1066
- return t2.name || ce(15), k(e2, t2.name);
1067
- }, 5381).toString() : "", p2;
1068
- }
1069
- var Re = new Ce(), Te = De(), ke = React__default.createContext({ shouldForwardProp: void 0, styleSheet: Re, stylis: Te });
1070
- ke.Consumer;
1071
- var xe = React__default.createContext(void 0);
1072
- function Ve() {
1073
- return useContext(ke);
1074
- }
1075
- function Fe(e) {
1076
- var t = useState(e.stylisPlugins), n = t[0], r = t[1], c = Ve().styleSheet, l = useMemo(function() {
1077
- var t2 = c;
1078
- return e.sheet ? t2 = e.sheet : e.target && (t2 = t2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (t2 = t2.reconstructWithOptions({ useCSSOMInjection: false })), t2;
1079
- }, [e.disableCSSOMInjection, e.sheet, e.target, c]), u = useMemo(function() {
1080
- return De({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1081
- }, [e.enableVendorPrefixes, e.namespace, n]);
1082
- useEffect(function() {
1083
- p(n, e.stylisPlugins) || r(e.stylisPlugins);
1084
- }, [e.stylisPlugins]);
1085
- var d = useMemo(function() {
1086
- return { shouldForwardProp: e.shouldForwardProp, styleSheet: l, stylis: u };
1087
- }, [e.shouldForwardProp, l, u]);
1088
- return React__default.createElement(ke.Provider, { value: d }, React__default.createElement(xe.Provider, { value: u }, e.children));
1089
- }
1090
- var Me = function() {
1091
- function e(e2, t) {
1092
- var n = this;
1093
- this.inject = function(e3, t2) {
1094
- void 0 === t2 && (t2 = Te);
1095
- var o = n.name + t2.hash;
1096
- e3.hasNameForId(n.id, o) || e3.insertRules(n.id, o, t2(n.rules, o, "@keyframes"));
1097
- }, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, se(this, function() {
1098
- throw ce(12, String(n.name));
1099
- });
1100
- }
1101
- return e.prototype.getName = function(e2) {
1102
- return void 0 === e2 && (e2 = Te), this.name + e2.hash;
1103
- }, e;
1104
- }(), $e = function(e) {
1105
- return e >= "A" && e <= "Z";
1106
- };
1107
- function ze(e) {
1108
- for (var t = "", n = 0; n < e.length; n++) {
1109
- var o = e[n];
1110
- if (1 === n && "-" === o && "-" === e[0])
1111
- return e;
1112
- $e(o) ? t += "-" + o.toLowerCase() : t += o;
1113
- }
1114
- return t.startsWith("ms-") ? "-" + t : t;
1115
- }
1116
- var Be = function(e) {
1117
- return null == e || false === e || "" === e;
1118
- }, Le = function(t) {
1119
- var n, o, r = [];
1120
- for (var s in t) {
1121
- var i = t[s];
1122
- t.hasOwnProperty(s) && !Be(i) && (Array.isArray(i) && i.isCss || Q(i) ? r.push("".concat(ze(s), ":"), i, ";") : oe(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Le(i), false), ["}"], false)) : r.push("".concat(ze(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
1123
- }
1124
- return r;
1125
- };
1126
- function Ge(e, t, n, o) {
1127
- if (Be(e))
1128
- return [];
1129
- if (ee(e))
1130
- return [".".concat(e.styledComponentId)];
1131
- if (Q(e)) {
1132
- if (!Q(s = e) || s.prototype && s.prototype.isReactComponent || !t)
1133
- return [e];
1134
- var r = e(t);
1135
- return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof Me || oe(r) || null === r || console.error("".concat(V(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ge(r, t, n, o);
1136
- }
1137
- var s;
1138
- return e instanceof Me ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : oe(e) ? Le(e) : Array.isArray(e) ? Array.prototype.concat.apply(E, e.map(function(e2) {
1139
- return Ge(e2, t, n, o);
1140
- })) : [e.toString()];
1141
- }
1142
- function Ye(e) {
1143
- for (var t = 0; t < e.length; t += 1) {
1144
- var n = e[t];
1145
- if (Q(n) && !ee(n))
1146
- return false;
1147
- }
1148
- return true;
1149
- }
1150
- var We = j("6.0.8"), qe = function() {
1151
- function e(e2, t, n) {
1152
- this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ye(e2), this.componentId = t, this.baseHash = k(We, t), this.baseStyle = n, Ce.registerId(t);
1153
- }
1154
- return e.prototype.generateAndInjectStyles = function(e2, t, n) {
1155
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
1156
- if (this.isStatic && !n.hash)
1157
- if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId))
1158
- o = te(o, this.staticRulesId);
1159
- else {
1160
- var r = ne(Ge(this.rules, e2, t, n)), s = R(k(this.baseHash, r) >>> 0);
1161
- if (!t.hasNameForId(this.componentId, s)) {
1162
- var i = n(r, ".".concat(s), void 0, this.componentId);
1163
- t.insertRules(this.componentId, s, i);
1164
- }
1165
- o = te(o, s), this.staticRulesId = s;
1166
- }
1167
- else {
1168
- for (var a = k(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
1169
- var u = this.rules[l];
1170
- if ("string" == typeof u)
1171
- c += u, "production" !== process.env.NODE_ENV && (a = k(a, u));
1172
- else if (u) {
1173
- var p2 = ne(Ge(u, e2, t, n));
1174
- a = k(a, p2 + l), c += p2;
1175
- }
1176
- }
1177
- if (c) {
1178
- var d = R(a >>> 0);
1179
- t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = te(o, d);
1180
- }
1181
- }
1182
- return o;
1183
- }, e;
1184
- }(), He = React__default.createContext(void 0);
1185
- He.Consumer;
1186
- var Ze = {}, Ke = /* @__PURE__ */ new Set();
1187
- function Qe(e, r, s) {
1188
- var i = ee(e), a = e, c = !F(e), p2 = r.attrs, d = void 0 === p2 ? E : p2, h = r.componentId, f2 = void 0 === h ? function(e2, t) {
1189
- var n = "string" != typeof e2 ? "sc" : A(e2);
1190
- Ze[n] = (Ze[n] || 0) + 1;
1191
- var o = "".concat(n, "-").concat(x("6.0.8" + n + Ze[n]));
1192
- return t ? "".concat(t, "-").concat(o) : o;
1193
- }(r.displayName, r.parentComponentId) : h, m = r.displayName, y2 = void 0 === m ? function(e2) {
1194
- return F(e2) ? "styled.".concat(e2) : "Styled(".concat(V(e2), ")");
1195
- }(e) : m, v2 = r.displayName && r.componentId ? "".concat(A(r.displayName), "-").concat(r.componentId) : r.componentId || f2, g = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, S2 = r.shouldForwardProp;
1196
- if (i && a.shouldForwardProp) {
1197
- var w2 = a.shouldForwardProp;
1198
- if (r.shouldForwardProp) {
1199
- var C2 = r.shouldForwardProp;
1200
- S2 = function(e2, t) {
1201
- return w2(e2, t) && C2(e2, t);
1202
- };
1203
- } else
1204
- S2 = w2;
1205
- }
1206
- var I2 = new qe(s, v2, i ? a.componentStyle : void 0);
1207
- function O2(e2, r2) {
1208
- return function(e3, r3, s2) {
1209
- var i2 = e3.attrs, a2 = e3.componentStyle, c2 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = React__default.useContext(He), m2 = Ve(), y3 = e3.shouldForwardProp || m2.shouldForwardProp;
1210
- "production" !== process.env.NODE_ENV && useDebugValue(d2);
1211
- var v3 = function(e4, n, o) {
1212
- for (var r4, s3 = __assign(__assign({}, n), { className: void 0, theme: o }), i3 = 0; i3 < e4.length; i3 += 1) {
1213
- var a3 = Q(r4 = e4[i3]) ? r4(s3) : r4;
1214
- for (var c3 in a3)
1215
- s3[c3] = "className" === c3 ? te(s3[c3], a3[c3]) : "style" === c3 ? __assign(__assign({}, s3[c3]), a3[c3]) : a3[c3];
1216
- }
1217
- return n.className && (s3.className = te(s3.className, n.className)), s3;
1218
- }(i2, r3, P(r3, f3, c2) || N), g2 = v3.as || h2, S3 = {};
1219
- for (var w3 in v3)
1220
- void 0 === v3[w3] || "$" === w3[0] || "as" === w3 || "theme" === w3 || ("forwardedAs" === w3 ? S3.as = v3.forwardedAs : y3 && !y3(w3, g2) || (S3[w3] = v3[w3], y3 || "development" !== process.env.NODE_ENV || isPropValid(w3) || Ke.has(w3) || !_.has(g2) || (Ke.add(w3), console.warn('styled-components: it looks like an unknown prop "'.concat(w3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1221
- var b2 = function(e4, t) {
1222
- var n = Ve(), o = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
1223
- return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
1224
- }(a2, v3);
1225
- "production" !== process.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(b2);
1226
- var E2 = te(p3, d2);
1227
- return b2 && (E2 += " " + b2), v3.className && (E2 += " " + v3.className), S3[F(g2) && !_.has(g2) ? "class" : "className"] = E2, S3.ref = s2, createElement(g2, S3);
1228
- }(D2, e2, r2);
1229
- }
1230
- "production" !== process.env.NODE_ENV && (O2.displayName = y2);
1231
- var D2 = React__default.forwardRef(O2);
1232
- return D2.attrs = g, D2.componentStyle = I2, D2.shouldForwardProp = S2, "production" !== process.env.NODE_ENV && (D2.displayName = y2), D2.foldedComponentIds = i ? te(a.foldedComponentIds, a.styledComponentId) : "", D2.styledComponentId = v2, D2.target = i ? a.target : e, Object.defineProperty(D2, "defaultProps", { get: function() {
1233
- return this._foldedDefaultProps;
1234
- }, set: function(e2) {
1235
- this._foldedDefaultProps = i ? function(e3) {
1236
- for (var t = [], n = 1; n < arguments.length; n++)
1237
- t[n - 1] = arguments[n];
1238
- for (var o = 0, r2 = t; o < r2.length; o++)
1239
- re$1(e3, r2[o], true);
1240
- return e3;
1241
- }({}, a.defaultProps, e2) : e2;
1242
- } }), "production" !== process.env.NODE_ENV && (b(y2, v2), D2.warnTooManyClasses = function(e2, t) {
1243
- var n = {}, o = false;
1244
- return function(r2) {
1245
- if (!o && (n[r2] = true, Object.keys(n).length >= 200)) {
1246
- var s2 = t ? ' with the id of "'.concat(t, '"') : "";
1247
- console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o = true, n = {};
1248
- }
1249
- };
1250
- }(y2, v2)), se(D2, function() {
1251
- return ".".concat(D2.styledComponentId);
1252
- }), c && K(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
1253
- }
1254
- function et(e, t) {
1255
- for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1)
1256
- n.push(t[o], e[o + 1]);
1257
- return n;
1258
- }
1259
- var tt = function(e) {
1260
- return Object.assign(e, { isCss: true });
1261
- };
1262
- function nt(t) {
1263
- for (var n = [], o = 1; o < arguments.length; o++)
1264
- n[o - 1] = arguments[o];
1265
- if (Q(t) || oe(t)) {
1266
- var r = t;
1267
- return tt(Ge(et(E, __spreadArray([r], n, true))));
1268
- }
1269
- var s = t;
1270
- return 0 === n.length && 1 === s.length && "string" == typeof s[0] ? Ge(s) : tt(Ge(et(s, n)));
1271
- }
1272
- function ot(n, o, r) {
1273
- if (void 0 === r && (r = N), !o)
1274
- throw ce(1, o);
1275
- var s = function(t) {
1276
- for (var s2 = [], i = 1; i < arguments.length; i++)
1277
- s2[i - 1] = arguments[i];
1278
- return n(o, r, nt.apply(void 0, __spreadArray([t], s2, false)));
1279
- };
1280
- return s.attrs = function(e) {
1281
- return ot(n, o, __assign(__assign({}, r), { attrs: Array.prototype.concat(r.attrs, e).filter(Boolean) }));
1282
- }, s.withConfig = function(e) {
1283
- return ot(n, o, __assign(__assign({}, r), e));
1284
- }, s;
1285
- }
1286
- var rt = function(e) {
1287
- return ot(Qe, e);
1288
- }, st = rt;
1289
- _.forEach(function(e) {
1290
- st[e] = rt(e);
1291
- });
1292
- function ct(t) {
1293
- for (var n = [], o = 1; o < arguments.length; o++)
1294
- n[o - 1] = arguments[o];
1295
- "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1296
- var r = ne(nt.apply(void 0, __spreadArray([t], n, false))), s = x(r);
1297
- return new Me(s, r);
1298
- }
1299
- "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
1300
- var dt = "__sc-".concat(f, "__");
1301
- "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[dt] || (window[dt] = 0), 1 === window[dt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[dt] += 1);
1302
12
  const createExtraScopePlugin = (scope) => {
1303
13
  const plugin = (element, index, childEls) => {
1304
14
  if (element.type === "rule") {
@@ -1312,7 +22,7 @@ const createExtraScopePlugin = (scope) => {
1312
22
  };
1313
23
  const StyleProvider = ({ scope, children }) => {
1314
24
  const stylisPlugins = scope ? [createExtraScopePlugin(`#${scope}`)] : [];
1315
- return /* @__PURE__ */ jsx(Fe, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
25
+ return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
1316
26
  };
1317
27
  function _typeof(o) {
1318
28
  "@babel/helpers - typeof";
@@ -2410,20 +1120,20 @@ function _arrayWithHoles(arr) {
2410
1120
  function _iterableToArrayLimit(r, l) {
2411
1121
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2412
1122
  if (null != t) {
2413
- var e, n, i, u, a = [], f2 = true, o = false;
1123
+ var e, n, i, u, a = [], f = true, o = false;
2414
1124
  try {
2415
1125
  if (i = (t = t.call(r)).next, 0 === l) {
2416
1126
  if (Object(t) !== t)
2417
1127
  return;
2418
- f2 = false;
1128
+ f = false;
2419
1129
  } else
2420
- for (; !(f2 = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f2 = true)
1130
+ for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
2421
1131
  ;
2422
1132
  } catch (r2) {
2423
1133
  o = true, n = r2;
2424
1134
  } finally {
2425
1135
  try {
2426
- if (!f2 && null != t["return"] && (u = t["return"](), Object(u) !== u))
1136
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
2427
1137
  return;
2428
1138
  } finally {
2429
1139
  if (o)
@@ -2472,27 +1182,27 @@ var shorthand = function shorthand2(token2) {
2472
1182
  var bordersTemplate = function bordersTemplate2(border2) {
2473
1183
  var _border$left, _border$left2, _border$right, _border$right2;
2474
1184
  if (!border2) {
2475
- return nt({});
1185
+ return css({});
2476
1186
  }
2477
1187
  switch (border2.type) {
2478
1188
  case "border":
2479
- return nt({
1189
+ return css({
2480
1190
  border: shorthand(border2),
2481
1191
  borderRadius: border2.radius
2482
1192
  });
2483
1193
  case "bordergroup":
2484
- return nt({
1194
+ return css({
2485
1195
  borderBottom: shorthand(border2.bottom),
2486
1196
  borderTop: shorthand(border2.top),
2487
1197
  borderLeft: shorthand(border2.left),
2488
1198
  borderRight: shorthand(border2.right),
2489
- borderBottomLeftRadius: border2 === null || border2 === void 0 ? void 0 : (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
2490
- borderTopLeftRadius: border2 === null || border2 === void 0 ? void 0 : (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
2491
- borderBottomRightRadius: border2 === null || border2 === void 0 ? void 0 : (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
2492
- borderTopRightRadius: border2 === null || border2 === void 0 ? void 0 : (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
1199
+ borderBottomLeftRadius: border2 === null || border2 === void 0 || (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
1200
+ borderTopLeftRadius: border2 === null || border2 === void 0 || (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
1201
+ borderBottomRightRadius: border2 === null || border2 === void 0 || (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
1202
+ borderTopRightRadius: border2 === null || border2 === void 0 || (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
2493
1203
  });
2494
1204
  default:
2495
- return nt({});
1205
+ return css({});
2496
1206
  }
2497
1207
  };
2498
1208
  var focusColor = tokens.colors.interactive.focus.rgba;
@@ -2505,7 +1215,7 @@ var outlineTemplate = function outlineTemplate2(outline) {
2505
1215
  offset,
2506
1216
  type
2507
1217
  };
2508
- return nt({
1218
+ return css({
2509
1219
  outline: shorthand(outline_),
2510
1220
  outlineOffset: outline_.offset
2511
1221
  });
@@ -2604,7 +1314,7 @@ var paper = {
2604
1314
  background
2605
1315
  };
2606
1316
  var _excluded$8 = ["elevation"];
2607
- var StyledPaper = st.div.withConfig({
1317
+ var StyledPaper = styled.div.withConfig({
2608
1318
  displayName: "Paper__StyledPaper",
2609
1319
  componentId: "sc-6ncnv9-0"
2610
1320
  })(["background:", ";box-shadow:", ";"], paper.background, function(_ref) {
@@ -2623,7 +1333,7 @@ var Paper = /* @__PURE__ */ forwardRef(function Paper2(_ref2, ref) {
2623
1333
  });
2624
1334
  var _excluded$7 = ["children", "variant", "elevation"];
2625
1335
  var primary$1 = primary$2;
2626
- var StyledCard = st(Paper).withConfig({
1336
+ var StyledCard = styled(Paper).withConfig({
2627
1337
  displayName: "Card__StyledCard",
2628
1338
  componentId: "sc-bjucjn-0"
2629
1339
  })(["width:100%;position:relative;background-color:", ";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;", ";"], function(_ref) {
@@ -2708,7 +1418,7 @@ var toVariantName = function toVariantName2(variant) {
2708
1418
  var link2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
2709
1419
  return "".concat(variant).concat(bold ? "_bold" : "").concat(italic ? "_italic" : "").concat(link2 ? "_link" : "");
2710
1420
  };
2711
- var StyledTypography = st.p.withConfig({
1421
+ var StyledTypography = styled.p.withConfig({
2712
1422
  displayName: "Typography__StyledTypography",
2713
1423
  componentId: "sc-179guof-0"
2714
1424
  })(["", " ", " ", " ", ""], function(_ref) {
@@ -2716,18 +1426,18 @@ var StyledTypography = st.p.withConfig({
2716
1426
  return typographyTemplate($typography, $link);
2717
1427
  }, function(_ref2) {
2718
1428
  var $color = _ref2.$color;
2719
- return nt({
1429
+ return css({
2720
1430
  color: findColor($color)
2721
1431
  });
2722
1432
  }, function(_ref3) {
2723
1433
  var $lines = _ref3.$lines;
2724
1434
  return (
2725
1435
  //https://caniuse.com/#feat=css-line-clamp
2726
- $lines > 0 && nt(["&{display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"], $lines)
1436
+ $lines > 0 && css(["&{display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"], $lines)
2727
1437
  );
2728
1438
  }, function(_ref4) {
2729
1439
  var $link = _ref4.$link;
2730
- return $link && nt(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline));
1440
+ return $link && css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline));
2731
1441
  });
2732
1442
  var Typography = /* @__PURE__ */ forwardRef(function Typography2(_ref5, ref) {
2733
1443
  var _ref5$variant = _ref5.variant, variant = _ref5$variant === void 0 ? "body_short" : _ref5$variant, children = _ref5.children, bold = _ref5.bold, italic = _ref5.italic, link2 = _ref5.link, lines = _ref5.lines, color = _ref5.color, group = _ref5.group, token2 = _ref5.token, providedAs = _ref5.as, other = _objectWithoutProperties(_ref5, _excluded$6);
@@ -2750,7 +1460,7 @@ var Typography = /* @__PURE__ */ forwardRef(function Typography2(_ref5, ref) {
2750
1460
  });
2751
1461
  var _excluded$5 = ["children", "alignRight", "meta"];
2752
1462
  var spacings$3 = primary$2.spacings;
2753
- var StyledCardActions = st.div.withConfig({
1463
+ var StyledCardActions = styled.div.withConfig({
2754
1464
  displayName: "CardActions__StyledCardActions",
2755
1465
  componentId: "sc-1d5vskp-0"
2756
1466
  })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";margin-top:auto;&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], function(_ref) {
@@ -2773,7 +1483,7 @@ var CardActions = /* @__PURE__ */ forwardRef(function CardActions2(_ref2, ref) {
2773
1483
  });
2774
1484
  var _excluded$4 = ["children"];
2775
1485
  var spacings$2 = primary$2.spacings;
2776
- var StyledCardContent = st.div.withConfig({
1486
+ var StyledCardContent = styled.div.withConfig({
2777
1487
  displayName: "CardContent__StyledCardContent",
2778
1488
  componentId: "sc-esm4ym-0"
2779
1489
  })(["display:grid;padding:0 ", " 0 ", ";&:last-child{padding-bottom:", ";}"], spacings$2.right, spacings$2.left, spacings$2.bottom);
@@ -2787,12 +1497,12 @@ var CardContent = /* @__PURE__ */ forwardRef(function CardContent2(_ref, ref) {
2787
1497
  });
2788
1498
  var _excluded$3 = ["children", "fullWidth"];
2789
1499
  var spacings$1 = primary$2.spacings, border = primary$2.border;
2790
- var StyledCardMedia = st.div.withConfig({
1500
+ var StyledCardMedia = styled.div.withConfig({
2791
1501
  displayName: "CardMedia__StyledCardMedia",
2792
1502
  componentId: "sc-kr8q9c-0"
2793
1503
  })(["display:flex;width:auto;", ""], function(_ref) {
2794
1504
  var $fullWidth = _ref.$fullWidth;
2795
- return $fullWidth ? nt(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius) : nt(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings$1.right, spacings$1.left, spacings$1.top, spacings$1.right, spacings$1.left, spacings$1.right, spacings$1.bottom, spacings$1.left);
1505
+ return $fullWidth ? css(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius) : css(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings$1.right, spacings$1.left, spacings$1.top, spacings$1.right, spacings$1.left, spacings$1.right, spacings$1.bottom, spacings$1.left);
2796
1506
  });
2797
1507
  var CardMedia = /* @__PURE__ */ forwardRef(function CardMedia2(_ref2, ref) {
2798
1508
  var children = _ref2.children, _ref2$fullWidth = _ref2.fullWidth, fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth, rest = _objectWithoutProperties(_ref2, _excluded$3);
@@ -2806,7 +1516,7 @@ var CardMedia = /* @__PURE__ */ forwardRef(function CardMedia2(_ref2, ref) {
2806
1516
  });
2807
1517
  var _excluded$2 = ["children"];
2808
1518
  var spacings = primary$2.spacings;
2809
- var StyledCardHeader = st.div.withConfig({
1519
+ var StyledCardHeader = styled.div.withConfig({
2810
1520
  displayName: "CardHeader__StyledCardHeader",
2811
1521
  componentId: "sc-15k8edh-0"
2812
1522
  })(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";> :not(:first-child){margin-left:", ";}&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], spacings.right, spacings.left, spacings.left, spacings.top, spacings.bottom);
@@ -2820,7 +1530,7 @@ var CardHeader = /* @__PURE__ */ forwardRef(function CardHeader2(_ref, ref) {
2820
1530
  }));
2821
1531
  });
2822
1532
  var _excluded$1 = ["children"];
2823
- var StyledCardHeaderTitle = st.div.withConfig({
1533
+ var StyledCardHeaderTitle = styled.div.withConfig({
2824
1534
  displayName: "CardHeaderTitle__StyledCardHeaderTitle",
2825
1535
  componentId: "sc-11m80r3-0"
2826
1536
  })(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
@@ -2849,14 +1559,14 @@ var token = {
2849
1559
  background: logoFillPositive
2850
1560
  };
2851
1561
  var _excluded = ["variant", "value", "size"];
2852
- var indeterminate = ct(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]);
2853
- var determinate = ct(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]);
2854
- var Svg = st.svg.withConfig({
1562
+ var indeterminate = keyframes(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]);
1563
+ var determinate = keyframes(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]);
1564
+ var Svg = styled.svg.withConfig({
2855
1565
  displayName: "StarProgress__Svg",
2856
1566
  componentId: "sc-c0byj9-0"
2857
1567
  })(["fill:", ";", ""], token.background, function(_ref) {
2858
1568
  var $variant = _ref.$variant, $progress = _ref.$progress;
2859
- return $variant === "indeterminate" ? nt(["path{&:nth-child(1){animation:", " 1.3s linear infinite;}&:nth-child(2){animation:", " 1.3s linear 0.3s infinite;}&:nth-child(3){animation:", " 1.3s linear 0.4s infinite;}&:nth-child(4){animation:", " 1.3s linear 0.6s infinite;}&:nth-child(5){animation:", " 1.3s linear 0.8s infinite;}&:nth-child(6){animation:", " 1.3s linear 1s infinite;}}"], indeterminate, indeterminate, indeterminate, indeterminate, indeterminate, indeterminate) : nt(["path{animation:", " 1.3s linear;&:nth-child(6){animation-play-state:", ";}&:nth-child(5){animation-play-state:", ";}&:nth-child(4){animation-play-state:", ";}&:nth-child(3){animation-play-state:", ";}&:nth-child(2){animation-play-state:", ";}&:nth-child(1){animation-play-state:", ";}}"], determinate, $progress > 90 ? "running" : "paused", $progress > 80 ? "running" : "paused", $progress > 60 ? "running" : "paused", $progress > 40 ? "running" : "paused", $progress > 20 ? "running" : "paused", $progress <= 20 ? "running" : "paused");
1569
+ return $variant === "indeterminate" ? css(["path{&:nth-child(1){animation:", " 1.3s linear infinite;}&:nth-child(2){animation:", " 1.3s linear 0.3s infinite;}&:nth-child(3){animation:", " 1.3s linear 0.4s infinite;}&:nth-child(4){animation:", " 1.3s linear 0.6s infinite;}&:nth-child(5){animation:", " 1.3s linear 0.8s infinite;}&:nth-child(6){animation:", " 1.3s linear 1s infinite;}}"], indeterminate, indeterminate, indeterminate, indeterminate, indeterminate, indeterminate) : css(["path{animation:", " 1.3s linear;&:nth-child(6){animation-play-state:", ";}&:nth-child(5){animation-play-state:", ";}&:nth-child(4){animation-play-state:", ";}&:nth-child(3){animation-play-state:", ";}&:nth-child(2){animation-play-state:", ";}&:nth-child(1){animation-play-state:", ";}}"], determinate, $progress > 90 ? "running" : "paused", $progress > 80 ? "running" : "paused", $progress > 60 ? "running" : "paused", $progress > 40 ? "running" : "paused", $progress > 20 ? "running" : "paused", $progress <= 20 ? "running" : "paused");
2860
1570
  });
2861
1571
  var StarProgress = /* @__PURE__ */ forwardRef(function StarProgress2(_ref2, ref) {
2862
1572
  var _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "indeterminate" : _ref2$variant, _ref2$value = _ref2.value, value = _ref2$value === void 0 ? null : _ref2$value, _ref2$size = _ref2.size, size = _ref2$size === void 0 ? 48 : _ref2$size, rest = _objectWithoutProperties(_ref2, _excluded);
@@ -2898,45 +1608,138 @@ var StarProgress = /* @__PURE__ */ forwardRef(function StarProgress2(_ref2, ref)
2898
1608
  })]
2899
1609
  }));
2900
1610
  });
2901
- function isFunction(value) {
2902
- return typeof value === "function";
2903
- }
2904
- function createErrorClass(createImpl) {
2905
- var _super = function(instance) {
2906
- Error.call(instance);
2907
- instance.stack = new Error().stack;
1611
+ var extendStatics = function(d, b) {
1612
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1613
+ d2.__proto__ = b2;
1614
+ } || function(d2, b2) {
1615
+ for (var p in b2)
1616
+ if (Object.prototype.hasOwnProperty.call(b2, p))
1617
+ d2[p] = b2[p];
2908
1618
  };
2909
- var ctorFunc = createImpl(_super);
2910
- ctorFunc.prototype = Object.create(Error.prototype);
2911
- ctorFunc.prototype.constructor = ctorFunc;
2912
- return ctorFunc;
2913
- }
2914
- var UnsubscriptionError = createErrorClass(function(_super) {
2915
- return function UnsubscriptionErrorImpl(errors) {
2916
- _super(this);
2917
- this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
2918
- return i + 1 + ") " + err.toString();
2919
- }).join("\n ") : "";
2920
- this.name = "UnsubscriptionError";
2921
- this.errors = errors;
2922
- };
2923
- });
2924
- function arrRemove(arr, item) {
2925
- if (arr) {
2926
- var index = arr.indexOf(item);
2927
- 0 <= index && arr.splice(index, 1);
1619
+ return extendStatics(d, b);
1620
+ };
1621
+ function __extends(d, b) {
1622
+ if (typeof b !== "function" && b !== null)
1623
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1624
+ extendStatics(d, b);
1625
+ function __() {
1626
+ this.constructor = d;
2928
1627
  }
1628
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2929
1629
  }
2930
- var Subscription = function() {
2931
- function Subscription2(initialTeardown) {
2932
- this.initialTeardown = initialTeardown;
2933
- this.closed = false;
2934
- this._parentage = null;
2935
- this._finalizers = null;
2936
- }
2937
- Subscription2.prototype.unsubscribe = function() {
2938
- var e_1, _a2, e_2, _b;
2939
- var errors;
1630
+ var __assign = function() {
1631
+ __assign = Object.assign || function __assign2(t) {
1632
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1633
+ s = arguments[i];
1634
+ for (var p in s)
1635
+ if (Object.prototype.hasOwnProperty.call(s, p))
1636
+ t[p] = s[p];
1637
+ }
1638
+ return t;
1639
+ };
1640
+ return __assign.apply(this, arguments);
1641
+ };
1642
+ function __rest(s, e) {
1643
+ var t = {};
1644
+ for (var p in s)
1645
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1646
+ t[p] = s[p];
1647
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1648
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1649
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1650
+ t[p[i]] = s[p[i]];
1651
+ }
1652
+ return t;
1653
+ }
1654
+ function __values(o) {
1655
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1656
+ if (m)
1657
+ return m.call(o);
1658
+ if (o && typeof o.length === "number")
1659
+ return {
1660
+ next: function() {
1661
+ if (o && i >= o.length)
1662
+ o = void 0;
1663
+ return { value: o && o[i++], done: !o };
1664
+ }
1665
+ };
1666
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1667
+ }
1668
+ function __read(o, n) {
1669
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1670
+ if (!m)
1671
+ return o;
1672
+ var i = m.call(o), r, ar = [], e;
1673
+ try {
1674
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
1675
+ ar.push(r.value);
1676
+ } catch (error) {
1677
+ e = { error };
1678
+ } finally {
1679
+ try {
1680
+ if (r && !r.done && (m = i["return"]))
1681
+ m.call(i);
1682
+ } finally {
1683
+ if (e)
1684
+ throw e.error;
1685
+ }
1686
+ }
1687
+ return ar;
1688
+ }
1689
+ function __spreadArray(to, from, pack) {
1690
+ if (pack || arguments.length === 2)
1691
+ for (var i = 0, l = from.length, ar; i < l; i++) {
1692
+ if (ar || !(i in from)) {
1693
+ if (!ar)
1694
+ ar = Array.prototype.slice.call(from, 0, i);
1695
+ ar[i] = from[i];
1696
+ }
1697
+ }
1698
+ return to.concat(ar || Array.prototype.slice.call(from));
1699
+ }
1700
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
1701
+ var e = new Error(message);
1702
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1703
+ };
1704
+ function isFunction(value) {
1705
+ return typeof value === "function";
1706
+ }
1707
+ function createErrorClass(createImpl) {
1708
+ var _super = function(instance) {
1709
+ Error.call(instance);
1710
+ instance.stack = new Error().stack;
1711
+ };
1712
+ var ctorFunc = createImpl(_super);
1713
+ ctorFunc.prototype = Object.create(Error.prototype);
1714
+ ctorFunc.prototype.constructor = ctorFunc;
1715
+ return ctorFunc;
1716
+ }
1717
+ var UnsubscriptionError = createErrorClass(function(_super) {
1718
+ return function UnsubscriptionErrorImpl(errors) {
1719
+ _super(this);
1720
+ this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
1721
+ return i + 1 + ") " + err.toString();
1722
+ }).join("\n ") : "";
1723
+ this.name = "UnsubscriptionError";
1724
+ this.errors = errors;
1725
+ };
1726
+ });
1727
+ function arrRemove(arr, item) {
1728
+ if (arr) {
1729
+ var index = arr.indexOf(item);
1730
+ 0 <= index && arr.splice(index, 1);
1731
+ }
1732
+ }
1733
+ var Subscription = function() {
1734
+ function Subscription2(initialTeardown) {
1735
+ this.initialTeardown = initialTeardown;
1736
+ this.closed = false;
1737
+ this._parentage = null;
1738
+ this._finalizers = null;
1739
+ }
1740
+ Subscription2.prototype.unsubscribe = function() {
1741
+ var e_1, _a2, e_2, _b;
1742
+ var errors;
2940
1743
  if (!this.closed) {
2941
1744
  this.closed = true;
2942
1745
  var _parentage = this._parentage;
@@ -3111,8 +1914,8 @@ var Subscriber = function(_super) {
3111
1914
  }
3112
1915
  return _this;
3113
1916
  }
3114
- Subscriber2.create = function(next2, error, complete) {
3115
- return new SafeSubscriber(next2, error, complete);
1917
+ Subscriber2.create = function(next, error, complete) {
1918
+ return new SafeSubscriber(next, error, complete);
3116
1919
  };
3117
1920
  Subscriber2.prototype.next = function(value) {
3118
1921
  if (this.isStopped)
@@ -3380,8 +2183,8 @@ function requireReactIs_production_min() {
3380
2183
  if (hasRequiredReactIs_production_min)
3381
2184
  return reactIs_production_min;
3382
2185
  hasRequiredReactIs_production_min = 1;
3383
- var b2 = "function" === typeof Symbol && Symbol.for, c = b2 ? Symbol.for("react.element") : 60103, d = b2 ? Symbol.for("react.portal") : 60106, e = b2 ? Symbol.for("react.fragment") : 60107, f2 = b2 ? Symbol.for("react.strict_mode") : 60108, g = b2 ? Symbol.for("react.profiler") : 60114, h = b2 ? Symbol.for("react.provider") : 60109, k2 = b2 ? Symbol.for("react.context") : 60110, l = b2 ? Symbol.for("react.async_mode") : 60111, m = b2 ? Symbol.for("react.concurrent_mode") : 60111, n = b2 ? Symbol.for("react.forward_ref") : 60112, p2 = b2 ? Symbol.for("react.suspense") : 60113, q2 = b2 ? Symbol.for("react.suspense_list") : 60120, r = b2 ? Symbol.for("react.memo") : 60115, t = b2 ? Symbol.for("react.lazy") : 60116, v2 = b2 ? Symbol.for("react.block") : 60121, w2 = b2 ? Symbol.for("react.fundamental") : 60117, x2 = b2 ? Symbol.for("react.responder") : 60118, y2 = b2 ? Symbol.for("react.scope") : 60119;
3384
- function z2(a) {
2186
+ var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
2187
+ function z(a) {
3385
2188
  if ("object" === typeof a && null !== a) {
3386
2189
  var u = a.$$typeof;
3387
2190
  switch (u) {
@@ -3391,12 +2194,12 @@ function requireReactIs_production_min() {
3391
2194
  case m:
3392
2195
  case e:
3393
2196
  case g:
3394
- case f2:
3395
- case p2:
2197
+ case f:
2198
+ case p:
3396
2199
  return a;
3397
2200
  default:
3398
2201
  switch (a = a && a.$$typeof, a) {
3399
- case k2:
2202
+ case k:
3400
2203
  case n:
3401
2204
  case t:
3402
2205
  case r:
@@ -3411,12 +2214,12 @@ function requireReactIs_production_min() {
3411
2214
  }
3412
2215
  }
3413
2216
  }
3414
- function A2(a) {
3415
- return z2(a) === m;
2217
+ function A(a) {
2218
+ return z(a) === m;
3416
2219
  }
3417
2220
  reactIs_production_min.AsyncMode = l;
3418
2221
  reactIs_production_min.ConcurrentMode = m;
3419
- reactIs_production_min.ContextConsumer = k2;
2222
+ reactIs_production_min.ContextConsumer = k;
3420
2223
  reactIs_production_min.ContextProvider = h;
3421
2224
  reactIs_production_min.Element = c;
3422
2225
  reactIs_production_min.ForwardRef = n;
@@ -3425,49 +2228,49 @@ function requireReactIs_production_min() {
3425
2228
  reactIs_production_min.Memo = r;
3426
2229
  reactIs_production_min.Portal = d;
3427
2230
  reactIs_production_min.Profiler = g;
3428
- reactIs_production_min.StrictMode = f2;
3429
- reactIs_production_min.Suspense = p2;
2231
+ reactIs_production_min.StrictMode = f;
2232
+ reactIs_production_min.Suspense = p;
3430
2233
  reactIs_production_min.isAsyncMode = function(a) {
3431
- return A2(a) || z2(a) === l;
2234
+ return A(a) || z(a) === l;
3432
2235
  };
3433
- reactIs_production_min.isConcurrentMode = A2;
2236
+ reactIs_production_min.isConcurrentMode = A;
3434
2237
  reactIs_production_min.isContextConsumer = function(a) {
3435
- return z2(a) === k2;
2238
+ return z(a) === k;
3436
2239
  };
3437
2240
  reactIs_production_min.isContextProvider = function(a) {
3438
- return z2(a) === h;
2241
+ return z(a) === h;
3439
2242
  };
3440
2243
  reactIs_production_min.isElement = function(a) {
3441
2244
  return "object" === typeof a && null !== a && a.$$typeof === c;
3442
2245
  };
3443
2246
  reactIs_production_min.isForwardRef = function(a) {
3444
- return z2(a) === n;
2247
+ return z(a) === n;
3445
2248
  };
3446
2249
  reactIs_production_min.isFragment = function(a) {
3447
- return z2(a) === e;
2250
+ return z(a) === e;
3448
2251
  };
3449
2252
  reactIs_production_min.isLazy = function(a) {
3450
- return z2(a) === t;
2253
+ return z(a) === t;
3451
2254
  };
3452
2255
  reactIs_production_min.isMemo = function(a) {
3453
- return z2(a) === r;
2256
+ return z(a) === r;
3454
2257
  };
3455
2258
  reactIs_production_min.isPortal = function(a) {
3456
- return z2(a) === d;
2259
+ return z(a) === d;
3457
2260
  };
3458
2261
  reactIs_production_min.isProfiler = function(a) {
3459
- return z2(a) === g;
2262
+ return z(a) === g;
3460
2263
  };
3461
2264
  reactIs_production_min.isStrictMode = function(a) {
3462
- return z2(a) === f2;
2265
+ return z(a) === f;
3463
2266
  };
3464
2267
  reactIs_production_min.isSuspense = function(a) {
3465
- return z2(a) === p2;
2268
+ return z(a) === p;
3466
2269
  };
3467
2270
  reactIs_production_min.isValidElementType = function(a) {
3468
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f2 || a === p2 || a === q2 || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k2 || a.$$typeof === n || a.$$typeof === w2 || a.$$typeof === x2 || a.$$typeof === y2 || a.$$typeof === v2);
2271
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
3469
2272
  };
3470
- reactIs_production_min.typeOf = z2;
2273
+ reactIs_production_min.typeOf = z;
3471
2274
  return reactIs_production_min;
3472
2275
  }
3473
2276
  var reactIs_development = {};
@@ -3749,9 +2552,9 @@ var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
3749
2552
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
3750
2553
  function parseDateTimeSkeleton(skeleton) {
3751
2554
  var result = {};
3752
- skeleton.replace(DATE_TIME_REGEX, function(match2) {
3753
- var len = match2.length;
3754
- switch (match2[0]) {
2555
+ skeleton.replace(DATE_TIME_REGEX, function(match) {
2556
+ var len = match.length;
2557
+ switch (match[0]) {
3755
2558
  case "G":
3756
2559
  result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
3757
2560
  break;
@@ -3850,8 +2653,8 @@ function parseNumberSkeletonFromString(skeleton) {
3850
2653
  if (skeleton.length === 0) {
3851
2654
  throw new Error("Number skeleton cannot be empty");
3852
2655
  }
3853
- var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x2) {
3854
- return x2.length > 0;
2656
+ var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x) {
2657
+ return x.length > 0;
3855
2658
  });
3856
2659
  var tokens2 = [];
3857
2660
  for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
@@ -3885,7 +2688,7 @@ function parseSignificantPrecision(str) {
3885
2688
  } else if (str[str.length - 1] === "s") {
3886
2689
  result.roundingPriority = "lessPrecision";
3887
2690
  }
3888
- str.replace(SIGNIFICANT_PRECISION_REGEX, function(_2, g1, g2) {
2691
+ str.replace(SIGNIFICANT_PRECISION_REGEX, function(_, g1, g2) {
3889
2692
  if (typeof g2 !== "string") {
3890
2693
  result.minimumSignificantDigits = g1.length;
3891
2694
  result.maximumSignificantDigits = g1.length;
@@ -4053,7 +2856,7 @@ function parseNumberSkeleton(tokens2) {
4053
2856
  if (token2.options.length > 1) {
4054
2857
  throw new RangeError("integer-width stems only accept a single optional option");
4055
2858
  }
4056
- token2.options[0].replace(INTEGER_WIDTH_REGEX, function(_2, g1, g2, g3, g4, g5) {
2859
+ token2.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) {
4057
2860
  if (g1) {
4058
2861
  result.minimumIntegerDigits = g2.length;
4059
2862
  } else if (g3 && g4) {
@@ -4073,7 +2876,7 @@ function parseNumberSkeleton(tokens2) {
4073
2876
  if (token2.options.length > 1) {
4074
2877
  throw new RangeError("Fraction-precision stems only accept a single optional option");
4075
2878
  }
4076
- token2.stem.replace(FRACTION_PRECISION_REGEX, function(_2, g1, g2, g3, g4, g5) {
2879
+ token2.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) {
4077
2880
  if (g2 === "*") {
4078
2881
  result.minimumFractionDigits = g1.length;
4079
2882
  } else if (g3 && g3[0] === "#") {
@@ -5599,18 +4402,18 @@ var REGEX_SUPPORTS_U_AND_Y = true;
5599
4402
  try {
5600
4403
  var re = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5601
4404
  REGEX_SUPPORTS_U_AND_Y = ((_a = re.exec("a")) === null || _a === void 0 ? void 0 : _a[0]) === "a";
5602
- } catch (_2) {
4405
+ } catch (_) {
5603
4406
  REGEX_SUPPORTS_U_AND_Y = false;
5604
4407
  }
5605
4408
  var startsWith = hasNativeStartsWith ? (
5606
4409
  // Native
5607
- function startsWith2(s, search, position2) {
5608
- return s.startsWith(search, position2);
4410
+ function startsWith2(s, search, position) {
4411
+ return s.startsWith(search, position);
5609
4412
  }
5610
4413
  ) : (
5611
4414
  // For IE11
5612
- function startsWith3(s, search, position2) {
5613
- return s.slice(position2, position2 + search.length) === search;
4415
+ function startsWith3(s, search, position) {
4416
+ return s.slice(position, position + search.length) === search;
5614
4417
  }
5615
4418
  );
5616
4419
  var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
@@ -5621,10 +4424,10 @@ var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
5621
4424
  codePoints[_i] = arguments[_i];
5622
4425
  }
5623
4426
  var elements = "";
5624
- var length2 = codePoints.length;
4427
+ var length = codePoints.length;
5625
4428
  var i = 0;
5626
4429
  var code;
5627
- while (length2 > i) {
4430
+ while (length > i) {
5628
4431
  code = codePoints[i++];
5629
4432
  if (code > 1114111)
5630
4433
  throw RangeError(code + " is not a valid code point");
@@ -5640,8 +4443,8 @@ var fromEntries = (
5640
4443
  function fromEntries2(entries) {
5641
4444
  var obj = {};
5642
4445
  for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
5643
- var _a2 = entries_1[_i], k2 = _a2[0], v2 = _a2[1];
5644
- obj[k2] = v2;
4446
+ var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
4447
+ obj[k] = v;
5645
4448
  }
5646
4449
  return obj;
5647
4450
  }
@@ -5695,21 +4498,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
5695
4498
  matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
5696
4499
  var _a2;
5697
4500
  IDENTIFIER_PREFIX_RE_1.lastIndex = index;
5698
- var match2 = IDENTIFIER_PREFIX_RE_1.exec(s);
5699
- return (_a2 = match2[1]) !== null && _a2 !== void 0 ? _a2 : "";
4501
+ var match = IDENTIFIER_PREFIX_RE_1.exec(s);
4502
+ return (_a2 = match[1]) !== null && _a2 !== void 0 ? _a2 : "";
5700
4503
  };
5701
4504
  } else {
5702
4505
  matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
5703
- var match2 = [];
4506
+ var match = [];
5704
4507
  while (true) {
5705
4508
  var c = codePointAt(s, index);
5706
4509
  if (c === void 0 || _isWhiteSpace(c) || _isPatternSyntax(c)) {
5707
4510
  break;
5708
4511
  }
5709
- match2.push(c);
4512
+ match.push(c);
5710
4513
  index += c >= 65536 ? 2 : 1;
5711
4514
  }
5712
- return fromCodePoint.apply(void 0, match2);
4515
+ return fromCodePoint.apply(void 0, match);
5713
4516
  };
5714
4517
  }
5715
4518
  var Parser = (
@@ -5735,29 +4538,29 @@ var Parser = (
5735
4538
  Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
5736
4539
  var elements = [];
5737
4540
  while (!this.isEOF()) {
5738
- var char2 = this.char();
5739
- if (char2 === 123) {
4541
+ var char = this.char();
4542
+ if (char === 123) {
5740
4543
  var result = this.parseArgument(nestingLevel, expectingCloseTag);
5741
4544
  if (result.err) {
5742
4545
  return result;
5743
4546
  }
5744
4547
  elements.push(result.val);
5745
- } else if (char2 === 125 && nestingLevel > 0) {
4548
+ } else if (char === 125 && nestingLevel > 0) {
5746
4549
  break;
5747
- } else if (char2 === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
5748
- var position2 = this.clonePosition();
4550
+ } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
4551
+ var position = this.clonePosition();
5749
4552
  this.bump();
5750
4553
  elements.push({
5751
4554
  type: TYPE.pound,
5752
- location: createLocation(position2, this.clonePosition())
4555
+ location: createLocation(position, this.clonePosition())
5753
4556
  });
5754
- } else if (char2 === 60 && !this.ignoreTag && this.peek() === 47) {
4557
+ } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
5755
4558
  if (expectingCloseTag) {
5756
4559
  break;
5757
4560
  } else {
5758
4561
  return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
5759
4562
  }
5760
- } else if (char2 === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
4563
+ } else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
5761
4564
  var result = this.parseTag(nestingLevel, parentArgType);
5762
4565
  if (result.err) {
5763
4566
  return result;
@@ -6310,9 +5113,9 @@ var Parser = (
6310
5113
  this.position.offset += code < 65536 ? 1 : 2;
6311
5114
  }
6312
5115
  };
6313
- Parser2.prototype.bumpIf = function(prefix2) {
6314
- if (startsWith(this.message, prefix2, this.offset())) {
6315
- for (var i = 0; i < prefix2.length; i++) {
5116
+ Parser2.prototype.bumpIf = function(prefix) {
5117
+ if (startsWith(this.message, prefix, this.offset())) {
5118
+ for (var i = 0; i < prefix.length; i++) {
6316
5119
  this.bump();
6317
5120
  }
6318
5121
  return true;
@@ -6385,9 +5188,9 @@ function pruneLocation(els) {
6385
5188
  els.forEach(function(el) {
6386
5189
  delete el.location;
6387
5190
  if (isSelectElement(el) || isPluralElement(el)) {
6388
- for (var k2 in el.options) {
6389
- delete el.options[k2].location;
6390
- pruneLocation(el.options[k2].value);
5191
+ for (var k in el.options) {
5192
+ delete el.options[k].location;
5193
+ pruneLocation(el.options[k].value);
6391
5194
  }
6392
5195
  } else if (isNumberElement(el) && isNumberSkeleton(el.style)) {
6393
5196
  delete el.style.location;
@@ -6446,8 +5249,8 @@ function variadic(fn, cache, serializer) {
6446
5249
  }
6447
5250
  return computedValue;
6448
5251
  }
6449
- function assemble(fn, context, strategy, cache, serialize2) {
6450
- return strategy.bind(context, fn, cache, serialize2);
5252
+ function assemble(fn, context, strategy, cache, serialize) {
5253
+ return strategy.bind(context, fn, cache, serialize);
6451
5254
  }
6452
5255
  function strategyDefault(fn, options) {
6453
5256
  var strategy = fn.length === 1 ? monadic : variadic;
@@ -6631,8 +5434,8 @@ function formatToParts(els, locales, formatters, formats, values, currentPluralV
6631
5434
  throw new InvalidValueTypeError(value_1, "function", originalMessage);
6632
5435
  }
6633
5436
  var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue);
6634
- var chunks = formatFn(parts.map(function(p2) {
6635
- return p2.value;
5437
+ var chunks = formatFn(parts.map(function(p) {
5438
+ return p.value;
6636
5439
  }));
6637
5440
  if (!Array.isArray(chunks)) {
6638
5441
  chunks = [chunks];
@@ -6674,8 +5477,8 @@ function mergeConfig(c1, c2) {
6674
5477
  if (!c2) {
6675
5478
  return c1;
6676
5479
  }
6677
- return __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k2) {
6678
- all[k2] = __assign(__assign({}, c1[k2]), c2[k2] || {});
5480
+ return __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k) {
5481
+ all[k] = __assign(__assign({}, c1[k]), c2[k] || {});
6679
5482
  return all;
6680
5483
  }, {}));
6681
5484
  }
@@ -6683,8 +5486,8 @@ function mergeConfigs(defaultConfig, configs) {
6683
5486
  if (!configs) {
6684
5487
  return defaultConfig;
6685
5488
  }
6686
- return Object.keys(defaultConfig).reduce(function(all, k2) {
6687
- all[k2] = mergeConfig(defaultConfig[k2], configs[k2]);
5489
+ return Object.keys(defaultConfig).reduce(function(all, k) {
5490
+ all[k] = mergeConfig(defaultConfig[k], configs[k]);
6688
5491
  return all;
6689
5492
  }, __assign({}, defaultConfig));
6690
5493
  }
@@ -6798,7 +5601,7 @@ var IntlMessageFormat = (
6798
5601
  }
6799
5602
  var _a2 = opts || {};
6800
5603
  _a2.formatters;
6801
- var parseOpts = __rest$1(_a2, ["formatters"]);
5604
+ var parseOpts = __rest(_a2, ["formatters"]);
6802
5605
  this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
6803
5606
  } else {
6804
5607
  this.ast = message;
@@ -7144,15 +5947,15 @@ function getNamedFormat(formats, type, name, onError) {
7144
5947
  onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
7145
5948
  }
7146
5949
  function setTimeZoneInOptions(opts, timeZone) {
7147
- return Object.keys(opts).reduce(function(all, k2) {
7148
- all[k2] = __assign({ timeZone }, opts[k2]);
5950
+ return Object.keys(opts).reduce(function(all, k) {
5951
+ all[k] = __assign({ timeZone }, opts[k]);
7149
5952
  return all;
7150
5953
  }, {});
7151
5954
  }
7152
5955
  function deepMergeOptions(opts1, opts2) {
7153
5956
  var keys = Object.keys(__assign(__assign({}, opts1), opts2));
7154
- return keys.reduce(function(all, k2) {
7155
- all[k2] = __assign(__assign({}, opts1[k2] || {}), opts2[k2] || {});
5957
+ return keys.reduce(function(all, k) {
5958
+ all[k] = __assign(__assign({}, opts1[k] || {}), opts2[k] || {});
7156
5959
  return all;
7157
5960
  }, {});
7158
5961
  }
@@ -7293,15 +6096,15 @@ function formatDateTimeRange(config2, getDateTimeFormat) {
7293
6096
  for (var _i = 2; _i < arguments.length; _i++) {
7294
6097
  _a2[_i - 2] = arguments[_i];
7295
6098
  }
7296
- var from2 = _a2[0], to = _a2[1], _b = _a2[2], options = _b === void 0 ? {} : _b;
6099
+ var from = _a2[0], to = _a2[1], _b = _a2[2], options = _b === void 0 ? {} : _b;
7297
6100
  var timeZone = config2.timeZone, locale = config2.locale, onError = config2.onError;
7298
6101
  var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, timeZone ? { timeZone } : {});
7299
6102
  try {
7300
- return getDateTimeFormat(locale, filteredOptions).formatRange(from2, to);
6103
+ return getDateTimeFormat(locale, filteredOptions).formatRange(from, to);
7301
6104
  } catch (e) {
7302
6105
  onError(new IntlFormatError("Error formatting date time range.", config2.locale, e));
7303
6106
  }
7304
- return String(from2);
6107
+ return String(from);
7305
6108
  }
7306
6109
  function formatDateToParts(config2, getDateTimeFormat) {
7307
6110
  var _a2 = [];
@@ -7387,13 +6190,13 @@ function formatListToParts(_a2, getListFormat, values, options) {
7387
6190
  var filteredOptions = filterProps(options, LIST_FORMAT_OPTIONS);
7388
6191
  try {
7389
6192
  var richValues_1 = {};
7390
- var serializedValues = values.map(function(v2, i) {
7391
- if (typeof v2 === "object") {
6193
+ var serializedValues = values.map(function(v, i) {
6194
+ if (typeof v === "object") {
7392
6195
  var id = generateToken(i);
7393
- richValues_1[id] = v2;
6196
+ richValues_1[id] = v;
7394
6197
  return id;
7395
6198
  }
7396
- return String(v2);
6199
+ return String(v);
7397
6200
  });
7398
6201
  return getListFormat(locale, filteredOptions).formatToParts(serializedValues).map(function(part) {
7399
6202
  return part.type === "literal" ? part : __assign(__assign({}, part), { value: richValues_1[part.value] || part.value });
@@ -7556,7 +6359,7 @@ function assignUniqueKeysToParts(formatXMLElementFn) {
7556
6359
  return formatXMLElementFn(React.Children.toArray(parts));
7557
6360
  };
7558
6361
  }
7559
- function shallowEqual2(objA, objB) {
6362
+ function shallowEqual(objA, objB) {
7560
6363
  if (objA === objB) {
7561
6364
  return true;
7562
6365
  }
@@ -7605,7 +6408,7 @@ var DisplayNameParts;
7605
6408
  function createFormattedDateTimePartsComponent(name) {
7606
6409
  var ComponentParts = function(props) {
7607
6410
  var intl = useIntl();
7608
- var value = props.value, children = props.children, formatProps = __rest$1(props, ["value", "children"]);
6411
+ var value = props.value, children = props.children, formatProps = __rest(props, ["value", "children"]);
7609
6412
  var date = typeof value === "string" ? new Date(value || 0) : value;
7610
6413
  var formattedParts = name === "formatDate" ? intl.formatDateToParts(date, formatProps) : intl.formatTimeToParts(date, formatProps);
7611
6414
  return children(formattedParts);
@@ -7616,7 +6419,7 @@ function createFormattedDateTimePartsComponent(name) {
7616
6419
  function createFormattedComponent(name) {
7617
6420
  var Component = function(props) {
7618
6421
  var intl = useIntl();
7619
- var value = props.value, children = props.children, formatProps = __rest$1(
6422
+ var value = props.value, children = props.children, formatProps = __rest(
7620
6423
  props,
7621
6424
  ["value", "children"]
7622
6425
  );
@@ -7650,9 +6453,9 @@ function assignUniqueKeysToFormatXMLElementFnArgument(values) {
7650
6453
  if (!values) {
7651
6454
  return values;
7652
6455
  }
7653
- return Object.keys(values).reduce(function(acc, k2) {
7654
- var v2 = values[k2];
7655
- acc[k2] = isFormatXMLElementFn(v2) ? assignUniqueKeysToParts(v2) : v2;
6456
+ return Object.keys(values).reduce(function(acc, k) {
6457
+ var v = values[k];
6458
+ acc[k] = isFormatXMLElementFn(v) ? assignUniqueKeysToParts(v) : v;
7656
6459
  return acc;
7657
6460
  }, {});
7658
6461
  }
@@ -7674,7 +6477,7 @@ var formatMessage = function(config2, formatters, descriptor, rawValues) {
7674
6477
  return chunks;
7675
6478
  };
7676
6479
  var createIntl = function(_a2, cache) {
7677
- var rawDefaultRichTextElements = _a2.defaultRichTextElements, config2 = __rest$1(_a2, ["defaultRichTextElements"]);
6480
+ var rawDefaultRichTextElements = _a2.defaultRichTextElements, config2 = __rest(_a2, ["defaultRichTextElements"]);
7678
6481
  var defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(rawDefaultRichTextElements);
7679
6482
  var coreIntl = createIntl$1(__assign(__assign(__assign({}, DEFAULT_INTL_CONFIG), config2), { defaultRichTextElements }), cache);
7680
6483
  var resolvedConfig = {
@@ -7712,7 +6515,7 @@ var IntlProvider = (
7712
6515
  IntlProvider2.getDerivedStateFromProps = function(props, _a2) {
7713
6516
  var prevConfig = _a2.prevConfig, cache = _a2.cache;
7714
6517
  var config2 = processIntlConfig(props);
7715
- if (!shallowEqual2(prevConfig, config2)) {
6518
+ if (!shallowEqual(prevConfig, config2)) {
7716
6519
  return {
7717
6520
  intl: createIntl(config2, cache),
7718
6521
  prevConfig: config2
@@ -7824,8 +6627,8 @@ function AppLoader({
7824
6627
  const [basename] = window.location.pathname.match(
7825
6628
  /\/?apps\/[a-z|-]+(\/)?/g
7826
6629
  ) ?? [""];
7827
- lastValueFrom(appModuleScript).then((x2) => {
7828
- const script = x2.script;
6630
+ lastValueFrom(appModuleScript).then((x) => {
6631
+ const script = x.script;
7829
6632
  const render = script.renderApp ?? script.default;
7830
6633
  render(el, {
7831
6634
  query: queryClient,
@@ -7858,7 +6661,6 @@ function AppLoader({
7858
6661
  }
7859
6662
  setLoading(true);
7860
6663
  const el = document.createElement("div");
7861
- el.style.height = "30%";
7862
6664
  (_a2 = ref.current) == null ? void 0 : _a2.appendChild(el);
7863
6665
  const appModule = renderApplication(el);
7864
6666
  setLoading(false);
@@ -7934,6 +6736,37 @@ function useParams() {
7934
6736
  }
7935
6737
  new Promise(() => {
7936
6738
  });
6739
+ const AppContext = createContext({
6740
+ isLoading: false,
6741
+ apps: void 0
6742
+ });
6743
+ const AppProvider = ({ children }) => {
6744
+ const { apps, isLoading } = useApps$1({ includeHidden: true });
6745
+ return /* @__PURE__ */ jsx(
6746
+ AppContext.Provider,
6747
+ {
6748
+ value: {
6749
+ apps,
6750
+ isLoading
6751
+ },
6752
+ children
6753
+ }
6754
+ );
6755
+ };
6756
+ const useApps = ({
6757
+ includeHidden
6758
+ } = {}) => {
6759
+ const { apps: allApps, isLoading } = useContext(AppContext);
6760
+ return useMemo(() => {
6761
+ if (!allApps)
6762
+ return { isLoading, apps: [] };
6763
+ if (includeHidden) {
6764
+ return { isLoading, apps: allApps };
6765
+ }
6766
+ const apps = allApps.filter((app) => !app.hide);
6767
+ return { isLoading, apps };
6768
+ }, [allApps, includeHidden, isLoading]);
6769
+ };
7937
6770
  const AppViewer = () => {
7938
6771
  const { appKey } = useParams();
7939
6772
  const { apps } = useApps({ includeHidden: true });
@@ -7948,263 +6781,6 @@ const AppViewer = () => {
7948
6781
  }
7949
6782
  return /* @__PURE__ */ jsx(AppLoader, { app, kind: "app" });
7950
6783
  };
7951
- async function getBytes(stream, onChunk) {
7952
- const reader = stream.getReader();
7953
- let result;
7954
- while (!(result = await reader.read()).done) {
7955
- onChunk(result.value);
7956
- }
7957
- }
7958
- function getLines(onLine) {
7959
- let buffer;
7960
- let position2;
7961
- let fieldLength;
7962
- let discardTrailingNewline = false;
7963
- return function onChunk(arr) {
7964
- if (buffer === void 0) {
7965
- buffer = arr;
7966
- position2 = 0;
7967
- fieldLength = -1;
7968
- } else {
7969
- buffer = concat(buffer, arr);
7970
- }
7971
- const bufLength = buffer.length;
7972
- let lineStart = 0;
7973
- while (position2 < bufLength) {
7974
- if (discardTrailingNewline) {
7975
- if (buffer[position2] === 10) {
7976
- lineStart = ++position2;
7977
- }
7978
- discardTrailingNewline = false;
7979
- }
7980
- let lineEnd = -1;
7981
- for (; position2 < bufLength && lineEnd === -1; ++position2) {
7982
- switch (buffer[position2]) {
7983
- case 58:
7984
- if (fieldLength === -1) {
7985
- fieldLength = position2 - lineStart;
7986
- }
7987
- break;
7988
- case 13:
7989
- discardTrailingNewline = true;
7990
- case 10:
7991
- lineEnd = position2;
7992
- break;
7993
- }
7994
- }
7995
- if (lineEnd === -1) {
7996
- break;
7997
- }
7998
- onLine(buffer.subarray(lineStart, lineEnd), fieldLength);
7999
- lineStart = position2;
8000
- fieldLength = -1;
8001
- }
8002
- if (lineStart === bufLength) {
8003
- buffer = void 0;
8004
- } else if (lineStart !== 0) {
8005
- buffer = buffer.subarray(lineStart);
8006
- position2 -= lineStart;
8007
- }
8008
- };
8009
- }
8010
- function getMessages(onId, onRetry, onMessage) {
8011
- let message = newMessage();
8012
- const decoder = new TextDecoder();
8013
- return function onLine(line2, fieldLength) {
8014
- if (line2.length === 0) {
8015
- onMessage === null || onMessage === void 0 ? void 0 : onMessage(message);
8016
- message = newMessage();
8017
- } else if (fieldLength > 0) {
8018
- const field = decoder.decode(line2.subarray(0, fieldLength));
8019
- const valueOffset = fieldLength + (line2[fieldLength + 1] === 32 ? 2 : 1);
8020
- const value = decoder.decode(line2.subarray(valueOffset));
8021
- switch (field) {
8022
- case "data":
8023
- message.data = message.data ? message.data + "\n" + value : value;
8024
- break;
8025
- case "event":
8026
- message.event = value;
8027
- break;
8028
- case "id":
8029
- onId(message.id = value);
8030
- break;
8031
- case "retry":
8032
- const retry = parseInt(value, 10);
8033
- if (!isNaN(retry)) {
8034
- onRetry(message.retry = retry);
8035
- }
8036
- break;
8037
- }
8038
- }
8039
- };
8040
- }
8041
- function concat(a, b2) {
8042
- const res = new Uint8Array(a.length + b2.length);
8043
- res.set(a);
8044
- res.set(b2, a.length);
8045
- return res;
8046
- }
8047
- function newMessage() {
8048
- return {
8049
- data: "",
8050
- event: "",
8051
- id: "",
8052
- retry: void 0
8053
- };
8054
- }
8055
- var __rest = globalThis && globalThis.__rest || function(s, e) {
8056
- var t = {};
8057
- for (var p2 in s)
8058
- if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
8059
- t[p2] = s[p2];
8060
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
8061
- for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
8062
- if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
8063
- t[p2[i]] = s[p2[i]];
8064
- }
8065
- return t;
8066
- };
8067
- const EventStreamContentType = "text/event-stream";
8068
- const DefaultRetryInterval = 1e3;
8069
- const LastEventId = "last-event-id";
8070
- function fetchEventSource(input, _a2) {
8071
- var { signal: inputSignal, headers: inputHeaders, onopen: inputOnOpen, onmessage, onclose, onerror, openWhenHidden, fetch: inputFetch } = _a2, rest = __rest(_a2, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
8072
- return new Promise((resolve, reject) => {
8073
- const headers = Object.assign({}, inputHeaders);
8074
- if (!headers.accept) {
8075
- headers.accept = EventStreamContentType;
8076
- }
8077
- let curRequestController;
8078
- function onVisibilityChange() {
8079
- curRequestController.abort();
8080
- if (!document.hidden) {
8081
- create2();
8082
- }
8083
- }
8084
- if (!openWhenHidden) {
8085
- document.addEventListener("visibilitychange", onVisibilityChange);
8086
- }
8087
- let retryInterval = DefaultRetryInterval;
8088
- let retryTimer = 0;
8089
- function dispose() {
8090
- document.removeEventListener("visibilitychange", onVisibilityChange);
8091
- window.clearTimeout(retryTimer);
8092
- curRequestController.abort();
8093
- }
8094
- inputSignal === null || inputSignal === void 0 ? void 0 : inputSignal.addEventListener("abort", () => {
8095
- dispose();
8096
- resolve();
8097
- });
8098
- const fetch = inputFetch !== null && inputFetch !== void 0 ? inputFetch : window.fetch;
8099
- const onopen = inputOnOpen !== null && inputOnOpen !== void 0 ? inputOnOpen : defaultOnOpen;
8100
- async function create2() {
8101
- var _a3;
8102
- curRequestController = new AbortController();
8103
- try {
8104
- const response = await fetch(input, Object.assign(Object.assign({}, rest), { headers, signal: curRequestController.signal }));
8105
- await onopen(response);
8106
- await getBytes(response.body, getLines(getMessages((id) => {
8107
- if (id) {
8108
- headers[LastEventId] = id;
8109
- } else {
8110
- delete headers[LastEventId];
8111
- }
8112
- }, (retry) => {
8113
- retryInterval = retry;
8114
- }, onmessage)));
8115
- onclose === null || onclose === void 0 ? void 0 : onclose();
8116
- dispose();
8117
- resolve();
8118
- } catch (err) {
8119
- if (!curRequestController.signal.aborted) {
8120
- try {
8121
- const interval = (_a3 = onerror === null || onerror === void 0 ? void 0 : onerror(err)) !== null && _a3 !== void 0 ? _a3 : retryInterval;
8122
- window.clearTimeout(retryTimer);
8123
- retryTimer = window.setTimeout(create2, interval);
8124
- } catch (innerErr) {
8125
- dispose();
8126
- reject(innerErr);
8127
- }
8128
- }
8129
- }
8130
- }
8131
- create2();
8132
- });
8133
- }
8134
- function defaultOnOpen(response) {
8135
- const contentType = response.headers.get("content-type");
8136
- if (!(contentType === null || contentType === void 0 ? void 0 : contentType.startsWith(EventStreamContentType))) {
8137
- throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${contentType}`);
8138
- }
8139
- }
8140
- class RetriableError extends Error {
8141
- }
8142
- const useSse = (path, messageCount = 10) => {
8143
- const [messages, setMessages] = useState([]);
8144
- const { modules } = useFramework();
8145
- const auth = modules.auth;
8146
- useEffect(() => {
8147
- const abortController = new AbortController();
8148
- const abort = abortController.signal;
8149
- const createConnection = () => {
8150
- setMessages([]);
8151
- auth.acquireAccessToken({
8152
- scopes: [
8153
- // TODO: Using hardcoded scope now. Need to change this when we move beyond POC state
8154
- "api://83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/user_impersonation"
8155
- ]
8156
- }).then((token2) => {
8157
- if (!token2)
8158
- console.error("No token");
8159
- if (abort.aborted)
8160
- return;
8161
- fetchEventSource(`${window.location.origin}/${path}`, {
8162
- headers: {
8163
- Authorization: `Bearer ${token2}`
8164
- },
8165
- openWhenHidden: true,
8166
- signal: abort,
8167
- onmessage: (eventSourceMessage) => {
8168
- const data = eventSourceMessage.data;
8169
- try {
8170
- const parsed = JSON.parse(data);
8171
- setMessages((msg) => {
8172
- const unique = msg.filter(
8173
- (m) => m.eventSourceId !== eventSourceMessage.id
8174
- );
8175
- const count = unique.length;
8176
- if (count >= messageCount) {
8177
- return [
8178
- { ...parsed, eventSourceId: eventSourceMessage.id },
8179
- ...unique.slice(0, -1)
8180
- ];
8181
- } else {
8182
- return [
8183
- { ...parsed, eventSourceId: eventSourceMessage.id },
8184
- ...unique
8185
- ];
8186
- }
8187
- });
8188
- } catch (ex) {
8189
- console.error("Failed to parse message: ", ex);
8190
- }
8191
- },
8192
- onclose: () => {
8193
- throw new RetriableError("Connection closed, reconnecting.");
8194
- }
8195
- }).then(() => {
8196
- setMessages([]);
8197
- setTimeout(() => createConnection(), 500);
8198
- });
8199
- });
8200
- };
8201
- createConnection();
8202
- return () => abortController.abort("Repaint");
8203
- }, [auth, path, messageCount]);
8204
- return {
8205
- messages: [...messages]
8206
- };
8207
- };
8208
6784
  const ErrorTypography = ({
8209
6785
  variant,
8210
6786
  children
@@ -8261,8 +6837,8 @@ const createUrlParamsFromObject = (obj) => {
8261
6837
  if (obj[key] === null || typeof obj[key] === "undefined")
8262
6838
  return;
8263
6839
  if (Array.isArray(obj[key])) {
8264
- obj[key].forEach((v2) => {
8265
- params.append(key, v2.toString());
6840
+ obj[key].forEach((v) => {
6841
+ params.append(key, v.toString());
8266
6842
  });
8267
6843
  } else if (typeof obj[key] === "string") {
8268
6844
  params.append(key, obj[key]);
@@ -8351,31 +6927,904 @@ const useDownloadRecap = (params) => {
8351
6927
  enabled: !!params.dealId
8352
6928
  });
8353
6929
  };
8354
- const fetchEnvironment = async (params, client) => {
8355
- return client.json(
8356
- `_discovery/environments/${params.environment}`
6930
+ const useCustomClient = () => {
6931
+ const client = useHttpClient("portal");
6932
+ return async ({
6933
+ url,
6934
+ method,
6935
+ params,
6936
+ headers,
6937
+ data,
6938
+ signal
6939
+ }) => {
6940
+ const response = await client.fetch(
6941
+ `${url}` + new URLSearchParams(params),
6942
+ {
6943
+ method,
6944
+ // Request method
6945
+ signal,
6946
+ // Abort signal
6947
+ headers,
6948
+ // Additional headers
6949
+ ...data ? { body: JSON.stringify(data) } : {}
6950
+ // Add body if data is provided
6951
+ }
6952
+ );
6953
+ if (response.headers.get("content-length") === "0" || response.status === 204) {
6954
+ return response.text();
6955
+ }
6956
+ return response.json();
6957
+ };
6958
+ };
6959
+ const useGetSettingByUserAndSettingKeyHook = () => {
6960
+ const getSettingByUserAndSettingKey = useCustomClient();
6961
+ return (userId, settingKey, signal) => {
6962
+ return getSettingByUserAndSettingKey({
6963
+ url: `/api/settings/user/${userId}/setting/${settingKey}`,
6964
+ method: "get",
6965
+ signal
6966
+ });
6967
+ };
6968
+ };
6969
+ const getGetSettingByUserAndSettingKeyQueryKey = (userId, settingKey) => {
6970
+ return [`/api/settings/user/${userId}/setting/${settingKey}`];
6971
+ };
6972
+ const useGetSettingByUserAndSettingKeyQueryOptions = (userId, settingKey, options) => {
6973
+ const { query: queryOptions } = options ?? {};
6974
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingByUserAndSettingKeyQueryKey(userId, settingKey);
6975
+ const getSettingByUserAndSettingKey = useGetSettingByUserAndSettingKeyHook();
6976
+ const queryFn = ({ signal }) => getSettingByUserAndSettingKey(userId, settingKey, signal);
6977
+ return {
6978
+ queryKey,
6979
+ queryFn,
6980
+ enabled: !!(userId && settingKey),
6981
+ ...queryOptions
6982
+ };
6983
+ };
6984
+ const useGetSettingByUserAndSettingKey = (userId, settingKey, options) => {
6985
+ const queryOptions = useGetSettingByUserAndSettingKeyQueryOptions(
6986
+ userId,
6987
+ settingKey,
6988
+ options
8357
6989
  );
6990
+ const query = useQuery(queryOptions);
6991
+ query.queryKey = queryOptions.queryKey;
6992
+ return query;
8358
6993
  };
8359
- const useGetEnvironment = (params) => {
8360
- const queryKey = ["service-discovery", params];
8361
- const client = useHttpClient("servicediscovery");
8362
- return useQuery({
6994
+ const useCreateOrUpdateSettingByUserAndSettingKeyHook = () => {
6995
+ const createOrUpdateSettingByUserAndSettingKey = useCustomClient();
6996
+ return (userId, settingKey, settingDto) => {
6997
+ return createOrUpdateSettingByUserAndSettingKey({
6998
+ url: `/api/settings/user/${userId}/setting/${settingKey}`,
6999
+ method: "post",
7000
+ headers: { "Content-Type": "application/json" },
7001
+ data: settingDto
7002
+ });
7003
+ };
7004
+ };
7005
+ const useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions = (options) => {
7006
+ const { mutation: mutationOptions } = options ?? {};
7007
+ const createOrUpdateSettingByUserAndSettingKey = useCreateOrUpdateSettingByUserAndSettingKeyHook();
7008
+ const mutationFn = (props) => {
7009
+ const { userId, settingKey, data } = props ?? {};
7010
+ return createOrUpdateSettingByUserAndSettingKey(userId, settingKey, data);
7011
+ };
7012
+ return { mutationFn, ...mutationOptions };
7013
+ };
7014
+ const useCreateOrUpdateSettingByUserAndSettingKey = (options) => {
7015
+ const mutationOptions = useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions(options);
7016
+ return useMutation(mutationOptions);
7017
+ };
7018
+ const useDeleteSettingByUserAndSettingKeyHook = () => {
7019
+ const deleteSettingByUserAndSettingKey = useCustomClient();
7020
+ return (userId, settingKey) => {
7021
+ return deleteSettingByUserAndSettingKey({
7022
+ url: `/api/settings/user/${userId}/setting/${settingKey}`,
7023
+ method: "delete"
7024
+ });
7025
+ };
7026
+ };
7027
+ const useDeleteSettingByUserAndSettingKeyMutationOptions = (options) => {
7028
+ const { mutation: mutationOptions } = options ?? {};
7029
+ const deleteSettingByUserAndSettingKey = useDeleteSettingByUserAndSettingKeyHook();
7030
+ const mutationFn = (props) => {
7031
+ const { userId, settingKey } = props ?? {};
7032
+ return deleteSettingByUserAndSettingKey(userId, settingKey);
7033
+ };
7034
+ return { mutationFn, ...mutationOptions };
7035
+ };
7036
+ const useDeleteSettingByUserAndSettingKey = (options) => {
7037
+ const mutationOptions = useDeleteSettingByUserAndSettingKeyMutationOptions(options);
7038
+ return useMutation(mutationOptions);
7039
+ };
7040
+ const useGetSettingByUserAndAppShortNameAndSetttingKeyHook = () => {
7041
+ const getSettingByUserAndAppShortNameAndSetttingKey = useCustomClient();
7042
+ return (userId, appShortName, settingKey, signal) => {
7043
+ return getSettingByUserAndAppShortNameAndSetttingKey({
7044
+ url: `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`,
7045
+ method: "get",
7046
+ signal
7047
+ });
7048
+ };
7049
+ };
7050
+ const getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey = (userId, appShortName, settingKey) => {
7051
+ return [
7052
+ `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`
7053
+ ];
7054
+ };
7055
+ const useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions = (userId, appShortName, settingKey, options) => {
7056
+ const { query: queryOptions } = options ?? {};
7057
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey(
7058
+ userId,
7059
+ appShortName,
7060
+ settingKey
7061
+ );
7062
+ const getSettingByUserAndAppShortNameAndSetttingKey = useGetSettingByUserAndAppShortNameAndSetttingKeyHook();
7063
+ const queryFn = ({ signal }) => getSettingByUserAndAppShortNameAndSetttingKey(
7064
+ userId,
7065
+ appShortName,
7066
+ settingKey,
7067
+ signal
7068
+ );
7069
+ return {
8363
7070
  queryKey,
8364
- queryFn: () => fetchEnvironment(params, client)
8365
- });
7071
+ queryFn,
7072
+ enabled: !!(userId && appShortName && settingKey),
7073
+ ...queryOptions
7074
+ };
7075
+ };
7076
+ const useGetSettingByUserAndAppShortNameAndSetttingKey = (userId, appShortName, settingKey, options) => {
7077
+ const queryOptions = useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions(
7078
+ userId,
7079
+ appShortName,
7080
+ settingKey,
7081
+ options
7082
+ );
7083
+ const query = useQuery(queryOptions);
7084
+ query.queryKey = queryOptions.queryKey;
7085
+ return query;
7086
+ };
7087
+ const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook = () => {
7088
+ const createOrUpdateSettingByUserAndAppShortNameAndSettingKey = useCustomClient();
7089
+ return (userId, appShortName, settingKey, settingDto) => {
7090
+ return createOrUpdateSettingByUserAndAppShortNameAndSettingKey({
7091
+ url: `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`,
7092
+ method: "post",
7093
+ headers: { "Content-Type": "application/json" },
7094
+ data: settingDto
7095
+ });
7096
+ };
7097
+ };
7098
+ const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions = (options) => {
7099
+ const { mutation: mutationOptions } = options ?? {};
7100
+ const createOrUpdateSettingByUserAndAppShortNameAndSettingKey = useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook();
7101
+ const mutationFn = (props) => {
7102
+ const { userId, appShortName, settingKey, data } = props ?? {};
7103
+ return createOrUpdateSettingByUserAndAppShortNameAndSettingKey(
7104
+ userId,
7105
+ appShortName,
7106
+ settingKey,
7107
+ data
7108
+ );
7109
+ };
7110
+ return { mutationFn, ...mutationOptions };
7111
+ };
7112
+ const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKey = (options) => {
7113
+ const mutationOptions = useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions(
7114
+ options
7115
+ );
7116
+ return useMutation(mutationOptions);
7117
+ };
7118
+ const useDeleteSettingByUserAndAppShortNameAndSettingKeyHook = () => {
7119
+ const deleteSettingByUserAndAppShortNameAndSettingKey = useCustomClient();
7120
+ return (userId, appShortName, settingKey) => {
7121
+ return deleteSettingByUserAndAppShortNameAndSettingKey({
7122
+ url: `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`,
7123
+ method: "delete"
7124
+ });
7125
+ };
7126
+ };
7127
+ const useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions = (options) => {
7128
+ const { mutation: mutationOptions } = options ?? {};
7129
+ const deleteSettingByUserAndAppShortNameAndSettingKey = useDeleteSettingByUserAndAppShortNameAndSettingKeyHook();
7130
+ const mutationFn = (props) => {
7131
+ const { userId, appShortName, settingKey } = props ?? {};
7132
+ return deleteSettingByUserAndAppShortNameAndSettingKey(
7133
+ userId,
7134
+ appShortName,
7135
+ settingKey
7136
+ );
7137
+ };
7138
+ return { mutationFn, ...mutationOptions };
7139
+ };
7140
+ const useDeleteSettingByUserAndAppShortNameAndSettingKey = (options) => {
7141
+ const mutationOptions = useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions(options);
7142
+ return useMutation(mutationOptions);
7143
+ };
7144
+ const useGetSettingByUserAndAppShortNameHook = () => {
7145
+ const getSettingByUserAndAppShortName = useCustomClient();
7146
+ return (userId, appShortName, signal) => {
7147
+ return getSettingByUserAndAppShortName({
7148
+ url: `/api/settings/user/${userId}/application/${appShortName}`,
7149
+ method: "get",
7150
+ signal
7151
+ });
7152
+ };
7153
+ };
7154
+ const getGetSettingByUserAndAppShortNameQueryKey = (userId, appShortName) => {
7155
+ return [`/api/settings/user/${userId}/application/${appShortName}`];
7156
+ };
7157
+ const useGetSettingByUserAndAppShortNameQueryOptions = (userId, appShortName, options) => {
7158
+ const { query: queryOptions } = options ?? {};
7159
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingByUserAndAppShortNameQueryKey(userId, appShortName);
7160
+ const getSettingByUserAndAppShortName = useGetSettingByUserAndAppShortNameHook();
7161
+ const queryFn = ({ signal }) => getSettingByUserAndAppShortName(userId, appShortName, signal);
7162
+ return {
7163
+ queryKey,
7164
+ queryFn,
7165
+ enabled: !!(userId && appShortName),
7166
+ ...queryOptions
7167
+ };
7168
+ };
7169
+ const useGetSettingByUserAndAppShortName = (userId, appShortName, options) => {
7170
+ const queryOptions = useGetSettingByUserAndAppShortNameQueryOptions(
7171
+ userId,
7172
+ appShortName,
7173
+ options
7174
+ );
7175
+ const query = useQuery(queryOptions);
7176
+ query.queryKey = queryOptions.queryKey;
7177
+ return query;
7178
+ };
7179
+ const useGetAllAppsHook = () => {
7180
+ const getAllApps = useCustomClient();
7181
+ return (signal) => {
7182
+ return getAllApps({ url: `/api/apps`, method: "get", signal });
7183
+ };
7184
+ };
7185
+ const getGetAllAppsQueryKey = () => {
7186
+ return [`/api/apps`];
7187
+ };
7188
+ const useGetAllAppsQueryOptions = (options) => {
7189
+ const { query: queryOptions } = options ?? {};
7190
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllAppsQueryKey();
7191
+ const getAllApps = useGetAllAppsHook();
7192
+ const queryFn = ({ signal }) => getAllApps(signal);
7193
+ return { queryKey, queryFn, ...queryOptions };
7194
+ };
7195
+ const useGetAllApps = (options) => {
7196
+ const queryOptions = useGetAllAppsQueryOptions(options);
7197
+ const query = useQuery(queryOptions);
7198
+ query.queryKey = queryOptions.queryKey;
7199
+ return query;
7200
+ };
7201
+ const useCreateOrUpdateAppHook = () => {
7202
+ const createOrUpdateApp = useCustomClient();
7203
+ return (appDto) => {
7204
+ return createOrUpdateApp({
7205
+ url: `/api/apps`,
7206
+ method: "post",
7207
+ headers: { "Content-Type": "application/json" },
7208
+ data: appDto
7209
+ });
7210
+ };
7211
+ };
7212
+ const useCreateOrUpdateAppMutationOptions = (options) => {
7213
+ const { mutation: mutationOptions } = options ?? {};
7214
+ const createOrUpdateApp = useCreateOrUpdateAppHook();
7215
+ const mutationFn = (props) => {
7216
+ const { data } = props ?? {};
7217
+ return createOrUpdateApp(data);
7218
+ };
7219
+ return { mutationFn, ...mutationOptions };
7220
+ };
7221
+ const useCreateOrUpdateApp = (options) => {
7222
+ const mutationOptions = useCreateOrUpdateAppMutationOptions(options);
7223
+ return useMutation(mutationOptions);
7224
+ };
7225
+ const useGetAppByKeyHook = () => {
7226
+ const getAppByKey = useCustomClient();
7227
+ return (key, signal) => {
7228
+ return getAppByKey({ url: `/api/apps/key/${key}`, method: "get", signal });
7229
+ };
7230
+ };
7231
+ const getGetAppByKeyQueryKey = (key) => {
7232
+ return [`/api/apps/key/${key}`];
7233
+ };
7234
+ const useGetAppByKeyQueryOptions = (key, options) => {
7235
+ const { query: queryOptions } = options ?? {};
7236
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAppByKeyQueryKey(key);
7237
+ const getAppByKey = useGetAppByKeyHook();
7238
+ const queryFn = ({ signal }) => getAppByKey(key, signal);
7239
+ return {
7240
+ queryKey,
7241
+ queryFn,
7242
+ enabled: !!key,
7243
+ ...queryOptions
7244
+ };
7245
+ };
7246
+ const useGetAppByKey = (key, options) => {
7247
+ const queryOptions = useGetAppByKeyQueryOptions(key, options);
7248
+ const query = useQuery(queryOptions);
7249
+ query.queryKey = queryOptions.queryKey;
7250
+ return query;
7251
+ };
7252
+ const useDeleteAppByKeyHook = () => {
7253
+ const deleteAppByKey = useCustomClient();
7254
+ return (key) => {
7255
+ return deleteAppByKey({ url: `/api/apps/key/${key}`, method: "delete" });
7256
+ };
7257
+ };
7258
+ const useDeleteAppByKeyMutationOptions = (options) => {
7259
+ const { mutation: mutationOptions } = options ?? {};
7260
+ const deleteAppByKey = useDeleteAppByKeyHook();
7261
+ const mutationFn = (props) => {
7262
+ const { key } = props ?? {};
7263
+ return deleteAppByKey(key);
7264
+ };
7265
+ return { mutationFn, ...mutationOptions };
7266
+ };
7267
+ const useDeleteAppByKey = (options) => {
7268
+ const mutationOptions = useDeleteAppByKeyMutationOptions(options);
7269
+ return useMutation(mutationOptions);
7270
+ };
7271
+ const useGetAllServicesHook = () => {
7272
+ const getAllServices = useCustomClient();
7273
+ return (signal) => {
7274
+ return getAllServices({ url: `/api/apps/services`, method: "get", signal });
7275
+ };
7276
+ };
7277
+ const getGetAllServicesQueryKey = () => {
7278
+ return [`/api/apps/services`];
7279
+ };
7280
+ const useGetAllServicesQueryOptions = (options) => {
7281
+ const { query: queryOptions } = options ?? {};
7282
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllServicesQueryKey();
7283
+ const getAllServices = useGetAllServicesHook();
7284
+ const queryFn = ({ signal }) => getAllServices(signal);
7285
+ return { queryKey, queryFn, ...queryOptions };
7286
+ };
7287
+ const useGetAllServices = (options) => {
7288
+ const queryOptions = useGetAllServicesQueryOptions(options);
7289
+ const query = useQuery(queryOptions);
7290
+ query.queryKey = queryOptions.queryKey;
7291
+ return query;
7292
+ };
7293
+ const useCreateOrUpdateServiceHook = () => {
7294
+ const createOrUpdateService = useCustomClient();
7295
+ return (serviceDto) => {
7296
+ return createOrUpdateService({
7297
+ url: `/api/apps/services`,
7298
+ method: "post",
7299
+ headers: { "Content-Type": "application/json" },
7300
+ data: serviceDto
7301
+ });
7302
+ };
7303
+ };
7304
+ const useCreateOrUpdateServiceMutationOptions = (options) => {
7305
+ const { mutation: mutationOptions } = options ?? {};
7306
+ const createOrUpdateService = useCreateOrUpdateServiceHook();
7307
+ const mutationFn = (props) => {
7308
+ const { data } = props ?? {};
7309
+ return createOrUpdateService(data);
7310
+ };
7311
+ return { mutationFn, ...mutationOptions };
7312
+ };
7313
+ const useCreateOrUpdateService = (options) => {
7314
+ const mutationOptions = useCreateOrUpdateServiceMutationOptions(options);
7315
+ return useMutation(mutationOptions);
7316
+ };
7317
+ const useGetServiceByKeyHook = () => {
7318
+ const getServiceByKey = useCustomClient();
7319
+ return (key, signal) => {
7320
+ return getServiceByKey({
7321
+ url: `/api/apps/services/key/${key}`,
7322
+ method: "get",
7323
+ signal
7324
+ });
7325
+ };
7326
+ };
7327
+ const getGetServiceByKeyQueryKey = (key) => {
7328
+ return [`/api/apps/services/key/${key}`];
7329
+ };
7330
+ const useGetServiceByKeyQueryOptions = (key, options) => {
7331
+ const { query: queryOptions } = options ?? {};
7332
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetServiceByKeyQueryKey(key);
7333
+ const getServiceByKey = useGetServiceByKeyHook();
7334
+ const queryFn = ({ signal }) => getServiceByKey(key, signal);
7335
+ return {
7336
+ queryKey,
7337
+ queryFn,
7338
+ enabled: !!key,
7339
+ ...queryOptions
7340
+ };
7341
+ };
7342
+ const useGetServiceByKey = (key, options) => {
7343
+ const queryOptions = useGetServiceByKeyQueryOptions(key, options);
7344
+ const query = useQuery(queryOptions);
7345
+ query.queryKey = queryOptions.queryKey;
7346
+ return query;
7347
+ };
7348
+ const useDeleteServiceByKeyHook = () => {
7349
+ const deleteServiceByKey = useCustomClient();
7350
+ return (key) => {
7351
+ return deleteServiceByKey({
7352
+ url: `/api/apps/services/key/${key}`,
7353
+ method: "delete"
7354
+ });
7355
+ };
7356
+ };
7357
+ const useDeleteServiceByKeyMutationOptions = (options) => {
7358
+ const { mutation: mutationOptions } = options ?? {};
7359
+ const deleteServiceByKey = useDeleteServiceByKeyHook();
7360
+ const mutationFn = (props) => {
7361
+ const { key } = props ?? {};
7362
+ return deleteServiceByKey(key);
7363
+ };
7364
+ return { mutationFn, ...mutationOptions };
7365
+ };
7366
+ const useDeleteServiceByKey = (options) => {
7367
+ const mutationOptions = useDeleteServiceByKeyMutationOptions(options);
7368
+ return useMutation(mutationOptions);
7369
+ };
7370
+ const useGetAllCategoriesHook = () => {
7371
+ const getAllCategories = useCustomClient();
7372
+ return (signal) => {
7373
+ return getAllCategories({
7374
+ url: `/api/apps/categories`,
7375
+ method: "get",
7376
+ signal
7377
+ });
7378
+ };
7379
+ };
7380
+ const getGetAllCategoriesQueryKey = () => {
7381
+ return [`/api/apps/categories`];
7382
+ };
7383
+ const useGetAllCategoriesQueryOptions = (options) => {
7384
+ const { query: queryOptions } = options ?? {};
7385
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllCategoriesQueryKey();
7386
+ const getAllCategories = useGetAllCategoriesHook();
7387
+ const queryFn = ({ signal }) => getAllCategories(signal);
7388
+ return { queryKey, queryFn, ...queryOptions };
7389
+ };
7390
+ const useGetAllCategories = (options) => {
7391
+ const queryOptions = useGetAllCategoriesQueryOptions(options);
7392
+ const query = useQuery(queryOptions);
7393
+ query.queryKey = queryOptions.queryKey;
7394
+ return query;
7395
+ };
7396
+ const useCreateOrUpdateCategoryHook = () => {
7397
+ const createOrUpdateCategory = useCustomClient();
7398
+ return (categoryDto) => {
7399
+ return createOrUpdateCategory({
7400
+ url: `/api/apps/categories`,
7401
+ method: "post",
7402
+ headers: { "Content-Type": "application/json" },
7403
+ data: categoryDto
7404
+ });
7405
+ };
7406
+ };
7407
+ const useCreateOrUpdateCategoryMutationOptions = (options) => {
7408
+ const { mutation: mutationOptions } = options ?? {};
7409
+ const createOrUpdateCategory = useCreateOrUpdateCategoryHook();
7410
+ const mutationFn = (props) => {
7411
+ const { data } = props ?? {};
7412
+ return createOrUpdateCategory(data);
7413
+ };
7414
+ return { mutationFn, ...mutationOptions };
7415
+ };
7416
+ const useCreateOrUpdateCategory = (options) => {
7417
+ const mutationOptions = useCreateOrUpdateCategoryMutationOptions(options);
7418
+ return useMutation(mutationOptions);
7419
+ };
7420
+ const useGetCategoryByIdHook = () => {
7421
+ const getCategoryById = useCustomClient();
7422
+ return (id, signal) => {
7423
+ return getCategoryById({
7424
+ url: `/api/apps/categories/id/${id}`,
7425
+ method: "get",
7426
+ signal
7427
+ });
7428
+ };
7429
+ };
7430
+ const getGetCategoryByIdQueryKey = (id) => {
7431
+ return [`/api/apps/categories/id/${id}`];
7432
+ };
7433
+ const useGetCategoryByIdQueryOptions = (id, options) => {
7434
+ const { query: queryOptions } = options ?? {};
7435
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetCategoryByIdQueryKey(id);
7436
+ const getCategoryById = useGetCategoryByIdHook();
7437
+ const queryFn = ({ signal }) => getCategoryById(id, signal);
7438
+ return {
7439
+ queryKey,
7440
+ queryFn,
7441
+ enabled: !!id,
7442
+ ...queryOptions
7443
+ };
7444
+ };
7445
+ const useGetCategoryById = (id, options) => {
7446
+ const queryOptions = useGetCategoryByIdQueryOptions(id, options);
7447
+ const query = useQuery(queryOptions);
7448
+ query.queryKey = queryOptions.queryKey;
7449
+ return query;
7450
+ };
7451
+ const useDeleteCategoryByIdHook = () => {
7452
+ const deleteCategoryById = useCustomClient();
7453
+ return (id) => {
7454
+ return deleteCategoryById({
7455
+ url: `/api/apps/categories/id/${id}`,
7456
+ method: "delete"
7457
+ });
7458
+ };
7459
+ };
7460
+ const useDeleteCategoryByIdMutationOptions = (options) => {
7461
+ const { mutation: mutationOptions } = options ?? {};
7462
+ const deleteCategoryById = useDeleteCategoryByIdHook();
7463
+ const mutationFn = (props) => {
7464
+ const { id } = props ?? {};
7465
+ return deleteCategoryById(id);
7466
+ };
7467
+ return { mutationFn, ...mutationOptions };
7468
+ };
7469
+ const useDeleteCategoryById = (options) => {
7470
+ const mutationOptions = useDeleteCategoryByIdMutationOptions(options);
7471
+ return useMutation(mutationOptions);
7472
+ };
7473
+ const useStreamEventsHook = () => {
7474
+ const streamEvents = useCustomClient();
7475
+ return (signal) => {
7476
+ return streamEvents({
7477
+ url: `/eventstream/activitylog`,
7478
+ method: "get",
7479
+ signal
7480
+ });
7481
+ };
7482
+ };
7483
+ const getStreamEventsQueryKey = () => {
7484
+ return [`/eventstream/activitylog`];
7485
+ };
7486
+ const useStreamEventsQueryOptions = (options) => {
7487
+ const { query: queryOptions } = options ?? {};
7488
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getStreamEventsQueryKey();
7489
+ const streamEvents = useStreamEventsHook();
7490
+ const queryFn = ({ signal }) => streamEvents(signal);
7491
+ return { queryKey, queryFn, ...queryOptions };
7492
+ };
7493
+ const useStreamEvents = (options) => {
7494
+ const queryOptions = useStreamEventsQueryOptions(options);
7495
+ const query = useQuery(queryOptions);
7496
+ query.queryKey = queryOptions.queryKey;
7497
+ return query;
7498
+ };
7499
+ const useGetCurrentEnvironmentHook = () => {
7500
+ const getCurrentEnvironment = useCustomClient();
7501
+ return (signal) => {
7502
+ return getCurrentEnvironment({
7503
+ url: `/_discovery/environments/current`,
7504
+ method: "get",
7505
+ signal
7506
+ });
7507
+ };
7508
+ };
7509
+ const getGetCurrentEnvironmentQueryKey = () => {
7510
+ return [`/_discovery/environments/current`];
7511
+ };
7512
+ const useGetCurrentEnvironmentQueryOptions = (options) => {
7513
+ const { query: queryOptions } = options ?? {};
7514
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetCurrentEnvironmentQueryKey();
7515
+ const getCurrentEnvironment = useGetCurrentEnvironmentHook();
7516
+ const queryFn = ({ signal }) => getCurrentEnvironment(signal);
7517
+ return { queryKey, queryFn, ...queryOptions };
7518
+ };
7519
+ const useGetCurrentEnvironment = (options) => {
7520
+ const queryOptions = useGetCurrentEnvironmentQueryOptions(options);
7521
+ const query = useQuery(queryOptions);
7522
+ query.queryKey = queryOptions.queryKey;
7523
+ return query;
7524
+ };
7525
+ const GetAllRomaConfigurationTypes200Item = {
7526
+ servicebus: "servicebus"
7527
+ };
7528
+ const useGetRomaConfigurationByIdHook = () => {
7529
+ const getRomaConfigurationById = useCustomClient();
7530
+ return (id, signal) => {
7531
+ return getRomaConfigurationById({
7532
+ url: `/api/configurations/id/${id}`,
7533
+ method: "get",
7534
+ signal
7535
+ });
7536
+ };
7537
+ };
7538
+ const getGetRomaConfigurationByIdQueryKey = (id) => {
7539
+ return [`/api/configurations/id/${id}`];
7540
+ };
7541
+ const useGetRomaConfigurationByIdQueryOptions = (id, options) => {
7542
+ const { query: queryOptions } = options ?? {};
7543
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetRomaConfigurationByIdQueryKey(id);
7544
+ const getRomaConfigurationById = useGetRomaConfigurationByIdHook();
7545
+ const queryFn = ({ signal }) => getRomaConfigurationById(id, signal);
7546
+ return {
7547
+ queryKey,
7548
+ queryFn,
7549
+ enabled: !!id,
7550
+ ...queryOptions
7551
+ };
7552
+ };
7553
+ const useGetRomaConfigurationById = (id, options) => {
7554
+ const queryOptions = useGetRomaConfigurationByIdQueryOptions(id, options);
7555
+ const query = useQuery(queryOptions);
7556
+ query.queryKey = queryOptions.queryKey;
7557
+ return query;
7558
+ };
7559
+ const useUpdateRomaConfigurationHook = () => {
7560
+ const updateRomaConfiguration = useCustomClient();
7561
+ return (id, romaConfigurationDto) => {
7562
+ return updateRomaConfiguration({
7563
+ url: `/api/configurations/id/${id}`,
7564
+ method: "put",
7565
+ headers: { "Content-Type": "application/json" },
7566
+ data: romaConfigurationDto
7567
+ });
7568
+ };
7569
+ };
7570
+ const useUpdateRomaConfigurationMutationOptions = (options) => {
7571
+ const { mutation: mutationOptions } = options ?? {};
7572
+ const updateRomaConfiguration = useUpdateRomaConfigurationHook();
7573
+ const mutationFn = (props) => {
7574
+ const { id, data } = props ?? {};
7575
+ return updateRomaConfiguration(id, data);
7576
+ };
7577
+ return { mutationFn, ...mutationOptions };
7578
+ };
7579
+ const useUpdateRomaConfiguration = (options) => {
7580
+ const mutationOptions = useUpdateRomaConfigurationMutationOptions(options);
7581
+ return useMutation(mutationOptions);
7582
+ };
7583
+ const useDeleteRomaConfigurationHook = () => {
7584
+ const deleteRomaConfiguration = useCustomClient();
7585
+ return (id) => {
7586
+ return deleteRomaConfiguration({
7587
+ url: `/api/configurations/id/${id}`,
7588
+ method: "delete"
7589
+ });
7590
+ };
7591
+ };
7592
+ const useDeleteRomaConfigurationMutationOptions = (options) => {
7593
+ const { mutation: mutationOptions } = options ?? {};
7594
+ const deleteRomaConfiguration = useDeleteRomaConfigurationHook();
7595
+ const mutationFn = (props) => {
7596
+ const { id } = props ?? {};
7597
+ return deleteRomaConfiguration(id);
7598
+ };
7599
+ return { mutationFn, ...mutationOptions };
7600
+ };
7601
+ const useDeleteRomaConfiguration = (options) => {
7602
+ const mutationOptions = useDeleteRomaConfigurationMutationOptions(options);
7603
+ return useMutation(mutationOptions);
7604
+ };
7605
+ const useGetAllRomaConfigurationHook = () => {
7606
+ const getAllRomaConfiguration = useCustomClient();
7607
+ return (signal) => {
7608
+ return getAllRomaConfiguration({
7609
+ url: `/api/configurations`,
7610
+ method: "get",
7611
+ signal
7612
+ });
7613
+ };
7614
+ };
7615
+ const getGetAllRomaConfigurationQueryKey = () => {
7616
+ return [`/api/configurations`];
7617
+ };
7618
+ const useGetAllRomaConfigurationQueryOptions = (options) => {
7619
+ const { query: queryOptions } = options ?? {};
7620
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllRomaConfigurationQueryKey();
7621
+ const getAllRomaConfiguration = useGetAllRomaConfigurationHook();
7622
+ const queryFn = ({ signal }) => getAllRomaConfiguration(signal);
7623
+ return { queryKey, queryFn, ...queryOptions };
7624
+ };
7625
+ const useGetAllRomaConfiguration = (options) => {
7626
+ const queryOptions = useGetAllRomaConfigurationQueryOptions(options);
7627
+ const query = useQuery(queryOptions);
7628
+ query.queryKey = queryOptions.queryKey;
7629
+ return query;
7630
+ };
7631
+ const useAddRomaConfigurationHook = () => {
7632
+ const addRomaConfiguration = useCustomClient();
7633
+ return (romaConfigurationDto) => {
7634
+ return addRomaConfiguration({
7635
+ url: `/api/configurations`,
7636
+ method: "post",
7637
+ headers: { "Content-Type": "application/json" },
7638
+ data: romaConfigurationDto
7639
+ });
7640
+ };
7641
+ };
7642
+ const useAddRomaConfigurationMutationOptions = (options) => {
7643
+ const { mutation: mutationOptions } = options ?? {};
7644
+ const addRomaConfiguration = useAddRomaConfigurationHook();
7645
+ const mutationFn = (props) => {
7646
+ const { data } = props ?? {};
7647
+ return addRomaConfiguration(data);
7648
+ };
7649
+ return { mutationFn, ...mutationOptions };
7650
+ };
7651
+ const useAddRomaConfiguration = (options) => {
7652
+ const mutationOptions = useAddRomaConfigurationMutationOptions(options);
7653
+ return useMutation(mutationOptions);
7654
+ };
7655
+ const useGetAllRomaConfigurationTypesHook = () => {
7656
+ const getAllRomaConfigurationTypes = useCustomClient();
7657
+ return (signal) => {
7658
+ return getAllRomaConfigurationTypes({
7659
+ url: `/api/configurations/types`,
7660
+ method: "get",
7661
+ signal
7662
+ });
7663
+ };
7664
+ };
7665
+ const getGetAllRomaConfigurationTypesQueryKey = () => {
7666
+ return [`/api/configurations/types`];
7667
+ };
7668
+ const useGetAllRomaConfigurationTypesQueryOptions = (options) => {
7669
+ const { query: queryOptions } = options ?? {};
7670
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllRomaConfigurationTypesQueryKey();
7671
+ const getAllRomaConfigurationTypes = useGetAllRomaConfigurationTypesHook();
7672
+ const queryFn = ({ signal }) => getAllRomaConfigurationTypes(signal);
7673
+ return { queryKey, queryFn, ...queryOptions };
7674
+ };
7675
+ const useGetAllRomaConfigurationTypes = (options) => {
7676
+ const queryOptions = useGetAllRomaConfigurationTypesQueryOptions(options);
7677
+ const query = useQuery(queryOptions);
7678
+ query.queryKey = queryOptions.queryKey;
7679
+ return query;
7680
+ };
7681
+ const useGetAllRomaConfigurationByTypeHook = () => {
7682
+ const getAllRomaConfigurationByType = useCustomClient();
7683
+ return (type, signal) => {
7684
+ return getAllRomaConfigurationByType({
7685
+ url: `/api/configurations/types/type/${type}`,
7686
+ method: "get",
7687
+ signal
7688
+ });
7689
+ };
7690
+ };
7691
+ const getGetAllRomaConfigurationByTypeQueryKey = (type) => {
7692
+ return [`/api/configurations/types/type/${type}`];
7693
+ };
7694
+ const useGetAllRomaConfigurationByTypeQueryOptions = (type, options) => {
7695
+ const { query: queryOptions } = options ?? {};
7696
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllRomaConfigurationByTypeQueryKey(type);
7697
+ const getAllRomaConfigurationByType = useGetAllRomaConfigurationByTypeHook();
7698
+ const queryFn = ({ signal }) => getAllRomaConfigurationByType(type, signal);
7699
+ return {
7700
+ queryKey,
7701
+ queryFn,
7702
+ enabled: !!type,
7703
+ ...queryOptions
7704
+ };
7705
+ };
7706
+ const useGetAllRomaConfigurationByType = (type, options) => {
7707
+ const queryOptions = useGetAllRomaConfigurationByTypeQueryOptions(
7708
+ type,
7709
+ options
7710
+ );
7711
+ const query = useQuery(queryOptions);
7712
+ query.queryKey = queryOptions.queryKey;
7713
+ return query;
8366
7714
  };
8367
7715
  export {
7716
+ AppContext,
8368
7717
  AppLoader,
7718
+ AppProvider,
8369
7719
  AppViewer,
8370
7720
  EquinorLoader,
8371
7721
  ErrorViewer,
7722
+ GetAllRomaConfigurationTypes200Item,
8372
7723
  HttpErrorViewer,
8373
7724
  StyleProvider,
7725
+ getGetAllAppsQueryKey,
7726
+ getGetAllCategoriesQueryKey,
7727
+ getGetAllRomaConfigurationByTypeQueryKey,
7728
+ getGetAllRomaConfigurationQueryKey,
7729
+ getGetAllRomaConfigurationTypesQueryKey,
7730
+ getGetAllServicesQueryKey,
7731
+ getGetAppByKeyQueryKey,
7732
+ getGetCategoryByIdQueryKey,
7733
+ getGetCurrentEnvironmentQueryKey,
7734
+ getGetRomaConfigurationByIdQueryKey,
7735
+ getGetServiceByKeyQueryKey,
7736
+ getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey,
7737
+ getGetSettingByUserAndAppShortNameQueryKey,
7738
+ getGetSettingByUserAndSettingKeyQueryKey,
7739
+ getStreamEventsQueryKey,
8374
7740
  makeComponent,
7741
+ useAddRomaConfiguration,
7742
+ useAddRomaConfigurationHook,
7743
+ useAddRomaConfigurationMutationOptions,
7744
+ useApps,
7745
+ useCreateOrUpdateApp,
7746
+ useCreateOrUpdateAppHook,
7747
+ useCreateOrUpdateAppMutationOptions,
7748
+ useCreateOrUpdateCategory,
7749
+ useCreateOrUpdateCategoryHook,
7750
+ useCreateOrUpdateCategoryMutationOptions,
7751
+ useCreateOrUpdateService,
7752
+ useCreateOrUpdateServiceHook,
7753
+ useCreateOrUpdateServiceMutationOptions,
7754
+ useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKey,
7755
+ useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook,
7756
+ useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions,
7757
+ useCreateOrUpdateSettingByUserAndSettingKey,
7758
+ useCreateOrUpdateSettingByUserAndSettingKeyHook,
7759
+ useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions,
7760
+ useDeleteAppByKey,
7761
+ useDeleteAppByKeyHook,
7762
+ useDeleteAppByKeyMutationOptions,
7763
+ useDeleteCategoryById,
7764
+ useDeleteCategoryByIdHook,
7765
+ useDeleteCategoryByIdMutationOptions,
7766
+ useDeleteRomaConfiguration,
7767
+ useDeleteRomaConfigurationHook,
7768
+ useDeleteRomaConfigurationMutationOptions,
7769
+ useDeleteServiceByKey,
7770
+ useDeleteServiceByKeyHook,
7771
+ useDeleteServiceByKeyMutationOptions,
7772
+ useDeleteSettingByUserAndAppShortNameAndSettingKey,
7773
+ useDeleteSettingByUserAndAppShortNameAndSettingKeyHook,
7774
+ useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions,
7775
+ useDeleteSettingByUserAndSettingKey,
7776
+ useDeleteSettingByUserAndSettingKeyHook,
7777
+ useDeleteSettingByUserAndSettingKeyMutationOptions,
8375
7778
  useDownloadRecap,
7779
+ useGetAllApps,
7780
+ useGetAllAppsHook,
7781
+ useGetAllAppsQueryOptions,
7782
+ useGetAllCategories,
7783
+ useGetAllCategoriesHook,
7784
+ useGetAllCategoriesQueryOptions,
7785
+ useGetAllRomaConfiguration,
7786
+ useGetAllRomaConfigurationByType,
7787
+ useGetAllRomaConfigurationByTypeHook,
7788
+ useGetAllRomaConfigurationByTypeQueryOptions,
7789
+ useGetAllRomaConfigurationHook,
7790
+ useGetAllRomaConfigurationQueryOptions,
7791
+ useGetAllRomaConfigurationTypes,
7792
+ useGetAllRomaConfigurationTypesHook,
7793
+ useGetAllRomaConfigurationTypesQueryOptions,
7794
+ useGetAllServices,
7795
+ useGetAllServicesHook,
7796
+ useGetAllServicesQueryOptions,
7797
+ useGetAppByKey,
7798
+ useGetAppByKeyHook,
7799
+ useGetAppByKeyQueryOptions,
7800
+ useGetCategoryById,
7801
+ useGetCategoryByIdHook,
7802
+ useGetCategoryByIdQueryOptions,
7803
+ useGetCurrentEnvironment,
7804
+ useGetCurrentEnvironmentHook,
7805
+ useGetCurrentEnvironmentQueryOptions,
8376
7806
  useGetDeals,
8377
- useGetEnvironment,
8378
7807
  useGetRecap,
8379
- useSse,
7808
+ useGetRomaConfigurationById,
7809
+ useGetRomaConfigurationByIdHook,
7810
+ useGetRomaConfigurationByIdQueryOptions,
7811
+ useGetServiceByKey,
7812
+ useGetServiceByKeyHook,
7813
+ useGetServiceByKeyQueryOptions,
7814
+ useGetSettingByUserAndAppShortName,
7815
+ useGetSettingByUserAndAppShortNameAndSetttingKey,
7816
+ useGetSettingByUserAndAppShortNameAndSetttingKeyHook,
7817
+ useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions,
7818
+ useGetSettingByUserAndAppShortNameHook,
7819
+ useGetSettingByUserAndAppShortNameQueryOptions,
7820
+ useGetSettingByUserAndSettingKey,
7821
+ useGetSettingByUserAndSettingKeyHook,
7822
+ useGetSettingByUserAndSettingKeyQueryOptions,
7823
+ useStreamEvents,
7824
+ useStreamEventsHook,
7825
+ useStreamEventsQueryOptions,
7826
+ useUpdateRomaConfiguration,
7827
+ useUpdateRomaConfigurationHook,
7828
+ useUpdateRomaConfigurationMutationOptions,
8380
7829
  withStyleIsolation
8381
7830
  };