dynamic-mui 2.2.0 → 2.3.1

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 (167) hide show
  1. package/README.md +142 -5
  2. package/dist/accordion-Bf0VwGuE.js +1 -0
  3. package/dist/accordion-DEd2a2Ps.mjs +23 -0
  4. package/dist/addressfield-Dfd9ilpe.js +1 -0
  5. package/dist/addressfield-FjNJCCuC.mjs +152 -0
  6. package/dist/asyncautocomplete-9O6nwGP_.js +1 -0
  7. package/dist/asyncautocomplete-B8qI_lz9.mjs +89 -0
  8. package/dist/bar-BzO7tvYJ.mjs +20 -0
  9. package/dist/bar-DEVxyUVS.js +1 -0
  10. package/dist/cascadeselect-D8sVXV1g.mjs +64 -0
  11. package/dist/cascadeselect-DeoPn4_V.js +1 -0
  12. package/dist/colorpicker-BcnqB34i.js +1 -0
  13. package/dist/colorpicker-DcyceL6g.mjs +98 -0
  14. package/dist/components/DynamicComponent.d.ts +2 -0
  15. package/dist/components/FormGenerator.d.ts +99 -10
  16. package/dist/components/controls/index.d.ts +45 -79
  17. package/dist/consentfield-B_qBOIuX.mjs +78 -0
  18. package/dist/consentfield-CR69IP1l.js +1 -0
  19. package/dist/datatable-BIQznwQe.mjs +20 -0
  20. package/dist/datatable-BWlcUP0M.js +1 -0
  21. package/dist/dynamic-mui.cjs +1 -0
  22. package/dist/dynamic-mui.mjs +32 -0
  23. package/dist/editabletable-BdywdA42.js +1 -0
  24. package/dist/editabletable-D6_U9op8.mjs +126 -0
  25. package/dist/fileupload-CugTpR-B.mjs +172 -0
  26. package/dist/fileupload-YzpAUgok.js +1 -0
  27. package/dist/formrepeater-B_2UOIBm.js +1 -0
  28. package/dist/formrepeater-Cxawn2sQ.mjs +71 -0
  29. package/dist/formwizard-CCBY6s19.js +1 -0
  30. package/dist/formwizard-Cfd5IPkE.mjs +83 -0
  31. package/dist/geofield-CJm8hivf.js +1 -0
  32. package/dist/geofield-k2V0hglK.mjs +104 -0
  33. package/dist/group-D40b3E1V.mjs +23 -0
  34. package/dist/group-IFZTzo-g.js +1 -0
  35. package/dist/imagelist-Bn9QhIv7.js +1 -0
  36. package/dist/imagelist-rqmJajHt.mjs +18 -0
  37. package/dist/index-Bh6BLrzq.mjs +12226 -0
  38. package/dist/index-eJceCjKS.js +43 -0
  39. package/dist/index.d.ts +9 -1
  40. package/dist/intlphone-BbTprmmA.mjs +140 -0
  41. package/dist/intlphone-CmiRFHv-.js +1 -0
  42. package/dist/keyvaluefield-CoOmou7m.js +1 -0
  43. package/dist/keyvaluefield-zD6Kf4D0.mjs +125 -0
  44. package/dist/line-B-DwR1hm.mjs +20 -0
  45. package/dist/line-BkymZu31.js +1 -0
  46. package/dist/lineitemlist-BRsW0O7Z.js +1 -0
  47. package/dist/lineitemlist-BZbAId8H.mjs +166 -0
  48. package/dist/list-BhTzYFrR.mjs +20 -0
  49. package/dist/list-DWf2NWix.js +1 -0
  50. package/dist/locationfield-BZpGC10B.mjs +119 -0
  51. package/dist/locationfield-DC_2IN-B.js +1 -0
  52. package/dist/markdowneditor-B5F4okCW.mjs +90 -0
  53. package/dist/markdowneditor-Coi3sksx.js +2 -0
  54. package/dist/matrixfield-CUo7zFWC.mjs +117 -0
  55. package/dist/matrixfield-DAjfXU96.js +1 -0
  56. package/dist/mixChart-C3o184UT.js +1 -0
  57. package/dist/mixChart-ISf3Kbr-.mjs +75 -0
  58. package/dist/multitextbox-Cq7vt1-g.js +1 -0
  59. package/dist/multitextbox-CsNOrHZP.mjs +78 -0
  60. package/dist/npsscale-BWpMrK_O.js +1 -0
  61. package/dist/npsscale-Cb8NxADb.mjs +87 -0
  62. package/dist/numberstepper-BqQeBbR9.js +1 -0
  63. package/dist/numberstepper-DLk_r1HM.mjs +128 -0
  64. package/dist/pie-CJSL8Sv5.js +1 -0
  65. package/dist/pie-CL29dlh5.mjs +20 -0
  66. package/dist/richtexteditor-BUrvVR_T.js +1 -0
  67. package/dist/richtexteditor-pQIK2f-6.mjs +141 -0
  68. package/dist/s3Upload-B0JeoLkS.js +1 -0
  69. package/dist/s3Upload-dpioZ2c8.mjs +51 -0
  70. package/dist/signature-CFv0jhVN.mjs +1225 -0
  71. package/dist/signature-G-XCOszC.js +2 -0
  72. package/dist/stepper-Bc9NlbU7.js +1 -0
  73. package/dist/stepper-U0kv127E.mjs +140 -0
  74. package/dist/summaryfield-B_bePxLk.js +1 -0
  75. package/dist/summaryfield-QcpYr9Xt.mjs +96 -0
  76. package/dist/tabs-Cs9eNEbR.js +1 -0
  77. package/dist/tabs-DCLyTKVm.mjs +39 -0
  78. package/dist/tagsinput-D1VP8Bjq.mjs +58 -0
  79. package/dist/tagsinput-DlopThdw.js +1 -0
  80. package/dist/util/dayjsSetup.d.ts +2 -0
  81. package/dist/util/registry.d.ts +29 -0
  82. package/dist/util/resolvers.d.ts +45 -0
  83. package/dist/util/useFormEngine.d.ts +74 -0
  84. package/dist/util/validateSchema.d.ts +23 -0
  85. package/dist/v4-BysszJq8.mjs +30 -0
  86. package/dist/v4-CqdK_b8Y.js +1 -0
  87. package/package.json +38 -12
  88. package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
  89. package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
  90. package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
  91. package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
  92. package/dist/ChartsGrid-BCRTvNTr.js +0 -3
  93. package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
  94. package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
  95. package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
  96. package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
  97. package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
  98. package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
  99. package/dist/ChartsYAxis-fpevi1sP.js +0 -1
  100. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
  101. package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
  102. package/dist/clampAngle-BvZjnf53.mjs +0 -11
  103. package/dist/clampAngle-DpAsDoeT.js +0 -1
  104. package/dist/createSelector-B-9FwV16.mjs +0 -430
  105. package/dist/createSelector-f0oqn8Lr.js +0 -7
  106. package/dist/date-utils-CFUUt6NL.js +0 -4
  107. package/dist/date-utils-pGzaKb0p.mjs +0 -477
  108. package/dist/dynamic-mui.cjs.js +0 -1
  109. package/dist/dynamic-mui.es.js +0 -22
  110. package/dist/index--8Zky9Oh.js +0 -299
  111. package/dist/index-6WTs1Xy_.js +0 -1
  112. package/dist/index-B1R1akM2.js +0 -1
  113. package/dist/index-BW8_rRff.js +0 -7
  114. package/dist/index-BXFVK_GX.js +0 -1
  115. package/dist/index-B_KNUTjy.js +0 -1
  116. package/dist/index-BhaKvHkU.mjs +0 -62051
  117. package/dist/index-Bif92ima.js +0 -1
  118. package/dist/index-BnZOu8CL.js +0 -1
  119. package/dist/index-CDxpgRlR.mjs +0 -7
  120. package/dist/index-CThMfvtJ.mjs +0 -2555
  121. package/dist/index-CVqLvm8B.js +0 -1
  122. package/dist/index-CodJBIn6.mjs +0 -1665
  123. package/dist/index-Cr6Wp_S-.mjs +0 -3141
  124. package/dist/index-CslPwsrf.mjs +0 -4
  125. package/dist/index-CuV0MQzZ.mjs +0 -1173
  126. package/dist/index-DA0XouZs.mjs +0 -153
  127. package/dist/index-DKS5Sz9e.js +0 -14
  128. package/dist/index-DSkYYZuW.mjs +0 -4
  129. package/dist/index-DU78_FiA.js +0 -1
  130. package/dist/index-D_mYhgJ0.js +0 -10
  131. package/dist/index-DcWfyXJp.mjs +0 -92
  132. package/dist/index-Dlimbnxj.mjs +0 -2965
  133. package/dist/index-MllWgTJ5.mjs +0 -9372
  134. package/dist/index-in5z9hUb.js +0 -133
  135. package/dist/index-qUW7FnZ-.mjs +0 -20540
  136. package/dist/index.browser-BSu11T_q.mjs +0 -363
  137. package/dist/index.browser-By7-GABP.js +0 -4
  138. package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
  139. package/dist/isDeepEqual-CqxZGVRk.js +0 -1
  140. package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
  141. package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
  142. package/dist/loadSts-Cic6UToN.mjs +0 -593
  143. package/dist/loadSts-csbFP6zX.js +0 -1
  144. package/dist/main.d.ts +0 -1
  145. package/dist/noAuth-B8ui2kBg.mjs +0 -71
  146. package/dist/noAuth-JPA2o4dt.js +0 -1
  147. package/dist/playground/AIContext.d.ts +0 -18
  148. package/dist/playground/AIPanel.d.ts +0 -10
  149. package/dist/playground/Builder.d.ts +0 -1
  150. package/dist/playground/Canvas.d.ts +0 -9
  151. package/dist/playground/DemoGallery.d.ts +0 -6
  152. package/dist/playground/PropertiesEditor.d.ts +0 -10
  153. package/dist/playground/Sidebar.d.ts +0 -9
  154. package/dist/playground/demoForms.d.ts +0 -3
  155. package/dist/playground/demoRecipes.d.ts +0 -15
  156. package/dist/playground/demoVariants.d.ts +0 -11
  157. package/dist/playground/documentation.d.ts +0 -6
  158. package/dist/playground/templates.d.ts +0 -7
  159. package/dist/playground/testData.d.ts +0 -2
  160. package/dist/test/setup.d.ts +0 -0
  161. package/dist/theme/theme.d.ts +0 -6
  162. package/dist/useAxis-DSbfEtO7.js +0 -3
  163. package/dist/useAxis-SiNBMMWq.mjs +0 -3010
  164. package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
  165. package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
  166. package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
  167. package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
@@ -1,430 +0,0 @@
1
- var x = (e, n, r) => {
2
- if (n.length === 1 && n[0] === r) {
3
- let u = !1;
4
- try {
5
- const i = {};
6
- e(i) === i && (u = !0);
7
- } catch {
8
- }
9
- if (u) {
10
- let i;
11
- try {
12
- throw new Error();
13
- } catch (p) {
14
- ({ stack: i } = p);
15
- }
16
- console.warn(
17
- `The result function returned its own inputs without modification. e.g
18
- \`createSelector([state => state.todos], todos => todos)\`
19
- This could lead to inefficient memoization and unnecessary re-renders.
20
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
21
- { stack: i }
22
- );
23
- }
24
- }
25
- }, F = (e, n, r) => {
26
- const { memoize: u, memoizeOptions: i } = n, { inputSelectorResults: p, inputSelectorResultsCopy: d } = e, f = u(() => ({}), ...i);
27
- if (!(f.apply(null, p) === f.apply(null, d))) {
28
- let l;
29
- try {
30
- throw new Error();
31
- } catch (o) {
32
- ({ stack: l } = o);
33
- }
34
- console.warn(
35
- `An input selector returned a different result when passed same arguments.
36
- This means your output selector will likely run more frequently than intended.
37
- Avoid returning a new reference inside your input selector, e.g.
38
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
39
- {
40
- arguments: r,
41
- firstInputs: p,
42
- secondInputs: d,
43
- stack: l
44
- }
45
- );
46
- }
47
- }, _ = {
48
- inputStabilityCheck: "once",
49
- identityFunctionCheck: "once"
50
- }, R = /* @__PURE__ */ Symbol("NOT_FOUND");
51
- function D(e, n = `expected a function, instead received ${typeof e}`) {
52
- if (typeof e != "function")
53
- throw new TypeError(n);
54
- }
55
- function q(e, n = `expected an object, instead received ${typeof e}`) {
56
- if (typeof e != "object")
57
- throw new TypeError(n);
58
- }
59
- function W(e, n = "expected all items to be functions, instead received the following types: ") {
60
- if (!e.every((r) => typeof r == "function")) {
61
- const r = e.map(
62
- (u) => typeof u == "function" ? `function ${u.name || "unnamed"}()` : typeof u
63
- ).join(", ");
64
- throw new TypeError(`${n}[${r}]`);
65
- }
66
- }
67
- var z = (e) => Array.isArray(e) ? e : [e];
68
- function $(e) {
69
- const n = Array.isArray(e[0]) ? e[0] : e;
70
- return W(
71
- n,
72
- "createSelector expects all input-selectors to be functions, but received the following types: "
73
- ), n;
74
- }
75
- function I(e, n) {
76
- const r = [], { length: u } = e;
77
- for (let i = 0; i < u; i++)
78
- r.push(e[i].apply(null, n));
79
- return r;
80
- }
81
- var U = (e, n) => {
82
- const { identityFunctionCheck: r, inputStabilityCheck: u } = {
83
- ..._,
84
- ...n
85
- };
86
- return {
87
- identityFunctionCheck: {
88
- shouldRun: r === "always" || r === "once" && e,
89
- run: x
90
- },
91
- inputStabilityCheck: {
92
- shouldRun: u === "always" || u === "once" && e,
93
- run: F
94
- }
95
- };
96
- };
97
- function K(e) {
98
- let n;
99
- return {
100
- get(r) {
101
- return n && e(n.key, r) ? n.value : R;
102
- },
103
- put(r, u) {
104
- n = { key: r, value: u };
105
- },
106
- getEntries() {
107
- return n ? [n] : [];
108
- },
109
- clear() {
110
- n = void 0;
111
- }
112
- };
113
- }
114
- function L(e, n) {
115
- let r = [];
116
- function u(f) {
117
- const h = r.findIndex((l) => n(f, l.key));
118
- if (h > -1) {
119
- const l = r[h];
120
- return h > 0 && (r.splice(h, 1), r.unshift(l)), l.value;
121
- }
122
- return R;
123
- }
124
- function i(f, h) {
125
- u(f) === R && (r.unshift({ key: f, value: h }), r.length > e && r.pop());
126
- }
127
- function p() {
128
- return r;
129
- }
130
- function d() {
131
- r = [];
132
- }
133
- return { get: u, put: i, getEntries: p, clear: d };
134
- }
135
- var V = (e, n) => e === n;
136
- function P(e) {
137
- return function(r, u) {
138
- if (r === null || u === null || r.length !== u.length)
139
- return !1;
140
- const { length: i } = r;
141
- for (let p = 0; p < i; p++)
142
- if (!e(r[p], u[p]))
143
- return !1;
144
- return !0;
145
- };
146
- }
147
- function B(e, n) {
148
- const r = typeof n == "object" ? n : { equalityCheck: n }, {
149
- equalityCheck: u = V,
150
- maxSize: i = 1,
151
- resultEqualityCheck: p
152
- } = r, d = P(u);
153
- let f = 0;
154
- const h = i <= 1 ? K(d) : L(i, d);
155
- function l() {
156
- let o = h.get(arguments);
157
- if (o === R) {
158
- if (o = e.apply(null, arguments), f++, p) {
159
- const c = h.getEntries().find(
160
- (t) => p(t.value, o)
161
- );
162
- c && (o = c.value, f !== 0 && f--);
163
- }
164
- h.put(arguments, o);
165
- }
166
- return o;
167
- }
168
- return l.clearCache = () => {
169
- h.clear(), l.resetResultsCount();
170
- }, l.resultsCount = () => f, l.resetResultsCount = () => {
171
- f = 0;
172
- }, l;
173
- }
174
- var G = class {
175
- constructor(e) {
176
- this.value = e;
177
- }
178
- deref() {
179
- return this.value;
180
- }
181
- }, H = typeof WeakRef < "u" ? WeakRef : G, J = 0, M = 1;
182
- function k() {
183
- return {
184
- s: J,
185
- v: void 0,
186
- o: null,
187
- p: null
188
- };
189
- }
190
- function O(e, n = {}) {
191
- let r = k();
192
- const { resultEqualityCheck: u } = n;
193
- let i, p = 0;
194
- function d() {
195
- let f = r;
196
- const { length: h } = arguments;
197
- for (let s = 0, c = h; s < c; s++) {
198
- const t = arguments[s];
199
- if (typeof t == "function" || typeof t == "object" && t !== null) {
200
- let a = f.o;
201
- a === null && (f.o = a = /* @__PURE__ */ new WeakMap());
202
- const y = a.get(t);
203
- y === void 0 ? (f = k(), a.set(t, f)) : f = y;
204
- } else {
205
- let a = f.p;
206
- a === null && (f.p = a = /* @__PURE__ */ new Map());
207
- const y = a.get(t);
208
- y === void 0 ? (f = k(), a.set(t, f)) : f = y;
209
- }
210
- }
211
- const l = f;
212
- let o;
213
- if (f.s === M)
214
- o = f.v;
215
- else if (o = e.apply(null, arguments), p++, u) {
216
- const s = i?.deref?.() ?? i;
217
- s != null && u(s, o) && (o = s, p !== 0 && p--), i = typeof o == "object" && o !== null || typeof o == "function" ? new H(o) : o;
218
- }
219
- return l.s = M, l.v = o, o;
220
- }
221
- return d.clearCache = () => {
222
- r = k(), d.resetResultsCount();
223
- }, d.resultsCount = () => p, d.resetResultsCount = () => {
224
- p = 0;
225
- }, d;
226
- }
227
- function A(e, ...n) {
228
- const r = typeof e == "function" ? {
229
- memoize: e,
230
- memoizeOptions: n
231
- } : e, u = (...i) => {
232
- let p = 0, d = 0, f, h = {}, l = i.pop();
233
- typeof l == "object" && (h = l, l = i.pop()), D(
234
- l,
235
- `createSelector expects an output function after the inputs, but received: [${typeof l}]`
236
- );
237
- const o = {
238
- ...r,
239
- ...h
240
- }, {
241
- memoize: s,
242
- memoizeOptions: c = [],
243
- argsMemoize: t = O,
244
- argsMemoizeOptions: a = [],
245
- devModeChecks: y = {}
246
- } = o, m = z(c), v = z(a), g = $(i), w = s(function() {
247
- return p++, l.apply(
248
- null,
249
- arguments
250
- );
251
- }, ...m);
252
- let C = !0;
253
- const N = t(function() {
254
- d++;
255
- const S = I(
256
- g,
257
- arguments
258
- );
259
- if (f = w.apply(null, S), process.env.NODE_ENV !== "production") {
260
- const { identityFunctionCheck: b, inputStabilityCheck: E } = U(C, y);
261
- if (b.shouldRun && b.run(
262
- l,
263
- S,
264
- f
265
- ), E.shouldRun) {
266
- const j = I(
267
- g,
268
- arguments
269
- );
270
- E.run(
271
- { inputSelectorResults: S, inputSelectorResultsCopy: j },
272
- { memoize: s, memoizeOptions: m },
273
- arguments
274
- );
275
- }
276
- C && (C = !1);
277
- }
278
- return f;
279
- }, ...v);
280
- return Object.assign(N, {
281
- resultFunc: l,
282
- memoizedResultFunc: w,
283
- dependencies: g,
284
- dependencyRecomputations: () => d,
285
- resetDependencyRecomputations: () => {
286
- d = 0;
287
- },
288
- lastResult: () => f,
289
- recomputations: () => p,
290
- resetRecomputations: () => {
291
- p = 0;
292
- },
293
- memoize: s,
294
- argsMemoize: t
295
- });
296
- };
297
- return Object.assign(u, {
298
- withTypes: () => u
299
- }), u;
300
- }
301
- var Q = /* @__PURE__ */ A(O), X = Object.assign(
302
- (e, n = Q) => {
303
- q(
304
- e,
305
- `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
306
- );
307
- const r = Object.keys(e), u = r.map(
308
- (p) => e[p]
309
- );
310
- return n(
311
- u,
312
- (...p) => p.reduce((d, f, h) => (d[r[h]] = f, d), {})
313
- );
314
- },
315
- { withTypes: () => X }
316
- );
317
- const Y = A({
318
- memoize: B,
319
- memoizeOptions: {
320
- maxSize: 1,
321
- equalityCheck: Object.is
322
- }
323
- }), ee = (e, n, r, u, i, p, d, f, ...h) => {
324
- if (h.length > 0)
325
- throw new Error("Unsupported number of selectors");
326
- let l;
327
- if (e && n && r && u && i && p && d && f)
328
- l = (o, s, c, t) => {
329
- const a = e(o, s, c, t), y = n(o, s, c, t), m = r(o, s, c, t), v = u(o, s, c, t), g = i(o, s, c, t), w = p(o, s, c, t), C = d(o, s, c, t);
330
- return f(a, y, m, v, g, w, C, s, c, t);
331
- };
332
- else if (e && n && r && u && i && p && d)
333
- l = (o, s, c, t) => {
334
- const a = e(o, s, c, t), y = n(o, s, c, t), m = r(o, s, c, t), v = u(o, s, c, t), g = i(o, s, c, t), w = p(o, s, c, t);
335
- return d(a, y, m, v, g, w, s, c, t);
336
- };
337
- else if (e && n && r && u && i && p)
338
- l = (o, s, c, t) => {
339
- const a = e(o, s, c, t), y = n(o, s, c, t), m = r(o, s, c, t), v = u(o, s, c, t), g = i(o, s, c, t);
340
- return p(a, y, m, v, g, s, c, t);
341
- };
342
- else if (e && n && r && u && i)
343
- l = (o, s, c, t) => {
344
- const a = e(o, s, c, t), y = n(o, s, c, t), m = r(o, s, c, t), v = u(o, s, c, t);
345
- return i(a, y, m, v, s, c, t);
346
- };
347
- else if (e && n && r && u)
348
- l = (o, s, c, t) => {
349
- const a = e(o, s, c, t), y = n(o, s, c, t), m = r(o, s, c, t);
350
- return u(a, y, m, s, c, t);
351
- };
352
- else if (e && n && r)
353
- l = (o, s, c, t) => {
354
- const a = e(o, s, c, t), y = n(o, s, c, t);
355
- return r(a, y, s, c, t);
356
- };
357
- else if (e && n)
358
- l = (o, s, c, t) => {
359
- const a = e(o, s, c, t);
360
- return n(a, s, c, t);
361
- };
362
- else if (e)
363
- l = e;
364
- else
365
- throw new Error("Missing arguments");
366
- return l;
367
- }, Z = (e) => (...n) => {
368
- const r = /* @__PURE__ */ new WeakMap();
369
- let u = 1;
370
- const i = n[n.length - 1], p = n.length - 1 || 1, d = Math.max(i.length - p, 0);
371
- if (d > 3)
372
- throw new Error("Unsupported number of arguments");
373
- return (h, l, o, s) => {
374
- let c = h.__cacheKey__;
375
- c || (c = {
376
- id: u
377
- }, h.__cacheKey__ = c, u += 1);
378
- let t = r.get(c);
379
- if (!t) {
380
- const a = n.length === 1 ? [(v) => v, i] : n;
381
- let y = n;
382
- const m = [void 0, void 0, void 0];
383
- switch (d) {
384
- case 0:
385
- break;
386
- case 1: {
387
- y = [...a.slice(0, -1), () => m[0], i];
388
- break;
389
- }
390
- case 2: {
391
- y = [...a.slice(0, -1), () => m[0], () => m[1], i];
392
- break;
393
- }
394
- case 3: {
395
- y = [...a.slice(0, -1), () => m[0], () => m[1], () => m[2], i];
396
- break;
397
- }
398
- default:
399
- throw new Error("Unsupported number of arguments");
400
- }
401
- e && (y = [...y, e]), t = Y(...y), t.selectorArgs = m, r.set(c, t);
402
- }
403
- switch (d) {
404
- case 3:
405
- t.selectorArgs[2] = s;
406
- case 2:
407
- t.selectorArgs[1] = o;
408
- case 1:
409
- t.selectorArgs[0] = l;
410
- }
411
- switch (d) {
412
- case 0:
413
- return t(h);
414
- case 1:
415
- return t(h, l);
416
- case 2:
417
- return t(h, l, o);
418
- case 3:
419
- return t(h, l, o, s);
420
- default:
421
- throw new Error("unreachable");
422
- }
423
- };
424
- }, te = Z();
425
- export {
426
- ee as a,
427
- Z as b,
428
- te as c,
429
- B as l
430
- };
@@ -1,7 +0,0 @@
1
- "use strict";var _=(e,n,o)=>{if(n.length===1&&n[0]===o){let i=!1;try{const u={};e(u)===u&&(i=!0)}catch{}if(i){let u;try{throw new Error}catch(p){({stack:u}=p)}console.warn(`The result function returned its own inputs without modification. e.g
2
- \`createSelector([state => state.todos], todos => todos)\`
3
- This could lead to inefficient memoization and unnecessary re-renders.
4
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:u})}}},D=(e,n,o)=>{const{memoize:i,memoizeOptions:u}=n,{inputSelectorResults:p,inputSelectorResultsCopy:d}=e,f=i(()=>({}),...u);if(!(f.apply(null,p)===f.apply(null,d))){let l;try{throw new Error}catch(r){({stack:l}=r)}console.warn(`An input selector returned a different result when passed same arguments.
5
- This means your output selector will likely run more frequently than intended.
6
- Avoid returning a new reference inside your input selector, e.g.
7
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:o,firstInputs:p,secondInputs:d,stack:l})}},W={inputStabilityCheck:"once",identityFunctionCheck:"once"},k=Symbol("NOT_FOUND");function q(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function $(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function U(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(o=>typeof o=="function")){const o=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${n}[${o}]`)}}var z=e=>Array.isArray(e)?e:[e];function K(e){const n=Array.isArray(e[0])?e[0]:e;return U(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function M(e,n){const o=[],{length:i}=e;for(let u=0;u<i;u++)o.push(e[u].apply(null,n));return o}var L=(e,n)=>{const{identityFunctionCheck:o,inputStabilityCheck:i}={...W,...n};return{identityFunctionCheck:{shouldRun:o==="always"||o==="once"&&e,run:_},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&e,run:D}}};function V(e){let n;return{get(o){return n&&e(n.key,o)?n.value:k},put(o,i){n={key:o,value:i}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function P(e,n){let o=[];function i(f){const h=o.findIndex(l=>n(f,l.key));if(h>-1){const l=o[h];return h>0&&(o.splice(h,1),o.unshift(l)),l.value}return k}function u(f,h){i(f)===k&&(o.unshift({key:f,value:h}),o.length>e&&o.pop())}function p(){return o}function d(){o=[]}return{get:i,put:u,getEntries:p,clear:d}}var B=(e,n)=>e===n;function G(e){return function(o,i){if(o===null||i===null||o.length!==i.length)return!1;const{length:u}=o;for(let p=0;p<u;p++)if(!e(o[p],i[p]))return!1;return!0}}function O(e,n){const o=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:i=B,maxSize:u=1,resultEqualityCheck:p}=o,d=G(i);let f=0;const h=u<=1?V(d):P(u,d);function l(){let r=h.get(arguments);if(r===k){if(r=e.apply(null,arguments),f++,p){const s=h.getEntries().find(t=>p(t.value,r));s&&(r=s.value,f!==0&&f--)}h.put(arguments,r)}return r}return l.clearCache=()=>{h.clear(),l.resetResultsCount()},l.resultsCount=()=>f,l.resetResultsCount=()=>{f=0},l}var H=class{constructor(e){this.value=e}deref(){return this.value}},J=typeof WeakRef<"u"?WeakRef:H,Q=0,I=1;function S(){return{s:Q,v:void 0,o:null,p:null}}function A(e,n={}){let o=S();const{resultEqualityCheck:i}=n;let u,p=0;function d(){let f=o;const{length:h}=arguments;for(let c=0,s=h;c<s;c++){const t=arguments[c];if(typeof t=="function"||typeof t=="object"&&t!==null){let a=f.o;a===null&&(f.o=a=new WeakMap);const y=a.get(t);y===void 0?(f=S(),a.set(t,f)):f=y}else{let a=f.p;a===null&&(f.p=a=new Map);const y=a.get(t);y===void 0?(f=S(),a.set(t,f)):f=y}}const l=f;let r;if(f.s===I)r=f.v;else if(r=e.apply(null,arguments),p++,i){const c=u?.deref?.()??u;c!=null&&i(c,r)&&(r=c,p!==0&&p--),u=typeof r=="object"&&r!==null||typeof r=="function"?new J(r):r}return l.s=I,l.v=r,r}return d.clearCache=()=>{o=S(),d.resetResultsCount()},d.resultsCount=()=>p,d.resetResultsCount=()=>{p=0},d}function N(e,...n){const o=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,i=(...u)=>{let p=0,d=0,f,h={},l=u.pop();typeof l=="object"&&(h=l,l=u.pop()),q(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const r={...o,...h},{memoize:c,memoizeOptions:s=[],argsMemoize:t=A,argsMemoizeOptions:a=[],devModeChecks:y={}}=r,m=z(s),v=z(a),g=K(u),w=c(function(){return p++,l.apply(null,arguments)},...m);let C=!0;const j=t(function(){d++;const R=M(g,arguments);if(f=w.apply(null,R),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:E,inputStabilityCheck:b}=L(C,y);if(E.shouldRun&&E.run(l,R,f),b.shouldRun){const F=M(g,arguments);b.run({inputSelectorResults:R,inputSelectorResultsCopy:F},{memoize:c,memoizeOptions:m},arguments)}C&&(C=!1)}return f},...v);return Object.assign(j,{resultFunc:l,memoizedResultFunc:w,dependencies:g,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>f,recomputations:()=>p,resetRecomputations:()=>{p=0},memoize:c,argsMemoize:t})};return Object.assign(i,{withTypes:()=>i}),i}var X=N(A),Y=Object.assign((e,n=X)=>{$(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const o=Object.keys(e),i=o.map(p=>e[p]);return n(i,(...p)=>p.reduce((d,f,h)=>(d[o[h]]=f,d),{}))},{withTypes:()=>Y});const Z=N({memoize:O,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),ee=(e,n,o,i,u,p,d,f,...h)=>{if(h.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&n&&o&&i&&u&&p&&d&&f)l=(r,c,s,t)=>{const a=e(r,c,s,t),y=n(r,c,s,t),m=o(r,c,s,t),v=i(r,c,s,t),g=u(r,c,s,t),w=p(r,c,s,t),C=d(r,c,s,t);return f(a,y,m,v,g,w,C,c,s,t)};else if(e&&n&&o&&i&&u&&p&&d)l=(r,c,s,t)=>{const a=e(r,c,s,t),y=n(r,c,s,t),m=o(r,c,s,t),v=i(r,c,s,t),g=u(r,c,s,t),w=p(r,c,s,t);return d(a,y,m,v,g,w,c,s,t)};else if(e&&n&&o&&i&&u&&p)l=(r,c,s,t)=>{const a=e(r,c,s,t),y=n(r,c,s,t),m=o(r,c,s,t),v=i(r,c,s,t),g=u(r,c,s,t);return p(a,y,m,v,g,c,s,t)};else if(e&&n&&o&&i&&u)l=(r,c,s,t)=>{const a=e(r,c,s,t),y=n(r,c,s,t),m=o(r,c,s,t),v=i(r,c,s,t);return u(a,y,m,v,c,s,t)};else if(e&&n&&o&&i)l=(r,c,s,t)=>{const a=e(r,c,s,t),y=n(r,c,s,t),m=o(r,c,s,t);return i(a,y,m,c,s,t)};else if(e&&n&&o)l=(r,c,s,t)=>{const a=e(r,c,s,t),y=n(r,c,s,t);return o(a,y,c,s,t)};else if(e&&n)l=(r,c,s,t)=>{const a=e(r,c,s,t);return n(a,c,s,t)};else if(e)l=e;else throw new Error("Missing arguments");return l},T=e=>(...n)=>{const o=new WeakMap;let i=1;const u=n[n.length-1],p=n.length-1||1,d=Math.max(u.length-p,0);if(d>3)throw new Error("Unsupported number of arguments");return(h,l,r,c)=>{let s=h.__cacheKey__;s||(s={id:i},h.__cacheKey__=s,i+=1);let t=o.get(s);if(!t){const a=n.length===1?[v=>v,u]:n;let y=n;const m=[void 0,void 0,void 0];switch(d){case 0:break;case 1:{y=[...a.slice(0,-1),()=>m[0],u];break}case 2:{y=[...a.slice(0,-1),()=>m[0],()=>m[1],u];break}case 3:{y=[...a.slice(0,-1),()=>m[0],()=>m[1],()=>m[2],u];break}default:throw new Error("Unsupported number of arguments")}e&&(y=[...y,e]),t=Z(...y),t.selectorArgs=m,o.set(s,t)}switch(d){case 3:t.selectorArgs[2]=c;case 2:t.selectorArgs[1]=r;case 1:t.selectorArgs[0]=l}switch(d){case 0:return t(h);case 1:return t(h,l);case 2:return t(h,l,r);case 3:return t(h,l,r,c);default:throw new Error("unreachable")}}},te=T();exports.createSelector=ee;exports.createSelectorMemoized=te;exports.createSelectorMemoizedWithOptions=T;exports.lruMemoize=O;
@@ -1,4 +0,0 @@
1
- "use strict";class C{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const r=new C({...t,headers:{...t.headers}});return r.query&&(r.query=re(r.query)),r}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return C.clone(this)}}function re(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class D{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const ne=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=Object.entries(G).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),oe=G.split(""),g=6,E=8,se=63,V=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let o=0;o<e.length;o+=4){let s=0,c=0;for(let i=o,d=o+3;i<=d;i++)if(e[i]!=="="){if(!(e[i]in P))throw new TypeError(`Invalid character ${e[i]} in base64 string.`);s|=P[e[i]]<<(d-i)*g,c+=g}else s>>=g;const a=o/4*3;s>>=c%E;const f=Math.floor(c/E);for(let i=0;i<f;i++){const d=(f-i-1)*E;n.setUint8(a+i,(s&255<<d)>>d)}}return new Uint8Array(r)},z=e=>new TextEncoder().encode(e),X=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function Z(e){let t;typeof e=="string"?t=z(e):t=e;const r=typeof t=="object"&&typeof t.length=="number",n=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<t.length;s+=3){let c=0,a=0;for(let i=s,d=Math.min(s+3,t.length);i<d;i++)c|=t[i]<<(d-i-1)*E,a+=E;const f=Math.ceil(a/g);c<<=f*g-a;for(let i=1;i<=f;i++){const d=(f-i)*g;o+=oe[(c&se<<d)>>d]}o+="==".slice(0,4-f)}return o}const N=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),A=e=>encodeURIComponent(e).replace(/[!'()*]/g,ie),ie=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function ce(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=A(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)t.push(`${r}=${A(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${A(n)}`),t.push(o)}}return t.join("&")}function k(e,t){return new Request(e,t)}function ae(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const n=new Error(`Request did not complete within ${e} ms`);n.name="TimeoutError",r(n)},e)})}const I={supported:void 0};class O{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new O(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),I.supported===void 0&&(I.supported=typeof Request<"u"&&"keepalive"in k("https://[::1]"))}destroy(){}async handle(t,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);const o=n??this.config.requestTimeout,s=this.config.keepAlive===!0,c=this.config.credentials;if(r?.aborted){const u=new Error("Request aborted");return u.name="AbortError",Promise.reject(u)}let a=t.path;const f=ce(t.query||{});f&&(a+=`?${f}`),t.fragment&&(a+=`#${t.fragment}`);let i="";if(t.username!=null||t.password!=null){const u=t.username??"",T=t.password??"";i=`${u}:${T}@`}const{port:d,method:y}=t,w=`${t.protocol}//${i}${t.hostname}${d?`:${d}`:""}${a}`,x=y==="GET"||y==="HEAD"?void 0:t.body,h={body:x,headers:new Headers(t.headers),method:y,credentials:c};this.config?.cache&&(h.cache=this.config.cache),x&&(h.duplex="half"),typeof AbortController<"u"&&(h.signal=r),I.supported&&(h.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(h,this.config.requestInit(t));let L=()=>{};const te=k(w,h),_=[fetch(te).then(u=>{const T=u.headers,m={};for(const R of T.entries())m[R[0]]=R[1];return u.body!=null?{response:new D({headers:m,reason:u.statusText,statusCode:u.status,body:u.body})}:u.blob().then(R=>({response:new D({headers:m,reason:u.statusText,statusCode:u.status,body:R})}))}),ae(o)];return r&&_.push(new Promise((u,T)=>{const m=()=>{const p=new Error("Request aborted");p.name="AbortError",T(p)};if(typeof r.addEventListener=="function"){const p=r;p.addEventListener("abort",m,{once:!0}),L=()=>p.removeEventListener("abort",m)}else r.onabort=m})),Promise.race(_).finally(L)}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[t]=r,n))}httpHandlerConfigs(){return this.config??{}}}const Q=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):fe(e):de(e);async function fe(e){const t=await ue(e),r=V(t);return new Uint8Array(r)}async function de(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:a,value:f}=await r.read();f&&(t.push(f),o+=f.length),n=a}const s=new Uint8Array(o);let c=0;for(const a of t)s.set(a,c),c+=a.length;return s}function ue(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",s=o.indexOf(","),c=s>-1?s+1:o.length;t(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}const K={},B={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),K[e]=t,B[t]=e}function he(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(n in B)t[r/2]=B[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function v(e){let t="";for(let r=0;r<e.byteLength;r++)t+=K[e[r]];return t}const j="The stream has already been transformed.",le=e=>{if(!J(e)&&!N(e)){const o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let t=!1;const r=async()=>{if(t)throw new Error(j);return t=!0,await Q(e)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
2
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(e,{transformToByteArray:r,transformToString:async o=>{const s=await r();if(o==="base64")return Z(s);if(o==="hex")return v(s);if(o===void 0||o==="utf8"||o==="utf-8")return X(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(j);if(t=!0,J(e))return n(e);if(N(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},J=e=>typeof Blob=="function"&&e instanceof Blob,F=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Se.warn(Ee(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},ye=Math.ceil(2**127*(2-2**-23)),W=e=>{const t=F(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>ye)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},me=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},Y=e=>ee(e,16),q=e=>ee(e,8),ee=(e,t)=>{const r=me(e);if(r!==void 0&&pe(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},pe=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},ge=e=>F(typeof e=="string"?M(e):e),be=e=>W(typeof e=="string"?M(e):e),we=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,M=e=>{const t=e.match(we);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},$=e=>Y(typeof e=="string"?M(e):e),Te=e=>q(typeof e=="string"?M(e):e),Ee=e=>String(new TypeError(e).stack||e).split(`
3
- `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
4
- `),Se={warn:console.warn},$e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xe(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),a=e.getUTCSeconds(),f=o<10?`0${o}`:`${o}`,i=s<10?`0${s}`:`${s}`,d=c<10?`0${c}`:`${c}`,y=a<10?`0${a}`:`${a}`;return`${$e[n]}, ${f} ${H[r]} ${t} ${i}:${d}:${y} GMT`}const Re=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ae=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=Re.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,a,f,i]=t,d=$(b(n)),y=l(o,"month",1,12),w=l(s,"day",1,31);return S(d,y,w,{hours:c,minutes:a,seconds:f,fractionalMilliseconds:i})},Ce=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Me=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=Ce.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,a,f,i,d]=t,y=$(b(n)),w=l(o,"month",1,12),x=l(s,"day",1,31),h=S(y,w,x,{hours:c,minutes:a,seconds:f,fractionalMilliseconds:i});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-je(d)),h},Ie=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Ue=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),De=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Ne=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Ie.exec(e);if(t){const[r,n,o,s,c,a,f,i]=t;return S($(b(s)),U(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:f,fractionalMilliseconds:i})}if(t=Ue.exec(e),t){const[r,n,o,s,c,a,f,i]=t;return He(S(Fe(s),U(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:f,fractionalMilliseconds:i}))}if(t=De.exec(e),t){const[r,n,o,s,c,a,f,i]=t;return S($(b(i)),U(n),l(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:a,fractionalMilliseconds:f})}throw new TypeError("Invalid RFC-7231 date-time value")},Be=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ge(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},S=(e,t,r,n)=>{const o=t-1;return _e(e,o,r),new Date(Date.UTC(e,o,r,l(n.hours,"hour",0,23),l(n.minutes,"minute",0,59),l(n.seconds,"seconds",0,60),ke(n.fractionalMilliseconds)))},Fe=e=>{const t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+$(b(e));return r<t?r+100:r},Oe=50*365*24*60*60*1e3,He=e=>e.getTime()-new Date().getTime()>Oe?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,U=e=>{const t=H.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Le=[31,28,31,30,31,30,31,31,30,31,30,31],_e=(e,t,r)=>{let n=Le[t];if(t===1&&Pe(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${H[t]} in ${e}: ${r}`)},Pe=e=>e%4===0&&(e%100!==0||e%400===0),l=(e,t,r,n)=>{const o=Te(b(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},ke=e=>e==null?0:be("0."+e)*1e3,je=e=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1e3},b=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)};exports.FetchHttpHandler=O;exports.HttpRequest=C;exports.HttpResponse=D;exports.dateToUtcString=xe;exports.escapeUri=A;exports.fromBase64=V;exports.fromHex=he;exports.fromUtf8=z;exports.isReadableStream=N;exports.normalizeProvider=ne;exports.parseEpochTimestamp=Be;exports.parseRfc3339DateTime=Ae;exports.parseRfc3339DateTimeWithOffset=Me;exports.parseRfc7231DateTime=Ne;exports.sdkStreamMixin=le;exports.streamCollector=Q;exports.toBase64=Z;exports.toHex=v;exports.toUtf8=X;